gdb: Add a find method for RegisterDescriptorIterator
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * python/py-registers.c: Add 'user-regs.h' include.
4 (register_descriptor_iter_find): New function.
5 (register_descriptor_iterator_object_methods): New static global
6 methods array.
7 (register_descriptor_iterator_object_type): Add pointer to methods
8 array.
9
10 2020-07-27 John Baldwin <jhb@FreeBSD.org>
11
12 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
13 for all architectures on FreeBSD 11.3 and later.
14
15 2020-07-27 Tom Tromey <tromey@adacore.com>
16
17 * gcore.h (load_corefile): Don't declare.
18
19 2020-07-27 Tom de Vries <tdevries@suse.de>
20
21 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
22 * config.in: Regenerate.
23 * configure: Regenerate.
24
25 2020-07-26 Eli Zaretskii <eliz@gnu.org>
26
27 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
28 ws2tcpip.h. When checking whether socklen_t type is defined, use
29 ws2tcpip.h if it is available and sys/socket.h isn't.
30 * configure: Regenerate.
31 * config.in: Regenerate.
32
33 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
34
35 PR fortran/23051
36 PR fortran/26139
37 * valops.c (value_ind): Pass address to
38 readjust_indirect_value_type.
39 * value.c (readjust_indirect_value_type): Make parameter
40 non-const, and add extra address parameter. Resolve original type
41 before using it.
42 * value.h (readjust_indirect_value_type): Update function
43 signature and comment.
44
45 2020-07-25 Tom de Vries <tdevries@suse.de>
46
47 PR symtab/26243
48 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
49 entries.
50
51 2020-07-24 Aaron Merey <amerey@redhat.com>
52
53 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
54 * configure: Rebuild.
55
56 2020-07-23 Kevin Buettner <kevinb@redhat.com>
57
58 PR corefiles/26294
59 * corelow.c (_initialize_corelow): Add period to help text
60 for "maintenance print core-file-backed-mappings".
61
62 2020-07-23 Pedro Alves <pedro@palves.net>
63
64 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
65 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
66 meanwhile.
67 * frame.c (frame_cache_generation, get_frame_cache_generation):
68 New.
69 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
70 (get_prev_frame_if_no_cycle): On exception, don't touch
71 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
72 * frame.h (get_frame_cache_generation): Declare.
73
74 2020-07-23 Tom de Vries <tdevries@suse.de>
75
76 PR tui/26282
77 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
78 New default constructor.
79
80 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
81
82 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
83 exclude non-statement entries.
84
85 2020-07-22 Kevin Buettner <kevinb@redhat.com>
86
87 * NEWS (New commands): Mention new command
88 "maintenance print core-file-backed-mappings".
89
90 2020-07-22 Kevin Buettner <kevinb@redhat.com>
91
92 * corelow.c (gdbcmd.h): Include.
93 (core_target::info_proc_mappings): New method.
94 (get_current_core_target): New function.
95 (maintenance_print_core_file_backed_mappings): New function.
96 (_initialize_corelow): Add core-file-backed-mappings to
97 "maint print" commands.
98
99 2020-07-22 Kevin Buettner <kevinb@redhat.com>
100
101 * linux-tdep.c (dump_note_entry_p): New function.
102 (linux_dump_mapping_p_ftype): New typedef.
103 (linux_find_memory_regions_full): Add new parameter,
104 should_dump_mapping_p.
105 (linux_find_memory_regions): Adjust call to
106 linux_find_memory_regions_full.
107 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
108 call to linux_find_memory_regions_full.
109
110 2020-07-22 Kevin Buettner <kevinb@redhat.com>
111
112 * corelow.c (solist.h, unordered_map): Include.
113 (class core_target): Add field m_core_file_mappings and
114 method build_file_mappings.
115 (core_target::core_target): Call build_file_mappings.
116 (core_target::~core_target): Free memory associated with
117 m_core_file_mappings.
118 (core_target::build_file_mappings): New method.
119 (core_target::xfer_partial): Use m_core_file_mappings
120 for memory transfers.
121 * linux-tdep.c (linux_read_core_file_mappings): New
122 function.
123 (linux_core_info_proc_mappings): Rewrite to use
124 linux_read_core_file_mappings.
125 (linux_init_abi): Register linux_read_core_file_mappings.
126
127 2020-07-22 Kevin Buettner <kevinb@redhat.com>
128
129 * arch-utils.c (default_read_core_file_mappings): New function.
130 * arch-utils.c (default_read_core_file_mappings): Declare.
131 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
132 * gdbarch.h, gdbarch.c: Regenerate.
133
134 2020-07-22 Kevin Buettner <kevinb@redhat.com>
135
136 PR corefiles/25631
137 * corelow.c (core_target:xfer_partial): Revise
138 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
139 case after first checking the stratum beneath the core
140 target.
141 (has_all_memory): Return true.
142 * target.c (raw_memory_xfer_partial): Revise comment
143 regarding use of has_all_memory.
144
145 2020-07-22 Kevin Buettner <kevinb@redhat.com>
146
147 * exec.h (section_table_xfer_memory): Revise declaration,
148 replacing section name parameter with an optional callback
149 predicate.
150 * exec.c (section_table_xfer_memory): Likewise.
151 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
152 of section_table_xfer_memory.
153
154 2020-07-22 Tom Tromey <tromey@adacore.com>
155
156 * mi/mi-cmd-stack.c (list_args_or_locals): Use
157 lookup_symbol_search_name.
158
159 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
160
161 * python/py-registers.c (gdbpy_register_object_data_init): Remove
162 redundant local variable.
163 (gdbpy_get_register_descriptor): Extract descriptor vector as a
164 reference, not pointer, update code accordingly.
165
166 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
167 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
168
169 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
170 * jit.c (jit_breakpoint_re_set_internal): Use the
171 `skip_jit_symbol_lookup` field.
172
173 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
174 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
175
176 * jit.c (jit_read_descriptor): Define the descriptor address once,
177 use twice.
178 (jit_breakpoint_deleted): Move the declaration of the loop variable
179 `iter` into the loop header.
180 (jit_breakpoint_re_set_internal): Move the declaration of the local
181 variable `objf_data` to the first point of definition.
182 (jit_event_handler): Move the declaration of local variables
183 `code_entry`, `entry_addr`, and `objf` to their first point of use.
184 Rename `objf` to `jited`.
185
186 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
187
188 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
189 Remove.
190 * jit.c (get_jiter_objfile_data): Update.
191
192 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
193 Simon Marchi <simon.marchi@polymtl.ca>
194
195 * jit.c (struct jit_program_space_data): Remove.
196 (jit_program_space_key): Remove.
197 (jiter_objfile_data::~jiter_objfile_data): Remove program space
198 stuff.
199 (get_jit_program_space_data): Remove.
200 (jit_breakpoint_deleted): Iterate on all of the program space's
201 objfiles.
202 (jit_inferior_init): Likewise.
203 (jit_breakpoint_re_set_internal): Likewise. Also change return
204 type to void.
205 (jit_breakpoint_re_set): Pass current_program_space to
206 jit_breakpoint_re_set_internal.
207
208 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
209
210 * jit.h (struct jiter_objfile_data) <cached_code_address,
211 jit_breakpoint>: Move to here from ...
212 * jit.c (jit_program_space_data): ... here.
213 (jiter_objfile_data::~jiter_objfile_data): Update.
214 (jit_breakpoint_deleted): Update.
215 (jit_breakpoint_re_set_internal): Update.
216
217 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
218
219 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
220 checks.
221 (jit_read_descriptor): Remove NULL check.
222 (jit_event_handler): Add an assertion.
223
224 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * jit.h (struct jit_objfile_data): Split into...
227 (struct jiter_objfile_data): ... this ...
228 (struct jited_objfile_data): ... and this.
229 * objfiles.h (struct objfile) <jit_data>: Remove.
230 <jiter_data, jited_data>: New fields.
231 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
232 (jiter_objfile_data::~jiter_objfile_data): ... this.
233 (get_jit_objfile_data): Rename to ...
234 (get_jiter_objfile_data): ... this.
235 (add_objfile_entry): Update.
236 (jit_read_descriptor): Use get_jiter_objfile_data.
237 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
238 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
239 (jit_inferior_exit_hook): Use objfile's jited_data field.
240
241 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
242
243 * jit.h: Forward-declare `struct minimal_symbol`.
244 (struct jit_objfile_data): Migrate to here from jit.c; also add a
245 constructor, destructor, and an objfile* field.
246 * jit.c (jit_objfile_data): Remove.
247 (struct jit_objfile_data): Migrate from here to jit.h.
248 (jit_objfile_data::~jit_objfile_data): New destructor
249 implementation with code moved from free_objfile_data.
250 (free_objfile_data): Delete.
251 (get_jit_objfile_data): Update to use the jit_data field of objfile.
252 (jit_find_objf_with_entry_addr): Ditto.
253 (jit_inferior_exit_hook): Ditto.
254 (_initialize_jit): Remove the call to
255 register_objfile_data_with_cleanup.
256 * objfiles.h (struct objfile) <jit_data>: New field.
257
258 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
259
260 * jit.h: Forward-declare `struct objfile`.
261 (jit_event_handler): Add a second parameter, the JITer objfile.
262 * jit.c (jit_read_descriptor): Change the signature to take the
263 JITer objfile as an argument instead of the jit_program_space_data.
264 (jit_inferior_init): Update the call to jit_read_descriptor.
265 (jit_event_handler): Use the new JITer objfile argument when calling
266 jit_read_descriptor.
267 * breakpoint.c (handle_jit_event): Update the call to
268 jit_event_handler to pass the JITer objfile.
269
270 2020-07-21 John Baldwin <jhb@FreeBSD.org>
271
272 * gdbarch.c: Regenerate.
273 * gdbarch.h: Regenerate.
274 * gdbarch.sh (handle_segmentation_fault): Remove method.
275 * infrun.c (handle_segmentation_fault): Remove.
276 (print_signal_received_reason): Remove call to
277 handle_segmentation_fault.
278
279 2020-07-21 John Baldwin <jhb@FreeBSD.org>
280
281 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
282 Rename to sparc64_linux_report_signal_info and add siggnal
283 argument.
284 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
285 instead of sparc64_linux_handle_segmentation_fault.
286
287 2020-07-21 John Baldwin <jhb@FreeBSD.org>
288
289 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
290 i386_linux_report_signal_info instead of
291 i386_linux_handle_segmentation_fault.
292 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
293 to i386_linux_report_signal_info and add siggnal argument.
294 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
295 of i386_linux_handle_segmentation_fault.
296 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
297 to i386_linux_report_signal_info and add siggnal argument.
298
299 2020-07-21 John Baldwin <jhb@FreeBSD.org>
300
301 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
302 hook if present.
303
304 2020-07-21 John Baldwin <jhb@FreeBSD.org>
305
306 * gdbarch.c: Regenerate.
307 * gdbarch.h: Regenerate.
308 * gdbarch.sh (report_signal_info): New method.
309 * infrun.c (print_signal_received_reason): Invoke gdbarch
310 report_signal_info hook if present.
311
312 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
313
314 * python/py-registers.c : Add 'unordered_map' include.
315 (gdbpy_new_reggroup): Renamed to...
316 (gdbpy_get_reggroup): ...this. Update to only create register
317 group descriptors when needed.
318 (gdbpy_reggroup_iter_next): Update.
319
320 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
321
322 * python/py-registers.c (gdbpy_register_object_data): New static
323 global.
324 (gdbpy_register_object_data_init): New function.
325 (gdbpy_new_register_descriptor): Renamed to...
326 (gdbpy_get_register_descriptor): ...this, and update to reuse
327 existing register descriptors where possible.
328 (gdbpy_register_descriptor_iter_next): Update.
329 (gdbpy_initialize_registers): Register new gdbarch data.
330
331 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
332
333 * linux-nat.c (stopped_pids): Make static.
334
335 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
336
337 PR ada/26235
338 * gdbtypes.c (ada_discrete_type_low_bound,
339 ada_discrete_type_high_bound): Handle undefined bounds.
340
341 2020-07-21 Kamil Rytarowski <n54@gmx.com>
342
343 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
344 declaration.
345 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
346 function.
347
348 2020-07-20 John Baldwin <jhb@FreeBSD.org>
349
350 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
351 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
352 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
353 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
354 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
355 method.
356
357 2020-07-20 Ludovic Courtès <ludo@gnu.org>
358
359 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
360 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
361 which are deprecated in Guile 3.0.
362 * configure.ac (try_guile_versions): Add "guile-3.0".
363 * configure (try_guile_versions): Regenerate.
364 * NEWS: Update entry.
365
366 2020-07-20 Ludovic Courtès <ludo@gnu.org>
367 Doug Evans <dje@google.com>
368
369 PR gdb/21104
370 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
371 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
372 USING_GUILE_BEFORE_2_2.
373 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
374 Change type to 'scm_t_port_type *'.
375 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
376 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
377 parameter and honor it. Update callers.
378 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
379 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
380 functions.
381 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
382 USING_GUILE_BEFORE_2_2.
383 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
384 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
385 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
386 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
387 and 'SCM_PORT_TYPE'.
388 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
389 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
390 (gdbscm_memory_port_read, gdbscm_memory_port_write)
391 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
392 [!USING_GUILE_BEFORE_2_2]: New functions.
393 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
394 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
395 'gdbscm_memory_port_read'.
396 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
397 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
398 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
399 function.
400 (ioscm_init_memory_port): Remove.
401 (ioscm_init_memory_port_stream): New function
402 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
403 function.
404 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
405 Return scm_from_uint (0).
406 (gdbscm_set_memory_port_read_buffer_size_x)
407 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
408 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
409 Return scm_from_uint (0).
410 (gdbscm_set_memory_port_write_buffer_size_x)
411 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
412 * configure.ac (try_guile_versions): Add "guile-2.2".
413 * configure: Regenerate.
414 * NEWS: Add entry.
415
416 2020-07-18 Tom Tromey <tom@tromey.com>
417
418 * linux-nat.c (linux_multi_process): Remove.
419 (linux_nat_target::supports_multi_process): Return true.
420
421 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * arch/riscv.c (riscv_tdesc_cache): Change map type.
424 (riscv_lookup_target_description): Return pointer out of
425 unique_ptr.
426 * target-descriptions.c (allocate_target_description): Add
427 comment.
428 (target_desc_deleter::operator()): Likewise.
429 * target-descriptions.h (struct target_desc_deleter): Moved to
430 gdbsupport/tdesc.h.
431 (target_desc_up): Likewise.
432
433 2020-07-17 Tom Tromey <tromey@adacore.com>
434
435 * linux-nat.c (linux_nat_target::supports_non_stop)
436 (linux_nat_target::always_non_stop_p): Use "true".
437 (linux_nat_target::supports_disable_randomization): Use "true" and
438 "false".
439
440 2020-07-16 Caroline Tice <cmtice@google.com>
441
442 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
443 (RNGLIST_HEADER_SIZE64): New constant definition.
444 (struct dwop_section_names): Add rnglists_dwo.
445 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
446 (struct loclist_header): Rename to 'loclists_rnglists_header'.
447 (struct dwo_sections): Add rnglists field.
448 (read_attribut_reprocess): Add tag parameter.
449 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
450 (cu_debug_rnglists_section): New function (decl & definition).
451 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
452 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
453 die whose range is being checked; get rnglist section from
454 cu_debug_rnglists_section, to get from either objfile or dwo file as
455 appropriate. Add cases for DW_RLE_base_addressx,
456 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
457 the base address to DW_RLE_offset_pairs (not to all ranges), moving
458 test inside if-condition and updating complaint message.
459 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
460 dwarf2_rnglists_process.
461 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
462 dwarf2_ranges_process.
463 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
464 need_ranges_base and update comment appropriately. Also pass die tag
465 to dwarf2_ranges_read.
466 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
467 need_ranges_base and update comment appropriately. Also pass die tag
468 to dwarf2_ranges_process.
469 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
470 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
471 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
472 need_ranges_base and update comment appropriately. Also pass die tag
473 to read_attribute_reprocess and dwarf2_ranges_read.
474 (read_loclist_header): Rename function to read_loclists_rnglists_header,
475 and update function comment appropriately.
476 (read_loclist_index): Call read_loclists_rnglists_header instead of
477 read_loclist_header.
478 (read_rnglist_index): New function.
479 (read_attribute_reprocess): Add tag parameter. Add code for
480 DW_FORM_rnglistx, passing tag to read_rnglist_index.
481 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
482
483 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
484
485 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
486 being resolved.
487
488 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
489
490 * arch-utils.c (show_architecture): Update formatting of messages.
491
492 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
493
494 * gdbtypes.h (struct type) <bounds>: Handle array and string
495 types.
496 * ada-lang.c (assign_aggregate): Use type::bounds on
497 array/string type.
498 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
499 * c-varobj.c (c_number_of_children): Likewise.
500 (c_describe_child): Likewise.
501 * eval.c (evaluate_subexp_for_sizeof): Likewise.
502 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
503 (f_type_print_base): Likewise.
504 * f-valprint.c (f77_array_offset_tbl): Likewise.
505 (f77_get_upperbound): Likewise.
506 (f77_print_array_1): Likewise.
507 * guile/scm-type.c (gdbscm_type_range): Likewise.
508 * m2-typeprint.c (m2_array): Likewise.
509 (m2_is_long_set_of_type): Likewise.
510 * m2-valprint.c (get_long_set_bounds): Likewise.
511 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
512 * python/py-type.c (typy_range): Likewise.
513 * rust-lang.c (rust_internal_print_type): Likewise.
514 * type-stack.c (type_stack::follow_types): Likewise.
515 * valarith.c (value_subscripted_rvalue): Likewise.
516 * valops.c (value_cast): Likewise.
517
518 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
519
520 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
521 callers to use the equivalent accessor methods.
522
523 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
524
525 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
526 (struct type) <bit_stride>: New method.
527 (TYPE_BIT_STRIDE): Remove.
528 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
529
530 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
531
532 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
533 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
534 callers to use the equivalent accessor methods instead.
535
536 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
537
538 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
539 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
540 callers to use the equivalent accessor methods instead.
541
542 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
543
544 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
545 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
546 to use dynamic_prop::kind.
547
548 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
549
550 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
551 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
552 to get the bound property's kind and check against
553 PROP_UNDEFINED.
554
555 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
556
557 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
558 all callers to use type::range_bounds followed by
559 dynamic_prop::{low,high}.
560
561 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
562
563 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
564 const_val, set_const_val, baton, set_locexpr, set_loclist,
565 set_addr_offset, variant_parts, set_variant_parts,
566 original_type, set_original_type>: New methods.
567 <kind>: Rename to...
568 <m_kind>: ... this. Update all users to use the new methods
569 instead.
570 <data>: Rename to...
571 <m_data>: ... this. Update all users to use the new methods
572 instead.
573
574 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
575
576 * gdbtypes.c (get_discrete_bounds): Return failure if
577 the range type's bounds are not both defined and constant
578 values.
579 (get_array_bounds): Update comment. Remove undefined bound check.
580
581 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
584 the type::bounds method directly.
585
586 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
587
588 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
589 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
590 are used to set the range type's bounds to use set_bounds.
591
592 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
593
594 * exec.c (_initialize_exec): Update exec-file-mismatch help.
595
596 2020-07-10 Pedro Alves <pedro@palves.net>
597
598 * gdbthread.h (inferior_ref): Define.
599 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
600 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
601 * thread.c
602 (scoped_restore_current_thread::restore):
603 Adjust to gdb::ref_ptr.
604 (scoped_restore_current_thread::~scoped_restore_current_thread):
605 Remove manual decref handling.
606 (scoped_restore_current_thread::scoped_restore_current_thread):
607 Adjust to use
608 inferior_ref::new_reference/thread_info_ref::new_reference.
609 Incref the thread before calling get_frame_id instead of after.
610 Let TARGET_CLOSE_ERROR propagate.
611
612 2020-07-10 Pedro Alves <pedro@palves.net>
613
614 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
615 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
616 NOT_AVAILABLE_ERROR.
617 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
618 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
619
620 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
621 Pedro Alves <pedro@palves.net>
622
623 PR gdb/26199
624 * infrun.c (threads_are_resumed_pending_p): Delete.
625 (do_target_wait): Remove threads_are_executing and
626 threads_are_resumed_pending_p checks from the inferior_matches
627 lambda. Update comments.
628
629 2020-07-10 Pedro Alves <pedro@palves.net>
630
631 PR gdb/26199
632 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
633 executing threads.
634
635 2020-07-10 Pedro Alves <pedro@palves.net>
636
637 PR gdb/26199
638 * infrun.c (handle_no_resumed): Handle multiple targets.
639
640 2020-07-10 Pedro Alves <pedro@palves.net>
641
642 PR gdb/26199
643 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
644 target_is_async_p.
645
646 2020-07-10 Pedro Alves <pedro@palves.net>
647
648 PR gdb/26199
649 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
650 threads, not all threads.
651
652 2020-07-10 Pedro Alves <pedro@palves.net>
653
654 PR gdb/26199
655 * remote.c (remote_target::open_1): Pass remote target pointer as
656 data to create_async_event_handler.
657 (remote_async_inferior_event_handler): Mark async event handler
658 before returning if the remote target still has either pending
659 events or unacknowledged notifications.
660
661 2020-07-10 John Baldwin <jhb@FreeBSD.org>
662
663 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
664 declaration.
665 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
666 function.
667
668 2020-07-09 John Baldwin <jhb@FreeBSD.org>
669
670 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
671 inferior_ptid.
672
673 2020-07-09 John Baldwin <jhb@FreeBSD.org>
674
675 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
676 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
677 AT_FREEBSD_PS_STRINGS.
678
679 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
680
681 * auto-load.c (auto_load_objfile_script_1): Convert drive part
682 of debugfile path on Windows.
683
684 2020-07-08 John Baldwin <jhb@FreeBSD.org>
685
686 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
687 argument to 'data'.
688
689 2020-07-08 Tom Tromey <tromey@adacore.com>
690
691 * ada-lang.c (ada_exception_message_1): Use read_memory.
692
693 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
694
695 PR python/22748
696 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
697 special handling for inline frames.
698 * findvar.c (value_of_register_lazy): Skip inline frames when
699 creating lazy register values.
700 * frame.c (frame_id_computed_p): Delete definition.
701 * frame.h (frame_id_computed_p): Delete declaration.
702
703 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * NEWS: Mention additions to Python API.
706 * python/py-arch.c (archpy_register_groups): New function.
707 (arch_object_methods): Add 'register_groups' method.
708 * python/py-registers.c (reggroup_iterator_object): New struct.
709 (reggroup_object): New struct.
710 (gdbpy_new_reggroup): New function.
711 (gdbpy_reggroup_to_string): New function.
712 (gdbpy_reggroup_name): New function.
713 (gdbpy_reggroup_iter): New function.
714 (gdbpy_reggroup_iter_next): New function.
715 (gdbpy_new_reggroup_iterator): New function
716 (gdbpy_initialize_registers): Register new types.
717 (reggroup_iterator_object_type): Define new Python type.
718 (gdbpy_reggroup_getset): New static global.
719 (reggroup_object_type): Define new Python type.
720 * python/python-internal.h
721
722 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
723
724 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
725 * python/py-arch.c (archpy_registers): New function.
726 (arch_object_methods): Add 'registers' method.
727 * python/py-registers.c: New file.
728 * python/python-internal.h
729 (gdbpy_new_register_descriptor_iterator): Declare.
730 (gdbpy_initialize_registers): Declare.
731 * python/python.c (do_start_initialization): Call
732 gdbpy_initialize_registers.
733 * NEWS: Mention additions to the Python API.
734
735 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
736
737 * NEWS: Mention new Python API method.
738 * python/py-unwind.c (pending_framepy_architecture): New function.
739 (pending_frame_object_methods): Add architecture method.
740
741 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
742
743 * gdbarch.c: Regenerate.
744 * gdbarch.h: Regenerate.
745 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
746 (gdbarch_data): Use internal_error for the case where
747 deprecated_set_gdbarch_data was originally needed.
748 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
749 and use passed in obstack.
750 (libunwind_frame_set_descr): Should no longer get back NULL from
751 gdbarch_data.
752 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
753 type.
754 * user-regs.c (user_regs_init): Update parameters, and use passed
755 in obstack.
756 (user_reg_add): Should no longer get back NULL from gdbarch_data.
757 (_initialize_user_regs): Register as a pre-init gdbarch data type.
758
759 2020-07-06 Tom de Vries <tdevries@suse.de>
760
761 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
762 End-Of-Sequence in lte_is_less_than.
763 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
764 "gdb: Don't reorder line table entries too much when sorting".
765
766 2020-07-06 Tom de Vries <tdevries@suse.de>
767
768 PR tui/26205
769 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
770
771 2020-07-05 Tom de Vries <tdevries@suse.de>
772
773 PR build/26187
774 * inferior.h (struct infcall_suspend_state_deleter): If available, use
775 std::uncaught_exceptions instead of deprecated
776 std::uncaught_exception.
777
778 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
779
780 * macroexp.h (macro_stringify): Return
781 gdb::unique_xmalloc_ptr<char>.
782 * macroexp.c (macro_stringify): Likewise.
783 * macrotab.c (fixup_definition): Update.
784
785 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
786
787 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
788 (lex_one_token): Update.
789 * macroexp.c (struct macro_buffer) <release>: Return
790 gdb::unique_xmalloc_ptr<char>.
791 (macro_stringify): Update.
792 (macro_expand): Update.
793 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
794 * macroexp.h (macro_expand_next): Likewise.
795
796 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
797
798 * macroexp.h (macro_lookup_ftype): Remove.
799 (macro_expand, macro_expand_once, macro_expand_next): Remove
800 lookup function parameters, add scope parameter.
801 * macroexp.c (scan, substitute_args, expand, maybe_expand,
802 macro_expand, macro_expand_once, macro_expand_next): Likewise.
803 * macroscope.h (standard_macro_lookup): Change parameter type
804 to macro_scope.
805 * macroscope.c (standard_macro_lookup): Likewise.
806 * c-exp.y (lex_one_token): Update.
807 * macrocmd.c (macro_expand_command): Likewise.
808 (macro_expand_once_command): Likewise.
809
810 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
811
812 * inf-loop.c (inferior_event_handler): Remove client_data param.
813 * inf-loop.h (inferior_event_handler): Likewise.
814 * infcmd.c (step_1): Adjust.
815 * infrun.c (proceed): Adjust.
816 (fetch_inferior_event): Remove client_data param.
817 (infrun_async_inferior_event_handler): Adjust.
818 * infrun.h (fetch_inferior_event): Remove `void *` param.
819 * linux-nat.c (handle_target_event): Adjust.
820 * record-btrace.c (record_btrace_handle_async_inferior_event):
821 Adjust.
822 * record-full.c (record_full_async_inferior_event_handler):
823 Adjust.
824 * remote.c (remote_async_inferior_event_handler): Adjust.
825
826 2020-07-01 Tom Tromey <tom@tromey.com>
827
828 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
829 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
830
831 2020-07-01 Tom Tromey <tom@tromey.com>
832
833 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
834 tui_gen_win_info.
835 (tui_win_info::make_window): Merge with
836 tui_gen_win_info::make_window.
837 (tui_win_info::make_visible): Move from tui_gen_win_info.
838 * tui/tui-win.c (tui_win_info::max_width): Move from
839 tui_gen_win_info.
840 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
841 type.
842 <window_factory>: Likewise.
843 * tui/tui-layout.c (tui_win_info::resize): Move from
844 tui_gen_win_info.
845 (make_standard_window): Change return type.
846 (get_locator_window, tui_get_window_by_name): Likewise.
847 (tui_layout_window::apply): Remove a cast.
848 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
849 (struct tui_win_info): Merge with tui_gen_win_info.
850 (struct tui_gen_win_info): Remove.
851
852 2020-07-01 Tom Tromey <tom@tromey.com>
853
854 * tui/tui-stack.h (struct tui_locator_window): Derive from
855 tui_win_info.
856 <do_scroll_horizontal, do_scroll_vertical>: New methods.
857 <can_box>: New method.
858
859 2020-07-01 Tom Tromey <tom@tromey.com>
860
861 * tui/tui-stack.h (struct tui_locator_window): Remove body.
862
863 2020-07-01 Tom Tromey <tom@tromey.com>
864
865 * tui/tui-regs.c (tui_data_window::display_registers_from)
866 (tui_data_window::display_registers_from)
867 (tui_data_window::first_data_item_displayed)
868 (tui_data_window::delete_data_content_windows): Update.
869 (tui_data_window::refresh_window, tui_data_window::no_refresh):
870 Remove.
871 (tui_data_window::check_register_values): Update.
872 (tui_data_item_window::rerender): Add parameters. Update.
873 (tui_data_item_window::refresh_window): Remove.
874 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
875 virtual.
876 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
877 tui_gen_win_info.
878 <refresh_window, max_height, min_height>: Remove.
879 <rerender>: Add parameters.
880 <x, y, visible>: New members.
881 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
882 <m_item_width>: New member.
883
884 2020-07-01 Tom Tromey <tom@tromey.com>
885
886 * tui/tui-regs.c (tui_data_window::show_register_group)
887 (tui_data_window::check_register_values): Update.
888 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
889 from item_no.
890
891 2020-07-01 Tom Tromey <tom@tromey.com>
892
893 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
894 useless "if".
895
896 2020-07-01 Tom Tromey <tom@tromey.com>
897
898 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
899 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
900
901 2020-07-01 Tom Tromey <tom@tromey.com>
902
903 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
904 * tui/tui-winsource.h (enum tui_line_or_address_kind)
905 (struct tui_line_or_address): Move from tui-data.h.
906 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
907 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
908 (tui_cmd_window, tui_source_window_base, tui_source_window)
909 (tui_disasm_window): Don't declare.
910 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
911 to tui-winsource.h.
912 (SINGLE_KEY): Move to tui-stack.c.
913
914 2020-07-01 Tom Tromey <tom@tromey.com>
915
916 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
917 std::string.
918 * tui/tui-regs.c (class tab_expansion_file): New.
919 (tab_expansion_file::write): New method.
920 (tui_register_format): Change return type. Use
921 tab_expansion_file.
922 (tui_get_register, tui_data_window::display_registers_from)
923 (tui_data_item_window::rerender): Update.
924 * tui/tui-io.h (tui_expand_tabs): Don't declare.
925 * tui/tui-io.c (tui_expand_tabs): Remove.
926
927 2020-07-01 Tom Tromey <tom@tromey.com>
928
929 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
930
931 2020-07-01 Fangrui Song <maskray@google.com>
932
933 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
934
935 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
936
937 * dwarf2/read.c (set_die_type): Removed conditions to restrict
938 forms for DW_AT_associated and DW_AT_allocated attributes,
939 which is already checked in function attr_to_dynamic_prop.
940
941 2020-06-30 Tom Tromey <tromey@adacore.com>
942
943 * dwarf2/read.c (quirk_rust_enum): Correctly call
944 alloc_rust_variant for default-less enum.
945
946 2020-06-30 Tom Tromey <tromey@adacore.com>
947
948 PR build/26183:
949 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
950 gdb::to_string.
951
952 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
953
954 * gdbarch.sh (displaced_step_copy_insn): Update doc.
955 * gdbarch.h: Re-generate.
956
957 2020-06-28 Tom Tromey <tom@tromey.com>
958
959 * command.h (cmd_types): Remove.
960 (cmd_type): Don't declare.
961 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
962 typedef.
963 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
964 * cli/cli-decode.c (cmd_type): Remove.
965
966 2020-06-27 Pedro Alves <palves@redhat.com>
967
968 * fork-child.c (prefork_hook): Adjust.
969 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
970 Delete.
971 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
972 * inferior.c (inferior::set_tty, inferior::tty): New methods.
973 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
974 Remove declarations.
975 (struct inferior) <set_tty, tty>: New methods.
976 (struct inferior) <terminal>: Rename to ...
977 (struct inferior) <m_terminal>: ... this and make private.
978 * main.c (captured_main_1): Adjust.
979 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
980 (mi_cmd_inferior_tty_show): Adjust.
981 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
982 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
983
984 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
985
986 * configure.ac: Add --enable-libctf: handle --disable-static
987 properly.
988 * acinclude.m4: sinclude ../config/enable.m4.
989 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
990 (LIBCTF): Substitute in.
991 (CTF_DEPS): New, likewise.
992 (CLIBS): libctf needs symbols from libbfd: move earlier.
993 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
994 flags.
995 * ctfread.c: Surround in ENABLE_LIBCTF.
996 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
997 * configure: Regenerate.
998 * config.in: Likewise.
999
1000 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1003
1004 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1005
1006 * inferior.h (struct inferior) <terminal>: Change type to
1007 gdb::unique_xmalloc_ptr<char>.
1008 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1009 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1010 field, adjust to unique pointer.
1011 (get_inferior_io_terminal): Adjust to unique pointer.
1012
1013 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1014
1015 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1016 registers, not just the known core set of registers.
1017
1018 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1019
1020 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1021 fflags, frm, and fcsr registers.
1022 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1023 restore groups.
1024 (riscv_tdesc_unknown_reg): New function.
1025 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1026 tdesc_use_registers.
1027 * riscv-tdep.h (struct gdbarch_tdep): Add
1028 unknown_csrs_first_regnum, unknown_csrs_count,
1029 duplicate_fflags_regnum, duplicate_frm_regnum, and
1030 duplicate_fcsr_regnum fields.
1031
1032 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1035 callback, use the callback (when not null) to help number unknown
1036 registers.
1037 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1038 (tdesc_use_registers): Add extra parameter to declaration.
1039
1040 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1041
1042 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1043 in the file.
1044 (class riscv_pending_register_alias): Likewise.
1045 (riscv_register_feature::register_info): Change 'required_p' field
1046 to 'required', and change its type. Add 'check' member function.
1047 (riscv_register_feature::register_info::check): Define new member
1048 function.
1049 (riscv_xreg_feature): Change initialisation of 'required' field.
1050 (riscv_freg_feature): Likewise.
1051 (riscv_virtual_feature): Likewise.
1052 (riscv_csr_feature): Likewise.
1053 (riscv_check_tdesc_feature): Take extra parameter, the csr
1054 tdesc_feature, rewrite the function to use the new
1055 riscv_register_feature::register_info::check function.
1056 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1057
1058 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1059
1060 * features/Makefile: Remove all references to the deleted files
1061 below.
1062 * features/riscv/32bit-csr.c: Deleted.
1063 * features/riscv/32bit-csr.xml: Deleted.
1064 * features/riscv/64bit-csr.c: Deleted.
1065 * features/riscv/64bit-csr.xml: Deleted.
1066 * features/riscv/rebuild-csr-xml.sh: Deleted.
1067
1068 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1071 whitespace error for declaration of names member variable.
1072 (struct riscv_register_feature): Add new prefer_first_name member
1073 variable, and fix whitespace error in declaration of registers.
1074 (riscv_xreg_feature): Initialize prefer_first_name field.
1075 (riscv_freg_feature): Likewise.
1076 (riscv_virtual_feature): Likewise.
1077 (riscv_csr_feature): Likewise.
1078 (riscv_register_name): Expand on comments. Remove register name
1079 modifications for CSR and virtual registers.
1080
1081 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1082
1083 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1084 errors.
1085
1086 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1087
1088 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1089 riscv-opc.h.
1090 (class riscv_pending_register_alias): New class.
1091 (riscv_check_tdesc_feature): Take vector of pending aliases and
1092 populate it as appropriate.
1093 (riscv_setup_register_aliases): Delete.
1094 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1095 to riscv_check_tdesc_feature in all cases. Use the vector to
1096 create the register aliases.
1097
1098 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1099
1100 * sol2-tdep.c (sol2_static_transform_name): Remove.
1101 (sol2_init_abi): Don't register it.
1102 * gdbarch.sh (static_transform_name): Remove.
1103 * gdbarch.c, gdbarch.h: Regenerate.
1104
1105 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1106 gdbarch_static_transform_name.
1107 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1108 * stabsread.c (define_symbol) <'X'>: Remove.
1109 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1110 handling.
1111 <'V'>: Likewise.
1112 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1113 <'S'>: Remove call to gdbarch_static_transform_name.
1114
1115 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1116
1117 * procfs.c (procfs_pre_trace): New function.
1118 (procfs_target::create_inferior): Pass it to fork_inferior.
1119
1120 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1121
1122 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1123 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1124 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1125 sol2-tdep.o, sparc-sol2-tdep.o.
1126 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1127 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1128 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1129 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1130
1131 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1132
1133 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1134 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1135 Call sol2_init_abi.
1136 Remove calls to set_gdbarch_skip_solib_resolver,
1137 set_gdbarch_core_pid_to_str.
1138 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1139 (i386_sol2_static_transform_name): Remove.
1140 (i386_sol2_init_abi): Call sol2_init_abi.
1141 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1142 set_gdbarch_static_transform_name,
1143 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1144 Use sol2_sigtramp_p.
1145 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1146 (sol2_sigtramp_p): New function.
1147 (sol2_static_transform_name): New function.
1148 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1149 (sol2_init_abi): New function.
1150 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1151 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1152 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1153 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1154 (sparc_sol2_static_transform_name): Remove.
1155 (sparc32_sol2_init_abi): Call sol2_init_abi.
1156 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1157 set_gdbarch_static_transform_name,
1158 set_gdbarch_skip_solib_resolver,
1159 set_gdbarch_core_pid_to_str.
1160 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1161 (sparc_sol2_static_transform_name): Remove
1162 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1163 call sol2_sigtramp_p.
1164 (sparc64_sol2_init_abi): Call sol2_init_abi.
1165 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1166 set_gdbarch_static_transform_name,
1167 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1168
1169 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1170
1171 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1172 * exec.c (validate_exec_file): If from_tty, set both
1173 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1174 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1175 and from_tty, unconditionally ask a confirmation.
1176
1177 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * target-descriptions.c (tdesc_architecture_name): Protect against
1180 NULL pointer dereference.
1181 (maint_print_xml_tdesc_cmd): New function.
1182 (_initialize_target_descriptions): Register new 'maint print
1183 xml-tdesc' command and give it the filename completer.
1184 * NEWS: Mention new 'maint print xml-tdesc' command.
1185
1186 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1187
1188 * target-descriptions.c (class tdesc_compatible_info): New class.
1189 (struct target_desc): Change type of compatible vector.
1190 (tdesc_compatible_p): Update for change in type of
1191 target_desc::compatible.
1192 (tdesc_compatible_info_list): New function.
1193 (tdesc_compatible_info_arch_name): New function.
1194 (tdesc_add_compatible): Update for change in type of
1195 target_desc::compatible.
1196 (print_c_tdesc::visit_pre): Likewise.
1197
1198 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1199
1200 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1201 whitespace to underscore.
1202 (maint_print_c_tdesc_cmd): Use fake filename for target
1203 descriptions that came from the target.
1204 (_initialize_target_descriptions): Add filename command completion
1205 for 'maint print c-tdesc'.
1206
1207 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1208
1209 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1210 lines.
1211
1212 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1213
1214 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1215 lines.
1216 (dwarf2_find_location_expression): Likewise.
1217 (call_site_parameter_matches): Likewise.
1218 (dwarf2_compile_expr_to_ax): Likewise.
1219 (disassemble_dwarf_expression): Likewise.
1220 (loclist_describe_location): Likewise.
1221
1222 2020-06-23 Pedro Alves <palves@redhat.com>
1223
1224 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1225 progspace-and-thread.h. Include scoped-mock-context.h instead.
1226 (register_to_value_test): Use scoped_mock_context.
1227 * regcache.c: Include "scoped-mock-context.h".
1228 (cooked_read_test): Don't error out if a target is already pushed.
1229 Use scoped_mock_context. Adjust.
1230 * scoped-mock-context.h: New file.
1231
1232 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1233
1234 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1235 initializer.
1236 (ada_language::is_string_type_p): New member function.
1237 * c-lang.c (c_language_data): Delete la_is_string_type_p
1238 initializer.
1239 (cplus_language_data): Likewise.
1240 (asm_language_data): Likewise.
1241 (minimal_language_data): Likewise.
1242 * d-lang.c (d_language_data): Likewise.
1243 * f-lang.c (f_is_string_type_p): Delete function, implementation
1244 moved to f_language::is_string_type_p.
1245 (f_language_data): Delete la_is_string_type_p initializer.
1246 (f_language::is_string_type_p): New member function,
1247 implementation from f_is_string_type_p.
1248 * go-lang.c (go_is_string_type_p): Delete function, implementation
1249 moved to go_language::is_string_type_p.
1250 (go_language_data): Delete la_is_string_type_p initializer.
1251 (go_language::is_string_type_p): New member function,
1252 implementation from go_is_string_type_p.
1253 * language.c (language_defn::is_string_type_p): Define new member
1254 function.
1255 (default_is_string_type_p): Make static, add comment copied from
1256 header file.
1257 (unknown_language_data): Delete la_is_string_type_p initializer.
1258 (unknown_language::is_string_type_p): New member function.
1259 (auto_language_data): Delete la_is_string_type_p initializer.
1260 (auto_language::is_string_type_p): New member function.
1261 * language.h (language_data): Delete la_is_string_type_p field.
1262 (language_defn::is_string_type_p): Declare new function.
1263 (default_is_string_type_p): Delete desclaration, move comment to
1264 definition.
1265 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1266 moved to m2_language::is_string_type_p.
1267 (m2_language_data): Delete la_is_string_type_p initializer.
1268 (m2_language::is_string_type_p): New member function,
1269 implementation from m2_is_string_type_p.
1270 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1271 initializer.
1272 * opencl-lang.c (opencl_language_data): Likewise.
1273 * p-lang.c (pascal_is_string_type_p): Delete function,
1274 implementation moved to pascal_language::is_string_type_p.
1275 (pascal_language_data): Delete la_is_string_type_p initializer.
1276 (pascal_language::is_string_type_p): New member function,
1277 implementation from pascal_is_string_type_p.
1278 * rust-lang.c (rust_is_string_type_p): Delete function,
1279 implementation moved to rust_language::is_string_type_p.
1280 (rust_language_data): Delete la_is_string_type_p initializer.
1281 (rust_language::is_string_type_p): New member function,
1282 implementation from rust_is_string_type_p.
1283 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1284 is_string_type_p.
1285
1286 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1287
1288 * ada-lang.c (ada_language_data): Delete la_print_typedef
1289 initializer.
1290 (ada_language::print_typedef): New member function.
1291 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1292 (cplus_language_data): Likewise.
1293 (asm_language_data): Likewise.
1294 (minimal_language_data): Likewise.
1295 * d-lang.c (d_language_data): Likewise.
1296 * f-lang.c (f_language_data): Likewise.
1297 (f_language::print_typedef): New member function.
1298 * go-lang.c (go_language_data): Delete la_print_typedef
1299 initializer.
1300 * language.c (language_defn::print_typedef): Define member
1301 function.
1302 (unknown_language_data): Delete la_print_typedef initializer.
1303 (unknown_language::print_typedef): New member function.
1304 (auto_language_data): Delete la_print_typedef initializer.
1305 (auto_language::print_typedef): New member function.
1306 * language.h (language_data): Delete la_print_typedef field.
1307 (language_defn::print_typedef): Declare new member function.
1308 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1309 (default_print_typedef): Delete declaration.
1310 * m2-lang.c (m2_language_data): Delete la_print_typedef
1311 initializer.
1312 (m2_language::print_typedef): New member function.
1313 * objc-lang.c (objc_language_data): Delete la_print_typedef
1314 initializer.
1315 * opencl-lang.c (opencl_language_data): Likewise.
1316 * p-lang.c (pascal_language_data): Likewise.
1317 (pascal_language::print_typedef): New member function.
1318 * rust-lang.c (rust_print_typedef): Delete function,
1319 implementation moved to rust_language::print_typedef.
1320 (rust_language): Delete la_print_typedef initializer.
1321 (rust_language::print_typedef): New member function,
1322 implementation from rust_print_typedef.
1323 * typeprint.c (default_print_typedef): Delete.
1324
1325 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1326
1327 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1328 (ada_language::printstr): New member function.
1329 * c-lang.c (c_language_data): Delete la_printstr initializer.
1330 (cplus_language_data): Likewise.
1331 (asm_language_data): Likewise.
1332 (minimal_language_data): Likewise.
1333 * d-lang.c (d_language_data): Likewise.
1334 * f-lang.c (f_printstr): Rename to f_language::printstr.
1335 (f_language_data): Delete la_printstr initializer.
1336 (f_language::printstr): New member function, implementation from
1337 f_printstr.
1338 * go-lang.c (go_language_data): Delete la_printstr initializer.
1339 * language.c (language_defn::printstr): Define new member
1340 function.
1341 (unk_lang_printstr): Delete.
1342 (unknown_language_data): Delete la_printstr initializer.
1343 (unknown_language::printstr): New member function.
1344 (auto_language_data): Delete la_printstr initializer.
1345 (auto_language::printstr): New member function.
1346 * language.h (language_data): Delete la_printstr field.
1347 (language_defn::printstr): Declare new member function.
1348 (LA_PRINT_STRING): Update call to printstr.
1349 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1350 (m2_language_data): Delete la_printstr initializer.
1351 (m2_language::printstr): New member function, implementation from
1352 m2_printstr.
1353 * objc-lang.c (objc_language_data): Delete la_printstr
1354 initializer.
1355 * opencl-lang.c (opencl_language_data): Likewise.
1356 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1357 (pascal_language_data): Delete la_printstr initializer.
1358 (pascal_language::printstr): New member function, implementation
1359 from pascal_printstr.
1360 * p-lang.h (pascal_printstr): Delete declaration.
1361 * rust-lang.c (rust_printstr): Update header comment.
1362 (rust_language_data): Delete la_printstr initializer.
1363 (rust_language::printstr): New member function.
1364
1365 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1368 (ada_language::printchar): New member function.
1369 * c-lang.c (c_language_data): Delete la_printchar initializer.
1370 (cplus_language_data): Likewise.
1371 (asm_language_data): Likewise.
1372 (minimal_language_data): Likewise.
1373 * d-lang.c (d_language_data): Likewise.
1374 * f-lang.c (f_printchar): Rename to f_language::printchar.
1375 (f_language_data): Delete la_printchar initializer.
1376 (f_language::printchar): New member function, implementation from
1377 f_printchar.
1378 * go-lang.c (go_language_data): Delete la_printchar initializer.
1379 * language.c (unk_lang_printchar): Delete.
1380 (language_defn::printchar): Define new member function.
1381 (unknown_language_data): Delete la_printchar initializer.
1382 (unknown_language::printchar): New member function.
1383 (auto_language_data): Delete la_printchar initializer.
1384 (auto_language::printchar): New member function.
1385 * language.h (language_data): Delete la_printchar field.
1386 (language_defn::printchar): Declare new member function.
1387 (LA_PRINT_CHAR): Update call to printchar.
1388 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1389 (m2_language::printchar): New member function.
1390 * objc-lang.c (objc_language_data): Delete la_printchar
1391 initializer.
1392 * opencl-lang.c (opencl_language_data): Likewise.
1393 * p-lang.c (pascal_language_data): Delete la_printchar
1394 initializer.
1395 (pascal_language::printchar): New member function.
1396 * rust-lang.c (rust_printchar): Rename to
1397 rust_language::printchar.
1398 (rust_language_data): Delete la_printchar initializer.
1399 (rust_language::printchar): New member function, implementation
1400 from rust_printchar.
1401
1402 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1405 (ada_language_data): Delete la_emitchar initializer.
1406 (ada_language::emitchar): New member function, implementation from
1407 emit_char.
1408 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1409 (cplus_language_data): Likewise.
1410 (asm_language_data): Likewise.
1411 (minimal_language_data): Likewise.
1412 * d-lang.c (d_language_data): Likewise.
1413 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1414 (f_language_data): Delete la_emitchar initializer.
1415 (f_language::emitchar): New member function, implementation from
1416 f_emit_char.
1417 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1418 * language.c (unk_lang_emit_char): Delete.
1419 (language_defn::emitchar): New member function definition.
1420 (unknown_language_data): Delete la_emitchar initializer.
1421 (unknown_language::emitchar): New member function.
1422 (auto_language_data): Delete la_emitchar initializer.
1423 (auto_language::emitchar): New member function.
1424 * language.h (language_data): Delete la_emitchar field.
1425 (language_defn::emitchar): New member field declaration.
1426 (LA_EMIT_CHAR): Update call to emitchar.
1427 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1428 (m2_language_data): Delete la_emitchar initializer.
1429 (m2_language::emitchar): New member function, implementation from
1430 m2_emit_char.
1431 * objc-lang.c (objc_language_data): Delete la_emitchar
1432 initializer.
1433 * opencl-lang.c (opencl_language_data): Likewise.
1434 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1435 (pascal_language_data): Delete la_emitchar initializer.
1436 (pascal_language::emitchar): New member function, implementation
1437 from pascal_emit_char.
1438 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1439 (rust_language_data): Delete la_emitchar initializer.
1440 (rust_language::emitchar): New member function, implementation
1441 from rust_emitchar.
1442
1443 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1444
1445 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1446 (ada_language_data): Delete la_post_parser initializer.
1447 (ada_language::post_parser): New member function.
1448 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1449 (cplus_language_data): Likewise.
1450 (asm_language_data): Likewise.
1451 (minimal_language_data): Likewise.
1452 * d-lang.c (d_language_data): Likewise.
1453 * f-lang.c (f_language_data): Likewise.
1454 * go-lang.c (go_language_data): Likewise.
1455 * language.c (unknown_language_data): Likewise.
1456 (auto_language_data): Likewise.
1457 * language.h (language_data): Delete la_post_parser field.
1458 (language_defn::post_parser): New member function.
1459 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1460 * objc-lang.c (objc_language_data): Likewise.
1461 * opencl-lang.c (opencl_language_data): Likewise.
1462 * p-lang.c (pascal_language_data): Likewise.
1463 * parse.c (parse_exp_in_context): Update call to post_parser.
1464 (null_post_parser): Delete definition.
1465 * parser-defs.h (null_post_parser): Delete declaration.
1466 * rust-lang.c (rust_language_data): Delete la_post_parser
1467 initializer.
1468
1469 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1470
1471 * ada-lang.c (parse): Rename to ada_language::parser.
1472 (ada_language_data): Delete la_parser initializer.
1473 (ada_language::parser): New member function, implementation from
1474 parse.
1475 * c-lang.c (c_language_data): Delete la_parser initializer.
1476 (cplus_language_data): Likewise.
1477 (asm_language_data): Likewise.
1478 (minimal_language_data): Likewise.
1479 * d-lang.c (d_language_data): Likewise.
1480 (d_language::parser): New member function.
1481 * f-lang.c (f_language_data): Delete la_parser initializer.
1482 (f_language::parser): New member function.
1483 * go-lang.c (go_language_data): Delete la_parser initializer.
1484 (go_language::parser): New member function.
1485 * language.c (unk_lang_parser): Delete.
1486 (language_defn::parser): Define new member function.
1487 (unknown_language_data): Delete la_parser initializer.
1488 (unknown_language::parser): New member function.
1489 (auto_language_data): Delete la_parser initializer.
1490 (auto_language::parser): New member function.
1491 * language.h (language_data): Delete la_parser field.
1492 (language_defn::parser): Declare new member function.
1493 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1494 (m2_language::parser): New member function.
1495 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1496 * opencl-lang.c (opencl_language_data): Likewise.
1497 * p-lang.c (pascal_language_data): Likewise.
1498 (pascal_language::parser): New member function.
1499 * parse.c (parse_exp_in_context): Update call to parser.
1500 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1501 (rust_language::parser): New member function.
1502
1503 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1504
1505 * top.c (print_gdb_configuration): Print --with-python-libdir
1506 configuration value.
1507
1508 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1509
1510 * NEWS: Mention change to the alias command.
1511
1512 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1513
1514 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1515 (alias_command_completer)
1516 (make_alias_options_def_group): New functions.
1517 (alias_opts, alias_option_defs): New struct and array.
1518 (alias_usage_error): Update usage.
1519 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1520 Use option framework.
1521 (_initialize_cli_cmds): Update alias command help.
1522 Update aliases command help.
1523 (show_user):
1524 Add NULL for new default_args lookup_cmd argument.
1525 (valid_command_p): Rename to validate_aliased_command.
1526 Add NULL for new default_args lookup_cmd argument. Verify that the
1527 aliased_command has no default args.
1528 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1529 (lookup_cmd_1, lookup_cmd): New argument default_args.
1530 (add_alias_cmd):
1531 Add NULL for new default_args lookup_cmd argument.
1532 (print_help_for_command): Show default args under the layout
1533 alias some_alias = some_aliased_cmd some_alias_default_arg.
1534 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1535 xfree default_args in destructor.
1536 * cli/cli-script.c (process_next_line, do_define_command):
1537 Add NULL for new default_args lookup_cmd argument.
1538 * command.h: Declare new default_args argument in lookup_cmd
1539 and lookup_cmd_1.
1540 * completer.c (complete_line_internal_1):
1541 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1542 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1543 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1544 Likewise.
1545 * infcmd.c (_initialize_infcmd): Likewise.
1546 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1547 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1548 * python/py-param.c (add_setshow_generic): Likewise.
1549 * remote.c (_initialize_remote): Likewise.
1550 * top.c (execute_command): Prepend default_args if command has some.
1551 (set_verbose):
1552 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1553 * tracepoint.c (validate_actionline, encode_actions_1):
1554 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1555
1556 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1557
1558 * jit.c (jit_read_descriptor): Use bool as the return type.
1559 (jit_breakpoint_re_set_internal): Use bool as the return type.
1560 Invert the return value logic; return true if the jit breakpoint
1561 has been successfully initialized.
1562 (jit_inferior_init): Update the call to
1563 jit_breakpoint_re_set_internal.
1564
1565 2020-06-22 Pedro Alves <palves@redhat.com>
1566
1567 PR gdb/25939
1568 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1569 Use the current inferior instead. Don't return
1570 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1571 wait again.
1572 * sol-thread.c (sol_thread_target::wait): Don't reference
1573 inferior_ptid.
1574 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1575 (sol_update_thread_list_callback): Use the current inferior's pid
1576 instead of inferior_ptid.
1577
1578 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1579
1580 * procfs.c: Cleanup many comments.
1581
1582 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1583 (AFTER_WATCHFLAG): Replace by value.
1584
1585 (MAIN_PROC_NAME_FORMAT): Inline ...
1586 (create_procinfo): ... here.
1587
1588 (procfs_debug_inferior): Remove SYS_exec handling.
1589 (syscall_is_exec): Likewise.
1590 (procfs_set_exec_trap): Likewise.
1591
1592 (syscall_is_lwp_exit): Inline in callers.
1593 (syscall_is_exit): Likewise.
1594 (syscall_is_exec): Likewise.
1595 (syscall_is_lwp_create): Likewise.
1596
1597 (invalidate_cache): Remove #if 0 code.
1598
1599 (make_signal_thread_runnable): Remove.
1600 (procfs_target::resume): Remove #if 0 code.
1601
1602 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1603
1604 PR gdb/25939
1605 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1606 call ...
1607 (procfs_target::create_inferior): ... here.
1608
1609 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1610
1611 * exec.c (validate_exec_file): Ensure the build-id is up to
1612 date by calling reopen_exec_file (that checks file timestamp
1613 to decide to re-read the file).
1614
1615 2020-06-18 Pedro Alves <palves@redhat.com>
1616
1617 PR gdb/25412
1618 * gdbthread.h (delete_thread, delete_thread_silent)
1619 (find_thread_ptid): Update comments.
1620 * thread.c (current_thread_): New global.
1621 (is_current_thread): Move higher, and reimplement.
1622 (inferior_thread): Reimplement.
1623 (set_thread_exited): Use bool. Add assertions.
1624 (add_thread_silent): Simplify thread-reuse handling by always
1625 calling delete_thread.
1626 (delete_thread): Remove intro comment.
1627 (find_thread_ptid): Skip exited threads.
1628 (switch_to_thread_no_regs): Write to current_thread_.
1629 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1630 INFERIOR_PTID. Clear current_thread_.
1631
1632 2020-06-18 Pedro Alves <palves@redhat.com>
1633
1634 * aix-thread.c (pd_update): Use switch_to_thread.
1635
1636 2020-06-18 Pedro Alves <palves@redhat.com>
1637
1638 * ravenscar-thread.c (ravenscar_thread_target): Update.
1639 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1640 (ravenscar_thread_target::add_active_thread): ... this. Don't
1641 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1642 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1643
1644 2020-06-18 Pedro Alves <palves@redhat.com>
1645
1646 * nat/windows-nat.c (current_windows_thread): Remove.
1647 * nat/windows-nat.h (current_windows_thread): Remove.
1648 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1649 Adjust.
1650 (display_selectors): Adjust to fetch the current
1651 windows_thread_info based on inferior_ptid.
1652 (fake_create_process): No longer write to current_windows_thread.
1653 (windows_nat_target::get_windows_debug_event):
1654 Don't set inferior_ptid or current_windows_thread.
1655 (windows_nat_target::wait): Adjust to not rely on
1656 current_windows_thread.
1657 (do_initial_windows_stuff): Now a method of windows_nat_target.
1658 Switch to the last_ptid thread.
1659 (windows_nat_target::attach): Adjust.
1660 (windows_nat_target::detach): Use switch_to_no_thread instead of
1661 writing to inferior_ptid directly.
1662 (windows_nat_target::create_inferior): Adjust.
1663
1664 2020-06-18 Pedro Alves <palves@redhat.com>
1665
1666 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1667
1668 2020-06-18 Pedro Alves <palves@redhat.com>
1669
1670 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1671 after creating it, instead of writing to inferior_ptid. Don't
1672 write to inferior_ptid.
1673
1674 2020-06-18 Pedro Alves <palves@redhat.com>
1675
1676 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1677
1678 2020-06-18 Pedro Alves <palves@redhat.com>
1679
1680 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1681 it, instead of writing to inferior_ptid.
1682
1683 2020-06-18 Pedro Alves <palves@redhat.com>
1684
1685 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1686 to inferior_ptid.
1687
1688 2020-06-18 Pedro Alves <palves@redhat.com>
1689
1690 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1691 instead of writing to inferior_ptid directly.
1692
1693 2020-06-18 Pedro Alves <palves@redhat.com>
1694
1695 * corelow.c (core_target::close): Use switch_to_no_thread instead
1696 of writing to inferior_ptid directly.
1697 (add_to_thread_list, core_target_open): Use switch_to_thread
1698 instead of writing to inferior_ptid directly.
1699
1700 2020-06-18 Pedro Alves <palves@redhat.com>
1701
1702 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1703 inferior_ptid.
1704 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1705 inferior_ptid.
1706 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1707 inferior_ptid directly.
1708 (darwin_nat_target::init_thread_list): Switch to thread, instead
1709 of writing to inferior_ptid.
1710 (darwin_nat_target::attach): Don't write to inferior_ptid.
1711 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1712
1713 2020-06-18 Pedro Alves <palves@redhat.com>
1714
1715 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1716 thread.
1717 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1718 Instead use switch_to_thread.
1719 (gnu_nat_target::detach): Use switch_to_no_thread
1720 instead of writing to inferior_ptid directly. Used passed-in
1721 inferior instead of looking up the inferior by pid.
1722
1723 2020-06-18 Pedro Alves <palves@redhat.com>
1724
1725 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1726 inferior_ptid.
1727
1728 2020-06-18 Pedro Alves <palves@redhat.com>
1729
1730 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1731 inferior_ptid.
1732 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1733 thread.
1734 (nto_procfs_target::detach): Avoid referencing
1735 inferior_ptid. Use switch_to_no_thread instead of writing to
1736 inferior_ptid directly.
1737 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1738 instead of writing to inferior_ptid directly.
1739 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1740 to thread.
1741
1742 2020-06-18 Pedro Alves <palves@redhat.com>
1743
1744 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1745 after creating it, instead of writing to inferior_ptid.
1746 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1747 to inferior_ptid directly.
1748 (gdbsim_target::wait): Don't write to inferior_ptid.
1749
1750 2020-06-18 Pedro Alves <palves@redhat.com>
1751
1752 * remote.c (remote_target::remote_notice_new_inferior): Use
1753 switch_to_thread instead of writing to inferior_ptid directly.
1754 (remote_target::add_current_inferior_and_thread): Use
1755 switch_to_no_thread instead of writing to inferior_ptid directly.
1756 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1757 and switch_to_thread instead of using set_current_inferior or
1758 writing to inferior_ptid directly.
1759
1760 2020-06-18 Pedro Alves <palves@redhat.com>
1761
1762 * tracectf.c (ctf_target_open): Switch to added thread instead of
1763 writing to inferior_ptid directly.
1764 (ctf_target::close): Use switch_to_no_thread instead of writing to
1765 inferior_ptid directly.
1766
1767 2020-06-18 Pedro Alves <palves@redhat.com>
1768
1769 * tracefile-tfile.c (tfile_target_open): Don't write to
1770 inferior_ptid directly, instead switch to added thread.
1771 (tfile_target::close): Use switch_to_no_thread instead of writing
1772 to inferior_ptid directly.
1773
1774 2020-06-18 Pedro Alves <palves@redhat.com>
1775
1776 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1777 (procfs_target::detach): Use switch_to_no_thread
1778 instead of writing to inferior_ptid directly.
1779 (do_attach): Change return type to void. Switch to the added
1780 thread.
1781 (procfs_target::create_inferior): Switch to the added thread.
1782 (procfs_do_thread_registers): Don't write to inferior_ptid.
1783
1784 2020-06-18 Pedro Alves <palves@redhat.com>
1785
1786 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1787 of writing to inferior_ptid.
1788 (scoped_restore_exited_inferior): Delete.
1789 (handle_vfork_child_exec_or_exit): Simplify using
1790 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1791 instead of writing to inferior_ptid.
1792 (THREAD_STOPPED_BY): Delete.
1793 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1794 (thread_stopped_by_hw_breakpoint): Delete.
1795 (save_waitstatus): Use
1796 scoped_restore_current_thread+switch_to_thread, and call
1797 target_stopped_by_watchpoint instead of
1798 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1799 instead of thread_stopped_by_sw_breakpoint, and
1800 target_stopped_by_hw_breakpoint instead of
1801 thread_stopped_by_hw_breakpoint.
1802 (handle_inferior_event)
1803 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1804 inferior_ptid directly, nor
1805 set_current_inferior/set_current_program_space. Use
1806 switch_to_thread / switch_to_inferior_no_thread instead.
1807
1808 2020-06-18 Pedro Alves <palves@redhat.com>
1809
1810 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1811 instead of writing to inferior_ptid.
1812
1813 2020-06-18 Pedro Alves <palves@redhat.com>
1814
1815 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1816 added thread.
1817 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1818 to the added thread.
1819 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1820 instead of writing to inferior_ptid.
1821
1822 2020-06-18 Pedro Alves <palves@redhat.com>
1823
1824 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1825 (register_to_value_test): Mock a program_space too. Heap-allocate
1826 the address space. Don't write to inferior_ptid. Use
1827 switch_to_thread instead.
1828
1829 2020-06-18 Pedro Alves <palves@redhat.com>
1830
1831 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1832 Delete.
1833 (find_signalled_thread()): New, factored out from
1834 linux_make_corefile_notes and adjusted to handle exited threads.
1835 (linux_make_corefile_notes): Adjust to use the new
1836 find_signalled_thread.
1837
1838 2020-06-18 Pedro Alves <palves@redhat.com>
1839
1840 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1841 of saving/restoring inferior_ptid.
1842
1843 2020-06-17 Tom Tromey <tom@tromey.com>
1844
1845 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1846 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1847 declare.
1848 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1849
1850 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1851
1852 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1853 of partial symtabs.
1854
1855 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1856
1857 * regformats/reg-arm.dat: Remove.
1858 * regformats/reg-bfin.dat: Remove.
1859 * regformats/reg-cris.dat: Remove.
1860 * regformats/reg-crisv32.dat: Remove.
1861 * regformats/reg-m32r.dat: Remove.
1862 * regformats/reg-tilegx.dat: Remove.
1863 * regformats/reg-tilegx32.dat: Remove.
1864
1865 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1866
1867 * features/Makefile (WHICH): Remove arm files.
1868 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1869 * regformats/arm/arm-with-neon.dat: Remove.
1870 * regformats/arm/arm-with-vfpv2.dat: Remove.
1871 * regformats/arm/arm-with-vfpv3.dat: Remove.
1872
1873 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1874
1875 * features/Makefile (XMLTOC): Remove rx.xml.
1876
1877 2020-06-17 Pedro Alves <palves@redhat.com>
1878
1879 * gdbthread.h (thread_control_state) <trap_expected> Update
1880 comments.
1881
1882 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1885 ada_language::lookup_symbol_nonlocal.
1886 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1887 (ada_language::lookup_symbol_nonlocal): New member function,
1888 implementation from ada_lookup_symbol_nonlocal.
1889 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1890 initializer.
1891 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1892 initializer.
1893 (cplus_language::lookup_symbol_nonlocal): New member function.
1894 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1895 (minimal_language_data) Likewise.
1896 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1897 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1898 initializer.
1899 (d_language::lookup_symbol_nonlocal): New member function.
1900 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1901 initializer.
1902 (f_language::lookup_symbol_nonlocal): New member function.
1903 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1904 initializer.
1905 * language.c (unknown_language_data): Likewise.
1906 (auto_language_data): Likewise.
1907 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1908 field.
1909 (language_defn::lookup_symbol_nonlocal): New member function.
1910 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1911 initializer.
1912 * objc-lang.c (objc_language_data): Likewise.
1913 * opencl-lang.c (opencl_language_data): Likewise.
1914 * p-lang.c (pascal_language_data): Likewise.
1915 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1916 rust_language::lookup_symbol_nonlocal.
1917 (rust_language_data): Delete la_lookup_symbol_nonlocal
1918 initializer.
1919 (rust_language::lookup_symbol_nonlocal): New member function,
1920 implementation from rust_lookup_symbol_nonlocal.
1921 * symtab.c (lookup_symbol_aux): Update call to
1922 lookup_symbol_nonlocal.
1923 (basic_lookup_symbol_nonlocal): Rename to...
1924 (language_defn::lookup_symbol_nonlocal): ...this, and update
1925 header comment. Remove language_defn parameter, and replace with
1926 uses of `this'.
1927 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1928
1929 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1932 initializer.
1933 (ada_language::value_print_inner): New member function.
1934 * c-lang.c (c_language_data): Delete la_value_print_inner
1935 initializer.
1936 (cplus_language_data): Likewise.
1937 (asm_language_data): Likewise.
1938 (minimal_language_data): Likewise.
1939 * d-lang.c (d_language_data): Likewise.
1940 (d_language::value_print_inner): New member function.
1941 * f-lang.c (f_language_data): Delete la_value_print_inner
1942 initializer.
1943 (f_language::value_print_inner): New member function.
1944 * f-lang.h (f_value_print_innner): Rename to...
1945 (f_value_print_inner): ...this (note spelling of 'inner').
1946 * f-valprint.c (f_value_print_innner): Rename to...
1947 (f_value_print_inner): ...this (note spelling of 'inner').
1948 * go-lang.c (go_language_data): Delete la_value_print_inner
1949 initializer.
1950 (go_language::value_print_inner): New member function.
1951 * language.c (language_defn::value_print_inner): Define new member
1952 function.
1953 (unk_lang_value_print_inner): Delete.
1954 (unknown_language_data): Delete la_value_print_inner initializer.
1955 (unknown_language::value_print_inner): New member function.
1956 (auto_language_data): Delete la_value_print_inner initializer.
1957 (auto_language::value_print_inner): New member function.
1958 * language.h (language_data): Delete la_value_print_inner field.
1959 (language_defn::value_print_inner): Delcare new member function.
1960 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1961 initializer.
1962 (m2_language::value_print_inner): New member function.
1963 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1964 initializer.
1965 * opencl-lang.c (opencl_language_data): Likewise.
1966 * p-lang.c (pascal_language_data): Likewise.
1967 (pascal_language::value_print_inner): New member function.
1968 * rust-lang.c (rust_language_data): Delete la_value_print_inner
1969 initializer.
1970 (rust_language::value_print_inner): New member function.
1971 * valprint.c (do_val_print): Update call to value_print_inner.
1972
1973 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1974
1975 * ada-lang.c (ada_language_data): Delete la_value_print
1976 initializer.
1977 (ada_language::value_print): New member function.
1978 * c-lang.c (c_language_data): Delete la_value_print initializer.
1979 (cplus_language_data): Likewise.
1980 (asm_language_data): Likewise.
1981 (minimal_language_data): Likewise.
1982 * d-lang.c (d_language_data): Likewise.
1983 * f-lang.c (f_language_data): Likewise.
1984 * go-lang.c (go_language_data): Likewise.
1985 * language.c (unk_lang_value_print): Delete.
1986 (language_defn::value_print): Define new member function.
1987 (unknown_language_data): Delete la_value_print initializer.
1988 (unknown_language::value_print): New member function.
1989 (auto_language_data): Delete la_value_print initializer.
1990 (auto_language::value_print): New member function.
1991 * language.h (language_data): Delete la_value_print field.
1992 (language_defn::value_print): Declare new member function.
1993 (LA_VALUE_PRINT): Update call to value_print.
1994 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
1995 * objc-lang.c (objc_language_data): Likewise.
1996 * opencl-lang.c (opencl_language_data): Likewise.
1997 * p-lang.c (pascal_language_data): Likewise.
1998 (pascal_language::value_print): New member function.
1999 * rust-lang.c (rust_language_data): Delete la_value_print
2000 initializer.
2001
2002 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2003
2004 * ada-lang.c (ada_watch_location_expression): Rename to
2005 ada_language::watch_location_expression.
2006 (ada_language_data): Delete la_watch_location_expression
2007 initializer.
2008 (ada_language::watch_location_expression): New member function,
2009 implementation from ada_watch_location_expression.
2010 * breakpoint.c (watch_command_1): Update call to
2011 watch_location_expression.
2012 * c-lang.c (c_watch_location_expression): Rename to
2013 language_defn::watch_location_expression.
2014 (c_language_data): Delete la_watch_location_expression
2015 initializer.
2016 (cplus_language_data): Likewise.
2017 (asm_language_data): Likewise.
2018 (minimal_language_data): Likewise.
2019 * c-lang.h (c_watch_location_expression): Delete declaration.
2020 * d-lang.c (d_language_data): Delete la_watch_location_expression
2021 initializer.
2022 * f-lang.c (f_language_data): Likewise.
2023 * go-lang.c (go_language_data): Likewise.
2024 * language.c (language_defn::watch_location_expression): Member
2025 function implementation from c_watch_location_expression.
2026 (unknown_language_data): Delete la_watch_location_expression
2027 initializer.
2028 (auto_language_data): Likewise.
2029 * language.h (language_data): Delete la_watch_location_expression
2030 field.
2031 (language_defn::watch_location_expression): Declare new member
2032 function.
2033 * m2-lang.c (m2_language_data): Delete
2034 la_watch_location_expression initializer.
2035 * objc-lang.c (objc_language_data): Likewise.
2036 * opencl-lang.c (opencl_language_data): Likewise.
2037 * p-lang.c (pascal_language_data): Likewise.
2038 * rust-lang.c (rust_watch_location_expression): Rename to
2039 rust_language::watch_location_expression.
2040 (rust_language_data): Delete la_watch_location_expression
2041 initializer.
2042 (rust_language::watch_location_expression): New member function,
2043 implementation from rust_watch_location_expression.
2044
2045 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2046
2047 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2048 ada_language::collect_symbol_completion_matches.
2049 (ada_language_data): Delete la_collect_symbol_completion_matches
2050 initializer.
2051 (ada_language::collect_symbol_completion_matches): New member
2052 function, implementation from
2053 ada_collect_symbol_completion_matches.
2054 * c-lang.c (c_language_data): Delete
2055 la_collect_symbol_completion_matches initializer.
2056 (cplus_language_data): Likewise.
2057 (asm_language_data): Likewise.
2058 (minimal_language_data): Likewise.
2059 * d-lang.c (d_language_data): Likewise.
2060 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2061 f_language::collect_symbol_completion_matches.
2062 (f_language_data): Delete la_collect_symbol_completion_matches
2063 initializer.
2064 (f_language::collect_symbol_completion_matches) New member
2065 function, implementation from f_collect_symbol_completion_matches.
2066 * go-lang.c (go_language_data): Delete
2067 la_collect_symbol_completion_matches initializer.
2068 * language.c (unknown_language_data): Likewise.
2069 (auto_language_data): Likewise.
2070 * language.h (language_data): Delete
2071 la_collect_symbol_completion_matches field.
2072 (language_defn::collect_symbol_completion_matches): New member
2073 function.
2074 * m2-lang.c (m2_language_data): Delete
2075 la_collect_symbol_completion_matches initializer.
2076 * objc-lang.c (objc_language_data): Likewise.
2077 * opencl-lang.c (opencl_language_data): Likewise.
2078 * p-lang.c (pascal_language_data): Likewise.
2079 * rust-lang.c (rust_language_data): Likewise.
2080 * symtab.c (default_collect_symbol_completion_matches): Delete.
2081 (collect_symbol_completion_matches): Update call to
2082 collect_symbol_completion_matches.
2083 (collect_symbol_completion_matches_type): Likewise.
2084 * symtab.h (default_collect_symbol_completion_matches): Delete
2085 declaration.
2086
2087 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2088
2089 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2090 (ada_language_data): Delete la_word_break_characters initializer.
2091 (ada_language::word_break_characters): New member function.
2092 * c-lang.c (c_language_data): Delete la_word_break_characters
2093 initializer.
2094 (cplus_language_data): Likewise.
2095 (asm_language_data): Likewise.
2096 (minimal_language_data): Likewise.
2097 * completer.c: Update global comment.
2098 (advance_to_expression_complete_word_point): Update call to
2099 word_break_characters.
2100 (complete_files_symbols): Likewise.
2101 (complete_line_internal_1): Likewise.
2102 (default_completer_handle_brkchars): Likewise.
2103 (skip_quoted_chars): Likewise.
2104 * d-lang.c (d_language_data): Delete la_word_break_characters
2105 initializer.
2106 * f-lang.c (f_word_break_characters): Delete.
2107 (f_language_data): Delete la_word_break_characters initializer.
2108 (f_language::word_break_characters): New member function.
2109 * go-lang.c (go_language_data): Delete la_word_break_characters
2110 initializer.
2111 * language.c (unknown_language_data): Likewise.
2112 (auto_language_data): Likewise.
2113 * language.h (default_word_break_characters): Move declaration to
2114 earlier in the file.
2115 (language_data): Delete la_word_break_characters field.
2116 (language_defn::word_break_characters): New member function.
2117 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2118 initializer.
2119 * objc-lang.c (objc_language_data): Likewise.
2120 * opencl-lang.c (opencl_language_data): Likewise.
2121 * p-lang.c (pascal_language_data): Likewise.
2122 * rust-lang.c (rust_language_data): Likewise.
2123
2124 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2125
2126 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2127 (ada_language_data): Delete la_get_symbol_name_matcher
2128 initializer.
2129 (language_defn::get_symbol_name_matcher_inner): New member
2130 function.
2131 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2132 initializer.
2133 (cplus_language_data): Likewise.
2134 (cplus_language::get_symbol_name_matcher_inner): New member
2135 function.
2136 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2137 (minimal_language_data): Likewise.
2138 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2139 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2140 initializer.
2141 * dictionary.c (iter_match_first_hashed): Update call to
2142 get_symbol_name_matcher.
2143 (iter_match_next_hashed): Likewise.
2144 (iter_match_next_linear): Likewise.
2145 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2146 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2147 initializer.
2148 (f_language::get_symbol_name_matcher_inner): New member function.
2149 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2150 initializer.
2151 * language.c (default_symbol_name_matcher): Update header comment,
2152 make static.
2153 (language_defn::get_symbol_name_matcher): New definition.
2154 (language_defn::get_symbol_name_matcher_inner): Likewise.
2155 (get_symbol_name_matcher): Delete.
2156 (unknown_language_data): Delete la_get_symbol_name_matcher
2157 initializer.
2158 (auto_language_data): Likewise.
2159 * language.h (language_data): Delete la_get_symbol_name_matcher
2160 field.
2161 (language_defn::get_symbol_name_matcher): New member function.
2162 (language_defn::get_symbol_name_matcher_inner): Likewise.
2163 (default_symbol_name_matcher): Delete declaration.
2164 * linespec.c (find_methods): Update call to
2165 get_symbol_name_matcher.
2166 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2167 initializer.
2168 * minsyms.c (lookup_minimal_symbol): Update call to
2169 get_symbol_name_matcher.
2170 (iterate_over_minimal_symbols): Likewise.
2171 * objc-lang.c (objc_language_data): Delete
2172 la_get_symbol_name_matcher initializer.
2173 * opencl-lang.c (opencl_language_data): Likewise.
2174 * p-lang.c (pascal_language_data): Likewise.
2175 * psymtab.c (psymbol_name_matches): Update call to
2176 get_symbol_name_matcher.
2177 * rust-lang.c (rust_language_data): Delete
2178 la_get_symbol_name_matcher initializer.
2179 * symtab.c (symbol_matches_search_name): Update call to
2180 get_symbol_name_matcher.
2181 (compare_symbol_name): Likewise.
2182
2183 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * ada-lang.c (ada_language_data): Delete la_compute_program
2186 initializer.
2187 * c-lang.c (c_language_data): Likewise.
2188 (c_language::compute_program): New member function.
2189 (cplus_language_data): Delete la_compute_program initializer.
2190 (cplus_language::compute_program): New member function.
2191 (asm_language_data): Delete la_compute_program initializer.
2192 (minimal_language_data): Likewise.
2193 * c-lang.h (c_compute_program): Update comment.
2194 (cplus_compute_program): Likewise.
2195 * compile/compile-c-support.c (c_compute_program): Likewise.
2196 (cplus_compute_program): Likewise.
2197 * compile/compile.c (compile_to_object): Update call to
2198 la_compute_program.
2199 * d-lang.c (d_language_data): Delete la_compute_program
2200 initializer.
2201 * f-lang.c (f_language_data): Likewise.
2202 * go-lang.c (go_language_data): Likewise.
2203 * language.c (unknown_language_data): Likewise.
2204 (auto_language_data): Likewise.
2205 * language.h (language_data): Delete la_compute_program field.
2206 (language_defn::compute_program): New member function.
2207 * m2-lang.c (m2_language_data): Delete la_compute_program
2208 initializer.
2209 * objc-lang.c (objc_language_data): Likewise.
2210 * opencl-lang.c (opencl_language_data): Likewise.
2211 * p-lang.c (pascal_language_data): Likewise.
2212 * rust-lang.c (rust_language_data): Likewise.
2213
2214 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2215
2216 * ada-lang.c (ada_language_data) Delete
2217 la_class_name_from_physname initializer.
2218 * c-lang.c (c_language_data): Likewise.
2219 (cplus_language_data): Likewise.
2220 (cplus_language::class_name_from_physname): New member function.
2221 (asm_language_data): Delete la_class_name_from_physname
2222 initializer.
2223 (minimal_language_data): Likewise.
2224 * d-lang.c (d_language_data): Likewise.
2225 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2226 method on language_defn class.
2227 (guess_full_die_structure_name): Likewise.
2228 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2229 initializer.
2230 * go-lang.c (go_language_data): Likewise.
2231 * language.c (language_class_name_from_physname): Delete.
2232 (unk_lang_class_name): Delete.
2233 (unknown_language_data): Delete la_class_name_from_physname
2234 initializer.
2235 (auto_language_data): Likewise.
2236 * language.h (language_data): Delete la_class_name_from_physname
2237 field.
2238 (language_defn::class_name_from_physname): New function.
2239 (language_class_name_from_physname): Delete declaration.
2240 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2241 initializer.
2242 * objc-lang.c (objc_language_data): Likewise.
2243 * opencl-lang.c (opencl_language_data): Likewise.
2244 * p-lang.c (pascal_language_data): Likewise.
2245 * rust-lang.c (rust_language_data): Likewise.
2246
2247 2020-06-16 Tom Tromey <tom@tromey.com>
2248
2249 * tui/tui-data.h (STATUS_NAME): New macro.
2250 * tui/tui-layout.c (tui_remove_some_windows)
2251 (initialize_known_windows, tui_register_window)
2252 (tui_layout_split::remove_windows, initialize_layouts)
2253 (tui_new_layout_command): Don't use hard-coded window names.
2254
2255 2020-06-16 Tom Tromey <tom@tromey.com>
2256
2257 PR tui/25348:
2258 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2259 tui_initialize_readline. Only run once. Call rl_initialize.
2260 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2261 tui_initialize_readline.
2262 * tui/tui-io.c (tui_setup_io): Call
2263 tui_ensure_readline_initialized.
2264 * tui/tui-interp.c (tui_interp::init): Update.
2265
2266 2020-06-16 Tom Tromey <tom@tromey.com>
2267
2268 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2269 Also preserve the status window.
2270
2271 2020-06-16 Tom Tromey <tom@tromey.com>
2272
2273 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2274 where m_window==nullptr.
2275
2276 2020-06-15 Tom Tromey <tromey@adacore.com>
2277
2278 * windows-nat.c (windows_nat::handle_output_debug_string):
2279 Update.
2280 (windows_nat::handle_ms_vc_exception): Update.
2281 * target.h (target_read_string): Change API.
2282 * target.c (target_read_string): Change API.
2283 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2284 Update.
2285 * solib-frv.c (frv_current_sos): Update.
2286 * solib-dsbt.c (dsbt_current_sos): Update.
2287 * solib-darwin.c (darwin_current_sos): Update.
2288 * linux-thread-db.c (inferior_has_bug): Update.
2289 * expprint.c (print_subexp_standard): Update.
2290 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2291 (ada_exception_message_1): Update.
2292
2293 2020-06-15 Tom Tromey <tromey@adacore.com>
2294
2295 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2296
2297 2020-06-15 Tom Tromey <tromey@adacore.com>
2298
2299 * valprint.c (read_string): Update comment.
2300 * target.c (MIN): Remove.
2301 (target_read_string): Rewrite.
2302
2303 2020-06-15 Tom Tromey <tromey@adacore.com>
2304
2305 * corefile.c (read_memory_string): Remove.
2306 * ada-valprint.c (ada_value_print_ptr): Update.
2307 * ada-lang.h (ada_tag_name): Change return type.
2308 * ada-lang.c (type_from_tag): Update.
2309 (ada_tag_name_from_tsd): Change return type. Use
2310 target_read_string.
2311 (ada_tag_name): Likewise.
2312 * gdbcore.h (read_memory_string): Don't declare.
2313
2314 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2315
2316 * symtab.c (rbreak_command): Ignore Windows drive colon.
2317
2318 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2319
2320 * NEWS: Mention removed GDBserver host support.
2321
2322 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2323
2324 * features/riscv/rebuild-csr-xml.sh: Updated.
2325
2326 2020-06-11 Tom Tromey <tom@tromey.com>
2327
2328 PR gdb/18318:
2329 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2330
2331 2020-06-09 Jonny Grant <jg@jguk.org>
2332 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2333
2334 * main.c (captured_main_1): Don't print new line after help.
2335 (print_gdb_help): add mailing list and IRC channel information
2336 to --help. Add new lines between items in the footer. Remove
2337 quotes around bug url.
2338
2339 2020-06-11 Keith Seitz <keiths@redhat.com>
2340
2341 PR gdb/21356
2342 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2343 Resolve typedefs for type length calculations.
2344
2345 2020-06-10 Tom de Vries <tdevries@suse.de>
2346
2347 PR ada/24713
2348 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2349 (write_psymbols): Enable .gdb_index for ada.
2350 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2351 ada.
2352
2353 2020-06-10 Tom de Vries <tdevries@suse.de>
2354
2355 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2356 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2357 namei" instead of "const char *name" argument.
2358 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2359 dw2_symtab_iter_init.
2360
2361 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2362
2363 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2364 to use type::field and field::type instead.
2365
2366 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2367
2368 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2369 to use field::type instead.
2370
2371 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2372
2373 * gdbtypes.h (struct field) <type, set_type>: New methods.
2374 Rename `type` field to...
2375 <m_type>: ... this. Change references throughout to use type or
2376 set_type methods.
2377 (FIELD_TYPE): Use field::type. Change call sites that modify
2378 the field's type to use field::set_type instead.
2379
2380 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2381
2382 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2383 to use type::index_type instead.
2384
2385 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2386
2387 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2388 methods.
2389 (TYPE_INDEX_TYPE): Use type::index_type.
2390 * gdbtypes.c (create_array_type_with_stride): Likewise.
2391
2392 2020-06-07 Tom Tromey <tom@tromey.com>
2393
2394 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2395 parameter.
2396 (generic_value_print): Update.
2397
2398 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 Revert commit 982a38f60b0.
2401 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2402
2403 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2404
2405 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2406 avoid use after free.
2407
2408 2020-06-05 Tom de Vries <tdevries@suse.de>
2409
2410 * NEWS: Fix typos.
2411
2412 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2413
2414 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2415 the per_bfd object.
2416 (dwarf2_read_debug_names): Likewise.
2417 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2418 object when re-using a per_bfd object with an index.
2419
2420 2020-06-03 Tom de Vries <tdevries@suse.de>
2421
2422 PR symtab/26046
2423 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2424 children for C++.
2425 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2426 DW_TAG_subprogram.
2427
2428 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * ada-lang.c (ada_language_data): Delete skip_trampoline
2431 initializer.
2432 * c-lang.c (c_language_data): Likewise.
2433 (cplus_language_data): Likewise.
2434 (cplus_language::skip_trampoline): New member function.
2435 (asm_language_data): Delete skip_trampoline initializer.
2436 (minimal_language_data): Likewise.
2437 * d-lang.c (d_language_data): Likewise.
2438 * f-lang.c (f_language_data): Likewise.
2439 * go-lang.c (go_language_data): Likewise.
2440 * language.c (unk_lang_trampoline): Delete function.
2441 (skip_language_trampoline): Update.
2442 (unknown_language_data): Delete skip_trampoline initializer.
2443 (auto_language_data): Likewise.
2444 * language.h (language_data): Delete skip_trampoline field.
2445 (language_defn::skip_trampoline): New function.
2446 * m2-lang.c (m2_language_data): Delete skip_trampoline
2447 initializer.
2448 * objc-lang.c (objc_skip_trampoline): Delete function, move
2449 implementation to objc_language::skip_trampoline.
2450 (objc_language_data): Delete skip_trampoline initializer.
2451 (objc_language::skip_trampoline): New member function with
2452 implementation from objc_skip_trampoline.
2453 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2454 initializer.
2455 * p-lang.c (pascal_language_data): Likewise.
2456 * rust-lang.c (rust_language_data): Likewise.
2457
2458 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2459
2460 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2461 (ada_language::demangle): New member function.
2462 * c-lang.c (c_language_data): Delete la_demangle initializer.
2463 (cplus_language_data): Delete la_demangle initializer.
2464 (cplus_language::demangle): New member function.
2465 (asm_language_data): Delete la_demangle initializer.
2466 (minimal_language_data): Delete la_demangle initializer.
2467 * d-lang.c (d_language_data): Delete la_demangle initializer.
2468 (d_language::demangle): New member function.
2469 * f-lang.c (f_language_data): Delete la_demangle initializer.
2470 (f_language::demangle): New member function.
2471 * go-lang.c (go_language_data): Delete la_demangle initializer.
2472 (go_language::demangle): New member function.
2473 * language.c (language_demangle): Update.
2474 (unk_lang_demangle): Delete.
2475 (unknown_language_data): Delete la_demangle initializer.
2476 (unknown_language::demangle): New member function.
2477 (auto_language_data): Delete la_demangle initializer.
2478 (auto_language::demangle): New member function.
2479 * language.h (language_data): Delete la_demangle field.
2480 (language_defn::demangle): New function.
2481 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2482 * objc-lang.c (objc_language_data): Delete la_demangle
2483 initializer.
2484 (objc_language::demangle): New member function.
2485 * opencl-lang.c (opencl_language_data): Delete la_demangle
2486 initializer.
2487 * p-lang.c (pascal_language_data): Likewise.
2488 * rust-lang.c (rust_language_data): Likewise.
2489 (rust_language::demangle): New member function.
2490
2491 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2492
2493 * ada-lang.c (ada_language_data): Delete la_print_type
2494 initializer.
2495 (ada_language::print_type): New member function.
2496 * c-lang.c (c_language_data): Delete la_print_type initializer.
2497 (c_language::print_type): New member function.
2498 (cplus_language_data): Delete la_print_type initializer.
2499 (cplus_language::print_type): New member function.
2500 (asm_language_data): Delete la_print_type initializer.
2501 (asm_language::print_type): New member function.
2502 (minimal_language_data): Delete la_print_type initializer.
2503 (minimal_language::print_type): New member function.
2504 * d-lang.c (d_language_data): Delete la_print_type initializer.
2505 (d_language::print_type): New member function.
2506 * f-lang.c (f_language_data): Delete la_print_type initializer.
2507 (f_language::print_type): New member function.
2508 * go-lang.c (go_language_data): Delete la_print_type initializer.
2509 (go_language::print_type): New member function.
2510 * language.c (unk_lang_print_type): Delete.
2511 (unknown_language_data): Delete la_print_type initializer.
2512 (unknown_language::print_type): New member function.
2513 (auto_language_data): Delete la_print_type initializer.
2514 (auto_language::print_type): New member function.
2515 * language.h (language_data): Delete la_print_type field.
2516 (language_defn::print_type): New function.
2517 (LA_PRINT_TYPE): Update.
2518 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2519 (m2_language::print_type): New member function.
2520 * objc-lang.c (objc_language_data): Delete la_print_type
2521 initializer.
2522 (objc_language::print_type): New member function.
2523 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2524 to opencl_language::print_type.
2525 (opencl_language_data): Delete la_print_type initializer.
2526 (opencl_language::print_type): New member function, implementation
2527 from opencl_print_type.
2528 * p-lang.c (pascal_language_data): Delete la_print_type
2529 initializer.
2530 (pascal_language::print_type): New member function.
2531 * rust-lang.c (rust_print_type): Delete, implementation moved to
2532 rust_language::print_type.
2533 (rust_language_data): Delete la_print_type initializer.
2534 (rust_language::print_type): New member function, implementation
2535 from rust_print_type.
2536
2537 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2538
2539 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2540 implementation moves to...
2541 (ada_language::sniff_from_mangled_name): ...here. Update return
2542 type.
2543 (ada_language_data): Delete la_sniff_from_mangled_name
2544 initializer.
2545 * c-lang.c (c_language_data): Likewise.
2546 (cplus_language_data): Likewise.
2547 (cplus_language::sniff_from_mangled_name): New member function,
2548 implementation taken from gdb_sniff_from_mangled_name.
2549 (asm_language_data): Delete la_sniff_from_mangled_name
2550 initializer.
2551 (minimal_language_data): Likewise.
2552 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2553 implementation moves to cplus_language::sniff_from_mangled_name.
2554 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2555 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2556 moves to...
2557 (d_language::sniff_from_mangled_name): ...here.
2558 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2559 * f-lang.c (f_language_data): Likewise.
2560 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2561 moves to...
2562 (go_language::sniff_from_mangled_name): ...here.
2563 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2564 * language.c (language_sniff_from_mangled_name): Delete.
2565 (unknown_language_data): Delete la_sniff_from_mangled_name
2566 initializer.
2567 (auto_language_data): Likewise.
2568 * language.h (language_data): Delete la_sniff_from_mangled_name
2569 field.
2570 (language_defn::sniff_from_mangled_name): New function.
2571 (language_sniff_from_mangled_name): Delete declaration.
2572 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2573 field.
2574 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2575 implementation moves to...
2576 (objc_language::sniff_from_mangled_name): ...here.
2577 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2578 * opencl-lang.c (opencl_language_data): Likewise.
2579 * p-lang.c (pascal_language_data): Likewise.
2580 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2581 implementation moves to...
2582 (rust_language::sniff_from_mangled_name): ...here.
2583 (rust_language_data): Delete la_sniff_from_mangled_name
2584 initializer.
2585 * symtab.c (symbol_find_demangled_name): Call
2586 sniff_from_mangled_name member function.
2587
2588 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2591 initializer.
2592 * c-lang.c (c_language_data): Likewise.
2593 (cplus_language_data): Likewise.
2594 (cplus_language::search_name_hash): New member function.
2595 (asm_language_data): Delete la_search_name_hash initializer.
2596 (minimal_language_data): Likewise.
2597 * d-lang.c (d_language_data): Likewise.
2598 * dictionary.c (default_search_name_hash): Rename to...
2599 (language_defn::search_name_hash): ...this.
2600 * f-lang.c (f_language_data): Likewise.
2601 (f_language::search_name_hash): New member function.
2602 * go-lang.c (go_language_data): Delete la_search_name_hash
2603 initializer.
2604 * language.c (unknown_language_data): Likewise.
2605 (auto_language_data): Likewise.
2606 * language.h (struct language_data): Delete la_search_name_hash
2607 field.
2608 (language_defn::search_name_hash): Declare new member function.
2609 (default_search_name_hash): Delete declaration.
2610 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2611 initializer.
2612 * objc-lang.c (objc_language_data): Likewise.
2613 * opencl-lang.c (opencl_language_data): Likewise.
2614 * p-lang.c (pascal_language_data): Likewise.
2615 * rust-lang.c (rust_language_data): Likewise.
2616 * symtab.c (search_name_hash): Update call.
2617
2618 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2619
2620 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2621 initializer.
2622 * c-lang.c (class compile_instance): Declare.
2623 (c_language_data): Delete la_get_compile_instance initializer.
2624 (c_language::get_compile_instance): New member function.
2625 (cplus_language_data): Delete la_get_compile_instance initializer.
2626 (cplus_language::get_compile_instance): New member function.
2627 (asm_language_data): Delete la_get_compile_instance initializer.
2628 (minimal_language_data): Likewise.
2629 * c-lang.h (c_get_compile_context): Update comment.
2630 (cplus_get_compile_context): Update comment.
2631 * compile/compile.c (compile_to_object): Update calls, don't rely
2632 on function pointer being NULL.
2633 * d-lang.c (d_language_data): Delete la_get_compile_instance
2634 initializer.
2635 * f-lang.c (f_language_data): Likewise.
2636 * go-lang.c (go_language_data): Likewise.
2637 * language.c (unknown_language_data): Likewise.
2638 (auto_language_data): Likewise.
2639 * language.h (language_data): Delete la_get_compile_instance field.
2640 (language_defn::get_compile_instance): New member function.
2641 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2642 initializer.
2643 * objc-lang.c (objc_language_data): Likewise.
2644 * opencl-lang.c (opencl_language_data): Likewise.
2645 * p-lang.c (pascal_language_data): Likewise.
2646 * rust-lang.c (rust_language_data): Likewise.
2647
2648 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2649
2650 * ada-lang.c (ada_add_all_symbols): Update comment.
2651 (ada_iterate_over_symbols): Delete, move implementation to...
2652 (ada_language::iterate_over_symbols): ...here, a new member
2653 function, rewrite to use range based for loop.
2654 (ada_language_data): Delete la_iterate_over_symbols initializer.
2655 * c-lang.c (c_language_data): Likewise.
2656 (cplus_language_data): Likewise.
2657 (asm_language_data): Likewise.
2658 (minimal_language_data): Likewise.
2659 * d-lang.c (d_language_data): Likewise.
2660 * f-lang.c (f_language_data): Likewise.
2661 * go-lang.c (go_language_data): Likewise.
2662 * language.c (unknown_language_data): Likewise.
2663 (auto_language_data): Likewise.
2664 * language.h (language_data): Delete la_iterate_over_symbols field.
2665 (language_defn::iterate_over_symbols): New member function.
2666 (LA_ITERATE_OVER_SYMBOLS): Update.
2667 * linespec.c (iterate_over_all_matching_symtabs): Update.
2668 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2669 initializer.
2670 * objc-lang.c (objc_language_data): Likewise.
2671 * opencl-lang.c (opencl_language_data): Likewise.
2672 * p-lang.c (pascal_language_data): Likewise.
2673 * rust-lang.c (rust_language_data): Likewise.
2674
2675 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2676
2677 * ada-lang.c (ada_language_data): Delete
2678 la_lookup_transparent_type initializer.
2679 * c-lang.c (c_language_data): Likewise.
2680 (cplus_language_data): Likewise.
2681 (cplus_language::lookup_transparent_type): New member function.
2682 (asm_language_data): Delete la_lookup_transparent_type
2683 initializer.
2684 (minimal_language_data): Likewise.
2685 * d-lang.c (d_language_data): Likewise.
2686 * f-lang.c (f_language_data): Likewise.
2687 * go-lang.c (go_language_data): Likewise.
2688 * language.c (unknown_language_data): Likewise.
2689 (auto_language_data): Likewise.
2690 * language.h (struct language_data): Delete
2691 la_lookup_transparent_type field.
2692 (language_defn::lookup_transparent_type): New member function.
2693 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2694 initializer.
2695 * objc-lang.c (objc_language_data): Likewise.
2696 * opencl-lang.c (opencl_language_data): Likewise.
2697 * p-lang.c (pascal_language_data): Likewise.
2698 * rust-lang.c (rust_language_data): Likewise.
2699 * symtab.c (symbol_matches_domain): Update call.
2700
2701 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2702
2703 * ada-lang.c (ada_language_arch_info): Delete function, move
2704 implementation to...
2705 (ada_language::language_arch_info): ...here, a new member
2706 function.
2707 (ada_language_data): Delete la_language_arch_info.
2708 * c-lang.c (c_language_data): Likewise.
2709 (c_language::language_arch_info): New member function.
2710 (cplus_language_arch_info): Delete function, move
2711 implementation to...
2712 (cplus_language::language_arch_info): ...here, a new member
2713 function.
2714 (cplus_language_data): Delete la_language_arch_info.
2715 (asm_language_data): Likewise.
2716 (asm_language::language_arch_info): New member function.
2717 (minimal_language_data): Delete la_language_arch_info.
2718 (minimal_language::language_arch_info): New member function.
2719 * d-lang.c (d_language_arch_info): Delete function, move
2720 implementation to...
2721 (d_language::language_arch_info): ...here, a new member
2722 function.
2723 (d_language_data): Delete la_language_arch_info.
2724 * f-lang.c (f_language_arch_info): Delete function, move
2725 implementation to...
2726 (f_language::language_arch_info): ...here, a new member
2727 function.
2728 (f_language_data): Delete la_language_arch_info.
2729 * go-lang.c (go_language_arch_info): Delete function, move
2730 implementation to...
2731 (go_language::language_arch_info): ...here, a new member
2732 function.
2733 (go_language_data): Delete la_language_arch_info.
2734 * language.c (unknown_language_data): Likewise.
2735 (unknown_language::language_arch_info): New member function.
2736 (auto_language_data): Delete la_language_arch_info.
2737 (auto_language::language_arch_info): New member function.
2738 (language_gdbarch_post_init): Update call to
2739 la_language_arch_info.
2740 * language.h (language_data): Delete la_language_arch_info
2741 function pointer.
2742 (language_defn::language_arch_info): New function.
2743 * m2-lang.c (m2_language_arch_info): Delete function, move
2744 implementation to...
2745 (m2_language::language_arch_info): ...here, a new member
2746 function.
2747 (m2_language_data): Delete la_language_arch_info.
2748 * objc-lang.c (objc_language_arch_info): Delete function, move
2749 implementation to...
2750 (objc_language::language_arch_info): ...here, a new member
2751 function.
2752 (objc_language_data): Delete la_language_arch_info.
2753 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2754 implementation to...
2755 (opencl_language::language_arch_info): ...here, a new member
2756 function.
2757 (opencl_language_data): Delete la_language_arch_info.
2758 * p-lang.c (pascal_language_arch_info): Delete function, move
2759 implementation to...
2760 (pascal_language::language_arch_info): ...here, a new member
2761 function.
2762 (pascal_language_data): Delete la_language_arch_info.
2763 * rust-lang.c (rust_language_arch_info): Delete function, move
2764 implementation to...
2765 (rust_language::language_arch_info): ...here, a new member
2766 function.
2767 (rust_language_data): Delete la_language_arch_info.
2768
2769 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2770
2771 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2772 initializer.
2773 * c-lang.c (c_language_data): Likewise.
2774 (cplus_language_data): Likewise.
2775 (cplus_language::pass_by_reference_info): New method.
2776 (asm_language_data): Delete la_pass_by_reference initializer.
2777 (minimal_language_data): Likewise.
2778 * cp-abi.c (cp_pass_by_reference): Remove use of
2779 default_pass_by_reference.
2780 * d-lang.c (d_language_data): Likewise.
2781 * f-lang.c (f_language_data): Likewise.
2782 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2783 default_pass_by_reference.
2784 * go-lang.c (go_language_data): Likewise.
2785 * language.c (language_pass_by_reference): Update.
2786 (default_pass_by_reference): Delete.
2787 (unknown_language_data): Delete la_pass_by_reference
2788 initializer.
2789 (auto_language_data): Likewise.
2790 * language.h (struct language_data): Delete la_pass_by_reference
2791 field.
2792 (language_defn::pass_by_reference_info): New member function.
2793 (default_pass_by_reference): Delete declaration.
2794 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2795 initializer.
2796 * objc-lang.c (objc_language_data): Likewise.
2797 * opencl-lang.c (opencl_language_data): Likewise.
2798 * p-lang.c (pascal_language_data): Likewise.
2799 * rust-lang.c (rust_language_data): Likewise.
2800
2801 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2802
2803 * ada-lang.c (ada_read_var_value): Delete function, move
2804 implementation to...
2805 (ada_language::read_var_value): ...here.
2806 (ada_language_data): Delete la_read_var_value initializer.
2807 * c-lang.c (c_language_data): Likewise.
2808 (cplus_language_data): Likewise.
2809 (minimal_language_data): Likewise.
2810 * d-lang.c (d_language_data): Likewise.
2811 * f-lang.c (f_language_data): Likewise.
2812 * findvar.c (default_read_var_value): Rename to...
2813 (language_defn::read_var_value): ...this.
2814 * findvar.c (read_var_value): Update header comment, and change to
2815 call member function instead of function pointer.
2816 * go-lang.c (go_language_data): Likewise.
2817 * language.c (unknown_language_data): Delete la_read_var_value
2818 initializer.
2819 (auto_language_data): Likewise.
2820 * language.h (struct language_data): Delete la_read_var_value
2821 field.
2822 (language_defn::read_var_value): New member function.
2823 (default_read_var_value): Delete declaration.
2824 * m2-lang.c (m2_language_data): Delete la_read_var_value
2825 initializer.
2826 * objc-lang.c (objc_language_data): Likewise.
2827 * opencl-lang.c (opencl_language_data): Likewise.
2828 * p-lang.c (pascal_language_data): Likewise.
2829 * rust-lang.c (rust_language_data): Likewise.
2830 * value.h (default_read_var_value): Delete declaration.
2831
2832 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2833
2834 * ada-lang.c (ada_print_array_index): Delete function, move
2835 implementation to...
2836 (ada_language::print_array_index): ...here.
2837 (ada_language_data): Delete la_print_array_index initializer.
2838 * c-lang.c (c_language_data): Likewise.
2839 (cplus_language_data): Likewise.
2840 (minimal_language_data): Likewise.
2841 * d-lang.c (d_language_data): Likewise.
2842 * f-lang.c (f_language_data): Likewise.
2843 * go-lang.c (go_language_data): Likewise.
2844 * language.c (default_print_array_index): Delete function, move
2845 implementation to...
2846 (language_defn::print_array_index): ...here.
2847 (unknown_language_data): Delete la_print_array_index initializer.
2848 (auto_language_data): Likewise.
2849 * language.h (struct language_data): Delete la_print_array_index
2850 field.
2851 (language_defn::print_array_index): New member function.
2852 (LA_PRINT_ARRAY_INDEX): Update.
2853 (default_print_array_index): Delete declaration.
2854 * m2-lang.c (m2_language_data): Delete la_print_array_index
2855 initializer.
2856 * objc-lang.c (objc_language_data): Likewise.
2857 * opencl-lang.c (opencl_language_data): Likewise.
2858 * p-lang.c (pascal_language_data): Likewise.
2859 * rust-lang.c (rust_language_data): Likewise.
2860
2861 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2862
2863 * gdb/ada-lang.c (ada_language_defn): Convert to...
2864 (ada_language_data): ...this.
2865 (class ada_language): New class.
2866 (ada_language_defn): New static global.
2867 * gdb/c-lang.c (c_language_defn): Convert to...
2868 (c_language_data): ...this.
2869 (class c_language): New class.
2870 (c_language_defn): New static global.
2871 (cplus_language_defn): Convert to...
2872 (cplus_language_data): ...this.
2873 (class cplus_language): New class.
2874 (cplus_language_defn): New static global.
2875 (asm_language_defn): Convert to...
2876 (asm_language_data): ...this.
2877 (class asm_language): New class.
2878 (asm_language_defn): New static global.
2879 (minimal_language_defn): Convert to...
2880 (minimal_language_data): ...this.
2881 (class minimal_language): New class.
2882 (minimal_language_defn): New static global.
2883 * gdb/d-lang.c (d_language_defn): Convert to...
2884 (d_language_data): ...this.
2885 (class d_language): New class.
2886 (d_language_defn): New static global.
2887 * gdb/f-lang.c (f_language_defn): Convert to...
2888 (f_language_data): ...this.
2889 (class f_language): New class.
2890 (f_language_defn): New static global.
2891 * gdb/go-lang.c (go_language_defn): Convert to...
2892 (go_language_data): ...this.
2893 (class go_language): New class.
2894 (go_language_defn): New static global.
2895 * gdb/language.c (unknown_language_defn): Remove declaration.
2896 (current_language): Initialize to nullptr, real initialization is
2897 moved to _initialize_language.
2898 (languages): Delete global.
2899 (language_defn::languages): Define.
2900 (set_language_command): Use language_defn::languages.
2901 (set_language): Likewise.
2902 (range_error): Likewise.
2903 (language_enum): Likewise.
2904 (language_def): Likewise.
2905 (add_set_language_command): Use language_def::languages for the
2906 language list, and language_def to lookup language pointers.
2907 (skip_language_trampoline): Use language_defn::languages.
2908 (unknown_language_defn): Convert to...
2909 (unknown_language_data): ...this.
2910 (class unknown_language): New class.
2911 (unknown_language_defn): New static global.
2912 (auto_language_defn): Convert to...
2913 (auto_language_data): ...this.
2914 (class auto_language): New class.
2915 (auto_language_defn): New static global.
2916 (language_gdbarch_post_init): Use language_defn::languages.
2917 (_initialize_language): Initialize current_language.
2918 * gdb/language.h (struct language_defn): Rename to...
2919 (struct language_data): ...this.
2920 (struct language_defn): New.
2921 (auto_language_defn): Delete.
2922 (unknown_language_defn): Delete.
2923 (minimal_language_defn): Delete.
2924 (ada_language_defn): Delete.
2925 (asm_language_defn): Delete.
2926 (c_language_defn): Delete.
2927 (cplus_language_defn): Delete.
2928 (d_language_defn): Delete.
2929 (f_language_defn): Delete.
2930 (go_language_defn): Delete.
2931 (m2_language_defn): Delete.
2932 (objc_language_defn): Delete.
2933 (opencl_language_defn): Delete.
2934 (pascal_language_defn): Delete.
2935 (rust_language_defn): Delete.
2936 * gdb/m2-lang.c (m2_language_defn): Convert to...
2937 (m2_language_data): ...this.
2938 (class m2_language): New class.
2939 (m2_language_defn): New static global.
2940 * gdb/objc-lang.c (objc_language_defn): Convert to...
2941 (objc_language_data): ...this.
2942 (class objc_language): New class.
2943 (objc_language_defn): New static global.
2944 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2945 (opencl_language_data): ...this.
2946 (class opencl_language): New class.
2947 (opencl_language_defn): New static global.
2948 * gdb/p-lang.c (pascal_language_defn): Convert to...
2949 (pascal_language_data): ...this.
2950 (class pascal_language): New class.
2951 (pascal_language_defn): New static global.
2952 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2953 language pointer, update comment format.
2954 * gdb/rust-lang.c (rust_language_defn): Convert to...
2955 (rust_language_data): ...this.
2956 (class rust_language): New class.
2957 (rust_language_defn): New static global.
2958
2959 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2960
2961 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2962 member variable.
2963 <m_stmt_at_address>: New member variable.
2964 (lnp_state_machine::record_line): Don't record some lines, update
2965 tracking of is_stmt at the same address.
2966 (lnp_state_machine::lnp_state_machine): Initialise new member
2967 variables.
2968
2969 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
2970
2971 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
2972 "-include gnu-nat-mig.h".
2973 * gnu-nat-mig.h: New file.
2974 * gnu-nat.c: Include "gnu-nat-mig.h".
2975 (exc_server, msg_reply_server, notify_server,
2976 process_reply_server): Remove declarations.
2977
2978 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2979
2980 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
2981 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
2982 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
2983 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
2984 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
2985 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
2986 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
2987 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
2988 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
2989 to gnu_nat_target class.
2990 * gnu-nat.c: Likewise.
2991 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
2992 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
2993 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
2994 object.
2995 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
2996 instead of `gnu_target'.
2997
2998 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
2999
3000 * i386-gnu-tdep.c: Include "gdbcore.h"
3001 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3002 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3003 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3004 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3005 i386_gnu_sigcontext_addr): New functions
3006 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3007 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3008 tdep.
3009
3010 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3011
3012 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3013 before fork_inferior call. Avoid calling it if target_is_pushed returns
3014 true.
3015
3016 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3017
3018 * gnu-nat.h (gnu_target): New variable declaration.
3019 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3020 gnu_target.
3021 * gnu-nat.c (gnu_target): New variable.
3022 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3023 add_thread_silent, and add_thread calls.
3024 (gnu_nat_target::create_inferior): Pass gnu_target to
3025 add_thread_silent, thread_change_ptid call.
3026 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3027 call.
3028
3029 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3030
3031 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3032 (gnu_nat_target::find_memory_regions): Remove unused
3033 `old_address' variable.
3034
3035 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3036
3037 * gnu-nat.c: Include "gdbarch.h".
3038
3039 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3040
3041 * reply_mig_hack.awk (Error return): Cast function through
3042 void *, to bypass compiler function call check.
3043
3044 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3045
3046 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3047 $(srcdir)/reply_mig_hack.awk.
3048
3049 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3050
3051 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3052
3053 2020-05-30 Jonny Grant <jg@jguk.org>
3054
3055 * configure.ac (ACX_BUGURL): change bug URL to https.
3056
3057 2020-05-30 Pedro Alves <palves@redhat.com>
3058
3059 * cp-support.c (replace_typedefs_template): New.
3060 (replace_typedefs_qualified_name): Handle
3061 DEMANGLE_COMPONENT_TEMPLATE.
3062
3063 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3064
3065 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3066 dwarf2/index-cache.h, dwarf2/index-write.c,
3067 dwarf2/index-write.h, dwarf2/line-header.c,
3068 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3069 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3070 variables and fields from `dwarf2_per_objfile` to just
3071 `per_objfile` throughout.
3072
3073 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3074
3075 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3076 <push_dwarf_reg_entry_value>: Add comment.
3077
3078 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3079 Keith Seitz <keiths@redhat.com>
3080
3081 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3082 instead of PyEval_ReleaseLock.
3083 (class gdbpy_gil): Move to earlier in file.
3084 (finalize_python): Set gdb_python_initialized.
3085 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3086 when not initialized.
3087
3088 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3089
3090 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3091 <push_dwarf_reg_entry_value>: Remove assert. Override
3092 per_objfile with caller_per_objfile.
3093
3094 2020-05-28 Tom de Vries <tdevries@suse.de>
3095
3096 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3097 PR gold/15646 workaround to symbol kind "type".
3098
3099 2020-05-27 Tom Tromey <tromey@adacore.com>
3100
3101 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3102
3103 2020-05-27 Tom Tromey <tromey@adacore.com>
3104
3105 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3106 Use htab_find_with_hash.
3107 <add_abbrev>: Remove "abbrev_number" parameter.
3108 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3109 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3110 (hash_abbrev): Add comment.
3111 (abbrev_table::lookup_abbrev): Move to header file.
3112 (abbrev_table::read): Update.
3113
3114 2020-05-27 Tom Tromey <tromey@adacore.com>
3115
3116 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3117 method.
3118 <canonical_name>: New member.
3119 <raw_name>: Rename from "name".
3120 (partial_die_info): Initialize canonical_name.
3121 (scan_partial_symbols): Check raw_name.
3122 (partial_die_parent_scope, partial_die_full_name)
3123 (add_partial_symbol, add_partial_subprogram)
3124 (add_partial_enumeration, load_partial_dies): Use "name" method.
3125 (partial_die_info::name): New method.
3126 (partial_die_info::read, guess_partial_die_structure_name)
3127 (partial_die_info::fixup): Update.
3128
3129 2020-05-27 Tom Tromey <tromey@adacore.com>
3130
3131 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3132 <get_ref_die_offset>: Inline.
3133 <get_ref_die_offset_complaint>: New method.
3134 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3135 (attribute::get_ref_die_offset_complaint): Rename from
3136 get_ref_die_offset. Just issue complaint.
3137
3138 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3139
3140 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3141
3142 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3143
3144 * exec.c (exec_file_attach): Use errno value of first openp failure.
3145
3146 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3147
3148 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3149 Don't close thread handle.
3150
3151 2020-05-27 Tom Tromey <tom@tromey.com>
3152 Simon Marchi <simon.marchi@efficios.com>
3153
3154 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3155 shared_ptr.
3156 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3157 member.
3158 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3159 dwarf2_per_bfd_objfile_data_key>: New globals.
3160 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3161 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3162 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3163 shared.
3164 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3165 short-circuit when sharing.
3166 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3167 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3168
3169 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3170
3171 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3172 to...
3173 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3174 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3175
3176 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3177
3178 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3179 build_name_components, find_name_components_bounds>:
3180 Add per_objfile parameter.
3181 (struct mapped_index) <symbol_name_at>: Likewise.
3182 (struct mapped_debug_names): Remove constructor.
3183 <dwarf2_per_objfile>: Remove field.
3184 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3185 (mapped_index_base::find_name_components_bounds,
3186 mapped_index_base::build_name_components,
3187 dw2_expand_symtabs_matching_symbol): Likewise.
3188 (class mock_mapped_index) <symbol_name_at>: Likewise.
3189 (check_match): Likewise.
3190 (check_find_bounds_finds): Likewise.
3191 (test_mapped_index_find_name_component_bounds): Update.
3192 (CHECK_MATCH): Update.
3193 (dw2_expand_symtabs_matching): Update.
3194 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3195 per_objfile parameter.
3196 <find_vec_in_debug_names>: Likewise.
3197 <m_per_objfile>: New field.
3198 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3199 parameter.
3200 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3201 (dw2_debug_names_iterator::next): Update.
3202 (dw2_debug_names_lookup_symbol): Update.
3203 (dw2_debug_names_expand_symtabs_for_function): Update.
3204 (dw2_debug_names_map_matching_symbols): Update.
3205 (dw2_debug_names_expand_symtabs_matching): Update.
3206 (dwarf2_read_debug_names): Update.
3207
3208 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3209
3210 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3211 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3212 move to dwarf2_per_objfile.
3213 <read_in_chain>: Remove.
3214 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3215 remove_all_cus, age_comp_units>: New methods.
3216 <m_dwarf2_cus>: New member.
3217 (struct dwarf2_per_cu_data) <cu>: Remove.
3218 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3219 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3220 moved to methods of dwarf2_per_objfile.
3221 (dwarf2_clear_marks): Remove.
3222 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3223 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3224 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3225 (dwarf2_per_objfile::remove_all_cus): New.
3226 (class free_cached_comp_units) <~free_cached_comp_units>:
3227 Update.
3228 (load_cu): Update.
3229 (dw2_do_instantiate_symtab): Adjust.
3230 (fill_in_sig_entry_from_dwo_entry): Adjust.
3231 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3232 (cutu_reader::cutu_reader): Likewise.
3233 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3234 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3235 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3236 and dwarf2_per_objfile::age_comp_units.
3237 (load_partial_comp_unit): Update.
3238 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3239 (process_queue): Likewise.
3240 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3241 backlink.
3242 (dwarf2_read_addr_index): Likewise.
3243 (follow_die_offset): Likewise.
3244 (dwarf2_fetch_die_loc_sect_off): Likewise.
3245 (dwarf2_fetch_constant_bytes): Likewise.
3246 (dwarf2_fetch_die_type_sect_off): Likewise.
3247 (follow_die_sig_1): Likewise.
3248 (load_full_type_unit): Likewise.
3249 (read_signatured_type): Likewise.
3250 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3251 (dwarf2_cu::~dwarf2_cu): Remove.
3252 (dwarf2_per_objfile::get_cu): New.
3253 (dwarf2_per_objfile::set_cu): New.
3254 (age_cached_comp_units): Rename to...
3255 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3256 to std::unordered_map.
3257 (free_one_cached_comp_unit): Rename to...
3258 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3259 to std::unordered_map.
3260 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3261 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3262 a dwarf2_per_objfile in data.
3263 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3264 (dwarf2_clear_marks): Remove.
3265
3266 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3267
3268 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3269 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3270 (init_tu_and_read_dwo_dies): Likewise.
3271 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3272 (cutu_reader::cutu_reader): Likewise.
3273 (load_partial_comp_unit): Likewise.
3274 (process_psymtab_comp_unit): Update.
3275 (build_type_psymtabs_1): Update.
3276 (process_skeletonless_type_unit): Update.
3277 (load_full_comp_unit): Update.
3278 (find_partial_die): Update.
3279 (dwarf2_read_addr_index): Update.
3280 (read_signatured_type): Update.
3281
3282 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3283
3284 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3285 m_header_read_in>: New fields.
3286 <get_header>: New method.
3287 * dwarf2/read.c (per_cu_header_read_in): Remove.
3288 (dwarf2_per_cu_data::get_header): New.
3289 (dwarf2_per_cu_data::addr_size): Update.
3290 (dwarf2_per_cu_data::offset_size): Update.
3291 (dwarf2_per_cu_data::ref_addr_size): Update.
3292
3293 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3294
3295 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3296 (dw2_do_instantiate_symtab): Update.
3297 (queue_and_load_all_dwo_tus): Change parameter from
3298 dwarf2_per_cu_data to dwarf2_cu.
3299 (dwarf2_fetch_die_loc_sect_off): Update.
3300 (dwarf2_fetch_constant_bytes): Update.
3301 (dwarf2_fetch_die_type_sect_off): Update.
3302
3303 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3304
3305 * dwarf2/read.c (process_full_comp_unit,
3306 process_full_type_unit): Remove per_cu, per_objfile paramters.
3307 Add dwarf2_cu parameter.
3308 (process_queue): Update.
3309
3310 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3311
3312 * dwarf2/read.c (create_cu_from_index_list): Replace
3313 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3314 (create_cus_from_index_list): Likewise.
3315 (create_cus_from_index): Likewise.
3316 (create_signatured_type_table_from_index): Likewise.
3317 (create_cus_from_debug_names_list): Likewise.
3318 (create_cus_from_debug_names): Likewise.
3319 (dwarf2_read_gdb_index): Update.
3320 (dwarf2_read_debug_names): Update.
3321
3322 2020-05-27 Tom Tromey <tom@tromey.com>
3323 Simon Marchi <simon.marchi@efficios.com>
3324
3325 * dwarf2/read.h (struct dwarf2_per_objfile)
3326 <get_type_for_signatured_type, set_type_for_signatured_type>:
3327 New methods.
3328 <m_type_map>: New member.
3329 (struct signatured_type) <type>: Remove.
3330 * dwarf2/read.c
3331 (dwarf2_per_objfile::get_type_for_signatured_type,
3332 dwarf2_per_objfile::set_type_for_signatured_type): New.
3333 (get_signatured_type): Use new methods.
3334
3335 2020-05-27 Tom Tromey <tom@tromey.com>
3336 Simon Marchi <simon.marchi@efficios.com>
3337
3338 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3339 (struct dwarf2_per_objfile) <type_units>: New member.
3340 <get_type_unit_group_unshareable>: New method.
3341 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3342 num_symtabs, symtabs>: Remove; move to
3343 type_unit_group_unshareable.
3344 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3345 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3346 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3347
3348 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3349
3350 * dwarf2/read.h (struct dwarf2_per_cu_data):
3351 <dwarf2_per_objfile>: Remove.
3352 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3353 dwarf2_per_objfile.
3354 (create_signatured_type_table_from_index): Likewise.
3355 (create_signatured_type_table_from_debug_names): Likewise.
3356 (create_debug_type_hash_table): Likewise.
3357 (fill_in_sig_entry_from_dwo_entry): Likewise.
3358 (create_type_unit_group): Likewise.
3359 (read_comp_units_from_section): Likewise.
3360 (create_cus_hash_table): Likewise.
3361
3362 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3365 dwarf2_per_cu_data::dwarf2_per_objfile.
3366 (compute_compunit_symtab_includes): Likewise.
3367 (dwarf2_cu::start_symtab): Likewise.
3368
3369 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3370
3371 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3372 parameter.
3373 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3374 (read_namespace_alias): Update.
3375 (lookup_die_type): Update.
3376 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3377 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3378 Update.
3379 (disassemble_dwarf_expression): Update.
3380
3381 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * dwarf2/read.h (struct dwarf2_queue_item): Add
3384 dwarf2_per_objfile parameter, assign new parameter.
3385 <per_objfile>: New field.
3386 * dwarf2/read.c (free_one_cached_comp_unit): Add
3387 dwarf2_per_objfile parameter.
3388 (queue_comp_unit): Likewise.
3389 (dw2_do_instantiate_symtab): Update.
3390 (process_psymtab_comp_unit): Update.
3391 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3392 (process_imported_unit_die): Update.
3393 (queue_and_load_dwo_tu): Update.
3394 (follow_die_offset): Update.
3395 (follow_die_sig_1): Update.
3396
3397 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3400 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3401 (read_call_site_scope): Assign per_objfile.
3402 (dwarf2_per_cu_data::objfile): Remove.
3403 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3404 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3405 dwarf2_per_objfile parameter.
3406 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3407 dwarf2_per_objfile parameter.
3408 (dwarf_expr_reg_to_entry_parameter): Add output
3409 dwarf2_per_objfile parameter.
3410 (locexpr_get_frame_base): Update.
3411 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3412 <push_dwarf_reg_entry_value>: Update.
3413 <call_site_to_target_addr>: Update.
3414 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3415 parameter.
3416 (value_of_dwarf_reg_entry): Update.
3417 (rw_pieced_value): Update.
3418 (indirect_synthetic_pointer): Update.
3419 (dwarf2_evaluate_property): Update.
3420 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3421 parameter.
3422 (locexpr_read_variable): Update.
3423 (locexpr_get_symbol_read_needs): Update.
3424 (loclist_read_variable): Update.
3425
3426 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3429 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3430 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3431 parameter.
3432 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3433 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3434 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3435 parameter.
3436 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3437 sect_variable_value): Add dwarf2_per_objfile parameter.
3438 (class dwarf_evaluate_loc_desc) <dwarf_call,
3439 dwarf_variable_value>: Update.
3440 (fetch_const_value_from_synthetic_pointer): Add
3441 dwarf2_per_objfile parameter.
3442 (fetch_const_value_from_synthetic_pointer): Update.
3443 (coerced_pieced_ref): Update.
3444 (class symbol_needs_eval_context) <dwarf_call,
3445 dwarf_variable_value>: Update.
3446 (dwarf2_compile_expr_to_ax): Update.
3447
3448 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3449
3450 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3451 parameter.
3452 (dwarf2_evaluate_loc_desc_full): Update.
3453
3454 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3455
3456 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3457 parameter.
3458 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3459 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3460 dwarf2_per_objfile parameter.
3461 (decode_debug_loc_dwo_addresses): Likewise.
3462 (dwarf2_find_location_expression): Update.
3463 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3464 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3465 parameter.
3466 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3467 parameter.
3468 (locexpr_describe_location_1): Likewise.
3469 (locexpr_describe_location): Update.
3470
3471 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3474 Remove.
3475 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3476 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3477 (dwarf2_compile_property_to_c): Update.
3478 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3479 use text offset from objfile.
3480 (locexpr_tracepoint_var_ref): Update.
3481 (locexpr_generate_c_location): Update.
3482 (loclist_describe_location): Update.
3483 (loclist_tracepoint_var_ref): Update.
3484 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3485 dwarf2_per_objfile parameter.
3486 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3487 use text offset from objfile.
3488 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3489
3490 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3491
3492 * dwarf2/expr.h (struct dwarf_expr_context)
3493 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3494 <offset>: Remove.
3495 <per_objfile>: New member.
3496 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3497 dwarf2_per_objfile parameter. Don't set offset, set
3498 per_objfile.
3499 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3500 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3501 a dwarf2_per_objfile object instead of an offset.
3502 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3503 constructor.
3504 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3505 to dwarf2_expr_executor constructor. Don't set offset.
3506 (dwarf2_fetch_cfa_info): Update.
3507 (struct dwarf2_frame_cache) <text_offset>: Remove.
3508 <per_objfile>: New field.
3509 (dwarf2_frame_cache): Update.
3510 (dwarf2_frame_prev_register): Update.
3511 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3512 <dwarf_evaluate_loc_desc>: Add constructor.
3513 (dwarf2_evaluate_loc_desc_full): Update.
3514 (dwarf2_locexpr_baton_eval): Update.
3515 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3516 Add constructor.
3517 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3518
3519 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3520
3521 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3522 addr_sized_int_type>: Move to dwarf2_cu.
3523 <int_type>: Move to dwarf2_per_objfile.
3524 (struct dwarf2_per_objfile) <int_type>: Move here.
3525 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3526 addr_sized_int_type>: Move here.
3527 (read_func_scope): Update.
3528 (read_array_type): Update.
3529 (read_tag_string_type): Update.
3530 (attr_to_dynamic_prop): Update.
3531 (dwarf2_per_cu_data::int_type): Rename to...
3532 (dwarf2_per_objfile::int_type): ... this.
3533 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3534 (dwarf2_cu::addr_sized_int_type): ... this.
3535 (read_subrange_type): Update.
3536 (dwarf2_per_cu_data::addr_type): Rename to...
3537 (dwarf2_cu::addr_type): ... this.
3538 (set_die_type): Update.
3539
3540 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3541
3542 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3543 data through per_cu->cu.
3544
3545 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3546
3547 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3548 dwarf2_per_cu_data parameter fo dwarf2_cu.
3549 (lookup_dwo_type_unit): Likewise.
3550 (read_cutu_die_from_dwo): Likewise.
3551 (lookup_dwo_unit): Likewise.
3552 (open_and_init_dwo_file): Likewise.
3553 (lookup_dwo_cutu): Likewise.
3554 (lookup_dwo_comp_unit): Likewise.
3555 (lookup_dwo_type_unit): Likewise.
3556 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3557 (cutu_reader::cutu_reader): Update.
3558
3559 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3560
3561 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3562 parameter.
3563 (process_full_type_unit): Likewise.
3564 (process_queue): Update.
3565
3566 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3567
3568 * dwarf2/read.c (recursively_compute_inclusions): Add
3569 dwarf2_per_objfile parameter.
3570 (compute_compunit_symtab_includes): Likewise.
3571 (process_cu_includes): Update.
3572
3573 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3574
3575 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3576 parameter.
3577 (create_type_unit_group): Update.
3578 (process_psymtab_comp_unit_reader): Update.
3579 (build_type_psymtabs_reader): Update.
3580
3581 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3582
3583 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3584 object through m_this_cu->cu.
3585
3586 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3587
3588 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3589 the info parameter.
3590 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3591
3592 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3593
3594 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3595 per_objfile parameter.
3596 (load_full_type_unit): Add per_objfile parameter.
3597 (read_signatured_type): Likewise.
3598 (load_full_comp_unit): Likewise.
3599 (load_cu): Likewise.
3600 (dw2_do_instantiate_symtab): Likewise.
3601 (dw2_get_file_names): Likewise.
3602 (dw2_map_symtabs_matching_filename): Update.
3603 (dw_expand_symtabs_matching_file_matcher): Update.
3604 (dw2_map_symbol_filenames): Update.
3605 (process_psymtab_comp_unit): Add per_objfile parameter.
3606 (build_type_psymtabs_1): Update.
3607 (process_skeletonless_type_unit): Update.
3608 (dwarf2_build_psymtabs_hard): Update.
3609 (load_partial_comp_unit): Add per_objfile parameter.
3610 (scan_partial_symbols): Update.
3611 (load_full_comp_unit): Add per_objfile parameter.
3612 (process_imported_unit_die): Update.
3613 (create_cus_hash_table): Update.
3614 (find_partial_die): Update.
3615 (dwarf2_read_addr_index): Update.
3616 (follow_die_offset): Update.
3617 (dwarf2_fetch_die_loc_sect_off): Update.
3618 (dwarf2_fetch_constant_bytes): Update.
3619 (dwarf2_fetch_die_type_sect_off): Update.
3620 (follow_die_sig_1): Update.
3621 (load_full_type_unit): Add per_objfile parameter.
3622 (read_signatured_type): Likewise.
3623
3624 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3625
3626 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3627 of objfile_name.
3628
3629 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3630
3631 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3632 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3633 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3634 field.
3635 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3636 (create_cus_from_index): Update.
3637 (dwarf2_read_gdb_index): Update.
3638 (create_cus_from_debug_names): Update.
3639 (dwarf2_read_debug_names): Update.
3640 (get_abbrev_section_for_cu): Update.
3641 (create_all_comp_units): Update.
3642 (read_attribute_value): Update.
3643 (get_debug_line_section): Update.
3644 * dwarf2/index-cache.c (index_cache::store): Update.
3645 * dwarf2/index-write.c (save_gdb_index_command): Update.
3646 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3647
3648 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3649
3650 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3651 member.
3652 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3653 dwarf2_per_cu_data::per_bfd.
3654 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3655 (create_type_unit_group): Likewise.
3656 (queue_comp_unit): Remove reference to
3657 per_cu->dwarf2_per_objfile.
3658 (maybe_queue_comp_unit): Likewise.
3659 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3660 (create_cus_hash_table): Assign new field.
3661
3662 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3663
3664 * dwarf2/read.c: Replace
3665 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3666 dwarf2_cu->per_objfile throughout.
3667
3668 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3669
3670 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3671 parameter, don't use per_cu->dwarf2_per_objfile.
3672 (dw2_instantiate_symtab): Likewise.
3673 (dw2_find_last_source_symtab): Update.
3674 (dw2_map_expand_apply): Update.
3675 (dw2_lookup_symbol): Update.
3676 (dw2_expand_symtabs_for_function): Update.
3677 (dw2_expand_all_symtabs): Update.
3678 (dw2_expand_symtabs_with_fullname): Update.
3679 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3680 don't use per_cu->dwarf2_per_objfile.
3681 (dw2_expand_marked_cus): Update.
3682 (dw2_find_pc_sect_compunit_symtab): Update.
3683 (dw2_debug_names_lookup_symbol): Update.
3684 (dw2_debug_names_expand_symtabs_for_function): Update.
3685 (dw2_debug_names_map_matching_symbols): Update.
3686 (dwarf2_psymtab::expand_psymtab): Update.
3687
3688 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3689
3690 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3691 <per_objfile>: New member.
3692 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3693 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3694 call to dwarf2_cu.
3695 (cutu_reader::cutu_reader): Update.
3696 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3697
3698 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3699
3700 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3701 struct dwarf2_per_objfile.
3702 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3703 dwarf2_per_bfd.
3704 * dwarf2/read.c (set_die_type): Update.
3705 (get_die_type_at_offset): Update.
3706
3707 2020-05-27 Tom Tromey <tom@tromey.com>
3708 Simon Marchi <simon.marchi@efficios.com>
3709
3710 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3711 method.
3712 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3713 get_symtab, set_symtab>: New methods.
3714 <m_symtabs>: New field.
3715 (struct dwarf2_psymtab): Derive from partial_symtab.
3716 <readin_p, get_compunit_symtab>: Declare methods.
3717 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3718 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3719 New methods.
3720 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3721 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3722 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3723 (dw2_symtab_iter_next, dw2_print_stats)
3724 (dw2_expand_symtabs_with_fullname)
3725 (dw2_expand_symtabs_matching_one)
3726 (dw_expand_symtabs_matching_file_matcher)
3727 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3728 (dw2_debug_names_iterator::next)
3729 (dw2_debug_names_map_matching_symbols)
3730 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3731 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3732 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3733 New methods.
3734 (get_compunit_symtab, process_full_comp_unit)
3735 (process_full_type_unit): Update.
3736 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3737
3738 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3739
3740 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3741 then introduce a new dwarf2_per_objfile type.
3742 <read_line_string>: Move to the new dwarf2_per_objfile type.
3743 <objfile>: Likewise.
3744 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3745 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3746 dwarf2_per_objfile->per_bfd.
3747 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3748 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3749 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3750 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3751 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3752 (dwarf2_per_objfile::locate_sections): Rename to...
3753 (dwarf2_per_bfd::locate_sections): ... this.
3754 (dwarf2_per_objfile::get_cutu): Rename to...
3755 (dwarf2_per_bfd::get_cutu): ... this.
3756 (dwarf2_per_objfile::get_cu): Rename to...
3757 (dwarf2_per_bfd::get_cu): ... this.
3758 (dwarf2_per_objfile::get_tu): Rename to...
3759 (dwarf2_per_bfd::get_tu): ... this.
3760 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3761 (dwarf2_per_bfd::allocate_per_cu): ... this.
3762 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3763 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3764 (get_gdb_index_contents_ftype): Change parameter from
3765 dwarf2_per_objfile to dwarf2_per_bfd.
3766 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3767 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3768
3769 2020-05-27 Tom Tromey <tom@tromey.com>
3770 Simon Marchi <simon.marchi@efficios.com>
3771
3772 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3773 (allocate_piece_closure): Set "per_objfile" member.
3774 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3775 (locexpr_describe_location, loclist_describe_location): Use new
3776 member.
3777 * dwarf2/read.c (read_call_site_scope)
3778 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3779 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3780 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3781 handle_data_member_location): Set per_objfile member.
3782 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3783 member.
3784 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3785
3786 2020-05-27 Tom Tromey <tom@tromey.com>
3787
3788 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3789 allocate_signatured_type>: Declare new methods.
3790 <m_num_psymtabs>: New member.
3791 (struct dwarf2_per_cu_data) <index>: New member.
3792 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3793 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3794 (create_cu_from_index_list): Use allocate_per_cu.
3795 (create_signatured_type_table_from_index)
3796 (create_signatured_type_table_from_debug_names)
3797 (create_debug_type_hash_table, add_type_unit)
3798 (read_comp_units_from_section): Use allocate_signatured_type.
3799
3800 2020-05-27 Tom Tromey <tom@tromey.com>
3801
3802 * psymtab.c (partial_map_expand_apply)
3803 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3804 (psym_lookup_global_symbol_language)
3805 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3806 (psym_print_stats, psym_expand_symtabs_for_function)
3807 (psym_map_symbol_filenames, psym_map_matching_symbols)
3808 (psym_expand_symtabs_matching)
3809 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3810 (maintenance_check_psymtabs): Update.
3811 * psympriv.h (struct partial_symtab) <readin_p,
3812 get_compunit_symtab>: Add objfile parameter.
3813 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3814 Likewise.
3815 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3816 get_compunit_symtab>: Likewise.
3817 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3818
3819 2020-05-27 Tom Tromey <tom@tromey.com>
3820
3821 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3822 member.
3823 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3824 (create_cu_from_index_list)
3825 (create_signatured_type_table_from_index)
3826 (create_signatured_type_table_from_debug_names)
3827 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3828 (dwarf2_create_include_psymtab)
3829 (create_debug_type_hash_table, add_type_unit)
3830 (create_type_unit_group, read_comp_units_from_section)
3831 (dwarf2_compute_name, create_cus_hash_table)
3832 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3833 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3834 obstack.
3835 (dw2_get_real_path): Likewise. Change argument to
3836 dwarf2_per_objfile.
3837
3838 2020-05-27 Luis Machado <luis.machado@linaro.org>
3839
3840 PR tdep/26000
3841 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3842 for ldrd (immediate).
3843
3844 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3845
3846 * command.h: Add comment giving the name of class_tui.
3847 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3848 create the fake command for the help for class_tui.
3849
3850 2020-05-26 Tom Tromey <tromey@adacore.com>
3851
3852 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3853 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3854 (val_atr): New function.
3855 (value_val_atr): Use it.
3856 * ada-valprint.c (print_optional_low_bound): Change low bound
3857 handling for enums.
3858 (val_print_packed_array_elements): Don't call discrete_position.
3859 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3860 discrete_position for enum types.
3861 * language.c (default_print_array_index): Change type.
3862 * language.h (struct language_defn) <la_print_array_index>: Add
3863 index_type parameter, change type of index_value.
3864 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3865 (default_print_array_index): Update.
3866 * valprint.c (maybe_print_array_index): Don't call
3867 value_from_longest. Update.
3868 (value_print_array_elements): Don't call discrete_position.
3869
3870 2020-05-26 Tom Tromey <tromey@adacore.com>
3871
3872 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3873 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3874
3875 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3876
3877 PR gdb/13519
3878 * avr-tdep.c (avr_integer_to_address): Return data or code
3879 address accordingly to the second 'type' argument of the
3880 function.
3881
3882 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3883
3884 * infcmd.c, inferior.h: (construct_inferior_arguments):
3885 Moved function from here to gdbsupport/common-inferior.{h,cc}
3886
3887 2020-05-23 Tom Tromey <tom@tromey.com>
3888
3889 Revert commit eca1f90c:
3890 * NEWS: Remove entry for completion styling.
3891 * completer.c (_rl_completion_prefix_display_length): Move
3892 declaration later.
3893 (gdb_fnprint): Revert.
3894 (gdb_display_match_list_1): Likewise.
3895 * cli/cli-style.c (completion_prefix_style)
3896 (completion_difference_style, completion_suffix_style): Remove.
3897 (_initialize_cli_style): Revert.
3898 * cli/cli-style.h (completion_prefix_style)
3899 (completion_difference_style, completion_suffix_style): Don't
3900 declare.
3901
3902 2020-05-24 Pedro Alves <palves@redhat.com>
3903
3904 * symtab.c (completion_list_add_name): Return boolean indication
3905 of whether the symbol matched.
3906 (completion_list_add_symbol): Don't try to remove C++ aliases if
3907 the symbol didn't match in the first place.
3908 * symtab.h (completion_list_add_name): Return bool.
3909
3910 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3911
3912 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3913 type::field.
3914
3915 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3916
3917 GDB 9.2 released.
3918
3919 2020-05-23 Tom Tromey <tom@tromey.com>
3920
3921 * NEWS: Add entry for completion styling.
3922 * completer.c (_rl_completion_prefix_display_length): Move
3923 declaration earlier.
3924 (gdb_fnprint): Use completion_style.
3925 (gdb_display_match_list_1): Likewise.
3926 * cli/cli-style.c (completion_prefix_style)
3927 (completion_difference_style, completion_suffix_style): New
3928 globals.
3929 (_initialize_cli_style): Register new globals.
3930 * cli/cli-style.h (completion_prefix_style)
3931 (completion_difference_style, completion_suffix_style): Declare.
3932
3933 2020-05-23 Pedro Alves <palves@redhat.com>
3934
3935 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3936 (parse_escape): Use ISDIGIT instead of isdigit.
3937 (puts_debug): Use gdb_isprint instead of isprint.
3938 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3939 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3940 ISSPACE instead of isspace.
3941 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3942 instead of isspace.
3943 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3944 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3945 instead of isxdigit and ISDIGIT instead of isdigit.
3946
3947 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3948
3949 * gdbtypes.h (struct type) <field>: New method.
3950 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3951 or type::field.
3952
3953 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3954
3955 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3956 (TYPE_FIELDS): Use type::fields. Change all call sites that
3957 modify the propery to use type::set_fields instead.
3958
3959 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3962 type::num_fields instead.
3963
3964 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3965
3966 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
3967 methods.
3968 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
3969 that modify the number of fields to use type::set_num_fields
3970 instead.
3971
3972 2020-05-22 Tom Tromey <tromey@adacore.com>
3973
3974 * compile/compile-object-load.h (munmap_list_free): Don't
3975 declare.
3976
3977 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * annotate.c (annotate_source_line): Update return type, add call
3980 to update current symtab and line.
3981 * annotate.h (annotate_source_line): Update return type, and
3982 extend header comment.
3983 * source.c (info_line_command): Check annotation_level before
3984 calling annotate_source_line.
3985 * stack.c (print_frame_info): If calling annotate_source_line
3986 returns true, then don't print any other source line information.
3987
3988 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
3991
3992 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * coffread.c (patch_type): Remove NULL check before xfree.
3995 * corefile.c (set_gnutarget): Likewise.
3996 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
3997 * exec.c (build_section_table): Likewise.
3998 * remote.c (remote_target::pass_signals): Likewise.
3999 * utils.c (n_spaces): Likewise.
4000 * cli/cli-script.c (document_command): Likewise.
4001 * i386-windows-tdep.c (core_process_module_section): Likewise.
4002 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4003
4004 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4005
4006 * symfile.c (reread_symbols): Clear objfile's section_offsets
4007 vector and section indices, re-compute them by calling
4008 sym_offsets.
4009
4010 2020-05-20 Tom Tromey <tromey@adacore.com>
4011
4012 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4013 (desc_one_bound, desc_index_type): Compute field name.
4014
4015 2020-05-20 Tom de Vries <tdevries@suse.de>
4016
4017 PR symtab/25833
4018 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4019
4020 2020-05-20 Alan Modra <amodra@gmail.com>
4021
4022 PR 25993
4023 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4024 bfd_set_filename.
4025 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4026 passed to bfd_set_filename.
4027 * symfile-mem.c (add_vsyscall_page): Likewise for string
4028 passed to symbol_file_add_from_memory.
4029 (symbol_file_add_from_memory): Make name param a const char* and
4030 don't strdup.
4031
4032 2020-05-20 Alan Modra <amodra@gmail.com>
4033
4034 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4035 rather than accessing bfd->filename directly.
4036 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4037 and use bfd_section_name.
4038 * dwarf2/frame.c (decode_frame_entry): Likewise.
4039 * exec.c (exec_set_section_address): Likewise.
4040 * solib-aix.c (solib_aix_bfd_open): Likewise.
4041 * stap-probe.c (get_stap_base_address): Likewise.
4042 * symfile.c (reread_symbols): Likewise.
4043
4044 2020-05-19 Tom Tromey <tromey@adacore.com>
4045
4046 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4047
4048 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4049
4050 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4051
4052 2020-05-19 Pedro Alves <palves@redhat.com>
4053
4054 * NEWS (set exec-file-mismatch): Adjust entry.
4055 * exec.c: Include "build-id.h".
4056 (validate_exec_file): Try to match build IDs instead of filenames.
4057 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4058 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4059 and pass down 'warn_if_slow'.
4060 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4061 gdb_bfd_open_closure to pass it down.
4062 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4063
4064 2020-05-19 Pedro Alves <palves@redhat.com>
4065
4066 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4067 * target.c (target_fileio_open_1): Rename to target_fileio_open
4068 and make extern. Use bool.
4069 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4070 (target_fileio_read_alloc_1): Adjust.
4071 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4072 (target_fileio_open_warn_if_slow): Delete declaration.
4073
4074 2020-05-19 Pedro Alves <palves@redhat.com>
4075
4076 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4077 Adjust all callers.
4078
4079 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4080
4081 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4082 whether disp is negative.
4083
4084 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4085
4086 * symfile.h (struct symfile_segment_data)
4087 <~symfile_segment_data>: Remove.
4088 <segment_info>: Change to std::vector.
4089 * symfile.c (default_symfile_segments): Update.
4090 * elfread.c (elf_symfile_segments): Update.
4091
4092 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4095 <segments>: New.
4096 <segment_bases, segment_sizes>: Remove.
4097 * symfile.c (default_symfile_segments): Update.
4098 * elfread.c (elf_symfile_segments): Update.
4099 * remote.c (remote_target::get_offsets): Update.
4100 * solib-target.c (solib_target_relocate_section_addresses):
4101 Update.
4102
4103 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4104
4105 * symfile.h (struct symfile_segment_data): Initialize fields.
4106 <~symfile_segment_data>: Add.
4107 (symfile_segment_data_up): New.
4108 (struct sym_fns) <sym_segments>: Return a
4109 symfile_segment_data_up.
4110 (default_symfile_segments): Return a symfile_segment_data_up.
4111 (free_symfile_segment_data): Remove.
4112 (get_symfile_segment_data): Return a symfile_segment_data_up.
4113 * symfile.c (default_symfile_segments): Likewise.
4114 (get_symfile_segment_data): Likewise.
4115 (free_symfile_segment_data): Remove.
4116 (symfile_find_segment_sections): Update.
4117 * elfread.c (elf_symfile_segments): Return a
4118 symfile_segment_data_up.
4119 * remote.c (remote_target::get_offsets): Update.
4120 * solib-target.c (solib_target_relocate_section_addresses):
4121 Update.
4122 * symfile-debug.c (debug_sym_segments): Return a
4123 symfile_segment_data_up.
4124
4125 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4126
4127 PR build/25981
4128 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4129 Hardcode register numbers.
4130
4131 PR build/25981
4132 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4133 procfs_find_LDT_entry): Remove.
4134 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4135 procfs_find_LDT_entry): Remove.
4136 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4137 Remove.
4138
4139 2020-05-17 Pedro Alves <palves@redhat.com>
4140 Andrew Burgess <andrew.burgess@embecosm.com>
4141 Keno Fischer <keno@juliacomputing.com>
4142
4143 PR gdb/25741
4144 * breakpoint.c (build_target_condition_list): Update comments.
4145 (build_target_command_list): Update comments and skip matching
4146 locations.
4147 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4148 a separate function. Simplify "set breakpoint auto-hw off"
4149 handling.
4150 (insert_breakpoints): Update comment.
4151 (tracepoint_locations_match): New parameter. For breakpoints,
4152 compare location types too, if the caller wants to.
4153 (handle_automatic_hardware_breakpoints): New functions.
4154 (bp_location_is_less_than): Also sort by location type and
4155 hardware breakpoint length.
4156 (update_global_location_list): Handle "set breakpoint auto-hw on"
4157 here.
4158 (update_breakpoint_locations): Ask breakpoint_locations_match to
4159 ignore location types.
4160
4161 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4162
4163 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4164 type::name instead.
4165
4166 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4167
4168 * gdbtypes.h (struct type) <name, set_name>: New methods.
4169 (TYPE_CODE): Use type::name. Change all call sites used to set
4170 the name to use type::set_name instead.
4171
4172 2020-05-16 Tom Tromey <tom@tromey.com>
4173
4174 * top.c (quit_force): Update.
4175 * infrun.c (handle_no_resumed): Update.
4176 * top.h (all_uis): New function.
4177 (ALL_UIS): Remove.
4178
4179 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4180
4181 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4182
4183 2020-05-16 Pedro Alves <palves@redhat.com>
4184
4185 * ia64-linux-nat.c
4186 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4187 Declare method.
4188 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4189
4190 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4191
4192 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4193 (sparc64_adi_info): Likewise.
4194
4195 2020-05-15 Tom Tromey <tom@tromey.com>
4196
4197 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4198 block_objfile.
4199 (lookup_objfile_from_block): Remove.
4200 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4201 (lookup_global_symbol): Use block_objfile.
4202 * symtab.h (lookup_objfile_from_block): Don't declare.
4203 * printcmd.c (clear_dangling_display_expressions): Use
4204 block_objfile.
4205 * parse.c (operator_check_standard): Use block_objfile.
4206
4207 2020-05-15 Tom Tromey <tom@tromey.com>
4208
4209 * language.c (language_alloc_type_symbol): Set
4210 SYMBOL_SECTION.
4211 * symtab.c (initialize_objfile_symbol): Remove.
4212 (allocate_symbol): Remove.
4213 (allocate_template_symbol): Remove.
4214 * dwarf2/read.c (fixup_go_packaging): Use "new".
4215 (new_symbol): Use "new".
4216 (read_variable): Don't call initialize_objfile_symbol. Use
4217 "new".
4218 (read_func_scope): Use "new".
4219 * xcoffread.c (process_xcoff_symbol): Don't call
4220 initialize_objfile_symbol.
4221 (SYMBOL_DUP): Remove.
4222 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4223 "new".
4224 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4225 (allocate_template_symbol): Don't declare.
4226 (struct symbol): Add copy constructor. Change defaults.
4227 * jit.c (finalize_symtab): Use "new".
4228 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4229 Use "new".
4230 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4231 (common_block_end): Use "new".
4232 * mdebugread.c (parse_symbol): Use "new".
4233 (new_symbol): Likewise.
4234
4235 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4236
4237 * NEWS: Mention changes to help and apropos.
4238
4239 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4240
4241 * command.h (enum command_class): Improve comments, document
4242 that class_alias is for user-defined aliases, give the class
4243 name for each class, remove unused class_xdb.
4244 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4245 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4246 by a precise class.
4247 * infcmd.c (_initialize_infcmd): Likewise.
4248 * reverse.c (_initialize_reverse): Likewise.
4249 * stack.c (_initialize_stack): Likewise.
4250 * symfile.c (_initialize_symfile): Likewise.
4251 * tracepoint.c (_initialize_tracepoint): Likewise.
4252
4253 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4254
4255 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4256 when their aliased command is traversed.
4257 (help_cmd): Add fput_command_names_styled call to
4258 output command name and aliases when command has an alias.
4259
4260 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4261
4262 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4263 * cli/cli-decode.c (help_cmd_list): Declare as static,
4264 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4265 a command together with the command.
4266 (fput_command_name_styled, fput_command_names_styled): New functions.
4267 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4268 fput_command_name_styled.
4269 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4270 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4271
4272 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4273
4274 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4275 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4276 * command.h (cmd_show_list): Likewise.
4277 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4278 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4279
4280 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4281
4282 * unittests/command-def-selftests.c (traverse_command_structure):
4283 Verify all commands of a list have the same prefix command and
4284 that only the top cmdlist commands have a null prefix.
4285
4286 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4287
4288 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4289 as prefix, not one of its aliases.
4290 (set_cmd_prefix): Remove.
4291 (do_add_cmd): Centralize the setting of the prefix of a command, when
4292 command is defined after its full chain of prefix commands.
4293 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4294 (add_setshow_cmd_full): Likewise.
4295 (update_prefix_field_of_prefixed_commands): New function.
4296 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4297 update_prefix_field_of_prefixed_commands.
4298 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4299 addresses of remote_set_cmdlist and remote_show_cmdlist given
4300 as argument, not the address of an argument.
4301 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4302 * gdb/remote.c (_initialize_remote): Likewise.
4303
4304 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4305
4306 * cli/cli-cmds.c (alias_command): Check for an existing alias
4307 using lookup_cmd_composition, as valid_command_p is too strict
4308 and forbids aliases that are the prefix of an existing alias
4309 or command.
4310 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4311 command is properly recognised as a valid command.
4312
4313 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4314
4315 * unittests/help-doc-selftests.c: Rename to
4316 unittests/command-def-selftests.c
4317 * unittests/command-def-selftests.c (help_doc_tests): Update some
4318 comments.
4319 (command_structure_tests, traverse_command_structure): New namespace
4320 and function.
4321 (command_structure_invariants_tests): New function.
4322 (_initialize_command_def_selftests) Renamed from
4323 _initialize_help_doc_selftests, register command_structure_invariants
4324 selftest.
4325
4326 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4327
4328 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4329 an alias of 'show'.
4330
4331 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4332
4333 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4334 ada_is_fixed_point_type. Update all callers.
4335 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4336 all callers.
4337 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4338 Update all callers.
4339 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4340 print_fixed_point_type. Update all callers.
4341 * ada-valprint.c (ada_value_print_num): Replace call to
4342 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4343
4344 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4345
4346 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4347 processors.
4348 (cpu_supports_bts): Add CV_AMD case.
4349
4350 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4351 Simon Marchi <simon.marchi@efficios.com>
4352
4353 * infrun.c (stop_all_threads): Collect multiple wait events at
4354 each pass.
4355
4356 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4357
4358 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4359 type::code instead.
4360
4361 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * gdbtypes.h (struct type) <code, set_code>: New methods.
4364 (TYPE_CODE): Use type::code. Change all call sites used to set
4365 the code to use type::set_code instead.
4366
4367 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4368 Tom de Vries <tdevries@suse.de>
4369 Pedro Alves <palves@redhat.com>
4370
4371 PR threads/25478
4372 * infrun.c (stop_all_threads): Do NOT ignore
4373 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4374 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4375 received.
4376 (handle_no_resumed): Remove code handling a live inferior with no
4377 threads.
4378 * remote.c (has_single_non_exited_thread): New.
4379 (remote_target::update_thread_list): Do not delete a thread if is
4380 the last thread of the process.
4381 * thread.c (thread_select): Call delete_exited_threads instead of
4382 prune_threads.
4383
4384 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4385
4386 * infrun.c (stop_all_threads): Enable/disable thread events of all
4387 targets. Move a debug message denoting the end of the function
4388 into the SCOPED_EXIT block.
4389
4390 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4391
4392 * process-stratum-target.h: Include <set>.
4393 (all_non_exited_process_targets, switch_to_target_no_thread): New
4394 function declarations.
4395 * process-stratum-target.c (all_non_exited_process_targets)
4396 (switch_to_target_no_thread): New function implementations.
4397
4398 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4399
4400 * infrun.c (handle_inferior_event): Extract out a piece of code
4401 into...
4402 (mark_non_executing_threads): ...this new function.
4403
4404 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4405
4406 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4407 use.
4408
4409 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4410
4411 * regcache.c (regcache_read_pc_protected): New function
4412 implementation that returns 0 if the PC cannot read via
4413 'regcache_read_pc'.
4414 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4415 instead of 'regcache_read_pc'.
4416 (keep_going_pass_signal): Ditto.
4417
4418 2020-05-13 Tom Tromey <tromey@adacore.com>
4419
4420 * ada-lang.c (align_value): Remove.
4421 (ada_template_to_fixed_record_type_1): Use align_up.
4422
4423 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4424
4425 * async-event.c: Update the copyright year.
4426 * async-event.h: Update the copyright year.
4427
4428 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4429
4430 * objfiles.h (is_addr_in_objfile,
4431 shared_objfile_contains_address_p): Return bool.
4432 * objfile.c (is_addr_in_objfile,
4433 shared_objfile_contains_address_p): Return bool.
4434
4435 2020-05-11 Tom Tromey <tromey@adacore.com>
4436
4437 * cli/cli-cmds.c (info_command): Restore.
4438 (_initialize_cli_cmds): Use add_prefix_command for "info".
4439 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4440
4441 2020-05-11 Tom Tromey <tromey@adacore.com>
4442
4443 * ada-lang.c (ada_value_primitive_field): Now public.
4444 * ada-lang.h (ada_value_primitive_field): Declare.
4445 * ada-valprint.c (print_field_values): Use
4446 ada_value_primitive_field for wrapper fields.
4447
4448 2020-05-11 Tom de Vries <tdevries@suse.de>
4449
4450 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4451 MODULE_DOMAIN.
4452
4453 2020-05-11 Tom de Vries <tdevries@suse.de>
4454
4455 PR symtab/25941
4456 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4457 with length 0, if not gdb-produced.
4458 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4459
4460 2020-05-09 Tom de Vries <tdevries@suse.de>
4461
4462 PR gdb/25955
4463 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4464 calculation.
4465
4466 2020-05-09 Tom Tromey <tom@tromey.com>
4467
4468 * top.c (server_command): Now bool.
4469 * top.h (server_command): Now bool.
4470
4471 2020-05-08 Tom Tromey <tromey@adacore.com>
4472
4473 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4474 already being processed.
4475
4476 2020-05-08 Tom Tromey <tom@tromey.com>
4477
4478 * printcmd.c (struct display) <next>: Remove.
4479 <display>: New constructor.
4480 <exp_string>: Now a std::string.
4481 <enabled_p>: Now a bool.
4482 (display_number): Move definition earlier.
4483 (displays): Rename from display_chain. Now a std::vector.
4484 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4485 (display_command): Update.
4486 (do_one_display, disable_display)
4487 (enable_disable_display_command, do_enable_disable_display):
4488 Update.
4489 (free_display): Remove.
4490 (clear_displays): Rewrite.
4491 (delete_display): Update.
4492 (map_display_numbers): Use function_view. Remove "data"
4493 parameter. Update.
4494 (do_delete_display): Remove.
4495 (undisplay_command): Update.
4496 (do_one_display, do_displays, disable_display)
4497 (info_display_command): Update.
4498 (do_enable_disable_display): Remove.
4499 (enable_disable_display_command)
4500 (clear_dangling_display_expressions): Update.
4501
4502 2020-05-08 Tom Tromey <tom@tromey.com>
4503
4504 * symtab.c (set_symbol_cache_size)
4505 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4506 (maintenance_print_symbol_cache_statistics): Update.
4507 * symmisc.c (print_symbol_bcache_statistics)
4508 (print_objfile_statistics, maintenance_print_objfiles)
4509 (maintenance_info_symtabs, maintenance_check_symtabs)
4510 (maintenance_expand_symtabs, maintenance_info_line_tables):
4511 Update.
4512 * symfile-debug.c (set_debug_symfile): Update.
4513 * source.c (forget_cached_source_info): Update.
4514 * python/python.c (gdbpy_progspaces): Update.
4515 * psymtab.c (maintenance_info_psymtabs): Update.
4516 * probe.c (parse_probes): Update.
4517 * linespec.c (iterate_over_all_matching_symtabs)
4518 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4519 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4520 * exec.c (exec_target::close): Update.
4521 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4522 * breakpoint.c (print_one_breakpoint_location)
4523 (create_longjmp_master_breakpoint)
4524 (create_std_terminate_master_breakpoint): Update.
4525 * progspace.c (program_spaces): Now a std::vector.
4526 (maybe_new_address_space): Update.
4527 (add_program_space): Remove.
4528 (program_space::program_space): Update.
4529 (remove_program_space): Update.
4530 (number_of_program_spaces): Remove.
4531 (print_program_space, update_address_spaces): Update.
4532 * progspace.h (program_spaces): Change type.
4533 (ALL_PSPACES): Remove.
4534 (number_of_program_spaces): Don't declare.
4535 (struct program_space) <next>: Remove.
4536
4537 2020-05-08 Tom Tromey <tom@tromey.com>
4538
4539 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4540 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4541 (enable_break): Update.
4542 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4543 (frv_fdpic_find_canonical_descriptor): Update.
4544 (frv_fetch_objfile_link_map): Update.
4545 * progspace.c (program_space::free_all_objfiles): Update.
4546 (program_space::solibs): New method.
4547 * progspace.h (struct program_space) <solibs>: New method.
4548 * solist.h (master_so_list): Don't declare.
4549 (ALL_SO_LIBS): Remove.
4550 * solib.h (so_list_head): Remove.
4551 (update_solib_list): Update comment.
4552 * solib.c (master_so_list): Remove.
4553 (solib_used, update_solib_list, solib_add)
4554 (info_sharedlibrary_command, clear_solib)
4555 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4556
4557 2020-05-08 Tom Tromey <tom@tromey.com>
4558
4559 * extension.c (extension_languages): Now a std::array.
4560 (ALL_EXTENSION_LANGUAGES): Remove.
4561 (get_ext_lang_defn, get_ext_lang_of_file)
4562 (eval_ext_lang_from_control_command): Update.
4563 (finish_ext_lang_initialization)
4564 (auto_load_ext_lang_scripts_for_objfile)
4565 (ext_lang_type_printers::ext_lang_type_printers)
4566 (apply_ext_lang_type_printers)
4567 (ext_lang_type_printers::~ext_lang_type_printers)
4568 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4569 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4570 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4571 (get_matching_xmethod_workers, ext_lang_colorize)
4572 (ext_lang_before_prompt): Update.
4573 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4574
4575 2020-05-08 Tom Tromey <tom@tromey.com>
4576
4577 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4578 overload.
4579 <swap_string, m_string>: Remove.
4580 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4581 Update.
4582 * stabsread.c (define_symbol, read_type): Update.
4583 * linespec.c (find_linespec_symbols): Update.
4584 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4585 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4586 * dbxread.c (read_dbx_symtab): Update.
4587 * cp-support.h (cp_canonicalize_string_full)
4588 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4589 Return unique_xmalloc_ptr.
4590 * cp-support.c (inspect_type): Update.
4591 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4592 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4593 Likewise.
4594 * c-typeprint.c (print_name_maybe_canonical): Update.
4595 * break-catch-throw.c (check_status_exception_catchpoint):
4596 Update.
4597
4598 2020-05-08 Tom de Vries <tdevries@suse.de>
4599
4600 * infrun.c (follow_fork): Copy current_line and current_symtab to
4601 child thread.
4602
4603 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4604
4605 * async-event.c (struct async_signal_handler, struct
4606 async_event_handler): Reformat, remove typedef.
4607
4608 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4609
4610 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4611 access thistype->main_type->dyn_prop_list directly.
4612
4613 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4614
4615 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4616 (remove_dyn_prop): Remove. Update all users to use
4617 type::remove_dyn_prop.
4618 * gdbtypes.c (remove_dyn_prop): Rename to...
4619 (type::remove_dyn_prop): ... this.
4620
4621 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4622
4623 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4624 (add_dyn_prop): Remove. Update all users to use
4625 type::add_dyn_prop.
4626 * gdbtypes.c (add_dyn_prop): Rename to...
4627 (type::add_dyn_prop): ... this.
4628
4629 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4630
4631 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4632 (get_dyn_prop): Remove. Update all users to use
4633 type::dyn_prop.
4634 * gdbtypes.c (get_dyn_prop): Rename to...
4635 (type::dyn_prop): ... this.
4636
4637 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4638
4639 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4640
4641 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4644 instruction, skip it if it's there.
4645
4646 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4649
4650 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4653 * gdbtypes.c (recursive_dump_type): Remove use of
4654 TYPE_INCOMPLETE.
4655
4656 2020-05-03 Tom Tromey <tom@tromey.com>
4657
4658 * breakpoint.c (catch_command, tcatch_command): Remove.
4659 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4660 add_show_prefix_cmd.
4661 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4662 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4663 Remove.
4664 (add_internal_problem_command): Use add_basic_prefix_cmd,
4665 add_show_prefix_cmd.
4666 * mips-tdep.c (set_mipsfpu_command): Remove.
4667 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4668 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4669 (_initialize_index_cache): Use add_basic_prefix_cmd.
4670 * memattr.c (dummy_cmd): Remove.
4671 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4672 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4673 (_initialize_tui_win): Use add_basic_prefix_cmd,
4674 add_show_prefix_cmd.
4675 * cli/cli-logging.c (set_logging_command): Remove.
4676 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4677 add_show_prefix_cmd.
4678 (show_logging_command): Remove.
4679 * target.c (target_command): Remove.
4680 (add_target): Use add_basic_prefix_cmd.
4681
4682 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4683
4684 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4685
4686 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4687
4688 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4689 info_command.
4690
4691 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4692
4693 * nbsd-nat.c (nbsd_enable_proc_events)
4694 (nbsd_nat_target::post_startup_inferior): Add.
4695 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4696 (nbsd_nat_target::update_thread_list): Rewrite.
4697 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4698 "PTRACE_LWP_CREATE".
4699 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4700
4701 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4702
4703 * stack.c (_initialize_stack): Remove duplicated creation
4704 of "frame" command and "f" alias.
4705
4706 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4707
4708 PR gdb/18706
4709 * gdbtypes.c (check_typedef): Calculate size of array of
4710 stubbed type.
4711
4712 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4713
4714 PR gdb/15559
4715 * i386-tdep.c (i386_push_dummy_call): Call
4716 i386_thiscall_push_dummy_call.
4717 (i386_thiscall_push_dummy_call): New function.
4718 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4719 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4720 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4721
4722 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4723
4724 * gdbarch.sh (do_read): Add shellcheck disable directive for
4725 warning SC2162.
4726
4727 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4728
4729 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4730 "referenced but not assigned" warning.
4731
4732 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4733
4734 * gdbarch.sh: Remove code that sets fallbackdefault.
4735
4736 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4737
4738 * gdbarch.sh: Use shell operators && and || instead of
4739 -a and -o.
4740
4741 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4742
4743 * gdbarch.sh: Use $(...) instead of `...`.
4744
4745 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * gdbarch.sh: Use double quotes around variables.
4748
4749 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4750
4751 * gdbarch.sh: Use %s with printf, instead of variables in the
4752 format string.
4753
4754 2020-04-29 Tom Tromey <tromey@adacore.com>
4755
4756 PR ada/25875:
4757 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4758 type fields here.
4759 (read_enumeration_type): Call
4760 update_enumeration_type_from_children later. Update comments.
4761 (process_enumeration_scope): Don't create type fields.
4762
4763 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4764
4765 * nbsd-tdep.c: Include "xml-syscall.h".
4766 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4767
4768 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4769
4770 * nbsd-nat.c: Include "sys/wait.h".
4771 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4772 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4773 (nbsd_nat_target::remove_exec_catchpoint)
4774 (nbsd_nat_target::set_syscall_catchpoint): Add.
4775 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4776 (nbsd_nat_target::insert_exec_catchpoint)
4777 (nbsd_nat_target::remove_exec_catchpoint)
4778 (nbsd_nat_target::set_syscall_catchpoint): Add.
4779 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4780 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4781 `nbsd_get_syscall_number'.
4782
4783 2020-04-29 Tom Tromey <tom@tromey.com>
4784
4785 * stack.c (print_block_frame_labels): Remove.
4786
4787 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4788
4789 PR gdb/17320
4790 * ada-valprint.c (val_print_packed_array_elements): Move array
4791 end bracket to new line.
4792 (ada_val_print_string): Remove extra spaces before first array
4793 element.
4794 * c-valprint.c (c_value_print_array): Likewise.
4795 * m2-valprint.c (m2_print_array_contents): Likewise.
4796 (m2_value_print_inner): Likewise.
4797 * p-valprint.c (pascal_value_print_inner): Likewise.
4798 * valprint.c (generic_val_print_array): Likewise.
4799 (value_print_array_elements): Move first array element and array
4800 end bracket to new line.
4801
4802 2020-04-29 Tom de Vries <tdevries@suse.de>
4803
4804 PR symtab/25889
4805 * linespec.c (find_method): Fix ix calculation.
4806
4807 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4808
4809 * syscalls/update-netbsd.sh: New file.
4810 * syscalls/netbsd.xml: Regenerate.
4811 * data-directory/Makefile.in: Register `netbsd.xml' in
4812 `SYSCALLS_FILES'.
4813
4814 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4815
4816 * syscalls/update-freebsd.sh: Add double quotes.
4817
4818 2020-04-28 Tom Tromey <tom@tromey.com>
4819
4820 * NEWS: Update.
4821 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4822 (cmdpy_init): Allow class_tui.
4823
4824 2020-04-28 Mark Williams <mark@myosotissp.com>
4825
4826 PR gdb/24480
4827 * dwarf2read.c: Add missing assingments to list_in_scope when
4828 start_symtab was already called.
4829
4830 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4831
4832 PR gdb/25881
4833 * dwarf2/read.c (offset_map_type): Use
4834 gdb:hash_enum<sect_offset> as hash function.
4835
4836 2020-04-28 Tom de Vries <tdevries@suse.de>
4837
4838 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4839 with DW_AT_signature.
4840
4841 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4842
4843 * configure.ac: Remove check for fs_base/gs_base in
4844 user_regs_struct.
4845 * configure: Re-generate.
4846 * config.in: Re-generate.
4847 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4848 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4849 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4850
4851 2020-04-27 Luis Machado <luis.machado@linaro.org>
4852
4853 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4854 problematic inline frame unwinding situation.
4855 * frame.c (frame_id_computed_p): New function.
4856 * frame.h (frame_id_computed_p): New prototype.
4857
4858 2020-04-26 Tom Tromey <tom@tromey.com>
4859
4860 * command.h (enum command_class) <class_pseudo>: Remove.
4861
4862 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4863
4864 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4865 and whitespace.
4866
4867 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4868
4869 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4870 `PT_GET_PROCESS_STATE' block.
4871
4872 2020-04-24 Tom Tromey <tom@tromey.com>
4873
4874 * symtab.h (symbol_get_demangled_name): Don't declare.
4875 * symtab.c (symbol_get_demangled_name): Remove.
4876 (general_symbol_info::natural_name)
4877 (general_symbol_info::demangled_name): Update.
4878
4879 2020-04-24 Tom Tromey <tom@tromey.com>
4880
4881 PR rust/25025:
4882 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4883
4884 2020-04-24 Tom Tromey <tom@tromey.com>
4885
4886 PR symtab/12707:
4887 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4888 exists.
4889 (new_symbol): Likewise.
4890 * compile/compile-object-load.c (get_out_value_type): Use
4891 symbol_matches_search_name.
4892
4893 2020-04-24 Tom Tromey <tom@tromey.com>
4894
4895 * dwarf2/read.c (add_partial_symbol): Do not call
4896 compute_and_set_names.
4897
4898 2020-04-24 Tom Tromey <tom@tromey.com>
4899
4900 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4901 overload.
4902
4903 2020-04-24 Tom Tromey <tom@tromey.com>
4904
4905 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4906 (add_psymbol_to_list): New overload. Make old overload call new
4907 one.
4908 * psympriv.h (add_psymbol_to_list): New overload.
4909
4910 2020-04-24 Tom Tromey <tom@tromey.com>
4911
4912 * dwarf2/read.c (partial_die_info::read) <case
4913 DW_AT_linkage_name>: Use value_as_string.
4914 (dwarf2_string_attr): Use value_as_string.
4915 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4916 method.
4917 * dwarf2/attribute.c (attribute::value_as_string): New method.
4918
4919 2020-04-24 Tom Tromey <tom@tromey.com>
4920
4921 * symtab.c (general_symbol_info::natural_name)
4922 (general_symbol_info::demangled_name): Check for language_rust.
4923
4924 2020-04-24 Tom Tromey <tom@tromey.com>
4925
4926 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4927 (dwarf2_physname): ... from here.
4928 (partial_die_info::read): Add Rust "{" hack.
4929
4930 2020-04-24 Tom Tromey <tom@tromey.com>
4931
4932 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4933 method.
4934 (symbol_set_demangled_name): Don't declare.
4935 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4936 symbol_set_demangled_name.
4937 (general_symbol_info::set_language)
4938 (general_symbol_info::compute_and_set_names): Update.
4939 * minsyms.c (minimal_symbol_reader::install): Update.
4940 * dwarf2/read.c (new_symbol): Update.
4941
4942 2020-04-24 Tom Tromey <tromey@adacore.com>
4943
4944 PR python/23662:
4945 * python/py-type.c (convert_field): Handle
4946 FIELD_LOC_KIND_DWARF_BLOCK.
4947 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4948 (typy_get_dynamic): Nw function.
4949 (type_object_getset): Add "dynamic".
4950 * NEWS: Add entry.
4951
4952 2020-04-24 Tom Tromey <tromey@adacore.com>
4953
4954 * ada-typeprint.c (print_choices, print_variant_part)
4955 (print_record_field_types_dynamic): New functions.
4956 (print_record_field_types): Use print_record_field_types_dynamic.
4957
4958 2020-04-24 Tom Tromey <tromey@adacore.com>
4959
4960 * dwarf2/read.c (handle_data_member_location): New overload.
4961 (dwarf2_add_field): Use it.
4962 (decode_locdesc): Add "computed" parameter. Update comment.
4963 * gdbtypes.c (is_dynamic_type_internal): Also look for
4964 FIELD_LOC_KIND_DWARF_BLOCK.
4965 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
4966 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
4967 virtual base classes.
4968 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
4969 FIELD_LOC_KIND_DWARF_BLOCK.
4970
4971 2020-04-24 Tom Tromey <tromey@adacore.com>
4972
4973 * dwarf2/read.c (read_structure_type): Handle dynamic length.
4974 * gdbtypes.c (is_dynamic_type_internal): Check
4975 TYPE_HAS_DYNAMIC_LENGTH.
4976 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
4977 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
4978 New macros.
4979 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
4980 constant.
4981
4982 2020-04-24 Tom Tromey <tromey@adacore.com>
4983
4984 * dwarf2/read.c (struct variant_field): Rewrite.
4985 (struct variant_part_builder): New.
4986 (struct nextfield): Remove "variant" field. Add "offset".
4987 (struct field_info): Add "current_variant_part" and
4988 "variant_parts".
4989 (alloc_discriminant_info): Remove.
4990 (alloc_rust_variant): New function.
4991 (quirk_rust_enum): Update.
4992 (dwarf2_add_field): Set "offset" member. Don't handle
4993 DW_TAG_variant_part.
4994 (offset_map_type): New typedef.
4995 (convert_variant_range, create_one_variant)
4996 (create_one_variant_part, create_variant_parts)
4997 (add_variant_property): New functions.
4998 (dwarf2_attach_fields_to_type): Call add_variant_property.
4999 (read_structure_type): Don't handle DW_TAG_variant_part.
5000 (handle_variant_part, handle_variant): New functions.
5001 (handle_struct_member_die): Use them.
5002 (process_structure_scope): Don't handle variant parts.
5003 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5004 (struct discriminant_info): Remove.
5005 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5006 (struct main_type) <flag_discriminated_union>: Remove.
5007 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5008 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5009 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5010 Update.
5011 * valops.c (value_union_variant): Remove.
5012 * value.h (value_union_variant): Don't declare.
5013
5014 2020-04-24 Tom Tromey <tromey@adacore.com>
5015
5016 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5017 (ada_value_primitive_packed_val): Update.
5018 * ada-valprint.c (ada_value_print_1): Update.
5019 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5020 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5021 just an address. Use evaluate_for_locexpr_baton.
5022 (dwarf2_evaluate_property): Update.
5023 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5024 array_view.
5025 * findvar.c (default_read_var_value): Update.
5026 * gdbtypes.c (compute_variant_fields_inner)
5027 (resolve_dynamic_type_internal): Update.
5028 (resolve_dynamic_type): Change type of valaddr parameter.
5029 * gdbtypes.h (resolve_dynamic_type): Update.
5030 * valarith.c (value_subscripted_rvalue): Update.
5031 * value.c (value_from_contents_and_address): Update.
5032
5033 2020-04-24 Tom Tromey <tromey@adacore.com>
5034
5035 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5036 "push_initial_value" parameter.
5037 (dwarf2_evaluate_property): Likewise.
5038 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5039
5040 2020-04-24 Tom Tromey <tromey@adacore.com>
5041
5042 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5043 (variant::matches, compute_variant_fields_recurse)
5044 (compute_variant_fields_inner, compute_variant_fields): New
5045 functions.
5046 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5047 Use resolved_type after type is made.
5048 (operator==): Add new cases.
5049 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5050 (struct discriminant_range, struct variant, struct variant_part):
5051 New.
5052 (union dynamic_prop_data) <variant_parts, original_type>: New
5053 members.
5054 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5055 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5056 constants.
5057 * value.c (unpack_bits_as_long): Now public.
5058 * value.h (unpack_bits_as_long): Declare.
5059
5060 2020-04-24 Tom Tromey <tromey@adacore.com>
5061
5062 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5063 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5064
5065 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5066
5067 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5068
5069 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5070
5071 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5072 (remove_fork_catchpoint, post_startup_inferior)
5073 (post_attach): Move...
5074 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5075 (remove_fork_catchpoint, post_startup_inferior)
5076 (post_attach): ...here.
5077 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5078 (remove_fork_catchpoint, post_startup_inferior)
5079 (post_attach): Move...
5080 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5081 (remove_fork_catchpoint, post_startup_inferior)
5082 (post_attach): ...here.
5083
5084 2020-04-24 Tom Tromey <tromey@adacore.com>
5085
5086 * nat/windows-nat.h (struct windows_thread_info)
5087 <pc_adjusted>: New member.
5088 * windows-nat.c (windows_fetch_one_register): Check
5089 pc_adjusted.
5090 (windows_nat_target::get_windows_debug_event)
5091 (windows_nat_target::wait): Set pc_adjusted.
5092
5093 2020-04-24 Tom de Vries <tdevries@suse.de>
5094
5095 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5096 Run gdb-add-index inside temp dir.
5097
5098 2020-04-23 Tom Tromey <tromey@adacore.com>
5099
5100 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5101 in loop.
5102
5103 2020-04-23 Luis Machado <luis.machado@linaro.org>
5104
5105 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5106 get_frame_register instead of gdbarch_unwind_pc.
5107
5108 2020-04-23 Tom de Vries <tdevries@suse.de>
5109
5110 * symtab.c (lookup_global_symbol): Prefer def over decl.
5111
5112 2020-04-23 Tom de Vries <tdevries@suse.de>
5113
5114 PR symtab/25807
5115 * block.c (best_symbol, better_symbol): Promote to external.
5116 * block.h (best_symbol, better_symbol): Declare.
5117 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5118 decl.
5119
5120 2020-04-23 Tom Tromey <tromey@adacore.com>
5121
5122 PR ada/25837:
5123 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5124 "const char *", not a "const std::string &".
5125 <name_and_matcher::operator==>: Update.
5126 * unittests/lookup_name_info-selftests.c: Change type of
5127 "result".
5128
5129 2020-04-23 Tom Tromey <tom@tromey.com>
5130
5131 * inferior.h (iterate_over_inferiors): Don't declare.
5132 * inferior.c (iterate_over_inferiors): Remove.
5133 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5134 Remove.
5135 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5136 use iterate_over_inferiors.
5137 (darwin_resume_inferior_it)
5138 (struct resume_inferior_threads_param)
5139 (darwin_resume_inferior_threads_it): Remove.
5140 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5141
5142 2020-04-23 Tom de Vries <tdevries@suse.de>
5143
5144 * blockframe.c (find_pc_partial_function): Use
5145 find_pc_sect_compunit_symtab rather than
5146 objfile->sf->qf->find_pc_sect_compunit_symtab.
5147
5148 2020-04-22 Tom de Vries <tdevries@suse.de>
5149
5150 PR symtab/25764
5151 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5152 in psymtabs.
5153
5154 2020-04-22 Tom de Vries <tdevries@suse.de>
5155
5156 PR symtab/25801
5157 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5158 symtabs.
5159
5160 2020-04-22 Tom de Vries <tdevries@suse.de>
5161
5162 PR symtab/25700
5163 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5164 CU if already created.
5165
5166 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5167
5168 * infrun.c (displaced_step_fixup): Switch to the event_thread
5169 before calling displaced_step_restore, not after.
5170
5171 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5172
5173 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5174 its inferior is not recorded by us.
5175 (record_btrace_target_open): Replace call to
5176 all_non_exited_threads () with call to current_inferior
5177 ()->non_exited_threads ().
5178 (record_btrace_target::stop_recording): Likewise.
5179 (record_btrace_target::close): Likewise.
5180 (record_btrace_target::wait): Likewise.
5181 (record_btrace_target::record_stop_replaying): Likewise.
5182
5183 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5184
5185 * btrace.c (btrace_enable): Throw an error on double enables and
5186 when enabling recording fails.
5187 (btrace_disable): Throw an error if the thread is not recorded.
5188
5189 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5190
5191 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5192 request if we do not have a thread_info.
5193
5194 2020-04-21 Tom de Vries <tdevries@suse.de>
5195
5196 PR gdb/25471
5197 * thread.c
5198 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5199 exception in get_frame_id.
5200
5201 2020-04-20 Tom Tromey <tromey@adacore.com>
5202
5203 * python/python.c (struct gdbpy_event): Mark move constructor as
5204 noexcept.
5205 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5206 constructor as noexcept.
5207 * completer.h (struct completion_result): Mark move constructor as
5208 noexcept.
5209 * completer.c (completion_result::completion_result): Use
5210 initialization style. Don't call reset_match_list.
5211
5212 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5213
5214 * MAINTAINERS (Write After Approval): Add myself.
5215
5216 2020-04-18 Tom Tromey <tom@tromey.com>
5217
5218 * windows-tdep.c (init_w32_command_list)
5219 (w32_prefix_command_valid): Restore.
5220 (_initialize_windows_tdep): Call init_w32_command_list.
5221
5222 2020-04-18 Tom Tromey <tom@tromey.com>
5223
5224 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5225 * value.c (value_fn_field): Update.
5226 * valops.c (find_function_in_inferior)
5227 (value_allocate_space_in_inferior): Update.
5228 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5229 Update.
5230 * tui/tui-source.c (tui_source_window::set_contents): Update.
5231 * symtab.c (lookup_global_or_static_symbol)
5232 (find_function_start_sal_1, skip_prologue_sal)
5233 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5234 * symmisc.c (dump_msymbols, dump_symtab_1)
5235 (maintenance_print_one_line_table): Update.
5236 * symfile.c (init_entry_point_info, section_is_mapped)
5237 (list_overlays_command, simple_read_overlay_table)
5238 (simple_overlay_update_1): Update.
5239 * stap-probe.c (handle_stap_probe): Update.
5240 * stabsread.c (dbx_init_float_type, define_symbol)
5241 (read_one_struct_field, read_enum_type, read_range_type): Update.
5242 * source.c (info_line_command): Update.
5243 * python/python.c (gdbpy_source_objfile_script)
5244 (gdbpy_execute_objfile_script): Update.
5245 * python/py-type.c (save_objfile_types): Update.
5246 * python/py-objfile.c (py_free_objfile): Update.
5247 * python/py-inferior.c (python_new_objfile): Update.
5248 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5249 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5250 (maintenance_check_psymtabs): Update.
5251 * printcmd.c (info_address_command): Update.
5252 * objfiles.h (struct objfile) <arch>: New method, from
5253 get_objfile_arch.
5254 (get_objfile_arch): Don't declare.
5255 * objfiles.c (get_objfile_arch): Remove.
5256 (filter_overlapping_sections): Update.
5257 * minsyms.c (msymbol_is_function): Update.
5258 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5259 (output_nondebug_symbol): Update.
5260 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5261 (mdebug_expand_psymtab): Update.
5262 * machoread.c (macho_add_oso_symfile): Update.
5263 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5264 Update.
5265 * linux-fork.c (checkpoint_command): Update.
5266 * linespec.c (convert_linespec_to_sals): Update.
5267 * jit.c (finalize_symtab): Update.
5268 * infrun.c (insert_exception_resume_from_probe): Update.
5269 * ia64-tdep.c (ia64_find_unwind_table): Update.
5270 * hppa-tdep.c (internalize_unwinds): Update.
5271 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5272 Update.
5273 * gcore.c (call_target_sbrk): Update.
5274 * elfread.c (record_minimal_symbol, elf_symtab_read)
5275 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5276 (elf_gnu_ifunc_resolve_by_got): Update.
5277 * dwarf2/read.c (create_addrmap_from_index)
5278 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5279 (read_debug_names_from_section)
5280 (process_psymtab_comp_unit_reader, add_partial_symbol)
5281 (add_partial_subprogram, process_full_comp_unit)
5282 (read_file_scope, read_func_scope, read_lexical_block_scope)
5283 (read_call_site_scope, dwarf2_ranges_read)
5284 (dwarf2_record_block_ranges, dwarf2_add_field)
5285 (mark_common_block_symbol_computed, read_tag_pointer_type)
5286 (read_tag_string_type, dwarf2_init_float_type)
5287 (dwarf2_init_complex_target_type, read_base_type)
5288 (partial_die_info::read, partial_die_info::read)
5289 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5290 (dwarf2_fetch_die_loc_sect_off): Update.
5291 * dwarf2/loc.c (dwarf2_find_location_expression)
5292 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5293 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5294 (dwarf2_loc_desc_get_symbol_read_needs)
5295 (locexpr_describe_location_piece, locexpr_describe_location_1)
5296 (loclist_describe_location): Update.
5297 * dwarf2/index-write.c (write_debug_names): Update.
5298 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5299 * dtrace-probe.c (dtrace_process_dof): Update.
5300 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5301 (process_one_symbol): Update.
5302 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5303 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5304 (coff_read_enum_type): Update.
5305 * cli/cli-cmds.c (edit_command, list_command): Update.
5306 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5307 * breakpoint.c (create_overlay_event_breakpoint)
5308 (create_longjmp_master_breakpoint)
5309 (create_std_terminate_master_breakpoint)
5310 (create_exception_master_breakpoint, get_sal_arch): Update.
5311 * block.c (block_gdbarch): Update.
5312 * annotate.c (annotate_source_line): Update.
5313
5314 2020-04-17 Tom Tromey <tromey@adacore.com>
5315
5316 * auto-load.c (show_auto_load_cmd): Remove.
5317 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5318 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5319 (maintenance_print_arc_command): Remove.
5320 * tui/tui-win.c (tui_command): Remove.
5321 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5322 * tui/tui-layout.c (tui_layout_command): Remove.
5323 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5324 * python/python.c (user_set_python, user_show_python): Remove.
5325 (_initialize_python): Use add_basic_prefix_cmd,
5326 add_show_prefix_cmd.
5327 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5328 (install_gdb_commands): Use add_basic_prefix_cmd,
5329 add_show_prefix_cmd.
5330 (info_guile_command): Remove.
5331 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5332 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5333 add_show_prefix_cmd.
5334 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5335 Remove do_set and do_show parameters.
5336 * cli/cli-style.c (set_style, show_style): Remove.
5337 (_initialize_cli_style): Use add_basic_prefix_cmd,
5338 add_show_prefix_cmd.
5339 (cli_style_option::add_setshow_commands): Remove do_set and
5340 do_show parameters.
5341 (cli_style_option::add_setshow_commands): Use
5342 add_basic_prefix_cmd, add_show_prefix_cmd.
5343 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5344 (set_style_name): Remove.
5345 * cli/cli-dump.c (dump_command, append_command): Remove.
5346 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5347 (tekhex_dump_command, binary_dump_command)
5348 (binary_append_command): Remove.
5349 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5350 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5351 (init_w32_command_list): Remove; move into ...
5352 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5353 * valprint.c (set_print, show_print, set_print_raw)
5354 (show_print_raw): Remove.
5355 (_initialize_valprint): Use add_basic_prefix_cmd,
5356 add_show_prefix_cmd.
5357 * typeprint.c (set_print_type, show_print_type): Remove.
5358 (_initialize_typeprint): Use add_basic_prefix_cmd,
5359 add_show_prefix_cmd.
5360 * record.c (set_record_command, show_record_command): Remove.
5361 (_initialize_record): Use add_basic_prefix_cmd,
5362 add_show_prefix_cmd.
5363 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5364 add_show_prefix_cmd.
5365 (info_command, show_command, set_debug, show_debug): Remove.
5366 * top.h (set_history, show_history): Don't declare.
5367 * top.c (set_history, show_history): Remove.
5368 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5369 (unset_tdesc_cmd): Remove.
5370 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5371 add_show_prefix_cmd.
5372 * symtab.c (info_module_command): Remove.
5373 (_initialize_symtab): Use add_basic_prefix_cmd.
5374 * symfile.c (overlay_command): Remove.
5375 (_initialize_symfile): Use add_basic_prefix_cmd.
5376 * sparc64-tdep.c (info_adi_command): Remove.
5377 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5378 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5379 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5380 add_show_prefix_cmd.
5381 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5382 (_initialize_serial): Use add_basic_prefix_cmd,
5383 add_show_prefix_cmd.
5384 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5385 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5386 add_show_prefix_cmd.
5387 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5388 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5389 add_show_prefix_cmd.
5390 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5391 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5392 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5393 add_show_prefix_cmd.
5394 * remote.c (remote_command, set_remote_cmd): Remove.
5395 (_initialize_remote): Use add_basic_prefix_cmd.
5396 * record-full.c (set_record_full_command)
5397 (show_record_full_command): Remove.
5398 (_initialize_record_full): Use add_basic_prefix_cmd,
5399 add_show_prefix_cmd.
5400 * record-btrace.c (cmd_set_record_btrace)
5401 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5402 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5403 (cmd_show_record_btrace_pt): Remove.
5404 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5405 add_show_prefix_cmd.
5406 * ravenscar-thread.c (set_ravenscar_command)
5407 (show_ravenscar_command): Remove.
5408 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5409 add_show_prefix_cmd.
5410 * mips-tdep.c (show_mips_command, set_mips_command)
5411 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5412 add_show_prefix_cmd.
5413 * maint.c (maintenance_command, maintenance_info_command)
5414 (maintenance_check_command, maintenance_print_command)
5415 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5416 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5417 add_show_prefix_cmd.
5418 (show_per_command_cmd): Remove.
5419 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5420 Remove.
5421 (maintenance_show_test_settings_cmd): Remove.
5422 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5423 add_show_prefix_cmd.
5424 * maint-test-options.c (maintenance_test_options_command):
5425 Remove.
5426 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5427 * macrocmd.c (macro_command): Remove
5428 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5429 * language.c (set_check, show_check): Remove.
5430 (_initialize_language): Use add_basic_prefix_cmd,
5431 add_show_prefix_cmd.
5432 * infcmd.c (unset_command): Remove.
5433 (_initialize_infcmd): Use add_basic_prefix_cmd.
5434 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5435 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5436 add_show_prefix_cmd.
5437 * go32-nat.c (go32_info_dos_command): Remove.
5438 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5439 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5440 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5441 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5442 (_initialize_frame): Use add_basic_prefix_cmd,
5443 add_show_prefix_cmd.
5444 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5445 (_initialize_dcache): Use add_basic_prefix_cmd,
5446 add_show_prefix_cmd.
5447 * cp-support.c (maint_cplus_command): Remove.
5448 (_initialize_cp_support): Use add_basic_prefix_cmd.
5449 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5450 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5451 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5452 add_basic_prefix_cmd, add_show_prefix_cmd.
5453 * breakpoint.c (save_command): Remove.
5454 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5455 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5456 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5457 add_show_prefix_cmd.
5458 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5459 (set_ada_command, show_ada_command): Remove.
5460 (_initialize_ada_language): Use add_basic_prefix_cmd,
5461 add_show_prefix_cmd.
5462 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5463
5464 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5465
5466 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5467 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5468
5469 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5470
5471 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5472 warning messages.
5473
5474 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5475
5476 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5477 import table is not at beginning of .idata section.
5478
5479 2020-04-16 Pedro Alves <palves@redhat.com>
5480
5481 * inferior.c (delete_inferior): Use delete operator directly
5482 instead of delete_program_space.
5483 * progspace.c (add_program_space): New, factored out from
5484 program_space::program_space.
5485 (remove_program_space): New, factored out from
5486 delete_program_space.
5487 (program_space::program_space): Remove intro comment. Rewrite.
5488 (program_space::~program_space): Remove intro comment. Call
5489 remove_program_space.
5490 (delete_program_space): Delete.
5491 * progspace.h (program_space::program_space): Make explicit. Move
5492 intro comment here, adjusted.
5493 (program_space::~program_space): Move intro comment here,
5494 adjusted.
5495 (delete_program_space): Remove.
5496
5497 2020-04-16 Tom Tromey <tromey@adacore.com>
5498
5499 * windows-nat.c (windows_nat::handle_access_violation): New
5500 function.
5501 * nat/windows-nat.h (handle_access_violation): Declare.
5502 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5503 windows-nat.c. Call handle_access_violation.
5504
5505 2020-04-16 Tom de Vries <tdevries@suse.de>
5506
5507 PR symtab/25791
5508 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5509 CUs without psymtab.
5510
5511 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5512
5513 * python/python.c (do_start_initialization): Don't call
5514 PyEval_InitThreads for Python 3.9 and beyond.
5515
5516 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5517
5518 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5519 thread functions.
5520 (obsd_nat_target::wait): Likewise.
5521
5522 2020-04-15 Tom Tromey <tromey@adacore.com>
5523
5524 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5525 (DEBUG_EXCEPT): Use debug_printf.
5526
5527 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5528
5529 * completer.c (class completion_tracker::completion_hash_entry)
5530 <hash_name>: New member function.
5531 (completion_tracker::discard_completions): New callback to hash a
5532 completion_hash_entry, pass this to htab_create_alloc.
5533
5534 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5535
5536 * windows-nat.c (windows_make_so): Warn rather than stopping with
5537 an error if realpath() fails.
5538
5539 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5540
5541 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5542 (nbsd_nat_target::info_proc): Add do_status.
5543
5544 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5545 Tom de Vries <tdevries@suse.de>
5546
5547 PR symtab/25718
5548 * psympriv.h (struct partial_symtab::read_symtab)
5549 (struct partial_symtab::expand_psymtab)
5550 (struct partial_symtab::read_dependencies): Update comments.
5551 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5552 read_symtab for includer.
5553 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5554 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5555 (struct dwarf2_include_psymtab::m_readin): Remove.
5556 (struct dwarf2_include_psymtab::includer): New member function.
5557 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5558
5559 2020-04-14 Tom de Vries <tdevries@suse.de>
5560
5561 PR symtab/25720
5562 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5563 with NULL symbol_matcher and lookup_name.
5564 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5565 and lookup_name.
5566 * dwarf2/read.c (dw2_expand_symtabs_matching)
5567 (dw2_debug_names_expand_symtabs_matching): Same.
5568 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5569 Make lookup_name a pointer. Update comment.
5570 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5571 lookup_name being a pointer.
5572 * symfile.c (expand_symtabs_matching): Same.
5573 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5574 * linespec.c (iterate_over_all_matching_symtabs): Same.
5575
5576 2020-04-13 Tom Tromey <tom@tromey.com>
5577
5578 * run-on-main-thread.c: Update include.
5579 * unittests/main-thread-selftests.c: Update include.
5580 * tui/tui-win.c: Update include.
5581 * tui/tui-io.c: Update include.
5582 * tui/tui-interp.c: Update include.
5583 * tui/tui-hooks.c: Update include.
5584 * top.h: Update include.
5585 * top.c: Update include.
5586 * ser-base.c: Update include.
5587 * remote.c: Update include.
5588 * remote-notif.c: Update include.
5589 * remote-fileio.c: Update include.
5590 * record-full.c: Update include.
5591 * record-btrace.c: Update include.
5592 * python/python.c: Update include.
5593 * posix-hdep.c: Update include.
5594 * mingw-hdep.c: Update include.
5595 * mi/mi-main.c: Update include.
5596 * mi/mi-interp.c: Update include.
5597 * main.c: Update include.
5598 * linux-nat.c: Update include.
5599 * interps.c: Update include.
5600 * infrun.c: Update include.
5601 * inf-loop.c: Update include.
5602 * event-top.c: Update include.
5603 * event-loop.c: Move to ../gdbsupport/.
5604 * event-loop.h: Move to ../gdbsupport/.
5605 * async-event.h: Update include.
5606 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5607
5608 2020-04-13 Tom Tromey <tom@tromey.com>
5609
5610 * tui/tui-win.c: Include async-event.h.
5611 * remote.c: Include async-event.h.
5612 * remote-notif.c: Include async-event.h.
5613 * record-full.c: Include async-event.h.
5614 * record-btrace.c: Include async-event.h.
5615 * infrun.c: Include async-event.h.
5616 * event-top.c: Include async-event.h.
5617 * event-loop.h: Move some declarations to async-event.h.
5618 * event-loop.c: Don't include ser-event.h or top.h. Move some
5619 code to async-event.c.
5620 * async-event.h: New file.
5621 * async-event.c: New file.
5622 * Makefile.in (COMMON_SFILES): Add async-event.c.
5623 (HFILES_NO_SRCDIR): Add async-event.h.
5624
5625 2020-04-13 Tom Tromey <tom@tromey.com>
5626
5627 * utils.c (flush_streams): New function.
5628 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5629
5630 2020-04-13 Tom Tromey <tom@tromey.com>
5631
5632 * event-loop.c (handle_file_event): Use warning, not
5633 printf_unfiltered.
5634
5635 2020-04-13 Tom Tromey <tom@tromey.com>
5636
5637 * event-loop.c: Include <chrono>.
5638
5639 2020-04-13 Tom Tromey <tom@tromey.com>
5640
5641 * gdb_select.h: Move to ../gdbsupport/.
5642 * event-loop.c: Update include path.
5643 * top.c: Update include path.
5644 * ser-base.c: Update include path.
5645 * ui-file.c: Update include path.
5646 * ser-tcp.c: Update include path.
5647 * guile/scm-ports.c: Update include path.
5648 * posix-hdep.c: Update include path.
5649 * ser-unix.c: Update include path.
5650 * gdb_usleep.c: Update include path.
5651 * mingw-hdep.c: Update include path.
5652 * inflow.c: Update include path.
5653 * infrun.c: Update include path.
5654 * event-top.c: Update include path.
5655
5656 2020-04-13 Tom Tromey <tom@tromey.com>
5657
5658 * configure: Rebuild.
5659 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5660
5661 2020-04-13 Tom Tromey <tom@tromey.com>
5662
5663 * event-loop.h (start_event_loop): Don't declare.
5664 * event-loop.c (start_event_loop): Move...
5665 * main.c (start_event_loop): ...here. Now static.
5666
5667 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5668
5669 * MAINTAINERS: Update my email address.
5670
5671 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5672
5673 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5674 IP_ALL.
5675
5676 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5677
5678 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5679 (nbsd_nat_target::info_proc): Add do_cmdline.
5680
5681 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5682
5683 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5684 (nbsd_nat_target::info_proc): Add do_cwd.
5685
5686 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5687
5688 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5689
5690 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5691
5692 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5693 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5694 (nbsd_nat_target::info_proc): New functions.
5695 * nbsd-nat.c (kinfo_get_vmmap): New function.
5696 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5697 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5698 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5699 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5700 functions.
5701 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5702 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5703 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5704 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5705 (KINFO_VME_FLAG_GROWS_DOWN): New.
5706
5707 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5708
5709 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5710 bit shift.
5711
5712 2020-04-10 Tom Tromey <tromey@adacore.com>
5713
5714 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5715
5716 2020-04-10 Tom Tromey <tromey@adacore.com>
5717
5718 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5719 separate debug files.
5720
5721 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5722
5723 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5724 Move to...
5725 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5726 ... here.
5727 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5728 Check for STATUS_WX86_BREAKPOINT.
5729 (windows_nat_target::wait): Same.
5730
5731 2020-04-10 Tom de Vries <tdevries@suse.de>
5732
5733 PR cli/25808
5734 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5735
5736 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5737
5738 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5739 (Write After Approval): Remove Tom de Vries.
5740
5741 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5742
5743 revert partially:
5744 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5745
5746 * buildsym.c (record_line): Fix undefined behavior and preserve
5747 lines at eof.
5748
5749 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5750
5751 * auxv.h (svr4_auxv_parse): New.
5752 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5753 and generic_auxv_parse.
5754 (svr4_auxv_parse): Add.
5755 * obsd-tdep.c: Include "auxv.h".
5756 (obsd_auxv_parse): Remove.
5757 (obsd_init_abi): Remove comment.
5758 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5759 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5760 * nbsd-tdep.c: Include "auxv.h".
5761 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5762
5763 2020-04-08 Tom Tromey <tromey@adacore.com>
5764
5765 * nat/windows-nat.h (last_wait_event): Don't declare.
5766 (wait_for_debug_event): Update comment.
5767 * nat/windows-nat.c (last_wait_event): Now static.
5768
5769 2020-04-08 Tom Tromey <tromey@adacore.com>
5770
5771 * windows-nat.c (wait_for_debug_event): Move to
5772 nat/windows-nat.c.
5773 * nat/windows-nat.h (wait_for_debug_event): Declare.
5774 * nat/windows-nat.c (wait_for_debug_event): Move from
5775 windows-nat.c. No longer static.
5776
5777 2020-04-08 Tom Tromey <tromey@adacore.com>
5778
5779 * windows-nat.c (get_windows_debug_event): Use
5780 fetch_pending_stop.
5781 * nat/windows-nat.h (fetch_pending_stop): Declare.
5782 * nat/windows-nat.c (fetch_pending_stop): New function.
5783
5784 2020-04-08 Tom Tromey <tromey@adacore.com>
5785
5786 * windows-nat.c (windows_continue): Use matching_pending_stop and
5787 continue_last_debug_event.
5788 * nat/windows-nat.h (matching_pending_stop)
5789 (continue_last_debug_event): Declare.
5790 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5791 (matching_pending_stop, continue_last_debug_event): New
5792 functions.
5793
5794 2020-04-08 Tom Tromey <tromey@adacore.com>
5795
5796 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5797 (handle_exception_result): Move to nat/windows-nat.h.
5798 (DEBUG_EXCEPTION_SIMPLE): Remove.
5799 (windows_nat::handle_ms_vc_exception): New function.
5800 (handle_exception): Move to nat/windows-nat.c.
5801 (get_windows_debug_event): Update.
5802 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5803 nat/windows-nat.c.
5804 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5805 (handle_exception_result): Move from windows-nat.c.
5806 (handle_exception): Declare.
5807 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5808 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5809 windows-nat.c.
5810
5811 2020-04-08 Tom Tromey <tromey@adacore.com>
5812
5813 * windows-nat.c (exception_count, event_count): Remove.
5814 (handle_exception, get_windows_debug_event)
5815 (do_initial_windows_stuff): Update.
5816
5817 2020-04-08 Tom Tromey <tromey@adacore.com>
5818
5819 * windows-nat.c (windows_nat::handle_load_dll)
5820 (windows_nat::handle_unload_dll): Rename. No longer static.
5821 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5822 Declare.
5823
5824 2020-04-08 Tom Tromey <tromey@adacore.com>
5825
5826 * complaints.h (stop_whining): Declare at top-level.
5827 (complaint): Don't declare stop_whining.
5828
5829 2020-04-08 Tom Tromey <tromey@adacore.com>
5830
5831 * windows-nat.c (windows_nat::handle_output_debug_string):
5832 Rename. No longer static.
5833 * nat/windows-nat.h (handle_output_debug_string): Declare.
5834
5835 2020-04-08 Tom Tromey <tromey@adacore.com>
5836
5837 * windows-nat.c (current_process_handle, current_process_id)
5838 (main_thread_id, last_sig, current_event, last_wait_event)
5839 (current_windows_thread, desired_stop_thread_id, pending_stops)
5840 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5841 (display_selectors, fake_create_process)
5842 (get_windows_debug_event): Update.
5843 * nat/windows-nat.h (current_process_handle, current_process_id)
5844 (main_thread_id, last_sig, current_event, last_wait_event)
5845 (current_windows_thread, desired_stop_thread_id, pending_stops)
5846 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5847 * nat/windows-nat.c (current_process_handle, current_process_id)
5848 (main_thread_id, last_sig, current_event, last_wait_event)
5849 (current_windows_thread, desired_stop_thread_id, pending_stops)
5850 (siginfo_er): New globals. Move from windows-nat.c.
5851
5852 2020-04-08 Tom Tromey <tromey@adacore.com>
5853
5854 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5855 (handle_load_dll): Update.
5856 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5857
5858 2020-04-08 Tom Tromey <tromey@adacore.com>
5859
5860 * windows-nat.c (enum thread_disposition_type): Move to
5861 nat/windows-nat.h.
5862 (windows_nat::thread_rec): Rename from thread_rec. No longer
5863 static.
5864 (windows_add_thread, windows_nat_target::fetch_registers)
5865 (windows_nat_target::store_registers, handle_exception)
5866 (windows_nat_target::resume, get_windows_debug_event)
5867 (windows_nat_target::get_tib_address)
5868 (windows_nat_target::thread_name)
5869 (windows_nat_target::thread_alive): Update.
5870 * nat/windows-nat.h (enum thread_disposition_type): Move from
5871 windows-nat.c.
5872 (thread_rec): Declare.
5873
5874 2020-04-08 Tom Tromey <tromey@adacore.com>
5875
5876 * windows-nat.c: Add "using namespace".
5877 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5878 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5879
5880 2020-04-08 Tom Tromey <tromey@adacore.com>
5881
5882 * nat/windows-nat.h (struct windows_thread_info): Declare
5883 destructor.
5884 * nat/windows-nat.c (~windows_thread_info): New.
5885
5886 2020-04-08 Tom Tromey <tromey@adacore.com>
5887
5888 PR gdb/22992
5889 * windows-nat.c (current_event): Update comment.
5890 (last_wait_event, desired_stop_thread_id): New globals.
5891 (struct pending_stop): New.
5892 (pending_stops): New global.
5893 (windows_nat_target) <stopped_by_sw_breakpoint>
5894 <supports_stopped_by_sw_breakpoint>: New methods.
5895 (windows_fetch_one_register): Add assertions. Adjust PC.
5896 (windows_continue): Handle pending stops. Suspend other threads
5897 when stepping. Use last_wait_event
5898 (wait_for_debug_event): New function.
5899 (get_windows_debug_event): Use wait_for_debug_event. Handle
5900 pending stops. Queue spurious stops.
5901 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5902 (windows_nat_target::kill): Use wait_for_debug_event.
5903 * nat/windows-nat.h (struct windows_thread_info)
5904 <stopped_at_software_breakpoint>: New field.
5905 * nat/windows-nat.c (windows_thread_info::resume): Clear
5906 stopped_at_software_breakpoint.
5907
5908 2020-04-08 Tom Tromey <tromey@adacore.com>
5909
5910 * windows-nat.c (enum thread_disposition_type): New.
5911 (thread_rec): Replace "get_context" parameter with "disposition";
5912 change type.
5913 (windows_add_thread, windows_nat_target::fetch_registers)
5914 (windows_nat_target::store_registers, handle_exception)
5915 (windows_nat_target::resume, get_windows_debug_event)
5916 (windows_nat_target::get_tib_address)
5917 (windows_nat_target::thread_name)
5918 (windows_nat_target::thread_alive): Update.
5919
5920 2020-04-08 Tom Tromey <tromey@adacore.com>
5921
5922 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5923 (windows_continue): Use windows_continue::resume.
5924 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5925 resume>: Declare new methods.
5926 * nat/windows-nat.c: New file.
5927 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5928
5929 2020-04-08 Tom Tromey <tromey@adacore.com>
5930
5931 * windows-nat.c (windows_add_thread, windows_delete_thread)
5932 (windows_nat_target::fetch_registers)
5933 (windows_nat_target::store_registers, fake_create_process)
5934 (windows_nat_target::resume, windows_nat_target::resume)
5935 (get_windows_debug_event, windows_nat_target::wait)
5936 (windows_nat_target::pid_to_str)
5937 (windows_nat_target::get_tib_address)
5938 (windows_nat_target::get_ada_task_ptid)
5939 (windows_nat_target::thread_name)
5940 (windows_nat_target::thread_alive): Use lwp, not tid.
5941
5942 2020-04-08 Tom Tromey <tromey@adacore.com>
5943
5944 * windows-nat.c (handle_exception)
5945 (windows_nat_target::thread_name): Update.
5946 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5947 <name>: Now unique_xmalloc_ptr.
5948
5949 2020-04-08 Tom Tromey <tromey@adacore.com>
5950
5951 * windows-nat.c (thread_rec)
5952 (windows_nat_target::fetch_registers): Update.
5953 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5954 Update comment.
5955 <debug_registers_changed, reload_context>: Now bool.
5956
5957 2020-04-08 Tom Tromey <tromey@adacore.com>
5958
5959 * windows-nat.c (windows_add_thread): Use new.
5960 (windows_init_thread_list, windows_delete_thread): Use delete.
5961 (get_windows_debug_event): Update.
5962 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5963 destructor, and initializers.
5964
5965 2020-04-08 Tom Tromey <tromey@adacore.com>
5966
5967 * windows-nat.c (struct windows_thread_info): Remove.
5968 * nat/windows-nat.h: New file.
5969
5970 2020-04-08 Tom Tromey <tromey@adacore.com>
5971
5972 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
5973 (thread_rec, windows_add_thread, windows_delete_thread)
5974 (windows_continue): Update.
5975
5976 2020-04-08 Tom Tromey <tromey@adacore.com>
5977
5978 * windows-nat.c (struct windows_thread_info): Remove typedef.
5979 (thread_head): Remove.
5980 (thread_list): New global.
5981 (thread_rec, windows_add_thread, windows_init_thread_list)
5982 (windows_delete_thread, windows_continue): Update.
5983
5984 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
5985
5986 * windows-tdep.h (windows_init_abi): Add comment.
5987 (cygwin_init_abi): New declaration.
5988 * windows-tdep.c: Split signal enumeration in two, one for
5989 Windows and one for Cygwin.
5990 (windows_gdb_signal_to_target): Only deal with signal of the
5991 Windows OS ABI.
5992 (cygwin_gdb_signal_to_target): New function.
5993 (windows_init_abi): Rename to windows_init_abi_common, don't set
5994 gdb_signal_to_target gdbarch method. Add new new function with
5995 this name.
5996 (cygwin_init_abi): New function.
5997 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
5998 comment. Don't call windows_init_abi.
5999 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6000 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6001 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6002 i386_windows_init_abi_common, don't call windows_init_abi. Add
6003 a new function of this name.
6004 (i386_cygwin_init_abi): New function.
6005 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6006 OS ABI Cygwin.
6007
6008 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6009
6010 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6011 parameter.c.
6012 (dwarf2_read_gdb_index): Update.
6013
6014 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6015
6016 * nbsd-tdep.c: Include "objfiles.h".
6017 (nbsd_skip_solib_resolver): New.
6018 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6019
6020 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6021
6022 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6023 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6024 with DW_LLE_base_addressx are being emitted in DWARFv5.
6025 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6026 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6027 unsigned integer.
6028
6029 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6030
6031 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6032 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6033 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6034 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6035 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6036 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6037 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6038
6039
6040 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6041
6042 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6043 (read_loclist_index): New function definition.
6044 (lookup_loclist_base): New function definition.
6045 (read_loclist_header): New function definition.
6046 (dwarf2_cu): Add loclist_base and loclist_header field.
6047 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6048 (read_full_die_1): Read the value of DW_AT_loclists_base.
6049 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6050 (read_attribute_value): Handle DW_FORM_loclistx.
6051 (skip_one_die): Handle DW_FORM_loclistx.
6052 (loclist_header): New structure declaration.
6053 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6054
6055 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6056
6057 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6058 constructor. Remove `addr` parameter from other constructor and
6059 add `per_cu` parameter.
6060 * dwarf2/read.c (create_partial_symtab): Update.
6061
6062 2020-04-07 Tom de Vries <tdevries@suse.de>
6063
6064 PR symtab/25796
6065 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6066 (partial_die_info::fixup): Inherit has_const_value.
6067
6068 2020-04-07 Tom de Vries <tdevries@suse.de>
6069
6070 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6071 symbols without address.
6072
6073 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6074
6075 * nbsd-nat.h (struct thread_info): Add forward declaration.
6076 (nbsd_nat_target::thread_alive): Add.
6077 (nbsd_nat_target::thread_name): Likewise.
6078 (nbsd_nat_target::update_thread_list): Likewise.
6079 (update_thread_list::post_attach): Likewise.
6080 (post_attach::pid_to_str): Likewise.
6081 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6082 (nbsd_thread_lister): Add.
6083 (nbsd_nat_target::thread_alive): Likewise.
6084 (nbsd_nat_target::thread_name): Likewise.
6085 (nbsd_add_threads): Likewise.
6086 (update_thread_list::post_attach): Likewise.
6087 (nbsd_nat_target::update_thread_list): Likewise.
6088 (post_attach::pid_to_str): Likewise.
6089
6090 2020-04-06 Tom Tromey <tromey@adacore.com>
6091
6092 * ada-valprint.c (print_variant_part): Extract the variant field.
6093 (print_field_values): Use the field as the outer value when
6094 recursing.
6095
6096 2020-04-06 Tom Tromey <tromey@adacore.com>
6097
6098 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6099 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6100 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6101 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6102 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6103
6104 2020-04-06 Tom Tromey <tromey@adacore.com>
6105
6106 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6107 TYPE_CODE_ERROR.
6108
6109 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6110
6111 * nbsd-tdep.c: Include "gdbarch.h".
6112 Define enum with NetBSD signal numbers.
6113 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6114 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6115 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6116 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6117 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6118 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6119 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6120 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6121 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6122 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6123 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6124 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6125
6126 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6127
6128 PR gdb/25325
6129 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6130
6131 2020-04-03 Tom Tromey <tromey@adacore.com>
6132
6133 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6134 Read constant block.
6135
6136 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6137
6138 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6139 (gdb_bfd_get_full_section_contents): New declaration.
6140 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6141 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6142 gdb_bfd_get_full_section_contents.
6143
6144 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6145
6146 * exec.c (build_section_table): Replace internal_error with
6147 gdb_assert.
6148 (section_table_xfer_memory_partial): Likewise.
6149 * mdebugread.c (parse_partial_symbols): Likewise.
6150 * psymtab.c (lookup_partial_symbol): Likewise.
6151 * utils.c (wrap_here): Likewise.
6152
6153 2020-04-02 Tom Tromey <tromey@adacore.com>
6154
6155 * f-lang.c (build_fortran_types): Use arch_type to initialize
6156 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6157
6158 2020-04-02 Tom Tromey <tromey@adacore.com>
6159
6160 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6161 of attributes.
6162
6163 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6164 Bernd Edlinger <bernd.edlinger@hotmail.de>
6165 Tom Tromey <tromey@adacore.com>
6166
6167 * buildsym.c (buildsym_compunit::record_line): Remove
6168 deduplication code.
6169
6170 2020-04-02 Tom de Vries <tdevries@suse.de>
6171
6172 PR ada/24671
6173 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6174
6175 2020-04-02 Tom de Vries <tdevries@suse.de>
6176
6177 * dwarf2/read.c (dwarf2_gdb_index_functions,
6178 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6179 NULL.
6180 * psymtab.c (psym_lookup_global_symbol_language): New function.
6181 (psym_functions): Init psym_lookup_global_symbol_language with
6182 psym_lookup_global_symbol_language.
6183 * symfile-debug.c (debug_sym_quick_functions): Init
6184 lookup_global_symbol_language with NULL.
6185 * symfile.c (set_initial_language): Remove fixme comment.
6186 * symfile.h (struct quick_symbol_functions): Add
6187 lookup_global_symbol_language.
6188 * symtab.c (find_quick_global_symbol_language): New function.
6189 (find_main_name): Use find_quick_global_symbol_language.
6190
6191 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6192
6193 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6194
6195 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6196
6197 * buildsym.c (record_line): Fix undefined behavior and preserve
6198 lines at eof.
6199
6200 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6201
6202 * buildsym.c (record_line): Fix the resizing condition.
6203
6204 2020-04-01 Tom Tromey <tom@tromey.com>
6205
6206 * value.h (value_literal_complex): Add comment.
6207 * valops.c (value_literal_complex): Refer to value.h.
6208
6209 2020-04-01 Tom Tromey <tom@tromey.com>
6210
6211 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6212 (scalar_type): New rule, from typebase.
6213 (typebase): Use scalar_type. Recognize complex types.
6214 (field_name): Handle FLOAT_KEYWORD.
6215 (ident_tokens): Add _Complex and __complex__.
6216
6217 2020-04-01 Tom Tromey <tom@tromey.com>
6218
6219 PR exp/25299:
6220 * valarith.c (promotion_type, complex_binop): New functions.
6221 (scalar_binop): Handle complex numbers. Use promotion_type.
6222 (value_pos, value_neg, value_complement): Handle complex numbers.
6223
6224 2020-04-01 Tom Tromey <tom@tromey.com>
6225
6226 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6227 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6228 (parse_number): Handle complex numbers.
6229
6230 2020-04-01 Tom Tromey <tom@tromey.com>
6231
6232 * c-valprint.c (c_decorations): Change complex suffix to "i".
6233
6234 2020-04-01 Tom Tromey <tom@tromey.com>
6235
6236 * valprint.c (generic_value_print_complex): Use accessors.
6237 * value.h (value_real_part, value_imaginary_part): Declare.
6238 * valops.c (value_real_part, value_imaginary_part): New
6239 functions.
6240 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6241
6242 2020-04-01 Tom Tromey <tom@tromey.com>
6243
6244 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6245 (read_range_type): Update.
6246 * mdebugread.c (basic_type): Update.
6247 * go-lang.c (build_go_types): Use init_complex_type.
6248 * gdbtypes.h (struct main_type) <complex_type>: New member.
6249 (init_complex_type): Update.
6250 (arch_complex_type): Don't declare.
6251 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6252 Make name if none given. Use alloc_type_copy. Look for cached
6253 complex type.
6254 (arch_complex_type): Remove.
6255 (gdbtypes_post_init): Use init_complex_type.
6256 * f-lang.c (build_fortran_types): Use init_complex_type.
6257 * dwarf2/read.c (read_base_type): Update.
6258 * d-lang.c (build_d_types): Use init_complex_type.
6259 * ctfread.c (read_base_type): Update.
6260
6261 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6262
6263 * infrun.c (stop_all_threads): Update assertion, plus when
6264 stopping threads, take into account that we might be trying
6265 to stop an all-stop target.
6266 (stop_waiting): Call 'stop_all_threads' if there exists a
6267 non-stop target.
6268
6269 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6270
6271 * target.h (exists_non_stop_target): New function declaration.
6272 * target.c (exists_non_stop_target): New function.
6273
6274 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6275
6276 PR gdb/24789
6277 * eval.c (is_integral_or_integral_reference): New function.
6278 (evaluate_subexp_standard): Allow integer references in
6279 pointer arithmetic.
6280
6281 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6282
6283 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6284 check for no ptid in the stop reply when the target is non-stop.
6285
6286 2020-04-01 Tom Tromey <tromey@adacore.com>
6287
6288 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6289 "name" parameter to rvalue reference. Initialize m_name_holder.
6290 <lookup_name_info>: New overloads.
6291 <name>: Return gdb::string_view.
6292 <c_str>: New method.
6293 <make_ignore_params>: Update.
6294 <search_name_hash>: Update.
6295 <language_lookup_name>: Return const char *.
6296 <m_name>: Change type.
6297 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6298 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6299 (lookup_name_info::match_any): Update.
6300 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6301 Update.
6302 * minsyms.c (linkage_name_str): Update.
6303 * language.c (default_symbol_name_matcher): Update.
6304 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6305 Update.
6306 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6307 (ada_lookup_name_info::ada_lookup_name_info): Update.
6308 (literal_symbol_name_matcher): Update.
6309
6310 2020-04-01 Tom Tromey <tromey@adacore.com>
6311
6312 * psymtab.c (psymtab_search_name): Remove function.
6313 (psym_lookup_symbol): Create search name and lookup name here.
6314 (lookup_partial_symbol): Remove "name" parameter; add
6315 lookup_name.
6316 (psym_expand_symtabs_for_function): Update.
6317
6318 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6319
6320 PR tui/25597:
6321 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6322
6323 2020-03-31 Tom Tromey <tromey@adacore.com>
6324
6325 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6326 memcpy.
6327
6328 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6329
6330 * features/riscv/32bit-csr.xml: Regenerated.
6331 * features/riscv/64bit-csr.xml: Regenerated.
6332
6333 2020-03-30 Tom Tromey <tromey@adacore.com>
6334
6335 * ada-valprint.c (print_variant_part): Update.
6336 * ada-lang.h (ada_which_variant_applies): Update.
6337 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6338 outer_valaddr parameters; replace with "outer" value parameter.
6339 (to_fixed_variant_branch_type): Update.
6340
6341 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6342
6343 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6344 <list>. Remove inclusion of observable.h.
6345 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6346 (struct arch_lwp_info): New struct.
6347 (class ppc_linux_dreg_interface): New class.
6348 (struct ppc_linux_process_info): New struct.
6349 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6350 <low_new_clone, low_forget_process, low_prepare_to_resume>
6351 <copy_thread_dreg_state, mark_thread_stale>
6352 <mark_debug_registers_changed, register_hw_breakpoint>
6353 <clear_hw_breakpoint, register_wp, clear_wp>
6354 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6355 <num_memory_accesses, get_trigger_type>
6356 <create_watchpoint_request, hwdebug_point_cmp>
6357 <init_arch_lwp_info, get_arch_lwp_info>
6358 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6359 methods.
6360 <struct ptid_hash>: New inner struct.
6361 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6362 members.
6363 (saved_dabr_value, hwdebug_info, max_slots_number)
6364 (struct hw_break_tuple, struct thread_points, ppc_threads)
6365 (have_ptrace_hwdebug_interface)
6366 (hwdebug_find_thread_points_by_tid)
6367 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6368 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6369 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6370 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6371 use m_dreg_interface.
6372 (hwdebug_point_cmp): Change to...
6373 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6374 reference arguments instead of pointers.
6375 (ppc_linux_nat_target::ranged_break_num_registers): Use
6376 m_dreg_interface.
6377 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6378 m_dreg_interface. Call register_hw_breakpoint.
6379 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6380 m_dreg_interface. Call clear_hw_breakpoint.
6381 (get_trigger_type): Change to...
6382 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6383 comment.
6384 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6385 use m_dreg_interface. Call register_hw_breakpoint.
6386 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6387 use m_dreg_interface. Call clear_hw_breakpoint.
6388 (can_use_watchpoint_cond_accel): Change to...
6389 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6390 method. Update comment, use m_dreg_interface and
6391 m_process_info.
6392 (calculate_dvc): Change to...
6393 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6394 m_dreg_interface.
6395 (num_memory_accesses): Change to...
6396 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6397 (check_condition): Change to...
6398 (ppc_linux_nat_target::check_condition): ...this method.
6399 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6400 comment, use m_dreg_interface.
6401 (create_watchpoint_request): Change to...
6402 (ppc_linux_nat_target::create_watchpoint_request): ...this
6403 method. Use m_dreg_interface.
6404 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6405 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6406 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6407 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6408 (ppc_linux_nat_target::low_forget_process)
6409 (ppc_linux_nat_target::low_new_fork)
6410 (ppc_linux_nat_target::low_new_clone)
6411 (ppc_linux_nat_target::low_delete_thread)
6412 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6413 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6414 only call mark_thread_stale.
6415 (ppc_linux_thread_exit): Remove.
6416 (ppc_linux_nat_target::stopped_data_address): Change to...
6417 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6418 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6419 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6420 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6421 comment. Call low_stopped_data_address.
6422 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6423 m_dreg_interface.
6424 (ppc_linux_nat_target::masked_watch_num_registers): Use
6425 m_dreg_interface.
6426 (ppc_linux_nat_target::copy_thread_dreg_state)
6427 (ppc_linux_nat_target::mark_thread_stale)
6428 (ppc_linux_nat_target::mark_debug_registers_changed)
6429 (ppc_linux_nat_target::register_hw_breakpoint)
6430 (ppc_linux_nat_target::clear_hw_breakpoint)
6431 (ppc_linux_nat_target::register_wp)
6432 (ppc_linux_nat_target::clear_wp)
6433 (ppc_linux_nat_target::init_arch_lwp_info)
6434 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6435 (_initialize_ppc_linux_nat): Remove observer callback.
6436
6437 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6438
6439 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6440 (ppc_linux_nat_target::auxv_parse)
6441 (ppc_linux_nat_target::read_description)
6442 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6443 Move up.
6444
6445 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6446
6447 * linux-nat.h (low_new_clone): New method.
6448 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6449
6450 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6451
6452 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6453 (dbx_expand_psymtab): ... this.
6454 (start_psymtab): Update.
6455 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6456 (mdebug_expand_psymtab): ... this.
6457 (parse_partial_symbols): Update.
6458 (new_psymtab): Update.
6459 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6460 (xcoff_expand_psymtab): ... this.
6461 (xcoff_start_psymtab): Update.
6462
6463 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6466 <expand_dependencies>: ... this.
6467 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6468 (partial_symtab::expand_dependencies): ... this.
6469 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6470 Update.
6471 (dwarf2_psymtab::expand_psymtab): Update.
6472 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6473 * mdebugread.c (psymtab_to_symtab_1): Update.
6474 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6475
6476 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6477
6478 * psympriv.h (discard_psymtab): Remove.
6479 * dbxread.c (dbx_end_psymtab): Update.
6480 * xcoffread.c (xcoff_end_psymtab): Update.
6481
6482 2020-03-28 Tom Tromey <tom@tromey.com>
6483
6484 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6485 comment.
6486
6487 2020-03-28 Tom Tromey <tom@tromey.com>
6488
6489 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6490
6491 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6492
6493 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6494
6495 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6496
6497 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6498
6499 2020-03-26 Tom Tromey <tom@tromey.com>
6500
6501 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6502 (mark_common_block_symbol_computed, read_tag_string_type)
6503 (attr_to_dynamic_prop, read_subrange_type): Update.
6504 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6505 to be methods on struct attribute.
6506 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6507 (read_call_site_scope, partial_die_info::read)
6508 (partial_die_info::read, lookup_die_type, follow_die_ref):
6509 Update.
6510 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6511 from dwarf2_get_ref_die_offset.
6512 (attribute::constant_value): New method, from
6513 dwarf2_get_attr_constant_value.
6514 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6515 Declare method.
6516 <constant_value>: New method.
6517
6518 2020-03-26 Tom Tromey <tom@tromey.com>
6519
6520 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6521 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6522 (dwarf_type_encoding_name): Move to stringify.c.
6523 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6524 * dwarf2/stringify.c: New file.
6525 * dwarf2/stringify.h: New file.
6526
6527 2020-03-26 Tom Tromey <tom@tromey.com>
6528
6529 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6530 Rewrite.
6531
6532 2020-03-26 Tom Tromey <tom@tromey.com>
6533
6534 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6535 methods.
6536 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6537 (lookup_ranges_base): Likewise.
6538 (read_cutu_die_from_dwo, read_full_die_1): Update.
6539
6540 2020-03-26 Tom Tromey <tom@tromey.com>
6541
6542 * dwarf2/read.c (read_import_statement, read_file_scope)
6543 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6544 (read_lexical_block_scope, read_call_site_scope)
6545 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6546 (handle_struct_member_die, process_structure_scope)
6547 (update_enumeration_type_from_children)
6548 (process_enumeration_scope, read_array_type, read_common_block)
6549 (read_namespace, read_module, read_subroutine_type): Update.
6550 (sibling_die): Remove.
6551
6552 2020-03-26 Tom Tromey <tom@tromey.com>
6553
6554 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6555 (build_type_psymtabs_reader, read_structure_type)
6556 (read_enumeration_type, read_full_die_1): Update.
6557 (dwarf2_attr_no_follow): Move to die.h.
6558 * dwarf2/die.h (struct die_info) <attr>: New method.
6559
6560 2020-03-26 Tom Tromey <tom@tromey.com>
6561
6562 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6563 <base_address>: Now an optional.
6564 (dwarf2_find_base_address, dwarf2_rnglists_process)
6565 (dwarf2_ranges_process, fill_in_loclist_baton)
6566 (dwarf2_symbol_mark_computed): Update.
6567
6568 2020-03-26 Tom Tromey <tom@tromey.com>
6569
6570 * dwarf2/read.c (struct die_info): Move to die.h.
6571 * dwarf2/die.h: New file.
6572
6573 2020-03-26 Tom Tromey <tom@tromey.com>
6574
6575 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6576 * dwarf2/read.c
6577 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6578 Move to line-header.c.
6579 (read_checked_initial_length_and_offset, read_formatted_entries):
6580 Likewise.
6581 (dwarf_decode_line_header): Split into two.
6582 * dwarf2/line-header.c
6583 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6584 Move from read.c.
6585 (read_checked_initial_length_and_offset, read_formatted_entries):
6586 Likewise.
6587 (dwarf_decode_line_header): New function, split from read.c.
6588
6589 2020-03-26 Tom Tromey <tom@tromey.com>
6590
6591 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6592 Declare method.
6593 * dwarf2/read.c (read_attribute_value): Update.
6594 (dwarf2_per_objfile::read_line_string): Rename from
6595 read_indirect_line_string.
6596 (read_formatted_entries): Update.
6597
6598 2020-03-26 Tom Tromey <tom@tromey.com>
6599
6600 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6601 variable.
6602
6603 2020-03-26 Tom Tromey <tom@tromey.com>
6604
6605 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6606 const.
6607 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6608 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6609 parameter const.
6610
6611 2020-03-26 Tom Tromey <tom@tromey.com>
6612
6613 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6614 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6615 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6616 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6617
6618 2020-03-26 Tom Tromey <tom@tromey.com>
6619
6620 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6621 file_names_size, file_full_name, file_file_name>: Use const.
6622 <file_name_at, file_names>: Add const overload.
6623 * dwarf2/line-header.c (line_header::file_file_name)
6624 (line_header::file_full_name): Update.
6625
6626 2020-03-26 Tom Tromey <tom@tromey.com>
6627
6628 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6629 (macro_start_file, consume_improper_spaces)
6630 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6631 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6632 (dwarf_decode_macros): Move to macro.c.
6633 * dwarf2/macro.c: New file.
6634 * dwarf2/macro.h: New file.
6635 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6636
6637 2020-03-26 Tom Tromey <tom@tromey.com>
6638
6639 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6640 method.
6641 * dwarf2/section.c: New method. From
6642 read_indirect_string_at_offset_from.
6643 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6644 (read_indirect_string_at_offset_from): Move to section.c.
6645 (read_indirect_string_at_offset): Rewrite.
6646 (read_indirect_line_string_at_offset): Remove.
6647 (read_indirect_string, read_indirect_line_string)
6648 (dwarf_decode_macro_bytes): Update.
6649
6650 2020-03-26 Tom Tromey <tom@tromey.com>
6651
6652 * dwarf2/section.h (struct dwarf2_section_info)
6653 <overload_complaint>: Declare.
6654 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6655 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6656 Rename from dwarf2_section_buffer_overflow_complaint.
6657 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6658 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6659
6660 2020-03-26 Tom Tromey <tom@tromey.com>
6661
6662 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6663 Declare.
6664 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6665 Move from read.c.
6666 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6667 to section.c.
6668
6669 2020-03-26 Tom Tromey <tom@tromey.com>
6670
6671 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6672
6673 2020-03-26 Tom Tromey <tom@tromey.com>
6674
6675 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6676 "builder".
6677 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6678 parameter.
6679 (dwarf_decode_macros): Update.
6680
6681 2020-03-26 Tom Tromey <tom@tromey.com>
6682
6683 * dwarf2/read.c (read_attribute_value): Update.
6684 (read_indirect_string_from_dwz): Move to dwz.c; change into
6685 method.
6686 (dwarf_decode_macro_bytes): Update.
6687 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6688 * dwarf2/dwz.c: New file.
6689 * Makefile.in (COMMON_SFILES): Add dwz.c.
6690
6691 2020-03-26 Tom Tromey <tom@tromey.com>
6692
6693 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6694 * dwarf2/read.c: Add include.
6695 * dwarf2/index-write.c: Add include.
6696 * dwarf2/index-cache.c: Add include.
6697 * dwarf2/dwz.h: New file.
6698
6699 2020-03-25 Tom Tromey <tom@tromey.com>
6700
6701 * compile/compile-object-load.c (get_out_value_type): Mention
6702 correct symbol name in error message.
6703
6704 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6705
6706 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6707
6708 2020-03-25 Tom de Vries <tdevries@suse.de>
6709
6710 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6711 * symmisc.c (dump_symtab_1): Print user and includes fields.
6712 (maintenance_info_symtabs): Same.
6713
6714 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6715
6716 PR gdb/25534
6717 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6718 (riscv_regcache_cooked_write): New function.
6719 (riscv_push_dummy_call): Use new function.
6720 (riscv_return_value): Likewise.
6721
6722 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6723
6724 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6725 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6726 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6727 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6728 * infrun.c (follow_fork): Likewise.
6729 (follow_fork_inferior): Likewise.
6730 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6731 * linux-nat.h (class linux_nat_target): Likewise.
6732 * remote.c (class remote_target) <follow_fork>: Likewise.
6733 (remote_target::follow_fork): Likewise.
6734 * target-delegates.c: Re-generate.
6735 * target.c (default_follow_fork): Likewise.
6736 (target_follow_fork): Likewise.
6737 * target.h (struct target_ops) <follow_fork>: Likewise.
6738 (target_follow_fork): Likewise.
6739
6740 2020-03-24 Tom de Vries <tdevries@suse.de>
6741
6742 * psymtab.c (maintenance_info_psymtabs): Print user field.
6743
6744 2020-03-20 Tom Tromey <tromey@adacore.com>
6745
6746 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6747 const.
6748 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6749 const.
6750
6751 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6752
6753 * ptrace.m4: Don't check for ptrace declaration.
6754 * config.in: Re-generate.
6755 * configure: Re-generate.
6756 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6757 not defined.
6758
6759 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6760
6761 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6762 `PTRACE_TYPE_RET'.
6763 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6764 * sparc-nat.c (gdb_ptrace): Likewise.
6765 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6766
6767 2020-03-20 Tom Tromey <tromey@adacore.com>
6768
6769 * c-exp.y (lex_one_token): Fix assert.
6770
6771 2020-03-20 Tom Tromey <tromey@adacore.com>
6772
6773 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6774 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6775 strncpy call.
6776
6777 2020-03-20 Tom Tromey <tromey@adacore.com>
6778
6779 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6780
6781 2020-03-20 Tom Tromey <tromey@adacore.com>
6782
6783 * ada-valprint.c (print_variant_part): Remove parameters; switch
6784 to value-based API.
6785 (print_field_values): Likewise.
6786 (ada_val_print_struct_union): Likewise.
6787 (ada_value_print_1): Update.
6788
6789 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6790
6791 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6792 nbsd_nat_target instead of inf_ptrace_target.
6793 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6794 nbsd_nat_target.
6795
6796 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6797
6798 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6799 it to the ptrace call.
6800 * (store_registers): Likewise.
6801
6802 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6803
6804 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6805 it to the ptrace call.
6806 * (store_registers): Likewise.
6807
6808 2020-03-19 Luis Machado <luis.machado@linaro.org>
6809
6810 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6811 valid, fetch vg value from ptrace.
6812
6813 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6814 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6815 * inf-ptrace.c: Likewise.
6816 * (gdb_ptrace): Add.
6817 * (inf_ptrace_target::resume): Update.
6818 * (inf_ptrace_target::xfer_partial): Likewise.
6819 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6820 * (inf_ptrace_peek_poke): Update.
6821
6822 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6823
6824 * x86-bsd-nat.c (gdb_ptrace): New.
6825 * (x86bsd_dr_set): Add new argument `ptid'.
6826 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6827 x86bsd_dr_set_addr): Update.
6828
6829 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6830
6831 * remote.c (remote_target::process_stop_reply): Handle events for
6832 all threads differently.
6833
6834 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6835
6836 * completer.c (completion_tracker::remove_completion): Define new
6837 function.
6838 * completer.h (completion_tracker::remove_completion): Declare new
6839 function.
6840 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6841 when adding a C++ function symbol.
6842
6843 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6844
6845 * completer.c (completion_tracker::completion_hash_entry): Define
6846 new class.
6847 (advance_to_filename_complete_word_point): Call
6848 recompute_lowest_common_denominator.
6849 (completion_tracker::completion_tracker): Call discard_completions
6850 to setup the hash table.
6851 (completion_tracker::discard_completions): Allow for being called
6852 from the constructor, pass new equal function, and element deleter
6853 when constructing the hash table. Initialise new class member
6854 variables.
6855 (completion_tracker::maybe_add_completion): Remove use of
6856 m_entries_vec, and store more information into m_entries_hash.
6857 (completion_tracker::recompute_lcd_visitor): New function, most
6858 content taken from...
6859 (completion_tracker::recompute_lowest_common_denominator):
6860 ...here, this now just visits each item in the hash calling the
6861 above visitor.
6862 (completion_tracker::build_completion_result): Remove use of
6863 m_entries_vec, call recompute_lowest_common_denominator.
6864 * completer.h (completion_tracker::have_completions): Remove use
6865 of m_entries_vec.
6866 (completion_tracker::completion_hash_entry): Declare new class.
6867 (completion_tracker::recompute_lowest_common_denominator): Change
6868 function signature.
6869 (completion_tracker::recompute_lcd_visitor): Declare new function.
6870 (completion_tracker::m_entries_vec): Delete.
6871 (completion_tracker::m_entries_hash): Initialize to NULL.
6872 (completion_tracker::m_lowest_common_denominator_valid): New
6873 member variable.
6874 (completion_tracker::m_lowest_common_denominator_max_length): New
6875 member variable.
6876
6877 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6878
6879 * regformats/regdef.h: Put reg in gdb namespace.
6880
6881 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6882
6883 * i386-bsd-nat.c (gdb_ptrace): New.
6884 * (i386bsd_fetch_inferior_registers,
6885 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6886 * (i386bsd_fetch_inferior_registers,
6887 i386bsd_store_inferior_registers) Use gdb_ptrace.
6888
6889 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6890
6891 * amd64-bsd-nat.c (gdb_ptrace): New.
6892 * (amd64bsd_fetch_inferior_registers,
6893 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6894 * (amd64bsd_fetch_inferior_registers,
6895 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6896
6897 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6898
6899 * user-regs.c (user_reg::read): Rename to...
6900 (user_reg::xread): ...this.
6901 * (append_user_reg): Rename argument `read' to `xread'.
6902 * (user_reg_add_builtin): Likewise.
6903 * (user_reg_add): Likewise.
6904 * (value_of_user_reg): Likewise.
6905
6906 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6907
6908 * sparc-nat.c (gdb_ptrace): New.
6909 * sparc-nat.c (sparc_fetch_inferior_registers)
6910 (sparc_store_inferior_registers) Remove obsolete comment.
6911 * sparc-nat.c (sparc_fetch_inferior_registers)
6912 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6913 * sparc-nat.c (sparc_fetch_inferior_registers)
6914 (sparc_store_inferior_registers) Use gdb_ptrace.
6915
6916 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6917
6918 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6919 it to the ptrace call.
6920 * sh-nbsd-nat.c (store_registers): Likewise.
6921
6922 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6923
6924 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6925 nbsd_nat_target instead of inf_ptrace_target.
6926 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6927 nbsd_nat_target.
6928
6929 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6930
6931 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6932
6933 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6934
6935 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6936 <sys/sysctl.h>.
6937 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6938
6939 2020-03-17 Tom de Vries <tdevries@suse.de>
6940
6941 PR gdb/23710
6942 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6943 fields.
6944 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6945 fields.
6946 (process_imported_unit_die): Skip import of c++ CUs.
6947
6948 2020-03-16 Tom Tromey <tom@tromey.com>
6949
6950 * p-valprint.c (pascal_object_print_value): Initialize
6951 base_value.
6952
6953 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6954 Shahab Vahedi <shahab@synopsys.com>
6955
6956 * Makefile.in: Add arch/arc.o
6957 * configure.tgt: Likewise.
6958 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6959 (_initialize_arc_tdep): Don't initialize old target descriptions.
6960 (arc_read_description): New function to cache target descriptions.
6961 * arc-tdep.h (arc_read_description): Add proto type.
6962 * arch/arc.c: New file.
6963 * arch/arc.h: Likewise.
6964 * features/Makefile: Replace old target descriptions with new.
6965 * features/arc-arcompact.c: Remove.
6966 * features/arc-arcompact.xml: Likewise.
6967 * features/arc-v2.c: Likewise
6968 * features/arc-v2.xml: Likewise
6969 * features/arc/aux-arcompact.xml: New file.
6970 * features/arc/aux-v2.xml: Likewise.
6971 * features/arc/core-arcompact.xml: Likewise.
6972 * features/arc/core-v2.xml: Likewise.
6973 * features/arc/aux-arcompact.c: Generate.
6974 * features/arc/aux-v2.c: Likewise.
6975 * features/arc/core-arcompact.c: Likewise.
6976 * features/arc/core-v2.c: Likewise.
6977 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
6978
6979 2020-03-16 Tom Tromey <tromey@adacore.com>
6980
6981 PR gdb/25663:
6982 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
6983 putting value into bcache.
6984
6985 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
6986
6987 PR gdb/21500
6988 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
6989 to...
6990 (amd64_windows_init_abi_common): ... this. Don't set size of
6991 long type.
6992 (amd64_windows_init_abi): New function.
6993 (amd64_cygwin_init_abi): New function.
6994 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
6995 the Cygwin OS ABI.
6996 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
6997 comment.
6998
6999 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7000
7001 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7002 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7003 (pe_import_directory_entry): New struct type.
7004 (is_linked_with_cygwin_dll): New function.
7005 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7006 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7007 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7008
7009 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7010
7011 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7012 i386_cygwin_core_osabi_sniffer.
7013
7014 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7015
7016 * i386-cygwin-tdep.c: Rename to...
7017 * i386-windows-tdep.c: ... this.
7018 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7019 i386-windows-tdep.c.
7020 * configure.tgt: Likewise.
7021
7022 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7023
7024 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7025 * osabi.c (gdb_osabi_names): Add "Windows".
7026 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7027 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7028 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7029 i386_cygwin_osabi_sniffer.
7030 (_initialize_i386_cygwin_tdep): Register OS ABI
7031 GDB_OSABI_WINDOWS for i386.
7032 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7033 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7034 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7035 for x86-64.
7036 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7037 when the target matches '*-*-mingw*'.
7038
7039 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * defs.h (enum gdb_osabi): Move to...
7042 * osabi.h (enum gdb_osabi): ... here.
7043 * gdbarch.sh: Include osabi.h in gdbarch.h.
7044 * gdbarch.h: Re-generate.
7045
7046 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7047
7048 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7049 function.
7050 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7051
7052 2020-03-14 Tom Tromey <tom@tromey.com>
7053
7054 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7055 for C++.
7056 (c_type_print_modifier): Likewise. Add "language" parameter.
7057 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7058 (c_type_print_base_1): Update.
7059 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7060 constants.
7061 * type-stack.c (type_stack::insert): Handle tp_atomic and
7062 tp_restrict.
7063 (type_stack::follow_type_instance_flags): Likewise.
7064 (type_stack::follow_types): Likewise. Merge type-following code.
7065 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7066 (space_identifier, cv_with_space_id)
7067 (const_or_volatile_or_space_identifier_noopt)
7068 (const_or_volatile_or_space_identifier): Remove.
7069 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7070 rules.
7071 (ptr_operator, typebase): Update.
7072 (enum token_flag) <FLAG_C>: New constant.
7073 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7074 "_Atomic".
7075 (lex_one_token): Handle FLAG_C.
7076
7077 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7078
7079 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7080 it to the ptrace call.
7081 * m68k-bsd-nat.c (store_registers): Likewise.
7082
7083 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7084
7085 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7086 gdb_byte *.
7087 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7088 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7089 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7090
7091 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7092
7093 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7094 nbsd_nat_target instead of inf_ptrace_target.
7095 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7096 nbsd_nat_target.
7097
7098 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7099
7100 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7101 register_t.
7102
7103 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7104
7105 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7106 it to the ptrace call.
7107 * alpha-bsd-nat.c (store_registers): Likewise.
7108
7109 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7110
7111 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7112 includes.
7113 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7114 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7115 fill_fpregset): Likewise.
7116
7117 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7118
7119 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7120 nbsd_nat_target instead of inf_ptrace_target.
7121 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7122 nbsd_nat_target.
7123
7124 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7125
7126 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7127 register_t.
7128
7129 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7130
7131 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7132 it to the ptrace call.
7133 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7134 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7135 * arm-nbsd-nat.c (store_register): Likewise.
7136 * arm-nbsd-nat.c (store_regs): Likewise.
7137 * arm-nbsd-nat.c (store_fp_register): Likewise.
7138 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7139
7140 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7141
7142 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7143 nbsd_nat_target instead of inf_ptrace_target.
7144 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7145 nbsd_nat_target.
7146
7147 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7148
7149 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7150 it to the ptrace call.
7151 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7152
7153 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7154
7155 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7156 it to the ptrace call.
7157 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7158
7159 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7160
7161 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7162 gdb_byte *.
7163 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7164
7165 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7166
7167 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7168 instead of inf_ptrace_target.
7169 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7170 nbsd_nat_target.
7171
7172 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7173
7174 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7175 register_t.
7176
7177 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7178
7179 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7180 register_t.
7181
7182 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7183
7184 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7185 register_t.
7186
7187 2020-03-13 Tom Tromey <tom@tromey.com>
7188
7189 * value.h (val_print): Don't declare.
7190 * valprint.h (val_print_array_elements)
7191 (val_print_scalar_formatted, generic_val_print): Don't declare.
7192 * valprint.c (generic_val_print_array): Take a struct value.
7193 (generic_val_print_ptr, generic_val_print_memberptr)
7194 (generic_val_print_bool, generic_val_print_int)
7195 (generic_val_print_char, generic_val_print_complex)
7196 (generic_val_print): Remove.
7197 (generic_value_print): Update.
7198 (do_val_print): Remove unused parameters. Don't call
7199 la_val_print.
7200 (val_print): Remove.
7201 (common_val_print): Update. Don't call value_check_printable.
7202 (val_print_scalar_formatted, val_print_array_elements): Remove.
7203 * rust-lang.c (rust_val_print): Remove.
7204 (rust_language_defn): Update.
7205 * p-valprint.c (pascal_val_print): Remove.
7206 (pascal_value_print_inner): Update.
7207 (pascal_object_print_val_fields, pascal_object_print_val):
7208 Remove.
7209 (pascal_object_print_static_field): Update.
7210 * p-lang.h (pascal_val_print): Don't declare.
7211 * p-lang.c (pascal_language_defn): Update.
7212 * opencl-lang.c (opencl_language_defn): Update.
7213 * objc-lang.c (objc_language_defn): Update.
7214 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7215 * m2-lang.h (m2_val_print): Don't declare.
7216 * m2-lang.c (m2_language_defn): Update.
7217 * language.h (struct language_defn) <la_val_print>: Remove.
7218 * language.c (unk_lang_value_print_inner): Rename. Change
7219 argument types.
7220 (unknown_language_defn, auto_language_defn): Update.
7221 * go-valprint.c (go_val_print): Remove.
7222 * go-lang.h (go_val_print): Don't declare.
7223 * go-lang.c (go_language_defn): Update.
7224 * f-valprint.c (f_val_print): Remove.
7225 * f-lang.h (f_value_print): Don't declare.
7226 * f-lang.c (f_language_defn): Update.
7227 * d-valprint.c (d_val_print): Remove.
7228 * d-lang.h (d_value_print): Don't declare.
7229 * d-lang.c (d_language_defn): Update.
7230 * cp-valprint.c (cp_print_value_fields)
7231 (cp_print_value_fields_rtti, cp_print_value): Remove.
7232 (cp_print_static_field): Update.
7233 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7234 (c_val_print_struct, c_val_print_union, c_val_print_int)
7235 (c_val_print_memberptr, c_val_print): Remove.
7236 * c-lang.h (c_val_print_array, cp_print_value_fields)
7237 (cp_print_value_fields_rtti): Don't declare.
7238 * c-lang.c (c_language_defn, cplus_language_defn)
7239 (asm_language_defn, minimal_language_defn): Update.
7240 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7241 (ada_val_print_enum): Take a struct value.
7242 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7243 (ada_val_print): Remove.
7244 (ada_value_print_1): Update.
7245 (printable_val_type): Remove.
7246 * ada-lang.h (ada_val_print): Don't declare.
7247 * ada-lang.c (ada_language_defn): Update.
7248
7249 2020-03-13 Tom Tromey <tom@tromey.com>
7250
7251 * valprint.c (do_val_print): Update.
7252 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7253 a struct value.
7254 (value_to_value_object_no_release): Declare.
7255 * python/py-value.c (value_to_value_object_no_release): New
7256 function.
7257 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7258 struct value.
7259 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7260 function.
7261 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7262 a struct value.
7263 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7264 Declare.
7265 (gdbscm_apply_val_pretty_printer): Take a struct value.
7266 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7267 value.
7268 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7269 value.
7270 * extension-priv.h (struct extension_language_ops)
7271 <apply_val_pretty_printer>: Take a struct value.
7272 * cp-valprint.c (cp_print_value): Create a struct value.
7273 (cp_print_value): Update.
7274
7275 2020-03-13 Tom Tromey <tom@tromey.com>
7276
7277 * ada-valprint.c (print_field_values): Call common_val_print.
7278
7279 2020-03-13 Tom Tromey <tom@tromey.com>
7280
7281 * ada-valprint.c (val_print_packed_array_elements): Remove
7282 bitoffset and val parameters. Call common_val_print.
7283 (ada_val_print_string): Remove offset, address, and original_value
7284 parameters.
7285 (ada_val_print_array): Update.
7286 (ada_value_print_array): New function.
7287 (ada_value_print_1): Call it.
7288
7289 2020-03-13 Tom Tromey <tom@tromey.com>
7290
7291 * ada-valprint.c (ada_value_print): Use common_val_print.
7292
7293 2020-03-13 Tom Tromey <tom@tromey.com>
7294
7295 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7296
7297 2020-03-13 Tom Tromey <tom@tromey.com>
7298
7299 * ada-valprint.c (ada_value_print_num): New function.
7300 (ada_value_print_1): Use it.
7301
7302 2020-03-13 Tom Tromey <tom@tromey.com>
7303
7304 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7305
7306 2020-03-13 Tom Tromey <tom@tromey.com>
7307
7308 * ada-valprint.c (ada_value_print_ptr): New function.
7309 (ada_value_print_1): Use it.
7310
7311 2020-03-13 Tom Tromey <tom@tromey.com>
7312
7313 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7314 call common_val_print.
7315 (ada_val_print_1): Update.
7316 (ada_value_print_1): New function.
7317 (ada_value_print_inner): Rewrite.
7318
7319 2020-03-13 Tom Tromey <tom@tromey.com>
7320
7321 * cp-valprint.c (cp_print_value_fields): Update.
7322 (cp_print_value): New function.
7323
7324 2020-03-13 Tom Tromey <tom@tromey.com>
7325
7326 * m2-valprint.c (m2_value_print_inner): Use
7327 cp_print_value_fields.
7328 * cp-valprint.c (cp_print_value_fields): New function.
7329 * c-valprint.c (c_value_print_struct): New function.
7330 (c_value_print_inner): Use c_value_print_struct.
7331 * c-lang.h (cp_print_value_fields): Declare.
7332
7333 2020-03-13 Tom Tromey <tom@tromey.com>
7334
7335 * c-valprint.c (c_value_print_array): New function.
7336 (c_value_print_inner): Use it.
7337
7338 2020-03-13 Tom Tromey <tom@tromey.com>
7339
7340 * c-valprint.c (c_value_print_memberptr): New function.
7341 (c_value_print_inner): Use it.
7342
7343 2020-03-13 Tom Tromey <tom@tromey.com>
7344
7345 * c-valprint.c (c_value_print_int): New function.
7346 (c_value_print_inner): Use it.
7347
7348 2020-03-13 Tom Tromey <tom@tromey.com>
7349
7350 * c-valprint.c (c_value_print_ptr): New function.
7351 (c_value_print_inner): Use it.
7352
7353 2020-03-13 Tom Tromey <tom@tromey.com>
7354
7355 * c-valprint.c (c_value_print_inner): Rewrite.
7356
7357 2020-03-13 Tom Tromey <tom@tromey.com>
7358
7359 * valprint.c (generic_value_print_complex): New function.
7360 (generic_value_print): Use it.
7361
7362 2020-03-13 Tom Tromey <tom@tromey.com>
7363
7364 * valprint.c (generic_val_print_float): Don't call
7365 val_print_scalar_formatted.
7366 (generic_val_print, generic_value_print): Update.
7367
7368 2020-03-13 Tom Tromey <tom@tromey.com>
7369
7370 * valprint.c (generic_value_print_char): New function
7371 (generic_value_print): Use it.
7372
7373 2020-03-13 Tom Tromey <tom@tromey.com>
7374
7375 * valprint.c (generic_value_print_int): New function.
7376 (generic_value_print): Use it.
7377
7378 2020-03-13 Tom Tromey <tom@tromey.com>
7379
7380 * valprint.c (generic_value_print_bool): New function.
7381 (generic_value_print): Use it.
7382
7383 2020-03-13 Tom Tromey <tom@tromey.com>
7384
7385 * valprint.c (generic_val_print_func): Simplify.
7386 (generic_val_print, generic_value_print): Update.
7387
7388 2020-03-13 Tom Tromey <tom@tromey.com>
7389
7390 * valprint.c (generic_val_print_flags): Remove.
7391 (generic_val_print, generic_value_print): Update.
7392 (val_print_type_code_flags): Add original_value parameter.
7393
7394 2020-03-13 Tom Tromey <tom@tromey.com>
7395
7396 * valprint.c (generic_val_print): Update.
7397 (generic_value_print): Update.
7398 * valprint.c (generic_val_print_enum): Don't call
7399 val_print_scalar_formatted.
7400
7401 2020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7404 * valprint.c (generic_value_print_ptr): New function.
7405
7406 2020-03-13 Tom Tromey <tom@tromey.com>
7407
7408 * valprint.c (generic_value_print): Rewrite.
7409
7410 2020-03-13 Tom Tromey <tom@tromey.com>
7411
7412 * p-valprint.c (pascal_object_print_value_fields)
7413 (pascal_object_print_value): New functions.
7414
7415 2020-03-13 Tom Tromey <tom@tromey.com>
7416
7417 * p-valprint.c (pascal_value_print_inner): Rewrite.
7418
7419 2020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * f-valprint.c (f_value_print_innner): Rewrite.
7422
7423 2020-03-13 Tom Tromey <tom@tromey.com>
7424
7425 * m2-valprint.c (m2_print_unbounded_array): New overload.
7426 (m2_print_unbounded_array): Update.
7427 (m2_print_array_contents): Take a struct value.
7428 (m2_value_print_inner): Rewrite.
7429
7430 2020-03-13 Tom Tromey <tom@tromey.com>
7431
7432 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7433 (d_value_print_inner): New function.
7434 * d-lang.h (d_value_print_inner): Declare.
7435 * d-lang.c (d_language_defn): Use d_value_print_inner.
7436
7437 2020-03-13 Tom Tromey <tom@tromey.com>
7438
7439 * go-valprint.c (go_value_print_inner): New function.
7440 * go-lang.h (go_value_print_inner): Declare.
7441 * go-lang.c (go_language_defn): Use go_value_print_inner.
7442
7443 2020-03-13 Tom Tromey <tom@tromey.com>
7444
7445 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7446 API.
7447 (rust_val_print): Rewrite.
7448 (rust_value_print_inner): New function, from rust_val_print.
7449 (rust_language_defn): Use rust_value_print_inner.
7450
7451 2020-03-13 Tom Tromey <tom@tromey.com>
7452
7453 * ada-valprint.c (ada_value_print_inner): New function.
7454 * ada-lang.h (ada_value_print_inner): Declare.
7455 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7456
7457 2020-03-13 Tom Tromey <tom@tromey.com>
7458
7459 * f-valprint.c (f_value_print_innner): New function.
7460 * f-lang.h (f_value_print_innner): Declare.
7461 * f-lang.c (f_language_defn): Use f_value_print_innner.
7462
7463 2020-03-13 Tom Tromey <tom@tromey.com>
7464
7465 * p-valprint.c (pascal_value_print_inner): New function.
7466 * p-lang.h (pascal_value_print_inner): Declare.
7467 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7468
7469 2020-03-13 Tom Tromey <tom@tromey.com>
7470
7471 * m2-valprint.c (m2_value_print_inner): New function.
7472 * m2-lang.h (m2_value_print_inner): Declare.
7473 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7474
7475 2020-03-13 Tom Tromey <tom@tromey.com>
7476
7477 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7478 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7479 * c-valprint.c (c_value_print_inner): New function.
7480 * c-lang.h (c_value_print_inner): Declare.
7481 * c-lang.c (c_language_defn, cplus_language_defn)
7482 (asm_language_defn, minimal_language_defn): Use
7483 c_value_print_inner.
7484
7485 2020-03-13 Tom Tromey <tom@tromey.com>
7486
7487 * p-valprint.c (pascal_object_print_value_fields): Now static.
7488 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7489
7490 2020-03-13 Tom Tromey <tom@tromey.com>
7491
7492 * c-valprint.c (c_val_print_array): Simplify.
7493
7494 2020-03-13 Tom Tromey <tom@tromey.com>
7495
7496 * valprint.c (value_print_array_elements): New function.
7497 * valprint.h (value_print_array_elements): Declare.
7498
7499 2020-03-13 Tom Tromey <tom@tromey.com>
7500
7501 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7502 * mips-tdep.c (mips_print_register): Use
7503 value_print_scalar_formatted.
7504
7505 2020-03-13 Tom Tromey <tom@tromey.com>
7506
7507 * valprint.h (value_print_scalar_formatted): Declare.
7508 * valprint.c (value_print_scalar_formatted): New function.
7509
7510 2020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * valprint.h (generic_value_print): Declare.
7513 * valprint.c (generic_value_print): New function.
7514
7515 2020-03-13 Tom Tromey <tom@tromey.com>
7516
7517 * valprint.c (do_val_print): Call la_value_print_inner, if
7518 available.
7519 * rust-lang.c (rust_language_defn): Update.
7520 * p-lang.c (pascal_language_defn): Update.
7521 * opencl-lang.c (opencl_language_defn): Update.
7522 * objc-lang.c (objc_language_defn): Update.
7523 * m2-lang.c (m2_language_defn): Update.
7524 * language.h (struct language_defn) <la_value_print_inner>: New
7525 member.
7526 * language.c (unknown_language_defn, auto_language_defn): Update.
7527 * go-lang.c (go_language_defn): Update.
7528 * f-lang.c (f_language_defn): Update.
7529 * d-lang.c (d_language_defn): Update.
7530 * c-lang.c (c_language_defn, cplus_language_defn)
7531 (asm_language_defn, minimal_language_defn): Update.
7532 * ada-lang.c (ada_language_defn): Update.
7533
7534 2020-03-13 Tom Tromey <tom@tromey.com>
7535
7536 * c-valprint.c (c_value_print): Use common_val_print.
7537
7538 2020-03-13 Tom Tromey <tom@tromey.com>
7539
7540 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7541
7542 2020-03-13 Tom Tromey <tom@tromey.com>
7543
7544 * f-valprint.c (f77_print_array_1, f_val_print): Use
7545 common_val_print.
7546
7547 2020-03-13 Tom Tromey <tom@tromey.com>
7548
7549 * riscv-tdep.c (riscv_print_one_register_info): Use
7550 common_val_print.
7551
7552 2020-03-13 Tom Tromey <tom@tromey.com>
7553
7554 * mi/mi-main.c (output_register): Use common_val_print.
7555
7556 2020-03-13 Tom Tromey <tom@tromey.com>
7557
7558 * infcmd.c (default_print_one_register_info): Use
7559 common_val_print.
7560
7561 2020-03-13 Tom Tromey <tom@tromey.com>
7562
7563 * valprint.h (common_val_print_checked): Declare.
7564 * valprint.c (common_val_print_checked): New function.
7565 * stack.c (print_frame_arg): Use common_val_print_checked.
7566
7567 2020-03-13 Tom Tromey <tom@tromey.com>
7568
7569 * valprint.c (do_val_print): New function, from val_print.
7570 (val_print): Use do_val_print.
7571 (common_val_print): Use do_val_print.
7572
7573 2020-03-13 Tom Tromey <tom@tromey.com>
7574
7575 * valprint.c (value_print): Use scoped_value_mark.
7576
7577 2020-03-13 Tom de Vries <tdevries@suse.de>
7578
7579 PR symtab/25646
7580 * psymtab.c (partial_symtab::partial_symtab): Don't set
7581 globals_offset and statics_offset. Push element onto
7582 current_global_psymbols and current_static_psymbols stacks.
7583 (concat): New function.
7584 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7585 element from current_global_psymbols and current_static_psymbols
7586 stacks. Concat popped elements to global_psymbols and
7587 static_symbols.
7588 (add_psymbol_to_list): Use current_global_psymbols and
7589 current_static_psymbols stacks.
7590 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7591 current_static_psymbols fields.
7592
7593 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7594
7595 * corelow.c (sniff_core_bfd): Remove.
7596 (class core_target) <m_core_vec>: Remove.
7597 (core_target::core_target): Update.
7598 (core_file_fns): Remove.
7599 (deprecated_add_core_fns): Remove.
7600 (default_core_sniffer): Remove.
7601 (sniff_core_bfd): Remove.
7602 (default_check_format): Remove.
7603 (gdb_check_format): Remove.
7604 (core_target_open): Update.
7605 (core_target::get_core_register_section): Update.
7606 (get_core_registers_cb): Update.
7607 (core_target::fetch_registers): Update.
7608 * gdbcore.h (struct core_fns): Remove.
7609 (deprecated_add_core_fns): Remove.
7610 (default_core_sniffer): Remove.
7611 (default_check_format): Remove.
7612
7613 2020-03-12 Tom Tromey <tom@tromey.com>
7614
7615 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7616 CORE_ADDR.
7617 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7618
7619 2020-03-12 Tom Tromey <tom@tromey.com>
7620
7621 * remote.c (remote_target::download_tracepoint)
7622 (remote_target::enable_tracepoint)
7623 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7624 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7625 sprintf_vma.
7626
7627 2020-03-12 Tom Tromey <tom@tromey.com>
7628
7629 * symfile-mem.c: Update CORE_ADDR size assert.
7630
7631 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7632
7633 * selftest.m4: Move to gdbsupport/.
7634 * acinclude.m4: Update path to selftest.m4.
7635
7636 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7637
7638 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7639 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7640 gdbarch-selfselftests.c and selftest-arch.c.
7641 (SUBDIR_UNITTESTS_OBS): Rename to...
7642 (SELFTESTS_OBS): ... this.
7643 (COMMON_SFILES): Remove disasm-selftests.c and
7644 gdbarch-selftests.c.
7645 * configure.ac: Don't add selftest-arch.{c,o} to
7646 CONFIG_{SRCS,OBS}.
7647 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7648 preprocessor conditions.
7649
7650 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7651
7652 * configure.ac: Don't source bfd/development.sh.
7653 * selftest.m4: Modify comment.
7654 * configure: Re-generate.
7655
7656 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7657
7658 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7659 not "true" or "false".
7660 * configure: Re-generate.
7661
7662 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7663
7664 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7665 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7666 renamed to arm_nbsd_supply_gregset.
7667 (fetch_register): Update to call arm_nbsd_supply_gregset.
7668 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7669 (arm_netbsd_nat_target::fetch_registers): Update.
7670 (fetch_elfcore_registers): Removed.
7671 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7672 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7673 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7674 not require NetBSD system headers.
7675 (arm_nbsd_regset): New struct.
7676 (arm_nbsd_iterate_over_regset_sections): New function.
7677 (arm_netbsd_init_abi_common): Updated to call
7678 set_gdbarch_iterate_over_regset_sections.
7679 * arm-nbsd-tdep.h: New file.
7680
7681 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7682
7683 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7684 recursion.
7685
7686 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7687
7688 * configure: Re-generate.
7689
7690 2020-03-11 Tom Tromey <tromey@adacore.com>
7691
7692 * ada-typeprint.c (print_choices): Fix comment.
7693
7694 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7695
7696 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7697 previous item in the list, when the list has no items.
7698
7699 2020-03-11 Tom de Vries <tdevries@suse.de>
7700
7701 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7702 PROP_LOCLIST handling code.
7703
7704 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7705
7706 * buildsym-legacy.c (record_line): Pass extra parameter to
7707 record_line.
7708 * buildsym.c (buildsym_compunit::record_line): Take an extra
7709 parameter, reduce duplication in the line table, and record the
7710 is_stmt flag in the line table.
7711 * buildsym.h (buildsym_compunit::record_line): Add extra
7712 parameter.
7713 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7714 non-statement lines.
7715 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7716 this to the symtab builder.
7717 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7718 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7719 through to dwarf_record_line_1.
7720 * infrun.c (process_event_stop_test): When stepping, don't stop at
7721 a non-statement instruction, and only refresh the step info when
7722 we land in the middle of a line's range. Also add an extra
7723 comment.
7724 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7725 field.
7726 * record-btrace.c (btrace_find_line_range): Only record lines
7727 marked as is-statement.
7728 * stack.c (frame_show_address): Show the frame address if we are
7729 in a non-statement sal.
7730 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7731 (maintenance_print_one_line_table): Print a header for the is_stmt
7732 column, and include is_stmt information in the output.
7733 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7734 preference to non-statements.
7735 (find_pcs_for_symtab_line): Prefer is-statement entries.
7736 (find_line_common): Likewise.
7737 * symtab.h (struct linetable_entry): Add is_stmt field.
7738 (struct symtab_and_line): Likewise.
7739 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7740 arranging the line table.
7741
7742 2020-03-07 Tom de Vries <tdevries@suse.de>
7743
7744 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7745 DIE.
7746
7747 2020-03-07 Tom Tromey <tom@tromey.com>
7748
7749 * valops.c (value_literal_complex): Remove obsolete comment.
7750 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7751 comment.
7752
7753 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7754
7755 * infrun.h: Forward-declare thread_info.
7756 (set_step_info): Add thread_info parameter, add doc.
7757 * infrun.c (set_step_info): Add thread_info parameter, move doc
7758 to header.
7759 * infrun.c (process_event_stop_test): Pass thread to
7760 set_step_info call.
7761 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7762 set_step_info.
7763 (prepare_one_step): Add thread_info parameter, pass it to
7764 set_step_frame and prepare_one_step (recursive) call.
7765 (step_1): Pass thread to prepare_one_step call.
7766 (step_command_fsm::should_stop): Pass thread to
7767 prepare_one_step.
7768 (until_next_fsm): Pass thread to set_step_frame call.
7769 (finish_command): Pass thread to set_step_info call.
7770
7771 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7772
7773 * windows-tdep.c (windows_solib_create_inferior_hook):
7774 Check if inferior is running.
7775
7776 2020-03-06 Tom de Vries <tdevries@suse.de>
7777
7778 * NEWS: Fix "the the".
7779 * ctfread.c: Same.
7780
7781 2020-03-06 Tom de Vries <tdevries@suse.de>
7782
7783 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7784
7785 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7786
7787 * .dir-locals.el: Add a comment referencing the other copies of
7788 this file.
7789
7790 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7791
7792 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7793 psargs.
7794
7795 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7796
7797 * .gitattributes: New file.
7798
7799 2020-03-04 Tom Tromey <tom@tromey.com>
7800
7801 * symmisc.c (print_symbol_bcache_statistics)
7802 (print_objfile_statistics): Update.
7803 * symfile.c (allocate_symtab): Use intern.
7804 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7805 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7806 macro_cache>: Remove.
7807 <string_cache>: New member.
7808 (struct objfile) <intern>: New methods.
7809 * elfread.c (elf_symtab_read): Use intern.
7810 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7811 (dwarf2_compute_name, dwarf2_physname)
7812 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7813 names.
7814 (guess_partial_die_structure_name): Update.
7815 (partial_die_info::fixup): Intern name.
7816 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7817 name.
7818 (dwarf2_name): Intern name. Update.
7819 * buildsym.c (buildsym_compunit::get_macro_table): Use
7820 string_cache.
7821
7822 2020-03-04 Tom Tromey <tom@tromey.com>
7823
7824 * jit.c (bfd_open_from_target_memory): Make "target" const.
7825 * corefile.c (gnutarget): Now const.
7826 * gdbcore.h (gnutarget): Now const.
7827
7828 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7829
7830 * NEWS: Mention support for WOW64 processes.
7831 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7832 (amd64_windows_segment_register_p): Remove static.
7833 (_initialize_amd64_windows_nat): Update.
7834 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7835 * i386-windows-nat.c (context_offset): Update.
7836 (i386_mappings): Rename and remove static.
7837 (i386_windows_segment_register_p): Remove static.
7838 (_initialize_i386_windows_nat): Update.
7839 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7840 (STATUS_WX86_SINGLE_STEP): New macro.
7841 (EnumProcessModulesEx): New macro.
7842 (Wow64SuspendThread): New macro.
7843 (Wow64GetThreadContext): New macro.
7844 (Wow64SetThreadContext): New macro.
7845 (Wow64GetThreadSelectorEntry): New macro.
7846 (windows_set_context_register_offsets): Add static.
7847 (windows_set_segment_register_p): Likewise.
7848 (windows_add_thread): Adapt for WOW64 processes.
7849 (windows_fetch_one_register): Likewise.
7850 (windows_nat_target::fetch_registers): Likewise.
7851 (windows_store_one_register): Likewise.
7852 (display_selector): Likewise.
7853 (display_selectors): Likewise.
7854 (handle_exception): Likewise.
7855 (windows_continue): Likewise.
7856 (windows_nat_target::resume): Likewise.
7857 (windows_add_all_dlls): Likewise.
7858 (do_initial_windows_stuff): Likewise.
7859 (windows_nat_target::attach): Likewise.
7860 (windows_get_exec_module_filename): Likewise.
7861 (windows_nat_target::create_inferior): Likewise.
7862 (windows_xfer_siginfo): Likewise.
7863 (_initialize_loadable): Initialize Wow64SuspendThread,
7864 Wow64GetThreadContext, Wow64SetThreadContext,
7865 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7866 * windows-nat.h (windows_set_context_register_offsets):
7867 Remove declaration.
7868 (windows_set_segment_register_p): Likewise.
7869 (i386_windows_segment_register_p): Add declaration.
7870 (amd64_windows_segment_register_p): Likewise.
7871
7872 2020-03-04 Luis Machado <luis.machado@linaro.org>
7873
7874 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7875 in "info registers" for AArch64/ARM.
7876
7877 The change caused "info registers" to not print GPR's.
7878
7879 gdb/ChangeLog:
7880
7881 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7882
7883 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7884 when reg->group is empty and reggroup is not.
7885
7886 2020-03-03 Tom Tromey <tromey@adacore.com>
7887
7888 * dwarf2/frame.c (struct dwarf2_frame_cache)
7889 <checked_tailcall_bottom, entry_cfa_sp_offset,
7890 entry_cfa_sp_offset_p>: Remove members.
7891 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7892 (dwarf2_frame_prev_register): Don't call
7893 dwarf2_tailcall_sniffer_first.
7894 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7895 * frame-unwind.c (add_unwinder): New fuction.
7896 (frame_unwind_init): Use it. Add tailcall unwinder.
7897
7898 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7899 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7900
7901 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7902 value should be printed as true.
7903
7904 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7905
7906 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7907 (windows_init_abi): Set and use windows_so_ops.
7908
7909 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7910
7911 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7912 when verifying if dealing with a convenience variable.
7913
7914 2020-03-03 Luis Machado <luis.machado@linaro.org>
7915
7916 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7917
7918 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7919
7920 * infrun.c (gdbarch_supports_displaced_stepping): New.
7921 (use_displaced_stepping): Break up conditions in smaller pieces.
7922 Use gdbarch_supports_displaced_stepping.
7923 (displaced_step_prepare_throw): Use
7924 gdbarch_supports_displaced_stepping.
7925
7926 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7927
7928 * NEWS: Mention new behaviour of the history filename.
7929 * top.c (write_history_p): Add comment.
7930 (show_write_history_p): Add header comment, give a different
7931 message when history writing is on, but the history filename is
7932 empty.
7933 (history_filename): Add comment.
7934 (history_filename_empty): New function.
7935 (show_history_filename): Add header comment, give a different
7936 message when the filename is empty.
7937 (init_history): Compare history_filename against nullptr, and only
7938 read history if the filename is not empty.
7939 (set_history_filename): Add header comment, and only make
7940 non-empty filenames absolute.
7941 (init_main): Make the filename argument to 'set history filename'
7942 optional.
7943
7944 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7945
7946 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7947 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7948 (fetch_fp_register): Update.
7949 (fetch_fp_regs): Update.
7950 (store_fp_register): Update.
7951 (store_fp_regs): Update.
7952 (arm_netbsd_nat_target::read_description): New function.
7953 (fetch_elfcore_registers): Update.
7954
7955 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7956
7957 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7958 general_thread if the stop reply is missing a thread-id.
7959 (remote_target::process_stop_reply): Use the first non-exited
7960 thread if the target didn't pass a thread-id.
7961 * infrun.c (do_target_wait): Move call to
7962 switch_to_inferior_no_thread to ....
7963 (do_target_wait_1): ... here.
7964
7965 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
7966
7967 * debuginfod-support.c: Include defs.h first.
7968
7969 2020-02-28 Tom de Vries <tdevries@suse.de>
7970
7971 * symfile.c (set_initial_language): Use default language for lookup.
7972
7973 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
7974
7975 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
7976 reader variable, pass `this` to read_cutu_die_from_dwo.
7977
7978 2020-02-27 Aaron Merey <amerey@redhat.com>
7979
7980 * source.c (open_source_file): Check for nullptr when computing
7981 srcpath.
7982
7983 2020-02-27 Tom Tromey <tromey@adacore.com>
7984
7985 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
7986 member.
7987 (dwarf2_add_field): Don't update nfields.
7988 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
7989
7990 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
7991
7992 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
7993 abs.
7994
7995 2020-02-26 Tom Tromey <tom@tromey.com>
7996
7997 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
7998 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
7999 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8000 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8001 per_cu_data.
8002
8003 2020-02-26 Tom Tromey <tom@tromey.com>
8004
8005 * dwarf2/index-write.c (psym_index_map): Change type.
8006 (add_address_entry_worker, write_one_signatured_type)
8007 (recursively_count_psymbols, recursively_write_psymbols)
8008 (class debug_names, psyms_seen_size, write_gdbindex)
8009 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8010
8011 2020-02-26 Aaron Merey <amerey@redhat.com>
8012
8013 * Makefile.in: Handle optional debuginfod support.
8014 * NEWS: Update.
8015 * README: Add --with-debuginfod summary.
8016 * config.in: Regenerate.
8017 * configure: Regenerate.
8018 * configure.ac: Handle optional debuginfod support.
8019 * debuginfod-support.c: debuginfod helper functions.
8020 * debuginfod-support.h: Ditto.
8021 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8022 summary.
8023 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8024 when a dwz file cannot be found.
8025 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8026 debuginfo file cannot be found.
8027 * source.c (open_source_file): Query debuginfod servers when a
8028 source file cannot be found.
8029 * top.c (print_gdb_configuration): Include
8030 --{with,without}-debuginfod in the output.
8031
8032 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8033
8034 * thread.c (thr_try_catch_cmd): Print thread name.
8035
8036 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8037
8038 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8039 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8040 dwarf2_fetch_die_type_sect_off): Move to...
8041 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8042 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8043 dwarf2_fetch_die_type_sect_off): ... here.
8044 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8045 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8046 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8047
8048 2020-02-26 Tom de Vries <tdevries@suse.de>
8049
8050 PR gdb/25603
8051 * symfile.c (set_initial_language): Exit-early if
8052 language_mode == language_mode_manual.
8053
8054 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8055
8056 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8057 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8058 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8059
8060 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8061
8062 * gdbtypes.c (create_array_type_with_stride): Handle negative
8063 array strides.
8064 * valarith.c (value_subscripted_rvalue): Likewise.
8065
8066 2020-02-25 Luis Machado <luis.machado@linaro.org>
8067
8068 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8069
8070 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8071
8072 * loc.h (dwarf2_get_die_type): Move to...
8073 * read.h (dwarf2_get_die_type): ... here.
8074 * read.c (dwarf2_get_die_type): Move doc to header.
8075
8076 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8077
8078 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8079 'gnulib/Makefile.in' to the list.
8080
8081 2020-02-24 Tom Tromey <tom@tromey.com>
8082
8083 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8084 Remove.
8085 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8086 XOBNEWVEC.
8087
8088 2020-02-24 Tom Tromey <tom@tromey.com>
8089
8090 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8091 New method.
8092 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8093 (dw2_do_instantiate_symtab, dw2_get_file_names)
8094 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8095
8096 2020-02-24 Tom Tromey <tom@tromey.com>
8097
8098 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8099 make_scoped_restore.
8100 (dwarf2_psymtab::read_symtab): Don't clear
8101 reading_partial_symbols.
8102
8103 2020-02-24 Tom de Vries <tdevries@suse.de>
8104
8105 PR gdb/25592
8106 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8107
8108 2020-02-24 Tom de Vries <tdevries@suse.de>
8109
8110 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8111 commands layout next/prev/regs.
8112
8113 2020-02-22 Tom Tromey <tom@tromey.com>
8114
8115 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8116 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8117
8118 2020-02-22 Tom Tromey <tom@tromey.com>
8119
8120 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8121
8122 2020-02-22 Tom Tromey <tom@tromey.com>
8123
8124 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8125 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8126 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8127 * tui/tui.c (_initialize_tui): Add usage text.
8128
8129 2020-02-22 Tom Tromey <tom@tromey.com>
8130
8131 * tui/tui-win.c (tui_set_focus_command)
8132 (tui_set_win_height_command): Use error_no_arg.
8133 (_initialize_tui_win): Update help text.
8134 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8135
8136 2020-02-22 Tom Tromey <tom@tromey.com>
8137
8138 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8139 * tui/tui-disasm.h (struct tui_disasm_window)
8140 <display_start_addr>: Declare.
8141 * tui/tui-source.h (struct tui_source_window)
8142 <display_start_addr>: Declare.
8143 * tui/tui-winsource.h (struct tui_source_window_base)
8144 <show_source_line, display_start_addr>: New methods.
8145 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8146 Rename and move to protected section.
8147 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8148 (tui_source_window_base::do_erase_source_content): Update.
8149 (tui_source_window_base::show_source_line): Now a method.
8150 (tui_source_window_base::show_source_content)
8151 (tui_source_window_base::tui_source_window_base)
8152 (tui_source_window_base::rerender)
8153 (tui_source_window_base::refill)
8154 (tui_source_window_base::do_scroll_horizontal)
8155 (tui_source_window_base::set_is_exec_point_at)
8156 (tui_source_window_base::update_breakpoint_info)
8157 (tui_source_window_base::update_exec_info): Update.
8158 * tui/tui-source.c (tui_source_window::set_contents)
8159 (tui_source_window::showing_source_p)
8160 (tui_source_window::do_scroll_vertical)
8161 (tui_source_window::location_matches_p)
8162 (tui_source_window::line_is_displayed): Update.
8163 (tui_source_window::display_start_addr): New method.
8164 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8165 (tui_disasm_window::do_scroll_vertical)
8166 (tui_disasm_window::location_matches_p): Update.
8167 (tui_disasm_window::display_start_addr): New method.
8168
8169 2020-02-22 Tom Tromey <tom@tromey.com>
8170
8171 * NEWS: Add entry for gdb.register_window_type.
8172 * tui/tui-layout.h (window_factory): New typedef.
8173 (tui_register_window): Declare.
8174 * tui/tui-layout.c (saved_tui_windows): New global.
8175 (tui_apply_current_layout): Use it.
8176 (tui_register_window): New function.
8177 * python/python.c (do_start_initialization): Call
8178 gdbpy_initialize_tui.
8179 (python_GdbMethods): Add "register_window_type" function.
8180 * python/python-internal.h (gdbpy_register_tui_window)
8181 (gdbpy_initialize_tui): Declare.
8182 * python/py-tui.c: New file.
8183 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8184
8185 2020-02-22 Tom Tromey <tom@tromey.com>
8186
8187 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8188
8189 2020-02-22 Tom Tromey <tom@tromey.com>
8190
8191 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8192 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8193 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8194 (tui_set_win_focus_to): Move from tui-win.c.
8195
8196 2020-02-22 Tom Tromey <tom@tromey.com>
8197
8198 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8199 functions.
8200 (known_window_types): New global.
8201 (tui_get_window_by_name): Reimplement.
8202 (initialize_known_windows): New function.
8203 (validate_window_name): Rewrite.
8204 (_initialize_tui_layout): Call initialize_known_windows.
8205
8206 2020-02-22 Tom Tromey <tom@tromey.com>
8207
8208 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8209 Remove constants.
8210 * tui/tui-winsource.h (struct tui_source_window_base)
8211 <tui_source_window_base>: Remove parameter.
8212 * tui/tui-winsource.c
8213 (tui_source_window_base::tui_source_window_base): Remove
8214 parameter.
8215 (tui_source_window_base::refill): Update.
8216 * tui/tui-stack.h (struct tui_locator_window)
8217 <tui_locator_window>: Update.
8218 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8219 Default the constructor.
8220 * tui/tui-regs.h (struct tui_data_item_window)
8221 <tui_data_item_window>: Default the constructor.
8222 (struct tui_data_window) <tui_data_window>: Likewise.
8223 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8224 Default the constructor.
8225 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8226 Default the constructor.
8227 <type>: Remove.
8228 (struct tui_win_info) <tui_win_info>: Default the constructor.
8229 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8230 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8231 Default the constructor.
8232
8233 2020-02-22 Tom Tromey <tom@tromey.com>
8234
8235 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8236 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8237 * tui/tui-win.c (tui_resize_all): Don't call
8238 tui_delete_invisible_windows.
8239 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8240 done.
8241 (tui_set_layout): Update.
8242 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8243 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8244 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8245
8246 2020-02-22 Tom Tromey <tom@tromey.com>
8247
8248 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8249 correctly.
8250
8251 2020-02-22 Tom Tromey <tom@tromey.com>
8252
8253 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8254
8255 2020-02-22 Tom Tromey <tom@tromey.com>
8256
8257 * tui/tui-winsource.h (struct tui_source_window_iterator)
8258 <inner_iterator>: New etytypedef.
8259 <tui_source_window_iterator>: Take "end" parameter.
8260 <tui_source_window_iterator>: Take iterator.
8261 <operator*, advance>: Update.
8262 <m_iter>: Change type.
8263 <m_end>: New field.
8264 (struct tui_source_windows) <begin, end>: Update.
8265 * tui/tui-layout.c (tui_windows): New global.
8266 (tui_apply_current_layout): Clear tui_windows.
8267 (tui_layout_window::apply): Update tui_windows.
8268 * tui/tui-data.h (tui_windows): Declare.
8269 (all_tui_windows): Now inline function.
8270 (class tui_window_iterator, struct all_tui_windows): Remove.
8271
8272 2020-02-22 Tom Tromey <tom@tromey.com>
8273
8274 PR tui/17850:
8275 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8276 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8277 "height" argument.
8278 (class tui_layout_window) <get_sizes>: Likewise.
8279 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8280 argument.
8281 <get_sizes>: Add "height" argument.
8282 <m_vertical>: New field.
8283 * tui/tui-layout.c (tui_layout_split::clone): Update.
8284 (tui_layout_split::get_sizes): Add "height" argument.
8285 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8286 (tui_new_layout_command): Parse "-horizontal".
8287 (_initialize_tui_layout): Update help string.
8288 (tui_layout_split::specification): Add "-horizontal" when needed.
8289 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8290 argument.
8291 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8292 New methods.
8293
8294 2020-02-22 Tom Tromey <tom@tromey.com>
8295
8296 * tui/tui-layout.h (enum tui_adjust_result): New.
8297 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8298 (class tui_layout_window) <adjust_size>: Return
8299 tui_adjust_result. Rewrite.
8300 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8301 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8302
8303 2020-02-22 Tom Tromey <tom@tromey.com>
8304
8305 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8306 parameter and return types.
8307 (class tui_layout_base) <specification>: Add "depth".
8308 (class tui_layout_window) <specification>: Add "depth".
8309 (class tui_layout_split) <specification>: Add "depth".
8310 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8311 and return types.
8312 (tui_new_layout_command): Parse sub-layouts.
8313 (_initialize_tui_layout): Update help string.
8314 (tui_layout_window::specification): Add "depth".
8315 (add_layout_command): Update.
8316
8317 2020-02-22 Tom Tromey <tom@tromey.com>
8318
8319 * NEWS: Add "tui new-layout" item.
8320 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8321 Add new-layout command to help text.
8322 (validate_window_name): New function.
8323 (tui_new_layout_command): New function.
8324 (_initialize_tui_layout): Register "new-layout".
8325 (tui_layout_window::specification): New method.
8326 (tui_layout_window::specification): New method.
8327 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8328 method.
8329 (class tui_layout_window) <specification>: New method.
8330 (class tui_layout_split) <specification>: New method.
8331
8332 2020-02-22 Tom Tromey <tom@tromey.com>
8333
8334 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8335 * tui/tui-win.c (window_name_completer): Update comment.
8336 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8337 Declare method.
8338 (class tui_layout_window) <replace_window>: Likewise.
8339 (class tui_layout_split) <replace_window>: Likewise.
8340 (tui_set_layout): Don't declare.
8341 (tui_set_initial_layout): Declare function.
8342 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8343 (asm_regs_layout): New globals.
8344 (tui_current_layout, show_layout): Remove.
8345 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8346 (find_layout, tui_apply_layout): New function.
8347 (layout_completer): Remove.
8348 (tui_next_layout): Reimplement.
8349 (tui_next_layout_command): New function.
8350 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8351 (tui_regs_layout): Reimplement.
8352 (tui_regs_layout_command): New function.
8353 (extract_display_start_addr): Rewrite.
8354 (next_layout, prev_layout): Remove.
8355 (tui_layout_window::replace_window): New method.
8356 (tui_layout_split::replace_window): New method.
8357 (destroy_layout): New function.
8358 (layout_list): New global.
8359 (add_layout_command): New function.
8360 (initialize_layouts): Update.
8361 (tui_layout_command): New function.
8362 (_initialize_tui_layout): Install "layout" commands.
8363 * tui/tui-data.h (enum tui_layout_type): Remove.
8364 (tui_current_layout): Don't declare.
8365
8366 2020-02-22 Tom Tromey <tom@tromey.com>
8367
8368 * tui/tui-regs.c (tui_reg_layout): Remove.
8369 (tui_reg_command): Use tui_regs_layout.
8370 * tui/tui-layout.h (tui_reg_command): Declare.
8371 * tui/tui-layout.c (tui_reg_command): New function.
8372
8373 2020-02-22 Tom Tromey <tom@tromey.com>
8374
8375 * tui/tui.c (tui_rl_delete_other_windows): Call
8376 tui_remove_some_windows.
8377 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8378 Declare method.
8379 (class tui_layout_window) <remove_windows>: New method.
8380 (class tui_layout_split) <remove_windows>: Declare.
8381 (tui_remove_some_windows): Declare.
8382 * tui/tui-layout.c (tui_remove_some_windows): New function.
8383 (tui_layout_split::remove_windows): New method.
8384
8385 2020-02-22 Tom Tromey <tom@tromey.com>
8386
8387 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8388 * tui/tui-layout.h (tui_next_layout): Declare.
8389 * tui/tui-layout.c (tui_next_layout): New function.
8390
8391 2020-02-22 Tom Tromey <tom@tromey.com>
8392
8393 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8394 correct coordinates.
8395
8396 2020-02-22 Tom Tromey <tom@tromey.com>
8397
8398 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8399 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8400 DATA_WIN case.
8401
8402 2020-02-22 Tom Tromey <tom@tromey.com>
8403
8404 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8405 TUI_DISASM_WIN, not tui_win_list.
8406
8407 2020-02-22 Tom Tromey <tom@tromey.com>
8408
8409 * valprint.c (generic_val_print_enum_1)
8410 (val_print_type_code_flags): Style member names.
8411 * rust-lang.c (val_print_struct, rust_print_enum)
8412 (rust_print_struct_def, rust_internal_print_type): Style member
8413 names.
8414 * p-valprint.c (pascal_object_print_value_fields): Style member
8415 names. Only call fprintf_symbol_filtered for static members.
8416 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8417 * f-valprint.c (f_val_print): Style member names.
8418 * f-typeprint.c (f_type_print_base): Style member names.
8419 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8420 call fprintf_symbol_filtered for static members.
8421 (cp_print_class_member): Style member names.
8422 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8423 member names.
8424 * ada-valprint.c (ada_print_scalar): Style enum names.
8425 (ada_val_print_enum): Likewise.
8426 * ada-typeprint.c (print_enum_type): Style enum names.
8427
8428 2020-02-21 Tom Tromey <tom@tromey.com>
8429
8430 * psympriv.h (struct partial_symtab): Update comment.
8431
8432 2020-02-21 Tom Tromey <tromey@adacore.com>
8433
8434 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8435 type is CORE_ADDR.
8436
8437 2020-02-21 Tom de Vries <tdevries@suse.de>
8438
8439 PR gdb/25534
8440 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8441 if dependencies[i]->user != NULL.
8442
8443 2020-02-21 Ali Tamur <tamur@google.com>
8444
8445 * dwarf2/read.c (dwarf2_name): Add null check.
8446
8447 2020-02-20 Tom Tromey <tom@tromey.com>
8448
8449 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8450 ">=", in binary search.
8451 (dwarf2_find_containing_comp_unit): New overload.
8452 (run_test): New self-test.
8453 (_initialize_dwarf2_read): Register new test.
8454
8455 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8456
8457 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8458 * riscv-tdep.h: Likewise.
8459 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8460 rv32-only CSR.
8461 * features/riscv/64bit-csr.xml: Regenerated.
8462
8463 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8464 Tom Tromey <tom@tromey.com>
8465
8466 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8467 of 'fputc_unfiltered'.
8468 (putchar_unfiltered): Call 'fputc_unfiltered'.
8469 (fputc_unfiltered): Call 'fputs_unfiltered'.
8470
8471 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8472
8473 * config.in: Regenerate.
8474 * configure: Regenerate.
8475 * configure.ac: Add --with-python-libdir option.
8476 * main.c: Use WITH_PYTHON_LIBDIR.
8477
8478 2020-02-19 Tom Tromey <tom@tromey.com>
8479
8480 * symtab.c (general_symbol_info::compute_and_set_names): Use
8481 obstack_strndup. Simplify call to symbol_set_demangled_name.
8482
8483 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8484
8485 * dwarf2/read.c (allocate_signatured_type_table,
8486 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8487 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8488 Remove objfile parameter, update all callers.
8489
8490 2020-02-19 Doug Evans <dje@google.com>
8491
8492 PR rust/25535
8493 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8494 rust_enum_variant calculation.
8495
8496 2020-02-19 Tom Tromey <tromey@adacore.com>
8497
8498 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8499
8500 2020-02-19 Tom Tromey <tromey@adacore.com>
8501
8502 * ada-lang.c (cache_symbol): Use obstack_strdup.
8503
8504 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8505
8506 * configure: Regenerate.
8507
8508 2020-02-19 Tom Tromey <tromey@adacore.com>
8509
8510 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8511 NULL check.
8512
8513 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8514
8515 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8516
8517 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8518
8519 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8520 if GDBSERVER is not defined.
8521 (riscv_tdesc_cache): Likewise, also store const target_desc.
8522 (STATIC_IN_GDB): Define.
8523 (riscv_create_target_description): Update declaration with
8524 STATIC_IN_GDB.
8525 (riscv_lookup_target_description): New function, only define if
8526 GDBSERVER is not defined.
8527 * arch/riscv.h (riscv_create_target_description): Declare only
8528 when GDBSERVER is defined.
8529 (riscv_lookup_target_description): New declaration when GDBSERVER
8530 is not defined.
8531 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8532 (riscv_linux_read_features): ...this, and return
8533 riscv_gdbarch_features instead of target_desc.
8534 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8535 (riscv_linux_read_description): Rename to...
8536 (riscv_linux_read_features): ...this.
8537 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8538 Update to use riscv_gdbarch_features and
8539 riscv_lookup_target_description.
8540 * riscv-tdep.c (riscv_find_default_target_description): Use
8541 riscv_lookup_target_description instead of
8542 riscv_create_target_description.
8543
8544 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8545
8546 * valprint.c (generic_val_print_enum_1): When printing a flag
8547 enum with value 0 and there is no enumerator with value 0, print
8548 just "0" instead of "(unknown: 0x0)".
8549
8550 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8551
8552 * valprint.c (generic_val_print_enum_1): Print unknown part of
8553 flag enum in hex.
8554
8555 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8556
8557 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8558 flag enums to contain duplicate enumerators.
8559 * valprint.c (generic_val_print_enum_1): Update comment.
8560
8561 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8562
8563 * dwarf2/read.c: Include "count-one-bits.h".
8564 (update_enumeration_type_from_children): If an enumerator has
8565 multiple bits set, don't treat the enumeration as a "flag enum".
8566 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8567 of flag enums have 0 or 1 bit set.
8568
8569 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8570
8571 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8572 conversion.
8573 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8574 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8575 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8576 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8577 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8578
8579 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8580
8581 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8582
8583 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8584
8585 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8586 displaced_step_closure_up.
8587 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8588 (struct displaced_step_closure_up):
8589 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8590 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8591 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8592 Likewise.
8593 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8594 * gdbarch.c, gdbarch.h: Re-generate.
8595 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8596 displaced_step_closure_up.
8597 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8598 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8599 * infrun.h (displaced_step_closure_up): New type alias.
8600 (struct displaced_step_inferior_state) <step_closure>: Change
8601 type to displaced_step_closure_up.
8602 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8603 displaced_step_closure_up.
8604 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8605
8606 2020-02-14 Tom Tromey <tom@tromey.com>
8607
8608 * minidebug.c (gnu_debug_key): New global.
8609 (find_separate_debug_file_in_section): Use it.
8610
8611 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8612
8613 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8614 std::unique_ptr.
8615 * gdbarch.c: Re-generate.
8616 * gdbarch.h: Re-generate.
8617 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8618 change.
8619 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8620 type to std::unique_ptr.
8621 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8622 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8623 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8624 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8625 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8626 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8627 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8628 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8629 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8630
8631 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8632
8633 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8634 std::unique_ptr.
8635 (displaced_step_clear): Rename to...
8636 (displaced_step_reset): ... this. Just call displaced->reset ().
8637 (displaced_step_clear_cleanup): Rename to...
8638 (displaced_step_reset_cleanup): ... this.
8639 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8640 (displaced_step_fixup): Likewise.
8641 (resume_1): Likewise.
8642 (handle_inferior_event): Restore child's memory before calling
8643 displaced_step_fixup on the parent.
8644 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8645 to std::unique_ptr.
8646 <step_closure>: Change type to std::unique_ptr.
8647
8648 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8649
8650 * arm-tdep.c: Include count-one-bits.h.
8651 (cleanup_block_store_pc): Use count_one_bits.
8652 (cleanup_block_load_pc): Use count_one_bits.
8653 (arm_copy_block_xfer): Use count_one_bits.
8654 (thumb2_copy_block_xfer): Use count_one_bits.
8655 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8656 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8657 (thumb_get_next_pcs_raw): Use count_one_bits.
8658 (arm_get_next_pcs_raw): Use count_one_bits_l.
8659 * arch/arm.c (bitcount): Remove.
8660 * arch/arm.h (bitcount): Remove.
8661
8662 2020-02-14 Tom Tromey <tromey@adacore.com>
8663
8664 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8665 Update.
8666 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8667 * dwarf2/loc.c (call_site_find_chain_1): Return
8668 unique_xmalloc_ptr.
8669 (call_site_find_chain): Likewise.
8670
8671 2020-02-14 Richard Biener <rguenther@suse.de>
8672
8673 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8674 on expression with division operators.
8675
8676 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8677
8678 * MAINTAINERS (Write After Approval): Adding myself.
8679
8680 2020-02-12 Tom Tromey <tom@tromey.com>
8681
8682 * event-loop.c (event_data, gdb_event, event_handler_func):
8683 Remove.
8684
8685 2020-02-12 Tom Tromey <tom@tromey.com>
8686
8687 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8688 (dwarf2_frame_objfile_data): Add comment.
8689 (find_comp_unit, set_comp_unit): New functions.
8690 (dwarf2_frame_find_fde): Use find_comp_unit.
8691 (dwarf2_build_frame_info): Use set_comp_unit.
8692
8693 2020-02-12 Tom Tromey <tom@tromey.com>
8694
8695 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8696 (comp_unit): Don't initialize objfile.
8697 (execute_cfa_program): Add text_offset parameter.
8698 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8699 (dwarf2_frame_cache): Update.
8700 (dwarf2_build_frame_info): Don't set "objfile" member.
8701
8702 2020-02-12 Tom Tromey <tom@tromey.com>
8703
8704 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8705 (decode_frame_entry): Likewise.
8706 (dwarf2_build_frame_info): Update.
8707
8708 2020-02-12 Tom Tromey <tom@tromey.com>
8709
8710 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8711 (decode_frame_entry_1): Use the comp_unit obstack.
8712
8713 2020-02-12 Tom Tromey <tom@tromey.com>
8714
8715 * dwarf2/frame.c (struct comp_unit): Add initializers and
8716 constructor.
8717 (dwarf2_frame_objfile_data): Store a comp_unit.
8718 (dwarf2_frame_find_fde): Update.
8719 (dwarf2_build_frame_info): Use "new".
8720
8721 2020-02-12 Tom Tromey <tom@tromey.com>
8722
8723 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8724 (dwarf2_fde_table): Typedef for std::vector.
8725 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8726 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8727 (decode_frame_entry): Update.
8728 (dwarf2_build_frame_info): Use "new".
8729
8730 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8731
8732 * arm-tdep.c (arm_gdbarch_init): Update.
8733 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8734 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8735 have_neon, is_m>: Change to bool.
8736
8737 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8738
8739 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8740
8741 2020-02-12 Tom Tromey <tom@tromey.com>
8742
8743 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8744
8745 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8746
8747 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8748 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8749
8750 2020-02-11 Tom Tromey <tom@tromey.com>
8751
8752 * psymtab.h: Update comment.
8753
8754 2020-02-11 Tom Tromey <tom@tromey.com>
8755
8756 * gdb_obstack.h (struct auto_obstack): Use
8757 DISABLE_COPY_AND_ASSIGN.
8758
8759 2020-02-11 Tom Tromey <tom@tromey.com>
8760
8761 * dwarf2/frame.h (struct objfile): Don't forward declare.
8762
8763 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8764
8765 * cris-tdep.c (cris_supply_gregset): Change signature to match
8766 what struct regset expects.
8767 (cris_regset): New struct.
8768 (fetch_core_registers): Remove.
8769 (cris_iterate_over_regset_sections): New function.
8770 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8771 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8772
8773 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8774
8775 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8776 registers.
8777
8778 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8779
8780 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8781
8782 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8783
8784 * configure: Re-generate.
8785
8786 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8787
8788 * configure: Re-generate.
8789
8790 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8791
8792 * acinclude: Update warning.m4 path.
8793 * warning.m4: Move to gdbsupport.
8794
8795 2020-02-11 Tom Tromey <tromey@adacore.com>
8796
8797 * remote.c (remote_console_output): Update.
8798 * printcmd.c (printf_command): Update.
8799 * event-loop.c (gdb_wait_for_event): Update.
8800 * linux-nat.c (sigchld_handler): Update.
8801 * remote-sim.c (gdb_os_write_stdout): Update.
8802 (gdb_os_flush_stdout): Update.
8803 (gdb_os_flush_stderr): Update.
8804 (gdb_os_write_stderr): Update.
8805 * exceptions.c (print_exception): Update.
8806 * remote-fileio.c (remote_fileio_func_read): Update.
8807 (remote_fileio_func_write): Update.
8808 * tui/tui.c (tui_enable): Update.
8809 * tui/tui-interp.c (tui_interp::init): Update.
8810 * utils.c (init_page_info): Update.
8811 (putchar_unfiltered, fputc_unfiltered): Update.
8812 (gdb_flush): Update.
8813 (emit_style_escape): Update.
8814 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8815 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8816 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8817 (stderr_file::write): Update.
8818 (stderr_file::puts): Update.
8819 * ui-file.h (ui_file_isatty, ui_file_write)
8820 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8821 (ui_file_puts): Don't declare.
8822
8823 2020-02-10 Tom de Vries <tdevries@suse.de>
8824
8825 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8826 sentinel to char *.
8827
8828 2020-02-09 Tom de Vries <tdevries@suse.de>
8829
8830 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8831 filename if it matches "<artificial>".
8832
8833 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8834
8835 * windows-tdep.c (struct enum_value_name): New struct.
8836 (create_enum): New function.
8837 (windows_get_siginfo_type): Create and use enum types.
8838
8839 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8840
8841 * NEWS: Mention $_siginfo support for Windows.
8842 * windows-nat.c (handle_exception): Set siginfo_er.
8843 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8844 (windows_xfer_siginfo): New function.
8845 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8846 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8847 (init_windows_gdbarch_data): New function.
8848 (get_windows_gdbarch_data): New function.
8849 (windows_get_siginfo_type): New function.
8850 (windows_init_abi): Register windows_get_siginfo_type.
8851 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8852
8853 2020-02-08 Tom Tromey <tom@tromey.com>
8854
8855 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8856 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8857 <keep>: Declare method.
8858 <m_keep>: Remove member.
8859 <~cutu_reader>: Remove.
8860 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8861 (cutu_reader::cutu_reader): Update.
8862 (cutu_reader::keep): Rename from ~cutu_reader.
8863 (process_psymtab_comp_unit, build_type_psymtabs_1)
8864 (process_skeletonless_type_unit, load_partial_comp_unit)
8865 (load_full_comp_unit, dwarf2_read_addr_index)
8866 (read_signatured_type): Update.
8867
8868 2020-02-08 Tom Tromey <tom@tromey.com>
8869
8870 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8871 "want_partial_unit" parameter.
8872 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8873 Inline check for DW_TAG_partial_unit.
8874 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8875
8876 2020-02-08 Tom Tromey <tom@tromey.com>
8877
8878 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8879 read.c.
8880 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8881 read.c.
8882
8883 2020-02-08 Tom Tromey <tom@tromey.com>
8884
8885 * dwarf2/read.c (read_address): Move to comp-unit.c.
8886 (dwarf2_rnglists_process, dwarf2_ranges_process)
8887 (read_attribute_value, dwarf_decode_lines_1)
8888 (var_decode_location, decode_locdesc): Update.
8889 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8890 read.c. Remove "cu" parameter.
8891 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8892 method.
8893
8894 2020-02-08 Tom Tromey <tom@tromey.com>
8895
8896 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8897 (read_indirect_line_string): Update.
8898 * dwarf2/comp-unit.c (read_offset): Remove.
8899 (read_comp_unit_head): Update.
8900 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8901 method.
8902 (read_offset): Don't declare.
8903
8904 2020-02-08 Tom Tromey <tom@tromey.com>
8905
8906 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8907 * dwarf2/read.c (struct comp_unit_head): Move to
8908 dwarf2/comp-unit.h.
8909 (enum class rcuh_kind): Move to comp-unit.h.
8910 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8911 (read_comp_unit_head, error_check_comp_unit_head)
8912 (read_and_check_comp_unit_head): Move to comp-unit.c.
8913 (read_offset, dwarf_unit_type_name): Likewise.
8914 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8915 (cutu_reader::cutu_reader, read_call_site_scope)
8916 (find_partial_die, follow_die_offset): Update.
8917 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8918
8919 2020-02-08 Tom Tromey <tom@tromey.com>
8920
8921 * dwarf2/read.c (read_offset_1): Move to leb.c.
8922 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8923 (dwarf_decode_macro_bytes): Update.
8924 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8925 * dwarf2/leb.h (read_offset): Declare.
8926
8927 2020-02-08 Tom Tromey <tom@tromey.com>
8928
8929 * dwarf2/read.c (dwarf2_section_size): Remove.
8930 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8931 Update.
8932 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8933
8934 2020-02-08 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2/read.c (read_initial_length): Move to leb.c.
8937 * dwarf2/leb.h (read_initial_length): Declare.
8938 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8939 handle_nonstd parameter.
8940 * dwarf2/frame.c (read_initial_length): Remove.
8941 (decode_frame_entry_1): Update.
8942
8943 2020-02-08 Tom Tromey <tom@tromey.com>
8944
8945 * dwarf2/loc.c (dwarf2_find_location_expression)
8946 (dwarf_evaluate_loc_desc::get_tls_address)
8947 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8948 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8949 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8950 (dwarf2_compile_property_to_c)
8951 (dwarf2_loc_desc_get_symbol_read_needs)
8952 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8953 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8954 (loclist_describe_location, loclist_tracepoint_var_ref)
8955 (loclist_generate_c_location): Update.
8956 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8957 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8958 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8959 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8960 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8961 (dwarf2_per_cu_data::addr_size)
8962 (dwarf2_per_cu_data::ref_addr_size)
8963 (dwarf2_per_cu_data::text_offset)
8964 (dwarf2_per_cu_data::addr_type): Now methods.
8965 (per_cu_header_read_in): Make per_cu "const".
8966 (dwarf2_version): Remove.
8967 (dwarf2_per_cu_data::int_type): Now a method.
8968 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
8969 (set_die_type, read_array_type, read_subrange_index_type)
8970 (read_tag_string_type, read_subrange_type): Update.
8971 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
8972 offset_size, ref_addr_size, text_offset, addr_type, version,
8973 objfile, int_type, addr_sized_int_type>: Declare methods.
8974
8975 2020-02-08 Tom Tromey <tom@tromey.com>
8976
8977 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
8978 Move earlier.
8979
8980 2020-02-08 Tom Tromey <tom@tromey.com>
8981
8982 * dwarf2/read.h (dwarf_line_debug): Declare.
8983 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
8984 * dwarf2/read.c: Move line_header code to new files.
8985 (dwarf_line_debug): No longer static.
8986 * dwarf2/line-header.c: New file.
8987 * dwarf2/line-header.h: New file.
8988
8989 2020-02-08 Tom Tromey <tom@tromey.com>
8990
8991 * dwarf2/read.c (struct line_header) <file_full_name,
8992 file_file_name>: Return unique_xmalloc_ptr.
8993 (line_header::file_file_name): Update.
8994 (line_header::file_full_name): Update.
8995 (dw2_get_file_names_reader): Update.
8996 (macro_start_file): Update.
8997
8998 2020-02-08 Tom Tromey <tom@tromey.com>
8999
9000 * dwarf2/read.c (struct line_header) <file_full_name,
9001 file_file_name>: Declare methods.
9002 (dw2_get_file_names_reader): Update.
9003 (file_file_name): Now a method.
9004 (file_full_name): Likewise.
9005 (macro_start_file): Update.
9006
9007 2020-02-08 Tom Tromey <tom@tromey.com>
9008
9009 * dwarf2/read.c (dwarf_always_disassemble)
9010 (show_dwarf_always_disassemble): Move to loc.c.
9011 (_initialize_dwarf2_read): Move "always-disassemble" registration
9012 to loc.c.
9013 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9014 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9015 static.
9016 (show_dwarf_always_disassemble): Move from read.c.
9017 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9018
9019 2020-02-08 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9022 (create_quick_file_names_table): Return htab_up.
9023 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9024 Update.
9025 * dwarf2/read.h (struct dwarf2_per_objfile)
9026 <quick_file_names_table>: Now htab_up.
9027
9028 2020-02-08 Tom Tromey <tom@tromey.com>
9029
9030 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9031
9032 2020-02-08 Tom Tromey <tom@tromey.com>
9033
9034 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9035 Rewrite.
9036 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9037 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9038 (abbrev_table::abbrev_table): No longer inline.
9039 (ABBREV_HASH_SIZE): Remove.
9040 (abbrev_table::m_abbrevs): Now an htab_up.
9041
9042 2020-02-08 Tom Tromey <tom@tromey.com>
9043
9044 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9045 (cutu_reader): Update.
9046 (build_type_psymtabs_1): Update.
9047 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9048 (abbrev_table::alloc_abbrev): Update.
9049 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9050 (abbrev_table::read): New static method, renamed from
9051 abbrev_table_read_table.
9052 (abbrev_table::alloc_abbrev)
9053 (abbrev_table::add_abbrev): Now private.
9054 (abbrev_table::abbrev_table): Now private.
9055 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9056
9057 2020-02-08 Tom Tromey <tom@tromey.com>
9058
9059 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9060 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9061 htab_up.
9062
9063 2020-02-08 Tom Tromey <tom@tromey.com>
9064
9065 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9066 htab_up.
9067 (lookup_dwo_unit_in_dwp): Update.
9068 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9069 on obstack.
9070
9071 2020-02-08 Tom Tromey <tom@tromey.com>
9072
9073 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9074 obstack.
9075
9076 2020-02-08 Tom Tromey <tom@tromey.com>
9077
9078 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9079 line_header_hash.
9080 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9081 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9082 Change type to htab_up.
9083
9084 2020-02-08 Tom Tromey <tom@tromey.com>
9085
9086 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9087 htab_up. Don't allocate on obstack.
9088 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9089 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9090 Change type to htab_up.
9091
9092 2020-02-08 Tom Tromey <tom@tromey.com>
9093
9094 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9095 Change type to htab_up.
9096 * dwarf2/read.c (create_signatured_type_table_from_index)
9097 (create_signatured_type_table_from_debug_names)
9098 (create_all_type_units, add_type_unit)
9099 (lookup_dwo_signatured_type, lookup_signatured_type)
9100 (process_skeletonless_type_unit): Update.
9101 (create_debug_type_hash_table, create_debug_types_hash_table):
9102 Change type of types_htab.
9103 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9104 htab_up. Don't allocate on obstack.
9105 (create_cus_hash_table): Change type of cus_htab parameter.
9106 (struct dwo_file) <cus, tus>: Now htab_up.
9107 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9108 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9109 (queue_and_load_all_dwo_tus): Update.
9110 * dwarf2/index-write.c (write_gdbindex): Update.
9111 (write_debug_names): Update.
9112
9113 2020-02-08 Tom Tromey <tom@tromey.com>
9114
9115 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9116 dwarf2/read.c. Remove "next" member. Add constructor ntad
9117 destructor.
9118 (struct dwarf2_per_objfile) <queue>: New member.
9119 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9120 dwarf2/read.h.
9121 (dwarf2_queue, dwarf2_queue_tail): Remove.
9122 (class dwarf2_queue_guard): Add parameter to constructor. Use
9123 DISABLE_COPY_AND_ASSIGN.
9124 <m_per_objfile>: New member.
9125 <~dwarf2_queue_guard>: Rewrite.
9126 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9127 Update.
9128 (~dwarf2_queue_item): New.
9129
9130 2020-02-08 Tom Tromey <tom@tromey.com>
9131
9132 * dwarf2/read.c (struct die_info) <has_children>: New member.
9133 (dw2_get_file_names_reader): Remove has_children.
9134 (dw2_get_file_names): Update.
9135 (read_cutu_die_from_dwo): Remove has_children.
9136 (cutu_reader::init_tu_and_read_dwo_dies)
9137 (cutu_reader::cutu_reader): Update.
9138 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9139 Remove has_children.
9140 (build_type_psymtabs_1, process_skeletonless_type_unit)
9141 (load_partial_comp_unit, load_full_comp_unit): Update.
9142 (create_dwo_cu_reader): Remove has_children.
9143 (create_cus_hash_table, read_die_and_children): Update.
9144 (read_full_die_1,read_full_die): Remove has_children.
9145 (read_signatured_type): Update.
9146 (class cutu_reader) <has_children>: Remove.
9147
9148 2020-02-08 Tom Tromey <tom@tromey.com>
9149
9150 * dwarf2/expr.c: Rename from dwarf2expr.c.
9151 * dwarf2/expr.h: Rename from dwarf2expr.h.
9152 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9153 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9154 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9155 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9156 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9157 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9158 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9159 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9160 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9161 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9162 * dwarf2/loc.c: Rename from dwarf2loc.c.
9163 * dwarf2/loc.h: Rename from dwarf2loc.h.
9164 * dwarf2/read.c: Rename from dwarf2read.c.
9165 * dwarf2/read.h: Rename from dwarf2read.h.
9166 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9167 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9168 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9169 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9170 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9171 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9172 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9173 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9174 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9175 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9176 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9177 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9178 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9179 Update.
9180 * Makefile.in (COMMON_SFILES): Update.
9181 (HFILES_NO_SRCDIR): Update.
9182
9183 2020-02-08 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9186 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9187
9188 2020-02-08 Tom Tromey <tom@tromey.com>
9189
9190 * dwarf2read.h (struct die_info): Don't declare.
9191
9192 2020-02-08 Tom Tromey <tom@tromey.com>
9193
9194 * dwarf2read.h (die_info_ptr): Remove typedef.
9195
9196 2020-02-08 Tom Tromey <tom@tromey.com>
9197
9198 * dwarf2read.c (read_call_site_scope)
9199 (handle_data_member_location, dwarf2_add_member_fn)
9200 (mark_common_block_symbol_computed, read_common_block)
9201 (attr_to_dynamic_prop, partial_die_info::read)
9202 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9203 (dwarf2_symbol_mark_computed, set_die_type): Update.
9204 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9205 method.
9206 (attr_form_is_block): Don't declare.
9207 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9208
9209 2020-02-08 Tom Tromey <tom@tromey.com>
9210
9211 * dwarf2read.c (dwarf2_find_base_address, )
9212 (read_call_site_scope, rust_containing_type)
9213 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9214 (handle_data_member_location, dwarf2_add_member_fn)
9215 (get_alignment, read_structure_type, process_structure_scope)
9216 (mark_common_block_symbol_computed, read_common_block)
9217 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9218 (partial_die_info::read, read_attribute_value, new_symbol)
9219 (lookup_die_type, dwarf2_get_ref_die_offset)
9220 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9221 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9222 (dwarf2_symbol_mark_computed): Update.
9223 * dwarf2/attribute.h (struct attribute) <value_as_address,
9224 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9225 methods.
9226 (value_as_address, attr_form_is_section_offset)
9227 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9228 * dwarf2/attribute.c (attribute::value_as_address)
9229 (attribute::form_is_section_offset, attribute::form_is_constant)
9230 (attribute::form_is_ref): Now methods.
9231
9232 2020-02-08 Tom Tromey <tom@tromey.com>
9233
9234 * dwarf2read.c (struct attribute, DW_STRING)
9235 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9236 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9237 (attr_form_is_block, attr_form_is_section_offset)
9238 (attr_form_is_constant, attr_form_is_ref): Move.
9239 * dwarf2/attribute.h: New file.
9240 * dwarf2/attribute.c: New file, from dwarf2read.c.
9241 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9242
9243 2020-02-08 Tom Tromey <tom@tromey.com>
9244
9245 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9246 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9247 Move.
9248 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9249 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9250 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9251 abbrev.c.
9252 * dwarf2/abbrev.h: New file.
9253 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9254 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9255
9256 2020-02-08 Tom Tromey <tom@tromey.com>
9257
9258 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9259 (dwarf2_section_size, dwarf2_get_section_info)
9260 (create_signatured_type_table_from_debug_names)
9261 (create_addrmap_from_aranges, read_debug_names_from_section)
9262 (get_gdb_index_contents_from_section, read_comp_unit_head)
9263 (error_check_comp_unit_head, read_abbrev_offset)
9264 (create_debug_type_hash_table, init_cu_die_reader)
9265 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9266 (read_comp_units_from_section, create_cus_hash_table)
9267 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9268 (create_dwp_v2_section, dwarf2_rnglists_process)
9269 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9270 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9271 (read_indirect_string_from_dwz, read_addr_index_1)
9272 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9273 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9274 (fill_in_loclist_baton): Update.
9275 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9276 get_containing_section, get_bfd_owner, get_bfd_section,
9277 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9278 (dwarf2_read_section, get_section_name, get_section_file_name)
9279 (get_containing_section, get_section_bfd_owner)
9280 (get_section_bfd_section, get_section_name, get_section_file_name)
9281 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9282 declare.
9283 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9284 (dwarf2_section_info::get_bfd_owner)
9285 (dwarf2_section_info::get_bfd_section)
9286 (dwarf2_section_info::get_name)
9287 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9288 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9289 (dwarf2_section_info::read): Now methods.
9290 * dwarf-index-write.c (class debug_names): Update.
9291
9292 2020-02-08 Tom Tromey <tom@tromey.com>
9293
9294 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9295 Move to dwarf2/section.h.
9296 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9297 (get_section_bfd_section, get_section_name)
9298 (get_section_file_name, get_section_id, get_section_flags)
9299 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9300 dwarf2/section.c.
9301 * dwarf2/section.h: New file.
9302 * dwarf2/section.c: New file, from dwarf2read.c.
9303 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9304
9305 2020-02-08 Tom Tromey <tom@tromey.com>
9306
9307 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9308 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9309 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9310 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9311 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9312 * dwarf2/leb.h: New file, from dwarf2read.c.
9313 * dwarf2/leb.c: New file, from dwarf2read.c.
9314 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9315 Remove.
9316 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9317 (COMMON_SFILES): Add dwarf2/leb.c.
9318
9319 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9320
9321 GDB 9.1 released.
9322
9323 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9324
9325 PR gdb/25190:
9326 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9327 * gdb/remote.c (remote_console_output): Update.
9328 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9329 (ui_file_puts): ...this.
9330 * gdb/ui-file.h (ui_file_puts): Add declaration.
9331 * gdb/utils.c (emit_style_escape): Update.
9332 (flush_wrap_buffer): Update.
9333 (fputs_maybe_filtered): Update.
9334 (fputs_unfiltered): Add function.
9335
9336 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9337
9338 * gdb/event-loop.c (gdb_wait_for_event): Update.
9339 * gdb/printcmd.c (printf_command): Update.
9340 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9341 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9342 (gdb_os_flush_stderr): Update.
9343 * gdb/remote.c (remote_console_output): Update.
9344 * gdb/ui-file.c (gdb_flush): Rename to...
9345 (ui_file_flush): ...this.
9346 (stderr_file::write): Update.
9347 (stderr_file::puts): Update.
9348 * gdb/ui-file.h (gdb_flush): Rename to...
9349 (ui_file_flush): ...this.
9350 * gdb/utils.c (gdb_flush): Add function.
9351 * gdb/utils.h (gdb_flush): Add declaration.
9352
9353 2020-02-07 Tom Tromey <tromey@adacore.com>
9354
9355 PR breakpoints/24915:
9356 * source.c (find_and_open_source): Do not check basenames_may_differ.
9357
9358 2020-02-07 Tom Tromey <tom@tromey.com>
9359
9360 * README: Update gdbserver documentation.
9361 * gdbserver: Move to top level.
9362 * configure.tgt (build_gdbserver): Remove.
9363 * configure.ac: Remove --enable-gdbserver.
9364 * configure: Rebuild.
9365 * Makefile.in (distclean): Don't mention gdbserver.
9366
9367 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9368
9369 * source-cache.c (source_cache::ensure): Surround
9370 get_plain_source_lines with a try/catch.
9371 (source_cache::get_line_charpos): Get rid of try/catch
9372 and only check for the return value of "ensure".
9373 * tui/tui-source.c (tui_source_window::set_contents):
9374 Simplify "nlines" calculation.
9375
9376 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9377
9378 * MAINTAINERS (Write After Approval): Add myself.
9379
9380 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9381
9382 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9383 function call.
9384
9385 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9386
9387 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9388
9389 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9390
9391 * nat/riscv-linux-tdesc.h: New file.
9392 * nat/riscv-linux-tdesc.c: New file, taking code from...
9393 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9394 ... here.
9395 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9396 NATDEPFILES.
9397
9398 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9399
9400 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9401 we don't set the fake simulator ptid to the null_ptid.
9402
9403 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9404
9405 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9406 * gdbthread.h (class thread_info) <resumed>: Likewise.
9407 * infrun.c (resume_1): Likewise.
9408 (proceed): Likewise.
9409 (infrun_thread_stop_requested): Likewise.
9410 (stop_all_threads): Likewise.
9411 (handle_inferior_event): Likewise.
9412 (restart_threads): Likewise.
9413 (finish_step_over): Likewise.
9414 (keep_going_stepped_thread): Likewise.
9415 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9416 (linux_handle_extended_wait): Likewise.
9417 * record-btrace.c (get_thread_current_frame_id): Likewise.
9418 * record-full.c (record_full_wait_1): Likewise.
9419 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9420 * target.c (target_resume): Likewise.
9421 * thread.c (set_running_thread): Likewise.
9422
9423 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9424
9425 * f-valprint.c (f77_print_array_1): Changed datatype of index
9426 variable to LONGEST from int to enable it to contain bound
9427 values correctly.
9428
9429 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9430
9431 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9432 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9433 offsets according to FLEN determined.
9434 (riscv_linux_nat_target::read_description): Determine FLEN
9435 dynamically.
9436 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9437 according to FLEN determined.
9438 (riscv_linux_nat_target::store_registers): Likewise.
9439
9440 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9441
9442 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9443 when reg->group is empty and reggroup is not.
9444
9445 2020-01-31 Tom Tromey <tromey@adacore.com>
9446
9447 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9448 Call beneath target's mourn_inferior after unpushing.
9449
9450 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9451
9452 PR tui/9765
9453 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9454 have enough lines to fill the screen, still return the lowest
9455 address we found.
9456
9457 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9458
9459 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9460 '-', '<', and '>' commands.
9461
9462 2020-01-29 Pedro Alves <palves@redhat.com>
9463 Sergio Durigan Junior <sergiodj@redhat.com>
9464
9465 * infcmd.c (construct_inferior_arguments): Assert that
9466 'argc' is greater than 0.
9467
9468 2020-01-29 Luis Machado <luis.machado@linaro.org>
9469
9470 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9471 (BRK_INSN_MASK): Define to 0xd4200000.
9472 (aarch64_program_breakpoint_here_p): New function.
9473 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9474 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9475 breakpoint.c.
9476 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9477 breakpoint.h
9478 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9479 call gdbarch_program_breakpoint_here_p.
9480 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9481 default_program_breakpoint_here_p, changed return type to bool and
9482 simplified.
9483 * breakpoint.h (program_breakpoint_here): Moved prototype to
9484 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9485 return type to bool.
9486 * gdbarch.c: Regenerate.
9487 * gdbarch.h: Regenerate.
9488 * gdbarch.sh (program_breakpoint_here_p): New method.
9489 * infrun.c (handle_signal_stop): Call
9490 gdbarch_program_breakpoint_here_p.
9491
9492 2020-01-26 Tom Tromey <tom@tromey.com>
9493
9494 * ctfread.c (struct ctf_fp_info): Reindent.
9495 (_initialize_ctfread): Remove.
9496
9497 2020-01-26 Tom Tromey <tom@tromey.com>
9498
9499 * psymtab.c (partial_map_expand_apply)
9500 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9501 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9502 (psym_print_stats, psym_expand_symtabs_for_function)
9503 (psym_map_symbol_filenames, psym_map_matching_symbols)
9504 (psym_expand_symtabs_matching)
9505 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9506 (maintenance_check_psymtabs): Use new methods.
9507 * psympriv.h (struct partial_symtab) <readin_p,
9508 get_compunit_symtab>: New methods.
9509 <readin, compunit_symtab>: Remove members.
9510 (struct standard_psymtab): New.
9511 (struct legacy_psymtab): Derive from standard_psymtab.
9512 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9513 standard_psymtab.
9514 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9515
9516 2020-01-26 Tom Tromey <tom@tromey.com>
9517
9518 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9519 read_dependencies. Add assert.
9520 * psymtab.c (partial_symtab::read_dependencies): New method.
9521 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9522 method.
9523 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9524 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9525 read_dependencies.
9526 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9527 Add assert.
9528
9529 2020-01-26 Tom Tromey <tom@tromey.com>
9530
9531 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9532 Call expand_psymtab.
9533 (xcoff_read_symtab): Call expand_psymtab.
9534 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9535 legacy_expand_psymtab.
9536 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9537 method.
9538 (struct legacy_psymtab) <expand_psymtab>: Implement.
9539 <legacy_expand_psymtab>: New member.
9540 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9541 (parse_partial_symbols): Set legacy_expand_psymtab.
9542 (psymtab_to_symtab_1): Change argument order. Call
9543 expand_psymtab.
9544 (new_psymtab): Set legacy_expand_psymtab.
9545 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9546 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9547 expand_psymtab.
9548 (dwarf2_psymtab::expand_psymtab): Rename from
9549 psymtab_to_symtab_1. Call expand_psymtab.
9550 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9551 (dbx_end_psymtab): Likewise.
9552 (dbx_psymtab_to_symtab_1): Change argument order. Call
9553 expand_psymtab.
9554 (dbx_read_symtab): Call expand_psymtab.
9555 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9556 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9557 (ctf_psymtab::read_symtab): Call expand_psymtab.
9558
9559 2020-01-26 Tom Tromey <tom@tromey.com>
9560
9561 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9562 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9563 messages.
9564 * mdebugread.c (mdebug_read_symtab): Remove prints.
9565 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9566 assert.
9567 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9568
9569 2020-01-26 Tom Tromey <tom@tromey.com>
9570
9571 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9572 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9573 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9574 legacy_symtab.
9575 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9576 * psymtab.c (psymtab_to_symtab): Call method.
9577 (dump_psymtab): Update.
9578 * psympriv.h (struct partial_symtab): Add virtual destructor.
9579 <read_symtab>: New method.
9580 (struct legacy_symtab): New.
9581 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9582 (struct pst_map) <pst>: Now a legacy_psymtab.
9583 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9584 (new_psymtab): Use legacy_psymtab.
9585 * dwarf2read.h (struct dwarf2_psymtab): New.
9586 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9587 * dwarf2read.c (dwarf2_create_include_psymtab)
9588 (dwarf2_build_include_psymtabs, create_type_unit_group)
9589 (create_partial_symtab, process_psymtab_comp_unit_reader)
9590 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9591 (set_partial_user): Use dwarf2_psymtab.
9592 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9593 (psymtab_to_symtab_1, process_full_comp_unit)
9594 (process_full_type_unit, dwarf2_ranges_read)
9595 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9596 (dwarf_decode_lines): Use dwarf2_psymtab.
9597 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9598 (add_address_entry_worker, write_one_signatured_type)
9599 (recursively_count_psymbols, recursively_write_psymbols)
9600 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9601 (write_debug_names): Likewise.
9602 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9603 <pst>: Now a legacy_psymtab.
9604 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9605 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9606 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9607 * ctfread.c (struct ctf_psymtab): New.
9608 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9609 ctf_psymtab.
9610 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9611 (create_partial_symtab): Return a ctf_psymtab.
9612 (scan_partial_symbols): Update.
9613
9614 2020-01-26 Tom Tromey <tom@tromey.com>
9615
9616 * xcoffread.c (xcoff_start_psymtab): Use new.
9617 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9618 renamed from start_psymtab_common.
9619 * psympriv.h (struct partial_symtab): Add new constructor.
9620 (start_psymtab_common): Don't declare.
9621 * mdebugread.c (parse_partial_symbols): Use new.
9622 * dwarf2read.c (create_partial_symtab): Use new.
9623 * dbxread.c (start_psymtab): Use new.
9624 * ctfread.c (create_partial_symtab): Use new.
9625
9626 2020-01-26 Tom Tromey <tom@tromey.com>
9627
9628 * xcoffread.c (xcoff_end_psymtab): Use new.
9629 * psymtab.c (start_psymtab_common): Use new.
9630 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9631 Update.
9632 * psympriv.h (struct partial_symtab): Add parameters to
9633 constructor. Don't inline.
9634 (allocate_psymtab): Don't declare.
9635 * mdebugread.c (new_psymtab): Use new.
9636 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9637 * dbxread.c (dbx_end_psymtab): Use new.
9638
9639 2020-01-26 Tom Tromey <tom@tromey.com>
9640
9641 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9642 allocate_psymtab. Update documentation.
9643 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9644 allocate_psymtab. Do not use new.
9645 (allocate_psymtab): Use new. Update.
9646
9647 2020-01-26 Tom Tromey <tom@tromey.com>
9648
9649 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9650 * psymtab.c (psym_print_stats): Update.
9651 * psympriv.h (struct partial_symtab) <readin,
9652 psymtabs_addrmap_supported, anonymous>: Now bool.
9653 * mdebugread.c (psymtab_to_symtab_1): Update.
9654 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9655 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9656 (process_full_comp_unit, process_full_type_unit): Update.
9657 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9658 * ctfread.c (psymtab_to_symtab): Update.
9659
9660 2020-01-26 Tom Tromey <tom@tromey.com>
9661
9662 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9663 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9664 * psymtab.c (psymtab_storage): Delete psymtabs.
9665 (psymtab_storage::allocate_psymtab): Use new.
9666 (psymtab_storage::discard_psymtab): Use delete.
9667 * psympriv.h (struct partial_symtab): Add constructor and
9668 initializers.
9669
9670 2020-01-26 Tom Tromey <tom@tromey.com>
9671
9672 * machoread.c: Do not include psympriv.h.
9673
9674 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9675
9676 * NEWS: Mention the new option and the set/show commands.
9677
9678 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9679
9680 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9681 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9682 (validate_exec_file): New variables, enums, functions.
9683 (exec_file_locate_attach, print_section_info): Style the filenames.
9684 (_initialize_exec): Install show_exec_file_mismatch_command and
9685 set_exec_file_mismatch_command.
9686 * gdbcore.h (validate_exec_file): Declare.
9687 * infcmd.c (attach_command): Call validate_exec_file.
9688 * remote.c ( remote_target::remote_add_inferior): Likewise.
9689
9690 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9691
9692 * frame.c (find_frame_sal): Move call to get_next_frame into more
9693 inner scope.
9694 * inline-frame.c (inilne_state) <inline_state>: Update argument
9695 types.
9696 (inilne_state) <skipped_symbol>: Rename to...
9697 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9698 (skip_inline_frames): Build vector of skipped symbols and use this
9699 to reate the inline_state.
9700 (inline_skipped_symbol): Add a comment and some assertions, fetch
9701 skipped symbol from the list.
9702
9703 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9704
9705 * buildsym.c (lte_is_less_than): Delete.
9706 (buildsym_compunit::end_symtab_with_blockvector): Create local
9707 lambda function to sort line table entries, and use
9708 std::stable_sort instead of std::sort.
9709 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9710 markers when looking for a previous line.
9711
9712 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9713
9714 * dwarf2read.c (lnp_state_machine::record_line): Include
9715 end_sequence parameter in debug print out. Record the line if we
9716 are at an end_sequence marker even if it's not the start of a
9717 statement.
9718 * symmisc.c (maintenance_print_one_line_table): Print end of
9719 sequence markers with 'END' not '0'.
9720
9721 2020-01-24 Pedro Alves <palves@redhat.com>
9722
9723 PR gdb/25410
9724 * thread.c (scoped_restore_current_thread::restore): Use
9725 switch_to_inferior_no_thread.
9726 * exec.c: Include "progspace-and-thread.h".
9727 (add_target_sections, remove_target_sections):
9728 scoped_restore_current_pspace_and_thread instead of
9729 scoped_restore_current_thread.
9730 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9731 and aspace to the inferior before calling clone_program_space.
9732 Remove stale comment.
9733
9734 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9735
9736 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9737 (arm_netbsd_nat_target::fetch_registers): ...this.
9738 (arm_nbsd_nat_target::store_registers): Rename to...
9739 (arm_netbsd_nat_target::store_registers): ...this.
9740
9741 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9742
9743 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9744 register_t.
9745
9746 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9747
9748 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9749 Update comment.
9750 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9751 Likewise.
9752 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9753 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9754 the correct replacement (iterate_over_regset_sections).
9755 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9756 Update comment.
9757
9758 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9759
9760 PR gdb/23718
9761 * gdb/python/python.c (execute_gdb_command): Call
9762 async_enable_stdin in catch block.
9763
9764 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9765
9766 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9767 SWITCH_THRU_ALL_UIS.
9768
9769 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9770
9771 PR tui/9765
9772 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9773 comment, add extra parameter, and update to store previous symbol
9774 when appropriate.
9775 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9776 add extra parameter.
9777 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9778 remove unneeded parameter, add try/catch around gdb_print_insn,
9779 rewrite to add items to asm_lines vector.
9780 (tui_find_backward_disassembly_start_address): New function.
9781 (tui_find_disassembly_address): Updated throughout.
9782 (tui_disasm_window::set_contents): Update for changes to
9783 tui_disassemble.
9784 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9785 number of lines to scroll.
9786
9787 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9788
9789 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9790 (SECT_OFF_DATA): Likewise.
9791 (SECT_OFF_RODATA): Likewise.
9792 (SECT_OFF_TEXT): Likewise.
9793 (SECT_OFF_BSS): Likewise.
9794 (struct objfile) <text_section_offset, data_section_offset>: New
9795 methods.
9796 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9797 objfile::text_section_offset.
9798 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9799 * coffread.c (coff_symtab_read): Likewise.
9800 (enter_linenos): Likewise.
9801 (process_coff_symbol): Likewise.
9802 * ctfread.c (get_objfile_text_range): Likewise.
9803 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9804 Use objfile::data_section_offset.
9805 * dwarf2-frame.c (execute_cfa_program): Use
9806 objfile::text_section_offset.
9807 (dwarf2_frame_find_fde): Likewise.
9808 * dwarf2read.c (create_addrmap_from_index): Likewise.
9809 (create_addrmap_from_aranges): Likewise.
9810 (dw2_find_pc_sect_compunit_symtab): Likewise.
9811 (process_psymtab_comp_unit_reader): Likewise.
9812 (add_partial_symbol): Likewise.
9813 (add_partial_subprogram): Likewise.
9814 (process_full_comp_unit): Likewise.
9815 (read_file_scope): Likewise.
9816 (read_func_scope): Likewise.
9817 (read_lexical_block_scope): Likewise.
9818 (read_call_site_scope): Likewise.
9819 (dwarf2_rnglists_process): Likewise.
9820 (dwarf2_ranges_process): Likewise.
9821 (dwarf2_ranges_read): Likewise.
9822 (dwarf_decode_lines_1): Likewise.
9823 (new_symbol): Likewise.
9824 (dwarf2_fetch_die_loc_sect_off): Likewise.
9825 (dwarf2_per_cu_text_offset): Likewise.
9826 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9827 * hppa-tdep.c (read_unwind_info): Likewise.
9828 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9829 * psympriv.h (struct partial_symtab): Likewise.
9830 * psymtab.c (find_pc_sect_psymtab): Likewise.
9831 * solib-svr4.c (enable_break): Likewise.
9832 * stap-probe.c (relocate_address): Use
9833 objfile::data_section_offset.
9834 * xcoffread.c (enter_line_range): Use
9835 objfile::text_section_offset.
9836 (read_xcoff_symtab): Likewise.
9837
9838 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9839
9840 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9841 declaration to narrower scopes.
9842
9843 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9844
9845 * darwin-nat.h (struct darwin_exception_msg, enum
9846 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9847 Move up.
9848 (class darwin_nat_target) <wait_1, check_new_threads,
9849 decode_exception_message, decode_message, stop_inferior,
9850 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9851 * darwin-nat.c (darwin_check_new_threads): Rename to...
9852 (darwin_nat_target::check_new_threads): ... this.
9853 (darwin_suspend_inferior_it): Remove.
9854 (darwin_decode_exception_message): Rename to...
9855 (darwin_nat_target::decode_exception_message): ... this.
9856 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9857 (darwin_decode_message): Rename to...
9858 (darwin_nat_target::decode_message): ... this.
9859 (cancel_breakpoint): Rename to...
9860 (darwin_nat_target::cancel_breakpoint): ... this.
9861 (darwin_wait): Rename to...
9862 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9863 instead of iterate_over_inferiors.
9864 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9865 (darwin_stop_inferior): Rename to...
9866 (darwin_nat_target::stop_inferior): ... this.
9867 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9868 (darwin_init_thread_list): Rename to...
9869 (darwin_nat_target::init_thread_list): ... this.
9870 (darwin_ptrace_him): Rename to...
9871 (darwin_nat_target::ptrace_him): ... this.
9872 (darwin_nat_target::create_inferior): Pass lambda function to
9873 fork_inferior.
9874 (darwin_nat_target::detach): Call stop_inferior instead of
9875 darwin_stop_inferior.
9876 * fork-inferior.h (fork_inferior): Change init_trace_fun
9877 parameter to gdb::function_view.
9878 * fork-inferior.c (fork_inferior): Likewise.
9879
9880 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9881
9882 * i386-cygwin-tdep.c (core_process_module_section): Update.
9883 * windows-nat.c (struct lm_info_windows): Add text_offset.
9884 (windows_xfer_shared_libraries): Update.
9885 * windows-tdep.c (windows_xfer_shared_library):
9886 Add text_offset_cached argument.
9887 * windows-tdep.h (windows_xfer_shared_library): Update.
9888
9889 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9890
9891 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9892
9893 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9894
9895 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9896 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9897 replace with range-based for.
9898 (gdbsim_interrupt_inferior): Remove.
9899 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9900 with a range-based for. Inline code from
9901 gdbsim_interrupt_inferior.
9902
9903 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9904
9905 * infrun.c (proceed): Fix indentation.
9906
9907 2020-01-21 Tom Tromey <tromey@adacore.com>
9908
9909 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9910 * python/python.c (python_extension_ops): Update.
9911 (gdbpy_colorize): New function.
9912 * python/lib/gdb/__init__.py (colorize): New function.
9913 * extension.h (ext_lang_colorize): Declare.
9914 * extension.c (ext_lang_colorize): New function.
9915 * extension-priv.h (struct extension_language_ops) <colorize>: New
9916 member.
9917 * cli/cli-style.c (_initialize_cli_style): Update help text.
9918
9919 2020-01-21 Luis Machado <luis.machado@linaro.org>
9920
9921 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9922 <cond>: Change type to bool.
9923 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9924 (aarch64_displaced_step_cb): Likewise.
9925 (aarch64_displaced_step_tb): Likewise.
9926
9927 2020-01-21 Luis Machado <luis.machado@linaro.org>
9928
9929 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9930 output.
9931
9932 2020-01-21 Luis Machado <luis.machado@linaro.org>
9933
9934 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9935 <pc_adjust>: Adjust the documentation.
9936 (aarch64_displaced_step_fixup): Check if PC really moved before
9937 adjusting it.
9938
9939 2020-01-19 Tom Tromey <tom@tromey.com>
9940
9941 * disasm.c (~gdb_disassembler): New destructor.
9942 (gdb_buffered_insn_length): Call disassemble_free_target.
9943 * disasm.h (class gdb_disassembler): Declare destructor. Use
9944 DISABLE_COPY_AND_ASSIGN.
9945
9946 2020-01-19 Tom Tromey <tom@tromey.com>
9947
9948 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9949 (die_reader_func_ftype): Remove.
9950 (cutu_reader): New class.
9951 (dw2_get_file_names_reader): Remove "data" parameter.
9952 (dw2_get_file_names): Use cutu_reader.
9953 (create_debug_type_hash_table): Update.
9954 (read_cutu_die_from_dwo): Update comment.
9955 (lookup_dwo_unit): Add dwo_name parameter.
9956 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9957 die_reader_func_ftype and data parameters.
9958 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9959 Remove die_reader_func_ftype and data parameters.
9960 (~cutu_reader): New; from init_cutu_and_read_dies.
9961 (cutu_reader::cutu_reader): Rename from
9962 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9963 and data parameters.
9964 (init_cutu_and_read_dies_simple): Remove.
9965 (struct process_psymtab_comp_unit_data): Remove.
9966 (process_psymtab_comp_unit_reader): Remove data parameter; add
9967 want_partial_unit and pretend_language parameters.
9968 (process_psymtab_comp_unit): Use cutu_reader.
9969 (build_type_psymtabs_reader): Remove data parameter.
9970 (build_type_psymtabs_1): Use cutu_reader.
9971 (process_skeletonless_type_unit): Likewise.
9972 (load_partial_comp_unit_reader): Remove.
9973 (load_partial_comp_unit): Use cutu_reader.
9974 (load_full_comp_unit_reader): Remove.
9975 (load_full_comp_unit): Use cutu_reader.
9976 (struct create_dwo_cu_data): Remove.
9977 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
9978 dwo_unit parameters.
9979 (create_cus_hash_table): Use cutu_reader.
9980 (struct dwarf2_read_addr_index_data): Remove.
9981 (dwarf2_read_addr_index_reader): Remove.
9982 (dwarf2_read_addr_index): Use cutu_reader.
9983 (read_signatured_type_reader): Remove.
9984 (read_signatured_type): Use cutu_reader.
9985
9986 2020-01-19 Tom Tromey <tom@tromey.com>
9987
9988 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
9989 * tui/tui-wingeneral.h (class tui_suppress_output): New.
9990 (tui_wrefresh): Declare.
9991 * tui/tui-wingeneral.c (suppress_output): New global.
9992 (tui_suppress_output, ~tui_suppress_output): New constructor and
9993 destructor.
9994 (tui_wrefresh): New function.
9995 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
9996 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
9997 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
9998 method.
9999 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10000 tui_wrefresh.
10001 (tui_data_window::no_refresh): New method.
10002 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10003 (tui_reg_command): Use tui_suppress_output
10004 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10005 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10006 method.
10007 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10008
10009 2020-01-19 Tom Tromey <tom@tromey.com>
10010
10011 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10012 Handle case where symtab is null.
10013
10014 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10015
10016 * linux-fork.c (one_fork_p): Simplify.
10017
10018 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10019
10020 * top.c (struct qt_args): Remove.
10021 (kill_or_detach): Change return type to void, replace `void *`
10022 parameter with a proper one.
10023 (print_inferior_quit_action): Likewise.
10024 (quit_confirm): Use range-based for loop to iterate over inferiors.
10025 (quit_force): Likewise.
10026
10027 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10028
10029 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10030 `void *` parameter with proper parameters.
10031 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10032 (print_one_inferior): Change return type to void, replace `void *`
10033 parameter with proper parameters.
10034 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10035 inferiors.
10036 (get_other_inferior): Remove.
10037 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10038 inferiors.
10039
10040 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10041
10042 * mi/mi-interp.c (report_initial_inferior): Remove.
10043 (mi_interp::init): Use range-based for to iterate over inferiors.
10044
10045 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10046
10047 * python/py-inferior.c (build_inferior_list): Remove.
10048 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10049
10050 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10051
10052 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10053 (btrace_stitch_trace): Likewise.
10054 * charset.c (intermediate_encoding): Likewise (vaild).
10055 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10056 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10057 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10058
10059 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10060
10061 * windows-tdep.c (windows_get_tlb_type):
10062 Add rtl_user_process_parameters type.
10063
10064 2020-01-16 Pedro Alves <palves@redhat.com>
10065 Norbert Lange <nolange79@gmail.com>
10066
10067 PR build/24805
10068 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10069 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10070 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10071 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10072 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10073 (ps_plog): Redeclare exported functions with default visibility.
10074
10075 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10076
10077 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10078 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10079
10080 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10081
10082 * infcmd.c (post_create_inferior): Use get_thread_regcache
10083 instead of get_current_regcache.
10084
10085 2020-01-14 Tom Tromey <tom@tromey.com>
10086
10087 PR symtab/12535:
10088 * python/python.c (gdbpy_decode_line): Treat empty string the same
10089 as no argument.
10090
10091 2020-01-14 Tom Tromey <tom@tromey.com>
10092
10093 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10094
10095 2020-01-14 Tom Tromey <tom@tromey.com>
10096
10097 * nat/linux-btrace.c: Don't include <config.h>.
10098 * nat/linux-ptrace.c: Don't include <config.h>.
10099 * nat/x86-linux-dregs.c: Don't include <config.h>.
10100
10101 2020-01-14 Tom Tromey <tom@tromey.com>
10102
10103 * configure: Rebuild.
10104 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10105
10106 2020-01-14 Tom Tromey <tom@tromey.com>
10107
10108 * nat/x86-linux-dregs.c: Include configh.h.
10109 * nat/linux-ptrace.c: Include configh.h.
10110 * nat/linux-btrace.c: Include configh.h.
10111 * defs.h: Include config.h, bfd.h.
10112 * configure.ac: Don't source common.host.
10113 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10114 * configure: Rebuild.
10115 * acinclude.m4: Update path.
10116 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10117 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10118 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10119 (CLIBS): Add LIBSUPPORT.
10120 (CDEPS): Likewise.
10121 (COMMON_SFILES): Remove gdbsupport files.
10122 (HFILES_NO_SRCDIR): Likewise.
10123 (stamp-version): Update path to create-version.sh.
10124 (ALLDEPFILES): Remove gdbsupport files.
10125
10126 2020-01-14 Tom Tromey <tom@tromey.com>
10127
10128 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10129 USE_WIN32API when needed.
10130 * configure.ac (USE_WIN32API): Don't define.
10131 (WIN32LIBS): Use WIN32APILIBS.
10132 * configure: Rebuild.
10133
10134 2020-01-14 Tom Tromey <tom@tromey.com>
10135
10136 * configure: Rebuild.
10137 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10138
10139 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10140
10141 * skip.c (skip_function_command): Make skip w/o arguments use the
10142 name of the inlined function if pc is inside any inlined function.
10143
10144 2020-01-14 Luis Machado <luis.machado@linaro.org>
10145
10146 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10147 * infrun.c (resume_1): Likewise.
10148 (handle_inferior_event): Remove stale comment.
10149 * linux-nat.c (linux_nat_target::resume): Update comments.
10150 (save_stop_reason): Likewise.
10151 (linux_nat_filter_event): Likewise.
10152 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10153
10154 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10155
10156 * elfread.c (record_minimal_symbol): Set section index to 0 for
10157 non-allocatable sections.
10158
10159
10160 2020-01-13 Ali Tamur <tamur@google.com>
10161
10162 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10163 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10164 to gdb::optional. Update comments.
10165 (dwo_file): Update comments.
10166 (read_attribute): Update API to take an additional out parameter,
10167 need_reprocess. This is used to mark attributes that need other
10168 attributes (e.g. str_offsets_base) for correct computation which may not
10169 have been read yet.
10170 (read_attribute_reprocess): New function declaration.
10171 (read_addr_index): Likewise.
10172 (read_dwo_str_index): Likewise.
10173 (read_stub_str_index): Likewise.
10174 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10175 (lookup_addr_base): New function definition.
10176 (lookup_ranges_base): Likewise.
10177 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10178 lookup_ranges_base.
10179 (init_cutu_and_read_dies): Update comments.
10180 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10181 unit. This is used to inherit parent's str_offsets_base and addr_base.
10182 Update comments.
10183 (init_cutu_and_read_dies_simple): Reflect API changes.
10184 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10185 (create_cus_hash_table): Change API to take parent compile unit.
10186 Reflect API changes.
10187 (open_and_init_dwo_file): Reflect API changes.
10188 (dwarf2_get_pc_bounds): Update comments.
10189 (dwarf2_record_block_ranges): Likewise.
10190 (read_full_die_1): Change implementation to reprocess attributes that
10191 need str_offsets_base and addr_base.
10192 (partial_die_info::read): Likewise.
10193 (read_attribute_reprocess): New function definition.
10194 (read_attribute_value): Change API to take an additional out parameter,
10195 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10196 when a non-dwo compile unit has index based attributes.
10197 (read_attribute): Reflect API changes.
10198 (read_addr_index_1): Reflect API changes. Update comments.
10199 (dwarf2_read_addr_index_data): Reflect API changes.
10200 (dwarf2_read_addr_index): Likewise.
10201 (read_str_index): Change API and implementation. This becomes a helper
10202 to be used by the new string index related methods. Update error
10203 message and comments.
10204 (read_dwo_str_index): New function definition.
10205 (read_stub_str_index): Likewise.
10206 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10207 * symfile.h (dwarf2_debug_sections): Likewise.
10208 * xcoffread.c (dwarf2_debug_sections): Likewise.
10209
10210 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10211
10212 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10213 core_reg_sect type to gdb_byte *.
10214 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10215 * cris-tdep.c (fetch_core_registers): Likewise.
10216 * corelow.c (core_target::get_core_register_section): Change
10217 type of `contents` to gdb::byte_vector.
10218
10219 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10220
10221 * tui/tui-wingeneral.c (box_win): Position the title in the center
10222 of the border.
10223
10224 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10225
10226 * corelow.c (core_target::get_core_register_section): Use
10227 std::vector instead of alloca.
10228
10229 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * warning.m4: Add -Wmissing-declarations to build_warnings.
10232 * configure: Re-generate.
10233
10234 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10235
10236 * python/python.c (init__gdb_module): Add declaration.
10237
10238 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10239
10240 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10241 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10242 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10243 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10244 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10245 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10246 * ada-exp.y (_initialize_ada_exp): Add declaration.
10247 * ada-lang.c (_initialize_ada_language): Add declaration.
10248 * ada-tasks.c (_initialize_tasks): Add declaration.
10249 * agent.c (_initialize_agent): Add declaration.
10250 * aix-thread.c (_initialize_aix_thread): Add declaration.
10251 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10252 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10253 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10254 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10255 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10256 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10257 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10258 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10259 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10260 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10261 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10262 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10263 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10264 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10265 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10266 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10267 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10268 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10269 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10270 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10271 * annotate.c (_initialize_annotate): Add declaration.
10272 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10273 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10274 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10275 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10276 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10277 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10278 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10279 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10280 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10281 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10282 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10283 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10284 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10285 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10286 * auto-load.c (_initialize_auto_load): Add declaration.
10287 * auxv.c (_initialize_auxv): Add declaration.
10288 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10289 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10290 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10291 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10292 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10293 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10294 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10295 * breakpoint.c (_initialize_breakpoint): Add declaration.
10296 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10297 * btrace.c (_initialize_btrace): Add declaration.
10298 * charset.c (_initialize_charset): Add declaration.
10299 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10300 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10301 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10302 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10303 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10304 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10305 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10306 * coffread.c (_initialize_coffread): Add declaration.
10307 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10308 * compile/compile.c (_initialize_compile): Add declaration.
10309 * complaints.c (_initialize_complaints): Add declaration.
10310 * completer.c (_initialize_completer): Add declaration.
10311 * copying.c (_initialize_copying): Add declaration.
10312 * corefile.c (_initialize_core): Add declaration.
10313 * corelow.c (_initialize_corelow): Add declaration.
10314 * cp-abi.c (_initialize_cp_abi): Add declaration.
10315 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10316 * cp-support.c (_initialize_cp_support): Add declaration.
10317 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10318 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10319 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10320 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10321 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10322 * ctfread.c (_initialize_ctfread): Add declaration.
10323 * d-lang.c (_initialize_d_language): Add declaration.
10324 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10325 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10326 * dbxread.c (_initialize_dbxread): Add declaration.
10327 * dcache.c (_initialize_dcache): Add declaration.
10328 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10329 * disasm.c (_initialize_disasm): Add declaration.
10330 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10331 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10332 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10333 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10334 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10335 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10336 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10337 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10338 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10339 * elfread.c (_initialize_elfread): Add declaration.
10340 * exec.c (_initialize_exec): Add declaration.
10341 * extension.c (_initialize_extension): Add declaration.
10342 * f-lang.c (_initialize_f_language): Add declaration.
10343 * f-valprint.c (_initialize_f_valprint): Add declaration.
10344 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10345 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10346 * filesystem.c (_initialize_filesystem): Add declaration.
10347 * findcmd.c (_initialize_mem_search): Add declaration.
10348 * findvar.c (_initialize_findvar): Add declaration.
10349 * fork-child.c (_initialize_fork_child): Add declaration.
10350 * frame-base.c (_initialize_frame_base): Add declaration.
10351 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10352 * frame.c (_initialize_frame): Add declaration.
10353 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10354 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10355 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10356 * gcore.c (_initialize_gcore): Add declaration.
10357 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10358 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10359 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10360 * gdbarch.c (_initialize_gdbarch): Add declaration.
10361 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10362 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10363 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10364 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10365 * go-lang.c (_initialize_go_language): Add declaration.
10366 * go32-nat.c (_initialize_go32_nat): Add declaration.
10367 * guile/guile.c (_initialize_guile): Add declaration.
10368 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10369 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10370 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10371 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10372 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10373 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10374 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10375 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10376 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10377 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10378 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10379 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10380 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10381 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10382 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10383 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10384 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10385 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10386 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10387 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10388 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10389 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10390 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10391 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10392 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10393 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10394 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10395 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10396 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10397 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10398 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10399 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10400 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10401 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10402 * infcall.c (_initialize_infcall): Add declaration.
10403 * infcmd.c (_initialize_infcmd): Add declaration.
10404 * inflow.c (_initialize_inflow): Add declaration.
10405 * infrun.c (_initialize_infrun): Add declaration.
10406 * interps.c (_initialize_interpreter): Add declaration.
10407 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10408 * jit.c (_initialize_jit): Add declaration.
10409 * language.c (_initialize_language): Add declaration.
10410 * linux-fork.c (_initialize_linux_fork): Add declaration.
10411 * linux-nat.c (_initialize_linux_nat): Add declaration.
10412 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10413 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10414 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10415 * m2-lang.c (_initialize_m2_language): Add declaration.
10416 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10417 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10418 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10419 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10420 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10421 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10422 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10423 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10424 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10425 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10426 * machoread.c (_initialize_machoread): Add declaration.
10427 * macrocmd.c (_initialize_macrocmd): Add declaration.
10428 * macroscope.c (_initialize_macroscope): Add declaration.
10429 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10430 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10431 * maint.c (_initialize_maint_cmds): Add declaration.
10432 * mdebugread.c (_initialize_mdebugread): Add declaration.
10433 * memattr.c (_initialize_mem): Add declaration.
10434 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10435 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10436 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10437 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10438 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10439 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10440 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10441 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10442 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10443 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10444 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10445 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10446 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10447 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10448 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10449 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10450 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10451 * mipsread.c (_initialize_mipsread): Add declaration.
10452 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10453 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10454 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10455 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10456 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10457 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10458 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10459 * nto-procfs.c (_initialize_procfs): Add declaration.
10460 * objc-lang.c (_initialize_objc_language): Add declaration.
10461 * observable.c (_initialize_observer): Add declaration.
10462 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10463 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10464 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10465 * osabi.c (_initialize_gdb_osabi): Add declaration.
10466 * osdata.c (_initialize_osdata): Add declaration.
10467 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10468 * parse.c (_initialize_parse): Add declaration.
10469 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10470 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10471 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10472 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10473 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10474 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10475 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10476 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10477 * printcmd.c (_initialize_printcmd): Add declaration.
10478 * probe.c (_initialize_probe): Add declaration.
10479 * proc-api.c (_initialize_proc_api): Add declaration.
10480 * proc-events.c (_initialize_proc_events): Add declaration.
10481 * proc-service.c (_initialize_proc_service): Add declaration.
10482 * procfs.c (_initialize_procfs): Add declaration.
10483 * producer.c (_initialize_producer): Add declaration.
10484 * psymtab.c (_initialize_psymtab): Add declaration.
10485 * python/python.c (_initialize_python): Add declaration.
10486 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10487 * record-btrace.c (_initialize_record_btrace): Add declaration.
10488 * record-full.c (_initialize_record_full): Add declaration.
10489 * record.c (_initialize_record): Add declaration.
10490 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10491 * regcache.c (_initialize_regcache): Add declaration.
10492 * reggroups.c (_initialize_reggroup): Add declaration.
10493 * remote-notif.c (_initialize_notif): Add declaration.
10494 * remote-sim.c (_initialize_remote_sim): Add declaration.
10495 * remote.c (_initialize_remote): Add declaration.
10496 * reverse.c (_initialize_reverse): Add declaration.
10497 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10498 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10499 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10500 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10501 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10502 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10503 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10504 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10505 Add declaration.
10506 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10507 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10508 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10509 * rust-exp.y (_initialize_rust_exp): Add declaration.
10510 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10511 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10512 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10513 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10514 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10515 * score-tdep.c (_initialize_score_tdep): Add declaration.
10516 * ser-go32.c (_initialize_ser_dos): Add declaration.
10517 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10518 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10519 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10520 * ser-uds.c (_initialize_ser_socket): Add declaration.
10521 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10522 * serial.c (_initialize_serial): Add declaration.
10523 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10524 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10525 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10526 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10527 * skip.c (_initialize_step_skip): Add declaration.
10528 * sol-thread.c (_initialize_sol_thread): Add declaration.
10529 * solib-aix.c (_initialize_solib_aix): Add declaration.
10530 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10531 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10532 * solib-frv.c (_initialize_frv_solib): Add declaration.
10533 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10534 * solib-target.c (_initialize_solib_target): Add declaration.
10535 * solib.c (_initialize_solib): Add declaration.
10536 * source-cache.c (_initialize_source_cache): Add declaration.
10537 * source.c (_initialize_source): Add declaration.
10538 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10539 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10540 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10541 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10542 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10543 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10544 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10545 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10546 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10547 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10548 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10549 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10550 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10551 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10552 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10553 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10554 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10555 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10556 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10557 * stabsread.c (_initialize_stabsread): Add declaration.
10558 * stack.c (_initialize_stack): Add declaration.
10559 * stap-probe.c (_initialize_stap_probe): Add declaration.
10560 * std-regs.c (_initialize_frame_reg): Add declaration.
10561 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10562 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10563 * symfile.c (_initialize_symfile): Add declaration.
10564 * symmisc.c (_initialize_symmisc): Add declaration.
10565 * symtab.c (_initialize_symtab): Add declaration.
10566 * target.c (_initialize_target): Add declaration.
10567 * target-connection.c (_initialize_target_connection): Add
10568 declaration.
10569 * target-dcache.c (_initialize_target_dcache): Add declaration.
10570 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10571 * thread.c (_initialize_thread): Add declaration.
10572 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10573 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10574 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10575 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10576 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10577 * tracectf.c (_initialize_ctf): Add declaration.
10578 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10579 * tracefile.c (_initialize_tracefile): Add declaration.
10580 * tracepoint.c (_initialize_tracepoint): Add declaration.
10581 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10582 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10583 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10584 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10585 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10586 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10587 * tui/tui.c (_initialize_tui): Add declaration.
10588 * typeprint.c (_initialize_typeprint): Add declaration.
10589 * ui-style.c (_initialize_ui_style): Add declaration.
10590 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10591 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10592 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10593 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10594 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10595 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10596 * unittests/filtered_iterator-selftests.c
10597 (_initialize_filtered_iterator_selftests): Add declaration.
10598 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10599 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10600 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10601 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10602 * unittests/main-thread-selftests.c
10603 (_initialize_main_thread_selftests): Add declaration.
10604 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10605 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10606 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10607 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10608 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10609 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10610 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10611 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10612 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10613 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10614 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10615 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10616 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10617 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10618 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10619 declaration.
10620 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10621 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10622 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10623 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10624 * user-regs.c (_initialize_user_regs): Add declaration.
10625 * utils.c (_initialize_utils): Add declaration.
10626 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10627 * valops.c (_initialize_valops): Add declaration.
10628 * valprint.c (_initialize_valprint): Add declaration.
10629 * value.c (_initialize_values): Add declaration.
10630 * varobj.c (_initialize_varobj): Add declaration.
10631 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10632 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10633 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10634 * windows-nat.c (_initialize_windows_nat): Add declaration.
10635 (_initialize_check_for_gdb_ini): Add declaration.
10636 (_initialize_loadable): Add declaration.
10637 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10638 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10639 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10640 * xcoffread.c (_initialize_xcoffread): Add declaration.
10641 * xml-support.c (_initialize_xml_support): Add declaration.
10642 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10643 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10644 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10645 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10646
10647 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10648
10649 * regformats/regdat.sh: Generate declaration for init function.
10650
10651 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10652
10653 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10654 up.
10655 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10656 close_one_inferior>: New methods.
10657 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10658 pass down target to find_inferior_pid.
10659 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10660 Pass down target to find_inferior_ptid.
10661 (gdbsim_target::create_inferior): Pass down target to
10662 add_thread_silent.
10663 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10664 target down to find_inferior_ptid and switch_to_thread.
10665 (gdbsim_target::close): Update to call close_one_inferior.
10666 (struct resume_data): Remove.
10667 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10668 directly, rather than through a void pointer.
10669 (gdbsim_target::resume): Update to call resume_one_inferior.
10670
10671 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10672
10673 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10674
10675 2020-01-12 Pedro Alves <palves@redhat.com>
10676
10677 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10678 directly for the current inferior instead of
10679 discard_all_inferiors.
10680 (discard_all_inferiors): Delete.
10681
10682 2020-01-11 Tom Tromey <tom@tromey.com>
10683
10684 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10685 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10686 deprecated_safe_get_selected_frame.
10687
10688 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10689
10690 * inferior.c (print_inferior): Switch inferior before printing it.
10691
10692 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10693 Pedro Alves <palves@redhat.com>
10694
10695 * progspace-and-thread.c (switch_to_program_space_and_thread):
10696 Assert there's an inferior for PSPACE. Use
10697 switch_to_inferior_no_thread to switch the inferior too.
10698 * progspace.c (program_space::~program_space): Call
10699 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10700 (program_space::free_all_objfiles): Don't call clear_symtab_users
10701 here.
10702 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10703
10704 2020-01-10 Pedro Alves <palves@redhat.com>
10705
10706 * NEWS: Mention multi-target debugging, "info connections", and
10707 "add-inferior -no-connection".
10708
10709 2020-01-10 Pedro Alves <palves@redhat.com>
10710
10711 * infrun.c: Include "target-connection.h".
10712 (check_multi_target_resumption): New.
10713 (proceed): Call it.
10714 * target-connection.c (make_target_connection_string): Make
10715 extern.
10716 * target-connection.h (make_target_connection_string): Declare.
10717
10718 2020-01-10 Pedro Alves <palves@redhat.com>
10719
10720 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10721 * inferior.c (uiout_field_connection): New function.
10722 (print_inferior): Add new "connection-id" column.
10723 (add_inferior_command): Show connection number/string of added
10724 inferior.
10725 * process-stratum-target.h
10726 (process_stratum_target::connection_string): New virtual method.
10727 (process_stratum_target::connection_number): New field.
10728 * remote.c (remote_target::connection_string): New override.
10729 * target-connection.c: New file.
10730 * target-connection.h: New file.
10731 * target.c (decref_target): Remove process_stratum targets from
10732 the connection list.
10733 (target_stack::push): Add process_stratum targets to the
10734 connection list.
10735
10736 2020-01-10 Pedro Alves <palves@redhat.com>
10737
10738 Revert:
10739 2016-04-12 Pedro Alves <palves@redhat.com>
10740 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10741 Remove references to name.
10742 * serial.h (struct serial) <name>: Delete.
10743
10744 2020-01-10 Pedro Alves <palves@redhat.com>
10745
10746 * gdbarch-selftests.c (register_to_value_test): Remove "target
10747 already pushed" check.
10748
10749 2020-01-10 Pedro Alves <palves@redhat.com>
10750 John Baldwin <jhb@FreeBSD.org>
10751
10752 * aarch64-linux-nat.c
10753 (aarch64_linux_nat_target::thread_architecture): Adjust.
10754 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10755 (task_command_1): Likewise.
10756 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10757 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10758 (aix_thread_target::store_registers)
10759 (aix_thread_target::thread_alive): Adjust.
10760 * amd64-fbsd-tdep.c: Include "inferior.h".
10761 (amd64fbsd_get_thread_local_address): Pass down target.
10762 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10763 thread's gdbarch instead of target_gdbarch.
10764 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10765 get_last_target_status.
10766 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10767 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10768 inferiors.
10769 (update_inserted_breakpoint_locations): Skip if inferiors with no
10770 execution.
10771 (update_global_location_list): When handling moribund locations,
10772 find representative inferior for location's pspace, and use thread
10773 count of its process_stratum target.
10774 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10775 * bsd-uthread.c (bsd_uthread_target::wait): Use
10776 as_process_stratum_target and adjust thread_change_ptid and
10777 add_thread calls.
10778 (bsd_uthread_target::update_thread_list): Use
10779 as_process_stratum_target and adjust find_thread_ptid,
10780 thread_change_ptid and add_thread calls.
10781 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10782 find_thread_ptid call.
10783 * corelow.c (add_to_thread_list): Adjust add_thread call.
10784 (core_target_open): Adjust add_thread_silent and thread_count
10785 calls.
10786 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10787 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10788 * event-top.c (async_disconnect): Pop targets from all inferiors.
10789 * exec.c (add_target_sections): Push exec target on all inferiors
10790 sharing the program space.
10791 (remove_target_sections): Remove the exec target from all
10792 inferiors sharing the program space.
10793 (exec_on_vfork): New.
10794 * exec.h (exec_on_vfork): Declare.
10795 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10796 Pass it down.
10797 (fbsd_nat_target::update_thread_list): Adjust.
10798 (fbsd_nat_target::resume): Adjust.
10799 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10800 down.
10801 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10802 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10803 get_thread_arch_regcache call.
10804 * fork-child.c (gdb_startup_inferior): Pass target down to
10805 startup_inferior and set_executing.
10806 * gdbthread.h (struct process_stratum_target): Forward declare.
10807 (add_thread, add_thread_silent, add_thread_with_info)
10808 (in_thread_list): Add process_stratum_target parameter.
10809 (find_thread_ptid(inferior*, ptid_t)): New overload.
10810 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10811 parameter.
10812 (all_threads()): Delete overload.
10813 (all_threads, all_non_exited_threads): Add process_stratum_target
10814 parameter.
10815 (all_threads_safe): Use brace initialization.
10816 (thread_count): Add process_stratum_target parameter.
10817 (set_resumed, set_running, set_stop_requested, set_executing)
10818 (threads_are_executing, finish_thread_state): Add
10819 process_stratum_target parameter.
10820 (switch_to_thread): Use is_current_thread.
10821 * i386-fbsd-tdep.c: Include "inferior.h".
10822 (i386fbsd_get_thread_local_address): Pass down target.
10823 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10824 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10825 have_inferiors check.
10826 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10827 (inf_ptrace_target::attach): Adjust.
10828 * infcall.c (run_inferior_call): Adjust.
10829 * infcmd.c (run_command_1): Pass target to
10830 scoped_finish_thread_state.
10831 (proceed_thread_callback): Skip inferiors with no execution.
10832 (continue_command): Rename 'all_threads' local to avoid hiding
10833 'all_threads' function. Adjust get_last_target_status call.
10834 (prepare_one_step): Adjust set_running call.
10835 (signal_command): Use user_visible_resume_target. Compare thread
10836 pointers instead of inferior_ptid.
10837 (info_program_command): Adjust to pass down target.
10838 (attach_command): Mark target's 'thread_executing' flag.
10839 (stop_current_target_threads_ns): New, factored out from ...
10840 (interrupt_target_1): ... this. Switch inferior before making
10841 target calls.
10842 * inferior-iter.h
10843 (struct all_inferiors_iterator, struct all_inferiors_range)
10844 (struct all_inferiors_safe_range)
10845 (struct all_non_exited_inferiors_range): Filter on
10846 process_stratum_target too. Remove explicit.
10847 * inferior.c (inferior::inferior): Push dummy target on target
10848 stack.
10849 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10850 Add process_stratum_target parameter, and pass it down.
10851 (have_live_inferiors): Adjust.
10852 (switch_to_inferior_and_push_target): New.
10853 (add_inferior_command, clone_inferior_command): Handle
10854 "-no-connection" parameter. Use
10855 switch_to_inferior_and_push_target.
10856 (_initialize_inferior): Mention "-no-connection" option in
10857 the help of "add-inferior" and "clone-inferior" commands.
10858 * inferior.h: Include "process-stratum-target.h".
10859 (interrupt_target_1): Use bool.
10860 (struct inferior) <push_target, unpush_target, target_is_pushed,
10861 find_target_beneath, top_target, process_target, target_at,
10862 m_stack>: New.
10863 (discard_all_inferiors): Delete.
10864 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10865 (all_inferiors, all_non_exited_inferiors): Add
10866 process_stratum_target parameter.
10867 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10868 (target_last_proc_target): New global.
10869 (follow_fork_inferior): Push target on new inferior. Pass target
10870 to add_thread_silent. Call exec_on_vfork. Handle target's
10871 reference count.
10872 (follow_fork): Adjust get_last_target_status call. Also consider
10873 target.
10874 (follow_exec): Push target on new inferior.
10875 (struct execution_control_state) <target>: New field.
10876 (user_visible_resume_target): New.
10877 (do_target_resume): Call target_async.
10878 (resume_1): Set target's threads_executing flag. Consider resume
10879 target.
10880 (commit_resume_all_targets): New.
10881 (proceed): Also consider resume target. Skip threads of inferiors
10882 with no execution. Commit resumtion in all targets.
10883 (start_remote): Pass current inferior to wait_for_inferior.
10884 (infrun_thread_stop_requested): Consider target as well. Pass
10885 thread_info pointer to clear_inline_frame_state instead of ptid.
10886 (infrun_thread_thread_exit): Consider target as well.
10887 (random_pending_event_thread): New inferior parameter. Use it.
10888 (do_target_wait): Rename to ...
10889 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10890 down.
10891 (threads_are_resumed_pending_p, do_target_wait): New.
10892 (prepare_for_detach): Adjust calls.
10893 (wait_for_inferior): New inferior parameter. Handle it. Use
10894 do_target_wait_1 instead of do_target_wait.
10895 (fetch_inferior_event): Adjust. Switch to representative
10896 inferior. Pass target down.
10897 (set_last_target_status): Add process_stratum_target parameter.
10898 Save target in global.
10899 (get_last_target_status): Add process_stratum_target parameter and
10900 handle it.
10901 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10902 (context_switch): Check inferior_ptid == null_ptid before calling
10903 inferior_thread().
10904 (get_inferior_stop_soon): Pass down target.
10905 (wait_one): Rename to ...
10906 (poll_one_curr_target): ... this.
10907 (struct wait_one_event): New.
10908 (wait_one): New.
10909 (stop_all_threads): Adjust.
10910 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10911 event's target.
10912 (switch_back_to_stepped_thread): Also consider target.
10913 (print_stop_event): Update.
10914 (normal_stop): Update. Also consider the resume target.
10915 * infrun.h (wait_for_inferior): Remove declaration.
10916 (user_visible_resume_target): New declaration.
10917 (get_last_target_status, set_last_target_status): New
10918 process_stratum_target parameter.
10919 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10920 process_stratum_target parameter, and use it.
10921 (clear_inline_frame_state (thread_info*)): New.
10922 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10923 process_stratum_target parameter.
10924 (clear_inline_frame_state (thread_info*)): Declare.
10925 * linux-fork.c (delete_checkpoint_command): Pass target down to
10926 find_thread_ptid.
10927 (checkpoint_command): Adjust.
10928 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10929 instead of just tweaking inferior_ptid.
10930 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10931 (exit_lwp): Pass target down to find_thread_ptid.
10932 (attach_proc_task_lwp_callback): Pass target down to
10933 add_thread/set_running/set_executing.
10934 (linux_nat_target::attach): Pass target down to
10935 thread_change_ptid.
10936 (get_detach_signal): Pass target down to find_thread_ptid.
10937 Consider last target status's target.
10938 (linux_resume_one_lwp_throw, resume_lwp)
10939 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10940 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10941 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10942 (linux_nat_target::async_wait_fd): New.
10943 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10944 target down.
10945 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10946 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10947 * linux-thread-db.c (struct thread_db_info::process_target): New
10948 field.
10949 (add_thread_db_info): Save target.
10950 (get_thread_db_info): New process_stratum_target parameter. Also
10951 match target.
10952 (delete_thread_db_info): New process_stratum_target parameter.
10953 Also match target.
10954 (thread_from_lwp): Adjust to pass down target.
10955 (thread_db_notice_clone): Pass down target.
10956 (check_thread_db_callback): Pass down target.
10957 (try_thread_db_load_1): Always push the thread_db target.
10958 (try_thread_db_load, record_thread): Pass target down.
10959 (thread_db_target::detach): Pass target down. Always unpush the
10960 thread_db target.
10961 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10962 target down. Always unpush the thread_db target.
10963 (find_new_threads_callback, thread_db_find_new_threads_2)
10964 (thread_db_target::update_thread_list): Pass target down.
10965 (thread_db_target::pid_to_str): Pass current inferior down.
10966 (thread_db_target::get_thread_local_address): Pass target down.
10967 (thread_db_target::resume, maintenance_check_libthread_db): Pass
10968 target down.
10969 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
10970 * procfs.c (procfs_target::procfs_init_inferior): Declare.
10971 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
10972 (procfs_init_inferior): Rename to ...
10973 (procfs_target::procfs_init_inferior): ... this and adjust.
10974 (procfs_target::create_inferior, procfs_notice_thread)
10975 (procfs_do_thread_registers): Adjust.
10976 * ppc-fbsd-tdep.c: Include "inferior.h".
10977 (ppcfbsd_get_thread_local_address): Pass down target.
10978 * proc-service.c (ps_xfer_memory): Switch current inferior and
10979 program space as well.
10980 (get_ps_regcache): Pass target down.
10981 * process-stratum-target.c
10982 (process_stratum_target::thread_address_space)
10983 (process_stratum_target::thread_architecture): Pass target down.
10984 * process-stratum-target.h
10985 (process_stratum_target::threads_executing): New field.
10986 (as_process_stratum_target): New.
10987 * ravenscar-thread.c
10988 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
10989 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
10990 down.
10991 * record-btrace.c (record_btrace_target::info_record): Adjust.
10992 (record_btrace_target::record_method)
10993 (record_btrace_target::record_is_replaying)
10994 (record_btrace_target::fetch_registers)
10995 (get_thread_current_frame_id, record_btrace_target::resume)
10996 (record_btrace_target::wait, record_btrace_target::stop): Pass
10997 target down.
10998 * record-full.c (record_full_wait_1): Switch to event thread.
10999 Pass target down.
11000 * regcache.c (regcache::regcache)
11001 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11002 process_stratum_target parameter and handle it.
11003 (current_thread_target): New global.
11004 (get_thread_regcache): Add process_stratum_target parameter and
11005 handle it. Switch inferior before calling target method.
11006 (get_thread_regcache): Pass target down.
11007 (get_thread_regcache_for_ptid): Pass target down.
11008 (registers_changed_ptid): Add process_stratum_target parameter and
11009 handle it.
11010 (registers_changed_thread, registers_changed): Pass target down.
11011 (test_get_thread_arch_aspace_regcache): New.
11012 (current_regcache_test): Define a couple local test_target_ops
11013 instances and use them for testing.
11014 (readwrite_regcache): Pass process_stratum_target parameter.
11015 (cooked_read_test, cooked_write_test): Pass mock_target down.
11016 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11017 (get_thread_arch_aspace_regcache): Add process_stratum_target
11018 parameter.
11019 (regcache::target): New method.
11020 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11021 (regcache::registers_changed_ptid): Add process_stratum_target
11022 parameter.
11023 (regcache::m_target): New field.
11024 (registers_changed_ptid): Add process_stratum_target parameter.
11025 * remote.c (remote_state::supports_vCont_probed): New field.
11026 (remote_target::async_wait_fd): New method.
11027 (remote_unpush_and_throw): Add remote_target parameter.
11028 (get_current_remote_target): Adjust.
11029 (remote_target::remote_add_inferior): Push target.
11030 (remote_target::remote_add_thread)
11031 (remote_target::remote_notice_new_inferior)
11032 (get_remote_thread_info): Pass target down.
11033 (remote_target::update_thread_list): Skip threads of inferiors
11034 bound to other targets. (remote_target::close): Don't discard
11035 inferiors. (remote_target::add_current_inferior_and_thread)
11036 (remote_target::process_initial_stop_replies)
11037 (remote_target::start_remote)
11038 (remote_target::remote_serial_quit_handler): Pass down target.
11039 (remote_target::remote_unpush_target): New remote_target
11040 parameter. Unpush the target from all inferiors.
11041 (remote_target::remote_unpush_and_throw): New remote_target
11042 parameter. Pass it down.
11043 (remote_target::open_1): Check whether the current inferior has
11044 execution instead of checking whether any inferior is live. Pass
11045 target down.
11046 (remote_target::remote_detach_1): Pass down target. Use
11047 remote_unpush_target.
11048 (extended_remote_target::attach): Pass down target.
11049 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11050 (remote_target::append_resumption): Pass down target.
11051 (remote_target::append_pending_thread_resumptions)
11052 (remote_target::remote_resume_with_hc, remote_target::resume)
11053 (remote_target::commit_resume): Pass down target.
11054 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11055 (remote_target::interrupt_query)
11056 (remote_target::remove_new_fork_children)
11057 (remote_target::check_pending_events_prevent_wildcard_vcont)
11058 (remote_target::remote_parse_stop_reply)
11059 (remote_target::process_stop_reply): Pass down target.
11060 (first_remote_resumed_thread): New remote_target parameter. Pass
11061 it down.
11062 (remote_target::wait_as): Pass down target.
11063 (unpush_and_perror): New remote_target parameter. Pass it down.
11064 (remote_target::readchar, remote_target::remote_serial_write)
11065 (remote_target::getpkt_or_notif_sane_1)
11066 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11067 down target.
11068 (remote_target::mourn_inferior): Pass down target. Use
11069 remote_unpush_target.
11070 (remote_target::core_of_thread)
11071 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11072 (remote_target::pid_to_exec_file)
11073 (remote_target::thread_handle_to_thread_info): Pass down target.
11074 (remote_target::async_wait_fd): New.
11075 * riscv-fbsd-tdep.c: Include "inferior.h".
11076 (riscv_fbsd_get_thread_local_address): Pass down target.
11077 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11078 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11079 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11080 Adjust.
11081 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11082 * solib-svr4.c (enable_break): Pass down target.
11083 * spu-multiarch.c (parse_spufs_run): Pass down target.
11084 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11085 * target-delegates.c: Regenerate.
11086 * target.c (g_target_stack): Delete.
11087 (current_top_target): Return the current inferior's top target.
11088 (target_has_execution_1): Refer to the passed-in inferior's top
11089 target.
11090 (target_supports_terminal_ours): Check whether the initial
11091 inferior was already created.
11092 (decref_target): New.
11093 (target_stack::push): Incref/decref the target.
11094 (push_target, push_target, unpush_target): Adjust.
11095 (target_stack::unpush): Defref target.
11096 (target_is_pushed): Return bool. Adjust to refer to the current
11097 inferior's target stack.
11098 (dispose_inferior): Delete, and inline parts ...
11099 (target_preopen): ... here. Only dispose of the current inferior.
11100 (target_detach): Hold strong target reference while detaching.
11101 Pass target down.
11102 (target_thread_name): Add assertion.
11103 (target_resume): Pass down target.
11104 (target_ops::beneath, find_target_at): Adjust to refer to the
11105 current inferior's target stack.
11106 (get_dummy_target): New.
11107 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11108 has a thread running.
11109 (initialize_targets): Rename to ...
11110 (_initialize_target): ... this.
11111 * target.h: Include "gdbsupport/refcounted-object.h".
11112 (struct target_ops): Inherit refcounted_object.
11113 (target_ops::shortname, target_ops::longname): Make const.
11114 (target_ops::async_wait_fd): New method.
11115 (decref_target): Declare.
11116 (struct target_ops_ref_policy): New.
11117 (target_ops_ref): New typedef.
11118 (get_dummy_target): Declare function.
11119 (target_is_pushed): Return bool.
11120 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11121 (all_matching_threads_iterator::all_matching_threads_iterator):
11122 Handle filter target.
11123 * thread-iter.h (struct all_matching_threads_iterator, struct
11124 all_matching_threads_range, class all_non_exited_threads_range):
11125 Filter by target too. Remove explicit.
11126 * thread.c (threads_executing): Delete.
11127 (inferior_thread): Pass down current inferior.
11128 (clear_thread_inferior_resources): Pass down thread pointer
11129 instead of ptid_t.
11130 (add_thread_silent, add_thread_with_info, add_thread): Add
11131 process_stratum_target parameter. Use it for thread and inferior
11132 searches.
11133 (is_current_thread): New.
11134 (thread_info::deletable): Use it.
11135 (find_thread_ptid, thread_count, in_thread_list)
11136 (thread_change_ptid, set_resumed, set_running): New
11137 process_stratum_target parameter. Pass it down.
11138 (set_executing): New process_stratum_target parameter. Pass it
11139 down. Adjust reference to 'threads_executing'.
11140 (threads_are_executing): New process_stratum_target parameter.
11141 Adjust reference to 'threads_executing'.
11142 (set_stop_requested, finish_thread_state): New
11143 process_stratum_target parameter. Pass it down.
11144 (switch_to_thread): Also match inferior.
11145 (switch_to_thread): New process_stratum_target parameter. Pass it
11146 down.
11147 (update_threads_executing): Reimplement.
11148 * top.c (quit_force): Pop targets from all inferior.
11149 (gdb_init): Don't call initialize_targets.
11150 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11151 Declare.
11152 (windows_add_thread, windows_delete_thread): Adjust.
11153 (get_windows_debug_event): Rename to ...
11154 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11155 * tracefile-tfile.c (tfile_target_open): Pass down target.
11156 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11157 Forward declare.
11158 (switch_to_thread): Add process_stratum_target parameter.
11159 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11160 parameter. Use it.
11161 (mi_on_resume): Pass target down.
11162 * nat/fork-inferior.c (startup_inferior): Add
11163 process_stratum_target parameter. Pass it down.
11164 * nat/fork-inferior.h (startup_inferior): Add
11165 process_stratum_target parameter.
11166 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11167
11168 2020-01-10 Pedro Alves <palves@redhat.com>
11169
11170 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11171 directly. Instead find the first thread in the thread list and
11172 use switch_to_thread.
11173
11174 2020-01-10 Pedro Alves <palves@redhat.com>
11175
11176 * remote.c (remote_target::remote_add_inferior): Don't bind a
11177 process to the current inferior if the current inferior is already
11178 bound to a process.
11179
11180 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11181 Pedro Alves <palves@redhat.com>
11182
11183 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11184 If no process is specified, return null_ptid instead of
11185 inferior_ptid.
11186 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11187 TARGET_WAITKIND_SIGNALLED with no pid.
11188
11189 2020-01-10 Pedro Alves <palves@redhat.com>
11190
11191 * remote.c (first_remote_resumed_thread): New.
11192 (remote_target::wait_as): Use it as default event_ptid instead of
11193 inferior_ptid.
11194
11195 2020-01-10 Pedro Alves <palves@redhat.com>
11196
11197 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11198
11199 2020-01-10 Pedro Alves <palves@redhat.com>
11200
11201 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11202 not -1.
11203
11204 2020-01-10 Pedro Alves <palves@redhat.com>
11205
11206 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11207 ptid to get_last_target_status.
11208 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11209 ptid to get_last_target_status.
11210 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11211 get_last_target_status.
11212 (info_program_command): Don't pass a target_waitstatus to
11213 get_last_target_status.
11214 * infrun.c (init_wait_for_inferior): Use
11215 nullify_last_target_wait_ptid.
11216 (get_last_target_status): Handle nullptr arguments.
11217 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11218 (print_stop_event): Don't pass a ptid to get_last_target_status.
11219 (normal_stop): Don't pass a ptid to get_last_target_status.
11220 * infrun.h (get_last_target_status, set_last_target_status): Move
11221 comments here and update.
11222 (nullify_last_target_wait_ptid): Declare.
11223 * linux-fork.c (fork_load_infrun_state): Remove local extern
11224 declaration of nullify_last_target_wait_ptid.
11225 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11226 to get_last_target_status.
11227
11228 2020-01-10 Pedro Alves <palves@redhat.com>
11229
11230 * gdbthread.h (scoped_restore_current_thread)
11231 <dont_restore, restore, m_dont_restore>: Declare.
11232 * thread.c (thread_alive): Add assertion. Return bool.
11233 (switch_to_thread_if_alive): New.
11234 (prune_threads): Switch inferior/thread.
11235 (print_thread_info_1): Switch thread before calling target methods.
11236 (scoped_restore_current_thread::restore): New, factored out from
11237 ...
11238 (scoped_restore_current_thread::~scoped_restore_current_thread):
11239 ... this.
11240 (scoped_restore_current_thread::scoped_restore_current_thread):
11241 Add assertion.
11242 (thread_apply_all_command, thread_select): Use
11243 switch_to_thread_if_alive.
11244 * infrun.c (proceed, restart_threads, handle_signal_stop)
11245 (switch_back_to_stepped_thread): Switch current thread before
11246 calling target methods.
11247
11248 2020-01-10 Pedro Alves <palves@redhat.com>
11249
11250 * inferior.c (switch_to_inferior_no_thread): New function,
11251 factored out from ...
11252 (inferior_command): ... here.
11253 * inferior.h (switch_to_inferior_no_thread): Declare.
11254 * mi/mi-main.c (run_one_inferior): Use
11255 switch_to_inferior_no_thread.
11256
11257 2020-01-10 Pedro Alves <palves@redhat.com>
11258
11259 * infcmd.c (kill_command): Remove dead code.
11260
11261 2020-01-10 Pedro Alves <palves@redhat.com>
11262
11263 * remote.c (remote_target::mourn_inferior): No longer check
11264 whether the target is running.
11265
11266 2020-01-10 Pedro Alves <palves@redhat.com>
11267
11268 * corelow.c (core_target::has_execution): Change parameter type to
11269 inferior pointer.
11270 * inferior.c (number_of_live_inferiors): Use
11271 inferior::has_execution instead of target_has_execution_1.
11272 * inferior.h (inferior::has_execution): New.
11273 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11274 inferior::has_execution instead of target_has_execution_1.
11275 * process-stratum-target.c
11276 (process_stratum_target::has_execution): Change parameter type to
11277 inferior pointer. Check the inferior's PID instead of
11278 inferior_ptid.
11279 * process-stratum-target.h
11280 (process_stratum_target::has_execution): Change parameter type to
11281 inferior pointer.
11282 * record-full.c (record_full_core_target::has_execution): Change
11283 parameter type to inferior pointer.
11284 * target.c (target_has_execution_1): Change parameter type to
11285 inferior pointer.
11286 (target_has_execution_current): Adjust.
11287 * target.h (target_ops::has_execution): Change parameter type to
11288 inferior pointer.
11289 (target_has_execution_1): Change parameter type to inferior
11290 pointer. Change return type to bool.
11291 * tracefile.h (tracefile_target::has_execution): Change parameter
11292 type to inferior pointer.
11293
11294 2020-01-10 Pedro Alves <palves@redhat.com>
11295
11296 * exceptions.c (print_flush): Remove current_top_target() check.
11297
11298 2020-01-10 Pedro Alves <palves@redhat.com>
11299
11300 * remote.c (show_remote_exec_file): Show the current inferior's
11301 exec-file instead of the command variable's value.
11302
11303 2020-01-10 Pedro Alves <palves@redhat.com>
11304
11305 * record-full.c (record_full_resume_ptid): New global.
11306 (record_full_target::resume): Set it.
11307 (record_full_wait_1): Use record_full_resume_ptid instead of
11308 inferior_ptid.
11309
11310 2020-01-10 Pedro Alves <palves@redhat.com>
11311
11312 * gdbthread.h (scoped_restore_current_thread)
11313 <dont_restore, restore, m_dont_restore>: Declare.
11314 * thread.c (thread_alive): Add assertion. Return bool.
11315 (switch_to_thread_if_alive): New.
11316 (prune_threads): Switch inferior/thread.
11317 (print_thread_info_1): Switch thread before calling target methods.
11318 (scoped_restore_current_thread::restore): New, factored out from
11319 ...
11320 (scoped_restore_current_thread::~scoped_restore_current_thread):
11321 ... this.
11322 (scoped_restore_current_thread::scoped_restore_current_thread):
11323 Add assertion.
11324 (thread_apply_all_command, thread_select): Use
11325 switch_to_thread_if_alive.
11326
11327 2020-01-10 George Barrett <bob@bob131.so>
11328
11329 * stap-probe.c (stap_modify_semaphore): Don't check for null
11330 semaphores.
11331 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11332 for null semaphores.
11333
11334 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11335
11336 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11337 all source windows, and maintain horizontal scroll status while
11338 doing so.
11339
11340 2020-01-09 Tom Tromey <tom@tromey.com>
11341
11342 PR tui/18932:
11343 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11344 update_source_window, not print_source_lines.
11345
11346 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11347
11348 * tui/tui.c (tui_enable): Register tui hooks after calling
11349 tui_display_main.
11350
11351 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11352
11353 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11354
11355 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11356
11357 * thread.c (print_thread_info_1): Fix indentation.
11358
11359 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11360
11361 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11362 unique_xmalloc_ptr outside the if to always free the demangled name.
11363
11364 2020-01-08 Tom Tromey <tromey@adacore.com>
11365
11366 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11367 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11368 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11369 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11370 Remove.
11371 (section_offsets): New typedef.
11372 * symtab.c (fixup_section, get_msymbol_address): Update.
11373 * symmisc.c (dump_msymbols): Update.
11374 * symfile.h (relative_addr_info_to_section_offsets)
11375 (symfile_map_offsets_to_segments): Update.
11376 * symfile.c (build_section_addr_info_from_objfile)
11377 (init_objfile_sect_indices): Update.
11378 (struct place_section_arg): Change type of "offsets".
11379 (place_section): Update.
11380 (relative_addr_info_to_section_offsets): Change type of
11381 "section_offsets". Remove "num_sections" parameter.
11382 (default_symfile_offsets, syms_from_objfile_1)
11383 (set_objfile_default_section_offset): Update.
11384 (reread_symbols): No need to preserve section offsets by hand.
11385 (symfile_map_offsets_to_segments): Change type of "offsets".
11386 * stap-probe.c (relocate_address): Update.
11387 * stabsread.h (process_one_symbol): Update.
11388 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11389 (solib_target_relocate_section_addresses): Update.
11390 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11391 Update.
11392 * solib-frv.c (frv_relocate_main_executable): Update.
11393 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11394 * solib-aix.c (solib_aix_get_section_offsets): Change return
11395 type.
11396 (solib_aix_solib_create_inferior_hook): Update.
11397 * remote.c (remote_target::get_offsets): Update.
11398 * psymtab.c (find_pc_sect_psymtab): Update.
11399 * psympriv.h (struct partial_symbol) <address, text_low,
11400 text_high>: Update.
11401 * objfiles.h (obj_section_offset): Update.
11402 (struct objfile) <section_offsets>: Change type.
11403 <num_sections>: Remove.
11404 (objfile_relocate): Update.
11405 * objfiles.c (entry_point_address_query): Update
11406 (relocate_one_symbol): Change type of "section_offsets".
11407 (objfile_relocate1, objfile_relocate1): Change type of
11408 "new_offsets".
11409 (objfile_rebase1): Update.
11410 * mipsread.c (mipscoff_symfile_read): Update.
11411 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11412 parameter.
11413 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11414 (parse_external, psymtab_to_symtab_1): Update.
11415 * machoread.c (macho_symfile_offsets): Update.
11416 * ia64-tdep.c (ia64_find_unwind_table): Update.
11417 * hppa-tdep.c (read_unwind_info): Update.
11418 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11419 * dwarf2read.c (create_addrmap_from_index)
11420 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11421 (process_psymtab_comp_unit_reader, add_partial_symbol)
11422 (add_partial_subprogram, process_full_comp_unit)
11423 (read_file_scope, read_func_scope, read_lexical_block_scope)
11424 (read_call_site_scope, dwarf2_rnglists_process)
11425 (dwarf2_ranges_process, dwarf2_ranges_read)
11426 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11427 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11428 Update.
11429 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11430 Update.
11431 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11432 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11433 (process_one_symbol): Change type of "section_offsets".
11434 * ctfread.c (get_objfile_text_range): Update.
11435 * coffread.c (coff_symtab_read, enter_linenos)
11436 (process_coff_symbol): Update.
11437 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11438 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11439
11440 2020-01-08 Tom Tromey <tromey@adacore.com>
11441
11442 * dwarf2read.c (parse_macro_definition): Use std::string.
11443 (parse_macro_definition): Likewise.
11444
11445 2020-01-08 Tom Tromey <tromey@adacore.com>
11446
11447 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11448 (ATTR_ALLOC_CHUNK): Remove.
11449
11450 2020-01-08 Tom Tromey <tromey@adacore.com>
11451
11452 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11453
11454 2020-01-08 Tom Tromey <tromey@adacore.com>
11455
11456 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11457 (dwarf2_compute_name, open_dwo_file): Likewise.
11458 (process_enumeration_scope): Use std::vector.
11459 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11460 (partial_die_info::fixup, dwarf2_start_subfile)
11461 (guess_full_die_structure_name, dwarf2_name): Likewise.
11462 (determine_prefix): Update.
11463 (guess_full_die_structure_name): Make return type const.
11464 (partial_die_full_name): Return unique_xmalloc_ptr.
11465 (DW_FIELD_ALLOC_CHUNK): Remove.
11466
11467 2020-01-07 Tom Tromey <tromey@adacore.com>
11468
11469 PR build/24937:
11470 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11471
11472 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11473
11474 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11475
11476 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11477
11478 * stack.c (print_frame_info): Move disassemble_next_line code
11479 inside source_print block.
11480
11481 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11482
11483 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11484 gdb/signals.h, as we are now using native signal symbols.
11485
11486 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11487
11488 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11489 overflow by an early check of content vs threshold.
11490 * tui/tui-source.c (tui_source_window::line_is_displayed):
11491 Likewise.
11492
11493 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11494
11495 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11496
11497 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11498
11499 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11500 export table if no section contains it's RVA.
11501
11502 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11503
11504 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11505
11506 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11507
11508 * source.c (print_source_lines_base): Set last_line_listed.
11509
11510 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11511
11512 * tui/tui-disasm.c: Remove trailing spaces.
11513
11514 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11515 Pedro Alves <palves@redhat.com>
11516
11517 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11518 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11519 (windows_gdb_signal_to_target): New function, uses the above
11520 enumeration to convert GDB internal signal codes to equivalent
11521 Windows codes.
11522 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11523 * windows-nat.c: Include "gdb_wait.h".
11524 (get_windows_debug_event): Extract the fatal exception from the
11525 exit status and convert to the equivalent Posix signal number.
11526 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11527 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11528 * gdbsupport/gdb_wait.c: New file, implements
11529 windows_status_to_termsig.
11530 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11531 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11532
11533 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11534
11535 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11536 show_layout.
11537
11538 2020-01-05 Luis Machado <luis.machado@linaro.org>
11539
11540 * aarch64-linux-nat.c
11541 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11542 and bfd_mach_aarch64.
11543
11544 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11545
11546 * ui-file.c (stdio_file::can_emit_style_escape)
11547 (tee_file::can_emit_style_escape): Ensure style is used also on
11548 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11549 to gdb_stdout.
11550 * main.c (set_gdb_data_directory): Use file style to output the
11551 warning that the given pathname is not a directory.
11552 * top.c (show_history_filename, gdb_safe_append_history)
11553 (show_gdb_datadir): Use file style.
11554
11555 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11556
11557 * solib-target.c (struct lm_info_target):
11558 Change offsets to be a unique_xmalloc_ptr.
11559 (solib_target_relocate_section_addresses): Update.
11560
11561 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11562
11563 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11564
11565 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11566
11567 * MAINTAINERS (Write After Approval): Add myself.
11568
11569 2020-01-02 Luis Machado <luis.machado@linaro.org>
11570
11571 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11572 Cell BE architecture.
11573 * target.h (struct target_ops) <thread_architecture>: Likewise.
11574
11575 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11576
11577 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11578
11579 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11580
11581 * MAINTAINERS (Write After Approval): Add myself.
11582
11583 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11584
11585 * gdbarch.sh: Update copyright year range of generated files.
11586
11587 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11588
11589 Update copyright year range in all GDB files.
11590
11591 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11592
11593 * copyright.py: Convert to Python 3.
11594
11595 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11596
11597 * copyright.py: Adapt after move of gnulib directory from gdb
11598 directory to toplevel directory.
11599
11600 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11601
11602 * copyright.py (main): Exit if run from the wrong directory.
11603
11604 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11605
11606 * top.c (print_gdb_version): Change copyright year to 2020.
11607
11608 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11609
11610 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11611
11612 For older changes see ChangeLog-2019.
11613 \f
11614 Local Variables:
11615 mode: change-log
11616 left-margin: 8
11617 fill-column: 74
11618 version-control: never
11619 coding: utf-8
11620 End:
This page took 0.331957 seconds and 4 git commands to generate.