Update "disassemble" help
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-28 Tom Tromey <tromey@adacore.com>
2
3 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
4 help. Add usage.
5
6 2020-07-28 Tom Tromey <tromey@adacore.com>
7
8 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
9 <DW_OP_GNU_variable_value>: Cast to address type.
10
11 2020-07-28 Kamil Rytarowski <n54@gmx.com>
12
13 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
14 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
15 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
16 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
17 (nbsd_get_siginfo_type): New.
18 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
19 (_initialize_nbsd_tdep): New.
20
21 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
22
23 PR binutils/26301
24 * configure: Regenerated.
25
26 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
27
28 PR binutils/26301
29 * configure: Regenerated.
30
31 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
32
33 * python/py-frame.c: Remove 'user-regs.h' include.
34 (frapy_read_register): Rewrite to make use of
35 gdbpy_parse_register_id.
36 * python/py-registers.c (gdbpy_parse_register_id): New function,
37 moved here from python/py-unwind.c. Updated the return type, and
38 also accepts register descriptor objects.
39 * python/py-unwind.c: Remove 'user-regs.h' include.
40 (pyuw_parse_register_id): Moved to python/py-registers.c.
41 (unwind_infopy_add_saved_register): Update to use
42 gdbpy_parse_register_id.
43 (pending_framepy_read_register): Likewise.
44 * python/python-internal.h (gdbpy_parse_register_id): Declare.
45
46 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
47
48 * python/py-registers.c: Add 'user-regs.h' include.
49 (register_descriptor_iter_find): New function.
50 (register_descriptor_iterator_object_methods): New static global
51 methods array.
52 (register_descriptor_iterator_object_type): Add pointer to methods
53 array.
54
55 2020-07-27 John Baldwin <jhb@FreeBSD.org>
56
57 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
58 for all architectures on FreeBSD 11.3 and later.
59
60 2020-07-27 Tom Tromey <tromey@adacore.com>
61
62 * gcore.h (load_corefile): Don't declare.
63
64 2020-07-27 Tom de Vries <tdevries@suse.de>
65
66 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
67 * config.in: Regenerate.
68 * configure: Regenerate.
69
70 2020-07-26 Eli Zaretskii <eliz@gnu.org>
71
72 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
73 ws2tcpip.h. When checking whether socklen_t type is defined, use
74 ws2tcpip.h if it is available and sys/socket.h isn't.
75 * configure: Regenerate.
76 * config.in: Regenerate.
77
78 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
79
80 PR fortran/23051
81 PR fortran/26139
82 * valops.c (value_ind): Pass address to
83 readjust_indirect_value_type.
84 * value.c (readjust_indirect_value_type): Make parameter
85 non-const, and add extra address parameter. Resolve original type
86 before using it.
87 * value.h (readjust_indirect_value_type): Update function
88 signature and comment.
89
90 2020-07-25 Tom de Vries <tdevries@suse.de>
91
92 PR symtab/26243
93 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
94 entries.
95
96 2020-07-24 Aaron Merey <amerey@redhat.com>
97
98 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
99 * configure: Rebuild.
100
101 2020-07-23 Kevin Buettner <kevinb@redhat.com>
102
103 PR corefiles/26294
104 * corelow.c (_initialize_corelow): Add period to help text
105 for "maintenance print core-file-backed-mappings".
106
107 2020-07-23 Pedro Alves <pedro@palves.net>
108
109 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
110 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
111 meanwhile.
112 * frame.c (frame_cache_generation, get_frame_cache_generation):
113 New.
114 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
115 (get_prev_frame_if_no_cycle): On exception, don't touch
116 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
117 * frame.h (get_frame_cache_generation): Declare.
118
119 2020-07-23 Tom de Vries <tdevries@suse.de>
120
121 PR tui/26282
122 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
123 New default constructor.
124
125 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
126
127 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
128 exclude non-statement entries.
129
130 2020-07-22 Kevin Buettner <kevinb@redhat.com>
131
132 * NEWS (New commands): Mention new command
133 "maintenance print core-file-backed-mappings".
134
135 2020-07-22 Kevin Buettner <kevinb@redhat.com>
136
137 * corelow.c (gdbcmd.h): Include.
138 (core_target::info_proc_mappings): New method.
139 (get_current_core_target): New function.
140 (maintenance_print_core_file_backed_mappings): New function.
141 (_initialize_corelow): Add core-file-backed-mappings to
142 "maint print" commands.
143
144 2020-07-22 Kevin Buettner <kevinb@redhat.com>
145
146 * linux-tdep.c (dump_note_entry_p): New function.
147 (linux_dump_mapping_p_ftype): New typedef.
148 (linux_find_memory_regions_full): Add new parameter,
149 should_dump_mapping_p.
150 (linux_find_memory_regions): Adjust call to
151 linux_find_memory_regions_full.
152 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
153 call to linux_find_memory_regions_full.
154
155 2020-07-22 Kevin Buettner <kevinb@redhat.com>
156
157 * corelow.c (solist.h, unordered_map): Include.
158 (class core_target): Add field m_core_file_mappings and
159 method build_file_mappings.
160 (core_target::core_target): Call build_file_mappings.
161 (core_target::~core_target): Free memory associated with
162 m_core_file_mappings.
163 (core_target::build_file_mappings): New method.
164 (core_target::xfer_partial): Use m_core_file_mappings
165 for memory transfers.
166 * linux-tdep.c (linux_read_core_file_mappings): New
167 function.
168 (linux_core_info_proc_mappings): Rewrite to use
169 linux_read_core_file_mappings.
170 (linux_init_abi): Register linux_read_core_file_mappings.
171
172 2020-07-22 Kevin Buettner <kevinb@redhat.com>
173
174 * arch-utils.c (default_read_core_file_mappings): New function.
175 * arch-utils.c (default_read_core_file_mappings): Declare.
176 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
177 * gdbarch.h, gdbarch.c: Regenerate.
178
179 2020-07-22 Kevin Buettner <kevinb@redhat.com>
180
181 PR corefiles/25631
182 * corelow.c (core_target:xfer_partial): Revise
183 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
184 case after first checking the stratum beneath the core
185 target.
186 (has_all_memory): Return true.
187 * target.c (raw_memory_xfer_partial): Revise comment
188 regarding use of has_all_memory.
189
190 2020-07-22 Kevin Buettner <kevinb@redhat.com>
191
192 * exec.h (section_table_xfer_memory): Revise declaration,
193 replacing section name parameter with an optional callback
194 predicate.
195 * exec.c (section_table_xfer_memory): Likewise.
196 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
197 of section_table_xfer_memory.
198
199 2020-07-22 Tom Tromey <tromey@adacore.com>
200
201 * mi/mi-cmd-stack.c (list_args_or_locals): Use
202 lookup_symbol_search_name.
203
204 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
205
206 * python/py-registers.c (gdbpy_register_object_data_init): Remove
207 redundant local variable.
208 (gdbpy_get_register_descriptor): Extract descriptor vector as a
209 reference, not pointer, update code accordingly.
210
211 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
212 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
213
214 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
215 * jit.c (jit_breakpoint_re_set_internal): Use the
216 `skip_jit_symbol_lookup` field.
217
218 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
219 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
220
221 * jit.c (jit_read_descriptor): Define the descriptor address once,
222 use twice.
223 (jit_breakpoint_deleted): Move the declaration of the loop variable
224 `iter` into the loop header.
225 (jit_breakpoint_re_set_internal): Move the declaration of the local
226 variable `objf_data` to the first point of definition.
227 (jit_event_handler): Move the declaration of local variables
228 `code_entry`, `entry_addr`, and `objf` to their first point of use.
229 Rename `objf` to `jited`.
230
231 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
232
233 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
234 Remove.
235 * jit.c (get_jiter_objfile_data): Update.
236
237 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
238 Simon Marchi <simon.marchi@polymtl.ca>
239
240 * jit.c (struct jit_program_space_data): Remove.
241 (jit_program_space_key): Remove.
242 (jiter_objfile_data::~jiter_objfile_data): Remove program space
243 stuff.
244 (get_jit_program_space_data): Remove.
245 (jit_breakpoint_deleted): Iterate on all of the program space's
246 objfiles.
247 (jit_inferior_init): Likewise.
248 (jit_breakpoint_re_set_internal): Likewise. Also change return
249 type to void.
250 (jit_breakpoint_re_set): Pass current_program_space to
251 jit_breakpoint_re_set_internal.
252
253 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
254
255 * jit.h (struct jiter_objfile_data) <cached_code_address,
256 jit_breakpoint>: Move to here from ...
257 * jit.c (jit_program_space_data): ... here.
258 (jiter_objfile_data::~jiter_objfile_data): Update.
259 (jit_breakpoint_deleted): Update.
260 (jit_breakpoint_re_set_internal): Update.
261
262 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
263
264 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
265 checks.
266 (jit_read_descriptor): Remove NULL check.
267 (jit_event_handler): Add an assertion.
268
269 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
270
271 * jit.h (struct jit_objfile_data): Split into...
272 (struct jiter_objfile_data): ... this ...
273 (struct jited_objfile_data): ... and this.
274 * objfiles.h (struct objfile) <jit_data>: Remove.
275 <jiter_data, jited_data>: New fields.
276 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
277 (jiter_objfile_data::~jiter_objfile_data): ... this.
278 (get_jit_objfile_data): Rename to ...
279 (get_jiter_objfile_data): ... this.
280 (add_objfile_entry): Update.
281 (jit_read_descriptor): Use get_jiter_objfile_data.
282 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
283 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
284 (jit_inferior_exit_hook): Use objfile's jited_data field.
285
286 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
287
288 * jit.h: Forward-declare `struct minimal_symbol`.
289 (struct jit_objfile_data): Migrate to here from jit.c; also add a
290 constructor, destructor, and an objfile* field.
291 * jit.c (jit_objfile_data): Remove.
292 (struct jit_objfile_data): Migrate from here to jit.h.
293 (jit_objfile_data::~jit_objfile_data): New destructor
294 implementation with code moved from free_objfile_data.
295 (free_objfile_data): Delete.
296 (get_jit_objfile_data): Update to use the jit_data field of objfile.
297 (jit_find_objf_with_entry_addr): Ditto.
298 (jit_inferior_exit_hook): Ditto.
299 (_initialize_jit): Remove the call to
300 register_objfile_data_with_cleanup.
301 * objfiles.h (struct objfile) <jit_data>: New field.
302
303 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
304
305 * jit.h: Forward-declare `struct objfile`.
306 (jit_event_handler): Add a second parameter, the JITer objfile.
307 * jit.c (jit_read_descriptor): Change the signature to take the
308 JITer objfile as an argument instead of the jit_program_space_data.
309 (jit_inferior_init): Update the call to jit_read_descriptor.
310 (jit_event_handler): Use the new JITer objfile argument when calling
311 jit_read_descriptor.
312 * breakpoint.c (handle_jit_event): Update the call to
313 jit_event_handler to pass the JITer objfile.
314
315 2020-07-21 John Baldwin <jhb@FreeBSD.org>
316
317 * gdbarch.c: Regenerate.
318 * gdbarch.h: Regenerate.
319 * gdbarch.sh (handle_segmentation_fault): Remove method.
320 * infrun.c (handle_segmentation_fault): Remove.
321 (print_signal_received_reason): Remove call to
322 handle_segmentation_fault.
323
324 2020-07-21 John Baldwin <jhb@FreeBSD.org>
325
326 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
327 Rename to sparc64_linux_report_signal_info and add siggnal
328 argument.
329 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
330 instead of sparc64_linux_handle_segmentation_fault.
331
332 2020-07-21 John Baldwin <jhb@FreeBSD.org>
333
334 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
335 i386_linux_report_signal_info instead of
336 i386_linux_handle_segmentation_fault.
337 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
338 to i386_linux_report_signal_info and add siggnal argument.
339 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
340 of i386_linux_handle_segmentation_fault.
341 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
342 to i386_linux_report_signal_info and add siggnal argument.
343
344 2020-07-21 John Baldwin <jhb@FreeBSD.org>
345
346 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
347 hook if present.
348
349 2020-07-21 John Baldwin <jhb@FreeBSD.org>
350
351 * gdbarch.c: Regenerate.
352 * gdbarch.h: Regenerate.
353 * gdbarch.sh (report_signal_info): New method.
354 * infrun.c (print_signal_received_reason): Invoke gdbarch
355 report_signal_info hook if present.
356
357 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
358
359 * python/py-registers.c : Add 'unordered_map' include.
360 (gdbpy_new_reggroup): Renamed to...
361 (gdbpy_get_reggroup): ...this. Update to only create register
362 group descriptors when needed.
363 (gdbpy_reggroup_iter_next): Update.
364
365 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
366
367 * python/py-registers.c (gdbpy_register_object_data): New static
368 global.
369 (gdbpy_register_object_data_init): New function.
370 (gdbpy_new_register_descriptor): Renamed to...
371 (gdbpy_get_register_descriptor): ...this, and update to reuse
372 existing register descriptors where possible.
373 (gdbpy_register_descriptor_iter_next): Update.
374 (gdbpy_initialize_registers): Register new gdbarch data.
375
376 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
377
378 * linux-nat.c (stopped_pids): Make static.
379
380 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
381
382 PR ada/26235
383 * gdbtypes.c (ada_discrete_type_low_bound,
384 ada_discrete_type_high_bound): Handle undefined bounds.
385
386 2020-07-21 Kamil Rytarowski <n54@gmx.com>
387
388 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
389 declaration.
390 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
391 function.
392
393 2020-07-20 John Baldwin <jhb@FreeBSD.org>
394
395 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
396 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
397 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
398 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
399 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
400 method.
401
402 2020-07-20 Ludovic Courtès <ludo@gnu.org>
403
404 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
405 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
406 which are deprecated in Guile 3.0.
407 * configure.ac (try_guile_versions): Add "guile-3.0".
408 * configure (try_guile_versions): Regenerate.
409 * NEWS: Update entry.
410
411 2020-07-20 Ludovic Courtès <ludo@gnu.org>
412 Doug Evans <dje@google.com>
413
414 PR gdb/21104
415 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
416 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
417 USING_GUILE_BEFORE_2_2.
418 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
419 Change type to 'scm_t_port_type *'.
420 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
421 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
422 parameter and honor it. Update callers.
423 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
424 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
425 functions.
426 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
427 USING_GUILE_BEFORE_2_2.
428 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
429 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
430 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
431 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
432 and 'SCM_PORT_TYPE'.
433 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
434 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
435 (gdbscm_memory_port_read, gdbscm_memory_port_write)
436 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
437 [!USING_GUILE_BEFORE_2_2]: New functions.
438 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
439 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
440 'gdbscm_memory_port_read'.
441 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
442 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
443 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
444 function.
445 (ioscm_init_memory_port): Remove.
446 (ioscm_init_memory_port_stream): New function
447 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
448 function.
449 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
450 Return scm_from_uint (0).
451 (gdbscm_set_memory_port_read_buffer_size_x)
452 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
453 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
454 Return scm_from_uint (0).
455 (gdbscm_set_memory_port_write_buffer_size_x)
456 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
457 * configure.ac (try_guile_versions): Add "guile-2.2".
458 * configure: Regenerate.
459 * NEWS: Add entry.
460
461 2020-07-18 Tom Tromey <tom@tromey.com>
462
463 * linux-nat.c (linux_multi_process): Remove.
464 (linux_nat_target::supports_multi_process): Return true.
465
466 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * arch/riscv.c (riscv_tdesc_cache): Change map type.
469 (riscv_lookup_target_description): Return pointer out of
470 unique_ptr.
471 * target-descriptions.c (allocate_target_description): Add
472 comment.
473 (target_desc_deleter::operator()): Likewise.
474 * target-descriptions.h (struct target_desc_deleter): Moved to
475 gdbsupport/tdesc.h.
476 (target_desc_up): Likewise.
477
478 2020-07-17 Tom Tromey <tromey@adacore.com>
479
480 * linux-nat.c (linux_nat_target::supports_non_stop)
481 (linux_nat_target::always_non_stop_p): Use "true".
482 (linux_nat_target::supports_disable_randomization): Use "true" and
483 "false".
484
485 2020-07-16 Caroline Tice <cmtice@google.com>
486
487 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
488 (RNGLIST_HEADER_SIZE64): New constant definition.
489 (struct dwop_section_names): Add rnglists_dwo.
490 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
491 (struct loclist_header): Rename to 'loclists_rnglists_header'.
492 (struct dwo_sections): Add rnglists field.
493 (read_attribut_reprocess): Add tag parameter.
494 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
495 (cu_debug_rnglists_section): New function (decl & definition).
496 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
497 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
498 die whose range is being checked; get rnglist section from
499 cu_debug_rnglists_section, to get from either objfile or dwo file as
500 appropriate. Add cases for DW_RLE_base_addressx,
501 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
502 the base address to DW_RLE_offset_pairs (not to all ranges), moving
503 test inside if-condition and updating complaint message.
504 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
505 dwarf2_rnglists_process.
506 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
507 dwarf2_ranges_process.
508 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
509 need_ranges_base and update comment appropriately. Also pass die tag
510 to dwarf2_ranges_read.
511 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
512 need_ranges_base and update comment appropriately. Also pass die tag
513 to dwarf2_ranges_process.
514 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
515 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
516 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
517 need_ranges_base and update comment appropriately. Also pass die tag
518 to read_attribute_reprocess and dwarf2_ranges_read.
519 (read_loclist_header): Rename function to read_loclists_rnglists_header,
520 and update function comment appropriately.
521 (read_loclist_index): Call read_loclists_rnglists_header instead of
522 read_loclist_header.
523 (read_rnglist_index): New function.
524 (read_attribute_reprocess): Add tag parameter. Add code for
525 DW_FORM_rnglistx, passing tag to read_rnglist_index.
526 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
527
528 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
531 being resolved.
532
533 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
534
535 * arch-utils.c (show_architecture): Update formatting of messages.
536
537 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
538
539 * gdbtypes.h (struct type) <bounds>: Handle array and string
540 types.
541 * ada-lang.c (assign_aggregate): Use type::bounds on
542 array/string type.
543 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
544 * c-varobj.c (c_number_of_children): Likewise.
545 (c_describe_child): Likewise.
546 * eval.c (evaluate_subexp_for_sizeof): Likewise.
547 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
548 (f_type_print_base): Likewise.
549 * f-valprint.c (f77_array_offset_tbl): Likewise.
550 (f77_get_upperbound): Likewise.
551 (f77_print_array_1): Likewise.
552 * guile/scm-type.c (gdbscm_type_range): Likewise.
553 * m2-typeprint.c (m2_array): Likewise.
554 (m2_is_long_set_of_type): Likewise.
555 * m2-valprint.c (get_long_set_bounds): Likewise.
556 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
557 * python/py-type.c (typy_range): Likewise.
558 * rust-lang.c (rust_internal_print_type): Likewise.
559 * type-stack.c (type_stack::follow_types): Likewise.
560 * valarith.c (value_subscripted_rvalue): Likewise.
561 * valops.c (value_cast): Likewise.
562
563 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
564
565 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
566 callers to use the equivalent accessor methods.
567
568 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
569
570 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
571 (struct type) <bit_stride>: New method.
572 (TYPE_BIT_STRIDE): Remove.
573 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
574
575 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
576
577 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
578 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
579 callers to use the equivalent accessor methods instead.
580
581 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
582
583 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
584 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
585 callers to use the equivalent accessor methods instead.
586
587 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
588
589 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
590 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
591 to use dynamic_prop::kind.
592
593 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
594
595 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
596 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
597 to get the bound property's kind and check against
598 PROP_UNDEFINED.
599
600 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
601
602 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
603 all callers to use type::range_bounds followed by
604 dynamic_prop::{low,high}.
605
606 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
607
608 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
609 const_val, set_const_val, baton, set_locexpr, set_loclist,
610 set_addr_offset, variant_parts, set_variant_parts,
611 original_type, set_original_type>: New methods.
612 <kind>: Rename to...
613 <m_kind>: ... this. Update all users to use the new methods
614 instead.
615 <data>: Rename to...
616 <m_data>: ... this. Update all users to use the new methods
617 instead.
618
619 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
620
621 * gdbtypes.c (get_discrete_bounds): Return failure if
622 the range type's bounds are not both defined and constant
623 values.
624 (get_array_bounds): Update comment. Remove undefined bound check.
625
626 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
627
628 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
629 the type::bounds method directly.
630
631 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
632
633 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
634 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
635 are used to set the range type's bounds to use set_bounds.
636
637 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
638
639 * exec.c (_initialize_exec): Update exec-file-mismatch help.
640
641 2020-07-10 Pedro Alves <pedro@palves.net>
642
643 * gdbthread.h (inferior_ref): Define.
644 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
645 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
646 * thread.c
647 (scoped_restore_current_thread::restore):
648 Adjust to gdb::ref_ptr.
649 (scoped_restore_current_thread::~scoped_restore_current_thread):
650 Remove manual decref handling.
651 (scoped_restore_current_thread::scoped_restore_current_thread):
652 Adjust to use
653 inferior_ref::new_reference/thread_info_ref::new_reference.
654 Incref the thread before calling get_frame_id instead of after.
655 Let TARGET_CLOSE_ERROR propagate.
656
657 2020-07-10 Pedro Alves <pedro@palves.net>
658
659 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
660 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
661 NOT_AVAILABLE_ERROR.
662 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
663 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
664
665 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
666 Pedro Alves <pedro@palves.net>
667
668 PR gdb/26199
669 * infrun.c (threads_are_resumed_pending_p): Delete.
670 (do_target_wait): Remove threads_are_executing and
671 threads_are_resumed_pending_p checks from the inferior_matches
672 lambda. Update comments.
673
674 2020-07-10 Pedro Alves <pedro@palves.net>
675
676 PR gdb/26199
677 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
678 executing threads.
679
680 2020-07-10 Pedro Alves <pedro@palves.net>
681
682 PR gdb/26199
683 * infrun.c (handle_no_resumed): Handle multiple targets.
684
685 2020-07-10 Pedro Alves <pedro@palves.net>
686
687 PR gdb/26199
688 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
689 target_is_async_p.
690
691 2020-07-10 Pedro Alves <pedro@palves.net>
692
693 PR gdb/26199
694 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
695 threads, not all threads.
696
697 2020-07-10 Pedro Alves <pedro@palves.net>
698
699 PR gdb/26199
700 * remote.c (remote_target::open_1): Pass remote target pointer as
701 data to create_async_event_handler.
702 (remote_async_inferior_event_handler): Mark async event handler
703 before returning if the remote target still has either pending
704 events or unacknowledged notifications.
705
706 2020-07-10 John Baldwin <jhb@FreeBSD.org>
707
708 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
709 declaration.
710 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
711 function.
712
713 2020-07-09 John Baldwin <jhb@FreeBSD.org>
714
715 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
716 inferior_ptid.
717
718 2020-07-09 John Baldwin <jhb@FreeBSD.org>
719
720 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
721 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
722 AT_FREEBSD_PS_STRINGS.
723
724 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
725
726 * auto-load.c (auto_load_objfile_script_1): Convert drive part
727 of debugfile path on Windows.
728
729 2020-07-08 John Baldwin <jhb@FreeBSD.org>
730
731 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
732 argument to 'data'.
733
734 2020-07-08 Tom Tromey <tromey@adacore.com>
735
736 * ada-lang.c (ada_exception_message_1): Use read_memory.
737
738 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 PR python/22748
741 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
742 special handling for inline frames.
743 * findvar.c (value_of_register_lazy): Skip inline frames when
744 creating lazy register values.
745 * frame.c (frame_id_computed_p): Delete definition.
746 * frame.h (frame_id_computed_p): Delete declaration.
747
748 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
749
750 * NEWS: Mention additions to Python API.
751 * python/py-arch.c (archpy_register_groups): New function.
752 (arch_object_methods): Add 'register_groups' method.
753 * python/py-registers.c (reggroup_iterator_object): New struct.
754 (reggroup_object): New struct.
755 (gdbpy_new_reggroup): New function.
756 (gdbpy_reggroup_to_string): New function.
757 (gdbpy_reggroup_name): New function.
758 (gdbpy_reggroup_iter): New function.
759 (gdbpy_reggroup_iter_next): New function.
760 (gdbpy_new_reggroup_iterator): New function
761 (gdbpy_initialize_registers): Register new types.
762 (reggroup_iterator_object_type): Define new Python type.
763 (gdbpy_reggroup_getset): New static global.
764 (reggroup_object_type): Define new Python type.
765 * python/python-internal.h
766
767 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
768
769 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
770 * python/py-arch.c (archpy_registers): New function.
771 (arch_object_methods): Add 'registers' method.
772 * python/py-registers.c: New file.
773 * python/python-internal.h
774 (gdbpy_new_register_descriptor_iterator): Declare.
775 (gdbpy_initialize_registers): Declare.
776 * python/python.c (do_start_initialization): Call
777 gdbpy_initialize_registers.
778 * NEWS: Mention additions to the Python API.
779
780 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
781
782 * NEWS: Mention new Python API method.
783 * python/py-unwind.c (pending_framepy_architecture): New function.
784 (pending_frame_object_methods): Add architecture method.
785
786 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
787
788 * gdbarch.c: Regenerate.
789 * gdbarch.h: Regenerate.
790 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
791 (gdbarch_data): Use internal_error for the case where
792 deprecated_set_gdbarch_data was originally needed.
793 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
794 and use passed in obstack.
795 (libunwind_frame_set_descr): Should no longer get back NULL from
796 gdbarch_data.
797 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
798 type.
799 * user-regs.c (user_regs_init): Update parameters, and use passed
800 in obstack.
801 (user_reg_add): Should no longer get back NULL from gdbarch_data.
802 (_initialize_user_regs): Register as a pre-init gdbarch data type.
803
804 2020-07-06 Tom de Vries <tdevries@suse.de>
805
806 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
807 End-Of-Sequence in lte_is_less_than.
808 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
809 "gdb: Don't reorder line table entries too much when sorting".
810
811 2020-07-06 Tom de Vries <tdevries@suse.de>
812
813 PR tui/26205
814 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
815
816 2020-07-05 Tom de Vries <tdevries@suse.de>
817
818 PR build/26187
819 * inferior.h (struct infcall_suspend_state_deleter): If available, use
820 std::uncaught_exceptions instead of deprecated
821 std::uncaught_exception.
822
823 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
824
825 * macroexp.h (macro_stringify): Return
826 gdb::unique_xmalloc_ptr<char>.
827 * macroexp.c (macro_stringify): Likewise.
828 * macrotab.c (fixup_definition): Update.
829
830 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
831
832 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
833 (lex_one_token): Update.
834 * macroexp.c (struct macro_buffer) <release>: Return
835 gdb::unique_xmalloc_ptr<char>.
836 (macro_stringify): Update.
837 (macro_expand): Update.
838 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
839 * macroexp.h (macro_expand_next): Likewise.
840
841 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
842
843 * macroexp.h (macro_lookup_ftype): Remove.
844 (macro_expand, macro_expand_once, macro_expand_next): Remove
845 lookup function parameters, add scope parameter.
846 * macroexp.c (scan, substitute_args, expand, maybe_expand,
847 macro_expand, macro_expand_once, macro_expand_next): Likewise.
848 * macroscope.h (standard_macro_lookup): Change parameter type
849 to macro_scope.
850 * macroscope.c (standard_macro_lookup): Likewise.
851 * c-exp.y (lex_one_token): Update.
852 * macrocmd.c (macro_expand_command): Likewise.
853 (macro_expand_once_command): Likewise.
854
855 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
856
857 * inf-loop.c (inferior_event_handler): Remove client_data param.
858 * inf-loop.h (inferior_event_handler): Likewise.
859 * infcmd.c (step_1): Adjust.
860 * infrun.c (proceed): Adjust.
861 (fetch_inferior_event): Remove client_data param.
862 (infrun_async_inferior_event_handler): Adjust.
863 * infrun.h (fetch_inferior_event): Remove `void *` param.
864 * linux-nat.c (handle_target_event): Adjust.
865 * record-btrace.c (record_btrace_handle_async_inferior_event):
866 Adjust.
867 * record-full.c (record_full_async_inferior_event_handler):
868 Adjust.
869 * remote.c (remote_async_inferior_event_handler): Adjust.
870
871 2020-07-01 Tom Tromey <tom@tromey.com>
872
873 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
874 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
875
876 2020-07-01 Tom Tromey <tom@tromey.com>
877
878 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
879 tui_gen_win_info.
880 (tui_win_info::make_window): Merge with
881 tui_gen_win_info::make_window.
882 (tui_win_info::make_visible): Move from tui_gen_win_info.
883 * tui/tui-win.c (tui_win_info::max_width): Move from
884 tui_gen_win_info.
885 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
886 type.
887 <window_factory>: Likewise.
888 * tui/tui-layout.c (tui_win_info::resize): Move from
889 tui_gen_win_info.
890 (make_standard_window): Change return type.
891 (get_locator_window, tui_get_window_by_name): Likewise.
892 (tui_layout_window::apply): Remove a cast.
893 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
894 (struct tui_win_info): Merge with tui_gen_win_info.
895 (struct tui_gen_win_info): Remove.
896
897 2020-07-01 Tom Tromey <tom@tromey.com>
898
899 * tui/tui-stack.h (struct tui_locator_window): Derive from
900 tui_win_info.
901 <do_scroll_horizontal, do_scroll_vertical>: New methods.
902 <can_box>: New method.
903
904 2020-07-01 Tom Tromey <tom@tromey.com>
905
906 * tui/tui-stack.h (struct tui_locator_window): Remove body.
907
908 2020-07-01 Tom Tromey <tom@tromey.com>
909
910 * tui/tui-regs.c (tui_data_window::display_registers_from)
911 (tui_data_window::display_registers_from)
912 (tui_data_window::first_data_item_displayed)
913 (tui_data_window::delete_data_content_windows): Update.
914 (tui_data_window::refresh_window, tui_data_window::no_refresh):
915 Remove.
916 (tui_data_window::check_register_values): Update.
917 (tui_data_item_window::rerender): Add parameters. Update.
918 (tui_data_item_window::refresh_window): Remove.
919 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
920 virtual.
921 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
922 tui_gen_win_info.
923 <refresh_window, max_height, min_height>: Remove.
924 <rerender>: Add parameters.
925 <x, y, visible>: New members.
926 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
927 <m_item_width>: New member.
928
929 2020-07-01 Tom Tromey <tom@tromey.com>
930
931 * tui/tui-regs.c (tui_data_window::show_register_group)
932 (tui_data_window::check_register_values): Update.
933 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
934 from item_no.
935
936 2020-07-01 Tom Tromey <tom@tromey.com>
937
938 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
939 useless "if".
940
941 2020-07-01 Tom Tromey <tom@tromey.com>
942
943 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
944 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
945
946 2020-07-01 Tom Tromey <tom@tromey.com>
947
948 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
949 * tui/tui-winsource.h (enum tui_line_or_address_kind)
950 (struct tui_line_or_address): Move from tui-data.h.
951 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
952 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
953 (tui_cmd_window, tui_source_window_base, tui_source_window)
954 (tui_disasm_window): Don't declare.
955 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
956 to tui-winsource.h.
957 (SINGLE_KEY): Move to tui-stack.c.
958
959 2020-07-01 Tom Tromey <tom@tromey.com>
960
961 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
962 std::string.
963 * tui/tui-regs.c (class tab_expansion_file): New.
964 (tab_expansion_file::write): New method.
965 (tui_register_format): Change return type. Use
966 tab_expansion_file.
967 (tui_get_register, tui_data_window::display_registers_from)
968 (tui_data_item_window::rerender): Update.
969 * tui/tui-io.h (tui_expand_tabs): Don't declare.
970 * tui/tui-io.c (tui_expand_tabs): Remove.
971
972 2020-07-01 Tom Tromey <tom@tromey.com>
973
974 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
975
976 2020-07-01 Fangrui Song <maskray@google.com>
977
978 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
979
980 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
981
982 * dwarf2/read.c (set_die_type): Removed conditions to restrict
983 forms for DW_AT_associated and DW_AT_allocated attributes,
984 which is already checked in function attr_to_dynamic_prop.
985
986 2020-06-30 Tom Tromey <tromey@adacore.com>
987
988 * dwarf2/read.c (quirk_rust_enum): Correctly call
989 alloc_rust_variant for default-less enum.
990
991 2020-06-30 Tom Tromey <tromey@adacore.com>
992
993 PR build/26183:
994 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
995 gdb::to_string.
996
997 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
998
999 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1000 * gdbarch.h: Re-generate.
1001
1002 2020-06-28 Tom Tromey <tom@tromey.com>
1003
1004 * command.h (cmd_types): Remove.
1005 (cmd_type): Don't declare.
1006 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1007 typedef.
1008 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1009 * cli/cli-decode.c (cmd_type): Remove.
1010
1011 2020-06-27 Pedro Alves <palves@redhat.com>
1012
1013 * fork-child.c (prefork_hook): Adjust.
1014 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1015 Delete.
1016 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1017 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1018 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1019 Remove declarations.
1020 (struct inferior) <set_tty, tty>: New methods.
1021 (struct inferior) <terminal>: Rename to ...
1022 (struct inferior) <m_terminal>: ... this and make private.
1023 * main.c (captured_main_1): Adjust.
1024 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1025 (mi_cmd_inferior_tty_show): Adjust.
1026 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1027 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1028
1029 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1030
1031 * configure.ac: Add --enable-libctf: handle --disable-static
1032 properly.
1033 * acinclude.m4: sinclude ../config/enable.m4.
1034 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1035 (LIBCTF): Substitute in.
1036 (CTF_DEPS): New, likewise.
1037 (CLIBS): libctf needs symbols from libbfd: move earlier.
1038 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1039 flags.
1040 * ctfread.c: Surround in ENABLE_LIBCTF.
1041 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1042 * configure: Regenerate.
1043 * config.in: Likewise.
1044
1045 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1046
1047 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1048
1049 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1050
1051 * inferior.h (struct inferior) <terminal>: Change type to
1052 gdb::unique_xmalloc_ptr<char>.
1053 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1054 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1055 field, adjust to unique pointer.
1056 (get_inferior_io_terminal): Adjust to unique pointer.
1057
1058 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1059
1060 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1061 registers, not just the known core set of registers.
1062
1063 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1064
1065 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1066 fflags, frm, and fcsr registers.
1067 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1068 restore groups.
1069 (riscv_tdesc_unknown_reg): New function.
1070 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1071 tdesc_use_registers.
1072 * riscv-tdep.h (struct gdbarch_tdep): Add
1073 unknown_csrs_first_regnum, unknown_csrs_count,
1074 duplicate_fflags_regnum, duplicate_frm_regnum, and
1075 duplicate_fcsr_regnum fields.
1076
1077 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1080 callback, use the callback (when not null) to help number unknown
1081 registers.
1082 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1083 (tdesc_use_registers): Add extra parameter to declaration.
1084
1085 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1086
1087 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1088 in the file.
1089 (class riscv_pending_register_alias): Likewise.
1090 (riscv_register_feature::register_info): Change 'required_p' field
1091 to 'required', and change its type. Add 'check' member function.
1092 (riscv_register_feature::register_info::check): Define new member
1093 function.
1094 (riscv_xreg_feature): Change initialisation of 'required' field.
1095 (riscv_freg_feature): Likewise.
1096 (riscv_virtual_feature): Likewise.
1097 (riscv_csr_feature): Likewise.
1098 (riscv_check_tdesc_feature): Take extra parameter, the csr
1099 tdesc_feature, rewrite the function to use the new
1100 riscv_register_feature::register_info::check function.
1101 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1102
1103 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1104
1105 * features/Makefile: Remove all references to the deleted files
1106 below.
1107 * features/riscv/32bit-csr.c: Deleted.
1108 * features/riscv/32bit-csr.xml: Deleted.
1109 * features/riscv/64bit-csr.c: Deleted.
1110 * features/riscv/64bit-csr.xml: Deleted.
1111 * features/riscv/rebuild-csr-xml.sh: Deleted.
1112
1113 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1114
1115 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1116 whitespace error for declaration of names member variable.
1117 (struct riscv_register_feature): Add new prefer_first_name member
1118 variable, and fix whitespace error in declaration of registers.
1119 (riscv_xreg_feature): Initialize prefer_first_name field.
1120 (riscv_freg_feature): Likewise.
1121 (riscv_virtual_feature): Likewise.
1122 (riscv_csr_feature): Likewise.
1123 (riscv_register_name): Expand on comments. Remove register name
1124 modifications for CSR and virtual registers.
1125
1126 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1127
1128 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1129 errors.
1130
1131 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1132
1133 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1134 riscv-opc.h.
1135 (class riscv_pending_register_alias): New class.
1136 (riscv_check_tdesc_feature): Take vector of pending aliases and
1137 populate it as appropriate.
1138 (riscv_setup_register_aliases): Delete.
1139 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1140 to riscv_check_tdesc_feature in all cases. Use the vector to
1141 create the register aliases.
1142
1143 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1144
1145 * sol2-tdep.c (sol2_static_transform_name): Remove.
1146 (sol2_init_abi): Don't register it.
1147 * gdbarch.sh (static_transform_name): Remove.
1148 * gdbarch.c, gdbarch.h: Regenerate.
1149
1150 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1151 gdbarch_static_transform_name.
1152 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1153 * stabsread.c (define_symbol) <'X'>: Remove.
1154 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1155 handling.
1156 <'V'>: Likewise.
1157 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1158 <'S'>: Remove call to gdbarch_static_transform_name.
1159
1160 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1161
1162 * procfs.c (procfs_pre_trace): New function.
1163 (procfs_target::create_inferior): Pass it to fork_inferior.
1164
1165 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1166
1167 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1168 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1169 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1170 sol2-tdep.o, sparc-sol2-tdep.o.
1171 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1172 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1173 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1174 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1175
1176 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1177
1178 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1179 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1180 Call sol2_init_abi.
1181 Remove calls to set_gdbarch_skip_solib_resolver,
1182 set_gdbarch_core_pid_to_str.
1183 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1184 (i386_sol2_static_transform_name): Remove.
1185 (i386_sol2_init_abi): Call sol2_init_abi.
1186 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1187 set_gdbarch_static_transform_name,
1188 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1189 Use sol2_sigtramp_p.
1190 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1191 (sol2_sigtramp_p): New function.
1192 (sol2_static_transform_name): New function.
1193 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1194 (sol2_init_abi): New function.
1195 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1196 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1197 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1198 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1199 (sparc_sol2_static_transform_name): Remove.
1200 (sparc32_sol2_init_abi): Call sol2_init_abi.
1201 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1202 set_gdbarch_static_transform_name,
1203 set_gdbarch_skip_solib_resolver,
1204 set_gdbarch_core_pid_to_str.
1205 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1206 (sparc_sol2_static_transform_name): Remove
1207 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1208 call sol2_sigtramp_p.
1209 (sparc64_sol2_init_abi): Call sol2_init_abi.
1210 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1211 set_gdbarch_static_transform_name,
1212 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1213
1214 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1215
1216 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1217 * exec.c (validate_exec_file): If from_tty, set both
1218 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1219 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1220 and from_tty, unconditionally ask a confirmation.
1221
1222 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * target-descriptions.c (tdesc_architecture_name): Protect against
1225 NULL pointer dereference.
1226 (maint_print_xml_tdesc_cmd): New function.
1227 (_initialize_target_descriptions): Register new 'maint print
1228 xml-tdesc' command and give it the filename completer.
1229 * NEWS: Mention new 'maint print xml-tdesc' command.
1230
1231 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * target-descriptions.c (class tdesc_compatible_info): New class.
1234 (struct target_desc): Change type of compatible vector.
1235 (tdesc_compatible_p): Update for change in type of
1236 target_desc::compatible.
1237 (tdesc_compatible_info_list): New function.
1238 (tdesc_compatible_info_arch_name): New function.
1239 (tdesc_add_compatible): Update for change in type of
1240 target_desc::compatible.
1241 (print_c_tdesc::visit_pre): Likewise.
1242
1243 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1246 whitespace to underscore.
1247 (maint_print_c_tdesc_cmd): Use fake filename for target
1248 descriptions that came from the target.
1249 (_initialize_target_descriptions): Add filename command completion
1250 for 'maint print c-tdesc'.
1251
1252 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1253
1254 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1255 lines.
1256
1257 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1258
1259 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1260 lines.
1261 (dwarf2_find_location_expression): Likewise.
1262 (call_site_parameter_matches): Likewise.
1263 (dwarf2_compile_expr_to_ax): Likewise.
1264 (disassemble_dwarf_expression): Likewise.
1265 (loclist_describe_location): Likewise.
1266
1267 2020-06-23 Pedro Alves <palves@redhat.com>
1268
1269 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1270 progspace-and-thread.h. Include scoped-mock-context.h instead.
1271 (register_to_value_test): Use scoped_mock_context.
1272 * regcache.c: Include "scoped-mock-context.h".
1273 (cooked_read_test): Don't error out if a target is already pushed.
1274 Use scoped_mock_context. Adjust.
1275 * scoped-mock-context.h: New file.
1276
1277 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1278
1279 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1280 initializer.
1281 (ada_language::is_string_type_p): New member function.
1282 * c-lang.c (c_language_data): Delete la_is_string_type_p
1283 initializer.
1284 (cplus_language_data): Likewise.
1285 (asm_language_data): Likewise.
1286 (minimal_language_data): Likewise.
1287 * d-lang.c (d_language_data): Likewise.
1288 * f-lang.c (f_is_string_type_p): Delete function, implementation
1289 moved to f_language::is_string_type_p.
1290 (f_language_data): Delete la_is_string_type_p initializer.
1291 (f_language::is_string_type_p): New member function,
1292 implementation from f_is_string_type_p.
1293 * go-lang.c (go_is_string_type_p): Delete function, implementation
1294 moved to go_language::is_string_type_p.
1295 (go_language_data): Delete la_is_string_type_p initializer.
1296 (go_language::is_string_type_p): New member function,
1297 implementation from go_is_string_type_p.
1298 * language.c (language_defn::is_string_type_p): Define new member
1299 function.
1300 (default_is_string_type_p): Make static, add comment copied from
1301 header file.
1302 (unknown_language_data): Delete la_is_string_type_p initializer.
1303 (unknown_language::is_string_type_p): New member function.
1304 (auto_language_data): Delete la_is_string_type_p initializer.
1305 (auto_language::is_string_type_p): New member function.
1306 * language.h (language_data): Delete la_is_string_type_p field.
1307 (language_defn::is_string_type_p): Declare new function.
1308 (default_is_string_type_p): Delete desclaration, move comment to
1309 definition.
1310 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1311 moved to m2_language::is_string_type_p.
1312 (m2_language_data): Delete la_is_string_type_p initializer.
1313 (m2_language::is_string_type_p): New member function,
1314 implementation from m2_is_string_type_p.
1315 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1316 initializer.
1317 * opencl-lang.c (opencl_language_data): Likewise.
1318 * p-lang.c (pascal_is_string_type_p): Delete function,
1319 implementation moved to pascal_language::is_string_type_p.
1320 (pascal_language_data): Delete la_is_string_type_p initializer.
1321 (pascal_language::is_string_type_p): New member function,
1322 implementation from pascal_is_string_type_p.
1323 * rust-lang.c (rust_is_string_type_p): Delete function,
1324 implementation moved to rust_language::is_string_type_p.
1325 (rust_language_data): Delete la_is_string_type_p initializer.
1326 (rust_language::is_string_type_p): New member function,
1327 implementation from rust_is_string_type_p.
1328 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1329 is_string_type_p.
1330
1331 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * ada-lang.c (ada_language_data): Delete la_print_typedef
1334 initializer.
1335 (ada_language::print_typedef): New member function.
1336 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1337 (cplus_language_data): Likewise.
1338 (asm_language_data): Likewise.
1339 (minimal_language_data): Likewise.
1340 * d-lang.c (d_language_data): Likewise.
1341 * f-lang.c (f_language_data): Likewise.
1342 (f_language::print_typedef): New member function.
1343 * go-lang.c (go_language_data): Delete la_print_typedef
1344 initializer.
1345 * language.c (language_defn::print_typedef): Define member
1346 function.
1347 (unknown_language_data): Delete la_print_typedef initializer.
1348 (unknown_language::print_typedef): New member function.
1349 (auto_language_data): Delete la_print_typedef initializer.
1350 (auto_language::print_typedef): New member function.
1351 * language.h (language_data): Delete la_print_typedef field.
1352 (language_defn::print_typedef): Declare new member function.
1353 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1354 (default_print_typedef): Delete declaration.
1355 * m2-lang.c (m2_language_data): Delete la_print_typedef
1356 initializer.
1357 (m2_language::print_typedef): New member function.
1358 * objc-lang.c (objc_language_data): Delete la_print_typedef
1359 initializer.
1360 * opencl-lang.c (opencl_language_data): Likewise.
1361 * p-lang.c (pascal_language_data): Likewise.
1362 (pascal_language::print_typedef): New member function.
1363 * rust-lang.c (rust_print_typedef): Delete function,
1364 implementation moved to rust_language::print_typedef.
1365 (rust_language): Delete la_print_typedef initializer.
1366 (rust_language::print_typedef): New member function,
1367 implementation from rust_print_typedef.
1368 * typeprint.c (default_print_typedef): Delete.
1369
1370 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1373 (ada_language::printstr): New member function.
1374 * c-lang.c (c_language_data): Delete la_printstr initializer.
1375 (cplus_language_data): Likewise.
1376 (asm_language_data): Likewise.
1377 (minimal_language_data): Likewise.
1378 * d-lang.c (d_language_data): Likewise.
1379 * f-lang.c (f_printstr): Rename to f_language::printstr.
1380 (f_language_data): Delete la_printstr initializer.
1381 (f_language::printstr): New member function, implementation from
1382 f_printstr.
1383 * go-lang.c (go_language_data): Delete la_printstr initializer.
1384 * language.c (language_defn::printstr): Define new member
1385 function.
1386 (unk_lang_printstr): Delete.
1387 (unknown_language_data): Delete la_printstr initializer.
1388 (unknown_language::printstr): New member function.
1389 (auto_language_data): Delete la_printstr initializer.
1390 (auto_language::printstr): New member function.
1391 * language.h (language_data): Delete la_printstr field.
1392 (language_defn::printstr): Declare new member function.
1393 (LA_PRINT_STRING): Update call to printstr.
1394 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1395 (m2_language_data): Delete la_printstr initializer.
1396 (m2_language::printstr): New member function, implementation from
1397 m2_printstr.
1398 * objc-lang.c (objc_language_data): Delete la_printstr
1399 initializer.
1400 * opencl-lang.c (opencl_language_data): Likewise.
1401 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1402 (pascal_language_data): Delete la_printstr initializer.
1403 (pascal_language::printstr): New member function, implementation
1404 from pascal_printstr.
1405 * p-lang.h (pascal_printstr): Delete declaration.
1406 * rust-lang.c (rust_printstr): Update header comment.
1407 (rust_language_data): Delete la_printstr initializer.
1408 (rust_language::printstr): New member function.
1409
1410 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1411
1412 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1413 (ada_language::printchar): New member function.
1414 * c-lang.c (c_language_data): Delete la_printchar initializer.
1415 (cplus_language_data): Likewise.
1416 (asm_language_data): Likewise.
1417 (minimal_language_data): Likewise.
1418 * d-lang.c (d_language_data): Likewise.
1419 * f-lang.c (f_printchar): Rename to f_language::printchar.
1420 (f_language_data): Delete la_printchar initializer.
1421 (f_language::printchar): New member function, implementation from
1422 f_printchar.
1423 * go-lang.c (go_language_data): Delete la_printchar initializer.
1424 * language.c (unk_lang_printchar): Delete.
1425 (language_defn::printchar): Define new member function.
1426 (unknown_language_data): Delete la_printchar initializer.
1427 (unknown_language::printchar): New member function.
1428 (auto_language_data): Delete la_printchar initializer.
1429 (auto_language::printchar): New member function.
1430 * language.h (language_data): Delete la_printchar field.
1431 (language_defn::printchar): Declare new member function.
1432 (LA_PRINT_CHAR): Update call to printchar.
1433 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1434 (m2_language::printchar): New member function.
1435 * objc-lang.c (objc_language_data): Delete la_printchar
1436 initializer.
1437 * opencl-lang.c (opencl_language_data): Likewise.
1438 * p-lang.c (pascal_language_data): Delete la_printchar
1439 initializer.
1440 (pascal_language::printchar): New member function.
1441 * rust-lang.c (rust_printchar): Rename to
1442 rust_language::printchar.
1443 (rust_language_data): Delete la_printchar initializer.
1444 (rust_language::printchar): New member function, implementation
1445 from rust_printchar.
1446
1447 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1448
1449 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1450 (ada_language_data): Delete la_emitchar initializer.
1451 (ada_language::emitchar): New member function, implementation from
1452 emit_char.
1453 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1454 (cplus_language_data): Likewise.
1455 (asm_language_data): Likewise.
1456 (minimal_language_data): Likewise.
1457 * d-lang.c (d_language_data): Likewise.
1458 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1459 (f_language_data): Delete la_emitchar initializer.
1460 (f_language::emitchar): New member function, implementation from
1461 f_emit_char.
1462 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1463 * language.c (unk_lang_emit_char): Delete.
1464 (language_defn::emitchar): New member function definition.
1465 (unknown_language_data): Delete la_emitchar initializer.
1466 (unknown_language::emitchar): New member function.
1467 (auto_language_data): Delete la_emitchar initializer.
1468 (auto_language::emitchar): New member function.
1469 * language.h (language_data): Delete la_emitchar field.
1470 (language_defn::emitchar): New member field declaration.
1471 (LA_EMIT_CHAR): Update call to emitchar.
1472 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1473 (m2_language_data): Delete la_emitchar initializer.
1474 (m2_language::emitchar): New member function, implementation from
1475 m2_emit_char.
1476 * objc-lang.c (objc_language_data): Delete la_emitchar
1477 initializer.
1478 * opencl-lang.c (opencl_language_data): Likewise.
1479 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1480 (pascal_language_data): Delete la_emitchar initializer.
1481 (pascal_language::emitchar): New member function, implementation
1482 from pascal_emit_char.
1483 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1484 (rust_language_data): Delete la_emitchar initializer.
1485 (rust_language::emitchar): New member function, implementation
1486 from rust_emitchar.
1487
1488 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1489
1490 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1491 (ada_language_data): Delete la_post_parser initializer.
1492 (ada_language::post_parser): New member function.
1493 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1494 (cplus_language_data): Likewise.
1495 (asm_language_data): Likewise.
1496 (minimal_language_data): Likewise.
1497 * d-lang.c (d_language_data): Likewise.
1498 * f-lang.c (f_language_data): Likewise.
1499 * go-lang.c (go_language_data): Likewise.
1500 * language.c (unknown_language_data): Likewise.
1501 (auto_language_data): Likewise.
1502 * language.h (language_data): Delete la_post_parser field.
1503 (language_defn::post_parser): New member function.
1504 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1505 * objc-lang.c (objc_language_data): Likewise.
1506 * opencl-lang.c (opencl_language_data): Likewise.
1507 * p-lang.c (pascal_language_data): Likewise.
1508 * parse.c (parse_exp_in_context): Update call to post_parser.
1509 (null_post_parser): Delete definition.
1510 * parser-defs.h (null_post_parser): Delete declaration.
1511 * rust-lang.c (rust_language_data): Delete la_post_parser
1512 initializer.
1513
1514 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1515
1516 * ada-lang.c (parse): Rename to ada_language::parser.
1517 (ada_language_data): Delete la_parser initializer.
1518 (ada_language::parser): New member function, implementation from
1519 parse.
1520 * c-lang.c (c_language_data): Delete la_parser initializer.
1521 (cplus_language_data): Likewise.
1522 (asm_language_data): Likewise.
1523 (minimal_language_data): Likewise.
1524 * d-lang.c (d_language_data): Likewise.
1525 (d_language::parser): New member function.
1526 * f-lang.c (f_language_data): Delete la_parser initializer.
1527 (f_language::parser): New member function.
1528 * go-lang.c (go_language_data): Delete la_parser initializer.
1529 (go_language::parser): New member function.
1530 * language.c (unk_lang_parser): Delete.
1531 (language_defn::parser): Define new member function.
1532 (unknown_language_data): Delete la_parser initializer.
1533 (unknown_language::parser): New member function.
1534 (auto_language_data): Delete la_parser initializer.
1535 (auto_language::parser): New member function.
1536 * language.h (language_data): Delete la_parser field.
1537 (language_defn::parser): Declare new member function.
1538 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1539 (m2_language::parser): New member function.
1540 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1541 * opencl-lang.c (opencl_language_data): Likewise.
1542 * p-lang.c (pascal_language_data): Likewise.
1543 (pascal_language::parser): New member function.
1544 * parse.c (parse_exp_in_context): Update call to parser.
1545 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1546 (rust_language::parser): New member function.
1547
1548 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1549
1550 * top.c (print_gdb_configuration): Print --with-python-libdir
1551 configuration value.
1552
1553 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1554
1555 * NEWS: Mention change to the alias command.
1556
1557 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1558
1559 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1560 (alias_command_completer)
1561 (make_alias_options_def_group): New functions.
1562 (alias_opts, alias_option_defs): New struct and array.
1563 (alias_usage_error): Update usage.
1564 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1565 Use option framework.
1566 (_initialize_cli_cmds): Update alias command help.
1567 Update aliases command help.
1568 (show_user):
1569 Add NULL for new default_args lookup_cmd argument.
1570 (valid_command_p): Rename to validate_aliased_command.
1571 Add NULL for new default_args lookup_cmd argument. Verify that the
1572 aliased_command has no default args.
1573 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1574 (lookup_cmd_1, lookup_cmd): New argument default_args.
1575 (add_alias_cmd):
1576 Add NULL for new default_args lookup_cmd argument.
1577 (print_help_for_command): Show default args under the layout
1578 alias some_alias = some_aliased_cmd some_alias_default_arg.
1579 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1580 xfree default_args in destructor.
1581 * cli/cli-script.c (process_next_line, do_define_command):
1582 Add NULL for new default_args lookup_cmd argument.
1583 * command.h: Declare new default_args argument in lookup_cmd
1584 and lookup_cmd_1.
1585 * completer.c (complete_line_internal_1):
1586 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1587 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1588 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1589 Likewise.
1590 * infcmd.c (_initialize_infcmd): Likewise.
1591 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1592 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1593 * python/py-param.c (add_setshow_generic): Likewise.
1594 * remote.c (_initialize_remote): Likewise.
1595 * top.c (execute_command): Prepend default_args if command has some.
1596 (set_verbose):
1597 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1598 * tracepoint.c (validate_actionline, encode_actions_1):
1599 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1600
1601 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1602
1603 * jit.c (jit_read_descriptor): Use bool as the return type.
1604 (jit_breakpoint_re_set_internal): Use bool as the return type.
1605 Invert the return value logic; return true if the jit breakpoint
1606 has been successfully initialized.
1607 (jit_inferior_init): Update the call to
1608 jit_breakpoint_re_set_internal.
1609
1610 2020-06-22 Pedro Alves <palves@redhat.com>
1611
1612 PR gdb/25939
1613 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1614 Use the current inferior instead. Don't return
1615 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1616 wait again.
1617 * sol-thread.c (sol_thread_target::wait): Don't reference
1618 inferior_ptid.
1619 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1620 (sol_update_thread_list_callback): Use the current inferior's pid
1621 instead of inferior_ptid.
1622
1623 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1624
1625 * procfs.c: Cleanup many comments.
1626
1627 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1628 (AFTER_WATCHFLAG): Replace by value.
1629
1630 (MAIN_PROC_NAME_FORMAT): Inline ...
1631 (create_procinfo): ... here.
1632
1633 (procfs_debug_inferior): Remove SYS_exec handling.
1634 (syscall_is_exec): Likewise.
1635 (procfs_set_exec_trap): Likewise.
1636
1637 (syscall_is_lwp_exit): Inline in callers.
1638 (syscall_is_exit): Likewise.
1639 (syscall_is_exec): Likewise.
1640 (syscall_is_lwp_create): Likewise.
1641
1642 (invalidate_cache): Remove #if 0 code.
1643
1644 (make_signal_thread_runnable): Remove.
1645 (procfs_target::resume): Remove #if 0 code.
1646
1647 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1648
1649 PR gdb/25939
1650 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1651 call ...
1652 (procfs_target::create_inferior): ... here.
1653
1654 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1655
1656 * exec.c (validate_exec_file): Ensure the build-id is up to
1657 date by calling reopen_exec_file (that checks file timestamp
1658 to decide to re-read the file).
1659
1660 2020-06-18 Pedro Alves <palves@redhat.com>
1661
1662 PR gdb/25412
1663 * gdbthread.h (delete_thread, delete_thread_silent)
1664 (find_thread_ptid): Update comments.
1665 * thread.c (current_thread_): New global.
1666 (is_current_thread): Move higher, and reimplement.
1667 (inferior_thread): Reimplement.
1668 (set_thread_exited): Use bool. Add assertions.
1669 (add_thread_silent): Simplify thread-reuse handling by always
1670 calling delete_thread.
1671 (delete_thread): Remove intro comment.
1672 (find_thread_ptid): Skip exited threads.
1673 (switch_to_thread_no_regs): Write to current_thread_.
1674 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1675 INFERIOR_PTID. Clear current_thread_.
1676
1677 2020-06-18 Pedro Alves <palves@redhat.com>
1678
1679 * aix-thread.c (pd_update): Use switch_to_thread.
1680
1681 2020-06-18 Pedro Alves <palves@redhat.com>
1682
1683 * ravenscar-thread.c (ravenscar_thread_target): Update.
1684 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1685 (ravenscar_thread_target::add_active_thread): ... this. Don't
1686 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1687 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1688
1689 2020-06-18 Pedro Alves <palves@redhat.com>
1690
1691 * nat/windows-nat.c (current_windows_thread): Remove.
1692 * nat/windows-nat.h (current_windows_thread): Remove.
1693 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1694 Adjust.
1695 (display_selectors): Adjust to fetch the current
1696 windows_thread_info based on inferior_ptid.
1697 (fake_create_process): No longer write to current_windows_thread.
1698 (windows_nat_target::get_windows_debug_event):
1699 Don't set inferior_ptid or current_windows_thread.
1700 (windows_nat_target::wait): Adjust to not rely on
1701 current_windows_thread.
1702 (do_initial_windows_stuff): Now a method of windows_nat_target.
1703 Switch to the last_ptid thread.
1704 (windows_nat_target::attach): Adjust.
1705 (windows_nat_target::detach): Use switch_to_no_thread instead of
1706 writing to inferior_ptid directly.
1707 (windows_nat_target::create_inferior): Adjust.
1708
1709 2020-06-18 Pedro Alves <palves@redhat.com>
1710
1711 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1712
1713 2020-06-18 Pedro Alves <palves@redhat.com>
1714
1715 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1716 after creating it, instead of writing to inferior_ptid. Don't
1717 write to inferior_ptid.
1718
1719 2020-06-18 Pedro Alves <palves@redhat.com>
1720
1721 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1722
1723 2020-06-18 Pedro Alves <palves@redhat.com>
1724
1725 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1726 it, instead of writing to inferior_ptid.
1727
1728 2020-06-18 Pedro Alves <palves@redhat.com>
1729
1730 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1731 to inferior_ptid.
1732
1733 2020-06-18 Pedro Alves <palves@redhat.com>
1734
1735 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1736 instead of writing to inferior_ptid directly.
1737
1738 2020-06-18 Pedro Alves <palves@redhat.com>
1739
1740 * corelow.c (core_target::close): Use switch_to_no_thread instead
1741 of writing to inferior_ptid directly.
1742 (add_to_thread_list, core_target_open): Use switch_to_thread
1743 instead of writing to inferior_ptid directly.
1744
1745 2020-06-18 Pedro Alves <palves@redhat.com>
1746
1747 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1748 inferior_ptid.
1749 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1750 inferior_ptid.
1751 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1752 inferior_ptid directly.
1753 (darwin_nat_target::init_thread_list): Switch to thread, instead
1754 of writing to inferior_ptid.
1755 (darwin_nat_target::attach): Don't write to inferior_ptid.
1756 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1757
1758 2020-06-18 Pedro Alves <palves@redhat.com>
1759
1760 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1761 thread.
1762 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1763 Instead use switch_to_thread.
1764 (gnu_nat_target::detach): Use switch_to_no_thread
1765 instead of writing to inferior_ptid directly. Used passed-in
1766 inferior instead of looking up the inferior by pid.
1767
1768 2020-06-18 Pedro Alves <palves@redhat.com>
1769
1770 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1771 inferior_ptid.
1772
1773 2020-06-18 Pedro Alves <palves@redhat.com>
1774
1775 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1776 inferior_ptid.
1777 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1778 thread.
1779 (nto_procfs_target::detach): Avoid referencing
1780 inferior_ptid. Use switch_to_no_thread instead of writing to
1781 inferior_ptid directly.
1782 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1783 instead of writing to inferior_ptid directly.
1784 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1785 to thread.
1786
1787 2020-06-18 Pedro Alves <palves@redhat.com>
1788
1789 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1790 after creating it, instead of writing to inferior_ptid.
1791 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1792 to inferior_ptid directly.
1793 (gdbsim_target::wait): Don't write to inferior_ptid.
1794
1795 2020-06-18 Pedro Alves <palves@redhat.com>
1796
1797 * remote.c (remote_target::remote_notice_new_inferior): Use
1798 switch_to_thread instead of writing to inferior_ptid directly.
1799 (remote_target::add_current_inferior_and_thread): Use
1800 switch_to_no_thread instead of writing to inferior_ptid directly.
1801 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1802 and switch_to_thread instead of using set_current_inferior or
1803 writing to inferior_ptid directly.
1804
1805 2020-06-18 Pedro Alves <palves@redhat.com>
1806
1807 * tracectf.c (ctf_target_open): Switch to added thread instead of
1808 writing to inferior_ptid directly.
1809 (ctf_target::close): Use switch_to_no_thread instead of writing to
1810 inferior_ptid directly.
1811
1812 2020-06-18 Pedro Alves <palves@redhat.com>
1813
1814 * tracefile-tfile.c (tfile_target_open): Don't write to
1815 inferior_ptid directly, instead switch to added thread.
1816 (tfile_target::close): Use switch_to_no_thread instead of writing
1817 to inferior_ptid directly.
1818
1819 2020-06-18 Pedro Alves <palves@redhat.com>
1820
1821 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1822 (procfs_target::detach): Use switch_to_no_thread
1823 instead of writing to inferior_ptid directly.
1824 (do_attach): Change return type to void. Switch to the added
1825 thread.
1826 (procfs_target::create_inferior): Switch to the added thread.
1827 (procfs_do_thread_registers): Don't write to inferior_ptid.
1828
1829 2020-06-18 Pedro Alves <palves@redhat.com>
1830
1831 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1832 of writing to inferior_ptid.
1833 (scoped_restore_exited_inferior): Delete.
1834 (handle_vfork_child_exec_or_exit): Simplify using
1835 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1836 instead of writing to inferior_ptid.
1837 (THREAD_STOPPED_BY): Delete.
1838 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1839 (thread_stopped_by_hw_breakpoint): Delete.
1840 (save_waitstatus): Use
1841 scoped_restore_current_thread+switch_to_thread, and call
1842 target_stopped_by_watchpoint instead of
1843 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1844 instead of thread_stopped_by_sw_breakpoint, and
1845 target_stopped_by_hw_breakpoint instead of
1846 thread_stopped_by_hw_breakpoint.
1847 (handle_inferior_event)
1848 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1849 inferior_ptid directly, nor
1850 set_current_inferior/set_current_program_space. Use
1851 switch_to_thread / switch_to_inferior_no_thread instead.
1852
1853 2020-06-18 Pedro Alves <palves@redhat.com>
1854
1855 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1856 instead of writing to inferior_ptid.
1857
1858 2020-06-18 Pedro Alves <palves@redhat.com>
1859
1860 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1861 added thread.
1862 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1863 to the added thread.
1864 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1865 instead of writing to inferior_ptid.
1866
1867 2020-06-18 Pedro Alves <palves@redhat.com>
1868
1869 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1870 (register_to_value_test): Mock a program_space too. Heap-allocate
1871 the address space. Don't write to inferior_ptid. Use
1872 switch_to_thread instead.
1873
1874 2020-06-18 Pedro Alves <palves@redhat.com>
1875
1876 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1877 Delete.
1878 (find_signalled_thread()): New, factored out from
1879 linux_make_corefile_notes and adjusted to handle exited threads.
1880 (linux_make_corefile_notes): Adjust to use the new
1881 find_signalled_thread.
1882
1883 2020-06-18 Pedro Alves <palves@redhat.com>
1884
1885 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1886 of saving/restoring inferior_ptid.
1887
1888 2020-06-17 Tom Tromey <tom@tromey.com>
1889
1890 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1891 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1892 declare.
1893 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1894
1895 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1896
1897 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1898 of partial symtabs.
1899
1900 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1901
1902 * regformats/reg-arm.dat: Remove.
1903 * regformats/reg-bfin.dat: Remove.
1904 * regformats/reg-cris.dat: Remove.
1905 * regformats/reg-crisv32.dat: Remove.
1906 * regformats/reg-m32r.dat: Remove.
1907 * regformats/reg-tilegx.dat: Remove.
1908 * regformats/reg-tilegx32.dat: Remove.
1909
1910 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1911
1912 * features/Makefile (WHICH): Remove arm files.
1913 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1914 * regformats/arm/arm-with-neon.dat: Remove.
1915 * regformats/arm/arm-with-vfpv2.dat: Remove.
1916 * regformats/arm/arm-with-vfpv3.dat: Remove.
1917
1918 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1919
1920 * features/Makefile (XMLTOC): Remove rx.xml.
1921
1922 2020-06-17 Pedro Alves <palves@redhat.com>
1923
1924 * gdbthread.h (thread_control_state) <trap_expected> Update
1925 comments.
1926
1927 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1930 ada_language::lookup_symbol_nonlocal.
1931 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1932 (ada_language::lookup_symbol_nonlocal): New member function,
1933 implementation from ada_lookup_symbol_nonlocal.
1934 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1935 initializer.
1936 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1937 initializer.
1938 (cplus_language::lookup_symbol_nonlocal): New member function.
1939 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1940 (minimal_language_data) Likewise.
1941 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1942 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1943 initializer.
1944 (d_language::lookup_symbol_nonlocal): New member function.
1945 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1946 initializer.
1947 (f_language::lookup_symbol_nonlocal): New member function.
1948 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1949 initializer.
1950 * language.c (unknown_language_data): Likewise.
1951 (auto_language_data): Likewise.
1952 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1953 field.
1954 (language_defn::lookup_symbol_nonlocal): New member function.
1955 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1956 initializer.
1957 * objc-lang.c (objc_language_data): Likewise.
1958 * opencl-lang.c (opencl_language_data): Likewise.
1959 * p-lang.c (pascal_language_data): Likewise.
1960 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1961 rust_language::lookup_symbol_nonlocal.
1962 (rust_language_data): Delete la_lookup_symbol_nonlocal
1963 initializer.
1964 (rust_language::lookup_symbol_nonlocal): New member function,
1965 implementation from rust_lookup_symbol_nonlocal.
1966 * symtab.c (lookup_symbol_aux): Update call to
1967 lookup_symbol_nonlocal.
1968 (basic_lookup_symbol_nonlocal): Rename to...
1969 (language_defn::lookup_symbol_nonlocal): ...this, and update
1970 header comment. Remove language_defn parameter, and replace with
1971 uses of `this'.
1972 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1973
1974 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1977 initializer.
1978 (ada_language::value_print_inner): New member function.
1979 * c-lang.c (c_language_data): Delete la_value_print_inner
1980 initializer.
1981 (cplus_language_data): Likewise.
1982 (asm_language_data): Likewise.
1983 (minimal_language_data): Likewise.
1984 * d-lang.c (d_language_data): Likewise.
1985 (d_language::value_print_inner): New member function.
1986 * f-lang.c (f_language_data): Delete la_value_print_inner
1987 initializer.
1988 (f_language::value_print_inner): New member function.
1989 * f-lang.h (f_value_print_innner): Rename to...
1990 (f_value_print_inner): ...this (note spelling of 'inner').
1991 * f-valprint.c (f_value_print_innner): Rename to...
1992 (f_value_print_inner): ...this (note spelling of 'inner').
1993 * go-lang.c (go_language_data): Delete la_value_print_inner
1994 initializer.
1995 (go_language::value_print_inner): New member function.
1996 * language.c (language_defn::value_print_inner): Define new member
1997 function.
1998 (unk_lang_value_print_inner): Delete.
1999 (unknown_language_data): Delete la_value_print_inner initializer.
2000 (unknown_language::value_print_inner): New member function.
2001 (auto_language_data): Delete la_value_print_inner initializer.
2002 (auto_language::value_print_inner): New member function.
2003 * language.h (language_data): Delete la_value_print_inner field.
2004 (language_defn::value_print_inner): Delcare new member function.
2005 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2006 initializer.
2007 (m2_language::value_print_inner): New member function.
2008 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2009 initializer.
2010 * opencl-lang.c (opencl_language_data): Likewise.
2011 * p-lang.c (pascal_language_data): Likewise.
2012 (pascal_language::value_print_inner): New member function.
2013 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2014 initializer.
2015 (rust_language::value_print_inner): New member function.
2016 * valprint.c (do_val_print): Update call to value_print_inner.
2017
2018 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 * ada-lang.c (ada_language_data): Delete la_value_print
2021 initializer.
2022 (ada_language::value_print): New member function.
2023 * c-lang.c (c_language_data): Delete la_value_print initializer.
2024 (cplus_language_data): Likewise.
2025 (asm_language_data): Likewise.
2026 (minimal_language_data): Likewise.
2027 * d-lang.c (d_language_data): Likewise.
2028 * f-lang.c (f_language_data): Likewise.
2029 * go-lang.c (go_language_data): Likewise.
2030 * language.c (unk_lang_value_print): Delete.
2031 (language_defn::value_print): Define new member function.
2032 (unknown_language_data): Delete la_value_print initializer.
2033 (unknown_language::value_print): New member function.
2034 (auto_language_data): Delete la_value_print initializer.
2035 (auto_language::value_print): New member function.
2036 * language.h (language_data): Delete la_value_print field.
2037 (language_defn::value_print): Declare new member function.
2038 (LA_VALUE_PRINT): Update call to value_print.
2039 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2040 * objc-lang.c (objc_language_data): Likewise.
2041 * opencl-lang.c (opencl_language_data): Likewise.
2042 * p-lang.c (pascal_language_data): Likewise.
2043 (pascal_language::value_print): New member function.
2044 * rust-lang.c (rust_language_data): Delete la_value_print
2045 initializer.
2046
2047 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * ada-lang.c (ada_watch_location_expression): Rename to
2050 ada_language::watch_location_expression.
2051 (ada_language_data): Delete la_watch_location_expression
2052 initializer.
2053 (ada_language::watch_location_expression): New member function,
2054 implementation from ada_watch_location_expression.
2055 * breakpoint.c (watch_command_1): Update call to
2056 watch_location_expression.
2057 * c-lang.c (c_watch_location_expression): Rename to
2058 language_defn::watch_location_expression.
2059 (c_language_data): Delete la_watch_location_expression
2060 initializer.
2061 (cplus_language_data): Likewise.
2062 (asm_language_data): Likewise.
2063 (minimal_language_data): Likewise.
2064 * c-lang.h (c_watch_location_expression): Delete declaration.
2065 * d-lang.c (d_language_data): Delete la_watch_location_expression
2066 initializer.
2067 * f-lang.c (f_language_data): Likewise.
2068 * go-lang.c (go_language_data): Likewise.
2069 * language.c (language_defn::watch_location_expression): Member
2070 function implementation from c_watch_location_expression.
2071 (unknown_language_data): Delete la_watch_location_expression
2072 initializer.
2073 (auto_language_data): Likewise.
2074 * language.h (language_data): Delete la_watch_location_expression
2075 field.
2076 (language_defn::watch_location_expression): Declare new member
2077 function.
2078 * m2-lang.c (m2_language_data): Delete
2079 la_watch_location_expression initializer.
2080 * objc-lang.c (objc_language_data): Likewise.
2081 * opencl-lang.c (opencl_language_data): Likewise.
2082 * p-lang.c (pascal_language_data): Likewise.
2083 * rust-lang.c (rust_watch_location_expression): Rename to
2084 rust_language::watch_location_expression.
2085 (rust_language_data): Delete la_watch_location_expression
2086 initializer.
2087 (rust_language::watch_location_expression): New member function,
2088 implementation from rust_watch_location_expression.
2089
2090 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2091
2092 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2093 ada_language::collect_symbol_completion_matches.
2094 (ada_language_data): Delete la_collect_symbol_completion_matches
2095 initializer.
2096 (ada_language::collect_symbol_completion_matches): New member
2097 function, implementation from
2098 ada_collect_symbol_completion_matches.
2099 * c-lang.c (c_language_data): Delete
2100 la_collect_symbol_completion_matches initializer.
2101 (cplus_language_data): Likewise.
2102 (asm_language_data): Likewise.
2103 (minimal_language_data): Likewise.
2104 * d-lang.c (d_language_data): Likewise.
2105 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2106 f_language::collect_symbol_completion_matches.
2107 (f_language_data): Delete la_collect_symbol_completion_matches
2108 initializer.
2109 (f_language::collect_symbol_completion_matches) New member
2110 function, implementation from f_collect_symbol_completion_matches.
2111 * go-lang.c (go_language_data): Delete
2112 la_collect_symbol_completion_matches initializer.
2113 * language.c (unknown_language_data): Likewise.
2114 (auto_language_data): Likewise.
2115 * language.h (language_data): Delete
2116 la_collect_symbol_completion_matches field.
2117 (language_defn::collect_symbol_completion_matches): New member
2118 function.
2119 * m2-lang.c (m2_language_data): Delete
2120 la_collect_symbol_completion_matches initializer.
2121 * objc-lang.c (objc_language_data): Likewise.
2122 * opencl-lang.c (opencl_language_data): Likewise.
2123 * p-lang.c (pascal_language_data): Likewise.
2124 * rust-lang.c (rust_language_data): Likewise.
2125 * symtab.c (default_collect_symbol_completion_matches): Delete.
2126 (collect_symbol_completion_matches): Update call to
2127 collect_symbol_completion_matches.
2128 (collect_symbol_completion_matches_type): Likewise.
2129 * symtab.h (default_collect_symbol_completion_matches): Delete
2130 declaration.
2131
2132 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2133
2134 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2135 (ada_language_data): Delete la_word_break_characters initializer.
2136 (ada_language::word_break_characters): New member function.
2137 * c-lang.c (c_language_data): Delete la_word_break_characters
2138 initializer.
2139 (cplus_language_data): Likewise.
2140 (asm_language_data): Likewise.
2141 (minimal_language_data): Likewise.
2142 * completer.c: Update global comment.
2143 (advance_to_expression_complete_word_point): Update call to
2144 word_break_characters.
2145 (complete_files_symbols): Likewise.
2146 (complete_line_internal_1): Likewise.
2147 (default_completer_handle_brkchars): Likewise.
2148 (skip_quoted_chars): Likewise.
2149 * d-lang.c (d_language_data): Delete la_word_break_characters
2150 initializer.
2151 * f-lang.c (f_word_break_characters): Delete.
2152 (f_language_data): Delete la_word_break_characters initializer.
2153 (f_language::word_break_characters): New member function.
2154 * go-lang.c (go_language_data): Delete la_word_break_characters
2155 initializer.
2156 * language.c (unknown_language_data): Likewise.
2157 (auto_language_data): Likewise.
2158 * language.h (default_word_break_characters): Move declaration to
2159 earlier in the file.
2160 (language_data): Delete la_word_break_characters field.
2161 (language_defn::word_break_characters): New member function.
2162 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2163 initializer.
2164 * objc-lang.c (objc_language_data): Likewise.
2165 * opencl-lang.c (opencl_language_data): Likewise.
2166 * p-lang.c (pascal_language_data): Likewise.
2167 * rust-lang.c (rust_language_data): Likewise.
2168
2169 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2170
2171 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2172 (ada_language_data): Delete la_get_symbol_name_matcher
2173 initializer.
2174 (language_defn::get_symbol_name_matcher_inner): New member
2175 function.
2176 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2177 initializer.
2178 (cplus_language_data): Likewise.
2179 (cplus_language::get_symbol_name_matcher_inner): New member
2180 function.
2181 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2182 (minimal_language_data): Likewise.
2183 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2184 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2185 initializer.
2186 * dictionary.c (iter_match_first_hashed): Update call to
2187 get_symbol_name_matcher.
2188 (iter_match_next_hashed): Likewise.
2189 (iter_match_next_linear): Likewise.
2190 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2191 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2192 initializer.
2193 (f_language::get_symbol_name_matcher_inner): New member function.
2194 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2195 initializer.
2196 * language.c (default_symbol_name_matcher): Update header comment,
2197 make static.
2198 (language_defn::get_symbol_name_matcher): New definition.
2199 (language_defn::get_symbol_name_matcher_inner): Likewise.
2200 (get_symbol_name_matcher): Delete.
2201 (unknown_language_data): Delete la_get_symbol_name_matcher
2202 initializer.
2203 (auto_language_data): Likewise.
2204 * language.h (language_data): Delete la_get_symbol_name_matcher
2205 field.
2206 (language_defn::get_symbol_name_matcher): New member function.
2207 (language_defn::get_symbol_name_matcher_inner): Likewise.
2208 (default_symbol_name_matcher): Delete declaration.
2209 * linespec.c (find_methods): Update call to
2210 get_symbol_name_matcher.
2211 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2212 initializer.
2213 * minsyms.c (lookup_minimal_symbol): Update call to
2214 get_symbol_name_matcher.
2215 (iterate_over_minimal_symbols): Likewise.
2216 * objc-lang.c (objc_language_data): Delete
2217 la_get_symbol_name_matcher initializer.
2218 * opencl-lang.c (opencl_language_data): Likewise.
2219 * p-lang.c (pascal_language_data): Likewise.
2220 * psymtab.c (psymbol_name_matches): Update call to
2221 get_symbol_name_matcher.
2222 * rust-lang.c (rust_language_data): Delete
2223 la_get_symbol_name_matcher initializer.
2224 * symtab.c (symbol_matches_search_name): Update call to
2225 get_symbol_name_matcher.
2226 (compare_symbol_name): Likewise.
2227
2228 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2229
2230 * ada-lang.c (ada_language_data): Delete la_compute_program
2231 initializer.
2232 * c-lang.c (c_language_data): Likewise.
2233 (c_language::compute_program): New member function.
2234 (cplus_language_data): Delete la_compute_program initializer.
2235 (cplus_language::compute_program): New member function.
2236 (asm_language_data): Delete la_compute_program initializer.
2237 (minimal_language_data): Likewise.
2238 * c-lang.h (c_compute_program): Update comment.
2239 (cplus_compute_program): Likewise.
2240 * compile/compile-c-support.c (c_compute_program): Likewise.
2241 (cplus_compute_program): Likewise.
2242 * compile/compile.c (compile_to_object): Update call to
2243 la_compute_program.
2244 * d-lang.c (d_language_data): Delete la_compute_program
2245 initializer.
2246 * f-lang.c (f_language_data): Likewise.
2247 * go-lang.c (go_language_data): Likewise.
2248 * language.c (unknown_language_data): Likewise.
2249 (auto_language_data): Likewise.
2250 * language.h (language_data): Delete la_compute_program field.
2251 (language_defn::compute_program): New member function.
2252 * m2-lang.c (m2_language_data): Delete la_compute_program
2253 initializer.
2254 * objc-lang.c (objc_language_data): Likewise.
2255 * opencl-lang.c (opencl_language_data): Likewise.
2256 * p-lang.c (pascal_language_data): Likewise.
2257 * rust-lang.c (rust_language_data): Likewise.
2258
2259 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2260
2261 * ada-lang.c (ada_language_data) Delete
2262 la_class_name_from_physname initializer.
2263 * c-lang.c (c_language_data): Likewise.
2264 (cplus_language_data): Likewise.
2265 (cplus_language::class_name_from_physname): New member function.
2266 (asm_language_data): Delete la_class_name_from_physname
2267 initializer.
2268 (minimal_language_data): Likewise.
2269 * d-lang.c (d_language_data): Likewise.
2270 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2271 method on language_defn class.
2272 (guess_full_die_structure_name): Likewise.
2273 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2274 initializer.
2275 * go-lang.c (go_language_data): Likewise.
2276 * language.c (language_class_name_from_physname): Delete.
2277 (unk_lang_class_name): Delete.
2278 (unknown_language_data): Delete la_class_name_from_physname
2279 initializer.
2280 (auto_language_data): Likewise.
2281 * language.h (language_data): Delete la_class_name_from_physname
2282 field.
2283 (language_defn::class_name_from_physname): New function.
2284 (language_class_name_from_physname): Delete declaration.
2285 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2286 initializer.
2287 * objc-lang.c (objc_language_data): Likewise.
2288 * opencl-lang.c (opencl_language_data): Likewise.
2289 * p-lang.c (pascal_language_data): Likewise.
2290 * rust-lang.c (rust_language_data): Likewise.
2291
2292 2020-06-16 Tom Tromey <tom@tromey.com>
2293
2294 * tui/tui-data.h (STATUS_NAME): New macro.
2295 * tui/tui-layout.c (tui_remove_some_windows)
2296 (initialize_known_windows, tui_register_window)
2297 (tui_layout_split::remove_windows, initialize_layouts)
2298 (tui_new_layout_command): Don't use hard-coded window names.
2299
2300 2020-06-16 Tom Tromey <tom@tromey.com>
2301
2302 PR tui/25348:
2303 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2304 tui_initialize_readline. Only run once. Call rl_initialize.
2305 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2306 tui_initialize_readline.
2307 * tui/tui-io.c (tui_setup_io): Call
2308 tui_ensure_readline_initialized.
2309 * tui/tui-interp.c (tui_interp::init): Update.
2310
2311 2020-06-16 Tom Tromey <tom@tromey.com>
2312
2313 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2314 Also preserve the status window.
2315
2316 2020-06-16 Tom Tromey <tom@tromey.com>
2317
2318 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2319 where m_window==nullptr.
2320
2321 2020-06-15 Tom Tromey <tromey@adacore.com>
2322
2323 * windows-nat.c (windows_nat::handle_output_debug_string):
2324 Update.
2325 (windows_nat::handle_ms_vc_exception): Update.
2326 * target.h (target_read_string): Change API.
2327 * target.c (target_read_string): Change API.
2328 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2329 Update.
2330 * solib-frv.c (frv_current_sos): Update.
2331 * solib-dsbt.c (dsbt_current_sos): Update.
2332 * solib-darwin.c (darwin_current_sos): Update.
2333 * linux-thread-db.c (inferior_has_bug): Update.
2334 * expprint.c (print_subexp_standard): Update.
2335 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2336 (ada_exception_message_1): Update.
2337
2338 2020-06-15 Tom Tromey <tromey@adacore.com>
2339
2340 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2341
2342 2020-06-15 Tom Tromey <tromey@adacore.com>
2343
2344 * valprint.c (read_string): Update comment.
2345 * target.c (MIN): Remove.
2346 (target_read_string): Rewrite.
2347
2348 2020-06-15 Tom Tromey <tromey@adacore.com>
2349
2350 * corefile.c (read_memory_string): Remove.
2351 * ada-valprint.c (ada_value_print_ptr): Update.
2352 * ada-lang.h (ada_tag_name): Change return type.
2353 * ada-lang.c (type_from_tag): Update.
2354 (ada_tag_name_from_tsd): Change return type. Use
2355 target_read_string.
2356 (ada_tag_name): Likewise.
2357 * gdbcore.h (read_memory_string): Don't declare.
2358
2359 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2360
2361 * symtab.c (rbreak_command): Ignore Windows drive colon.
2362
2363 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2364
2365 * NEWS: Mention removed GDBserver host support.
2366
2367 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2368
2369 * features/riscv/rebuild-csr-xml.sh: Updated.
2370
2371 2020-06-11 Tom Tromey <tom@tromey.com>
2372
2373 PR gdb/18318:
2374 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2375
2376 2020-06-09 Jonny Grant <jg@jguk.org>
2377 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2378
2379 * main.c (captured_main_1): Don't print new line after help.
2380 (print_gdb_help): add mailing list and IRC channel information
2381 to --help. Add new lines between items in the footer. Remove
2382 quotes around bug url.
2383
2384 2020-06-11 Keith Seitz <keiths@redhat.com>
2385
2386 PR gdb/21356
2387 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2388 Resolve typedefs for type length calculations.
2389
2390 2020-06-10 Tom de Vries <tdevries@suse.de>
2391
2392 PR ada/24713
2393 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2394 (write_psymbols): Enable .gdb_index for ada.
2395 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2396 ada.
2397
2398 2020-06-10 Tom de Vries <tdevries@suse.de>
2399
2400 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2401 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2402 namei" instead of "const char *name" argument.
2403 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2404 dw2_symtab_iter_init.
2405
2406 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2407
2408 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2409 to use type::field and field::type instead.
2410
2411 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2412
2413 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2414 to use field::type instead.
2415
2416 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2417
2418 * gdbtypes.h (struct field) <type, set_type>: New methods.
2419 Rename `type` field to...
2420 <m_type>: ... this. Change references throughout to use type or
2421 set_type methods.
2422 (FIELD_TYPE): Use field::type. Change call sites that modify
2423 the field's type to use field::set_type instead.
2424
2425 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2426
2427 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2428 to use type::index_type instead.
2429
2430 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2431
2432 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2433 methods.
2434 (TYPE_INDEX_TYPE): Use type::index_type.
2435 * gdbtypes.c (create_array_type_with_stride): Likewise.
2436
2437 2020-06-07 Tom Tromey <tom@tromey.com>
2438
2439 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2440 parameter.
2441 (generic_value_print): Update.
2442
2443 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2444
2445 Revert commit 982a38f60b0.
2446 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2447
2448 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2449
2450 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2451 avoid use after free.
2452
2453 2020-06-05 Tom de Vries <tdevries@suse.de>
2454
2455 * NEWS: Fix typos.
2456
2457 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2458
2459 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2460 the per_bfd object.
2461 (dwarf2_read_debug_names): Likewise.
2462 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2463 object when re-using a per_bfd object with an index.
2464
2465 2020-06-03 Tom de Vries <tdevries@suse.de>
2466
2467 PR symtab/26046
2468 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2469 children for C++.
2470 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2471 DW_TAG_subprogram.
2472
2473 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2474
2475 * ada-lang.c (ada_language_data): Delete skip_trampoline
2476 initializer.
2477 * c-lang.c (c_language_data): Likewise.
2478 (cplus_language_data): Likewise.
2479 (cplus_language::skip_trampoline): New member function.
2480 (asm_language_data): Delete skip_trampoline initializer.
2481 (minimal_language_data): Likewise.
2482 * d-lang.c (d_language_data): Likewise.
2483 * f-lang.c (f_language_data): Likewise.
2484 * go-lang.c (go_language_data): Likewise.
2485 * language.c (unk_lang_trampoline): Delete function.
2486 (skip_language_trampoline): Update.
2487 (unknown_language_data): Delete skip_trampoline initializer.
2488 (auto_language_data): Likewise.
2489 * language.h (language_data): Delete skip_trampoline field.
2490 (language_defn::skip_trampoline): New function.
2491 * m2-lang.c (m2_language_data): Delete skip_trampoline
2492 initializer.
2493 * objc-lang.c (objc_skip_trampoline): Delete function, move
2494 implementation to objc_language::skip_trampoline.
2495 (objc_language_data): Delete skip_trampoline initializer.
2496 (objc_language::skip_trampoline): New member function with
2497 implementation from objc_skip_trampoline.
2498 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2499 initializer.
2500 * p-lang.c (pascal_language_data): Likewise.
2501 * rust-lang.c (rust_language_data): Likewise.
2502
2503 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2504
2505 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2506 (ada_language::demangle): New member function.
2507 * c-lang.c (c_language_data): Delete la_demangle initializer.
2508 (cplus_language_data): Delete la_demangle initializer.
2509 (cplus_language::demangle): New member function.
2510 (asm_language_data): Delete la_demangle initializer.
2511 (minimal_language_data): Delete la_demangle initializer.
2512 * d-lang.c (d_language_data): Delete la_demangle initializer.
2513 (d_language::demangle): New member function.
2514 * f-lang.c (f_language_data): Delete la_demangle initializer.
2515 (f_language::demangle): New member function.
2516 * go-lang.c (go_language_data): Delete la_demangle initializer.
2517 (go_language::demangle): New member function.
2518 * language.c (language_demangle): Update.
2519 (unk_lang_demangle): Delete.
2520 (unknown_language_data): Delete la_demangle initializer.
2521 (unknown_language::demangle): New member function.
2522 (auto_language_data): Delete la_demangle initializer.
2523 (auto_language::demangle): New member function.
2524 * language.h (language_data): Delete la_demangle field.
2525 (language_defn::demangle): New function.
2526 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2527 * objc-lang.c (objc_language_data): Delete la_demangle
2528 initializer.
2529 (objc_language::demangle): New member function.
2530 * opencl-lang.c (opencl_language_data): Delete la_demangle
2531 initializer.
2532 * p-lang.c (pascal_language_data): Likewise.
2533 * rust-lang.c (rust_language_data): Likewise.
2534 (rust_language::demangle): New member function.
2535
2536 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2537
2538 * ada-lang.c (ada_language_data): Delete la_print_type
2539 initializer.
2540 (ada_language::print_type): New member function.
2541 * c-lang.c (c_language_data): Delete la_print_type initializer.
2542 (c_language::print_type): New member function.
2543 (cplus_language_data): Delete la_print_type initializer.
2544 (cplus_language::print_type): New member function.
2545 (asm_language_data): Delete la_print_type initializer.
2546 (asm_language::print_type): New member function.
2547 (minimal_language_data): Delete la_print_type initializer.
2548 (minimal_language::print_type): New member function.
2549 * d-lang.c (d_language_data): Delete la_print_type initializer.
2550 (d_language::print_type): New member function.
2551 * f-lang.c (f_language_data): Delete la_print_type initializer.
2552 (f_language::print_type): New member function.
2553 * go-lang.c (go_language_data): Delete la_print_type initializer.
2554 (go_language::print_type): New member function.
2555 * language.c (unk_lang_print_type): Delete.
2556 (unknown_language_data): Delete la_print_type initializer.
2557 (unknown_language::print_type): New member function.
2558 (auto_language_data): Delete la_print_type initializer.
2559 (auto_language::print_type): New member function.
2560 * language.h (language_data): Delete la_print_type field.
2561 (language_defn::print_type): New function.
2562 (LA_PRINT_TYPE): Update.
2563 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2564 (m2_language::print_type): New member function.
2565 * objc-lang.c (objc_language_data): Delete la_print_type
2566 initializer.
2567 (objc_language::print_type): New member function.
2568 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2569 to opencl_language::print_type.
2570 (opencl_language_data): Delete la_print_type initializer.
2571 (opencl_language::print_type): New member function, implementation
2572 from opencl_print_type.
2573 * p-lang.c (pascal_language_data): Delete la_print_type
2574 initializer.
2575 (pascal_language::print_type): New member function.
2576 * rust-lang.c (rust_print_type): Delete, implementation moved to
2577 rust_language::print_type.
2578 (rust_language_data): Delete la_print_type initializer.
2579 (rust_language::print_type): New member function, implementation
2580 from rust_print_type.
2581
2582 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2585 implementation moves to...
2586 (ada_language::sniff_from_mangled_name): ...here. Update return
2587 type.
2588 (ada_language_data): Delete la_sniff_from_mangled_name
2589 initializer.
2590 * c-lang.c (c_language_data): Likewise.
2591 (cplus_language_data): Likewise.
2592 (cplus_language::sniff_from_mangled_name): New member function,
2593 implementation taken from gdb_sniff_from_mangled_name.
2594 (asm_language_data): Delete la_sniff_from_mangled_name
2595 initializer.
2596 (minimal_language_data): Likewise.
2597 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2598 implementation moves to cplus_language::sniff_from_mangled_name.
2599 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2600 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2601 moves to...
2602 (d_language::sniff_from_mangled_name): ...here.
2603 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2604 * f-lang.c (f_language_data): Likewise.
2605 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2606 moves to...
2607 (go_language::sniff_from_mangled_name): ...here.
2608 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2609 * language.c (language_sniff_from_mangled_name): Delete.
2610 (unknown_language_data): Delete la_sniff_from_mangled_name
2611 initializer.
2612 (auto_language_data): Likewise.
2613 * language.h (language_data): Delete la_sniff_from_mangled_name
2614 field.
2615 (language_defn::sniff_from_mangled_name): New function.
2616 (language_sniff_from_mangled_name): Delete declaration.
2617 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2618 field.
2619 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2620 implementation moves to...
2621 (objc_language::sniff_from_mangled_name): ...here.
2622 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2623 * opencl-lang.c (opencl_language_data): Likewise.
2624 * p-lang.c (pascal_language_data): Likewise.
2625 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2626 implementation moves to...
2627 (rust_language::sniff_from_mangled_name): ...here.
2628 (rust_language_data): Delete la_sniff_from_mangled_name
2629 initializer.
2630 * symtab.c (symbol_find_demangled_name): Call
2631 sniff_from_mangled_name member function.
2632
2633 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2636 initializer.
2637 * c-lang.c (c_language_data): Likewise.
2638 (cplus_language_data): Likewise.
2639 (cplus_language::search_name_hash): New member function.
2640 (asm_language_data): Delete la_search_name_hash initializer.
2641 (minimal_language_data): Likewise.
2642 * d-lang.c (d_language_data): Likewise.
2643 * dictionary.c (default_search_name_hash): Rename to...
2644 (language_defn::search_name_hash): ...this.
2645 * f-lang.c (f_language_data): Likewise.
2646 (f_language::search_name_hash): New member function.
2647 * go-lang.c (go_language_data): Delete la_search_name_hash
2648 initializer.
2649 * language.c (unknown_language_data): Likewise.
2650 (auto_language_data): Likewise.
2651 * language.h (struct language_data): Delete la_search_name_hash
2652 field.
2653 (language_defn::search_name_hash): Declare new member function.
2654 (default_search_name_hash): Delete declaration.
2655 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2656 initializer.
2657 * objc-lang.c (objc_language_data): Likewise.
2658 * opencl-lang.c (opencl_language_data): Likewise.
2659 * p-lang.c (pascal_language_data): Likewise.
2660 * rust-lang.c (rust_language_data): Likewise.
2661 * symtab.c (search_name_hash): Update call.
2662
2663 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2666 initializer.
2667 * c-lang.c (class compile_instance): Declare.
2668 (c_language_data): Delete la_get_compile_instance initializer.
2669 (c_language::get_compile_instance): New member function.
2670 (cplus_language_data): Delete la_get_compile_instance initializer.
2671 (cplus_language::get_compile_instance): New member function.
2672 (asm_language_data): Delete la_get_compile_instance initializer.
2673 (minimal_language_data): Likewise.
2674 * c-lang.h (c_get_compile_context): Update comment.
2675 (cplus_get_compile_context): Update comment.
2676 * compile/compile.c (compile_to_object): Update calls, don't rely
2677 on function pointer being NULL.
2678 * d-lang.c (d_language_data): Delete la_get_compile_instance
2679 initializer.
2680 * f-lang.c (f_language_data): Likewise.
2681 * go-lang.c (go_language_data): Likewise.
2682 * language.c (unknown_language_data): Likewise.
2683 (auto_language_data): Likewise.
2684 * language.h (language_data): Delete la_get_compile_instance field.
2685 (language_defn::get_compile_instance): New member function.
2686 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2687 initializer.
2688 * objc-lang.c (objc_language_data): Likewise.
2689 * opencl-lang.c (opencl_language_data): Likewise.
2690 * p-lang.c (pascal_language_data): Likewise.
2691 * rust-lang.c (rust_language_data): Likewise.
2692
2693 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2694
2695 * ada-lang.c (ada_add_all_symbols): Update comment.
2696 (ada_iterate_over_symbols): Delete, move implementation to...
2697 (ada_language::iterate_over_symbols): ...here, a new member
2698 function, rewrite to use range based for loop.
2699 (ada_language_data): Delete la_iterate_over_symbols initializer.
2700 * c-lang.c (c_language_data): Likewise.
2701 (cplus_language_data): Likewise.
2702 (asm_language_data): Likewise.
2703 (minimal_language_data): Likewise.
2704 * d-lang.c (d_language_data): Likewise.
2705 * f-lang.c (f_language_data): Likewise.
2706 * go-lang.c (go_language_data): Likewise.
2707 * language.c (unknown_language_data): Likewise.
2708 (auto_language_data): Likewise.
2709 * language.h (language_data): Delete la_iterate_over_symbols field.
2710 (language_defn::iterate_over_symbols): New member function.
2711 (LA_ITERATE_OVER_SYMBOLS): Update.
2712 * linespec.c (iterate_over_all_matching_symtabs): Update.
2713 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2714 initializer.
2715 * objc-lang.c (objc_language_data): Likewise.
2716 * opencl-lang.c (opencl_language_data): Likewise.
2717 * p-lang.c (pascal_language_data): Likewise.
2718 * rust-lang.c (rust_language_data): Likewise.
2719
2720 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2721
2722 * ada-lang.c (ada_language_data): Delete
2723 la_lookup_transparent_type initializer.
2724 * c-lang.c (c_language_data): Likewise.
2725 (cplus_language_data): Likewise.
2726 (cplus_language::lookup_transparent_type): New member function.
2727 (asm_language_data): Delete la_lookup_transparent_type
2728 initializer.
2729 (minimal_language_data): Likewise.
2730 * d-lang.c (d_language_data): Likewise.
2731 * f-lang.c (f_language_data): Likewise.
2732 * go-lang.c (go_language_data): Likewise.
2733 * language.c (unknown_language_data): Likewise.
2734 (auto_language_data): Likewise.
2735 * language.h (struct language_data): Delete
2736 la_lookup_transparent_type field.
2737 (language_defn::lookup_transparent_type): New member function.
2738 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2739 initializer.
2740 * objc-lang.c (objc_language_data): Likewise.
2741 * opencl-lang.c (opencl_language_data): Likewise.
2742 * p-lang.c (pascal_language_data): Likewise.
2743 * rust-lang.c (rust_language_data): Likewise.
2744 * symtab.c (symbol_matches_domain): Update call.
2745
2746 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2747
2748 * ada-lang.c (ada_language_arch_info): Delete function, move
2749 implementation to...
2750 (ada_language::language_arch_info): ...here, a new member
2751 function.
2752 (ada_language_data): Delete la_language_arch_info.
2753 * c-lang.c (c_language_data): Likewise.
2754 (c_language::language_arch_info): New member function.
2755 (cplus_language_arch_info): Delete function, move
2756 implementation to...
2757 (cplus_language::language_arch_info): ...here, a new member
2758 function.
2759 (cplus_language_data): Delete la_language_arch_info.
2760 (asm_language_data): Likewise.
2761 (asm_language::language_arch_info): New member function.
2762 (minimal_language_data): Delete la_language_arch_info.
2763 (minimal_language::language_arch_info): New member function.
2764 * d-lang.c (d_language_arch_info): Delete function, move
2765 implementation to...
2766 (d_language::language_arch_info): ...here, a new member
2767 function.
2768 (d_language_data): Delete la_language_arch_info.
2769 * f-lang.c (f_language_arch_info): Delete function, move
2770 implementation to...
2771 (f_language::language_arch_info): ...here, a new member
2772 function.
2773 (f_language_data): Delete la_language_arch_info.
2774 * go-lang.c (go_language_arch_info): Delete function, move
2775 implementation to...
2776 (go_language::language_arch_info): ...here, a new member
2777 function.
2778 (go_language_data): Delete la_language_arch_info.
2779 * language.c (unknown_language_data): Likewise.
2780 (unknown_language::language_arch_info): New member function.
2781 (auto_language_data): Delete la_language_arch_info.
2782 (auto_language::language_arch_info): New member function.
2783 (language_gdbarch_post_init): Update call to
2784 la_language_arch_info.
2785 * language.h (language_data): Delete la_language_arch_info
2786 function pointer.
2787 (language_defn::language_arch_info): New function.
2788 * m2-lang.c (m2_language_arch_info): Delete function, move
2789 implementation to...
2790 (m2_language::language_arch_info): ...here, a new member
2791 function.
2792 (m2_language_data): Delete la_language_arch_info.
2793 * objc-lang.c (objc_language_arch_info): Delete function, move
2794 implementation to...
2795 (objc_language::language_arch_info): ...here, a new member
2796 function.
2797 (objc_language_data): Delete la_language_arch_info.
2798 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2799 implementation to...
2800 (opencl_language::language_arch_info): ...here, a new member
2801 function.
2802 (opencl_language_data): Delete la_language_arch_info.
2803 * p-lang.c (pascal_language_arch_info): Delete function, move
2804 implementation to...
2805 (pascal_language::language_arch_info): ...here, a new member
2806 function.
2807 (pascal_language_data): Delete la_language_arch_info.
2808 * rust-lang.c (rust_language_arch_info): Delete function, move
2809 implementation to...
2810 (rust_language::language_arch_info): ...here, a new member
2811 function.
2812 (rust_language_data): Delete la_language_arch_info.
2813
2814 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2815
2816 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2817 initializer.
2818 * c-lang.c (c_language_data): Likewise.
2819 (cplus_language_data): Likewise.
2820 (cplus_language::pass_by_reference_info): New method.
2821 (asm_language_data): Delete la_pass_by_reference initializer.
2822 (minimal_language_data): Likewise.
2823 * cp-abi.c (cp_pass_by_reference): Remove use of
2824 default_pass_by_reference.
2825 * d-lang.c (d_language_data): Likewise.
2826 * f-lang.c (f_language_data): Likewise.
2827 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2828 default_pass_by_reference.
2829 * go-lang.c (go_language_data): Likewise.
2830 * language.c (language_pass_by_reference): Update.
2831 (default_pass_by_reference): Delete.
2832 (unknown_language_data): Delete la_pass_by_reference
2833 initializer.
2834 (auto_language_data): Likewise.
2835 * language.h (struct language_data): Delete la_pass_by_reference
2836 field.
2837 (language_defn::pass_by_reference_info): New member function.
2838 (default_pass_by_reference): Delete declaration.
2839 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2840 initializer.
2841 * objc-lang.c (objc_language_data): Likewise.
2842 * opencl-lang.c (opencl_language_data): Likewise.
2843 * p-lang.c (pascal_language_data): Likewise.
2844 * rust-lang.c (rust_language_data): Likewise.
2845
2846 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * ada-lang.c (ada_read_var_value): Delete function, move
2849 implementation to...
2850 (ada_language::read_var_value): ...here.
2851 (ada_language_data): Delete la_read_var_value initializer.
2852 * c-lang.c (c_language_data): Likewise.
2853 (cplus_language_data): Likewise.
2854 (minimal_language_data): Likewise.
2855 * d-lang.c (d_language_data): Likewise.
2856 * f-lang.c (f_language_data): Likewise.
2857 * findvar.c (default_read_var_value): Rename to...
2858 (language_defn::read_var_value): ...this.
2859 * findvar.c (read_var_value): Update header comment, and change to
2860 call member function instead of function pointer.
2861 * go-lang.c (go_language_data): Likewise.
2862 * language.c (unknown_language_data): Delete la_read_var_value
2863 initializer.
2864 (auto_language_data): Likewise.
2865 * language.h (struct language_data): Delete la_read_var_value
2866 field.
2867 (language_defn::read_var_value): New member function.
2868 (default_read_var_value): Delete declaration.
2869 * m2-lang.c (m2_language_data): Delete la_read_var_value
2870 initializer.
2871 * objc-lang.c (objc_language_data): Likewise.
2872 * opencl-lang.c (opencl_language_data): Likewise.
2873 * p-lang.c (pascal_language_data): Likewise.
2874 * rust-lang.c (rust_language_data): Likewise.
2875 * value.h (default_read_var_value): Delete declaration.
2876
2877 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * ada-lang.c (ada_print_array_index): Delete function, move
2880 implementation to...
2881 (ada_language::print_array_index): ...here.
2882 (ada_language_data): Delete la_print_array_index initializer.
2883 * c-lang.c (c_language_data): Likewise.
2884 (cplus_language_data): Likewise.
2885 (minimal_language_data): Likewise.
2886 * d-lang.c (d_language_data): Likewise.
2887 * f-lang.c (f_language_data): Likewise.
2888 * go-lang.c (go_language_data): Likewise.
2889 * language.c (default_print_array_index): Delete function, move
2890 implementation to...
2891 (language_defn::print_array_index): ...here.
2892 (unknown_language_data): Delete la_print_array_index initializer.
2893 (auto_language_data): Likewise.
2894 * language.h (struct language_data): Delete la_print_array_index
2895 field.
2896 (language_defn::print_array_index): New member function.
2897 (LA_PRINT_ARRAY_INDEX): Update.
2898 (default_print_array_index): Delete declaration.
2899 * m2-lang.c (m2_language_data): Delete la_print_array_index
2900 initializer.
2901 * objc-lang.c (objc_language_data): Likewise.
2902 * opencl-lang.c (opencl_language_data): Likewise.
2903 * p-lang.c (pascal_language_data): Likewise.
2904 * rust-lang.c (rust_language_data): Likewise.
2905
2906 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2907
2908 * gdb/ada-lang.c (ada_language_defn): Convert to...
2909 (ada_language_data): ...this.
2910 (class ada_language): New class.
2911 (ada_language_defn): New static global.
2912 * gdb/c-lang.c (c_language_defn): Convert to...
2913 (c_language_data): ...this.
2914 (class c_language): New class.
2915 (c_language_defn): New static global.
2916 (cplus_language_defn): Convert to...
2917 (cplus_language_data): ...this.
2918 (class cplus_language): New class.
2919 (cplus_language_defn): New static global.
2920 (asm_language_defn): Convert to...
2921 (asm_language_data): ...this.
2922 (class asm_language): New class.
2923 (asm_language_defn): New static global.
2924 (minimal_language_defn): Convert to...
2925 (minimal_language_data): ...this.
2926 (class minimal_language): New class.
2927 (minimal_language_defn): New static global.
2928 * gdb/d-lang.c (d_language_defn): Convert to...
2929 (d_language_data): ...this.
2930 (class d_language): New class.
2931 (d_language_defn): New static global.
2932 * gdb/f-lang.c (f_language_defn): Convert to...
2933 (f_language_data): ...this.
2934 (class f_language): New class.
2935 (f_language_defn): New static global.
2936 * gdb/go-lang.c (go_language_defn): Convert to...
2937 (go_language_data): ...this.
2938 (class go_language): New class.
2939 (go_language_defn): New static global.
2940 * gdb/language.c (unknown_language_defn): Remove declaration.
2941 (current_language): Initialize to nullptr, real initialization is
2942 moved to _initialize_language.
2943 (languages): Delete global.
2944 (language_defn::languages): Define.
2945 (set_language_command): Use language_defn::languages.
2946 (set_language): Likewise.
2947 (range_error): Likewise.
2948 (language_enum): Likewise.
2949 (language_def): Likewise.
2950 (add_set_language_command): Use language_def::languages for the
2951 language list, and language_def to lookup language pointers.
2952 (skip_language_trampoline): Use language_defn::languages.
2953 (unknown_language_defn): Convert to...
2954 (unknown_language_data): ...this.
2955 (class unknown_language): New class.
2956 (unknown_language_defn): New static global.
2957 (auto_language_defn): Convert to...
2958 (auto_language_data): ...this.
2959 (class auto_language): New class.
2960 (auto_language_defn): New static global.
2961 (language_gdbarch_post_init): Use language_defn::languages.
2962 (_initialize_language): Initialize current_language.
2963 * gdb/language.h (struct language_defn): Rename to...
2964 (struct language_data): ...this.
2965 (struct language_defn): New.
2966 (auto_language_defn): Delete.
2967 (unknown_language_defn): Delete.
2968 (minimal_language_defn): Delete.
2969 (ada_language_defn): Delete.
2970 (asm_language_defn): Delete.
2971 (c_language_defn): Delete.
2972 (cplus_language_defn): Delete.
2973 (d_language_defn): Delete.
2974 (f_language_defn): Delete.
2975 (go_language_defn): Delete.
2976 (m2_language_defn): Delete.
2977 (objc_language_defn): Delete.
2978 (opencl_language_defn): Delete.
2979 (pascal_language_defn): Delete.
2980 (rust_language_defn): Delete.
2981 * gdb/m2-lang.c (m2_language_defn): Convert to...
2982 (m2_language_data): ...this.
2983 (class m2_language): New class.
2984 (m2_language_defn): New static global.
2985 * gdb/objc-lang.c (objc_language_defn): Convert to...
2986 (objc_language_data): ...this.
2987 (class objc_language): New class.
2988 (objc_language_defn): New static global.
2989 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2990 (opencl_language_data): ...this.
2991 (class opencl_language): New class.
2992 (opencl_language_defn): New static global.
2993 * gdb/p-lang.c (pascal_language_defn): Convert to...
2994 (pascal_language_data): ...this.
2995 (class pascal_language): New class.
2996 (pascal_language_defn): New static global.
2997 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2998 language pointer, update comment format.
2999 * gdb/rust-lang.c (rust_language_defn): Convert to...
3000 (rust_language_data): ...this.
3001 (class rust_language): New class.
3002 (rust_language_defn): New static global.
3003
3004 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3005
3006 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3007 member variable.
3008 <m_stmt_at_address>: New member variable.
3009 (lnp_state_machine::record_line): Don't record some lines, update
3010 tracking of is_stmt at the same address.
3011 (lnp_state_machine::lnp_state_machine): Initialise new member
3012 variables.
3013
3014 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3015
3016 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3017 "-include gnu-nat-mig.h".
3018 * gnu-nat-mig.h: New file.
3019 * gnu-nat.c: Include "gnu-nat-mig.h".
3020 (exc_server, msg_reply_server, notify_server,
3021 process_reply_server): Remove declarations.
3022
3023 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3024
3025 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3026 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3027 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3028 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3029 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3030 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3031 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3032 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3033 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3034 to gnu_nat_target class.
3035 * gnu-nat.c: Likewise.
3036 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3037 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3038 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3039 object.
3040 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3041 instead of `gnu_target'.
3042
3043 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3044
3045 * i386-gnu-tdep.c: Include "gdbcore.h"
3046 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3047 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3048 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3049 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3050 i386_gnu_sigcontext_addr): New functions
3051 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3052 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3053 tdep.
3054
3055 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3056
3057 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3058 before fork_inferior call. Avoid calling it if target_is_pushed returns
3059 true.
3060
3061 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3062
3063 * gnu-nat.h (gnu_target): New variable declaration.
3064 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3065 gnu_target.
3066 * gnu-nat.c (gnu_target): New variable.
3067 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3068 add_thread_silent, and add_thread calls.
3069 (gnu_nat_target::create_inferior): Pass gnu_target to
3070 add_thread_silent, thread_change_ptid call.
3071 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3072 call.
3073
3074 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3075
3076 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3077 (gnu_nat_target::find_memory_regions): Remove unused
3078 `old_address' variable.
3079
3080 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3081
3082 * gnu-nat.c: Include "gdbarch.h".
3083
3084 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3085
3086 * reply_mig_hack.awk (Error return): Cast function through
3087 void *, to bypass compiler function call check.
3088
3089 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3090
3091 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3092 $(srcdir)/reply_mig_hack.awk.
3093
3094 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3095
3096 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3097
3098 2020-05-30 Jonny Grant <jg@jguk.org>
3099
3100 * configure.ac (ACX_BUGURL): change bug URL to https.
3101
3102 2020-05-30 Pedro Alves <palves@redhat.com>
3103
3104 * cp-support.c (replace_typedefs_template): New.
3105 (replace_typedefs_qualified_name): Handle
3106 DEMANGLE_COMPONENT_TEMPLATE.
3107
3108 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3109
3110 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3111 dwarf2/index-cache.h, dwarf2/index-write.c,
3112 dwarf2/index-write.h, dwarf2/line-header.c,
3113 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3114 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3115 variables and fields from `dwarf2_per_objfile` to just
3116 `per_objfile` throughout.
3117
3118 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3119
3120 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3121 <push_dwarf_reg_entry_value>: Add comment.
3122
3123 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3124 Keith Seitz <keiths@redhat.com>
3125
3126 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3127 instead of PyEval_ReleaseLock.
3128 (class gdbpy_gil): Move to earlier in file.
3129 (finalize_python): Set gdb_python_initialized.
3130 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3131 when not initialized.
3132
3133 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3134
3135 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3136 <push_dwarf_reg_entry_value>: Remove assert. Override
3137 per_objfile with caller_per_objfile.
3138
3139 2020-05-28 Tom de Vries <tdevries@suse.de>
3140
3141 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3142 PR gold/15646 workaround to symbol kind "type".
3143
3144 2020-05-27 Tom Tromey <tromey@adacore.com>
3145
3146 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3147
3148 2020-05-27 Tom Tromey <tromey@adacore.com>
3149
3150 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3151 Use htab_find_with_hash.
3152 <add_abbrev>: Remove "abbrev_number" parameter.
3153 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3154 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3155 (hash_abbrev): Add comment.
3156 (abbrev_table::lookup_abbrev): Move to header file.
3157 (abbrev_table::read): Update.
3158
3159 2020-05-27 Tom Tromey <tromey@adacore.com>
3160
3161 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3162 method.
3163 <canonical_name>: New member.
3164 <raw_name>: Rename from "name".
3165 (partial_die_info): Initialize canonical_name.
3166 (scan_partial_symbols): Check raw_name.
3167 (partial_die_parent_scope, partial_die_full_name)
3168 (add_partial_symbol, add_partial_subprogram)
3169 (add_partial_enumeration, load_partial_dies): Use "name" method.
3170 (partial_die_info::name): New method.
3171 (partial_die_info::read, guess_partial_die_structure_name)
3172 (partial_die_info::fixup): Update.
3173
3174 2020-05-27 Tom Tromey <tromey@adacore.com>
3175
3176 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3177 <get_ref_die_offset>: Inline.
3178 <get_ref_die_offset_complaint>: New method.
3179 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3180 (attribute::get_ref_die_offset_complaint): Rename from
3181 get_ref_die_offset. Just issue complaint.
3182
3183 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3184
3185 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3186
3187 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3188
3189 * exec.c (exec_file_attach): Use errno value of first openp failure.
3190
3191 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3192
3193 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3194 Don't close thread handle.
3195
3196 2020-05-27 Tom Tromey <tom@tromey.com>
3197 Simon Marchi <simon.marchi@efficios.com>
3198
3199 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3200 shared_ptr.
3201 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3202 member.
3203 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3204 dwarf2_per_bfd_objfile_data_key>: New globals.
3205 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3206 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3207 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3208 shared.
3209 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3210 short-circuit when sharing.
3211 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3212 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3213
3214 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3215
3216 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3217 to...
3218 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3219 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3220
3221 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3222
3223 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3224 build_name_components, find_name_components_bounds>:
3225 Add per_objfile parameter.
3226 (struct mapped_index) <symbol_name_at>: Likewise.
3227 (struct mapped_debug_names): Remove constructor.
3228 <dwarf2_per_objfile>: Remove field.
3229 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3230 (mapped_index_base::find_name_components_bounds,
3231 mapped_index_base::build_name_components,
3232 dw2_expand_symtabs_matching_symbol): Likewise.
3233 (class mock_mapped_index) <symbol_name_at>: Likewise.
3234 (check_match): Likewise.
3235 (check_find_bounds_finds): Likewise.
3236 (test_mapped_index_find_name_component_bounds): Update.
3237 (CHECK_MATCH): Update.
3238 (dw2_expand_symtabs_matching): Update.
3239 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3240 per_objfile parameter.
3241 <find_vec_in_debug_names>: Likewise.
3242 <m_per_objfile>: New field.
3243 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3244 parameter.
3245 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3246 (dw2_debug_names_iterator::next): Update.
3247 (dw2_debug_names_lookup_symbol): Update.
3248 (dw2_debug_names_expand_symtabs_for_function): Update.
3249 (dw2_debug_names_map_matching_symbols): Update.
3250 (dw2_debug_names_expand_symtabs_matching): Update.
3251 (dwarf2_read_debug_names): Update.
3252
3253 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3254
3255 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3256 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3257 move to dwarf2_per_objfile.
3258 <read_in_chain>: Remove.
3259 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3260 remove_all_cus, age_comp_units>: New methods.
3261 <m_dwarf2_cus>: New member.
3262 (struct dwarf2_per_cu_data) <cu>: Remove.
3263 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3264 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3265 moved to methods of dwarf2_per_objfile.
3266 (dwarf2_clear_marks): Remove.
3267 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3268 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3269 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3270 (dwarf2_per_objfile::remove_all_cus): New.
3271 (class free_cached_comp_units) <~free_cached_comp_units>:
3272 Update.
3273 (load_cu): Update.
3274 (dw2_do_instantiate_symtab): Adjust.
3275 (fill_in_sig_entry_from_dwo_entry): Adjust.
3276 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3277 (cutu_reader::cutu_reader): Likewise.
3278 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3279 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3280 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3281 and dwarf2_per_objfile::age_comp_units.
3282 (load_partial_comp_unit): Update.
3283 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3284 (process_queue): Likewise.
3285 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3286 backlink.
3287 (dwarf2_read_addr_index): Likewise.
3288 (follow_die_offset): Likewise.
3289 (dwarf2_fetch_die_loc_sect_off): Likewise.
3290 (dwarf2_fetch_constant_bytes): Likewise.
3291 (dwarf2_fetch_die_type_sect_off): Likewise.
3292 (follow_die_sig_1): Likewise.
3293 (load_full_type_unit): Likewise.
3294 (read_signatured_type): Likewise.
3295 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3296 (dwarf2_cu::~dwarf2_cu): Remove.
3297 (dwarf2_per_objfile::get_cu): New.
3298 (dwarf2_per_objfile::set_cu): New.
3299 (age_cached_comp_units): Rename to...
3300 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3301 to std::unordered_map.
3302 (free_one_cached_comp_unit): Rename to...
3303 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3304 to std::unordered_map.
3305 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3306 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3307 a dwarf2_per_objfile in data.
3308 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3309 (dwarf2_clear_marks): Remove.
3310
3311 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3312
3313 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3314 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3315 (init_tu_and_read_dwo_dies): Likewise.
3316 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3317 (cutu_reader::cutu_reader): Likewise.
3318 (load_partial_comp_unit): Likewise.
3319 (process_psymtab_comp_unit): Update.
3320 (build_type_psymtabs_1): Update.
3321 (process_skeletonless_type_unit): Update.
3322 (load_full_comp_unit): Update.
3323 (find_partial_die): Update.
3324 (dwarf2_read_addr_index): Update.
3325 (read_signatured_type): Update.
3326
3327 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3328
3329 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3330 m_header_read_in>: New fields.
3331 <get_header>: New method.
3332 * dwarf2/read.c (per_cu_header_read_in): Remove.
3333 (dwarf2_per_cu_data::get_header): New.
3334 (dwarf2_per_cu_data::addr_size): Update.
3335 (dwarf2_per_cu_data::offset_size): Update.
3336 (dwarf2_per_cu_data::ref_addr_size): Update.
3337
3338 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3339
3340 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3341 (dw2_do_instantiate_symtab): Update.
3342 (queue_and_load_all_dwo_tus): Change parameter from
3343 dwarf2_per_cu_data to dwarf2_cu.
3344 (dwarf2_fetch_die_loc_sect_off): Update.
3345 (dwarf2_fetch_constant_bytes): Update.
3346 (dwarf2_fetch_die_type_sect_off): Update.
3347
3348 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3349
3350 * dwarf2/read.c (process_full_comp_unit,
3351 process_full_type_unit): Remove per_cu, per_objfile paramters.
3352 Add dwarf2_cu parameter.
3353 (process_queue): Update.
3354
3355 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3356
3357 * dwarf2/read.c (create_cu_from_index_list): Replace
3358 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3359 (create_cus_from_index_list): Likewise.
3360 (create_cus_from_index): Likewise.
3361 (create_signatured_type_table_from_index): Likewise.
3362 (create_cus_from_debug_names_list): Likewise.
3363 (create_cus_from_debug_names): Likewise.
3364 (dwarf2_read_gdb_index): Update.
3365 (dwarf2_read_debug_names): Update.
3366
3367 2020-05-27 Tom Tromey <tom@tromey.com>
3368 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * dwarf2/read.h (struct dwarf2_per_objfile)
3371 <get_type_for_signatured_type, set_type_for_signatured_type>:
3372 New methods.
3373 <m_type_map>: New member.
3374 (struct signatured_type) <type>: Remove.
3375 * dwarf2/read.c
3376 (dwarf2_per_objfile::get_type_for_signatured_type,
3377 dwarf2_per_objfile::set_type_for_signatured_type): New.
3378 (get_signatured_type): Use new methods.
3379
3380 2020-05-27 Tom Tromey <tom@tromey.com>
3381 Simon Marchi <simon.marchi@efficios.com>
3382
3383 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3384 (struct dwarf2_per_objfile) <type_units>: New member.
3385 <get_type_unit_group_unshareable>: New method.
3386 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3387 num_symtabs, symtabs>: Remove; move to
3388 type_unit_group_unshareable.
3389 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3390 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3391 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3392
3393 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3394
3395 * dwarf2/read.h (struct dwarf2_per_cu_data):
3396 <dwarf2_per_objfile>: Remove.
3397 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3398 dwarf2_per_objfile.
3399 (create_signatured_type_table_from_index): Likewise.
3400 (create_signatured_type_table_from_debug_names): Likewise.
3401 (create_debug_type_hash_table): Likewise.
3402 (fill_in_sig_entry_from_dwo_entry): Likewise.
3403 (create_type_unit_group): Likewise.
3404 (read_comp_units_from_section): Likewise.
3405 (create_cus_hash_table): Likewise.
3406
3407 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3408
3409 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3410 dwarf2_per_cu_data::dwarf2_per_objfile.
3411 (compute_compunit_symtab_includes): Likewise.
3412 (dwarf2_cu::start_symtab): Likewise.
3413
3414 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3415
3416 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3417 parameter.
3418 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3419 (read_namespace_alias): Update.
3420 (lookup_die_type): Update.
3421 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3422 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3423 Update.
3424 (disassemble_dwarf_expression): Update.
3425
3426 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3427
3428 * dwarf2/read.h (struct dwarf2_queue_item): Add
3429 dwarf2_per_objfile parameter, assign new parameter.
3430 <per_objfile>: New field.
3431 * dwarf2/read.c (free_one_cached_comp_unit): Add
3432 dwarf2_per_objfile parameter.
3433 (queue_comp_unit): Likewise.
3434 (dw2_do_instantiate_symtab): Update.
3435 (process_psymtab_comp_unit): Update.
3436 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3437 (process_imported_unit_die): Update.
3438 (queue_and_load_dwo_tu): Update.
3439 (follow_die_offset): Update.
3440 (follow_die_sig_1): Update.
3441
3442 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3443
3444 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3445 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3446 (read_call_site_scope): Assign per_objfile.
3447 (dwarf2_per_cu_data::objfile): Remove.
3448 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3449 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3450 dwarf2_per_objfile parameter.
3451 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3452 dwarf2_per_objfile parameter.
3453 (dwarf_expr_reg_to_entry_parameter): Add output
3454 dwarf2_per_objfile parameter.
3455 (locexpr_get_frame_base): Update.
3456 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3457 <push_dwarf_reg_entry_value>: Update.
3458 <call_site_to_target_addr>: Update.
3459 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3460 parameter.
3461 (value_of_dwarf_reg_entry): Update.
3462 (rw_pieced_value): Update.
3463 (indirect_synthetic_pointer): Update.
3464 (dwarf2_evaluate_property): Update.
3465 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3466 parameter.
3467 (locexpr_read_variable): Update.
3468 (locexpr_get_symbol_read_needs): Update.
3469 (loclist_read_variable): Update.
3470
3471 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3472
3473 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3474 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3475 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3476 parameter.
3477 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3478 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3479 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3480 parameter.
3481 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3482 sect_variable_value): Add dwarf2_per_objfile parameter.
3483 (class dwarf_evaluate_loc_desc) <dwarf_call,
3484 dwarf_variable_value>: Update.
3485 (fetch_const_value_from_synthetic_pointer): Add
3486 dwarf2_per_objfile parameter.
3487 (fetch_const_value_from_synthetic_pointer): Update.
3488 (coerced_pieced_ref): Update.
3489 (class symbol_needs_eval_context) <dwarf_call,
3490 dwarf_variable_value>: Update.
3491 (dwarf2_compile_expr_to_ax): Update.
3492
3493 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3494
3495 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3496 parameter.
3497 (dwarf2_evaluate_loc_desc_full): Update.
3498
3499 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3500
3501 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3502 parameter.
3503 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3504 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3505 dwarf2_per_objfile parameter.
3506 (decode_debug_loc_dwo_addresses): Likewise.
3507 (dwarf2_find_location_expression): Update.
3508 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3509 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3510 parameter.
3511 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3512 parameter.
3513 (locexpr_describe_location_1): Likewise.
3514 (locexpr_describe_location): Update.
3515
3516 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3517
3518 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3519 Remove.
3520 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3521 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3522 (dwarf2_compile_property_to_c): Update.
3523 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3524 use text offset from objfile.
3525 (locexpr_tracepoint_var_ref): Update.
3526 (locexpr_generate_c_location): Update.
3527 (loclist_describe_location): Update.
3528 (loclist_tracepoint_var_ref): Update.
3529 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3530 dwarf2_per_objfile parameter.
3531 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3532 use text offset from objfile.
3533 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3534
3535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3536
3537 * dwarf2/expr.h (struct dwarf_expr_context)
3538 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3539 <offset>: Remove.
3540 <per_objfile>: New member.
3541 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3542 dwarf2_per_objfile parameter. Don't set offset, set
3543 per_objfile.
3544 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3545 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3546 a dwarf2_per_objfile object instead of an offset.
3547 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3548 constructor.
3549 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3550 to dwarf2_expr_executor constructor. Don't set offset.
3551 (dwarf2_fetch_cfa_info): Update.
3552 (struct dwarf2_frame_cache) <text_offset>: Remove.
3553 <per_objfile>: New field.
3554 (dwarf2_frame_cache): Update.
3555 (dwarf2_frame_prev_register): Update.
3556 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3557 <dwarf_evaluate_loc_desc>: Add constructor.
3558 (dwarf2_evaluate_loc_desc_full): Update.
3559 (dwarf2_locexpr_baton_eval): Update.
3560 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3561 Add constructor.
3562 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3563
3564 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3565
3566 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3567 addr_sized_int_type>: Move to dwarf2_cu.
3568 <int_type>: Move to dwarf2_per_objfile.
3569 (struct dwarf2_per_objfile) <int_type>: Move here.
3570 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3571 addr_sized_int_type>: Move here.
3572 (read_func_scope): Update.
3573 (read_array_type): Update.
3574 (read_tag_string_type): Update.
3575 (attr_to_dynamic_prop): Update.
3576 (dwarf2_per_cu_data::int_type): Rename to...
3577 (dwarf2_per_objfile::int_type): ... this.
3578 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3579 (dwarf2_cu::addr_sized_int_type): ... this.
3580 (read_subrange_type): Update.
3581 (dwarf2_per_cu_data::addr_type): Rename to...
3582 (dwarf2_cu::addr_type): ... this.
3583 (set_die_type): Update.
3584
3585 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3586
3587 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3588 data through per_cu->cu.
3589
3590 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3591
3592 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3593 dwarf2_per_cu_data parameter fo dwarf2_cu.
3594 (lookup_dwo_type_unit): Likewise.
3595 (read_cutu_die_from_dwo): Likewise.
3596 (lookup_dwo_unit): Likewise.
3597 (open_and_init_dwo_file): Likewise.
3598 (lookup_dwo_cutu): Likewise.
3599 (lookup_dwo_comp_unit): Likewise.
3600 (lookup_dwo_type_unit): Likewise.
3601 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3602 (cutu_reader::cutu_reader): Update.
3603
3604 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3605
3606 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3607 parameter.
3608 (process_full_type_unit): Likewise.
3609 (process_queue): Update.
3610
3611 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3612
3613 * dwarf2/read.c (recursively_compute_inclusions): Add
3614 dwarf2_per_objfile parameter.
3615 (compute_compunit_symtab_includes): Likewise.
3616 (process_cu_includes): Update.
3617
3618 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3619
3620 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3621 parameter.
3622 (create_type_unit_group): Update.
3623 (process_psymtab_comp_unit_reader): Update.
3624 (build_type_psymtabs_reader): Update.
3625
3626 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3627
3628 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3629 object through m_this_cu->cu.
3630
3631 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3632
3633 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3634 the info parameter.
3635 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3636
3637 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3638
3639 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3640 per_objfile parameter.
3641 (load_full_type_unit): Add per_objfile parameter.
3642 (read_signatured_type): Likewise.
3643 (load_full_comp_unit): Likewise.
3644 (load_cu): Likewise.
3645 (dw2_do_instantiate_symtab): Likewise.
3646 (dw2_get_file_names): Likewise.
3647 (dw2_map_symtabs_matching_filename): Update.
3648 (dw_expand_symtabs_matching_file_matcher): Update.
3649 (dw2_map_symbol_filenames): Update.
3650 (process_psymtab_comp_unit): Add per_objfile parameter.
3651 (build_type_psymtabs_1): Update.
3652 (process_skeletonless_type_unit): Update.
3653 (dwarf2_build_psymtabs_hard): Update.
3654 (load_partial_comp_unit): Add per_objfile parameter.
3655 (scan_partial_symbols): Update.
3656 (load_full_comp_unit): Add per_objfile parameter.
3657 (process_imported_unit_die): Update.
3658 (create_cus_hash_table): Update.
3659 (find_partial_die): Update.
3660 (dwarf2_read_addr_index): Update.
3661 (follow_die_offset): Update.
3662 (dwarf2_fetch_die_loc_sect_off): Update.
3663 (dwarf2_fetch_constant_bytes): Update.
3664 (dwarf2_fetch_die_type_sect_off): Update.
3665 (follow_die_sig_1): Update.
3666 (load_full_type_unit): Add per_objfile parameter.
3667 (read_signatured_type): Likewise.
3668
3669 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3670
3671 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3672 of objfile_name.
3673
3674 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3675
3676 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3677 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3678 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3679 field.
3680 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3681 (create_cus_from_index): Update.
3682 (dwarf2_read_gdb_index): Update.
3683 (create_cus_from_debug_names): Update.
3684 (dwarf2_read_debug_names): Update.
3685 (get_abbrev_section_for_cu): Update.
3686 (create_all_comp_units): Update.
3687 (read_attribute_value): Update.
3688 (get_debug_line_section): Update.
3689 * dwarf2/index-cache.c (index_cache::store): Update.
3690 * dwarf2/index-write.c (save_gdb_index_command): Update.
3691 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3692
3693 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3694
3695 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3696 member.
3697 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3698 dwarf2_per_cu_data::per_bfd.
3699 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3700 (create_type_unit_group): Likewise.
3701 (queue_comp_unit): Remove reference to
3702 per_cu->dwarf2_per_objfile.
3703 (maybe_queue_comp_unit): Likewise.
3704 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3705 (create_cus_hash_table): Assign new field.
3706
3707 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * dwarf2/read.c: Replace
3710 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3711 dwarf2_cu->per_objfile throughout.
3712
3713 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3714
3715 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3716 parameter, don't use per_cu->dwarf2_per_objfile.
3717 (dw2_instantiate_symtab): Likewise.
3718 (dw2_find_last_source_symtab): Update.
3719 (dw2_map_expand_apply): Update.
3720 (dw2_lookup_symbol): Update.
3721 (dw2_expand_symtabs_for_function): Update.
3722 (dw2_expand_all_symtabs): Update.
3723 (dw2_expand_symtabs_with_fullname): Update.
3724 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3725 don't use per_cu->dwarf2_per_objfile.
3726 (dw2_expand_marked_cus): Update.
3727 (dw2_find_pc_sect_compunit_symtab): Update.
3728 (dw2_debug_names_lookup_symbol): Update.
3729 (dw2_debug_names_expand_symtabs_for_function): Update.
3730 (dw2_debug_names_map_matching_symbols): Update.
3731 (dwarf2_psymtab::expand_psymtab): Update.
3732
3733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3734
3735 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3736 <per_objfile>: New member.
3737 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3738 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3739 call to dwarf2_cu.
3740 (cutu_reader::cutu_reader): Update.
3741 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3742
3743 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3744
3745 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3746 struct dwarf2_per_objfile.
3747 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3748 dwarf2_per_bfd.
3749 * dwarf2/read.c (set_die_type): Update.
3750 (get_die_type_at_offset): Update.
3751
3752 2020-05-27 Tom Tromey <tom@tromey.com>
3753 Simon Marchi <simon.marchi@efficios.com>
3754
3755 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3756 method.
3757 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3758 get_symtab, set_symtab>: New methods.
3759 <m_symtabs>: New field.
3760 (struct dwarf2_psymtab): Derive from partial_symtab.
3761 <readin_p, get_compunit_symtab>: Declare methods.
3762 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3763 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3764 New methods.
3765 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3766 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3767 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3768 (dw2_symtab_iter_next, dw2_print_stats)
3769 (dw2_expand_symtabs_with_fullname)
3770 (dw2_expand_symtabs_matching_one)
3771 (dw_expand_symtabs_matching_file_matcher)
3772 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3773 (dw2_debug_names_iterator::next)
3774 (dw2_debug_names_map_matching_symbols)
3775 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3776 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3777 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3778 New methods.
3779 (get_compunit_symtab, process_full_comp_unit)
3780 (process_full_type_unit): Update.
3781 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3782
3783 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3784
3785 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3786 then introduce a new dwarf2_per_objfile type.
3787 <read_line_string>: Move to the new dwarf2_per_objfile type.
3788 <objfile>: Likewise.
3789 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3790 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3791 dwarf2_per_objfile->per_bfd.
3792 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3793 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3794 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3795 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3796 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3797 (dwarf2_per_objfile::locate_sections): Rename to...
3798 (dwarf2_per_bfd::locate_sections): ... this.
3799 (dwarf2_per_objfile::get_cutu): Rename to...
3800 (dwarf2_per_bfd::get_cutu): ... this.
3801 (dwarf2_per_objfile::get_cu): Rename to...
3802 (dwarf2_per_bfd::get_cu): ... this.
3803 (dwarf2_per_objfile::get_tu): Rename to...
3804 (dwarf2_per_bfd::get_tu): ... this.
3805 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3806 (dwarf2_per_bfd::allocate_per_cu): ... this.
3807 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3808 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3809 (get_gdb_index_contents_ftype): Change parameter from
3810 dwarf2_per_objfile to dwarf2_per_bfd.
3811 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3812 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3813
3814 2020-05-27 Tom Tromey <tom@tromey.com>
3815 Simon Marchi <simon.marchi@efficios.com>
3816
3817 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3818 (allocate_piece_closure): Set "per_objfile" member.
3819 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3820 (locexpr_describe_location, loclist_describe_location): Use new
3821 member.
3822 * dwarf2/read.c (read_call_site_scope)
3823 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3824 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3825 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3826 handle_data_member_location): Set per_objfile member.
3827 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3828 member.
3829 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3830
3831 2020-05-27 Tom Tromey <tom@tromey.com>
3832
3833 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3834 allocate_signatured_type>: Declare new methods.
3835 <m_num_psymtabs>: New member.
3836 (struct dwarf2_per_cu_data) <index>: New member.
3837 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3838 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3839 (create_cu_from_index_list): Use allocate_per_cu.
3840 (create_signatured_type_table_from_index)
3841 (create_signatured_type_table_from_debug_names)
3842 (create_debug_type_hash_table, add_type_unit)
3843 (read_comp_units_from_section): Use allocate_signatured_type.
3844
3845 2020-05-27 Tom Tromey <tom@tromey.com>
3846
3847 * psymtab.c (partial_map_expand_apply)
3848 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3849 (psym_lookup_global_symbol_language)
3850 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3851 (psym_print_stats, psym_expand_symtabs_for_function)
3852 (psym_map_symbol_filenames, psym_map_matching_symbols)
3853 (psym_expand_symtabs_matching)
3854 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3855 (maintenance_check_psymtabs): Update.
3856 * psympriv.h (struct partial_symtab) <readin_p,
3857 get_compunit_symtab>: Add objfile parameter.
3858 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3859 Likewise.
3860 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3861 get_compunit_symtab>: Likewise.
3862 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3863
3864 2020-05-27 Tom Tromey <tom@tromey.com>
3865
3866 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3867 member.
3868 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3869 (create_cu_from_index_list)
3870 (create_signatured_type_table_from_index)
3871 (create_signatured_type_table_from_debug_names)
3872 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3873 (dwarf2_create_include_psymtab)
3874 (create_debug_type_hash_table, add_type_unit)
3875 (create_type_unit_group, read_comp_units_from_section)
3876 (dwarf2_compute_name, create_cus_hash_table)
3877 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3878 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3879 obstack.
3880 (dw2_get_real_path): Likewise. Change argument to
3881 dwarf2_per_objfile.
3882
3883 2020-05-27 Luis Machado <luis.machado@linaro.org>
3884
3885 PR tdep/26000
3886 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3887 for ldrd (immediate).
3888
3889 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3890
3891 * command.h: Add comment giving the name of class_tui.
3892 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3893 create the fake command for the help for class_tui.
3894
3895 2020-05-26 Tom Tromey <tromey@adacore.com>
3896
3897 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3898 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3899 (val_atr): New function.
3900 (value_val_atr): Use it.
3901 * ada-valprint.c (print_optional_low_bound): Change low bound
3902 handling for enums.
3903 (val_print_packed_array_elements): Don't call discrete_position.
3904 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3905 discrete_position for enum types.
3906 * language.c (default_print_array_index): Change type.
3907 * language.h (struct language_defn) <la_print_array_index>: Add
3908 index_type parameter, change type of index_value.
3909 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3910 (default_print_array_index): Update.
3911 * valprint.c (maybe_print_array_index): Don't call
3912 value_from_longest. Update.
3913 (value_print_array_elements): Don't call discrete_position.
3914
3915 2020-05-26 Tom Tromey <tromey@adacore.com>
3916
3917 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3918 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3919
3920 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3921
3922 PR gdb/13519
3923 * avr-tdep.c (avr_integer_to_address): Return data or code
3924 address accordingly to the second 'type' argument of the
3925 function.
3926
3927 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3928
3929 * infcmd.c, inferior.h: (construct_inferior_arguments):
3930 Moved function from here to gdbsupport/common-inferior.{h,cc}
3931
3932 2020-05-23 Tom Tromey <tom@tromey.com>
3933
3934 Revert commit eca1f90c:
3935 * NEWS: Remove entry for completion styling.
3936 * completer.c (_rl_completion_prefix_display_length): Move
3937 declaration later.
3938 (gdb_fnprint): Revert.
3939 (gdb_display_match_list_1): Likewise.
3940 * cli/cli-style.c (completion_prefix_style)
3941 (completion_difference_style, completion_suffix_style): Remove.
3942 (_initialize_cli_style): Revert.
3943 * cli/cli-style.h (completion_prefix_style)
3944 (completion_difference_style, completion_suffix_style): Don't
3945 declare.
3946
3947 2020-05-24 Pedro Alves <palves@redhat.com>
3948
3949 * symtab.c (completion_list_add_name): Return boolean indication
3950 of whether the symbol matched.
3951 (completion_list_add_symbol): Don't try to remove C++ aliases if
3952 the symbol didn't match in the first place.
3953 * symtab.h (completion_list_add_name): Return bool.
3954
3955 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3956
3957 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3958 type::field.
3959
3960 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3961
3962 GDB 9.2 released.
3963
3964 2020-05-23 Tom Tromey <tom@tromey.com>
3965
3966 * NEWS: Add entry for completion styling.
3967 * completer.c (_rl_completion_prefix_display_length): Move
3968 declaration earlier.
3969 (gdb_fnprint): Use completion_style.
3970 (gdb_display_match_list_1): Likewise.
3971 * cli/cli-style.c (completion_prefix_style)
3972 (completion_difference_style, completion_suffix_style): New
3973 globals.
3974 (_initialize_cli_style): Register new globals.
3975 * cli/cli-style.h (completion_prefix_style)
3976 (completion_difference_style, completion_suffix_style): Declare.
3977
3978 2020-05-23 Pedro Alves <palves@redhat.com>
3979
3980 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3981 (parse_escape): Use ISDIGIT instead of isdigit.
3982 (puts_debug): Use gdb_isprint instead of isprint.
3983 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3984 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3985 ISSPACE instead of isspace.
3986 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3987 instead of isspace.
3988 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3989 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3990 instead of isxdigit and ISDIGIT instead of isdigit.
3991
3992 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * gdbtypes.h (struct type) <field>: New method.
3995 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3996 or type::field.
3997
3998 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3999
4000 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4001 (TYPE_FIELDS): Use type::fields. Change all call sites that
4002 modify the propery to use type::set_fields instead.
4003
4004 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4005
4006 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4007 type::num_fields instead.
4008
4009 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4012 methods.
4013 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4014 that modify the number of fields to use type::set_num_fields
4015 instead.
4016
4017 2020-05-22 Tom Tromey <tromey@adacore.com>
4018
4019 * compile/compile-object-load.h (munmap_list_free): Don't
4020 declare.
4021
4022 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4023
4024 * annotate.c (annotate_source_line): Update return type, add call
4025 to update current symtab and line.
4026 * annotate.h (annotate_source_line): Update return type, and
4027 extend header comment.
4028 * source.c (info_line_command): Check annotation_level before
4029 calling annotate_source_line.
4030 * stack.c (print_frame_info): If calling annotate_source_line
4031 returns true, then don't print any other source line information.
4032
4033 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4034
4035 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4036
4037 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4038
4039 * coffread.c (patch_type): Remove NULL check before xfree.
4040 * corefile.c (set_gnutarget): Likewise.
4041 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4042 * exec.c (build_section_table): Likewise.
4043 * remote.c (remote_target::pass_signals): Likewise.
4044 * utils.c (n_spaces): Likewise.
4045 * cli/cli-script.c (document_command): Likewise.
4046 * i386-windows-tdep.c (core_process_module_section): Likewise.
4047 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4048
4049 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4050
4051 * symfile.c (reread_symbols): Clear objfile's section_offsets
4052 vector and section indices, re-compute them by calling
4053 sym_offsets.
4054
4055 2020-05-20 Tom Tromey <tromey@adacore.com>
4056
4057 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4058 (desc_one_bound, desc_index_type): Compute field name.
4059
4060 2020-05-20 Tom de Vries <tdevries@suse.de>
4061
4062 PR symtab/25833
4063 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4064
4065 2020-05-20 Alan Modra <amodra@gmail.com>
4066
4067 PR 25993
4068 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4069 bfd_set_filename.
4070 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4071 passed to bfd_set_filename.
4072 * symfile-mem.c (add_vsyscall_page): Likewise for string
4073 passed to symbol_file_add_from_memory.
4074 (symbol_file_add_from_memory): Make name param a const char* and
4075 don't strdup.
4076
4077 2020-05-20 Alan Modra <amodra@gmail.com>
4078
4079 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4080 rather than accessing bfd->filename directly.
4081 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4082 and use bfd_section_name.
4083 * dwarf2/frame.c (decode_frame_entry): Likewise.
4084 * exec.c (exec_set_section_address): Likewise.
4085 * solib-aix.c (solib_aix_bfd_open): Likewise.
4086 * stap-probe.c (get_stap_base_address): Likewise.
4087 * symfile.c (reread_symbols): Likewise.
4088
4089 2020-05-19 Tom Tromey <tromey@adacore.com>
4090
4091 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4092
4093 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4096
4097 2020-05-19 Pedro Alves <palves@redhat.com>
4098
4099 * NEWS (set exec-file-mismatch): Adjust entry.
4100 * exec.c: Include "build-id.h".
4101 (validate_exec_file): Try to match build IDs instead of filenames.
4102 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4103 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4104 and pass down 'warn_if_slow'.
4105 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4106 gdb_bfd_open_closure to pass it down.
4107 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4108
4109 2020-05-19 Pedro Alves <palves@redhat.com>
4110
4111 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4112 * target.c (target_fileio_open_1): Rename to target_fileio_open
4113 and make extern. Use bool.
4114 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4115 (target_fileio_read_alloc_1): Adjust.
4116 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4117 (target_fileio_open_warn_if_slow): Delete declaration.
4118
4119 2020-05-19 Pedro Alves <palves@redhat.com>
4120
4121 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4122 Adjust all callers.
4123
4124 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4125
4126 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4127 whether disp is negative.
4128
4129 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4130
4131 * symfile.h (struct symfile_segment_data)
4132 <~symfile_segment_data>: Remove.
4133 <segment_info>: Change to std::vector.
4134 * symfile.c (default_symfile_segments): Update.
4135 * elfread.c (elf_symfile_segments): Update.
4136
4137 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4138
4139 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4140 <segments>: New.
4141 <segment_bases, segment_sizes>: Remove.
4142 * symfile.c (default_symfile_segments): Update.
4143 * elfread.c (elf_symfile_segments): Update.
4144 * remote.c (remote_target::get_offsets): Update.
4145 * solib-target.c (solib_target_relocate_section_addresses):
4146 Update.
4147
4148 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4149
4150 * symfile.h (struct symfile_segment_data): Initialize fields.
4151 <~symfile_segment_data>: Add.
4152 (symfile_segment_data_up): New.
4153 (struct sym_fns) <sym_segments>: Return a
4154 symfile_segment_data_up.
4155 (default_symfile_segments): Return a symfile_segment_data_up.
4156 (free_symfile_segment_data): Remove.
4157 (get_symfile_segment_data): Return a symfile_segment_data_up.
4158 * symfile.c (default_symfile_segments): Likewise.
4159 (get_symfile_segment_data): Likewise.
4160 (free_symfile_segment_data): Remove.
4161 (symfile_find_segment_sections): Update.
4162 * elfread.c (elf_symfile_segments): Return a
4163 symfile_segment_data_up.
4164 * remote.c (remote_target::get_offsets): Update.
4165 * solib-target.c (solib_target_relocate_section_addresses):
4166 Update.
4167 * symfile-debug.c (debug_sym_segments): Return a
4168 symfile_segment_data_up.
4169
4170 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4171
4172 PR build/25981
4173 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4174 Hardcode register numbers.
4175
4176 PR build/25981
4177 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4178 procfs_find_LDT_entry): Remove.
4179 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4180 procfs_find_LDT_entry): Remove.
4181 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4182 Remove.
4183
4184 2020-05-17 Pedro Alves <palves@redhat.com>
4185 Andrew Burgess <andrew.burgess@embecosm.com>
4186 Keno Fischer <keno@juliacomputing.com>
4187
4188 PR gdb/25741
4189 * breakpoint.c (build_target_condition_list): Update comments.
4190 (build_target_command_list): Update comments and skip matching
4191 locations.
4192 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4193 a separate function. Simplify "set breakpoint auto-hw off"
4194 handling.
4195 (insert_breakpoints): Update comment.
4196 (tracepoint_locations_match): New parameter. For breakpoints,
4197 compare location types too, if the caller wants to.
4198 (handle_automatic_hardware_breakpoints): New functions.
4199 (bp_location_is_less_than): Also sort by location type and
4200 hardware breakpoint length.
4201 (update_global_location_list): Handle "set breakpoint auto-hw on"
4202 here.
4203 (update_breakpoint_locations): Ask breakpoint_locations_match to
4204 ignore location types.
4205
4206 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4209 type::name instead.
4210
4211 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4212
4213 * gdbtypes.h (struct type) <name, set_name>: New methods.
4214 (TYPE_CODE): Use type::name. Change all call sites used to set
4215 the name to use type::set_name instead.
4216
4217 2020-05-16 Tom Tromey <tom@tromey.com>
4218
4219 * top.c (quit_force): Update.
4220 * infrun.c (handle_no_resumed): Update.
4221 * top.h (all_uis): New function.
4222 (ALL_UIS): Remove.
4223
4224 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4225
4226 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4227
4228 2020-05-16 Pedro Alves <palves@redhat.com>
4229
4230 * ia64-linux-nat.c
4231 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4232 Declare method.
4233 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4234
4235 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4236
4237 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4238 (sparc64_adi_info): Likewise.
4239
4240 2020-05-15 Tom Tromey <tom@tromey.com>
4241
4242 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4243 block_objfile.
4244 (lookup_objfile_from_block): Remove.
4245 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4246 (lookup_global_symbol): Use block_objfile.
4247 * symtab.h (lookup_objfile_from_block): Don't declare.
4248 * printcmd.c (clear_dangling_display_expressions): Use
4249 block_objfile.
4250 * parse.c (operator_check_standard): Use block_objfile.
4251
4252 2020-05-15 Tom Tromey <tom@tromey.com>
4253
4254 * language.c (language_alloc_type_symbol): Set
4255 SYMBOL_SECTION.
4256 * symtab.c (initialize_objfile_symbol): Remove.
4257 (allocate_symbol): Remove.
4258 (allocate_template_symbol): Remove.
4259 * dwarf2/read.c (fixup_go_packaging): Use "new".
4260 (new_symbol): Use "new".
4261 (read_variable): Don't call initialize_objfile_symbol. Use
4262 "new".
4263 (read_func_scope): Use "new".
4264 * xcoffread.c (process_xcoff_symbol): Don't call
4265 initialize_objfile_symbol.
4266 (SYMBOL_DUP): Remove.
4267 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4268 "new".
4269 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4270 (allocate_template_symbol): Don't declare.
4271 (struct symbol): Add copy constructor. Change defaults.
4272 * jit.c (finalize_symtab): Use "new".
4273 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4274 Use "new".
4275 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4276 (common_block_end): Use "new".
4277 * mdebugread.c (parse_symbol): Use "new".
4278 (new_symbol): Likewise.
4279
4280 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4281
4282 * NEWS: Mention changes to help and apropos.
4283
4284 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4285
4286 * command.h (enum command_class): Improve comments, document
4287 that class_alias is for user-defined aliases, give the class
4288 name for each class, remove unused class_xdb.
4289 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4290 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4291 by a precise class.
4292 * infcmd.c (_initialize_infcmd): Likewise.
4293 * reverse.c (_initialize_reverse): Likewise.
4294 * stack.c (_initialize_stack): Likewise.
4295 * symfile.c (_initialize_symfile): Likewise.
4296 * tracepoint.c (_initialize_tracepoint): Likewise.
4297
4298 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4299
4300 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4301 when their aliased command is traversed.
4302 (help_cmd): Add fput_command_names_styled call to
4303 output command name and aliases when command has an alias.
4304
4305 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4306
4307 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4308 * cli/cli-decode.c (help_cmd_list): Declare as static,
4309 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4310 a command together with the command.
4311 (fput_command_name_styled, fput_command_names_styled): New functions.
4312 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4313 fput_command_name_styled.
4314 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4315 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4316
4317 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4318
4319 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4320 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4321 * command.h (cmd_show_list): Likewise.
4322 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4323 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4324
4325 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4326
4327 * unittests/command-def-selftests.c (traverse_command_structure):
4328 Verify all commands of a list have the same prefix command and
4329 that only the top cmdlist commands have a null prefix.
4330
4331 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4332
4333 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4334 as prefix, not one of its aliases.
4335 (set_cmd_prefix): Remove.
4336 (do_add_cmd): Centralize the setting of the prefix of a command, when
4337 command is defined after its full chain of prefix commands.
4338 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4339 (add_setshow_cmd_full): Likewise.
4340 (update_prefix_field_of_prefixed_commands): New function.
4341 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4342 update_prefix_field_of_prefixed_commands.
4343 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4344 addresses of remote_set_cmdlist and remote_show_cmdlist given
4345 as argument, not the address of an argument.
4346 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4347 * gdb/remote.c (_initialize_remote): Likewise.
4348
4349 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4350
4351 * cli/cli-cmds.c (alias_command): Check for an existing alias
4352 using lookup_cmd_composition, as valid_command_p is too strict
4353 and forbids aliases that are the prefix of an existing alias
4354 or command.
4355 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4356 command is properly recognised as a valid command.
4357
4358 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4359
4360 * unittests/help-doc-selftests.c: Rename to
4361 unittests/command-def-selftests.c
4362 * unittests/command-def-selftests.c (help_doc_tests): Update some
4363 comments.
4364 (command_structure_tests, traverse_command_structure): New namespace
4365 and function.
4366 (command_structure_invariants_tests): New function.
4367 (_initialize_command_def_selftests) Renamed from
4368 _initialize_help_doc_selftests, register command_structure_invariants
4369 selftest.
4370
4371 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4372
4373 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4374 an alias of 'show'.
4375
4376 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4377
4378 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4379 ada_is_fixed_point_type. Update all callers.
4380 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4381 all callers.
4382 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4383 Update all callers.
4384 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4385 print_fixed_point_type. Update all callers.
4386 * ada-valprint.c (ada_value_print_num): Replace call to
4387 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4388
4389 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4390
4391 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4392 processors.
4393 (cpu_supports_bts): Add CV_AMD case.
4394
4395 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4396 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * infrun.c (stop_all_threads): Collect multiple wait events at
4399 each pass.
4400
4401 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4404 type::code instead.
4405
4406 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4407
4408 * gdbtypes.h (struct type) <code, set_code>: New methods.
4409 (TYPE_CODE): Use type::code. Change all call sites used to set
4410 the code to use type::set_code instead.
4411
4412 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4413 Tom de Vries <tdevries@suse.de>
4414 Pedro Alves <palves@redhat.com>
4415
4416 PR threads/25478
4417 * infrun.c (stop_all_threads): Do NOT ignore
4418 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4419 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4420 received.
4421 (handle_no_resumed): Remove code handling a live inferior with no
4422 threads.
4423 * remote.c (has_single_non_exited_thread): New.
4424 (remote_target::update_thread_list): Do not delete a thread if is
4425 the last thread of the process.
4426 * thread.c (thread_select): Call delete_exited_threads instead of
4427 prune_threads.
4428
4429 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4430
4431 * infrun.c (stop_all_threads): Enable/disable thread events of all
4432 targets. Move a debug message denoting the end of the function
4433 into the SCOPED_EXIT block.
4434
4435 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4436
4437 * process-stratum-target.h: Include <set>.
4438 (all_non_exited_process_targets, switch_to_target_no_thread): New
4439 function declarations.
4440 * process-stratum-target.c (all_non_exited_process_targets)
4441 (switch_to_target_no_thread): New function implementations.
4442
4443 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4444
4445 * infrun.c (handle_inferior_event): Extract out a piece of code
4446 into...
4447 (mark_non_executing_threads): ...this new function.
4448
4449 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4450
4451 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4452 use.
4453
4454 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4455
4456 * regcache.c (regcache_read_pc_protected): New function
4457 implementation that returns 0 if the PC cannot read via
4458 'regcache_read_pc'.
4459 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4460 instead of 'regcache_read_pc'.
4461 (keep_going_pass_signal): Ditto.
4462
4463 2020-05-13 Tom Tromey <tromey@adacore.com>
4464
4465 * ada-lang.c (align_value): Remove.
4466 (ada_template_to_fixed_record_type_1): Use align_up.
4467
4468 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4469
4470 * async-event.c: Update the copyright year.
4471 * async-event.h: Update the copyright year.
4472
4473 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4474
4475 * objfiles.h (is_addr_in_objfile,
4476 shared_objfile_contains_address_p): Return bool.
4477 * objfile.c (is_addr_in_objfile,
4478 shared_objfile_contains_address_p): Return bool.
4479
4480 2020-05-11 Tom Tromey <tromey@adacore.com>
4481
4482 * cli/cli-cmds.c (info_command): Restore.
4483 (_initialize_cli_cmds): Use add_prefix_command for "info".
4484 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4485
4486 2020-05-11 Tom Tromey <tromey@adacore.com>
4487
4488 * ada-lang.c (ada_value_primitive_field): Now public.
4489 * ada-lang.h (ada_value_primitive_field): Declare.
4490 * ada-valprint.c (print_field_values): Use
4491 ada_value_primitive_field for wrapper fields.
4492
4493 2020-05-11 Tom de Vries <tdevries@suse.de>
4494
4495 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4496 MODULE_DOMAIN.
4497
4498 2020-05-11 Tom de Vries <tdevries@suse.de>
4499
4500 PR symtab/25941
4501 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4502 with length 0, if not gdb-produced.
4503 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4504
4505 2020-05-09 Tom de Vries <tdevries@suse.de>
4506
4507 PR gdb/25955
4508 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4509 calculation.
4510
4511 2020-05-09 Tom Tromey <tom@tromey.com>
4512
4513 * top.c (server_command): Now bool.
4514 * top.h (server_command): Now bool.
4515
4516 2020-05-08 Tom Tromey <tromey@adacore.com>
4517
4518 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4519 already being processed.
4520
4521 2020-05-08 Tom Tromey <tom@tromey.com>
4522
4523 * printcmd.c (struct display) <next>: Remove.
4524 <display>: New constructor.
4525 <exp_string>: Now a std::string.
4526 <enabled_p>: Now a bool.
4527 (display_number): Move definition earlier.
4528 (displays): Rename from display_chain. Now a std::vector.
4529 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4530 (display_command): Update.
4531 (do_one_display, disable_display)
4532 (enable_disable_display_command, do_enable_disable_display):
4533 Update.
4534 (free_display): Remove.
4535 (clear_displays): Rewrite.
4536 (delete_display): Update.
4537 (map_display_numbers): Use function_view. Remove "data"
4538 parameter. Update.
4539 (do_delete_display): Remove.
4540 (undisplay_command): Update.
4541 (do_one_display, do_displays, disable_display)
4542 (info_display_command): Update.
4543 (do_enable_disable_display): Remove.
4544 (enable_disable_display_command)
4545 (clear_dangling_display_expressions): Update.
4546
4547 2020-05-08 Tom Tromey <tom@tromey.com>
4548
4549 * symtab.c (set_symbol_cache_size)
4550 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4551 (maintenance_print_symbol_cache_statistics): Update.
4552 * symmisc.c (print_symbol_bcache_statistics)
4553 (print_objfile_statistics, maintenance_print_objfiles)
4554 (maintenance_info_symtabs, maintenance_check_symtabs)
4555 (maintenance_expand_symtabs, maintenance_info_line_tables):
4556 Update.
4557 * symfile-debug.c (set_debug_symfile): Update.
4558 * source.c (forget_cached_source_info): Update.
4559 * python/python.c (gdbpy_progspaces): Update.
4560 * psymtab.c (maintenance_info_psymtabs): Update.
4561 * probe.c (parse_probes): Update.
4562 * linespec.c (iterate_over_all_matching_symtabs)
4563 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4564 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4565 * exec.c (exec_target::close): Update.
4566 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4567 * breakpoint.c (print_one_breakpoint_location)
4568 (create_longjmp_master_breakpoint)
4569 (create_std_terminate_master_breakpoint): Update.
4570 * progspace.c (program_spaces): Now a std::vector.
4571 (maybe_new_address_space): Update.
4572 (add_program_space): Remove.
4573 (program_space::program_space): Update.
4574 (remove_program_space): Update.
4575 (number_of_program_spaces): Remove.
4576 (print_program_space, update_address_spaces): Update.
4577 * progspace.h (program_spaces): Change type.
4578 (ALL_PSPACES): Remove.
4579 (number_of_program_spaces): Don't declare.
4580 (struct program_space) <next>: Remove.
4581
4582 2020-05-08 Tom Tromey <tom@tromey.com>
4583
4584 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4585 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4586 (enable_break): Update.
4587 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4588 (frv_fdpic_find_canonical_descriptor): Update.
4589 (frv_fetch_objfile_link_map): Update.
4590 * progspace.c (program_space::free_all_objfiles): Update.
4591 (program_space::solibs): New method.
4592 * progspace.h (struct program_space) <solibs>: New method.
4593 * solist.h (master_so_list): Don't declare.
4594 (ALL_SO_LIBS): Remove.
4595 * solib.h (so_list_head): Remove.
4596 (update_solib_list): Update comment.
4597 * solib.c (master_so_list): Remove.
4598 (solib_used, update_solib_list, solib_add)
4599 (info_sharedlibrary_command, clear_solib)
4600 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4601
4602 2020-05-08 Tom Tromey <tom@tromey.com>
4603
4604 * extension.c (extension_languages): Now a std::array.
4605 (ALL_EXTENSION_LANGUAGES): Remove.
4606 (get_ext_lang_defn, get_ext_lang_of_file)
4607 (eval_ext_lang_from_control_command): Update.
4608 (finish_ext_lang_initialization)
4609 (auto_load_ext_lang_scripts_for_objfile)
4610 (ext_lang_type_printers::ext_lang_type_printers)
4611 (apply_ext_lang_type_printers)
4612 (ext_lang_type_printers::~ext_lang_type_printers)
4613 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4614 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4615 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4616 (get_matching_xmethod_workers, ext_lang_colorize)
4617 (ext_lang_before_prompt): Update.
4618 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4619
4620 2020-05-08 Tom Tromey <tom@tromey.com>
4621
4622 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4623 overload.
4624 <swap_string, m_string>: Remove.
4625 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4626 Update.
4627 * stabsread.c (define_symbol, read_type): Update.
4628 * linespec.c (find_linespec_symbols): Update.
4629 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4630 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4631 * dbxread.c (read_dbx_symtab): Update.
4632 * cp-support.h (cp_canonicalize_string_full)
4633 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4634 Return unique_xmalloc_ptr.
4635 * cp-support.c (inspect_type): Update.
4636 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4637 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4638 Likewise.
4639 * c-typeprint.c (print_name_maybe_canonical): Update.
4640 * break-catch-throw.c (check_status_exception_catchpoint):
4641 Update.
4642
4643 2020-05-08 Tom de Vries <tdevries@suse.de>
4644
4645 * infrun.c (follow_fork): Copy current_line and current_symtab to
4646 child thread.
4647
4648 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * async-event.c (struct async_signal_handler, struct
4651 async_event_handler): Reformat, remove typedef.
4652
4653 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4656 access thistype->main_type->dyn_prop_list directly.
4657
4658 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4659
4660 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4661 (remove_dyn_prop): Remove. Update all users to use
4662 type::remove_dyn_prop.
4663 * gdbtypes.c (remove_dyn_prop): Rename to...
4664 (type::remove_dyn_prop): ... this.
4665
4666 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4667
4668 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4669 (add_dyn_prop): Remove. Update all users to use
4670 type::add_dyn_prop.
4671 * gdbtypes.c (add_dyn_prop): Rename to...
4672 (type::add_dyn_prop): ... this.
4673
4674 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4677 (get_dyn_prop): Remove. Update all users to use
4678 type::dyn_prop.
4679 * gdbtypes.c (get_dyn_prop): Rename to...
4680 (type::dyn_prop): ... this.
4681
4682 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4683
4684 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4685
4686 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4689 instruction, skip it if it's there.
4690
4691 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4692
4693 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4694
4695 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4696
4697 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4698 * gdbtypes.c (recursive_dump_type): Remove use of
4699 TYPE_INCOMPLETE.
4700
4701 2020-05-03 Tom Tromey <tom@tromey.com>
4702
4703 * breakpoint.c (catch_command, tcatch_command): Remove.
4704 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4705 add_show_prefix_cmd.
4706 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4707 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4708 Remove.
4709 (add_internal_problem_command): Use add_basic_prefix_cmd,
4710 add_show_prefix_cmd.
4711 * mips-tdep.c (set_mipsfpu_command): Remove.
4712 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4713 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4714 (_initialize_index_cache): Use add_basic_prefix_cmd.
4715 * memattr.c (dummy_cmd): Remove.
4716 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4717 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4718 (_initialize_tui_win): Use add_basic_prefix_cmd,
4719 add_show_prefix_cmd.
4720 * cli/cli-logging.c (set_logging_command): Remove.
4721 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4722 add_show_prefix_cmd.
4723 (show_logging_command): Remove.
4724 * target.c (target_command): Remove.
4725 (add_target): Use add_basic_prefix_cmd.
4726
4727 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4728
4729 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4730
4731 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4732
4733 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4734 info_command.
4735
4736 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4737
4738 * nbsd-nat.c (nbsd_enable_proc_events)
4739 (nbsd_nat_target::post_startup_inferior): Add.
4740 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4741 (nbsd_nat_target::update_thread_list): Rewrite.
4742 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4743 "PTRACE_LWP_CREATE".
4744 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4745
4746 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4747
4748 * stack.c (_initialize_stack): Remove duplicated creation
4749 of "frame" command and "f" alias.
4750
4751 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4752
4753 PR gdb/18706
4754 * gdbtypes.c (check_typedef): Calculate size of array of
4755 stubbed type.
4756
4757 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4758
4759 PR gdb/15559
4760 * i386-tdep.c (i386_push_dummy_call): Call
4761 i386_thiscall_push_dummy_call.
4762 (i386_thiscall_push_dummy_call): New function.
4763 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4764 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4765 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4766
4767 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4768
4769 * gdbarch.sh (do_read): Add shellcheck disable directive for
4770 warning SC2162.
4771
4772 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4773
4774 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4775 "referenced but not assigned" warning.
4776
4777 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4778
4779 * gdbarch.sh: Remove code that sets fallbackdefault.
4780
4781 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4782
4783 * gdbarch.sh: Use shell operators && and || instead of
4784 -a and -o.
4785
4786 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4787
4788 * gdbarch.sh: Use $(...) instead of `...`.
4789
4790 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4791
4792 * gdbarch.sh: Use double quotes around variables.
4793
4794 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4795
4796 * gdbarch.sh: Use %s with printf, instead of variables in the
4797 format string.
4798
4799 2020-04-29 Tom Tromey <tromey@adacore.com>
4800
4801 PR ada/25875:
4802 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4803 type fields here.
4804 (read_enumeration_type): Call
4805 update_enumeration_type_from_children later. Update comments.
4806 (process_enumeration_scope): Don't create type fields.
4807
4808 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4809
4810 * nbsd-tdep.c: Include "xml-syscall.h".
4811 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4812
4813 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4814
4815 * nbsd-nat.c: Include "sys/wait.h".
4816 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4817 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4818 (nbsd_nat_target::remove_exec_catchpoint)
4819 (nbsd_nat_target::set_syscall_catchpoint): Add.
4820 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4821 (nbsd_nat_target::insert_exec_catchpoint)
4822 (nbsd_nat_target::remove_exec_catchpoint)
4823 (nbsd_nat_target::set_syscall_catchpoint): Add.
4824 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4825 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4826 `nbsd_get_syscall_number'.
4827
4828 2020-04-29 Tom Tromey <tom@tromey.com>
4829
4830 * stack.c (print_block_frame_labels): Remove.
4831
4832 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4833
4834 PR gdb/17320
4835 * ada-valprint.c (val_print_packed_array_elements): Move array
4836 end bracket to new line.
4837 (ada_val_print_string): Remove extra spaces before first array
4838 element.
4839 * c-valprint.c (c_value_print_array): Likewise.
4840 * m2-valprint.c (m2_print_array_contents): Likewise.
4841 (m2_value_print_inner): Likewise.
4842 * p-valprint.c (pascal_value_print_inner): Likewise.
4843 * valprint.c (generic_val_print_array): Likewise.
4844 (value_print_array_elements): Move first array element and array
4845 end bracket to new line.
4846
4847 2020-04-29 Tom de Vries <tdevries@suse.de>
4848
4849 PR symtab/25889
4850 * linespec.c (find_method): Fix ix calculation.
4851
4852 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4853
4854 * syscalls/update-netbsd.sh: New file.
4855 * syscalls/netbsd.xml: Regenerate.
4856 * data-directory/Makefile.in: Register `netbsd.xml' in
4857 `SYSCALLS_FILES'.
4858
4859 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4860
4861 * syscalls/update-freebsd.sh: Add double quotes.
4862
4863 2020-04-28 Tom Tromey <tom@tromey.com>
4864
4865 * NEWS: Update.
4866 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4867 (cmdpy_init): Allow class_tui.
4868
4869 2020-04-28 Mark Williams <mark@myosotissp.com>
4870
4871 PR gdb/24480
4872 * dwarf2read.c: Add missing assingments to list_in_scope when
4873 start_symtab was already called.
4874
4875 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4876
4877 PR gdb/25881
4878 * dwarf2/read.c (offset_map_type): Use
4879 gdb:hash_enum<sect_offset> as hash function.
4880
4881 2020-04-28 Tom de Vries <tdevries@suse.de>
4882
4883 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4884 with DW_AT_signature.
4885
4886 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * configure.ac: Remove check for fs_base/gs_base in
4889 user_regs_struct.
4890 * configure: Re-generate.
4891 * config.in: Re-generate.
4892 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4893 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4894 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4895
4896 2020-04-27 Luis Machado <luis.machado@linaro.org>
4897
4898 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4899 problematic inline frame unwinding situation.
4900 * frame.c (frame_id_computed_p): New function.
4901 * frame.h (frame_id_computed_p): New prototype.
4902
4903 2020-04-26 Tom Tromey <tom@tromey.com>
4904
4905 * command.h (enum command_class) <class_pseudo>: Remove.
4906
4907 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4908
4909 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4910 and whitespace.
4911
4912 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4913
4914 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4915 `PT_GET_PROCESS_STATE' block.
4916
4917 2020-04-24 Tom Tromey <tom@tromey.com>
4918
4919 * symtab.h (symbol_get_demangled_name): Don't declare.
4920 * symtab.c (symbol_get_demangled_name): Remove.
4921 (general_symbol_info::natural_name)
4922 (general_symbol_info::demangled_name): Update.
4923
4924 2020-04-24 Tom Tromey <tom@tromey.com>
4925
4926 PR rust/25025:
4927 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4928
4929 2020-04-24 Tom Tromey <tom@tromey.com>
4930
4931 PR symtab/12707:
4932 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4933 exists.
4934 (new_symbol): Likewise.
4935 * compile/compile-object-load.c (get_out_value_type): Use
4936 symbol_matches_search_name.
4937
4938 2020-04-24 Tom Tromey <tom@tromey.com>
4939
4940 * dwarf2/read.c (add_partial_symbol): Do not call
4941 compute_and_set_names.
4942
4943 2020-04-24 Tom Tromey <tom@tromey.com>
4944
4945 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4946 overload.
4947
4948 2020-04-24 Tom Tromey <tom@tromey.com>
4949
4950 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4951 (add_psymbol_to_list): New overload. Make old overload call new
4952 one.
4953 * psympriv.h (add_psymbol_to_list): New overload.
4954
4955 2020-04-24 Tom Tromey <tom@tromey.com>
4956
4957 * dwarf2/read.c (partial_die_info::read) <case
4958 DW_AT_linkage_name>: Use value_as_string.
4959 (dwarf2_string_attr): Use value_as_string.
4960 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4961 method.
4962 * dwarf2/attribute.c (attribute::value_as_string): New method.
4963
4964 2020-04-24 Tom Tromey <tom@tromey.com>
4965
4966 * symtab.c (general_symbol_info::natural_name)
4967 (general_symbol_info::demangled_name): Check for language_rust.
4968
4969 2020-04-24 Tom Tromey <tom@tromey.com>
4970
4971 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4972 (dwarf2_physname): ... from here.
4973 (partial_die_info::read): Add Rust "{" hack.
4974
4975 2020-04-24 Tom Tromey <tom@tromey.com>
4976
4977 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4978 method.
4979 (symbol_set_demangled_name): Don't declare.
4980 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4981 symbol_set_demangled_name.
4982 (general_symbol_info::set_language)
4983 (general_symbol_info::compute_and_set_names): Update.
4984 * minsyms.c (minimal_symbol_reader::install): Update.
4985 * dwarf2/read.c (new_symbol): Update.
4986
4987 2020-04-24 Tom Tromey <tromey@adacore.com>
4988
4989 PR python/23662:
4990 * python/py-type.c (convert_field): Handle
4991 FIELD_LOC_KIND_DWARF_BLOCK.
4992 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4993 (typy_get_dynamic): Nw function.
4994 (type_object_getset): Add "dynamic".
4995 * NEWS: Add entry.
4996
4997 2020-04-24 Tom Tromey <tromey@adacore.com>
4998
4999 * ada-typeprint.c (print_choices, print_variant_part)
5000 (print_record_field_types_dynamic): New functions.
5001 (print_record_field_types): Use print_record_field_types_dynamic.
5002
5003 2020-04-24 Tom Tromey <tromey@adacore.com>
5004
5005 * dwarf2/read.c (handle_data_member_location): New overload.
5006 (dwarf2_add_field): Use it.
5007 (decode_locdesc): Add "computed" parameter. Update comment.
5008 * gdbtypes.c (is_dynamic_type_internal): Also look for
5009 FIELD_LOC_KIND_DWARF_BLOCK.
5010 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5011 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5012 virtual base classes.
5013 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5014 FIELD_LOC_KIND_DWARF_BLOCK.
5015
5016 2020-04-24 Tom Tromey <tromey@adacore.com>
5017
5018 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5019 * gdbtypes.c (is_dynamic_type_internal): Check
5020 TYPE_HAS_DYNAMIC_LENGTH.
5021 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5022 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5023 New macros.
5024 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5025 constant.
5026
5027 2020-04-24 Tom Tromey <tromey@adacore.com>
5028
5029 * dwarf2/read.c (struct variant_field): Rewrite.
5030 (struct variant_part_builder): New.
5031 (struct nextfield): Remove "variant" field. Add "offset".
5032 (struct field_info): Add "current_variant_part" and
5033 "variant_parts".
5034 (alloc_discriminant_info): Remove.
5035 (alloc_rust_variant): New function.
5036 (quirk_rust_enum): Update.
5037 (dwarf2_add_field): Set "offset" member. Don't handle
5038 DW_TAG_variant_part.
5039 (offset_map_type): New typedef.
5040 (convert_variant_range, create_one_variant)
5041 (create_one_variant_part, create_variant_parts)
5042 (add_variant_property): New functions.
5043 (dwarf2_attach_fields_to_type): Call add_variant_property.
5044 (read_structure_type): Don't handle DW_TAG_variant_part.
5045 (handle_variant_part, handle_variant): New functions.
5046 (handle_struct_member_die): Use them.
5047 (process_structure_scope): Don't handle variant parts.
5048 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5049 (struct discriminant_info): Remove.
5050 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5051 (struct main_type) <flag_discriminated_union>: Remove.
5052 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5053 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5054 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5055 Update.
5056 * valops.c (value_union_variant): Remove.
5057 * value.h (value_union_variant): Don't declare.
5058
5059 2020-04-24 Tom Tromey <tromey@adacore.com>
5060
5061 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5062 (ada_value_primitive_packed_val): Update.
5063 * ada-valprint.c (ada_value_print_1): Update.
5064 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5065 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5066 just an address. Use evaluate_for_locexpr_baton.
5067 (dwarf2_evaluate_property): Update.
5068 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5069 array_view.
5070 * findvar.c (default_read_var_value): Update.
5071 * gdbtypes.c (compute_variant_fields_inner)
5072 (resolve_dynamic_type_internal): Update.
5073 (resolve_dynamic_type): Change type of valaddr parameter.
5074 * gdbtypes.h (resolve_dynamic_type): Update.
5075 * valarith.c (value_subscripted_rvalue): Update.
5076 * value.c (value_from_contents_and_address): Update.
5077
5078 2020-04-24 Tom Tromey <tromey@adacore.com>
5079
5080 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5081 "push_initial_value" parameter.
5082 (dwarf2_evaluate_property): Likewise.
5083 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5084
5085 2020-04-24 Tom Tromey <tromey@adacore.com>
5086
5087 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5088 (variant::matches, compute_variant_fields_recurse)
5089 (compute_variant_fields_inner, compute_variant_fields): New
5090 functions.
5091 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5092 Use resolved_type after type is made.
5093 (operator==): Add new cases.
5094 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5095 (struct discriminant_range, struct variant, struct variant_part):
5096 New.
5097 (union dynamic_prop_data) <variant_parts, original_type>: New
5098 members.
5099 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5100 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5101 constants.
5102 * value.c (unpack_bits_as_long): Now public.
5103 * value.h (unpack_bits_as_long): Declare.
5104
5105 2020-04-24 Tom Tromey <tromey@adacore.com>
5106
5107 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5108 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5109
5110 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5111
5112 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5113
5114 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5115
5116 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5117 (remove_fork_catchpoint, post_startup_inferior)
5118 (post_attach): Move...
5119 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5120 (remove_fork_catchpoint, post_startup_inferior)
5121 (post_attach): ...here.
5122 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5123 (remove_fork_catchpoint, post_startup_inferior)
5124 (post_attach): Move...
5125 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5126 (remove_fork_catchpoint, post_startup_inferior)
5127 (post_attach): ...here.
5128
5129 2020-04-24 Tom Tromey <tromey@adacore.com>
5130
5131 * nat/windows-nat.h (struct windows_thread_info)
5132 <pc_adjusted>: New member.
5133 * windows-nat.c (windows_fetch_one_register): Check
5134 pc_adjusted.
5135 (windows_nat_target::get_windows_debug_event)
5136 (windows_nat_target::wait): Set pc_adjusted.
5137
5138 2020-04-24 Tom de Vries <tdevries@suse.de>
5139
5140 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5141 Run gdb-add-index inside temp dir.
5142
5143 2020-04-23 Tom Tromey <tromey@adacore.com>
5144
5145 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5146 in loop.
5147
5148 2020-04-23 Luis Machado <luis.machado@linaro.org>
5149
5150 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5151 get_frame_register instead of gdbarch_unwind_pc.
5152
5153 2020-04-23 Tom de Vries <tdevries@suse.de>
5154
5155 * symtab.c (lookup_global_symbol): Prefer def over decl.
5156
5157 2020-04-23 Tom de Vries <tdevries@suse.de>
5158
5159 PR symtab/25807
5160 * block.c (best_symbol, better_symbol): Promote to external.
5161 * block.h (best_symbol, better_symbol): Declare.
5162 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5163 decl.
5164
5165 2020-04-23 Tom Tromey <tromey@adacore.com>
5166
5167 PR ada/25837:
5168 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5169 "const char *", not a "const std::string &".
5170 <name_and_matcher::operator==>: Update.
5171 * unittests/lookup_name_info-selftests.c: Change type of
5172 "result".
5173
5174 2020-04-23 Tom Tromey <tom@tromey.com>
5175
5176 * inferior.h (iterate_over_inferiors): Don't declare.
5177 * inferior.c (iterate_over_inferiors): Remove.
5178 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5179 Remove.
5180 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5181 use iterate_over_inferiors.
5182 (darwin_resume_inferior_it)
5183 (struct resume_inferior_threads_param)
5184 (darwin_resume_inferior_threads_it): Remove.
5185 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5186
5187 2020-04-23 Tom de Vries <tdevries@suse.de>
5188
5189 * blockframe.c (find_pc_partial_function): Use
5190 find_pc_sect_compunit_symtab rather than
5191 objfile->sf->qf->find_pc_sect_compunit_symtab.
5192
5193 2020-04-22 Tom de Vries <tdevries@suse.de>
5194
5195 PR symtab/25764
5196 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5197 in psymtabs.
5198
5199 2020-04-22 Tom de Vries <tdevries@suse.de>
5200
5201 PR symtab/25801
5202 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5203 symtabs.
5204
5205 2020-04-22 Tom de Vries <tdevries@suse.de>
5206
5207 PR symtab/25700
5208 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5209 CU if already created.
5210
5211 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5212
5213 * infrun.c (displaced_step_fixup): Switch to the event_thread
5214 before calling displaced_step_restore, not after.
5215
5216 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5217
5218 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5219 its inferior is not recorded by us.
5220 (record_btrace_target_open): Replace call to
5221 all_non_exited_threads () with call to current_inferior
5222 ()->non_exited_threads ().
5223 (record_btrace_target::stop_recording): Likewise.
5224 (record_btrace_target::close): Likewise.
5225 (record_btrace_target::wait): Likewise.
5226 (record_btrace_target::record_stop_replaying): Likewise.
5227
5228 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5229
5230 * btrace.c (btrace_enable): Throw an error on double enables and
5231 when enabling recording fails.
5232 (btrace_disable): Throw an error if the thread is not recorded.
5233
5234 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5235
5236 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5237 request if we do not have a thread_info.
5238
5239 2020-04-21 Tom de Vries <tdevries@suse.de>
5240
5241 PR gdb/25471
5242 * thread.c
5243 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5244 exception in get_frame_id.
5245
5246 2020-04-20 Tom Tromey <tromey@adacore.com>
5247
5248 * python/python.c (struct gdbpy_event): Mark move constructor as
5249 noexcept.
5250 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5251 constructor as noexcept.
5252 * completer.h (struct completion_result): Mark move constructor as
5253 noexcept.
5254 * completer.c (completion_result::completion_result): Use
5255 initialization style. Don't call reset_match_list.
5256
5257 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5258
5259 * MAINTAINERS (Write After Approval): Add myself.
5260
5261 2020-04-18 Tom Tromey <tom@tromey.com>
5262
5263 * windows-tdep.c (init_w32_command_list)
5264 (w32_prefix_command_valid): Restore.
5265 (_initialize_windows_tdep): Call init_w32_command_list.
5266
5267 2020-04-18 Tom Tromey <tom@tromey.com>
5268
5269 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5270 * value.c (value_fn_field): Update.
5271 * valops.c (find_function_in_inferior)
5272 (value_allocate_space_in_inferior): Update.
5273 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5274 Update.
5275 * tui/tui-source.c (tui_source_window::set_contents): Update.
5276 * symtab.c (lookup_global_or_static_symbol)
5277 (find_function_start_sal_1, skip_prologue_sal)
5278 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5279 * symmisc.c (dump_msymbols, dump_symtab_1)
5280 (maintenance_print_one_line_table): Update.
5281 * symfile.c (init_entry_point_info, section_is_mapped)
5282 (list_overlays_command, simple_read_overlay_table)
5283 (simple_overlay_update_1): Update.
5284 * stap-probe.c (handle_stap_probe): Update.
5285 * stabsread.c (dbx_init_float_type, define_symbol)
5286 (read_one_struct_field, read_enum_type, read_range_type): Update.
5287 * source.c (info_line_command): Update.
5288 * python/python.c (gdbpy_source_objfile_script)
5289 (gdbpy_execute_objfile_script): Update.
5290 * python/py-type.c (save_objfile_types): Update.
5291 * python/py-objfile.c (py_free_objfile): Update.
5292 * python/py-inferior.c (python_new_objfile): Update.
5293 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5294 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5295 (maintenance_check_psymtabs): Update.
5296 * printcmd.c (info_address_command): Update.
5297 * objfiles.h (struct objfile) <arch>: New method, from
5298 get_objfile_arch.
5299 (get_objfile_arch): Don't declare.
5300 * objfiles.c (get_objfile_arch): Remove.
5301 (filter_overlapping_sections): Update.
5302 * minsyms.c (msymbol_is_function): Update.
5303 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5304 (output_nondebug_symbol): Update.
5305 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5306 (mdebug_expand_psymtab): Update.
5307 * machoread.c (macho_add_oso_symfile): Update.
5308 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5309 Update.
5310 * linux-fork.c (checkpoint_command): Update.
5311 * linespec.c (convert_linespec_to_sals): Update.
5312 * jit.c (finalize_symtab): Update.
5313 * infrun.c (insert_exception_resume_from_probe): Update.
5314 * ia64-tdep.c (ia64_find_unwind_table): Update.
5315 * hppa-tdep.c (internalize_unwinds): Update.
5316 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5317 Update.
5318 * gcore.c (call_target_sbrk): Update.
5319 * elfread.c (record_minimal_symbol, elf_symtab_read)
5320 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5321 (elf_gnu_ifunc_resolve_by_got): Update.
5322 * dwarf2/read.c (create_addrmap_from_index)
5323 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5324 (read_debug_names_from_section)
5325 (process_psymtab_comp_unit_reader, add_partial_symbol)
5326 (add_partial_subprogram, process_full_comp_unit)
5327 (read_file_scope, read_func_scope, read_lexical_block_scope)
5328 (read_call_site_scope, dwarf2_ranges_read)
5329 (dwarf2_record_block_ranges, dwarf2_add_field)
5330 (mark_common_block_symbol_computed, read_tag_pointer_type)
5331 (read_tag_string_type, dwarf2_init_float_type)
5332 (dwarf2_init_complex_target_type, read_base_type)
5333 (partial_die_info::read, partial_die_info::read)
5334 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5335 (dwarf2_fetch_die_loc_sect_off): Update.
5336 * dwarf2/loc.c (dwarf2_find_location_expression)
5337 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5338 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5339 (dwarf2_loc_desc_get_symbol_read_needs)
5340 (locexpr_describe_location_piece, locexpr_describe_location_1)
5341 (loclist_describe_location): Update.
5342 * dwarf2/index-write.c (write_debug_names): Update.
5343 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5344 * dtrace-probe.c (dtrace_process_dof): Update.
5345 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5346 (process_one_symbol): Update.
5347 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5348 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5349 (coff_read_enum_type): Update.
5350 * cli/cli-cmds.c (edit_command, list_command): Update.
5351 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5352 * breakpoint.c (create_overlay_event_breakpoint)
5353 (create_longjmp_master_breakpoint)
5354 (create_std_terminate_master_breakpoint)
5355 (create_exception_master_breakpoint, get_sal_arch): Update.
5356 * block.c (block_gdbarch): Update.
5357 * annotate.c (annotate_source_line): Update.
5358
5359 2020-04-17 Tom Tromey <tromey@adacore.com>
5360
5361 * auto-load.c (show_auto_load_cmd): Remove.
5362 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5363 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5364 (maintenance_print_arc_command): Remove.
5365 * tui/tui-win.c (tui_command): Remove.
5366 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5367 * tui/tui-layout.c (tui_layout_command): Remove.
5368 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5369 * python/python.c (user_set_python, user_show_python): Remove.
5370 (_initialize_python): Use add_basic_prefix_cmd,
5371 add_show_prefix_cmd.
5372 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5373 (install_gdb_commands): Use add_basic_prefix_cmd,
5374 add_show_prefix_cmd.
5375 (info_guile_command): Remove.
5376 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5377 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5378 add_show_prefix_cmd.
5379 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5380 Remove do_set and do_show parameters.
5381 * cli/cli-style.c (set_style, show_style): Remove.
5382 (_initialize_cli_style): Use add_basic_prefix_cmd,
5383 add_show_prefix_cmd.
5384 (cli_style_option::add_setshow_commands): Remove do_set and
5385 do_show parameters.
5386 (cli_style_option::add_setshow_commands): Use
5387 add_basic_prefix_cmd, add_show_prefix_cmd.
5388 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5389 (set_style_name): Remove.
5390 * cli/cli-dump.c (dump_command, append_command): Remove.
5391 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5392 (tekhex_dump_command, binary_dump_command)
5393 (binary_append_command): Remove.
5394 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5395 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5396 (init_w32_command_list): Remove; move into ...
5397 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5398 * valprint.c (set_print, show_print, set_print_raw)
5399 (show_print_raw): Remove.
5400 (_initialize_valprint): Use add_basic_prefix_cmd,
5401 add_show_prefix_cmd.
5402 * typeprint.c (set_print_type, show_print_type): Remove.
5403 (_initialize_typeprint): Use add_basic_prefix_cmd,
5404 add_show_prefix_cmd.
5405 * record.c (set_record_command, show_record_command): Remove.
5406 (_initialize_record): Use add_basic_prefix_cmd,
5407 add_show_prefix_cmd.
5408 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5409 add_show_prefix_cmd.
5410 (info_command, show_command, set_debug, show_debug): Remove.
5411 * top.h (set_history, show_history): Don't declare.
5412 * top.c (set_history, show_history): Remove.
5413 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5414 (unset_tdesc_cmd): Remove.
5415 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5416 add_show_prefix_cmd.
5417 * symtab.c (info_module_command): Remove.
5418 (_initialize_symtab): Use add_basic_prefix_cmd.
5419 * symfile.c (overlay_command): Remove.
5420 (_initialize_symfile): Use add_basic_prefix_cmd.
5421 * sparc64-tdep.c (info_adi_command): Remove.
5422 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5423 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5424 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5425 add_show_prefix_cmd.
5426 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5427 (_initialize_serial): Use add_basic_prefix_cmd,
5428 add_show_prefix_cmd.
5429 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5430 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5431 add_show_prefix_cmd.
5432 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5433 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5434 add_show_prefix_cmd.
5435 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5436 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5437 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5438 add_show_prefix_cmd.
5439 * remote.c (remote_command, set_remote_cmd): Remove.
5440 (_initialize_remote): Use add_basic_prefix_cmd.
5441 * record-full.c (set_record_full_command)
5442 (show_record_full_command): Remove.
5443 (_initialize_record_full): Use add_basic_prefix_cmd,
5444 add_show_prefix_cmd.
5445 * record-btrace.c (cmd_set_record_btrace)
5446 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5447 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5448 (cmd_show_record_btrace_pt): Remove.
5449 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5450 add_show_prefix_cmd.
5451 * ravenscar-thread.c (set_ravenscar_command)
5452 (show_ravenscar_command): Remove.
5453 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5454 add_show_prefix_cmd.
5455 * mips-tdep.c (show_mips_command, set_mips_command)
5456 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5457 add_show_prefix_cmd.
5458 * maint.c (maintenance_command, maintenance_info_command)
5459 (maintenance_check_command, maintenance_print_command)
5460 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5461 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5462 add_show_prefix_cmd.
5463 (show_per_command_cmd): Remove.
5464 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5465 Remove.
5466 (maintenance_show_test_settings_cmd): Remove.
5467 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5468 add_show_prefix_cmd.
5469 * maint-test-options.c (maintenance_test_options_command):
5470 Remove.
5471 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5472 * macrocmd.c (macro_command): Remove
5473 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5474 * language.c (set_check, show_check): Remove.
5475 (_initialize_language): Use add_basic_prefix_cmd,
5476 add_show_prefix_cmd.
5477 * infcmd.c (unset_command): Remove.
5478 (_initialize_infcmd): Use add_basic_prefix_cmd.
5479 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5480 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5481 add_show_prefix_cmd.
5482 * go32-nat.c (go32_info_dos_command): Remove.
5483 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5484 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5485 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5486 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5487 (_initialize_frame): Use add_basic_prefix_cmd,
5488 add_show_prefix_cmd.
5489 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5490 (_initialize_dcache): Use add_basic_prefix_cmd,
5491 add_show_prefix_cmd.
5492 * cp-support.c (maint_cplus_command): Remove.
5493 (_initialize_cp_support): Use add_basic_prefix_cmd.
5494 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5495 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5496 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5497 add_basic_prefix_cmd, add_show_prefix_cmd.
5498 * breakpoint.c (save_command): Remove.
5499 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5500 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5501 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5502 add_show_prefix_cmd.
5503 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5504 (set_ada_command, show_ada_command): Remove.
5505 (_initialize_ada_language): Use add_basic_prefix_cmd,
5506 add_show_prefix_cmd.
5507 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5508
5509 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5510
5511 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5512 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5513
5514 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5515
5516 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5517 warning messages.
5518
5519 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5520
5521 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5522 import table is not at beginning of .idata section.
5523
5524 2020-04-16 Pedro Alves <palves@redhat.com>
5525
5526 * inferior.c (delete_inferior): Use delete operator directly
5527 instead of delete_program_space.
5528 * progspace.c (add_program_space): New, factored out from
5529 program_space::program_space.
5530 (remove_program_space): New, factored out from
5531 delete_program_space.
5532 (program_space::program_space): Remove intro comment. Rewrite.
5533 (program_space::~program_space): Remove intro comment. Call
5534 remove_program_space.
5535 (delete_program_space): Delete.
5536 * progspace.h (program_space::program_space): Make explicit. Move
5537 intro comment here, adjusted.
5538 (program_space::~program_space): Move intro comment here,
5539 adjusted.
5540 (delete_program_space): Remove.
5541
5542 2020-04-16 Tom Tromey <tromey@adacore.com>
5543
5544 * windows-nat.c (windows_nat::handle_access_violation): New
5545 function.
5546 * nat/windows-nat.h (handle_access_violation): Declare.
5547 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5548 windows-nat.c. Call handle_access_violation.
5549
5550 2020-04-16 Tom de Vries <tdevries@suse.de>
5551
5552 PR symtab/25791
5553 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5554 CUs without psymtab.
5555
5556 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5557
5558 * python/python.c (do_start_initialization): Don't call
5559 PyEval_InitThreads for Python 3.9 and beyond.
5560
5561 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5562
5563 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5564 thread functions.
5565 (obsd_nat_target::wait): Likewise.
5566
5567 2020-04-15 Tom Tromey <tromey@adacore.com>
5568
5569 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5570 (DEBUG_EXCEPT): Use debug_printf.
5571
5572 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5573
5574 * completer.c (class completion_tracker::completion_hash_entry)
5575 <hash_name>: New member function.
5576 (completion_tracker::discard_completions): New callback to hash a
5577 completion_hash_entry, pass this to htab_create_alloc.
5578
5579 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5580
5581 * windows-nat.c (windows_make_so): Warn rather than stopping with
5582 an error if realpath() fails.
5583
5584 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5585
5586 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5587 (nbsd_nat_target::info_proc): Add do_status.
5588
5589 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5590 Tom de Vries <tdevries@suse.de>
5591
5592 PR symtab/25718
5593 * psympriv.h (struct partial_symtab::read_symtab)
5594 (struct partial_symtab::expand_psymtab)
5595 (struct partial_symtab::read_dependencies): Update comments.
5596 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5597 read_symtab for includer.
5598 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5599 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5600 (struct dwarf2_include_psymtab::m_readin): Remove.
5601 (struct dwarf2_include_psymtab::includer): New member function.
5602 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5603
5604 2020-04-14 Tom de Vries <tdevries@suse.de>
5605
5606 PR symtab/25720
5607 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5608 with NULL symbol_matcher and lookup_name.
5609 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5610 and lookup_name.
5611 * dwarf2/read.c (dw2_expand_symtabs_matching)
5612 (dw2_debug_names_expand_symtabs_matching): Same.
5613 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5614 Make lookup_name a pointer. Update comment.
5615 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5616 lookup_name being a pointer.
5617 * symfile.c (expand_symtabs_matching): Same.
5618 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5619 * linespec.c (iterate_over_all_matching_symtabs): Same.
5620
5621 2020-04-13 Tom Tromey <tom@tromey.com>
5622
5623 * run-on-main-thread.c: Update include.
5624 * unittests/main-thread-selftests.c: Update include.
5625 * tui/tui-win.c: Update include.
5626 * tui/tui-io.c: Update include.
5627 * tui/tui-interp.c: Update include.
5628 * tui/tui-hooks.c: Update include.
5629 * top.h: Update include.
5630 * top.c: Update include.
5631 * ser-base.c: Update include.
5632 * remote.c: Update include.
5633 * remote-notif.c: Update include.
5634 * remote-fileio.c: Update include.
5635 * record-full.c: Update include.
5636 * record-btrace.c: Update include.
5637 * python/python.c: Update include.
5638 * posix-hdep.c: Update include.
5639 * mingw-hdep.c: Update include.
5640 * mi/mi-main.c: Update include.
5641 * mi/mi-interp.c: Update include.
5642 * main.c: Update include.
5643 * linux-nat.c: Update include.
5644 * interps.c: Update include.
5645 * infrun.c: Update include.
5646 * inf-loop.c: Update include.
5647 * event-top.c: Update include.
5648 * event-loop.c: Move to ../gdbsupport/.
5649 * event-loop.h: Move to ../gdbsupport/.
5650 * async-event.h: Update include.
5651 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5652
5653 2020-04-13 Tom Tromey <tom@tromey.com>
5654
5655 * tui/tui-win.c: Include async-event.h.
5656 * remote.c: Include async-event.h.
5657 * remote-notif.c: Include async-event.h.
5658 * record-full.c: Include async-event.h.
5659 * record-btrace.c: Include async-event.h.
5660 * infrun.c: Include async-event.h.
5661 * event-top.c: Include async-event.h.
5662 * event-loop.h: Move some declarations to async-event.h.
5663 * event-loop.c: Don't include ser-event.h or top.h. Move some
5664 code to async-event.c.
5665 * async-event.h: New file.
5666 * async-event.c: New file.
5667 * Makefile.in (COMMON_SFILES): Add async-event.c.
5668 (HFILES_NO_SRCDIR): Add async-event.h.
5669
5670 2020-04-13 Tom Tromey <tom@tromey.com>
5671
5672 * utils.c (flush_streams): New function.
5673 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5674
5675 2020-04-13 Tom Tromey <tom@tromey.com>
5676
5677 * event-loop.c (handle_file_event): Use warning, not
5678 printf_unfiltered.
5679
5680 2020-04-13 Tom Tromey <tom@tromey.com>
5681
5682 * event-loop.c: Include <chrono>.
5683
5684 2020-04-13 Tom Tromey <tom@tromey.com>
5685
5686 * gdb_select.h: Move to ../gdbsupport/.
5687 * event-loop.c: Update include path.
5688 * top.c: Update include path.
5689 * ser-base.c: Update include path.
5690 * ui-file.c: Update include path.
5691 * ser-tcp.c: Update include path.
5692 * guile/scm-ports.c: Update include path.
5693 * posix-hdep.c: Update include path.
5694 * ser-unix.c: Update include path.
5695 * gdb_usleep.c: Update include path.
5696 * mingw-hdep.c: Update include path.
5697 * inflow.c: Update include path.
5698 * infrun.c: Update include path.
5699 * event-top.c: Update include path.
5700
5701 2020-04-13 Tom Tromey <tom@tromey.com>
5702
5703 * configure: Rebuild.
5704 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5705
5706 2020-04-13 Tom Tromey <tom@tromey.com>
5707
5708 * event-loop.h (start_event_loop): Don't declare.
5709 * event-loop.c (start_event_loop): Move...
5710 * main.c (start_event_loop): ...here. Now static.
5711
5712 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5713
5714 * MAINTAINERS: Update my email address.
5715
5716 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5717
5718 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5719 IP_ALL.
5720
5721 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5722
5723 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5724 (nbsd_nat_target::info_proc): Add do_cmdline.
5725
5726 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5727
5728 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5729 (nbsd_nat_target::info_proc): Add do_cwd.
5730
5731 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5732
5733 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5734
5735 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5736
5737 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5738 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5739 (nbsd_nat_target::info_proc): New functions.
5740 * nbsd-nat.c (kinfo_get_vmmap): New function.
5741 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5742 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5743 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5744 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5745 functions.
5746 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5747 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5748 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5749 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5750 (KINFO_VME_FLAG_GROWS_DOWN): New.
5751
5752 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5753
5754 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5755 bit shift.
5756
5757 2020-04-10 Tom Tromey <tromey@adacore.com>
5758
5759 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5760
5761 2020-04-10 Tom Tromey <tromey@adacore.com>
5762
5763 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5764 separate debug files.
5765
5766 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5767
5768 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5769 Move to...
5770 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5771 ... here.
5772 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5773 Check for STATUS_WX86_BREAKPOINT.
5774 (windows_nat_target::wait): Same.
5775
5776 2020-04-10 Tom de Vries <tdevries@suse.de>
5777
5778 PR cli/25808
5779 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5780
5781 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5782
5783 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5784 (Write After Approval): Remove Tom de Vries.
5785
5786 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5787
5788 revert partially:
5789 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5790
5791 * buildsym.c (record_line): Fix undefined behavior and preserve
5792 lines at eof.
5793
5794 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5795
5796 * auxv.h (svr4_auxv_parse): New.
5797 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5798 and generic_auxv_parse.
5799 (svr4_auxv_parse): Add.
5800 * obsd-tdep.c: Include "auxv.h".
5801 (obsd_auxv_parse): Remove.
5802 (obsd_init_abi): Remove comment.
5803 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5804 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5805 * nbsd-tdep.c: Include "auxv.h".
5806 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5807
5808 2020-04-08 Tom Tromey <tromey@adacore.com>
5809
5810 * nat/windows-nat.h (last_wait_event): Don't declare.
5811 (wait_for_debug_event): Update comment.
5812 * nat/windows-nat.c (last_wait_event): Now static.
5813
5814 2020-04-08 Tom Tromey <tromey@adacore.com>
5815
5816 * windows-nat.c (wait_for_debug_event): Move to
5817 nat/windows-nat.c.
5818 * nat/windows-nat.h (wait_for_debug_event): Declare.
5819 * nat/windows-nat.c (wait_for_debug_event): Move from
5820 windows-nat.c. No longer static.
5821
5822 2020-04-08 Tom Tromey <tromey@adacore.com>
5823
5824 * windows-nat.c (get_windows_debug_event): Use
5825 fetch_pending_stop.
5826 * nat/windows-nat.h (fetch_pending_stop): Declare.
5827 * nat/windows-nat.c (fetch_pending_stop): New function.
5828
5829 2020-04-08 Tom Tromey <tromey@adacore.com>
5830
5831 * windows-nat.c (windows_continue): Use matching_pending_stop and
5832 continue_last_debug_event.
5833 * nat/windows-nat.h (matching_pending_stop)
5834 (continue_last_debug_event): Declare.
5835 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5836 (matching_pending_stop, continue_last_debug_event): New
5837 functions.
5838
5839 2020-04-08 Tom Tromey <tromey@adacore.com>
5840
5841 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5842 (handle_exception_result): Move to nat/windows-nat.h.
5843 (DEBUG_EXCEPTION_SIMPLE): Remove.
5844 (windows_nat::handle_ms_vc_exception): New function.
5845 (handle_exception): Move to nat/windows-nat.c.
5846 (get_windows_debug_event): Update.
5847 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5848 nat/windows-nat.c.
5849 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5850 (handle_exception_result): Move from windows-nat.c.
5851 (handle_exception): Declare.
5852 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5853 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5854 windows-nat.c.
5855
5856 2020-04-08 Tom Tromey <tromey@adacore.com>
5857
5858 * windows-nat.c (exception_count, event_count): Remove.
5859 (handle_exception, get_windows_debug_event)
5860 (do_initial_windows_stuff): Update.
5861
5862 2020-04-08 Tom Tromey <tromey@adacore.com>
5863
5864 * windows-nat.c (windows_nat::handle_load_dll)
5865 (windows_nat::handle_unload_dll): Rename. No longer static.
5866 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5867 Declare.
5868
5869 2020-04-08 Tom Tromey <tromey@adacore.com>
5870
5871 * complaints.h (stop_whining): Declare at top-level.
5872 (complaint): Don't declare stop_whining.
5873
5874 2020-04-08 Tom Tromey <tromey@adacore.com>
5875
5876 * windows-nat.c (windows_nat::handle_output_debug_string):
5877 Rename. No longer static.
5878 * nat/windows-nat.h (handle_output_debug_string): Declare.
5879
5880 2020-04-08 Tom Tromey <tromey@adacore.com>
5881
5882 * windows-nat.c (current_process_handle, current_process_id)
5883 (main_thread_id, last_sig, current_event, last_wait_event)
5884 (current_windows_thread, desired_stop_thread_id, pending_stops)
5885 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5886 (display_selectors, fake_create_process)
5887 (get_windows_debug_event): Update.
5888 * nat/windows-nat.h (current_process_handle, current_process_id)
5889 (main_thread_id, last_sig, current_event, last_wait_event)
5890 (current_windows_thread, desired_stop_thread_id, pending_stops)
5891 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5892 * nat/windows-nat.c (current_process_handle, current_process_id)
5893 (main_thread_id, last_sig, current_event, last_wait_event)
5894 (current_windows_thread, desired_stop_thread_id, pending_stops)
5895 (siginfo_er): New globals. Move from windows-nat.c.
5896
5897 2020-04-08 Tom Tromey <tromey@adacore.com>
5898
5899 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5900 (handle_load_dll): Update.
5901 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5902
5903 2020-04-08 Tom Tromey <tromey@adacore.com>
5904
5905 * windows-nat.c (enum thread_disposition_type): Move to
5906 nat/windows-nat.h.
5907 (windows_nat::thread_rec): Rename from thread_rec. No longer
5908 static.
5909 (windows_add_thread, windows_nat_target::fetch_registers)
5910 (windows_nat_target::store_registers, handle_exception)
5911 (windows_nat_target::resume, get_windows_debug_event)
5912 (windows_nat_target::get_tib_address)
5913 (windows_nat_target::thread_name)
5914 (windows_nat_target::thread_alive): Update.
5915 * nat/windows-nat.h (enum thread_disposition_type): Move from
5916 windows-nat.c.
5917 (thread_rec): Declare.
5918
5919 2020-04-08 Tom Tromey <tromey@adacore.com>
5920
5921 * windows-nat.c: Add "using namespace".
5922 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5923 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5924
5925 2020-04-08 Tom Tromey <tromey@adacore.com>
5926
5927 * nat/windows-nat.h (struct windows_thread_info): Declare
5928 destructor.
5929 * nat/windows-nat.c (~windows_thread_info): New.
5930
5931 2020-04-08 Tom Tromey <tromey@adacore.com>
5932
5933 PR gdb/22992
5934 * windows-nat.c (current_event): Update comment.
5935 (last_wait_event, desired_stop_thread_id): New globals.
5936 (struct pending_stop): New.
5937 (pending_stops): New global.
5938 (windows_nat_target) <stopped_by_sw_breakpoint>
5939 <supports_stopped_by_sw_breakpoint>: New methods.
5940 (windows_fetch_one_register): Add assertions. Adjust PC.
5941 (windows_continue): Handle pending stops. Suspend other threads
5942 when stepping. Use last_wait_event
5943 (wait_for_debug_event): New function.
5944 (get_windows_debug_event): Use wait_for_debug_event. Handle
5945 pending stops. Queue spurious stops.
5946 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5947 (windows_nat_target::kill): Use wait_for_debug_event.
5948 * nat/windows-nat.h (struct windows_thread_info)
5949 <stopped_at_software_breakpoint>: New field.
5950 * nat/windows-nat.c (windows_thread_info::resume): Clear
5951 stopped_at_software_breakpoint.
5952
5953 2020-04-08 Tom Tromey <tromey@adacore.com>
5954
5955 * windows-nat.c (enum thread_disposition_type): New.
5956 (thread_rec): Replace "get_context" parameter with "disposition";
5957 change type.
5958 (windows_add_thread, windows_nat_target::fetch_registers)
5959 (windows_nat_target::store_registers, handle_exception)
5960 (windows_nat_target::resume, get_windows_debug_event)
5961 (windows_nat_target::get_tib_address)
5962 (windows_nat_target::thread_name)
5963 (windows_nat_target::thread_alive): Update.
5964
5965 2020-04-08 Tom Tromey <tromey@adacore.com>
5966
5967 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5968 (windows_continue): Use windows_continue::resume.
5969 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5970 resume>: Declare new methods.
5971 * nat/windows-nat.c: New file.
5972 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5973
5974 2020-04-08 Tom Tromey <tromey@adacore.com>
5975
5976 * windows-nat.c (windows_add_thread, windows_delete_thread)
5977 (windows_nat_target::fetch_registers)
5978 (windows_nat_target::store_registers, fake_create_process)
5979 (windows_nat_target::resume, windows_nat_target::resume)
5980 (get_windows_debug_event, windows_nat_target::wait)
5981 (windows_nat_target::pid_to_str)
5982 (windows_nat_target::get_tib_address)
5983 (windows_nat_target::get_ada_task_ptid)
5984 (windows_nat_target::thread_name)
5985 (windows_nat_target::thread_alive): Use lwp, not tid.
5986
5987 2020-04-08 Tom Tromey <tromey@adacore.com>
5988
5989 * windows-nat.c (handle_exception)
5990 (windows_nat_target::thread_name): Update.
5991 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5992 <name>: Now unique_xmalloc_ptr.
5993
5994 2020-04-08 Tom Tromey <tromey@adacore.com>
5995
5996 * windows-nat.c (thread_rec)
5997 (windows_nat_target::fetch_registers): Update.
5998 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5999 Update comment.
6000 <debug_registers_changed, reload_context>: Now bool.
6001
6002 2020-04-08 Tom Tromey <tromey@adacore.com>
6003
6004 * windows-nat.c (windows_add_thread): Use new.
6005 (windows_init_thread_list, windows_delete_thread): Use delete.
6006 (get_windows_debug_event): Update.
6007 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6008 destructor, and initializers.
6009
6010 2020-04-08 Tom Tromey <tromey@adacore.com>
6011
6012 * windows-nat.c (struct windows_thread_info): Remove.
6013 * nat/windows-nat.h: New file.
6014
6015 2020-04-08 Tom Tromey <tromey@adacore.com>
6016
6017 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6018 (thread_rec, windows_add_thread, windows_delete_thread)
6019 (windows_continue): Update.
6020
6021 2020-04-08 Tom Tromey <tromey@adacore.com>
6022
6023 * windows-nat.c (struct windows_thread_info): Remove typedef.
6024 (thread_head): Remove.
6025 (thread_list): New global.
6026 (thread_rec, windows_add_thread, windows_init_thread_list)
6027 (windows_delete_thread, windows_continue): Update.
6028
6029 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6030
6031 * windows-tdep.h (windows_init_abi): Add comment.
6032 (cygwin_init_abi): New declaration.
6033 * windows-tdep.c: Split signal enumeration in two, one for
6034 Windows and one for Cygwin.
6035 (windows_gdb_signal_to_target): Only deal with signal of the
6036 Windows OS ABI.
6037 (cygwin_gdb_signal_to_target): New function.
6038 (windows_init_abi): Rename to windows_init_abi_common, don't set
6039 gdb_signal_to_target gdbarch method. Add new new function with
6040 this name.
6041 (cygwin_init_abi): New function.
6042 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6043 comment. Don't call windows_init_abi.
6044 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6045 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6046 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6047 i386_windows_init_abi_common, don't call windows_init_abi. Add
6048 a new function of this name.
6049 (i386_cygwin_init_abi): New function.
6050 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6051 OS ABI Cygwin.
6052
6053 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6054
6055 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6056 parameter.c.
6057 (dwarf2_read_gdb_index): Update.
6058
6059 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6060
6061 * nbsd-tdep.c: Include "objfiles.h".
6062 (nbsd_skip_solib_resolver): New.
6063 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6064
6065 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6066
6067 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6068 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6069 with DW_LLE_base_addressx are being emitted in DWARFv5.
6070 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6071 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6072 unsigned integer.
6073
6074 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6075
6076 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6077 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6078 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6079 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6080 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6081 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6082 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6083
6084
6085 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6086
6087 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6088 (read_loclist_index): New function definition.
6089 (lookup_loclist_base): New function definition.
6090 (read_loclist_header): New function definition.
6091 (dwarf2_cu): Add loclist_base and loclist_header field.
6092 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6093 (read_full_die_1): Read the value of DW_AT_loclists_base.
6094 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6095 (read_attribute_value): Handle DW_FORM_loclistx.
6096 (skip_one_die): Handle DW_FORM_loclistx.
6097 (loclist_header): New structure declaration.
6098 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6099
6100 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6101
6102 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6103 constructor. Remove `addr` parameter from other constructor and
6104 add `per_cu` parameter.
6105 * dwarf2/read.c (create_partial_symtab): Update.
6106
6107 2020-04-07 Tom de Vries <tdevries@suse.de>
6108
6109 PR symtab/25796
6110 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6111 (partial_die_info::fixup): Inherit has_const_value.
6112
6113 2020-04-07 Tom de Vries <tdevries@suse.de>
6114
6115 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6116 symbols without address.
6117
6118 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6119
6120 * nbsd-nat.h (struct thread_info): Add forward declaration.
6121 (nbsd_nat_target::thread_alive): Add.
6122 (nbsd_nat_target::thread_name): Likewise.
6123 (nbsd_nat_target::update_thread_list): Likewise.
6124 (update_thread_list::post_attach): Likewise.
6125 (post_attach::pid_to_str): Likewise.
6126 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6127 (nbsd_thread_lister): Add.
6128 (nbsd_nat_target::thread_alive): Likewise.
6129 (nbsd_nat_target::thread_name): Likewise.
6130 (nbsd_add_threads): Likewise.
6131 (update_thread_list::post_attach): Likewise.
6132 (nbsd_nat_target::update_thread_list): Likewise.
6133 (post_attach::pid_to_str): Likewise.
6134
6135 2020-04-06 Tom Tromey <tromey@adacore.com>
6136
6137 * ada-valprint.c (print_variant_part): Extract the variant field.
6138 (print_field_values): Use the field as the outer value when
6139 recursing.
6140
6141 2020-04-06 Tom Tromey <tromey@adacore.com>
6142
6143 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6144 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6145 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6146 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6147 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6148
6149 2020-04-06 Tom Tromey <tromey@adacore.com>
6150
6151 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6152 TYPE_CODE_ERROR.
6153
6154 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6155
6156 * nbsd-tdep.c: Include "gdbarch.h".
6157 Define enum with NetBSD signal numbers.
6158 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6159 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6160 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6161 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6162 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6163 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6164 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6165 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6166 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6167 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6168 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6169 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6170
6171 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6172
6173 PR gdb/25325
6174 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6175
6176 2020-04-03 Tom Tromey <tromey@adacore.com>
6177
6178 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6179 Read constant block.
6180
6181 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6184 (gdb_bfd_get_full_section_contents): New declaration.
6185 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6186 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6187 gdb_bfd_get_full_section_contents.
6188
6189 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6190
6191 * exec.c (build_section_table): Replace internal_error with
6192 gdb_assert.
6193 (section_table_xfer_memory_partial): Likewise.
6194 * mdebugread.c (parse_partial_symbols): Likewise.
6195 * psymtab.c (lookup_partial_symbol): Likewise.
6196 * utils.c (wrap_here): Likewise.
6197
6198 2020-04-02 Tom Tromey <tromey@adacore.com>
6199
6200 * f-lang.c (build_fortran_types): Use arch_type to initialize
6201 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6202
6203 2020-04-02 Tom Tromey <tromey@adacore.com>
6204
6205 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6206 of attributes.
6207
6208 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6209 Bernd Edlinger <bernd.edlinger@hotmail.de>
6210 Tom Tromey <tromey@adacore.com>
6211
6212 * buildsym.c (buildsym_compunit::record_line): Remove
6213 deduplication code.
6214
6215 2020-04-02 Tom de Vries <tdevries@suse.de>
6216
6217 PR ada/24671
6218 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6219
6220 2020-04-02 Tom de Vries <tdevries@suse.de>
6221
6222 * dwarf2/read.c (dwarf2_gdb_index_functions,
6223 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6224 NULL.
6225 * psymtab.c (psym_lookup_global_symbol_language): New function.
6226 (psym_functions): Init psym_lookup_global_symbol_language with
6227 psym_lookup_global_symbol_language.
6228 * symfile-debug.c (debug_sym_quick_functions): Init
6229 lookup_global_symbol_language with NULL.
6230 * symfile.c (set_initial_language): Remove fixme comment.
6231 * symfile.h (struct quick_symbol_functions): Add
6232 lookup_global_symbol_language.
6233 * symtab.c (find_quick_global_symbol_language): New function.
6234 (find_main_name): Use find_quick_global_symbol_language.
6235
6236 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6237
6238 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6239
6240 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6241
6242 * buildsym.c (record_line): Fix undefined behavior and preserve
6243 lines at eof.
6244
6245 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6246
6247 * buildsym.c (record_line): Fix the resizing condition.
6248
6249 2020-04-01 Tom Tromey <tom@tromey.com>
6250
6251 * value.h (value_literal_complex): Add comment.
6252 * valops.c (value_literal_complex): Refer to value.h.
6253
6254 2020-04-01 Tom Tromey <tom@tromey.com>
6255
6256 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6257 (scalar_type): New rule, from typebase.
6258 (typebase): Use scalar_type. Recognize complex types.
6259 (field_name): Handle FLOAT_KEYWORD.
6260 (ident_tokens): Add _Complex and __complex__.
6261
6262 2020-04-01 Tom Tromey <tom@tromey.com>
6263
6264 PR exp/25299:
6265 * valarith.c (promotion_type, complex_binop): New functions.
6266 (scalar_binop): Handle complex numbers. Use promotion_type.
6267 (value_pos, value_neg, value_complement): Handle complex numbers.
6268
6269 2020-04-01 Tom Tromey <tom@tromey.com>
6270
6271 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6272 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6273 (parse_number): Handle complex numbers.
6274
6275 2020-04-01 Tom Tromey <tom@tromey.com>
6276
6277 * c-valprint.c (c_decorations): Change complex suffix to "i".
6278
6279 2020-04-01 Tom Tromey <tom@tromey.com>
6280
6281 * valprint.c (generic_value_print_complex): Use accessors.
6282 * value.h (value_real_part, value_imaginary_part): Declare.
6283 * valops.c (value_real_part, value_imaginary_part): New
6284 functions.
6285 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6286
6287 2020-04-01 Tom Tromey <tom@tromey.com>
6288
6289 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6290 (read_range_type): Update.
6291 * mdebugread.c (basic_type): Update.
6292 * go-lang.c (build_go_types): Use init_complex_type.
6293 * gdbtypes.h (struct main_type) <complex_type>: New member.
6294 (init_complex_type): Update.
6295 (arch_complex_type): Don't declare.
6296 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6297 Make name if none given. Use alloc_type_copy. Look for cached
6298 complex type.
6299 (arch_complex_type): Remove.
6300 (gdbtypes_post_init): Use init_complex_type.
6301 * f-lang.c (build_fortran_types): Use init_complex_type.
6302 * dwarf2/read.c (read_base_type): Update.
6303 * d-lang.c (build_d_types): Use init_complex_type.
6304 * ctfread.c (read_base_type): Update.
6305
6306 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6307
6308 * infrun.c (stop_all_threads): Update assertion, plus when
6309 stopping threads, take into account that we might be trying
6310 to stop an all-stop target.
6311 (stop_waiting): Call 'stop_all_threads' if there exists a
6312 non-stop target.
6313
6314 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6315
6316 * target.h (exists_non_stop_target): New function declaration.
6317 * target.c (exists_non_stop_target): New function.
6318
6319 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6320
6321 PR gdb/24789
6322 * eval.c (is_integral_or_integral_reference): New function.
6323 (evaluate_subexp_standard): Allow integer references in
6324 pointer arithmetic.
6325
6326 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6327
6328 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6329 check for no ptid in the stop reply when the target is non-stop.
6330
6331 2020-04-01 Tom Tromey <tromey@adacore.com>
6332
6333 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6334 "name" parameter to rvalue reference. Initialize m_name_holder.
6335 <lookup_name_info>: New overloads.
6336 <name>: Return gdb::string_view.
6337 <c_str>: New method.
6338 <make_ignore_params>: Update.
6339 <search_name_hash>: Update.
6340 <language_lookup_name>: Return const char *.
6341 <m_name>: Change type.
6342 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6343 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6344 (lookup_name_info::match_any): Update.
6345 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6346 Update.
6347 * minsyms.c (linkage_name_str): Update.
6348 * language.c (default_symbol_name_matcher): Update.
6349 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6350 Update.
6351 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6352 (ada_lookup_name_info::ada_lookup_name_info): Update.
6353 (literal_symbol_name_matcher): Update.
6354
6355 2020-04-01 Tom Tromey <tromey@adacore.com>
6356
6357 * psymtab.c (psymtab_search_name): Remove function.
6358 (psym_lookup_symbol): Create search name and lookup name here.
6359 (lookup_partial_symbol): Remove "name" parameter; add
6360 lookup_name.
6361 (psym_expand_symtabs_for_function): Update.
6362
6363 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6364
6365 PR tui/25597:
6366 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6367
6368 2020-03-31 Tom Tromey <tromey@adacore.com>
6369
6370 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6371 memcpy.
6372
6373 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6374
6375 * features/riscv/32bit-csr.xml: Regenerated.
6376 * features/riscv/64bit-csr.xml: Regenerated.
6377
6378 2020-03-30 Tom Tromey <tromey@adacore.com>
6379
6380 * ada-valprint.c (print_variant_part): Update.
6381 * ada-lang.h (ada_which_variant_applies): Update.
6382 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6383 outer_valaddr parameters; replace with "outer" value parameter.
6384 (to_fixed_variant_branch_type): Update.
6385
6386 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6387
6388 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6389 <list>. Remove inclusion of observable.h.
6390 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6391 (struct arch_lwp_info): New struct.
6392 (class ppc_linux_dreg_interface): New class.
6393 (struct ppc_linux_process_info): New struct.
6394 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6395 <low_new_clone, low_forget_process, low_prepare_to_resume>
6396 <copy_thread_dreg_state, mark_thread_stale>
6397 <mark_debug_registers_changed, register_hw_breakpoint>
6398 <clear_hw_breakpoint, register_wp, clear_wp>
6399 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6400 <num_memory_accesses, get_trigger_type>
6401 <create_watchpoint_request, hwdebug_point_cmp>
6402 <init_arch_lwp_info, get_arch_lwp_info>
6403 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6404 methods.
6405 <struct ptid_hash>: New inner struct.
6406 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6407 members.
6408 (saved_dabr_value, hwdebug_info, max_slots_number)
6409 (struct hw_break_tuple, struct thread_points, ppc_threads)
6410 (have_ptrace_hwdebug_interface)
6411 (hwdebug_find_thread_points_by_tid)
6412 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6413 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6414 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6415 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6416 use m_dreg_interface.
6417 (hwdebug_point_cmp): Change to...
6418 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6419 reference arguments instead of pointers.
6420 (ppc_linux_nat_target::ranged_break_num_registers): Use
6421 m_dreg_interface.
6422 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6423 m_dreg_interface. Call register_hw_breakpoint.
6424 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6425 m_dreg_interface. Call clear_hw_breakpoint.
6426 (get_trigger_type): Change to...
6427 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6428 comment.
6429 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6430 use m_dreg_interface. Call register_hw_breakpoint.
6431 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6432 use m_dreg_interface. Call clear_hw_breakpoint.
6433 (can_use_watchpoint_cond_accel): Change to...
6434 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6435 method. Update comment, use m_dreg_interface and
6436 m_process_info.
6437 (calculate_dvc): Change to...
6438 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6439 m_dreg_interface.
6440 (num_memory_accesses): Change to...
6441 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6442 (check_condition): Change to...
6443 (ppc_linux_nat_target::check_condition): ...this method.
6444 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6445 comment, use m_dreg_interface.
6446 (create_watchpoint_request): Change to...
6447 (ppc_linux_nat_target::create_watchpoint_request): ...this
6448 method. Use m_dreg_interface.
6449 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6450 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6451 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6452 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6453 (ppc_linux_nat_target::low_forget_process)
6454 (ppc_linux_nat_target::low_new_fork)
6455 (ppc_linux_nat_target::low_new_clone)
6456 (ppc_linux_nat_target::low_delete_thread)
6457 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6458 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6459 only call mark_thread_stale.
6460 (ppc_linux_thread_exit): Remove.
6461 (ppc_linux_nat_target::stopped_data_address): Change to...
6462 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6463 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6464 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6465 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6466 comment. Call low_stopped_data_address.
6467 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6468 m_dreg_interface.
6469 (ppc_linux_nat_target::masked_watch_num_registers): Use
6470 m_dreg_interface.
6471 (ppc_linux_nat_target::copy_thread_dreg_state)
6472 (ppc_linux_nat_target::mark_thread_stale)
6473 (ppc_linux_nat_target::mark_debug_registers_changed)
6474 (ppc_linux_nat_target::register_hw_breakpoint)
6475 (ppc_linux_nat_target::clear_hw_breakpoint)
6476 (ppc_linux_nat_target::register_wp)
6477 (ppc_linux_nat_target::clear_wp)
6478 (ppc_linux_nat_target::init_arch_lwp_info)
6479 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6480 (_initialize_ppc_linux_nat): Remove observer callback.
6481
6482 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6483
6484 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6485 (ppc_linux_nat_target::auxv_parse)
6486 (ppc_linux_nat_target::read_description)
6487 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6488 Move up.
6489
6490 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6491
6492 * linux-nat.h (low_new_clone): New method.
6493 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6494
6495 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6496
6497 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6498 (dbx_expand_psymtab): ... this.
6499 (start_psymtab): Update.
6500 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6501 (mdebug_expand_psymtab): ... this.
6502 (parse_partial_symbols): Update.
6503 (new_psymtab): Update.
6504 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6505 (xcoff_expand_psymtab): ... this.
6506 (xcoff_start_psymtab): Update.
6507
6508 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6509
6510 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6511 <expand_dependencies>: ... this.
6512 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6513 (partial_symtab::expand_dependencies): ... this.
6514 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6515 Update.
6516 (dwarf2_psymtab::expand_psymtab): Update.
6517 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6518 * mdebugread.c (psymtab_to_symtab_1): Update.
6519 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6520
6521 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6522
6523 * psympriv.h (discard_psymtab): Remove.
6524 * dbxread.c (dbx_end_psymtab): Update.
6525 * xcoffread.c (xcoff_end_psymtab): Update.
6526
6527 2020-03-28 Tom Tromey <tom@tromey.com>
6528
6529 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6530 comment.
6531
6532 2020-03-28 Tom Tromey <tom@tromey.com>
6533
6534 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6535
6536 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6537
6538 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6539
6540 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6541
6542 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6543
6544 2020-03-26 Tom Tromey <tom@tromey.com>
6545
6546 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6547 (mark_common_block_symbol_computed, read_tag_string_type)
6548 (attr_to_dynamic_prop, read_subrange_type): Update.
6549 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6550 to be methods on struct attribute.
6551 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6552 (read_call_site_scope, partial_die_info::read)
6553 (partial_die_info::read, lookup_die_type, follow_die_ref):
6554 Update.
6555 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6556 from dwarf2_get_ref_die_offset.
6557 (attribute::constant_value): New method, from
6558 dwarf2_get_attr_constant_value.
6559 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6560 Declare method.
6561 <constant_value>: New method.
6562
6563 2020-03-26 Tom Tromey <tom@tromey.com>
6564
6565 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6566 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6567 (dwarf_type_encoding_name): Move to stringify.c.
6568 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6569 * dwarf2/stringify.c: New file.
6570 * dwarf2/stringify.h: New file.
6571
6572 2020-03-26 Tom Tromey <tom@tromey.com>
6573
6574 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6575 Rewrite.
6576
6577 2020-03-26 Tom Tromey <tom@tromey.com>
6578
6579 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6580 methods.
6581 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6582 (lookup_ranges_base): Likewise.
6583 (read_cutu_die_from_dwo, read_full_die_1): Update.
6584
6585 2020-03-26 Tom Tromey <tom@tromey.com>
6586
6587 * dwarf2/read.c (read_import_statement, read_file_scope)
6588 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6589 (read_lexical_block_scope, read_call_site_scope)
6590 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6591 (handle_struct_member_die, process_structure_scope)
6592 (update_enumeration_type_from_children)
6593 (process_enumeration_scope, read_array_type, read_common_block)
6594 (read_namespace, read_module, read_subroutine_type): Update.
6595 (sibling_die): Remove.
6596
6597 2020-03-26 Tom Tromey <tom@tromey.com>
6598
6599 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6600 (build_type_psymtabs_reader, read_structure_type)
6601 (read_enumeration_type, read_full_die_1): Update.
6602 (dwarf2_attr_no_follow): Move to die.h.
6603 * dwarf2/die.h (struct die_info) <attr>: New method.
6604
6605 2020-03-26 Tom Tromey <tom@tromey.com>
6606
6607 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6608 <base_address>: Now an optional.
6609 (dwarf2_find_base_address, dwarf2_rnglists_process)
6610 (dwarf2_ranges_process, fill_in_loclist_baton)
6611 (dwarf2_symbol_mark_computed): Update.
6612
6613 2020-03-26 Tom Tromey <tom@tromey.com>
6614
6615 * dwarf2/read.c (struct die_info): Move to die.h.
6616 * dwarf2/die.h: New file.
6617
6618 2020-03-26 Tom Tromey <tom@tromey.com>
6619
6620 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6621 * dwarf2/read.c
6622 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6623 Move to line-header.c.
6624 (read_checked_initial_length_and_offset, read_formatted_entries):
6625 Likewise.
6626 (dwarf_decode_line_header): Split into two.
6627 * dwarf2/line-header.c
6628 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6629 Move from read.c.
6630 (read_checked_initial_length_and_offset, read_formatted_entries):
6631 Likewise.
6632 (dwarf_decode_line_header): New function, split from read.c.
6633
6634 2020-03-26 Tom Tromey <tom@tromey.com>
6635
6636 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6637 Declare method.
6638 * dwarf2/read.c (read_attribute_value): Update.
6639 (dwarf2_per_objfile::read_line_string): Rename from
6640 read_indirect_line_string.
6641 (read_formatted_entries): Update.
6642
6643 2020-03-26 Tom Tromey <tom@tromey.com>
6644
6645 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6646 variable.
6647
6648 2020-03-26 Tom Tromey <tom@tromey.com>
6649
6650 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6651 const.
6652 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6653 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6654 parameter const.
6655
6656 2020-03-26 Tom Tromey <tom@tromey.com>
6657
6658 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6659 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6660 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6661 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6662
6663 2020-03-26 Tom Tromey <tom@tromey.com>
6664
6665 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6666 file_names_size, file_full_name, file_file_name>: Use const.
6667 <file_name_at, file_names>: Add const overload.
6668 * dwarf2/line-header.c (line_header::file_file_name)
6669 (line_header::file_full_name): Update.
6670
6671 2020-03-26 Tom Tromey <tom@tromey.com>
6672
6673 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6674 (macro_start_file, consume_improper_spaces)
6675 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6676 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6677 (dwarf_decode_macros): Move to macro.c.
6678 * dwarf2/macro.c: New file.
6679 * dwarf2/macro.h: New file.
6680 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6681
6682 2020-03-26 Tom Tromey <tom@tromey.com>
6683
6684 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6685 method.
6686 * dwarf2/section.c: New method. From
6687 read_indirect_string_at_offset_from.
6688 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6689 (read_indirect_string_at_offset_from): Move to section.c.
6690 (read_indirect_string_at_offset): Rewrite.
6691 (read_indirect_line_string_at_offset): Remove.
6692 (read_indirect_string, read_indirect_line_string)
6693 (dwarf_decode_macro_bytes): Update.
6694
6695 2020-03-26 Tom Tromey <tom@tromey.com>
6696
6697 * dwarf2/section.h (struct dwarf2_section_info)
6698 <overload_complaint>: Declare.
6699 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6700 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6701 Rename from dwarf2_section_buffer_overflow_complaint.
6702 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6703 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6704
6705 2020-03-26 Tom Tromey <tom@tromey.com>
6706
6707 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6708 Declare.
6709 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6710 Move from read.c.
6711 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6712 to section.c.
6713
6714 2020-03-26 Tom Tromey <tom@tromey.com>
6715
6716 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6717
6718 2020-03-26 Tom Tromey <tom@tromey.com>
6719
6720 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6721 "builder".
6722 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6723 parameter.
6724 (dwarf_decode_macros): Update.
6725
6726 2020-03-26 Tom Tromey <tom@tromey.com>
6727
6728 * dwarf2/read.c (read_attribute_value): Update.
6729 (read_indirect_string_from_dwz): Move to dwz.c; change into
6730 method.
6731 (dwarf_decode_macro_bytes): Update.
6732 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6733 * dwarf2/dwz.c: New file.
6734 * Makefile.in (COMMON_SFILES): Add dwz.c.
6735
6736 2020-03-26 Tom Tromey <tom@tromey.com>
6737
6738 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6739 * dwarf2/read.c: Add include.
6740 * dwarf2/index-write.c: Add include.
6741 * dwarf2/index-cache.c: Add include.
6742 * dwarf2/dwz.h: New file.
6743
6744 2020-03-25 Tom Tromey <tom@tromey.com>
6745
6746 * compile/compile-object-load.c (get_out_value_type): Mention
6747 correct symbol name in error message.
6748
6749 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6750
6751 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6752
6753 2020-03-25 Tom de Vries <tdevries@suse.de>
6754
6755 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6756 * symmisc.c (dump_symtab_1): Print user and includes fields.
6757 (maintenance_info_symtabs): Same.
6758
6759 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6760
6761 PR gdb/25534
6762 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6763 (riscv_regcache_cooked_write): New function.
6764 (riscv_push_dummy_call): Use new function.
6765 (riscv_return_value): Likewise.
6766
6767 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6768
6769 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6770 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6771 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6772 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6773 * infrun.c (follow_fork): Likewise.
6774 (follow_fork_inferior): Likewise.
6775 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6776 * linux-nat.h (class linux_nat_target): Likewise.
6777 * remote.c (class remote_target) <follow_fork>: Likewise.
6778 (remote_target::follow_fork): Likewise.
6779 * target-delegates.c: Re-generate.
6780 * target.c (default_follow_fork): Likewise.
6781 (target_follow_fork): Likewise.
6782 * target.h (struct target_ops) <follow_fork>: Likewise.
6783 (target_follow_fork): Likewise.
6784
6785 2020-03-24 Tom de Vries <tdevries@suse.de>
6786
6787 * psymtab.c (maintenance_info_psymtabs): Print user field.
6788
6789 2020-03-20 Tom Tromey <tromey@adacore.com>
6790
6791 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6792 const.
6793 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6794 const.
6795
6796 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6797
6798 * ptrace.m4: Don't check for ptrace declaration.
6799 * config.in: Re-generate.
6800 * configure: Re-generate.
6801 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6802 not defined.
6803
6804 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6805
6806 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6807 `PTRACE_TYPE_RET'.
6808 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6809 * sparc-nat.c (gdb_ptrace): Likewise.
6810 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6811
6812 2020-03-20 Tom Tromey <tromey@adacore.com>
6813
6814 * c-exp.y (lex_one_token): Fix assert.
6815
6816 2020-03-20 Tom Tromey <tromey@adacore.com>
6817
6818 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6819 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6820 strncpy call.
6821
6822 2020-03-20 Tom Tromey <tromey@adacore.com>
6823
6824 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6825
6826 2020-03-20 Tom Tromey <tromey@adacore.com>
6827
6828 * ada-valprint.c (print_variant_part): Remove parameters; switch
6829 to value-based API.
6830 (print_field_values): Likewise.
6831 (ada_val_print_struct_union): Likewise.
6832 (ada_value_print_1): Update.
6833
6834 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6835
6836 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6837 nbsd_nat_target instead of inf_ptrace_target.
6838 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6839 nbsd_nat_target.
6840
6841 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6842
6843 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6844 it to the ptrace call.
6845 * (store_registers): Likewise.
6846
6847 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6848
6849 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6850 it to the ptrace call.
6851 * (store_registers): Likewise.
6852
6853 2020-03-19 Luis Machado <luis.machado@linaro.org>
6854
6855 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6856 valid, fetch vg value from ptrace.
6857
6858 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6859 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6860 * inf-ptrace.c: Likewise.
6861 * (gdb_ptrace): Add.
6862 * (inf_ptrace_target::resume): Update.
6863 * (inf_ptrace_target::xfer_partial): Likewise.
6864 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6865 * (inf_ptrace_peek_poke): Update.
6866
6867 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6868
6869 * x86-bsd-nat.c (gdb_ptrace): New.
6870 * (x86bsd_dr_set): Add new argument `ptid'.
6871 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6872 x86bsd_dr_set_addr): Update.
6873
6874 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6875
6876 * remote.c (remote_target::process_stop_reply): Handle events for
6877 all threads differently.
6878
6879 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6880
6881 * completer.c (completion_tracker::remove_completion): Define new
6882 function.
6883 * completer.h (completion_tracker::remove_completion): Declare new
6884 function.
6885 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6886 when adding a C++ function symbol.
6887
6888 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6889
6890 * completer.c (completion_tracker::completion_hash_entry): Define
6891 new class.
6892 (advance_to_filename_complete_word_point): Call
6893 recompute_lowest_common_denominator.
6894 (completion_tracker::completion_tracker): Call discard_completions
6895 to setup the hash table.
6896 (completion_tracker::discard_completions): Allow for being called
6897 from the constructor, pass new equal function, and element deleter
6898 when constructing the hash table. Initialise new class member
6899 variables.
6900 (completion_tracker::maybe_add_completion): Remove use of
6901 m_entries_vec, and store more information into m_entries_hash.
6902 (completion_tracker::recompute_lcd_visitor): New function, most
6903 content taken from...
6904 (completion_tracker::recompute_lowest_common_denominator):
6905 ...here, this now just visits each item in the hash calling the
6906 above visitor.
6907 (completion_tracker::build_completion_result): Remove use of
6908 m_entries_vec, call recompute_lowest_common_denominator.
6909 * completer.h (completion_tracker::have_completions): Remove use
6910 of m_entries_vec.
6911 (completion_tracker::completion_hash_entry): Declare new class.
6912 (completion_tracker::recompute_lowest_common_denominator): Change
6913 function signature.
6914 (completion_tracker::recompute_lcd_visitor): Declare new function.
6915 (completion_tracker::m_entries_vec): Delete.
6916 (completion_tracker::m_entries_hash): Initialize to NULL.
6917 (completion_tracker::m_lowest_common_denominator_valid): New
6918 member variable.
6919 (completion_tracker::m_lowest_common_denominator_max_length): New
6920 member variable.
6921
6922 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6923
6924 * regformats/regdef.h: Put reg in gdb namespace.
6925
6926 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6927
6928 * i386-bsd-nat.c (gdb_ptrace): New.
6929 * (i386bsd_fetch_inferior_registers,
6930 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6931 * (i386bsd_fetch_inferior_registers,
6932 i386bsd_store_inferior_registers) Use gdb_ptrace.
6933
6934 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6935
6936 * amd64-bsd-nat.c (gdb_ptrace): New.
6937 * (amd64bsd_fetch_inferior_registers,
6938 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6939 * (amd64bsd_fetch_inferior_registers,
6940 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6941
6942 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6943
6944 * user-regs.c (user_reg::read): Rename to...
6945 (user_reg::xread): ...this.
6946 * (append_user_reg): Rename argument `read' to `xread'.
6947 * (user_reg_add_builtin): Likewise.
6948 * (user_reg_add): Likewise.
6949 * (value_of_user_reg): Likewise.
6950
6951 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6952
6953 * sparc-nat.c (gdb_ptrace): New.
6954 * sparc-nat.c (sparc_fetch_inferior_registers)
6955 (sparc_store_inferior_registers) Remove obsolete comment.
6956 * sparc-nat.c (sparc_fetch_inferior_registers)
6957 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6958 * sparc-nat.c (sparc_fetch_inferior_registers)
6959 (sparc_store_inferior_registers) Use gdb_ptrace.
6960
6961 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6962
6963 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6964 it to the ptrace call.
6965 * sh-nbsd-nat.c (store_registers): Likewise.
6966
6967 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6968
6969 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6970 nbsd_nat_target instead of inf_ptrace_target.
6971 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6972 nbsd_nat_target.
6973
6974 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6975
6976 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6977
6978 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6979
6980 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6981 <sys/sysctl.h>.
6982 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6983
6984 2020-03-17 Tom de Vries <tdevries@suse.de>
6985
6986 PR gdb/23710
6987 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6988 fields.
6989 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6990 fields.
6991 (process_imported_unit_die): Skip import of c++ CUs.
6992
6993 2020-03-16 Tom Tromey <tom@tromey.com>
6994
6995 * p-valprint.c (pascal_object_print_value): Initialize
6996 base_value.
6997
6998 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6999 Shahab Vahedi <shahab@synopsys.com>
7000
7001 * Makefile.in: Add arch/arc.o
7002 * configure.tgt: Likewise.
7003 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7004 (_initialize_arc_tdep): Don't initialize old target descriptions.
7005 (arc_read_description): New function to cache target descriptions.
7006 * arc-tdep.h (arc_read_description): Add proto type.
7007 * arch/arc.c: New file.
7008 * arch/arc.h: Likewise.
7009 * features/Makefile: Replace old target descriptions with new.
7010 * features/arc-arcompact.c: Remove.
7011 * features/arc-arcompact.xml: Likewise.
7012 * features/arc-v2.c: Likewise
7013 * features/arc-v2.xml: Likewise
7014 * features/arc/aux-arcompact.xml: New file.
7015 * features/arc/aux-v2.xml: Likewise.
7016 * features/arc/core-arcompact.xml: Likewise.
7017 * features/arc/core-v2.xml: Likewise.
7018 * features/arc/aux-arcompact.c: Generate.
7019 * features/arc/aux-v2.c: Likewise.
7020 * features/arc/core-arcompact.c: Likewise.
7021 * features/arc/core-v2.c: Likewise.
7022 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7023
7024 2020-03-16 Tom Tromey <tromey@adacore.com>
7025
7026 PR gdb/25663:
7027 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7028 putting value into bcache.
7029
7030 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7031
7032 PR gdb/21500
7033 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7034 to...
7035 (amd64_windows_init_abi_common): ... this. Don't set size of
7036 long type.
7037 (amd64_windows_init_abi): New function.
7038 (amd64_cygwin_init_abi): New function.
7039 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7040 the Cygwin OS ABI.
7041 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7042 comment.
7043
7044 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7045
7046 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7047 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7048 (pe_import_directory_entry): New struct type.
7049 (is_linked_with_cygwin_dll): New function.
7050 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7051 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7052 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7053
7054 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7055
7056 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7057 i386_cygwin_core_osabi_sniffer.
7058
7059 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7060
7061 * i386-cygwin-tdep.c: Rename to...
7062 * i386-windows-tdep.c: ... this.
7063 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7064 i386-windows-tdep.c.
7065 * configure.tgt: Likewise.
7066
7067 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7068
7069 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7070 * osabi.c (gdb_osabi_names): Add "Windows".
7071 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7072 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7073 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7074 i386_cygwin_osabi_sniffer.
7075 (_initialize_i386_cygwin_tdep): Register OS ABI
7076 GDB_OSABI_WINDOWS for i386.
7077 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7078 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7079 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7080 for x86-64.
7081 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7082 when the target matches '*-*-mingw*'.
7083
7084 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7085
7086 * defs.h (enum gdb_osabi): Move to...
7087 * osabi.h (enum gdb_osabi): ... here.
7088 * gdbarch.sh: Include osabi.h in gdbarch.h.
7089 * gdbarch.h: Re-generate.
7090
7091 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7092
7093 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7094 function.
7095 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7096
7097 2020-03-14 Tom Tromey <tom@tromey.com>
7098
7099 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7100 for C++.
7101 (c_type_print_modifier): Likewise. Add "language" parameter.
7102 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7103 (c_type_print_base_1): Update.
7104 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7105 constants.
7106 * type-stack.c (type_stack::insert): Handle tp_atomic and
7107 tp_restrict.
7108 (type_stack::follow_type_instance_flags): Likewise.
7109 (type_stack::follow_types): Likewise. Merge type-following code.
7110 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7111 (space_identifier, cv_with_space_id)
7112 (const_or_volatile_or_space_identifier_noopt)
7113 (const_or_volatile_or_space_identifier): Remove.
7114 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7115 rules.
7116 (ptr_operator, typebase): Update.
7117 (enum token_flag) <FLAG_C>: New constant.
7118 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7119 "_Atomic".
7120 (lex_one_token): Handle FLAG_C.
7121
7122 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7123
7124 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7125 it to the ptrace call.
7126 * m68k-bsd-nat.c (store_registers): Likewise.
7127
7128 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7129
7130 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7131 gdb_byte *.
7132 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7133 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7134 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7135
7136 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7137
7138 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7139 nbsd_nat_target instead of inf_ptrace_target.
7140 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7141 nbsd_nat_target.
7142
7143 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7144
7145 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7146 register_t.
7147
7148 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7149
7150 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7151 it to the ptrace call.
7152 * alpha-bsd-nat.c (store_registers): Likewise.
7153
7154 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7155
7156 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7157 includes.
7158 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7159 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7160 fill_fpregset): Likewise.
7161
7162 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7163
7164 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7165 nbsd_nat_target instead of inf_ptrace_target.
7166 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7167 nbsd_nat_target.
7168
7169 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7170
7171 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7172 register_t.
7173
7174 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7175
7176 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7177 it to the ptrace call.
7178 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7179 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7180 * arm-nbsd-nat.c (store_register): Likewise.
7181 * arm-nbsd-nat.c (store_regs): Likewise.
7182 * arm-nbsd-nat.c (store_fp_register): Likewise.
7183 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7184
7185 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7186
7187 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7188 nbsd_nat_target instead of inf_ptrace_target.
7189 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7190 nbsd_nat_target.
7191
7192 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7193
7194 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7195 it to the ptrace call.
7196 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7197
7198 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7199
7200 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7201 it to the ptrace call.
7202 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7203
7204 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7205
7206 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7207 gdb_byte *.
7208 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7209
7210 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7211
7212 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7213 instead of inf_ptrace_target.
7214 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7215 nbsd_nat_target.
7216
7217 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7218
7219 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7220 register_t.
7221
7222 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7223
7224 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7225 register_t.
7226
7227 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7228
7229 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7230 register_t.
7231
7232 2020-03-13 Tom Tromey <tom@tromey.com>
7233
7234 * value.h (val_print): Don't declare.
7235 * valprint.h (val_print_array_elements)
7236 (val_print_scalar_formatted, generic_val_print): Don't declare.
7237 * valprint.c (generic_val_print_array): Take a struct value.
7238 (generic_val_print_ptr, generic_val_print_memberptr)
7239 (generic_val_print_bool, generic_val_print_int)
7240 (generic_val_print_char, generic_val_print_complex)
7241 (generic_val_print): Remove.
7242 (generic_value_print): Update.
7243 (do_val_print): Remove unused parameters. Don't call
7244 la_val_print.
7245 (val_print): Remove.
7246 (common_val_print): Update. Don't call value_check_printable.
7247 (val_print_scalar_formatted, val_print_array_elements): Remove.
7248 * rust-lang.c (rust_val_print): Remove.
7249 (rust_language_defn): Update.
7250 * p-valprint.c (pascal_val_print): Remove.
7251 (pascal_value_print_inner): Update.
7252 (pascal_object_print_val_fields, pascal_object_print_val):
7253 Remove.
7254 (pascal_object_print_static_field): Update.
7255 * p-lang.h (pascal_val_print): Don't declare.
7256 * p-lang.c (pascal_language_defn): Update.
7257 * opencl-lang.c (opencl_language_defn): Update.
7258 * objc-lang.c (objc_language_defn): Update.
7259 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7260 * m2-lang.h (m2_val_print): Don't declare.
7261 * m2-lang.c (m2_language_defn): Update.
7262 * language.h (struct language_defn) <la_val_print>: Remove.
7263 * language.c (unk_lang_value_print_inner): Rename. Change
7264 argument types.
7265 (unknown_language_defn, auto_language_defn): Update.
7266 * go-valprint.c (go_val_print): Remove.
7267 * go-lang.h (go_val_print): Don't declare.
7268 * go-lang.c (go_language_defn): Update.
7269 * f-valprint.c (f_val_print): Remove.
7270 * f-lang.h (f_value_print): Don't declare.
7271 * f-lang.c (f_language_defn): Update.
7272 * d-valprint.c (d_val_print): Remove.
7273 * d-lang.h (d_value_print): Don't declare.
7274 * d-lang.c (d_language_defn): Update.
7275 * cp-valprint.c (cp_print_value_fields)
7276 (cp_print_value_fields_rtti, cp_print_value): Remove.
7277 (cp_print_static_field): Update.
7278 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7279 (c_val_print_struct, c_val_print_union, c_val_print_int)
7280 (c_val_print_memberptr, c_val_print): Remove.
7281 * c-lang.h (c_val_print_array, cp_print_value_fields)
7282 (cp_print_value_fields_rtti): Don't declare.
7283 * c-lang.c (c_language_defn, cplus_language_defn)
7284 (asm_language_defn, minimal_language_defn): Update.
7285 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7286 (ada_val_print_enum): Take a struct value.
7287 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7288 (ada_val_print): Remove.
7289 (ada_value_print_1): Update.
7290 (printable_val_type): Remove.
7291 * ada-lang.h (ada_val_print): Don't declare.
7292 * ada-lang.c (ada_language_defn): Update.
7293
7294 2020-03-13 Tom Tromey <tom@tromey.com>
7295
7296 * valprint.c (do_val_print): Update.
7297 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7298 a struct value.
7299 (value_to_value_object_no_release): Declare.
7300 * python/py-value.c (value_to_value_object_no_release): New
7301 function.
7302 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7303 struct value.
7304 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7305 function.
7306 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7307 a struct value.
7308 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7309 Declare.
7310 (gdbscm_apply_val_pretty_printer): Take a struct value.
7311 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7312 value.
7313 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7314 value.
7315 * extension-priv.h (struct extension_language_ops)
7316 <apply_val_pretty_printer>: Take a struct value.
7317 * cp-valprint.c (cp_print_value): Create a struct value.
7318 (cp_print_value): Update.
7319
7320 2020-03-13 Tom Tromey <tom@tromey.com>
7321
7322 * ada-valprint.c (print_field_values): Call common_val_print.
7323
7324 2020-03-13 Tom Tromey <tom@tromey.com>
7325
7326 * ada-valprint.c (val_print_packed_array_elements): Remove
7327 bitoffset and val parameters. Call common_val_print.
7328 (ada_val_print_string): Remove offset, address, and original_value
7329 parameters.
7330 (ada_val_print_array): Update.
7331 (ada_value_print_array): New function.
7332 (ada_value_print_1): Call it.
7333
7334 2020-03-13 Tom Tromey <tom@tromey.com>
7335
7336 * ada-valprint.c (ada_value_print): Use common_val_print.
7337
7338 2020-03-13 Tom Tromey <tom@tromey.com>
7339
7340 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7341
7342 2020-03-13 Tom Tromey <tom@tromey.com>
7343
7344 * ada-valprint.c (ada_value_print_num): New function.
7345 (ada_value_print_1): Use it.
7346
7347 2020-03-13 Tom Tromey <tom@tromey.com>
7348
7349 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7350
7351 2020-03-13 Tom Tromey <tom@tromey.com>
7352
7353 * ada-valprint.c (ada_value_print_ptr): New function.
7354 (ada_value_print_1): Use it.
7355
7356 2020-03-13 Tom Tromey <tom@tromey.com>
7357
7358 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7359 call common_val_print.
7360 (ada_val_print_1): Update.
7361 (ada_value_print_1): New function.
7362 (ada_value_print_inner): Rewrite.
7363
7364 2020-03-13 Tom Tromey <tom@tromey.com>
7365
7366 * cp-valprint.c (cp_print_value_fields): Update.
7367 (cp_print_value): New function.
7368
7369 2020-03-13 Tom Tromey <tom@tromey.com>
7370
7371 * m2-valprint.c (m2_value_print_inner): Use
7372 cp_print_value_fields.
7373 * cp-valprint.c (cp_print_value_fields): New function.
7374 * c-valprint.c (c_value_print_struct): New function.
7375 (c_value_print_inner): Use c_value_print_struct.
7376 * c-lang.h (cp_print_value_fields): Declare.
7377
7378 2020-03-13 Tom Tromey <tom@tromey.com>
7379
7380 * c-valprint.c (c_value_print_array): New function.
7381 (c_value_print_inner): Use it.
7382
7383 2020-03-13 Tom Tromey <tom@tromey.com>
7384
7385 * c-valprint.c (c_value_print_memberptr): New function.
7386 (c_value_print_inner): Use it.
7387
7388 2020-03-13 Tom Tromey <tom@tromey.com>
7389
7390 * c-valprint.c (c_value_print_int): New function.
7391 (c_value_print_inner): Use it.
7392
7393 2020-03-13 Tom Tromey <tom@tromey.com>
7394
7395 * c-valprint.c (c_value_print_ptr): New function.
7396 (c_value_print_inner): Use it.
7397
7398 2020-03-13 Tom Tromey <tom@tromey.com>
7399
7400 * c-valprint.c (c_value_print_inner): Rewrite.
7401
7402 2020-03-13 Tom Tromey <tom@tromey.com>
7403
7404 * valprint.c (generic_value_print_complex): New function.
7405 (generic_value_print): Use it.
7406
7407 2020-03-13 Tom Tromey <tom@tromey.com>
7408
7409 * valprint.c (generic_val_print_float): Don't call
7410 val_print_scalar_formatted.
7411 (generic_val_print, generic_value_print): Update.
7412
7413 2020-03-13 Tom Tromey <tom@tromey.com>
7414
7415 * valprint.c (generic_value_print_char): New function
7416 (generic_value_print): Use it.
7417
7418 2020-03-13 Tom Tromey <tom@tromey.com>
7419
7420 * valprint.c (generic_value_print_int): New function.
7421 (generic_value_print): Use it.
7422
7423 2020-03-13 Tom Tromey <tom@tromey.com>
7424
7425 * valprint.c (generic_value_print_bool): New function.
7426 (generic_value_print): Use it.
7427
7428 2020-03-13 Tom Tromey <tom@tromey.com>
7429
7430 * valprint.c (generic_val_print_func): Simplify.
7431 (generic_val_print, generic_value_print): Update.
7432
7433 2020-03-13 Tom Tromey <tom@tromey.com>
7434
7435 * valprint.c (generic_val_print_flags): Remove.
7436 (generic_val_print, generic_value_print): Update.
7437 (val_print_type_code_flags): Add original_value parameter.
7438
7439 2020-03-13 Tom Tromey <tom@tromey.com>
7440
7441 * valprint.c (generic_val_print): Update.
7442 (generic_value_print): Update.
7443 * valprint.c (generic_val_print_enum): Don't call
7444 val_print_scalar_formatted.
7445
7446 2020-03-13 Tom Tromey <tom@tromey.com>
7447
7448 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7449 * valprint.c (generic_value_print_ptr): New function.
7450
7451 2020-03-13 Tom Tromey <tom@tromey.com>
7452
7453 * valprint.c (generic_value_print): Rewrite.
7454
7455 2020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * p-valprint.c (pascal_object_print_value_fields)
7458 (pascal_object_print_value): New functions.
7459
7460 2020-03-13 Tom Tromey <tom@tromey.com>
7461
7462 * p-valprint.c (pascal_value_print_inner): Rewrite.
7463
7464 2020-03-13 Tom Tromey <tom@tromey.com>
7465
7466 * f-valprint.c (f_value_print_innner): Rewrite.
7467
7468 2020-03-13 Tom Tromey <tom@tromey.com>
7469
7470 * m2-valprint.c (m2_print_unbounded_array): New overload.
7471 (m2_print_unbounded_array): Update.
7472 (m2_print_array_contents): Take a struct value.
7473 (m2_value_print_inner): Rewrite.
7474
7475 2020-03-13 Tom Tromey <tom@tromey.com>
7476
7477 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7478 (d_value_print_inner): New function.
7479 * d-lang.h (d_value_print_inner): Declare.
7480 * d-lang.c (d_language_defn): Use d_value_print_inner.
7481
7482 2020-03-13 Tom Tromey <tom@tromey.com>
7483
7484 * go-valprint.c (go_value_print_inner): New function.
7485 * go-lang.h (go_value_print_inner): Declare.
7486 * go-lang.c (go_language_defn): Use go_value_print_inner.
7487
7488 2020-03-13 Tom Tromey <tom@tromey.com>
7489
7490 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7491 API.
7492 (rust_val_print): Rewrite.
7493 (rust_value_print_inner): New function, from rust_val_print.
7494 (rust_language_defn): Use rust_value_print_inner.
7495
7496 2020-03-13 Tom Tromey <tom@tromey.com>
7497
7498 * ada-valprint.c (ada_value_print_inner): New function.
7499 * ada-lang.h (ada_value_print_inner): Declare.
7500 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7501
7502 2020-03-13 Tom Tromey <tom@tromey.com>
7503
7504 * f-valprint.c (f_value_print_innner): New function.
7505 * f-lang.h (f_value_print_innner): Declare.
7506 * f-lang.c (f_language_defn): Use f_value_print_innner.
7507
7508 2020-03-13 Tom Tromey <tom@tromey.com>
7509
7510 * p-valprint.c (pascal_value_print_inner): New function.
7511 * p-lang.h (pascal_value_print_inner): Declare.
7512 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7513
7514 2020-03-13 Tom Tromey <tom@tromey.com>
7515
7516 * m2-valprint.c (m2_value_print_inner): New function.
7517 * m2-lang.h (m2_value_print_inner): Declare.
7518 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7519
7520 2020-03-13 Tom Tromey <tom@tromey.com>
7521
7522 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7523 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7524 * c-valprint.c (c_value_print_inner): New function.
7525 * c-lang.h (c_value_print_inner): Declare.
7526 * c-lang.c (c_language_defn, cplus_language_defn)
7527 (asm_language_defn, minimal_language_defn): Use
7528 c_value_print_inner.
7529
7530 2020-03-13 Tom Tromey <tom@tromey.com>
7531
7532 * p-valprint.c (pascal_object_print_value_fields): Now static.
7533 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7534
7535 2020-03-13 Tom Tromey <tom@tromey.com>
7536
7537 * c-valprint.c (c_val_print_array): Simplify.
7538
7539 2020-03-13 Tom Tromey <tom@tromey.com>
7540
7541 * valprint.c (value_print_array_elements): New function.
7542 * valprint.h (value_print_array_elements): Declare.
7543
7544 2020-03-13 Tom Tromey <tom@tromey.com>
7545
7546 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7547 * mips-tdep.c (mips_print_register): Use
7548 value_print_scalar_formatted.
7549
7550 2020-03-13 Tom Tromey <tom@tromey.com>
7551
7552 * valprint.h (value_print_scalar_formatted): Declare.
7553 * valprint.c (value_print_scalar_formatted): New function.
7554
7555 2020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * valprint.h (generic_value_print): Declare.
7558 * valprint.c (generic_value_print): New function.
7559
7560 2020-03-13 Tom Tromey <tom@tromey.com>
7561
7562 * valprint.c (do_val_print): Call la_value_print_inner, if
7563 available.
7564 * rust-lang.c (rust_language_defn): Update.
7565 * p-lang.c (pascal_language_defn): Update.
7566 * opencl-lang.c (opencl_language_defn): Update.
7567 * objc-lang.c (objc_language_defn): Update.
7568 * m2-lang.c (m2_language_defn): Update.
7569 * language.h (struct language_defn) <la_value_print_inner>: New
7570 member.
7571 * language.c (unknown_language_defn, auto_language_defn): Update.
7572 * go-lang.c (go_language_defn): Update.
7573 * f-lang.c (f_language_defn): Update.
7574 * d-lang.c (d_language_defn): Update.
7575 * c-lang.c (c_language_defn, cplus_language_defn)
7576 (asm_language_defn, minimal_language_defn): Update.
7577 * ada-lang.c (ada_language_defn): Update.
7578
7579 2020-03-13 Tom Tromey <tom@tromey.com>
7580
7581 * c-valprint.c (c_value_print): Use common_val_print.
7582
7583 2020-03-13 Tom Tromey <tom@tromey.com>
7584
7585 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7586
7587 2020-03-13 Tom Tromey <tom@tromey.com>
7588
7589 * f-valprint.c (f77_print_array_1, f_val_print): Use
7590 common_val_print.
7591
7592 2020-03-13 Tom Tromey <tom@tromey.com>
7593
7594 * riscv-tdep.c (riscv_print_one_register_info): Use
7595 common_val_print.
7596
7597 2020-03-13 Tom Tromey <tom@tromey.com>
7598
7599 * mi/mi-main.c (output_register): Use common_val_print.
7600
7601 2020-03-13 Tom Tromey <tom@tromey.com>
7602
7603 * infcmd.c (default_print_one_register_info): Use
7604 common_val_print.
7605
7606 2020-03-13 Tom Tromey <tom@tromey.com>
7607
7608 * valprint.h (common_val_print_checked): Declare.
7609 * valprint.c (common_val_print_checked): New function.
7610 * stack.c (print_frame_arg): Use common_val_print_checked.
7611
7612 2020-03-13 Tom Tromey <tom@tromey.com>
7613
7614 * valprint.c (do_val_print): New function, from val_print.
7615 (val_print): Use do_val_print.
7616 (common_val_print): Use do_val_print.
7617
7618 2020-03-13 Tom Tromey <tom@tromey.com>
7619
7620 * valprint.c (value_print): Use scoped_value_mark.
7621
7622 2020-03-13 Tom de Vries <tdevries@suse.de>
7623
7624 PR symtab/25646
7625 * psymtab.c (partial_symtab::partial_symtab): Don't set
7626 globals_offset and statics_offset. Push element onto
7627 current_global_psymbols and current_static_psymbols stacks.
7628 (concat): New function.
7629 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7630 element from current_global_psymbols and current_static_psymbols
7631 stacks. Concat popped elements to global_psymbols and
7632 static_symbols.
7633 (add_psymbol_to_list): Use current_global_psymbols and
7634 current_static_psymbols stacks.
7635 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7636 current_static_psymbols fields.
7637
7638 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7639
7640 * corelow.c (sniff_core_bfd): Remove.
7641 (class core_target) <m_core_vec>: Remove.
7642 (core_target::core_target): Update.
7643 (core_file_fns): Remove.
7644 (deprecated_add_core_fns): Remove.
7645 (default_core_sniffer): Remove.
7646 (sniff_core_bfd): Remove.
7647 (default_check_format): Remove.
7648 (gdb_check_format): Remove.
7649 (core_target_open): Update.
7650 (core_target::get_core_register_section): Update.
7651 (get_core_registers_cb): Update.
7652 (core_target::fetch_registers): Update.
7653 * gdbcore.h (struct core_fns): Remove.
7654 (deprecated_add_core_fns): Remove.
7655 (default_core_sniffer): Remove.
7656 (default_check_format): Remove.
7657
7658 2020-03-12 Tom Tromey <tom@tromey.com>
7659
7660 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7661 CORE_ADDR.
7662 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7663
7664 2020-03-12 Tom Tromey <tom@tromey.com>
7665
7666 * remote.c (remote_target::download_tracepoint)
7667 (remote_target::enable_tracepoint)
7668 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7669 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7670 sprintf_vma.
7671
7672 2020-03-12 Tom Tromey <tom@tromey.com>
7673
7674 * symfile-mem.c: Update CORE_ADDR size assert.
7675
7676 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * selftest.m4: Move to gdbsupport/.
7679 * acinclude.m4: Update path to selftest.m4.
7680
7681 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7682
7683 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7684 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7685 gdbarch-selfselftests.c and selftest-arch.c.
7686 (SUBDIR_UNITTESTS_OBS): Rename to...
7687 (SELFTESTS_OBS): ... this.
7688 (COMMON_SFILES): Remove disasm-selftests.c and
7689 gdbarch-selftests.c.
7690 * configure.ac: Don't add selftest-arch.{c,o} to
7691 CONFIG_{SRCS,OBS}.
7692 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7693 preprocessor conditions.
7694
7695 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7696
7697 * configure.ac: Don't source bfd/development.sh.
7698 * selftest.m4: Modify comment.
7699 * configure: Re-generate.
7700
7701 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7702
7703 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7704 not "true" or "false".
7705 * configure: Re-generate.
7706
7707 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7708
7709 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7710 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7711 renamed to arm_nbsd_supply_gregset.
7712 (fetch_register): Update to call arm_nbsd_supply_gregset.
7713 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7714 (arm_netbsd_nat_target::fetch_registers): Update.
7715 (fetch_elfcore_registers): Removed.
7716 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7717 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7718 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7719 not require NetBSD system headers.
7720 (arm_nbsd_regset): New struct.
7721 (arm_nbsd_iterate_over_regset_sections): New function.
7722 (arm_netbsd_init_abi_common): Updated to call
7723 set_gdbarch_iterate_over_regset_sections.
7724 * arm-nbsd-tdep.h: New file.
7725
7726 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7727
7728 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7729 recursion.
7730
7731 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7732
7733 * configure: Re-generate.
7734
7735 2020-03-11 Tom Tromey <tromey@adacore.com>
7736
7737 * ada-typeprint.c (print_choices): Fix comment.
7738
7739 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7740
7741 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7742 previous item in the list, when the list has no items.
7743
7744 2020-03-11 Tom de Vries <tdevries@suse.de>
7745
7746 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7747 PROP_LOCLIST handling code.
7748
7749 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7750
7751 * buildsym-legacy.c (record_line): Pass extra parameter to
7752 record_line.
7753 * buildsym.c (buildsym_compunit::record_line): Take an extra
7754 parameter, reduce duplication in the line table, and record the
7755 is_stmt flag in the line table.
7756 * buildsym.h (buildsym_compunit::record_line): Add extra
7757 parameter.
7758 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7759 non-statement lines.
7760 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7761 this to the symtab builder.
7762 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7763 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7764 through to dwarf_record_line_1.
7765 * infrun.c (process_event_stop_test): When stepping, don't stop at
7766 a non-statement instruction, and only refresh the step info when
7767 we land in the middle of a line's range. Also add an extra
7768 comment.
7769 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7770 field.
7771 * record-btrace.c (btrace_find_line_range): Only record lines
7772 marked as is-statement.
7773 * stack.c (frame_show_address): Show the frame address if we are
7774 in a non-statement sal.
7775 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7776 (maintenance_print_one_line_table): Print a header for the is_stmt
7777 column, and include is_stmt information in the output.
7778 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7779 preference to non-statements.
7780 (find_pcs_for_symtab_line): Prefer is-statement entries.
7781 (find_line_common): Likewise.
7782 * symtab.h (struct linetable_entry): Add is_stmt field.
7783 (struct symtab_and_line): Likewise.
7784 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7785 arranging the line table.
7786
7787 2020-03-07 Tom de Vries <tdevries@suse.de>
7788
7789 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7790 DIE.
7791
7792 2020-03-07 Tom Tromey <tom@tromey.com>
7793
7794 * valops.c (value_literal_complex): Remove obsolete comment.
7795 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7796 comment.
7797
7798 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7799
7800 * infrun.h: Forward-declare thread_info.
7801 (set_step_info): Add thread_info parameter, add doc.
7802 * infrun.c (set_step_info): Add thread_info parameter, move doc
7803 to header.
7804 * infrun.c (process_event_stop_test): Pass thread to
7805 set_step_info call.
7806 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7807 set_step_info.
7808 (prepare_one_step): Add thread_info parameter, pass it to
7809 set_step_frame and prepare_one_step (recursive) call.
7810 (step_1): Pass thread to prepare_one_step call.
7811 (step_command_fsm::should_stop): Pass thread to
7812 prepare_one_step.
7813 (until_next_fsm): Pass thread to set_step_frame call.
7814 (finish_command): Pass thread to set_step_info call.
7815
7816 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7817
7818 * windows-tdep.c (windows_solib_create_inferior_hook):
7819 Check if inferior is running.
7820
7821 2020-03-06 Tom de Vries <tdevries@suse.de>
7822
7823 * NEWS: Fix "the the".
7824 * ctfread.c: Same.
7825
7826 2020-03-06 Tom de Vries <tdevries@suse.de>
7827
7828 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7829
7830 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7831
7832 * .dir-locals.el: Add a comment referencing the other copies of
7833 this file.
7834
7835 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7836
7837 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7838 psargs.
7839
7840 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7841
7842 * .gitattributes: New file.
7843
7844 2020-03-04 Tom Tromey <tom@tromey.com>
7845
7846 * symmisc.c (print_symbol_bcache_statistics)
7847 (print_objfile_statistics): Update.
7848 * symfile.c (allocate_symtab): Use intern.
7849 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7850 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7851 macro_cache>: Remove.
7852 <string_cache>: New member.
7853 (struct objfile) <intern>: New methods.
7854 * elfread.c (elf_symtab_read): Use intern.
7855 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7856 (dwarf2_compute_name, dwarf2_physname)
7857 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7858 names.
7859 (guess_partial_die_structure_name): Update.
7860 (partial_die_info::fixup): Intern name.
7861 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7862 name.
7863 (dwarf2_name): Intern name. Update.
7864 * buildsym.c (buildsym_compunit::get_macro_table): Use
7865 string_cache.
7866
7867 2020-03-04 Tom Tromey <tom@tromey.com>
7868
7869 * jit.c (bfd_open_from_target_memory): Make "target" const.
7870 * corefile.c (gnutarget): Now const.
7871 * gdbcore.h (gnutarget): Now const.
7872
7873 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7874
7875 * NEWS: Mention support for WOW64 processes.
7876 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7877 (amd64_windows_segment_register_p): Remove static.
7878 (_initialize_amd64_windows_nat): Update.
7879 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7880 * i386-windows-nat.c (context_offset): Update.
7881 (i386_mappings): Rename and remove static.
7882 (i386_windows_segment_register_p): Remove static.
7883 (_initialize_i386_windows_nat): Update.
7884 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7885 (STATUS_WX86_SINGLE_STEP): New macro.
7886 (EnumProcessModulesEx): New macro.
7887 (Wow64SuspendThread): New macro.
7888 (Wow64GetThreadContext): New macro.
7889 (Wow64SetThreadContext): New macro.
7890 (Wow64GetThreadSelectorEntry): New macro.
7891 (windows_set_context_register_offsets): Add static.
7892 (windows_set_segment_register_p): Likewise.
7893 (windows_add_thread): Adapt for WOW64 processes.
7894 (windows_fetch_one_register): Likewise.
7895 (windows_nat_target::fetch_registers): Likewise.
7896 (windows_store_one_register): Likewise.
7897 (display_selector): Likewise.
7898 (display_selectors): Likewise.
7899 (handle_exception): Likewise.
7900 (windows_continue): Likewise.
7901 (windows_nat_target::resume): Likewise.
7902 (windows_add_all_dlls): Likewise.
7903 (do_initial_windows_stuff): Likewise.
7904 (windows_nat_target::attach): Likewise.
7905 (windows_get_exec_module_filename): Likewise.
7906 (windows_nat_target::create_inferior): Likewise.
7907 (windows_xfer_siginfo): Likewise.
7908 (_initialize_loadable): Initialize Wow64SuspendThread,
7909 Wow64GetThreadContext, Wow64SetThreadContext,
7910 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7911 * windows-nat.h (windows_set_context_register_offsets):
7912 Remove declaration.
7913 (windows_set_segment_register_p): Likewise.
7914 (i386_windows_segment_register_p): Add declaration.
7915 (amd64_windows_segment_register_p): Likewise.
7916
7917 2020-03-04 Luis Machado <luis.machado@linaro.org>
7918
7919 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7920 in "info registers" for AArch64/ARM.
7921
7922 The change caused "info registers" to not print GPR's.
7923
7924 gdb/ChangeLog:
7925
7926 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7927
7928 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7929 when reg->group is empty and reggroup is not.
7930
7931 2020-03-03 Tom Tromey <tromey@adacore.com>
7932
7933 * dwarf2/frame.c (struct dwarf2_frame_cache)
7934 <checked_tailcall_bottom, entry_cfa_sp_offset,
7935 entry_cfa_sp_offset_p>: Remove members.
7936 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7937 (dwarf2_frame_prev_register): Don't call
7938 dwarf2_tailcall_sniffer_first.
7939 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7940 * frame-unwind.c (add_unwinder): New fuction.
7941 (frame_unwind_init): Use it. Add tailcall unwinder.
7942
7943 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7944 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7945
7946 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7947 value should be printed as true.
7948
7949 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7950
7951 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7952 (windows_init_abi): Set and use windows_so_ops.
7953
7954 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7955
7956 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7957 when verifying if dealing with a convenience variable.
7958
7959 2020-03-03 Luis Machado <luis.machado@linaro.org>
7960
7961 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7962
7963 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7964
7965 * infrun.c (gdbarch_supports_displaced_stepping): New.
7966 (use_displaced_stepping): Break up conditions in smaller pieces.
7967 Use gdbarch_supports_displaced_stepping.
7968 (displaced_step_prepare_throw): Use
7969 gdbarch_supports_displaced_stepping.
7970
7971 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7972
7973 * NEWS: Mention new behaviour of the history filename.
7974 * top.c (write_history_p): Add comment.
7975 (show_write_history_p): Add header comment, give a different
7976 message when history writing is on, but the history filename is
7977 empty.
7978 (history_filename): Add comment.
7979 (history_filename_empty): New function.
7980 (show_history_filename): Add header comment, give a different
7981 message when the filename is empty.
7982 (init_history): Compare history_filename against nullptr, and only
7983 read history if the filename is not empty.
7984 (set_history_filename): Add header comment, and only make
7985 non-empty filenames absolute.
7986 (init_main): Make the filename argument to 'set history filename'
7987 optional.
7988
7989 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7990
7991 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7992 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7993 (fetch_fp_register): Update.
7994 (fetch_fp_regs): Update.
7995 (store_fp_register): Update.
7996 (store_fp_regs): Update.
7997 (arm_netbsd_nat_target::read_description): New function.
7998 (fetch_elfcore_registers): Update.
7999
8000 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8001
8002 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8003 general_thread if the stop reply is missing a thread-id.
8004 (remote_target::process_stop_reply): Use the first non-exited
8005 thread if the target didn't pass a thread-id.
8006 * infrun.c (do_target_wait): Move call to
8007 switch_to_inferior_no_thread to ....
8008 (do_target_wait_1): ... here.
8009
8010 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8011
8012 * debuginfod-support.c: Include defs.h first.
8013
8014 2020-02-28 Tom de Vries <tdevries@suse.de>
8015
8016 * symfile.c (set_initial_language): Use default language for lookup.
8017
8018 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8019
8020 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8021 reader variable, pass `this` to read_cutu_die_from_dwo.
8022
8023 2020-02-27 Aaron Merey <amerey@redhat.com>
8024
8025 * source.c (open_source_file): Check for nullptr when computing
8026 srcpath.
8027
8028 2020-02-27 Tom Tromey <tromey@adacore.com>
8029
8030 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8031 member.
8032 (dwarf2_add_field): Don't update nfields.
8033 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8034
8035 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8036
8037 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8038 abs.
8039
8040 2020-02-26 Tom Tromey <tom@tromey.com>
8041
8042 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8043 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8044 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8045 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8046 per_cu_data.
8047
8048 2020-02-26 Tom Tromey <tom@tromey.com>
8049
8050 * dwarf2/index-write.c (psym_index_map): Change type.
8051 (add_address_entry_worker, write_one_signatured_type)
8052 (recursively_count_psymbols, recursively_write_psymbols)
8053 (class debug_names, psyms_seen_size, write_gdbindex)
8054 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8055
8056 2020-02-26 Aaron Merey <amerey@redhat.com>
8057
8058 * Makefile.in: Handle optional debuginfod support.
8059 * NEWS: Update.
8060 * README: Add --with-debuginfod summary.
8061 * config.in: Regenerate.
8062 * configure: Regenerate.
8063 * configure.ac: Handle optional debuginfod support.
8064 * debuginfod-support.c: debuginfod helper functions.
8065 * debuginfod-support.h: Ditto.
8066 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8067 summary.
8068 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8069 when a dwz file cannot be found.
8070 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8071 debuginfo file cannot be found.
8072 * source.c (open_source_file): Query debuginfod servers when a
8073 source file cannot be found.
8074 * top.c (print_gdb_configuration): Include
8075 --{with,without}-debuginfod in the output.
8076
8077 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8078
8079 * thread.c (thr_try_catch_cmd): Print thread name.
8080
8081 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8082
8083 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8084 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8085 dwarf2_fetch_die_type_sect_off): Move to...
8086 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8087 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8088 dwarf2_fetch_die_type_sect_off): ... here.
8089 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8090 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8091 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8092
8093 2020-02-26 Tom de Vries <tdevries@suse.de>
8094
8095 PR gdb/25603
8096 * symfile.c (set_initial_language): Exit-early if
8097 language_mode == language_mode_manual.
8098
8099 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8100
8101 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8102 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8103 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8104
8105 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8106
8107 * gdbtypes.c (create_array_type_with_stride): Handle negative
8108 array strides.
8109 * valarith.c (value_subscripted_rvalue): Likewise.
8110
8111 2020-02-25 Luis Machado <luis.machado@linaro.org>
8112
8113 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8114
8115 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8116
8117 * loc.h (dwarf2_get_die_type): Move to...
8118 * read.h (dwarf2_get_die_type): ... here.
8119 * read.c (dwarf2_get_die_type): Move doc to header.
8120
8121 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8122
8123 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8124 'gnulib/Makefile.in' to the list.
8125
8126 2020-02-24 Tom Tromey <tom@tromey.com>
8127
8128 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8129 Remove.
8130 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8131 XOBNEWVEC.
8132
8133 2020-02-24 Tom Tromey <tom@tromey.com>
8134
8135 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8136 New method.
8137 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8138 (dw2_do_instantiate_symtab, dw2_get_file_names)
8139 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8140
8141 2020-02-24 Tom Tromey <tom@tromey.com>
8142
8143 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8144 make_scoped_restore.
8145 (dwarf2_psymtab::read_symtab): Don't clear
8146 reading_partial_symbols.
8147
8148 2020-02-24 Tom de Vries <tdevries@suse.de>
8149
8150 PR gdb/25592
8151 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8152
8153 2020-02-24 Tom de Vries <tdevries@suse.de>
8154
8155 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8156 commands layout next/prev/regs.
8157
8158 2020-02-22 Tom Tromey <tom@tromey.com>
8159
8160 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8161 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8162
8163 2020-02-22 Tom Tromey <tom@tromey.com>
8164
8165 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8166
8167 2020-02-22 Tom Tromey <tom@tromey.com>
8168
8169 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8170 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8171 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8172 * tui/tui.c (_initialize_tui): Add usage text.
8173
8174 2020-02-22 Tom Tromey <tom@tromey.com>
8175
8176 * tui/tui-win.c (tui_set_focus_command)
8177 (tui_set_win_height_command): Use error_no_arg.
8178 (_initialize_tui_win): Update help text.
8179 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8180
8181 2020-02-22 Tom Tromey <tom@tromey.com>
8182
8183 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8184 * tui/tui-disasm.h (struct tui_disasm_window)
8185 <display_start_addr>: Declare.
8186 * tui/tui-source.h (struct tui_source_window)
8187 <display_start_addr>: Declare.
8188 * tui/tui-winsource.h (struct tui_source_window_base)
8189 <show_source_line, display_start_addr>: New methods.
8190 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8191 Rename and move to protected section.
8192 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8193 (tui_source_window_base::do_erase_source_content): Update.
8194 (tui_source_window_base::show_source_line): Now a method.
8195 (tui_source_window_base::show_source_content)
8196 (tui_source_window_base::tui_source_window_base)
8197 (tui_source_window_base::rerender)
8198 (tui_source_window_base::refill)
8199 (tui_source_window_base::do_scroll_horizontal)
8200 (tui_source_window_base::set_is_exec_point_at)
8201 (tui_source_window_base::update_breakpoint_info)
8202 (tui_source_window_base::update_exec_info): Update.
8203 * tui/tui-source.c (tui_source_window::set_contents)
8204 (tui_source_window::showing_source_p)
8205 (tui_source_window::do_scroll_vertical)
8206 (tui_source_window::location_matches_p)
8207 (tui_source_window::line_is_displayed): Update.
8208 (tui_source_window::display_start_addr): New method.
8209 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8210 (tui_disasm_window::do_scroll_vertical)
8211 (tui_disasm_window::location_matches_p): Update.
8212 (tui_disasm_window::display_start_addr): New method.
8213
8214 2020-02-22 Tom Tromey <tom@tromey.com>
8215
8216 * NEWS: Add entry for gdb.register_window_type.
8217 * tui/tui-layout.h (window_factory): New typedef.
8218 (tui_register_window): Declare.
8219 * tui/tui-layout.c (saved_tui_windows): New global.
8220 (tui_apply_current_layout): Use it.
8221 (tui_register_window): New function.
8222 * python/python.c (do_start_initialization): Call
8223 gdbpy_initialize_tui.
8224 (python_GdbMethods): Add "register_window_type" function.
8225 * python/python-internal.h (gdbpy_register_tui_window)
8226 (gdbpy_initialize_tui): Declare.
8227 * python/py-tui.c: New file.
8228 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8229
8230 2020-02-22 Tom Tromey <tom@tromey.com>
8231
8232 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8233
8234 2020-02-22 Tom Tromey <tom@tromey.com>
8235
8236 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8237 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8238 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8239 (tui_set_win_focus_to): Move from tui-win.c.
8240
8241 2020-02-22 Tom Tromey <tom@tromey.com>
8242
8243 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8244 functions.
8245 (known_window_types): New global.
8246 (tui_get_window_by_name): Reimplement.
8247 (initialize_known_windows): New function.
8248 (validate_window_name): Rewrite.
8249 (_initialize_tui_layout): Call initialize_known_windows.
8250
8251 2020-02-22 Tom Tromey <tom@tromey.com>
8252
8253 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8254 Remove constants.
8255 * tui/tui-winsource.h (struct tui_source_window_base)
8256 <tui_source_window_base>: Remove parameter.
8257 * tui/tui-winsource.c
8258 (tui_source_window_base::tui_source_window_base): Remove
8259 parameter.
8260 (tui_source_window_base::refill): Update.
8261 * tui/tui-stack.h (struct tui_locator_window)
8262 <tui_locator_window>: Update.
8263 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8264 Default the constructor.
8265 * tui/tui-regs.h (struct tui_data_item_window)
8266 <tui_data_item_window>: Default the constructor.
8267 (struct tui_data_window) <tui_data_window>: Likewise.
8268 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8269 Default the constructor.
8270 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8271 Default the constructor.
8272 <type>: Remove.
8273 (struct tui_win_info) <tui_win_info>: Default the constructor.
8274 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8275 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8276 Default the constructor.
8277
8278 2020-02-22 Tom Tromey <tom@tromey.com>
8279
8280 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8281 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8282 * tui/tui-win.c (tui_resize_all): Don't call
8283 tui_delete_invisible_windows.
8284 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8285 done.
8286 (tui_set_layout): Update.
8287 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8288 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8289 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8290
8291 2020-02-22 Tom Tromey <tom@tromey.com>
8292
8293 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8294 correctly.
8295
8296 2020-02-22 Tom Tromey <tom@tromey.com>
8297
8298 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8299
8300 2020-02-22 Tom Tromey <tom@tromey.com>
8301
8302 * tui/tui-winsource.h (struct tui_source_window_iterator)
8303 <inner_iterator>: New etytypedef.
8304 <tui_source_window_iterator>: Take "end" parameter.
8305 <tui_source_window_iterator>: Take iterator.
8306 <operator*, advance>: Update.
8307 <m_iter>: Change type.
8308 <m_end>: New field.
8309 (struct tui_source_windows) <begin, end>: Update.
8310 * tui/tui-layout.c (tui_windows): New global.
8311 (tui_apply_current_layout): Clear tui_windows.
8312 (tui_layout_window::apply): Update tui_windows.
8313 * tui/tui-data.h (tui_windows): Declare.
8314 (all_tui_windows): Now inline function.
8315 (class tui_window_iterator, struct all_tui_windows): Remove.
8316
8317 2020-02-22 Tom Tromey <tom@tromey.com>
8318
8319 PR tui/17850:
8320 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8321 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8322 "height" argument.
8323 (class tui_layout_window) <get_sizes>: Likewise.
8324 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8325 argument.
8326 <get_sizes>: Add "height" argument.
8327 <m_vertical>: New field.
8328 * tui/tui-layout.c (tui_layout_split::clone): Update.
8329 (tui_layout_split::get_sizes): Add "height" argument.
8330 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8331 (tui_new_layout_command): Parse "-horizontal".
8332 (_initialize_tui_layout): Update help string.
8333 (tui_layout_split::specification): Add "-horizontal" when needed.
8334 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8335 argument.
8336 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8337 New methods.
8338
8339 2020-02-22 Tom Tromey <tom@tromey.com>
8340
8341 * tui/tui-layout.h (enum tui_adjust_result): New.
8342 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8343 (class tui_layout_window) <adjust_size>: Return
8344 tui_adjust_result. Rewrite.
8345 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8346 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8347
8348 2020-02-22 Tom Tromey <tom@tromey.com>
8349
8350 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8351 parameter and return types.
8352 (class tui_layout_base) <specification>: Add "depth".
8353 (class tui_layout_window) <specification>: Add "depth".
8354 (class tui_layout_split) <specification>: Add "depth".
8355 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8356 and return types.
8357 (tui_new_layout_command): Parse sub-layouts.
8358 (_initialize_tui_layout): Update help string.
8359 (tui_layout_window::specification): Add "depth".
8360 (add_layout_command): Update.
8361
8362 2020-02-22 Tom Tromey <tom@tromey.com>
8363
8364 * NEWS: Add "tui new-layout" item.
8365 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8366 Add new-layout command to help text.
8367 (validate_window_name): New function.
8368 (tui_new_layout_command): New function.
8369 (_initialize_tui_layout): Register "new-layout".
8370 (tui_layout_window::specification): New method.
8371 (tui_layout_window::specification): New method.
8372 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8373 method.
8374 (class tui_layout_window) <specification>: New method.
8375 (class tui_layout_split) <specification>: New method.
8376
8377 2020-02-22 Tom Tromey <tom@tromey.com>
8378
8379 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8380 * tui/tui-win.c (window_name_completer): Update comment.
8381 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8382 Declare method.
8383 (class tui_layout_window) <replace_window>: Likewise.
8384 (class tui_layout_split) <replace_window>: Likewise.
8385 (tui_set_layout): Don't declare.
8386 (tui_set_initial_layout): Declare function.
8387 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8388 (asm_regs_layout): New globals.
8389 (tui_current_layout, show_layout): Remove.
8390 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8391 (find_layout, tui_apply_layout): New function.
8392 (layout_completer): Remove.
8393 (tui_next_layout): Reimplement.
8394 (tui_next_layout_command): New function.
8395 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8396 (tui_regs_layout): Reimplement.
8397 (tui_regs_layout_command): New function.
8398 (extract_display_start_addr): Rewrite.
8399 (next_layout, prev_layout): Remove.
8400 (tui_layout_window::replace_window): New method.
8401 (tui_layout_split::replace_window): New method.
8402 (destroy_layout): New function.
8403 (layout_list): New global.
8404 (add_layout_command): New function.
8405 (initialize_layouts): Update.
8406 (tui_layout_command): New function.
8407 (_initialize_tui_layout): Install "layout" commands.
8408 * tui/tui-data.h (enum tui_layout_type): Remove.
8409 (tui_current_layout): Don't declare.
8410
8411 2020-02-22 Tom Tromey <tom@tromey.com>
8412
8413 * tui/tui-regs.c (tui_reg_layout): Remove.
8414 (tui_reg_command): Use tui_regs_layout.
8415 * tui/tui-layout.h (tui_reg_command): Declare.
8416 * tui/tui-layout.c (tui_reg_command): New function.
8417
8418 2020-02-22 Tom Tromey <tom@tromey.com>
8419
8420 * tui/tui.c (tui_rl_delete_other_windows): Call
8421 tui_remove_some_windows.
8422 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8423 Declare method.
8424 (class tui_layout_window) <remove_windows>: New method.
8425 (class tui_layout_split) <remove_windows>: Declare.
8426 (tui_remove_some_windows): Declare.
8427 * tui/tui-layout.c (tui_remove_some_windows): New function.
8428 (tui_layout_split::remove_windows): New method.
8429
8430 2020-02-22 Tom Tromey <tom@tromey.com>
8431
8432 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8433 * tui/tui-layout.h (tui_next_layout): Declare.
8434 * tui/tui-layout.c (tui_next_layout): New function.
8435
8436 2020-02-22 Tom Tromey <tom@tromey.com>
8437
8438 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8439 correct coordinates.
8440
8441 2020-02-22 Tom Tromey <tom@tromey.com>
8442
8443 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8444 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8445 DATA_WIN case.
8446
8447 2020-02-22 Tom Tromey <tom@tromey.com>
8448
8449 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8450 TUI_DISASM_WIN, not tui_win_list.
8451
8452 2020-02-22 Tom Tromey <tom@tromey.com>
8453
8454 * valprint.c (generic_val_print_enum_1)
8455 (val_print_type_code_flags): Style member names.
8456 * rust-lang.c (val_print_struct, rust_print_enum)
8457 (rust_print_struct_def, rust_internal_print_type): Style member
8458 names.
8459 * p-valprint.c (pascal_object_print_value_fields): Style member
8460 names. Only call fprintf_symbol_filtered for static members.
8461 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8462 * f-valprint.c (f_val_print): Style member names.
8463 * f-typeprint.c (f_type_print_base): Style member names.
8464 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8465 call fprintf_symbol_filtered for static members.
8466 (cp_print_class_member): Style member names.
8467 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8468 member names.
8469 * ada-valprint.c (ada_print_scalar): Style enum names.
8470 (ada_val_print_enum): Likewise.
8471 * ada-typeprint.c (print_enum_type): Style enum names.
8472
8473 2020-02-21 Tom Tromey <tom@tromey.com>
8474
8475 * psympriv.h (struct partial_symtab): Update comment.
8476
8477 2020-02-21 Tom Tromey <tromey@adacore.com>
8478
8479 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8480 type is CORE_ADDR.
8481
8482 2020-02-21 Tom de Vries <tdevries@suse.de>
8483
8484 PR gdb/25534
8485 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8486 if dependencies[i]->user != NULL.
8487
8488 2020-02-21 Ali Tamur <tamur@google.com>
8489
8490 * dwarf2/read.c (dwarf2_name): Add null check.
8491
8492 2020-02-20 Tom Tromey <tom@tromey.com>
8493
8494 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8495 ">=", in binary search.
8496 (dwarf2_find_containing_comp_unit): New overload.
8497 (run_test): New self-test.
8498 (_initialize_dwarf2_read): Register new test.
8499
8500 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8501
8502 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8503 * riscv-tdep.h: Likewise.
8504 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8505 rv32-only CSR.
8506 * features/riscv/64bit-csr.xml: Regenerated.
8507
8508 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8509 Tom Tromey <tom@tromey.com>
8510
8511 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8512 of 'fputc_unfiltered'.
8513 (putchar_unfiltered): Call 'fputc_unfiltered'.
8514 (fputc_unfiltered): Call 'fputs_unfiltered'.
8515
8516 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8517
8518 * config.in: Regenerate.
8519 * configure: Regenerate.
8520 * configure.ac: Add --with-python-libdir option.
8521 * main.c: Use WITH_PYTHON_LIBDIR.
8522
8523 2020-02-19 Tom Tromey <tom@tromey.com>
8524
8525 * symtab.c (general_symbol_info::compute_and_set_names): Use
8526 obstack_strndup. Simplify call to symbol_set_demangled_name.
8527
8528 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8529
8530 * dwarf2/read.c (allocate_signatured_type_table,
8531 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8532 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8533 Remove objfile parameter, update all callers.
8534
8535 2020-02-19 Doug Evans <dje@google.com>
8536
8537 PR rust/25535
8538 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8539 rust_enum_variant calculation.
8540
8541 2020-02-19 Tom Tromey <tromey@adacore.com>
8542
8543 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8544
8545 2020-02-19 Tom Tromey <tromey@adacore.com>
8546
8547 * ada-lang.c (cache_symbol): Use obstack_strdup.
8548
8549 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8550
8551 * configure: Regenerate.
8552
8553 2020-02-19 Tom Tromey <tromey@adacore.com>
8554
8555 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8556 NULL check.
8557
8558 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8559
8560 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8561
8562 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8563
8564 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8565 if GDBSERVER is not defined.
8566 (riscv_tdesc_cache): Likewise, also store const target_desc.
8567 (STATIC_IN_GDB): Define.
8568 (riscv_create_target_description): Update declaration with
8569 STATIC_IN_GDB.
8570 (riscv_lookup_target_description): New function, only define if
8571 GDBSERVER is not defined.
8572 * arch/riscv.h (riscv_create_target_description): Declare only
8573 when GDBSERVER is defined.
8574 (riscv_lookup_target_description): New declaration when GDBSERVER
8575 is not defined.
8576 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8577 (riscv_linux_read_features): ...this, and return
8578 riscv_gdbarch_features instead of target_desc.
8579 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8580 (riscv_linux_read_description): Rename to...
8581 (riscv_linux_read_features): ...this.
8582 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8583 Update to use riscv_gdbarch_features and
8584 riscv_lookup_target_description.
8585 * riscv-tdep.c (riscv_find_default_target_description): Use
8586 riscv_lookup_target_description instead of
8587 riscv_create_target_description.
8588
8589 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8590
8591 * valprint.c (generic_val_print_enum_1): When printing a flag
8592 enum with value 0 and there is no enumerator with value 0, print
8593 just "0" instead of "(unknown: 0x0)".
8594
8595 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8596
8597 * valprint.c (generic_val_print_enum_1): Print unknown part of
8598 flag enum in hex.
8599
8600 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8601
8602 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8603 flag enums to contain duplicate enumerators.
8604 * valprint.c (generic_val_print_enum_1): Update comment.
8605
8606 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8607
8608 * dwarf2/read.c: Include "count-one-bits.h".
8609 (update_enumeration_type_from_children): If an enumerator has
8610 multiple bits set, don't treat the enumeration as a "flag enum".
8611 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8612 of flag enums have 0 or 1 bit set.
8613
8614 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8615
8616 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8617 conversion.
8618 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8619 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8620 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8621 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8622 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8623
8624 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8625
8626 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8627
8628 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8629
8630 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8631 displaced_step_closure_up.
8632 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8633 (struct displaced_step_closure_up):
8634 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8635 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8636 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8637 Likewise.
8638 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8639 * gdbarch.c, gdbarch.h: Re-generate.
8640 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8641 displaced_step_closure_up.
8642 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8643 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8644 * infrun.h (displaced_step_closure_up): New type alias.
8645 (struct displaced_step_inferior_state) <step_closure>: Change
8646 type to displaced_step_closure_up.
8647 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8648 displaced_step_closure_up.
8649 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8650
8651 2020-02-14 Tom Tromey <tom@tromey.com>
8652
8653 * minidebug.c (gnu_debug_key): New global.
8654 (find_separate_debug_file_in_section): Use it.
8655
8656 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8657
8658 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8659 std::unique_ptr.
8660 * gdbarch.c: Re-generate.
8661 * gdbarch.h: Re-generate.
8662 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8663 change.
8664 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8665 type to std::unique_ptr.
8666 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8667 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8668 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8669 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8670 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8671 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8672 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8673 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8674 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8675
8676 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8677
8678 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8679 std::unique_ptr.
8680 (displaced_step_clear): Rename to...
8681 (displaced_step_reset): ... this. Just call displaced->reset ().
8682 (displaced_step_clear_cleanup): Rename to...
8683 (displaced_step_reset_cleanup): ... this.
8684 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8685 (displaced_step_fixup): Likewise.
8686 (resume_1): Likewise.
8687 (handle_inferior_event): Restore child's memory before calling
8688 displaced_step_fixup on the parent.
8689 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8690 to std::unique_ptr.
8691 <step_closure>: Change type to std::unique_ptr.
8692
8693 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8694
8695 * arm-tdep.c: Include count-one-bits.h.
8696 (cleanup_block_store_pc): Use count_one_bits.
8697 (cleanup_block_load_pc): Use count_one_bits.
8698 (arm_copy_block_xfer): Use count_one_bits.
8699 (thumb2_copy_block_xfer): Use count_one_bits.
8700 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8701 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8702 (thumb_get_next_pcs_raw): Use count_one_bits.
8703 (arm_get_next_pcs_raw): Use count_one_bits_l.
8704 * arch/arm.c (bitcount): Remove.
8705 * arch/arm.h (bitcount): Remove.
8706
8707 2020-02-14 Tom Tromey <tromey@adacore.com>
8708
8709 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8710 Update.
8711 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8712 * dwarf2/loc.c (call_site_find_chain_1): Return
8713 unique_xmalloc_ptr.
8714 (call_site_find_chain): Likewise.
8715
8716 2020-02-14 Richard Biener <rguenther@suse.de>
8717
8718 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8719 on expression with division operators.
8720
8721 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8722
8723 * MAINTAINERS (Write After Approval): Adding myself.
8724
8725 2020-02-12 Tom Tromey <tom@tromey.com>
8726
8727 * event-loop.c (event_data, gdb_event, event_handler_func):
8728 Remove.
8729
8730 2020-02-12 Tom Tromey <tom@tromey.com>
8731
8732 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8733 (dwarf2_frame_objfile_data): Add comment.
8734 (find_comp_unit, set_comp_unit): New functions.
8735 (dwarf2_frame_find_fde): Use find_comp_unit.
8736 (dwarf2_build_frame_info): Use set_comp_unit.
8737
8738 2020-02-12 Tom Tromey <tom@tromey.com>
8739
8740 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8741 (comp_unit): Don't initialize objfile.
8742 (execute_cfa_program): Add text_offset parameter.
8743 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8744 (dwarf2_frame_cache): Update.
8745 (dwarf2_build_frame_info): Don't set "objfile" member.
8746
8747 2020-02-12 Tom Tromey <tom@tromey.com>
8748
8749 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8750 (decode_frame_entry): Likewise.
8751 (dwarf2_build_frame_info): Update.
8752
8753 2020-02-12 Tom Tromey <tom@tromey.com>
8754
8755 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8756 (decode_frame_entry_1): Use the comp_unit obstack.
8757
8758 2020-02-12 Tom Tromey <tom@tromey.com>
8759
8760 * dwarf2/frame.c (struct comp_unit): Add initializers and
8761 constructor.
8762 (dwarf2_frame_objfile_data): Store a comp_unit.
8763 (dwarf2_frame_find_fde): Update.
8764 (dwarf2_build_frame_info): Use "new".
8765
8766 2020-02-12 Tom Tromey <tom@tromey.com>
8767
8768 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8769 (dwarf2_fde_table): Typedef for std::vector.
8770 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8771 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8772 (decode_frame_entry): Update.
8773 (dwarf2_build_frame_info): Use "new".
8774
8775 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8776
8777 * arm-tdep.c (arm_gdbarch_init): Update.
8778 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8779 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8780 have_neon, is_m>: Change to bool.
8781
8782 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8783
8784 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8785
8786 2020-02-12 Tom Tromey <tom@tromey.com>
8787
8788 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8789
8790 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8791
8792 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8793 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8794
8795 2020-02-11 Tom Tromey <tom@tromey.com>
8796
8797 * psymtab.h: Update comment.
8798
8799 2020-02-11 Tom Tromey <tom@tromey.com>
8800
8801 * gdb_obstack.h (struct auto_obstack): Use
8802 DISABLE_COPY_AND_ASSIGN.
8803
8804 2020-02-11 Tom Tromey <tom@tromey.com>
8805
8806 * dwarf2/frame.h (struct objfile): Don't forward declare.
8807
8808 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8809
8810 * cris-tdep.c (cris_supply_gregset): Change signature to match
8811 what struct regset expects.
8812 (cris_regset): New struct.
8813 (fetch_core_registers): Remove.
8814 (cris_iterate_over_regset_sections): New function.
8815 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8816 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8817
8818 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8819
8820 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8821 registers.
8822
8823 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8824
8825 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8826
8827 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8828
8829 * configure: Re-generate.
8830
8831 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8832
8833 * configure: Re-generate.
8834
8835 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8836
8837 * acinclude: Update warning.m4 path.
8838 * warning.m4: Move to gdbsupport.
8839
8840 2020-02-11 Tom Tromey <tromey@adacore.com>
8841
8842 * remote.c (remote_console_output): Update.
8843 * printcmd.c (printf_command): Update.
8844 * event-loop.c (gdb_wait_for_event): Update.
8845 * linux-nat.c (sigchld_handler): Update.
8846 * remote-sim.c (gdb_os_write_stdout): Update.
8847 (gdb_os_flush_stdout): Update.
8848 (gdb_os_flush_stderr): Update.
8849 (gdb_os_write_stderr): Update.
8850 * exceptions.c (print_exception): Update.
8851 * remote-fileio.c (remote_fileio_func_read): Update.
8852 (remote_fileio_func_write): Update.
8853 * tui/tui.c (tui_enable): Update.
8854 * tui/tui-interp.c (tui_interp::init): Update.
8855 * utils.c (init_page_info): Update.
8856 (putchar_unfiltered, fputc_unfiltered): Update.
8857 (gdb_flush): Update.
8858 (emit_style_escape): Update.
8859 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8860 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8861 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8862 (stderr_file::write): Update.
8863 (stderr_file::puts): Update.
8864 * ui-file.h (ui_file_isatty, ui_file_write)
8865 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8866 (ui_file_puts): Don't declare.
8867
8868 2020-02-10 Tom de Vries <tdevries@suse.de>
8869
8870 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8871 sentinel to char *.
8872
8873 2020-02-09 Tom de Vries <tdevries@suse.de>
8874
8875 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8876 filename if it matches "<artificial>".
8877
8878 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8879
8880 * windows-tdep.c (struct enum_value_name): New struct.
8881 (create_enum): New function.
8882 (windows_get_siginfo_type): Create and use enum types.
8883
8884 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8885
8886 * NEWS: Mention $_siginfo support for Windows.
8887 * windows-nat.c (handle_exception): Set siginfo_er.
8888 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8889 (windows_xfer_siginfo): New function.
8890 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8891 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8892 (init_windows_gdbarch_data): New function.
8893 (get_windows_gdbarch_data): New function.
8894 (windows_get_siginfo_type): New function.
8895 (windows_init_abi): Register windows_get_siginfo_type.
8896 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8897
8898 2020-02-08 Tom Tromey <tom@tromey.com>
8899
8900 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8901 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8902 <keep>: Declare method.
8903 <m_keep>: Remove member.
8904 <~cutu_reader>: Remove.
8905 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8906 (cutu_reader::cutu_reader): Update.
8907 (cutu_reader::keep): Rename from ~cutu_reader.
8908 (process_psymtab_comp_unit, build_type_psymtabs_1)
8909 (process_skeletonless_type_unit, load_partial_comp_unit)
8910 (load_full_comp_unit, dwarf2_read_addr_index)
8911 (read_signatured_type): Update.
8912
8913 2020-02-08 Tom Tromey <tom@tromey.com>
8914
8915 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8916 "want_partial_unit" parameter.
8917 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8918 Inline check for DW_TAG_partial_unit.
8919 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8920
8921 2020-02-08 Tom Tromey <tom@tromey.com>
8922
8923 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8924 read.c.
8925 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8926 read.c.
8927
8928 2020-02-08 Tom Tromey <tom@tromey.com>
8929
8930 * dwarf2/read.c (read_address): Move to comp-unit.c.
8931 (dwarf2_rnglists_process, dwarf2_ranges_process)
8932 (read_attribute_value, dwarf_decode_lines_1)
8933 (var_decode_location, decode_locdesc): Update.
8934 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8935 read.c. Remove "cu" parameter.
8936 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8937 method.
8938
8939 2020-02-08 Tom Tromey <tom@tromey.com>
8940
8941 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8942 (read_indirect_line_string): Update.
8943 * dwarf2/comp-unit.c (read_offset): Remove.
8944 (read_comp_unit_head): Update.
8945 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8946 method.
8947 (read_offset): Don't declare.
8948
8949 2020-02-08 Tom Tromey <tom@tromey.com>
8950
8951 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8952 * dwarf2/read.c (struct comp_unit_head): Move to
8953 dwarf2/comp-unit.h.
8954 (enum class rcuh_kind): Move to comp-unit.h.
8955 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8956 (read_comp_unit_head, error_check_comp_unit_head)
8957 (read_and_check_comp_unit_head): Move to comp-unit.c.
8958 (read_offset, dwarf_unit_type_name): Likewise.
8959 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8960 (cutu_reader::cutu_reader, read_call_site_scope)
8961 (find_partial_die, follow_die_offset): Update.
8962 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8963
8964 2020-02-08 Tom Tromey <tom@tromey.com>
8965
8966 * dwarf2/read.c (read_offset_1): Move to leb.c.
8967 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8968 (dwarf_decode_macro_bytes): Update.
8969 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8970 * dwarf2/leb.h (read_offset): Declare.
8971
8972 2020-02-08 Tom Tromey <tom@tromey.com>
8973
8974 * dwarf2/read.c (dwarf2_section_size): Remove.
8975 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8976 Update.
8977 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8978
8979 2020-02-08 Tom Tromey <tom@tromey.com>
8980
8981 * dwarf2/read.c (read_initial_length): Move to leb.c.
8982 * dwarf2/leb.h (read_initial_length): Declare.
8983 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8984 handle_nonstd parameter.
8985 * dwarf2/frame.c (read_initial_length): Remove.
8986 (decode_frame_entry_1): Update.
8987
8988 2020-02-08 Tom Tromey <tom@tromey.com>
8989
8990 * dwarf2/loc.c (dwarf2_find_location_expression)
8991 (dwarf_evaluate_loc_desc::get_tls_address)
8992 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8993 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8994 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8995 (dwarf2_compile_property_to_c)
8996 (dwarf2_loc_desc_get_symbol_read_needs)
8997 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8998 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8999 (loclist_describe_location, loclist_tracepoint_var_ref)
9000 (loclist_generate_c_location): Update.
9001 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9002 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9003 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9004 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9005 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9006 (dwarf2_per_cu_data::addr_size)
9007 (dwarf2_per_cu_data::ref_addr_size)
9008 (dwarf2_per_cu_data::text_offset)
9009 (dwarf2_per_cu_data::addr_type): Now methods.
9010 (per_cu_header_read_in): Make per_cu "const".
9011 (dwarf2_version): Remove.
9012 (dwarf2_per_cu_data::int_type): Now a method.
9013 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9014 (set_die_type, read_array_type, read_subrange_index_type)
9015 (read_tag_string_type, read_subrange_type): Update.
9016 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9017 offset_size, ref_addr_size, text_offset, addr_type, version,
9018 objfile, int_type, addr_sized_int_type>: Declare methods.
9019
9020 2020-02-08 Tom Tromey <tom@tromey.com>
9021
9022 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9023 Move earlier.
9024
9025 2020-02-08 Tom Tromey <tom@tromey.com>
9026
9027 * dwarf2/read.h (dwarf_line_debug): Declare.
9028 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9029 * dwarf2/read.c: Move line_header code to new files.
9030 (dwarf_line_debug): No longer static.
9031 * dwarf2/line-header.c: New file.
9032 * dwarf2/line-header.h: New file.
9033
9034 2020-02-08 Tom Tromey <tom@tromey.com>
9035
9036 * dwarf2/read.c (struct line_header) <file_full_name,
9037 file_file_name>: Return unique_xmalloc_ptr.
9038 (line_header::file_file_name): Update.
9039 (line_header::file_full_name): Update.
9040 (dw2_get_file_names_reader): Update.
9041 (macro_start_file): Update.
9042
9043 2020-02-08 Tom Tromey <tom@tromey.com>
9044
9045 * dwarf2/read.c (struct line_header) <file_full_name,
9046 file_file_name>: Declare methods.
9047 (dw2_get_file_names_reader): Update.
9048 (file_file_name): Now a method.
9049 (file_full_name): Likewise.
9050 (macro_start_file): Update.
9051
9052 2020-02-08 Tom Tromey <tom@tromey.com>
9053
9054 * dwarf2/read.c (dwarf_always_disassemble)
9055 (show_dwarf_always_disassemble): Move to loc.c.
9056 (_initialize_dwarf2_read): Move "always-disassemble" registration
9057 to loc.c.
9058 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9059 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9060 static.
9061 (show_dwarf_always_disassemble): Move from read.c.
9062 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9063
9064 2020-02-08 Tom Tromey <tom@tromey.com>
9065
9066 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9067 (create_quick_file_names_table): Return htab_up.
9068 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9069 Update.
9070 * dwarf2/read.h (struct dwarf2_per_objfile)
9071 <quick_file_names_table>: Now htab_up.
9072
9073 2020-02-08 Tom Tromey <tom@tromey.com>
9074
9075 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9076
9077 2020-02-08 Tom Tromey <tom@tromey.com>
9078
9079 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9080 Rewrite.
9081 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9082 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9083 (abbrev_table::abbrev_table): No longer inline.
9084 (ABBREV_HASH_SIZE): Remove.
9085 (abbrev_table::m_abbrevs): Now an htab_up.
9086
9087 2020-02-08 Tom Tromey <tom@tromey.com>
9088
9089 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9090 (cutu_reader): Update.
9091 (build_type_psymtabs_1): Update.
9092 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9093 (abbrev_table::alloc_abbrev): Update.
9094 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9095 (abbrev_table::read): New static method, renamed from
9096 abbrev_table_read_table.
9097 (abbrev_table::alloc_abbrev)
9098 (abbrev_table::add_abbrev): Now private.
9099 (abbrev_table::abbrev_table): Now private.
9100 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9101
9102 2020-02-08 Tom Tromey <tom@tromey.com>
9103
9104 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9105 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9106 htab_up.
9107
9108 2020-02-08 Tom Tromey <tom@tromey.com>
9109
9110 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9111 htab_up.
9112 (lookup_dwo_unit_in_dwp): Update.
9113 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9114 on obstack.
9115
9116 2020-02-08 Tom Tromey <tom@tromey.com>
9117
9118 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9119 obstack.
9120
9121 2020-02-08 Tom Tromey <tom@tromey.com>
9122
9123 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9124 line_header_hash.
9125 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9126 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9127 Change type to htab_up.
9128
9129 2020-02-08 Tom Tromey <tom@tromey.com>
9130
9131 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9132 htab_up. Don't allocate on obstack.
9133 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9134 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9135 Change type to htab_up.
9136
9137 2020-02-08 Tom Tromey <tom@tromey.com>
9138
9139 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9140 Change type to htab_up.
9141 * dwarf2/read.c (create_signatured_type_table_from_index)
9142 (create_signatured_type_table_from_debug_names)
9143 (create_all_type_units, add_type_unit)
9144 (lookup_dwo_signatured_type, lookup_signatured_type)
9145 (process_skeletonless_type_unit): Update.
9146 (create_debug_type_hash_table, create_debug_types_hash_table):
9147 Change type of types_htab.
9148 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9149 htab_up. Don't allocate on obstack.
9150 (create_cus_hash_table): Change type of cus_htab parameter.
9151 (struct dwo_file) <cus, tus>: Now htab_up.
9152 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9153 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9154 (queue_and_load_all_dwo_tus): Update.
9155 * dwarf2/index-write.c (write_gdbindex): Update.
9156 (write_debug_names): Update.
9157
9158 2020-02-08 Tom Tromey <tom@tromey.com>
9159
9160 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9161 dwarf2/read.c. Remove "next" member. Add constructor ntad
9162 destructor.
9163 (struct dwarf2_per_objfile) <queue>: New member.
9164 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9165 dwarf2/read.h.
9166 (dwarf2_queue, dwarf2_queue_tail): Remove.
9167 (class dwarf2_queue_guard): Add parameter to constructor. Use
9168 DISABLE_COPY_AND_ASSIGN.
9169 <m_per_objfile>: New member.
9170 <~dwarf2_queue_guard>: Rewrite.
9171 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9172 Update.
9173 (~dwarf2_queue_item): New.
9174
9175 2020-02-08 Tom Tromey <tom@tromey.com>
9176
9177 * dwarf2/read.c (struct die_info) <has_children>: New member.
9178 (dw2_get_file_names_reader): Remove has_children.
9179 (dw2_get_file_names): Update.
9180 (read_cutu_die_from_dwo): Remove has_children.
9181 (cutu_reader::init_tu_and_read_dwo_dies)
9182 (cutu_reader::cutu_reader): Update.
9183 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9184 Remove has_children.
9185 (build_type_psymtabs_1, process_skeletonless_type_unit)
9186 (load_partial_comp_unit, load_full_comp_unit): Update.
9187 (create_dwo_cu_reader): Remove has_children.
9188 (create_cus_hash_table, read_die_and_children): Update.
9189 (read_full_die_1,read_full_die): Remove has_children.
9190 (read_signatured_type): Update.
9191 (class cutu_reader) <has_children>: Remove.
9192
9193 2020-02-08 Tom Tromey <tom@tromey.com>
9194
9195 * dwarf2/expr.c: Rename from dwarf2expr.c.
9196 * dwarf2/expr.h: Rename from dwarf2expr.h.
9197 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9198 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9199 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9200 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9201 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9202 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9203 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9204 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9205 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9206 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9207 * dwarf2/loc.c: Rename from dwarf2loc.c.
9208 * dwarf2/loc.h: Rename from dwarf2loc.h.
9209 * dwarf2/read.c: Rename from dwarf2read.c.
9210 * dwarf2/read.h: Rename from dwarf2read.h.
9211 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9212 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9213 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9214 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9215 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9216 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9217 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9218 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9219 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9220 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9221 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9222 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9223 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9224 Update.
9225 * Makefile.in (COMMON_SFILES): Update.
9226 (HFILES_NO_SRCDIR): Update.
9227
9228 2020-02-08 Tom Tromey <tom@tromey.com>
9229
9230 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9231 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9232
9233 2020-02-08 Tom Tromey <tom@tromey.com>
9234
9235 * dwarf2read.h (struct die_info): Don't declare.
9236
9237 2020-02-08 Tom Tromey <tom@tromey.com>
9238
9239 * dwarf2read.h (die_info_ptr): Remove typedef.
9240
9241 2020-02-08 Tom Tromey <tom@tromey.com>
9242
9243 * dwarf2read.c (read_call_site_scope)
9244 (handle_data_member_location, dwarf2_add_member_fn)
9245 (mark_common_block_symbol_computed, read_common_block)
9246 (attr_to_dynamic_prop, partial_die_info::read)
9247 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9248 (dwarf2_symbol_mark_computed, set_die_type): Update.
9249 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9250 method.
9251 (attr_form_is_block): Don't declare.
9252 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9253
9254 2020-02-08 Tom Tromey <tom@tromey.com>
9255
9256 * dwarf2read.c (dwarf2_find_base_address, )
9257 (read_call_site_scope, rust_containing_type)
9258 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9259 (handle_data_member_location, dwarf2_add_member_fn)
9260 (get_alignment, read_structure_type, process_structure_scope)
9261 (mark_common_block_symbol_computed, read_common_block)
9262 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9263 (partial_die_info::read, read_attribute_value, new_symbol)
9264 (lookup_die_type, dwarf2_get_ref_die_offset)
9265 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9266 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9267 (dwarf2_symbol_mark_computed): Update.
9268 * dwarf2/attribute.h (struct attribute) <value_as_address,
9269 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9270 methods.
9271 (value_as_address, attr_form_is_section_offset)
9272 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9273 * dwarf2/attribute.c (attribute::value_as_address)
9274 (attribute::form_is_section_offset, attribute::form_is_constant)
9275 (attribute::form_is_ref): Now methods.
9276
9277 2020-02-08 Tom Tromey <tom@tromey.com>
9278
9279 * dwarf2read.c (struct attribute, DW_STRING)
9280 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9281 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9282 (attr_form_is_block, attr_form_is_section_offset)
9283 (attr_form_is_constant, attr_form_is_ref): Move.
9284 * dwarf2/attribute.h: New file.
9285 * dwarf2/attribute.c: New file, from dwarf2read.c.
9286 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9287
9288 2020-02-08 Tom Tromey <tom@tromey.com>
9289
9290 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9291 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9292 Move.
9293 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9294 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9295 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9296 abbrev.c.
9297 * dwarf2/abbrev.h: New file.
9298 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9299 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9300
9301 2020-02-08 Tom Tromey <tom@tromey.com>
9302
9303 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9304 (dwarf2_section_size, dwarf2_get_section_info)
9305 (create_signatured_type_table_from_debug_names)
9306 (create_addrmap_from_aranges, read_debug_names_from_section)
9307 (get_gdb_index_contents_from_section, read_comp_unit_head)
9308 (error_check_comp_unit_head, read_abbrev_offset)
9309 (create_debug_type_hash_table, init_cu_die_reader)
9310 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9311 (read_comp_units_from_section, create_cus_hash_table)
9312 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9313 (create_dwp_v2_section, dwarf2_rnglists_process)
9314 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9315 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9316 (read_indirect_string_from_dwz, read_addr_index_1)
9317 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9318 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9319 (fill_in_loclist_baton): Update.
9320 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9321 get_containing_section, get_bfd_owner, get_bfd_section,
9322 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9323 (dwarf2_read_section, get_section_name, get_section_file_name)
9324 (get_containing_section, get_section_bfd_owner)
9325 (get_section_bfd_section, get_section_name, get_section_file_name)
9326 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9327 declare.
9328 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9329 (dwarf2_section_info::get_bfd_owner)
9330 (dwarf2_section_info::get_bfd_section)
9331 (dwarf2_section_info::get_name)
9332 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9333 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9334 (dwarf2_section_info::read): Now methods.
9335 * dwarf-index-write.c (class debug_names): Update.
9336
9337 2020-02-08 Tom Tromey <tom@tromey.com>
9338
9339 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9340 Move to dwarf2/section.h.
9341 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9342 (get_section_bfd_section, get_section_name)
9343 (get_section_file_name, get_section_id, get_section_flags)
9344 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9345 dwarf2/section.c.
9346 * dwarf2/section.h: New file.
9347 * dwarf2/section.c: New file, from dwarf2read.c.
9348 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9349
9350 2020-02-08 Tom Tromey <tom@tromey.com>
9351
9352 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9353 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9354 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9355 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9356 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9357 * dwarf2/leb.h: New file, from dwarf2read.c.
9358 * dwarf2/leb.c: New file, from dwarf2read.c.
9359 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9360 Remove.
9361 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9362 (COMMON_SFILES): Add dwarf2/leb.c.
9363
9364 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9365
9366 GDB 9.1 released.
9367
9368 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9369
9370 PR gdb/25190:
9371 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9372 * gdb/remote.c (remote_console_output): Update.
9373 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9374 (ui_file_puts): ...this.
9375 * gdb/ui-file.h (ui_file_puts): Add declaration.
9376 * gdb/utils.c (emit_style_escape): Update.
9377 (flush_wrap_buffer): Update.
9378 (fputs_maybe_filtered): Update.
9379 (fputs_unfiltered): Add function.
9380
9381 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9382
9383 * gdb/event-loop.c (gdb_wait_for_event): Update.
9384 * gdb/printcmd.c (printf_command): Update.
9385 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9386 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9387 (gdb_os_flush_stderr): Update.
9388 * gdb/remote.c (remote_console_output): Update.
9389 * gdb/ui-file.c (gdb_flush): Rename to...
9390 (ui_file_flush): ...this.
9391 (stderr_file::write): Update.
9392 (stderr_file::puts): Update.
9393 * gdb/ui-file.h (gdb_flush): Rename to...
9394 (ui_file_flush): ...this.
9395 * gdb/utils.c (gdb_flush): Add function.
9396 * gdb/utils.h (gdb_flush): Add declaration.
9397
9398 2020-02-07 Tom Tromey <tromey@adacore.com>
9399
9400 PR breakpoints/24915:
9401 * source.c (find_and_open_source): Do not check basenames_may_differ.
9402
9403 2020-02-07 Tom Tromey <tom@tromey.com>
9404
9405 * README: Update gdbserver documentation.
9406 * gdbserver: Move to top level.
9407 * configure.tgt (build_gdbserver): Remove.
9408 * configure.ac: Remove --enable-gdbserver.
9409 * configure: Rebuild.
9410 * Makefile.in (distclean): Don't mention gdbserver.
9411
9412 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9413
9414 * source-cache.c (source_cache::ensure): Surround
9415 get_plain_source_lines with a try/catch.
9416 (source_cache::get_line_charpos): Get rid of try/catch
9417 and only check for the return value of "ensure".
9418 * tui/tui-source.c (tui_source_window::set_contents):
9419 Simplify "nlines" calculation.
9420
9421 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9422
9423 * MAINTAINERS (Write After Approval): Add myself.
9424
9425 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9426
9427 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9428 function call.
9429
9430 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9431
9432 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9433
9434 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9435
9436 * nat/riscv-linux-tdesc.h: New file.
9437 * nat/riscv-linux-tdesc.c: New file, taking code from...
9438 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9439 ... here.
9440 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9441 NATDEPFILES.
9442
9443 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9444
9445 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9446 we don't set the fake simulator ptid to the null_ptid.
9447
9448 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9449
9450 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9451 * gdbthread.h (class thread_info) <resumed>: Likewise.
9452 * infrun.c (resume_1): Likewise.
9453 (proceed): Likewise.
9454 (infrun_thread_stop_requested): Likewise.
9455 (stop_all_threads): Likewise.
9456 (handle_inferior_event): Likewise.
9457 (restart_threads): Likewise.
9458 (finish_step_over): Likewise.
9459 (keep_going_stepped_thread): Likewise.
9460 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9461 (linux_handle_extended_wait): Likewise.
9462 * record-btrace.c (get_thread_current_frame_id): Likewise.
9463 * record-full.c (record_full_wait_1): Likewise.
9464 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9465 * target.c (target_resume): Likewise.
9466 * thread.c (set_running_thread): Likewise.
9467
9468 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9469
9470 * f-valprint.c (f77_print_array_1): Changed datatype of index
9471 variable to LONGEST from int to enable it to contain bound
9472 values correctly.
9473
9474 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9475
9476 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9477 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9478 offsets according to FLEN determined.
9479 (riscv_linux_nat_target::read_description): Determine FLEN
9480 dynamically.
9481 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9482 according to FLEN determined.
9483 (riscv_linux_nat_target::store_registers): Likewise.
9484
9485 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9486
9487 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9488 when reg->group is empty and reggroup is not.
9489
9490 2020-01-31 Tom Tromey <tromey@adacore.com>
9491
9492 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9493 Call beneath target's mourn_inferior after unpushing.
9494
9495 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9496
9497 PR tui/9765
9498 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9499 have enough lines to fill the screen, still return the lowest
9500 address we found.
9501
9502 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9503
9504 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9505 '-', '<', and '>' commands.
9506
9507 2020-01-29 Pedro Alves <palves@redhat.com>
9508 Sergio Durigan Junior <sergiodj@redhat.com>
9509
9510 * infcmd.c (construct_inferior_arguments): Assert that
9511 'argc' is greater than 0.
9512
9513 2020-01-29 Luis Machado <luis.machado@linaro.org>
9514
9515 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9516 (BRK_INSN_MASK): Define to 0xd4200000.
9517 (aarch64_program_breakpoint_here_p): New function.
9518 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9519 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9520 breakpoint.c.
9521 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9522 breakpoint.h
9523 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9524 call gdbarch_program_breakpoint_here_p.
9525 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9526 default_program_breakpoint_here_p, changed return type to bool and
9527 simplified.
9528 * breakpoint.h (program_breakpoint_here): Moved prototype to
9529 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9530 return type to bool.
9531 * gdbarch.c: Regenerate.
9532 * gdbarch.h: Regenerate.
9533 * gdbarch.sh (program_breakpoint_here_p): New method.
9534 * infrun.c (handle_signal_stop): Call
9535 gdbarch_program_breakpoint_here_p.
9536
9537 2020-01-26 Tom Tromey <tom@tromey.com>
9538
9539 * ctfread.c (struct ctf_fp_info): Reindent.
9540 (_initialize_ctfread): Remove.
9541
9542 2020-01-26 Tom Tromey <tom@tromey.com>
9543
9544 * psymtab.c (partial_map_expand_apply)
9545 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9546 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9547 (psym_print_stats, psym_expand_symtabs_for_function)
9548 (psym_map_symbol_filenames, psym_map_matching_symbols)
9549 (psym_expand_symtabs_matching)
9550 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9551 (maintenance_check_psymtabs): Use new methods.
9552 * psympriv.h (struct partial_symtab) <readin_p,
9553 get_compunit_symtab>: New methods.
9554 <readin, compunit_symtab>: Remove members.
9555 (struct standard_psymtab): New.
9556 (struct legacy_psymtab): Derive from standard_psymtab.
9557 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9558 standard_psymtab.
9559 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9560
9561 2020-01-26 Tom Tromey <tom@tromey.com>
9562
9563 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9564 read_dependencies. Add assert.
9565 * psymtab.c (partial_symtab::read_dependencies): New method.
9566 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9567 method.
9568 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9569 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9570 read_dependencies.
9571 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9572 Add assert.
9573
9574 2020-01-26 Tom Tromey <tom@tromey.com>
9575
9576 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9577 Call expand_psymtab.
9578 (xcoff_read_symtab): Call expand_psymtab.
9579 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9580 legacy_expand_psymtab.
9581 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9582 method.
9583 (struct legacy_psymtab) <expand_psymtab>: Implement.
9584 <legacy_expand_psymtab>: New member.
9585 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9586 (parse_partial_symbols): Set legacy_expand_psymtab.
9587 (psymtab_to_symtab_1): Change argument order. Call
9588 expand_psymtab.
9589 (new_psymtab): Set legacy_expand_psymtab.
9590 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9591 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9592 expand_psymtab.
9593 (dwarf2_psymtab::expand_psymtab): Rename from
9594 psymtab_to_symtab_1. Call expand_psymtab.
9595 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9596 (dbx_end_psymtab): Likewise.
9597 (dbx_psymtab_to_symtab_1): Change argument order. Call
9598 expand_psymtab.
9599 (dbx_read_symtab): Call expand_psymtab.
9600 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9601 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9602 (ctf_psymtab::read_symtab): Call expand_psymtab.
9603
9604 2020-01-26 Tom Tromey <tom@tromey.com>
9605
9606 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9607 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9608 messages.
9609 * mdebugread.c (mdebug_read_symtab): Remove prints.
9610 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9611 assert.
9612 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9613
9614 2020-01-26 Tom Tromey <tom@tromey.com>
9615
9616 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9617 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9618 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9619 legacy_symtab.
9620 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9621 * psymtab.c (psymtab_to_symtab): Call method.
9622 (dump_psymtab): Update.
9623 * psympriv.h (struct partial_symtab): Add virtual destructor.
9624 <read_symtab>: New method.
9625 (struct legacy_symtab): New.
9626 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9627 (struct pst_map) <pst>: Now a legacy_psymtab.
9628 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9629 (new_psymtab): Use legacy_psymtab.
9630 * dwarf2read.h (struct dwarf2_psymtab): New.
9631 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9632 * dwarf2read.c (dwarf2_create_include_psymtab)
9633 (dwarf2_build_include_psymtabs, create_type_unit_group)
9634 (create_partial_symtab, process_psymtab_comp_unit_reader)
9635 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9636 (set_partial_user): Use dwarf2_psymtab.
9637 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9638 (psymtab_to_symtab_1, process_full_comp_unit)
9639 (process_full_type_unit, dwarf2_ranges_read)
9640 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9641 (dwarf_decode_lines): Use dwarf2_psymtab.
9642 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9643 (add_address_entry_worker, write_one_signatured_type)
9644 (recursively_count_psymbols, recursively_write_psymbols)
9645 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9646 (write_debug_names): Likewise.
9647 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9648 <pst>: Now a legacy_psymtab.
9649 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9650 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9651 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9652 * ctfread.c (struct ctf_psymtab): New.
9653 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9654 ctf_psymtab.
9655 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9656 (create_partial_symtab): Return a ctf_psymtab.
9657 (scan_partial_symbols): Update.
9658
9659 2020-01-26 Tom Tromey <tom@tromey.com>
9660
9661 * xcoffread.c (xcoff_start_psymtab): Use new.
9662 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9663 renamed from start_psymtab_common.
9664 * psympriv.h (struct partial_symtab): Add new constructor.
9665 (start_psymtab_common): Don't declare.
9666 * mdebugread.c (parse_partial_symbols): Use new.
9667 * dwarf2read.c (create_partial_symtab): Use new.
9668 * dbxread.c (start_psymtab): Use new.
9669 * ctfread.c (create_partial_symtab): Use new.
9670
9671 2020-01-26 Tom Tromey <tom@tromey.com>
9672
9673 * xcoffread.c (xcoff_end_psymtab): Use new.
9674 * psymtab.c (start_psymtab_common): Use new.
9675 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9676 Update.
9677 * psympriv.h (struct partial_symtab): Add parameters to
9678 constructor. Don't inline.
9679 (allocate_psymtab): Don't declare.
9680 * mdebugread.c (new_psymtab): Use new.
9681 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9682 * dbxread.c (dbx_end_psymtab): Use new.
9683
9684 2020-01-26 Tom Tromey <tom@tromey.com>
9685
9686 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9687 allocate_psymtab. Update documentation.
9688 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9689 allocate_psymtab. Do not use new.
9690 (allocate_psymtab): Use new. Update.
9691
9692 2020-01-26 Tom Tromey <tom@tromey.com>
9693
9694 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9695 * psymtab.c (psym_print_stats): Update.
9696 * psympriv.h (struct partial_symtab) <readin,
9697 psymtabs_addrmap_supported, anonymous>: Now bool.
9698 * mdebugread.c (psymtab_to_symtab_1): Update.
9699 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9700 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9701 (process_full_comp_unit, process_full_type_unit): Update.
9702 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9703 * ctfread.c (psymtab_to_symtab): Update.
9704
9705 2020-01-26 Tom Tromey <tom@tromey.com>
9706
9707 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9708 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9709 * psymtab.c (psymtab_storage): Delete psymtabs.
9710 (psymtab_storage::allocate_psymtab): Use new.
9711 (psymtab_storage::discard_psymtab): Use delete.
9712 * psympriv.h (struct partial_symtab): Add constructor and
9713 initializers.
9714
9715 2020-01-26 Tom Tromey <tom@tromey.com>
9716
9717 * machoread.c: Do not include psympriv.h.
9718
9719 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9720
9721 * NEWS: Mention the new option and the set/show commands.
9722
9723 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9724
9725 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9726 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9727 (validate_exec_file): New variables, enums, functions.
9728 (exec_file_locate_attach, print_section_info): Style the filenames.
9729 (_initialize_exec): Install show_exec_file_mismatch_command and
9730 set_exec_file_mismatch_command.
9731 * gdbcore.h (validate_exec_file): Declare.
9732 * infcmd.c (attach_command): Call validate_exec_file.
9733 * remote.c ( remote_target::remote_add_inferior): Likewise.
9734
9735 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9736
9737 * frame.c (find_frame_sal): Move call to get_next_frame into more
9738 inner scope.
9739 * inline-frame.c (inilne_state) <inline_state>: Update argument
9740 types.
9741 (inilne_state) <skipped_symbol>: Rename to...
9742 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9743 (skip_inline_frames): Build vector of skipped symbols and use this
9744 to reate the inline_state.
9745 (inline_skipped_symbol): Add a comment and some assertions, fetch
9746 skipped symbol from the list.
9747
9748 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9749
9750 * buildsym.c (lte_is_less_than): Delete.
9751 (buildsym_compunit::end_symtab_with_blockvector): Create local
9752 lambda function to sort line table entries, and use
9753 std::stable_sort instead of std::sort.
9754 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9755 markers when looking for a previous line.
9756
9757 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9758
9759 * dwarf2read.c (lnp_state_machine::record_line): Include
9760 end_sequence parameter in debug print out. Record the line if we
9761 are at an end_sequence marker even if it's not the start of a
9762 statement.
9763 * symmisc.c (maintenance_print_one_line_table): Print end of
9764 sequence markers with 'END' not '0'.
9765
9766 2020-01-24 Pedro Alves <palves@redhat.com>
9767
9768 PR gdb/25410
9769 * thread.c (scoped_restore_current_thread::restore): Use
9770 switch_to_inferior_no_thread.
9771 * exec.c: Include "progspace-and-thread.h".
9772 (add_target_sections, remove_target_sections):
9773 scoped_restore_current_pspace_and_thread instead of
9774 scoped_restore_current_thread.
9775 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9776 and aspace to the inferior before calling clone_program_space.
9777 Remove stale comment.
9778
9779 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9780
9781 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9782 (arm_netbsd_nat_target::fetch_registers): ...this.
9783 (arm_nbsd_nat_target::store_registers): Rename to...
9784 (arm_netbsd_nat_target::store_registers): ...this.
9785
9786 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9787
9788 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9789 register_t.
9790
9791 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9792
9793 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9794 Update comment.
9795 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9796 Likewise.
9797 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9798 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9799 the correct replacement (iterate_over_regset_sections).
9800 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9801 Update comment.
9802
9803 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9804
9805 PR gdb/23718
9806 * gdb/python/python.c (execute_gdb_command): Call
9807 async_enable_stdin in catch block.
9808
9809 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9810
9811 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9812 SWITCH_THRU_ALL_UIS.
9813
9814 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9815
9816 PR tui/9765
9817 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9818 comment, add extra parameter, and update to store previous symbol
9819 when appropriate.
9820 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9821 add extra parameter.
9822 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9823 remove unneeded parameter, add try/catch around gdb_print_insn,
9824 rewrite to add items to asm_lines vector.
9825 (tui_find_backward_disassembly_start_address): New function.
9826 (tui_find_disassembly_address): Updated throughout.
9827 (tui_disasm_window::set_contents): Update for changes to
9828 tui_disassemble.
9829 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9830 number of lines to scroll.
9831
9832 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9833
9834 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9835 (SECT_OFF_DATA): Likewise.
9836 (SECT_OFF_RODATA): Likewise.
9837 (SECT_OFF_TEXT): Likewise.
9838 (SECT_OFF_BSS): Likewise.
9839 (struct objfile) <text_section_offset, data_section_offset>: New
9840 methods.
9841 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9842 objfile::text_section_offset.
9843 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9844 * coffread.c (coff_symtab_read): Likewise.
9845 (enter_linenos): Likewise.
9846 (process_coff_symbol): Likewise.
9847 * ctfread.c (get_objfile_text_range): Likewise.
9848 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9849 Use objfile::data_section_offset.
9850 * dwarf2-frame.c (execute_cfa_program): Use
9851 objfile::text_section_offset.
9852 (dwarf2_frame_find_fde): Likewise.
9853 * dwarf2read.c (create_addrmap_from_index): Likewise.
9854 (create_addrmap_from_aranges): Likewise.
9855 (dw2_find_pc_sect_compunit_symtab): Likewise.
9856 (process_psymtab_comp_unit_reader): Likewise.
9857 (add_partial_symbol): Likewise.
9858 (add_partial_subprogram): Likewise.
9859 (process_full_comp_unit): Likewise.
9860 (read_file_scope): Likewise.
9861 (read_func_scope): Likewise.
9862 (read_lexical_block_scope): Likewise.
9863 (read_call_site_scope): Likewise.
9864 (dwarf2_rnglists_process): Likewise.
9865 (dwarf2_ranges_process): Likewise.
9866 (dwarf2_ranges_read): Likewise.
9867 (dwarf_decode_lines_1): Likewise.
9868 (new_symbol): Likewise.
9869 (dwarf2_fetch_die_loc_sect_off): Likewise.
9870 (dwarf2_per_cu_text_offset): Likewise.
9871 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9872 * hppa-tdep.c (read_unwind_info): Likewise.
9873 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9874 * psympriv.h (struct partial_symtab): Likewise.
9875 * psymtab.c (find_pc_sect_psymtab): Likewise.
9876 * solib-svr4.c (enable_break): Likewise.
9877 * stap-probe.c (relocate_address): Use
9878 objfile::data_section_offset.
9879 * xcoffread.c (enter_line_range): Use
9880 objfile::text_section_offset.
9881 (read_xcoff_symtab): Likewise.
9882
9883 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9886 declaration to narrower scopes.
9887
9888 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9889
9890 * darwin-nat.h (struct darwin_exception_msg, enum
9891 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9892 Move up.
9893 (class darwin_nat_target) <wait_1, check_new_threads,
9894 decode_exception_message, decode_message, stop_inferior,
9895 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9896 * darwin-nat.c (darwin_check_new_threads): Rename to...
9897 (darwin_nat_target::check_new_threads): ... this.
9898 (darwin_suspend_inferior_it): Remove.
9899 (darwin_decode_exception_message): Rename to...
9900 (darwin_nat_target::decode_exception_message): ... this.
9901 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9902 (darwin_decode_message): Rename to...
9903 (darwin_nat_target::decode_message): ... this.
9904 (cancel_breakpoint): Rename to...
9905 (darwin_nat_target::cancel_breakpoint): ... this.
9906 (darwin_wait): Rename to...
9907 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9908 instead of iterate_over_inferiors.
9909 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9910 (darwin_stop_inferior): Rename to...
9911 (darwin_nat_target::stop_inferior): ... this.
9912 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9913 (darwin_init_thread_list): Rename to...
9914 (darwin_nat_target::init_thread_list): ... this.
9915 (darwin_ptrace_him): Rename to...
9916 (darwin_nat_target::ptrace_him): ... this.
9917 (darwin_nat_target::create_inferior): Pass lambda function to
9918 fork_inferior.
9919 (darwin_nat_target::detach): Call stop_inferior instead of
9920 darwin_stop_inferior.
9921 * fork-inferior.h (fork_inferior): Change init_trace_fun
9922 parameter to gdb::function_view.
9923 * fork-inferior.c (fork_inferior): Likewise.
9924
9925 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9926
9927 * i386-cygwin-tdep.c (core_process_module_section): Update.
9928 * windows-nat.c (struct lm_info_windows): Add text_offset.
9929 (windows_xfer_shared_libraries): Update.
9930 * windows-tdep.c (windows_xfer_shared_library):
9931 Add text_offset_cached argument.
9932 * windows-tdep.h (windows_xfer_shared_library): Update.
9933
9934 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9935
9936 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9937
9938 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9941 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9942 replace with range-based for.
9943 (gdbsim_interrupt_inferior): Remove.
9944 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9945 with a range-based for. Inline code from
9946 gdbsim_interrupt_inferior.
9947
9948 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9949
9950 * infrun.c (proceed): Fix indentation.
9951
9952 2020-01-21 Tom Tromey <tromey@adacore.com>
9953
9954 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9955 * python/python.c (python_extension_ops): Update.
9956 (gdbpy_colorize): New function.
9957 * python/lib/gdb/__init__.py (colorize): New function.
9958 * extension.h (ext_lang_colorize): Declare.
9959 * extension.c (ext_lang_colorize): New function.
9960 * extension-priv.h (struct extension_language_ops) <colorize>: New
9961 member.
9962 * cli/cli-style.c (_initialize_cli_style): Update help text.
9963
9964 2020-01-21 Luis Machado <luis.machado@linaro.org>
9965
9966 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9967 <cond>: Change type to bool.
9968 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9969 (aarch64_displaced_step_cb): Likewise.
9970 (aarch64_displaced_step_tb): Likewise.
9971
9972 2020-01-21 Luis Machado <luis.machado@linaro.org>
9973
9974 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9975 output.
9976
9977 2020-01-21 Luis Machado <luis.machado@linaro.org>
9978
9979 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9980 <pc_adjust>: Adjust the documentation.
9981 (aarch64_displaced_step_fixup): Check if PC really moved before
9982 adjusting it.
9983
9984 2020-01-19 Tom Tromey <tom@tromey.com>
9985
9986 * disasm.c (~gdb_disassembler): New destructor.
9987 (gdb_buffered_insn_length): Call disassemble_free_target.
9988 * disasm.h (class gdb_disassembler): Declare destructor. Use
9989 DISABLE_COPY_AND_ASSIGN.
9990
9991 2020-01-19 Tom Tromey <tom@tromey.com>
9992
9993 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9994 (die_reader_func_ftype): Remove.
9995 (cutu_reader): New class.
9996 (dw2_get_file_names_reader): Remove "data" parameter.
9997 (dw2_get_file_names): Use cutu_reader.
9998 (create_debug_type_hash_table): Update.
9999 (read_cutu_die_from_dwo): Update comment.
10000 (lookup_dwo_unit): Add dwo_name parameter.
10001 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10002 die_reader_func_ftype and data parameters.
10003 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10004 Remove die_reader_func_ftype and data parameters.
10005 (~cutu_reader): New; from init_cutu_and_read_dies.
10006 (cutu_reader::cutu_reader): Rename from
10007 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10008 and data parameters.
10009 (init_cutu_and_read_dies_simple): Remove.
10010 (struct process_psymtab_comp_unit_data): Remove.
10011 (process_psymtab_comp_unit_reader): Remove data parameter; add
10012 want_partial_unit and pretend_language parameters.
10013 (process_psymtab_comp_unit): Use cutu_reader.
10014 (build_type_psymtabs_reader): Remove data parameter.
10015 (build_type_psymtabs_1): Use cutu_reader.
10016 (process_skeletonless_type_unit): Likewise.
10017 (load_partial_comp_unit_reader): Remove.
10018 (load_partial_comp_unit): Use cutu_reader.
10019 (load_full_comp_unit_reader): Remove.
10020 (load_full_comp_unit): Use cutu_reader.
10021 (struct create_dwo_cu_data): Remove.
10022 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10023 dwo_unit parameters.
10024 (create_cus_hash_table): Use cutu_reader.
10025 (struct dwarf2_read_addr_index_data): Remove.
10026 (dwarf2_read_addr_index_reader): Remove.
10027 (dwarf2_read_addr_index): Use cutu_reader.
10028 (read_signatured_type_reader): Remove.
10029 (read_signatured_type): Use cutu_reader.
10030
10031 2020-01-19 Tom Tromey <tom@tromey.com>
10032
10033 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10034 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10035 (tui_wrefresh): Declare.
10036 * tui/tui-wingeneral.c (suppress_output): New global.
10037 (tui_suppress_output, ~tui_suppress_output): New constructor and
10038 destructor.
10039 (tui_wrefresh): New function.
10040 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10041 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10042 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10043 method.
10044 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10045 tui_wrefresh.
10046 (tui_data_window::no_refresh): New method.
10047 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10048 (tui_reg_command): Use tui_suppress_output
10049 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10050 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10051 method.
10052 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10053
10054 2020-01-19 Tom Tromey <tom@tromey.com>
10055
10056 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10057 Handle case where symtab is null.
10058
10059 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10060
10061 * linux-fork.c (one_fork_p): Simplify.
10062
10063 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10064
10065 * top.c (struct qt_args): Remove.
10066 (kill_or_detach): Change return type to void, replace `void *`
10067 parameter with a proper one.
10068 (print_inferior_quit_action): Likewise.
10069 (quit_confirm): Use range-based for loop to iterate over inferiors.
10070 (quit_force): Likewise.
10071
10072 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10073
10074 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10075 `void *` parameter with proper parameters.
10076 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10077 (print_one_inferior): Change return type to void, replace `void *`
10078 parameter with proper parameters.
10079 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10080 inferiors.
10081 (get_other_inferior): Remove.
10082 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10083 inferiors.
10084
10085 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10086
10087 * mi/mi-interp.c (report_initial_inferior): Remove.
10088 (mi_interp::init): Use range-based for to iterate over inferiors.
10089
10090 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10091
10092 * python/py-inferior.c (build_inferior_list): Remove.
10093 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10094
10095 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10096
10097 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10098 (btrace_stitch_trace): Likewise.
10099 * charset.c (intermediate_encoding): Likewise (vaild).
10100 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10101 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10102 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10103
10104 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10105
10106 * windows-tdep.c (windows_get_tlb_type):
10107 Add rtl_user_process_parameters type.
10108
10109 2020-01-16 Pedro Alves <palves@redhat.com>
10110 Norbert Lange <nolange79@gmail.com>
10111
10112 PR build/24805
10113 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10114 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10115 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10116 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10117 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10118 (ps_plog): Redeclare exported functions with default visibility.
10119
10120 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10121
10122 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10123 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10124
10125 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10126
10127 * infcmd.c (post_create_inferior): Use get_thread_regcache
10128 instead of get_current_regcache.
10129
10130 2020-01-14 Tom Tromey <tom@tromey.com>
10131
10132 PR symtab/12535:
10133 * python/python.c (gdbpy_decode_line): Treat empty string the same
10134 as no argument.
10135
10136 2020-01-14 Tom Tromey <tom@tromey.com>
10137
10138 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10139
10140 2020-01-14 Tom Tromey <tom@tromey.com>
10141
10142 * nat/linux-btrace.c: Don't include <config.h>.
10143 * nat/linux-ptrace.c: Don't include <config.h>.
10144 * nat/x86-linux-dregs.c: Don't include <config.h>.
10145
10146 2020-01-14 Tom Tromey <tom@tromey.com>
10147
10148 * configure: Rebuild.
10149 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10150
10151 2020-01-14 Tom Tromey <tom@tromey.com>
10152
10153 * nat/x86-linux-dregs.c: Include configh.h.
10154 * nat/linux-ptrace.c: Include configh.h.
10155 * nat/linux-btrace.c: Include configh.h.
10156 * defs.h: Include config.h, bfd.h.
10157 * configure.ac: Don't source common.host.
10158 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10159 * configure: Rebuild.
10160 * acinclude.m4: Update path.
10161 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10162 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10163 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10164 (CLIBS): Add LIBSUPPORT.
10165 (CDEPS): Likewise.
10166 (COMMON_SFILES): Remove gdbsupport files.
10167 (HFILES_NO_SRCDIR): Likewise.
10168 (stamp-version): Update path to create-version.sh.
10169 (ALLDEPFILES): Remove gdbsupport files.
10170
10171 2020-01-14 Tom Tromey <tom@tromey.com>
10172
10173 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10174 USE_WIN32API when needed.
10175 * configure.ac (USE_WIN32API): Don't define.
10176 (WIN32LIBS): Use WIN32APILIBS.
10177 * configure: Rebuild.
10178
10179 2020-01-14 Tom Tromey <tom@tromey.com>
10180
10181 * configure: Rebuild.
10182 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10183
10184 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10185
10186 * skip.c (skip_function_command): Make skip w/o arguments use the
10187 name of the inlined function if pc is inside any inlined function.
10188
10189 2020-01-14 Luis Machado <luis.machado@linaro.org>
10190
10191 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10192 * infrun.c (resume_1): Likewise.
10193 (handle_inferior_event): Remove stale comment.
10194 * linux-nat.c (linux_nat_target::resume): Update comments.
10195 (save_stop_reason): Likewise.
10196 (linux_nat_filter_event): Likewise.
10197 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10198
10199 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10200
10201 * elfread.c (record_minimal_symbol): Set section index to 0 for
10202 non-allocatable sections.
10203
10204
10205 2020-01-13 Ali Tamur <tamur@google.com>
10206
10207 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10208 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10209 to gdb::optional. Update comments.
10210 (dwo_file): Update comments.
10211 (read_attribute): Update API to take an additional out parameter,
10212 need_reprocess. This is used to mark attributes that need other
10213 attributes (e.g. str_offsets_base) for correct computation which may not
10214 have been read yet.
10215 (read_attribute_reprocess): New function declaration.
10216 (read_addr_index): Likewise.
10217 (read_dwo_str_index): Likewise.
10218 (read_stub_str_index): Likewise.
10219 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10220 (lookup_addr_base): New function definition.
10221 (lookup_ranges_base): Likewise.
10222 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10223 lookup_ranges_base.
10224 (init_cutu_and_read_dies): Update comments.
10225 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10226 unit. This is used to inherit parent's str_offsets_base and addr_base.
10227 Update comments.
10228 (init_cutu_and_read_dies_simple): Reflect API changes.
10229 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10230 (create_cus_hash_table): Change API to take parent compile unit.
10231 Reflect API changes.
10232 (open_and_init_dwo_file): Reflect API changes.
10233 (dwarf2_get_pc_bounds): Update comments.
10234 (dwarf2_record_block_ranges): Likewise.
10235 (read_full_die_1): Change implementation to reprocess attributes that
10236 need str_offsets_base and addr_base.
10237 (partial_die_info::read): Likewise.
10238 (read_attribute_reprocess): New function definition.
10239 (read_attribute_value): Change API to take an additional out parameter,
10240 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10241 when a non-dwo compile unit has index based attributes.
10242 (read_attribute): Reflect API changes.
10243 (read_addr_index_1): Reflect API changes. Update comments.
10244 (dwarf2_read_addr_index_data): Reflect API changes.
10245 (dwarf2_read_addr_index): Likewise.
10246 (read_str_index): Change API and implementation. This becomes a helper
10247 to be used by the new string index related methods. Update error
10248 message and comments.
10249 (read_dwo_str_index): New function definition.
10250 (read_stub_str_index): Likewise.
10251 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10252 * symfile.h (dwarf2_debug_sections): Likewise.
10253 * xcoffread.c (dwarf2_debug_sections): Likewise.
10254
10255 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10256
10257 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10258 core_reg_sect type to gdb_byte *.
10259 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10260 * cris-tdep.c (fetch_core_registers): Likewise.
10261 * corelow.c (core_target::get_core_register_section): Change
10262 type of `contents` to gdb::byte_vector.
10263
10264 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10265
10266 * tui/tui-wingeneral.c (box_win): Position the title in the center
10267 of the border.
10268
10269 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10270
10271 * corelow.c (core_target::get_core_register_section): Use
10272 std::vector instead of alloca.
10273
10274 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10275
10276 * warning.m4: Add -Wmissing-declarations to build_warnings.
10277 * configure: Re-generate.
10278
10279 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10280
10281 * python/python.c (init__gdb_module): Add declaration.
10282
10283 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10284
10285 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10286 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10287 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10288 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10289 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10290 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10291 * ada-exp.y (_initialize_ada_exp): Add declaration.
10292 * ada-lang.c (_initialize_ada_language): Add declaration.
10293 * ada-tasks.c (_initialize_tasks): Add declaration.
10294 * agent.c (_initialize_agent): Add declaration.
10295 * aix-thread.c (_initialize_aix_thread): Add declaration.
10296 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10297 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10298 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10299 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10300 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10301 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10302 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10303 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10304 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10305 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10306 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10307 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10308 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10309 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10310 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10311 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10312 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10313 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10314 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10315 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10316 * annotate.c (_initialize_annotate): Add declaration.
10317 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10318 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10319 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10320 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10321 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10322 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10323 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10324 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10325 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10326 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10327 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10328 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10329 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10330 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10331 * auto-load.c (_initialize_auto_load): Add declaration.
10332 * auxv.c (_initialize_auxv): Add declaration.
10333 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10334 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10335 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10336 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10337 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10338 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10339 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10340 * breakpoint.c (_initialize_breakpoint): Add declaration.
10341 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10342 * btrace.c (_initialize_btrace): Add declaration.
10343 * charset.c (_initialize_charset): Add declaration.
10344 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10345 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10346 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10347 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10348 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10349 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10350 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10351 * coffread.c (_initialize_coffread): Add declaration.
10352 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10353 * compile/compile.c (_initialize_compile): Add declaration.
10354 * complaints.c (_initialize_complaints): Add declaration.
10355 * completer.c (_initialize_completer): Add declaration.
10356 * copying.c (_initialize_copying): Add declaration.
10357 * corefile.c (_initialize_core): Add declaration.
10358 * corelow.c (_initialize_corelow): Add declaration.
10359 * cp-abi.c (_initialize_cp_abi): Add declaration.
10360 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10361 * cp-support.c (_initialize_cp_support): Add declaration.
10362 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10363 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10364 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10365 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10366 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10367 * ctfread.c (_initialize_ctfread): Add declaration.
10368 * d-lang.c (_initialize_d_language): Add declaration.
10369 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10370 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10371 * dbxread.c (_initialize_dbxread): Add declaration.
10372 * dcache.c (_initialize_dcache): Add declaration.
10373 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10374 * disasm.c (_initialize_disasm): Add declaration.
10375 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10376 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10377 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10378 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10379 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10380 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10381 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10382 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10383 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10384 * elfread.c (_initialize_elfread): Add declaration.
10385 * exec.c (_initialize_exec): Add declaration.
10386 * extension.c (_initialize_extension): Add declaration.
10387 * f-lang.c (_initialize_f_language): Add declaration.
10388 * f-valprint.c (_initialize_f_valprint): Add declaration.
10389 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10390 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10391 * filesystem.c (_initialize_filesystem): Add declaration.
10392 * findcmd.c (_initialize_mem_search): Add declaration.
10393 * findvar.c (_initialize_findvar): Add declaration.
10394 * fork-child.c (_initialize_fork_child): Add declaration.
10395 * frame-base.c (_initialize_frame_base): Add declaration.
10396 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10397 * frame.c (_initialize_frame): Add declaration.
10398 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10399 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10400 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10401 * gcore.c (_initialize_gcore): Add declaration.
10402 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10403 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10404 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10405 * gdbarch.c (_initialize_gdbarch): Add declaration.
10406 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10407 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10408 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10409 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10410 * go-lang.c (_initialize_go_language): Add declaration.
10411 * go32-nat.c (_initialize_go32_nat): Add declaration.
10412 * guile/guile.c (_initialize_guile): Add declaration.
10413 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10414 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10415 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10416 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10417 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10418 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10419 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10420 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10421 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10422 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10423 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10424 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10425 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10426 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10427 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10428 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10429 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10430 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10431 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10432 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10433 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10434 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10435 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10436 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10437 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10438 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10439 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10440 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10441 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10442 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10443 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10444 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10445 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10446 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10447 * infcall.c (_initialize_infcall): Add declaration.
10448 * infcmd.c (_initialize_infcmd): Add declaration.
10449 * inflow.c (_initialize_inflow): Add declaration.
10450 * infrun.c (_initialize_infrun): Add declaration.
10451 * interps.c (_initialize_interpreter): Add declaration.
10452 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10453 * jit.c (_initialize_jit): Add declaration.
10454 * language.c (_initialize_language): Add declaration.
10455 * linux-fork.c (_initialize_linux_fork): Add declaration.
10456 * linux-nat.c (_initialize_linux_nat): Add declaration.
10457 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10458 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10459 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10460 * m2-lang.c (_initialize_m2_language): Add declaration.
10461 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10462 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10463 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10464 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10465 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10466 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10467 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10468 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10469 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10470 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10471 * machoread.c (_initialize_machoread): Add declaration.
10472 * macrocmd.c (_initialize_macrocmd): Add declaration.
10473 * macroscope.c (_initialize_macroscope): Add declaration.
10474 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10475 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10476 * maint.c (_initialize_maint_cmds): Add declaration.
10477 * mdebugread.c (_initialize_mdebugread): Add declaration.
10478 * memattr.c (_initialize_mem): Add declaration.
10479 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10480 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10481 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10482 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10483 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10484 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10485 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10486 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10487 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10488 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10489 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10490 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10491 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10492 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10493 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10494 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10495 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10496 * mipsread.c (_initialize_mipsread): Add declaration.
10497 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10498 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10499 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10500 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10501 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10502 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10503 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10504 * nto-procfs.c (_initialize_procfs): Add declaration.
10505 * objc-lang.c (_initialize_objc_language): Add declaration.
10506 * observable.c (_initialize_observer): Add declaration.
10507 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10508 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10509 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10510 * osabi.c (_initialize_gdb_osabi): Add declaration.
10511 * osdata.c (_initialize_osdata): Add declaration.
10512 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10513 * parse.c (_initialize_parse): Add declaration.
10514 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10515 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10516 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10517 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10518 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10519 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10520 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10521 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10522 * printcmd.c (_initialize_printcmd): Add declaration.
10523 * probe.c (_initialize_probe): Add declaration.
10524 * proc-api.c (_initialize_proc_api): Add declaration.
10525 * proc-events.c (_initialize_proc_events): Add declaration.
10526 * proc-service.c (_initialize_proc_service): Add declaration.
10527 * procfs.c (_initialize_procfs): Add declaration.
10528 * producer.c (_initialize_producer): Add declaration.
10529 * psymtab.c (_initialize_psymtab): Add declaration.
10530 * python/python.c (_initialize_python): Add declaration.
10531 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10532 * record-btrace.c (_initialize_record_btrace): Add declaration.
10533 * record-full.c (_initialize_record_full): Add declaration.
10534 * record.c (_initialize_record): Add declaration.
10535 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10536 * regcache.c (_initialize_regcache): Add declaration.
10537 * reggroups.c (_initialize_reggroup): Add declaration.
10538 * remote-notif.c (_initialize_notif): Add declaration.
10539 * remote-sim.c (_initialize_remote_sim): Add declaration.
10540 * remote.c (_initialize_remote): Add declaration.
10541 * reverse.c (_initialize_reverse): Add declaration.
10542 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10543 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10544 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10545 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10546 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10547 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10548 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10549 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10550 Add declaration.
10551 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10552 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10553 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10554 * rust-exp.y (_initialize_rust_exp): Add declaration.
10555 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10556 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10557 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10558 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10559 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10560 * score-tdep.c (_initialize_score_tdep): Add declaration.
10561 * ser-go32.c (_initialize_ser_dos): Add declaration.
10562 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10563 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10564 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10565 * ser-uds.c (_initialize_ser_socket): Add declaration.
10566 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10567 * serial.c (_initialize_serial): Add declaration.
10568 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10569 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10570 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10571 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10572 * skip.c (_initialize_step_skip): Add declaration.
10573 * sol-thread.c (_initialize_sol_thread): Add declaration.
10574 * solib-aix.c (_initialize_solib_aix): Add declaration.
10575 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10576 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10577 * solib-frv.c (_initialize_frv_solib): Add declaration.
10578 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10579 * solib-target.c (_initialize_solib_target): Add declaration.
10580 * solib.c (_initialize_solib): Add declaration.
10581 * source-cache.c (_initialize_source_cache): Add declaration.
10582 * source.c (_initialize_source): Add declaration.
10583 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10584 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10585 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10586 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10587 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10588 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10589 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10590 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10591 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10592 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10593 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10594 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10595 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10596 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10597 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10598 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10599 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10600 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10601 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10602 * stabsread.c (_initialize_stabsread): Add declaration.
10603 * stack.c (_initialize_stack): Add declaration.
10604 * stap-probe.c (_initialize_stap_probe): Add declaration.
10605 * std-regs.c (_initialize_frame_reg): Add declaration.
10606 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10607 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10608 * symfile.c (_initialize_symfile): Add declaration.
10609 * symmisc.c (_initialize_symmisc): Add declaration.
10610 * symtab.c (_initialize_symtab): Add declaration.
10611 * target.c (_initialize_target): Add declaration.
10612 * target-connection.c (_initialize_target_connection): Add
10613 declaration.
10614 * target-dcache.c (_initialize_target_dcache): Add declaration.
10615 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10616 * thread.c (_initialize_thread): Add declaration.
10617 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10618 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10619 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10620 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10621 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10622 * tracectf.c (_initialize_ctf): Add declaration.
10623 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10624 * tracefile.c (_initialize_tracefile): Add declaration.
10625 * tracepoint.c (_initialize_tracepoint): Add declaration.
10626 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10627 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10628 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10629 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10630 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10631 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10632 * tui/tui.c (_initialize_tui): Add declaration.
10633 * typeprint.c (_initialize_typeprint): Add declaration.
10634 * ui-style.c (_initialize_ui_style): Add declaration.
10635 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10636 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10637 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10638 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10639 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10640 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10641 * unittests/filtered_iterator-selftests.c
10642 (_initialize_filtered_iterator_selftests): Add declaration.
10643 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10644 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10645 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10646 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10647 * unittests/main-thread-selftests.c
10648 (_initialize_main_thread_selftests): Add declaration.
10649 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10650 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10651 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10652 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10653 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10654 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10655 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10656 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10657 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10658 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10659 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10660 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10661 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10662 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10663 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10664 declaration.
10665 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10666 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10667 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10668 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10669 * user-regs.c (_initialize_user_regs): Add declaration.
10670 * utils.c (_initialize_utils): Add declaration.
10671 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10672 * valops.c (_initialize_valops): Add declaration.
10673 * valprint.c (_initialize_valprint): Add declaration.
10674 * value.c (_initialize_values): Add declaration.
10675 * varobj.c (_initialize_varobj): Add declaration.
10676 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10677 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10678 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10679 * windows-nat.c (_initialize_windows_nat): Add declaration.
10680 (_initialize_check_for_gdb_ini): Add declaration.
10681 (_initialize_loadable): Add declaration.
10682 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10683 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10684 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10685 * xcoffread.c (_initialize_xcoffread): Add declaration.
10686 * xml-support.c (_initialize_xml_support): Add declaration.
10687 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10688 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10689 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10690 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10691
10692 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10693
10694 * regformats/regdat.sh: Generate declaration for init function.
10695
10696 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10697
10698 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10699 up.
10700 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10701 close_one_inferior>: New methods.
10702 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10703 pass down target to find_inferior_pid.
10704 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10705 Pass down target to find_inferior_ptid.
10706 (gdbsim_target::create_inferior): Pass down target to
10707 add_thread_silent.
10708 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10709 target down to find_inferior_ptid and switch_to_thread.
10710 (gdbsim_target::close): Update to call close_one_inferior.
10711 (struct resume_data): Remove.
10712 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10713 directly, rather than through a void pointer.
10714 (gdbsim_target::resume): Update to call resume_one_inferior.
10715
10716 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10717
10718 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10719
10720 2020-01-12 Pedro Alves <palves@redhat.com>
10721
10722 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10723 directly for the current inferior instead of
10724 discard_all_inferiors.
10725 (discard_all_inferiors): Delete.
10726
10727 2020-01-11 Tom Tromey <tom@tromey.com>
10728
10729 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10730 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10731 deprecated_safe_get_selected_frame.
10732
10733 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10734
10735 * inferior.c (print_inferior): Switch inferior before printing it.
10736
10737 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10738 Pedro Alves <palves@redhat.com>
10739
10740 * progspace-and-thread.c (switch_to_program_space_and_thread):
10741 Assert there's an inferior for PSPACE. Use
10742 switch_to_inferior_no_thread to switch the inferior too.
10743 * progspace.c (program_space::~program_space): Call
10744 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10745 (program_space::free_all_objfiles): Don't call clear_symtab_users
10746 here.
10747 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10748
10749 2020-01-10 Pedro Alves <palves@redhat.com>
10750
10751 * NEWS: Mention multi-target debugging, "info connections", and
10752 "add-inferior -no-connection".
10753
10754 2020-01-10 Pedro Alves <palves@redhat.com>
10755
10756 * infrun.c: Include "target-connection.h".
10757 (check_multi_target_resumption): New.
10758 (proceed): Call it.
10759 * target-connection.c (make_target_connection_string): Make
10760 extern.
10761 * target-connection.h (make_target_connection_string): Declare.
10762
10763 2020-01-10 Pedro Alves <palves@redhat.com>
10764
10765 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10766 * inferior.c (uiout_field_connection): New function.
10767 (print_inferior): Add new "connection-id" column.
10768 (add_inferior_command): Show connection number/string of added
10769 inferior.
10770 * process-stratum-target.h
10771 (process_stratum_target::connection_string): New virtual method.
10772 (process_stratum_target::connection_number): New field.
10773 * remote.c (remote_target::connection_string): New override.
10774 * target-connection.c: New file.
10775 * target-connection.h: New file.
10776 * target.c (decref_target): Remove process_stratum targets from
10777 the connection list.
10778 (target_stack::push): Add process_stratum targets to the
10779 connection list.
10780
10781 2020-01-10 Pedro Alves <palves@redhat.com>
10782
10783 Revert:
10784 2016-04-12 Pedro Alves <palves@redhat.com>
10785 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10786 Remove references to name.
10787 * serial.h (struct serial) <name>: Delete.
10788
10789 2020-01-10 Pedro Alves <palves@redhat.com>
10790
10791 * gdbarch-selftests.c (register_to_value_test): Remove "target
10792 already pushed" check.
10793
10794 2020-01-10 Pedro Alves <palves@redhat.com>
10795 John Baldwin <jhb@FreeBSD.org>
10796
10797 * aarch64-linux-nat.c
10798 (aarch64_linux_nat_target::thread_architecture): Adjust.
10799 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10800 (task_command_1): Likewise.
10801 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10802 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10803 (aix_thread_target::store_registers)
10804 (aix_thread_target::thread_alive): Adjust.
10805 * amd64-fbsd-tdep.c: Include "inferior.h".
10806 (amd64fbsd_get_thread_local_address): Pass down target.
10807 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10808 thread's gdbarch instead of target_gdbarch.
10809 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10810 get_last_target_status.
10811 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10812 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10813 inferiors.
10814 (update_inserted_breakpoint_locations): Skip if inferiors with no
10815 execution.
10816 (update_global_location_list): When handling moribund locations,
10817 find representative inferior for location's pspace, and use thread
10818 count of its process_stratum target.
10819 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10820 * bsd-uthread.c (bsd_uthread_target::wait): Use
10821 as_process_stratum_target and adjust thread_change_ptid and
10822 add_thread calls.
10823 (bsd_uthread_target::update_thread_list): Use
10824 as_process_stratum_target and adjust find_thread_ptid,
10825 thread_change_ptid and add_thread calls.
10826 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10827 find_thread_ptid call.
10828 * corelow.c (add_to_thread_list): Adjust add_thread call.
10829 (core_target_open): Adjust add_thread_silent and thread_count
10830 calls.
10831 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10832 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10833 * event-top.c (async_disconnect): Pop targets from all inferiors.
10834 * exec.c (add_target_sections): Push exec target on all inferiors
10835 sharing the program space.
10836 (remove_target_sections): Remove the exec target from all
10837 inferiors sharing the program space.
10838 (exec_on_vfork): New.
10839 * exec.h (exec_on_vfork): Declare.
10840 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10841 Pass it down.
10842 (fbsd_nat_target::update_thread_list): Adjust.
10843 (fbsd_nat_target::resume): Adjust.
10844 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10845 down.
10846 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10847 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10848 get_thread_arch_regcache call.
10849 * fork-child.c (gdb_startup_inferior): Pass target down to
10850 startup_inferior and set_executing.
10851 * gdbthread.h (struct process_stratum_target): Forward declare.
10852 (add_thread, add_thread_silent, add_thread_with_info)
10853 (in_thread_list): Add process_stratum_target parameter.
10854 (find_thread_ptid(inferior*, ptid_t)): New overload.
10855 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10856 parameter.
10857 (all_threads()): Delete overload.
10858 (all_threads, all_non_exited_threads): Add process_stratum_target
10859 parameter.
10860 (all_threads_safe): Use brace initialization.
10861 (thread_count): Add process_stratum_target parameter.
10862 (set_resumed, set_running, set_stop_requested, set_executing)
10863 (threads_are_executing, finish_thread_state): Add
10864 process_stratum_target parameter.
10865 (switch_to_thread): Use is_current_thread.
10866 * i386-fbsd-tdep.c: Include "inferior.h".
10867 (i386fbsd_get_thread_local_address): Pass down target.
10868 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10869 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10870 have_inferiors check.
10871 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10872 (inf_ptrace_target::attach): Adjust.
10873 * infcall.c (run_inferior_call): Adjust.
10874 * infcmd.c (run_command_1): Pass target to
10875 scoped_finish_thread_state.
10876 (proceed_thread_callback): Skip inferiors with no execution.
10877 (continue_command): Rename 'all_threads' local to avoid hiding
10878 'all_threads' function. Adjust get_last_target_status call.
10879 (prepare_one_step): Adjust set_running call.
10880 (signal_command): Use user_visible_resume_target. Compare thread
10881 pointers instead of inferior_ptid.
10882 (info_program_command): Adjust to pass down target.
10883 (attach_command): Mark target's 'thread_executing' flag.
10884 (stop_current_target_threads_ns): New, factored out from ...
10885 (interrupt_target_1): ... this. Switch inferior before making
10886 target calls.
10887 * inferior-iter.h
10888 (struct all_inferiors_iterator, struct all_inferiors_range)
10889 (struct all_inferiors_safe_range)
10890 (struct all_non_exited_inferiors_range): Filter on
10891 process_stratum_target too. Remove explicit.
10892 * inferior.c (inferior::inferior): Push dummy target on target
10893 stack.
10894 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10895 Add process_stratum_target parameter, and pass it down.
10896 (have_live_inferiors): Adjust.
10897 (switch_to_inferior_and_push_target): New.
10898 (add_inferior_command, clone_inferior_command): Handle
10899 "-no-connection" parameter. Use
10900 switch_to_inferior_and_push_target.
10901 (_initialize_inferior): Mention "-no-connection" option in
10902 the help of "add-inferior" and "clone-inferior" commands.
10903 * inferior.h: Include "process-stratum-target.h".
10904 (interrupt_target_1): Use bool.
10905 (struct inferior) <push_target, unpush_target, target_is_pushed,
10906 find_target_beneath, top_target, process_target, target_at,
10907 m_stack>: New.
10908 (discard_all_inferiors): Delete.
10909 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10910 (all_inferiors, all_non_exited_inferiors): Add
10911 process_stratum_target parameter.
10912 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10913 (target_last_proc_target): New global.
10914 (follow_fork_inferior): Push target on new inferior. Pass target
10915 to add_thread_silent. Call exec_on_vfork. Handle target's
10916 reference count.
10917 (follow_fork): Adjust get_last_target_status call. Also consider
10918 target.
10919 (follow_exec): Push target on new inferior.
10920 (struct execution_control_state) <target>: New field.
10921 (user_visible_resume_target): New.
10922 (do_target_resume): Call target_async.
10923 (resume_1): Set target's threads_executing flag. Consider resume
10924 target.
10925 (commit_resume_all_targets): New.
10926 (proceed): Also consider resume target. Skip threads of inferiors
10927 with no execution. Commit resumtion in all targets.
10928 (start_remote): Pass current inferior to wait_for_inferior.
10929 (infrun_thread_stop_requested): Consider target as well. Pass
10930 thread_info pointer to clear_inline_frame_state instead of ptid.
10931 (infrun_thread_thread_exit): Consider target as well.
10932 (random_pending_event_thread): New inferior parameter. Use it.
10933 (do_target_wait): Rename to ...
10934 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10935 down.
10936 (threads_are_resumed_pending_p, do_target_wait): New.
10937 (prepare_for_detach): Adjust calls.
10938 (wait_for_inferior): New inferior parameter. Handle it. Use
10939 do_target_wait_1 instead of do_target_wait.
10940 (fetch_inferior_event): Adjust. Switch to representative
10941 inferior. Pass target down.
10942 (set_last_target_status): Add process_stratum_target parameter.
10943 Save target in global.
10944 (get_last_target_status): Add process_stratum_target parameter and
10945 handle it.
10946 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10947 (context_switch): Check inferior_ptid == null_ptid before calling
10948 inferior_thread().
10949 (get_inferior_stop_soon): Pass down target.
10950 (wait_one): Rename to ...
10951 (poll_one_curr_target): ... this.
10952 (struct wait_one_event): New.
10953 (wait_one): New.
10954 (stop_all_threads): Adjust.
10955 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10956 event's target.
10957 (switch_back_to_stepped_thread): Also consider target.
10958 (print_stop_event): Update.
10959 (normal_stop): Update. Also consider the resume target.
10960 * infrun.h (wait_for_inferior): Remove declaration.
10961 (user_visible_resume_target): New declaration.
10962 (get_last_target_status, set_last_target_status): New
10963 process_stratum_target parameter.
10964 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10965 process_stratum_target parameter, and use it.
10966 (clear_inline_frame_state (thread_info*)): New.
10967 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10968 process_stratum_target parameter.
10969 (clear_inline_frame_state (thread_info*)): Declare.
10970 * linux-fork.c (delete_checkpoint_command): Pass target down to
10971 find_thread_ptid.
10972 (checkpoint_command): Adjust.
10973 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10974 instead of just tweaking inferior_ptid.
10975 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10976 (exit_lwp): Pass target down to find_thread_ptid.
10977 (attach_proc_task_lwp_callback): Pass target down to
10978 add_thread/set_running/set_executing.
10979 (linux_nat_target::attach): Pass target down to
10980 thread_change_ptid.
10981 (get_detach_signal): Pass target down to find_thread_ptid.
10982 Consider last target status's target.
10983 (linux_resume_one_lwp_throw, resume_lwp)
10984 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10985 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10986 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10987 (linux_nat_target::async_wait_fd): New.
10988 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10989 target down.
10990 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10991 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10992 * linux-thread-db.c (struct thread_db_info::process_target): New
10993 field.
10994 (add_thread_db_info): Save target.
10995 (get_thread_db_info): New process_stratum_target parameter. Also
10996 match target.
10997 (delete_thread_db_info): New process_stratum_target parameter.
10998 Also match target.
10999 (thread_from_lwp): Adjust to pass down target.
11000 (thread_db_notice_clone): Pass down target.
11001 (check_thread_db_callback): Pass down target.
11002 (try_thread_db_load_1): Always push the thread_db target.
11003 (try_thread_db_load, record_thread): Pass target down.
11004 (thread_db_target::detach): Pass target down. Always unpush the
11005 thread_db target.
11006 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11007 target down. Always unpush the thread_db target.
11008 (find_new_threads_callback, thread_db_find_new_threads_2)
11009 (thread_db_target::update_thread_list): Pass target down.
11010 (thread_db_target::pid_to_str): Pass current inferior down.
11011 (thread_db_target::get_thread_local_address): Pass target down.
11012 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11013 target down.
11014 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11015 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11016 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11017 (procfs_init_inferior): Rename to ...
11018 (procfs_target::procfs_init_inferior): ... this and adjust.
11019 (procfs_target::create_inferior, procfs_notice_thread)
11020 (procfs_do_thread_registers): Adjust.
11021 * ppc-fbsd-tdep.c: Include "inferior.h".
11022 (ppcfbsd_get_thread_local_address): Pass down target.
11023 * proc-service.c (ps_xfer_memory): Switch current inferior and
11024 program space as well.
11025 (get_ps_regcache): Pass target down.
11026 * process-stratum-target.c
11027 (process_stratum_target::thread_address_space)
11028 (process_stratum_target::thread_architecture): Pass target down.
11029 * process-stratum-target.h
11030 (process_stratum_target::threads_executing): New field.
11031 (as_process_stratum_target): New.
11032 * ravenscar-thread.c
11033 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11034 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11035 down.
11036 * record-btrace.c (record_btrace_target::info_record): Adjust.
11037 (record_btrace_target::record_method)
11038 (record_btrace_target::record_is_replaying)
11039 (record_btrace_target::fetch_registers)
11040 (get_thread_current_frame_id, record_btrace_target::resume)
11041 (record_btrace_target::wait, record_btrace_target::stop): Pass
11042 target down.
11043 * record-full.c (record_full_wait_1): Switch to event thread.
11044 Pass target down.
11045 * regcache.c (regcache::regcache)
11046 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11047 process_stratum_target parameter and handle it.
11048 (current_thread_target): New global.
11049 (get_thread_regcache): Add process_stratum_target parameter and
11050 handle it. Switch inferior before calling target method.
11051 (get_thread_regcache): Pass target down.
11052 (get_thread_regcache_for_ptid): Pass target down.
11053 (registers_changed_ptid): Add process_stratum_target parameter and
11054 handle it.
11055 (registers_changed_thread, registers_changed): Pass target down.
11056 (test_get_thread_arch_aspace_regcache): New.
11057 (current_regcache_test): Define a couple local test_target_ops
11058 instances and use them for testing.
11059 (readwrite_regcache): Pass process_stratum_target parameter.
11060 (cooked_read_test, cooked_write_test): Pass mock_target down.
11061 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11062 (get_thread_arch_aspace_regcache): Add process_stratum_target
11063 parameter.
11064 (regcache::target): New method.
11065 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11066 (regcache::registers_changed_ptid): Add process_stratum_target
11067 parameter.
11068 (regcache::m_target): New field.
11069 (registers_changed_ptid): Add process_stratum_target parameter.
11070 * remote.c (remote_state::supports_vCont_probed): New field.
11071 (remote_target::async_wait_fd): New method.
11072 (remote_unpush_and_throw): Add remote_target parameter.
11073 (get_current_remote_target): Adjust.
11074 (remote_target::remote_add_inferior): Push target.
11075 (remote_target::remote_add_thread)
11076 (remote_target::remote_notice_new_inferior)
11077 (get_remote_thread_info): Pass target down.
11078 (remote_target::update_thread_list): Skip threads of inferiors
11079 bound to other targets. (remote_target::close): Don't discard
11080 inferiors. (remote_target::add_current_inferior_and_thread)
11081 (remote_target::process_initial_stop_replies)
11082 (remote_target::start_remote)
11083 (remote_target::remote_serial_quit_handler): Pass down target.
11084 (remote_target::remote_unpush_target): New remote_target
11085 parameter. Unpush the target from all inferiors.
11086 (remote_target::remote_unpush_and_throw): New remote_target
11087 parameter. Pass it down.
11088 (remote_target::open_1): Check whether the current inferior has
11089 execution instead of checking whether any inferior is live. Pass
11090 target down.
11091 (remote_target::remote_detach_1): Pass down target. Use
11092 remote_unpush_target.
11093 (extended_remote_target::attach): Pass down target.
11094 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11095 (remote_target::append_resumption): Pass down target.
11096 (remote_target::append_pending_thread_resumptions)
11097 (remote_target::remote_resume_with_hc, remote_target::resume)
11098 (remote_target::commit_resume): Pass down target.
11099 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11100 (remote_target::interrupt_query)
11101 (remote_target::remove_new_fork_children)
11102 (remote_target::check_pending_events_prevent_wildcard_vcont)
11103 (remote_target::remote_parse_stop_reply)
11104 (remote_target::process_stop_reply): Pass down target.
11105 (first_remote_resumed_thread): New remote_target parameter. Pass
11106 it down.
11107 (remote_target::wait_as): Pass down target.
11108 (unpush_and_perror): New remote_target parameter. Pass it down.
11109 (remote_target::readchar, remote_target::remote_serial_write)
11110 (remote_target::getpkt_or_notif_sane_1)
11111 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11112 down target.
11113 (remote_target::mourn_inferior): Pass down target. Use
11114 remote_unpush_target.
11115 (remote_target::core_of_thread)
11116 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11117 (remote_target::pid_to_exec_file)
11118 (remote_target::thread_handle_to_thread_info): Pass down target.
11119 (remote_target::async_wait_fd): New.
11120 * riscv-fbsd-tdep.c: Include "inferior.h".
11121 (riscv_fbsd_get_thread_local_address): Pass down target.
11122 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11123 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11124 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11125 Adjust.
11126 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11127 * solib-svr4.c (enable_break): Pass down target.
11128 * spu-multiarch.c (parse_spufs_run): Pass down target.
11129 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11130 * target-delegates.c: Regenerate.
11131 * target.c (g_target_stack): Delete.
11132 (current_top_target): Return the current inferior's top target.
11133 (target_has_execution_1): Refer to the passed-in inferior's top
11134 target.
11135 (target_supports_terminal_ours): Check whether the initial
11136 inferior was already created.
11137 (decref_target): New.
11138 (target_stack::push): Incref/decref the target.
11139 (push_target, push_target, unpush_target): Adjust.
11140 (target_stack::unpush): Defref target.
11141 (target_is_pushed): Return bool. Adjust to refer to the current
11142 inferior's target stack.
11143 (dispose_inferior): Delete, and inline parts ...
11144 (target_preopen): ... here. Only dispose of the current inferior.
11145 (target_detach): Hold strong target reference while detaching.
11146 Pass target down.
11147 (target_thread_name): Add assertion.
11148 (target_resume): Pass down target.
11149 (target_ops::beneath, find_target_at): Adjust to refer to the
11150 current inferior's target stack.
11151 (get_dummy_target): New.
11152 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11153 has a thread running.
11154 (initialize_targets): Rename to ...
11155 (_initialize_target): ... this.
11156 * target.h: Include "gdbsupport/refcounted-object.h".
11157 (struct target_ops): Inherit refcounted_object.
11158 (target_ops::shortname, target_ops::longname): Make const.
11159 (target_ops::async_wait_fd): New method.
11160 (decref_target): Declare.
11161 (struct target_ops_ref_policy): New.
11162 (target_ops_ref): New typedef.
11163 (get_dummy_target): Declare function.
11164 (target_is_pushed): Return bool.
11165 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11166 (all_matching_threads_iterator::all_matching_threads_iterator):
11167 Handle filter target.
11168 * thread-iter.h (struct all_matching_threads_iterator, struct
11169 all_matching_threads_range, class all_non_exited_threads_range):
11170 Filter by target too. Remove explicit.
11171 * thread.c (threads_executing): Delete.
11172 (inferior_thread): Pass down current inferior.
11173 (clear_thread_inferior_resources): Pass down thread pointer
11174 instead of ptid_t.
11175 (add_thread_silent, add_thread_with_info, add_thread): Add
11176 process_stratum_target parameter. Use it for thread and inferior
11177 searches.
11178 (is_current_thread): New.
11179 (thread_info::deletable): Use it.
11180 (find_thread_ptid, thread_count, in_thread_list)
11181 (thread_change_ptid, set_resumed, set_running): New
11182 process_stratum_target parameter. Pass it down.
11183 (set_executing): New process_stratum_target parameter. Pass it
11184 down. Adjust reference to 'threads_executing'.
11185 (threads_are_executing): New process_stratum_target parameter.
11186 Adjust reference to 'threads_executing'.
11187 (set_stop_requested, finish_thread_state): New
11188 process_stratum_target parameter. Pass it down.
11189 (switch_to_thread): Also match inferior.
11190 (switch_to_thread): New process_stratum_target parameter. Pass it
11191 down.
11192 (update_threads_executing): Reimplement.
11193 * top.c (quit_force): Pop targets from all inferior.
11194 (gdb_init): Don't call initialize_targets.
11195 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11196 Declare.
11197 (windows_add_thread, windows_delete_thread): Adjust.
11198 (get_windows_debug_event): Rename to ...
11199 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11200 * tracefile-tfile.c (tfile_target_open): Pass down target.
11201 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11202 Forward declare.
11203 (switch_to_thread): Add process_stratum_target parameter.
11204 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11205 parameter. Use it.
11206 (mi_on_resume): Pass target down.
11207 * nat/fork-inferior.c (startup_inferior): Add
11208 process_stratum_target parameter. Pass it down.
11209 * nat/fork-inferior.h (startup_inferior): Add
11210 process_stratum_target parameter.
11211 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11212
11213 2020-01-10 Pedro Alves <palves@redhat.com>
11214
11215 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11216 directly. Instead find the first thread in the thread list and
11217 use switch_to_thread.
11218
11219 2020-01-10 Pedro Alves <palves@redhat.com>
11220
11221 * remote.c (remote_target::remote_add_inferior): Don't bind a
11222 process to the current inferior if the current inferior is already
11223 bound to a process.
11224
11225 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11226 Pedro Alves <palves@redhat.com>
11227
11228 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11229 If no process is specified, return null_ptid instead of
11230 inferior_ptid.
11231 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11232 TARGET_WAITKIND_SIGNALLED with no pid.
11233
11234 2020-01-10 Pedro Alves <palves@redhat.com>
11235
11236 * remote.c (first_remote_resumed_thread): New.
11237 (remote_target::wait_as): Use it as default event_ptid instead of
11238 inferior_ptid.
11239
11240 2020-01-10 Pedro Alves <palves@redhat.com>
11241
11242 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11243
11244 2020-01-10 Pedro Alves <palves@redhat.com>
11245
11246 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11247 not -1.
11248
11249 2020-01-10 Pedro Alves <palves@redhat.com>
11250
11251 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11252 ptid to get_last_target_status.
11253 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11254 ptid to get_last_target_status.
11255 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11256 get_last_target_status.
11257 (info_program_command): Don't pass a target_waitstatus to
11258 get_last_target_status.
11259 * infrun.c (init_wait_for_inferior): Use
11260 nullify_last_target_wait_ptid.
11261 (get_last_target_status): Handle nullptr arguments.
11262 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11263 (print_stop_event): Don't pass a ptid to get_last_target_status.
11264 (normal_stop): Don't pass a ptid to get_last_target_status.
11265 * infrun.h (get_last_target_status, set_last_target_status): Move
11266 comments here and update.
11267 (nullify_last_target_wait_ptid): Declare.
11268 * linux-fork.c (fork_load_infrun_state): Remove local extern
11269 declaration of nullify_last_target_wait_ptid.
11270 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11271 to get_last_target_status.
11272
11273 2020-01-10 Pedro Alves <palves@redhat.com>
11274
11275 * gdbthread.h (scoped_restore_current_thread)
11276 <dont_restore, restore, m_dont_restore>: Declare.
11277 * thread.c (thread_alive): Add assertion. Return bool.
11278 (switch_to_thread_if_alive): New.
11279 (prune_threads): Switch inferior/thread.
11280 (print_thread_info_1): Switch thread before calling target methods.
11281 (scoped_restore_current_thread::restore): New, factored out from
11282 ...
11283 (scoped_restore_current_thread::~scoped_restore_current_thread):
11284 ... this.
11285 (scoped_restore_current_thread::scoped_restore_current_thread):
11286 Add assertion.
11287 (thread_apply_all_command, thread_select): Use
11288 switch_to_thread_if_alive.
11289 * infrun.c (proceed, restart_threads, handle_signal_stop)
11290 (switch_back_to_stepped_thread): Switch current thread before
11291 calling target methods.
11292
11293 2020-01-10 Pedro Alves <palves@redhat.com>
11294
11295 * inferior.c (switch_to_inferior_no_thread): New function,
11296 factored out from ...
11297 (inferior_command): ... here.
11298 * inferior.h (switch_to_inferior_no_thread): Declare.
11299 * mi/mi-main.c (run_one_inferior): Use
11300 switch_to_inferior_no_thread.
11301
11302 2020-01-10 Pedro Alves <palves@redhat.com>
11303
11304 * infcmd.c (kill_command): Remove dead code.
11305
11306 2020-01-10 Pedro Alves <palves@redhat.com>
11307
11308 * remote.c (remote_target::mourn_inferior): No longer check
11309 whether the target is running.
11310
11311 2020-01-10 Pedro Alves <palves@redhat.com>
11312
11313 * corelow.c (core_target::has_execution): Change parameter type to
11314 inferior pointer.
11315 * inferior.c (number_of_live_inferiors): Use
11316 inferior::has_execution instead of target_has_execution_1.
11317 * inferior.h (inferior::has_execution): New.
11318 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11319 inferior::has_execution instead of target_has_execution_1.
11320 * process-stratum-target.c
11321 (process_stratum_target::has_execution): Change parameter type to
11322 inferior pointer. Check the inferior's PID instead of
11323 inferior_ptid.
11324 * process-stratum-target.h
11325 (process_stratum_target::has_execution): Change parameter type to
11326 inferior pointer.
11327 * record-full.c (record_full_core_target::has_execution): Change
11328 parameter type to inferior pointer.
11329 * target.c (target_has_execution_1): Change parameter type to
11330 inferior pointer.
11331 (target_has_execution_current): Adjust.
11332 * target.h (target_ops::has_execution): Change parameter type to
11333 inferior pointer.
11334 (target_has_execution_1): Change parameter type to inferior
11335 pointer. Change return type to bool.
11336 * tracefile.h (tracefile_target::has_execution): Change parameter
11337 type to inferior pointer.
11338
11339 2020-01-10 Pedro Alves <palves@redhat.com>
11340
11341 * exceptions.c (print_flush): Remove current_top_target() check.
11342
11343 2020-01-10 Pedro Alves <palves@redhat.com>
11344
11345 * remote.c (show_remote_exec_file): Show the current inferior's
11346 exec-file instead of the command variable's value.
11347
11348 2020-01-10 Pedro Alves <palves@redhat.com>
11349
11350 * record-full.c (record_full_resume_ptid): New global.
11351 (record_full_target::resume): Set it.
11352 (record_full_wait_1): Use record_full_resume_ptid instead of
11353 inferior_ptid.
11354
11355 2020-01-10 Pedro Alves <palves@redhat.com>
11356
11357 * gdbthread.h (scoped_restore_current_thread)
11358 <dont_restore, restore, m_dont_restore>: Declare.
11359 * thread.c (thread_alive): Add assertion. Return bool.
11360 (switch_to_thread_if_alive): New.
11361 (prune_threads): Switch inferior/thread.
11362 (print_thread_info_1): Switch thread before calling target methods.
11363 (scoped_restore_current_thread::restore): New, factored out from
11364 ...
11365 (scoped_restore_current_thread::~scoped_restore_current_thread):
11366 ... this.
11367 (scoped_restore_current_thread::scoped_restore_current_thread):
11368 Add assertion.
11369 (thread_apply_all_command, thread_select): Use
11370 switch_to_thread_if_alive.
11371
11372 2020-01-10 George Barrett <bob@bob131.so>
11373
11374 * stap-probe.c (stap_modify_semaphore): Don't check for null
11375 semaphores.
11376 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11377 for null semaphores.
11378
11379 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11380
11381 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11382 all source windows, and maintain horizontal scroll status while
11383 doing so.
11384
11385 2020-01-09 Tom Tromey <tom@tromey.com>
11386
11387 PR tui/18932:
11388 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11389 update_source_window, not print_source_lines.
11390
11391 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11392
11393 * tui/tui.c (tui_enable): Register tui hooks after calling
11394 tui_display_main.
11395
11396 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11397
11398 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11399
11400 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11401
11402 * thread.c (print_thread_info_1): Fix indentation.
11403
11404 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11405
11406 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11407 unique_xmalloc_ptr outside the if to always free the demangled name.
11408
11409 2020-01-08 Tom Tromey <tromey@adacore.com>
11410
11411 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11412 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11413 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11414 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11415 Remove.
11416 (section_offsets): New typedef.
11417 * symtab.c (fixup_section, get_msymbol_address): Update.
11418 * symmisc.c (dump_msymbols): Update.
11419 * symfile.h (relative_addr_info_to_section_offsets)
11420 (symfile_map_offsets_to_segments): Update.
11421 * symfile.c (build_section_addr_info_from_objfile)
11422 (init_objfile_sect_indices): Update.
11423 (struct place_section_arg): Change type of "offsets".
11424 (place_section): Update.
11425 (relative_addr_info_to_section_offsets): Change type of
11426 "section_offsets". Remove "num_sections" parameter.
11427 (default_symfile_offsets, syms_from_objfile_1)
11428 (set_objfile_default_section_offset): Update.
11429 (reread_symbols): No need to preserve section offsets by hand.
11430 (symfile_map_offsets_to_segments): Change type of "offsets".
11431 * stap-probe.c (relocate_address): Update.
11432 * stabsread.h (process_one_symbol): Update.
11433 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11434 (solib_target_relocate_section_addresses): Update.
11435 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11436 Update.
11437 * solib-frv.c (frv_relocate_main_executable): Update.
11438 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11439 * solib-aix.c (solib_aix_get_section_offsets): Change return
11440 type.
11441 (solib_aix_solib_create_inferior_hook): Update.
11442 * remote.c (remote_target::get_offsets): Update.
11443 * psymtab.c (find_pc_sect_psymtab): Update.
11444 * psympriv.h (struct partial_symbol) <address, text_low,
11445 text_high>: Update.
11446 * objfiles.h (obj_section_offset): Update.
11447 (struct objfile) <section_offsets>: Change type.
11448 <num_sections>: Remove.
11449 (objfile_relocate): Update.
11450 * objfiles.c (entry_point_address_query): Update
11451 (relocate_one_symbol): Change type of "section_offsets".
11452 (objfile_relocate1, objfile_relocate1): Change type of
11453 "new_offsets".
11454 (objfile_rebase1): Update.
11455 * mipsread.c (mipscoff_symfile_read): Update.
11456 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11457 parameter.
11458 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11459 (parse_external, psymtab_to_symtab_1): Update.
11460 * machoread.c (macho_symfile_offsets): Update.
11461 * ia64-tdep.c (ia64_find_unwind_table): Update.
11462 * hppa-tdep.c (read_unwind_info): Update.
11463 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11464 * dwarf2read.c (create_addrmap_from_index)
11465 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11466 (process_psymtab_comp_unit_reader, add_partial_symbol)
11467 (add_partial_subprogram, process_full_comp_unit)
11468 (read_file_scope, read_func_scope, read_lexical_block_scope)
11469 (read_call_site_scope, dwarf2_rnglists_process)
11470 (dwarf2_ranges_process, dwarf2_ranges_read)
11471 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11472 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11473 Update.
11474 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11475 Update.
11476 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11477 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11478 (process_one_symbol): Change type of "section_offsets".
11479 * ctfread.c (get_objfile_text_range): Update.
11480 * coffread.c (coff_symtab_read, enter_linenos)
11481 (process_coff_symbol): Update.
11482 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11483 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11484
11485 2020-01-08 Tom Tromey <tromey@adacore.com>
11486
11487 * dwarf2read.c (parse_macro_definition): Use std::string.
11488 (parse_macro_definition): Likewise.
11489
11490 2020-01-08 Tom Tromey <tromey@adacore.com>
11491
11492 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11493 (ATTR_ALLOC_CHUNK): Remove.
11494
11495 2020-01-08 Tom Tromey <tromey@adacore.com>
11496
11497 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11498
11499 2020-01-08 Tom Tromey <tromey@adacore.com>
11500
11501 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11502 (dwarf2_compute_name, open_dwo_file): Likewise.
11503 (process_enumeration_scope): Use std::vector.
11504 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11505 (partial_die_info::fixup, dwarf2_start_subfile)
11506 (guess_full_die_structure_name, dwarf2_name): Likewise.
11507 (determine_prefix): Update.
11508 (guess_full_die_structure_name): Make return type const.
11509 (partial_die_full_name): Return unique_xmalloc_ptr.
11510 (DW_FIELD_ALLOC_CHUNK): Remove.
11511
11512 2020-01-07 Tom Tromey <tromey@adacore.com>
11513
11514 PR build/24937:
11515 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11516
11517 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11518
11519 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11520
11521 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11522
11523 * stack.c (print_frame_info): Move disassemble_next_line code
11524 inside source_print block.
11525
11526 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11527
11528 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11529 gdb/signals.h, as we are now using native signal symbols.
11530
11531 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11532
11533 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11534 overflow by an early check of content vs threshold.
11535 * tui/tui-source.c (tui_source_window::line_is_displayed):
11536 Likewise.
11537
11538 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11539
11540 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11541
11542 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11543
11544 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11545 export table if no section contains it's RVA.
11546
11547 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11548
11549 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11550
11551 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11552
11553 * source.c (print_source_lines_base): Set last_line_listed.
11554
11555 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11556
11557 * tui/tui-disasm.c: Remove trailing spaces.
11558
11559 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11560 Pedro Alves <palves@redhat.com>
11561
11562 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11563 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11564 (windows_gdb_signal_to_target): New function, uses the above
11565 enumeration to convert GDB internal signal codes to equivalent
11566 Windows codes.
11567 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11568 * windows-nat.c: Include "gdb_wait.h".
11569 (get_windows_debug_event): Extract the fatal exception from the
11570 exit status and convert to the equivalent Posix signal number.
11571 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11572 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11573 * gdbsupport/gdb_wait.c: New file, implements
11574 windows_status_to_termsig.
11575 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11576 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11577
11578 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11579
11580 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11581 show_layout.
11582
11583 2020-01-05 Luis Machado <luis.machado@linaro.org>
11584
11585 * aarch64-linux-nat.c
11586 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11587 and bfd_mach_aarch64.
11588
11589 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11590
11591 * ui-file.c (stdio_file::can_emit_style_escape)
11592 (tee_file::can_emit_style_escape): Ensure style is used also on
11593 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11594 to gdb_stdout.
11595 * main.c (set_gdb_data_directory): Use file style to output the
11596 warning that the given pathname is not a directory.
11597 * top.c (show_history_filename, gdb_safe_append_history)
11598 (show_gdb_datadir): Use file style.
11599
11600 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11601
11602 * solib-target.c (struct lm_info_target):
11603 Change offsets to be a unique_xmalloc_ptr.
11604 (solib_target_relocate_section_addresses): Update.
11605
11606 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11607
11608 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11609
11610 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11611
11612 * MAINTAINERS (Write After Approval): Add myself.
11613
11614 2020-01-02 Luis Machado <luis.machado@linaro.org>
11615
11616 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11617 Cell BE architecture.
11618 * target.h (struct target_ops) <thread_architecture>: Likewise.
11619
11620 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11621
11622 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11623
11624 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11625
11626 * MAINTAINERS (Write After Approval): Add myself.
11627
11628 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11629
11630 * gdbarch.sh: Update copyright year range of generated files.
11631
11632 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11633
11634 Update copyright year range in all GDB files.
11635
11636 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11637
11638 * copyright.py: Convert to Python 3.
11639
11640 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11641
11642 * copyright.py: Adapt after move of gnulib directory from gdb
11643 directory to toplevel directory.
11644
11645 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11646
11647 * copyright.py (main): Exit if run from the wrong directory.
11648
11649 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11650
11651 * top.c (print_gdb_version): Change copyright year to 2020.
11652
11653 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11654
11655 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11656
11657 For older changes see ChangeLog-2019.
11658 \f
11659 Local Variables:
11660 mode: change-log
11661 left-margin: 8
11662 fill-column: 74
11663 version-control: never
11664 coding: utf-8
11665 End:
This page took 0.31609 seconds and 5 git commands to generate.