Fix bug in DW_OP_GNU_variable_value evaluation
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-28 Tom Tromey <tromey@adacore.com>
2
3 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
4 <DW_OP_GNU_variable_value>: Cast to address type.
5
6 2020-07-28 Kamil Rytarowski <n54@gmx.com>
7
8 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
9 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
10 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
11 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
12 (nbsd_get_siginfo_type): New.
13 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
14 (_initialize_nbsd_tdep): New.
15
16 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
17
18 PR binutils/26301
19 * configure: Regenerated.
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 Andrew Burgess <andrew.burgess@embecosm.com>
27
28 * python/py-frame.c: Remove 'user-regs.h' include.
29 (frapy_read_register): Rewrite to make use of
30 gdbpy_parse_register_id.
31 * python/py-registers.c (gdbpy_parse_register_id): New function,
32 moved here from python/py-unwind.c. Updated the return type, and
33 also accepts register descriptor objects.
34 * python/py-unwind.c: Remove 'user-regs.h' include.
35 (pyuw_parse_register_id): Moved to python/py-registers.c.
36 (unwind_infopy_add_saved_register): Update to use
37 gdbpy_parse_register_id.
38 (pending_framepy_read_register): Likewise.
39 * python/python-internal.h (gdbpy_parse_register_id): Declare.
40
41 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
42
43 * python/py-registers.c: Add 'user-regs.h' include.
44 (register_descriptor_iter_find): New function.
45 (register_descriptor_iterator_object_methods): New static global
46 methods array.
47 (register_descriptor_iterator_object_type): Add pointer to methods
48 array.
49
50 2020-07-27 John Baldwin <jhb@FreeBSD.org>
51
52 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
53 for all architectures on FreeBSD 11.3 and later.
54
55 2020-07-27 Tom Tromey <tromey@adacore.com>
56
57 * gcore.h (load_corefile): Don't declare.
58
59 2020-07-27 Tom de Vries <tdevries@suse.de>
60
61 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
62 * config.in: Regenerate.
63 * configure: Regenerate.
64
65 2020-07-26 Eli Zaretskii <eliz@gnu.org>
66
67 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
68 ws2tcpip.h. When checking whether socklen_t type is defined, use
69 ws2tcpip.h if it is available and sys/socket.h isn't.
70 * configure: Regenerate.
71 * config.in: Regenerate.
72
73 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
74
75 PR fortran/23051
76 PR fortran/26139
77 * valops.c (value_ind): Pass address to
78 readjust_indirect_value_type.
79 * value.c (readjust_indirect_value_type): Make parameter
80 non-const, and add extra address parameter. Resolve original type
81 before using it.
82 * value.h (readjust_indirect_value_type): Update function
83 signature and comment.
84
85 2020-07-25 Tom de Vries <tdevries@suse.de>
86
87 PR symtab/26243
88 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
89 entries.
90
91 2020-07-24 Aaron Merey <amerey@redhat.com>
92
93 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
94 * configure: Rebuild.
95
96 2020-07-23 Kevin Buettner <kevinb@redhat.com>
97
98 PR corefiles/26294
99 * corelow.c (_initialize_corelow): Add period to help text
100 for "maintenance print core-file-backed-mappings".
101
102 2020-07-23 Pedro Alves <pedro@palves.net>
103
104 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
105 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
106 meanwhile.
107 * frame.c (frame_cache_generation, get_frame_cache_generation):
108 New.
109 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
110 (get_prev_frame_if_no_cycle): On exception, don't touch
111 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
112 * frame.h (get_frame_cache_generation): Declare.
113
114 2020-07-23 Tom de Vries <tdevries@suse.de>
115
116 PR tui/26282
117 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
118 New default constructor.
119
120 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
121
122 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
123 exclude non-statement entries.
124
125 2020-07-22 Kevin Buettner <kevinb@redhat.com>
126
127 * NEWS (New commands): Mention new command
128 "maintenance print core-file-backed-mappings".
129
130 2020-07-22 Kevin Buettner <kevinb@redhat.com>
131
132 * corelow.c (gdbcmd.h): Include.
133 (core_target::info_proc_mappings): New method.
134 (get_current_core_target): New function.
135 (maintenance_print_core_file_backed_mappings): New function.
136 (_initialize_corelow): Add core-file-backed-mappings to
137 "maint print" commands.
138
139 2020-07-22 Kevin Buettner <kevinb@redhat.com>
140
141 * linux-tdep.c (dump_note_entry_p): New function.
142 (linux_dump_mapping_p_ftype): New typedef.
143 (linux_find_memory_regions_full): Add new parameter,
144 should_dump_mapping_p.
145 (linux_find_memory_regions): Adjust call to
146 linux_find_memory_regions_full.
147 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
148 call to linux_find_memory_regions_full.
149
150 2020-07-22 Kevin Buettner <kevinb@redhat.com>
151
152 * corelow.c (solist.h, unordered_map): Include.
153 (class core_target): Add field m_core_file_mappings and
154 method build_file_mappings.
155 (core_target::core_target): Call build_file_mappings.
156 (core_target::~core_target): Free memory associated with
157 m_core_file_mappings.
158 (core_target::build_file_mappings): New method.
159 (core_target::xfer_partial): Use m_core_file_mappings
160 for memory transfers.
161 * linux-tdep.c (linux_read_core_file_mappings): New
162 function.
163 (linux_core_info_proc_mappings): Rewrite to use
164 linux_read_core_file_mappings.
165 (linux_init_abi): Register linux_read_core_file_mappings.
166
167 2020-07-22 Kevin Buettner <kevinb@redhat.com>
168
169 * arch-utils.c (default_read_core_file_mappings): New function.
170 * arch-utils.c (default_read_core_file_mappings): Declare.
171 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
172 * gdbarch.h, gdbarch.c: Regenerate.
173
174 2020-07-22 Kevin Buettner <kevinb@redhat.com>
175
176 PR corefiles/25631
177 * corelow.c (core_target:xfer_partial): Revise
178 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
179 case after first checking the stratum beneath the core
180 target.
181 (has_all_memory): Return true.
182 * target.c (raw_memory_xfer_partial): Revise comment
183 regarding use of has_all_memory.
184
185 2020-07-22 Kevin Buettner <kevinb@redhat.com>
186
187 * exec.h (section_table_xfer_memory): Revise declaration,
188 replacing section name parameter with an optional callback
189 predicate.
190 * exec.c (section_table_xfer_memory): Likewise.
191 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
192 of section_table_xfer_memory.
193
194 2020-07-22 Tom Tromey <tromey@adacore.com>
195
196 * mi/mi-cmd-stack.c (list_args_or_locals): Use
197 lookup_symbol_search_name.
198
199 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
200
201 * python/py-registers.c (gdbpy_register_object_data_init): Remove
202 redundant local variable.
203 (gdbpy_get_register_descriptor): Extract descriptor vector as a
204 reference, not pointer, update code accordingly.
205
206 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
207 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
208
209 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
210 * jit.c (jit_breakpoint_re_set_internal): Use the
211 `skip_jit_symbol_lookup` field.
212
213 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
214 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
215
216 * jit.c (jit_read_descriptor): Define the descriptor address once,
217 use twice.
218 (jit_breakpoint_deleted): Move the declaration of the loop variable
219 `iter` into the loop header.
220 (jit_breakpoint_re_set_internal): Move the declaration of the local
221 variable `objf_data` to the first point of definition.
222 (jit_event_handler): Move the declaration of local variables
223 `code_entry`, `entry_addr`, and `objf` to their first point of use.
224 Rename `objf` to `jited`.
225
226 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
227
228 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
229 Remove.
230 * jit.c (get_jiter_objfile_data): Update.
231
232 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
233 Simon Marchi <simon.marchi@polymtl.ca>
234
235 * jit.c (struct jit_program_space_data): Remove.
236 (jit_program_space_key): Remove.
237 (jiter_objfile_data::~jiter_objfile_data): Remove program space
238 stuff.
239 (get_jit_program_space_data): Remove.
240 (jit_breakpoint_deleted): Iterate on all of the program space's
241 objfiles.
242 (jit_inferior_init): Likewise.
243 (jit_breakpoint_re_set_internal): Likewise. Also change return
244 type to void.
245 (jit_breakpoint_re_set): Pass current_program_space to
246 jit_breakpoint_re_set_internal.
247
248 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * jit.h (struct jiter_objfile_data) <cached_code_address,
251 jit_breakpoint>: Move to here from ...
252 * jit.c (jit_program_space_data): ... here.
253 (jiter_objfile_data::~jiter_objfile_data): Update.
254 (jit_breakpoint_deleted): Update.
255 (jit_breakpoint_re_set_internal): Update.
256
257 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
258
259 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
260 checks.
261 (jit_read_descriptor): Remove NULL check.
262 (jit_event_handler): Add an assertion.
263
264 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
265
266 * jit.h (struct jit_objfile_data): Split into...
267 (struct jiter_objfile_data): ... this ...
268 (struct jited_objfile_data): ... and this.
269 * objfiles.h (struct objfile) <jit_data>: Remove.
270 <jiter_data, jited_data>: New fields.
271 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
272 (jiter_objfile_data::~jiter_objfile_data): ... this.
273 (get_jit_objfile_data): Rename to ...
274 (get_jiter_objfile_data): ... this.
275 (add_objfile_entry): Update.
276 (jit_read_descriptor): Use get_jiter_objfile_data.
277 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
278 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
279 (jit_inferior_exit_hook): Use objfile's jited_data field.
280
281 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
282
283 * jit.h: Forward-declare `struct minimal_symbol`.
284 (struct jit_objfile_data): Migrate to here from jit.c; also add a
285 constructor, destructor, and an objfile* field.
286 * jit.c (jit_objfile_data): Remove.
287 (struct jit_objfile_data): Migrate from here to jit.h.
288 (jit_objfile_data::~jit_objfile_data): New destructor
289 implementation with code moved from free_objfile_data.
290 (free_objfile_data): Delete.
291 (get_jit_objfile_data): Update to use the jit_data field of objfile.
292 (jit_find_objf_with_entry_addr): Ditto.
293 (jit_inferior_exit_hook): Ditto.
294 (_initialize_jit): Remove the call to
295 register_objfile_data_with_cleanup.
296 * objfiles.h (struct objfile) <jit_data>: New field.
297
298 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
299
300 * jit.h: Forward-declare `struct objfile`.
301 (jit_event_handler): Add a second parameter, the JITer objfile.
302 * jit.c (jit_read_descriptor): Change the signature to take the
303 JITer objfile as an argument instead of the jit_program_space_data.
304 (jit_inferior_init): Update the call to jit_read_descriptor.
305 (jit_event_handler): Use the new JITer objfile argument when calling
306 jit_read_descriptor.
307 * breakpoint.c (handle_jit_event): Update the call to
308 jit_event_handler to pass the JITer objfile.
309
310 2020-07-21 John Baldwin <jhb@FreeBSD.org>
311
312 * gdbarch.c: Regenerate.
313 * gdbarch.h: Regenerate.
314 * gdbarch.sh (handle_segmentation_fault): Remove method.
315 * infrun.c (handle_segmentation_fault): Remove.
316 (print_signal_received_reason): Remove call to
317 handle_segmentation_fault.
318
319 2020-07-21 John Baldwin <jhb@FreeBSD.org>
320
321 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
322 Rename to sparc64_linux_report_signal_info and add siggnal
323 argument.
324 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
325 instead of sparc64_linux_handle_segmentation_fault.
326
327 2020-07-21 John Baldwin <jhb@FreeBSD.org>
328
329 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
330 i386_linux_report_signal_info instead of
331 i386_linux_handle_segmentation_fault.
332 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
333 to i386_linux_report_signal_info and add siggnal argument.
334 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
335 of i386_linux_handle_segmentation_fault.
336 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
337 to i386_linux_report_signal_info and add siggnal argument.
338
339 2020-07-21 John Baldwin <jhb@FreeBSD.org>
340
341 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
342 hook if present.
343
344 2020-07-21 John Baldwin <jhb@FreeBSD.org>
345
346 * gdbarch.c: Regenerate.
347 * gdbarch.h: Regenerate.
348 * gdbarch.sh (report_signal_info): New method.
349 * infrun.c (print_signal_received_reason): Invoke gdbarch
350 report_signal_info hook if present.
351
352 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
353
354 * python/py-registers.c : Add 'unordered_map' include.
355 (gdbpy_new_reggroup): Renamed to...
356 (gdbpy_get_reggroup): ...this. Update to only create register
357 group descriptors when needed.
358 (gdbpy_reggroup_iter_next): Update.
359
360 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
361
362 * python/py-registers.c (gdbpy_register_object_data): New static
363 global.
364 (gdbpy_register_object_data_init): New function.
365 (gdbpy_new_register_descriptor): Renamed to...
366 (gdbpy_get_register_descriptor): ...this, and update to reuse
367 existing register descriptors where possible.
368 (gdbpy_register_descriptor_iter_next): Update.
369 (gdbpy_initialize_registers): Register new gdbarch data.
370
371 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
372
373 * linux-nat.c (stopped_pids): Make static.
374
375 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
376
377 PR ada/26235
378 * gdbtypes.c (ada_discrete_type_low_bound,
379 ada_discrete_type_high_bound): Handle undefined bounds.
380
381 2020-07-21 Kamil Rytarowski <n54@gmx.com>
382
383 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
384 declaration.
385 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
386 function.
387
388 2020-07-20 John Baldwin <jhb@FreeBSD.org>
389
390 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
391 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
392 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
393 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
394 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
395 method.
396
397 2020-07-20 Ludovic Courtès <ludo@gnu.org>
398
399 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
400 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
401 which are deprecated in Guile 3.0.
402 * configure.ac (try_guile_versions): Add "guile-3.0".
403 * configure (try_guile_versions): Regenerate.
404 * NEWS: Update entry.
405
406 2020-07-20 Ludovic Courtès <ludo@gnu.org>
407 Doug Evans <dje@google.com>
408
409 PR gdb/21104
410 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
411 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
412 USING_GUILE_BEFORE_2_2.
413 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
414 Change type to 'scm_t_port_type *'.
415 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
416 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
417 parameter and honor it. Update callers.
418 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
419 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
420 functions.
421 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
422 USING_GUILE_BEFORE_2_2.
423 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
424 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
425 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
426 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
427 and 'SCM_PORT_TYPE'.
428 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
429 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
430 (gdbscm_memory_port_read, gdbscm_memory_port_write)
431 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
432 [!USING_GUILE_BEFORE_2_2]: New functions.
433 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
434 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
435 'gdbscm_memory_port_read'.
436 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
437 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
438 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
439 function.
440 (ioscm_init_memory_port): Remove.
441 (ioscm_init_memory_port_stream): New function
442 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
443 function.
444 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
445 Return scm_from_uint (0).
446 (gdbscm_set_memory_port_read_buffer_size_x)
447 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
448 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
449 Return scm_from_uint (0).
450 (gdbscm_set_memory_port_write_buffer_size_x)
451 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
452 * configure.ac (try_guile_versions): Add "guile-2.2".
453 * configure: Regenerate.
454 * NEWS: Add entry.
455
456 2020-07-18 Tom Tromey <tom@tromey.com>
457
458 * linux-nat.c (linux_multi_process): Remove.
459 (linux_nat_target::supports_multi_process): Return true.
460
461 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
462
463 * arch/riscv.c (riscv_tdesc_cache): Change map type.
464 (riscv_lookup_target_description): Return pointer out of
465 unique_ptr.
466 * target-descriptions.c (allocate_target_description): Add
467 comment.
468 (target_desc_deleter::operator()): Likewise.
469 * target-descriptions.h (struct target_desc_deleter): Moved to
470 gdbsupport/tdesc.h.
471 (target_desc_up): Likewise.
472
473 2020-07-17 Tom Tromey <tromey@adacore.com>
474
475 * linux-nat.c (linux_nat_target::supports_non_stop)
476 (linux_nat_target::always_non_stop_p): Use "true".
477 (linux_nat_target::supports_disable_randomization): Use "true" and
478 "false".
479
480 2020-07-16 Caroline Tice <cmtice@google.com>
481
482 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
483 (RNGLIST_HEADER_SIZE64): New constant definition.
484 (struct dwop_section_names): Add rnglists_dwo.
485 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
486 (struct loclist_header): Rename to 'loclists_rnglists_header'.
487 (struct dwo_sections): Add rnglists field.
488 (read_attribut_reprocess): Add tag parameter.
489 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
490 (cu_debug_rnglists_section): New function (decl & definition).
491 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
492 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
493 die whose range is being checked; get rnglist section from
494 cu_debug_rnglists_section, to get from either objfile or dwo file as
495 appropriate. Add cases for DW_RLE_base_addressx,
496 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
497 the base address to DW_RLE_offset_pairs (not to all ranges), moving
498 test inside if-condition and updating complaint message.
499 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
500 dwarf2_rnglists_process.
501 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
502 dwarf2_ranges_process.
503 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
504 need_ranges_base and update comment appropriately. Also pass die tag
505 to dwarf2_ranges_read.
506 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
507 need_ranges_base and update comment appropriately. Also pass die tag
508 to dwarf2_ranges_process.
509 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
510 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
511 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
512 need_ranges_base and update comment appropriately. Also pass die tag
513 to read_attribute_reprocess and dwarf2_ranges_read.
514 (read_loclist_header): Rename function to read_loclists_rnglists_header,
515 and update function comment appropriately.
516 (read_loclist_index): Call read_loclists_rnglists_header instead of
517 read_loclist_header.
518 (read_rnglist_index): New function.
519 (read_attribute_reprocess): Add tag parameter. Add code for
520 DW_FORM_rnglistx, passing tag to read_rnglist_index.
521 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
522
523 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
526 being resolved.
527
528 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * arch-utils.c (show_architecture): Update formatting of messages.
531
532 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
533
534 * gdbtypes.h (struct type) <bounds>: Handle array and string
535 types.
536 * ada-lang.c (assign_aggregate): Use type::bounds on
537 array/string type.
538 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
539 * c-varobj.c (c_number_of_children): Likewise.
540 (c_describe_child): Likewise.
541 * eval.c (evaluate_subexp_for_sizeof): Likewise.
542 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
543 (f_type_print_base): Likewise.
544 * f-valprint.c (f77_array_offset_tbl): Likewise.
545 (f77_get_upperbound): Likewise.
546 (f77_print_array_1): Likewise.
547 * guile/scm-type.c (gdbscm_type_range): Likewise.
548 * m2-typeprint.c (m2_array): Likewise.
549 (m2_is_long_set_of_type): Likewise.
550 * m2-valprint.c (get_long_set_bounds): Likewise.
551 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
552 * python/py-type.c (typy_range): Likewise.
553 * rust-lang.c (rust_internal_print_type): Likewise.
554 * type-stack.c (type_stack::follow_types): Likewise.
555 * valarith.c (value_subscripted_rvalue): Likewise.
556 * valops.c (value_cast): Likewise.
557
558 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
559
560 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
561 callers to use the equivalent accessor methods.
562
563 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
564
565 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
566 (struct type) <bit_stride>: New method.
567 (TYPE_BIT_STRIDE): Remove.
568 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
569
570 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
571
572 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
573 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
574 callers to use the equivalent accessor methods instead.
575
576 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
577
578 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
579 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
580 callers to use the equivalent accessor methods instead.
581
582 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
583
584 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
585 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
586 to use dynamic_prop::kind.
587
588 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
589
590 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
591 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
592 to get the bound property's kind and check against
593 PROP_UNDEFINED.
594
595 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
596
597 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
598 all callers to use type::range_bounds followed by
599 dynamic_prop::{low,high}.
600
601 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
602
603 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
604 const_val, set_const_val, baton, set_locexpr, set_loclist,
605 set_addr_offset, variant_parts, set_variant_parts,
606 original_type, set_original_type>: New methods.
607 <kind>: Rename to...
608 <m_kind>: ... this. Update all users to use the new methods
609 instead.
610 <data>: Rename to...
611 <m_data>: ... this. Update all users to use the new methods
612 instead.
613
614 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
615
616 * gdbtypes.c (get_discrete_bounds): Return failure if
617 the range type's bounds are not both defined and constant
618 values.
619 (get_array_bounds): Update comment. Remove undefined bound check.
620
621 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
622
623 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
624 the type::bounds method directly.
625
626 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
627
628 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
629 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
630 are used to set the range type's bounds to use set_bounds.
631
632 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
633
634 * exec.c (_initialize_exec): Update exec-file-mismatch help.
635
636 2020-07-10 Pedro Alves <pedro@palves.net>
637
638 * gdbthread.h (inferior_ref): Define.
639 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
640 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
641 * thread.c
642 (scoped_restore_current_thread::restore):
643 Adjust to gdb::ref_ptr.
644 (scoped_restore_current_thread::~scoped_restore_current_thread):
645 Remove manual decref handling.
646 (scoped_restore_current_thread::scoped_restore_current_thread):
647 Adjust to use
648 inferior_ref::new_reference/thread_info_ref::new_reference.
649 Incref the thread before calling get_frame_id instead of after.
650 Let TARGET_CLOSE_ERROR propagate.
651
652 2020-07-10 Pedro Alves <pedro@palves.net>
653
654 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
655 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
656 NOT_AVAILABLE_ERROR.
657 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
658 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
659
660 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
661 Pedro Alves <pedro@palves.net>
662
663 PR gdb/26199
664 * infrun.c (threads_are_resumed_pending_p): Delete.
665 (do_target_wait): Remove threads_are_executing and
666 threads_are_resumed_pending_p checks from the inferior_matches
667 lambda. Update comments.
668
669 2020-07-10 Pedro Alves <pedro@palves.net>
670
671 PR gdb/26199
672 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
673 executing threads.
674
675 2020-07-10 Pedro Alves <pedro@palves.net>
676
677 PR gdb/26199
678 * infrun.c (handle_no_resumed): Handle multiple targets.
679
680 2020-07-10 Pedro Alves <pedro@palves.net>
681
682 PR gdb/26199
683 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
684 target_is_async_p.
685
686 2020-07-10 Pedro Alves <pedro@palves.net>
687
688 PR gdb/26199
689 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
690 threads, not all threads.
691
692 2020-07-10 Pedro Alves <pedro@palves.net>
693
694 PR gdb/26199
695 * remote.c (remote_target::open_1): Pass remote target pointer as
696 data to create_async_event_handler.
697 (remote_async_inferior_event_handler): Mark async event handler
698 before returning if the remote target still has either pending
699 events or unacknowledged notifications.
700
701 2020-07-10 John Baldwin <jhb@FreeBSD.org>
702
703 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
704 declaration.
705 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
706 function.
707
708 2020-07-09 John Baldwin <jhb@FreeBSD.org>
709
710 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
711 inferior_ptid.
712
713 2020-07-09 John Baldwin <jhb@FreeBSD.org>
714
715 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
716 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
717 AT_FREEBSD_PS_STRINGS.
718
719 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
720
721 * auto-load.c (auto_load_objfile_script_1): Convert drive part
722 of debugfile path on Windows.
723
724 2020-07-08 John Baldwin <jhb@FreeBSD.org>
725
726 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
727 argument to 'data'.
728
729 2020-07-08 Tom Tromey <tromey@adacore.com>
730
731 * ada-lang.c (ada_exception_message_1): Use read_memory.
732
733 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
734
735 PR python/22748
736 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
737 special handling for inline frames.
738 * findvar.c (value_of_register_lazy): Skip inline frames when
739 creating lazy register values.
740 * frame.c (frame_id_computed_p): Delete definition.
741 * frame.h (frame_id_computed_p): Delete declaration.
742
743 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
744
745 * NEWS: Mention additions to Python API.
746 * python/py-arch.c (archpy_register_groups): New function.
747 (arch_object_methods): Add 'register_groups' method.
748 * python/py-registers.c (reggroup_iterator_object): New struct.
749 (reggroup_object): New struct.
750 (gdbpy_new_reggroup): New function.
751 (gdbpy_reggroup_to_string): New function.
752 (gdbpy_reggroup_name): New function.
753 (gdbpy_reggroup_iter): New function.
754 (gdbpy_reggroup_iter_next): New function.
755 (gdbpy_new_reggroup_iterator): New function
756 (gdbpy_initialize_registers): Register new types.
757 (reggroup_iterator_object_type): Define new Python type.
758 (gdbpy_reggroup_getset): New static global.
759 (reggroup_object_type): Define new Python type.
760 * python/python-internal.h
761
762 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
763
764 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
765 * python/py-arch.c (archpy_registers): New function.
766 (arch_object_methods): Add 'registers' method.
767 * python/py-registers.c: New file.
768 * python/python-internal.h
769 (gdbpy_new_register_descriptor_iterator): Declare.
770 (gdbpy_initialize_registers): Declare.
771 * python/python.c (do_start_initialization): Call
772 gdbpy_initialize_registers.
773 * NEWS: Mention additions to the Python API.
774
775 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
776
777 * NEWS: Mention new Python API method.
778 * python/py-unwind.c (pending_framepy_architecture): New function.
779 (pending_frame_object_methods): Add architecture method.
780
781 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * gdbarch.c: Regenerate.
784 * gdbarch.h: Regenerate.
785 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
786 (gdbarch_data): Use internal_error for the case where
787 deprecated_set_gdbarch_data was originally needed.
788 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
789 and use passed in obstack.
790 (libunwind_frame_set_descr): Should no longer get back NULL from
791 gdbarch_data.
792 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
793 type.
794 * user-regs.c (user_regs_init): Update parameters, and use passed
795 in obstack.
796 (user_reg_add): Should no longer get back NULL from gdbarch_data.
797 (_initialize_user_regs): Register as a pre-init gdbarch data type.
798
799 2020-07-06 Tom de Vries <tdevries@suse.de>
800
801 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
802 End-Of-Sequence in lte_is_less_than.
803 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
804 "gdb: Don't reorder line table entries too much when sorting".
805
806 2020-07-06 Tom de Vries <tdevries@suse.de>
807
808 PR tui/26205
809 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
810
811 2020-07-05 Tom de Vries <tdevries@suse.de>
812
813 PR build/26187
814 * inferior.h (struct infcall_suspend_state_deleter): If available, use
815 std::uncaught_exceptions instead of deprecated
816 std::uncaught_exception.
817
818 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
819
820 * macroexp.h (macro_stringify): Return
821 gdb::unique_xmalloc_ptr<char>.
822 * macroexp.c (macro_stringify): Likewise.
823 * macrotab.c (fixup_definition): Update.
824
825 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
826
827 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
828 (lex_one_token): Update.
829 * macroexp.c (struct macro_buffer) <release>: Return
830 gdb::unique_xmalloc_ptr<char>.
831 (macro_stringify): Update.
832 (macro_expand): Update.
833 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
834 * macroexp.h (macro_expand_next): Likewise.
835
836 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
837
838 * macroexp.h (macro_lookup_ftype): Remove.
839 (macro_expand, macro_expand_once, macro_expand_next): Remove
840 lookup function parameters, add scope parameter.
841 * macroexp.c (scan, substitute_args, expand, maybe_expand,
842 macro_expand, macro_expand_once, macro_expand_next): Likewise.
843 * macroscope.h (standard_macro_lookup): Change parameter type
844 to macro_scope.
845 * macroscope.c (standard_macro_lookup): Likewise.
846 * c-exp.y (lex_one_token): Update.
847 * macrocmd.c (macro_expand_command): Likewise.
848 (macro_expand_once_command): Likewise.
849
850 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
851
852 * inf-loop.c (inferior_event_handler): Remove client_data param.
853 * inf-loop.h (inferior_event_handler): Likewise.
854 * infcmd.c (step_1): Adjust.
855 * infrun.c (proceed): Adjust.
856 (fetch_inferior_event): Remove client_data param.
857 (infrun_async_inferior_event_handler): Adjust.
858 * infrun.h (fetch_inferior_event): Remove `void *` param.
859 * linux-nat.c (handle_target_event): Adjust.
860 * record-btrace.c (record_btrace_handle_async_inferior_event):
861 Adjust.
862 * record-full.c (record_full_async_inferior_event_handler):
863 Adjust.
864 * remote.c (remote_async_inferior_event_handler): Adjust.
865
866 2020-07-01 Tom Tromey <tom@tromey.com>
867
868 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
869 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
870
871 2020-07-01 Tom Tromey <tom@tromey.com>
872
873 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
874 tui_gen_win_info.
875 (tui_win_info::make_window): Merge with
876 tui_gen_win_info::make_window.
877 (tui_win_info::make_visible): Move from tui_gen_win_info.
878 * tui/tui-win.c (tui_win_info::max_width): Move from
879 tui_gen_win_info.
880 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
881 type.
882 <window_factory>: Likewise.
883 * tui/tui-layout.c (tui_win_info::resize): Move from
884 tui_gen_win_info.
885 (make_standard_window): Change return type.
886 (get_locator_window, tui_get_window_by_name): Likewise.
887 (tui_layout_window::apply): Remove a cast.
888 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
889 (struct tui_win_info): Merge with tui_gen_win_info.
890 (struct tui_gen_win_info): Remove.
891
892 2020-07-01 Tom Tromey <tom@tromey.com>
893
894 * tui/tui-stack.h (struct tui_locator_window): Derive from
895 tui_win_info.
896 <do_scroll_horizontal, do_scroll_vertical>: New methods.
897 <can_box>: New method.
898
899 2020-07-01 Tom Tromey <tom@tromey.com>
900
901 * tui/tui-stack.h (struct tui_locator_window): Remove body.
902
903 2020-07-01 Tom Tromey <tom@tromey.com>
904
905 * tui/tui-regs.c (tui_data_window::display_registers_from)
906 (tui_data_window::display_registers_from)
907 (tui_data_window::first_data_item_displayed)
908 (tui_data_window::delete_data_content_windows): Update.
909 (tui_data_window::refresh_window, tui_data_window::no_refresh):
910 Remove.
911 (tui_data_window::check_register_values): Update.
912 (tui_data_item_window::rerender): Add parameters. Update.
913 (tui_data_item_window::refresh_window): Remove.
914 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
915 virtual.
916 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
917 tui_gen_win_info.
918 <refresh_window, max_height, min_height>: Remove.
919 <rerender>: Add parameters.
920 <x, y, visible>: New members.
921 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
922 <m_item_width>: New member.
923
924 2020-07-01 Tom Tromey <tom@tromey.com>
925
926 * tui/tui-regs.c (tui_data_window::show_register_group)
927 (tui_data_window::check_register_values): Update.
928 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
929 from item_no.
930
931 2020-07-01 Tom Tromey <tom@tromey.com>
932
933 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
934 useless "if".
935
936 2020-07-01 Tom Tromey <tom@tromey.com>
937
938 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
939 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
940
941 2020-07-01 Tom Tromey <tom@tromey.com>
942
943 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
944 * tui/tui-winsource.h (enum tui_line_or_address_kind)
945 (struct tui_line_or_address): Move from tui-data.h.
946 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
947 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
948 (tui_cmd_window, tui_source_window_base, tui_source_window)
949 (tui_disasm_window): Don't declare.
950 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
951 to tui-winsource.h.
952 (SINGLE_KEY): Move to tui-stack.c.
953
954 2020-07-01 Tom Tromey <tom@tromey.com>
955
956 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
957 std::string.
958 * tui/tui-regs.c (class tab_expansion_file): New.
959 (tab_expansion_file::write): New method.
960 (tui_register_format): Change return type. Use
961 tab_expansion_file.
962 (tui_get_register, tui_data_window::display_registers_from)
963 (tui_data_item_window::rerender): Update.
964 * tui/tui-io.h (tui_expand_tabs): Don't declare.
965 * tui/tui-io.c (tui_expand_tabs): Remove.
966
967 2020-07-01 Tom Tromey <tom@tromey.com>
968
969 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
970
971 2020-07-01 Fangrui Song <maskray@google.com>
972
973 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
974
975 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
976
977 * dwarf2/read.c (set_die_type): Removed conditions to restrict
978 forms for DW_AT_associated and DW_AT_allocated attributes,
979 which is already checked in function attr_to_dynamic_prop.
980
981 2020-06-30 Tom Tromey <tromey@adacore.com>
982
983 * dwarf2/read.c (quirk_rust_enum): Correctly call
984 alloc_rust_variant for default-less enum.
985
986 2020-06-30 Tom Tromey <tromey@adacore.com>
987
988 PR build/26183:
989 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
990 gdb::to_string.
991
992 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
993
994 * gdbarch.sh (displaced_step_copy_insn): Update doc.
995 * gdbarch.h: Re-generate.
996
997 2020-06-28 Tom Tromey <tom@tromey.com>
998
999 * command.h (cmd_types): Remove.
1000 (cmd_type): Don't declare.
1001 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1002 typedef.
1003 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1004 * cli/cli-decode.c (cmd_type): Remove.
1005
1006 2020-06-27 Pedro Alves <palves@redhat.com>
1007
1008 * fork-child.c (prefork_hook): Adjust.
1009 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1010 Delete.
1011 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1012 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1013 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1014 Remove declarations.
1015 (struct inferior) <set_tty, tty>: New methods.
1016 (struct inferior) <terminal>: Rename to ...
1017 (struct inferior) <m_terminal>: ... this and make private.
1018 * main.c (captured_main_1): Adjust.
1019 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1020 (mi_cmd_inferior_tty_show): Adjust.
1021 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1022 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1023
1024 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1025
1026 * configure.ac: Add --enable-libctf: handle --disable-static
1027 properly.
1028 * acinclude.m4: sinclude ../config/enable.m4.
1029 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1030 (LIBCTF): Substitute in.
1031 (CTF_DEPS): New, likewise.
1032 (CLIBS): libctf needs symbols from libbfd: move earlier.
1033 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1034 flags.
1035 * ctfread.c: Surround in ENABLE_LIBCTF.
1036 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1037 * configure: Regenerate.
1038 * config.in: Likewise.
1039
1040 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1041
1042 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1043
1044 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1045
1046 * inferior.h (struct inferior) <terminal>: Change type to
1047 gdb::unique_xmalloc_ptr<char>.
1048 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1049 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1050 field, adjust to unique pointer.
1051 (get_inferior_io_terminal): Adjust to unique pointer.
1052
1053 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1056 registers, not just the known core set of registers.
1057
1058 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1059
1060 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1061 fflags, frm, and fcsr registers.
1062 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1063 restore groups.
1064 (riscv_tdesc_unknown_reg): New function.
1065 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1066 tdesc_use_registers.
1067 * riscv-tdep.h (struct gdbarch_tdep): Add
1068 unknown_csrs_first_regnum, unknown_csrs_count,
1069 duplicate_fflags_regnum, duplicate_frm_regnum, and
1070 duplicate_fcsr_regnum fields.
1071
1072 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1075 callback, use the callback (when not null) to help number unknown
1076 registers.
1077 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1078 (tdesc_use_registers): Add extra parameter to declaration.
1079
1080 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1081
1082 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1083 in the file.
1084 (class riscv_pending_register_alias): Likewise.
1085 (riscv_register_feature::register_info): Change 'required_p' field
1086 to 'required', and change its type. Add 'check' member function.
1087 (riscv_register_feature::register_info::check): Define new member
1088 function.
1089 (riscv_xreg_feature): Change initialisation of 'required' field.
1090 (riscv_freg_feature): Likewise.
1091 (riscv_virtual_feature): Likewise.
1092 (riscv_csr_feature): Likewise.
1093 (riscv_check_tdesc_feature): Take extra parameter, the csr
1094 tdesc_feature, rewrite the function to use the new
1095 riscv_register_feature::register_info::check function.
1096 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1097
1098 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * features/Makefile: Remove all references to the deleted files
1101 below.
1102 * features/riscv/32bit-csr.c: Deleted.
1103 * features/riscv/32bit-csr.xml: Deleted.
1104 * features/riscv/64bit-csr.c: Deleted.
1105 * features/riscv/64bit-csr.xml: Deleted.
1106 * features/riscv/rebuild-csr-xml.sh: Deleted.
1107
1108 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1109
1110 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1111 whitespace error for declaration of names member variable.
1112 (struct riscv_register_feature): Add new prefer_first_name member
1113 variable, and fix whitespace error in declaration of registers.
1114 (riscv_xreg_feature): Initialize prefer_first_name field.
1115 (riscv_freg_feature): Likewise.
1116 (riscv_virtual_feature): Likewise.
1117 (riscv_csr_feature): Likewise.
1118 (riscv_register_name): Expand on comments. Remove register name
1119 modifications for CSR and virtual registers.
1120
1121 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1122
1123 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1124 errors.
1125
1126 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1127
1128 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1129 riscv-opc.h.
1130 (class riscv_pending_register_alias): New class.
1131 (riscv_check_tdesc_feature): Take vector of pending aliases and
1132 populate it as appropriate.
1133 (riscv_setup_register_aliases): Delete.
1134 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1135 to riscv_check_tdesc_feature in all cases. Use the vector to
1136 create the register aliases.
1137
1138 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1139
1140 * sol2-tdep.c (sol2_static_transform_name): Remove.
1141 (sol2_init_abi): Don't register it.
1142 * gdbarch.sh (static_transform_name): Remove.
1143 * gdbarch.c, gdbarch.h: Regenerate.
1144
1145 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1146 gdbarch_static_transform_name.
1147 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1148 * stabsread.c (define_symbol) <'X'>: Remove.
1149 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1150 handling.
1151 <'V'>: Likewise.
1152 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1153 <'S'>: Remove call to gdbarch_static_transform_name.
1154
1155 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1156
1157 * procfs.c (procfs_pre_trace): New function.
1158 (procfs_target::create_inferior): Pass it to fork_inferior.
1159
1160 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1161
1162 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1163 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1164 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1165 sol2-tdep.o, sparc-sol2-tdep.o.
1166 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1167 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1168 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1169 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1170
1171 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1172
1173 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1174 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1175 Call sol2_init_abi.
1176 Remove calls to set_gdbarch_skip_solib_resolver,
1177 set_gdbarch_core_pid_to_str.
1178 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1179 (i386_sol2_static_transform_name): Remove.
1180 (i386_sol2_init_abi): Call sol2_init_abi.
1181 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1182 set_gdbarch_static_transform_name,
1183 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1184 Use sol2_sigtramp_p.
1185 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1186 (sol2_sigtramp_p): New function.
1187 (sol2_static_transform_name): New function.
1188 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1189 (sol2_init_abi): New function.
1190 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1191 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1192 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1193 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1194 (sparc_sol2_static_transform_name): Remove.
1195 (sparc32_sol2_init_abi): Call sol2_init_abi.
1196 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1197 set_gdbarch_static_transform_name,
1198 set_gdbarch_skip_solib_resolver,
1199 set_gdbarch_core_pid_to_str.
1200 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1201 (sparc_sol2_static_transform_name): Remove
1202 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1203 call sol2_sigtramp_p.
1204 (sparc64_sol2_init_abi): Call sol2_init_abi.
1205 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1206 set_gdbarch_static_transform_name,
1207 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1208
1209 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1210
1211 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1212 * exec.c (validate_exec_file): If from_tty, set both
1213 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1214 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1215 and from_tty, unconditionally ask a confirmation.
1216
1217 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1218
1219 * target-descriptions.c (tdesc_architecture_name): Protect against
1220 NULL pointer dereference.
1221 (maint_print_xml_tdesc_cmd): New function.
1222 (_initialize_target_descriptions): Register new 'maint print
1223 xml-tdesc' command and give it the filename completer.
1224 * NEWS: Mention new 'maint print xml-tdesc' command.
1225
1226 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * target-descriptions.c (class tdesc_compatible_info): New class.
1229 (struct target_desc): Change type of compatible vector.
1230 (tdesc_compatible_p): Update for change in type of
1231 target_desc::compatible.
1232 (tdesc_compatible_info_list): New function.
1233 (tdesc_compatible_info_arch_name): New function.
1234 (tdesc_add_compatible): Update for change in type of
1235 target_desc::compatible.
1236 (print_c_tdesc::visit_pre): Likewise.
1237
1238 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1239
1240 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1241 whitespace to underscore.
1242 (maint_print_c_tdesc_cmd): Use fake filename for target
1243 descriptions that came from the target.
1244 (_initialize_target_descriptions): Add filename command completion
1245 for 'maint print c-tdesc'.
1246
1247 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1248
1249 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1250 lines.
1251
1252 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1253
1254 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1255 lines.
1256 (dwarf2_find_location_expression): Likewise.
1257 (call_site_parameter_matches): Likewise.
1258 (dwarf2_compile_expr_to_ax): Likewise.
1259 (disassemble_dwarf_expression): Likewise.
1260 (loclist_describe_location): Likewise.
1261
1262 2020-06-23 Pedro Alves <palves@redhat.com>
1263
1264 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1265 progspace-and-thread.h. Include scoped-mock-context.h instead.
1266 (register_to_value_test): Use scoped_mock_context.
1267 * regcache.c: Include "scoped-mock-context.h".
1268 (cooked_read_test): Don't error out if a target is already pushed.
1269 Use scoped_mock_context. Adjust.
1270 * scoped-mock-context.h: New file.
1271
1272 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1273
1274 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1275 initializer.
1276 (ada_language::is_string_type_p): New member function.
1277 * c-lang.c (c_language_data): Delete la_is_string_type_p
1278 initializer.
1279 (cplus_language_data): Likewise.
1280 (asm_language_data): Likewise.
1281 (minimal_language_data): Likewise.
1282 * d-lang.c (d_language_data): Likewise.
1283 * f-lang.c (f_is_string_type_p): Delete function, implementation
1284 moved to f_language::is_string_type_p.
1285 (f_language_data): Delete la_is_string_type_p initializer.
1286 (f_language::is_string_type_p): New member function,
1287 implementation from f_is_string_type_p.
1288 * go-lang.c (go_is_string_type_p): Delete function, implementation
1289 moved to go_language::is_string_type_p.
1290 (go_language_data): Delete la_is_string_type_p initializer.
1291 (go_language::is_string_type_p): New member function,
1292 implementation from go_is_string_type_p.
1293 * language.c (language_defn::is_string_type_p): Define new member
1294 function.
1295 (default_is_string_type_p): Make static, add comment copied from
1296 header file.
1297 (unknown_language_data): Delete la_is_string_type_p initializer.
1298 (unknown_language::is_string_type_p): New member function.
1299 (auto_language_data): Delete la_is_string_type_p initializer.
1300 (auto_language::is_string_type_p): New member function.
1301 * language.h (language_data): Delete la_is_string_type_p field.
1302 (language_defn::is_string_type_p): Declare new function.
1303 (default_is_string_type_p): Delete desclaration, move comment to
1304 definition.
1305 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1306 moved to m2_language::is_string_type_p.
1307 (m2_language_data): Delete la_is_string_type_p initializer.
1308 (m2_language::is_string_type_p): New member function,
1309 implementation from m2_is_string_type_p.
1310 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1311 initializer.
1312 * opencl-lang.c (opencl_language_data): Likewise.
1313 * p-lang.c (pascal_is_string_type_p): Delete function,
1314 implementation moved to pascal_language::is_string_type_p.
1315 (pascal_language_data): Delete la_is_string_type_p initializer.
1316 (pascal_language::is_string_type_p): New member function,
1317 implementation from pascal_is_string_type_p.
1318 * rust-lang.c (rust_is_string_type_p): Delete function,
1319 implementation moved to rust_language::is_string_type_p.
1320 (rust_language_data): Delete la_is_string_type_p initializer.
1321 (rust_language::is_string_type_p): New member function,
1322 implementation from rust_is_string_type_p.
1323 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1324 is_string_type_p.
1325
1326 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1327
1328 * ada-lang.c (ada_language_data): Delete la_print_typedef
1329 initializer.
1330 (ada_language::print_typedef): New member function.
1331 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1332 (cplus_language_data): Likewise.
1333 (asm_language_data): Likewise.
1334 (minimal_language_data): Likewise.
1335 * d-lang.c (d_language_data): Likewise.
1336 * f-lang.c (f_language_data): Likewise.
1337 (f_language::print_typedef): New member function.
1338 * go-lang.c (go_language_data): Delete la_print_typedef
1339 initializer.
1340 * language.c (language_defn::print_typedef): Define member
1341 function.
1342 (unknown_language_data): Delete la_print_typedef initializer.
1343 (unknown_language::print_typedef): New member function.
1344 (auto_language_data): Delete la_print_typedef initializer.
1345 (auto_language::print_typedef): New member function.
1346 * language.h (language_data): Delete la_print_typedef field.
1347 (language_defn::print_typedef): Declare new member function.
1348 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1349 (default_print_typedef): Delete declaration.
1350 * m2-lang.c (m2_language_data): Delete la_print_typedef
1351 initializer.
1352 (m2_language::print_typedef): New member function.
1353 * objc-lang.c (objc_language_data): Delete la_print_typedef
1354 initializer.
1355 * opencl-lang.c (opencl_language_data): Likewise.
1356 * p-lang.c (pascal_language_data): Likewise.
1357 (pascal_language::print_typedef): New member function.
1358 * rust-lang.c (rust_print_typedef): Delete function,
1359 implementation moved to rust_language::print_typedef.
1360 (rust_language): Delete la_print_typedef initializer.
1361 (rust_language::print_typedef): New member function,
1362 implementation from rust_print_typedef.
1363 * typeprint.c (default_print_typedef): Delete.
1364
1365 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1366
1367 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1368 (ada_language::printstr): New member function.
1369 * c-lang.c (c_language_data): Delete la_printstr initializer.
1370 (cplus_language_data): Likewise.
1371 (asm_language_data): Likewise.
1372 (minimal_language_data): Likewise.
1373 * d-lang.c (d_language_data): Likewise.
1374 * f-lang.c (f_printstr): Rename to f_language::printstr.
1375 (f_language_data): Delete la_printstr initializer.
1376 (f_language::printstr): New member function, implementation from
1377 f_printstr.
1378 * go-lang.c (go_language_data): Delete la_printstr initializer.
1379 * language.c (language_defn::printstr): Define new member
1380 function.
1381 (unk_lang_printstr): Delete.
1382 (unknown_language_data): Delete la_printstr initializer.
1383 (unknown_language::printstr): New member function.
1384 (auto_language_data): Delete la_printstr initializer.
1385 (auto_language::printstr): New member function.
1386 * language.h (language_data): Delete la_printstr field.
1387 (language_defn::printstr): Declare new member function.
1388 (LA_PRINT_STRING): Update call to printstr.
1389 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1390 (m2_language_data): Delete la_printstr initializer.
1391 (m2_language::printstr): New member function, implementation from
1392 m2_printstr.
1393 * objc-lang.c (objc_language_data): Delete la_printstr
1394 initializer.
1395 * opencl-lang.c (opencl_language_data): Likewise.
1396 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1397 (pascal_language_data): Delete la_printstr initializer.
1398 (pascal_language::printstr): New member function, implementation
1399 from pascal_printstr.
1400 * p-lang.h (pascal_printstr): Delete declaration.
1401 * rust-lang.c (rust_printstr): Update header comment.
1402 (rust_language_data): Delete la_printstr initializer.
1403 (rust_language::printstr): New member function.
1404
1405 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1406
1407 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1408 (ada_language::printchar): New member function.
1409 * c-lang.c (c_language_data): Delete la_printchar initializer.
1410 (cplus_language_data): Likewise.
1411 (asm_language_data): Likewise.
1412 (minimal_language_data): Likewise.
1413 * d-lang.c (d_language_data): Likewise.
1414 * f-lang.c (f_printchar): Rename to f_language::printchar.
1415 (f_language_data): Delete la_printchar initializer.
1416 (f_language::printchar): New member function, implementation from
1417 f_printchar.
1418 * go-lang.c (go_language_data): Delete la_printchar initializer.
1419 * language.c (unk_lang_printchar): Delete.
1420 (language_defn::printchar): Define new member function.
1421 (unknown_language_data): Delete la_printchar initializer.
1422 (unknown_language::printchar): New member function.
1423 (auto_language_data): Delete la_printchar initializer.
1424 (auto_language::printchar): New member function.
1425 * language.h (language_data): Delete la_printchar field.
1426 (language_defn::printchar): Declare new member function.
1427 (LA_PRINT_CHAR): Update call to printchar.
1428 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1429 (m2_language::printchar): New member function.
1430 * objc-lang.c (objc_language_data): Delete la_printchar
1431 initializer.
1432 * opencl-lang.c (opencl_language_data): Likewise.
1433 * p-lang.c (pascal_language_data): Delete la_printchar
1434 initializer.
1435 (pascal_language::printchar): New member function.
1436 * rust-lang.c (rust_printchar): Rename to
1437 rust_language::printchar.
1438 (rust_language_data): Delete la_printchar initializer.
1439 (rust_language::printchar): New member function, implementation
1440 from rust_printchar.
1441
1442 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1445 (ada_language_data): Delete la_emitchar initializer.
1446 (ada_language::emitchar): New member function, implementation from
1447 emit_char.
1448 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1449 (cplus_language_data): Likewise.
1450 (asm_language_data): Likewise.
1451 (minimal_language_data): Likewise.
1452 * d-lang.c (d_language_data): Likewise.
1453 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1454 (f_language_data): Delete la_emitchar initializer.
1455 (f_language::emitchar): New member function, implementation from
1456 f_emit_char.
1457 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1458 * language.c (unk_lang_emit_char): Delete.
1459 (language_defn::emitchar): New member function definition.
1460 (unknown_language_data): Delete la_emitchar initializer.
1461 (unknown_language::emitchar): New member function.
1462 (auto_language_data): Delete la_emitchar initializer.
1463 (auto_language::emitchar): New member function.
1464 * language.h (language_data): Delete la_emitchar field.
1465 (language_defn::emitchar): New member field declaration.
1466 (LA_EMIT_CHAR): Update call to emitchar.
1467 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1468 (m2_language_data): Delete la_emitchar initializer.
1469 (m2_language::emitchar): New member function, implementation from
1470 m2_emit_char.
1471 * objc-lang.c (objc_language_data): Delete la_emitchar
1472 initializer.
1473 * opencl-lang.c (opencl_language_data): Likewise.
1474 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1475 (pascal_language_data): Delete la_emitchar initializer.
1476 (pascal_language::emitchar): New member function, implementation
1477 from pascal_emit_char.
1478 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1479 (rust_language_data): Delete la_emitchar initializer.
1480 (rust_language::emitchar): New member function, implementation
1481 from rust_emitchar.
1482
1483 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1484
1485 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1486 (ada_language_data): Delete la_post_parser initializer.
1487 (ada_language::post_parser): New member function.
1488 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1489 (cplus_language_data): Likewise.
1490 (asm_language_data): Likewise.
1491 (minimal_language_data): Likewise.
1492 * d-lang.c (d_language_data): Likewise.
1493 * f-lang.c (f_language_data): Likewise.
1494 * go-lang.c (go_language_data): Likewise.
1495 * language.c (unknown_language_data): Likewise.
1496 (auto_language_data): Likewise.
1497 * language.h (language_data): Delete la_post_parser field.
1498 (language_defn::post_parser): New member function.
1499 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1500 * objc-lang.c (objc_language_data): Likewise.
1501 * opencl-lang.c (opencl_language_data): Likewise.
1502 * p-lang.c (pascal_language_data): Likewise.
1503 * parse.c (parse_exp_in_context): Update call to post_parser.
1504 (null_post_parser): Delete definition.
1505 * parser-defs.h (null_post_parser): Delete declaration.
1506 * rust-lang.c (rust_language_data): Delete la_post_parser
1507 initializer.
1508
1509 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1510
1511 * ada-lang.c (parse): Rename to ada_language::parser.
1512 (ada_language_data): Delete la_parser initializer.
1513 (ada_language::parser): New member function, implementation from
1514 parse.
1515 * c-lang.c (c_language_data): Delete la_parser initializer.
1516 (cplus_language_data): Likewise.
1517 (asm_language_data): Likewise.
1518 (minimal_language_data): Likewise.
1519 * d-lang.c (d_language_data): Likewise.
1520 (d_language::parser): New member function.
1521 * f-lang.c (f_language_data): Delete la_parser initializer.
1522 (f_language::parser): New member function.
1523 * go-lang.c (go_language_data): Delete la_parser initializer.
1524 (go_language::parser): New member function.
1525 * language.c (unk_lang_parser): Delete.
1526 (language_defn::parser): Define new member function.
1527 (unknown_language_data): Delete la_parser initializer.
1528 (unknown_language::parser): New member function.
1529 (auto_language_data): Delete la_parser initializer.
1530 (auto_language::parser): New member function.
1531 * language.h (language_data): Delete la_parser field.
1532 (language_defn::parser): Declare new member function.
1533 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1534 (m2_language::parser): New member function.
1535 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1536 * opencl-lang.c (opencl_language_data): Likewise.
1537 * p-lang.c (pascal_language_data): Likewise.
1538 (pascal_language::parser): New member function.
1539 * parse.c (parse_exp_in_context): Update call to parser.
1540 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1541 (rust_language::parser): New member function.
1542
1543 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * top.c (print_gdb_configuration): Print --with-python-libdir
1546 configuration value.
1547
1548 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1549
1550 * NEWS: Mention change to the alias command.
1551
1552 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1553
1554 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1555 (alias_command_completer)
1556 (make_alias_options_def_group): New functions.
1557 (alias_opts, alias_option_defs): New struct and array.
1558 (alias_usage_error): Update usage.
1559 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1560 Use option framework.
1561 (_initialize_cli_cmds): Update alias command help.
1562 Update aliases command help.
1563 (show_user):
1564 Add NULL for new default_args lookup_cmd argument.
1565 (valid_command_p): Rename to validate_aliased_command.
1566 Add NULL for new default_args lookup_cmd argument. Verify that the
1567 aliased_command has no default args.
1568 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1569 (lookup_cmd_1, lookup_cmd): New argument default_args.
1570 (add_alias_cmd):
1571 Add NULL for new default_args lookup_cmd argument.
1572 (print_help_for_command): Show default args under the layout
1573 alias some_alias = some_aliased_cmd some_alias_default_arg.
1574 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1575 xfree default_args in destructor.
1576 * cli/cli-script.c (process_next_line, do_define_command):
1577 Add NULL for new default_args lookup_cmd argument.
1578 * command.h: Declare new default_args argument in lookup_cmd
1579 and lookup_cmd_1.
1580 * completer.c (complete_line_internal_1):
1581 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1582 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1583 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1584 Likewise.
1585 * infcmd.c (_initialize_infcmd): Likewise.
1586 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1587 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1588 * python/py-param.c (add_setshow_generic): Likewise.
1589 * remote.c (_initialize_remote): Likewise.
1590 * top.c (execute_command): Prepend default_args if command has some.
1591 (set_verbose):
1592 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1593 * tracepoint.c (validate_actionline, encode_actions_1):
1594 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1595
1596 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1597
1598 * jit.c (jit_read_descriptor): Use bool as the return type.
1599 (jit_breakpoint_re_set_internal): Use bool as the return type.
1600 Invert the return value logic; return true if the jit breakpoint
1601 has been successfully initialized.
1602 (jit_inferior_init): Update the call to
1603 jit_breakpoint_re_set_internal.
1604
1605 2020-06-22 Pedro Alves <palves@redhat.com>
1606
1607 PR gdb/25939
1608 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1609 Use the current inferior instead. Don't return
1610 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1611 wait again.
1612 * sol-thread.c (sol_thread_target::wait): Don't reference
1613 inferior_ptid.
1614 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1615 (sol_update_thread_list_callback): Use the current inferior's pid
1616 instead of inferior_ptid.
1617
1618 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1619
1620 * procfs.c: Cleanup many comments.
1621
1622 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1623 (AFTER_WATCHFLAG): Replace by value.
1624
1625 (MAIN_PROC_NAME_FORMAT): Inline ...
1626 (create_procinfo): ... here.
1627
1628 (procfs_debug_inferior): Remove SYS_exec handling.
1629 (syscall_is_exec): Likewise.
1630 (procfs_set_exec_trap): Likewise.
1631
1632 (syscall_is_lwp_exit): Inline in callers.
1633 (syscall_is_exit): Likewise.
1634 (syscall_is_exec): Likewise.
1635 (syscall_is_lwp_create): Likewise.
1636
1637 (invalidate_cache): Remove #if 0 code.
1638
1639 (make_signal_thread_runnable): Remove.
1640 (procfs_target::resume): Remove #if 0 code.
1641
1642 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1643
1644 PR gdb/25939
1645 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1646 call ...
1647 (procfs_target::create_inferior): ... here.
1648
1649 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1650
1651 * exec.c (validate_exec_file): Ensure the build-id is up to
1652 date by calling reopen_exec_file (that checks file timestamp
1653 to decide to re-read the file).
1654
1655 2020-06-18 Pedro Alves <palves@redhat.com>
1656
1657 PR gdb/25412
1658 * gdbthread.h (delete_thread, delete_thread_silent)
1659 (find_thread_ptid): Update comments.
1660 * thread.c (current_thread_): New global.
1661 (is_current_thread): Move higher, and reimplement.
1662 (inferior_thread): Reimplement.
1663 (set_thread_exited): Use bool. Add assertions.
1664 (add_thread_silent): Simplify thread-reuse handling by always
1665 calling delete_thread.
1666 (delete_thread): Remove intro comment.
1667 (find_thread_ptid): Skip exited threads.
1668 (switch_to_thread_no_regs): Write to current_thread_.
1669 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1670 INFERIOR_PTID. Clear current_thread_.
1671
1672 2020-06-18 Pedro Alves <palves@redhat.com>
1673
1674 * aix-thread.c (pd_update): Use switch_to_thread.
1675
1676 2020-06-18 Pedro Alves <palves@redhat.com>
1677
1678 * ravenscar-thread.c (ravenscar_thread_target): Update.
1679 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1680 (ravenscar_thread_target::add_active_thread): ... this. Don't
1681 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1682 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1683
1684 2020-06-18 Pedro Alves <palves@redhat.com>
1685
1686 * nat/windows-nat.c (current_windows_thread): Remove.
1687 * nat/windows-nat.h (current_windows_thread): Remove.
1688 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1689 Adjust.
1690 (display_selectors): Adjust to fetch the current
1691 windows_thread_info based on inferior_ptid.
1692 (fake_create_process): No longer write to current_windows_thread.
1693 (windows_nat_target::get_windows_debug_event):
1694 Don't set inferior_ptid or current_windows_thread.
1695 (windows_nat_target::wait): Adjust to not rely on
1696 current_windows_thread.
1697 (do_initial_windows_stuff): Now a method of windows_nat_target.
1698 Switch to the last_ptid thread.
1699 (windows_nat_target::attach): Adjust.
1700 (windows_nat_target::detach): Use switch_to_no_thread instead of
1701 writing to inferior_ptid directly.
1702 (windows_nat_target::create_inferior): Adjust.
1703
1704 2020-06-18 Pedro Alves <palves@redhat.com>
1705
1706 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1707
1708 2020-06-18 Pedro Alves <palves@redhat.com>
1709
1710 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1711 after creating it, instead of writing to inferior_ptid. Don't
1712 write to inferior_ptid.
1713
1714 2020-06-18 Pedro Alves <palves@redhat.com>
1715
1716 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1717
1718 2020-06-18 Pedro Alves <palves@redhat.com>
1719
1720 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1721 it, instead of writing to inferior_ptid.
1722
1723 2020-06-18 Pedro Alves <palves@redhat.com>
1724
1725 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1726 to inferior_ptid.
1727
1728 2020-06-18 Pedro Alves <palves@redhat.com>
1729
1730 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1731 instead of writing to inferior_ptid directly.
1732
1733 2020-06-18 Pedro Alves <palves@redhat.com>
1734
1735 * corelow.c (core_target::close): Use switch_to_no_thread instead
1736 of writing to inferior_ptid directly.
1737 (add_to_thread_list, core_target_open): Use switch_to_thread
1738 instead of writing to inferior_ptid directly.
1739
1740 2020-06-18 Pedro Alves <palves@redhat.com>
1741
1742 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1743 inferior_ptid.
1744 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1745 inferior_ptid.
1746 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1747 inferior_ptid directly.
1748 (darwin_nat_target::init_thread_list): Switch to thread, instead
1749 of writing to inferior_ptid.
1750 (darwin_nat_target::attach): Don't write to inferior_ptid.
1751 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1752
1753 2020-06-18 Pedro Alves <palves@redhat.com>
1754
1755 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1756 thread.
1757 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1758 Instead use switch_to_thread.
1759 (gnu_nat_target::detach): Use switch_to_no_thread
1760 instead of writing to inferior_ptid directly. Used passed-in
1761 inferior instead of looking up the inferior by pid.
1762
1763 2020-06-18 Pedro Alves <palves@redhat.com>
1764
1765 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1766 inferior_ptid.
1767
1768 2020-06-18 Pedro Alves <palves@redhat.com>
1769
1770 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1771 inferior_ptid.
1772 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1773 thread.
1774 (nto_procfs_target::detach): Avoid referencing
1775 inferior_ptid. Use switch_to_no_thread instead of writing to
1776 inferior_ptid directly.
1777 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1778 instead of writing to inferior_ptid directly.
1779 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1780 to thread.
1781
1782 2020-06-18 Pedro Alves <palves@redhat.com>
1783
1784 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1785 after creating it, instead of writing to inferior_ptid.
1786 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1787 to inferior_ptid directly.
1788 (gdbsim_target::wait): Don't write to inferior_ptid.
1789
1790 2020-06-18 Pedro Alves <palves@redhat.com>
1791
1792 * remote.c (remote_target::remote_notice_new_inferior): Use
1793 switch_to_thread instead of writing to inferior_ptid directly.
1794 (remote_target::add_current_inferior_and_thread): Use
1795 switch_to_no_thread instead of writing to inferior_ptid directly.
1796 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1797 and switch_to_thread instead of using set_current_inferior or
1798 writing to inferior_ptid directly.
1799
1800 2020-06-18 Pedro Alves <palves@redhat.com>
1801
1802 * tracectf.c (ctf_target_open): Switch to added thread instead of
1803 writing to inferior_ptid directly.
1804 (ctf_target::close): Use switch_to_no_thread instead of writing to
1805 inferior_ptid directly.
1806
1807 2020-06-18 Pedro Alves <palves@redhat.com>
1808
1809 * tracefile-tfile.c (tfile_target_open): Don't write to
1810 inferior_ptid directly, instead switch to added thread.
1811 (tfile_target::close): Use switch_to_no_thread instead of writing
1812 to inferior_ptid directly.
1813
1814 2020-06-18 Pedro Alves <palves@redhat.com>
1815
1816 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1817 (procfs_target::detach): Use switch_to_no_thread
1818 instead of writing to inferior_ptid directly.
1819 (do_attach): Change return type to void. Switch to the added
1820 thread.
1821 (procfs_target::create_inferior): Switch to the added thread.
1822 (procfs_do_thread_registers): Don't write to inferior_ptid.
1823
1824 2020-06-18 Pedro Alves <palves@redhat.com>
1825
1826 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1827 of writing to inferior_ptid.
1828 (scoped_restore_exited_inferior): Delete.
1829 (handle_vfork_child_exec_or_exit): Simplify using
1830 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1831 instead of writing to inferior_ptid.
1832 (THREAD_STOPPED_BY): Delete.
1833 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1834 (thread_stopped_by_hw_breakpoint): Delete.
1835 (save_waitstatus): Use
1836 scoped_restore_current_thread+switch_to_thread, and call
1837 target_stopped_by_watchpoint instead of
1838 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1839 instead of thread_stopped_by_sw_breakpoint, and
1840 target_stopped_by_hw_breakpoint instead of
1841 thread_stopped_by_hw_breakpoint.
1842 (handle_inferior_event)
1843 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1844 inferior_ptid directly, nor
1845 set_current_inferior/set_current_program_space. Use
1846 switch_to_thread / switch_to_inferior_no_thread instead.
1847
1848 2020-06-18 Pedro Alves <palves@redhat.com>
1849
1850 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1851 instead of writing to inferior_ptid.
1852
1853 2020-06-18 Pedro Alves <palves@redhat.com>
1854
1855 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1856 added thread.
1857 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1858 to the added thread.
1859 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1860 instead of writing to inferior_ptid.
1861
1862 2020-06-18 Pedro Alves <palves@redhat.com>
1863
1864 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1865 (register_to_value_test): Mock a program_space too. Heap-allocate
1866 the address space. Don't write to inferior_ptid. Use
1867 switch_to_thread instead.
1868
1869 2020-06-18 Pedro Alves <palves@redhat.com>
1870
1871 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1872 Delete.
1873 (find_signalled_thread()): New, factored out from
1874 linux_make_corefile_notes and adjusted to handle exited threads.
1875 (linux_make_corefile_notes): Adjust to use the new
1876 find_signalled_thread.
1877
1878 2020-06-18 Pedro Alves <palves@redhat.com>
1879
1880 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1881 of saving/restoring inferior_ptid.
1882
1883 2020-06-17 Tom Tromey <tom@tromey.com>
1884
1885 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1886 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1887 declare.
1888 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1889
1890 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1891
1892 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1893 of partial symtabs.
1894
1895 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1896
1897 * regformats/reg-arm.dat: Remove.
1898 * regformats/reg-bfin.dat: Remove.
1899 * regformats/reg-cris.dat: Remove.
1900 * regformats/reg-crisv32.dat: Remove.
1901 * regformats/reg-m32r.dat: Remove.
1902 * regformats/reg-tilegx.dat: Remove.
1903 * regformats/reg-tilegx32.dat: Remove.
1904
1905 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1906
1907 * features/Makefile (WHICH): Remove arm files.
1908 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1909 * regformats/arm/arm-with-neon.dat: Remove.
1910 * regformats/arm/arm-with-vfpv2.dat: Remove.
1911 * regformats/arm/arm-with-vfpv3.dat: Remove.
1912
1913 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1914
1915 * features/Makefile (XMLTOC): Remove rx.xml.
1916
1917 2020-06-17 Pedro Alves <palves@redhat.com>
1918
1919 * gdbthread.h (thread_control_state) <trap_expected> Update
1920 comments.
1921
1922 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1923
1924 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1925 ada_language::lookup_symbol_nonlocal.
1926 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1927 (ada_language::lookup_symbol_nonlocal): New member function,
1928 implementation from ada_lookup_symbol_nonlocal.
1929 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1930 initializer.
1931 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1932 initializer.
1933 (cplus_language::lookup_symbol_nonlocal): New member function.
1934 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1935 (minimal_language_data) Likewise.
1936 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1937 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1938 initializer.
1939 (d_language::lookup_symbol_nonlocal): New member function.
1940 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1941 initializer.
1942 (f_language::lookup_symbol_nonlocal): New member function.
1943 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1944 initializer.
1945 * language.c (unknown_language_data): Likewise.
1946 (auto_language_data): Likewise.
1947 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1948 field.
1949 (language_defn::lookup_symbol_nonlocal): New member function.
1950 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1951 initializer.
1952 * objc-lang.c (objc_language_data): Likewise.
1953 * opencl-lang.c (opencl_language_data): Likewise.
1954 * p-lang.c (pascal_language_data): Likewise.
1955 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1956 rust_language::lookup_symbol_nonlocal.
1957 (rust_language_data): Delete la_lookup_symbol_nonlocal
1958 initializer.
1959 (rust_language::lookup_symbol_nonlocal): New member function,
1960 implementation from rust_lookup_symbol_nonlocal.
1961 * symtab.c (lookup_symbol_aux): Update call to
1962 lookup_symbol_nonlocal.
1963 (basic_lookup_symbol_nonlocal): Rename to...
1964 (language_defn::lookup_symbol_nonlocal): ...this, and update
1965 header comment. Remove language_defn parameter, and replace with
1966 uses of `this'.
1967 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1968
1969 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1970
1971 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1972 initializer.
1973 (ada_language::value_print_inner): New member function.
1974 * c-lang.c (c_language_data): Delete la_value_print_inner
1975 initializer.
1976 (cplus_language_data): Likewise.
1977 (asm_language_data): Likewise.
1978 (minimal_language_data): Likewise.
1979 * d-lang.c (d_language_data): Likewise.
1980 (d_language::value_print_inner): New member function.
1981 * f-lang.c (f_language_data): Delete la_value_print_inner
1982 initializer.
1983 (f_language::value_print_inner): New member function.
1984 * f-lang.h (f_value_print_innner): Rename to...
1985 (f_value_print_inner): ...this (note spelling of 'inner').
1986 * f-valprint.c (f_value_print_innner): Rename to...
1987 (f_value_print_inner): ...this (note spelling of 'inner').
1988 * go-lang.c (go_language_data): Delete la_value_print_inner
1989 initializer.
1990 (go_language::value_print_inner): New member function.
1991 * language.c (language_defn::value_print_inner): Define new member
1992 function.
1993 (unk_lang_value_print_inner): Delete.
1994 (unknown_language_data): Delete la_value_print_inner initializer.
1995 (unknown_language::value_print_inner): New member function.
1996 (auto_language_data): Delete la_value_print_inner initializer.
1997 (auto_language::value_print_inner): New member function.
1998 * language.h (language_data): Delete la_value_print_inner field.
1999 (language_defn::value_print_inner): Delcare new member function.
2000 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2001 initializer.
2002 (m2_language::value_print_inner): New member function.
2003 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2004 initializer.
2005 * opencl-lang.c (opencl_language_data): Likewise.
2006 * p-lang.c (pascal_language_data): Likewise.
2007 (pascal_language::value_print_inner): New member function.
2008 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2009 initializer.
2010 (rust_language::value_print_inner): New member function.
2011 * valprint.c (do_val_print): Update call to value_print_inner.
2012
2013 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 * ada-lang.c (ada_language_data): Delete la_value_print
2016 initializer.
2017 (ada_language::value_print): New member function.
2018 * c-lang.c (c_language_data): Delete la_value_print initializer.
2019 (cplus_language_data): Likewise.
2020 (asm_language_data): Likewise.
2021 (minimal_language_data): Likewise.
2022 * d-lang.c (d_language_data): Likewise.
2023 * f-lang.c (f_language_data): Likewise.
2024 * go-lang.c (go_language_data): Likewise.
2025 * language.c (unk_lang_value_print): Delete.
2026 (language_defn::value_print): Define new member function.
2027 (unknown_language_data): Delete la_value_print initializer.
2028 (unknown_language::value_print): New member function.
2029 (auto_language_data): Delete la_value_print initializer.
2030 (auto_language::value_print): New member function.
2031 * language.h (language_data): Delete la_value_print field.
2032 (language_defn::value_print): Declare new member function.
2033 (LA_VALUE_PRINT): Update call to value_print.
2034 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2035 * objc-lang.c (objc_language_data): Likewise.
2036 * opencl-lang.c (opencl_language_data): Likewise.
2037 * p-lang.c (pascal_language_data): Likewise.
2038 (pascal_language::value_print): New member function.
2039 * rust-lang.c (rust_language_data): Delete la_value_print
2040 initializer.
2041
2042 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2043
2044 * ada-lang.c (ada_watch_location_expression): Rename to
2045 ada_language::watch_location_expression.
2046 (ada_language_data): Delete la_watch_location_expression
2047 initializer.
2048 (ada_language::watch_location_expression): New member function,
2049 implementation from ada_watch_location_expression.
2050 * breakpoint.c (watch_command_1): Update call to
2051 watch_location_expression.
2052 * c-lang.c (c_watch_location_expression): Rename to
2053 language_defn::watch_location_expression.
2054 (c_language_data): Delete la_watch_location_expression
2055 initializer.
2056 (cplus_language_data): Likewise.
2057 (asm_language_data): Likewise.
2058 (minimal_language_data): Likewise.
2059 * c-lang.h (c_watch_location_expression): Delete declaration.
2060 * d-lang.c (d_language_data): Delete la_watch_location_expression
2061 initializer.
2062 * f-lang.c (f_language_data): Likewise.
2063 * go-lang.c (go_language_data): Likewise.
2064 * language.c (language_defn::watch_location_expression): Member
2065 function implementation from c_watch_location_expression.
2066 (unknown_language_data): Delete la_watch_location_expression
2067 initializer.
2068 (auto_language_data): Likewise.
2069 * language.h (language_data): Delete la_watch_location_expression
2070 field.
2071 (language_defn::watch_location_expression): Declare new member
2072 function.
2073 * m2-lang.c (m2_language_data): Delete
2074 la_watch_location_expression initializer.
2075 * objc-lang.c (objc_language_data): Likewise.
2076 * opencl-lang.c (opencl_language_data): Likewise.
2077 * p-lang.c (pascal_language_data): Likewise.
2078 * rust-lang.c (rust_watch_location_expression): Rename to
2079 rust_language::watch_location_expression.
2080 (rust_language_data): Delete la_watch_location_expression
2081 initializer.
2082 (rust_language::watch_location_expression): New member function,
2083 implementation from rust_watch_location_expression.
2084
2085 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2088 ada_language::collect_symbol_completion_matches.
2089 (ada_language_data): Delete la_collect_symbol_completion_matches
2090 initializer.
2091 (ada_language::collect_symbol_completion_matches): New member
2092 function, implementation from
2093 ada_collect_symbol_completion_matches.
2094 * c-lang.c (c_language_data): Delete
2095 la_collect_symbol_completion_matches initializer.
2096 (cplus_language_data): Likewise.
2097 (asm_language_data): Likewise.
2098 (minimal_language_data): Likewise.
2099 * d-lang.c (d_language_data): Likewise.
2100 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2101 f_language::collect_symbol_completion_matches.
2102 (f_language_data): Delete la_collect_symbol_completion_matches
2103 initializer.
2104 (f_language::collect_symbol_completion_matches) New member
2105 function, implementation from f_collect_symbol_completion_matches.
2106 * go-lang.c (go_language_data): Delete
2107 la_collect_symbol_completion_matches initializer.
2108 * language.c (unknown_language_data): Likewise.
2109 (auto_language_data): Likewise.
2110 * language.h (language_data): Delete
2111 la_collect_symbol_completion_matches field.
2112 (language_defn::collect_symbol_completion_matches): New member
2113 function.
2114 * m2-lang.c (m2_language_data): Delete
2115 la_collect_symbol_completion_matches initializer.
2116 * objc-lang.c (objc_language_data): Likewise.
2117 * opencl-lang.c (opencl_language_data): Likewise.
2118 * p-lang.c (pascal_language_data): Likewise.
2119 * rust-lang.c (rust_language_data): Likewise.
2120 * symtab.c (default_collect_symbol_completion_matches): Delete.
2121 (collect_symbol_completion_matches): Update call to
2122 collect_symbol_completion_matches.
2123 (collect_symbol_completion_matches_type): Likewise.
2124 * symtab.h (default_collect_symbol_completion_matches): Delete
2125 declaration.
2126
2127 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2128
2129 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2130 (ada_language_data): Delete la_word_break_characters initializer.
2131 (ada_language::word_break_characters): New member function.
2132 * c-lang.c (c_language_data): Delete la_word_break_characters
2133 initializer.
2134 (cplus_language_data): Likewise.
2135 (asm_language_data): Likewise.
2136 (minimal_language_data): Likewise.
2137 * completer.c: Update global comment.
2138 (advance_to_expression_complete_word_point): Update call to
2139 word_break_characters.
2140 (complete_files_symbols): Likewise.
2141 (complete_line_internal_1): Likewise.
2142 (default_completer_handle_brkchars): Likewise.
2143 (skip_quoted_chars): Likewise.
2144 * d-lang.c (d_language_data): Delete la_word_break_characters
2145 initializer.
2146 * f-lang.c (f_word_break_characters): Delete.
2147 (f_language_data): Delete la_word_break_characters initializer.
2148 (f_language::word_break_characters): New member function.
2149 * go-lang.c (go_language_data): Delete la_word_break_characters
2150 initializer.
2151 * language.c (unknown_language_data): Likewise.
2152 (auto_language_data): Likewise.
2153 * language.h (default_word_break_characters): Move declaration to
2154 earlier in the file.
2155 (language_data): Delete la_word_break_characters field.
2156 (language_defn::word_break_characters): New member function.
2157 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2158 initializer.
2159 * objc-lang.c (objc_language_data): Likewise.
2160 * opencl-lang.c (opencl_language_data): Likewise.
2161 * p-lang.c (pascal_language_data): Likewise.
2162 * rust-lang.c (rust_language_data): Likewise.
2163
2164 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2167 (ada_language_data): Delete la_get_symbol_name_matcher
2168 initializer.
2169 (language_defn::get_symbol_name_matcher_inner): New member
2170 function.
2171 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2172 initializer.
2173 (cplus_language_data): Likewise.
2174 (cplus_language::get_symbol_name_matcher_inner): New member
2175 function.
2176 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2177 (minimal_language_data): Likewise.
2178 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2179 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2180 initializer.
2181 * dictionary.c (iter_match_first_hashed): Update call to
2182 get_symbol_name_matcher.
2183 (iter_match_next_hashed): Likewise.
2184 (iter_match_next_linear): Likewise.
2185 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2186 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2187 initializer.
2188 (f_language::get_symbol_name_matcher_inner): New member function.
2189 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2190 initializer.
2191 * language.c (default_symbol_name_matcher): Update header comment,
2192 make static.
2193 (language_defn::get_symbol_name_matcher): New definition.
2194 (language_defn::get_symbol_name_matcher_inner): Likewise.
2195 (get_symbol_name_matcher): Delete.
2196 (unknown_language_data): Delete la_get_symbol_name_matcher
2197 initializer.
2198 (auto_language_data): Likewise.
2199 * language.h (language_data): Delete la_get_symbol_name_matcher
2200 field.
2201 (language_defn::get_symbol_name_matcher): New member function.
2202 (language_defn::get_symbol_name_matcher_inner): Likewise.
2203 (default_symbol_name_matcher): Delete declaration.
2204 * linespec.c (find_methods): Update call to
2205 get_symbol_name_matcher.
2206 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2207 initializer.
2208 * minsyms.c (lookup_minimal_symbol): Update call to
2209 get_symbol_name_matcher.
2210 (iterate_over_minimal_symbols): Likewise.
2211 * objc-lang.c (objc_language_data): Delete
2212 la_get_symbol_name_matcher initializer.
2213 * opencl-lang.c (opencl_language_data): Likewise.
2214 * p-lang.c (pascal_language_data): Likewise.
2215 * psymtab.c (psymbol_name_matches): Update call to
2216 get_symbol_name_matcher.
2217 * rust-lang.c (rust_language_data): Delete
2218 la_get_symbol_name_matcher initializer.
2219 * symtab.c (symbol_matches_search_name): Update call to
2220 get_symbol_name_matcher.
2221 (compare_symbol_name): Likewise.
2222
2223 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * ada-lang.c (ada_language_data): Delete la_compute_program
2226 initializer.
2227 * c-lang.c (c_language_data): Likewise.
2228 (c_language::compute_program): New member function.
2229 (cplus_language_data): Delete la_compute_program initializer.
2230 (cplus_language::compute_program): New member function.
2231 (asm_language_data): Delete la_compute_program initializer.
2232 (minimal_language_data): Likewise.
2233 * c-lang.h (c_compute_program): Update comment.
2234 (cplus_compute_program): Likewise.
2235 * compile/compile-c-support.c (c_compute_program): Likewise.
2236 (cplus_compute_program): Likewise.
2237 * compile/compile.c (compile_to_object): Update call to
2238 la_compute_program.
2239 * d-lang.c (d_language_data): Delete la_compute_program
2240 initializer.
2241 * f-lang.c (f_language_data): Likewise.
2242 * go-lang.c (go_language_data): Likewise.
2243 * language.c (unknown_language_data): Likewise.
2244 (auto_language_data): Likewise.
2245 * language.h (language_data): Delete la_compute_program field.
2246 (language_defn::compute_program): New member function.
2247 * m2-lang.c (m2_language_data): Delete la_compute_program
2248 initializer.
2249 * objc-lang.c (objc_language_data): Likewise.
2250 * opencl-lang.c (opencl_language_data): Likewise.
2251 * p-lang.c (pascal_language_data): Likewise.
2252 * rust-lang.c (rust_language_data): Likewise.
2253
2254 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2255
2256 * ada-lang.c (ada_language_data) Delete
2257 la_class_name_from_physname initializer.
2258 * c-lang.c (c_language_data): Likewise.
2259 (cplus_language_data): Likewise.
2260 (cplus_language::class_name_from_physname): New member function.
2261 (asm_language_data): Delete la_class_name_from_physname
2262 initializer.
2263 (minimal_language_data): Likewise.
2264 * d-lang.c (d_language_data): Likewise.
2265 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2266 method on language_defn class.
2267 (guess_full_die_structure_name): Likewise.
2268 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2269 initializer.
2270 * go-lang.c (go_language_data): Likewise.
2271 * language.c (language_class_name_from_physname): Delete.
2272 (unk_lang_class_name): Delete.
2273 (unknown_language_data): Delete la_class_name_from_physname
2274 initializer.
2275 (auto_language_data): Likewise.
2276 * language.h (language_data): Delete la_class_name_from_physname
2277 field.
2278 (language_defn::class_name_from_physname): New function.
2279 (language_class_name_from_physname): Delete declaration.
2280 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2281 initializer.
2282 * objc-lang.c (objc_language_data): Likewise.
2283 * opencl-lang.c (opencl_language_data): Likewise.
2284 * p-lang.c (pascal_language_data): Likewise.
2285 * rust-lang.c (rust_language_data): Likewise.
2286
2287 2020-06-16 Tom Tromey <tom@tromey.com>
2288
2289 * tui/tui-data.h (STATUS_NAME): New macro.
2290 * tui/tui-layout.c (tui_remove_some_windows)
2291 (initialize_known_windows, tui_register_window)
2292 (tui_layout_split::remove_windows, initialize_layouts)
2293 (tui_new_layout_command): Don't use hard-coded window names.
2294
2295 2020-06-16 Tom Tromey <tom@tromey.com>
2296
2297 PR tui/25348:
2298 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2299 tui_initialize_readline. Only run once. Call rl_initialize.
2300 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2301 tui_initialize_readline.
2302 * tui/tui-io.c (tui_setup_io): Call
2303 tui_ensure_readline_initialized.
2304 * tui/tui-interp.c (tui_interp::init): Update.
2305
2306 2020-06-16 Tom Tromey <tom@tromey.com>
2307
2308 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2309 Also preserve the status window.
2310
2311 2020-06-16 Tom Tromey <tom@tromey.com>
2312
2313 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2314 where m_window==nullptr.
2315
2316 2020-06-15 Tom Tromey <tromey@adacore.com>
2317
2318 * windows-nat.c (windows_nat::handle_output_debug_string):
2319 Update.
2320 (windows_nat::handle_ms_vc_exception): Update.
2321 * target.h (target_read_string): Change API.
2322 * target.c (target_read_string): Change API.
2323 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2324 Update.
2325 * solib-frv.c (frv_current_sos): Update.
2326 * solib-dsbt.c (dsbt_current_sos): Update.
2327 * solib-darwin.c (darwin_current_sos): Update.
2328 * linux-thread-db.c (inferior_has_bug): Update.
2329 * expprint.c (print_subexp_standard): Update.
2330 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2331 (ada_exception_message_1): Update.
2332
2333 2020-06-15 Tom Tromey <tromey@adacore.com>
2334
2335 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2336
2337 2020-06-15 Tom Tromey <tromey@adacore.com>
2338
2339 * valprint.c (read_string): Update comment.
2340 * target.c (MIN): Remove.
2341 (target_read_string): Rewrite.
2342
2343 2020-06-15 Tom Tromey <tromey@adacore.com>
2344
2345 * corefile.c (read_memory_string): Remove.
2346 * ada-valprint.c (ada_value_print_ptr): Update.
2347 * ada-lang.h (ada_tag_name): Change return type.
2348 * ada-lang.c (type_from_tag): Update.
2349 (ada_tag_name_from_tsd): Change return type. Use
2350 target_read_string.
2351 (ada_tag_name): Likewise.
2352 * gdbcore.h (read_memory_string): Don't declare.
2353
2354 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2355
2356 * symtab.c (rbreak_command): Ignore Windows drive colon.
2357
2358 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2359
2360 * NEWS: Mention removed GDBserver host support.
2361
2362 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2363
2364 * features/riscv/rebuild-csr-xml.sh: Updated.
2365
2366 2020-06-11 Tom Tromey <tom@tromey.com>
2367
2368 PR gdb/18318:
2369 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2370
2371 2020-06-09 Jonny Grant <jg@jguk.org>
2372 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2373
2374 * main.c (captured_main_1): Don't print new line after help.
2375 (print_gdb_help): add mailing list and IRC channel information
2376 to --help. Add new lines between items in the footer. Remove
2377 quotes around bug url.
2378
2379 2020-06-11 Keith Seitz <keiths@redhat.com>
2380
2381 PR gdb/21356
2382 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2383 Resolve typedefs for type length calculations.
2384
2385 2020-06-10 Tom de Vries <tdevries@suse.de>
2386
2387 PR ada/24713
2388 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2389 (write_psymbols): Enable .gdb_index for ada.
2390 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2391 ada.
2392
2393 2020-06-10 Tom de Vries <tdevries@suse.de>
2394
2395 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2396 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2397 namei" instead of "const char *name" argument.
2398 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2399 dw2_symtab_iter_init.
2400
2401 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2402
2403 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2404 to use type::field and field::type instead.
2405
2406 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2407
2408 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2409 to use field::type instead.
2410
2411 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2412
2413 * gdbtypes.h (struct field) <type, set_type>: New methods.
2414 Rename `type` field to...
2415 <m_type>: ... this. Change references throughout to use type or
2416 set_type methods.
2417 (FIELD_TYPE): Use field::type. Change call sites that modify
2418 the field's type to use field::set_type instead.
2419
2420 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2421
2422 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2423 to use type::index_type instead.
2424
2425 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2426
2427 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2428 methods.
2429 (TYPE_INDEX_TYPE): Use type::index_type.
2430 * gdbtypes.c (create_array_type_with_stride): Likewise.
2431
2432 2020-06-07 Tom Tromey <tom@tromey.com>
2433
2434 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2435 parameter.
2436 (generic_value_print): Update.
2437
2438 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 Revert commit 982a38f60b0.
2441 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2442
2443 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2444
2445 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2446 avoid use after free.
2447
2448 2020-06-05 Tom de Vries <tdevries@suse.de>
2449
2450 * NEWS: Fix typos.
2451
2452 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2453
2454 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2455 the per_bfd object.
2456 (dwarf2_read_debug_names): Likewise.
2457 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2458 object when re-using a per_bfd object with an index.
2459
2460 2020-06-03 Tom de Vries <tdevries@suse.de>
2461
2462 PR symtab/26046
2463 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2464 children for C++.
2465 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2466 DW_TAG_subprogram.
2467
2468 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2469
2470 * ada-lang.c (ada_language_data): Delete skip_trampoline
2471 initializer.
2472 * c-lang.c (c_language_data): Likewise.
2473 (cplus_language_data): Likewise.
2474 (cplus_language::skip_trampoline): New member function.
2475 (asm_language_data): Delete skip_trampoline initializer.
2476 (minimal_language_data): Likewise.
2477 * d-lang.c (d_language_data): Likewise.
2478 * f-lang.c (f_language_data): Likewise.
2479 * go-lang.c (go_language_data): Likewise.
2480 * language.c (unk_lang_trampoline): Delete function.
2481 (skip_language_trampoline): Update.
2482 (unknown_language_data): Delete skip_trampoline initializer.
2483 (auto_language_data): Likewise.
2484 * language.h (language_data): Delete skip_trampoline field.
2485 (language_defn::skip_trampoline): New function.
2486 * m2-lang.c (m2_language_data): Delete skip_trampoline
2487 initializer.
2488 * objc-lang.c (objc_skip_trampoline): Delete function, move
2489 implementation to objc_language::skip_trampoline.
2490 (objc_language_data): Delete skip_trampoline initializer.
2491 (objc_language::skip_trampoline): New member function with
2492 implementation from objc_skip_trampoline.
2493 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2494 initializer.
2495 * p-lang.c (pascal_language_data): Likewise.
2496 * rust-lang.c (rust_language_data): Likewise.
2497
2498 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2501 (ada_language::demangle): New member function.
2502 * c-lang.c (c_language_data): Delete la_demangle initializer.
2503 (cplus_language_data): Delete la_demangle initializer.
2504 (cplus_language::demangle): New member function.
2505 (asm_language_data): Delete la_demangle initializer.
2506 (minimal_language_data): Delete la_demangle initializer.
2507 * d-lang.c (d_language_data): Delete la_demangle initializer.
2508 (d_language::demangle): New member function.
2509 * f-lang.c (f_language_data): Delete la_demangle initializer.
2510 (f_language::demangle): New member function.
2511 * go-lang.c (go_language_data): Delete la_demangle initializer.
2512 (go_language::demangle): New member function.
2513 * language.c (language_demangle): Update.
2514 (unk_lang_demangle): Delete.
2515 (unknown_language_data): Delete la_demangle initializer.
2516 (unknown_language::demangle): New member function.
2517 (auto_language_data): Delete la_demangle initializer.
2518 (auto_language::demangle): New member function.
2519 * language.h (language_data): Delete la_demangle field.
2520 (language_defn::demangle): New function.
2521 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2522 * objc-lang.c (objc_language_data): Delete la_demangle
2523 initializer.
2524 (objc_language::demangle): New member function.
2525 * opencl-lang.c (opencl_language_data): Delete la_demangle
2526 initializer.
2527 * p-lang.c (pascal_language_data): Likewise.
2528 * rust-lang.c (rust_language_data): Likewise.
2529 (rust_language::demangle): New member function.
2530
2531 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2532
2533 * ada-lang.c (ada_language_data): Delete la_print_type
2534 initializer.
2535 (ada_language::print_type): New member function.
2536 * c-lang.c (c_language_data): Delete la_print_type initializer.
2537 (c_language::print_type): New member function.
2538 (cplus_language_data): Delete la_print_type initializer.
2539 (cplus_language::print_type): New member function.
2540 (asm_language_data): Delete la_print_type initializer.
2541 (asm_language::print_type): New member function.
2542 (minimal_language_data): Delete la_print_type initializer.
2543 (minimal_language::print_type): New member function.
2544 * d-lang.c (d_language_data): Delete la_print_type initializer.
2545 (d_language::print_type): New member function.
2546 * f-lang.c (f_language_data): Delete la_print_type initializer.
2547 (f_language::print_type): New member function.
2548 * go-lang.c (go_language_data): Delete la_print_type initializer.
2549 (go_language::print_type): New member function.
2550 * language.c (unk_lang_print_type): Delete.
2551 (unknown_language_data): Delete la_print_type initializer.
2552 (unknown_language::print_type): New member function.
2553 (auto_language_data): Delete la_print_type initializer.
2554 (auto_language::print_type): New member function.
2555 * language.h (language_data): Delete la_print_type field.
2556 (language_defn::print_type): New function.
2557 (LA_PRINT_TYPE): Update.
2558 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2559 (m2_language::print_type): New member function.
2560 * objc-lang.c (objc_language_data): Delete la_print_type
2561 initializer.
2562 (objc_language::print_type): New member function.
2563 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2564 to opencl_language::print_type.
2565 (opencl_language_data): Delete la_print_type initializer.
2566 (opencl_language::print_type): New member function, implementation
2567 from opencl_print_type.
2568 * p-lang.c (pascal_language_data): Delete la_print_type
2569 initializer.
2570 (pascal_language::print_type): New member function.
2571 * rust-lang.c (rust_print_type): Delete, implementation moved to
2572 rust_language::print_type.
2573 (rust_language_data): Delete la_print_type initializer.
2574 (rust_language::print_type): New member function, implementation
2575 from rust_print_type.
2576
2577 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2578
2579 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2580 implementation moves to...
2581 (ada_language::sniff_from_mangled_name): ...here. Update return
2582 type.
2583 (ada_language_data): Delete la_sniff_from_mangled_name
2584 initializer.
2585 * c-lang.c (c_language_data): Likewise.
2586 (cplus_language_data): Likewise.
2587 (cplus_language::sniff_from_mangled_name): New member function,
2588 implementation taken from gdb_sniff_from_mangled_name.
2589 (asm_language_data): Delete la_sniff_from_mangled_name
2590 initializer.
2591 (minimal_language_data): Likewise.
2592 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2593 implementation moves to cplus_language::sniff_from_mangled_name.
2594 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2595 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2596 moves to...
2597 (d_language::sniff_from_mangled_name): ...here.
2598 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2599 * f-lang.c (f_language_data): Likewise.
2600 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2601 moves to...
2602 (go_language::sniff_from_mangled_name): ...here.
2603 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2604 * language.c (language_sniff_from_mangled_name): Delete.
2605 (unknown_language_data): Delete la_sniff_from_mangled_name
2606 initializer.
2607 (auto_language_data): Likewise.
2608 * language.h (language_data): Delete la_sniff_from_mangled_name
2609 field.
2610 (language_defn::sniff_from_mangled_name): New function.
2611 (language_sniff_from_mangled_name): Delete declaration.
2612 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2613 field.
2614 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2615 implementation moves to...
2616 (objc_language::sniff_from_mangled_name): ...here.
2617 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2618 * opencl-lang.c (opencl_language_data): Likewise.
2619 * p-lang.c (pascal_language_data): Likewise.
2620 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2621 implementation moves to...
2622 (rust_language::sniff_from_mangled_name): ...here.
2623 (rust_language_data): Delete la_sniff_from_mangled_name
2624 initializer.
2625 * symtab.c (symbol_find_demangled_name): Call
2626 sniff_from_mangled_name member function.
2627
2628 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2629
2630 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2631 initializer.
2632 * c-lang.c (c_language_data): Likewise.
2633 (cplus_language_data): Likewise.
2634 (cplus_language::search_name_hash): New member function.
2635 (asm_language_data): Delete la_search_name_hash initializer.
2636 (minimal_language_data): Likewise.
2637 * d-lang.c (d_language_data): Likewise.
2638 * dictionary.c (default_search_name_hash): Rename to...
2639 (language_defn::search_name_hash): ...this.
2640 * f-lang.c (f_language_data): Likewise.
2641 (f_language::search_name_hash): New member function.
2642 * go-lang.c (go_language_data): Delete la_search_name_hash
2643 initializer.
2644 * language.c (unknown_language_data): Likewise.
2645 (auto_language_data): Likewise.
2646 * language.h (struct language_data): Delete la_search_name_hash
2647 field.
2648 (language_defn::search_name_hash): Declare new member function.
2649 (default_search_name_hash): Delete declaration.
2650 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2651 initializer.
2652 * objc-lang.c (objc_language_data): Likewise.
2653 * opencl-lang.c (opencl_language_data): Likewise.
2654 * p-lang.c (pascal_language_data): Likewise.
2655 * rust-lang.c (rust_language_data): Likewise.
2656 * symtab.c (search_name_hash): Update call.
2657
2658 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2659
2660 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2661 initializer.
2662 * c-lang.c (class compile_instance): Declare.
2663 (c_language_data): Delete la_get_compile_instance initializer.
2664 (c_language::get_compile_instance): New member function.
2665 (cplus_language_data): Delete la_get_compile_instance initializer.
2666 (cplus_language::get_compile_instance): New member function.
2667 (asm_language_data): Delete la_get_compile_instance initializer.
2668 (minimal_language_data): Likewise.
2669 * c-lang.h (c_get_compile_context): Update comment.
2670 (cplus_get_compile_context): Update comment.
2671 * compile/compile.c (compile_to_object): Update calls, don't rely
2672 on function pointer being NULL.
2673 * d-lang.c (d_language_data): Delete la_get_compile_instance
2674 initializer.
2675 * f-lang.c (f_language_data): Likewise.
2676 * go-lang.c (go_language_data): Likewise.
2677 * language.c (unknown_language_data): Likewise.
2678 (auto_language_data): Likewise.
2679 * language.h (language_data): Delete la_get_compile_instance field.
2680 (language_defn::get_compile_instance): New member function.
2681 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2682 initializer.
2683 * objc-lang.c (objc_language_data): Likewise.
2684 * opencl-lang.c (opencl_language_data): Likewise.
2685 * p-lang.c (pascal_language_data): Likewise.
2686 * rust-lang.c (rust_language_data): Likewise.
2687
2688 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2689
2690 * ada-lang.c (ada_add_all_symbols): Update comment.
2691 (ada_iterate_over_symbols): Delete, move implementation to...
2692 (ada_language::iterate_over_symbols): ...here, a new member
2693 function, rewrite to use range based for loop.
2694 (ada_language_data): Delete la_iterate_over_symbols initializer.
2695 * c-lang.c (c_language_data): Likewise.
2696 (cplus_language_data): Likewise.
2697 (asm_language_data): Likewise.
2698 (minimal_language_data): Likewise.
2699 * d-lang.c (d_language_data): Likewise.
2700 * f-lang.c (f_language_data): Likewise.
2701 * go-lang.c (go_language_data): Likewise.
2702 * language.c (unknown_language_data): Likewise.
2703 (auto_language_data): Likewise.
2704 * language.h (language_data): Delete la_iterate_over_symbols field.
2705 (language_defn::iterate_over_symbols): New member function.
2706 (LA_ITERATE_OVER_SYMBOLS): Update.
2707 * linespec.c (iterate_over_all_matching_symtabs): Update.
2708 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2709 initializer.
2710 * objc-lang.c (objc_language_data): Likewise.
2711 * opencl-lang.c (opencl_language_data): Likewise.
2712 * p-lang.c (pascal_language_data): Likewise.
2713 * rust-lang.c (rust_language_data): Likewise.
2714
2715 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2716
2717 * ada-lang.c (ada_language_data): Delete
2718 la_lookup_transparent_type initializer.
2719 * c-lang.c (c_language_data): Likewise.
2720 (cplus_language_data): Likewise.
2721 (cplus_language::lookup_transparent_type): New member function.
2722 (asm_language_data): Delete la_lookup_transparent_type
2723 initializer.
2724 (minimal_language_data): Likewise.
2725 * d-lang.c (d_language_data): Likewise.
2726 * f-lang.c (f_language_data): Likewise.
2727 * go-lang.c (go_language_data): Likewise.
2728 * language.c (unknown_language_data): Likewise.
2729 (auto_language_data): Likewise.
2730 * language.h (struct language_data): Delete
2731 la_lookup_transparent_type field.
2732 (language_defn::lookup_transparent_type): New member function.
2733 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2734 initializer.
2735 * objc-lang.c (objc_language_data): Likewise.
2736 * opencl-lang.c (opencl_language_data): Likewise.
2737 * p-lang.c (pascal_language_data): Likewise.
2738 * rust-lang.c (rust_language_data): Likewise.
2739 * symtab.c (symbol_matches_domain): Update call.
2740
2741 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2742
2743 * ada-lang.c (ada_language_arch_info): Delete function, move
2744 implementation to...
2745 (ada_language::language_arch_info): ...here, a new member
2746 function.
2747 (ada_language_data): Delete la_language_arch_info.
2748 * c-lang.c (c_language_data): Likewise.
2749 (c_language::language_arch_info): New member function.
2750 (cplus_language_arch_info): Delete function, move
2751 implementation to...
2752 (cplus_language::language_arch_info): ...here, a new member
2753 function.
2754 (cplus_language_data): Delete la_language_arch_info.
2755 (asm_language_data): Likewise.
2756 (asm_language::language_arch_info): New member function.
2757 (minimal_language_data): Delete la_language_arch_info.
2758 (minimal_language::language_arch_info): New member function.
2759 * d-lang.c (d_language_arch_info): Delete function, move
2760 implementation to...
2761 (d_language::language_arch_info): ...here, a new member
2762 function.
2763 (d_language_data): Delete la_language_arch_info.
2764 * f-lang.c (f_language_arch_info): Delete function, move
2765 implementation to...
2766 (f_language::language_arch_info): ...here, a new member
2767 function.
2768 (f_language_data): Delete la_language_arch_info.
2769 * go-lang.c (go_language_arch_info): Delete function, move
2770 implementation to...
2771 (go_language::language_arch_info): ...here, a new member
2772 function.
2773 (go_language_data): Delete la_language_arch_info.
2774 * language.c (unknown_language_data): Likewise.
2775 (unknown_language::language_arch_info): New member function.
2776 (auto_language_data): Delete la_language_arch_info.
2777 (auto_language::language_arch_info): New member function.
2778 (language_gdbarch_post_init): Update call to
2779 la_language_arch_info.
2780 * language.h (language_data): Delete la_language_arch_info
2781 function pointer.
2782 (language_defn::language_arch_info): New function.
2783 * m2-lang.c (m2_language_arch_info): Delete function, move
2784 implementation to...
2785 (m2_language::language_arch_info): ...here, a new member
2786 function.
2787 (m2_language_data): Delete la_language_arch_info.
2788 * objc-lang.c (objc_language_arch_info): Delete function, move
2789 implementation to...
2790 (objc_language::language_arch_info): ...here, a new member
2791 function.
2792 (objc_language_data): Delete la_language_arch_info.
2793 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2794 implementation to...
2795 (opencl_language::language_arch_info): ...here, a new member
2796 function.
2797 (opencl_language_data): Delete la_language_arch_info.
2798 * p-lang.c (pascal_language_arch_info): Delete function, move
2799 implementation to...
2800 (pascal_language::language_arch_info): ...here, a new member
2801 function.
2802 (pascal_language_data): Delete la_language_arch_info.
2803 * rust-lang.c (rust_language_arch_info): Delete function, move
2804 implementation to...
2805 (rust_language::language_arch_info): ...here, a new member
2806 function.
2807 (rust_language_data): Delete la_language_arch_info.
2808
2809 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2810
2811 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2812 initializer.
2813 * c-lang.c (c_language_data): Likewise.
2814 (cplus_language_data): Likewise.
2815 (cplus_language::pass_by_reference_info): New method.
2816 (asm_language_data): Delete la_pass_by_reference initializer.
2817 (minimal_language_data): Likewise.
2818 * cp-abi.c (cp_pass_by_reference): Remove use of
2819 default_pass_by_reference.
2820 * d-lang.c (d_language_data): Likewise.
2821 * f-lang.c (f_language_data): Likewise.
2822 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2823 default_pass_by_reference.
2824 * go-lang.c (go_language_data): Likewise.
2825 * language.c (language_pass_by_reference): Update.
2826 (default_pass_by_reference): Delete.
2827 (unknown_language_data): Delete la_pass_by_reference
2828 initializer.
2829 (auto_language_data): Likewise.
2830 * language.h (struct language_data): Delete la_pass_by_reference
2831 field.
2832 (language_defn::pass_by_reference_info): New member function.
2833 (default_pass_by_reference): Delete declaration.
2834 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2835 initializer.
2836 * objc-lang.c (objc_language_data): Likewise.
2837 * opencl-lang.c (opencl_language_data): Likewise.
2838 * p-lang.c (pascal_language_data): Likewise.
2839 * rust-lang.c (rust_language_data): Likewise.
2840
2841 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2842
2843 * ada-lang.c (ada_read_var_value): Delete function, move
2844 implementation to...
2845 (ada_language::read_var_value): ...here.
2846 (ada_language_data): Delete la_read_var_value initializer.
2847 * c-lang.c (c_language_data): Likewise.
2848 (cplus_language_data): Likewise.
2849 (minimal_language_data): Likewise.
2850 * d-lang.c (d_language_data): Likewise.
2851 * f-lang.c (f_language_data): Likewise.
2852 * findvar.c (default_read_var_value): Rename to...
2853 (language_defn::read_var_value): ...this.
2854 * findvar.c (read_var_value): Update header comment, and change to
2855 call member function instead of function pointer.
2856 * go-lang.c (go_language_data): Likewise.
2857 * language.c (unknown_language_data): Delete la_read_var_value
2858 initializer.
2859 (auto_language_data): Likewise.
2860 * language.h (struct language_data): Delete la_read_var_value
2861 field.
2862 (language_defn::read_var_value): New member function.
2863 (default_read_var_value): Delete declaration.
2864 * m2-lang.c (m2_language_data): Delete la_read_var_value
2865 initializer.
2866 * objc-lang.c (objc_language_data): Likewise.
2867 * opencl-lang.c (opencl_language_data): Likewise.
2868 * p-lang.c (pascal_language_data): Likewise.
2869 * rust-lang.c (rust_language_data): Likewise.
2870 * value.h (default_read_var_value): Delete declaration.
2871
2872 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2873
2874 * ada-lang.c (ada_print_array_index): Delete function, move
2875 implementation to...
2876 (ada_language::print_array_index): ...here.
2877 (ada_language_data): Delete la_print_array_index initializer.
2878 * c-lang.c (c_language_data): Likewise.
2879 (cplus_language_data): Likewise.
2880 (minimal_language_data): Likewise.
2881 * d-lang.c (d_language_data): Likewise.
2882 * f-lang.c (f_language_data): Likewise.
2883 * go-lang.c (go_language_data): Likewise.
2884 * language.c (default_print_array_index): Delete function, move
2885 implementation to...
2886 (language_defn::print_array_index): ...here.
2887 (unknown_language_data): Delete la_print_array_index initializer.
2888 (auto_language_data): Likewise.
2889 * language.h (struct language_data): Delete la_print_array_index
2890 field.
2891 (language_defn::print_array_index): New member function.
2892 (LA_PRINT_ARRAY_INDEX): Update.
2893 (default_print_array_index): Delete declaration.
2894 * m2-lang.c (m2_language_data): Delete la_print_array_index
2895 initializer.
2896 * objc-lang.c (objc_language_data): Likewise.
2897 * opencl-lang.c (opencl_language_data): Likewise.
2898 * p-lang.c (pascal_language_data): Likewise.
2899 * rust-lang.c (rust_language_data): Likewise.
2900
2901 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2902
2903 * gdb/ada-lang.c (ada_language_defn): Convert to...
2904 (ada_language_data): ...this.
2905 (class ada_language): New class.
2906 (ada_language_defn): New static global.
2907 * gdb/c-lang.c (c_language_defn): Convert to...
2908 (c_language_data): ...this.
2909 (class c_language): New class.
2910 (c_language_defn): New static global.
2911 (cplus_language_defn): Convert to...
2912 (cplus_language_data): ...this.
2913 (class cplus_language): New class.
2914 (cplus_language_defn): New static global.
2915 (asm_language_defn): Convert to...
2916 (asm_language_data): ...this.
2917 (class asm_language): New class.
2918 (asm_language_defn): New static global.
2919 (minimal_language_defn): Convert to...
2920 (minimal_language_data): ...this.
2921 (class minimal_language): New class.
2922 (minimal_language_defn): New static global.
2923 * gdb/d-lang.c (d_language_defn): Convert to...
2924 (d_language_data): ...this.
2925 (class d_language): New class.
2926 (d_language_defn): New static global.
2927 * gdb/f-lang.c (f_language_defn): Convert to...
2928 (f_language_data): ...this.
2929 (class f_language): New class.
2930 (f_language_defn): New static global.
2931 * gdb/go-lang.c (go_language_defn): Convert to...
2932 (go_language_data): ...this.
2933 (class go_language): New class.
2934 (go_language_defn): New static global.
2935 * gdb/language.c (unknown_language_defn): Remove declaration.
2936 (current_language): Initialize to nullptr, real initialization is
2937 moved to _initialize_language.
2938 (languages): Delete global.
2939 (language_defn::languages): Define.
2940 (set_language_command): Use language_defn::languages.
2941 (set_language): Likewise.
2942 (range_error): Likewise.
2943 (language_enum): Likewise.
2944 (language_def): Likewise.
2945 (add_set_language_command): Use language_def::languages for the
2946 language list, and language_def to lookup language pointers.
2947 (skip_language_trampoline): Use language_defn::languages.
2948 (unknown_language_defn): Convert to...
2949 (unknown_language_data): ...this.
2950 (class unknown_language): New class.
2951 (unknown_language_defn): New static global.
2952 (auto_language_defn): Convert to...
2953 (auto_language_data): ...this.
2954 (class auto_language): New class.
2955 (auto_language_defn): New static global.
2956 (language_gdbarch_post_init): Use language_defn::languages.
2957 (_initialize_language): Initialize current_language.
2958 * gdb/language.h (struct language_defn): Rename to...
2959 (struct language_data): ...this.
2960 (struct language_defn): New.
2961 (auto_language_defn): Delete.
2962 (unknown_language_defn): Delete.
2963 (minimal_language_defn): Delete.
2964 (ada_language_defn): Delete.
2965 (asm_language_defn): Delete.
2966 (c_language_defn): Delete.
2967 (cplus_language_defn): Delete.
2968 (d_language_defn): Delete.
2969 (f_language_defn): Delete.
2970 (go_language_defn): Delete.
2971 (m2_language_defn): Delete.
2972 (objc_language_defn): Delete.
2973 (opencl_language_defn): Delete.
2974 (pascal_language_defn): Delete.
2975 (rust_language_defn): Delete.
2976 * gdb/m2-lang.c (m2_language_defn): Convert to...
2977 (m2_language_data): ...this.
2978 (class m2_language): New class.
2979 (m2_language_defn): New static global.
2980 * gdb/objc-lang.c (objc_language_defn): Convert to...
2981 (objc_language_data): ...this.
2982 (class objc_language): New class.
2983 (objc_language_defn): New static global.
2984 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2985 (opencl_language_data): ...this.
2986 (class opencl_language): New class.
2987 (opencl_language_defn): New static global.
2988 * gdb/p-lang.c (pascal_language_defn): Convert to...
2989 (pascal_language_data): ...this.
2990 (class pascal_language): New class.
2991 (pascal_language_defn): New static global.
2992 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2993 language pointer, update comment format.
2994 * gdb/rust-lang.c (rust_language_defn): Convert to...
2995 (rust_language_data): ...this.
2996 (class rust_language): New class.
2997 (rust_language_defn): New static global.
2998
2999 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3000
3001 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3002 member variable.
3003 <m_stmt_at_address>: New member variable.
3004 (lnp_state_machine::record_line): Don't record some lines, update
3005 tracking of is_stmt at the same address.
3006 (lnp_state_machine::lnp_state_machine): Initialise new member
3007 variables.
3008
3009 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3010
3011 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3012 "-include gnu-nat-mig.h".
3013 * gnu-nat-mig.h: New file.
3014 * gnu-nat.c: Include "gnu-nat-mig.h".
3015 (exc_server, msg_reply_server, notify_server,
3016 process_reply_server): Remove declarations.
3017
3018 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3019
3020 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3021 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3022 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3023 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3024 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3025 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3026 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3027 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3028 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3029 to gnu_nat_target class.
3030 * gnu-nat.c: Likewise.
3031 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3032 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3033 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3034 object.
3035 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3036 instead of `gnu_target'.
3037
3038 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3039
3040 * i386-gnu-tdep.c: Include "gdbcore.h"
3041 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3042 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3043 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3044 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3045 i386_gnu_sigcontext_addr): New functions
3046 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3047 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3048 tdep.
3049
3050 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3051
3052 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3053 before fork_inferior call. Avoid calling it if target_is_pushed returns
3054 true.
3055
3056 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3057
3058 * gnu-nat.h (gnu_target): New variable declaration.
3059 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3060 gnu_target.
3061 * gnu-nat.c (gnu_target): New variable.
3062 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3063 add_thread_silent, and add_thread calls.
3064 (gnu_nat_target::create_inferior): Pass gnu_target to
3065 add_thread_silent, thread_change_ptid call.
3066 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3067 call.
3068
3069 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3070
3071 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3072 (gnu_nat_target::find_memory_regions): Remove unused
3073 `old_address' variable.
3074
3075 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3076
3077 * gnu-nat.c: Include "gdbarch.h".
3078
3079 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3080
3081 * reply_mig_hack.awk (Error return): Cast function through
3082 void *, to bypass compiler function call check.
3083
3084 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3085
3086 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3087 $(srcdir)/reply_mig_hack.awk.
3088
3089 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3090
3091 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3092
3093 2020-05-30 Jonny Grant <jg@jguk.org>
3094
3095 * configure.ac (ACX_BUGURL): change bug URL to https.
3096
3097 2020-05-30 Pedro Alves <palves@redhat.com>
3098
3099 * cp-support.c (replace_typedefs_template): New.
3100 (replace_typedefs_qualified_name): Handle
3101 DEMANGLE_COMPONENT_TEMPLATE.
3102
3103 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3104
3105 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3106 dwarf2/index-cache.h, dwarf2/index-write.c,
3107 dwarf2/index-write.h, dwarf2/line-header.c,
3108 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3109 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3110 variables and fields from `dwarf2_per_objfile` to just
3111 `per_objfile` throughout.
3112
3113 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3114
3115 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3116 <push_dwarf_reg_entry_value>: Add comment.
3117
3118 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3119 Keith Seitz <keiths@redhat.com>
3120
3121 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3122 instead of PyEval_ReleaseLock.
3123 (class gdbpy_gil): Move to earlier in file.
3124 (finalize_python): Set gdb_python_initialized.
3125 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3126 when not initialized.
3127
3128 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3129
3130 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3131 <push_dwarf_reg_entry_value>: Remove assert. Override
3132 per_objfile with caller_per_objfile.
3133
3134 2020-05-28 Tom de Vries <tdevries@suse.de>
3135
3136 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3137 PR gold/15646 workaround to symbol kind "type".
3138
3139 2020-05-27 Tom Tromey <tromey@adacore.com>
3140
3141 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3142
3143 2020-05-27 Tom Tromey <tromey@adacore.com>
3144
3145 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3146 Use htab_find_with_hash.
3147 <add_abbrev>: Remove "abbrev_number" parameter.
3148 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3149 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3150 (hash_abbrev): Add comment.
3151 (abbrev_table::lookup_abbrev): Move to header file.
3152 (abbrev_table::read): Update.
3153
3154 2020-05-27 Tom Tromey <tromey@adacore.com>
3155
3156 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3157 method.
3158 <canonical_name>: New member.
3159 <raw_name>: Rename from "name".
3160 (partial_die_info): Initialize canonical_name.
3161 (scan_partial_symbols): Check raw_name.
3162 (partial_die_parent_scope, partial_die_full_name)
3163 (add_partial_symbol, add_partial_subprogram)
3164 (add_partial_enumeration, load_partial_dies): Use "name" method.
3165 (partial_die_info::name): New method.
3166 (partial_die_info::read, guess_partial_die_structure_name)
3167 (partial_die_info::fixup): Update.
3168
3169 2020-05-27 Tom Tromey <tromey@adacore.com>
3170
3171 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3172 <get_ref_die_offset>: Inline.
3173 <get_ref_die_offset_complaint>: New method.
3174 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3175 (attribute::get_ref_die_offset_complaint): Rename from
3176 get_ref_die_offset. Just issue complaint.
3177
3178 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3179
3180 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3181
3182 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3183
3184 * exec.c (exec_file_attach): Use errno value of first openp failure.
3185
3186 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3187
3188 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3189 Don't close thread handle.
3190
3191 2020-05-27 Tom Tromey <tom@tromey.com>
3192 Simon Marchi <simon.marchi@efficios.com>
3193
3194 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3195 shared_ptr.
3196 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3197 member.
3198 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3199 dwarf2_per_bfd_objfile_data_key>: New globals.
3200 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3201 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3202 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3203 shared.
3204 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3205 short-circuit when sharing.
3206 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3207 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3208
3209 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3210
3211 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3212 to...
3213 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3214 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3215
3216 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3217
3218 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3219 build_name_components, find_name_components_bounds>:
3220 Add per_objfile parameter.
3221 (struct mapped_index) <symbol_name_at>: Likewise.
3222 (struct mapped_debug_names): Remove constructor.
3223 <dwarf2_per_objfile>: Remove field.
3224 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3225 (mapped_index_base::find_name_components_bounds,
3226 mapped_index_base::build_name_components,
3227 dw2_expand_symtabs_matching_symbol): Likewise.
3228 (class mock_mapped_index) <symbol_name_at>: Likewise.
3229 (check_match): Likewise.
3230 (check_find_bounds_finds): Likewise.
3231 (test_mapped_index_find_name_component_bounds): Update.
3232 (CHECK_MATCH): Update.
3233 (dw2_expand_symtabs_matching): Update.
3234 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3235 per_objfile parameter.
3236 <find_vec_in_debug_names>: Likewise.
3237 <m_per_objfile>: New field.
3238 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3239 parameter.
3240 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3241 (dw2_debug_names_iterator::next): Update.
3242 (dw2_debug_names_lookup_symbol): Update.
3243 (dw2_debug_names_expand_symtabs_for_function): Update.
3244 (dw2_debug_names_map_matching_symbols): Update.
3245 (dw2_debug_names_expand_symtabs_matching): Update.
3246 (dwarf2_read_debug_names): Update.
3247
3248 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3249
3250 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3251 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3252 move to dwarf2_per_objfile.
3253 <read_in_chain>: Remove.
3254 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3255 remove_all_cus, age_comp_units>: New methods.
3256 <m_dwarf2_cus>: New member.
3257 (struct dwarf2_per_cu_data) <cu>: Remove.
3258 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3259 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3260 moved to methods of dwarf2_per_objfile.
3261 (dwarf2_clear_marks): Remove.
3262 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3263 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3264 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3265 (dwarf2_per_objfile::remove_all_cus): New.
3266 (class free_cached_comp_units) <~free_cached_comp_units>:
3267 Update.
3268 (load_cu): Update.
3269 (dw2_do_instantiate_symtab): Adjust.
3270 (fill_in_sig_entry_from_dwo_entry): Adjust.
3271 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3272 (cutu_reader::cutu_reader): Likewise.
3273 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3274 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3275 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3276 and dwarf2_per_objfile::age_comp_units.
3277 (load_partial_comp_unit): Update.
3278 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3279 (process_queue): Likewise.
3280 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3281 backlink.
3282 (dwarf2_read_addr_index): Likewise.
3283 (follow_die_offset): Likewise.
3284 (dwarf2_fetch_die_loc_sect_off): Likewise.
3285 (dwarf2_fetch_constant_bytes): Likewise.
3286 (dwarf2_fetch_die_type_sect_off): Likewise.
3287 (follow_die_sig_1): Likewise.
3288 (load_full_type_unit): Likewise.
3289 (read_signatured_type): Likewise.
3290 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3291 (dwarf2_cu::~dwarf2_cu): Remove.
3292 (dwarf2_per_objfile::get_cu): New.
3293 (dwarf2_per_objfile::set_cu): New.
3294 (age_cached_comp_units): Rename to...
3295 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3296 to std::unordered_map.
3297 (free_one_cached_comp_unit): Rename to...
3298 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3299 to std::unordered_map.
3300 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3301 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3302 a dwarf2_per_objfile in data.
3303 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3304 (dwarf2_clear_marks): Remove.
3305
3306 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3307
3308 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3309 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3310 (init_tu_and_read_dwo_dies): Likewise.
3311 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3312 (cutu_reader::cutu_reader): Likewise.
3313 (load_partial_comp_unit): Likewise.
3314 (process_psymtab_comp_unit): Update.
3315 (build_type_psymtabs_1): Update.
3316 (process_skeletonless_type_unit): Update.
3317 (load_full_comp_unit): Update.
3318 (find_partial_die): Update.
3319 (dwarf2_read_addr_index): Update.
3320 (read_signatured_type): Update.
3321
3322 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3323
3324 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3325 m_header_read_in>: New fields.
3326 <get_header>: New method.
3327 * dwarf2/read.c (per_cu_header_read_in): Remove.
3328 (dwarf2_per_cu_data::get_header): New.
3329 (dwarf2_per_cu_data::addr_size): Update.
3330 (dwarf2_per_cu_data::offset_size): Update.
3331 (dwarf2_per_cu_data::ref_addr_size): Update.
3332
3333 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3334
3335 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3336 (dw2_do_instantiate_symtab): Update.
3337 (queue_and_load_all_dwo_tus): Change parameter from
3338 dwarf2_per_cu_data to dwarf2_cu.
3339 (dwarf2_fetch_die_loc_sect_off): Update.
3340 (dwarf2_fetch_constant_bytes): Update.
3341 (dwarf2_fetch_die_type_sect_off): Update.
3342
3343 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3344
3345 * dwarf2/read.c (process_full_comp_unit,
3346 process_full_type_unit): Remove per_cu, per_objfile paramters.
3347 Add dwarf2_cu parameter.
3348 (process_queue): Update.
3349
3350 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3351
3352 * dwarf2/read.c (create_cu_from_index_list): Replace
3353 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3354 (create_cus_from_index_list): Likewise.
3355 (create_cus_from_index): Likewise.
3356 (create_signatured_type_table_from_index): Likewise.
3357 (create_cus_from_debug_names_list): Likewise.
3358 (create_cus_from_debug_names): Likewise.
3359 (dwarf2_read_gdb_index): Update.
3360 (dwarf2_read_debug_names): Update.
3361
3362 2020-05-27 Tom Tromey <tom@tromey.com>
3363 Simon Marchi <simon.marchi@efficios.com>
3364
3365 * dwarf2/read.h (struct dwarf2_per_objfile)
3366 <get_type_for_signatured_type, set_type_for_signatured_type>:
3367 New methods.
3368 <m_type_map>: New member.
3369 (struct signatured_type) <type>: Remove.
3370 * dwarf2/read.c
3371 (dwarf2_per_objfile::get_type_for_signatured_type,
3372 dwarf2_per_objfile::set_type_for_signatured_type): New.
3373 (get_signatured_type): Use new methods.
3374
3375 2020-05-27 Tom Tromey <tom@tromey.com>
3376 Simon Marchi <simon.marchi@efficios.com>
3377
3378 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3379 (struct dwarf2_per_objfile) <type_units>: New member.
3380 <get_type_unit_group_unshareable>: New method.
3381 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3382 num_symtabs, symtabs>: Remove; move to
3383 type_unit_group_unshareable.
3384 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3385 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3386 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3387
3388 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3389
3390 * dwarf2/read.h (struct dwarf2_per_cu_data):
3391 <dwarf2_per_objfile>: Remove.
3392 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3393 dwarf2_per_objfile.
3394 (create_signatured_type_table_from_index): Likewise.
3395 (create_signatured_type_table_from_debug_names): Likewise.
3396 (create_debug_type_hash_table): Likewise.
3397 (fill_in_sig_entry_from_dwo_entry): Likewise.
3398 (create_type_unit_group): Likewise.
3399 (read_comp_units_from_section): Likewise.
3400 (create_cus_hash_table): Likewise.
3401
3402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3405 dwarf2_per_cu_data::dwarf2_per_objfile.
3406 (compute_compunit_symtab_includes): Likewise.
3407 (dwarf2_cu::start_symtab): Likewise.
3408
3409 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3410
3411 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3412 parameter.
3413 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3414 (read_namespace_alias): Update.
3415 (lookup_die_type): Update.
3416 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3417 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3418 Update.
3419 (disassemble_dwarf_expression): Update.
3420
3421 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3422
3423 * dwarf2/read.h (struct dwarf2_queue_item): Add
3424 dwarf2_per_objfile parameter, assign new parameter.
3425 <per_objfile>: New field.
3426 * dwarf2/read.c (free_one_cached_comp_unit): Add
3427 dwarf2_per_objfile parameter.
3428 (queue_comp_unit): Likewise.
3429 (dw2_do_instantiate_symtab): Update.
3430 (process_psymtab_comp_unit): Update.
3431 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3432 (process_imported_unit_die): Update.
3433 (queue_and_load_dwo_tu): Update.
3434 (follow_die_offset): Update.
3435 (follow_die_sig_1): Update.
3436
3437 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3438
3439 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3440 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3441 (read_call_site_scope): Assign per_objfile.
3442 (dwarf2_per_cu_data::objfile): Remove.
3443 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3444 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3445 dwarf2_per_objfile parameter.
3446 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3447 dwarf2_per_objfile parameter.
3448 (dwarf_expr_reg_to_entry_parameter): Add output
3449 dwarf2_per_objfile parameter.
3450 (locexpr_get_frame_base): Update.
3451 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3452 <push_dwarf_reg_entry_value>: Update.
3453 <call_site_to_target_addr>: Update.
3454 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3455 parameter.
3456 (value_of_dwarf_reg_entry): Update.
3457 (rw_pieced_value): Update.
3458 (indirect_synthetic_pointer): Update.
3459 (dwarf2_evaluate_property): Update.
3460 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3461 parameter.
3462 (locexpr_read_variable): Update.
3463 (locexpr_get_symbol_read_needs): Update.
3464 (loclist_read_variable): Update.
3465
3466 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3467
3468 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3469 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3470 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3471 parameter.
3472 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3473 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3474 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3475 parameter.
3476 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3477 sect_variable_value): Add dwarf2_per_objfile parameter.
3478 (class dwarf_evaluate_loc_desc) <dwarf_call,
3479 dwarf_variable_value>: Update.
3480 (fetch_const_value_from_synthetic_pointer): Add
3481 dwarf2_per_objfile parameter.
3482 (fetch_const_value_from_synthetic_pointer): Update.
3483 (coerced_pieced_ref): Update.
3484 (class symbol_needs_eval_context) <dwarf_call,
3485 dwarf_variable_value>: Update.
3486 (dwarf2_compile_expr_to_ax): Update.
3487
3488 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3489
3490 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3491 parameter.
3492 (dwarf2_evaluate_loc_desc_full): Update.
3493
3494 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3495
3496 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3497 parameter.
3498 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3499 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3500 dwarf2_per_objfile parameter.
3501 (decode_debug_loc_dwo_addresses): Likewise.
3502 (dwarf2_find_location_expression): Update.
3503 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3504 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3505 parameter.
3506 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3507 parameter.
3508 (locexpr_describe_location_1): Likewise.
3509 (locexpr_describe_location): Update.
3510
3511 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3512
3513 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3514 Remove.
3515 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3516 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3517 (dwarf2_compile_property_to_c): Update.
3518 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3519 use text offset from objfile.
3520 (locexpr_tracepoint_var_ref): Update.
3521 (locexpr_generate_c_location): Update.
3522 (loclist_describe_location): Update.
3523 (loclist_tracepoint_var_ref): Update.
3524 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3525 dwarf2_per_objfile parameter.
3526 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3527 use text offset from objfile.
3528 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3529
3530 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3531
3532 * dwarf2/expr.h (struct dwarf_expr_context)
3533 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3534 <offset>: Remove.
3535 <per_objfile>: New member.
3536 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3537 dwarf2_per_objfile parameter. Don't set offset, set
3538 per_objfile.
3539 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3540 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3541 a dwarf2_per_objfile object instead of an offset.
3542 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3543 constructor.
3544 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3545 to dwarf2_expr_executor constructor. Don't set offset.
3546 (dwarf2_fetch_cfa_info): Update.
3547 (struct dwarf2_frame_cache) <text_offset>: Remove.
3548 <per_objfile>: New field.
3549 (dwarf2_frame_cache): Update.
3550 (dwarf2_frame_prev_register): Update.
3551 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3552 <dwarf_evaluate_loc_desc>: Add constructor.
3553 (dwarf2_evaluate_loc_desc_full): Update.
3554 (dwarf2_locexpr_baton_eval): Update.
3555 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3556 Add constructor.
3557 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3558
3559 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3560
3561 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3562 addr_sized_int_type>: Move to dwarf2_cu.
3563 <int_type>: Move to dwarf2_per_objfile.
3564 (struct dwarf2_per_objfile) <int_type>: Move here.
3565 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3566 addr_sized_int_type>: Move here.
3567 (read_func_scope): Update.
3568 (read_array_type): Update.
3569 (read_tag_string_type): Update.
3570 (attr_to_dynamic_prop): Update.
3571 (dwarf2_per_cu_data::int_type): Rename to...
3572 (dwarf2_per_objfile::int_type): ... this.
3573 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3574 (dwarf2_cu::addr_sized_int_type): ... this.
3575 (read_subrange_type): Update.
3576 (dwarf2_per_cu_data::addr_type): Rename to...
3577 (dwarf2_cu::addr_type): ... this.
3578 (set_die_type): Update.
3579
3580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3581
3582 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3583 data through per_cu->cu.
3584
3585 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3586
3587 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3588 dwarf2_per_cu_data parameter fo dwarf2_cu.
3589 (lookup_dwo_type_unit): Likewise.
3590 (read_cutu_die_from_dwo): Likewise.
3591 (lookup_dwo_unit): Likewise.
3592 (open_and_init_dwo_file): Likewise.
3593 (lookup_dwo_cutu): Likewise.
3594 (lookup_dwo_comp_unit): Likewise.
3595 (lookup_dwo_type_unit): Likewise.
3596 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3597 (cutu_reader::cutu_reader): Update.
3598
3599 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3600
3601 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3602 parameter.
3603 (process_full_type_unit): Likewise.
3604 (process_queue): Update.
3605
3606 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3607
3608 * dwarf2/read.c (recursively_compute_inclusions): Add
3609 dwarf2_per_objfile parameter.
3610 (compute_compunit_symtab_includes): Likewise.
3611 (process_cu_includes): Update.
3612
3613 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3614
3615 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3616 parameter.
3617 (create_type_unit_group): Update.
3618 (process_psymtab_comp_unit_reader): Update.
3619 (build_type_psymtabs_reader): Update.
3620
3621 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3622
3623 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3624 object through m_this_cu->cu.
3625
3626 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3627
3628 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3629 the info parameter.
3630 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3631
3632 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3633
3634 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3635 per_objfile parameter.
3636 (load_full_type_unit): Add per_objfile parameter.
3637 (read_signatured_type): Likewise.
3638 (load_full_comp_unit): Likewise.
3639 (load_cu): Likewise.
3640 (dw2_do_instantiate_symtab): Likewise.
3641 (dw2_get_file_names): Likewise.
3642 (dw2_map_symtabs_matching_filename): Update.
3643 (dw_expand_symtabs_matching_file_matcher): Update.
3644 (dw2_map_symbol_filenames): Update.
3645 (process_psymtab_comp_unit): Add per_objfile parameter.
3646 (build_type_psymtabs_1): Update.
3647 (process_skeletonless_type_unit): Update.
3648 (dwarf2_build_psymtabs_hard): Update.
3649 (load_partial_comp_unit): Add per_objfile parameter.
3650 (scan_partial_symbols): Update.
3651 (load_full_comp_unit): Add per_objfile parameter.
3652 (process_imported_unit_die): Update.
3653 (create_cus_hash_table): Update.
3654 (find_partial_die): Update.
3655 (dwarf2_read_addr_index): Update.
3656 (follow_die_offset): Update.
3657 (dwarf2_fetch_die_loc_sect_off): Update.
3658 (dwarf2_fetch_constant_bytes): Update.
3659 (dwarf2_fetch_die_type_sect_off): Update.
3660 (follow_die_sig_1): Update.
3661 (load_full_type_unit): Add per_objfile parameter.
3662 (read_signatured_type): Likewise.
3663
3664 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3665
3666 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3667 of objfile_name.
3668
3669 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3670
3671 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3672 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3673 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3674 field.
3675 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3676 (create_cus_from_index): Update.
3677 (dwarf2_read_gdb_index): Update.
3678 (create_cus_from_debug_names): Update.
3679 (dwarf2_read_debug_names): Update.
3680 (get_abbrev_section_for_cu): Update.
3681 (create_all_comp_units): Update.
3682 (read_attribute_value): Update.
3683 (get_debug_line_section): Update.
3684 * dwarf2/index-cache.c (index_cache::store): Update.
3685 * dwarf2/index-write.c (save_gdb_index_command): Update.
3686 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3687
3688 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3689
3690 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3691 member.
3692 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3693 dwarf2_per_cu_data::per_bfd.
3694 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3695 (create_type_unit_group): Likewise.
3696 (queue_comp_unit): Remove reference to
3697 per_cu->dwarf2_per_objfile.
3698 (maybe_queue_comp_unit): Likewise.
3699 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3700 (create_cus_hash_table): Assign new field.
3701
3702 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3703
3704 * dwarf2/read.c: Replace
3705 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3706 dwarf2_cu->per_objfile throughout.
3707
3708 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3709
3710 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3711 parameter, don't use per_cu->dwarf2_per_objfile.
3712 (dw2_instantiate_symtab): Likewise.
3713 (dw2_find_last_source_symtab): Update.
3714 (dw2_map_expand_apply): Update.
3715 (dw2_lookup_symbol): Update.
3716 (dw2_expand_symtabs_for_function): Update.
3717 (dw2_expand_all_symtabs): Update.
3718 (dw2_expand_symtabs_with_fullname): Update.
3719 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3720 don't use per_cu->dwarf2_per_objfile.
3721 (dw2_expand_marked_cus): Update.
3722 (dw2_find_pc_sect_compunit_symtab): Update.
3723 (dw2_debug_names_lookup_symbol): Update.
3724 (dw2_debug_names_expand_symtabs_for_function): Update.
3725 (dw2_debug_names_map_matching_symbols): Update.
3726 (dwarf2_psymtab::expand_psymtab): Update.
3727
3728 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3729
3730 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3731 <per_objfile>: New member.
3732 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3733 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3734 call to dwarf2_cu.
3735 (cutu_reader::cutu_reader): Update.
3736 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3737
3738 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3739
3740 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3741 struct dwarf2_per_objfile.
3742 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3743 dwarf2_per_bfd.
3744 * dwarf2/read.c (set_die_type): Update.
3745 (get_die_type_at_offset): Update.
3746
3747 2020-05-27 Tom Tromey <tom@tromey.com>
3748 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3751 method.
3752 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3753 get_symtab, set_symtab>: New methods.
3754 <m_symtabs>: New field.
3755 (struct dwarf2_psymtab): Derive from partial_symtab.
3756 <readin_p, get_compunit_symtab>: Declare methods.
3757 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3758 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3759 New methods.
3760 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3761 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3762 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3763 (dw2_symtab_iter_next, dw2_print_stats)
3764 (dw2_expand_symtabs_with_fullname)
3765 (dw2_expand_symtabs_matching_one)
3766 (dw_expand_symtabs_matching_file_matcher)
3767 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3768 (dw2_debug_names_iterator::next)
3769 (dw2_debug_names_map_matching_symbols)
3770 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3771 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3772 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3773 New methods.
3774 (get_compunit_symtab, process_full_comp_unit)
3775 (process_full_type_unit): Update.
3776 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3777
3778 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3779
3780 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3781 then introduce a new dwarf2_per_objfile type.
3782 <read_line_string>: Move to the new dwarf2_per_objfile type.
3783 <objfile>: Likewise.
3784 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3785 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3786 dwarf2_per_objfile->per_bfd.
3787 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3788 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3789 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3790 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3791 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3792 (dwarf2_per_objfile::locate_sections): Rename to...
3793 (dwarf2_per_bfd::locate_sections): ... this.
3794 (dwarf2_per_objfile::get_cutu): Rename to...
3795 (dwarf2_per_bfd::get_cutu): ... this.
3796 (dwarf2_per_objfile::get_cu): Rename to...
3797 (dwarf2_per_bfd::get_cu): ... this.
3798 (dwarf2_per_objfile::get_tu): Rename to...
3799 (dwarf2_per_bfd::get_tu): ... this.
3800 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3801 (dwarf2_per_bfd::allocate_per_cu): ... this.
3802 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3803 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3804 (get_gdb_index_contents_ftype): Change parameter from
3805 dwarf2_per_objfile to dwarf2_per_bfd.
3806 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3807 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3808
3809 2020-05-27 Tom Tromey <tom@tromey.com>
3810 Simon Marchi <simon.marchi@efficios.com>
3811
3812 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3813 (allocate_piece_closure): Set "per_objfile" member.
3814 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3815 (locexpr_describe_location, loclist_describe_location): Use new
3816 member.
3817 * dwarf2/read.c (read_call_site_scope)
3818 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3819 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3820 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3821 handle_data_member_location): Set per_objfile member.
3822 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3823 member.
3824 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3825
3826 2020-05-27 Tom Tromey <tom@tromey.com>
3827
3828 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3829 allocate_signatured_type>: Declare new methods.
3830 <m_num_psymtabs>: New member.
3831 (struct dwarf2_per_cu_data) <index>: New member.
3832 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3833 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3834 (create_cu_from_index_list): Use allocate_per_cu.
3835 (create_signatured_type_table_from_index)
3836 (create_signatured_type_table_from_debug_names)
3837 (create_debug_type_hash_table, add_type_unit)
3838 (read_comp_units_from_section): Use allocate_signatured_type.
3839
3840 2020-05-27 Tom Tromey <tom@tromey.com>
3841
3842 * psymtab.c (partial_map_expand_apply)
3843 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3844 (psym_lookup_global_symbol_language)
3845 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3846 (psym_print_stats, psym_expand_symtabs_for_function)
3847 (psym_map_symbol_filenames, psym_map_matching_symbols)
3848 (psym_expand_symtabs_matching)
3849 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3850 (maintenance_check_psymtabs): Update.
3851 * psympriv.h (struct partial_symtab) <readin_p,
3852 get_compunit_symtab>: Add objfile parameter.
3853 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3854 Likewise.
3855 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3856 get_compunit_symtab>: Likewise.
3857 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3858
3859 2020-05-27 Tom Tromey <tom@tromey.com>
3860
3861 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3862 member.
3863 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3864 (create_cu_from_index_list)
3865 (create_signatured_type_table_from_index)
3866 (create_signatured_type_table_from_debug_names)
3867 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3868 (dwarf2_create_include_psymtab)
3869 (create_debug_type_hash_table, add_type_unit)
3870 (create_type_unit_group, read_comp_units_from_section)
3871 (dwarf2_compute_name, create_cus_hash_table)
3872 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3873 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3874 obstack.
3875 (dw2_get_real_path): Likewise. Change argument to
3876 dwarf2_per_objfile.
3877
3878 2020-05-27 Luis Machado <luis.machado@linaro.org>
3879
3880 PR tdep/26000
3881 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3882 for ldrd (immediate).
3883
3884 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3885
3886 * command.h: Add comment giving the name of class_tui.
3887 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3888 create the fake command for the help for class_tui.
3889
3890 2020-05-26 Tom Tromey <tromey@adacore.com>
3891
3892 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3893 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3894 (val_atr): New function.
3895 (value_val_atr): Use it.
3896 * ada-valprint.c (print_optional_low_bound): Change low bound
3897 handling for enums.
3898 (val_print_packed_array_elements): Don't call discrete_position.
3899 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3900 discrete_position for enum types.
3901 * language.c (default_print_array_index): Change type.
3902 * language.h (struct language_defn) <la_print_array_index>: Add
3903 index_type parameter, change type of index_value.
3904 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3905 (default_print_array_index): Update.
3906 * valprint.c (maybe_print_array_index): Don't call
3907 value_from_longest. Update.
3908 (value_print_array_elements): Don't call discrete_position.
3909
3910 2020-05-26 Tom Tromey <tromey@adacore.com>
3911
3912 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3913 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3914
3915 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3916
3917 PR gdb/13519
3918 * avr-tdep.c (avr_integer_to_address): Return data or code
3919 address accordingly to the second 'type' argument of the
3920 function.
3921
3922 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3923
3924 * infcmd.c, inferior.h: (construct_inferior_arguments):
3925 Moved function from here to gdbsupport/common-inferior.{h,cc}
3926
3927 2020-05-23 Tom Tromey <tom@tromey.com>
3928
3929 Revert commit eca1f90c:
3930 * NEWS: Remove entry for completion styling.
3931 * completer.c (_rl_completion_prefix_display_length): Move
3932 declaration later.
3933 (gdb_fnprint): Revert.
3934 (gdb_display_match_list_1): Likewise.
3935 * cli/cli-style.c (completion_prefix_style)
3936 (completion_difference_style, completion_suffix_style): Remove.
3937 (_initialize_cli_style): Revert.
3938 * cli/cli-style.h (completion_prefix_style)
3939 (completion_difference_style, completion_suffix_style): Don't
3940 declare.
3941
3942 2020-05-24 Pedro Alves <palves@redhat.com>
3943
3944 * symtab.c (completion_list_add_name): Return boolean indication
3945 of whether the symbol matched.
3946 (completion_list_add_symbol): Don't try to remove C++ aliases if
3947 the symbol didn't match in the first place.
3948 * symtab.h (completion_list_add_name): Return bool.
3949
3950 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3951
3952 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3953 type::field.
3954
3955 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3956
3957 GDB 9.2 released.
3958
3959 2020-05-23 Tom Tromey <tom@tromey.com>
3960
3961 * NEWS: Add entry for completion styling.
3962 * completer.c (_rl_completion_prefix_display_length): Move
3963 declaration earlier.
3964 (gdb_fnprint): Use completion_style.
3965 (gdb_display_match_list_1): Likewise.
3966 * cli/cli-style.c (completion_prefix_style)
3967 (completion_difference_style, completion_suffix_style): New
3968 globals.
3969 (_initialize_cli_style): Register new globals.
3970 * cli/cli-style.h (completion_prefix_style)
3971 (completion_difference_style, completion_suffix_style): Declare.
3972
3973 2020-05-23 Pedro Alves <palves@redhat.com>
3974
3975 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3976 (parse_escape): Use ISDIGIT instead of isdigit.
3977 (puts_debug): Use gdb_isprint instead of isprint.
3978 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3979 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3980 ISSPACE instead of isspace.
3981 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3982 instead of isspace.
3983 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3984 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3985 instead of isxdigit and ISDIGIT instead of isdigit.
3986
3987 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3988
3989 * gdbtypes.h (struct type) <field>: New method.
3990 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3991 or type::field.
3992
3993 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3994
3995 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3996 (TYPE_FIELDS): Use type::fields. Change all call sites that
3997 modify the propery to use type::set_fields instead.
3998
3999 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4002 type::num_fields instead.
4003
4004 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4005
4006 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4007 methods.
4008 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4009 that modify the number of fields to use type::set_num_fields
4010 instead.
4011
4012 2020-05-22 Tom Tromey <tromey@adacore.com>
4013
4014 * compile/compile-object-load.h (munmap_list_free): Don't
4015 declare.
4016
4017 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4018
4019 * annotate.c (annotate_source_line): Update return type, add call
4020 to update current symtab and line.
4021 * annotate.h (annotate_source_line): Update return type, and
4022 extend header comment.
4023 * source.c (info_line_command): Check annotation_level before
4024 calling annotate_source_line.
4025 * stack.c (print_frame_info): If calling annotate_source_line
4026 returns true, then don't print any other source line information.
4027
4028 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4031
4032 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4033
4034 * coffread.c (patch_type): Remove NULL check before xfree.
4035 * corefile.c (set_gnutarget): Likewise.
4036 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4037 * exec.c (build_section_table): Likewise.
4038 * remote.c (remote_target::pass_signals): Likewise.
4039 * utils.c (n_spaces): Likewise.
4040 * cli/cli-script.c (document_command): Likewise.
4041 * i386-windows-tdep.c (core_process_module_section): Likewise.
4042 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4043
4044 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4045
4046 * symfile.c (reread_symbols): Clear objfile's section_offsets
4047 vector and section indices, re-compute them by calling
4048 sym_offsets.
4049
4050 2020-05-20 Tom Tromey <tromey@adacore.com>
4051
4052 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4053 (desc_one_bound, desc_index_type): Compute field name.
4054
4055 2020-05-20 Tom de Vries <tdevries@suse.de>
4056
4057 PR symtab/25833
4058 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4059
4060 2020-05-20 Alan Modra <amodra@gmail.com>
4061
4062 PR 25993
4063 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4064 bfd_set_filename.
4065 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4066 passed to bfd_set_filename.
4067 * symfile-mem.c (add_vsyscall_page): Likewise for string
4068 passed to symbol_file_add_from_memory.
4069 (symbol_file_add_from_memory): Make name param a const char* and
4070 don't strdup.
4071
4072 2020-05-20 Alan Modra <amodra@gmail.com>
4073
4074 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4075 rather than accessing bfd->filename directly.
4076 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4077 and use bfd_section_name.
4078 * dwarf2/frame.c (decode_frame_entry): Likewise.
4079 * exec.c (exec_set_section_address): Likewise.
4080 * solib-aix.c (solib_aix_bfd_open): Likewise.
4081 * stap-probe.c (get_stap_base_address): Likewise.
4082 * symfile.c (reread_symbols): Likewise.
4083
4084 2020-05-19 Tom Tromey <tromey@adacore.com>
4085
4086 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4087
4088 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4089
4090 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4091
4092 2020-05-19 Pedro Alves <palves@redhat.com>
4093
4094 * NEWS (set exec-file-mismatch): Adjust entry.
4095 * exec.c: Include "build-id.h".
4096 (validate_exec_file): Try to match build IDs instead of filenames.
4097 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4098 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4099 and pass down 'warn_if_slow'.
4100 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4101 gdb_bfd_open_closure to pass it down.
4102 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4103
4104 2020-05-19 Pedro Alves <palves@redhat.com>
4105
4106 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4107 * target.c (target_fileio_open_1): Rename to target_fileio_open
4108 and make extern. Use bool.
4109 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4110 (target_fileio_read_alloc_1): Adjust.
4111 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4112 (target_fileio_open_warn_if_slow): Delete declaration.
4113
4114 2020-05-19 Pedro Alves <palves@redhat.com>
4115
4116 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4117 Adjust all callers.
4118
4119 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4120
4121 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4122 whether disp is negative.
4123
4124 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * symfile.h (struct symfile_segment_data)
4127 <~symfile_segment_data>: Remove.
4128 <segment_info>: Change to std::vector.
4129 * symfile.c (default_symfile_segments): Update.
4130 * elfread.c (elf_symfile_segments): Update.
4131
4132 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4133
4134 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4135 <segments>: New.
4136 <segment_bases, segment_sizes>: Remove.
4137 * symfile.c (default_symfile_segments): Update.
4138 * elfread.c (elf_symfile_segments): Update.
4139 * remote.c (remote_target::get_offsets): Update.
4140 * solib-target.c (solib_target_relocate_section_addresses):
4141 Update.
4142
4143 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4144
4145 * symfile.h (struct symfile_segment_data): Initialize fields.
4146 <~symfile_segment_data>: Add.
4147 (symfile_segment_data_up): New.
4148 (struct sym_fns) <sym_segments>: Return a
4149 symfile_segment_data_up.
4150 (default_symfile_segments): Return a symfile_segment_data_up.
4151 (free_symfile_segment_data): Remove.
4152 (get_symfile_segment_data): Return a symfile_segment_data_up.
4153 * symfile.c (default_symfile_segments): Likewise.
4154 (get_symfile_segment_data): Likewise.
4155 (free_symfile_segment_data): Remove.
4156 (symfile_find_segment_sections): Update.
4157 * elfread.c (elf_symfile_segments): Return a
4158 symfile_segment_data_up.
4159 * remote.c (remote_target::get_offsets): Update.
4160 * solib-target.c (solib_target_relocate_section_addresses):
4161 Update.
4162 * symfile-debug.c (debug_sym_segments): Return a
4163 symfile_segment_data_up.
4164
4165 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4166
4167 PR build/25981
4168 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4169 Hardcode register numbers.
4170
4171 PR build/25981
4172 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4173 procfs_find_LDT_entry): Remove.
4174 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4175 procfs_find_LDT_entry): Remove.
4176 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4177 Remove.
4178
4179 2020-05-17 Pedro Alves <palves@redhat.com>
4180 Andrew Burgess <andrew.burgess@embecosm.com>
4181 Keno Fischer <keno@juliacomputing.com>
4182
4183 PR gdb/25741
4184 * breakpoint.c (build_target_condition_list): Update comments.
4185 (build_target_command_list): Update comments and skip matching
4186 locations.
4187 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4188 a separate function. Simplify "set breakpoint auto-hw off"
4189 handling.
4190 (insert_breakpoints): Update comment.
4191 (tracepoint_locations_match): New parameter. For breakpoints,
4192 compare location types too, if the caller wants to.
4193 (handle_automatic_hardware_breakpoints): New functions.
4194 (bp_location_is_less_than): Also sort by location type and
4195 hardware breakpoint length.
4196 (update_global_location_list): Handle "set breakpoint auto-hw on"
4197 here.
4198 (update_breakpoint_locations): Ask breakpoint_locations_match to
4199 ignore location types.
4200
4201 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4204 type::name instead.
4205
4206 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4207
4208 * gdbtypes.h (struct type) <name, set_name>: New methods.
4209 (TYPE_CODE): Use type::name. Change all call sites used to set
4210 the name to use type::set_name instead.
4211
4212 2020-05-16 Tom Tromey <tom@tromey.com>
4213
4214 * top.c (quit_force): Update.
4215 * infrun.c (handle_no_resumed): Update.
4216 * top.h (all_uis): New function.
4217 (ALL_UIS): Remove.
4218
4219 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4220
4221 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4222
4223 2020-05-16 Pedro Alves <palves@redhat.com>
4224
4225 * ia64-linux-nat.c
4226 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4227 Declare method.
4228 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4229
4230 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4231
4232 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4233 (sparc64_adi_info): Likewise.
4234
4235 2020-05-15 Tom Tromey <tom@tromey.com>
4236
4237 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4238 block_objfile.
4239 (lookup_objfile_from_block): Remove.
4240 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4241 (lookup_global_symbol): Use block_objfile.
4242 * symtab.h (lookup_objfile_from_block): Don't declare.
4243 * printcmd.c (clear_dangling_display_expressions): Use
4244 block_objfile.
4245 * parse.c (operator_check_standard): Use block_objfile.
4246
4247 2020-05-15 Tom Tromey <tom@tromey.com>
4248
4249 * language.c (language_alloc_type_symbol): Set
4250 SYMBOL_SECTION.
4251 * symtab.c (initialize_objfile_symbol): Remove.
4252 (allocate_symbol): Remove.
4253 (allocate_template_symbol): Remove.
4254 * dwarf2/read.c (fixup_go_packaging): Use "new".
4255 (new_symbol): Use "new".
4256 (read_variable): Don't call initialize_objfile_symbol. Use
4257 "new".
4258 (read_func_scope): Use "new".
4259 * xcoffread.c (process_xcoff_symbol): Don't call
4260 initialize_objfile_symbol.
4261 (SYMBOL_DUP): Remove.
4262 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4263 "new".
4264 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4265 (allocate_template_symbol): Don't declare.
4266 (struct symbol): Add copy constructor. Change defaults.
4267 * jit.c (finalize_symtab): Use "new".
4268 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4269 Use "new".
4270 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4271 (common_block_end): Use "new".
4272 * mdebugread.c (parse_symbol): Use "new".
4273 (new_symbol): Likewise.
4274
4275 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4276
4277 * NEWS: Mention changes to help and apropos.
4278
4279 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4280
4281 * command.h (enum command_class): Improve comments, document
4282 that class_alias is for user-defined aliases, give the class
4283 name for each class, remove unused class_xdb.
4284 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4285 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4286 by a precise class.
4287 * infcmd.c (_initialize_infcmd): Likewise.
4288 * reverse.c (_initialize_reverse): Likewise.
4289 * stack.c (_initialize_stack): Likewise.
4290 * symfile.c (_initialize_symfile): Likewise.
4291 * tracepoint.c (_initialize_tracepoint): Likewise.
4292
4293 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4294
4295 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4296 when their aliased command is traversed.
4297 (help_cmd): Add fput_command_names_styled call to
4298 output command name and aliases when command has an alias.
4299
4300 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4301
4302 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4303 * cli/cli-decode.c (help_cmd_list): Declare as static,
4304 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4305 a command together with the command.
4306 (fput_command_name_styled, fput_command_names_styled): New functions.
4307 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4308 fput_command_name_styled.
4309 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4310 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4311
4312 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4313
4314 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4315 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4316 * command.h (cmd_show_list): Likewise.
4317 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4318 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4319
4320 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4321
4322 * unittests/command-def-selftests.c (traverse_command_structure):
4323 Verify all commands of a list have the same prefix command and
4324 that only the top cmdlist commands have a null prefix.
4325
4326 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4327
4328 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4329 as prefix, not one of its aliases.
4330 (set_cmd_prefix): Remove.
4331 (do_add_cmd): Centralize the setting of the prefix of a command, when
4332 command is defined after its full chain of prefix commands.
4333 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4334 (add_setshow_cmd_full): Likewise.
4335 (update_prefix_field_of_prefixed_commands): New function.
4336 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4337 update_prefix_field_of_prefixed_commands.
4338 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4339 addresses of remote_set_cmdlist and remote_show_cmdlist given
4340 as argument, not the address of an argument.
4341 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4342 * gdb/remote.c (_initialize_remote): Likewise.
4343
4344 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4345
4346 * cli/cli-cmds.c (alias_command): Check for an existing alias
4347 using lookup_cmd_composition, as valid_command_p is too strict
4348 and forbids aliases that are the prefix of an existing alias
4349 or command.
4350 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4351 command is properly recognised as a valid command.
4352
4353 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4354
4355 * unittests/help-doc-selftests.c: Rename to
4356 unittests/command-def-selftests.c
4357 * unittests/command-def-selftests.c (help_doc_tests): Update some
4358 comments.
4359 (command_structure_tests, traverse_command_structure): New namespace
4360 and function.
4361 (command_structure_invariants_tests): New function.
4362 (_initialize_command_def_selftests) Renamed from
4363 _initialize_help_doc_selftests, register command_structure_invariants
4364 selftest.
4365
4366 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4367
4368 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4369 an alias of 'show'.
4370
4371 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4372
4373 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4374 ada_is_fixed_point_type. Update all callers.
4375 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4376 all callers.
4377 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4378 Update all callers.
4379 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4380 print_fixed_point_type. Update all callers.
4381 * ada-valprint.c (ada_value_print_num): Replace call to
4382 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4383
4384 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4385
4386 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4387 processors.
4388 (cpu_supports_bts): Add CV_AMD case.
4389
4390 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4391 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * infrun.c (stop_all_threads): Collect multiple wait events at
4394 each pass.
4395
4396 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4399 type::code instead.
4400
4401 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4402
4403 * gdbtypes.h (struct type) <code, set_code>: New methods.
4404 (TYPE_CODE): Use type::code. Change all call sites used to set
4405 the code to use type::set_code instead.
4406
4407 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4408 Tom de Vries <tdevries@suse.de>
4409 Pedro Alves <palves@redhat.com>
4410
4411 PR threads/25478
4412 * infrun.c (stop_all_threads): Do NOT ignore
4413 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4414 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4415 received.
4416 (handle_no_resumed): Remove code handling a live inferior with no
4417 threads.
4418 * remote.c (has_single_non_exited_thread): New.
4419 (remote_target::update_thread_list): Do not delete a thread if is
4420 the last thread of the process.
4421 * thread.c (thread_select): Call delete_exited_threads instead of
4422 prune_threads.
4423
4424 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4425
4426 * infrun.c (stop_all_threads): Enable/disable thread events of all
4427 targets. Move a debug message denoting the end of the function
4428 into the SCOPED_EXIT block.
4429
4430 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4431
4432 * process-stratum-target.h: Include <set>.
4433 (all_non_exited_process_targets, switch_to_target_no_thread): New
4434 function declarations.
4435 * process-stratum-target.c (all_non_exited_process_targets)
4436 (switch_to_target_no_thread): New function implementations.
4437
4438 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4439
4440 * infrun.c (handle_inferior_event): Extract out a piece of code
4441 into...
4442 (mark_non_executing_threads): ...this new function.
4443
4444 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4445
4446 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4447 use.
4448
4449 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4450
4451 * regcache.c (regcache_read_pc_protected): New function
4452 implementation that returns 0 if the PC cannot read via
4453 'regcache_read_pc'.
4454 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4455 instead of 'regcache_read_pc'.
4456 (keep_going_pass_signal): Ditto.
4457
4458 2020-05-13 Tom Tromey <tromey@adacore.com>
4459
4460 * ada-lang.c (align_value): Remove.
4461 (ada_template_to_fixed_record_type_1): Use align_up.
4462
4463 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4464
4465 * async-event.c: Update the copyright year.
4466 * async-event.h: Update the copyright year.
4467
4468 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * objfiles.h (is_addr_in_objfile,
4471 shared_objfile_contains_address_p): Return bool.
4472 * objfile.c (is_addr_in_objfile,
4473 shared_objfile_contains_address_p): Return bool.
4474
4475 2020-05-11 Tom Tromey <tromey@adacore.com>
4476
4477 * cli/cli-cmds.c (info_command): Restore.
4478 (_initialize_cli_cmds): Use add_prefix_command for "info".
4479 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4480
4481 2020-05-11 Tom Tromey <tromey@adacore.com>
4482
4483 * ada-lang.c (ada_value_primitive_field): Now public.
4484 * ada-lang.h (ada_value_primitive_field): Declare.
4485 * ada-valprint.c (print_field_values): Use
4486 ada_value_primitive_field for wrapper fields.
4487
4488 2020-05-11 Tom de Vries <tdevries@suse.de>
4489
4490 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4491 MODULE_DOMAIN.
4492
4493 2020-05-11 Tom de Vries <tdevries@suse.de>
4494
4495 PR symtab/25941
4496 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4497 with length 0, if not gdb-produced.
4498 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4499
4500 2020-05-09 Tom de Vries <tdevries@suse.de>
4501
4502 PR gdb/25955
4503 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4504 calculation.
4505
4506 2020-05-09 Tom Tromey <tom@tromey.com>
4507
4508 * top.c (server_command): Now bool.
4509 * top.h (server_command): Now bool.
4510
4511 2020-05-08 Tom Tromey <tromey@adacore.com>
4512
4513 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4514 already being processed.
4515
4516 2020-05-08 Tom Tromey <tom@tromey.com>
4517
4518 * printcmd.c (struct display) <next>: Remove.
4519 <display>: New constructor.
4520 <exp_string>: Now a std::string.
4521 <enabled_p>: Now a bool.
4522 (display_number): Move definition earlier.
4523 (displays): Rename from display_chain. Now a std::vector.
4524 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4525 (display_command): Update.
4526 (do_one_display, disable_display)
4527 (enable_disable_display_command, do_enable_disable_display):
4528 Update.
4529 (free_display): Remove.
4530 (clear_displays): Rewrite.
4531 (delete_display): Update.
4532 (map_display_numbers): Use function_view. Remove "data"
4533 parameter. Update.
4534 (do_delete_display): Remove.
4535 (undisplay_command): Update.
4536 (do_one_display, do_displays, disable_display)
4537 (info_display_command): Update.
4538 (do_enable_disable_display): Remove.
4539 (enable_disable_display_command)
4540 (clear_dangling_display_expressions): Update.
4541
4542 2020-05-08 Tom Tromey <tom@tromey.com>
4543
4544 * symtab.c (set_symbol_cache_size)
4545 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4546 (maintenance_print_symbol_cache_statistics): Update.
4547 * symmisc.c (print_symbol_bcache_statistics)
4548 (print_objfile_statistics, maintenance_print_objfiles)
4549 (maintenance_info_symtabs, maintenance_check_symtabs)
4550 (maintenance_expand_symtabs, maintenance_info_line_tables):
4551 Update.
4552 * symfile-debug.c (set_debug_symfile): Update.
4553 * source.c (forget_cached_source_info): Update.
4554 * python/python.c (gdbpy_progspaces): Update.
4555 * psymtab.c (maintenance_info_psymtabs): Update.
4556 * probe.c (parse_probes): Update.
4557 * linespec.c (iterate_over_all_matching_symtabs)
4558 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4559 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4560 * exec.c (exec_target::close): Update.
4561 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4562 * breakpoint.c (print_one_breakpoint_location)
4563 (create_longjmp_master_breakpoint)
4564 (create_std_terminate_master_breakpoint): Update.
4565 * progspace.c (program_spaces): Now a std::vector.
4566 (maybe_new_address_space): Update.
4567 (add_program_space): Remove.
4568 (program_space::program_space): Update.
4569 (remove_program_space): Update.
4570 (number_of_program_spaces): Remove.
4571 (print_program_space, update_address_spaces): Update.
4572 * progspace.h (program_spaces): Change type.
4573 (ALL_PSPACES): Remove.
4574 (number_of_program_spaces): Don't declare.
4575 (struct program_space) <next>: Remove.
4576
4577 2020-05-08 Tom Tromey <tom@tromey.com>
4578
4579 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4580 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4581 (enable_break): Update.
4582 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4583 (frv_fdpic_find_canonical_descriptor): Update.
4584 (frv_fetch_objfile_link_map): Update.
4585 * progspace.c (program_space::free_all_objfiles): Update.
4586 (program_space::solibs): New method.
4587 * progspace.h (struct program_space) <solibs>: New method.
4588 * solist.h (master_so_list): Don't declare.
4589 (ALL_SO_LIBS): Remove.
4590 * solib.h (so_list_head): Remove.
4591 (update_solib_list): Update comment.
4592 * solib.c (master_so_list): Remove.
4593 (solib_used, update_solib_list, solib_add)
4594 (info_sharedlibrary_command, clear_solib)
4595 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4596
4597 2020-05-08 Tom Tromey <tom@tromey.com>
4598
4599 * extension.c (extension_languages): Now a std::array.
4600 (ALL_EXTENSION_LANGUAGES): Remove.
4601 (get_ext_lang_defn, get_ext_lang_of_file)
4602 (eval_ext_lang_from_control_command): Update.
4603 (finish_ext_lang_initialization)
4604 (auto_load_ext_lang_scripts_for_objfile)
4605 (ext_lang_type_printers::ext_lang_type_printers)
4606 (apply_ext_lang_type_printers)
4607 (ext_lang_type_printers::~ext_lang_type_printers)
4608 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4609 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4610 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4611 (get_matching_xmethod_workers, ext_lang_colorize)
4612 (ext_lang_before_prompt): Update.
4613 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4614
4615 2020-05-08 Tom Tromey <tom@tromey.com>
4616
4617 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4618 overload.
4619 <swap_string, m_string>: Remove.
4620 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4621 Update.
4622 * stabsread.c (define_symbol, read_type): Update.
4623 * linespec.c (find_linespec_symbols): Update.
4624 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4625 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4626 * dbxread.c (read_dbx_symtab): Update.
4627 * cp-support.h (cp_canonicalize_string_full)
4628 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4629 Return unique_xmalloc_ptr.
4630 * cp-support.c (inspect_type): Update.
4631 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4632 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4633 Likewise.
4634 * c-typeprint.c (print_name_maybe_canonical): Update.
4635 * break-catch-throw.c (check_status_exception_catchpoint):
4636 Update.
4637
4638 2020-05-08 Tom de Vries <tdevries@suse.de>
4639
4640 * infrun.c (follow_fork): Copy current_line and current_symtab to
4641 child thread.
4642
4643 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * async-event.c (struct async_signal_handler, struct
4646 async_event_handler): Reformat, remove typedef.
4647
4648 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4651 access thistype->main_type->dyn_prop_list directly.
4652
4653 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4656 (remove_dyn_prop): Remove. Update all users to use
4657 type::remove_dyn_prop.
4658 * gdbtypes.c (remove_dyn_prop): Rename to...
4659 (type::remove_dyn_prop): ... this.
4660
4661 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4662
4663 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4664 (add_dyn_prop): Remove. Update all users to use
4665 type::add_dyn_prop.
4666 * gdbtypes.c (add_dyn_prop): Rename to...
4667 (type::add_dyn_prop): ... this.
4668
4669 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4672 (get_dyn_prop): Remove. Update all users to use
4673 type::dyn_prop.
4674 * gdbtypes.c (get_dyn_prop): Rename to...
4675 (type::dyn_prop): ... this.
4676
4677 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4680
4681 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4684 instruction, skip it if it's there.
4685
4686 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4687
4688 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4689
4690 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4691
4692 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4693 * gdbtypes.c (recursive_dump_type): Remove use of
4694 TYPE_INCOMPLETE.
4695
4696 2020-05-03 Tom Tromey <tom@tromey.com>
4697
4698 * breakpoint.c (catch_command, tcatch_command): Remove.
4699 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4700 add_show_prefix_cmd.
4701 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4702 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4703 Remove.
4704 (add_internal_problem_command): Use add_basic_prefix_cmd,
4705 add_show_prefix_cmd.
4706 * mips-tdep.c (set_mipsfpu_command): Remove.
4707 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4708 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4709 (_initialize_index_cache): Use add_basic_prefix_cmd.
4710 * memattr.c (dummy_cmd): Remove.
4711 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4712 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4713 (_initialize_tui_win): Use add_basic_prefix_cmd,
4714 add_show_prefix_cmd.
4715 * cli/cli-logging.c (set_logging_command): Remove.
4716 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4717 add_show_prefix_cmd.
4718 (show_logging_command): Remove.
4719 * target.c (target_command): Remove.
4720 (add_target): Use add_basic_prefix_cmd.
4721
4722 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4723
4724 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4725
4726 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4727
4728 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4729 info_command.
4730
4731 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4732
4733 * nbsd-nat.c (nbsd_enable_proc_events)
4734 (nbsd_nat_target::post_startup_inferior): Add.
4735 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4736 (nbsd_nat_target::update_thread_list): Rewrite.
4737 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4738 "PTRACE_LWP_CREATE".
4739 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4740
4741 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4742
4743 * stack.c (_initialize_stack): Remove duplicated creation
4744 of "frame" command and "f" alias.
4745
4746 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4747
4748 PR gdb/18706
4749 * gdbtypes.c (check_typedef): Calculate size of array of
4750 stubbed type.
4751
4752 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4753
4754 PR gdb/15559
4755 * i386-tdep.c (i386_push_dummy_call): Call
4756 i386_thiscall_push_dummy_call.
4757 (i386_thiscall_push_dummy_call): New function.
4758 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4759 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4760 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4761
4762 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * gdbarch.sh (do_read): Add shellcheck disable directive for
4765 warning SC2162.
4766
4767 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4768
4769 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4770 "referenced but not assigned" warning.
4771
4772 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4773
4774 * gdbarch.sh: Remove code that sets fallbackdefault.
4775
4776 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4777
4778 * gdbarch.sh: Use shell operators && and || instead of
4779 -a and -o.
4780
4781 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4782
4783 * gdbarch.sh: Use $(...) instead of `...`.
4784
4785 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * gdbarch.sh: Use double quotes around variables.
4788
4789 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4790
4791 * gdbarch.sh: Use %s with printf, instead of variables in the
4792 format string.
4793
4794 2020-04-29 Tom Tromey <tromey@adacore.com>
4795
4796 PR ada/25875:
4797 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4798 type fields here.
4799 (read_enumeration_type): Call
4800 update_enumeration_type_from_children later. Update comments.
4801 (process_enumeration_scope): Don't create type fields.
4802
4803 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4804
4805 * nbsd-tdep.c: Include "xml-syscall.h".
4806 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4807
4808 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4809
4810 * nbsd-nat.c: Include "sys/wait.h".
4811 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4812 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4813 (nbsd_nat_target::remove_exec_catchpoint)
4814 (nbsd_nat_target::set_syscall_catchpoint): Add.
4815 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4816 (nbsd_nat_target::insert_exec_catchpoint)
4817 (nbsd_nat_target::remove_exec_catchpoint)
4818 (nbsd_nat_target::set_syscall_catchpoint): Add.
4819 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4820 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4821 `nbsd_get_syscall_number'.
4822
4823 2020-04-29 Tom Tromey <tom@tromey.com>
4824
4825 * stack.c (print_block_frame_labels): Remove.
4826
4827 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4828
4829 PR gdb/17320
4830 * ada-valprint.c (val_print_packed_array_elements): Move array
4831 end bracket to new line.
4832 (ada_val_print_string): Remove extra spaces before first array
4833 element.
4834 * c-valprint.c (c_value_print_array): Likewise.
4835 * m2-valprint.c (m2_print_array_contents): Likewise.
4836 (m2_value_print_inner): Likewise.
4837 * p-valprint.c (pascal_value_print_inner): Likewise.
4838 * valprint.c (generic_val_print_array): Likewise.
4839 (value_print_array_elements): Move first array element and array
4840 end bracket to new line.
4841
4842 2020-04-29 Tom de Vries <tdevries@suse.de>
4843
4844 PR symtab/25889
4845 * linespec.c (find_method): Fix ix calculation.
4846
4847 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4848
4849 * syscalls/update-netbsd.sh: New file.
4850 * syscalls/netbsd.xml: Regenerate.
4851 * data-directory/Makefile.in: Register `netbsd.xml' in
4852 `SYSCALLS_FILES'.
4853
4854 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * syscalls/update-freebsd.sh: Add double quotes.
4857
4858 2020-04-28 Tom Tromey <tom@tromey.com>
4859
4860 * NEWS: Update.
4861 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4862 (cmdpy_init): Allow class_tui.
4863
4864 2020-04-28 Mark Williams <mark@myosotissp.com>
4865
4866 PR gdb/24480
4867 * dwarf2read.c: Add missing assingments to list_in_scope when
4868 start_symtab was already called.
4869
4870 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4871
4872 PR gdb/25881
4873 * dwarf2/read.c (offset_map_type): Use
4874 gdb:hash_enum<sect_offset> as hash function.
4875
4876 2020-04-28 Tom de Vries <tdevries@suse.de>
4877
4878 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4879 with DW_AT_signature.
4880
4881 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * configure.ac: Remove check for fs_base/gs_base in
4884 user_regs_struct.
4885 * configure: Re-generate.
4886 * config.in: Re-generate.
4887 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4888 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4889 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4890
4891 2020-04-27 Luis Machado <luis.machado@linaro.org>
4892
4893 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4894 problematic inline frame unwinding situation.
4895 * frame.c (frame_id_computed_p): New function.
4896 * frame.h (frame_id_computed_p): New prototype.
4897
4898 2020-04-26 Tom Tromey <tom@tromey.com>
4899
4900 * command.h (enum command_class) <class_pseudo>: Remove.
4901
4902 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4903
4904 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4905 and whitespace.
4906
4907 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4908
4909 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4910 `PT_GET_PROCESS_STATE' block.
4911
4912 2020-04-24 Tom Tromey <tom@tromey.com>
4913
4914 * symtab.h (symbol_get_demangled_name): Don't declare.
4915 * symtab.c (symbol_get_demangled_name): Remove.
4916 (general_symbol_info::natural_name)
4917 (general_symbol_info::demangled_name): Update.
4918
4919 2020-04-24 Tom Tromey <tom@tromey.com>
4920
4921 PR rust/25025:
4922 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4923
4924 2020-04-24 Tom Tromey <tom@tromey.com>
4925
4926 PR symtab/12707:
4927 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4928 exists.
4929 (new_symbol): Likewise.
4930 * compile/compile-object-load.c (get_out_value_type): Use
4931 symbol_matches_search_name.
4932
4933 2020-04-24 Tom Tromey <tom@tromey.com>
4934
4935 * dwarf2/read.c (add_partial_symbol): Do not call
4936 compute_and_set_names.
4937
4938 2020-04-24 Tom Tromey <tom@tromey.com>
4939
4940 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4941 overload.
4942
4943 2020-04-24 Tom Tromey <tom@tromey.com>
4944
4945 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4946 (add_psymbol_to_list): New overload. Make old overload call new
4947 one.
4948 * psympriv.h (add_psymbol_to_list): New overload.
4949
4950 2020-04-24 Tom Tromey <tom@tromey.com>
4951
4952 * dwarf2/read.c (partial_die_info::read) <case
4953 DW_AT_linkage_name>: Use value_as_string.
4954 (dwarf2_string_attr): Use value_as_string.
4955 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4956 method.
4957 * dwarf2/attribute.c (attribute::value_as_string): New method.
4958
4959 2020-04-24 Tom Tromey <tom@tromey.com>
4960
4961 * symtab.c (general_symbol_info::natural_name)
4962 (general_symbol_info::demangled_name): Check for language_rust.
4963
4964 2020-04-24 Tom Tromey <tom@tromey.com>
4965
4966 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4967 (dwarf2_physname): ... from here.
4968 (partial_die_info::read): Add Rust "{" hack.
4969
4970 2020-04-24 Tom Tromey <tom@tromey.com>
4971
4972 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4973 method.
4974 (symbol_set_demangled_name): Don't declare.
4975 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4976 symbol_set_demangled_name.
4977 (general_symbol_info::set_language)
4978 (general_symbol_info::compute_and_set_names): Update.
4979 * minsyms.c (minimal_symbol_reader::install): Update.
4980 * dwarf2/read.c (new_symbol): Update.
4981
4982 2020-04-24 Tom Tromey <tromey@adacore.com>
4983
4984 PR python/23662:
4985 * python/py-type.c (convert_field): Handle
4986 FIELD_LOC_KIND_DWARF_BLOCK.
4987 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4988 (typy_get_dynamic): Nw function.
4989 (type_object_getset): Add "dynamic".
4990 * NEWS: Add entry.
4991
4992 2020-04-24 Tom Tromey <tromey@adacore.com>
4993
4994 * ada-typeprint.c (print_choices, print_variant_part)
4995 (print_record_field_types_dynamic): New functions.
4996 (print_record_field_types): Use print_record_field_types_dynamic.
4997
4998 2020-04-24 Tom Tromey <tromey@adacore.com>
4999
5000 * dwarf2/read.c (handle_data_member_location): New overload.
5001 (dwarf2_add_field): Use it.
5002 (decode_locdesc): Add "computed" parameter. Update comment.
5003 * gdbtypes.c (is_dynamic_type_internal): Also look for
5004 FIELD_LOC_KIND_DWARF_BLOCK.
5005 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5006 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5007 virtual base classes.
5008 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5009 FIELD_LOC_KIND_DWARF_BLOCK.
5010
5011 2020-04-24 Tom Tromey <tromey@adacore.com>
5012
5013 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5014 * gdbtypes.c (is_dynamic_type_internal): Check
5015 TYPE_HAS_DYNAMIC_LENGTH.
5016 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5017 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5018 New macros.
5019 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5020 constant.
5021
5022 2020-04-24 Tom Tromey <tromey@adacore.com>
5023
5024 * dwarf2/read.c (struct variant_field): Rewrite.
5025 (struct variant_part_builder): New.
5026 (struct nextfield): Remove "variant" field. Add "offset".
5027 (struct field_info): Add "current_variant_part" and
5028 "variant_parts".
5029 (alloc_discriminant_info): Remove.
5030 (alloc_rust_variant): New function.
5031 (quirk_rust_enum): Update.
5032 (dwarf2_add_field): Set "offset" member. Don't handle
5033 DW_TAG_variant_part.
5034 (offset_map_type): New typedef.
5035 (convert_variant_range, create_one_variant)
5036 (create_one_variant_part, create_variant_parts)
5037 (add_variant_property): New functions.
5038 (dwarf2_attach_fields_to_type): Call add_variant_property.
5039 (read_structure_type): Don't handle DW_TAG_variant_part.
5040 (handle_variant_part, handle_variant): New functions.
5041 (handle_struct_member_die): Use them.
5042 (process_structure_scope): Don't handle variant parts.
5043 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5044 (struct discriminant_info): Remove.
5045 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5046 (struct main_type) <flag_discriminated_union>: Remove.
5047 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5048 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5049 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5050 Update.
5051 * valops.c (value_union_variant): Remove.
5052 * value.h (value_union_variant): Don't declare.
5053
5054 2020-04-24 Tom Tromey <tromey@adacore.com>
5055
5056 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5057 (ada_value_primitive_packed_val): Update.
5058 * ada-valprint.c (ada_value_print_1): Update.
5059 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5060 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5061 just an address. Use evaluate_for_locexpr_baton.
5062 (dwarf2_evaluate_property): Update.
5063 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5064 array_view.
5065 * findvar.c (default_read_var_value): Update.
5066 * gdbtypes.c (compute_variant_fields_inner)
5067 (resolve_dynamic_type_internal): Update.
5068 (resolve_dynamic_type): Change type of valaddr parameter.
5069 * gdbtypes.h (resolve_dynamic_type): Update.
5070 * valarith.c (value_subscripted_rvalue): Update.
5071 * value.c (value_from_contents_and_address): Update.
5072
5073 2020-04-24 Tom Tromey <tromey@adacore.com>
5074
5075 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5076 "push_initial_value" parameter.
5077 (dwarf2_evaluate_property): Likewise.
5078 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5079
5080 2020-04-24 Tom Tromey <tromey@adacore.com>
5081
5082 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5083 (variant::matches, compute_variant_fields_recurse)
5084 (compute_variant_fields_inner, compute_variant_fields): New
5085 functions.
5086 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5087 Use resolved_type after type is made.
5088 (operator==): Add new cases.
5089 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5090 (struct discriminant_range, struct variant, struct variant_part):
5091 New.
5092 (union dynamic_prop_data) <variant_parts, original_type>: New
5093 members.
5094 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5095 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5096 constants.
5097 * value.c (unpack_bits_as_long): Now public.
5098 * value.h (unpack_bits_as_long): Declare.
5099
5100 2020-04-24 Tom Tromey <tromey@adacore.com>
5101
5102 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5103 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5104
5105 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5106
5107 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5108
5109 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5110
5111 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5112 (remove_fork_catchpoint, post_startup_inferior)
5113 (post_attach): Move...
5114 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5115 (remove_fork_catchpoint, post_startup_inferior)
5116 (post_attach): ...here.
5117 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5118 (remove_fork_catchpoint, post_startup_inferior)
5119 (post_attach): Move...
5120 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5121 (remove_fork_catchpoint, post_startup_inferior)
5122 (post_attach): ...here.
5123
5124 2020-04-24 Tom Tromey <tromey@adacore.com>
5125
5126 * nat/windows-nat.h (struct windows_thread_info)
5127 <pc_adjusted>: New member.
5128 * windows-nat.c (windows_fetch_one_register): Check
5129 pc_adjusted.
5130 (windows_nat_target::get_windows_debug_event)
5131 (windows_nat_target::wait): Set pc_adjusted.
5132
5133 2020-04-24 Tom de Vries <tdevries@suse.de>
5134
5135 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5136 Run gdb-add-index inside temp dir.
5137
5138 2020-04-23 Tom Tromey <tromey@adacore.com>
5139
5140 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5141 in loop.
5142
5143 2020-04-23 Luis Machado <luis.machado@linaro.org>
5144
5145 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5146 get_frame_register instead of gdbarch_unwind_pc.
5147
5148 2020-04-23 Tom de Vries <tdevries@suse.de>
5149
5150 * symtab.c (lookup_global_symbol): Prefer def over decl.
5151
5152 2020-04-23 Tom de Vries <tdevries@suse.de>
5153
5154 PR symtab/25807
5155 * block.c (best_symbol, better_symbol): Promote to external.
5156 * block.h (best_symbol, better_symbol): Declare.
5157 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5158 decl.
5159
5160 2020-04-23 Tom Tromey <tromey@adacore.com>
5161
5162 PR ada/25837:
5163 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5164 "const char *", not a "const std::string &".
5165 <name_and_matcher::operator==>: Update.
5166 * unittests/lookup_name_info-selftests.c: Change type of
5167 "result".
5168
5169 2020-04-23 Tom Tromey <tom@tromey.com>
5170
5171 * inferior.h (iterate_over_inferiors): Don't declare.
5172 * inferior.c (iterate_over_inferiors): Remove.
5173 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5174 Remove.
5175 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5176 use iterate_over_inferiors.
5177 (darwin_resume_inferior_it)
5178 (struct resume_inferior_threads_param)
5179 (darwin_resume_inferior_threads_it): Remove.
5180 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5181
5182 2020-04-23 Tom de Vries <tdevries@suse.de>
5183
5184 * blockframe.c (find_pc_partial_function): Use
5185 find_pc_sect_compunit_symtab rather than
5186 objfile->sf->qf->find_pc_sect_compunit_symtab.
5187
5188 2020-04-22 Tom de Vries <tdevries@suse.de>
5189
5190 PR symtab/25764
5191 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5192 in psymtabs.
5193
5194 2020-04-22 Tom de Vries <tdevries@suse.de>
5195
5196 PR symtab/25801
5197 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5198 symtabs.
5199
5200 2020-04-22 Tom de Vries <tdevries@suse.de>
5201
5202 PR symtab/25700
5203 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5204 CU if already created.
5205
5206 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5207
5208 * infrun.c (displaced_step_fixup): Switch to the event_thread
5209 before calling displaced_step_restore, not after.
5210
5211 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5212
5213 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5214 its inferior is not recorded by us.
5215 (record_btrace_target_open): Replace call to
5216 all_non_exited_threads () with call to current_inferior
5217 ()->non_exited_threads ().
5218 (record_btrace_target::stop_recording): Likewise.
5219 (record_btrace_target::close): Likewise.
5220 (record_btrace_target::wait): Likewise.
5221 (record_btrace_target::record_stop_replaying): Likewise.
5222
5223 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5224
5225 * btrace.c (btrace_enable): Throw an error on double enables and
5226 when enabling recording fails.
5227 (btrace_disable): Throw an error if the thread is not recorded.
5228
5229 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5230
5231 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5232 request if we do not have a thread_info.
5233
5234 2020-04-21 Tom de Vries <tdevries@suse.de>
5235
5236 PR gdb/25471
5237 * thread.c
5238 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5239 exception in get_frame_id.
5240
5241 2020-04-20 Tom Tromey <tromey@adacore.com>
5242
5243 * python/python.c (struct gdbpy_event): Mark move constructor as
5244 noexcept.
5245 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5246 constructor as noexcept.
5247 * completer.h (struct completion_result): Mark move constructor as
5248 noexcept.
5249 * completer.c (completion_result::completion_result): Use
5250 initialization style. Don't call reset_match_list.
5251
5252 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5253
5254 * MAINTAINERS (Write After Approval): Add myself.
5255
5256 2020-04-18 Tom Tromey <tom@tromey.com>
5257
5258 * windows-tdep.c (init_w32_command_list)
5259 (w32_prefix_command_valid): Restore.
5260 (_initialize_windows_tdep): Call init_w32_command_list.
5261
5262 2020-04-18 Tom Tromey <tom@tromey.com>
5263
5264 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5265 * value.c (value_fn_field): Update.
5266 * valops.c (find_function_in_inferior)
5267 (value_allocate_space_in_inferior): Update.
5268 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5269 Update.
5270 * tui/tui-source.c (tui_source_window::set_contents): Update.
5271 * symtab.c (lookup_global_or_static_symbol)
5272 (find_function_start_sal_1, skip_prologue_sal)
5273 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5274 * symmisc.c (dump_msymbols, dump_symtab_1)
5275 (maintenance_print_one_line_table): Update.
5276 * symfile.c (init_entry_point_info, section_is_mapped)
5277 (list_overlays_command, simple_read_overlay_table)
5278 (simple_overlay_update_1): Update.
5279 * stap-probe.c (handle_stap_probe): Update.
5280 * stabsread.c (dbx_init_float_type, define_symbol)
5281 (read_one_struct_field, read_enum_type, read_range_type): Update.
5282 * source.c (info_line_command): Update.
5283 * python/python.c (gdbpy_source_objfile_script)
5284 (gdbpy_execute_objfile_script): Update.
5285 * python/py-type.c (save_objfile_types): Update.
5286 * python/py-objfile.c (py_free_objfile): Update.
5287 * python/py-inferior.c (python_new_objfile): Update.
5288 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5289 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5290 (maintenance_check_psymtabs): Update.
5291 * printcmd.c (info_address_command): Update.
5292 * objfiles.h (struct objfile) <arch>: New method, from
5293 get_objfile_arch.
5294 (get_objfile_arch): Don't declare.
5295 * objfiles.c (get_objfile_arch): Remove.
5296 (filter_overlapping_sections): Update.
5297 * minsyms.c (msymbol_is_function): Update.
5298 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5299 (output_nondebug_symbol): Update.
5300 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5301 (mdebug_expand_psymtab): Update.
5302 * machoread.c (macho_add_oso_symfile): Update.
5303 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5304 Update.
5305 * linux-fork.c (checkpoint_command): Update.
5306 * linespec.c (convert_linespec_to_sals): Update.
5307 * jit.c (finalize_symtab): Update.
5308 * infrun.c (insert_exception_resume_from_probe): Update.
5309 * ia64-tdep.c (ia64_find_unwind_table): Update.
5310 * hppa-tdep.c (internalize_unwinds): Update.
5311 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5312 Update.
5313 * gcore.c (call_target_sbrk): Update.
5314 * elfread.c (record_minimal_symbol, elf_symtab_read)
5315 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5316 (elf_gnu_ifunc_resolve_by_got): Update.
5317 * dwarf2/read.c (create_addrmap_from_index)
5318 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5319 (read_debug_names_from_section)
5320 (process_psymtab_comp_unit_reader, add_partial_symbol)
5321 (add_partial_subprogram, process_full_comp_unit)
5322 (read_file_scope, read_func_scope, read_lexical_block_scope)
5323 (read_call_site_scope, dwarf2_ranges_read)
5324 (dwarf2_record_block_ranges, dwarf2_add_field)
5325 (mark_common_block_symbol_computed, read_tag_pointer_type)
5326 (read_tag_string_type, dwarf2_init_float_type)
5327 (dwarf2_init_complex_target_type, read_base_type)
5328 (partial_die_info::read, partial_die_info::read)
5329 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5330 (dwarf2_fetch_die_loc_sect_off): Update.
5331 * dwarf2/loc.c (dwarf2_find_location_expression)
5332 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5333 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5334 (dwarf2_loc_desc_get_symbol_read_needs)
5335 (locexpr_describe_location_piece, locexpr_describe_location_1)
5336 (loclist_describe_location): Update.
5337 * dwarf2/index-write.c (write_debug_names): Update.
5338 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5339 * dtrace-probe.c (dtrace_process_dof): Update.
5340 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5341 (process_one_symbol): Update.
5342 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5343 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5344 (coff_read_enum_type): Update.
5345 * cli/cli-cmds.c (edit_command, list_command): Update.
5346 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5347 * breakpoint.c (create_overlay_event_breakpoint)
5348 (create_longjmp_master_breakpoint)
5349 (create_std_terminate_master_breakpoint)
5350 (create_exception_master_breakpoint, get_sal_arch): Update.
5351 * block.c (block_gdbarch): Update.
5352 * annotate.c (annotate_source_line): Update.
5353
5354 2020-04-17 Tom Tromey <tromey@adacore.com>
5355
5356 * auto-load.c (show_auto_load_cmd): Remove.
5357 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5358 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5359 (maintenance_print_arc_command): Remove.
5360 * tui/tui-win.c (tui_command): Remove.
5361 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5362 * tui/tui-layout.c (tui_layout_command): Remove.
5363 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5364 * python/python.c (user_set_python, user_show_python): Remove.
5365 (_initialize_python): Use add_basic_prefix_cmd,
5366 add_show_prefix_cmd.
5367 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5368 (install_gdb_commands): Use add_basic_prefix_cmd,
5369 add_show_prefix_cmd.
5370 (info_guile_command): Remove.
5371 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5372 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5373 add_show_prefix_cmd.
5374 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5375 Remove do_set and do_show parameters.
5376 * cli/cli-style.c (set_style, show_style): Remove.
5377 (_initialize_cli_style): Use add_basic_prefix_cmd,
5378 add_show_prefix_cmd.
5379 (cli_style_option::add_setshow_commands): Remove do_set and
5380 do_show parameters.
5381 (cli_style_option::add_setshow_commands): Use
5382 add_basic_prefix_cmd, add_show_prefix_cmd.
5383 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5384 (set_style_name): Remove.
5385 * cli/cli-dump.c (dump_command, append_command): Remove.
5386 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5387 (tekhex_dump_command, binary_dump_command)
5388 (binary_append_command): Remove.
5389 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5390 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5391 (init_w32_command_list): Remove; move into ...
5392 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5393 * valprint.c (set_print, show_print, set_print_raw)
5394 (show_print_raw): Remove.
5395 (_initialize_valprint): Use add_basic_prefix_cmd,
5396 add_show_prefix_cmd.
5397 * typeprint.c (set_print_type, show_print_type): Remove.
5398 (_initialize_typeprint): Use add_basic_prefix_cmd,
5399 add_show_prefix_cmd.
5400 * record.c (set_record_command, show_record_command): Remove.
5401 (_initialize_record): Use add_basic_prefix_cmd,
5402 add_show_prefix_cmd.
5403 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5404 add_show_prefix_cmd.
5405 (info_command, show_command, set_debug, show_debug): Remove.
5406 * top.h (set_history, show_history): Don't declare.
5407 * top.c (set_history, show_history): Remove.
5408 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5409 (unset_tdesc_cmd): Remove.
5410 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5411 add_show_prefix_cmd.
5412 * symtab.c (info_module_command): Remove.
5413 (_initialize_symtab): Use add_basic_prefix_cmd.
5414 * symfile.c (overlay_command): Remove.
5415 (_initialize_symfile): Use add_basic_prefix_cmd.
5416 * sparc64-tdep.c (info_adi_command): Remove.
5417 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5418 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5419 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5420 add_show_prefix_cmd.
5421 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5422 (_initialize_serial): Use add_basic_prefix_cmd,
5423 add_show_prefix_cmd.
5424 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5425 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5426 add_show_prefix_cmd.
5427 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5428 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5429 add_show_prefix_cmd.
5430 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5431 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5432 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5433 add_show_prefix_cmd.
5434 * remote.c (remote_command, set_remote_cmd): Remove.
5435 (_initialize_remote): Use add_basic_prefix_cmd.
5436 * record-full.c (set_record_full_command)
5437 (show_record_full_command): Remove.
5438 (_initialize_record_full): Use add_basic_prefix_cmd,
5439 add_show_prefix_cmd.
5440 * record-btrace.c (cmd_set_record_btrace)
5441 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5442 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5443 (cmd_show_record_btrace_pt): Remove.
5444 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5445 add_show_prefix_cmd.
5446 * ravenscar-thread.c (set_ravenscar_command)
5447 (show_ravenscar_command): Remove.
5448 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5449 add_show_prefix_cmd.
5450 * mips-tdep.c (show_mips_command, set_mips_command)
5451 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5452 add_show_prefix_cmd.
5453 * maint.c (maintenance_command, maintenance_info_command)
5454 (maintenance_check_command, maintenance_print_command)
5455 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5456 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5457 add_show_prefix_cmd.
5458 (show_per_command_cmd): Remove.
5459 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5460 Remove.
5461 (maintenance_show_test_settings_cmd): Remove.
5462 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5463 add_show_prefix_cmd.
5464 * maint-test-options.c (maintenance_test_options_command):
5465 Remove.
5466 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5467 * macrocmd.c (macro_command): Remove
5468 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5469 * language.c (set_check, show_check): Remove.
5470 (_initialize_language): Use add_basic_prefix_cmd,
5471 add_show_prefix_cmd.
5472 * infcmd.c (unset_command): Remove.
5473 (_initialize_infcmd): Use add_basic_prefix_cmd.
5474 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5475 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5476 add_show_prefix_cmd.
5477 * go32-nat.c (go32_info_dos_command): Remove.
5478 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5479 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5480 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5481 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5482 (_initialize_frame): Use add_basic_prefix_cmd,
5483 add_show_prefix_cmd.
5484 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5485 (_initialize_dcache): Use add_basic_prefix_cmd,
5486 add_show_prefix_cmd.
5487 * cp-support.c (maint_cplus_command): Remove.
5488 (_initialize_cp_support): Use add_basic_prefix_cmd.
5489 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5490 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5491 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5492 add_basic_prefix_cmd, add_show_prefix_cmd.
5493 * breakpoint.c (save_command): Remove.
5494 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5495 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5496 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5497 add_show_prefix_cmd.
5498 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5499 (set_ada_command, show_ada_command): Remove.
5500 (_initialize_ada_language): Use add_basic_prefix_cmd,
5501 add_show_prefix_cmd.
5502 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5503
5504 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5505
5506 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5507 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5508
5509 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5510
5511 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5512 warning messages.
5513
5514 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5515
5516 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5517 import table is not at beginning of .idata section.
5518
5519 2020-04-16 Pedro Alves <palves@redhat.com>
5520
5521 * inferior.c (delete_inferior): Use delete operator directly
5522 instead of delete_program_space.
5523 * progspace.c (add_program_space): New, factored out from
5524 program_space::program_space.
5525 (remove_program_space): New, factored out from
5526 delete_program_space.
5527 (program_space::program_space): Remove intro comment. Rewrite.
5528 (program_space::~program_space): Remove intro comment. Call
5529 remove_program_space.
5530 (delete_program_space): Delete.
5531 * progspace.h (program_space::program_space): Make explicit. Move
5532 intro comment here, adjusted.
5533 (program_space::~program_space): Move intro comment here,
5534 adjusted.
5535 (delete_program_space): Remove.
5536
5537 2020-04-16 Tom Tromey <tromey@adacore.com>
5538
5539 * windows-nat.c (windows_nat::handle_access_violation): New
5540 function.
5541 * nat/windows-nat.h (handle_access_violation): Declare.
5542 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5543 windows-nat.c. Call handle_access_violation.
5544
5545 2020-04-16 Tom de Vries <tdevries@suse.de>
5546
5547 PR symtab/25791
5548 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5549 CUs without psymtab.
5550
5551 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5552
5553 * python/python.c (do_start_initialization): Don't call
5554 PyEval_InitThreads for Python 3.9 and beyond.
5555
5556 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5557
5558 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5559 thread functions.
5560 (obsd_nat_target::wait): Likewise.
5561
5562 2020-04-15 Tom Tromey <tromey@adacore.com>
5563
5564 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5565 (DEBUG_EXCEPT): Use debug_printf.
5566
5567 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5568
5569 * completer.c (class completion_tracker::completion_hash_entry)
5570 <hash_name>: New member function.
5571 (completion_tracker::discard_completions): New callback to hash a
5572 completion_hash_entry, pass this to htab_create_alloc.
5573
5574 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5575
5576 * windows-nat.c (windows_make_so): Warn rather than stopping with
5577 an error if realpath() fails.
5578
5579 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5580
5581 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5582 (nbsd_nat_target::info_proc): Add do_status.
5583
5584 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5585 Tom de Vries <tdevries@suse.de>
5586
5587 PR symtab/25718
5588 * psympriv.h (struct partial_symtab::read_symtab)
5589 (struct partial_symtab::expand_psymtab)
5590 (struct partial_symtab::read_dependencies): Update comments.
5591 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5592 read_symtab for includer.
5593 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5594 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5595 (struct dwarf2_include_psymtab::m_readin): Remove.
5596 (struct dwarf2_include_psymtab::includer): New member function.
5597 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5598
5599 2020-04-14 Tom de Vries <tdevries@suse.de>
5600
5601 PR symtab/25720
5602 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5603 with NULL symbol_matcher and lookup_name.
5604 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5605 and lookup_name.
5606 * dwarf2/read.c (dw2_expand_symtabs_matching)
5607 (dw2_debug_names_expand_symtabs_matching): Same.
5608 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5609 Make lookup_name a pointer. Update comment.
5610 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5611 lookup_name being a pointer.
5612 * symfile.c (expand_symtabs_matching): Same.
5613 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5614 * linespec.c (iterate_over_all_matching_symtabs): Same.
5615
5616 2020-04-13 Tom Tromey <tom@tromey.com>
5617
5618 * run-on-main-thread.c: Update include.
5619 * unittests/main-thread-selftests.c: Update include.
5620 * tui/tui-win.c: Update include.
5621 * tui/tui-io.c: Update include.
5622 * tui/tui-interp.c: Update include.
5623 * tui/tui-hooks.c: Update include.
5624 * top.h: Update include.
5625 * top.c: Update include.
5626 * ser-base.c: Update include.
5627 * remote.c: Update include.
5628 * remote-notif.c: Update include.
5629 * remote-fileio.c: Update include.
5630 * record-full.c: Update include.
5631 * record-btrace.c: Update include.
5632 * python/python.c: Update include.
5633 * posix-hdep.c: Update include.
5634 * mingw-hdep.c: Update include.
5635 * mi/mi-main.c: Update include.
5636 * mi/mi-interp.c: Update include.
5637 * main.c: Update include.
5638 * linux-nat.c: Update include.
5639 * interps.c: Update include.
5640 * infrun.c: Update include.
5641 * inf-loop.c: Update include.
5642 * event-top.c: Update include.
5643 * event-loop.c: Move to ../gdbsupport/.
5644 * event-loop.h: Move to ../gdbsupport/.
5645 * async-event.h: Update include.
5646 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5647
5648 2020-04-13 Tom Tromey <tom@tromey.com>
5649
5650 * tui/tui-win.c: Include async-event.h.
5651 * remote.c: Include async-event.h.
5652 * remote-notif.c: Include async-event.h.
5653 * record-full.c: Include async-event.h.
5654 * record-btrace.c: Include async-event.h.
5655 * infrun.c: Include async-event.h.
5656 * event-top.c: Include async-event.h.
5657 * event-loop.h: Move some declarations to async-event.h.
5658 * event-loop.c: Don't include ser-event.h or top.h. Move some
5659 code to async-event.c.
5660 * async-event.h: New file.
5661 * async-event.c: New file.
5662 * Makefile.in (COMMON_SFILES): Add async-event.c.
5663 (HFILES_NO_SRCDIR): Add async-event.h.
5664
5665 2020-04-13 Tom Tromey <tom@tromey.com>
5666
5667 * utils.c (flush_streams): New function.
5668 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5669
5670 2020-04-13 Tom Tromey <tom@tromey.com>
5671
5672 * event-loop.c (handle_file_event): Use warning, not
5673 printf_unfiltered.
5674
5675 2020-04-13 Tom Tromey <tom@tromey.com>
5676
5677 * event-loop.c: Include <chrono>.
5678
5679 2020-04-13 Tom Tromey <tom@tromey.com>
5680
5681 * gdb_select.h: Move to ../gdbsupport/.
5682 * event-loop.c: Update include path.
5683 * top.c: Update include path.
5684 * ser-base.c: Update include path.
5685 * ui-file.c: Update include path.
5686 * ser-tcp.c: Update include path.
5687 * guile/scm-ports.c: Update include path.
5688 * posix-hdep.c: Update include path.
5689 * ser-unix.c: Update include path.
5690 * gdb_usleep.c: Update include path.
5691 * mingw-hdep.c: Update include path.
5692 * inflow.c: Update include path.
5693 * infrun.c: Update include path.
5694 * event-top.c: Update include path.
5695
5696 2020-04-13 Tom Tromey <tom@tromey.com>
5697
5698 * configure: Rebuild.
5699 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5700
5701 2020-04-13 Tom Tromey <tom@tromey.com>
5702
5703 * event-loop.h (start_event_loop): Don't declare.
5704 * event-loop.c (start_event_loop): Move...
5705 * main.c (start_event_loop): ...here. Now static.
5706
5707 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5708
5709 * MAINTAINERS: Update my email address.
5710
5711 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5712
5713 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5714 IP_ALL.
5715
5716 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5717
5718 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5719 (nbsd_nat_target::info_proc): Add do_cmdline.
5720
5721 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5722
5723 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5724 (nbsd_nat_target::info_proc): Add do_cwd.
5725
5726 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5727
5728 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5729
5730 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5731
5732 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5733 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5734 (nbsd_nat_target::info_proc): New functions.
5735 * nbsd-nat.c (kinfo_get_vmmap): New function.
5736 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5737 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5738 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5739 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5740 functions.
5741 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5742 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5743 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5744 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5745 (KINFO_VME_FLAG_GROWS_DOWN): New.
5746
5747 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5748
5749 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5750 bit shift.
5751
5752 2020-04-10 Tom Tromey <tromey@adacore.com>
5753
5754 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5755
5756 2020-04-10 Tom Tromey <tromey@adacore.com>
5757
5758 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5759 separate debug files.
5760
5761 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5762
5763 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5764 Move to...
5765 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5766 ... here.
5767 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5768 Check for STATUS_WX86_BREAKPOINT.
5769 (windows_nat_target::wait): Same.
5770
5771 2020-04-10 Tom de Vries <tdevries@suse.de>
5772
5773 PR cli/25808
5774 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5775
5776 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5777
5778 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5779 (Write After Approval): Remove Tom de Vries.
5780
5781 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5782
5783 revert partially:
5784 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5785
5786 * buildsym.c (record_line): Fix undefined behavior and preserve
5787 lines at eof.
5788
5789 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5790
5791 * auxv.h (svr4_auxv_parse): New.
5792 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5793 and generic_auxv_parse.
5794 (svr4_auxv_parse): Add.
5795 * obsd-tdep.c: Include "auxv.h".
5796 (obsd_auxv_parse): Remove.
5797 (obsd_init_abi): Remove comment.
5798 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5799 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5800 * nbsd-tdep.c: Include "auxv.h".
5801 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5802
5803 2020-04-08 Tom Tromey <tromey@adacore.com>
5804
5805 * nat/windows-nat.h (last_wait_event): Don't declare.
5806 (wait_for_debug_event): Update comment.
5807 * nat/windows-nat.c (last_wait_event): Now static.
5808
5809 2020-04-08 Tom Tromey <tromey@adacore.com>
5810
5811 * windows-nat.c (wait_for_debug_event): Move to
5812 nat/windows-nat.c.
5813 * nat/windows-nat.h (wait_for_debug_event): Declare.
5814 * nat/windows-nat.c (wait_for_debug_event): Move from
5815 windows-nat.c. No longer static.
5816
5817 2020-04-08 Tom Tromey <tromey@adacore.com>
5818
5819 * windows-nat.c (get_windows_debug_event): Use
5820 fetch_pending_stop.
5821 * nat/windows-nat.h (fetch_pending_stop): Declare.
5822 * nat/windows-nat.c (fetch_pending_stop): New function.
5823
5824 2020-04-08 Tom Tromey <tromey@adacore.com>
5825
5826 * windows-nat.c (windows_continue): Use matching_pending_stop and
5827 continue_last_debug_event.
5828 * nat/windows-nat.h (matching_pending_stop)
5829 (continue_last_debug_event): Declare.
5830 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5831 (matching_pending_stop, continue_last_debug_event): New
5832 functions.
5833
5834 2020-04-08 Tom Tromey <tromey@adacore.com>
5835
5836 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5837 (handle_exception_result): Move to nat/windows-nat.h.
5838 (DEBUG_EXCEPTION_SIMPLE): Remove.
5839 (windows_nat::handle_ms_vc_exception): New function.
5840 (handle_exception): Move to nat/windows-nat.c.
5841 (get_windows_debug_event): Update.
5842 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5843 nat/windows-nat.c.
5844 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5845 (handle_exception_result): Move from windows-nat.c.
5846 (handle_exception): Declare.
5847 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5848 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5849 windows-nat.c.
5850
5851 2020-04-08 Tom Tromey <tromey@adacore.com>
5852
5853 * windows-nat.c (exception_count, event_count): Remove.
5854 (handle_exception, get_windows_debug_event)
5855 (do_initial_windows_stuff): Update.
5856
5857 2020-04-08 Tom Tromey <tromey@adacore.com>
5858
5859 * windows-nat.c (windows_nat::handle_load_dll)
5860 (windows_nat::handle_unload_dll): Rename. No longer static.
5861 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5862 Declare.
5863
5864 2020-04-08 Tom Tromey <tromey@adacore.com>
5865
5866 * complaints.h (stop_whining): Declare at top-level.
5867 (complaint): Don't declare stop_whining.
5868
5869 2020-04-08 Tom Tromey <tromey@adacore.com>
5870
5871 * windows-nat.c (windows_nat::handle_output_debug_string):
5872 Rename. No longer static.
5873 * nat/windows-nat.h (handle_output_debug_string): Declare.
5874
5875 2020-04-08 Tom Tromey <tromey@adacore.com>
5876
5877 * windows-nat.c (current_process_handle, current_process_id)
5878 (main_thread_id, last_sig, current_event, last_wait_event)
5879 (current_windows_thread, desired_stop_thread_id, pending_stops)
5880 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5881 (display_selectors, fake_create_process)
5882 (get_windows_debug_event): Update.
5883 * nat/windows-nat.h (current_process_handle, current_process_id)
5884 (main_thread_id, last_sig, current_event, last_wait_event)
5885 (current_windows_thread, desired_stop_thread_id, pending_stops)
5886 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5887 * nat/windows-nat.c (current_process_handle, current_process_id)
5888 (main_thread_id, last_sig, current_event, last_wait_event)
5889 (current_windows_thread, desired_stop_thread_id, pending_stops)
5890 (siginfo_er): New globals. Move from windows-nat.c.
5891
5892 2020-04-08 Tom Tromey <tromey@adacore.com>
5893
5894 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5895 (handle_load_dll): Update.
5896 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5897
5898 2020-04-08 Tom Tromey <tromey@adacore.com>
5899
5900 * windows-nat.c (enum thread_disposition_type): Move to
5901 nat/windows-nat.h.
5902 (windows_nat::thread_rec): Rename from thread_rec. No longer
5903 static.
5904 (windows_add_thread, windows_nat_target::fetch_registers)
5905 (windows_nat_target::store_registers, handle_exception)
5906 (windows_nat_target::resume, get_windows_debug_event)
5907 (windows_nat_target::get_tib_address)
5908 (windows_nat_target::thread_name)
5909 (windows_nat_target::thread_alive): Update.
5910 * nat/windows-nat.h (enum thread_disposition_type): Move from
5911 windows-nat.c.
5912 (thread_rec): Declare.
5913
5914 2020-04-08 Tom Tromey <tromey@adacore.com>
5915
5916 * windows-nat.c: Add "using namespace".
5917 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5918 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5919
5920 2020-04-08 Tom Tromey <tromey@adacore.com>
5921
5922 * nat/windows-nat.h (struct windows_thread_info): Declare
5923 destructor.
5924 * nat/windows-nat.c (~windows_thread_info): New.
5925
5926 2020-04-08 Tom Tromey <tromey@adacore.com>
5927
5928 PR gdb/22992
5929 * windows-nat.c (current_event): Update comment.
5930 (last_wait_event, desired_stop_thread_id): New globals.
5931 (struct pending_stop): New.
5932 (pending_stops): New global.
5933 (windows_nat_target) <stopped_by_sw_breakpoint>
5934 <supports_stopped_by_sw_breakpoint>: New methods.
5935 (windows_fetch_one_register): Add assertions. Adjust PC.
5936 (windows_continue): Handle pending stops. Suspend other threads
5937 when stepping. Use last_wait_event
5938 (wait_for_debug_event): New function.
5939 (get_windows_debug_event): Use wait_for_debug_event. Handle
5940 pending stops. Queue spurious stops.
5941 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5942 (windows_nat_target::kill): Use wait_for_debug_event.
5943 * nat/windows-nat.h (struct windows_thread_info)
5944 <stopped_at_software_breakpoint>: New field.
5945 * nat/windows-nat.c (windows_thread_info::resume): Clear
5946 stopped_at_software_breakpoint.
5947
5948 2020-04-08 Tom Tromey <tromey@adacore.com>
5949
5950 * windows-nat.c (enum thread_disposition_type): New.
5951 (thread_rec): Replace "get_context" parameter with "disposition";
5952 change type.
5953 (windows_add_thread, windows_nat_target::fetch_registers)
5954 (windows_nat_target::store_registers, handle_exception)
5955 (windows_nat_target::resume, get_windows_debug_event)
5956 (windows_nat_target::get_tib_address)
5957 (windows_nat_target::thread_name)
5958 (windows_nat_target::thread_alive): Update.
5959
5960 2020-04-08 Tom Tromey <tromey@adacore.com>
5961
5962 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5963 (windows_continue): Use windows_continue::resume.
5964 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5965 resume>: Declare new methods.
5966 * nat/windows-nat.c: New file.
5967 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5968
5969 2020-04-08 Tom Tromey <tromey@adacore.com>
5970
5971 * windows-nat.c (windows_add_thread, windows_delete_thread)
5972 (windows_nat_target::fetch_registers)
5973 (windows_nat_target::store_registers, fake_create_process)
5974 (windows_nat_target::resume, windows_nat_target::resume)
5975 (get_windows_debug_event, windows_nat_target::wait)
5976 (windows_nat_target::pid_to_str)
5977 (windows_nat_target::get_tib_address)
5978 (windows_nat_target::get_ada_task_ptid)
5979 (windows_nat_target::thread_name)
5980 (windows_nat_target::thread_alive): Use lwp, not tid.
5981
5982 2020-04-08 Tom Tromey <tromey@adacore.com>
5983
5984 * windows-nat.c (handle_exception)
5985 (windows_nat_target::thread_name): Update.
5986 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5987 <name>: Now unique_xmalloc_ptr.
5988
5989 2020-04-08 Tom Tromey <tromey@adacore.com>
5990
5991 * windows-nat.c (thread_rec)
5992 (windows_nat_target::fetch_registers): Update.
5993 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5994 Update comment.
5995 <debug_registers_changed, reload_context>: Now bool.
5996
5997 2020-04-08 Tom Tromey <tromey@adacore.com>
5998
5999 * windows-nat.c (windows_add_thread): Use new.
6000 (windows_init_thread_list, windows_delete_thread): Use delete.
6001 (get_windows_debug_event): Update.
6002 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6003 destructor, and initializers.
6004
6005 2020-04-08 Tom Tromey <tromey@adacore.com>
6006
6007 * windows-nat.c (struct windows_thread_info): Remove.
6008 * nat/windows-nat.h: New file.
6009
6010 2020-04-08 Tom Tromey <tromey@adacore.com>
6011
6012 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6013 (thread_rec, windows_add_thread, windows_delete_thread)
6014 (windows_continue): Update.
6015
6016 2020-04-08 Tom Tromey <tromey@adacore.com>
6017
6018 * windows-nat.c (struct windows_thread_info): Remove typedef.
6019 (thread_head): Remove.
6020 (thread_list): New global.
6021 (thread_rec, windows_add_thread, windows_init_thread_list)
6022 (windows_delete_thread, windows_continue): Update.
6023
6024 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6025
6026 * windows-tdep.h (windows_init_abi): Add comment.
6027 (cygwin_init_abi): New declaration.
6028 * windows-tdep.c: Split signal enumeration in two, one for
6029 Windows and one for Cygwin.
6030 (windows_gdb_signal_to_target): Only deal with signal of the
6031 Windows OS ABI.
6032 (cygwin_gdb_signal_to_target): New function.
6033 (windows_init_abi): Rename to windows_init_abi_common, don't set
6034 gdb_signal_to_target gdbarch method. Add new new function with
6035 this name.
6036 (cygwin_init_abi): New function.
6037 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6038 comment. Don't call windows_init_abi.
6039 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6040 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6041 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6042 i386_windows_init_abi_common, don't call windows_init_abi. Add
6043 a new function of this name.
6044 (i386_cygwin_init_abi): New function.
6045 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6046 OS ABI Cygwin.
6047
6048 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6049
6050 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6051 parameter.c.
6052 (dwarf2_read_gdb_index): Update.
6053
6054 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6055
6056 * nbsd-tdep.c: Include "objfiles.h".
6057 (nbsd_skip_solib_resolver): New.
6058 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6059
6060 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6061
6062 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6063 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6064 with DW_LLE_base_addressx are being emitted in DWARFv5.
6065 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6066 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6067 unsigned integer.
6068
6069 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6070
6071 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6072 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6073 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6074 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6075 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6076 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6077 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6078
6079
6080 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6081
6082 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6083 (read_loclist_index): New function definition.
6084 (lookup_loclist_base): New function definition.
6085 (read_loclist_header): New function definition.
6086 (dwarf2_cu): Add loclist_base and loclist_header field.
6087 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6088 (read_full_die_1): Read the value of DW_AT_loclists_base.
6089 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6090 (read_attribute_value): Handle DW_FORM_loclistx.
6091 (skip_one_die): Handle DW_FORM_loclistx.
6092 (loclist_header): New structure declaration.
6093 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6094
6095 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6096
6097 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6098 constructor. Remove `addr` parameter from other constructor and
6099 add `per_cu` parameter.
6100 * dwarf2/read.c (create_partial_symtab): Update.
6101
6102 2020-04-07 Tom de Vries <tdevries@suse.de>
6103
6104 PR symtab/25796
6105 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6106 (partial_die_info::fixup): Inherit has_const_value.
6107
6108 2020-04-07 Tom de Vries <tdevries@suse.de>
6109
6110 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6111 symbols without address.
6112
6113 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6114
6115 * nbsd-nat.h (struct thread_info): Add forward declaration.
6116 (nbsd_nat_target::thread_alive): Add.
6117 (nbsd_nat_target::thread_name): Likewise.
6118 (nbsd_nat_target::update_thread_list): Likewise.
6119 (update_thread_list::post_attach): Likewise.
6120 (post_attach::pid_to_str): Likewise.
6121 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6122 (nbsd_thread_lister): Add.
6123 (nbsd_nat_target::thread_alive): Likewise.
6124 (nbsd_nat_target::thread_name): Likewise.
6125 (nbsd_add_threads): Likewise.
6126 (update_thread_list::post_attach): Likewise.
6127 (nbsd_nat_target::update_thread_list): Likewise.
6128 (post_attach::pid_to_str): Likewise.
6129
6130 2020-04-06 Tom Tromey <tromey@adacore.com>
6131
6132 * ada-valprint.c (print_variant_part): Extract the variant field.
6133 (print_field_values): Use the field as the outer value when
6134 recursing.
6135
6136 2020-04-06 Tom Tromey <tromey@adacore.com>
6137
6138 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6139 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6140 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6141 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6142 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6143
6144 2020-04-06 Tom Tromey <tromey@adacore.com>
6145
6146 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6147 TYPE_CODE_ERROR.
6148
6149 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6150
6151 * nbsd-tdep.c: Include "gdbarch.h".
6152 Define enum with NetBSD signal numbers.
6153 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6154 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6155 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6156 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6157 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6158 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6159 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6160 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6161 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6162 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6163 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6164 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6165
6166 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6167
6168 PR gdb/25325
6169 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6170
6171 2020-04-03 Tom Tromey <tromey@adacore.com>
6172
6173 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6174 Read constant block.
6175
6176 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6177
6178 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6179 (gdb_bfd_get_full_section_contents): New declaration.
6180 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6181 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6182 gdb_bfd_get_full_section_contents.
6183
6184 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6185
6186 * exec.c (build_section_table): Replace internal_error with
6187 gdb_assert.
6188 (section_table_xfer_memory_partial): Likewise.
6189 * mdebugread.c (parse_partial_symbols): Likewise.
6190 * psymtab.c (lookup_partial_symbol): Likewise.
6191 * utils.c (wrap_here): Likewise.
6192
6193 2020-04-02 Tom Tromey <tromey@adacore.com>
6194
6195 * f-lang.c (build_fortran_types): Use arch_type to initialize
6196 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6197
6198 2020-04-02 Tom Tromey <tromey@adacore.com>
6199
6200 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6201 of attributes.
6202
6203 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6204 Bernd Edlinger <bernd.edlinger@hotmail.de>
6205 Tom Tromey <tromey@adacore.com>
6206
6207 * buildsym.c (buildsym_compunit::record_line): Remove
6208 deduplication code.
6209
6210 2020-04-02 Tom de Vries <tdevries@suse.de>
6211
6212 PR ada/24671
6213 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6214
6215 2020-04-02 Tom de Vries <tdevries@suse.de>
6216
6217 * dwarf2/read.c (dwarf2_gdb_index_functions,
6218 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6219 NULL.
6220 * psymtab.c (psym_lookup_global_symbol_language): New function.
6221 (psym_functions): Init psym_lookup_global_symbol_language with
6222 psym_lookup_global_symbol_language.
6223 * symfile-debug.c (debug_sym_quick_functions): Init
6224 lookup_global_symbol_language with NULL.
6225 * symfile.c (set_initial_language): Remove fixme comment.
6226 * symfile.h (struct quick_symbol_functions): Add
6227 lookup_global_symbol_language.
6228 * symtab.c (find_quick_global_symbol_language): New function.
6229 (find_main_name): Use find_quick_global_symbol_language.
6230
6231 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6232
6233 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6234
6235 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6236
6237 * buildsym.c (record_line): Fix undefined behavior and preserve
6238 lines at eof.
6239
6240 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6241
6242 * buildsym.c (record_line): Fix the resizing condition.
6243
6244 2020-04-01 Tom Tromey <tom@tromey.com>
6245
6246 * value.h (value_literal_complex): Add comment.
6247 * valops.c (value_literal_complex): Refer to value.h.
6248
6249 2020-04-01 Tom Tromey <tom@tromey.com>
6250
6251 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6252 (scalar_type): New rule, from typebase.
6253 (typebase): Use scalar_type. Recognize complex types.
6254 (field_name): Handle FLOAT_KEYWORD.
6255 (ident_tokens): Add _Complex and __complex__.
6256
6257 2020-04-01 Tom Tromey <tom@tromey.com>
6258
6259 PR exp/25299:
6260 * valarith.c (promotion_type, complex_binop): New functions.
6261 (scalar_binop): Handle complex numbers. Use promotion_type.
6262 (value_pos, value_neg, value_complement): Handle complex numbers.
6263
6264 2020-04-01 Tom Tromey <tom@tromey.com>
6265
6266 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6267 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6268 (parse_number): Handle complex numbers.
6269
6270 2020-04-01 Tom Tromey <tom@tromey.com>
6271
6272 * c-valprint.c (c_decorations): Change complex suffix to "i".
6273
6274 2020-04-01 Tom Tromey <tom@tromey.com>
6275
6276 * valprint.c (generic_value_print_complex): Use accessors.
6277 * value.h (value_real_part, value_imaginary_part): Declare.
6278 * valops.c (value_real_part, value_imaginary_part): New
6279 functions.
6280 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6281
6282 2020-04-01 Tom Tromey <tom@tromey.com>
6283
6284 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6285 (read_range_type): Update.
6286 * mdebugread.c (basic_type): Update.
6287 * go-lang.c (build_go_types): Use init_complex_type.
6288 * gdbtypes.h (struct main_type) <complex_type>: New member.
6289 (init_complex_type): Update.
6290 (arch_complex_type): Don't declare.
6291 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6292 Make name if none given. Use alloc_type_copy. Look for cached
6293 complex type.
6294 (arch_complex_type): Remove.
6295 (gdbtypes_post_init): Use init_complex_type.
6296 * f-lang.c (build_fortran_types): Use init_complex_type.
6297 * dwarf2/read.c (read_base_type): Update.
6298 * d-lang.c (build_d_types): Use init_complex_type.
6299 * ctfread.c (read_base_type): Update.
6300
6301 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6302
6303 * infrun.c (stop_all_threads): Update assertion, plus when
6304 stopping threads, take into account that we might be trying
6305 to stop an all-stop target.
6306 (stop_waiting): Call 'stop_all_threads' if there exists a
6307 non-stop target.
6308
6309 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6310
6311 * target.h (exists_non_stop_target): New function declaration.
6312 * target.c (exists_non_stop_target): New function.
6313
6314 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6315
6316 PR gdb/24789
6317 * eval.c (is_integral_or_integral_reference): New function.
6318 (evaluate_subexp_standard): Allow integer references in
6319 pointer arithmetic.
6320
6321 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6322
6323 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6324 check for no ptid in the stop reply when the target is non-stop.
6325
6326 2020-04-01 Tom Tromey <tromey@adacore.com>
6327
6328 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6329 "name" parameter to rvalue reference. Initialize m_name_holder.
6330 <lookup_name_info>: New overloads.
6331 <name>: Return gdb::string_view.
6332 <c_str>: New method.
6333 <make_ignore_params>: Update.
6334 <search_name_hash>: Update.
6335 <language_lookup_name>: Return const char *.
6336 <m_name>: Change type.
6337 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6338 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6339 (lookup_name_info::match_any): Update.
6340 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6341 Update.
6342 * minsyms.c (linkage_name_str): Update.
6343 * language.c (default_symbol_name_matcher): Update.
6344 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6345 Update.
6346 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6347 (ada_lookup_name_info::ada_lookup_name_info): Update.
6348 (literal_symbol_name_matcher): Update.
6349
6350 2020-04-01 Tom Tromey <tromey@adacore.com>
6351
6352 * psymtab.c (psymtab_search_name): Remove function.
6353 (psym_lookup_symbol): Create search name and lookup name here.
6354 (lookup_partial_symbol): Remove "name" parameter; add
6355 lookup_name.
6356 (psym_expand_symtabs_for_function): Update.
6357
6358 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6359
6360 PR tui/25597:
6361 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6362
6363 2020-03-31 Tom Tromey <tromey@adacore.com>
6364
6365 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6366 memcpy.
6367
6368 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6369
6370 * features/riscv/32bit-csr.xml: Regenerated.
6371 * features/riscv/64bit-csr.xml: Regenerated.
6372
6373 2020-03-30 Tom Tromey <tromey@adacore.com>
6374
6375 * ada-valprint.c (print_variant_part): Update.
6376 * ada-lang.h (ada_which_variant_applies): Update.
6377 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6378 outer_valaddr parameters; replace with "outer" value parameter.
6379 (to_fixed_variant_branch_type): Update.
6380
6381 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6382
6383 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6384 <list>. Remove inclusion of observable.h.
6385 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6386 (struct arch_lwp_info): New struct.
6387 (class ppc_linux_dreg_interface): New class.
6388 (struct ppc_linux_process_info): New struct.
6389 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6390 <low_new_clone, low_forget_process, low_prepare_to_resume>
6391 <copy_thread_dreg_state, mark_thread_stale>
6392 <mark_debug_registers_changed, register_hw_breakpoint>
6393 <clear_hw_breakpoint, register_wp, clear_wp>
6394 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6395 <num_memory_accesses, get_trigger_type>
6396 <create_watchpoint_request, hwdebug_point_cmp>
6397 <init_arch_lwp_info, get_arch_lwp_info>
6398 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6399 methods.
6400 <struct ptid_hash>: New inner struct.
6401 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6402 members.
6403 (saved_dabr_value, hwdebug_info, max_slots_number)
6404 (struct hw_break_tuple, struct thread_points, ppc_threads)
6405 (have_ptrace_hwdebug_interface)
6406 (hwdebug_find_thread_points_by_tid)
6407 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6408 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6409 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6410 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6411 use m_dreg_interface.
6412 (hwdebug_point_cmp): Change to...
6413 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6414 reference arguments instead of pointers.
6415 (ppc_linux_nat_target::ranged_break_num_registers): Use
6416 m_dreg_interface.
6417 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6418 m_dreg_interface. Call register_hw_breakpoint.
6419 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6420 m_dreg_interface. Call clear_hw_breakpoint.
6421 (get_trigger_type): Change to...
6422 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6423 comment.
6424 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6425 use m_dreg_interface. Call register_hw_breakpoint.
6426 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6427 use m_dreg_interface. Call clear_hw_breakpoint.
6428 (can_use_watchpoint_cond_accel): Change to...
6429 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6430 method. Update comment, use m_dreg_interface and
6431 m_process_info.
6432 (calculate_dvc): Change to...
6433 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6434 m_dreg_interface.
6435 (num_memory_accesses): Change to...
6436 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6437 (check_condition): Change to...
6438 (ppc_linux_nat_target::check_condition): ...this method.
6439 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6440 comment, use m_dreg_interface.
6441 (create_watchpoint_request): Change to...
6442 (ppc_linux_nat_target::create_watchpoint_request): ...this
6443 method. Use m_dreg_interface.
6444 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6445 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6446 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6447 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6448 (ppc_linux_nat_target::low_forget_process)
6449 (ppc_linux_nat_target::low_new_fork)
6450 (ppc_linux_nat_target::low_new_clone)
6451 (ppc_linux_nat_target::low_delete_thread)
6452 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6453 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6454 only call mark_thread_stale.
6455 (ppc_linux_thread_exit): Remove.
6456 (ppc_linux_nat_target::stopped_data_address): Change to...
6457 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6458 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6459 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6460 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6461 comment. Call low_stopped_data_address.
6462 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6463 m_dreg_interface.
6464 (ppc_linux_nat_target::masked_watch_num_registers): Use
6465 m_dreg_interface.
6466 (ppc_linux_nat_target::copy_thread_dreg_state)
6467 (ppc_linux_nat_target::mark_thread_stale)
6468 (ppc_linux_nat_target::mark_debug_registers_changed)
6469 (ppc_linux_nat_target::register_hw_breakpoint)
6470 (ppc_linux_nat_target::clear_hw_breakpoint)
6471 (ppc_linux_nat_target::register_wp)
6472 (ppc_linux_nat_target::clear_wp)
6473 (ppc_linux_nat_target::init_arch_lwp_info)
6474 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6475 (_initialize_ppc_linux_nat): Remove observer callback.
6476
6477 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6478
6479 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6480 (ppc_linux_nat_target::auxv_parse)
6481 (ppc_linux_nat_target::read_description)
6482 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6483 Move up.
6484
6485 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6486
6487 * linux-nat.h (low_new_clone): New method.
6488 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6489
6490 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6491
6492 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6493 (dbx_expand_psymtab): ... this.
6494 (start_psymtab): Update.
6495 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6496 (mdebug_expand_psymtab): ... this.
6497 (parse_partial_symbols): Update.
6498 (new_psymtab): Update.
6499 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6500 (xcoff_expand_psymtab): ... this.
6501 (xcoff_start_psymtab): Update.
6502
6503 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6504
6505 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6506 <expand_dependencies>: ... this.
6507 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6508 (partial_symtab::expand_dependencies): ... this.
6509 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6510 Update.
6511 (dwarf2_psymtab::expand_psymtab): Update.
6512 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6513 * mdebugread.c (psymtab_to_symtab_1): Update.
6514 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6515
6516 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6517
6518 * psympriv.h (discard_psymtab): Remove.
6519 * dbxread.c (dbx_end_psymtab): Update.
6520 * xcoffread.c (xcoff_end_psymtab): Update.
6521
6522 2020-03-28 Tom Tromey <tom@tromey.com>
6523
6524 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6525 comment.
6526
6527 2020-03-28 Tom Tromey <tom@tromey.com>
6528
6529 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6530
6531 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6532
6533 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6534
6535 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6536
6537 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6538
6539 2020-03-26 Tom Tromey <tom@tromey.com>
6540
6541 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6542 (mark_common_block_symbol_computed, read_tag_string_type)
6543 (attr_to_dynamic_prop, read_subrange_type): Update.
6544 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6545 to be methods on struct attribute.
6546 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6547 (read_call_site_scope, partial_die_info::read)
6548 (partial_die_info::read, lookup_die_type, follow_die_ref):
6549 Update.
6550 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6551 from dwarf2_get_ref_die_offset.
6552 (attribute::constant_value): New method, from
6553 dwarf2_get_attr_constant_value.
6554 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6555 Declare method.
6556 <constant_value>: New method.
6557
6558 2020-03-26 Tom Tromey <tom@tromey.com>
6559
6560 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6561 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6562 (dwarf_type_encoding_name): Move to stringify.c.
6563 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6564 * dwarf2/stringify.c: New file.
6565 * dwarf2/stringify.h: New file.
6566
6567 2020-03-26 Tom Tromey <tom@tromey.com>
6568
6569 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6570 Rewrite.
6571
6572 2020-03-26 Tom Tromey <tom@tromey.com>
6573
6574 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6575 methods.
6576 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6577 (lookup_ranges_base): Likewise.
6578 (read_cutu_die_from_dwo, read_full_die_1): Update.
6579
6580 2020-03-26 Tom Tromey <tom@tromey.com>
6581
6582 * dwarf2/read.c (read_import_statement, read_file_scope)
6583 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6584 (read_lexical_block_scope, read_call_site_scope)
6585 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6586 (handle_struct_member_die, process_structure_scope)
6587 (update_enumeration_type_from_children)
6588 (process_enumeration_scope, read_array_type, read_common_block)
6589 (read_namespace, read_module, read_subroutine_type): Update.
6590 (sibling_die): Remove.
6591
6592 2020-03-26 Tom Tromey <tom@tromey.com>
6593
6594 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6595 (build_type_psymtabs_reader, read_structure_type)
6596 (read_enumeration_type, read_full_die_1): Update.
6597 (dwarf2_attr_no_follow): Move to die.h.
6598 * dwarf2/die.h (struct die_info) <attr>: New method.
6599
6600 2020-03-26 Tom Tromey <tom@tromey.com>
6601
6602 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6603 <base_address>: Now an optional.
6604 (dwarf2_find_base_address, dwarf2_rnglists_process)
6605 (dwarf2_ranges_process, fill_in_loclist_baton)
6606 (dwarf2_symbol_mark_computed): Update.
6607
6608 2020-03-26 Tom Tromey <tom@tromey.com>
6609
6610 * dwarf2/read.c (struct die_info): Move to die.h.
6611 * dwarf2/die.h: New file.
6612
6613 2020-03-26 Tom Tromey <tom@tromey.com>
6614
6615 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6616 * dwarf2/read.c
6617 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6618 Move to line-header.c.
6619 (read_checked_initial_length_and_offset, read_formatted_entries):
6620 Likewise.
6621 (dwarf_decode_line_header): Split into two.
6622 * dwarf2/line-header.c
6623 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6624 Move from read.c.
6625 (read_checked_initial_length_and_offset, read_formatted_entries):
6626 Likewise.
6627 (dwarf_decode_line_header): New function, split from read.c.
6628
6629 2020-03-26 Tom Tromey <tom@tromey.com>
6630
6631 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6632 Declare method.
6633 * dwarf2/read.c (read_attribute_value): Update.
6634 (dwarf2_per_objfile::read_line_string): Rename from
6635 read_indirect_line_string.
6636 (read_formatted_entries): Update.
6637
6638 2020-03-26 Tom Tromey <tom@tromey.com>
6639
6640 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6641 variable.
6642
6643 2020-03-26 Tom Tromey <tom@tromey.com>
6644
6645 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6646 const.
6647 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6648 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6649 parameter const.
6650
6651 2020-03-26 Tom Tromey <tom@tromey.com>
6652
6653 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6654 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6655 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6656 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6657
6658 2020-03-26 Tom Tromey <tom@tromey.com>
6659
6660 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6661 file_names_size, file_full_name, file_file_name>: Use const.
6662 <file_name_at, file_names>: Add const overload.
6663 * dwarf2/line-header.c (line_header::file_file_name)
6664 (line_header::file_full_name): Update.
6665
6666 2020-03-26 Tom Tromey <tom@tromey.com>
6667
6668 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6669 (macro_start_file, consume_improper_spaces)
6670 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6671 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6672 (dwarf_decode_macros): Move to macro.c.
6673 * dwarf2/macro.c: New file.
6674 * dwarf2/macro.h: New file.
6675 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6676
6677 2020-03-26 Tom Tromey <tom@tromey.com>
6678
6679 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6680 method.
6681 * dwarf2/section.c: New method. From
6682 read_indirect_string_at_offset_from.
6683 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6684 (read_indirect_string_at_offset_from): Move to section.c.
6685 (read_indirect_string_at_offset): Rewrite.
6686 (read_indirect_line_string_at_offset): Remove.
6687 (read_indirect_string, read_indirect_line_string)
6688 (dwarf_decode_macro_bytes): Update.
6689
6690 2020-03-26 Tom Tromey <tom@tromey.com>
6691
6692 * dwarf2/section.h (struct dwarf2_section_info)
6693 <overload_complaint>: Declare.
6694 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6695 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6696 Rename from dwarf2_section_buffer_overflow_complaint.
6697 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6698 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6699
6700 2020-03-26 Tom Tromey <tom@tromey.com>
6701
6702 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6703 Declare.
6704 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6705 Move from read.c.
6706 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6707 to section.c.
6708
6709 2020-03-26 Tom Tromey <tom@tromey.com>
6710
6711 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6712
6713 2020-03-26 Tom Tromey <tom@tromey.com>
6714
6715 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6716 "builder".
6717 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6718 parameter.
6719 (dwarf_decode_macros): Update.
6720
6721 2020-03-26 Tom Tromey <tom@tromey.com>
6722
6723 * dwarf2/read.c (read_attribute_value): Update.
6724 (read_indirect_string_from_dwz): Move to dwz.c; change into
6725 method.
6726 (dwarf_decode_macro_bytes): Update.
6727 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6728 * dwarf2/dwz.c: New file.
6729 * Makefile.in (COMMON_SFILES): Add dwz.c.
6730
6731 2020-03-26 Tom Tromey <tom@tromey.com>
6732
6733 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6734 * dwarf2/read.c: Add include.
6735 * dwarf2/index-write.c: Add include.
6736 * dwarf2/index-cache.c: Add include.
6737 * dwarf2/dwz.h: New file.
6738
6739 2020-03-25 Tom Tromey <tom@tromey.com>
6740
6741 * compile/compile-object-load.c (get_out_value_type): Mention
6742 correct symbol name in error message.
6743
6744 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6745
6746 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6747
6748 2020-03-25 Tom de Vries <tdevries@suse.de>
6749
6750 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6751 * symmisc.c (dump_symtab_1): Print user and includes fields.
6752 (maintenance_info_symtabs): Same.
6753
6754 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6755
6756 PR gdb/25534
6757 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6758 (riscv_regcache_cooked_write): New function.
6759 (riscv_push_dummy_call): Use new function.
6760 (riscv_return_value): Likewise.
6761
6762 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6763
6764 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6765 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6766 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6767 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6768 * infrun.c (follow_fork): Likewise.
6769 (follow_fork_inferior): Likewise.
6770 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6771 * linux-nat.h (class linux_nat_target): Likewise.
6772 * remote.c (class remote_target) <follow_fork>: Likewise.
6773 (remote_target::follow_fork): Likewise.
6774 * target-delegates.c: Re-generate.
6775 * target.c (default_follow_fork): Likewise.
6776 (target_follow_fork): Likewise.
6777 * target.h (struct target_ops) <follow_fork>: Likewise.
6778 (target_follow_fork): Likewise.
6779
6780 2020-03-24 Tom de Vries <tdevries@suse.de>
6781
6782 * psymtab.c (maintenance_info_psymtabs): Print user field.
6783
6784 2020-03-20 Tom Tromey <tromey@adacore.com>
6785
6786 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6787 const.
6788 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6789 const.
6790
6791 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6792
6793 * ptrace.m4: Don't check for ptrace declaration.
6794 * config.in: Re-generate.
6795 * configure: Re-generate.
6796 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6797 not defined.
6798
6799 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6800
6801 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6802 `PTRACE_TYPE_RET'.
6803 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6804 * sparc-nat.c (gdb_ptrace): Likewise.
6805 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6806
6807 2020-03-20 Tom Tromey <tromey@adacore.com>
6808
6809 * c-exp.y (lex_one_token): Fix assert.
6810
6811 2020-03-20 Tom Tromey <tromey@adacore.com>
6812
6813 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6814 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6815 strncpy call.
6816
6817 2020-03-20 Tom Tromey <tromey@adacore.com>
6818
6819 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6820
6821 2020-03-20 Tom Tromey <tromey@adacore.com>
6822
6823 * ada-valprint.c (print_variant_part): Remove parameters; switch
6824 to value-based API.
6825 (print_field_values): Likewise.
6826 (ada_val_print_struct_union): Likewise.
6827 (ada_value_print_1): Update.
6828
6829 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6830
6831 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6832 nbsd_nat_target instead of inf_ptrace_target.
6833 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6834 nbsd_nat_target.
6835
6836 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6837
6838 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6839 it to the ptrace call.
6840 * (store_registers): Likewise.
6841
6842 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6843
6844 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6845 it to the ptrace call.
6846 * (store_registers): Likewise.
6847
6848 2020-03-19 Luis Machado <luis.machado@linaro.org>
6849
6850 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6851 valid, fetch vg value from ptrace.
6852
6853 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6854 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6855 * inf-ptrace.c: Likewise.
6856 * (gdb_ptrace): Add.
6857 * (inf_ptrace_target::resume): Update.
6858 * (inf_ptrace_target::xfer_partial): Likewise.
6859 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6860 * (inf_ptrace_peek_poke): Update.
6861
6862 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6863
6864 * x86-bsd-nat.c (gdb_ptrace): New.
6865 * (x86bsd_dr_set): Add new argument `ptid'.
6866 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6867 x86bsd_dr_set_addr): Update.
6868
6869 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6870
6871 * remote.c (remote_target::process_stop_reply): Handle events for
6872 all threads differently.
6873
6874 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6875
6876 * completer.c (completion_tracker::remove_completion): Define new
6877 function.
6878 * completer.h (completion_tracker::remove_completion): Declare new
6879 function.
6880 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6881 when adding a C++ function symbol.
6882
6883 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6884
6885 * completer.c (completion_tracker::completion_hash_entry): Define
6886 new class.
6887 (advance_to_filename_complete_word_point): Call
6888 recompute_lowest_common_denominator.
6889 (completion_tracker::completion_tracker): Call discard_completions
6890 to setup the hash table.
6891 (completion_tracker::discard_completions): Allow for being called
6892 from the constructor, pass new equal function, and element deleter
6893 when constructing the hash table. Initialise new class member
6894 variables.
6895 (completion_tracker::maybe_add_completion): Remove use of
6896 m_entries_vec, and store more information into m_entries_hash.
6897 (completion_tracker::recompute_lcd_visitor): New function, most
6898 content taken from...
6899 (completion_tracker::recompute_lowest_common_denominator):
6900 ...here, this now just visits each item in the hash calling the
6901 above visitor.
6902 (completion_tracker::build_completion_result): Remove use of
6903 m_entries_vec, call recompute_lowest_common_denominator.
6904 * completer.h (completion_tracker::have_completions): Remove use
6905 of m_entries_vec.
6906 (completion_tracker::completion_hash_entry): Declare new class.
6907 (completion_tracker::recompute_lowest_common_denominator): Change
6908 function signature.
6909 (completion_tracker::recompute_lcd_visitor): Declare new function.
6910 (completion_tracker::m_entries_vec): Delete.
6911 (completion_tracker::m_entries_hash): Initialize to NULL.
6912 (completion_tracker::m_lowest_common_denominator_valid): New
6913 member variable.
6914 (completion_tracker::m_lowest_common_denominator_max_length): New
6915 member variable.
6916
6917 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6918
6919 * regformats/regdef.h: Put reg in gdb namespace.
6920
6921 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6922
6923 * i386-bsd-nat.c (gdb_ptrace): New.
6924 * (i386bsd_fetch_inferior_registers,
6925 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6926 * (i386bsd_fetch_inferior_registers,
6927 i386bsd_store_inferior_registers) Use gdb_ptrace.
6928
6929 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6930
6931 * amd64-bsd-nat.c (gdb_ptrace): New.
6932 * (amd64bsd_fetch_inferior_registers,
6933 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6934 * (amd64bsd_fetch_inferior_registers,
6935 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6936
6937 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6938
6939 * user-regs.c (user_reg::read): Rename to...
6940 (user_reg::xread): ...this.
6941 * (append_user_reg): Rename argument `read' to `xread'.
6942 * (user_reg_add_builtin): Likewise.
6943 * (user_reg_add): Likewise.
6944 * (value_of_user_reg): Likewise.
6945
6946 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6947
6948 * sparc-nat.c (gdb_ptrace): New.
6949 * sparc-nat.c (sparc_fetch_inferior_registers)
6950 (sparc_store_inferior_registers) Remove obsolete comment.
6951 * sparc-nat.c (sparc_fetch_inferior_registers)
6952 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6953 * sparc-nat.c (sparc_fetch_inferior_registers)
6954 (sparc_store_inferior_registers) Use gdb_ptrace.
6955
6956 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6957
6958 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6959 it to the ptrace call.
6960 * sh-nbsd-nat.c (store_registers): Likewise.
6961
6962 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6963
6964 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6965 nbsd_nat_target instead of inf_ptrace_target.
6966 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6967 nbsd_nat_target.
6968
6969 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6970
6971 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6972
6973 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6974
6975 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6976 <sys/sysctl.h>.
6977 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6978
6979 2020-03-17 Tom de Vries <tdevries@suse.de>
6980
6981 PR gdb/23710
6982 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6983 fields.
6984 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6985 fields.
6986 (process_imported_unit_die): Skip import of c++ CUs.
6987
6988 2020-03-16 Tom Tromey <tom@tromey.com>
6989
6990 * p-valprint.c (pascal_object_print_value): Initialize
6991 base_value.
6992
6993 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6994 Shahab Vahedi <shahab@synopsys.com>
6995
6996 * Makefile.in: Add arch/arc.o
6997 * configure.tgt: Likewise.
6998 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6999 (_initialize_arc_tdep): Don't initialize old target descriptions.
7000 (arc_read_description): New function to cache target descriptions.
7001 * arc-tdep.h (arc_read_description): Add proto type.
7002 * arch/arc.c: New file.
7003 * arch/arc.h: Likewise.
7004 * features/Makefile: Replace old target descriptions with new.
7005 * features/arc-arcompact.c: Remove.
7006 * features/arc-arcompact.xml: Likewise.
7007 * features/arc-v2.c: Likewise
7008 * features/arc-v2.xml: Likewise
7009 * features/arc/aux-arcompact.xml: New file.
7010 * features/arc/aux-v2.xml: Likewise.
7011 * features/arc/core-arcompact.xml: Likewise.
7012 * features/arc/core-v2.xml: Likewise.
7013 * features/arc/aux-arcompact.c: Generate.
7014 * features/arc/aux-v2.c: Likewise.
7015 * features/arc/core-arcompact.c: Likewise.
7016 * features/arc/core-v2.c: Likewise.
7017 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7018
7019 2020-03-16 Tom Tromey <tromey@adacore.com>
7020
7021 PR gdb/25663:
7022 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7023 putting value into bcache.
7024
7025 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7026
7027 PR gdb/21500
7028 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7029 to...
7030 (amd64_windows_init_abi_common): ... this. Don't set size of
7031 long type.
7032 (amd64_windows_init_abi): New function.
7033 (amd64_cygwin_init_abi): New function.
7034 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7035 the Cygwin OS ABI.
7036 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7037 comment.
7038
7039 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7042 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7043 (pe_import_directory_entry): New struct type.
7044 (is_linked_with_cygwin_dll): New function.
7045 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7046 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7047 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7048
7049 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7050
7051 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7052 i386_cygwin_core_osabi_sniffer.
7053
7054 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7055
7056 * i386-cygwin-tdep.c: Rename to...
7057 * i386-windows-tdep.c: ... this.
7058 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7059 i386-windows-tdep.c.
7060 * configure.tgt: Likewise.
7061
7062 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7063
7064 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7065 * osabi.c (gdb_osabi_names): Add "Windows".
7066 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7067 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7068 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7069 i386_cygwin_osabi_sniffer.
7070 (_initialize_i386_cygwin_tdep): Register OS ABI
7071 GDB_OSABI_WINDOWS for i386.
7072 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7073 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7074 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7075 for x86-64.
7076 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7077 when the target matches '*-*-mingw*'.
7078
7079 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7080
7081 * defs.h (enum gdb_osabi): Move to...
7082 * osabi.h (enum gdb_osabi): ... here.
7083 * gdbarch.sh: Include osabi.h in gdbarch.h.
7084 * gdbarch.h: Re-generate.
7085
7086 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7087
7088 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7089 function.
7090 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7091
7092 2020-03-14 Tom Tromey <tom@tromey.com>
7093
7094 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7095 for C++.
7096 (c_type_print_modifier): Likewise. Add "language" parameter.
7097 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7098 (c_type_print_base_1): Update.
7099 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7100 constants.
7101 * type-stack.c (type_stack::insert): Handle tp_atomic and
7102 tp_restrict.
7103 (type_stack::follow_type_instance_flags): Likewise.
7104 (type_stack::follow_types): Likewise. Merge type-following code.
7105 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7106 (space_identifier, cv_with_space_id)
7107 (const_or_volatile_or_space_identifier_noopt)
7108 (const_or_volatile_or_space_identifier): Remove.
7109 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7110 rules.
7111 (ptr_operator, typebase): Update.
7112 (enum token_flag) <FLAG_C>: New constant.
7113 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7114 "_Atomic".
7115 (lex_one_token): Handle FLAG_C.
7116
7117 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7118
7119 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7120 it to the ptrace call.
7121 * m68k-bsd-nat.c (store_registers): Likewise.
7122
7123 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7124
7125 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7126 gdb_byte *.
7127 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7128 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7129 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7130
7131 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7132
7133 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7134 nbsd_nat_target instead of inf_ptrace_target.
7135 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7136 nbsd_nat_target.
7137
7138 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7139
7140 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7141 register_t.
7142
7143 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7144
7145 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7146 it to the ptrace call.
7147 * alpha-bsd-nat.c (store_registers): Likewise.
7148
7149 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7150
7151 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7152 includes.
7153 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7154 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7155 fill_fpregset): Likewise.
7156
7157 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7158
7159 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7160 nbsd_nat_target instead of inf_ptrace_target.
7161 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7162 nbsd_nat_target.
7163
7164 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7165
7166 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7167 register_t.
7168
7169 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7170
7171 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7172 it to the ptrace call.
7173 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7174 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7175 * arm-nbsd-nat.c (store_register): Likewise.
7176 * arm-nbsd-nat.c (store_regs): Likewise.
7177 * arm-nbsd-nat.c (store_fp_register): Likewise.
7178 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7179
7180 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7181
7182 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7183 nbsd_nat_target instead of inf_ptrace_target.
7184 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7185 nbsd_nat_target.
7186
7187 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7188
7189 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7190 it to the ptrace call.
7191 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7192
7193 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7194
7195 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7196 it to the ptrace call.
7197 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7198
7199 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7200
7201 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7202 gdb_byte *.
7203 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7204
7205 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7206
7207 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7208 instead of inf_ptrace_target.
7209 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7210 nbsd_nat_target.
7211
7212 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7213
7214 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7215 register_t.
7216
7217 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7218
7219 * ppc-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 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7225 register_t.
7226
7227 2020-03-13 Tom Tromey <tom@tromey.com>
7228
7229 * value.h (val_print): Don't declare.
7230 * valprint.h (val_print_array_elements)
7231 (val_print_scalar_formatted, generic_val_print): Don't declare.
7232 * valprint.c (generic_val_print_array): Take a struct value.
7233 (generic_val_print_ptr, generic_val_print_memberptr)
7234 (generic_val_print_bool, generic_val_print_int)
7235 (generic_val_print_char, generic_val_print_complex)
7236 (generic_val_print): Remove.
7237 (generic_value_print): Update.
7238 (do_val_print): Remove unused parameters. Don't call
7239 la_val_print.
7240 (val_print): Remove.
7241 (common_val_print): Update. Don't call value_check_printable.
7242 (val_print_scalar_formatted, val_print_array_elements): Remove.
7243 * rust-lang.c (rust_val_print): Remove.
7244 (rust_language_defn): Update.
7245 * p-valprint.c (pascal_val_print): Remove.
7246 (pascal_value_print_inner): Update.
7247 (pascal_object_print_val_fields, pascal_object_print_val):
7248 Remove.
7249 (pascal_object_print_static_field): Update.
7250 * p-lang.h (pascal_val_print): Don't declare.
7251 * p-lang.c (pascal_language_defn): Update.
7252 * opencl-lang.c (opencl_language_defn): Update.
7253 * objc-lang.c (objc_language_defn): Update.
7254 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7255 * m2-lang.h (m2_val_print): Don't declare.
7256 * m2-lang.c (m2_language_defn): Update.
7257 * language.h (struct language_defn) <la_val_print>: Remove.
7258 * language.c (unk_lang_value_print_inner): Rename. Change
7259 argument types.
7260 (unknown_language_defn, auto_language_defn): Update.
7261 * go-valprint.c (go_val_print): Remove.
7262 * go-lang.h (go_val_print): Don't declare.
7263 * go-lang.c (go_language_defn): Update.
7264 * f-valprint.c (f_val_print): Remove.
7265 * f-lang.h (f_value_print): Don't declare.
7266 * f-lang.c (f_language_defn): Update.
7267 * d-valprint.c (d_val_print): Remove.
7268 * d-lang.h (d_value_print): Don't declare.
7269 * d-lang.c (d_language_defn): Update.
7270 * cp-valprint.c (cp_print_value_fields)
7271 (cp_print_value_fields_rtti, cp_print_value): Remove.
7272 (cp_print_static_field): Update.
7273 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7274 (c_val_print_struct, c_val_print_union, c_val_print_int)
7275 (c_val_print_memberptr, c_val_print): Remove.
7276 * c-lang.h (c_val_print_array, cp_print_value_fields)
7277 (cp_print_value_fields_rtti): Don't declare.
7278 * c-lang.c (c_language_defn, cplus_language_defn)
7279 (asm_language_defn, minimal_language_defn): Update.
7280 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7281 (ada_val_print_enum): Take a struct value.
7282 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7283 (ada_val_print): Remove.
7284 (ada_value_print_1): Update.
7285 (printable_val_type): Remove.
7286 * ada-lang.h (ada_val_print): Don't declare.
7287 * ada-lang.c (ada_language_defn): Update.
7288
7289 2020-03-13 Tom Tromey <tom@tromey.com>
7290
7291 * valprint.c (do_val_print): Update.
7292 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7293 a struct value.
7294 (value_to_value_object_no_release): Declare.
7295 * python/py-value.c (value_to_value_object_no_release): New
7296 function.
7297 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7298 struct value.
7299 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7300 function.
7301 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7302 a struct value.
7303 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7304 Declare.
7305 (gdbscm_apply_val_pretty_printer): Take a struct value.
7306 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7307 value.
7308 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7309 value.
7310 * extension-priv.h (struct extension_language_ops)
7311 <apply_val_pretty_printer>: Take a struct value.
7312 * cp-valprint.c (cp_print_value): Create a struct value.
7313 (cp_print_value): Update.
7314
7315 2020-03-13 Tom Tromey <tom@tromey.com>
7316
7317 * ada-valprint.c (print_field_values): Call common_val_print.
7318
7319 2020-03-13 Tom Tromey <tom@tromey.com>
7320
7321 * ada-valprint.c (val_print_packed_array_elements): Remove
7322 bitoffset and val parameters. Call common_val_print.
7323 (ada_val_print_string): Remove offset, address, and original_value
7324 parameters.
7325 (ada_val_print_array): Update.
7326 (ada_value_print_array): New function.
7327 (ada_value_print_1): Call it.
7328
7329 2020-03-13 Tom Tromey <tom@tromey.com>
7330
7331 * ada-valprint.c (ada_value_print): Use common_val_print.
7332
7333 2020-03-13 Tom Tromey <tom@tromey.com>
7334
7335 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7336
7337 2020-03-13 Tom Tromey <tom@tromey.com>
7338
7339 * ada-valprint.c (ada_value_print_num): New function.
7340 (ada_value_print_1): Use it.
7341
7342 2020-03-13 Tom Tromey <tom@tromey.com>
7343
7344 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7345
7346 2020-03-13 Tom Tromey <tom@tromey.com>
7347
7348 * ada-valprint.c (ada_value_print_ptr): New function.
7349 (ada_value_print_1): Use it.
7350
7351 2020-03-13 Tom Tromey <tom@tromey.com>
7352
7353 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7354 call common_val_print.
7355 (ada_val_print_1): Update.
7356 (ada_value_print_1): New function.
7357 (ada_value_print_inner): Rewrite.
7358
7359 2020-03-13 Tom Tromey <tom@tromey.com>
7360
7361 * cp-valprint.c (cp_print_value_fields): Update.
7362 (cp_print_value): New function.
7363
7364 2020-03-13 Tom Tromey <tom@tromey.com>
7365
7366 * m2-valprint.c (m2_value_print_inner): Use
7367 cp_print_value_fields.
7368 * cp-valprint.c (cp_print_value_fields): New function.
7369 * c-valprint.c (c_value_print_struct): New function.
7370 (c_value_print_inner): Use c_value_print_struct.
7371 * c-lang.h (cp_print_value_fields): Declare.
7372
7373 2020-03-13 Tom Tromey <tom@tromey.com>
7374
7375 * c-valprint.c (c_value_print_array): New function.
7376 (c_value_print_inner): Use it.
7377
7378 2020-03-13 Tom Tromey <tom@tromey.com>
7379
7380 * c-valprint.c (c_value_print_memberptr): 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_int): 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_ptr): 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_inner): Rewrite.
7396
7397 2020-03-13 Tom Tromey <tom@tromey.com>
7398
7399 * valprint.c (generic_value_print_complex): New function.
7400 (generic_value_print): Use it.
7401
7402 2020-03-13 Tom Tromey <tom@tromey.com>
7403
7404 * valprint.c (generic_val_print_float): Don't call
7405 val_print_scalar_formatted.
7406 (generic_val_print, generic_value_print): Update.
7407
7408 2020-03-13 Tom Tromey <tom@tromey.com>
7409
7410 * valprint.c (generic_value_print_char): New function
7411 (generic_value_print): Use it.
7412
7413 2020-03-13 Tom Tromey <tom@tromey.com>
7414
7415 * valprint.c (generic_value_print_int): 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_bool): New function.
7421 (generic_value_print): Use it.
7422
7423 2020-03-13 Tom Tromey <tom@tromey.com>
7424
7425 * valprint.c (generic_val_print_func): Simplify.
7426 (generic_val_print, generic_value_print): Update.
7427
7428 2020-03-13 Tom Tromey <tom@tromey.com>
7429
7430 * valprint.c (generic_val_print_flags): Remove.
7431 (generic_val_print, generic_value_print): Update.
7432 (val_print_type_code_flags): Add original_value parameter.
7433
7434 2020-03-13 Tom Tromey <tom@tromey.com>
7435
7436 * valprint.c (generic_val_print): Update.
7437 (generic_value_print): Update.
7438 * valprint.c (generic_val_print_enum): Don't call
7439 val_print_scalar_formatted.
7440
7441 2020-03-13 Tom Tromey <tom@tromey.com>
7442
7443 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7444 * valprint.c (generic_value_print_ptr): New function.
7445
7446 2020-03-13 Tom Tromey <tom@tromey.com>
7447
7448 * valprint.c (generic_value_print): Rewrite.
7449
7450 2020-03-13 Tom Tromey <tom@tromey.com>
7451
7452 * p-valprint.c (pascal_object_print_value_fields)
7453 (pascal_object_print_value): New functions.
7454
7455 2020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * p-valprint.c (pascal_value_print_inner): Rewrite.
7458
7459 2020-03-13 Tom Tromey <tom@tromey.com>
7460
7461 * f-valprint.c (f_value_print_innner): Rewrite.
7462
7463 2020-03-13 Tom Tromey <tom@tromey.com>
7464
7465 * m2-valprint.c (m2_print_unbounded_array): New overload.
7466 (m2_print_unbounded_array): Update.
7467 (m2_print_array_contents): Take a struct value.
7468 (m2_value_print_inner): Rewrite.
7469
7470 2020-03-13 Tom Tromey <tom@tromey.com>
7471
7472 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7473 (d_value_print_inner): New function.
7474 * d-lang.h (d_value_print_inner): Declare.
7475 * d-lang.c (d_language_defn): Use d_value_print_inner.
7476
7477 2020-03-13 Tom Tromey <tom@tromey.com>
7478
7479 * go-valprint.c (go_value_print_inner): New function.
7480 * go-lang.h (go_value_print_inner): Declare.
7481 * go-lang.c (go_language_defn): Use go_value_print_inner.
7482
7483 2020-03-13 Tom Tromey <tom@tromey.com>
7484
7485 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7486 API.
7487 (rust_val_print): Rewrite.
7488 (rust_value_print_inner): New function, from rust_val_print.
7489 (rust_language_defn): Use rust_value_print_inner.
7490
7491 2020-03-13 Tom Tromey <tom@tromey.com>
7492
7493 * ada-valprint.c (ada_value_print_inner): New function.
7494 * ada-lang.h (ada_value_print_inner): Declare.
7495 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7496
7497 2020-03-13 Tom Tromey <tom@tromey.com>
7498
7499 * f-valprint.c (f_value_print_innner): New function.
7500 * f-lang.h (f_value_print_innner): Declare.
7501 * f-lang.c (f_language_defn): Use f_value_print_innner.
7502
7503 2020-03-13 Tom Tromey <tom@tromey.com>
7504
7505 * p-valprint.c (pascal_value_print_inner): New function.
7506 * p-lang.h (pascal_value_print_inner): Declare.
7507 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7508
7509 2020-03-13 Tom Tromey <tom@tromey.com>
7510
7511 * m2-valprint.c (m2_value_print_inner): New function.
7512 * m2-lang.h (m2_value_print_inner): Declare.
7513 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7514
7515 2020-03-13 Tom Tromey <tom@tromey.com>
7516
7517 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7518 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7519 * c-valprint.c (c_value_print_inner): New function.
7520 * c-lang.h (c_value_print_inner): Declare.
7521 * c-lang.c (c_language_defn, cplus_language_defn)
7522 (asm_language_defn, minimal_language_defn): Use
7523 c_value_print_inner.
7524
7525 2020-03-13 Tom Tromey <tom@tromey.com>
7526
7527 * p-valprint.c (pascal_object_print_value_fields): Now static.
7528 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7529
7530 2020-03-13 Tom Tromey <tom@tromey.com>
7531
7532 * c-valprint.c (c_val_print_array): Simplify.
7533
7534 2020-03-13 Tom Tromey <tom@tromey.com>
7535
7536 * valprint.c (value_print_array_elements): New function.
7537 * valprint.h (value_print_array_elements): Declare.
7538
7539 2020-03-13 Tom Tromey <tom@tromey.com>
7540
7541 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7542 * mips-tdep.c (mips_print_register): Use
7543 value_print_scalar_formatted.
7544
7545 2020-03-13 Tom Tromey <tom@tromey.com>
7546
7547 * valprint.h (value_print_scalar_formatted): Declare.
7548 * valprint.c (value_print_scalar_formatted): New function.
7549
7550 2020-03-13 Tom Tromey <tom@tromey.com>
7551
7552 * valprint.h (generic_value_print): Declare.
7553 * valprint.c (generic_value_print): New function.
7554
7555 2020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * valprint.c (do_val_print): Call la_value_print_inner, if
7558 available.
7559 * rust-lang.c (rust_language_defn): Update.
7560 * p-lang.c (pascal_language_defn): Update.
7561 * opencl-lang.c (opencl_language_defn): Update.
7562 * objc-lang.c (objc_language_defn): Update.
7563 * m2-lang.c (m2_language_defn): Update.
7564 * language.h (struct language_defn) <la_value_print_inner>: New
7565 member.
7566 * language.c (unknown_language_defn, auto_language_defn): Update.
7567 * go-lang.c (go_language_defn): Update.
7568 * f-lang.c (f_language_defn): Update.
7569 * d-lang.c (d_language_defn): Update.
7570 * c-lang.c (c_language_defn, cplus_language_defn)
7571 (asm_language_defn, minimal_language_defn): Update.
7572 * ada-lang.c (ada_language_defn): Update.
7573
7574 2020-03-13 Tom Tromey <tom@tromey.com>
7575
7576 * c-valprint.c (c_value_print): Use common_val_print.
7577
7578 2020-03-13 Tom Tromey <tom@tromey.com>
7579
7580 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7581
7582 2020-03-13 Tom Tromey <tom@tromey.com>
7583
7584 * f-valprint.c (f77_print_array_1, f_val_print): Use
7585 common_val_print.
7586
7587 2020-03-13 Tom Tromey <tom@tromey.com>
7588
7589 * riscv-tdep.c (riscv_print_one_register_info): Use
7590 common_val_print.
7591
7592 2020-03-13 Tom Tromey <tom@tromey.com>
7593
7594 * mi/mi-main.c (output_register): Use common_val_print.
7595
7596 2020-03-13 Tom Tromey <tom@tromey.com>
7597
7598 * infcmd.c (default_print_one_register_info): Use
7599 common_val_print.
7600
7601 2020-03-13 Tom Tromey <tom@tromey.com>
7602
7603 * valprint.h (common_val_print_checked): Declare.
7604 * valprint.c (common_val_print_checked): New function.
7605 * stack.c (print_frame_arg): Use common_val_print_checked.
7606
7607 2020-03-13 Tom Tromey <tom@tromey.com>
7608
7609 * valprint.c (do_val_print): New function, from val_print.
7610 (val_print): Use do_val_print.
7611 (common_val_print): Use do_val_print.
7612
7613 2020-03-13 Tom Tromey <tom@tromey.com>
7614
7615 * valprint.c (value_print): Use scoped_value_mark.
7616
7617 2020-03-13 Tom de Vries <tdevries@suse.de>
7618
7619 PR symtab/25646
7620 * psymtab.c (partial_symtab::partial_symtab): Don't set
7621 globals_offset and statics_offset. Push element onto
7622 current_global_psymbols and current_static_psymbols stacks.
7623 (concat): New function.
7624 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7625 element from current_global_psymbols and current_static_psymbols
7626 stacks. Concat popped elements to global_psymbols and
7627 static_symbols.
7628 (add_psymbol_to_list): Use current_global_psymbols and
7629 current_static_psymbols stacks.
7630 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7631 current_static_psymbols fields.
7632
7633 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7634
7635 * corelow.c (sniff_core_bfd): Remove.
7636 (class core_target) <m_core_vec>: Remove.
7637 (core_target::core_target): Update.
7638 (core_file_fns): Remove.
7639 (deprecated_add_core_fns): Remove.
7640 (default_core_sniffer): Remove.
7641 (sniff_core_bfd): Remove.
7642 (default_check_format): Remove.
7643 (gdb_check_format): Remove.
7644 (core_target_open): Update.
7645 (core_target::get_core_register_section): Update.
7646 (get_core_registers_cb): Update.
7647 (core_target::fetch_registers): Update.
7648 * gdbcore.h (struct core_fns): Remove.
7649 (deprecated_add_core_fns): Remove.
7650 (default_core_sniffer): Remove.
7651 (default_check_format): Remove.
7652
7653 2020-03-12 Tom Tromey <tom@tromey.com>
7654
7655 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7656 CORE_ADDR.
7657 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7658
7659 2020-03-12 Tom Tromey <tom@tromey.com>
7660
7661 * remote.c (remote_target::download_tracepoint)
7662 (remote_target::enable_tracepoint)
7663 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7664 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7665 sprintf_vma.
7666
7667 2020-03-12 Tom Tromey <tom@tromey.com>
7668
7669 * symfile-mem.c: Update CORE_ADDR size assert.
7670
7671 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7672
7673 * selftest.m4: Move to gdbsupport/.
7674 * acinclude.m4: Update path to selftest.m4.
7675
7676 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7677
7678 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7679 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7680 gdbarch-selfselftests.c and selftest-arch.c.
7681 (SUBDIR_UNITTESTS_OBS): Rename to...
7682 (SELFTESTS_OBS): ... this.
7683 (COMMON_SFILES): Remove disasm-selftests.c and
7684 gdbarch-selftests.c.
7685 * configure.ac: Don't add selftest-arch.{c,o} to
7686 CONFIG_{SRCS,OBS}.
7687 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7688 preprocessor conditions.
7689
7690 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7691
7692 * configure.ac: Don't source bfd/development.sh.
7693 * selftest.m4: Modify comment.
7694 * configure: Re-generate.
7695
7696 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7697
7698 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7699 not "true" or "false".
7700 * configure: Re-generate.
7701
7702 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7703
7704 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7705 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7706 renamed to arm_nbsd_supply_gregset.
7707 (fetch_register): Update to call arm_nbsd_supply_gregset.
7708 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7709 (arm_netbsd_nat_target::fetch_registers): Update.
7710 (fetch_elfcore_registers): Removed.
7711 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7712 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7713 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7714 not require NetBSD system headers.
7715 (arm_nbsd_regset): New struct.
7716 (arm_nbsd_iterate_over_regset_sections): New function.
7717 (arm_netbsd_init_abi_common): Updated to call
7718 set_gdbarch_iterate_over_regset_sections.
7719 * arm-nbsd-tdep.h: New file.
7720
7721 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7722
7723 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7724 recursion.
7725
7726 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7727
7728 * configure: Re-generate.
7729
7730 2020-03-11 Tom Tromey <tromey@adacore.com>
7731
7732 * ada-typeprint.c (print_choices): Fix comment.
7733
7734 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7735
7736 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7737 previous item in the list, when the list has no items.
7738
7739 2020-03-11 Tom de Vries <tdevries@suse.de>
7740
7741 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7742 PROP_LOCLIST handling code.
7743
7744 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7745
7746 * buildsym-legacy.c (record_line): Pass extra parameter to
7747 record_line.
7748 * buildsym.c (buildsym_compunit::record_line): Take an extra
7749 parameter, reduce duplication in the line table, and record the
7750 is_stmt flag in the line table.
7751 * buildsym.h (buildsym_compunit::record_line): Add extra
7752 parameter.
7753 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7754 non-statement lines.
7755 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7756 this to the symtab builder.
7757 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7758 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7759 through to dwarf_record_line_1.
7760 * infrun.c (process_event_stop_test): When stepping, don't stop at
7761 a non-statement instruction, and only refresh the step info when
7762 we land in the middle of a line's range. Also add an extra
7763 comment.
7764 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7765 field.
7766 * record-btrace.c (btrace_find_line_range): Only record lines
7767 marked as is-statement.
7768 * stack.c (frame_show_address): Show the frame address if we are
7769 in a non-statement sal.
7770 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7771 (maintenance_print_one_line_table): Print a header for the is_stmt
7772 column, and include is_stmt information in the output.
7773 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7774 preference to non-statements.
7775 (find_pcs_for_symtab_line): Prefer is-statement entries.
7776 (find_line_common): Likewise.
7777 * symtab.h (struct linetable_entry): Add is_stmt field.
7778 (struct symtab_and_line): Likewise.
7779 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7780 arranging the line table.
7781
7782 2020-03-07 Tom de Vries <tdevries@suse.de>
7783
7784 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7785 DIE.
7786
7787 2020-03-07 Tom Tromey <tom@tromey.com>
7788
7789 * valops.c (value_literal_complex): Remove obsolete comment.
7790 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7791 comment.
7792
7793 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7794
7795 * infrun.h: Forward-declare thread_info.
7796 (set_step_info): Add thread_info parameter, add doc.
7797 * infrun.c (set_step_info): Add thread_info parameter, move doc
7798 to header.
7799 * infrun.c (process_event_stop_test): Pass thread to
7800 set_step_info call.
7801 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7802 set_step_info.
7803 (prepare_one_step): Add thread_info parameter, pass it to
7804 set_step_frame and prepare_one_step (recursive) call.
7805 (step_1): Pass thread to prepare_one_step call.
7806 (step_command_fsm::should_stop): Pass thread to
7807 prepare_one_step.
7808 (until_next_fsm): Pass thread to set_step_frame call.
7809 (finish_command): Pass thread to set_step_info call.
7810
7811 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7812
7813 * windows-tdep.c (windows_solib_create_inferior_hook):
7814 Check if inferior is running.
7815
7816 2020-03-06 Tom de Vries <tdevries@suse.de>
7817
7818 * NEWS: Fix "the the".
7819 * ctfread.c: Same.
7820
7821 2020-03-06 Tom de Vries <tdevries@suse.de>
7822
7823 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7824
7825 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7826
7827 * .dir-locals.el: Add a comment referencing the other copies of
7828 this file.
7829
7830 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7831
7832 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7833 psargs.
7834
7835 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7836
7837 * .gitattributes: New file.
7838
7839 2020-03-04 Tom Tromey <tom@tromey.com>
7840
7841 * symmisc.c (print_symbol_bcache_statistics)
7842 (print_objfile_statistics): Update.
7843 * symfile.c (allocate_symtab): Use intern.
7844 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7845 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7846 macro_cache>: Remove.
7847 <string_cache>: New member.
7848 (struct objfile) <intern>: New methods.
7849 * elfread.c (elf_symtab_read): Use intern.
7850 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7851 (dwarf2_compute_name, dwarf2_physname)
7852 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7853 names.
7854 (guess_partial_die_structure_name): Update.
7855 (partial_die_info::fixup): Intern name.
7856 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7857 name.
7858 (dwarf2_name): Intern name. Update.
7859 * buildsym.c (buildsym_compunit::get_macro_table): Use
7860 string_cache.
7861
7862 2020-03-04 Tom Tromey <tom@tromey.com>
7863
7864 * jit.c (bfd_open_from_target_memory): Make "target" const.
7865 * corefile.c (gnutarget): Now const.
7866 * gdbcore.h (gnutarget): Now const.
7867
7868 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7869
7870 * NEWS: Mention support for WOW64 processes.
7871 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7872 (amd64_windows_segment_register_p): Remove static.
7873 (_initialize_amd64_windows_nat): Update.
7874 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7875 * i386-windows-nat.c (context_offset): Update.
7876 (i386_mappings): Rename and remove static.
7877 (i386_windows_segment_register_p): Remove static.
7878 (_initialize_i386_windows_nat): Update.
7879 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7880 (STATUS_WX86_SINGLE_STEP): New macro.
7881 (EnumProcessModulesEx): New macro.
7882 (Wow64SuspendThread): New macro.
7883 (Wow64GetThreadContext): New macro.
7884 (Wow64SetThreadContext): New macro.
7885 (Wow64GetThreadSelectorEntry): New macro.
7886 (windows_set_context_register_offsets): Add static.
7887 (windows_set_segment_register_p): Likewise.
7888 (windows_add_thread): Adapt for WOW64 processes.
7889 (windows_fetch_one_register): Likewise.
7890 (windows_nat_target::fetch_registers): Likewise.
7891 (windows_store_one_register): Likewise.
7892 (display_selector): Likewise.
7893 (display_selectors): Likewise.
7894 (handle_exception): Likewise.
7895 (windows_continue): Likewise.
7896 (windows_nat_target::resume): Likewise.
7897 (windows_add_all_dlls): Likewise.
7898 (do_initial_windows_stuff): Likewise.
7899 (windows_nat_target::attach): Likewise.
7900 (windows_get_exec_module_filename): Likewise.
7901 (windows_nat_target::create_inferior): Likewise.
7902 (windows_xfer_siginfo): Likewise.
7903 (_initialize_loadable): Initialize Wow64SuspendThread,
7904 Wow64GetThreadContext, Wow64SetThreadContext,
7905 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7906 * windows-nat.h (windows_set_context_register_offsets):
7907 Remove declaration.
7908 (windows_set_segment_register_p): Likewise.
7909 (i386_windows_segment_register_p): Add declaration.
7910 (amd64_windows_segment_register_p): Likewise.
7911
7912 2020-03-04 Luis Machado <luis.machado@linaro.org>
7913
7914 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7915 in "info registers" for AArch64/ARM.
7916
7917 The change caused "info registers" to not print GPR's.
7918
7919 gdb/ChangeLog:
7920
7921 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7922
7923 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7924 when reg->group is empty and reggroup is not.
7925
7926 2020-03-03 Tom Tromey <tromey@adacore.com>
7927
7928 * dwarf2/frame.c (struct dwarf2_frame_cache)
7929 <checked_tailcall_bottom, entry_cfa_sp_offset,
7930 entry_cfa_sp_offset_p>: Remove members.
7931 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7932 (dwarf2_frame_prev_register): Don't call
7933 dwarf2_tailcall_sniffer_first.
7934 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7935 * frame-unwind.c (add_unwinder): New fuction.
7936 (frame_unwind_init): Use it. Add tailcall unwinder.
7937
7938 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7939 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7940
7941 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7942 value should be printed as true.
7943
7944 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7945
7946 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7947 (windows_init_abi): Set and use windows_so_ops.
7948
7949 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7950
7951 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7952 when verifying if dealing with a convenience variable.
7953
7954 2020-03-03 Luis Machado <luis.machado@linaro.org>
7955
7956 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7957
7958 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7959
7960 * infrun.c (gdbarch_supports_displaced_stepping): New.
7961 (use_displaced_stepping): Break up conditions in smaller pieces.
7962 Use gdbarch_supports_displaced_stepping.
7963 (displaced_step_prepare_throw): Use
7964 gdbarch_supports_displaced_stepping.
7965
7966 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7967
7968 * NEWS: Mention new behaviour of the history filename.
7969 * top.c (write_history_p): Add comment.
7970 (show_write_history_p): Add header comment, give a different
7971 message when history writing is on, but the history filename is
7972 empty.
7973 (history_filename): Add comment.
7974 (history_filename_empty): New function.
7975 (show_history_filename): Add header comment, give a different
7976 message when the filename is empty.
7977 (init_history): Compare history_filename against nullptr, and only
7978 read history if the filename is not empty.
7979 (set_history_filename): Add header comment, and only make
7980 non-empty filenames absolute.
7981 (init_main): Make the filename argument to 'set history filename'
7982 optional.
7983
7984 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7985
7986 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7987 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7988 (fetch_fp_register): Update.
7989 (fetch_fp_regs): Update.
7990 (store_fp_register): Update.
7991 (store_fp_regs): Update.
7992 (arm_netbsd_nat_target::read_description): New function.
7993 (fetch_elfcore_registers): Update.
7994
7995 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7996
7997 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7998 general_thread if the stop reply is missing a thread-id.
7999 (remote_target::process_stop_reply): Use the first non-exited
8000 thread if the target didn't pass a thread-id.
8001 * infrun.c (do_target_wait): Move call to
8002 switch_to_inferior_no_thread to ....
8003 (do_target_wait_1): ... here.
8004
8005 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8006
8007 * debuginfod-support.c: Include defs.h first.
8008
8009 2020-02-28 Tom de Vries <tdevries@suse.de>
8010
8011 * symfile.c (set_initial_language): Use default language for lookup.
8012
8013 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8014
8015 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8016 reader variable, pass `this` to read_cutu_die_from_dwo.
8017
8018 2020-02-27 Aaron Merey <amerey@redhat.com>
8019
8020 * source.c (open_source_file): Check for nullptr when computing
8021 srcpath.
8022
8023 2020-02-27 Tom Tromey <tromey@adacore.com>
8024
8025 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8026 member.
8027 (dwarf2_add_field): Don't update nfields.
8028 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8029
8030 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8031
8032 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8033 abs.
8034
8035 2020-02-26 Tom Tromey <tom@tromey.com>
8036
8037 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8038 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8039 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8040 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8041 per_cu_data.
8042
8043 2020-02-26 Tom Tromey <tom@tromey.com>
8044
8045 * dwarf2/index-write.c (psym_index_map): Change type.
8046 (add_address_entry_worker, write_one_signatured_type)
8047 (recursively_count_psymbols, recursively_write_psymbols)
8048 (class debug_names, psyms_seen_size, write_gdbindex)
8049 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8050
8051 2020-02-26 Aaron Merey <amerey@redhat.com>
8052
8053 * Makefile.in: Handle optional debuginfod support.
8054 * NEWS: Update.
8055 * README: Add --with-debuginfod summary.
8056 * config.in: Regenerate.
8057 * configure: Regenerate.
8058 * configure.ac: Handle optional debuginfod support.
8059 * debuginfod-support.c: debuginfod helper functions.
8060 * debuginfod-support.h: Ditto.
8061 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8062 summary.
8063 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8064 when a dwz file cannot be found.
8065 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8066 debuginfo file cannot be found.
8067 * source.c (open_source_file): Query debuginfod servers when a
8068 source file cannot be found.
8069 * top.c (print_gdb_configuration): Include
8070 --{with,without}-debuginfod in the output.
8071
8072 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8073
8074 * thread.c (thr_try_catch_cmd): Print thread name.
8075
8076 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8077
8078 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8079 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8080 dwarf2_fetch_die_type_sect_off): Move to...
8081 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8082 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8083 dwarf2_fetch_die_type_sect_off): ... here.
8084 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8085 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8086 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8087
8088 2020-02-26 Tom de Vries <tdevries@suse.de>
8089
8090 PR gdb/25603
8091 * symfile.c (set_initial_language): Exit-early if
8092 language_mode == language_mode_manual.
8093
8094 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8095
8096 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8097 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8098 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8099
8100 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8101
8102 * gdbtypes.c (create_array_type_with_stride): Handle negative
8103 array strides.
8104 * valarith.c (value_subscripted_rvalue): Likewise.
8105
8106 2020-02-25 Luis Machado <luis.machado@linaro.org>
8107
8108 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8109
8110 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8111
8112 * loc.h (dwarf2_get_die_type): Move to...
8113 * read.h (dwarf2_get_die_type): ... here.
8114 * read.c (dwarf2_get_die_type): Move doc to header.
8115
8116 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8117
8118 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8119 'gnulib/Makefile.in' to the list.
8120
8121 2020-02-24 Tom Tromey <tom@tromey.com>
8122
8123 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8124 Remove.
8125 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8126 XOBNEWVEC.
8127
8128 2020-02-24 Tom Tromey <tom@tromey.com>
8129
8130 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8131 New method.
8132 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8133 (dw2_do_instantiate_symtab, dw2_get_file_names)
8134 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8135
8136 2020-02-24 Tom Tromey <tom@tromey.com>
8137
8138 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8139 make_scoped_restore.
8140 (dwarf2_psymtab::read_symtab): Don't clear
8141 reading_partial_symbols.
8142
8143 2020-02-24 Tom de Vries <tdevries@suse.de>
8144
8145 PR gdb/25592
8146 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8147
8148 2020-02-24 Tom de Vries <tdevries@suse.de>
8149
8150 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8151 commands layout next/prev/regs.
8152
8153 2020-02-22 Tom Tromey <tom@tromey.com>
8154
8155 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8156 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8157
8158 2020-02-22 Tom Tromey <tom@tromey.com>
8159
8160 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8161
8162 2020-02-22 Tom Tromey <tom@tromey.com>
8163
8164 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8165 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8166 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8167 * tui/tui.c (_initialize_tui): Add usage text.
8168
8169 2020-02-22 Tom Tromey <tom@tromey.com>
8170
8171 * tui/tui-win.c (tui_set_focus_command)
8172 (tui_set_win_height_command): Use error_no_arg.
8173 (_initialize_tui_win): Update help text.
8174 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8175
8176 2020-02-22 Tom Tromey <tom@tromey.com>
8177
8178 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8179 * tui/tui-disasm.h (struct tui_disasm_window)
8180 <display_start_addr>: Declare.
8181 * tui/tui-source.h (struct tui_source_window)
8182 <display_start_addr>: Declare.
8183 * tui/tui-winsource.h (struct tui_source_window_base)
8184 <show_source_line, display_start_addr>: New methods.
8185 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8186 Rename and move to protected section.
8187 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8188 (tui_source_window_base::do_erase_source_content): Update.
8189 (tui_source_window_base::show_source_line): Now a method.
8190 (tui_source_window_base::show_source_content)
8191 (tui_source_window_base::tui_source_window_base)
8192 (tui_source_window_base::rerender)
8193 (tui_source_window_base::refill)
8194 (tui_source_window_base::do_scroll_horizontal)
8195 (tui_source_window_base::set_is_exec_point_at)
8196 (tui_source_window_base::update_breakpoint_info)
8197 (tui_source_window_base::update_exec_info): Update.
8198 * tui/tui-source.c (tui_source_window::set_contents)
8199 (tui_source_window::showing_source_p)
8200 (tui_source_window::do_scroll_vertical)
8201 (tui_source_window::location_matches_p)
8202 (tui_source_window::line_is_displayed): Update.
8203 (tui_source_window::display_start_addr): New method.
8204 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8205 (tui_disasm_window::do_scroll_vertical)
8206 (tui_disasm_window::location_matches_p): Update.
8207 (tui_disasm_window::display_start_addr): New method.
8208
8209 2020-02-22 Tom Tromey <tom@tromey.com>
8210
8211 * NEWS: Add entry for gdb.register_window_type.
8212 * tui/tui-layout.h (window_factory): New typedef.
8213 (tui_register_window): Declare.
8214 * tui/tui-layout.c (saved_tui_windows): New global.
8215 (tui_apply_current_layout): Use it.
8216 (tui_register_window): New function.
8217 * python/python.c (do_start_initialization): Call
8218 gdbpy_initialize_tui.
8219 (python_GdbMethods): Add "register_window_type" function.
8220 * python/python-internal.h (gdbpy_register_tui_window)
8221 (gdbpy_initialize_tui): Declare.
8222 * python/py-tui.c: New file.
8223 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8224
8225 2020-02-22 Tom Tromey <tom@tromey.com>
8226
8227 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8228
8229 2020-02-22 Tom Tromey <tom@tromey.com>
8230
8231 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8232 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8233 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8234 (tui_set_win_focus_to): Move from tui-win.c.
8235
8236 2020-02-22 Tom Tromey <tom@tromey.com>
8237
8238 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8239 functions.
8240 (known_window_types): New global.
8241 (tui_get_window_by_name): Reimplement.
8242 (initialize_known_windows): New function.
8243 (validate_window_name): Rewrite.
8244 (_initialize_tui_layout): Call initialize_known_windows.
8245
8246 2020-02-22 Tom Tromey <tom@tromey.com>
8247
8248 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8249 Remove constants.
8250 * tui/tui-winsource.h (struct tui_source_window_base)
8251 <tui_source_window_base>: Remove parameter.
8252 * tui/tui-winsource.c
8253 (tui_source_window_base::tui_source_window_base): Remove
8254 parameter.
8255 (tui_source_window_base::refill): Update.
8256 * tui/tui-stack.h (struct tui_locator_window)
8257 <tui_locator_window>: Update.
8258 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8259 Default the constructor.
8260 * tui/tui-regs.h (struct tui_data_item_window)
8261 <tui_data_item_window>: Default the constructor.
8262 (struct tui_data_window) <tui_data_window>: Likewise.
8263 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8264 Default the constructor.
8265 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8266 Default the constructor.
8267 <type>: Remove.
8268 (struct tui_win_info) <tui_win_info>: Default the constructor.
8269 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8270 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8271 Default the constructor.
8272
8273 2020-02-22 Tom Tromey <tom@tromey.com>
8274
8275 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8276 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8277 * tui/tui-win.c (tui_resize_all): Don't call
8278 tui_delete_invisible_windows.
8279 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8280 done.
8281 (tui_set_layout): Update.
8282 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8283 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8284 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8285
8286 2020-02-22 Tom Tromey <tom@tromey.com>
8287
8288 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8289 correctly.
8290
8291 2020-02-22 Tom Tromey <tom@tromey.com>
8292
8293 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8294
8295 2020-02-22 Tom Tromey <tom@tromey.com>
8296
8297 * tui/tui-winsource.h (struct tui_source_window_iterator)
8298 <inner_iterator>: New etytypedef.
8299 <tui_source_window_iterator>: Take "end" parameter.
8300 <tui_source_window_iterator>: Take iterator.
8301 <operator*, advance>: Update.
8302 <m_iter>: Change type.
8303 <m_end>: New field.
8304 (struct tui_source_windows) <begin, end>: Update.
8305 * tui/tui-layout.c (tui_windows): New global.
8306 (tui_apply_current_layout): Clear tui_windows.
8307 (tui_layout_window::apply): Update tui_windows.
8308 * tui/tui-data.h (tui_windows): Declare.
8309 (all_tui_windows): Now inline function.
8310 (class tui_window_iterator, struct all_tui_windows): Remove.
8311
8312 2020-02-22 Tom Tromey <tom@tromey.com>
8313
8314 PR tui/17850:
8315 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8316 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8317 "height" argument.
8318 (class tui_layout_window) <get_sizes>: Likewise.
8319 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8320 argument.
8321 <get_sizes>: Add "height" argument.
8322 <m_vertical>: New field.
8323 * tui/tui-layout.c (tui_layout_split::clone): Update.
8324 (tui_layout_split::get_sizes): Add "height" argument.
8325 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8326 (tui_new_layout_command): Parse "-horizontal".
8327 (_initialize_tui_layout): Update help string.
8328 (tui_layout_split::specification): Add "-horizontal" when needed.
8329 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8330 argument.
8331 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8332 New methods.
8333
8334 2020-02-22 Tom Tromey <tom@tromey.com>
8335
8336 * tui/tui-layout.h (enum tui_adjust_result): New.
8337 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8338 (class tui_layout_window) <adjust_size>: Return
8339 tui_adjust_result. Rewrite.
8340 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8341 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8342
8343 2020-02-22 Tom Tromey <tom@tromey.com>
8344
8345 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8346 parameter and return types.
8347 (class tui_layout_base) <specification>: Add "depth".
8348 (class tui_layout_window) <specification>: Add "depth".
8349 (class tui_layout_split) <specification>: Add "depth".
8350 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8351 and return types.
8352 (tui_new_layout_command): Parse sub-layouts.
8353 (_initialize_tui_layout): Update help string.
8354 (tui_layout_window::specification): Add "depth".
8355 (add_layout_command): Update.
8356
8357 2020-02-22 Tom Tromey <tom@tromey.com>
8358
8359 * NEWS: Add "tui new-layout" item.
8360 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8361 Add new-layout command to help text.
8362 (validate_window_name): New function.
8363 (tui_new_layout_command): New function.
8364 (_initialize_tui_layout): Register "new-layout".
8365 (tui_layout_window::specification): New method.
8366 (tui_layout_window::specification): New method.
8367 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8368 method.
8369 (class tui_layout_window) <specification>: New method.
8370 (class tui_layout_split) <specification>: New method.
8371
8372 2020-02-22 Tom Tromey <tom@tromey.com>
8373
8374 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8375 * tui/tui-win.c (window_name_completer): Update comment.
8376 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8377 Declare method.
8378 (class tui_layout_window) <replace_window>: Likewise.
8379 (class tui_layout_split) <replace_window>: Likewise.
8380 (tui_set_layout): Don't declare.
8381 (tui_set_initial_layout): Declare function.
8382 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8383 (asm_regs_layout): New globals.
8384 (tui_current_layout, show_layout): Remove.
8385 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8386 (find_layout, tui_apply_layout): New function.
8387 (layout_completer): Remove.
8388 (tui_next_layout): Reimplement.
8389 (tui_next_layout_command): New function.
8390 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8391 (tui_regs_layout): Reimplement.
8392 (tui_regs_layout_command): New function.
8393 (extract_display_start_addr): Rewrite.
8394 (next_layout, prev_layout): Remove.
8395 (tui_layout_window::replace_window): New method.
8396 (tui_layout_split::replace_window): New method.
8397 (destroy_layout): New function.
8398 (layout_list): New global.
8399 (add_layout_command): New function.
8400 (initialize_layouts): Update.
8401 (tui_layout_command): New function.
8402 (_initialize_tui_layout): Install "layout" commands.
8403 * tui/tui-data.h (enum tui_layout_type): Remove.
8404 (tui_current_layout): Don't declare.
8405
8406 2020-02-22 Tom Tromey <tom@tromey.com>
8407
8408 * tui/tui-regs.c (tui_reg_layout): Remove.
8409 (tui_reg_command): Use tui_regs_layout.
8410 * tui/tui-layout.h (tui_reg_command): Declare.
8411 * tui/tui-layout.c (tui_reg_command): New function.
8412
8413 2020-02-22 Tom Tromey <tom@tromey.com>
8414
8415 * tui/tui.c (tui_rl_delete_other_windows): Call
8416 tui_remove_some_windows.
8417 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8418 Declare method.
8419 (class tui_layout_window) <remove_windows>: New method.
8420 (class tui_layout_split) <remove_windows>: Declare.
8421 (tui_remove_some_windows): Declare.
8422 * tui/tui-layout.c (tui_remove_some_windows): New function.
8423 (tui_layout_split::remove_windows): New method.
8424
8425 2020-02-22 Tom Tromey <tom@tromey.com>
8426
8427 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8428 * tui/tui-layout.h (tui_next_layout): Declare.
8429 * tui/tui-layout.c (tui_next_layout): New function.
8430
8431 2020-02-22 Tom Tromey <tom@tromey.com>
8432
8433 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8434 correct coordinates.
8435
8436 2020-02-22 Tom Tromey <tom@tromey.com>
8437
8438 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8439 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8440 DATA_WIN case.
8441
8442 2020-02-22 Tom Tromey <tom@tromey.com>
8443
8444 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8445 TUI_DISASM_WIN, not tui_win_list.
8446
8447 2020-02-22 Tom Tromey <tom@tromey.com>
8448
8449 * valprint.c (generic_val_print_enum_1)
8450 (val_print_type_code_flags): Style member names.
8451 * rust-lang.c (val_print_struct, rust_print_enum)
8452 (rust_print_struct_def, rust_internal_print_type): Style member
8453 names.
8454 * p-valprint.c (pascal_object_print_value_fields): Style member
8455 names. Only call fprintf_symbol_filtered for static members.
8456 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8457 * f-valprint.c (f_val_print): Style member names.
8458 * f-typeprint.c (f_type_print_base): Style member names.
8459 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8460 call fprintf_symbol_filtered for static members.
8461 (cp_print_class_member): Style member names.
8462 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8463 member names.
8464 * ada-valprint.c (ada_print_scalar): Style enum names.
8465 (ada_val_print_enum): Likewise.
8466 * ada-typeprint.c (print_enum_type): Style enum names.
8467
8468 2020-02-21 Tom Tromey <tom@tromey.com>
8469
8470 * psympriv.h (struct partial_symtab): Update comment.
8471
8472 2020-02-21 Tom Tromey <tromey@adacore.com>
8473
8474 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8475 type is CORE_ADDR.
8476
8477 2020-02-21 Tom de Vries <tdevries@suse.de>
8478
8479 PR gdb/25534
8480 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8481 if dependencies[i]->user != NULL.
8482
8483 2020-02-21 Ali Tamur <tamur@google.com>
8484
8485 * dwarf2/read.c (dwarf2_name): Add null check.
8486
8487 2020-02-20 Tom Tromey <tom@tromey.com>
8488
8489 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8490 ">=", in binary search.
8491 (dwarf2_find_containing_comp_unit): New overload.
8492 (run_test): New self-test.
8493 (_initialize_dwarf2_read): Register new test.
8494
8495 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8496
8497 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8498 * riscv-tdep.h: Likewise.
8499 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8500 rv32-only CSR.
8501 * features/riscv/64bit-csr.xml: Regenerated.
8502
8503 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8504 Tom Tromey <tom@tromey.com>
8505
8506 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8507 of 'fputc_unfiltered'.
8508 (putchar_unfiltered): Call 'fputc_unfiltered'.
8509 (fputc_unfiltered): Call 'fputs_unfiltered'.
8510
8511 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8512
8513 * config.in: Regenerate.
8514 * configure: Regenerate.
8515 * configure.ac: Add --with-python-libdir option.
8516 * main.c: Use WITH_PYTHON_LIBDIR.
8517
8518 2020-02-19 Tom Tromey <tom@tromey.com>
8519
8520 * symtab.c (general_symbol_info::compute_and_set_names): Use
8521 obstack_strndup. Simplify call to symbol_set_demangled_name.
8522
8523 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8524
8525 * dwarf2/read.c (allocate_signatured_type_table,
8526 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8527 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8528 Remove objfile parameter, update all callers.
8529
8530 2020-02-19 Doug Evans <dje@google.com>
8531
8532 PR rust/25535
8533 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8534 rust_enum_variant calculation.
8535
8536 2020-02-19 Tom Tromey <tromey@adacore.com>
8537
8538 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8539
8540 2020-02-19 Tom Tromey <tromey@adacore.com>
8541
8542 * ada-lang.c (cache_symbol): Use obstack_strdup.
8543
8544 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8545
8546 * configure: Regenerate.
8547
8548 2020-02-19 Tom Tromey <tromey@adacore.com>
8549
8550 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8551 NULL check.
8552
8553 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8554
8555 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8556
8557 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8558
8559 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8560 if GDBSERVER is not defined.
8561 (riscv_tdesc_cache): Likewise, also store const target_desc.
8562 (STATIC_IN_GDB): Define.
8563 (riscv_create_target_description): Update declaration with
8564 STATIC_IN_GDB.
8565 (riscv_lookup_target_description): New function, only define if
8566 GDBSERVER is not defined.
8567 * arch/riscv.h (riscv_create_target_description): Declare only
8568 when GDBSERVER is defined.
8569 (riscv_lookup_target_description): New declaration when GDBSERVER
8570 is not defined.
8571 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8572 (riscv_linux_read_features): ...this, and return
8573 riscv_gdbarch_features instead of target_desc.
8574 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8575 (riscv_linux_read_description): Rename to...
8576 (riscv_linux_read_features): ...this.
8577 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8578 Update to use riscv_gdbarch_features and
8579 riscv_lookup_target_description.
8580 * riscv-tdep.c (riscv_find_default_target_description): Use
8581 riscv_lookup_target_description instead of
8582 riscv_create_target_description.
8583
8584 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8585
8586 * valprint.c (generic_val_print_enum_1): When printing a flag
8587 enum with value 0 and there is no enumerator with value 0, print
8588 just "0" instead of "(unknown: 0x0)".
8589
8590 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8591
8592 * valprint.c (generic_val_print_enum_1): Print unknown part of
8593 flag enum in hex.
8594
8595 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8596
8597 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8598 flag enums to contain duplicate enumerators.
8599 * valprint.c (generic_val_print_enum_1): Update comment.
8600
8601 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8602
8603 * dwarf2/read.c: Include "count-one-bits.h".
8604 (update_enumeration_type_from_children): If an enumerator has
8605 multiple bits set, don't treat the enumeration as a "flag enum".
8606 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8607 of flag enums have 0 or 1 bit set.
8608
8609 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8610
8611 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8612 conversion.
8613 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8614 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8615 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8616 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8617 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8618
8619 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8620
8621 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8622
8623 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8624
8625 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8626 displaced_step_closure_up.
8627 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8628 (struct displaced_step_closure_up):
8629 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8630 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8631 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8632 Likewise.
8633 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8634 * gdbarch.c, gdbarch.h: Re-generate.
8635 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8636 displaced_step_closure_up.
8637 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8638 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8639 * infrun.h (displaced_step_closure_up): New type alias.
8640 (struct displaced_step_inferior_state) <step_closure>: Change
8641 type to displaced_step_closure_up.
8642 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8643 displaced_step_closure_up.
8644 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8645
8646 2020-02-14 Tom Tromey <tom@tromey.com>
8647
8648 * minidebug.c (gnu_debug_key): New global.
8649 (find_separate_debug_file_in_section): Use it.
8650
8651 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8652
8653 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8654 std::unique_ptr.
8655 * gdbarch.c: Re-generate.
8656 * gdbarch.h: Re-generate.
8657 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8658 change.
8659 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8660 type to std::unique_ptr.
8661 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8662 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8663 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8664 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8665 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8666 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8667 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8668 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8669 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8670
8671 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8672
8673 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8674 std::unique_ptr.
8675 (displaced_step_clear): Rename to...
8676 (displaced_step_reset): ... this. Just call displaced->reset ().
8677 (displaced_step_clear_cleanup): Rename to...
8678 (displaced_step_reset_cleanup): ... this.
8679 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8680 (displaced_step_fixup): Likewise.
8681 (resume_1): Likewise.
8682 (handle_inferior_event): Restore child's memory before calling
8683 displaced_step_fixup on the parent.
8684 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8685 to std::unique_ptr.
8686 <step_closure>: Change type to std::unique_ptr.
8687
8688 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8689
8690 * arm-tdep.c: Include count-one-bits.h.
8691 (cleanup_block_store_pc): Use count_one_bits.
8692 (cleanup_block_load_pc): Use count_one_bits.
8693 (arm_copy_block_xfer): Use count_one_bits.
8694 (thumb2_copy_block_xfer): Use count_one_bits.
8695 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8696 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8697 (thumb_get_next_pcs_raw): Use count_one_bits.
8698 (arm_get_next_pcs_raw): Use count_one_bits_l.
8699 * arch/arm.c (bitcount): Remove.
8700 * arch/arm.h (bitcount): Remove.
8701
8702 2020-02-14 Tom Tromey <tromey@adacore.com>
8703
8704 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8705 Update.
8706 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8707 * dwarf2/loc.c (call_site_find_chain_1): Return
8708 unique_xmalloc_ptr.
8709 (call_site_find_chain): Likewise.
8710
8711 2020-02-14 Richard Biener <rguenther@suse.de>
8712
8713 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8714 on expression with division operators.
8715
8716 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8717
8718 * MAINTAINERS (Write After Approval): Adding myself.
8719
8720 2020-02-12 Tom Tromey <tom@tromey.com>
8721
8722 * event-loop.c (event_data, gdb_event, event_handler_func):
8723 Remove.
8724
8725 2020-02-12 Tom Tromey <tom@tromey.com>
8726
8727 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8728 (dwarf2_frame_objfile_data): Add comment.
8729 (find_comp_unit, set_comp_unit): New functions.
8730 (dwarf2_frame_find_fde): Use find_comp_unit.
8731 (dwarf2_build_frame_info): Use set_comp_unit.
8732
8733 2020-02-12 Tom Tromey <tom@tromey.com>
8734
8735 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8736 (comp_unit): Don't initialize objfile.
8737 (execute_cfa_program): Add text_offset parameter.
8738 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8739 (dwarf2_frame_cache): Update.
8740 (dwarf2_build_frame_info): Don't set "objfile" member.
8741
8742 2020-02-12 Tom Tromey <tom@tromey.com>
8743
8744 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8745 (decode_frame_entry): Likewise.
8746 (dwarf2_build_frame_info): Update.
8747
8748 2020-02-12 Tom Tromey <tom@tromey.com>
8749
8750 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8751 (decode_frame_entry_1): Use the comp_unit obstack.
8752
8753 2020-02-12 Tom Tromey <tom@tromey.com>
8754
8755 * dwarf2/frame.c (struct comp_unit): Add initializers and
8756 constructor.
8757 (dwarf2_frame_objfile_data): Store a comp_unit.
8758 (dwarf2_frame_find_fde): Update.
8759 (dwarf2_build_frame_info): Use "new".
8760
8761 2020-02-12 Tom Tromey <tom@tromey.com>
8762
8763 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8764 (dwarf2_fde_table): Typedef for std::vector.
8765 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8766 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8767 (decode_frame_entry): Update.
8768 (dwarf2_build_frame_info): Use "new".
8769
8770 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8771
8772 * arm-tdep.c (arm_gdbarch_init): Update.
8773 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8774 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8775 have_neon, is_m>: Change to bool.
8776
8777 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8778
8779 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8780
8781 2020-02-12 Tom Tromey <tom@tromey.com>
8782
8783 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8784
8785 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8786
8787 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8788 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8789
8790 2020-02-11 Tom Tromey <tom@tromey.com>
8791
8792 * psymtab.h: Update comment.
8793
8794 2020-02-11 Tom Tromey <tom@tromey.com>
8795
8796 * gdb_obstack.h (struct auto_obstack): Use
8797 DISABLE_COPY_AND_ASSIGN.
8798
8799 2020-02-11 Tom Tromey <tom@tromey.com>
8800
8801 * dwarf2/frame.h (struct objfile): Don't forward declare.
8802
8803 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8804
8805 * cris-tdep.c (cris_supply_gregset): Change signature to match
8806 what struct regset expects.
8807 (cris_regset): New struct.
8808 (fetch_core_registers): Remove.
8809 (cris_iterate_over_regset_sections): New function.
8810 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8811 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8812
8813 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8814
8815 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8816 registers.
8817
8818 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8819
8820 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8821
8822 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8823
8824 * configure: Re-generate.
8825
8826 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8827
8828 * configure: Re-generate.
8829
8830 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8831
8832 * acinclude: Update warning.m4 path.
8833 * warning.m4: Move to gdbsupport.
8834
8835 2020-02-11 Tom Tromey <tromey@adacore.com>
8836
8837 * remote.c (remote_console_output): Update.
8838 * printcmd.c (printf_command): Update.
8839 * event-loop.c (gdb_wait_for_event): Update.
8840 * linux-nat.c (sigchld_handler): Update.
8841 * remote-sim.c (gdb_os_write_stdout): Update.
8842 (gdb_os_flush_stdout): Update.
8843 (gdb_os_flush_stderr): Update.
8844 (gdb_os_write_stderr): Update.
8845 * exceptions.c (print_exception): Update.
8846 * remote-fileio.c (remote_fileio_func_read): Update.
8847 (remote_fileio_func_write): Update.
8848 * tui/tui.c (tui_enable): Update.
8849 * tui/tui-interp.c (tui_interp::init): Update.
8850 * utils.c (init_page_info): Update.
8851 (putchar_unfiltered, fputc_unfiltered): Update.
8852 (gdb_flush): Update.
8853 (emit_style_escape): Update.
8854 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8855 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8856 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8857 (stderr_file::write): Update.
8858 (stderr_file::puts): Update.
8859 * ui-file.h (ui_file_isatty, ui_file_write)
8860 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8861 (ui_file_puts): Don't declare.
8862
8863 2020-02-10 Tom de Vries <tdevries@suse.de>
8864
8865 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8866 sentinel to char *.
8867
8868 2020-02-09 Tom de Vries <tdevries@suse.de>
8869
8870 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8871 filename if it matches "<artificial>".
8872
8873 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8874
8875 * windows-tdep.c (struct enum_value_name): New struct.
8876 (create_enum): New function.
8877 (windows_get_siginfo_type): Create and use enum types.
8878
8879 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8880
8881 * NEWS: Mention $_siginfo support for Windows.
8882 * windows-nat.c (handle_exception): Set siginfo_er.
8883 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8884 (windows_xfer_siginfo): New function.
8885 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8886 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8887 (init_windows_gdbarch_data): New function.
8888 (get_windows_gdbarch_data): New function.
8889 (windows_get_siginfo_type): New function.
8890 (windows_init_abi): Register windows_get_siginfo_type.
8891 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8892
8893 2020-02-08 Tom Tromey <tom@tromey.com>
8894
8895 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8896 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8897 <keep>: Declare method.
8898 <m_keep>: Remove member.
8899 <~cutu_reader>: Remove.
8900 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8901 (cutu_reader::cutu_reader): Update.
8902 (cutu_reader::keep): Rename from ~cutu_reader.
8903 (process_psymtab_comp_unit, build_type_psymtabs_1)
8904 (process_skeletonless_type_unit, load_partial_comp_unit)
8905 (load_full_comp_unit, dwarf2_read_addr_index)
8906 (read_signatured_type): Update.
8907
8908 2020-02-08 Tom Tromey <tom@tromey.com>
8909
8910 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8911 "want_partial_unit" parameter.
8912 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8913 Inline check for DW_TAG_partial_unit.
8914 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8915
8916 2020-02-08 Tom Tromey <tom@tromey.com>
8917
8918 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8919 read.c.
8920 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8921 read.c.
8922
8923 2020-02-08 Tom Tromey <tom@tromey.com>
8924
8925 * dwarf2/read.c (read_address): Move to comp-unit.c.
8926 (dwarf2_rnglists_process, dwarf2_ranges_process)
8927 (read_attribute_value, dwarf_decode_lines_1)
8928 (var_decode_location, decode_locdesc): Update.
8929 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8930 read.c. Remove "cu" parameter.
8931 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8932 method.
8933
8934 2020-02-08 Tom Tromey <tom@tromey.com>
8935
8936 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8937 (read_indirect_line_string): Update.
8938 * dwarf2/comp-unit.c (read_offset): Remove.
8939 (read_comp_unit_head): Update.
8940 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8941 method.
8942 (read_offset): Don't declare.
8943
8944 2020-02-08 Tom Tromey <tom@tromey.com>
8945
8946 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8947 * dwarf2/read.c (struct comp_unit_head): Move to
8948 dwarf2/comp-unit.h.
8949 (enum class rcuh_kind): Move to comp-unit.h.
8950 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8951 (read_comp_unit_head, error_check_comp_unit_head)
8952 (read_and_check_comp_unit_head): Move to comp-unit.c.
8953 (read_offset, dwarf_unit_type_name): Likewise.
8954 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8955 (cutu_reader::cutu_reader, read_call_site_scope)
8956 (find_partial_die, follow_die_offset): Update.
8957 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8958
8959 2020-02-08 Tom Tromey <tom@tromey.com>
8960
8961 * dwarf2/read.c (read_offset_1): Move to leb.c.
8962 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8963 (dwarf_decode_macro_bytes): Update.
8964 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8965 * dwarf2/leb.h (read_offset): Declare.
8966
8967 2020-02-08 Tom Tromey <tom@tromey.com>
8968
8969 * dwarf2/read.c (dwarf2_section_size): Remove.
8970 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8971 Update.
8972 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8973
8974 2020-02-08 Tom Tromey <tom@tromey.com>
8975
8976 * dwarf2/read.c (read_initial_length): Move to leb.c.
8977 * dwarf2/leb.h (read_initial_length): Declare.
8978 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8979 handle_nonstd parameter.
8980 * dwarf2/frame.c (read_initial_length): Remove.
8981 (decode_frame_entry_1): Update.
8982
8983 2020-02-08 Tom Tromey <tom@tromey.com>
8984
8985 * dwarf2/loc.c (dwarf2_find_location_expression)
8986 (dwarf_evaluate_loc_desc::get_tls_address)
8987 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8988 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8989 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8990 (dwarf2_compile_property_to_c)
8991 (dwarf2_loc_desc_get_symbol_read_needs)
8992 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8993 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8994 (loclist_describe_location, loclist_tracepoint_var_ref)
8995 (loclist_generate_c_location): Update.
8996 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8997 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8998 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8999 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9000 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9001 (dwarf2_per_cu_data::addr_size)
9002 (dwarf2_per_cu_data::ref_addr_size)
9003 (dwarf2_per_cu_data::text_offset)
9004 (dwarf2_per_cu_data::addr_type): Now methods.
9005 (per_cu_header_read_in): Make per_cu "const".
9006 (dwarf2_version): Remove.
9007 (dwarf2_per_cu_data::int_type): Now a method.
9008 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9009 (set_die_type, read_array_type, read_subrange_index_type)
9010 (read_tag_string_type, read_subrange_type): Update.
9011 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9012 offset_size, ref_addr_size, text_offset, addr_type, version,
9013 objfile, int_type, addr_sized_int_type>: Declare methods.
9014
9015 2020-02-08 Tom Tromey <tom@tromey.com>
9016
9017 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9018 Move earlier.
9019
9020 2020-02-08 Tom Tromey <tom@tromey.com>
9021
9022 * dwarf2/read.h (dwarf_line_debug): Declare.
9023 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9024 * dwarf2/read.c: Move line_header code to new files.
9025 (dwarf_line_debug): No longer static.
9026 * dwarf2/line-header.c: New file.
9027 * dwarf2/line-header.h: New file.
9028
9029 2020-02-08 Tom Tromey <tom@tromey.com>
9030
9031 * dwarf2/read.c (struct line_header) <file_full_name,
9032 file_file_name>: Return unique_xmalloc_ptr.
9033 (line_header::file_file_name): Update.
9034 (line_header::file_full_name): Update.
9035 (dw2_get_file_names_reader): Update.
9036 (macro_start_file): Update.
9037
9038 2020-02-08 Tom Tromey <tom@tromey.com>
9039
9040 * dwarf2/read.c (struct line_header) <file_full_name,
9041 file_file_name>: Declare methods.
9042 (dw2_get_file_names_reader): Update.
9043 (file_file_name): Now a method.
9044 (file_full_name): Likewise.
9045 (macro_start_file): Update.
9046
9047 2020-02-08 Tom Tromey <tom@tromey.com>
9048
9049 * dwarf2/read.c (dwarf_always_disassemble)
9050 (show_dwarf_always_disassemble): Move to loc.c.
9051 (_initialize_dwarf2_read): Move "always-disassemble" registration
9052 to loc.c.
9053 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9054 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9055 static.
9056 (show_dwarf_always_disassemble): Move from read.c.
9057 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9058
9059 2020-02-08 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9062 (create_quick_file_names_table): Return htab_up.
9063 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9064 Update.
9065 * dwarf2/read.h (struct dwarf2_per_objfile)
9066 <quick_file_names_table>: Now htab_up.
9067
9068 2020-02-08 Tom Tromey <tom@tromey.com>
9069
9070 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9071
9072 2020-02-08 Tom Tromey <tom@tromey.com>
9073
9074 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9075 Rewrite.
9076 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9077 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9078 (abbrev_table::abbrev_table): No longer inline.
9079 (ABBREV_HASH_SIZE): Remove.
9080 (abbrev_table::m_abbrevs): Now an htab_up.
9081
9082 2020-02-08 Tom Tromey <tom@tromey.com>
9083
9084 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9085 (cutu_reader): Update.
9086 (build_type_psymtabs_1): Update.
9087 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9088 (abbrev_table::alloc_abbrev): Update.
9089 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9090 (abbrev_table::read): New static method, renamed from
9091 abbrev_table_read_table.
9092 (abbrev_table::alloc_abbrev)
9093 (abbrev_table::add_abbrev): Now private.
9094 (abbrev_table::abbrev_table): Now private.
9095 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9096
9097 2020-02-08 Tom Tromey <tom@tromey.com>
9098
9099 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9100 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9101 htab_up.
9102
9103 2020-02-08 Tom Tromey <tom@tromey.com>
9104
9105 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9106 htab_up.
9107 (lookup_dwo_unit_in_dwp): Update.
9108 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9109 on obstack.
9110
9111 2020-02-08 Tom Tromey <tom@tromey.com>
9112
9113 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9114 obstack.
9115
9116 2020-02-08 Tom Tromey <tom@tromey.com>
9117
9118 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9119 line_header_hash.
9120 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9121 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9122 Change type to htab_up.
9123
9124 2020-02-08 Tom Tromey <tom@tromey.com>
9125
9126 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9127 htab_up. Don't allocate on obstack.
9128 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9129 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9130 Change type to htab_up.
9131
9132 2020-02-08 Tom Tromey <tom@tromey.com>
9133
9134 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9135 Change type to htab_up.
9136 * dwarf2/read.c (create_signatured_type_table_from_index)
9137 (create_signatured_type_table_from_debug_names)
9138 (create_all_type_units, add_type_unit)
9139 (lookup_dwo_signatured_type, lookup_signatured_type)
9140 (process_skeletonless_type_unit): Update.
9141 (create_debug_type_hash_table, create_debug_types_hash_table):
9142 Change type of types_htab.
9143 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9144 htab_up. Don't allocate on obstack.
9145 (create_cus_hash_table): Change type of cus_htab parameter.
9146 (struct dwo_file) <cus, tus>: Now htab_up.
9147 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9148 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9149 (queue_and_load_all_dwo_tus): Update.
9150 * dwarf2/index-write.c (write_gdbindex): Update.
9151 (write_debug_names): Update.
9152
9153 2020-02-08 Tom Tromey <tom@tromey.com>
9154
9155 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9156 dwarf2/read.c. Remove "next" member. Add constructor ntad
9157 destructor.
9158 (struct dwarf2_per_objfile) <queue>: New member.
9159 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9160 dwarf2/read.h.
9161 (dwarf2_queue, dwarf2_queue_tail): Remove.
9162 (class dwarf2_queue_guard): Add parameter to constructor. Use
9163 DISABLE_COPY_AND_ASSIGN.
9164 <m_per_objfile>: New member.
9165 <~dwarf2_queue_guard>: Rewrite.
9166 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9167 Update.
9168 (~dwarf2_queue_item): New.
9169
9170 2020-02-08 Tom Tromey <tom@tromey.com>
9171
9172 * dwarf2/read.c (struct die_info) <has_children>: New member.
9173 (dw2_get_file_names_reader): Remove has_children.
9174 (dw2_get_file_names): Update.
9175 (read_cutu_die_from_dwo): Remove has_children.
9176 (cutu_reader::init_tu_and_read_dwo_dies)
9177 (cutu_reader::cutu_reader): Update.
9178 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9179 Remove has_children.
9180 (build_type_psymtabs_1, process_skeletonless_type_unit)
9181 (load_partial_comp_unit, load_full_comp_unit): Update.
9182 (create_dwo_cu_reader): Remove has_children.
9183 (create_cus_hash_table, read_die_and_children): Update.
9184 (read_full_die_1,read_full_die): Remove has_children.
9185 (read_signatured_type): Update.
9186 (class cutu_reader) <has_children>: Remove.
9187
9188 2020-02-08 Tom Tromey <tom@tromey.com>
9189
9190 * dwarf2/expr.c: Rename from dwarf2expr.c.
9191 * dwarf2/expr.h: Rename from dwarf2expr.h.
9192 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9193 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9194 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9195 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9196 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9197 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9198 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9199 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9200 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9201 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9202 * dwarf2/loc.c: Rename from dwarf2loc.c.
9203 * dwarf2/loc.h: Rename from dwarf2loc.h.
9204 * dwarf2/read.c: Rename from dwarf2read.c.
9205 * dwarf2/read.h: Rename from dwarf2read.h.
9206 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9207 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9208 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9209 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9210 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9211 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9212 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9213 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9214 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9215 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9216 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9217 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9218 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9219 Update.
9220 * Makefile.in (COMMON_SFILES): Update.
9221 (HFILES_NO_SRCDIR): Update.
9222
9223 2020-02-08 Tom Tromey <tom@tromey.com>
9224
9225 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9226 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9227
9228 2020-02-08 Tom Tromey <tom@tromey.com>
9229
9230 * dwarf2read.h (struct die_info): Don't declare.
9231
9232 2020-02-08 Tom Tromey <tom@tromey.com>
9233
9234 * dwarf2read.h (die_info_ptr): Remove typedef.
9235
9236 2020-02-08 Tom Tromey <tom@tromey.com>
9237
9238 * dwarf2read.c (read_call_site_scope)
9239 (handle_data_member_location, dwarf2_add_member_fn)
9240 (mark_common_block_symbol_computed, read_common_block)
9241 (attr_to_dynamic_prop, partial_die_info::read)
9242 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9243 (dwarf2_symbol_mark_computed, set_die_type): Update.
9244 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9245 method.
9246 (attr_form_is_block): Don't declare.
9247 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9248
9249 2020-02-08 Tom Tromey <tom@tromey.com>
9250
9251 * dwarf2read.c (dwarf2_find_base_address, )
9252 (read_call_site_scope, rust_containing_type)
9253 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9254 (handle_data_member_location, dwarf2_add_member_fn)
9255 (get_alignment, read_structure_type, process_structure_scope)
9256 (mark_common_block_symbol_computed, read_common_block)
9257 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9258 (partial_die_info::read, read_attribute_value, new_symbol)
9259 (lookup_die_type, dwarf2_get_ref_die_offset)
9260 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9261 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9262 (dwarf2_symbol_mark_computed): Update.
9263 * dwarf2/attribute.h (struct attribute) <value_as_address,
9264 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9265 methods.
9266 (value_as_address, attr_form_is_section_offset)
9267 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9268 * dwarf2/attribute.c (attribute::value_as_address)
9269 (attribute::form_is_section_offset, attribute::form_is_constant)
9270 (attribute::form_is_ref): Now methods.
9271
9272 2020-02-08 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2read.c (struct attribute, DW_STRING)
9275 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9276 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9277 (attr_form_is_block, attr_form_is_section_offset)
9278 (attr_form_is_constant, attr_form_is_ref): Move.
9279 * dwarf2/attribute.h: New file.
9280 * dwarf2/attribute.c: New file, from dwarf2read.c.
9281 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9282
9283 2020-02-08 Tom Tromey <tom@tromey.com>
9284
9285 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9286 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9287 Move.
9288 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9289 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9290 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9291 abbrev.c.
9292 * dwarf2/abbrev.h: New file.
9293 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9294 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9295
9296 2020-02-08 Tom Tromey <tom@tromey.com>
9297
9298 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9299 (dwarf2_section_size, dwarf2_get_section_info)
9300 (create_signatured_type_table_from_debug_names)
9301 (create_addrmap_from_aranges, read_debug_names_from_section)
9302 (get_gdb_index_contents_from_section, read_comp_unit_head)
9303 (error_check_comp_unit_head, read_abbrev_offset)
9304 (create_debug_type_hash_table, init_cu_die_reader)
9305 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9306 (read_comp_units_from_section, create_cus_hash_table)
9307 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9308 (create_dwp_v2_section, dwarf2_rnglists_process)
9309 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9310 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9311 (read_indirect_string_from_dwz, read_addr_index_1)
9312 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9313 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9314 (fill_in_loclist_baton): Update.
9315 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9316 get_containing_section, get_bfd_owner, get_bfd_section,
9317 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9318 (dwarf2_read_section, get_section_name, get_section_file_name)
9319 (get_containing_section, get_section_bfd_owner)
9320 (get_section_bfd_section, get_section_name, get_section_file_name)
9321 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9322 declare.
9323 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9324 (dwarf2_section_info::get_bfd_owner)
9325 (dwarf2_section_info::get_bfd_section)
9326 (dwarf2_section_info::get_name)
9327 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9328 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9329 (dwarf2_section_info::read): Now methods.
9330 * dwarf-index-write.c (class debug_names): Update.
9331
9332 2020-02-08 Tom Tromey <tom@tromey.com>
9333
9334 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9335 Move to dwarf2/section.h.
9336 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9337 (get_section_bfd_section, get_section_name)
9338 (get_section_file_name, get_section_id, get_section_flags)
9339 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9340 dwarf2/section.c.
9341 * dwarf2/section.h: New file.
9342 * dwarf2/section.c: New file, from dwarf2read.c.
9343 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9344
9345 2020-02-08 Tom Tromey <tom@tromey.com>
9346
9347 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9348 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9349 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9350 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9351 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9352 * dwarf2/leb.h: New file, from dwarf2read.c.
9353 * dwarf2/leb.c: New file, from dwarf2read.c.
9354 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9355 Remove.
9356 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9357 (COMMON_SFILES): Add dwarf2/leb.c.
9358
9359 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9360
9361 GDB 9.1 released.
9362
9363 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9364
9365 PR gdb/25190:
9366 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9367 * gdb/remote.c (remote_console_output): Update.
9368 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9369 (ui_file_puts): ...this.
9370 * gdb/ui-file.h (ui_file_puts): Add declaration.
9371 * gdb/utils.c (emit_style_escape): Update.
9372 (flush_wrap_buffer): Update.
9373 (fputs_maybe_filtered): Update.
9374 (fputs_unfiltered): Add function.
9375
9376 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9377
9378 * gdb/event-loop.c (gdb_wait_for_event): Update.
9379 * gdb/printcmd.c (printf_command): Update.
9380 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9381 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9382 (gdb_os_flush_stderr): Update.
9383 * gdb/remote.c (remote_console_output): Update.
9384 * gdb/ui-file.c (gdb_flush): Rename to...
9385 (ui_file_flush): ...this.
9386 (stderr_file::write): Update.
9387 (stderr_file::puts): Update.
9388 * gdb/ui-file.h (gdb_flush): Rename to...
9389 (ui_file_flush): ...this.
9390 * gdb/utils.c (gdb_flush): Add function.
9391 * gdb/utils.h (gdb_flush): Add declaration.
9392
9393 2020-02-07 Tom Tromey <tromey@adacore.com>
9394
9395 PR breakpoints/24915:
9396 * source.c (find_and_open_source): Do not check basenames_may_differ.
9397
9398 2020-02-07 Tom Tromey <tom@tromey.com>
9399
9400 * README: Update gdbserver documentation.
9401 * gdbserver: Move to top level.
9402 * configure.tgt (build_gdbserver): Remove.
9403 * configure.ac: Remove --enable-gdbserver.
9404 * configure: Rebuild.
9405 * Makefile.in (distclean): Don't mention gdbserver.
9406
9407 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9408
9409 * source-cache.c (source_cache::ensure): Surround
9410 get_plain_source_lines with a try/catch.
9411 (source_cache::get_line_charpos): Get rid of try/catch
9412 and only check for the return value of "ensure".
9413 * tui/tui-source.c (tui_source_window::set_contents):
9414 Simplify "nlines" calculation.
9415
9416 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9417
9418 * MAINTAINERS (Write After Approval): Add myself.
9419
9420 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9421
9422 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9423 function call.
9424
9425 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9426
9427 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9428
9429 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9430
9431 * nat/riscv-linux-tdesc.h: New file.
9432 * nat/riscv-linux-tdesc.c: New file, taking code from...
9433 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9434 ... here.
9435 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9436 NATDEPFILES.
9437
9438 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9439
9440 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9441 we don't set the fake simulator ptid to the null_ptid.
9442
9443 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9444
9445 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9446 * gdbthread.h (class thread_info) <resumed>: Likewise.
9447 * infrun.c (resume_1): Likewise.
9448 (proceed): Likewise.
9449 (infrun_thread_stop_requested): Likewise.
9450 (stop_all_threads): Likewise.
9451 (handle_inferior_event): Likewise.
9452 (restart_threads): Likewise.
9453 (finish_step_over): Likewise.
9454 (keep_going_stepped_thread): Likewise.
9455 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9456 (linux_handle_extended_wait): Likewise.
9457 * record-btrace.c (get_thread_current_frame_id): Likewise.
9458 * record-full.c (record_full_wait_1): Likewise.
9459 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9460 * target.c (target_resume): Likewise.
9461 * thread.c (set_running_thread): Likewise.
9462
9463 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9464
9465 * f-valprint.c (f77_print_array_1): Changed datatype of index
9466 variable to LONGEST from int to enable it to contain bound
9467 values correctly.
9468
9469 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9470
9471 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9472 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9473 offsets according to FLEN determined.
9474 (riscv_linux_nat_target::read_description): Determine FLEN
9475 dynamically.
9476 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9477 according to FLEN determined.
9478 (riscv_linux_nat_target::store_registers): Likewise.
9479
9480 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9481
9482 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9483 when reg->group is empty and reggroup is not.
9484
9485 2020-01-31 Tom Tromey <tromey@adacore.com>
9486
9487 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9488 Call beneath target's mourn_inferior after unpushing.
9489
9490 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9491
9492 PR tui/9765
9493 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9494 have enough lines to fill the screen, still return the lowest
9495 address we found.
9496
9497 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9498
9499 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9500 '-', '<', and '>' commands.
9501
9502 2020-01-29 Pedro Alves <palves@redhat.com>
9503 Sergio Durigan Junior <sergiodj@redhat.com>
9504
9505 * infcmd.c (construct_inferior_arguments): Assert that
9506 'argc' is greater than 0.
9507
9508 2020-01-29 Luis Machado <luis.machado@linaro.org>
9509
9510 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9511 (BRK_INSN_MASK): Define to 0xd4200000.
9512 (aarch64_program_breakpoint_here_p): New function.
9513 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9514 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9515 breakpoint.c.
9516 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9517 breakpoint.h
9518 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9519 call gdbarch_program_breakpoint_here_p.
9520 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9521 default_program_breakpoint_here_p, changed return type to bool and
9522 simplified.
9523 * breakpoint.h (program_breakpoint_here): Moved prototype to
9524 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9525 return type to bool.
9526 * gdbarch.c: Regenerate.
9527 * gdbarch.h: Regenerate.
9528 * gdbarch.sh (program_breakpoint_here_p): New method.
9529 * infrun.c (handle_signal_stop): Call
9530 gdbarch_program_breakpoint_here_p.
9531
9532 2020-01-26 Tom Tromey <tom@tromey.com>
9533
9534 * ctfread.c (struct ctf_fp_info): Reindent.
9535 (_initialize_ctfread): Remove.
9536
9537 2020-01-26 Tom Tromey <tom@tromey.com>
9538
9539 * psymtab.c (partial_map_expand_apply)
9540 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9541 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9542 (psym_print_stats, psym_expand_symtabs_for_function)
9543 (psym_map_symbol_filenames, psym_map_matching_symbols)
9544 (psym_expand_symtabs_matching)
9545 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9546 (maintenance_check_psymtabs): Use new methods.
9547 * psympriv.h (struct partial_symtab) <readin_p,
9548 get_compunit_symtab>: New methods.
9549 <readin, compunit_symtab>: Remove members.
9550 (struct standard_psymtab): New.
9551 (struct legacy_psymtab): Derive from standard_psymtab.
9552 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9553 standard_psymtab.
9554 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9555
9556 2020-01-26 Tom Tromey <tom@tromey.com>
9557
9558 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9559 read_dependencies. Add assert.
9560 * psymtab.c (partial_symtab::read_dependencies): New method.
9561 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9562 method.
9563 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9564 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9565 read_dependencies.
9566 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9567 Add assert.
9568
9569 2020-01-26 Tom Tromey <tom@tromey.com>
9570
9571 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9572 Call expand_psymtab.
9573 (xcoff_read_symtab): Call expand_psymtab.
9574 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9575 legacy_expand_psymtab.
9576 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9577 method.
9578 (struct legacy_psymtab) <expand_psymtab>: Implement.
9579 <legacy_expand_psymtab>: New member.
9580 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9581 (parse_partial_symbols): Set legacy_expand_psymtab.
9582 (psymtab_to_symtab_1): Change argument order. Call
9583 expand_psymtab.
9584 (new_psymtab): Set legacy_expand_psymtab.
9585 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9586 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9587 expand_psymtab.
9588 (dwarf2_psymtab::expand_psymtab): Rename from
9589 psymtab_to_symtab_1. Call expand_psymtab.
9590 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9591 (dbx_end_psymtab): Likewise.
9592 (dbx_psymtab_to_symtab_1): Change argument order. Call
9593 expand_psymtab.
9594 (dbx_read_symtab): Call expand_psymtab.
9595 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9596 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9597 (ctf_psymtab::read_symtab): Call expand_psymtab.
9598
9599 2020-01-26 Tom Tromey <tom@tromey.com>
9600
9601 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9602 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9603 messages.
9604 * mdebugread.c (mdebug_read_symtab): Remove prints.
9605 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9606 assert.
9607 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9608
9609 2020-01-26 Tom Tromey <tom@tromey.com>
9610
9611 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9612 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9613 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9614 legacy_symtab.
9615 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9616 * psymtab.c (psymtab_to_symtab): Call method.
9617 (dump_psymtab): Update.
9618 * psympriv.h (struct partial_symtab): Add virtual destructor.
9619 <read_symtab>: New method.
9620 (struct legacy_symtab): New.
9621 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9622 (struct pst_map) <pst>: Now a legacy_psymtab.
9623 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9624 (new_psymtab): Use legacy_psymtab.
9625 * dwarf2read.h (struct dwarf2_psymtab): New.
9626 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9627 * dwarf2read.c (dwarf2_create_include_psymtab)
9628 (dwarf2_build_include_psymtabs, create_type_unit_group)
9629 (create_partial_symtab, process_psymtab_comp_unit_reader)
9630 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9631 (set_partial_user): Use dwarf2_psymtab.
9632 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9633 (psymtab_to_symtab_1, process_full_comp_unit)
9634 (process_full_type_unit, dwarf2_ranges_read)
9635 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9636 (dwarf_decode_lines): Use dwarf2_psymtab.
9637 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9638 (add_address_entry_worker, write_one_signatured_type)
9639 (recursively_count_psymbols, recursively_write_psymbols)
9640 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9641 (write_debug_names): Likewise.
9642 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9643 <pst>: Now a legacy_psymtab.
9644 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9645 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9646 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9647 * ctfread.c (struct ctf_psymtab): New.
9648 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9649 ctf_psymtab.
9650 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9651 (create_partial_symtab): Return a ctf_psymtab.
9652 (scan_partial_symbols): Update.
9653
9654 2020-01-26 Tom Tromey <tom@tromey.com>
9655
9656 * xcoffread.c (xcoff_start_psymtab): Use new.
9657 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9658 renamed from start_psymtab_common.
9659 * psympriv.h (struct partial_symtab): Add new constructor.
9660 (start_psymtab_common): Don't declare.
9661 * mdebugread.c (parse_partial_symbols): Use new.
9662 * dwarf2read.c (create_partial_symtab): Use new.
9663 * dbxread.c (start_psymtab): Use new.
9664 * ctfread.c (create_partial_symtab): Use new.
9665
9666 2020-01-26 Tom Tromey <tom@tromey.com>
9667
9668 * xcoffread.c (xcoff_end_psymtab): Use new.
9669 * psymtab.c (start_psymtab_common): Use new.
9670 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9671 Update.
9672 * psympriv.h (struct partial_symtab): Add parameters to
9673 constructor. Don't inline.
9674 (allocate_psymtab): Don't declare.
9675 * mdebugread.c (new_psymtab): Use new.
9676 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9677 * dbxread.c (dbx_end_psymtab): Use new.
9678
9679 2020-01-26 Tom Tromey <tom@tromey.com>
9680
9681 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9682 allocate_psymtab. Update documentation.
9683 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9684 allocate_psymtab. Do not use new.
9685 (allocate_psymtab): Use new. Update.
9686
9687 2020-01-26 Tom Tromey <tom@tromey.com>
9688
9689 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9690 * psymtab.c (psym_print_stats): Update.
9691 * psympriv.h (struct partial_symtab) <readin,
9692 psymtabs_addrmap_supported, anonymous>: Now bool.
9693 * mdebugread.c (psymtab_to_symtab_1): Update.
9694 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9695 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9696 (process_full_comp_unit, process_full_type_unit): Update.
9697 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9698 * ctfread.c (psymtab_to_symtab): Update.
9699
9700 2020-01-26 Tom Tromey <tom@tromey.com>
9701
9702 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9703 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9704 * psymtab.c (psymtab_storage): Delete psymtabs.
9705 (psymtab_storage::allocate_psymtab): Use new.
9706 (psymtab_storage::discard_psymtab): Use delete.
9707 * psympriv.h (struct partial_symtab): Add constructor and
9708 initializers.
9709
9710 2020-01-26 Tom Tromey <tom@tromey.com>
9711
9712 * machoread.c: Do not include psympriv.h.
9713
9714 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9715
9716 * NEWS: Mention the new option and the set/show commands.
9717
9718 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9719
9720 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9721 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9722 (validate_exec_file): New variables, enums, functions.
9723 (exec_file_locate_attach, print_section_info): Style the filenames.
9724 (_initialize_exec): Install show_exec_file_mismatch_command and
9725 set_exec_file_mismatch_command.
9726 * gdbcore.h (validate_exec_file): Declare.
9727 * infcmd.c (attach_command): Call validate_exec_file.
9728 * remote.c ( remote_target::remote_add_inferior): Likewise.
9729
9730 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9731
9732 * frame.c (find_frame_sal): Move call to get_next_frame into more
9733 inner scope.
9734 * inline-frame.c (inilne_state) <inline_state>: Update argument
9735 types.
9736 (inilne_state) <skipped_symbol>: Rename to...
9737 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9738 (skip_inline_frames): Build vector of skipped symbols and use this
9739 to reate the inline_state.
9740 (inline_skipped_symbol): Add a comment and some assertions, fetch
9741 skipped symbol from the list.
9742
9743 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9744
9745 * buildsym.c (lte_is_less_than): Delete.
9746 (buildsym_compunit::end_symtab_with_blockvector): Create local
9747 lambda function to sort line table entries, and use
9748 std::stable_sort instead of std::sort.
9749 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9750 markers when looking for a previous line.
9751
9752 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9753
9754 * dwarf2read.c (lnp_state_machine::record_line): Include
9755 end_sequence parameter in debug print out. Record the line if we
9756 are at an end_sequence marker even if it's not the start of a
9757 statement.
9758 * symmisc.c (maintenance_print_one_line_table): Print end of
9759 sequence markers with 'END' not '0'.
9760
9761 2020-01-24 Pedro Alves <palves@redhat.com>
9762
9763 PR gdb/25410
9764 * thread.c (scoped_restore_current_thread::restore): Use
9765 switch_to_inferior_no_thread.
9766 * exec.c: Include "progspace-and-thread.h".
9767 (add_target_sections, remove_target_sections):
9768 scoped_restore_current_pspace_and_thread instead of
9769 scoped_restore_current_thread.
9770 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9771 and aspace to the inferior before calling clone_program_space.
9772 Remove stale comment.
9773
9774 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9775
9776 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9777 (arm_netbsd_nat_target::fetch_registers): ...this.
9778 (arm_nbsd_nat_target::store_registers): Rename to...
9779 (arm_netbsd_nat_target::store_registers): ...this.
9780
9781 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9782
9783 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9784 register_t.
9785
9786 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9787
9788 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9789 Update comment.
9790 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9791 Likewise.
9792 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9793 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9794 the correct replacement (iterate_over_regset_sections).
9795 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9796 Update comment.
9797
9798 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9799
9800 PR gdb/23718
9801 * gdb/python/python.c (execute_gdb_command): Call
9802 async_enable_stdin in catch block.
9803
9804 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9805
9806 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9807 SWITCH_THRU_ALL_UIS.
9808
9809 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9810
9811 PR tui/9765
9812 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9813 comment, add extra parameter, and update to store previous symbol
9814 when appropriate.
9815 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9816 add extra parameter.
9817 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9818 remove unneeded parameter, add try/catch around gdb_print_insn,
9819 rewrite to add items to asm_lines vector.
9820 (tui_find_backward_disassembly_start_address): New function.
9821 (tui_find_disassembly_address): Updated throughout.
9822 (tui_disasm_window::set_contents): Update for changes to
9823 tui_disassemble.
9824 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9825 number of lines to scroll.
9826
9827 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9828
9829 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9830 (SECT_OFF_DATA): Likewise.
9831 (SECT_OFF_RODATA): Likewise.
9832 (SECT_OFF_TEXT): Likewise.
9833 (SECT_OFF_BSS): Likewise.
9834 (struct objfile) <text_section_offset, data_section_offset>: New
9835 methods.
9836 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9837 objfile::text_section_offset.
9838 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9839 * coffread.c (coff_symtab_read): Likewise.
9840 (enter_linenos): Likewise.
9841 (process_coff_symbol): Likewise.
9842 * ctfread.c (get_objfile_text_range): Likewise.
9843 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9844 Use objfile::data_section_offset.
9845 * dwarf2-frame.c (execute_cfa_program): Use
9846 objfile::text_section_offset.
9847 (dwarf2_frame_find_fde): Likewise.
9848 * dwarf2read.c (create_addrmap_from_index): Likewise.
9849 (create_addrmap_from_aranges): Likewise.
9850 (dw2_find_pc_sect_compunit_symtab): Likewise.
9851 (process_psymtab_comp_unit_reader): Likewise.
9852 (add_partial_symbol): Likewise.
9853 (add_partial_subprogram): Likewise.
9854 (process_full_comp_unit): Likewise.
9855 (read_file_scope): Likewise.
9856 (read_func_scope): Likewise.
9857 (read_lexical_block_scope): Likewise.
9858 (read_call_site_scope): Likewise.
9859 (dwarf2_rnglists_process): Likewise.
9860 (dwarf2_ranges_process): Likewise.
9861 (dwarf2_ranges_read): Likewise.
9862 (dwarf_decode_lines_1): Likewise.
9863 (new_symbol): Likewise.
9864 (dwarf2_fetch_die_loc_sect_off): Likewise.
9865 (dwarf2_per_cu_text_offset): Likewise.
9866 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9867 * hppa-tdep.c (read_unwind_info): Likewise.
9868 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9869 * psympriv.h (struct partial_symtab): Likewise.
9870 * psymtab.c (find_pc_sect_psymtab): Likewise.
9871 * solib-svr4.c (enable_break): Likewise.
9872 * stap-probe.c (relocate_address): Use
9873 objfile::data_section_offset.
9874 * xcoffread.c (enter_line_range): Use
9875 objfile::text_section_offset.
9876 (read_xcoff_symtab): Likewise.
9877
9878 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9879
9880 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9881 declaration to narrower scopes.
9882
9883 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9884
9885 * darwin-nat.h (struct darwin_exception_msg, enum
9886 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9887 Move up.
9888 (class darwin_nat_target) <wait_1, check_new_threads,
9889 decode_exception_message, decode_message, stop_inferior,
9890 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9891 * darwin-nat.c (darwin_check_new_threads): Rename to...
9892 (darwin_nat_target::check_new_threads): ... this.
9893 (darwin_suspend_inferior_it): Remove.
9894 (darwin_decode_exception_message): Rename to...
9895 (darwin_nat_target::decode_exception_message): ... this.
9896 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9897 (darwin_decode_message): Rename to...
9898 (darwin_nat_target::decode_message): ... this.
9899 (cancel_breakpoint): Rename to...
9900 (darwin_nat_target::cancel_breakpoint): ... this.
9901 (darwin_wait): Rename to...
9902 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9903 instead of iterate_over_inferiors.
9904 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9905 (darwin_stop_inferior): Rename to...
9906 (darwin_nat_target::stop_inferior): ... this.
9907 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9908 (darwin_init_thread_list): Rename to...
9909 (darwin_nat_target::init_thread_list): ... this.
9910 (darwin_ptrace_him): Rename to...
9911 (darwin_nat_target::ptrace_him): ... this.
9912 (darwin_nat_target::create_inferior): Pass lambda function to
9913 fork_inferior.
9914 (darwin_nat_target::detach): Call stop_inferior instead of
9915 darwin_stop_inferior.
9916 * fork-inferior.h (fork_inferior): Change init_trace_fun
9917 parameter to gdb::function_view.
9918 * fork-inferior.c (fork_inferior): Likewise.
9919
9920 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9921
9922 * i386-cygwin-tdep.c (core_process_module_section): Update.
9923 * windows-nat.c (struct lm_info_windows): Add text_offset.
9924 (windows_xfer_shared_libraries): Update.
9925 * windows-tdep.c (windows_xfer_shared_library):
9926 Add text_offset_cached argument.
9927 * windows-tdep.h (windows_xfer_shared_library): Update.
9928
9929 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9930
9931 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9932
9933 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9934
9935 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9936 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9937 replace with range-based for.
9938 (gdbsim_interrupt_inferior): Remove.
9939 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9940 with a range-based for. Inline code from
9941 gdbsim_interrupt_inferior.
9942
9943 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9944
9945 * infrun.c (proceed): Fix indentation.
9946
9947 2020-01-21 Tom Tromey <tromey@adacore.com>
9948
9949 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9950 * python/python.c (python_extension_ops): Update.
9951 (gdbpy_colorize): New function.
9952 * python/lib/gdb/__init__.py (colorize): New function.
9953 * extension.h (ext_lang_colorize): Declare.
9954 * extension.c (ext_lang_colorize): New function.
9955 * extension-priv.h (struct extension_language_ops) <colorize>: New
9956 member.
9957 * cli/cli-style.c (_initialize_cli_style): Update help text.
9958
9959 2020-01-21 Luis Machado <luis.machado@linaro.org>
9960
9961 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9962 <cond>: Change type to bool.
9963 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9964 (aarch64_displaced_step_cb): Likewise.
9965 (aarch64_displaced_step_tb): Likewise.
9966
9967 2020-01-21 Luis Machado <luis.machado@linaro.org>
9968
9969 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9970 output.
9971
9972 2020-01-21 Luis Machado <luis.machado@linaro.org>
9973
9974 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9975 <pc_adjust>: Adjust the documentation.
9976 (aarch64_displaced_step_fixup): Check if PC really moved before
9977 adjusting it.
9978
9979 2020-01-19 Tom Tromey <tom@tromey.com>
9980
9981 * disasm.c (~gdb_disassembler): New destructor.
9982 (gdb_buffered_insn_length): Call disassemble_free_target.
9983 * disasm.h (class gdb_disassembler): Declare destructor. Use
9984 DISABLE_COPY_AND_ASSIGN.
9985
9986 2020-01-19 Tom Tromey <tom@tromey.com>
9987
9988 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9989 (die_reader_func_ftype): Remove.
9990 (cutu_reader): New class.
9991 (dw2_get_file_names_reader): Remove "data" parameter.
9992 (dw2_get_file_names): Use cutu_reader.
9993 (create_debug_type_hash_table): Update.
9994 (read_cutu_die_from_dwo): Update comment.
9995 (lookup_dwo_unit): Add dwo_name parameter.
9996 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9997 die_reader_func_ftype and data parameters.
9998 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9999 Remove die_reader_func_ftype and data parameters.
10000 (~cutu_reader): New; from init_cutu_and_read_dies.
10001 (cutu_reader::cutu_reader): Rename from
10002 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10003 and data parameters.
10004 (init_cutu_and_read_dies_simple): Remove.
10005 (struct process_psymtab_comp_unit_data): Remove.
10006 (process_psymtab_comp_unit_reader): Remove data parameter; add
10007 want_partial_unit and pretend_language parameters.
10008 (process_psymtab_comp_unit): Use cutu_reader.
10009 (build_type_psymtabs_reader): Remove data parameter.
10010 (build_type_psymtabs_1): Use cutu_reader.
10011 (process_skeletonless_type_unit): Likewise.
10012 (load_partial_comp_unit_reader): Remove.
10013 (load_partial_comp_unit): Use cutu_reader.
10014 (load_full_comp_unit_reader): Remove.
10015 (load_full_comp_unit): Use cutu_reader.
10016 (struct create_dwo_cu_data): Remove.
10017 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10018 dwo_unit parameters.
10019 (create_cus_hash_table): Use cutu_reader.
10020 (struct dwarf2_read_addr_index_data): Remove.
10021 (dwarf2_read_addr_index_reader): Remove.
10022 (dwarf2_read_addr_index): Use cutu_reader.
10023 (read_signatured_type_reader): Remove.
10024 (read_signatured_type): Use cutu_reader.
10025
10026 2020-01-19 Tom Tromey <tom@tromey.com>
10027
10028 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10029 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10030 (tui_wrefresh): Declare.
10031 * tui/tui-wingeneral.c (suppress_output): New global.
10032 (tui_suppress_output, ~tui_suppress_output): New constructor and
10033 destructor.
10034 (tui_wrefresh): New function.
10035 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10036 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10037 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10038 method.
10039 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10040 tui_wrefresh.
10041 (tui_data_window::no_refresh): New method.
10042 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10043 (tui_reg_command): Use tui_suppress_output
10044 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10045 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10046 method.
10047 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10048
10049 2020-01-19 Tom Tromey <tom@tromey.com>
10050
10051 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10052 Handle case where symtab is null.
10053
10054 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10055
10056 * linux-fork.c (one_fork_p): Simplify.
10057
10058 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10059
10060 * top.c (struct qt_args): Remove.
10061 (kill_or_detach): Change return type to void, replace `void *`
10062 parameter with a proper one.
10063 (print_inferior_quit_action): Likewise.
10064 (quit_confirm): Use range-based for loop to iterate over inferiors.
10065 (quit_force): Likewise.
10066
10067 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10068
10069 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10070 `void *` parameter with proper parameters.
10071 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10072 (print_one_inferior): Change return type to void, replace `void *`
10073 parameter with proper parameters.
10074 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10075 inferiors.
10076 (get_other_inferior): Remove.
10077 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10078 inferiors.
10079
10080 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10081
10082 * mi/mi-interp.c (report_initial_inferior): Remove.
10083 (mi_interp::init): Use range-based for to iterate over inferiors.
10084
10085 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10086
10087 * python/py-inferior.c (build_inferior_list): Remove.
10088 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10089
10090 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10091
10092 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10093 (btrace_stitch_trace): Likewise.
10094 * charset.c (intermediate_encoding): Likewise (vaild).
10095 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10096 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10097 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10098
10099 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10100
10101 * windows-tdep.c (windows_get_tlb_type):
10102 Add rtl_user_process_parameters type.
10103
10104 2020-01-16 Pedro Alves <palves@redhat.com>
10105 Norbert Lange <nolange79@gmail.com>
10106
10107 PR build/24805
10108 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10109 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10110 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10111 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10112 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10113 (ps_plog): Redeclare exported functions with default visibility.
10114
10115 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10116
10117 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10118 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10119
10120 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10121
10122 * infcmd.c (post_create_inferior): Use get_thread_regcache
10123 instead of get_current_regcache.
10124
10125 2020-01-14 Tom Tromey <tom@tromey.com>
10126
10127 PR symtab/12535:
10128 * python/python.c (gdbpy_decode_line): Treat empty string the same
10129 as no argument.
10130
10131 2020-01-14 Tom Tromey <tom@tromey.com>
10132
10133 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10134
10135 2020-01-14 Tom Tromey <tom@tromey.com>
10136
10137 * nat/linux-btrace.c: Don't include <config.h>.
10138 * nat/linux-ptrace.c: Don't include <config.h>.
10139 * nat/x86-linux-dregs.c: Don't include <config.h>.
10140
10141 2020-01-14 Tom Tromey <tom@tromey.com>
10142
10143 * configure: Rebuild.
10144 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10145
10146 2020-01-14 Tom Tromey <tom@tromey.com>
10147
10148 * nat/x86-linux-dregs.c: Include configh.h.
10149 * nat/linux-ptrace.c: Include configh.h.
10150 * nat/linux-btrace.c: Include configh.h.
10151 * defs.h: Include config.h, bfd.h.
10152 * configure.ac: Don't source common.host.
10153 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10154 * configure: Rebuild.
10155 * acinclude.m4: Update path.
10156 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10157 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10158 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10159 (CLIBS): Add LIBSUPPORT.
10160 (CDEPS): Likewise.
10161 (COMMON_SFILES): Remove gdbsupport files.
10162 (HFILES_NO_SRCDIR): Likewise.
10163 (stamp-version): Update path to create-version.sh.
10164 (ALLDEPFILES): Remove gdbsupport files.
10165
10166 2020-01-14 Tom Tromey <tom@tromey.com>
10167
10168 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10169 USE_WIN32API when needed.
10170 * configure.ac (USE_WIN32API): Don't define.
10171 (WIN32LIBS): Use WIN32APILIBS.
10172 * configure: Rebuild.
10173
10174 2020-01-14 Tom Tromey <tom@tromey.com>
10175
10176 * configure: Rebuild.
10177 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10178
10179 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10180
10181 * skip.c (skip_function_command): Make skip w/o arguments use the
10182 name of the inlined function if pc is inside any inlined function.
10183
10184 2020-01-14 Luis Machado <luis.machado@linaro.org>
10185
10186 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10187 * infrun.c (resume_1): Likewise.
10188 (handle_inferior_event): Remove stale comment.
10189 * linux-nat.c (linux_nat_target::resume): Update comments.
10190 (save_stop_reason): Likewise.
10191 (linux_nat_filter_event): Likewise.
10192 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10193
10194 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10195
10196 * elfread.c (record_minimal_symbol): Set section index to 0 for
10197 non-allocatable sections.
10198
10199
10200 2020-01-13 Ali Tamur <tamur@google.com>
10201
10202 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10203 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10204 to gdb::optional. Update comments.
10205 (dwo_file): Update comments.
10206 (read_attribute): Update API to take an additional out parameter,
10207 need_reprocess. This is used to mark attributes that need other
10208 attributes (e.g. str_offsets_base) for correct computation which may not
10209 have been read yet.
10210 (read_attribute_reprocess): New function declaration.
10211 (read_addr_index): Likewise.
10212 (read_dwo_str_index): Likewise.
10213 (read_stub_str_index): Likewise.
10214 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10215 (lookup_addr_base): New function definition.
10216 (lookup_ranges_base): Likewise.
10217 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10218 lookup_ranges_base.
10219 (init_cutu_and_read_dies): Update comments.
10220 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10221 unit. This is used to inherit parent's str_offsets_base and addr_base.
10222 Update comments.
10223 (init_cutu_and_read_dies_simple): Reflect API changes.
10224 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10225 (create_cus_hash_table): Change API to take parent compile unit.
10226 Reflect API changes.
10227 (open_and_init_dwo_file): Reflect API changes.
10228 (dwarf2_get_pc_bounds): Update comments.
10229 (dwarf2_record_block_ranges): Likewise.
10230 (read_full_die_1): Change implementation to reprocess attributes that
10231 need str_offsets_base and addr_base.
10232 (partial_die_info::read): Likewise.
10233 (read_attribute_reprocess): New function definition.
10234 (read_attribute_value): Change API to take an additional out parameter,
10235 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10236 when a non-dwo compile unit has index based attributes.
10237 (read_attribute): Reflect API changes.
10238 (read_addr_index_1): Reflect API changes. Update comments.
10239 (dwarf2_read_addr_index_data): Reflect API changes.
10240 (dwarf2_read_addr_index): Likewise.
10241 (read_str_index): Change API and implementation. This becomes a helper
10242 to be used by the new string index related methods. Update error
10243 message and comments.
10244 (read_dwo_str_index): New function definition.
10245 (read_stub_str_index): Likewise.
10246 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10247 * symfile.h (dwarf2_debug_sections): Likewise.
10248 * xcoffread.c (dwarf2_debug_sections): Likewise.
10249
10250 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10251
10252 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10253 core_reg_sect type to gdb_byte *.
10254 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10255 * cris-tdep.c (fetch_core_registers): Likewise.
10256 * corelow.c (core_target::get_core_register_section): Change
10257 type of `contents` to gdb::byte_vector.
10258
10259 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10260
10261 * tui/tui-wingeneral.c (box_win): Position the title in the center
10262 of the border.
10263
10264 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10265
10266 * corelow.c (core_target::get_core_register_section): Use
10267 std::vector instead of alloca.
10268
10269 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10270
10271 * warning.m4: Add -Wmissing-declarations to build_warnings.
10272 * configure: Re-generate.
10273
10274 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10275
10276 * python/python.c (init__gdb_module): Add declaration.
10277
10278 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10279
10280 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10281 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10282 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10283 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10284 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10285 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10286 * ada-exp.y (_initialize_ada_exp): Add declaration.
10287 * ada-lang.c (_initialize_ada_language): Add declaration.
10288 * ada-tasks.c (_initialize_tasks): Add declaration.
10289 * agent.c (_initialize_agent): Add declaration.
10290 * aix-thread.c (_initialize_aix_thread): Add declaration.
10291 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10292 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10293 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10294 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10295 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10296 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10297 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10298 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10299 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10300 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10301 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10302 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10303 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10304 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10305 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10306 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10307 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10308 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10309 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10310 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10311 * annotate.c (_initialize_annotate): Add declaration.
10312 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10313 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10314 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10315 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10316 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10317 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10318 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10319 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10320 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10321 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10322 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10323 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10324 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10325 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10326 * auto-load.c (_initialize_auto_load): Add declaration.
10327 * auxv.c (_initialize_auxv): Add declaration.
10328 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10329 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10330 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10331 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10332 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10333 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10334 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10335 * breakpoint.c (_initialize_breakpoint): Add declaration.
10336 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10337 * btrace.c (_initialize_btrace): Add declaration.
10338 * charset.c (_initialize_charset): Add declaration.
10339 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10340 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10341 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10342 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10343 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10344 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10345 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10346 * coffread.c (_initialize_coffread): Add declaration.
10347 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10348 * compile/compile.c (_initialize_compile): Add declaration.
10349 * complaints.c (_initialize_complaints): Add declaration.
10350 * completer.c (_initialize_completer): Add declaration.
10351 * copying.c (_initialize_copying): Add declaration.
10352 * corefile.c (_initialize_core): Add declaration.
10353 * corelow.c (_initialize_corelow): Add declaration.
10354 * cp-abi.c (_initialize_cp_abi): Add declaration.
10355 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10356 * cp-support.c (_initialize_cp_support): Add declaration.
10357 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10358 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10359 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10360 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10361 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10362 * ctfread.c (_initialize_ctfread): Add declaration.
10363 * d-lang.c (_initialize_d_language): Add declaration.
10364 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10365 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10366 * dbxread.c (_initialize_dbxread): Add declaration.
10367 * dcache.c (_initialize_dcache): Add declaration.
10368 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10369 * disasm.c (_initialize_disasm): Add declaration.
10370 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10371 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10372 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10373 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10374 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10375 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10376 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10377 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10378 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10379 * elfread.c (_initialize_elfread): Add declaration.
10380 * exec.c (_initialize_exec): Add declaration.
10381 * extension.c (_initialize_extension): Add declaration.
10382 * f-lang.c (_initialize_f_language): Add declaration.
10383 * f-valprint.c (_initialize_f_valprint): Add declaration.
10384 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10385 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10386 * filesystem.c (_initialize_filesystem): Add declaration.
10387 * findcmd.c (_initialize_mem_search): Add declaration.
10388 * findvar.c (_initialize_findvar): Add declaration.
10389 * fork-child.c (_initialize_fork_child): Add declaration.
10390 * frame-base.c (_initialize_frame_base): Add declaration.
10391 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10392 * frame.c (_initialize_frame): Add declaration.
10393 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10394 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10395 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10396 * gcore.c (_initialize_gcore): Add declaration.
10397 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10398 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10399 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10400 * gdbarch.c (_initialize_gdbarch): Add declaration.
10401 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10402 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10403 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10404 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10405 * go-lang.c (_initialize_go_language): Add declaration.
10406 * go32-nat.c (_initialize_go32_nat): Add declaration.
10407 * guile/guile.c (_initialize_guile): Add declaration.
10408 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10409 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10410 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10411 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10412 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10413 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10414 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10415 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10416 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10417 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10418 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10419 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10420 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10421 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10422 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10423 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10424 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10425 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10426 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10427 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10428 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10429 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10430 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10431 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10432 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10433 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10434 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10435 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10436 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10437 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10438 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10439 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10440 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10441 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10442 * infcall.c (_initialize_infcall): Add declaration.
10443 * infcmd.c (_initialize_infcmd): Add declaration.
10444 * inflow.c (_initialize_inflow): Add declaration.
10445 * infrun.c (_initialize_infrun): Add declaration.
10446 * interps.c (_initialize_interpreter): Add declaration.
10447 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10448 * jit.c (_initialize_jit): Add declaration.
10449 * language.c (_initialize_language): Add declaration.
10450 * linux-fork.c (_initialize_linux_fork): Add declaration.
10451 * linux-nat.c (_initialize_linux_nat): Add declaration.
10452 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10453 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10454 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10455 * m2-lang.c (_initialize_m2_language): Add declaration.
10456 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10457 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10458 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10459 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10460 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10461 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10462 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10463 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10464 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10465 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10466 * machoread.c (_initialize_machoread): Add declaration.
10467 * macrocmd.c (_initialize_macrocmd): Add declaration.
10468 * macroscope.c (_initialize_macroscope): Add declaration.
10469 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10470 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10471 * maint.c (_initialize_maint_cmds): Add declaration.
10472 * mdebugread.c (_initialize_mdebugread): Add declaration.
10473 * memattr.c (_initialize_mem): Add declaration.
10474 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10475 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10476 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10477 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10478 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10479 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10480 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10481 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10482 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10483 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10484 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10485 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10486 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10487 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10488 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10489 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10490 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10491 * mipsread.c (_initialize_mipsread): Add declaration.
10492 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10493 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10494 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10495 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10496 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10497 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10498 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10499 * nto-procfs.c (_initialize_procfs): Add declaration.
10500 * objc-lang.c (_initialize_objc_language): Add declaration.
10501 * observable.c (_initialize_observer): Add declaration.
10502 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10503 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10504 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10505 * osabi.c (_initialize_gdb_osabi): Add declaration.
10506 * osdata.c (_initialize_osdata): Add declaration.
10507 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10508 * parse.c (_initialize_parse): Add declaration.
10509 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10510 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10511 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10512 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10513 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10514 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10515 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10516 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10517 * printcmd.c (_initialize_printcmd): Add declaration.
10518 * probe.c (_initialize_probe): Add declaration.
10519 * proc-api.c (_initialize_proc_api): Add declaration.
10520 * proc-events.c (_initialize_proc_events): Add declaration.
10521 * proc-service.c (_initialize_proc_service): Add declaration.
10522 * procfs.c (_initialize_procfs): Add declaration.
10523 * producer.c (_initialize_producer): Add declaration.
10524 * psymtab.c (_initialize_psymtab): Add declaration.
10525 * python/python.c (_initialize_python): Add declaration.
10526 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10527 * record-btrace.c (_initialize_record_btrace): Add declaration.
10528 * record-full.c (_initialize_record_full): Add declaration.
10529 * record.c (_initialize_record): Add declaration.
10530 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10531 * regcache.c (_initialize_regcache): Add declaration.
10532 * reggroups.c (_initialize_reggroup): Add declaration.
10533 * remote-notif.c (_initialize_notif): Add declaration.
10534 * remote-sim.c (_initialize_remote_sim): Add declaration.
10535 * remote.c (_initialize_remote): Add declaration.
10536 * reverse.c (_initialize_reverse): Add declaration.
10537 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10538 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10539 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10540 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10541 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10542 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10543 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10544 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10545 Add declaration.
10546 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10547 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10548 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10549 * rust-exp.y (_initialize_rust_exp): Add declaration.
10550 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10551 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10552 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10553 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10554 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10555 * score-tdep.c (_initialize_score_tdep): Add declaration.
10556 * ser-go32.c (_initialize_ser_dos): Add declaration.
10557 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10558 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10559 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10560 * ser-uds.c (_initialize_ser_socket): Add declaration.
10561 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10562 * serial.c (_initialize_serial): Add declaration.
10563 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10564 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10565 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10566 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10567 * skip.c (_initialize_step_skip): Add declaration.
10568 * sol-thread.c (_initialize_sol_thread): Add declaration.
10569 * solib-aix.c (_initialize_solib_aix): Add declaration.
10570 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10571 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10572 * solib-frv.c (_initialize_frv_solib): Add declaration.
10573 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10574 * solib-target.c (_initialize_solib_target): Add declaration.
10575 * solib.c (_initialize_solib): Add declaration.
10576 * source-cache.c (_initialize_source_cache): Add declaration.
10577 * source.c (_initialize_source): Add declaration.
10578 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10579 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10580 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10581 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10582 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10583 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10584 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10585 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10586 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10587 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10588 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10589 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10590 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10591 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10592 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10593 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10594 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10595 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10596 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10597 * stabsread.c (_initialize_stabsread): Add declaration.
10598 * stack.c (_initialize_stack): Add declaration.
10599 * stap-probe.c (_initialize_stap_probe): Add declaration.
10600 * std-regs.c (_initialize_frame_reg): Add declaration.
10601 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10602 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10603 * symfile.c (_initialize_symfile): Add declaration.
10604 * symmisc.c (_initialize_symmisc): Add declaration.
10605 * symtab.c (_initialize_symtab): Add declaration.
10606 * target.c (_initialize_target): Add declaration.
10607 * target-connection.c (_initialize_target_connection): Add
10608 declaration.
10609 * target-dcache.c (_initialize_target_dcache): Add declaration.
10610 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10611 * thread.c (_initialize_thread): Add declaration.
10612 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10613 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10614 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10615 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10616 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10617 * tracectf.c (_initialize_ctf): Add declaration.
10618 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10619 * tracefile.c (_initialize_tracefile): Add declaration.
10620 * tracepoint.c (_initialize_tracepoint): Add declaration.
10621 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10622 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10623 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10624 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10625 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10626 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10627 * tui/tui.c (_initialize_tui): Add declaration.
10628 * typeprint.c (_initialize_typeprint): Add declaration.
10629 * ui-style.c (_initialize_ui_style): Add declaration.
10630 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10631 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10632 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10633 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10634 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10635 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10636 * unittests/filtered_iterator-selftests.c
10637 (_initialize_filtered_iterator_selftests): Add declaration.
10638 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10639 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10640 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10641 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10642 * unittests/main-thread-selftests.c
10643 (_initialize_main_thread_selftests): Add declaration.
10644 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10645 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10646 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10647 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10648 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10649 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10650 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10651 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10652 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10653 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10654 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10655 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10656 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10657 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10658 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10659 declaration.
10660 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10661 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10662 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10663 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10664 * user-regs.c (_initialize_user_regs): Add declaration.
10665 * utils.c (_initialize_utils): Add declaration.
10666 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10667 * valops.c (_initialize_valops): Add declaration.
10668 * valprint.c (_initialize_valprint): Add declaration.
10669 * value.c (_initialize_values): Add declaration.
10670 * varobj.c (_initialize_varobj): Add declaration.
10671 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10672 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10673 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10674 * windows-nat.c (_initialize_windows_nat): Add declaration.
10675 (_initialize_check_for_gdb_ini): Add declaration.
10676 (_initialize_loadable): Add declaration.
10677 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10678 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10679 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10680 * xcoffread.c (_initialize_xcoffread): Add declaration.
10681 * xml-support.c (_initialize_xml_support): Add declaration.
10682 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10683 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10684 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10685 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10686
10687 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10688
10689 * regformats/regdat.sh: Generate declaration for init function.
10690
10691 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10692
10693 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10694 up.
10695 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10696 close_one_inferior>: New methods.
10697 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10698 pass down target to find_inferior_pid.
10699 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10700 Pass down target to find_inferior_ptid.
10701 (gdbsim_target::create_inferior): Pass down target to
10702 add_thread_silent.
10703 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10704 target down to find_inferior_ptid and switch_to_thread.
10705 (gdbsim_target::close): Update to call close_one_inferior.
10706 (struct resume_data): Remove.
10707 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10708 directly, rather than through a void pointer.
10709 (gdbsim_target::resume): Update to call resume_one_inferior.
10710
10711 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10712
10713 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10714
10715 2020-01-12 Pedro Alves <palves@redhat.com>
10716
10717 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10718 directly for the current inferior instead of
10719 discard_all_inferiors.
10720 (discard_all_inferiors): Delete.
10721
10722 2020-01-11 Tom Tromey <tom@tromey.com>
10723
10724 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10725 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10726 deprecated_safe_get_selected_frame.
10727
10728 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10729
10730 * inferior.c (print_inferior): Switch inferior before printing it.
10731
10732 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10733 Pedro Alves <palves@redhat.com>
10734
10735 * progspace-and-thread.c (switch_to_program_space_and_thread):
10736 Assert there's an inferior for PSPACE. Use
10737 switch_to_inferior_no_thread to switch the inferior too.
10738 * progspace.c (program_space::~program_space): Call
10739 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10740 (program_space::free_all_objfiles): Don't call clear_symtab_users
10741 here.
10742 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10743
10744 2020-01-10 Pedro Alves <palves@redhat.com>
10745
10746 * NEWS: Mention multi-target debugging, "info connections", and
10747 "add-inferior -no-connection".
10748
10749 2020-01-10 Pedro Alves <palves@redhat.com>
10750
10751 * infrun.c: Include "target-connection.h".
10752 (check_multi_target_resumption): New.
10753 (proceed): Call it.
10754 * target-connection.c (make_target_connection_string): Make
10755 extern.
10756 * target-connection.h (make_target_connection_string): Declare.
10757
10758 2020-01-10 Pedro Alves <palves@redhat.com>
10759
10760 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10761 * inferior.c (uiout_field_connection): New function.
10762 (print_inferior): Add new "connection-id" column.
10763 (add_inferior_command): Show connection number/string of added
10764 inferior.
10765 * process-stratum-target.h
10766 (process_stratum_target::connection_string): New virtual method.
10767 (process_stratum_target::connection_number): New field.
10768 * remote.c (remote_target::connection_string): New override.
10769 * target-connection.c: New file.
10770 * target-connection.h: New file.
10771 * target.c (decref_target): Remove process_stratum targets from
10772 the connection list.
10773 (target_stack::push): Add process_stratum targets to the
10774 connection list.
10775
10776 2020-01-10 Pedro Alves <palves@redhat.com>
10777
10778 Revert:
10779 2016-04-12 Pedro Alves <palves@redhat.com>
10780 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10781 Remove references to name.
10782 * serial.h (struct serial) <name>: Delete.
10783
10784 2020-01-10 Pedro Alves <palves@redhat.com>
10785
10786 * gdbarch-selftests.c (register_to_value_test): Remove "target
10787 already pushed" check.
10788
10789 2020-01-10 Pedro Alves <palves@redhat.com>
10790 John Baldwin <jhb@FreeBSD.org>
10791
10792 * aarch64-linux-nat.c
10793 (aarch64_linux_nat_target::thread_architecture): Adjust.
10794 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10795 (task_command_1): Likewise.
10796 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10797 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10798 (aix_thread_target::store_registers)
10799 (aix_thread_target::thread_alive): Adjust.
10800 * amd64-fbsd-tdep.c: Include "inferior.h".
10801 (amd64fbsd_get_thread_local_address): Pass down target.
10802 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10803 thread's gdbarch instead of target_gdbarch.
10804 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10805 get_last_target_status.
10806 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10807 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10808 inferiors.
10809 (update_inserted_breakpoint_locations): Skip if inferiors with no
10810 execution.
10811 (update_global_location_list): When handling moribund locations,
10812 find representative inferior for location's pspace, and use thread
10813 count of its process_stratum target.
10814 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10815 * bsd-uthread.c (bsd_uthread_target::wait): Use
10816 as_process_stratum_target and adjust thread_change_ptid and
10817 add_thread calls.
10818 (bsd_uthread_target::update_thread_list): Use
10819 as_process_stratum_target and adjust find_thread_ptid,
10820 thread_change_ptid and add_thread calls.
10821 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10822 find_thread_ptid call.
10823 * corelow.c (add_to_thread_list): Adjust add_thread call.
10824 (core_target_open): Adjust add_thread_silent and thread_count
10825 calls.
10826 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10827 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10828 * event-top.c (async_disconnect): Pop targets from all inferiors.
10829 * exec.c (add_target_sections): Push exec target on all inferiors
10830 sharing the program space.
10831 (remove_target_sections): Remove the exec target from all
10832 inferiors sharing the program space.
10833 (exec_on_vfork): New.
10834 * exec.h (exec_on_vfork): Declare.
10835 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10836 Pass it down.
10837 (fbsd_nat_target::update_thread_list): Adjust.
10838 (fbsd_nat_target::resume): Adjust.
10839 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10840 down.
10841 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10842 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10843 get_thread_arch_regcache call.
10844 * fork-child.c (gdb_startup_inferior): Pass target down to
10845 startup_inferior and set_executing.
10846 * gdbthread.h (struct process_stratum_target): Forward declare.
10847 (add_thread, add_thread_silent, add_thread_with_info)
10848 (in_thread_list): Add process_stratum_target parameter.
10849 (find_thread_ptid(inferior*, ptid_t)): New overload.
10850 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10851 parameter.
10852 (all_threads()): Delete overload.
10853 (all_threads, all_non_exited_threads): Add process_stratum_target
10854 parameter.
10855 (all_threads_safe): Use brace initialization.
10856 (thread_count): Add process_stratum_target parameter.
10857 (set_resumed, set_running, set_stop_requested, set_executing)
10858 (threads_are_executing, finish_thread_state): Add
10859 process_stratum_target parameter.
10860 (switch_to_thread): Use is_current_thread.
10861 * i386-fbsd-tdep.c: Include "inferior.h".
10862 (i386fbsd_get_thread_local_address): Pass down target.
10863 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10864 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10865 have_inferiors check.
10866 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10867 (inf_ptrace_target::attach): Adjust.
10868 * infcall.c (run_inferior_call): Adjust.
10869 * infcmd.c (run_command_1): Pass target to
10870 scoped_finish_thread_state.
10871 (proceed_thread_callback): Skip inferiors with no execution.
10872 (continue_command): Rename 'all_threads' local to avoid hiding
10873 'all_threads' function. Adjust get_last_target_status call.
10874 (prepare_one_step): Adjust set_running call.
10875 (signal_command): Use user_visible_resume_target. Compare thread
10876 pointers instead of inferior_ptid.
10877 (info_program_command): Adjust to pass down target.
10878 (attach_command): Mark target's 'thread_executing' flag.
10879 (stop_current_target_threads_ns): New, factored out from ...
10880 (interrupt_target_1): ... this. Switch inferior before making
10881 target calls.
10882 * inferior-iter.h
10883 (struct all_inferiors_iterator, struct all_inferiors_range)
10884 (struct all_inferiors_safe_range)
10885 (struct all_non_exited_inferiors_range): Filter on
10886 process_stratum_target too. Remove explicit.
10887 * inferior.c (inferior::inferior): Push dummy target on target
10888 stack.
10889 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10890 Add process_stratum_target parameter, and pass it down.
10891 (have_live_inferiors): Adjust.
10892 (switch_to_inferior_and_push_target): New.
10893 (add_inferior_command, clone_inferior_command): Handle
10894 "-no-connection" parameter. Use
10895 switch_to_inferior_and_push_target.
10896 (_initialize_inferior): Mention "-no-connection" option in
10897 the help of "add-inferior" and "clone-inferior" commands.
10898 * inferior.h: Include "process-stratum-target.h".
10899 (interrupt_target_1): Use bool.
10900 (struct inferior) <push_target, unpush_target, target_is_pushed,
10901 find_target_beneath, top_target, process_target, target_at,
10902 m_stack>: New.
10903 (discard_all_inferiors): Delete.
10904 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10905 (all_inferiors, all_non_exited_inferiors): Add
10906 process_stratum_target parameter.
10907 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10908 (target_last_proc_target): New global.
10909 (follow_fork_inferior): Push target on new inferior. Pass target
10910 to add_thread_silent. Call exec_on_vfork. Handle target's
10911 reference count.
10912 (follow_fork): Adjust get_last_target_status call. Also consider
10913 target.
10914 (follow_exec): Push target on new inferior.
10915 (struct execution_control_state) <target>: New field.
10916 (user_visible_resume_target): New.
10917 (do_target_resume): Call target_async.
10918 (resume_1): Set target's threads_executing flag. Consider resume
10919 target.
10920 (commit_resume_all_targets): New.
10921 (proceed): Also consider resume target. Skip threads of inferiors
10922 with no execution. Commit resumtion in all targets.
10923 (start_remote): Pass current inferior to wait_for_inferior.
10924 (infrun_thread_stop_requested): Consider target as well. Pass
10925 thread_info pointer to clear_inline_frame_state instead of ptid.
10926 (infrun_thread_thread_exit): Consider target as well.
10927 (random_pending_event_thread): New inferior parameter. Use it.
10928 (do_target_wait): Rename to ...
10929 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10930 down.
10931 (threads_are_resumed_pending_p, do_target_wait): New.
10932 (prepare_for_detach): Adjust calls.
10933 (wait_for_inferior): New inferior parameter. Handle it. Use
10934 do_target_wait_1 instead of do_target_wait.
10935 (fetch_inferior_event): Adjust. Switch to representative
10936 inferior. Pass target down.
10937 (set_last_target_status): Add process_stratum_target parameter.
10938 Save target in global.
10939 (get_last_target_status): Add process_stratum_target parameter and
10940 handle it.
10941 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10942 (context_switch): Check inferior_ptid == null_ptid before calling
10943 inferior_thread().
10944 (get_inferior_stop_soon): Pass down target.
10945 (wait_one): Rename to ...
10946 (poll_one_curr_target): ... this.
10947 (struct wait_one_event): New.
10948 (wait_one): New.
10949 (stop_all_threads): Adjust.
10950 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10951 event's target.
10952 (switch_back_to_stepped_thread): Also consider target.
10953 (print_stop_event): Update.
10954 (normal_stop): Update. Also consider the resume target.
10955 * infrun.h (wait_for_inferior): Remove declaration.
10956 (user_visible_resume_target): New declaration.
10957 (get_last_target_status, set_last_target_status): New
10958 process_stratum_target parameter.
10959 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10960 process_stratum_target parameter, and use it.
10961 (clear_inline_frame_state (thread_info*)): New.
10962 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10963 process_stratum_target parameter.
10964 (clear_inline_frame_state (thread_info*)): Declare.
10965 * linux-fork.c (delete_checkpoint_command): Pass target down to
10966 find_thread_ptid.
10967 (checkpoint_command): Adjust.
10968 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10969 instead of just tweaking inferior_ptid.
10970 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10971 (exit_lwp): Pass target down to find_thread_ptid.
10972 (attach_proc_task_lwp_callback): Pass target down to
10973 add_thread/set_running/set_executing.
10974 (linux_nat_target::attach): Pass target down to
10975 thread_change_ptid.
10976 (get_detach_signal): Pass target down to find_thread_ptid.
10977 Consider last target status's target.
10978 (linux_resume_one_lwp_throw, resume_lwp)
10979 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10980 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10981 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10982 (linux_nat_target::async_wait_fd): New.
10983 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10984 target down.
10985 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10986 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10987 * linux-thread-db.c (struct thread_db_info::process_target): New
10988 field.
10989 (add_thread_db_info): Save target.
10990 (get_thread_db_info): New process_stratum_target parameter. Also
10991 match target.
10992 (delete_thread_db_info): New process_stratum_target parameter.
10993 Also match target.
10994 (thread_from_lwp): Adjust to pass down target.
10995 (thread_db_notice_clone): Pass down target.
10996 (check_thread_db_callback): Pass down target.
10997 (try_thread_db_load_1): Always push the thread_db target.
10998 (try_thread_db_load, record_thread): Pass target down.
10999 (thread_db_target::detach): Pass target down. Always unpush the
11000 thread_db target.
11001 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11002 target down. Always unpush the thread_db target.
11003 (find_new_threads_callback, thread_db_find_new_threads_2)
11004 (thread_db_target::update_thread_list): Pass target down.
11005 (thread_db_target::pid_to_str): Pass current inferior down.
11006 (thread_db_target::get_thread_local_address): Pass target down.
11007 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11008 target down.
11009 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11010 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11011 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11012 (procfs_init_inferior): Rename to ...
11013 (procfs_target::procfs_init_inferior): ... this and adjust.
11014 (procfs_target::create_inferior, procfs_notice_thread)
11015 (procfs_do_thread_registers): Adjust.
11016 * ppc-fbsd-tdep.c: Include "inferior.h".
11017 (ppcfbsd_get_thread_local_address): Pass down target.
11018 * proc-service.c (ps_xfer_memory): Switch current inferior and
11019 program space as well.
11020 (get_ps_regcache): Pass target down.
11021 * process-stratum-target.c
11022 (process_stratum_target::thread_address_space)
11023 (process_stratum_target::thread_architecture): Pass target down.
11024 * process-stratum-target.h
11025 (process_stratum_target::threads_executing): New field.
11026 (as_process_stratum_target): New.
11027 * ravenscar-thread.c
11028 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11029 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11030 down.
11031 * record-btrace.c (record_btrace_target::info_record): Adjust.
11032 (record_btrace_target::record_method)
11033 (record_btrace_target::record_is_replaying)
11034 (record_btrace_target::fetch_registers)
11035 (get_thread_current_frame_id, record_btrace_target::resume)
11036 (record_btrace_target::wait, record_btrace_target::stop): Pass
11037 target down.
11038 * record-full.c (record_full_wait_1): Switch to event thread.
11039 Pass target down.
11040 * regcache.c (regcache::regcache)
11041 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11042 process_stratum_target parameter and handle it.
11043 (current_thread_target): New global.
11044 (get_thread_regcache): Add process_stratum_target parameter and
11045 handle it. Switch inferior before calling target method.
11046 (get_thread_regcache): Pass target down.
11047 (get_thread_regcache_for_ptid): Pass target down.
11048 (registers_changed_ptid): Add process_stratum_target parameter and
11049 handle it.
11050 (registers_changed_thread, registers_changed): Pass target down.
11051 (test_get_thread_arch_aspace_regcache): New.
11052 (current_regcache_test): Define a couple local test_target_ops
11053 instances and use them for testing.
11054 (readwrite_regcache): Pass process_stratum_target parameter.
11055 (cooked_read_test, cooked_write_test): Pass mock_target down.
11056 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11057 (get_thread_arch_aspace_regcache): Add process_stratum_target
11058 parameter.
11059 (regcache::target): New method.
11060 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11061 (regcache::registers_changed_ptid): Add process_stratum_target
11062 parameter.
11063 (regcache::m_target): New field.
11064 (registers_changed_ptid): Add process_stratum_target parameter.
11065 * remote.c (remote_state::supports_vCont_probed): New field.
11066 (remote_target::async_wait_fd): New method.
11067 (remote_unpush_and_throw): Add remote_target parameter.
11068 (get_current_remote_target): Adjust.
11069 (remote_target::remote_add_inferior): Push target.
11070 (remote_target::remote_add_thread)
11071 (remote_target::remote_notice_new_inferior)
11072 (get_remote_thread_info): Pass target down.
11073 (remote_target::update_thread_list): Skip threads of inferiors
11074 bound to other targets. (remote_target::close): Don't discard
11075 inferiors. (remote_target::add_current_inferior_and_thread)
11076 (remote_target::process_initial_stop_replies)
11077 (remote_target::start_remote)
11078 (remote_target::remote_serial_quit_handler): Pass down target.
11079 (remote_target::remote_unpush_target): New remote_target
11080 parameter. Unpush the target from all inferiors.
11081 (remote_target::remote_unpush_and_throw): New remote_target
11082 parameter. Pass it down.
11083 (remote_target::open_1): Check whether the current inferior has
11084 execution instead of checking whether any inferior is live. Pass
11085 target down.
11086 (remote_target::remote_detach_1): Pass down target. Use
11087 remote_unpush_target.
11088 (extended_remote_target::attach): Pass down target.
11089 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11090 (remote_target::append_resumption): Pass down target.
11091 (remote_target::append_pending_thread_resumptions)
11092 (remote_target::remote_resume_with_hc, remote_target::resume)
11093 (remote_target::commit_resume): Pass down target.
11094 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11095 (remote_target::interrupt_query)
11096 (remote_target::remove_new_fork_children)
11097 (remote_target::check_pending_events_prevent_wildcard_vcont)
11098 (remote_target::remote_parse_stop_reply)
11099 (remote_target::process_stop_reply): Pass down target.
11100 (first_remote_resumed_thread): New remote_target parameter. Pass
11101 it down.
11102 (remote_target::wait_as): Pass down target.
11103 (unpush_and_perror): New remote_target parameter. Pass it down.
11104 (remote_target::readchar, remote_target::remote_serial_write)
11105 (remote_target::getpkt_or_notif_sane_1)
11106 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11107 down target.
11108 (remote_target::mourn_inferior): Pass down target. Use
11109 remote_unpush_target.
11110 (remote_target::core_of_thread)
11111 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11112 (remote_target::pid_to_exec_file)
11113 (remote_target::thread_handle_to_thread_info): Pass down target.
11114 (remote_target::async_wait_fd): New.
11115 * riscv-fbsd-tdep.c: Include "inferior.h".
11116 (riscv_fbsd_get_thread_local_address): Pass down target.
11117 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11118 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11119 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11120 Adjust.
11121 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11122 * solib-svr4.c (enable_break): Pass down target.
11123 * spu-multiarch.c (parse_spufs_run): Pass down target.
11124 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11125 * target-delegates.c: Regenerate.
11126 * target.c (g_target_stack): Delete.
11127 (current_top_target): Return the current inferior's top target.
11128 (target_has_execution_1): Refer to the passed-in inferior's top
11129 target.
11130 (target_supports_terminal_ours): Check whether the initial
11131 inferior was already created.
11132 (decref_target): New.
11133 (target_stack::push): Incref/decref the target.
11134 (push_target, push_target, unpush_target): Adjust.
11135 (target_stack::unpush): Defref target.
11136 (target_is_pushed): Return bool. Adjust to refer to the current
11137 inferior's target stack.
11138 (dispose_inferior): Delete, and inline parts ...
11139 (target_preopen): ... here. Only dispose of the current inferior.
11140 (target_detach): Hold strong target reference while detaching.
11141 Pass target down.
11142 (target_thread_name): Add assertion.
11143 (target_resume): Pass down target.
11144 (target_ops::beneath, find_target_at): Adjust to refer to the
11145 current inferior's target stack.
11146 (get_dummy_target): New.
11147 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11148 has a thread running.
11149 (initialize_targets): Rename to ...
11150 (_initialize_target): ... this.
11151 * target.h: Include "gdbsupport/refcounted-object.h".
11152 (struct target_ops): Inherit refcounted_object.
11153 (target_ops::shortname, target_ops::longname): Make const.
11154 (target_ops::async_wait_fd): New method.
11155 (decref_target): Declare.
11156 (struct target_ops_ref_policy): New.
11157 (target_ops_ref): New typedef.
11158 (get_dummy_target): Declare function.
11159 (target_is_pushed): Return bool.
11160 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11161 (all_matching_threads_iterator::all_matching_threads_iterator):
11162 Handle filter target.
11163 * thread-iter.h (struct all_matching_threads_iterator, struct
11164 all_matching_threads_range, class all_non_exited_threads_range):
11165 Filter by target too. Remove explicit.
11166 * thread.c (threads_executing): Delete.
11167 (inferior_thread): Pass down current inferior.
11168 (clear_thread_inferior_resources): Pass down thread pointer
11169 instead of ptid_t.
11170 (add_thread_silent, add_thread_with_info, add_thread): Add
11171 process_stratum_target parameter. Use it for thread and inferior
11172 searches.
11173 (is_current_thread): New.
11174 (thread_info::deletable): Use it.
11175 (find_thread_ptid, thread_count, in_thread_list)
11176 (thread_change_ptid, set_resumed, set_running): New
11177 process_stratum_target parameter. Pass it down.
11178 (set_executing): New process_stratum_target parameter. Pass it
11179 down. Adjust reference to 'threads_executing'.
11180 (threads_are_executing): New process_stratum_target parameter.
11181 Adjust reference to 'threads_executing'.
11182 (set_stop_requested, finish_thread_state): New
11183 process_stratum_target parameter. Pass it down.
11184 (switch_to_thread): Also match inferior.
11185 (switch_to_thread): New process_stratum_target parameter. Pass it
11186 down.
11187 (update_threads_executing): Reimplement.
11188 * top.c (quit_force): Pop targets from all inferior.
11189 (gdb_init): Don't call initialize_targets.
11190 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11191 Declare.
11192 (windows_add_thread, windows_delete_thread): Adjust.
11193 (get_windows_debug_event): Rename to ...
11194 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11195 * tracefile-tfile.c (tfile_target_open): Pass down target.
11196 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11197 Forward declare.
11198 (switch_to_thread): Add process_stratum_target parameter.
11199 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11200 parameter. Use it.
11201 (mi_on_resume): Pass target down.
11202 * nat/fork-inferior.c (startup_inferior): Add
11203 process_stratum_target parameter. Pass it down.
11204 * nat/fork-inferior.h (startup_inferior): Add
11205 process_stratum_target parameter.
11206 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11207
11208 2020-01-10 Pedro Alves <palves@redhat.com>
11209
11210 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11211 directly. Instead find the first thread in the thread list and
11212 use switch_to_thread.
11213
11214 2020-01-10 Pedro Alves <palves@redhat.com>
11215
11216 * remote.c (remote_target::remote_add_inferior): Don't bind a
11217 process to the current inferior if the current inferior is already
11218 bound to a process.
11219
11220 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11221 Pedro Alves <palves@redhat.com>
11222
11223 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11224 If no process is specified, return null_ptid instead of
11225 inferior_ptid.
11226 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11227 TARGET_WAITKIND_SIGNALLED with no pid.
11228
11229 2020-01-10 Pedro Alves <palves@redhat.com>
11230
11231 * remote.c (first_remote_resumed_thread): New.
11232 (remote_target::wait_as): Use it as default event_ptid instead of
11233 inferior_ptid.
11234
11235 2020-01-10 Pedro Alves <palves@redhat.com>
11236
11237 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11238
11239 2020-01-10 Pedro Alves <palves@redhat.com>
11240
11241 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11242 not -1.
11243
11244 2020-01-10 Pedro Alves <palves@redhat.com>
11245
11246 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11247 ptid to get_last_target_status.
11248 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11249 ptid to get_last_target_status.
11250 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11251 get_last_target_status.
11252 (info_program_command): Don't pass a target_waitstatus to
11253 get_last_target_status.
11254 * infrun.c (init_wait_for_inferior): Use
11255 nullify_last_target_wait_ptid.
11256 (get_last_target_status): Handle nullptr arguments.
11257 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11258 (print_stop_event): Don't pass a ptid to get_last_target_status.
11259 (normal_stop): Don't pass a ptid to get_last_target_status.
11260 * infrun.h (get_last_target_status, set_last_target_status): Move
11261 comments here and update.
11262 (nullify_last_target_wait_ptid): Declare.
11263 * linux-fork.c (fork_load_infrun_state): Remove local extern
11264 declaration of nullify_last_target_wait_ptid.
11265 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11266 to get_last_target_status.
11267
11268 2020-01-10 Pedro Alves <palves@redhat.com>
11269
11270 * gdbthread.h (scoped_restore_current_thread)
11271 <dont_restore, restore, m_dont_restore>: Declare.
11272 * thread.c (thread_alive): Add assertion. Return bool.
11273 (switch_to_thread_if_alive): New.
11274 (prune_threads): Switch inferior/thread.
11275 (print_thread_info_1): Switch thread before calling target methods.
11276 (scoped_restore_current_thread::restore): New, factored out from
11277 ...
11278 (scoped_restore_current_thread::~scoped_restore_current_thread):
11279 ... this.
11280 (scoped_restore_current_thread::scoped_restore_current_thread):
11281 Add assertion.
11282 (thread_apply_all_command, thread_select): Use
11283 switch_to_thread_if_alive.
11284 * infrun.c (proceed, restart_threads, handle_signal_stop)
11285 (switch_back_to_stepped_thread): Switch current thread before
11286 calling target methods.
11287
11288 2020-01-10 Pedro Alves <palves@redhat.com>
11289
11290 * inferior.c (switch_to_inferior_no_thread): New function,
11291 factored out from ...
11292 (inferior_command): ... here.
11293 * inferior.h (switch_to_inferior_no_thread): Declare.
11294 * mi/mi-main.c (run_one_inferior): Use
11295 switch_to_inferior_no_thread.
11296
11297 2020-01-10 Pedro Alves <palves@redhat.com>
11298
11299 * infcmd.c (kill_command): Remove dead code.
11300
11301 2020-01-10 Pedro Alves <palves@redhat.com>
11302
11303 * remote.c (remote_target::mourn_inferior): No longer check
11304 whether the target is running.
11305
11306 2020-01-10 Pedro Alves <palves@redhat.com>
11307
11308 * corelow.c (core_target::has_execution): Change parameter type to
11309 inferior pointer.
11310 * inferior.c (number_of_live_inferiors): Use
11311 inferior::has_execution instead of target_has_execution_1.
11312 * inferior.h (inferior::has_execution): New.
11313 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11314 inferior::has_execution instead of target_has_execution_1.
11315 * process-stratum-target.c
11316 (process_stratum_target::has_execution): Change parameter type to
11317 inferior pointer. Check the inferior's PID instead of
11318 inferior_ptid.
11319 * process-stratum-target.h
11320 (process_stratum_target::has_execution): Change parameter type to
11321 inferior pointer.
11322 * record-full.c (record_full_core_target::has_execution): Change
11323 parameter type to inferior pointer.
11324 * target.c (target_has_execution_1): Change parameter type to
11325 inferior pointer.
11326 (target_has_execution_current): Adjust.
11327 * target.h (target_ops::has_execution): Change parameter type to
11328 inferior pointer.
11329 (target_has_execution_1): Change parameter type to inferior
11330 pointer. Change return type to bool.
11331 * tracefile.h (tracefile_target::has_execution): Change parameter
11332 type to inferior pointer.
11333
11334 2020-01-10 Pedro Alves <palves@redhat.com>
11335
11336 * exceptions.c (print_flush): Remove current_top_target() check.
11337
11338 2020-01-10 Pedro Alves <palves@redhat.com>
11339
11340 * remote.c (show_remote_exec_file): Show the current inferior's
11341 exec-file instead of the command variable's value.
11342
11343 2020-01-10 Pedro Alves <palves@redhat.com>
11344
11345 * record-full.c (record_full_resume_ptid): New global.
11346 (record_full_target::resume): Set it.
11347 (record_full_wait_1): Use record_full_resume_ptid instead of
11348 inferior_ptid.
11349
11350 2020-01-10 Pedro Alves <palves@redhat.com>
11351
11352 * gdbthread.h (scoped_restore_current_thread)
11353 <dont_restore, restore, m_dont_restore>: Declare.
11354 * thread.c (thread_alive): Add assertion. Return bool.
11355 (switch_to_thread_if_alive): New.
11356 (prune_threads): Switch inferior/thread.
11357 (print_thread_info_1): Switch thread before calling target methods.
11358 (scoped_restore_current_thread::restore): New, factored out from
11359 ...
11360 (scoped_restore_current_thread::~scoped_restore_current_thread):
11361 ... this.
11362 (scoped_restore_current_thread::scoped_restore_current_thread):
11363 Add assertion.
11364 (thread_apply_all_command, thread_select): Use
11365 switch_to_thread_if_alive.
11366
11367 2020-01-10 George Barrett <bob@bob131.so>
11368
11369 * stap-probe.c (stap_modify_semaphore): Don't check for null
11370 semaphores.
11371 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11372 for null semaphores.
11373
11374 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11375
11376 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11377 all source windows, and maintain horizontal scroll status while
11378 doing so.
11379
11380 2020-01-09 Tom Tromey <tom@tromey.com>
11381
11382 PR tui/18932:
11383 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11384 update_source_window, not print_source_lines.
11385
11386 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11387
11388 * tui/tui.c (tui_enable): Register tui hooks after calling
11389 tui_display_main.
11390
11391 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11392
11393 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11394
11395 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11396
11397 * thread.c (print_thread_info_1): Fix indentation.
11398
11399 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11400
11401 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11402 unique_xmalloc_ptr outside the if to always free the demangled name.
11403
11404 2020-01-08 Tom Tromey <tromey@adacore.com>
11405
11406 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11407 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11408 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11409 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11410 Remove.
11411 (section_offsets): New typedef.
11412 * symtab.c (fixup_section, get_msymbol_address): Update.
11413 * symmisc.c (dump_msymbols): Update.
11414 * symfile.h (relative_addr_info_to_section_offsets)
11415 (symfile_map_offsets_to_segments): Update.
11416 * symfile.c (build_section_addr_info_from_objfile)
11417 (init_objfile_sect_indices): Update.
11418 (struct place_section_arg): Change type of "offsets".
11419 (place_section): Update.
11420 (relative_addr_info_to_section_offsets): Change type of
11421 "section_offsets". Remove "num_sections" parameter.
11422 (default_symfile_offsets, syms_from_objfile_1)
11423 (set_objfile_default_section_offset): Update.
11424 (reread_symbols): No need to preserve section offsets by hand.
11425 (symfile_map_offsets_to_segments): Change type of "offsets".
11426 * stap-probe.c (relocate_address): Update.
11427 * stabsread.h (process_one_symbol): Update.
11428 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11429 (solib_target_relocate_section_addresses): Update.
11430 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11431 Update.
11432 * solib-frv.c (frv_relocate_main_executable): Update.
11433 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11434 * solib-aix.c (solib_aix_get_section_offsets): Change return
11435 type.
11436 (solib_aix_solib_create_inferior_hook): Update.
11437 * remote.c (remote_target::get_offsets): Update.
11438 * psymtab.c (find_pc_sect_psymtab): Update.
11439 * psympriv.h (struct partial_symbol) <address, text_low,
11440 text_high>: Update.
11441 * objfiles.h (obj_section_offset): Update.
11442 (struct objfile) <section_offsets>: Change type.
11443 <num_sections>: Remove.
11444 (objfile_relocate): Update.
11445 * objfiles.c (entry_point_address_query): Update
11446 (relocate_one_symbol): Change type of "section_offsets".
11447 (objfile_relocate1, objfile_relocate1): Change type of
11448 "new_offsets".
11449 (objfile_rebase1): Update.
11450 * mipsread.c (mipscoff_symfile_read): Update.
11451 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11452 parameter.
11453 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11454 (parse_external, psymtab_to_symtab_1): Update.
11455 * machoread.c (macho_symfile_offsets): Update.
11456 * ia64-tdep.c (ia64_find_unwind_table): Update.
11457 * hppa-tdep.c (read_unwind_info): Update.
11458 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11459 * dwarf2read.c (create_addrmap_from_index)
11460 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11461 (process_psymtab_comp_unit_reader, add_partial_symbol)
11462 (add_partial_subprogram, process_full_comp_unit)
11463 (read_file_scope, read_func_scope, read_lexical_block_scope)
11464 (read_call_site_scope, dwarf2_rnglists_process)
11465 (dwarf2_ranges_process, dwarf2_ranges_read)
11466 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11467 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11468 Update.
11469 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11470 Update.
11471 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11472 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11473 (process_one_symbol): Change type of "section_offsets".
11474 * ctfread.c (get_objfile_text_range): Update.
11475 * coffread.c (coff_symtab_read, enter_linenos)
11476 (process_coff_symbol): Update.
11477 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11478 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11479
11480 2020-01-08 Tom Tromey <tromey@adacore.com>
11481
11482 * dwarf2read.c (parse_macro_definition): Use std::string.
11483 (parse_macro_definition): Likewise.
11484
11485 2020-01-08 Tom Tromey <tromey@adacore.com>
11486
11487 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11488 (ATTR_ALLOC_CHUNK): Remove.
11489
11490 2020-01-08 Tom Tromey <tromey@adacore.com>
11491
11492 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11493
11494 2020-01-08 Tom Tromey <tromey@adacore.com>
11495
11496 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11497 (dwarf2_compute_name, open_dwo_file): Likewise.
11498 (process_enumeration_scope): Use std::vector.
11499 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11500 (partial_die_info::fixup, dwarf2_start_subfile)
11501 (guess_full_die_structure_name, dwarf2_name): Likewise.
11502 (determine_prefix): Update.
11503 (guess_full_die_structure_name): Make return type const.
11504 (partial_die_full_name): Return unique_xmalloc_ptr.
11505 (DW_FIELD_ALLOC_CHUNK): Remove.
11506
11507 2020-01-07 Tom Tromey <tromey@adacore.com>
11508
11509 PR build/24937:
11510 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11511
11512 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11513
11514 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11515
11516 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11517
11518 * stack.c (print_frame_info): Move disassemble_next_line code
11519 inside source_print block.
11520
11521 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11522
11523 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11524 gdb/signals.h, as we are now using native signal symbols.
11525
11526 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11527
11528 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11529 overflow by an early check of content vs threshold.
11530 * tui/tui-source.c (tui_source_window::line_is_displayed):
11531 Likewise.
11532
11533 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11534
11535 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11536
11537 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11538
11539 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11540 export table if no section contains it's RVA.
11541
11542 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11543
11544 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11545
11546 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11547
11548 * source.c (print_source_lines_base): Set last_line_listed.
11549
11550 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11551
11552 * tui/tui-disasm.c: Remove trailing spaces.
11553
11554 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11555 Pedro Alves <palves@redhat.com>
11556
11557 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11558 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11559 (windows_gdb_signal_to_target): New function, uses the above
11560 enumeration to convert GDB internal signal codes to equivalent
11561 Windows codes.
11562 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11563 * windows-nat.c: Include "gdb_wait.h".
11564 (get_windows_debug_event): Extract the fatal exception from the
11565 exit status and convert to the equivalent Posix signal number.
11566 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11567 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11568 * gdbsupport/gdb_wait.c: New file, implements
11569 windows_status_to_termsig.
11570 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11571 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11572
11573 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11574
11575 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11576 show_layout.
11577
11578 2020-01-05 Luis Machado <luis.machado@linaro.org>
11579
11580 * aarch64-linux-nat.c
11581 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11582 and bfd_mach_aarch64.
11583
11584 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11585
11586 * ui-file.c (stdio_file::can_emit_style_escape)
11587 (tee_file::can_emit_style_escape): Ensure style is used also on
11588 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11589 to gdb_stdout.
11590 * main.c (set_gdb_data_directory): Use file style to output the
11591 warning that the given pathname is not a directory.
11592 * top.c (show_history_filename, gdb_safe_append_history)
11593 (show_gdb_datadir): Use file style.
11594
11595 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11596
11597 * solib-target.c (struct lm_info_target):
11598 Change offsets to be a unique_xmalloc_ptr.
11599 (solib_target_relocate_section_addresses): Update.
11600
11601 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11602
11603 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11604
11605 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11606
11607 * MAINTAINERS (Write After Approval): Add myself.
11608
11609 2020-01-02 Luis Machado <luis.machado@linaro.org>
11610
11611 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11612 Cell BE architecture.
11613 * target.h (struct target_ops) <thread_architecture>: Likewise.
11614
11615 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11616
11617 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11618
11619 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11620
11621 * MAINTAINERS (Write After Approval): Add myself.
11622
11623 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11624
11625 * gdbarch.sh: Update copyright year range of generated files.
11626
11627 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11628
11629 Update copyright year range in all GDB files.
11630
11631 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11632
11633 * copyright.py: Convert to Python 3.
11634
11635 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11636
11637 * copyright.py: Adapt after move of gnulib directory from gdb
11638 directory to toplevel directory.
11639
11640 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11641
11642 * copyright.py (main): Exit if run from the wrong directory.
11643
11644 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11645
11646 * top.c (print_gdb_version): Change copyright year to 2020.
11647
11648 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11649
11650 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11651
11652 For older changes see ChangeLog-2019.
11653 \f
11654 Local Variables:
11655 mode: change-log
11656 left-margin: 8
11657 fill-column: 74
11658 version-control: never
11659 coding: utf-8
11660 End:
This page took 0.258458 seconds and 5 git commands to generate.