Implement xfer_partial TARGET_OBJECT_SIGNAL_INFO for NetBSD
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-07-28 Kamil Rytarowski <n54@gmx.com>
2
3 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
4 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
7 (nbsd_get_siginfo_type): New.
8 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
9 (_initialize_nbsd_tdep): New.
10
11 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
12
13 PR binutils/26301
14 * configure: Regenerated.
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 Andrew Burgess <andrew.burgess@embecosm.com>
22
23 * python/py-frame.c: Remove 'user-regs.h' include.
24 (frapy_read_register): Rewrite to make use of
25 gdbpy_parse_register_id.
26 * python/py-registers.c (gdbpy_parse_register_id): New function,
27 moved here from python/py-unwind.c. Updated the return type, and
28 also accepts register descriptor objects.
29 * python/py-unwind.c: Remove 'user-regs.h' include.
30 (pyuw_parse_register_id): Moved to python/py-registers.c.
31 (unwind_infopy_add_saved_register): Update to use
32 gdbpy_parse_register_id.
33 (pending_framepy_read_register): Likewise.
34 * python/python-internal.h (gdbpy_parse_register_id): Declare.
35
36 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
37
38 * python/py-registers.c: Add 'user-regs.h' include.
39 (register_descriptor_iter_find): New function.
40 (register_descriptor_iterator_object_methods): New static global
41 methods array.
42 (register_descriptor_iterator_object_type): Add pointer to methods
43 array.
44
45 2020-07-27 John Baldwin <jhb@FreeBSD.org>
46
47 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
48 for all architectures on FreeBSD 11.3 and later.
49
50 2020-07-27 Tom Tromey <tromey@adacore.com>
51
52 * gcore.h (load_corefile): Don't declare.
53
54 2020-07-27 Tom de Vries <tdevries@suse.de>
55
56 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
57 * config.in: Regenerate.
58 * configure: Regenerate.
59
60 2020-07-26 Eli Zaretskii <eliz@gnu.org>
61
62 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
63 ws2tcpip.h. When checking whether socklen_t type is defined, use
64 ws2tcpip.h if it is available and sys/socket.h isn't.
65 * configure: Regenerate.
66 * config.in: Regenerate.
67
68 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
69
70 PR fortran/23051
71 PR fortran/26139
72 * valops.c (value_ind): Pass address to
73 readjust_indirect_value_type.
74 * value.c (readjust_indirect_value_type): Make parameter
75 non-const, and add extra address parameter. Resolve original type
76 before using it.
77 * value.h (readjust_indirect_value_type): Update function
78 signature and comment.
79
80 2020-07-25 Tom de Vries <tdevries@suse.de>
81
82 PR symtab/26243
83 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
84 entries.
85
86 2020-07-24 Aaron Merey <amerey@redhat.com>
87
88 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
89 * configure: Rebuild.
90
91 2020-07-23 Kevin Buettner <kevinb@redhat.com>
92
93 PR corefiles/26294
94 * corelow.c (_initialize_corelow): Add period to help text
95 for "maintenance print core-file-backed-mappings".
96
97 2020-07-23 Pedro Alves <pedro@palves.net>
98
99 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
100 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
101 meanwhile.
102 * frame.c (frame_cache_generation, get_frame_cache_generation):
103 New.
104 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
105 (get_prev_frame_if_no_cycle): On exception, don't touch
106 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
107 * frame.h (get_frame_cache_generation): Declare.
108
109 2020-07-23 Tom de Vries <tdevries@suse.de>
110
111 PR tui/26282
112 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
113 New default constructor.
114
115 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
116
117 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
118 exclude non-statement entries.
119
120 2020-07-22 Kevin Buettner <kevinb@redhat.com>
121
122 * NEWS (New commands): Mention new command
123 "maintenance print core-file-backed-mappings".
124
125 2020-07-22 Kevin Buettner <kevinb@redhat.com>
126
127 * corelow.c (gdbcmd.h): Include.
128 (core_target::info_proc_mappings): New method.
129 (get_current_core_target): New function.
130 (maintenance_print_core_file_backed_mappings): New function.
131 (_initialize_corelow): Add core-file-backed-mappings to
132 "maint print" commands.
133
134 2020-07-22 Kevin Buettner <kevinb@redhat.com>
135
136 * linux-tdep.c (dump_note_entry_p): New function.
137 (linux_dump_mapping_p_ftype): New typedef.
138 (linux_find_memory_regions_full): Add new parameter,
139 should_dump_mapping_p.
140 (linux_find_memory_regions): Adjust call to
141 linux_find_memory_regions_full.
142 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
143 call to linux_find_memory_regions_full.
144
145 2020-07-22 Kevin Buettner <kevinb@redhat.com>
146
147 * corelow.c (solist.h, unordered_map): Include.
148 (class core_target): Add field m_core_file_mappings and
149 method build_file_mappings.
150 (core_target::core_target): Call build_file_mappings.
151 (core_target::~core_target): Free memory associated with
152 m_core_file_mappings.
153 (core_target::build_file_mappings): New method.
154 (core_target::xfer_partial): Use m_core_file_mappings
155 for memory transfers.
156 * linux-tdep.c (linux_read_core_file_mappings): New
157 function.
158 (linux_core_info_proc_mappings): Rewrite to use
159 linux_read_core_file_mappings.
160 (linux_init_abi): Register linux_read_core_file_mappings.
161
162 2020-07-22 Kevin Buettner <kevinb@redhat.com>
163
164 * arch-utils.c (default_read_core_file_mappings): New function.
165 * arch-utils.c (default_read_core_file_mappings): Declare.
166 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
167 * gdbarch.h, gdbarch.c: Regenerate.
168
169 2020-07-22 Kevin Buettner <kevinb@redhat.com>
170
171 PR corefiles/25631
172 * corelow.c (core_target:xfer_partial): Revise
173 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
174 case after first checking the stratum beneath the core
175 target.
176 (has_all_memory): Return true.
177 * target.c (raw_memory_xfer_partial): Revise comment
178 regarding use of has_all_memory.
179
180 2020-07-22 Kevin Buettner <kevinb@redhat.com>
181
182 * exec.h (section_table_xfer_memory): Revise declaration,
183 replacing section name parameter with an optional callback
184 predicate.
185 * exec.c (section_table_xfer_memory): Likewise.
186 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
187 of section_table_xfer_memory.
188
189 2020-07-22 Tom Tromey <tromey@adacore.com>
190
191 * mi/mi-cmd-stack.c (list_args_or_locals): Use
192 lookup_symbol_search_name.
193
194 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * python/py-registers.c (gdbpy_register_object_data_init): Remove
197 redundant local variable.
198 (gdbpy_get_register_descriptor): Extract descriptor vector as a
199 reference, not pointer, update code accordingly.
200
201 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
202 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
203
204 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
205 * jit.c (jit_breakpoint_re_set_internal): Use the
206 `skip_jit_symbol_lookup` field.
207
208 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
209 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
210
211 * jit.c (jit_read_descriptor): Define the descriptor address once,
212 use twice.
213 (jit_breakpoint_deleted): Move the declaration of the loop variable
214 `iter` into the loop header.
215 (jit_breakpoint_re_set_internal): Move the declaration of the local
216 variable `objf_data` to the first point of definition.
217 (jit_event_handler): Move the declaration of local variables
218 `code_entry`, `entry_addr`, and `objf` to their first point of use.
219 Rename `objf` to `jited`.
220
221 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
222
223 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
224 Remove.
225 * jit.c (get_jiter_objfile_data): Update.
226
227 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
228 Simon Marchi <simon.marchi@polymtl.ca>
229
230 * jit.c (struct jit_program_space_data): Remove.
231 (jit_program_space_key): Remove.
232 (jiter_objfile_data::~jiter_objfile_data): Remove program space
233 stuff.
234 (get_jit_program_space_data): Remove.
235 (jit_breakpoint_deleted): Iterate on all of the program space's
236 objfiles.
237 (jit_inferior_init): Likewise.
238 (jit_breakpoint_re_set_internal): Likewise. Also change return
239 type to void.
240 (jit_breakpoint_re_set): Pass current_program_space to
241 jit_breakpoint_re_set_internal.
242
243 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
244
245 * jit.h (struct jiter_objfile_data) <cached_code_address,
246 jit_breakpoint>: Move to here from ...
247 * jit.c (jit_program_space_data): ... here.
248 (jiter_objfile_data::~jiter_objfile_data): Update.
249 (jit_breakpoint_deleted): Update.
250 (jit_breakpoint_re_set_internal): Update.
251
252 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
253
254 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
255 checks.
256 (jit_read_descriptor): Remove NULL check.
257 (jit_event_handler): Add an assertion.
258
259 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
260
261 * jit.h (struct jit_objfile_data): Split into...
262 (struct jiter_objfile_data): ... this ...
263 (struct jited_objfile_data): ... and this.
264 * objfiles.h (struct objfile) <jit_data>: Remove.
265 <jiter_data, jited_data>: New fields.
266 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
267 (jiter_objfile_data::~jiter_objfile_data): ... this.
268 (get_jit_objfile_data): Rename to ...
269 (get_jiter_objfile_data): ... this.
270 (add_objfile_entry): Update.
271 (jit_read_descriptor): Use get_jiter_objfile_data.
272 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
273 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
274 (jit_inferior_exit_hook): Use objfile's jited_data field.
275
276 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * jit.h: Forward-declare `struct minimal_symbol`.
279 (struct jit_objfile_data): Migrate to here from jit.c; also add a
280 constructor, destructor, and an objfile* field.
281 * jit.c (jit_objfile_data): Remove.
282 (struct jit_objfile_data): Migrate from here to jit.h.
283 (jit_objfile_data::~jit_objfile_data): New destructor
284 implementation with code moved from free_objfile_data.
285 (free_objfile_data): Delete.
286 (get_jit_objfile_data): Update to use the jit_data field of objfile.
287 (jit_find_objf_with_entry_addr): Ditto.
288 (jit_inferior_exit_hook): Ditto.
289 (_initialize_jit): Remove the call to
290 register_objfile_data_with_cleanup.
291 * objfiles.h (struct objfile) <jit_data>: New field.
292
293 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
294
295 * jit.h: Forward-declare `struct objfile`.
296 (jit_event_handler): Add a second parameter, the JITer objfile.
297 * jit.c (jit_read_descriptor): Change the signature to take the
298 JITer objfile as an argument instead of the jit_program_space_data.
299 (jit_inferior_init): Update the call to jit_read_descriptor.
300 (jit_event_handler): Use the new JITer objfile argument when calling
301 jit_read_descriptor.
302 * breakpoint.c (handle_jit_event): Update the call to
303 jit_event_handler to pass the JITer objfile.
304
305 2020-07-21 John Baldwin <jhb@FreeBSD.org>
306
307 * gdbarch.c: Regenerate.
308 * gdbarch.h: Regenerate.
309 * gdbarch.sh (handle_segmentation_fault): Remove method.
310 * infrun.c (handle_segmentation_fault): Remove.
311 (print_signal_received_reason): Remove call to
312 handle_segmentation_fault.
313
314 2020-07-21 John Baldwin <jhb@FreeBSD.org>
315
316 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
317 Rename to sparc64_linux_report_signal_info and add siggnal
318 argument.
319 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
320 instead of sparc64_linux_handle_segmentation_fault.
321
322 2020-07-21 John Baldwin <jhb@FreeBSD.org>
323
324 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
325 i386_linux_report_signal_info instead of
326 i386_linux_handle_segmentation_fault.
327 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
328 to i386_linux_report_signal_info and add siggnal argument.
329 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
330 of i386_linux_handle_segmentation_fault.
331 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
332 to i386_linux_report_signal_info and add siggnal argument.
333
334 2020-07-21 John Baldwin <jhb@FreeBSD.org>
335
336 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
337 hook if present.
338
339 2020-07-21 John Baldwin <jhb@FreeBSD.org>
340
341 * gdbarch.c: Regenerate.
342 * gdbarch.h: Regenerate.
343 * gdbarch.sh (report_signal_info): New method.
344 * infrun.c (print_signal_received_reason): Invoke gdbarch
345 report_signal_info hook if present.
346
347 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * python/py-registers.c : Add 'unordered_map' include.
350 (gdbpy_new_reggroup): Renamed to...
351 (gdbpy_get_reggroup): ...this. Update to only create register
352 group descriptors when needed.
353 (gdbpy_reggroup_iter_next): Update.
354
355 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * python/py-registers.c (gdbpy_register_object_data): New static
358 global.
359 (gdbpy_register_object_data_init): New function.
360 (gdbpy_new_register_descriptor): Renamed to...
361 (gdbpy_get_register_descriptor): ...this, and update to reuse
362 existing register descriptors where possible.
363 (gdbpy_register_descriptor_iter_next): Update.
364 (gdbpy_initialize_registers): Register new gdbarch data.
365
366 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
367
368 * linux-nat.c (stopped_pids): Make static.
369
370 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
371
372 PR ada/26235
373 * gdbtypes.c (ada_discrete_type_low_bound,
374 ada_discrete_type_high_bound): Handle undefined bounds.
375
376 2020-07-21 Kamil Rytarowski <n54@gmx.com>
377
378 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
379 declaration.
380 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
381 function.
382
383 2020-07-20 John Baldwin <jhb@FreeBSD.org>
384
385 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
386 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
387 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
388 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
389 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
390 method.
391
392 2020-07-20 Ludovic Courtès <ludo@gnu.org>
393
394 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
395 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
396 which are deprecated in Guile 3.0.
397 * configure.ac (try_guile_versions): Add "guile-3.0".
398 * configure (try_guile_versions): Regenerate.
399 * NEWS: Update entry.
400
401 2020-07-20 Ludovic Courtès <ludo@gnu.org>
402 Doug Evans <dje@google.com>
403
404 PR gdb/21104
405 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
406 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
407 USING_GUILE_BEFORE_2_2.
408 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
409 Change type to 'scm_t_port_type *'.
410 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
411 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
412 parameter and honor it. Update callers.
413 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
414 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
415 functions.
416 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
417 USING_GUILE_BEFORE_2_2.
418 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
419 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
420 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
421 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
422 and 'SCM_PORT_TYPE'.
423 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
424 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
425 (gdbscm_memory_port_read, gdbscm_memory_port_write)
426 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
427 [!USING_GUILE_BEFORE_2_2]: New functions.
428 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
429 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
430 'gdbscm_memory_port_read'.
431 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
432 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
433 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
434 function.
435 (ioscm_init_memory_port): Remove.
436 (ioscm_init_memory_port_stream): New function
437 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
438 function.
439 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
440 Return scm_from_uint (0).
441 (gdbscm_set_memory_port_read_buffer_size_x)
442 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
443 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
444 Return scm_from_uint (0).
445 (gdbscm_set_memory_port_write_buffer_size_x)
446 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
447 * configure.ac (try_guile_versions): Add "guile-2.2".
448 * configure: Regenerate.
449 * NEWS: Add entry.
450
451 2020-07-18 Tom Tromey <tom@tromey.com>
452
453 * linux-nat.c (linux_multi_process): Remove.
454 (linux_nat_target::supports_multi_process): Return true.
455
456 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 * arch/riscv.c (riscv_tdesc_cache): Change map type.
459 (riscv_lookup_target_description): Return pointer out of
460 unique_ptr.
461 * target-descriptions.c (allocate_target_description): Add
462 comment.
463 (target_desc_deleter::operator()): Likewise.
464 * target-descriptions.h (struct target_desc_deleter): Moved to
465 gdbsupport/tdesc.h.
466 (target_desc_up): Likewise.
467
468 2020-07-17 Tom Tromey <tromey@adacore.com>
469
470 * linux-nat.c (linux_nat_target::supports_non_stop)
471 (linux_nat_target::always_non_stop_p): Use "true".
472 (linux_nat_target::supports_disable_randomization): Use "true" and
473 "false".
474
475 2020-07-16 Caroline Tice <cmtice@google.com>
476
477 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
478 (RNGLIST_HEADER_SIZE64): New constant definition.
479 (struct dwop_section_names): Add rnglists_dwo.
480 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
481 (struct loclist_header): Rename to 'loclists_rnglists_header'.
482 (struct dwo_sections): Add rnglists field.
483 (read_attribut_reprocess): Add tag parameter.
484 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
485 (cu_debug_rnglists_section): New function (decl & definition).
486 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
487 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
488 die whose range is being checked; get rnglist section from
489 cu_debug_rnglists_section, to get from either objfile or dwo file as
490 appropriate. Add cases for DW_RLE_base_addressx,
491 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
492 the base address to DW_RLE_offset_pairs (not to all ranges), moving
493 test inside if-condition and updating complaint message.
494 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
495 dwarf2_rnglists_process.
496 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
497 dwarf2_ranges_process.
498 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
499 need_ranges_base and update comment appropriately. Also pass die tag
500 to dwarf2_ranges_read.
501 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
502 need_ranges_base and update comment appropriately. Also pass die tag
503 to dwarf2_ranges_process.
504 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
505 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
506 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
507 need_ranges_base and update comment appropriately. Also pass die tag
508 to read_attribute_reprocess and dwarf2_ranges_read.
509 (read_loclist_header): Rename function to read_loclists_rnglists_header,
510 and update function comment appropriately.
511 (read_loclist_index): Call read_loclists_rnglists_header instead of
512 read_loclist_header.
513 (read_rnglist_index): New function.
514 (read_attribute_reprocess): Add tag parameter. Add code for
515 DW_FORM_rnglistx, passing tag to read_rnglist_index.
516 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
517
518 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
519
520 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
521 being resolved.
522
523 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
524
525 * arch-utils.c (show_architecture): Update formatting of messages.
526
527 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
528
529 * gdbtypes.h (struct type) <bounds>: Handle array and string
530 types.
531 * ada-lang.c (assign_aggregate): Use type::bounds on
532 array/string type.
533 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
534 * c-varobj.c (c_number_of_children): Likewise.
535 (c_describe_child): Likewise.
536 * eval.c (evaluate_subexp_for_sizeof): Likewise.
537 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
538 (f_type_print_base): Likewise.
539 * f-valprint.c (f77_array_offset_tbl): Likewise.
540 (f77_get_upperbound): Likewise.
541 (f77_print_array_1): Likewise.
542 * guile/scm-type.c (gdbscm_type_range): Likewise.
543 * m2-typeprint.c (m2_array): Likewise.
544 (m2_is_long_set_of_type): Likewise.
545 * m2-valprint.c (get_long_set_bounds): Likewise.
546 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
547 * python/py-type.c (typy_range): Likewise.
548 * rust-lang.c (rust_internal_print_type): Likewise.
549 * type-stack.c (type_stack::follow_types): Likewise.
550 * valarith.c (value_subscripted_rvalue): Likewise.
551 * valops.c (value_cast): Likewise.
552
553 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
554
555 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
556 callers to use the equivalent accessor methods.
557
558 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
559
560 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
561 (struct type) <bit_stride>: New method.
562 (TYPE_BIT_STRIDE): Remove.
563 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
564
565 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
566
567 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
568 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
569 callers to use the equivalent accessor methods instead.
570
571 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
572
573 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
574 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
575 callers to use the equivalent accessor methods instead.
576
577 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
578
579 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
580 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
581 to use dynamic_prop::kind.
582
583 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
584
585 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
586 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
587 to get the bound property's kind and check against
588 PROP_UNDEFINED.
589
590 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
591
592 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
593 all callers to use type::range_bounds followed by
594 dynamic_prop::{low,high}.
595
596 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
597
598 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
599 const_val, set_const_val, baton, set_locexpr, set_loclist,
600 set_addr_offset, variant_parts, set_variant_parts,
601 original_type, set_original_type>: New methods.
602 <kind>: Rename to...
603 <m_kind>: ... this. Update all users to use the new methods
604 instead.
605 <data>: Rename to...
606 <m_data>: ... this. Update all users to use the new methods
607 instead.
608
609 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
610
611 * gdbtypes.c (get_discrete_bounds): Return failure if
612 the range type's bounds are not both defined and constant
613 values.
614 (get_array_bounds): Update comment. Remove undefined bound check.
615
616 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
617
618 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
619 the type::bounds method directly.
620
621 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
622
623 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
624 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
625 are used to set the range type's bounds to use set_bounds.
626
627 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
628
629 * exec.c (_initialize_exec): Update exec-file-mismatch help.
630
631 2020-07-10 Pedro Alves <pedro@palves.net>
632
633 * gdbthread.h (inferior_ref): Define.
634 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
635 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
636 * thread.c
637 (scoped_restore_current_thread::restore):
638 Adjust to gdb::ref_ptr.
639 (scoped_restore_current_thread::~scoped_restore_current_thread):
640 Remove manual decref handling.
641 (scoped_restore_current_thread::scoped_restore_current_thread):
642 Adjust to use
643 inferior_ref::new_reference/thread_info_ref::new_reference.
644 Incref the thread before calling get_frame_id instead of after.
645 Let TARGET_CLOSE_ERROR propagate.
646
647 2020-07-10 Pedro Alves <pedro@palves.net>
648
649 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
650 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
651 NOT_AVAILABLE_ERROR.
652 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
653 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
654
655 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
656 Pedro Alves <pedro@palves.net>
657
658 PR gdb/26199
659 * infrun.c (threads_are_resumed_pending_p): Delete.
660 (do_target_wait): Remove threads_are_executing and
661 threads_are_resumed_pending_p checks from the inferior_matches
662 lambda. Update comments.
663
664 2020-07-10 Pedro Alves <pedro@palves.net>
665
666 PR gdb/26199
667 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
668 executing threads.
669
670 2020-07-10 Pedro Alves <pedro@palves.net>
671
672 PR gdb/26199
673 * infrun.c (handle_no_resumed): Handle multiple targets.
674
675 2020-07-10 Pedro Alves <pedro@palves.net>
676
677 PR gdb/26199
678 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
679 target_is_async_p.
680
681 2020-07-10 Pedro Alves <pedro@palves.net>
682
683 PR gdb/26199
684 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
685 threads, not all threads.
686
687 2020-07-10 Pedro Alves <pedro@palves.net>
688
689 PR gdb/26199
690 * remote.c (remote_target::open_1): Pass remote target pointer as
691 data to create_async_event_handler.
692 (remote_async_inferior_event_handler): Mark async event handler
693 before returning if the remote target still has either pending
694 events or unacknowledged notifications.
695
696 2020-07-10 John Baldwin <jhb@FreeBSD.org>
697
698 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
699 declaration.
700 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
701 function.
702
703 2020-07-09 John Baldwin <jhb@FreeBSD.org>
704
705 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
706 inferior_ptid.
707
708 2020-07-09 John Baldwin <jhb@FreeBSD.org>
709
710 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
711 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
712 AT_FREEBSD_PS_STRINGS.
713
714 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
715
716 * auto-load.c (auto_load_objfile_script_1): Convert drive part
717 of debugfile path on Windows.
718
719 2020-07-08 John Baldwin <jhb@FreeBSD.org>
720
721 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
722 argument to 'data'.
723
724 2020-07-08 Tom Tromey <tromey@adacore.com>
725
726 * ada-lang.c (ada_exception_message_1): Use read_memory.
727
728 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
729
730 PR python/22748
731 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
732 special handling for inline frames.
733 * findvar.c (value_of_register_lazy): Skip inline frames when
734 creating lazy register values.
735 * frame.c (frame_id_computed_p): Delete definition.
736 * frame.h (frame_id_computed_p): Delete declaration.
737
738 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * NEWS: Mention additions to Python API.
741 * python/py-arch.c (archpy_register_groups): New function.
742 (arch_object_methods): Add 'register_groups' method.
743 * python/py-registers.c (reggroup_iterator_object): New struct.
744 (reggroup_object): New struct.
745 (gdbpy_new_reggroup): New function.
746 (gdbpy_reggroup_to_string): New function.
747 (gdbpy_reggroup_name): New function.
748 (gdbpy_reggroup_iter): New function.
749 (gdbpy_reggroup_iter_next): New function.
750 (gdbpy_new_reggroup_iterator): New function
751 (gdbpy_initialize_registers): Register new types.
752 (reggroup_iterator_object_type): Define new Python type.
753 (gdbpy_reggroup_getset): New static global.
754 (reggroup_object_type): Define new Python type.
755 * python/python-internal.h
756
757 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
758
759 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
760 * python/py-arch.c (archpy_registers): New function.
761 (arch_object_methods): Add 'registers' method.
762 * python/py-registers.c: New file.
763 * python/python-internal.h
764 (gdbpy_new_register_descriptor_iterator): Declare.
765 (gdbpy_initialize_registers): Declare.
766 * python/python.c (do_start_initialization): Call
767 gdbpy_initialize_registers.
768 * NEWS: Mention additions to the Python API.
769
770 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
771
772 * NEWS: Mention new Python API method.
773 * python/py-unwind.c (pending_framepy_architecture): New function.
774 (pending_frame_object_methods): Add architecture method.
775
776 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 * gdbarch.c: Regenerate.
779 * gdbarch.h: Regenerate.
780 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
781 (gdbarch_data): Use internal_error for the case where
782 deprecated_set_gdbarch_data was originally needed.
783 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
784 and use passed in obstack.
785 (libunwind_frame_set_descr): Should no longer get back NULL from
786 gdbarch_data.
787 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
788 type.
789 * user-regs.c (user_regs_init): Update parameters, and use passed
790 in obstack.
791 (user_reg_add): Should no longer get back NULL from gdbarch_data.
792 (_initialize_user_regs): Register as a pre-init gdbarch data type.
793
794 2020-07-06 Tom de Vries <tdevries@suse.de>
795
796 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
797 End-Of-Sequence in lte_is_less_than.
798 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
799 "gdb: Don't reorder line table entries too much when sorting".
800
801 2020-07-06 Tom de Vries <tdevries@suse.de>
802
803 PR tui/26205
804 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
805
806 2020-07-05 Tom de Vries <tdevries@suse.de>
807
808 PR build/26187
809 * inferior.h (struct infcall_suspend_state_deleter): If available, use
810 std::uncaught_exceptions instead of deprecated
811 std::uncaught_exception.
812
813 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
814
815 * macroexp.h (macro_stringify): Return
816 gdb::unique_xmalloc_ptr<char>.
817 * macroexp.c (macro_stringify): Likewise.
818 * macrotab.c (fixup_definition): Update.
819
820 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
821
822 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
823 (lex_one_token): Update.
824 * macroexp.c (struct macro_buffer) <release>: Return
825 gdb::unique_xmalloc_ptr<char>.
826 (macro_stringify): Update.
827 (macro_expand): Update.
828 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
829 * macroexp.h (macro_expand_next): Likewise.
830
831 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
832
833 * macroexp.h (macro_lookup_ftype): Remove.
834 (macro_expand, macro_expand_once, macro_expand_next): Remove
835 lookup function parameters, add scope parameter.
836 * macroexp.c (scan, substitute_args, expand, maybe_expand,
837 macro_expand, macro_expand_once, macro_expand_next): Likewise.
838 * macroscope.h (standard_macro_lookup): Change parameter type
839 to macro_scope.
840 * macroscope.c (standard_macro_lookup): Likewise.
841 * c-exp.y (lex_one_token): Update.
842 * macrocmd.c (macro_expand_command): Likewise.
843 (macro_expand_once_command): Likewise.
844
845 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
846
847 * inf-loop.c (inferior_event_handler): Remove client_data param.
848 * inf-loop.h (inferior_event_handler): Likewise.
849 * infcmd.c (step_1): Adjust.
850 * infrun.c (proceed): Adjust.
851 (fetch_inferior_event): Remove client_data param.
852 (infrun_async_inferior_event_handler): Adjust.
853 * infrun.h (fetch_inferior_event): Remove `void *` param.
854 * linux-nat.c (handle_target_event): Adjust.
855 * record-btrace.c (record_btrace_handle_async_inferior_event):
856 Adjust.
857 * record-full.c (record_full_async_inferior_event_handler):
858 Adjust.
859 * remote.c (remote_async_inferior_event_handler): Adjust.
860
861 2020-07-01 Tom Tromey <tom@tromey.com>
862
863 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
864 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
865
866 2020-07-01 Tom Tromey <tom@tromey.com>
867
868 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
869 tui_gen_win_info.
870 (tui_win_info::make_window): Merge with
871 tui_gen_win_info::make_window.
872 (tui_win_info::make_visible): Move from tui_gen_win_info.
873 * tui/tui-win.c (tui_win_info::max_width): Move from
874 tui_gen_win_info.
875 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
876 type.
877 <window_factory>: Likewise.
878 * tui/tui-layout.c (tui_win_info::resize): Move from
879 tui_gen_win_info.
880 (make_standard_window): Change return type.
881 (get_locator_window, tui_get_window_by_name): Likewise.
882 (tui_layout_window::apply): Remove a cast.
883 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
884 (struct tui_win_info): Merge with tui_gen_win_info.
885 (struct tui_gen_win_info): Remove.
886
887 2020-07-01 Tom Tromey <tom@tromey.com>
888
889 * tui/tui-stack.h (struct tui_locator_window): Derive from
890 tui_win_info.
891 <do_scroll_horizontal, do_scroll_vertical>: New methods.
892 <can_box>: New method.
893
894 2020-07-01 Tom Tromey <tom@tromey.com>
895
896 * tui/tui-stack.h (struct tui_locator_window): Remove body.
897
898 2020-07-01 Tom Tromey <tom@tromey.com>
899
900 * tui/tui-regs.c (tui_data_window::display_registers_from)
901 (tui_data_window::display_registers_from)
902 (tui_data_window::first_data_item_displayed)
903 (tui_data_window::delete_data_content_windows): Update.
904 (tui_data_window::refresh_window, tui_data_window::no_refresh):
905 Remove.
906 (tui_data_window::check_register_values): Update.
907 (tui_data_item_window::rerender): Add parameters. Update.
908 (tui_data_item_window::refresh_window): Remove.
909 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
910 virtual.
911 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
912 tui_gen_win_info.
913 <refresh_window, max_height, min_height>: Remove.
914 <rerender>: Add parameters.
915 <x, y, visible>: New members.
916 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
917 <m_item_width>: New member.
918
919 2020-07-01 Tom Tromey <tom@tromey.com>
920
921 * tui/tui-regs.c (tui_data_window::show_register_group)
922 (tui_data_window::check_register_values): Update.
923 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
924 from item_no.
925
926 2020-07-01 Tom Tromey <tom@tromey.com>
927
928 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
929 useless "if".
930
931 2020-07-01 Tom Tromey <tom@tromey.com>
932
933 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
934 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
935
936 2020-07-01 Tom Tromey <tom@tromey.com>
937
938 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
939 * tui/tui-winsource.h (enum tui_line_or_address_kind)
940 (struct tui_line_or_address): Move from tui-data.h.
941 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
942 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
943 (tui_cmd_window, tui_source_window_base, tui_source_window)
944 (tui_disasm_window): Don't declare.
945 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
946 to tui-winsource.h.
947 (SINGLE_KEY): Move to tui-stack.c.
948
949 2020-07-01 Tom Tromey <tom@tromey.com>
950
951 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
952 std::string.
953 * tui/tui-regs.c (class tab_expansion_file): New.
954 (tab_expansion_file::write): New method.
955 (tui_register_format): Change return type. Use
956 tab_expansion_file.
957 (tui_get_register, tui_data_window::display_registers_from)
958 (tui_data_item_window::rerender): Update.
959 * tui/tui-io.h (tui_expand_tabs): Don't declare.
960 * tui/tui-io.c (tui_expand_tabs): Remove.
961
962 2020-07-01 Tom Tromey <tom@tromey.com>
963
964 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
965
966 2020-07-01 Fangrui Song <maskray@google.com>
967
968 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
969
970 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
971
972 * dwarf2/read.c (set_die_type): Removed conditions to restrict
973 forms for DW_AT_associated and DW_AT_allocated attributes,
974 which is already checked in function attr_to_dynamic_prop.
975
976 2020-06-30 Tom Tromey <tromey@adacore.com>
977
978 * dwarf2/read.c (quirk_rust_enum): Correctly call
979 alloc_rust_variant for default-less enum.
980
981 2020-06-30 Tom Tromey <tromey@adacore.com>
982
983 PR build/26183:
984 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
985 gdb::to_string.
986
987 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
988
989 * gdbarch.sh (displaced_step_copy_insn): Update doc.
990 * gdbarch.h: Re-generate.
991
992 2020-06-28 Tom Tromey <tom@tromey.com>
993
994 * command.h (cmd_types): Remove.
995 (cmd_type): Don't declare.
996 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
997 typedef.
998 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
999 * cli/cli-decode.c (cmd_type): Remove.
1000
1001 2020-06-27 Pedro Alves <palves@redhat.com>
1002
1003 * fork-child.c (prefork_hook): Adjust.
1004 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1005 Delete.
1006 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1007 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1008 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1009 Remove declarations.
1010 (struct inferior) <set_tty, tty>: New methods.
1011 (struct inferior) <terminal>: Rename to ...
1012 (struct inferior) <m_terminal>: ... this and make private.
1013 * main.c (captured_main_1): Adjust.
1014 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1015 (mi_cmd_inferior_tty_show): Adjust.
1016 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1017 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1018
1019 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1020
1021 * configure.ac: Add --enable-libctf: handle --disable-static
1022 properly.
1023 * acinclude.m4: sinclude ../config/enable.m4.
1024 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1025 (LIBCTF): Substitute in.
1026 (CTF_DEPS): New, likewise.
1027 (CLIBS): libctf needs symbols from libbfd: move earlier.
1028 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1029 flags.
1030 * ctfread.c: Surround in ENABLE_LIBCTF.
1031 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1032 * configure: Regenerate.
1033 * config.in: Likewise.
1034
1035 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1036
1037 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1038
1039 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1040
1041 * inferior.h (struct inferior) <terminal>: Change type to
1042 gdb::unique_xmalloc_ptr<char>.
1043 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1044 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1045 field, adjust to unique pointer.
1046 (get_inferior_io_terminal): Adjust to unique pointer.
1047
1048 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1049
1050 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1051 registers, not just the known core set of registers.
1052
1053 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1056 fflags, frm, and fcsr registers.
1057 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1058 restore groups.
1059 (riscv_tdesc_unknown_reg): New function.
1060 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1061 tdesc_use_registers.
1062 * riscv-tdep.h (struct gdbarch_tdep): Add
1063 unknown_csrs_first_regnum, unknown_csrs_count,
1064 duplicate_fflags_regnum, duplicate_frm_regnum, and
1065 duplicate_fcsr_regnum fields.
1066
1067 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1068
1069 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1070 callback, use the callback (when not null) to help number unknown
1071 registers.
1072 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1073 (tdesc_use_registers): Add extra parameter to declaration.
1074
1075 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1076
1077 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1078 in the file.
1079 (class riscv_pending_register_alias): Likewise.
1080 (riscv_register_feature::register_info): Change 'required_p' field
1081 to 'required', and change its type. Add 'check' member function.
1082 (riscv_register_feature::register_info::check): Define new member
1083 function.
1084 (riscv_xreg_feature): Change initialisation of 'required' field.
1085 (riscv_freg_feature): Likewise.
1086 (riscv_virtual_feature): Likewise.
1087 (riscv_csr_feature): Likewise.
1088 (riscv_check_tdesc_feature): Take extra parameter, the csr
1089 tdesc_feature, rewrite the function to use the new
1090 riscv_register_feature::register_info::check function.
1091 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1092
1093 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1094
1095 * features/Makefile: Remove all references to the deleted files
1096 below.
1097 * features/riscv/32bit-csr.c: Deleted.
1098 * features/riscv/32bit-csr.xml: Deleted.
1099 * features/riscv/64bit-csr.c: Deleted.
1100 * features/riscv/64bit-csr.xml: Deleted.
1101 * features/riscv/rebuild-csr-xml.sh: Deleted.
1102
1103 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1104
1105 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1106 whitespace error for declaration of names member variable.
1107 (struct riscv_register_feature): Add new prefer_first_name member
1108 variable, and fix whitespace error in declaration of registers.
1109 (riscv_xreg_feature): Initialize prefer_first_name field.
1110 (riscv_freg_feature): Likewise.
1111 (riscv_virtual_feature): Likewise.
1112 (riscv_csr_feature): Likewise.
1113 (riscv_register_name): Expand on comments. Remove register name
1114 modifications for CSR and virtual registers.
1115
1116 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1117
1118 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1119 errors.
1120
1121 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1122
1123 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1124 riscv-opc.h.
1125 (class riscv_pending_register_alias): New class.
1126 (riscv_check_tdesc_feature): Take vector of pending aliases and
1127 populate it as appropriate.
1128 (riscv_setup_register_aliases): Delete.
1129 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1130 to riscv_check_tdesc_feature in all cases. Use the vector to
1131 create the register aliases.
1132
1133 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1134
1135 * sol2-tdep.c (sol2_static_transform_name): Remove.
1136 (sol2_init_abi): Don't register it.
1137 * gdbarch.sh (static_transform_name): Remove.
1138 * gdbarch.c, gdbarch.h: Regenerate.
1139
1140 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1141 gdbarch_static_transform_name.
1142 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1143 * stabsread.c (define_symbol) <'X'>: Remove.
1144 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1145 handling.
1146 <'V'>: Likewise.
1147 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1148 <'S'>: Remove call to gdbarch_static_transform_name.
1149
1150 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1151
1152 * procfs.c (procfs_pre_trace): New function.
1153 (procfs_target::create_inferior): Pass it to fork_inferior.
1154
1155 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1156
1157 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1158 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1159 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1160 sol2-tdep.o, sparc-sol2-tdep.o.
1161 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1162 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1163 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1164 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1165
1166 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1167
1168 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1169 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1170 Call sol2_init_abi.
1171 Remove calls to set_gdbarch_skip_solib_resolver,
1172 set_gdbarch_core_pid_to_str.
1173 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1174 (i386_sol2_static_transform_name): Remove.
1175 (i386_sol2_init_abi): Call sol2_init_abi.
1176 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1177 set_gdbarch_static_transform_name,
1178 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1179 Use sol2_sigtramp_p.
1180 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1181 (sol2_sigtramp_p): New function.
1182 (sol2_static_transform_name): New function.
1183 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1184 (sol2_init_abi): New function.
1185 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1186 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1187 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1188 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1189 (sparc_sol2_static_transform_name): Remove.
1190 (sparc32_sol2_init_abi): Call sol2_init_abi.
1191 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1192 set_gdbarch_static_transform_name,
1193 set_gdbarch_skip_solib_resolver,
1194 set_gdbarch_core_pid_to_str.
1195 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1196 (sparc_sol2_static_transform_name): Remove
1197 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1198 call sol2_sigtramp_p.
1199 (sparc64_sol2_init_abi): Call sol2_init_abi.
1200 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1201 set_gdbarch_static_transform_name,
1202 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1203
1204 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1205
1206 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1207 * exec.c (validate_exec_file): If from_tty, set both
1208 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1209 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1210 and from_tty, unconditionally ask a confirmation.
1211
1212 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1213
1214 * target-descriptions.c (tdesc_architecture_name): Protect against
1215 NULL pointer dereference.
1216 (maint_print_xml_tdesc_cmd): New function.
1217 (_initialize_target_descriptions): Register new 'maint print
1218 xml-tdesc' command and give it the filename completer.
1219 * NEWS: Mention new 'maint print xml-tdesc' command.
1220
1221 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * target-descriptions.c (class tdesc_compatible_info): New class.
1224 (struct target_desc): Change type of compatible vector.
1225 (tdesc_compatible_p): Update for change in type of
1226 target_desc::compatible.
1227 (tdesc_compatible_info_list): New function.
1228 (tdesc_compatible_info_arch_name): New function.
1229 (tdesc_add_compatible): Update for change in type of
1230 target_desc::compatible.
1231 (print_c_tdesc::visit_pre): Likewise.
1232
1233 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1234
1235 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1236 whitespace to underscore.
1237 (maint_print_c_tdesc_cmd): Use fake filename for target
1238 descriptions that came from the target.
1239 (_initialize_target_descriptions): Add filename command completion
1240 for 'maint print c-tdesc'.
1241
1242 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1243
1244 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1245 lines.
1246
1247 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1248
1249 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1250 lines.
1251 (dwarf2_find_location_expression): Likewise.
1252 (call_site_parameter_matches): Likewise.
1253 (dwarf2_compile_expr_to_ax): Likewise.
1254 (disassemble_dwarf_expression): Likewise.
1255 (loclist_describe_location): Likewise.
1256
1257 2020-06-23 Pedro Alves <palves@redhat.com>
1258
1259 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1260 progspace-and-thread.h. Include scoped-mock-context.h instead.
1261 (register_to_value_test): Use scoped_mock_context.
1262 * regcache.c: Include "scoped-mock-context.h".
1263 (cooked_read_test): Don't error out if a target is already pushed.
1264 Use scoped_mock_context. Adjust.
1265 * scoped-mock-context.h: New file.
1266
1267 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1270 initializer.
1271 (ada_language::is_string_type_p): New member function.
1272 * c-lang.c (c_language_data): Delete la_is_string_type_p
1273 initializer.
1274 (cplus_language_data): Likewise.
1275 (asm_language_data): Likewise.
1276 (minimal_language_data): Likewise.
1277 * d-lang.c (d_language_data): Likewise.
1278 * f-lang.c (f_is_string_type_p): Delete function, implementation
1279 moved to f_language::is_string_type_p.
1280 (f_language_data): Delete la_is_string_type_p initializer.
1281 (f_language::is_string_type_p): New member function,
1282 implementation from f_is_string_type_p.
1283 * go-lang.c (go_is_string_type_p): Delete function, implementation
1284 moved to go_language::is_string_type_p.
1285 (go_language_data): Delete la_is_string_type_p initializer.
1286 (go_language::is_string_type_p): New member function,
1287 implementation from go_is_string_type_p.
1288 * language.c (language_defn::is_string_type_p): Define new member
1289 function.
1290 (default_is_string_type_p): Make static, add comment copied from
1291 header file.
1292 (unknown_language_data): Delete la_is_string_type_p initializer.
1293 (unknown_language::is_string_type_p): New member function.
1294 (auto_language_data): Delete la_is_string_type_p initializer.
1295 (auto_language::is_string_type_p): New member function.
1296 * language.h (language_data): Delete la_is_string_type_p field.
1297 (language_defn::is_string_type_p): Declare new function.
1298 (default_is_string_type_p): Delete desclaration, move comment to
1299 definition.
1300 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1301 moved to m2_language::is_string_type_p.
1302 (m2_language_data): Delete la_is_string_type_p initializer.
1303 (m2_language::is_string_type_p): New member function,
1304 implementation from m2_is_string_type_p.
1305 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1306 initializer.
1307 * opencl-lang.c (opencl_language_data): Likewise.
1308 * p-lang.c (pascal_is_string_type_p): Delete function,
1309 implementation moved to pascal_language::is_string_type_p.
1310 (pascal_language_data): Delete la_is_string_type_p initializer.
1311 (pascal_language::is_string_type_p): New member function,
1312 implementation from pascal_is_string_type_p.
1313 * rust-lang.c (rust_is_string_type_p): Delete function,
1314 implementation moved to rust_language::is_string_type_p.
1315 (rust_language_data): Delete la_is_string_type_p initializer.
1316 (rust_language::is_string_type_p): New member function,
1317 implementation from rust_is_string_type_p.
1318 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1319 is_string_type_p.
1320
1321 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1322
1323 * ada-lang.c (ada_language_data): Delete la_print_typedef
1324 initializer.
1325 (ada_language::print_typedef): New member function.
1326 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1327 (cplus_language_data): Likewise.
1328 (asm_language_data): Likewise.
1329 (minimal_language_data): Likewise.
1330 * d-lang.c (d_language_data): Likewise.
1331 * f-lang.c (f_language_data): Likewise.
1332 (f_language::print_typedef): New member function.
1333 * go-lang.c (go_language_data): Delete la_print_typedef
1334 initializer.
1335 * language.c (language_defn::print_typedef): Define member
1336 function.
1337 (unknown_language_data): Delete la_print_typedef initializer.
1338 (unknown_language::print_typedef): New member function.
1339 (auto_language_data): Delete la_print_typedef initializer.
1340 (auto_language::print_typedef): New member function.
1341 * language.h (language_data): Delete la_print_typedef field.
1342 (language_defn::print_typedef): Declare new member function.
1343 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1344 (default_print_typedef): Delete declaration.
1345 * m2-lang.c (m2_language_data): Delete la_print_typedef
1346 initializer.
1347 (m2_language::print_typedef): New member function.
1348 * objc-lang.c (objc_language_data): Delete la_print_typedef
1349 initializer.
1350 * opencl-lang.c (opencl_language_data): Likewise.
1351 * p-lang.c (pascal_language_data): Likewise.
1352 (pascal_language::print_typedef): New member function.
1353 * rust-lang.c (rust_print_typedef): Delete function,
1354 implementation moved to rust_language::print_typedef.
1355 (rust_language): Delete la_print_typedef initializer.
1356 (rust_language::print_typedef): New member function,
1357 implementation from rust_print_typedef.
1358 * typeprint.c (default_print_typedef): Delete.
1359
1360 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1361
1362 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1363 (ada_language::printstr): New member function.
1364 * c-lang.c (c_language_data): Delete la_printstr initializer.
1365 (cplus_language_data): Likewise.
1366 (asm_language_data): Likewise.
1367 (minimal_language_data): Likewise.
1368 * d-lang.c (d_language_data): Likewise.
1369 * f-lang.c (f_printstr): Rename to f_language::printstr.
1370 (f_language_data): Delete la_printstr initializer.
1371 (f_language::printstr): New member function, implementation from
1372 f_printstr.
1373 * go-lang.c (go_language_data): Delete la_printstr initializer.
1374 * language.c (language_defn::printstr): Define new member
1375 function.
1376 (unk_lang_printstr): Delete.
1377 (unknown_language_data): Delete la_printstr initializer.
1378 (unknown_language::printstr): New member function.
1379 (auto_language_data): Delete la_printstr initializer.
1380 (auto_language::printstr): New member function.
1381 * language.h (language_data): Delete la_printstr field.
1382 (language_defn::printstr): Declare new member function.
1383 (LA_PRINT_STRING): Update call to printstr.
1384 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1385 (m2_language_data): Delete la_printstr initializer.
1386 (m2_language::printstr): New member function, implementation from
1387 m2_printstr.
1388 * objc-lang.c (objc_language_data): Delete la_printstr
1389 initializer.
1390 * opencl-lang.c (opencl_language_data): Likewise.
1391 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1392 (pascal_language_data): Delete la_printstr initializer.
1393 (pascal_language::printstr): New member function, implementation
1394 from pascal_printstr.
1395 * p-lang.h (pascal_printstr): Delete declaration.
1396 * rust-lang.c (rust_printstr): Update header comment.
1397 (rust_language_data): Delete la_printstr initializer.
1398 (rust_language::printstr): New member function.
1399
1400 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1401
1402 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1403 (ada_language::printchar): New member function.
1404 * c-lang.c (c_language_data): Delete la_printchar initializer.
1405 (cplus_language_data): Likewise.
1406 (asm_language_data): Likewise.
1407 (minimal_language_data): Likewise.
1408 * d-lang.c (d_language_data): Likewise.
1409 * f-lang.c (f_printchar): Rename to f_language::printchar.
1410 (f_language_data): Delete la_printchar initializer.
1411 (f_language::printchar): New member function, implementation from
1412 f_printchar.
1413 * go-lang.c (go_language_data): Delete la_printchar initializer.
1414 * language.c (unk_lang_printchar): Delete.
1415 (language_defn::printchar): Define new member function.
1416 (unknown_language_data): Delete la_printchar initializer.
1417 (unknown_language::printchar): New member function.
1418 (auto_language_data): Delete la_printchar initializer.
1419 (auto_language::printchar): New member function.
1420 * language.h (language_data): Delete la_printchar field.
1421 (language_defn::printchar): Declare new member function.
1422 (LA_PRINT_CHAR): Update call to printchar.
1423 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1424 (m2_language::printchar): New member function.
1425 * objc-lang.c (objc_language_data): Delete la_printchar
1426 initializer.
1427 * opencl-lang.c (opencl_language_data): Likewise.
1428 * p-lang.c (pascal_language_data): Delete la_printchar
1429 initializer.
1430 (pascal_language::printchar): New member function.
1431 * rust-lang.c (rust_printchar): Rename to
1432 rust_language::printchar.
1433 (rust_language_data): Delete la_printchar initializer.
1434 (rust_language::printchar): New member function, implementation
1435 from rust_printchar.
1436
1437 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1440 (ada_language_data): Delete la_emitchar initializer.
1441 (ada_language::emitchar): New member function, implementation from
1442 emit_char.
1443 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1444 (cplus_language_data): Likewise.
1445 (asm_language_data): Likewise.
1446 (minimal_language_data): Likewise.
1447 * d-lang.c (d_language_data): Likewise.
1448 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1449 (f_language_data): Delete la_emitchar initializer.
1450 (f_language::emitchar): New member function, implementation from
1451 f_emit_char.
1452 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1453 * language.c (unk_lang_emit_char): Delete.
1454 (language_defn::emitchar): New member function definition.
1455 (unknown_language_data): Delete la_emitchar initializer.
1456 (unknown_language::emitchar): New member function.
1457 (auto_language_data): Delete la_emitchar initializer.
1458 (auto_language::emitchar): New member function.
1459 * language.h (language_data): Delete la_emitchar field.
1460 (language_defn::emitchar): New member field declaration.
1461 (LA_EMIT_CHAR): Update call to emitchar.
1462 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1463 (m2_language_data): Delete la_emitchar initializer.
1464 (m2_language::emitchar): New member function, implementation from
1465 m2_emit_char.
1466 * objc-lang.c (objc_language_data): Delete la_emitchar
1467 initializer.
1468 * opencl-lang.c (opencl_language_data): Likewise.
1469 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1470 (pascal_language_data): Delete la_emitchar initializer.
1471 (pascal_language::emitchar): New member function, implementation
1472 from pascal_emit_char.
1473 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1474 (rust_language_data): Delete la_emitchar initializer.
1475 (rust_language::emitchar): New member function, implementation
1476 from rust_emitchar.
1477
1478 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1479
1480 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1481 (ada_language_data): Delete la_post_parser initializer.
1482 (ada_language::post_parser): New member function.
1483 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1484 (cplus_language_data): Likewise.
1485 (asm_language_data): Likewise.
1486 (minimal_language_data): Likewise.
1487 * d-lang.c (d_language_data): Likewise.
1488 * f-lang.c (f_language_data): Likewise.
1489 * go-lang.c (go_language_data): Likewise.
1490 * language.c (unknown_language_data): Likewise.
1491 (auto_language_data): Likewise.
1492 * language.h (language_data): Delete la_post_parser field.
1493 (language_defn::post_parser): New member function.
1494 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1495 * objc-lang.c (objc_language_data): Likewise.
1496 * opencl-lang.c (opencl_language_data): Likewise.
1497 * p-lang.c (pascal_language_data): Likewise.
1498 * parse.c (parse_exp_in_context): Update call to post_parser.
1499 (null_post_parser): Delete definition.
1500 * parser-defs.h (null_post_parser): Delete declaration.
1501 * rust-lang.c (rust_language_data): Delete la_post_parser
1502 initializer.
1503
1504 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1505
1506 * ada-lang.c (parse): Rename to ada_language::parser.
1507 (ada_language_data): Delete la_parser initializer.
1508 (ada_language::parser): New member function, implementation from
1509 parse.
1510 * c-lang.c (c_language_data): Delete la_parser initializer.
1511 (cplus_language_data): Likewise.
1512 (asm_language_data): Likewise.
1513 (minimal_language_data): Likewise.
1514 * d-lang.c (d_language_data): Likewise.
1515 (d_language::parser): New member function.
1516 * f-lang.c (f_language_data): Delete la_parser initializer.
1517 (f_language::parser): New member function.
1518 * go-lang.c (go_language_data): Delete la_parser initializer.
1519 (go_language::parser): New member function.
1520 * language.c (unk_lang_parser): Delete.
1521 (language_defn::parser): Define new member function.
1522 (unknown_language_data): Delete la_parser initializer.
1523 (unknown_language::parser): New member function.
1524 (auto_language_data): Delete la_parser initializer.
1525 (auto_language::parser): New member function.
1526 * language.h (language_data): Delete la_parser field.
1527 (language_defn::parser): Declare new member function.
1528 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1529 (m2_language::parser): New member function.
1530 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1531 * opencl-lang.c (opencl_language_data): Likewise.
1532 * p-lang.c (pascal_language_data): Likewise.
1533 (pascal_language::parser): New member function.
1534 * parse.c (parse_exp_in_context): Update call to parser.
1535 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1536 (rust_language::parser): New member function.
1537
1538 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1539
1540 * top.c (print_gdb_configuration): Print --with-python-libdir
1541 configuration value.
1542
1543 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1544
1545 * NEWS: Mention change to the alias command.
1546
1547 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1548
1549 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1550 (alias_command_completer)
1551 (make_alias_options_def_group): New functions.
1552 (alias_opts, alias_option_defs): New struct and array.
1553 (alias_usage_error): Update usage.
1554 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1555 Use option framework.
1556 (_initialize_cli_cmds): Update alias command help.
1557 Update aliases command help.
1558 (show_user):
1559 Add NULL for new default_args lookup_cmd argument.
1560 (valid_command_p): Rename to validate_aliased_command.
1561 Add NULL for new default_args lookup_cmd argument. Verify that the
1562 aliased_command has no default args.
1563 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1564 (lookup_cmd_1, lookup_cmd): New argument default_args.
1565 (add_alias_cmd):
1566 Add NULL for new default_args lookup_cmd argument.
1567 (print_help_for_command): Show default args under the layout
1568 alias some_alias = some_aliased_cmd some_alias_default_arg.
1569 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1570 xfree default_args in destructor.
1571 * cli/cli-script.c (process_next_line, do_define_command):
1572 Add NULL for new default_args lookup_cmd argument.
1573 * command.h: Declare new default_args argument in lookup_cmd
1574 and lookup_cmd_1.
1575 * completer.c (complete_line_internal_1):
1576 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1577 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1578 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1579 Likewise.
1580 * infcmd.c (_initialize_infcmd): Likewise.
1581 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1582 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1583 * python/py-param.c (add_setshow_generic): Likewise.
1584 * remote.c (_initialize_remote): Likewise.
1585 * top.c (execute_command): Prepend default_args if command has some.
1586 (set_verbose):
1587 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1588 * tracepoint.c (validate_actionline, encode_actions_1):
1589 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1590
1591 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1592
1593 * jit.c (jit_read_descriptor): Use bool as the return type.
1594 (jit_breakpoint_re_set_internal): Use bool as the return type.
1595 Invert the return value logic; return true if the jit breakpoint
1596 has been successfully initialized.
1597 (jit_inferior_init): Update the call to
1598 jit_breakpoint_re_set_internal.
1599
1600 2020-06-22 Pedro Alves <palves@redhat.com>
1601
1602 PR gdb/25939
1603 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1604 Use the current inferior instead. Don't return
1605 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1606 wait again.
1607 * sol-thread.c (sol_thread_target::wait): Don't reference
1608 inferior_ptid.
1609 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1610 (sol_update_thread_list_callback): Use the current inferior's pid
1611 instead of inferior_ptid.
1612
1613 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1614
1615 * procfs.c: Cleanup many comments.
1616
1617 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1618 (AFTER_WATCHFLAG): Replace by value.
1619
1620 (MAIN_PROC_NAME_FORMAT): Inline ...
1621 (create_procinfo): ... here.
1622
1623 (procfs_debug_inferior): Remove SYS_exec handling.
1624 (syscall_is_exec): Likewise.
1625 (procfs_set_exec_trap): Likewise.
1626
1627 (syscall_is_lwp_exit): Inline in callers.
1628 (syscall_is_exit): Likewise.
1629 (syscall_is_exec): Likewise.
1630 (syscall_is_lwp_create): Likewise.
1631
1632 (invalidate_cache): Remove #if 0 code.
1633
1634 (make_signal_thread_runnable): Remove.
1635 (procfs_target::resume): Remove #if 0 code.
1636
1637 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1638
1639 PR gdb/25939
1640 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1641 call ...
1642 (procfs_target::create_inferior): ... here.
1643
1644 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1645
1646 * exec.c (validate_exec_file): Ensure the build-id is up to
1647 date by calling reopen_exec_file (that checks file timestamp
1648 to decide to re-read the file).
1649
1650 2020-06-18 Pedro Alves <palves@redhat.com>
1651
1652 PR gdb/25412
1653 * gdbthread.h (delete_thread, delete_thread_silent)
1654 (find_thread_ptid): Update comments.
1655 * thread.c (current_thread_): New global.
1656 (is_current_thread): Move higher, and reimplement.
1657 (inferior_thread): Reimplement.
1658 (set_thread_exited): Use bool. Add assertions.
1659 (add_thread_silent): Simplify thread-reuse handling by always
1660 calling delete_thread.
1661 (delete_thread): Remove intro comment.
1662 (find_thread_ptid): Skip exited threads.
1663 (switch_to_thread_no_regs): Write to current_thread_.
1664 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1665 INFERIOR_PTID. Clear current_thread_.
1666
1667 2020-06-18 Pedro Alves <palves@redhat.com>
1668
1669 * aix-thread.c (pd_update): Use switch_to_thread.
1670
1671 2020-06-18 Pedro Alves <palves@redhat.com>
1672
1673 * ravenscar-thread.c (ravenscar_thread_target): Update.
1674 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1675 (ravenscar_thread_target::add_active_thread): ... this. Don't
1676 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1677 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1678
1679 2020-06-18 Pedro Alves <palves@redhat.com>
1680
1681 * nat/windows-nat.c (current_windows_thread): Remove.
1682 * nat/windows-nat.h (current_windows_thread): Remove.
1683 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1684 Adjust.
1685 (display_selectors): Adjust to fetch the current
1686 windows_thread_info based on inferior_ptid.
1687 (fake_create_process): No longer write to current_windows_thread.
1688 (windows_nat_target::get_windows_debug_event):
1689 Don't set inferior_ptid or current_windows_thread.
1690 (windows_nat_target::wait): Adjust to not rely on
1691 current_windows_thread.
1692 (do_initial_windows_stuff): Now a method of windows_nat_target.
1693 Switch to the last_ptid thread.
1694 (windows_nat_target::attach): Adjust.
1695 (windows_nat_target::detach): Use switch_to_no_thread instead of
1696 writing to inferior_ptid directly.
1697 (windows_nat_target::create_inferior): Adjust.
1698
1699 2020-06-18 Pedro Alves <palves@redhat.com>
1700
1701 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1702
1703 2020-06-18 Pedro Alves <palves@redhat.com>
1704
1705 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1706 after creating it, instead of writing to inferior_ptid. Don't
1707 write to inferior_ptid.
1708
1709 2020-06-18 Pedro Alves <palves@redhat.com>
1710
1711 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1712
1713 2020-06-18 Pedro Alves <palves@redhat.com>
1714
1715 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1716 it, instead of writing to inferior_ptid.
1717
1718 2020-06-18 Pedro Alves <palves@redhat.com>
1719
1720 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1721 to inferior_ptid.
1722
1723 2020-06-18 Pedro Alves <palves@redhat.com>
1724
1725 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1726 instead of writing to inferior_ptid directly.
1727
1728 2020-06-18 Pedro Alves <palves@redhat.com>
1729
1730 * corelow.c (core_target::close): Use switch_to_no_thread instead
1731 of writing to inferior_ptid directly.
1732 (add_to_thread_list, core_target_open): Use switch_to_thread
1733 instead of writing to inferior_ptid directly.
1734
1735 2020-06-18 Pedro Alves <palves@redhat.com>
1736
1737 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1738 inferior_ptid.
1739 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1740 inferior_ptid.
1741 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1742 inferior_ptid directly.
1743 (darwin_nat_target::init_thread_list): Switch to thread, instead
1744 of writing to inferior_ptid.
1745 (darwin_nat_target::attach): Don't write to inferior_ptid.
1746 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1747
1748 2020-06-18 Pedro Alves <palves@redhat.com>
1749
1750 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1751 thread.
1752 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1753 Instead use switch_to_thread.
1754 (gnu_nat_target::detach): Use switch_to_no_thread
1755 instead of writing to inferior_ptid directly. Used passed-in
1756 inferior instead of looking up the inferior by pid.
1757
1758 2020-06-18 Pedro Alves <palves@redhat.com>
1759
1760 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1761 inferior_ptid.
1762
1763 2020-06-18 Pedro Alves <palves@redhat.com>
1764
1765 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1766 inferior_ptid.
1767 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1768 thread.
1769 (nto_procfs_target::detach): Avoid referencing
1770 inferior_ptid. Use switch_to_no_thread instead of writing to
1771 inferior_ptid directly.
1772 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1773 instead of writing to inferior_ptid directly.
1774 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1775 to thread.
1776
1777 2020-06-18 Pedro Alves <palves@redhat.com>
1778
1779 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1780 after creating it, instead of writing to inferior_ptid.
1781 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1782 to inferior_ptid directly.
1783 (gdbsim_target::wait): Don't write to inferior_ptid.
1784
1785 2020-06-18 Pedro Alves <palves@redhat.com>
1786
1787 * remote.c (remote_target::remote_notice_new_inferior): Use
1788 switch_to_thread instead of writing to inferior_ptid directly.
1789 (remote_target::add_current_inferior_and_thread): Use
1790 switch_to_no_thread instead of writing to inferior_ptid directly.
1791 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1792 and switch_to_thread instead of using set_current_inferior or
1793 writing to inferior_ptid directly.
1794
1795 2020-06-18 Pedro Alves <palves@redhat.com>
1796
1797 * tracectf.c (ctf_target_open): Switch to added thread instead of
1798 writing to inferior_ptid directly.
1799 (ctf_target::close): Use switch_to_no_thread instead of writing to
1800 inferior_ptid directly.
1801
1802 2020-06-18 Pedro Alves <palves@redhat.com>
1803
1804 * tracefile-tfile.c (tfile_target_open): Don't write to
1805 inferior_ptid directly, instead switch to added thread.
1806 (tfile_target::close): Use switch_to_no_thread instead of writing
1807 to inferior_ptid directly.
1808
1809 2020-06-18 Pedro Alves <palves@redhat.com>
1810
1811 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1812 (procfs_target::detach): Use switch_to_no_thread
1813 instead of writing to inferior_ptid directly.
1814 (do_attach): Change return type to void. Switch to the added
1815 thread.
1816 (procfs_target::create_inferior): Switch to the added thread.
1817 (procfs_do_thread_registers): Don't write to inferior_ptid.
1818
1819 2020-06-18 Pedro Alves <palves@redhat.com>
1820
1821 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1822 of writing to inferior_ptid.
1823 (scoped_restore_exited_inferior): Delete.
1824 (handle_vfork_child_exec_or_exit): Simplify using
1825 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1826 instead of writing to inferior_ptid.
1827 (THREAD_STOPPED_BY): Delete.
1828 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1829 (thread_stopped_by_hw_breakpoint): Delete.
1830 (save_waitstatus): Use
1831 scoped_restore_current_thread+switch_to_thread, and call
1832 target_stopped_by_watchpoint instead of
1833 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1834 instead of thread_stopped_by_sw_breakpoint, and
1835 target_stopped_by_hw_breakpoint instead of
1836 thread_stopped_by_hw_breakpoint.
1837 (handle_inferior_event)
1838 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1839 inferior_ptid directly, nor
1840 set_current_inferior/set_current_program_space. Use
1841 switch_to_thread / switch_to_inferior_no_thread instead.
1842
1843 2020-06-18 Pedro Alves <palves@redhat.com>
1844
1845 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1846 instead of writing to inferior_ptid.
1847
1848 2020-06-18 Pedro Alves <palves@redhat.com>
1849
1850 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1851 added thread.
1852 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1853 to the added thread.
1854 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1855 instead of writing to inferior_ptid.
1856
1857 2020-06-18 Pedro Alves <palves@redhat.com>
1858
1859 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1860 (register_to_value_test): Mock a program_space too. Heap-allocate
1861 the address space. Don't write to inferior_ptid. Use
1862 switch_to_thread instead.
1863
1864 2020-06-18 Pedro Alves <palves@redhat.com>
1865
1866 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1867 Delete.
1868 (find_signalled_thread()): New, factored out from
1869 linux_make_corefile_notes and adjusted to handle exited threads.
1870 (linux_make_corefile_notes): Adjust to use the new
1871 find_signalled_thread.
1872
1873 2020-06-18 Pedro Alves <palves@redhat.com>
1874
1875 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1876 of saving/restoring inferior_ptid.
1877
1878 2020-06-17 Tom Tromey <tom@tromey.com>
1879
1880 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1881 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1882 declare.
1883 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1884
1885 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1886
1887 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1888 of partial symtabs.
1889
1890 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1891
1892 * regformats/reg-arm.dat: Remove.
1893 * regformats/reg-bfin.dat: Remove.
1894 * regformats/reg-cris.dat: Remove.
1895 * regformats/reg-crisv32.dat: Remove.
1896 * regformats/reg-m32r.dat: Remove.
1897 * regformats/reg-tilegx.dat: Remove.
1898 * regformats/reg-tilegx32.dat: Remove.
1899
1900 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1901
1902 * features/Makefile (WHICH): Remove arm files.
1903 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1904 * regformats/arm/arm-with-neon.dat: Remove.
1905 * regformats/arm/arm-with-vfpv2.dat: Remove.
1906 * regformats/arm/arm-with-vfpv3.dat: Remove.
1907
1908 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1909
1910 * features/Makefile (XMLTOC): Remove rx.xml.
1911
1912 2020-06-17 Pedro Alves <palves@redhat.com>
1913
1914 * gdbthread.h (thread_control_state) <trap_expected> Update
1915 comments.
1916
1917 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1918
1919 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1920 ada_language::lookup_symbol_nonlocal.
1921 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1922 (ada_language::lookup_symbol_nonlocal): New member function,
1923 implementation from ada_lookup_symbol_nonlocal.
1924 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1925 initializer.
1926 (cplus_language_data): Delete la_lookup_symbol_nonlocal
1927 initializer.
1928 (cplus_language::lookup_symbol_nonlocal): New member function.
1929 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
1930 (minimal_language_data) Likewise.
1931 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
1932 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
1933 initializer.
1934 (d_language::lookup_symbol_nonlocal): New member function.
1935 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
1936 initializer.
1937 (f_language::lookup_symbol_nonlocal): New member function.
1938 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
1939 initializer.
1940 * language.c (unknown_language_data): Likewise.
1941 (auto_language_data): Likewise.
1942 * language.h (language_data): Delete la_lookup_symbol_nonlocal
1943 field.
1944 (language_defn::lookup_symbol_nonlocal): New member function.
1945 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
1946 initializer.
1947 * objc-lang.c (objc_language_data): Likewise.
1948 * opencl-lang.c (opencl_language_data): Likewise.
1949 * p-lang.c (pascal_language_data): Likewise.
1950 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
1951 rust_language::lookup_symbol_nonlocal.
1952 (rust_language_data): Delete la_lookup_symbol_nonlocal
1953 initializer.
1954 (rust_language::lookup_symbol_nonlocal): New member function,
1955 implementation from rust_lookup_symbol_nonlocal.
1956 * symtab.c (lookup_symbol_aux): Update call to
1957 lookup_symbol_nonlocal.
1958 (basic_lookup_symbol_nonlocal): Rename to...
1959 (language_defn::lookup_symbol_nonlocal): ...this, and update
1960 header comment. Remove language_defn parameter, and replace with
1961 uses of `this'.
1962 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
1963
1964 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * ada-lang.c (ada_language_data): Delete la_value_print_inner
1967 initializer.
1968 (ada_language::value_print_inner): New member function.
1969 * c-lang.c (c_language_data): Delete la_value_print_inner
1970 initializer.
1971 (cplus_language_data): Likewise.
1972 (asm_language_data): Likewise.
1973 (minimal_language_data): Likewise.
1974 * d-lang.c (d_language_data): Likewise.
1975 (d_language::value_print_inner): New member function.
1976 * f-lang.c (f_language_data): Delete la_value_print_inner
1977 initializer.
1978 (f_language::value_print_inner): New member function.
1979 * f-lang.h (f_value_print_innner): Rename to...
1980 (f_value_print_inner): ...this (note spelling of 'inner').
1981 * f-valprint.c (f_value_print_innner): Rename to...
1982 (f_value_print_inner): ...this (note spelling of 'inner').
1983 * go-lang.c (go_language_data): Delete la_value_print_inner
1984 initializer.
1985 (go_language::value_print_inner): New member function.
1986 * language.c (language_defn::value_print_inner): Define new member
1987 function.
1988 (unk_lang_value_print_inner): Delete.
1989 (unknown_language_data): Delete la_value_print_inner initializer.
1990 (unknown_language::value_print_inner): New member function.
1991 (auto_language_data): Delete la_value_print_inner initializer.
1992 (auto_language::value_print_inner): New member function.
1993 * language.h (language_data): Delete la_value_print_inner field.
1994 (language_defn::value_print_inner): Delcare new member function.
1995 * m2-lang.c (m2_language_data): Delete la_value_print_inner
1996 initializer.
1997 (m2_language::value_print_inner): New member function.
1998 * objc-lang.c (objc_language_data): Delete la_value_print_inner
1999 initializer.
2000 * opencl-lang.c (opencl_language_data): Likewise.
2001 * p-lang.c (pascal_language_data): Likewise.
2002 (pascal_language::value_print_inner): New member function.
2003 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2004 initializer.
2005 (rust_language::value_print_inner): New member function.
2006 * valprint.c (do_val_print): Update call to value_print_inner.
2007
2008 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2009
2010 * ada-lang.c (ada_language_data): Delete la_value_print
2011 initializer.
2012 (ada_language::value_print): New member function.
2013 * c-lang.c (c_language_data): Delete la_value_print initializer.
2014 (cplus_language_data): Likewise.
2015 (asm_language_data): Likewise.
2016 (minimal_language_data): Likewise.
2017 * d-lang.c (d_language_data): Likewise.
2018 * f-lang.c (f_language_data): Likewise.
2019 * go-lang.c (go_language_data): Likewise.
2020 * language.c (unk_lang_value_print): Delete.
2021 (language_defn::value_print): Define new member function.
2022 (unknown_language_data): Delete la_value_print initializer.
2023 (unknown_language::value_print): New member function.
2024 (auto_language_data): Delete la_value_print initializer.
2025 (auto_language::value_print): New member function.
2026 * language.h (language_data): Delete la_value_print field.
2027 (language_defn::value_print): Declare new member function.
2028 (LA_VALUE_PRINT): Update call to value_print.
2029 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2030 * objc-lang.c (objc_language_data): Likewise.
2031 * opencl-lang.c (opencl_language_data): Likewise.
2032 * p-lang.c (pascal_language_data): Likewise.
2033 (pascal_language::value_print): New member function.
2034 * rust-lang.c (rust_language_data): Delete la_value_print
2035 initializer.
2036
2037 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2038
2039 * ada-lang.c (ada_watch_location_expression): Rename to
2040 ada_language::watch_location_expression.
2041 (ada_language_data): Delete la_watch_location_expression
2042 initializer.
2043 (ada_language::watch_location_expression): New member function,
2044 implementation from ada_watch_location_expression.
2045 * breakpoint.c (watch_command_1): Update call to
2046 watch_location_expression.
2047 * c-lang.c (c_watch_location_expression): Rename to
2048 language_defn::watch_location_expression.
2049 (c_language_data): Delete la_watch_location_expression
2050 initializer.
2051 (cplus_language_data): Likewise.
2052 (asm_language_data): Likewise.
2053 (minimal_language_data): Likewise.
2054 * c-lang.h (c_watch_location_expression): Delete declaration.
2055 * d-lang.c (d_language_data): Delete la_watch_location_expression
2056 initializer.
2057 * f-lang.c (f_language_data): Likewise.
2058 * go-lang.c (go_language_data): Likewise.
2059 * language.c (language_defn::watch_location_expression): Member
2060 function implementation from c_watch_location_expression.
2061 (unknown_language_data): Delete la_watch_location_expression
2062 initializer.
2063 (auto_language_data): Likewise.
2064 * language.h (language_data): Delete la_watch_location_expression
2065 field.
2066 (language_defn::watch_location_expression): Declare new member
2067 function.
2068 * m2-lang.c (m2_language_data): Delete
2069 la_watch_location_expression initializer.
2070 * objc-lang.c (objc_language_data): Likewise.
2071 * opencl-lang.c (opencl_language_data): Likewise.
2072 * p-lang.c (pascal_language_data): Likewise.
2073 * rust-lang.c (rust_watch_location_expression): Rename to
2074 rust_language::watch_location_expression.
2075 (rust_language_data): Delete la_watch_location_expression
2076 initializer.
2077 (rust_language::watch_location_expression): New member function,
2078 implementation from rust_watch_location_expression.
2079
2080 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2081
2082 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2083 ada_language::collect_symbol_completion_matches.
2084 (ada_language_data): Delete la_collect_symbol_completion_matches
2085 initializer.
2086 (ada_language::collect_symbol_completion_matches): New member
2087 function, implementation from
2088 ada_collect_symbol_completion_matches.
2089 * c-lang.c (c_language_data): Delete
2090 la_collect_symbol_completion_matches initializer.
2091 (cplus_language_data): Likewise.
2092 (asm_language_data): Likewise.
2093 (minimal_language_data): Likewise.
2094 * d-lang.c (d_language_data): Likewise.
2095 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2096 f_language::collect_symbol_completion_matches.
2097 (f_language_data): Delete la_collect_symbol_completion_matches
2098 initializer.
2099 (f_language::collect_symbol_completion_matches) New member
2100 function, implementation from f_collect_symbol_completion_matches.
2101 * go-lang.c (go_language_data): Delete
2102 la_collect_symbol_completion_matches initializer.
2103 * language.c (unknown_language_data): Likewise.
2104 (auto_language_data): Likewise.
2105 * language.h (language_data): Delete
2106 la_collect_symbol_completion_matches field.
2107 (language_defn::collect_symbol_completion_matches): New member
2108 function.
2109 * m2-lang.c (m2_language_data): Delete
2110 la_collect_symbol_completion_matches initializer.
2111 * objc-lang.c (objc_language_data): Likewise.
2112 * opencl-lang.c (opencl_language_data): Likewise.
2113 * p-lang.c (pascal_language_data): Likewise.
2114 * rust-lang.c (rust_language_data): Likewise.
2115 * symtab.c (default_collect_symbol_completion_matches): Delete.
2116 (collect_symbol_completion_matches): Update call to
2117 collect_symbol_completion_matches.
2118 (collect_symbol_completion_matches_type): Likewise.
2119 * symtab.h (default_collect_symbol_completion_matches): Delete
2120 declaration.
2121
2122 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2125 (ada_language_data): Delete la_word_break_characters initializer.
2126 (ada_language::word_break_characters): New member function.
2127 * c-lang.c (c_language_data): Delete la_word_break_characters
2128 initializer.
2129 (cplus_language_data): Likewise.
2130 (asm_language_data): Likewise.
2131 (minimal_language_data): Likewise.
2132 * completer.c: Update global comment.
2133 (advance_to_expression_complete_word_point): Update call to
2134 word_break_characters.
2135 (complete_files_symbols): Likewise.
2136 (complete_line_internal_1): Likewise.
2137 (default_completer_handle_brkchars): Likewise.
2138 (skip_quoted_chars): Likewise.
2139 * d-lang.c (d_language_data): Delete la_word_break_characters
2140 initializer.
2141 * f-lang.c (f_word_break_characters): Delete.
2142 (f_language_data): Delete la_word_break_characters initializer.
2143 (f_language::word_break_characters): New member function.
2144 * go-lang.c (go_language_data): Delete la_word_break_characters
2145 initializer.
2146 * language.c (unknown_language_data): Likewise.
2147 (auto_language_data): Likewise.
2148 * language.h (default_word_break_characters): Move declaration to
2149 earlier in the file.
2150 (language_data): Delete la_word_break_characters field.
2151 (language_defn::word_break_characters): New member function.
2152 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2153 initializer.
2154 * objc-lang.c (objc_language_data): Likewise.
2155 * opencl-lang.c (opencl_language_data): Likewise.
2156 * p-lang.c (pascal_language_data): Likewise.
2157 * rust-lang.c (rust_language_data): Likewise.
2158
2159 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2160
2161 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2162 (ada_language_data): Delete la_get_symbol_name_matcher
2163 initializer.
2164 (language_defn::get_symbol_name_matcher_inner): New member
2165 function.
2166 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2167 initializer.
2168 (cplus_language_data): Likewise.
2169 (cplus_language::get_symbol_name_matcher_inner): New member
2170 function.
2171 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2172 (minimal_language_data): Likewise.
2173 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2174 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2175 initializer.
2176 * dictionary.c (iter_match_first_hashed): Update call to
2177 get_symbol_name_matcher.
2178 (iter_match_next_hashed): Likewise.
2179 (iter_match_next_linear): Likewise.
2180 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2181 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2182 initializer.
2183 (f_language::get_symbol_name_matcher_inner): New member function.
2184 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2185 initializer.
2186 * language.c (default_symbol_name_matcher): Update header comment,
2187 make static.
2188 (language_defn::get_symbol_name_matcher): New definition.
2189 (language_defn::get_symbol_name_matcher_inner): Likewise.
2190 (get_symbol_name_matcher): Delete.
2191 (unknown_language_data): Delete la_get_symbol_name_matcher
2192 initializer.
2193 (auto_language_data): Likewise.
2194 * language.h (language_data): Delete la_get_symbol_name_matcher
2195 field.
2196 (language_defn::get_symbol_name_matcher): New member function.
2197 (language_defn::get_symbol_name_matcher_inner): Likewise.
2198 (default_symbol_name_matcher): Delete declaration.
2199 * linespec.c (find_methods): Update call to
2200 get_symbol_name_matcher.
2201 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2202 initializer.
2203 * minsyms.c (lookup_minimal_symbol): Update call to
2204 get_symbol_name_matcher.
2205 (iterate_over_minimal_symbols): Likewise.
2206 * objc-lang.c (objc_language_data): Delete
2207 la_get_symbol_name_matcher initializer.
2208 * opencl-lang.c (opencl_language_data): Likewise.
2209 * p-lang.c (pascal_language_data): Likewise.
2210 * psymtab.c (psymbol_name_matches): Update call to
2211 get_symbol_name_matcher.
2212 * rust-lang.c (rust_language_data): Delete
2213 la_get_symbol_name_matcher initializer.
2214 * symtab.c (symbol_matches_search_name): Update call to
2215 get_symbol_name_matcher.
2216 (compare_symbol_name): Likewise.
2217
2218 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2219
2220 * ada-lang.c (ada_language_data): Delete la_compute_program
2221 initializer.
2222 * c-lang.c (c_language_data): Likewise.
2223 (c_language::compute_program): New member function.
2224 (cplus_language_data): Delete la_compute_program initializer.
2225 (cplus_language::compute_program): New member function.
2226 (asm_language_data): Delete la_compute_program initializer.
2227 (minimal_language_data): Likewise.
2228 * c-lang.h (c_compute_program): Update comment.
2229 (cplus_compute_program): Likewise.
2230 * compile/compile-c-support.c (c_compute_program): Likewise.
2231 (cplus_compute_program): Likewise.
2232 * compile/compile.c (compile_to_object): Update call to
2233 la_compute_program.
2234 * d-lang.c (d_language_data): Delete la_compute_program
2235 initializer.
2236 * f-lang.c (f_language_data): Likewise.
2237 * go-lang.c (go_language_data): Likewise.
2238 * language.c (unknown_language_data): Likewise.
2239 (auto_language_data): Likewise.
2240 * language.h (language_data): Delete la_compute_program field.
2241 (language_defn::compute_program): New member function.
2242 * m2-lang.c (m2_language_data): Delete la_compute_program
2243 initializer.
2244 * objc-lang.c (objc_language_data): Likewise.
2245 * opencl-lang.c (opencl_language_data): Likewise.
2246 * p-lang.c (pascal_language_data): Likewise.
2247 * rust-lang.c (rust_language_data): Likewise.
2248
2249 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2250
2251 * ada-lang.c (ada_language_data) Delete
2252 la_class_name_from_physname initializer.
2253 * c-lang.c (c_language_data): Likewise.
2254 (cplus_language_data): Likewise.
2255 (cplus_language::class_name_from_physname): New member function.
2256 (asm_language_data): Delete la_class_name_from_physname
2257 initializer.
2258 (minimal_language_data): Likewise.
2259 * d-lang.c (d_language_data): Likewise.
2260 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2261 method on language_defn class.
2262 (guess_full_die_structure_name): Likewise.
2263 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2264 initializer.
2265 * go-lang.c (go_language_data): Likewise.
2266 * language.c (language_class_name_from_physname): Delete.
2267 (unk_lang_class_name): Delete.
2268 (unknown_language_data): Delete la_class_name_from_physname
2269 initializer.
2270 (auto_language_data): Likewise.
2271 * language.h (language_data): Delete la_class_name_from_physname
2272 field.
2273 (language_defn::class_name_from_physname): New function.
2274 (language_class_name_from_physname): Delete declaration.
2275 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2276 initializer.
2277 * objc-lang.c (objc_language_data): Likewise.
2278 * opencl-lang.c (opencl_language_data): Likewise.
2279 * p-lang.c (pascal_language_data): Likewise.
2280 * rust-lang.c (rust_language_data): Likewise.
2281
2282 2020-06-16 Tom Tromey <tom@tromey.com>
2283
2284 * tui/tui-data.h (STATUS_NAME): New macro.
2285 * tui/tui-layout.c (tui_remove_some_windows)
2286 (initialize_known_windows, tui_register_window)
2287 (tui_layout_split::remove_windows, initialize_layouts)
2288 (tui_new_layout_command): Don't use hard-coded window names.
2289
2290 2020-06-16 Tom Tromey <tom@tromey.com>
2291
2292 PR tui/25348:
2293 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2294 tui_initialize_readline. Only run once. Call rl_initialize.
2295 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2296 tui_initialize_readline.
2297 * tui/tui-io.c (tui_setup_io): Call
2298 tui_ensure_readline_initialized.
2299 * tui/tui-interp.c (tui_interp::init): Update.
2300
2301 2020-06-16 Tom Tromey <tom@tromey.com>
2302
2303 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2304 Also preserve the status window.
2305
2306 2020-06-16 Tom Tromey <tom@tromey.com>
2307
2308 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2309 where m_window==nullptr.
2310
2311 2020-06-15 Tom Tromey <tromey@adacore.com>
2312
2313 * windows-nat.c (windows_nat::handle_output_debug_string):
2314 Update.
2315 (windows_nat::handle_ms_vc_exception): Update.
2316 * target.h (target_read_string): Change API.
2317 * target.c (target_read_string): Change API.
2318 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2319 Update.
2320 * solib-frv.c (frv_current_sos): Update.
2321 * solib-dsbt.c (dsbt_current_sos): Update.
2322 * solib-darwin.c (darwin_current_sos): Update.
2323 * linux-thread-db.c (inferior_has_bug): Update.
2324 * expprint.c (print_subexp_standard): Update.
2325 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2326 (ada_exception_message_1): Update.
2327
2328 2020-06-15 Tom Tromey <tromey@adacore.com>
2329
2330 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2331
2332 2020-06-15 Tom Tromey <tromey@adacore.com>
2333
2334 * valprint.c (read_string): Update comment.
2335 * target.c (MIN): Remove.
2336 (target_read_string): Rewrite.
2337
2338 2020-06-15 Tom Tromey <tromey@adacore.com>
2339
2340 * corefile.c (read_memory_string): Remove.
2341 * ada-valprint.c (ada_value_print_ptr): Update.
2342 * ada-lang.h (ada_tag_name): Change return type.
2343 * ada-lang.c (type_from_tag): Update.
2344 (ada_tag_name_from_tsd): Change return type. Use
2345 target_read_string.
2346 (ada_tag_name): Likewise.
2347 * gdbcore.h (read_memory_string): Don't declare.
2348
2349 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2350
2351 * symtab.c (rbreak_command): Ignore Windows drive colon.
2352
2353 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2354
2355 * NEWS: Mention removed GDBserver host support.
2356
2357 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2358
2359 * features/riscv/rebuild-csr-xml.sh: Updated.
2360
2361 2020-06-11 Tom Tromey <tom@tromey.com>
2362
2363 PR gdb/18318:
2364 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2365
2366 2020-06-09 Jonny Grant <jg@jguk.org>
2367 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2368
2369 * main.c (captured_main_1): Don't print new line after help.
2370 (print_gdb_help): add mailing list and IRC channel information
2371 to --help. Add new lines between items in the footer. Remove
2372 quotes around bug url.
2373
2374 2020-06-11 Keith Seitz <keiths@redhat.com>
2375
2376 PR gdb/21356
2377 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2378 Resolve typedefs for type length calculations.
2379
2380 2020-06-10 Tom de Vries <tdevries@suse.de>
2381
2382 PR ada/24713
2383 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2384 (write_psymbols): Enable .gdb_index for ada.
2385 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2386 ada.
2387
2388 2020-06-10 Tom de Vries <tdevries@suse.de>
2389
2390 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2391 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2392 namei" instead of "const char *name" argument.
2393 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2394 dw2_symtab_iter_init.
2395
2396 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2397
2398 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2399 to use type::field and field::type instead.
2400
2401 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2402
2403 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2404 to use field::type instead.
2405
2406 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2407
2408 * gdbtypes.h (struct field) <type, set_type>: New methods.
2409 Rename `type` field to...
2410 <m_type>: ... this. Change references throughout to use type or
2411 set_type methods.
2412 (FIELD_TYPE): Use field::type. Change call sites that modify
2413 the field's type to use field::set_type instead.
2414
2415 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2416
2417 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2418 to use type::index_type instead.
2419
2420 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2421
2422 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2423 methods.
2424 (TYPE_INDEX_TYPE): Use type::index_type.
2425 * gdbtypes.c (create_array_type_with_stride): Likewise.
2426
2427 2020-06-07 Tom Tromey <tom@tromey.com>
2428
2429 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2430 parameter.
2431 (generic_value_print): Update.
2432
2433 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2434
2435 Revert commit 982a38f60b0.
2436 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2437
2438 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2439
2440 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2441 avoid use after free.
2442
2443 2020-06-05 Tom de Vries <tdevries@suse.de>
2444
2445 * NEWS: Fix typos.
2446
2447 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2448
2449 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2450 the per_bfd object.
2451 (dwarf2_read_debug_names): Likewise.
2452 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2453 object when re-using a per_bfd object with an index.
2454
2455 2020-06-03 Tom de Vries <tdevries@suse.de>
2456
2457 PR symtab/26046
2458 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2459 children for C++.
2460 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2461 DW_TAG_subprogram.
2462
2463 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2464
2465 * ada-lang.c (ada_language_data): Delete skip_trampoline
2466 initializer.
2467 * c-lang.c (c_language_data): Likewise.
2468 (cplus_language_data): Likewise.
2469 (cplus_language::skip_trampoline): New member function.
2470 (asm_language_data): Delete skip_trampoline initializer.
2471 (minimal_language_data): Likewise.
2472 * d-lang.c (d_language_data): Likewise.
2473 * f-lang.c (f_language_data): Likewise.
2474 * go-lang.c (go_language_data): Likewise.
2475 * language.c (unk_lang_trampoline): Delete function.
2476 (skip_language_trampoline): Update.
2477 (unknown_language_data): Delete skip_trampoline initializer.
2478 (auto_language_data): Likewise.
2479 * language.h (language_data): Delete skip_trampoline field.
2480 (language_defn::skip_trampoline): New function.
2481 * m2-lang.c (m2_language_data): Delete skip_trampoline
2482 initializer.
2483 * objc-lang.c (objc_skip_trampoline): Delete function, move
2484 implementation to objc_language::skip_trampoline.
2485 (objc_language_data): Delete skip_trampoline initializer.
2486 (objc_language::skip_trampoline): New member function with
2487 implementation from objc_skip_trampoline.
2488 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2489 initializer.
2490 * p-lang.c (pascal_language_data): Likewise.
2491 * rust-lang.c (rust_language_data): Likewise.
2492
2493 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2494
2495 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2496 (ada_language::demangle): New member function.
2497 * c-lang.c (c_language_data): Delete la_demangle initializer.
2498 (cplus_language_data): Delete la_demangle initializer.
2499 (cplus_language::demangle): New member function.
2500 (asm_language_data): Delete la_demangle initializer.
2501 (minimal_language_data): Delete la_demangle initializer.
2502 * d-lang.c (d_language_data): Delete la_demangle initializer.
2503 (d_language::demangle): New member function.
2504 * f-lang.c (f_language_data): Delete la_demangle initializer.
2505 (f_language::demangle): New member function.
2506 * go-lang.c (go_language_data): Delete la_demangle initializer.
2507 (go_language::demangle): New member function.
2508 * language.c (language_demangle): Update.
2509 (unk_lang_demangle): Delete.
2510 (unknown_language_data): Delete la_demangle initializer.
2511 (unknown_language::demangle): New member function.
2512 (auto_language_data): Delete la_demangle initializer.
2513 (auto_language::demangle): New member function.
2514 * language.h (language_data): Delete la_demangle field.
2515 (language_defn::demangle): New function.
2516 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2517 * objc-lang.c (objc_language_data): Delete la_demangle
2518 initializer.
2519 (objc_language::demangle): New member function.
2520 * opencl-lang.c (opencl_language_data): Delete la_demangle
2521 initializer.
2522 * p-lang.c (pascal_language_data): Likewise.
2523 * rust-lang.c (rust_language_data): Likewise.
2524 (rust_language::demangle): New member function.
2525
2526 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2527
2528 * ada-lang.c (ada_language_data): Delete la_print_type
2529 initializer.
2530 (ada_language::print_type): New member function.
2531 * c-lang.c (c_language_data): Delete la_print_type initializer.
2532 (c_language::print_type): New member function.
2533 (cplus_language_data): Delete la_print_type initializer.
2534 (cplus_language::print_type): New member function.
2535 (asm_language_data): Delete la_print_type initializer.
2536 (asm_language::print_type): New member function.
2537 (minimal_language_data): Delete la_print_type initializer.
2538 (minimal_language::print_type): New member function.
2539 * d-lang.c (d_language_data): Delete la_print_type initializer.
2540 (d_language::print_type): New member function.
2541 * f-lang.c (f_language_data): Delete la_print_type initializer.
2542 (f_language::print_type): New member function.
2543 * go-lang.c (go_language_data): Delete la_print_type initializer.
2544 (go_language::print_type): New member function.
2545 * language.c (unk_lang_print_type): Delete.
2546 (unknown_language_data): Delete la_print_type initializer.
2547 (unknown_language::print_type): New member function.
2548 (auto_language_data): Delete la_print_type initializer.
2549 (auto_language::print_type): New member function.
2550 * language.h (language_data): Delete la_print_type field.
2551 (language_defn::print_type): New function.
2552 (LA_PRINT_TYPE): Update.
2553 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2554 (m2_language::print_type): New member function.
2555 * objc-lang.c (objc_language_data): Delete la_print_type
2556 initializer.
2557 (objc_language::print_type): New member function.
2558 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2559 to opencl_language::print_type.
2560 (opencl_language_data): Delete la_print_type initializer.
2561 (opencl_language::print_type): New member function, implementation
2562 from opencl_print_type.
2563 * p-lang.c (pascal_language_data): Delete la_print_type
2564 initializer.
2565 (pascal_language::print_type): New member function.
2566 * rust-lang.c (rust_print_type): Delete, implementation moved to
2567 rust_language::print_type.
2568 (rust_language_data): Delete la_print_type initializer.
2569 (rust_language::print_type): New member function, implementation
2570 from rust_print_type.
2571
2572 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2573
2574 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2575 implementation moves to...
2576 (ada_language::sniff_from_mangled_name): ...here. Update return
2577 type.
2578 (ada_language_data): Delete la_sniff_from_mangled_name
2579 initializer.
2580 * c-lang.c (c_language_data): Likewise.
2581 (cplus_language_data): Likewise.
2582 (cplus_language::sniff_from_mangled_name): New member function,
2583 implementation taken from gdb_sniff_from_mangled_name.
2584 (asm_language_data): Delete la_sniff_from_mangled_name
2585 initializer.
2586 (minimal_language_data): Likewise.
2587 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2588 implementation moves to cplus_language::sniff_from_mangled_name.
2589 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2590 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2591 moves to...
2592 (d_language::sniff_from_mangled_name): ...here.
2593 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2594 * f-lang.c (f_language_data): Likewise.
2595 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2596 moves to...
2597 (go_language::sniff_from_mangled_name): ...here.
2598 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2599 * language.c (language_sniff_from_mangled_name): Delete.
2600 (unknown_language_data): Delete la_sniff_from_mangled_name
2601 initializer.
2602 (auto_language_data): Likewise.
2603 * language.h (language_data): Delete la_sniff_from_mangled_name
2604 field.
2605 (language_defn::sniff_from_mangled_name): New function.
2606 (language_sniff_from_mangled_name): Delete declaration.
2607 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2608 field.
2609 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2610 implementation moves to...
2611 (objc_language::sniff_from_mangled_name): ...here.
2612 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2613 * opencl-lang.c (opencl_language_data): Likewise.
2614 * p-lang.c (pascal_language_data): Likewise.
2615 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2616 implementation moves to...
2617 (rust_language::sniff_from_mangled_name): ...here.
2618 (rust_language_data): Delete la_sniff_from_mangled_name
2619 initializer.
2620 * symtab.c (symbol_find_demangled_name): Call
2621 sniff_from_mangled_name member function.
2622
2623 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2624
2625 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2626 initializer.
2627 * c-lang.c (c_language_data): Likewise.
2628 (cplus_language_data): Likewise.
2629 (cplus_language::search_name_hash): New member function.
2630 (asm_language_data): Delete la_search_name_hash initializer.
2631 (minimal_language_data): Likewise.
2632 * d-lang.c (d_language_data): Likewise.
2633 * dictionary.c (default_search_name_hash): Rename to...
2634 (language_defn::search_name_hash): ...this.
2635 * f-lang.c (f_language_data): Likewise.
2636 (f_language::search_name_hash): New member function.
2637 * go-lang.c (go_language_data): Delete la_search_name_hash
2638 initializer.
2639 * language.c (unknown_language_data): Likewise.
2640 (auto_language_data): Likewise.
2641 * language.h (struct language_data): Delete la_search_name_hash
2642 field.
2643 (language_defn::search_name_hash): Declare new member function.
2644 (default_search_name_hash): Delete declaration.
2645 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2646 initializer.
2647 * objc-lang.c (objc_language_data): Likewise.
2648 * opencl-lang.c (opencl_language_data): Likewise.
2649 * p-lang.c (pascal_language_data): Likewise.
2650 * rust-lang.c (rust_language_data): Likewise.
2651 * symtab.c (search_name_hash): Update call.
2652
2653 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2654
2655 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2656 initializer.
2657 * c-lang.c (class compile_instance): Declare.
2658 (c_language_data): Delete la_get_compile_instance initializer.
2659 (c_language::get_compile_instance): New member function.
2660 (cplus_language_data): Delete la_get_compile_instance initializer.
2661 (cplus_language::get_compile_instance): New member function.
2662 (asm_language_data): Delete la_get_compile_instance initializer.
2663 (minimal_language_data): Likewise.
2664 * c-lang.h (c_get_compile_context): Update comment.
2665 (cplus_get_compile_context): Update comment.
2666 * compile/compile.c (compile_to_object): Update calls, don't rely
2667 on function pointer being NULL.
2668 * d-lang.c (d_language_data): Delete la_get_compile_instance
2669 initializer.
2670 * f-lang.c (f_language_data): Likewise.
2671 * go-lang.c (go_language_data): Likewise.
2672 * language.c (unknown_language_data): Likewise.
2673 (auto_language_data): Likewise.
2674 * language.h (language_data): Delete la_get_compile_instance field.
2675 (language_defn::get_compile_instance): New member function.
2676 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2677 initializer.
2678 * objc-lang.c (objc_language_data): Likewise.
2679 * opencl-lang.c (opencl_language_data): Likewise.
2680 * p-lang.c (pascal_language_data): Likewise.
2681 * rust-lang.c (rust_language_data): Likewise.
2682
2683 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2684
2685 * ada-lang.c (ada_add_all_symbols): Update comment.
2686 (ada_iterate_over_symbols): Delete, move implementation to...
2687 (ada_language::iterate_over_symbols): ...here, a new member
2688 function, rewrite to use range based for loop.
2689 (ada_language_data): Delete la_iterate_over_symbols initializer.
2690 * c-lang.c (c_language_data): Likewise.
2691 (cplus_language_data): Likewise.
2692 (asm_language_data): Likewise.
2693 (minimal_language_data): Likewise.
2694 * d-lang.c (d_language_data): Likewise.
2695 * f-lang.c (f_language_data): Likewise.
2696 * go-lang.c (go_language_data): Likewise.
2697 * language.c (unknown_language_data): Likewise.
2698 (auto_language_data): Likewise.
2699 * language.h (language_data): Delete la_iterate_over_symbols field.
2700 (language_defn::iterate_over_symbols): New member function.
2701 (LA_ITERATE_OVER_SYMBOLS): Update.
2702 * linespec.c (iterate_over_all_matching_symtabs): Update.
2703 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2704 initializer.
2705 * objc-lang.c (objc_language_data): Likewise.
2706 * opencl-lang.c (opencl_language_data): Likewise.
2707 * p-lang.c (pascal_language_data): Likewise.
2708 * rust-lang.c (rust_language_data): Likewise.
2709
2710 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2711
2712 * ada-lang.c (ada_language_data): Delete
2713 la_lookup_transparent_type initializer.
2714 * c-lang.c (c_language_data): Likewise.
2715 (cplus_language_data): Likewise.
2716 (cplus_language::lookup_transparent_type): New member function.
2717 (asm_language_data): Delete la_lookup_transparent_type
2718 initializer.
2719 (minimal_language_data): Likewise.
2720 * d-lang.c (d_language_data): Likewise.
2721 * f-lang.c (f_language_data): Likewise.
2722 * go-lang.c (go_language_data): Likewise.
2723 * language.c (unknown_language_data): Likewise.
2724 (auto_language_data): Likewise.
2725 * language.h (struct language_data): Delete
2726 la_lookup_transparent_type field.
2727 (language_defn::lookup_transparent_type): New member function.
2728 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2729 initializer.
2730 * objc-lang.c (objc_language_data): Likewise.
2731 * opencl-lang.c (opencl_language_data): Likewise.
2732 * p-lang.c (pascal_language_data): Likewise.
2733 * rust-lang.c (rust_language_data): Likewise.
2734 * symtab.c (symbol_matches_domain): Update call.
2735
2736 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2737
2738 * ada-lang.c (ada_language_arch_info): Delete function, move
2739 implementation to...
2740 (ada_language::language_arch_info): ...here, a new member
2741 function.
2742 (ada_language_data): Delete la_language_arch_info.
2743 * c-lang.c (c_language_data): Likewise.
2744 (c_language::language_arch_info): New member function.
2745 (cplus_language_arch_info): Delete function, move
2746 implementation to...
2747 (cplus_language::language_arch_info): ...here, a new member
2748 function.
2749 (cplus_language_data): Delete la_language_arch_info.
2750 (asm_language_data): Likewise.
2751 (asm_language::language_arch_info): New member function.
2752 (minimal_language_data): Delete la_language_arch_info.
2753 (minimal_language::language_arch_info): New member function.
2754 * d-lang.c (d_language_arch_info): Delete function, move
2755 implementation to...
2756 (d_language::language_arch_info): ...here, a new member
2757 function.
2758 (d_language_data): Delete la_language_arch_info.
2759 * f-lang.c (f_language_arch_info): Delete function, move
2760 implementation to...
2761 (f_language::language_arch_info): ...here, a new member
2762 function.
2763 (f_language_data): Delete la_language_arch_info.
2764 * go-lang.c (go_language_arch_info): Delete function, move
2765 implementation to...
2766 (go_language::language_arch_info): ...here, a new member
2767 function.
2768 (go_language_data): Delete la_language_arch_info.
2769 * language.c (unknown_language_data): Likewise.
2770 (unknown_language::language_arch_info): New member function.
2771 (auto_language_data): Delete la_language_arch_info.
2772 (auto_language::language_arch_info): New member function.
2773 (language_gdbarch_post_init): Update call to
2774 la_language_arch_info.
2775 * language.h (language_data): Delete la_language_arch_info
2776 function pointer.
2777 (language_defn::language_arch_info): New function.
2778 * m2-lang.c (m2_language_arch_info): Delete function, move
2779 implementation to...
2780 (m2_language::language_arch_info): ...here, a new member
2781 function.
2782 (m2_language_data): Delete la_language_arch_info.
2783 * objc-lang.c (objc_language_arch_info): Delete function, move
2784 implementation to...
2785 (objc_language::language_arch_info): ...here, a new member
2786 function.
2787 (objc_language_data): Delete la_language_arch_info.
2788 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2789 implementation to...
2790 (opencl_language::language_arch_info): ...here, a new member
2791 function.
2792 (opencl_language_data): Delete la_language_arch_info.
2793 * p-lang.c (pascal_language_arch_info): Delete function, move
2794 implementation to...
2795 (pascal_language::language_arch_info): ...here, a new member
2796 function.
2797 (pascal_language_data): Delete la_language_arch_info.
2798 * rust-lang.c (rust_language_arch_info): Delete function, move
2799 implementation to...
2800 (rust_language::language_arch_info): ...here, a new member
2801 function.
2802 (rust_language_data): Delete la_language_arch_info.
2803
2804 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2805
2806 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2807 initializer.
2808 * c-lang.c (c_language_data): Likewise.
2809 (cplus_language_data): Likewise.
2810 (cplus_language::pass_by_reference_info): New method.
2811 (asm_language_data): Delete la_pass_by_reference initializer.
2812 (minimal_language_data): Likewise.
2813 * cp-abi.c (cp_pass_by_reference): Remove use of
2814 default_pass_by_reference.
2815 * d-lang.c (d_language_data): Likewise.
2816 * f-lang.c (f_language_data): Likewise.
2817 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2818 default_pass_by_reference.
2819 * go-lang.c (go_language_data): Likewise.
2820 * language.c (language_pass_by_reference): Update.
2821 (default_pass_by_reference): Delete.
2822 (unknown_language_data): Delete la_pass_by_reference
2823 initializer.
2824 (auto_language_data): Likewise.
2825 * language.h (struct language_data): Delete la_pass_by_reference
2826 field.
2827 (language_defn::pass_by_reference_info): New member function.
2828 (default_pass_by_reference): Delete declaration.
2829 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2830 initializer.
2831 * objc-lang.c (objc_language_data): Likewise.
2832 * opencl-lang.c (opencl_language_data): Likewise.
2833 * p-lang.c (pascal_language_data): Likewise.
2834 * rust-lang.c (rust_language_data): Likewise.
2835
2836 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2837
2838 * ada-lang.c (ada_read_var_value): Delete function, move
2839 implementation to...
2840 (ada_language::read_var_value): ...here.
2841 (ada_language_data): Delete la_read_var_value initializer.
2842 * c-lang.c (c_language_data): Likewise.
2843 (cplus_language_data): Likewise.
2844 (minimal_language_data): Likewise.
2845 * d-lang.c (d_language_data): Likewise.
2846 * f-lang.c (f_language_data): Likewise.
2847 * findvar.c (default_read_var_value): Rename to...
2848 (language_defn::read_var_value): ...this.
2849 * findvar.c (read_var_value): Update header comment, and change to
2850 call member function instead of function pointer.
2851 * go-lang.c (go_language_data): Likewise.
2852 * language.c (unknown_language_data): Delete la_read_var_value
2853 initializer.
2854 (auto_language_data): Likewise.
2855 * language.h (struct language_data): Delete la_read_var_value
2856 field.
2857 (language_defn::read_var_value): New member function.
2858 (default_read_var_value): Delete declaration.
2859 * m2-lang.c (m2_language_data): Delete la_read_var_value
2860 initializer.
2861 * objc-lang.c (objc_language_data): Likewise.
2862 * opencl-lang.c (opencl_language_data): Likewise.
2863 * p-lang.c (pascal_language_data): Likewise.
2864 * rust-lang.c (rust_language_data): Likewise.
2865 * value.h (default_read_var_value): Delete declaration.
2866
2867 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2868
2869 * ada-lang.c (ada_print_array_index): Delete function, move
2870 implementation to...
2871 (ada_language::print_array_index): ...here.
2872 (ada_language_data): Delete la_print_array_index initializer.
2873 * c-lang.c (c_language_data): Likewise.
2874 (cplus_language_data): Likewise.
2875 (minimal_language_data): Likewise.
2876 * d-lang.c (d_language_data): Likewise.
2877 * f-lang.c (f_language_data): Likewise.
2878 * go-lang.c (go_language_data): Likewise.
2879 * language.c (default_print_array_index): Delete function, move
2880 implementation to...
2881 (language_defn::print_array_index): ...here.
2882 (unknown_language_data): Delete la_print_array_index initializer.
2883 (auto_language_data): Likewise.
2884 * language.h (struct language_data): Delete la_print_array_index
2885 field.
2886 (language_defn::print_array_index): New member function.
2887 (LA_PRINT_ARRAY_INDEX): Update.
2888 (default_print_array_index): Delete declaration.
2889 * m2-lang.c (m2_language_data): Delete la_print_array_index
2890 initializer.
2891 * objc-lang.c (objc_language_data): Likewise.
2892 * opencl-lang.c (opencl_language_data): Likewise.
2893 * p-lang.c (pascal_language_data): Likewise.
2894 * rust-lang.c (rust_language_data): Likewise.
2895
2896 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2897
2898 * gdb/ada-lang.c (ada_language_defn): Convert to...
2899 (ada_language_data): ...this.
2900 (class ada_language): New class.
2901 (ada_language_defn): New static global.
2902 * gdb/c-lang.c (c_language_defn): Convert to...
2903 (c_language_data): ...this.
2904 (class c_language): New class.
2905 (c_language_defn): New static global.
2906 (cplus_language_defn): Convert to...
2907 (cplus_language_data): ...this.
2908 (class cplus_language): New class.
2909 (cplus_language_defn): New static global.
2910 (asm_language_defn): Convert to...
2911 (asm_language_data): ...this.
2912 (class asm_language): New class.
2913 (asm_language_defn): New static global.
2914 (minimal_language_defn): Convert to...
2915 (minimal_language_data): ...this.
2916 (class minimal_language): New class.
2917 (minimal_language_defn): New static global.
2918 * gdb/d-lang.c (d_language_defn): Convert to...
2919 (d_language_data): ...this.
2920 (class d_language): New class.
2921 (d_language_defn): New static global.
2922 * gdb/f-lang.c (f_language_defn): Convert to...
2923 (f_language_data): ...this.
2924 (class f_language): New class.
2925 (f_language_defn): New static global.
2926 * gdb/go-lang.c (go_language_defn): Convert to...
2927 (go_language_data): ...this.
2928 (class go_language): New class.
2929 (go_language_defn): New static global.
2930 * gdb/language.c (unknown_language_defn): Remove declaration.
2931 (current_language): Initialize to nullptr, real initialization is
2932 moved to _initialize_language.
2933 (languages): Delete global.
2934 (language_defn::languages): Define.
2935 (set_language_command): Use language_defn::languages.
2936 (set_language): Likewise.
2937 (range_error): Likewise.
2938 (language_enum): Likewise.
2939 (language_def): Likewise.
2940 (add_set_language_command): Use language_def::languages for the
2941 language list, and language_def to lookup language pointers.
2942 (skip_language_trampoline): Use language_defn::languages.
2943 (unknown_language_defn): Convert to...
2944 (unknown_language_data): ...this.
2945 (class unknown_language): New class.
2946 (unknown_language_defn): New static global.
2947 (auto_language_defn): Convert to...
2948 (auto_language_data): ...this.
2949 (class auto_language): New class.
2950 (auto_language_defn): New static global.
2951 (language_gdbarch_post_init): Use language_defn::languages.
2952 (_initialize_language): Initialize current_language.
2953 * gdb/language.h (struct language_defn): Rename to...
2954 (struct language_data): ...this.
2955 (struct language_defn): New.
2956 (auto_language_defn): Delete.
2957 (unknown_language_defn): Delete.
2958 (minimal_language_defn): Delete.
2959 (ada_language_defn): Delete.
2960 (asm_language_defn): Delete.
2961 (c_language_defn): Delete.
2962 (cplus_language_defn): Delete.
2963 (d_language_defn): Delete.
2964 (f_language_defn): Delete.
2965 (go_language_defn): Delete.
2966 (m2_language_defn): Delete.
2967 (objc_language_defn): Delete.
2968 (opencl_language_defn): Delete.
2969 (pascal_language_defn): Delete.
2970 (rust_language_defn): Delete.
2971 * gdb/m2-lang.c (m2_language_defn): Convert to...
2972 (m2_language_data): ...this.
2973 (class m2_language): New class.
2974 (m2_language_defn): New static global.
2975 * gdb/objc-lang.c (objc_language_defn): Convert to...
2976 (objc_language_data): ...this.
2977 (class objc_language): New class.
2978 (objc_language_defn): New static global.
2979 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
2980 (opencl_language_data): ...this.
2981 (class opencl_language): New class.
2982 (opencl_language_defn): New static global.
2983 * gdb/p-lang.c (pascal_language_defn): Convert to...
2984 (pascal_language_data): ...this.
2985 (class pascal_language): New class.
2986 (pascal_language_defn): New static global.
2987 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
2988 language pointer, update comment format.
2989 * gdb/rust-lang.c (rust_language_defn): Convert to...
2990 (rust_language_data): ...this.
2991 (class rust_language): New class.
2992 (rust_language_defn): New static global.
2993
2994 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
2995
2996 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
2997 member variable.
2998 <m_stmt_at_address>: New member variable.
2999 (lnp_state_machine::record_line): Don't record some lines, update
3000 tracking of is_stmt at the same address.
3001 (lnp_state_machine::lnp_state_machine): Initialise new member
3002 variables.
3003
3004 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3005
3006 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3007 "-include gnu-nat-mig.h".
3008 * gnu-nat-mig.h: New file.
3009 * gnu-nat.c: Include "gnu-nat-mig.h".
3010 (exc_server, msg_reply_server, notify_server,
3011 process_reply_server): Remove declarations.
3012
3013 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3014
3015 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3016 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3017 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3018 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3019 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3020 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3021 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3022 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3023 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3024 to gnu_nat_target class.
3025 * gnu-nat.c: Likewise.
3026 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3027 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3028 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3029 object.
3030 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3031 instead of `gnu_target'.
3032
3033 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3034
3035 * i386-gnu-tdep.c: Include "gdbcore.h"
3036 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3037 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3038 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3039 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3040 i386_gnu_sigcontext_addr): New functions
3041 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3042 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3043 tdep.
3044
3045 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3046
3047 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3048 before fork_inferior call. Avoid calling it if target_is_pushed returns
3049 true.
3050
3051 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3052
3053 * gnu-nat.h (gnu_target): New variable declaration.
3054 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3055 gnu_target.
3056 * gnu-nat.c (gnu_target): New variable.
3057 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3058 add_thread_silent, and add_thread calls.
3059 (gnu_nat_target::create_inferior): Pass gnu_target to
3060 add_thread_silent, thread_change_ptid call.
3061 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3062 call.
3063
3064 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3065
3066 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3067 (gnu_nat_target::find_memory_regions): Remove unused
3068 `old_address' variable.
3069
3070 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3071
3072 * gnu-nat.c: Include "gdbarch.h".
3073
3074 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3075
3076 * reply_mig_hack.awk (Error return): Cast function through
3077 void *, to bypass compiler function call check.
3078
3079 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3080
3081 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3082 $(srcdir)/reply_mig_hack.awk.
3083
3084 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3085
3086 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3087
3088 2020-05-30 Jonny Grant <jg@jguk.org>
3089
3090 * configure.ac (ACX_BUGURL): change bug URL to https.
3091
3092 2020-05-30 Pedro Alves <palves@redhat.com>
3093
3094 * cp-support.c (replace_typedefs_template): New.
3095 (replace_typedefs_qualified_name): Handle
3096 DEMANGLE_COMPONENT_TEMPLATE.
3097
3098 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3099
3100 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3101 dwarf2/index-cache.h, dwarf2/index-write.c,
3102 dwarf2/index-write.h, dwarf2/line-header.c,
3103 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3104 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3105 variables and fields from `dwarf2_per_objfile` to just
3106 `per_objfile` throughout.
3107
3108 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3109
3110 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3111 <push_dwarf_reg_entry_value>: Add comment.
3112
3113 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3114 Keith Seitz <keiths@redhat.com>
3115
3116 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3117 instead of PyEval_ReleaseLock.
3118 (class gdbpy_gil): Move to earlier in file.
3119 (finalize_python): Set gdb_python_initialized.
3120 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3121 when not initialized.
3122
3123 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3124
3125 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3126 <push_dwarf_reg_entry_value>: Remove assert. Override
3127 per_objfile with caller_per_objfile.
3128
3129 2020-05-28 Tom de Vries <tdevries@suse.de>
3130
3131 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3132 PR gold/15646 workaround to symbol kind "type".
3133
3134 2020-05-27 Tom Tromey <tromey@adacore.com>
3135
3136 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3137
3138 2020-05-27 Tom Tromey <tromey@adacore.com>
3139
3140 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3141 Use htab_find_with_hash.
3142 <add_abbrev>: Remove "abbrev_number" parameter.
3143 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3144 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3145 (hash_abbrev): Add comment.
3146 (abbrev_table::lookup_abbrev): Move to header file.
3147 (abbrev_table::read): Update.
3148
3149 2020-05-27 Tom Tromey <tromey@adacore.com>
3150
3151 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3152 method.
3153 <canonical_name>: New member.
3154 <raw_name>: Rename from "name".
3155 (partial_die_info): Initialize canonical_name.
3156 (scan_partial_symbols): Check raw_name.
3157 (partial_die_parent_scope, partial_die_full_name)
3158 (add_partial_symbol, add_partial_subprogram)
3159 (add_partial_enumeration, load_partial_dies): Use "name" method.
3160 (partial_die_info::name): New method.
3161 (partial_die_info::read, guess_partial_die_structure_name)
3162 (partial_die_info::fixup): Update.
3163
3164 2020-05-27 Tom Tromey <tromey@adacore.com>
3165
3166 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3167 <get_ref_die_offset>: Inline.
3168 <get_ref_die_offset_complaint>: New method.
3169 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3170 (attribute::get_ref_die_offset_complaint): Rename from
3171 get_ref_die_offset. Just issue complaint.
3172
3173 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3174
3175 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3176
3177 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3178
3179 * exec.c (exec_file_attach): Use errno value of first openp failure.
3180
3181 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3182
3183 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3184 Don't close thread handle.
3185
3186 2020-05-27 Tom Tromey <tom@tromey.com>
3187 Simon Marchi <simon.marchi@efficios.com>
3188
3189 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3190 shared_ptr.
3191 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3192 member.
3193 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3194 dwarf2_per_bfd_objfile_data_key>: New globals.
3195 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3196 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3197 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3198 shared.
3199 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3200 short-circuit when sharing.
3201 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3202 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3203
3204 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3205
3206 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3207 to...
3208 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3209 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3210
3211 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3212
3213 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3214 build_name_components, find_name_components_bounds>:
3215 Add per_objfile parameter.
3216 (struct mapped_index) <symbol_name_at>: Likewise.
3217 (struct mapped_debug_names): Remove constructor.
3218 <dwarf2_per_objfile>: Remove field.
3219 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3220 (mapped_index_base::find_name_components_bounds,
3221 mapped_index_base::build_name_components,
3222 dw2_expand_symtabs_matching_symbol): Likewise.
3223 (class mock_mapped_index) <symbol_name_at>: Likewise.
3224 (check_match): Likewise.
3225 (check_find_bounds_finds): Likewise.
3226 (test_mapped_index_find_name_component_bounds): Update.
3227 (CHECK_MATCH): Update.
3228 (dw2_expand_symtabs_matching): Update.
3229 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3230 per_objfile parameter.
3231 <find_vec_in_debug_names>: Likewise.
3232 <m_per_objfile>: New field.
3233 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3234 parameter.
3235 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3236 (dw2_debug_names_iterator::next): Update.
3237 (dw2_debug_names_lookup_symbol): Update.
3238 (dw2_debug_names_expand_symtabs_for_function): Update.
3239 (dw2_debug_names_map_matching_symbols): Update.
3240 (dw2_debug_names_expand_symtabs_matching): Update.
3241 (dwarf2_read_debug_names): Update.
3242
3243 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3244
3245 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3246 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3247 move to dwarf2_per_objfile.
3248 <read_in_chain>: Remove.
3249 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3250 remove_all_cus, age_comp_units>: New methods.
3251 <m_dwarf2_cus>: New member.
3252 (struct dwarf2_per_cu_data) <cu>: Remove.
3253 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3254 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3255 moved to methods of dwarf2_per_objfile.
3256 (dwarf2_clear_marks): Remove.
3257 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3258 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3259 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3260 (dwarf2_per_objfile::remove_all_cus): New.
3261 (class free_cached_comp_units) <~free_cached_comp_units>:
3262 Update.
3263 (load_cu): Update.
3264 (dw2_do_instantiate_symtab): Adjust.
3265 (fill_in_sig_entry_from_dwo_entry): Adjust.
3266 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3267 (cutu_reader::cutu_reader): Likewise.
3268 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3269 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3270 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3271 and dwarf2_per_objfile::age_comp_units.
3272 (load_partial_comp_unit): Update.
3273 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3274 (process_queue): Likewise.
3275 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3276 backlink.
3277 (dwarf2_read_addr_index): Likewise.
3278 (follow_die_offset): Likewise.
3279 (dwarf2_fetch_die_loc_sect_off): Likewise.
3280 (dwarf2_fetch_constant_bytes): Likewise.
3281 (dwarf2_fetch_die_type_sect_off): Likewise.
3282 (follow_die_sig_1): Likewise.
3283 (load_full_type_unit): Likewise.
3284 (read_signatured_type): Likewise.
3285 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3286 (dwarf2_cu::~dwarf2_cu): Remove.
3287 (dwarf2_per_objfile::get_cu): New.
3288 (dwarf2_per_objfile::set_cu): New.
3289 (age_cached_comp_units): Rename to...
3290 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3291 to std::unordered_map.
3292 (free_one_cached_comp_unit): Rename to...
3293 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3294 to std::unordered_map.
3295 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3296 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3297 a dwarf2_per_objfile in data.
3298 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3299 (dwarf2_clear_marks): Remove.
3300
3301 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3302
3303 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3304 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3305 (init_tu_and_read_dwo_dies): Likewise.
3306 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3307 (cutu_reader::cutu_reader): Likewise.
3308 (load_partial_comp_unit): Likewise.
3309 (process_psymtab_comp_unit): Update.
3310 (build_type_psymtabs_1): Update.
3311 (process_skeletonless_type_unit): Update.
3312 (load_full_comp_unit): Update.
3313 (find_partial_die): Update.
3314 (dwarf2_read_addr_index): Update.
3315 (read_signatured_type): Update.
3316
3317 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3318
3319 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3320 m_header_read_in>: New fields.
3321 <get_header>: New method.
3322 * dwarf2/read.c (per_cu_header_read_in): Remove.
3323 (dwarf2_per_cu_data::get_header): New.
3324 (dwarf2_per_cu_data::addr_size): Update.
3325 (dwarf2_per_cu_data::offset_size): Update.
3326 (dwarf2_per_cu_data::ref_addr_size): Update.
3327
3328 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3329
3330 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3331 (dw2_do_instantiate_symtab): Update.
3332 (queue_and_load_all_dwo_tus): Change parameter from
3333 dwarf2_per_cu_data to dwarf2_cu.
3334 (dwarf2_fetch_die_loc_sect_off): Update.
3335 (dwarf2_fetch_constant_bytes): Update.
3336 (dwarf2_fetch_die_type_sect_off): Update.
3337
3338 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3339
3340 * dwarf2/read.c (process_full_comp_unit,
3341 process_full_type_unit): Remove per_cu, per_objfile paramters.
3342 Add dwarf2_cu parameter.
3343 (process_queue): Update.
3344
3345 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3346
3347 * dwarf2/read.c (create_cu_from_index_list): Replace
3348 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3349 (create_cus_from_index_list): Likewise.
3350 (create_cus_from_index): Likewise.
3351 (create_signatured_type_table_from_index): Likewise.
3352 (create_cus_from_debug_names_list): Likewise.
3353 (create_cus_from_debug_names): Likewise.
3354 (dwarf2_read_gdb_index): Update.
3355 (dwarf2_read_debug_names): Update.
3356
3357 2020-05-27 Tom Tromey <tom@tromey.com>
3358 Simon Marchi <simon.marchi@efficios.com>
3359
3360 * dwarf2/read.h (struct dwarf2_per_objfile)
3361 <get_type_for_signatured_type, set_type_for_signatured_type>:
3362 New methods.
3363 <m_type_map>: New member.
3364 (struct signatured_type) <type>: Remove.
3365 * dwarf2/read.c
3366 (dwarf2_per_objfile::get_type_for_signatured_type,
3367 dwarf2_per_objfile::set_type_for_signatured_type): New.
3368 (get_signatured_type): Use new methods.
3369
3370 2020-05-27 Tom Tromey <tom@tromey.com>
3371 Simon Marchi <simon.marchi@efficios.com>
3372
3373 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3374 (struct dwarf2_per_objfile) <type_units>: New member.
3375 <get_type_unit_group_unshareable>: New method.
3376 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3377 num_symtabs, symtabs>: Remove; move to
3378 type_unit_group_unshareable.
3379 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3380 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3381 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3382
3383 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3384
3385 * dwarf2/read.h (struct dwarf2_per_cu_data):
3386 <dwarf2_per_objfile>: Remove.
3387 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3388 dwarf2_per_objfile.
3389 (create_signatured_type_table_from_index): Likewise.
3390 (create_signatured_type_table_from_debug_names): Likewise.
3391 (create_debug_type_hash_table): Likewise.
3392 (fill_in_sig_entry_from_dwo_entry): Likewise.
3393 (create_type_unit_group): Likewise.
3394 (read_comp_units_from_section): Likewise.
3395 (create_cus_hash_table): Likewise.
3396
3397 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3398
3399 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3400 dwarf2_per_cu_data::dwarf2_per_objfile.
3401 (compute_compunit_symtab_includes): Likewise.
3402 (dwarf2_cu::start_symtab): Likewise.
3403
3404 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3407 parameter.
3408 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3409 (read_namespace_alias): Update.
3410 (lookup_die_type): Update.
3411 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3412 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3413 Update.
3414 (disassemble_dwarf_expression): Update.
3415
3416 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3417
3418 * dwarf2/read.h (struct dwarf2_queue_item): Add
3419 dwarf2_per_objfile parameter, assign new parameter.
3420 <per_objfile>: New field.
3421 * dwarf2/read.c (free_one_cached_comp_unit): Add
3422 dwarf2_per_objfile parameter.
3423 (queue_comp_unit): Likewise.
3424 (dw2_do_instantiate_symtab): Update.
3425 (process_psymtab_comp_unit): Update.
3426 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3427 (process_imported_unit_die): Update.
3428 (queue_and_load_dwo_tu): Update.
3429 (follow_die_offset): Update.
3430 (follow_die_sig_1): Update.
3431
3432 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3433
3434 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3435 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3436 (read_call_site_scope): Assign per_objfile.
3437 (dwarf2_per_cu_data::objfile): Remove.
3438 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3439 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3440 dwarf2_per_objfile parameter.
3441 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3442 dwarf2_per_objfile parameter.
3443 (dwarf_expr_reg_to_entry_parameter): Add output
3444 dwarf2_per_objfile parameter.
3445 (locexpr_get_frame_base): Update.
3446 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3447 <push_dwarf_reg_entry_value>: Update.
3448 <call_site_to_target_addr>: Update.
3449 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3450 parameter.
3451 (value_of_dwarf_reg_entry): Update.
3452 (rw_pieced_value): Update.
3453 (indirect_synthetic_pointer): Update.
3454 (dwarf2_evaluate_property): Update.
3455 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3456 parameter.
3457 (locexpr_read_variable): Update.
3458 (locexpr_get_symbol_read_needs): Update.
3459 (loclist_read_variable): Update.
3460
3461 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3464 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3465 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3466 parameter.
3467 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3468 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3469 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3470 parameter.
3471 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3472 sect_variable_value): Add dwarf2_per_objfile parameter.
3473 (class dwarf_evaluate_loc_desc) <dwarf_call,
3474 dwarf_variable_value>: Update.
3475 (fetch_const_value_from_synthetic_pointer): Add
3476 dwarf2_per_objfile parameter.
3477 (fetch_const_value_from_synthetic_pointer): Update.
3478 (coerced_pieced_ref): Update.
3479 (class symbol_needs_eval_context) <dwarf_call,
3480 dwarf_variable_value>: Update.
3481 (dwarf2_compile_expr_to_ax): Update.
3482
3483 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3484
3485 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3486 parameter.
3487 (dwarf2_evaluate_loc_desc_full): Update.
3488
3489 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3490
3491 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3492 parameter.
3493 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3494 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3495 dwarf2_per_objfile parameter.
3496 (decode_debug_loc_dwo_addresses): Likewise.
3497 (dwarf2_find_location_expression): Update.
3498 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3499 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3500 parameter.
3501 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3502 parameter.
3503 (locexpr_describe_location_1): Likewise.
3504 (locexpr_describe_location): Update.
3505
3506 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3507
3508 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3509 Remove.
3510 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3511 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3512 (dwarf2_compile_property_to_c): Update.
3513 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3514 use text offset from objfile.
3515 (locexpr_tracepoint_var_ref): Update.
3516 (locexpr_generate_c_location): Update.
3517 (loclist_describe_location): Update.
3518 (loclist_tracepoint_var_ref): Update.
3519 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3520 dwarf2_per_objfile parameter.
3521 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3522 use text offset from objfile.
3523 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3524
3525 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3526
3527 * dwarf2/expr.h (struct dwarf_expr_context)
3528 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3529 <offset>: Remove.
3530 <per_objfile>: New member.
3531 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3532 dwarf2_per_objfile parameter. Don't set offset, set
3533 per_objfile.
3534 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3535 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3536 a dwarf2_per_objfile object instead of an offset.
3537 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3538 constructor.
3539 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3540 to dwarf2_expr_executor constructor. Don't set offset.
3541 (dwarf2_fetch_cfa_info): Update.
3542 (struct dwarf2_frame_cache) <text_offset>: Remove.
3543 <per_objfile>: New field.
3544 (dwarf2_frame_cache): Update.
3545 (dwarf2_frame_prev_register): Update.
3546 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3547 <dwarf_evaluate_loc_desc>: Add constructor.
3548 (dwarf2_evaluate_loc_desc_full): Update.
3549 (dwarf2_locexpr_baton_eval): Update.
3550 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3551 Add constructor.
3552 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3553
3554 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3555
3556 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3557 addr_sized_int_type>: Move to dwarf2_cu.
3558 <int_type>: Move to dwarf2_per_objfile.
3559 (struct dwarf2_per_objfile) <int_type>: Move here.
3560 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3561 addr_sized_int_type>: Move here.
3562 (read_func_scope): Update.
3563 (read_array_type): Update.
3564 (read_tag_string_type): Update.
3565 (attr_to_dynamic_prop): Update.
3566 (dwarf2_per_cu_data::int_type): Rename to...
3567 (dwarf2_per_objfile::int_type): ... this.
3568 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3569 (dwarf2_cu::addr_sized_int_type): ... this.
3570 (read_subrange_type): Update.
3571 (dwarf2_per_cu_data::addr_type): Rename to...
3572 (dwarf2_cu::addr_type): ... this.
3573 (set_die_type): Update.
3574
3575 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3578 data through per_cu->cu.
3579
3580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3581
3582 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3583 dwarf2_per_cu_data parameter fo dwarf2_cu.
3584 (lookup_dwo_type_unit): Likewise.
3585 (read_cutu_die_from_dwo): Likewise.
3586 (lookup_dwo_unit): Likewise.
3587 (open_and_init_dwo_file): Likewise.
3588 (lookup_dwo_cutu): Likewise.
3589 (lookup_dwo_comp_unit): Likewise.
3590 (lookup_dwo_type_unit): Likewise.
3591 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3592 (cutu_reader::cutu_reader): Update.
3593
3594 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3595
3596 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3597 parameter.
3598 (process_full_type_unit): Likewise.
3599 (process_queue): Update.
3600
3601 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3602
3603 * dwarf2/read.c (recursively_compute_inclusions): Add
3604 dwarf2_per_objfile parameter.
3605 (compute_compunit_symtab_includes): Likewise.
3606 (process_cu_includes): Update.
3607
3608 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3609
3610 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3611 parameter.
3612 (create_type_unit_group): Update.
3613 (process_psymtab_comp_unit_reader): Update.
3614 (build_type_psymtabs_reader): Update.
3615
3616 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3617
3618 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3619 object through m_this_cu->cu.
3620
3621 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3622
3623 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3624 the info parameter.
3625 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3626
3627 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3628
3629 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3630 per_objfile parameter.
3631 (load_full_type_unit): Add per_objfile parameter.
3632 (read_signatured_type): Likewise.
3633 (load_full_comp_unit): Likewise.
3634 (load_cu): Likewise.
3635 (dw2_do_instantiate_symtab): Likewise.
3636 (dw2_get_file_names): Likewise.
3637 (dw2_map_symtabs_matching_filename): Update.
3638 (dw_expand_symtabs_matching_file_matcher): Update.
3639 (dw2_map_symbol_filenames): Update.
3640 (process_psymtab_comp_unit): Add per_objfile parameter.
3641 (build_type_psymtabs_1): Update.
3642 (process_skeletonless_type_unit): Update.
3643 (dwarf2_build_psymtabs_hard): Update.
3644 (load_partial_comp_unit): Add per_objfile parameter.
3645 (scan_partial_symbols): Update.
3646 (load_full_comp_unit): Add per_objfile parameter.
3647 (process_imported_unit_die): Update.
3648 (create_cus_hash_table): Update.
3649 (find_partial_die): Update.
3650 (dwarf2_read_addr_index): Update.
3651 (follow_die_offset): Update.
3652 (dwarf2_fetch_die_loc_sect_off): Update.
3653 (dwarf2_fetch_constant_bytes): Update.
3654 (dwarf2_fetch_die_type_sect_off): Update.
3655 (follow_die_sig_1): Update.
3656 (load_full_type_unit): Add per_objfile parameter.
3657 (read_signatured_type): Likewise.
3658
3659 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3660
3661 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3662 of objfile_name.
3663
3664 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3665
3666 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3667 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3668 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3669 field.
3670 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3671 (create_cus_from_index): Update.
3672 (dwarf2_read_gdb_index): Update.
3673 (create_cus_from_debug_names): Update.
3674 (dwarf2_read_debug_names): Update.
3675 (get_abbrev_section_for_cu): Update.
3676 (create_all_comp_units): Update.
3677 (read_attribute_value): Update.
3678 (get_debug_line_section): Update.
3679 * dwarf2/index-cache.c (index_cache::store): Update.
3680 * dwarf2/index-write.c (save_gdb_index_command): Update.
3681 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3682
3683 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3684
3685 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3686 member.
3687 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3688 dwarf2_per_cu_data::per_bfd.
3689 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3690 (create_type_unit_group): Likewise.
3691 (queue_comp_unit): Remove reference to
3692 per_cu->dwarf2_per_objfile.
3693 (maybe_queue_comp_unit): Likewise.
3694 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3695 (create_cus_hash_table): Assign new field.
3696
3697 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3698
3699 * dwarf2/read.c: Replace
3700 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3701 dwarf2_cu->per_objfile throughout.
3702
3703 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3704
3705 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3706 parameter, don't use per_cu->dwarf2_per_objfile.
3707 (dw2_instantiate_symtab): Likewise.
3708 (dw2_find_last_source_symtab): Update.
3709 (dw2_map_expand_apply): Update.
3710 (dw2_lookup_symbol): Update.
3711 (dw2_expand_symtabs_for_function): Update.
3712 (dw2_expand_all_symtabs): Update.
3713 (dw2_expand_symtabs_with_fullname): Update.
3714 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3715 don't use per_cu->dwarf2_per_objfile.
3716 (dw2_expand_marked_cus): Update.
3717 (dw2_find_pc_sect_compunit_symtab): Update.
3718 (dw2_debug_names_lookup_symbol): Update.
3719 (dw2_debug_names_expand_symtabs_for_function): Update.
3720 (dw2_debug_names_map_matching_symbols): Update.
3721 (dwarf2_psymtab::expand_psymtab): Update.
3722
3723 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3724
3725 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3726 <per_objfile>: New member.
3727 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3728 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3729 call to dwarf2_cu.
3730 (cutu_reader::cutu_reader): Update.
3731 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3732
3733 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3734
3735 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3736 struct dwarf2_per_objfile.
3737 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3738 dwarf2_per_bfd.
3739 * dwarf2/read.c (set_die_type): Update.
3740 (get_die_type_at_offset): Update.
3741
3742 2020-05-27 Tom Tromey <tom@tromey.com>
3743 Simon Marchi <simon.marchi@efficios.com>
3744
3745 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3746 method.
3747 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3748 get_symtab, set_symtab>: New methods.
3749 <m_symtabs>: New field.
3750 (struct dwarf2_psymtab): Derive from partial_symtab.
3751 <readin_p, get_compunit_symtab>: Declare methods.
3752 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3753 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3754 New methods.
3755 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3756 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3757 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3758 (dw2_symtab_iter_next, dw2_print_stats)
3759 (dw2_expand_symtabs_with_fullname)
3760 (dw2_expand_symtabs_matching_one)
3761 (dw_expand_symtabs_matching_file_matcher)
3762 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3763 (dw2_debug_names_iterator::next)
3764 (dw2_debug_names_map_matching_symbols)
3765 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3766 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3767 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3768 New methods.
3769 (get_compunit_symtab, process_full_comp_unit)
3770 (process_full_type_unit): Update.
3771 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3772
3773 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3774
3775 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3776 then introduce a new dwarf2_per_objfile type.
3777 <read_line_string>: Move to the new dwarf2_per_objfile type.
3778 <objfile>: Likewise.
3779 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3780 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3781 dwarf2_per_objfile->per_bfd.
3782 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3783 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3784 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3785 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3786 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3787 (dwarf2_per_objfile::locate_sections): Rename to...
3788 (dwarf2_per_bfd::locate_sections): ... this.
3789 (dwarf2_per_objfile::get_cutu): Rename to...
3790 (dwarf2_per_bfd::get_cutu): ... this.
3791 (dwarf2_per_objfile::get_cu): Rename to...
3792 (dwarf2_per_bfd::get_cu): ... this.
3793 (dwarf2_per_objfile::get_tu): Rename to...
3794 (dwarf2_per_bfd::get_tu): ... this.
3795 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3796 (dwarf2_per_bfd::allocate_per_cu): ... this.
3797 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3798 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3799 (get_gdb_index_contents_ftype): Change parameter from
3800 dwarf2_per_objfile to dwarf2_per_bfd.
3801 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3802 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3803
3804 2020-05-27 Tom Tromey <tom@tromey.com>
3805 Simon Marchi <simon.marchi@efficios.com>
3806
3807 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3808 (allocate_piece_closure): Set "per_objfile" member.
3809 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3810 (locexpr_describe_location, loclist_describe_location): Use new
3811 member.
3812 * dwarf2/read.c (read_call_site_scope)
3813 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3814 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3815 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3816 handle_data_member_location): Set per_objfile member.
3817 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3818 member.
3819 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3820
3821 2020-05-27 Tom Tromey <tom@tromey.com>
3822
3823 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3824 allocate_signatured_type>: Declare new methods.
3825 <m_num_psymtabs>: New member.
3826 (struct dwarf2_per_cu_data) <index>: New member.
3827 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3828 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3829 (create_cu_from_index_list): Use allocate_per_cu.
3830 (create_signatured_type_table_from_index)
3831 (create_signatured_type_table_from_debug_names)
3832 (create_debug_type_hash_table, add_type_unit)
3833 (read_comp_units_from_section): Use allocate_signatured_type.
3834
3835 2020-05-27 Tom Tromey <tom@tromey.com>
3836
3837 * psymtab.c (partial_map_expand_apply)
3838 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3839 (psym_lookup_global_symbol_language)
3840 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3841 (psym_print_stats, psym_expand_symtabs_for_function)
3842 (psym_map_symbol_filenames, psym_map_matching_symbols)
3843 (psym_expand_symtabs_matching)
3844 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3845 (maintenance_check_psymtabs): Update.
3846 * psympriv.h (struct partial_symtab) <readin_p,
3847 get_compunit_symtab>: Add objfile parameter.
3848 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3849 Likewise.
3850 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3851 get_compunit_symtab>: Likewise.
3852 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3853
3854 2020-05-27 Tom Tromey <tom@tromey.com>
3855
3856 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3857 member.
3858 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3859 (create_cu_from_index_list)
3860 (create_signatured_type_table_from_index)
3861 (create_signatured_type_table_from_debug_names)
3862 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3863 (dwarf2_create_include_psymtab)
3864 (create_debug_type_hash_table, add_type_unit)
3865 (create_type_unit_group, read_comp_units_from_section)
3866 (dwarf2_compute_name, create_cus_hash_table)
3867 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3868 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3869 obstack.
3870 (dw2_get_real_path): Likewise. Change argument to
3871 dwarf2_per_objfile.
3872
3873 2020-05-27 Luis Machado <luis.machado@linaro.org>
3874
3875 PR tdep/26000
3876 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3877 for ldrd (immediate).
3878
3879 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3880
3881 * command.h: Add comment giving the name of class_tui.
3882 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3883 create the fake command for the help for class_tui.
3884
3885 2020-05-26 Tom Tromey <tromey@adacore.com>
3886
3887 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3888 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3889 (val_atr): New function.
3890 (value_val_atr): Use it.
3891 * ada-valprint.c (print_optional_low_bound): Change low bound
3892 handling for enums.
3893 (val_print_packed_array_elements): Don't call discrete_position.
3894 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3895 discrete_position for enum types.
3896 * language.c (default_print_array_index): Change type.
3897 * language.h (struct language_defn) <la_print_array_index>: Add
3898 index_type parameter, change type of index_value.
3899 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3900 (default_print_array_index): Update.
3901 * valprint.c (maybe_print_array_index): Don't call
3902 value_from_longest. Update.
3903 (value_print_array_elements): Don't call discrete_position.
3904
3905 2020-05-26 Tom Tromey <tromey@adacore.com>
3906
3907 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3908 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3909
3910 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3911
3912 PR gdb/13519
3913 * avr-tdep.c (avr_integer_to_address): Return data or code
3914 address accordingly to the second 'type' argument of the
3915 function.
3916
3917 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3918
3919 * infcmd.c, inferior.h: (construct_inferior_arguments):
3920 Moved function from here to gdbsupport/common-inferior.{h,cc}
3921
3922 2020-05-23 Tom Tromey <tom@tromey.com>
3923
3924 Revert commit eca1f90c:
3925 * NEWS: Remove entry for completion styling.
3926 * completer.c (_rl_completion_prefix_display_length): Move
3927 declaration later.
3928 (gdb_fnprint): Revert.
3929 (gdb_display_match_list_1): Likewise.
3930 * cli/cli-style.c (completion_prefix_style)
3931 (completion_difference_style, completion_suffix_style): Remove.
3932 (_initialize_cli_style): Revert.
3933 * cli/cli-style.h (completion_prefix_style)
3934 (completion_difference_style, completion_suffix_style): Don't
3935 declare.
3936
3937 2020-05-24 Pedro Alves <palves@redhat.com>
3938
3939 * symtab.c (completion_list_add_name): Return boolean indication
3940 of whether the symbol matched.
3941 (completion_list_add_symbol): Don't try to remove C++ aliases if
3942 the symbol didn't match in the first place.
3943 * symtab.h (completion_list_add_name): Return bool.
3944
3945 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
3946
3947 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
3948 type::field.
3949
3950 2020-05-23 Joel Brobecker <brobecker@adacore.com>
3951
3952 GDB 9.2 released.
3953
3954 2020-05-23 Tom Tromey <tom@tromey.com>
3955
3956 * NEWS: Add entry for completion styling.
3957 * completer.c (_rl_completion_prefix_display_length): Move
3958 declaration earlier.
3959 (gdb_fnprint): Use completion_style.
3960 (gdb_display_match_list_1): Likewise.
3961 * cli/cli-style.c (completion_prefix_style)
3962 (completion_difference_style, completion_suffix_style): New
3963 globals.
3964 (_initialize_cli_style): Register new globals.
3965 * cli/cli-style.h (completion_prefix_style)
3966 (completion_difference_style, completion_suffix_style): Declare.
3967
3968 2020-05-23 Pedro Alves <palves@redhat.com>
3969
3970 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
3971 (parse_escape): Use ISDIGIT instead of isdigit.
3972 (puts_debug): Use gdb_isprint instead of isprint.
3973 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
3974 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
3975 ISSPACE instead of isspace.
3976 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
3977 instead of isspace.
3978 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
3979 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
3980 instead of isxdigit and ISDIGIT instead of isdigit.
3981
3982 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3983
3984 * gdbtypes.h (struct type) <field>: New method.
3985 (TYPE_FIELDS): Remove, replace all uses with either type::fields
3986 or type::field.
3987
3988 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
3991 (TYPE_FIELDS): Use type::fields. Change all call sites that
3992 modify the propery to use type::set_fields instead.
3993
3994 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
3995
3996 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
3997 type::num_fields instead.
3998
3999 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4002 methods.
4003 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4004 that modify the number of fields to use type::set_num_fields
4005 instead.
4006
4007 2020-05-22 Tom Tromey <tromey@adacore.com>
4008
4009 * compile/compile-object-load.h (munmap_list_free): Don't
4010 declare.
4011
4012 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4013
4014 * annotate.c (annotate_source_line): Update return type, add call
4015 to update current symtab and line.
4016 * annotate.h (annotate_source_line): Update return type, and
4017 extend header comment.
4018 * source.c (info_line_command): Check annotation_level before
4019 calling annotate_source_line.
4020 * stack.c (print_frame_info): If calling annotate_source_line
4021 returns true, then don't print any other source line information.
4022
4023 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4024
4025 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4026
4027 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4028
4029 * coffread.c (patch_type): Remove NULL check before xfree.
4030 * corefile.c (set_gnutarget): Likewise.
4031 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4032 * exec.c (build_section_table): Likewise.
4033 * remote.c (remote_target::pass_signals): Likewise.
4034 * utils.c (n_spaces): Likewise.
4035 * cli/cli-script.c (document_command): Likewise.
4036 * i386-windows-tdep.c (core_process_module_section): Likewise.
4037 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4038
4039 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4040
4041 * symfile.c (reread_symbols): Clear objfile's section_offsets
4042 vector and section indices, re-compute them by calling
4043 sym_offsets.
4044
4045 2020-05-20 Tom Tromey <tromey@adacore.com>
4046
4047 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4048 (desc_one_bound, desc_index_type): Compute field name.
4049
4050 2020-05-20 Tom de Vries <tdevries@suse.de>
4051
4052 PR symtab/25833
4053 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4054
4055 2020-05-20 Alan Modra <amodra@gmail.com>
4056
4057 PR 25993
4058 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4059 bfd_set_filename.
4060 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4061 passed to bfd_set_filename.
4062 * symfile-mem.c (add_vsyscall_page): Likewise for string
4063 passed to symbol_file_add_from_memory.
4064 (symbol_file_add_from_memory): Make name param a const char* and
4065 don't strdup.
4066
4067 2020-05-20 Alan Modra <amodra@gmail.com>
4068
4069 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4070 rather than accessing bfd->filename directly.
4071 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4072 and use bfd_section_name.
4073 * dwarf2/frame.c (decode_frame_entry): Likewise.
4074 * exec.c (exec_set_section_address): Likewise.
4075 * solib-aix.c (solib_aix_bfd_open): Likewise.
4076 * stap-probe.c (get_stap_base_address): Likewise.
4077 * symfile.c (reread_symbols): Likewise.
4078
4079 2020-05-19 Tom Tromey <tromey@adacore.com>
4080
4081 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4082
4083 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4084
4085 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4086
4087 2020-05-19 Pedro Alves <palves@redhat.com>
4088
4089 * NEWS (set exec-file-mismatch): Adjust entry.
4090 * exec.c: Include "build-id.h".
4091 (validate_exec_file): Try to match build IDs instead of filenames.
4092 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4093 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4094 and pass down 'warn_if_slow'.
4095 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4096 gdb_bfd_open_closure to pass it down.
4097 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4098
4099 2020-05-19 Pedro Alves <palves@redhat.com>
4100
4101 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4102 * target.c (target_fileio_open_1): Rename to target_fileio_open
4103 and make extern. Use bool.
4104 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4105 (target_fileio_read_alloc_1): Adjust.
4106 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4107 (target_fileio_open_warn_if_slow): Delete declaration.
4108
4109 2020-05-19 Pedro Alves <palves@redhat.com>
4110
4111 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4112 Adjust all callers.
4113
4114 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4115
4116 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4117 whether disp is negative.
4118
4119 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4120
4121 * symfile.h (struct symfile_segment_data)
4122 <~symfile_segment_data>: Remove.
4123 <segment_info>: Change to std::vector.
4124 * symfile.c (default_symfile_segments): Update.
4125 * elfread.c (elf_symfile_segments): Update.
4126
4127 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4128
4129 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4130 <segments>: New.
4131 <segment_bases, segment_sizes>: Remove.
4132 * symfile.c (default_symfile_segments): Update.
4133 * elfread.c (elf_symfile_segments): Update.
4134 * remote.c (remote_target::get_offsets): Update.
4135 * solib-target.c (solib_target_relocate_section_addresses):
4136 Update.
4137
4138 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4139
4140 * symfile.h (struct symfile_segment_data): Initialize fields.
4141 <~symfile_segment_data>: Add.
4142 (symfile_segment_data_up): New.
4143 (struct sym_fns) <sym_segments>: Return a
4144 symfile_segment_data_up.
4145 (default_symfile_segments): Return a symfile_segment_data_up.
4146 (free_symfile_segment_data): Remove.
4147 (get_symfile_segment_data): Return a symfile_segment_data_up.
4148 * symfile.c (default_symfile_segments): Likewise.
4149 (get_symfile_segment_data): Likewise.
4150 (free_symfile_segment_data): Remove.
4151 (symfile_find_segment_sections): Update.
4152 * elfread.c (elf_symfile_segments): Return a
4153 symfile_segment_data_up.
4154 * remote.c (remote_target::get_offsets): Update.
4155 * solib-target.c (solib_target_relocate_section_addresses):
4156 Update.
4157 * symfile-debug.c (debug_sym_segments): Return a
4158 symfile_segment_data_up.
4159
4160 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4161
4162 PR build/25981
4163 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4164 Hardcode register numbers.
4165
4166 PR build/25981
4167 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4168 procfs_find_LDT_entry): Remove.
4169 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4170 procfs_find_LDT_entry): Remove.
4171 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4172 Remove.
4173
4174 2020-05-17 Pedro Alves <palves@redhat.com>
4175 Andrew Burgess <andrew.burgess@embecosm.com>
4176 Keno Fischer <keno@juliacomputing.com>
4177
4178 PR gdb/25741
4179 * breakpoint.c (build_target_condition_list): Update comments.
4180 (build_target_command_list): Update comments and skip matching
4181 locations.
4182 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4183 a separate function. Simplify "set breakpoint auto-hw off"
4184 handling.
4185 (insert_breakpoints): Update comment.
4186 (tracepoint_locations_match): New parameter. For breakpoints,
4187 compare location types too, if the caller wants to.
4188 (handle_automatic_hardware_breakpoints): New functions.
4189 (bp_location_is_less_than): Also sort by location type and
4190 hardware breakpoint length.
4191 (update_global_location_list): Handle "set breakpoint auto-hw on"
4192 here.
4193 (update_breakpoint_locations): Ask breakpoint_locations_match to
4194 ignore location types.
4195
4196 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4199 type::name instead.
4200
4201 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4202
4203 * gdbtypes.h (struct type) <name, set_name>: New methods.
4204 (TYPE_CODE): Use type::name. Change all call sites used to set
4205 the name to use type::set_name instead.
4206
4207 2020-05-16 Tom Tromey <tom@tromey.com>
4208
4209 * top.c (quit_force): Update.
4210 * infrun.c (handle_no_resumed): Update.
4211 * top.h (all_uis): New function.
4212 (ALL_UIS): Remove.
4213
4214 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4215
4216 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4217
4218 2020-05-16 Pedro Alves <palves@redhat.com>
4219
4220 * ia64-linux-nat.c
4221 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4222 Declare method.
4223 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4224
4225 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4226
4227 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4228 (sparc64_adi_info): Likewise.
4229
4230 2020-05-15 Tom Tromey <tom@tromey.com>
4231
4232 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4233 block_objfile.
4234 (lookup_objfile_from_block): Remove.
4235 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4236 (lookup_global_symbol): Use block_objfile.
4237 * symtab.h (lookup_objfile_from_block): Don't declare.
4238 * printcmd.c (clear_dangling_display_expressions): Use
4239 block_objfile.
4240 * parse.c (operator_check_standard): Use block_objfile.
4241
4242 2020-05-15 Tom Tromey <tom@tromey.com>
4243
4244 * language.c (language_alloc_type_symbol): Set
4245 SYMBOL_SECTION.
4246 * symtab.c (initialize_objfile_symbol): Remove.
4247 (allocate_symbol): Remove.
4248 (allocate_template_symbol): Remove.
4249 * dwarf2/read.c (fixup_go_packaging): Use "new".
4250 (new_symbol): Use "new".
4251 (read_variable): Don't call initialize_objfile_symbol. Use
4252 "new".
4253 (read_func_scope): Use "new".
4254 * xcoffread.c (process_xcoff_symbol): Don't call
4255 initialize_objfile_symbol.
4256 (SYMBOL_DUP): Remove.
4257 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4258 "new".
4259 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4260 (allocate_template_symbol): Don't declare.
4261 (struct symbol): Add copy constructor. Change defaults.
4262 * jit.c (finalize_symtab): Use "new".
4263 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4264 Use "new".
4265 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4266 (common_block_end): Use "new".
4267 * mdebugread.c (parse_symbol): Use "new".
4268 (new_symbol): Likewise.
4269
4270 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4271
4272 * NEWS: Mention changes to help and apropos.
4273
4274 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4275
4276 * command.h (enum command_class): Improve comments, document
4277 that class_alias is for user-defined aliases, give the class
4278 name for each class, remove unused class_xdb.
4279 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4280 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4281 by a precise class.
4282 * infcmd.c (_initialize_infcmd): Likewise.
4283 * reverse.c (_initialize_reverse): Likewise.
4284 * stack.c (_initialize_stack): Likewise.
4285 * symfile.c (_initialize_symfile): Likewise.
4286 * tracepoint.c (_initialize_tracepoint): Likewise.
4287
4288 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4289
4290 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4291 when their aliased command is traversed.
4292 (help_cmd): Add fput_command_names_styled call to
4293 output command name and aliases when command has an alias.
4294
4295 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4296
4297 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4298 * cli/cli-decode.c (help_cmd_list): Declare as static,
4299 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4300 a command together with the command.
4301 (fput_command_name_styled, fput_command_names_styled): New functions.
4302 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4303 fput_command_name_styled.
4304 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4305 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4306
4307 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4308
4309 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4310 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4311 * command.h (cmd_show_list): Likewise.
4312 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4313 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4314
4315 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4316
4317 * unittests/command-def-selftests.c (traverse_command_structure):
4318 Verify all commands of a list have the same prefix command and
4319 that only the top cmdlist commands have a null prefix.
4320
4321 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4322
4323 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4324 as prefix, not one of its aliases.
4325 (set_cmd_prefix): Remove.
4326 (do_add_cmd): Centralize the setting of the prefix of a command, when
4327 command is defined after its full chain of prefix commands.
4328 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4329 (add_setshow_cmd_full): Likewise.
4330 (update_prefix_field_of_prefixed_commands): New function.
4331 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4332 update_prefix_field_of_prefixed_commands.
4333 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4334 addresses of remote_set_cmdlist and remote_show_cmdlist given
4335 as argument, not the address of an argument.
4336 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4337 * gdb/remote.c (_initialize_remote): Likewise.
4338
4339 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4340
4341 * cli/cli-cmds.c (alias_command): Check for an existing alias
4342 using lookup_cmd_composition, as valid_command_p is too strict
4343 and forbids aliases that are the prefix of an existing alias
4344 or command.
4345 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4346 command is properly recognised as a valid command.
4347
4348 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4349
4350 * unittests/help-doc-selftests.c: Rename to
4351 unittests/command-def-selftests.c
4352 * unittests/command-def-selftests.c (help_doc_tests): Update some
4353 comments.
4354 (command_structure_tests, traverse_command_structure): New namespace
4355 and function.
4356 (command_structure_invariants_tests): New function.
4357 (_initialize_command_def_selftests) Renamed from
4358 _initialize_help_doc_selftests, register command_structure_invariants
4359 selftest.
4360
4361 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4362
4363 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4364 an alias of 'show'.
4365
4366 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4367
4368 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4369 ada_is_fixed_point_type. Update all callers.
4370 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4371 all callers.
4372 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4373 Update all callers.
4374 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4375 print_fixed_point_type. Update all callers.
4376 * ada-valprint.c (ada_value_print_num): Replace call to
4377 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4378
4379 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4380
4381 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4382 processors.
4383 (cpu_supports_bts): Add CV_AMD case.
4384
4385 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4386 Simon Marchi <simon.marchi@efficios.com>
4387
4388 * infrun.c (stop_all_threads): Collect multiple wait events at
4389 each pass.
4390
4391 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4392
4393 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4394 type::code instead.
4395
4396 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4397
4398 * gdbtypes.h (struct type) <code, set_code>: New methods.
4399 (TYPE_CODE): Use type::code. Change all call sites used to set
4400 the code to use type::set_code instead.
4401
4402 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4403 Tom de Vries <tdevries@suse.de>
4404 Pedro Alves <palves@redhat.com>
4405
4406 PR threads/25478
4407 * infrun.c (stop_all_threads): Do NOT ignore
4408 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4409 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4410 received.
4411 (handle_no_resumed): Remove code handling a live inferior with no
4412 threads.
4413 * remote.c (has_single_non_exited_thread): New.
4414 (remote_target::update_thread_list): Do not delete a thread if is
4415 the last thread of the process.
4416 * thread.c (thread_select): Call delete_exited_threads instead of
4417 prune_threads.
4418
4419 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4420
4421 * infrun.c (stop_all_threads): Enable/disable thread events of all
4422 targets. Move a debug message denoting the end of the function
4423 into the SCOPED_EXIT block.
4424
4425 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4426
4427 * process-stratum-target.h: Include <set>.
4428 (all_non_exited_process_targets, switch_to_target_no_thread): New
4429 function declarations.
4430 * process-stratum-target.c (all_non_exited_process_targets)
4431 (switch_to_target_no_thread): New function implementations.
4432
4433 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4434
4435 * infrun.c (handle_inferior_event): Extract out a piece of code
4436 into...
4437 (mark_non_executing_threads): ...this new function.
4438
4439 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4440
4441 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4442 use.
4443
4444 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4445
4446 * regcache.c (regcache_read_pc_protected): New function
4447 implementation that returns 0 if the PC cannot read via
4448 'regcache_read_pc'.
4449 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4450 instead of 'regcache_read_pc'.
4451 (keep_going_pass_signal): Ditto.
4452
4453 2020-05-13 Tom Tromey <tromey@adacore.com>
4454
4455 * ada-lang.c (align_value): Remove.
4456 (ada_template_to_fixed_record_type_1): Use align_up.
4457
4458 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4459
4460 * async-event.c: Update the copyright year.
4461 * async-event.h: Update the copyright year.
4462
4463 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4464
4465 * objfiles.h (is_addr_in_objfile,
4466 shared_objfile_contains_address_p): Return bool.
4467 * objfile.c (is_addr_in_objfile,
4468 shared_objfile_contains_address_p): Return bool.
4469
4470 2020-05-11 Tom Tromey <tromey@adacore.com>
4471
4472 * cli/cli-cmds.c (info_command): Restore.
4473 (_initialize_cli_cmds): Use add_prefix_command for "info".
4474 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4475
4476 2020-05-11 Tom Tromey <tromey@adacore.com>
4477
4478 * ada-lang.c (ada_value_primitive_field): Now public.
4479 * ada-lang.h (ada_value_primitive_field): Declare.
4480 * ada-valprint.c (print_field_values): Use
4481 ada_value_primitive_field for wrapper fields.
4482
4483 2020-05-11 Tom de Vries <tdevries@suse.de>
4484
4485 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4486 MODULE_DOMAIN.
4487
4488 2020-05-11 Tom de Vries <tdevries@suse.de>
4489
4490 PR symtab/25941
4491 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4492 with length 0, if not gdb-produced.
4493 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4494
4495 2020-05-09 Tom de Vries <tdevries@suse.de>
4496
4497 PR gdb/25955
4498 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4499 calculation.
4500
4501 2020-05-09 Tom Tromey <tom@tromey.com>
4502
4503 * top.c (server_command): Now bool.
4504 * top.h (server_command): Now bool.
4505
4506 2020-05-08 Tom Tromey <tromey@adacore.com>
4507
4508 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4509 already being processed.
4510
4511 2020-05-08 Tom Tromey <tom@tromey.com>
4512
4513 * printcmd.c (struct display) <next>: Remove.
4514 <display>: New constructor.
4515 <exp_string>: Now a std::string.
4516 <enabled_p>: Now a bool.
4517 (display_number): Move definition earlier.
4518 (displays): Rename from display_chain. Now a std::vector.
4519 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4520 (display_command): Update.
4521 (do_one_display, disable_display)
4522 (enable_disable_display_command, do_enable_disable_display):
4523 Update.
4524 (free_display): Remove.
4525 (clear_displays): Rewrite.
4526 (delete_display): Update.
4527 (map_display_numbers): Use function_view. Remove "data"
4528 parameter. Update.
4529 (do_delete_display): Remove.
4530 (undisplay_command): Update.
4531 (do_one_display, do_displays, disable_display)
4532 (info_display_command): Update.
4533 (do_enable_disable_display): Remove.
4534 (enable_disable_display_command)
4535 (clear_dangling_display_expressions): Update.
4536
4537 2020-05-08 Tom Tromey <tom@tromey.com>
4538
4539 * symtab.c (set_symbol_cache_size)
4540 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4541 (maintenance_print_symbol_cache_statistics): Update.
4542 * symmisc.c (print_symbol_bcache_statistics)
4543 (print_objfile_statistics, maintenance_print_objfiles)
4544 (maintenance_info_symtabs, maintenance_check_symtabs)
4545 (maintenance_expand_symtabs, maintenance_info_line_tables):
4546 Update.
4547 * symfile-debug.c (set_debug_symfile): Update.
4548 * source.c (forget_cached_source_info): Update.
4549 * python/python.c (gdbpy_progspaces): Update.
4550 * psymtab.c (maintenance_info_psymtabs): Update.
4551 * probe.c (parse_probes): Update.
4552 * linespec.c (iterate_over_all_matching_symtabs)
4553 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4554 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4555 * exec.c (exec_target::close): Update.
4556 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4557 * breakpoint.c (print_one_breakpoint_location)
4558 (create_longjmp_master_breakpoint)
4559 (create_std_terminate_master_breakpoint): Update.
4560 * progspace.c (program_spaces): Now a std::vector.
4561 (maybe_new_address_space): Update.
4562 (add_program_space): Remove.
4563 (program_space::program_space): Update.
4564 (remove_program_space): Update.
4565 (number_of_program_spaces): Remove.
4566 (print_program_space, update_address_spaces): Update.
4567 * progspace.h (program_spaces): Change type.
4568 (ALL_PSPACES): Remove.
4569 (number_of_program_spaces): Don't declare.
4570 (struct program_space) <next>: Remove.
4571
4572 2020-05-08 Tom Tromey <tom@tromey.com>
4573
4574 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4575 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4576 (enable_break): Update.
4577 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4578 (frv_fdpic_find_canonical_descriptor): Update.
4579 (frv_fetch_objfile_link_map): Update.
4580 * progspace.c (program_space::free_all_objfiles): Update.
4581 (program_space::solibs): New method.
4582 * progspace.h (struct program_space) <solibs>: New method.
4583 * solist.h (master_so_list): Don't declare.
4584 (ALL_SO_LIBS): Remove.
4585 * solib.h (so_list_head): Remove.
4586 (update_solib_list): Update comment.
4587 * solib.c (master_so_list): Remove.
4588 (solib_used, update_solib_list, solib_add)
4589 (info_sharedlibrary_command, clear_solib)
4590 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4591
4592 2020-05-08 Tom Tromey <tom@tromey.com>
4593
4594 * extension.c (extension_languages): Now a std::array.
4595 (ALL_EXTENSION_LANGUAGES): Remove.
4596 (get_ext_lang_defn, get_ext_lang_of_file)
4597 (eval_ext_lang_from_control_command): Update.
4598 (finish_ext_lang_initialization)
4599 (auto_load_ext_lang_scripts_for_objfile)
4600 (ext_lang_type_printers::ext_lang_type_printers)
4601 (apply_ext_lang_type_printers)
4602 (ext_lang_type_printers::~ext_lang_type_printers)
4603 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4604 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4605 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4606 (get_matching_xmethod_workers, ext_lang_colorize)
4607 (ext_lang_before_prompt): Update.
4608 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4609
4610 2020-05-08 Tom Tromey <tom@tromey.com>
4611
4612 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4613 overload.
4614 <swap_string, m_string>: Remove.
4615 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4616 Update.
4617 * stabsread.c (define_symbol, read_type): Update.
4618 * linespec.c (find_linespec_symbols): Update.
4619 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4620 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4621 * dbxread.c (read_dbx_symtab): Update.
4622 * cp-support.h (cp_canonicalize_string_full)
4623 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4624 Return unique_xmalloc_ptr.
4625 * cp-support.c (inspect_type): Update.
4626 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4627 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4628 Likewise.
4629 * c-typeprint.c (print_name_maybe_canonical): Update.
4630 * break-catch-throw.c (check_status_exception_catchpoint):
4631 Update.
4632
4633 2020-05-08 Tom de Vries <tdevries@suse.de>
4634
4635 * infrun.c (follow_fork): Copy current_line and current_symtab to
4636 child thread.
4637
4638 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4639
4640 * async-event.c (struct async_signal_handler, struct
4641 async_event_handler): Reformat, remove typedef.
4642
4643 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4644
4645 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4646 access thistype->main_type->dyn_prop_list directly.
4647
4648 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4651 (remove_dyn_prop): Remove. Update all users to use
4652 type::remove_dyn_prop.
4653 * gdbtypes.c (remove_dyn_prop): Rename to...
4654 (type::remove_dyn_prop): ... this.
4655
4656 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4657
4658 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4659 (add_dyn_prop): Remove. Update all users to use
4660 type::add_dyn_prop.
4661 * gdbtypes.c (add_dyn_prop): Rename to...
4662 (type::add_dyn_prop): ... this.
4663
4664 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4665
4666 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4667 (get_dyn_prop): Remove. Update all users to use
4668 type::dyn_prop.
4669 * gdbtypes.c (get_dyn_prop): Rename to...
4670 (type::dyn_prop): ... this.
4671
4672 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4675
4676 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4677
4678 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4679 instruction, skip it if it's there.
4680
4681 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4682
4683 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4684
4685 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4686
4687 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4688 * gdbtypes.c (recursive_dump_type): Remove use of
4689 TYPE_INCOMPLETE.
4690
4691 2020-05-03 Tom Tromey <tom@tromey.com>
4692
4693 * breakpoint.c (catch_command, tcatch_command): Remove.
4694 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4695 add_show_prefix_cmd.
4696 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4697 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4698 Remove.
4699 (add_internal_problem_command): Use add_basic_prefix_cmd,
4700 add_show_prefix_cmd.
4701 * mips-tdep.c (set_mipsfpu_command): Remove.
4702 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4703 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4704 (_initialize_index_cache): Use add_basic_prefix_cmd.
4705 * memattr.c (dummy_cmd): Remove.
4706 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4707 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4708 (_initialize_tui_win): Use add_basic_prefix_cmd,
4709 add_show_prefix_cmd.
4710 * cli/cli-logging.c (set_logging_command): Remove.
4711 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4712 add_show_prefix_cmd.
4713 (show_logging_command): Remove.
4714 * target.c (target_command): Remove.
4715 (add_target): Use add_basic_prefix_cmd.
4716
4717 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4718
4719 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4720
4721 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4722
4723 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4724 info_command.
4725
4726 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4727
4728 * nbsd-nat.c (nbsd_enable_proc_events)
4729 (nbsd_nat_target::post_startup_inferior): Add.
4730 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4731 (nbsd_nat_target::update_thread_list): Rewrite.
4732 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4733 "PTRACE_LWP_CREATE".
4734 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4735
4736 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4737
4738 * stack.c (_initialize_stack): Remove duplicated creation
4739 of "frame" command and "f" alias.
4740
4741 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4742
4743 PR gdb/18706
4744 * gdbtypes.c (check_typedef): Calculate size of array of
4745 stubbed type.
4746
4747 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4748
4749 PR gdb/15559
4750 * i386-tdep.c (i386_push_dummy_call): Call
4751 i386_thiscall_push_dummy_call.
4752 (i386_thiscall_push_dummy_call): New function.
4753 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4754 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4755 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4756
4757 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * gdbarch.sh (do_read): Add shellcheck disable directive for
4760 warning SC2162.
4761
4762 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4765 "referenced but not assigned" warning.
4766
4767 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4768
4769 * gdbarch.sh: Remove code that sets fallbackdefault.
4770
4771 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4772
4773 * gdbarch.sh: Use shell operators && and || instead of
4774 -a and -o.
4775
4776 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4777
4778 * gdbarch.sh: Use $(...) instead of `...`.
4779
4780 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * gdbarch.sh: Use double quotes around variables.
4783
4784 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4785
4786 * gdbarch.sh: Use %s with printf, instead of variables in the
4787 format string.
4788
4789 2020-04-29 Tom Tromey <tromey@adacore.com>
4790
4791 PR ada/25875:
4792 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4793 type fields here.
4794 (read_enumeration_type): Call
4795 update_enumeration_type_from_children later. Update comments.
4796 (process_enumeration_scope): Don't create type fields.
4797
4798 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4799
4800 * nbsd-tdep.c: Include "xml-syscall.h".
4801 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4802
4803 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4804
4805 * nbsd-nat.c: Include "sys/wait.h".
4806 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4807 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4808 (nbsd_nat_target::remove_exec_catchpoint)
4809 (nbsd_nat_target::set_syscall_catchpoint): Add.
4810 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4811 (nbsd_nat_target::insert_exec_catchpoint)
4812 (nbsd_nat_target::remove_exec_catchpoint)
4813 (nbsd_nat_target::set_syscall_catchpoint): Add.
4814 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4815 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4816 `nbsd_get_syscall_number'.
4817
4818 2020-04-29 Tom Tromey <tom@tromey.com>
4819
4820 * stack.c (print_block_frame_labels): Remove.
4821
4822 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4823
4824 PR gdb/17320
4825 * ada-valprint.c (val_print_packed_array_elements): Move array
4826 end bracket to new line.
4827 (ada_val_print_string): Remove extra spaces before first array
4828 element.
4829 * c-valprint.c (c_value_print_array): Likewise.
4830 * m2-valprint.c (m2_print_array_contents): Likewise.
4831 (m2_value_print_inner): Likewise.
4832 * p-valprint.c (pascal_value_print_inner): Likewise.
4833 * valprint.c (generic_val_print_array): Likewise.
4834 (value_print_array_elements): Move first array element and array
4835 end bracket to new line.
4836
4837 2020-04-29 Tom de Vries <tdevries@suse.de>
4838
4839 PR symtab/25889
4840 * linespec.c (find_method): Fix ix calculation.
4841
4842 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4843
4844 * syscalls/update-netbsd.sh: New file.
4845 * syscalls/netbsd.xml: Regenerate.
4846 * data-directory/Makefile.in: Register `netbsd.xml' in
4847 `SYSCALLS_FILES'.
4848
4849 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * syscalls/update-freebsd.sh: Add double quotes.
4852
4853 2020-04-28 Tom Tromey <tom@tromey.com>
4854
4855 * NEWS: Update.
4856 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4857 (cmdpy_init): Allow class_tui.
4858
4859 2020-04-28 Mark Williams <mark@myosotissp.com>
4860
4861 PR gdb/24480
4862 * dwarf2read.c: Add missing assingments to list_in_scope when
4863 start_symtab was already called.
4864
4865 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4866
4867 PR gdb/25881
4868 * dwarf2/read.c (offset_map_type): Use
4869 gdb:hash_enum<sect_offset> as hash function.
4870
4871 2020-04-28 Tom de Vries <tdevries@suse.de>
4872
4873 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4874 with DW_AT_signature.
4875
4876 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4877
4878 * configure.ac: Remove check for fs_base/gs_base in
4879 user_regs_struct.
4880 * configure: Re-generate.
4881 * config.in: Re-generate.
4882 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4883 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4884 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4885
4886 2020-04-27 Luis Machado <luis.machado@linaro.org>
4887
4888 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4889 problematic inline frame unwinding situation.
4890 * frame.c (frame_id_computed_p): New function.
4891 * frame.h (frame_id_computed_p): New prototype.
4892
4893 2020-04-26 Tom Tromey <tom@tromey.com>
4894
4895 * command.h (enum command_class) <class_pseudo>: Remove.
4896
4897 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4898
4899 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4900 and whitespace.
4901
4902 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4903
4904 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4905 `PT_GET_PROCESS_STATE' block.
4906
4907 2020-04-24 Tom Tromey <tom@tromey.com>
4908
4909 * symtab.h (symbol_get_demangled_name): Don't declare.
4910 * symtab.c (symbol_get_demangled_name): Remove.
4911 (general_symbol_info::natural_name)
4912 (general_symbol_info::demangled_name): Update.
4913
4914 2020-04-24 Tom Tromey <tom@tromey.com>
4915
4916 PR rust/25025:
4917 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4918
4919 2020-04-24 Tom Tromey <tom@tromey.com>
4920
4921 PR symtab/12707:
4922 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4923 exists.
4924 (new_symbol): Likewise.
4925 * compile/compile-object-load.c (get_out_value_type): Use
4926 symbol_matches_search_name.
4927
4928 2020-04-24 Tom Tromey <tom@tromey.com>
4929
4930 * dwarf2/read.c (add_partial_symbol): Do not call
4931 compute_and_set_names.
4932
4933 2020-04-24 Tom Tromey <tom@tromey.com>
4934
4935 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
4936 overload.
4937
4938 2020-04-24 Tom Tromey <tom@tromey.com>
4939
4940 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
4941 (add_psymbol_to_list): New overload. Make old overload call new
4942 one.
4943 * psympriv.h (add_psymbol_to_list): New overload.
4944
4945 2020-04-24 Tom Tromey <tom@tromey.com>
4946
4947 * dwarf2/read.c (partial_die_info::read) <case
4948 DW_AT_linkage_name>: Use value_as_string.
4949 (dwarf2_string_attr): Use value_as_string.
4950 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
4951 method.
4952 * dwarf2/attribute.c (attribute::value_as_string): New method.
4953
4954 2020-04-24 Tom Tromey <tom@tromey.com>
4955
4956 * symtab.c (general_symbol_info::natural_name)
4957 (general_symbol_info::demangled_name): Check for language_rust.
4958
4959 2020-04-24 Tom Tromey <tom@tromey.com>
4960
4961 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
4962 (dwarf2_physname): ... from here.
4963 (partial_die_info::read): Add Rust "{" hack.
4964
4965 2020-04-24 Tom Tromey <tom@tromey.com>
4966
4967 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
4968 method.
4969 (symbol_set_demangled_name): Don't declare.
4970 * symtab.c (general_symbol_info::set_demangled_name): Rename from
4971 symbol_set_demangled_name.
4972 (general_symbol_info::set_language)
4973 (general_symbol_info::compute_and_set_names): Update.
4974 * minsyms.c (minimal_symbol_reader::install): Update.
4975 * dwarf2/read.c (new_symbol): Update.
4976
4977 2020-04-24 Tom Tromey <tromey@adacore.com>
4978
4979 PR python/23662:
4980 * python/py-type.c (convert_field): Handle
4981 FIELD_LOC_KIND_DWARF_BLOCK.
4982 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
4983 (typy_get_dynamic): Nw function.
4984 (type_object_getset): Add "dynamic".
4985 * NEWS: Add entry.
4986
4987 2020-04-24 Tom Tromey <tromey@adacore.com>
4988
4989 * ada-typeprint.c (print_choices, print_variant_part)
4990 (print_record_field_types_dynamic): New functions.
4991 (print_record_field_types): Use print_record_field_types_dynamic.
4992
4993 2020-04-24 Tom Tromey <tromey@adacore.com>
4994
4995 * dwarf2/read.c (handle_data_member_location): New overload.
4996 (dwarf2_add_field): Use it.
4997 (decode_locdesc): Add "computed" parameter. Update comment.
4998 * gdbtypes.c (is_dynamic_type_internal): Also look for
4999 FIELD_LOC_KIND_DWARF_BLOCK.
5000 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5001 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5002 virtual base classes.
5003 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5004 FIELD_LOC_KIND_DWARF_BLOCK.
5005
5006 2020-04-24 Tom Tromey <tromey@adacore.com>
5007
5008 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5009 * gdbtypes.c (is_dynamic_type_internal): Check
5010 TYPE_HAS_DYNAMIC_LENGTH.
5011 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5012 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5013 New macros.
5014 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5015 constant.
5016
5017 2020-04-24 Tom Tromey <tromey@adacore.com>
5018
5019 * dwarf2/read.c (struct variant_field): Rewrite.
5020 (struct variant_part_builder): New.
5021 (struct nextfield): Remove "variant" field. Add "offset".
5022 (struct field_info): Add "current_variant_part" and
5023 "variant_parts".
5024 (alloc_discriminant_info): Remove.
5025 (alloc_rust_variant): New function.
5026 (quirk_rust_enum): Update.
5027 (dwarf2_add_field): Set "offset" member. Don't handle
5028 DW_TAG_variant_part.
5029 (offset_map_type): New typedef.
5030 (convert_variant_range, create_one_variant)
5031 (create_one_variant_part, create_variant_parts)
5032 (add_variant_property): New functions.
5033 (dwarf2_attach_fields_to_type): Call add_variant_property.
5034 (read_structure_type): Don't handle DW_TAG_variant_part.
5035 (handle_variant_part, handle_variant): New functions.
5036 (handle_struct_member_die): Use them.
5037 (process_structure_scope): Don't handle variant parts.
5038 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5039 (struct discriminant_info): Remove.
5040 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5041 (struct main_type) <flag_discriminated_union>: Remove.
5042 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5043 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5044 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5045 Update.
5046 * valops.c (value_union_variant): Remove.
5047 * value.h (value_union_variant): Don't declare.
5048
5049 2020-04-24 Tom Tromey <tromey@adacore.com>
5050
5051 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5052 (ada_value_primitive_packed_val): Update.
5053 * ada-valprint.c (ada_value_print_1): Update.
5054 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5055 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5056 just an address. Use evaluate_for_locexpr_baton.
5057 (dwarf2_evaluate_property): Update.
5058 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5059 array_view.
5060 * findvar.c (default_read_var_value): Update.
5061 * gdbtypes.c (compute_variant_fields_inner)
5062 (resolve_dynamic_type_internal): Update.
5063 (resolve_dynamic_type): Change type of valaddr parameter.
5064 * gdbtypes.h (resolve_dynamic_type): Update.
5065 * valarith.c (value_subscripted_rvalue): Update.
5066 * value.c (value_from_contents_and_address): Update.
5067
5068 2020-04-24 Tom Tromey <tromey@adacore.com>
5069
5070 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5071 "push_initial_value" parameter.
5072 (dwarf2_evaluate_property): Likewise.
5073 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5074
5075 2020-04-24 Tom Tromey <tromey@adacore.com>
5076
5077 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5078 (variant::matches, compute_variant_fields_recurse)
5079 (compute_variant_fields_inner, compute_variant_fields): New
5080 functions.
5081 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5082 Use resolved_type after type is made.
5083 (operator==): Add new cases.
5084 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5085 (struct discriminant_range, struct variant, struct variant_part):
5086 New.
5087 (union dynamic_prop_data) <variant_parts, original_type>: New
5088 members.
5089 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5090 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5091 constants.
5092 * value.c (unpack_bits_as_long): Now public.
5093 * value.h (unpack_bits_as_long): Declare.
5094
5095 2020-04-24 Tom Tromey <tromey@adacore.com>
5096
5097 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5098 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5099
5100 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5101
5102 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5103
5104 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5105
5106 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5107 (remove_fork_catchpoint, post_startup_inferior)
5108 (post_attach): Move...
5109 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5110 (remove_fork_catchpoint, post_startup_inferior)
5111 (post_attach): ...here.
5112 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5113 (remove_fork_catchpoint, post_startup_inferior)
5114 (post_attach): Move...
5115 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5116 (remove_fork_catchpoint, post_startup_inferior)
5117 (post_attach): ...here.
5118
5119 2020-04-24 Tom Tromey <tromey@adacore.com>
5120
5121 * nat/windows-nat.h (struct windows_thread_info)
5122 <pc_adjusted>: New member.
5123 * windows-nat.c (windows_fetch_one_register): Check
5124 pc_adjusted.
5125 (windows_nat_target::get_windows_debug_event)
5126 (windows_nat_target::wait): Set pc_adjusted.
5127
5128 2020-04-24 Tom de Vries <tdevries@suse.de>
5129
5130 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5131 Run gdb-add-index inside temp dir.
5132
5133 2020-04-23 Tom Tromey <tromey@adacore.com>
5134
5135 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5136 in loop.
5137
5138 2020-04-23 Luis Machado <luis.machado@linaro.org>
5139
5140 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5141 get_frame_register instead of gdbarch_unwind_pc.
5142
5143 2020-04-23 Tom de Vries <tdevries@suse.de>
5144
5145 * symtab.c (lookup_global_symbol): Prefer def over decl.
5146
5147 2020-04-23 Tom de Vries <tdevries@suse.de>
5148
5149 PR symtab/25807
5150 * block.c (best_symbol, better_symbol): Promote to external.
5151 * block.h (best_symbol, better_symbol): Declare.
5152 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5153 decl.
5154
5155 2020-04-23 Tom Tromey <tromey@adacore.com>
5156
5157 PR ada/25837:
5158 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5159 "const char *", not a "const std::string &".
5160 <name_and_matcher::operator==>: Update.
5161 * unittests/lookup_name_info-selftests.c: Change type of
5162 "result".
5163
5164 2020-04-23 Tom Tromey <tom@tromey.com>
5165
5166 * inferior.h (iterate_over_inferiors): Don't declare.
5167 * inferior.c (iterate_over_inferiors): Remove.
5168 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5169 Remove.
5170 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5171 use iterate_over_inferiors.
5172 (darwin_resume_inferior_it)
5173 (struct resume_inferior_threads_param)
5174 (darwin_resume_inferior_threads_it): Remove.
5175 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5176
5177 2020-04-23 Tom de Vries <tdevries@suse.de>
5178
5179 * blockframe.c (find_pc_partial_function): Use
5180 find_pc_sect_compunit_symtab rather than
5181 objfile->sf->qf->find_pc_sect_compunit_symtab.
5182
5183 2020-04-22 Tom de Vries <tdevries@suse.de>
5184
5185 PR symtab/25764
5186 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5187 in psymtabs.
5188
5189 2020-04-22 Tom de Vries <tdevries@suse.de>
5190
5191 PR symtab/25801
5192 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5193 symtabs.
5194
5195 2020-04-22 Tom de Vries <tdevries@suse.de>
5196
5197 PR symtab/25700
5198 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5199 CU if already created.
5200
5201 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5202
5203 * infrun.c (displaced_step_fixup): Switch to the event_thread
5204 before calling displaced_step_restore, not after.
5205
5206 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5207
5208 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5209 its inferior is not recorded by us.
5210 (record_btrace_target_open): Replace call to
5211 all_non_exited_threads () with call to current_inferior
5212 ()->non_exited_threads ().
5213 (record_btrace_target::stop_recording): Likewise.
5214 (record_btrace_target::close): Likewise.
5215 (record_btrace_target::wait): Likewise.
5216 (record_btrace_target::record_stop_replaying): Likewise.
5217
5218 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5219
5220 * btrace.c (btrace_enable): Throw an error on double enables and
5221 when enabling recording fails.
5222 (btrace_disable): Throw an error if the thread is not recorded.
5223
5224 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5225
5226 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5227 request if we do not have a thread_info.
5228
5229 2020-04-21 Tom de Vries <tdevries@suse.de>
5230
5231 PR gdb/25471
5232 * thread.c
5233 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5234 exception in get_frame_id.
5235
5236 2020-04-20 Tom Tromey <tromey@adacore.com>
5237
5238 * python/python.c (struct gdbpy_event): Mark move constructor as
5239 noexcept.
5240 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5241 constructor as noexcept.
5242 * completer.h (struct completion_result): Mark move constructor as
5243 noexcept.
5244 * completer.c (completion_result::completion_result): Use
5245 initialization style. Don't call reset_match_list.
5246
5247 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5248
5249 * MAINTAINERS (Write After Approval): Add myself.
5250
5251 2020-04-18 Tom Tromey <tom@tromey.com>
5252
5253 * windows-tdep.c (init_w32_command_list)
5254 (w32_prefix_command_valid): Restore.
5255 (_initialize_windows_tdep): Call init_w32_command_list.
5256
5257 2020-04-18 Tom Tromey <tom@tromey.com>
5258
5259 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5260 * value.c (value_fn_field): Update.
5261 * valops.c (find_function_in_inferior)
5262 (value_allocate_space_in_inferior): Update.
5263 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5264 Update.
5265 * tui/tui-source.c (tui_source_window::set_contents): Update.
5266 * symtab.c (lookup_global_or_static_symbol)
5267 (find_function_start_sal_1, skip_prologue_sal)
5268 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5269 * symmisc.c (dump_msymbols, dump_symtab_1)
5270 (maintenance_print_one_line_table): Update.
5271 * symfile.c (init_entry_point_info, section_is_mapped)
5272 (list_overlays_command, simple_read_overlay_table)
5273 (simple_overlay_update_1): Update.
5274 * stap-probe.c (handle_stap_probe): Update.
5275 * stabsread.c (dbx_init_float_type, define_symbol)
5276 (read_one_struct_field, read_enum_type, read_range_type): Update.
5277 * source.c (info_line_command): Update.
5278 * python/python.c (gdbpy_source_objfile_script)
5279 (gdbpy_execute_objfile_script): Update.
5280 * python/py-type.c (save_objfile_types): Update.
5281 * python/py-objfile.c (py_free_objfile): Update.
5282 * python/py-inferior.c (python_new_objfile): Update.
5283 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5284 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5285 (maintenance_check_psymtabs): Update.
5286 * printcmd.c (info_address_command): Update.
5287 * objfiles.h (struct objfile) <arch>: New method, from
5288 get_objfile_arch.
5289 (get_objfile_arch): Don't declare.
5290 * objfiles.c (get_objfile_arch): Remove.
5291 (filter_overlapping_sections): Update.
5292 * minsyms.c (msymbol_is_function): Update.
5293 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5294 (output_nondebug_symbol): Update.
5295 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5296 (mdebug_expand_psymtab): Update.
5297 * machoread.c (macho_add_oso_symfile): Update.
5298 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5299 Update.
5300 * linux-fork.c (checkpoint_command): Update.
5301 * linespec.c (convert_linespec_to_sals): Update.
5302 * jit.c (finalize_symtab): Update.
5303 * infrun.c (insert_exception_resume_from_probe): Update.
5304 * ia64-tdep.c (ia64_find_unwind_table): Update.
5305 * hppa-tdep.c (internalize_unwinds): Update.
5306 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5307 Update.
5308 * gcore.c (call_target_sbrk): Update.
5309 * elfread.c (record_minimal_symbol, elf_symtab_read)
5310 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5311 (elf_gnu_ifunc_resolve_by_got): Update.
5312 * dwarf2/read.c (create_addrmap_from_index)
5313 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5314 (read_debug_names_from_section)
5315 (process_psymtab_comp_unit_reader, add_partial_symbol)
5316 (add_partial_subprogram, process_full_comp_unit)
5317 (read_file_scope, read_func_scope, read_lexical_block_scope)
5318 (read_call_site_scope, dwarf2_ranges_read)
5319 (dwarf2_record_block_ranges, dwarf2_add_field)
5320 (mark_common_block_symbol_computed, read_tag_pointer_type)
5321 (read_tag_string_type, dwarf2_init_float_type)
5322 (dwarf2_init_complex_target_type, read_base_type)
5323 (partial_die_info::read, partial_die_info::read)
5324 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5325 (dwarf2_fetch_die_loc_sect_off): Update.
5326 * dwarf2/loc.c (dwarf2_find_location_expression)
5327 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5328 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5329 (dwarf2_loc_desc_get_symbol_read_needs)
5330 (locexpr_describe_location_piece, locexpr_describe_location_1)
5331 (loclist_describe_location): Update.
5332 * dwarf2/index-write.c (write_debug_names): Update.
5333 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5334 * dtrace-probe.c (dtrace_process_dof): Update.
5335 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5336 (process_one_symbol): Update.
5337 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5338 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5339 (coff_read_enum_type): Update.
5340 * cli/cli-cmds.c (edit_command, list_command): Update.
5341 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5342 * breakpoint.c (create_overlay_event_breakpoint)
5343 (create_longjmp_master_breakpoint)
5344 (create_std_terminate_master_breakpoint)
5345 (create_exception_master_breakpoint, get_sal_arch): Update.
5346 * block.c (block_gdbarch): Update.
5347 * annotate.c (annotate_source_line): Update.
5348
5349 2020-04-17 Tom Tromey <tromey@adacore.com>
5350
5351 * auto-load.c (show_auto_load_cmd): Remove.
5352 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5353 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5354 (maintenance_print_arc_command): Remove.
5355 * tui/tui-win.c (tui_command): Remove.
5356 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5357 * tui/tui-layout.c (tui_layout_command): Remove.
5358 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5359 * python/python.c (user_set_python, user_show_python): Remove.
5360 (_initialize_python): Use add_basic_prefix_cmd,
5361 add_show_prefix_cmd.
5362 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5363 (install_gdb_commands): Use add_basic_prefix_cmd,
5364 add_show_prefix_cmd.
5365 (info_guile_command): Remove.
5366 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5367 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5368 add_show_prefix_cmd.
5369 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5370 Remove do_set and do_show parameters.
5371 * cli/cli-style.c (set_style, show_style): Remove.
5372 (_initialize_cli_style): Use add_basic_prefix_cmd,
5373 add_show_prefix_cmd.
5374 (cli_style_option::add_setshow_commands): Remove do_set and
5375 do_show parameters.
5376 (cli_style_option::add_setshow_commands): Use
5377 add_basic_prefix_cmd, add_show_prefix_cmd.
5378 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5379 (set_style_name): Remove.
5380 * cli/cli-dump.c (dump_command, append_command): Remove.
5381 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5382 (tekhex_dump_command, binary_dump_command)
5383 (binary_append_command): Remove.
5384 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5385 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5386 (init_w32_command_list): Remove; move into ...
5387 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5388 * valprint.c (set_print, show_print, set_print_raw)
5389 (show_print_raw): Remove.
5390 (_initialize_valprint): Use add_basic_prefix_cmd,
5391 add_show_prefix_cmd.
5392 * typeprint.c (set_print_type, show_print_type): Remove.
5393 (_initialize_typeprint): Use add_basic_prefix_cmd,
5394 add_show_prefix_cmd.
5395 * record.c (set_record_command, show_record_command): Remove.
5396 (_initialize_record): Use add_basic_prefix_cmd,
5397 add_show_prefix_cmd.
5398 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5399 add_show_prefix_cmd.
5400 (info_command, show_command, set_debug, show_debug): Remove.
5401 * top.h (set_history, show_history): Don't declare.
5402 * top.c (set_history, show_history): Remove.
5403 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5404 (unset_tdesc_cmd): Remove.
5405 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5406 add_show_prefix_cmd.
5407 * symtab.c (info_module_command): Remove.
5408 (_initialize_symtab): Use add_basic_prefix_cmd.
5409 * symfile.c (overlay_command): Remove.
5410 (_initialize_symfile): Use add_basic_prefix_cmd.
5411 * sparc64-tdep.c (info_adi_command): Remove.
5412 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5413 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5414 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5415 add_show_prefix_cmd.
5416 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5417 (_initialize_serial): Use add_basic_prefix_cmd,
5418 add_show_prefix_cmd.
5419 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5420 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5421 add_show_prefix_cmd.
5422 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5423 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5424 add_show_prefix_cmd.
5425 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5426 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5427 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5428 add_show_prefix_cmd.
5429 * remote.c (remote_command, set_remote_cmd): Remove.
5430 (_initialize_remote): Use add_basic_prefix_cmd.
5431 * record-full.c (set_record_full_command)
5432 (show_record_full_command): Remove.
5433 (_initialize_record_full): Use add_basic_prefix_cmd,
5434 add_show_prefix_cmd.
5435 * record-btrace.c (cmd_set_record_btrace)
5436 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5437 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5438 (cmd_show_record_btrace_pt): Remove.
5439 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5440 add_show_prefix_cmd.
5441 * ravenscar-thread.c (set_ravenscar_command)
5442 (show_ravenscar_command): Remove.
5443 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5444 add_show_prefix_cmd.
5445 * mips-tdep.c (show_mips_command, set_mips_command)
5446 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5447 add_show_prefix_cmd.
5448 * maint.c (maintenance_command, maintenance_info_command)
5449 (maintenance_check_command, maintenance_print_command)
5450 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5451 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5452 add_show_prefix_cmd.
5453 (show_per_command_cmd): Remove.
5454 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5455 Remove.
5456 (maintenance_show_test_settings_cmd): Remove.
5457 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5458 add_show_prefix_cmd.
5459 * maint-test-options.c (maintenance_test_options_command):
5460 Remove.
5461 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5462 * macrocmd.c (macro_command): Remove
5463 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5464 * language.c (set_check, show_check): Remove.
5465 (_initialize_language): Use add_basic_prefix_cmd,
5466 add_show_prefix_cmd.
5467 * infcmd.c (unset_command): Remove.
5468 (_initialize_infcmd): Use add_basic_prefix_cmd.
5469 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5470 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5471 add_show_prefix_cmd.
5472 * go32-nat.c (go32_info_dos_command): Remove.
5473 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5474 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5475 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5476 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5477 (_initialize_frame): Use add_basic_prefix_cmd,
5478 add_show_prefix_cmd.
5479 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5480 (_initialize_dcache): Use add_basic_prefix_cmd,
5481 add_show_prefix_cmd.
5482 * cp-support.c (maint_cplus_command): Remove.
5483 (_initialize_cp_support): Use add_basic_prefix_cmd.
5484 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5485 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5486 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5487 add_basic_prefix_cmd, add_show_prefix_cmd.
5488 * breakpoint.c (save_command): Remove.
5489 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5490 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5491 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5492 add_show_prefix_cmd.
5493 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5494 (set_ada_command, show_ada_command): Remove.
5495 (_initialize_ada_language): Use add_basic_prefix_cmd,
5496 add_show_prefix_cmd.
5497 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5498
5499 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5500
5501 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5502 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5503
5504 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5505
5506 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5507 warning messages.
5508
5509 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5510
5511 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5512 import table is not at beginning of .idata section.
5513
5514 2020-04-16 Pedro Alves <palves@redhat.com>
5515
5516 * inferior.c (delete_inferior): Use delete operator directly
5517 instead of delete_program_space.
5518 * progspace.c (add_program_space): New, factored out from
5519 program_space::program_space.
5520 (remove_program_space): New, factored out from
5521 delete_program_space.
5522 (program_space::program_space): Remove intro comment. Rewrite.
5523 (program_space::~program_space): Remove intro comment. Call
5524 remove_program_space.
5525 (delete_program_space): Delete.
5526 * progspace.h (program_space::program_space): Make explicit. Move
5527 intro comment here, adjusted.
5528 (program_space::~program_space): Move intro comment here,
5529 adjusted.
5530 (delete_program_space): Remove.
5531
5532 2020-04-16 Tom Tromey <tromey@adacore.com>
5533
5534 * windows-nat.c (windows_nat::handle_access_violation): New
5535 function.
5536 * nat/windows-nat.h (handle_access_violation): Declare.
5537 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5538 windows-nat.c. Call handle_access_violation.
5539
5540 2020-04-16 Tom de Vries <tdevries@suse.de>
5541
5542 PR symtab/25791
5543 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5544 CUs without psymtab.
5545
5546 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5547
5548 * python/python.c (do_start_initialization): Don't call
5549 PyEval_InitThreads for Python 3.9 and beyond.
5550
5551 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5552
5553 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5554 thread functions.
5555 (obsd_nat_target::wait): Likewise.
5556
5557 2020-04-15 Tom Tromey <tromey@adacore.com>
5558
5559 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5560 (DEBUG_EXCEPT): Use debug_printf.
5561
5562 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5563
5564 * completer.c (class completion_tracker::completion_hash_entry)
5565 <hash_name>: New member function.
5566 (completion_tracker::discard_completions): New callback to hash a
5567 completion_hash_entry, pass this to htab_create_alloc.
5568
5569 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5570
5571 * windows-nat.c (windows_make_so): Warn rather than stopping with
5572 an error if realpath() fails.
5573
5574 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5575
5576 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5577 (nbsd_nat_target::info_proc): Add do_status.
5578
5579 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5580 Tom de Vries <tdevries@suse.de>
5581
5582 PR symtab/25718
5583 * psympriv.h (struct partial_symtab::read_symtab)
5584 (struct partial_symtab::expand_psymtab)
5585 (struct partial_symtab::read_dependencies): Update comments.
5586 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5587 read_symtab for includer.
5588 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5589 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5590 (struct dwarf2_include_psymtab::m_readin): Remove.
5591 (struct dwarf2_include_psymtab::includer): New member function.
5592 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5593
5594 2020-04-14 Tom de Vries <tdevries@suse.de>
5595
5596 PR symtab/25720
5597 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5598 with NULL symbol_matcher and lookup_name.
5599 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5600 and lookup_name.
5601 * dwarf2/read.c (dw2_expand_symtabs_matching)
5602 (dw2_debug_names_expand_symtabs_matching): Same.
5603 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5604 Make lookup_name a pointer. Update comment.
5605 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5606 lookup_name being a pointer.
5607 * symfile.c (expand_symtabs_matching): Same.
5608 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5609 * linespec.c (iterate_over_all_matching_symtabs): Same.
5610
5611 2020-04-13 Tom Tromey <tom@tromey.com>
5612
5613 * run-on-main-thread.c: Update include.
5614 * unittests/main-thread-selftests.c: Update include.
5615 * tui/tui-win.c: Update include.
5616 * tui/tui-io.c: Update include.
5617 * tui/tui-interp.c: Update include.
5618 * tui/tui-hooks.c: Update include.
5619 * top.h: Update include.
5620 * top.c: Update include.
5621 * ser-base.c: Update include.
5622 * remote.c: Update include.
5623 * remote-notif.c: Update include.
5624 * remote-fileio.c: Update include.
5625 * record-full.c: Update include.
5626 * record-btrace.c: Update include.
5627 * python/python.c: Update include.
5628 * posix-hdep.c: Update include.
5629 * mingw-hdep.c: Update include.
5630 * mi/mi-main.c: Update include.
5631 * mi/mi-interp.c: Update include.
5632 * main.c: Update include.
5633 * linux-nat.c: Update include.
5634 * interps.c: Update include.
5635 * infrun.c: Update include.
5636 * inf-loop.c: Update include.
5637 * event-top.c: Update include.
5638 * event-loop.c: Move to ../gdbsupport/.
5639 * event-loop.h: Move to ../gdbsupport/.
5640 * async-event.h: Update include.
5641 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5642
5643 2020-04-13 Tom Tromey <tom@tromey.com>
5644
5645 * tui/tui-win.c: Include async-event.h.
5646 * remote.c: Include async-event.h.
5647 * remote-notif.c: Include async-event.h.
5648 * record-full.c: Include async-event.h.
5649 * record-btrace.c: Include async-event.h.
5650 * infrun.c: Include async-event.h.
5651 * event-top.c: Include async-event.h.
5652 * event-loop.h: Move some declarations to async-event.h.
5653 * event-loop.c: Don't include ser-event.h or top.h. Move some
5654 code to async-event.c.
5655 * async-event.h: New file.
5656 * async-event.c: New file.
5657 * Makefile.in (COMMON_SFILES): Add async-event.c.
5658 (HFILES_NO_SRCDIR): Add async-event.h.
5659
5660 2020-04-13 Tom Tromey <tom@tromey.com>
5661
5662 * utils.c (flush_streams): New function.
5663 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5664
5665 2020-04-13 Tom Tromey <tom@tromey.com>
5666
5667 * event-loop.c (handle_file_event): Use warning, not
5668 printf_unfiltered.
5669
5670 2020-04-13 Tom Tromey <tom@tromey.com>
5671
5672 * event-loop.c: Include <chrono>.
5673
5674 2020-04-13 Tom Tromey <tom@tromey.com>
5675
5676 * gdb_select.h: Move to ../gdbsupport/.
5677 * event-loop.c: Update include path.
5678 * top.c: Update include path.
5679 * ser-base.c: Update include path.
5680 * ui-file.c: Update include path.
5681 * ser-tcp.c: Update include path.
5682 * guile/scm-ports.c: Update include path.
5683 * posix-hdep.c: Update include path.
5684 * ser-unix.c: Update include path.
5685 * gdb_usleep.c: Update include path.
5686 * mingw-hdep.c: Update include path.
5687 * inflow.c: Update include path.
5688 * infrun.c: Update include path.
5689 * event-top.c: Update include path.
5690
5691 2020-04-13 Tom Tromey <tom@tromey.com>
5692
5693 * configure: Rebuild.
5694 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5695
5696 2020-04-13 Tom Tromey <tom@tromey.com>
5697
5698 * event-loop.h (start_event_loop): Don't declare.
5699 * event-loop.c (start_event_loop): Move...
5700 * main.c (start_event_loop): ...here. Now static.
5701
5702 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5703
5704 * MAINTAINERS: Update my email address.
5705
5706 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5707
5708 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5709 IP_ALL.
5710
5711 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5712
5713 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5714 (nbsd_nat_target::info_proc): Add do_cmdline.
5715
5716 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5717
5718 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5719 (nbsd_nat_target::info_proc): Add do_cwd.
5720
5721 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5722
5723 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5724
5725 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5726
5727 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5728 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5729 (nbsd_nat_target::info_proc): New functions.
5730 * nbsd-nat.c (kinfo_get_vmmap): New function.
5731 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5732 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5733 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5734 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5735 functions.
5736 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5737 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5738 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5739 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5740 (KINFO_VME_FLAG_GROWS_DOWN): New.
5741
5742 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5743
5744 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5745 bit shift.
5746
5747 2020-04-10 Tom Tromey <tromey@adacore.com>
5748
5749 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5750
5751 2020-04-10 Tom Tromey <tromey@adacore.com>
5752
5753 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5754 separate debug files.
5755
5756 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5757
5758 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5759 Move to...
5760 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5761 ... here.
5762 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5763 Check for STATUS_WX86_BREAKPOINT.
5764 (windows_nat_target::wait): Same.
5765
5766 2020-04-10 Tom de Vries <tdevries@suse.de>
5767
5768 PR cli/25808
5769 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5770
5771 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5772
5773 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5774 (Write After Approval): Remove Tom de Vries.
5775
5776 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5777
5778 revert partially:
5779 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5780
5781 * buildsym.c (record_line): Fix undefined behavior and preserve
5782 lines at eof.
5783
5784 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5785
5786 * auxv.h (svr4_auxv_parse): New.
5787 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5788 and generic_auxv_parse.
5789 (svr4_auxv_parse): Add.
5790 * obsd-tdep.c: Include "auxv.h".
5791 (obsd_auxv_parse): Remove.
5792 (obsd_init_abi): Remove comment.
5793 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5794 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5795 * nbsd-tdep.c: Include "auxv.h".
5796 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5797
5798 2020-04-08 Tom Tromey <tromey@adacore.com>
5799
5800 * nat/windows-nat.h (last_wait_event): Don't declare.
5801 (wait_for_debug_event): Update comment.
5802 * nat/windows-nat.c (last_wait_event): Now static.
5803
5804 2020-04-08 Tom Tromey <tromey@adacore.com>
5805
5806 * windows-nat.c (wait_for_debug_event): Move to
5807 nat/windows-nat.c.
5808 * nat/windows-nat.h (wait_for_debug_event): Declare.
5809 * nat/windows-nat.c (wait_for_debug_event): Move from
5810 windows-nat.c. No longer static.
5811
5812 2020-04-08 Tom Tromey <tromey@adacore.com>
5813
5814 * windows-nat.c (get_windows_debug_event): Use
5815 fetch_pending_stop.
5816 * nat/windows-nat.h (fetch_pending_stop): Declare.
5817 * nat/windows-nat.c (fetch_pending_stop): New function.
5818
5819 2020-04-08 Tom Tromey <tromey@adacore.com>
5820
5821 * windows-nat.c (windows_continue): Use matching_pending_stop and
5822 continue_last_debug_event.
5823 * nat/windows-nat.h (matching_pending_stop)
5824 (continue_last_debug_event): Declare.
5825 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5826 (matching_pending_stop, continue_last_debug_event): New
5827 functions.
5828
5829 2020-04-08 Tom Tromey <tromey@adacore.com>
5830
5831 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5832 (handle_exception_result): Move to nat/windows-nat.h.
5833 (DEBUG_EXCEPTION_SIMPLE): Remove.
5834 (windows_nat::handle_ms_vc_exception): New function.
5835 (handle_exception): Move to nat/windows-nat.c.
5836 (get_windows_debug_event): Update.
5837 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5838 nat/windows-nat.c.
5839 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5840 (handle_exception_result): Move from windows-nat.c.
5841 (handle_exception): Declare.
5842 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5843 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5844 windows-nat.c.
5845
5846 2020-04-08 Tom Tromey <tromey@adacore.com>
5847
5848 * windows-nat.c (exception_count, event_count): Remove.
5849 (handle_exception, get_windows_debug_event)
5850 (do_initial_windows_stuff): Update.
5851
5852 2020-04-08 Tom Tromey <tromey@adacore.com>
5853
5854 * windows-nat.c (windows_nat::handle_load_dll)
5855 (windows_nat::handle_unload_dll): Rename. No longer static.
5856 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5857 Declare.
5858
5859 2020-04-08 Tom Tromey <tromey@adacore.com>
5860
5861 * complaints.h (stop_whining): Declare at top-level.
5862 (complaint): Don't declare stop_whining.
5863
5864 2020-04-08 Tom Tromey <tromey@adacore.com>
5865
5866 * windows-nat.c (windows_nat::handle_output_debug_string):
5867 Rename. No longer static.
5868 * nat/windows-nat.h (handle_output_debug_string): Declare.
5869
5870 2020-04-08 Tom Tromey <tromey@adacore.com>
5871
5872 * windows-nat.c (current_process_handle, current_process_id)
5873 (main_thread_id, last_sig, current_event, last_wait_event)
5874 (current_windows_thread, desired_stop_thread_id, pending_stops)
5875 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5876 (display_selectors, fake_create_process)
5877 (get_windows_debug_event): Update.
5878 * nat/windows-nat.h (current_process_handle, current_process_id)
5879 (main_thread_id, last_sig, current_event, last_wait_event)
5880 (current_windows_thread, desired_stop_thread_id, pending_stops)
5881 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5882 * nat/windows-nat.c (current_process_handle, current_process_id)
5883 (main_thread_id, last_sig, current_event, last_wait_event)
5884 (current_windows_thread, desired_stop_thread_id, pending_stops)
5885 (siginfo_er): New globals. Move from windows-nat.c.
5886
5887 2020-04-08 Tom Tromey <tromey@adacore.com>
5888
5889 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5890 (handle_load_dll): Update.
5891 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5892
5893 2020-04-08 Tom Tromey <tromey@adacore.com>
5894
5895 * windows-nat.c (enum thread_disposition_type): Move to
5896 nat/windows-nat.h.
5897 (windows_nat::thread_rec): Rename from thread_rec. No longer
5898 static.
5899 (windows_add_thread, windows_nat_target::fetch_registers)
5900 (windows_nat_target::store_registers, handle_exception)
5901 (windows_nat_target::resume, get_windows_debug_event)
5902 (windows_nat_target::get_tib_address)
5903 (windows_nat_target::thread_name)
5904 (windows_nat_target::thread_alive): Update.
5905 * nat/windows-nat.h (enum thread_disposition_type): Move from
5906 windows-nat.c.
5907 (thread_rec): Declare.
5908
5909 2020-04-08 Tom Tromey <tromey@adacore.com>
5910
5911 * windows-nat.c: Add "using namespace".
5912 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5913 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5914
5915 2020-04-08 Tom Tromey <tromey@adacore.com>
5916
5917 * nat/windows-nat.h (struct windows_thread_info): Declare
5918 destructor.
5919 * nat/windows-nat.c (~windows_thread_info): New.
5920
5921 2020-04-08 Tom Tromey <tromey@adacore.com>
5922
5923 PR gdb/22992
5924 * windows-nat.c (current_event): Update comment.
5925 (last_wait_event, desired_stop_thread_id): New globals.
5926 (struct pending_stop): New.
5927 (pending_stops): New global.
5928 (windows_nat_target) <stopped_by_sw_breakpoint>
5929 <supports_stopped_by_sw_breakpoint>: New methods.
5930 (windows_fetch_one_register): Add assertions. Adjust PC.
5931 (windows_continue): Handle pending stops. Suspend other threads
5932 when stepping. Use last_wait_event
5933 (wait_for_debug_event): New function.
5934 (get_windows_debug_event): Use wait_for_debug_event. Handle
5935 pending stops. Queue spurious stops.
5936 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
5937 (windows_nat_target::kill): Use wait_for_debug_event.
5938 * nat/windows-nat.h (struct windows_thread_info)
5939 <stopped_at_software_breakpoint>: New field.
5940 * nat/windows-nat.c (windows_thread_info::resume): Clear
5941 stopped_at_software_breakpoint.
5942
5943 2020-04-08 Tom Tromey <tromey@adacore.com>
5944
5945 * windows-nat.c (enum thread_disposition_type): New.
5946 (thread_rec): Replace "get_context" parameter with "disposition";
5947 change type.
5948 (windows_add_thread, windows_nat_target::fetch_registers)
5949 (windows_nat_target::store_registers, handle_exception)
5950 (windows_nat_target::resume, get_windows_debug_event)
5951 (windows_nat_target::get_tib_address)
5952 (windows_nat_target::thread_name)
5953 (windows_nat_target::thread_alive): Update.
5954
5955 2020-04-08 Tom Tromey <tromey@adacore.com>
5956
5957 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
5958 (windows_continue): Use windows_continue::resume.
5959 * nat/windows-nat.h (struct windows_thread_info) <suspend,
5960 resume>: Declare new methods.
5961 * nat/windows-nat.c: New file.
5962 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
5963
5964 2020-04-08 Tom Tromey <tromey@adacore.com>
5965
5966 * windows-nat.c (windows_add_thread, windows_delete_thread)
5967 (windows_nat_target::fetch_registers)
5968 (windows_nat_target::store_registers, fake_create_process)
5969 (windows_nat_target::resume, windows_nat_target::resume)
5970 (get_windows_debug_event, windows_nat_target::wait)
5971 (windows_nat_target::pid_to_str)
5972 (windows_nat_target::get_tib_address)
5973 (windows_nat_target::get_ada_task_ptid)
5974 (windows_nat_target::thread_name)
5975 (windows_nat_target::thread_alive): Use lwp, not tid.
5976
5977 2020-04-08 Tom Tromey <tromey@adacore.com>
5978
5979 * windows-nat.c (handle_exception)
5980 (windows_nat_target::thread_name): Update.
5981 * nat/windows-nat.h (windows_thread_info): Remove destructor.
5982 <name>: Now unique_xmalloc_ptr.
5983
5984 2020-04-08 Tom Tromey <tromey@adacore.com>
5985
5986 * windows-nat.c (thread_rec)
5987 (windows_nat_target::fetch_registers): Update.
5988 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
5989 Update comment.
5990 <debug_registers_changed, reload_context>: Now bool.
5991
5992 2020-04-08 Tom Tromey <tromey@adacore.com>
5993
5994 * windows-nat.c (windows_add_thread): Use new.
5995 (windows_init_thread_list, windows_delete_thread): Use delete.
5996 (get_windows_debug_event): Update.
5997 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
5998 destructor, and initializers.
5999
6000 2020-04-08 Tom Tromey <tromey@adacore.com>
6001
6002 * windows-nat.c (struct windows_thread_info): Remove.
6003 * nat/windows-nat.h: New file.
6004
6005 2020-04-08 Tom Tromey <tromey@adacore.com>
6006
6007 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6008 (thread_rec, windows_add_thread, windows_delete_thread)
6009 (windows_continue): Update.
6010
6011 2020-04-08 Tom Tromey <tromey@adacore.com>
6012
6013 * windows-nat.c (struct windows_thread_info): Remove typedef.
6014 (thread_head): Remove.
6015 (thread_list): New global.
6016 (thread_rec, windows_add_thread, windows_init_thread_list)
6017 (windows_delete_thread, windows_continue): Update.
6018
6019 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6020
6021 * windows-tdep.h (windows_init_abi): Add comment.
6022 (cygwin_init_abi): New declaration.
6023 * windows-tdep.c: Split signal enumeration in two, one for
6024 Windows and one for Cygwin.
6025 (windows_gdb_signal_to_target): Only deal with signal of the
6026 Windows OS ABI.
6027 (cygwin_gdb_signal_to_target): New function.
6028 (windows_init_abi): Rename to windows_init_abi_common, don't set
6029 gdb_signal_to_target gdbarch method. Add new new function with
6030 this name.
6031 (cygwin_init_abi): New function.
6032 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6033 comment. Don't call windows_init_abi.
6034 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6035 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6036 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6037 i386_windows_init_abi_common, don't call windows_init_abi. Add
6038 a new function of this name.
6039 (i386_cygwin_init_abi): New function.
6040 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6041 OS ABI Cygwin.
6042
6043 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6044
6045 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6046 parameter.c.
6047 (dwarf2_read_gdb_index): Update.
6048
6049 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6050
6051 * nbsd-tdep.c: Include "objfiles.h".
6052 (nbsd_skip_solib_resolver): New.
6053 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6054
6055 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6056
6057 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6058 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6059 with DW_LLE_base_addressx are being emitted in DWARFv5.
6060 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6061 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6062 unsigned integer.
6063
6064 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6065
6066 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6067 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6068 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6069 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6070 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6071 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6072 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6073
6074
6075 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6076
6077 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6078 (read_loclist_index): New function definition.
6079 (lookup_loclist_base): New function definition.
6080 (read_loclist_header): New function definition.
6081 (dwarf2_cu): Add loclist_base and loclist_header field.
6082 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6083 (read_full_die_1): Read the value of DW_AT_loclists_base.
6084 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6085 (read_attribute_value): Handle DW_FORM_loclistx.
6086 (skip_one_die): Handle DW_FORM_loclistx.
6087 (loclist_header): New structure declaration.
6088 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6089
6090 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6091
6092 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6093 constructor. Remove `addr` parameter from other constructor and
6094 add `per_cu` parameter.
6095 * dwarf2/read.c (create_partial_symtab): Update.
6096
6097 2020-04-07 Tom de Vries <tdevries@suse.de>
6098
6099 PR symtab/25796
6100 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6101 (partial_die_info::fixup): Inherit has_const_value.
6102
6103 2020-04-07 Tom de Vries <tdevries@suse.de>
6104
6105 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6106 symbols without address.
6107
6108 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6109
6110 * nbsd-nat.h (struct thread_info): Add forward declaration.
6111 (nbsd_nat_target::thread_alive): Add.
6112 (nbsd_nat_target::thread_name): Likewise.
6113 (nbsd_nat_target::update_thread_list): Likewise.
6114 (update_thread_list::post_attach): Likewise.
6115 (post_attach::pid_to_str): Likewise.
6116 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6117 (nbsd_thread_lister): Add.
6118 (nbsd_nat_target::thread_alive): Likewise.
6119 (nbsd_nat_target::thread_name): Likewise.
6120 (nbsd_add_threads): Likewise.
6121 (update_thread_list::post_attach): Likewise.
6122 (nbsd_nat_target::update_thread_list): Likewise.
6123 (post_attach::pid_to_str): Likewise.
6124
6125 2020-04-06 Tom Tromey <tromey@adacore.com>
6126
6127 * ada-valprint.c (print_variant_part): Extract the variant field.
6128 (print_field_values): Use the field as the outer value when
6129 recursing.
6130
6131 2020-04-06 Tom Tromey <tromey@adacore.com>
6132
6133 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6134 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6135 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6136 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6137 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6138
6139 2020-04-06 Tom Tromey <tromey@adacore.com>
6140
6141 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6142 TYPE_CODE_ERROR.
6143
6144 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6145
6146 * nbsd-tdep.c: Include "gdbarch.h".
6147 Define enum with NetBSD signal numbers.
6148 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6149 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6150 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6151 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6152 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6153 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6154 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6155 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6156 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6157 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6158 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6159 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6160
6161 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6162
6163 PR gdb/25325
6164 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6165
6166 2020-04-03 Tom Tromey <tromey@adacore.com>
6167
6168 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6169 Read constant block.
6170
6171 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6172
6173 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6174 (gdb_bfd_get_full_section_contents): New declaration.
6175 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6176 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6177 gdb_bfd_get_full_section_contents.
6178
6179 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6180
6181 * exec.c (build_section_table): Replace internal_error with
6182 gdb_assert.
6183 (section_table_xfer_memory_partial): Likewise.
6184 * mdebugread.c (parse_partial_symbols): Likewise.
6185 * psymtab.c (lookup_partial_symbol): Likewise.
6186 * utils.c (wrap_here): Likewise.
6187
6188 2020-04-02 Tom Tromey <tromey@adacore.com>
6189
6190 * f-lang.c (build_fortran_types): Use arch_type to initialize
6191 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6192
6193 2020-04-02 Tom Tromey <tromey@adacore.com>
6194
6195 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6196 of attributes.
6197
6198 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6199 Bernd Edlinger <bernd.edlinger@hotmail.de>
6200 Tom Tromey <tromey@adacore.com>
6201
6202 * buildsym.c (buildsym_compunit::record_line): Remove
6203 deduplication code.
6204
6205 2020-04-02 Tom de Vries <tdevries@suse.de>
6206
6207 PR ada/24671
6208 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6209
6210 2020-04-02 Tom de Vries <tdevries@suse.de>
6211
6212 * dwarf2/read.c (dwarf2_gdb_index_functions,
6213 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6214 NULL.
6215 * psymtab.c (psym_lookup_global_symbol_language): New function.
6216 (psym_functions): Init psym_lookup_global_symbol_language with
6217 psym_lookup_global_symbol_language.
6218 * symfile-debug.c (debug_sym_quick_functions): Init
6219 lookup_global_symbol_language with NULL.
6220 * symfile.c (set_initial_language): Remove fixme comment.
6221 * symfile.h (struct quick_symbol_functions): Add
6222 lookup_global_symbol_language.
6223 * symtab.c (find_quick_global_symbol_language): New function.
6224 (find_main_name): Use find_quick_global_symbol_language.
6225
6226 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6227
6228 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6229
6230 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6231
6232 * buildsym.c (record_line): Fix undefined behavior and preserve
6233 lines at eof.
6234
6235 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6236
6237 * buildsym.c (record_line): Fix the resizing condition.
6238
6239 2020-04-01 Tom Tromey <tom@tromey.com>
6240
6241 * value.h (value_literal_complex): Add comment.
6242 * valops.c (value_literal_complex): Refer to value.h.
6243
6244 2020-04-01 Tom Tromey <tom@tromey.com>
6245
6246 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6247 (scalar_type): New rule, from typebase.
6248 (typebase): Use scalar_type. Recognize complex types.
6249 (field_name): Handle FLOAT_KEYWORD.
6250 (ident_tokens): Add _Complex and __complex__.
6251
6252 2020-04-01 Tom Tromey <tom@tromey.com>
6253
6254 PR exp/25299:
6255 * valarith.c (promotion_type, complex_binop): New functions.
6256 (scalar_binop): Handle complex numbers. Use promotion_type.
6257 (value_pos, value_neg, value_complement): Handle complex numbers.
6258
6259 2020-04-01 Tom Tromey <tom@tromey.com>
6260
6261 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6262 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6263 (parse_number): Handle complex numbers.
6264
6265 2020-04-01 Tom Tromey <tom@tromey.com>
6266
6267 * c-valprint.c (c_decorations): Change complex suffix to "i".
6268
6269 2020-04-01 Tom Tromey <tom@tromey.com>
6270
6271 * valprint.c (generic_value_print_complex): Use accessors.
6272 * value.h (value_real_part, value_imaginary_part): Declare.
6273 * valops.c (value_real_part, value_imaginary_part): New
6274 functions.
6275 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6276
6277 2020-04-01 Tom Tromey <tom@tromey.com>
6278
6279 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6280 (read_range_type): Update.
6281 * mdebugread.c (basic_type): Update.
6282 * go-lang.c (build_go_types): Use init_complex_type.
6283 * gdbtypes.h (struct main_type) <complex_type>: New member.
6284 (init_complex_type): Update.
6285 (arch_complex_type): Don't declare.
6286 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6287 Make name if none given. Use alloc_type_copy. Look for cached
6288 complex type.
6289 (arch_complex_type): Remove.
6290 (gdbtypes_post_init): Use init_complex_type.
6291 * f-lang.c (build_fortran_types): Use init_complex_type.
6292 * dwarf2/read.c (read_base_type): Update.
6293 * d-lang.c (build_d_types): Use init_complex_type.
6294 * ctfread.c (read_base_type): Update.
6295
6296 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6297
6298 * infrun.c (stop_all_threads): Update assertion, plus when
6299 stopping threads, take into account that we might be trying
6300 to stop an all-stop target.
6301 (stop_waiting): Call 'stop_all_threads' if there exists a
6302 non-stop target.
6303
6304 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6305
6306 * target.h (exists_non_stop_target): New function declaration.
6307 * target.c (exists_non_stop_target): New function.
6308
6309 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6310
6311 PR gdb/24789
6312 * eval.c (is_integral_or_integral_reference): New function.
6313 (evaluate_subexp_standard): Allow integer references in
6314 pointer arithmetic.
6315
6316 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6317
6318 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6319 check for no ptid in the stop reply when the target is non-stop.
6320
6321 2020-04-01 Tom Tromey <tromey@adacore.com>
6322
6323 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6324 "name" parameter to rvalue reference. Initialize m_name_holder.
6325 <lookup_name_info>: New overloads.
6326 <name>: Return gdb::string_view.
6327 <c_str>: New method.
6328 <make_ignore_params>: Update.
6329 <search_name_hash>: Update.
6330 <language_lookup_name>: Return const char *.
6331 <m_name>: Change type.
6332 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6333 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6334 (lookup_name_info::match_any): Update.
6335 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6336 Update.
6337 * minsyms.c (linkage_name_str): Update.
6338 * language.c (default_symbol_name_matcher): Update.
6339 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6340 Update.
6341 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6342 (ada_lookup_name_info::ada_lookup_name_info): Update.
6343 (literal_symbol_name_matcher): Update.
6344
6345 2020-04-01 Tom Tromey <tromey@adacore.com>
6346
6347 * psymtab.c (psymtab_search_name): Remove function.
6348 (psym_lookup_symbol): Create search name and lookup name here.
6349 (lookup_partial_symbol): Remove "name" parameter; add
6350 lookup_name.
6351 (psym_expand_symtabs_for_function): Update.
6352
6353 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6354
6355 PR tui/25597:
6356 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6357
6358 2020-03-31 Tom Tromey <tromey@adacore.com>
6359
6360 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6361 memcpy.
6362
6363 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6364
6365 * features/riscv/32bit-csr.xml: Regenerated.
6366 * features/riscv/64bit-csr.xml: Regenerated.
6367
6368 2020-03-30 Tom Tromey <tromey@adacore.com>
6369
6370 * ada-valprint.c (print_variant_part): Update.
6371 * ada-lang.h (ada_which_variant_applies): Update.
6372 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6373 outer_valaddr parameters; replace with "outer" value parameter.
6374 (to_fixed_variant_branch_type): Update.
6375
6376 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6377
6378 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6379 <list>. Remove inclusion of observable.h.
6380 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6381 (struct arch_lwp_info): New struct.
6382 (class ppc_linux_dreg_interface): New class.
6383 (struct ppc_linux_process_info): New struct.
6384 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6385 <low_new_clone, low_forget_process, low_prepare_to_resume>
6386 <copy_thread_dreg_state, mark_thread_stale>
6387 <mark_debug_registers_changed, register_hw_breakpoint>
6388 <clear_hw_breakpoint, register_wp, clear_wp>
6389 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6390 <num_memory_accesses, get_trigger_type>
6391 <create_watchpoint_request, hwdebug_point_cmp>
6392 <init_arch_lwp_info, get_arch_lwp_info>
6393 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6394 methods.
6395 <struct ptid_hash>: New inner struct.
6396 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6397 members.
6398 (saved_dabr_value, hwdebug_info, max_slots_number)
6399 (struct hw_break_tuple, struct thread_points, ppc_threads)
6400 (have_ptrace_hwdebug_interface)
6401 (hwdebug_find_thread_points_by_tid)
6402 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6403 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6404 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6405 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6406 use m_dreg_interface.
6407 (hwdebug_point_cmp): Change to...
6408 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6409 reference arguments instead of pointers.
6410 (ppc_linux_nat_target::ranged_break_num_registers): Use
6411 m_dreg_interface.
6412 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6413 m_dreg_interface. Call register_hw_breakpoint.
6414 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6415 m_dreg_interface. Call clear_hw_breakpoint.
6416 (get_trigger_type): Change to...
6417 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6418 comment.
6419 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6420 use m_dreg_interface. Call register_hw_breakpoint.
6421 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6422 use m_dreg_interface. Call clear_hw_breakpoint.
6423 (can_use_watchpoint_cond_accel): Change to...
6424 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6425 method. Update comment, use m_dreg_interface and
6426 m_process_info.
6427 (calculate_dvc): Change to...
6428 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6429 m_dreg_interface.
6430 (num_memory_accesses): Change to...
6431 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6432 (check_condition): Change to...
6433 (ppc_linux_nat_target::check_condition): ...this method.
6434 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6435 comment, use m_dreg_interface.
6436 (create_watchpoint_request): Change to...
6437 (ppc_linux_nat_target::create_watchpoint_request): ...this
6438 method. Use m_dreg_interface.
6439 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6440 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6441 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6442 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6443 (ppc_linux_nat_target::low_forget_process)
6444 (ppc_linux_nat_target::low_new_fork)
6445 (ppc_linux_nat_target::low_new_clone)
6446 (ppc_linux_nat_target::low_delete_thread)
6447 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6448 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6449 only call mark_thread_stale.
6450 (ppc_linux_thread_exit): Remove.
6451 (ppc_linux_nat_target::stopped_data_address): Change to...
6452 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6453 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6454 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6455 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6456 comment. Call low_stopped_data_address.
6457 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6458 m_dreg_interface.
6459 (ppc_linux_nat_target::masked_watch_num_registers): Use
6460 m_dreg_interface.
6461 (ppc_linux_nat_target::copy_thread_dreg_state)
6462 (ppc_linux_nat_target::mark_thread_stale)
6463 (ppc_linux_nat_target::mark_debug_registers_changed)
6464 (ppc_linux_nat_target::register_hw_breakpoint)
6465 (ppc_linux_nat_target::clear_hw_breakpoint)
6466 (ppc_linux_nat_target::register_wp)
6467 (ppc_linux_nat_target::clear_wp)
6468 (ppc_linux_nat_target::init_arch_lwp_info)
6469 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6470 (_initialize_ppc_linux_nat): Remove observer callback.
6471
6472 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6473
6474 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6475 (ppc_linux_nat_target::auxv_parse)
6476 (ppc_linux_nat_target::read_description)
6477 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6478 Move up.
6479
6480 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6481
6482 * linux-nat.h (low_new_clone): New method.
6483 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6484
6485 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6486
6487 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6488 (dbx_expand_psymtab): ... this.
6489 (start_psymtab): Update.
6490 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6491 (mdebug_expand_psymtab): ... this.
6492 (parse_partial_symbols): Update.
6493 (new_psymtab): Update.
6494 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6495 (xcoff_expand_psymtab): ... this.
6496 (xcoff_start_psymtab): Update.
6497
6498 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6499
6500 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6501 <expand_dependencies>: ... this.
6502 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6503 (partial_symtab::expand_dependencies): ... this.
6504 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6505 Update.
6506 (dwarf2_psymtab::expand_psymtab): Update.
6507 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6508 * mdebugread.c (psymtab_to_symtab_1): Update.
6509 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6510
6511 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6512
6513 * psympriv.h (discard_psymtab): Remove.
6514 * dbxread.c (dbx_end_psymtab): Update.
6515 * xcoffread.c (xcoff_end_psymtab): Update.
6516
6517 2020-03-28 Tom Tromey <tom@tromey.com>
6518
6519 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6520 comment.
6521
6522 2020-03-28 Tom Tromey <tom@tromey.com>
6523
6524 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6525
6526 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6527
6528 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6529
6530 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6531
6532 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6533
6534 2020-03-26 Tom Tromey <tom@tromey.com>
6535
6536 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6537 (mark_common_block_symbol_computed, read_tag_string_type)
6538 (attr_to_dynamic_prop, read_subrange_type): Update.
6539 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6540 to be methods on struct attribute.
6541 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6542 (read_call_site_scope, partial_die_info::read)
6543 (partial_die_info::read, lookup_die_type, follow_die_ref):
6544 Update.
6545 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6546 from dwarf2_get_ref_die_offset.
6547 (attribute::constant_value): New method, from
6548 dwarf2_get_attr_constant_value.
6549 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6550 Declare method.
6551 <constant_value>: New method.
6552
6553 2020-03-26 Tom Tromey <tom@tromey.com>
6554
6555 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6556 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6557 (dwarf_type_encoding_name): Move to stringify.c.
6558 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6559 * dwarf2/stringify.c: New file.
6560 * dwarf2/stringify.h: New file.
6561
6562 2020-03-26 Tom Tromey <tom@tromey.com>
6563
6564 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6565 Rewrite.
6566
6567 2020-03-26 Tom Tromey <tom@tromey.com>
6568
6569 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6570 methods.
6571 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6572 (lookup_ranges_base): Likewise.
6573 (read_cutu_die_from_dwo, read_full_die_1): Update.
6574
6575 2020-03-26 Tom Tromey <tom@tromey.com>
6576
6577 * dwarf2/read.c (read_import_statement, read_file_scope)
6578 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6579 (read_lexical_block_scope, read_call_site_scope)
6580 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6581 (handle_struct_member_die, process_structure_scope)
6582 (update_enumeration_type_from_children)
6583 (process_enumeration_scope, read_array_type, read_common_block)
6584 (read_namespace, read_module, read_subroutine_type): Update.
6585 (sibling_die): Remove.
6586
6587 2020-03-26 Tom Tromey <tom@tromey.com>
6588
6589 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6590 (build_type_psymtabs_reader, read_structure_type)
6591 (read_enumeration_type, read_full_die_1): Update.
6592 (dwarf2_attr_no_follow): Move to die.h.
6593 * dwarf2/die.h (struct die_info) <attr>: New method.
6594
6595 2020-03-26 Tom Tromey <tom@tromey.com>
6596
6597 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6598 <base_address>: Now an optional.
6599 (dwarf2_find_base_address, dwarf2_rnglists_process)
6600 (dwarf2_ranges_process, fill_in_loclist_baton)
6601 (dwarf2_symbol_mark_computed): Update.
6602
6603 2020-03-26 Tom Tromey <tom@tromey.com>
6604
6605 * dwarf2/read.c (struct die_info): Move to die.h.
6606 * dwarf2/die.h: New file.
6607
6608 2020-03-26 Tom Tromey <tom@tromey.com>
6609
6610 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6611 * dwarf2/read.c
6612 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6613 Move to line-header.c.
6614 (read_checked_initial_length_and_offset, read_formatted_entries):
6615 Likewise.
6616 (dwarf_decode_line_header): Split into two.
6617 * dwarf2/line-header.c
6618 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6619 Move from read.c.
6620 (read_checked_initial_length_and_offset, read_formatted_entries):
6621 Likewise.
6622 (dwarf_decode_line_header): New function, split from read.c.
6623
6624 2020-03-26 Tom Tromey <tom@tromey.com>
6625
6626 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6627 Declare method.
6628 * dwarf2/read.c (read_attribute_value): Update.
6629 (dwarf2_per_objfile::read_line_string): Rename from
6630 read_indirect_line_string.
6631 (read_formatted_entries): Update.
6632
6633 2020-03-26 Tom Tromey <tom@tromey.com>
6634
6635 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6636 variable.
6637
6638 2020-03-26 Tom Tromey <tom@tromey.com>
6639
6640 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6641 const.
6642 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6643 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6644 parameter const.
6645
6646 2020-03-26 Tom Tromey <tom@tromey.com>
6647
6648 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6649 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6650 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6651 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6652
6653 2020-03-26 Tom Tromey <tom@tromey.com>
6654
6655 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6656 file_names_size, file_full_name, file_file_name>: Use const.
6657 <file_name_at, file_names>: Add const overload.
6658 * dwarf2/line-header.c (line_header::file_file_name)
6659 (line_header::file_full_name): Update.
6660
6661 2020-03-26 Tom Tromey <tom@tromey.com>
6662
6663 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6664 (macro_start_file, consume_improper_spaces)
6665 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6666 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6667 (dwarf_decode_macros): Move to macro.c.
6668 * dwarf2/macro.c: New file.
6669 * dwarf2/macro.h: New file.
6670 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6671
6672 2020-03-26 Tom Tromey <tom@tromey.com>
6673
6674 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6675 method.
6676 * dwarf2/section.c: New method. From
6677 read_indirect_string_at_offset_from.
6678 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6679 (read_indirect_string_at_offset_from): Move to section.c.
6680 (read_indirect_string_at_offset): Rewrite.
6681 (read_indirect_line_string_at_offset): Remove.
6682 (read_indirect_string, read_indirect_line_string)
6683 (dwarf_decode_macro_bytes): Update.
6684
6685 2020-03-26 Tom Tromey <tom@tromey.com>
6686
6687 * dwarf2/section.h (struct dwarf2_section_info)
6688 <overload_complaint>: Declare.
6689 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6690 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6691 Rename from dwarf2_section_buffer_overflow_complaint.
6692 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6693 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6694
6695 2020-03-26 Tom Tromey <tom@tromey.com>
6696
6697 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6698 Declare.
6699 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6700 Move from read.c.
6701 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6702 to section.c.
6703
6704 2020-03-26 Tom Tromey <tom@tromey.com>
6705
6706 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6707
6708 2020-03-26 Tom Tromey <tom@tromey.com>
6709
6710 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6711 "builder".
6712 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6713 parameter.
6714 (dwarf_decode_macros): Update.
6715
6716 2020-03-26 Tom Tromey <tom@tromey.com>
6717
6718 * dwarf2/read.c (read_attribute_value): Update.
6719 (read_indirect_string_from_dwz): Move to dwz.c; change into
6720 method.
6721 (dwarf_decode_macro_bytes): Update.
6722 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6723 * dwarf2/dwz.c: New file.
6724 * Makefile.in (COMMON_SFILES): Add dwz.c.
6725
6726 2020-03-26 Tom Tromey <tom@tromey.com>
6727
6728 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6729 * dwarf2/read.c: Add include.
6730 * dwarf2/index-write.c: Add include.
6731 * dwarf2/index-cache.c: Add include.
6732 * dwarf2/dwz.h: New file.
6733
6734 2020-03-25 Tom Tromey <tom@tromey.com>
6735
6736 * compile/compile-object-load.c (get_out_value_type): Mention
6737 correct symbol name in error message.
6738
6739 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6740
6741 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6742
6743 2020-03-25 Tom de Vries <tdevries@suse.de>
6744
6745 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6746 * symmisc.c (dump_symtab_1): Print user and includes fields.
6747 (maintenance_info_symtabs): Same.
6748
6749 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6750
6751 PR gdb/25534
6752 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6753 (riscv_regcache_cooked_write): New function.
6754 (riscv_push_dummy_call): Use new function.
6755 (riscv_return_value): Likewise.
6756
6757 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6758
6759 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6760 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6761 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6762 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6763 * infrun.c (follow_fork): Likewise.
6764 (follow_fork_inferior): Likewise.
6765 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6766 * linux-nat.h (class linux_nat_target): Likewise.
6767 * remote.c (class remote_target) <follow_fork>: Likewise.
6768 (remote_target::follow_fork): Likewise.
6769 * target-delegates.c: Re-generate.
6770 * target.c (default_follow_fork): Likewise.
6771 (target_follow_fork): Likewise.
6772 * target.h (struct target_ops) <follow_fork>: Likewise.
6773 (target_follow_fork): Likewise.
6774
6775 2020-03-24 Tom de Vries <tdevries@suse.de>
6776
6777 * psymtab.c (maintenance_info_psymtabs): Print user field.
6778
6779 2020-03-20 Tom Tromey <tromey@adacore.com>
6780
6781 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6782 const.
6783 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6784 const.
6785
6786 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6787
6788 * ptrace.m4: Don't check for ptrace declaration.
6789 * config.in: Re-generate.
6790 * configure: Re-generate.
6791 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6792 not defined.
6793
6794 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6795
6796 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6797 `PTRACE_TYPE_RET'.
6798 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6799 * sparc-nat.c (gdb_ptrace): Likewise.
6800 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6801
6802 2020-03-20 Tom Tromey <tromey@adacore.com>
6803
6804 * c-exp.y (lex_one_token): Fix assert.
6805
6806 2020-03-20 Tom Tromey <tromey@adacore.com>
6807
6808 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6809 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6810 strncpy call.
6811
6812 2020-03-20 Tom Tromey <tromey@adacore.com>
6813
6814 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6815
6816 2020-03-20 Tom Tromey <tromey@adacore.com>
6817
6818 * ada-valprint.c (print_variant_part): Remove parameters; switch
6819 to value-based API.
6820 (print_field_values): Likewise.
6821 (ada_val_print_struct_union): Likewise.
6822 (ada_value_print_1): Update.
6823
6824 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6825
6826 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6827 nbsd_nat_target instead of inf_ptrace_target.
6828 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6829 nbsd_nat_target.
6830
6831 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6832
6833 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6834 it to the ptrace call.
6835 * (store_registers): Likewise.
6836
6837 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6838
6839 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6840 it to the ptrace call.
6841 * (store_registers): Likewise.
6842
6843 2020-03-19 Luis Machado <luis.machado@linaro.org>
6844
6845 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6846 valid, fetch vg value from ptrace.
6847
6848 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6849 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6850 * inf-ptrace.c: Likewise.
6851 * (gdb_ptrace): Add.
6852 * (inf_ptrace_target::resume): Update.
6853 * (inf_ptrace_target::xfer_partial): Likewise.
6854 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6855 * (inf_ptrace_peek_poke): Update.
6856
6857 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6858
6859 * x86-bsd-nat.c (gdb_ptrace): New.
6860 * (x86bsd_dr_set): Add new argument `ptid'.
6861 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6862 x86bsd_dr_set_addr): Update.
6863
6864 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6865
6866 * remote.c (remote_target::process_stop_reply): Handle events for
6867 all threads differently.
6868
6869 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6870
6871 * completer.c (completion_tracker::remove_completion): Define new
6872 function.
6873 * completer.h (completion_tracker::remove_completion): Declare new
6874 function.
6875 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6876 when adding a C++ function symbol.
6877
6878 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6879
6880 * completer.c (completion_tracker::completion_hash_entry): Define
6881 new class.
6882 (advance_to_filename_complete_word_point): Call
6883 recompute_lowest_common_denominator.
6884 (completion_tracker::completion_tracker): Call discard_completions
6885 to setup the hash table.
6886 (completion_tracker::discard_completions): Allow for being called
6887 from the constructor, pass new equal function, and element deleter
6888 when constructing the hash table. Initialise new class member
6889 variables.
6890 (completion_tracker::maybe_add_completion): Remove use of
6891 m_entries_vec, and store more information into m_entries_hash.
6892 (completion_tracker::recompute_lcd_visitor): New function, most
6893 content taken from...
6894 (completion_tracker::recompute_lowest_common_denominator):
6895 ...here, this now just visits each item in the hash calling the
6896 above visitor.
6897 (completion_tracker::build_completion_result): Remove use of
6898 m_entries_vec, call recompute_lowest_common_denominator.
6899 * completer.h (completion_tracker::have_completions): Remove use
6900 of m_entries_vec.
6901 (completion_tracker::completion_hash_entry): Declare new class.
6902 (completion_tracker::recompute_lowest_common_denominator): Change
6903 function signature.
6904 (completion_tracker::recompute_lcd_visitor): Declare new function.
6905 (completion_tracker::m_entries_vec): Delete.
6906 (completion_tracker::m_entries_hash): Initialize to NULL.
6907 (completion_tracker::m_lowest_common_denominator_valid): New
6908 member variable.
6909 (completion_tracker::m_lowest_common_denominator_max_length): New
6910 member variable.
6911
6912 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6913
6914 * regformats/regdef.h: Put reg in gdb namespace.
6915
6916 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6917
6918 * i386-bsd-nat.c (gdb_ptrace): New.
6919 * (i386bsd_fetch_inferior_registers,
6920 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6921 * (i386bsd_fetch_inferior_registers,
6922 i386bsd_store_inferior_registers) Use gdb_ptrace.
6923
6924 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6925
6926 * amd64-bsd-nat.c (gdb_ptrace): New.
6927 * (amd64bsd_fetch_inferior_registers,
6928 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6929 * (amd64bsd_fetch_inferior_registers,
6930 amd64bsd_store_inferior_registers) Use gdb_ptrace.
6931
6932 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6933
6934 * user-regs.c (user_reg::read): Rename to...
6935 (user_reg::xread): ...this.
6936 * (append_user_reg): Rename argument `read' to `xread'.
6937 * (user_reg_add_builtin): Likewise.
6938 * (user_reg_add): Likewise.
6939 * (value_of_user_reg): Likewise.
6940
6941 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6942
6943 * sparc-nat.c (gdb_ptrace): New.
6944 * sparc-nat.c (sparc_fetch_inferior_registers)
6945 (sparc_store_inferior_registers) Remove obsolete comment.
6946 * sparc-nat.c (sparc_fetch_inferior_registers)
6947 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
6948 * sparc-nat.c (sparc_fetch_inferior_registers)
6949 (sparc_store_inferior_registers) Use gdb_ptrace.
6950
6951 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6952
6953 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
6954 it to the ptrace call.
6955 * sh-nbsd-nat.c (store_registers): Likewise.
6956
6957 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6958
6959 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
6960 nbsd_nat_target instead of inf_ptrace_target.
6961 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6962 nbsd_nat_target.
6963
6964 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6965
6966 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
6967
6968 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6969
6970 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
6971 <sys/sysctl.h>.
6972 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
6973
6974 2020-03-17 Tom de Vries <tdevries@suse.de>
6975
6976 PR gdb/23710
6977 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
6978 fields.
6979 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
6980 fields.
6981 (process_imported_unit_die): Skip import of c++ CUs.
6982
6983 2020-03-16 Tom Tromey <tom@tromey.com>
6984
6985 * p-valprint.c (pascal_object_print_value): Initialize
6986 base_value.
6987
6988 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
6989 Shahab Vahedi <shahab@synopsys.com>
6990
6991 * Makefile.in: Add arch/arc.o
6992 * configure.tgt: Likewise.
6993 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
6994 (_initialize_arc_tdep): Don't initialize old target descriptions.
6995 (arc_read_description): New function to cache target descriptions.
6996 * arc-tdep.h (arc_read_description): Add proto type.
6997 * arch/arc.c: New file.
6998 * arch/arc.h: Likewise.
6999 * features/Makefile: Replace old target descriptions with new.
7000 * features/arc-arcompact.c: Remove.
7001 * features/arc-arcompact.xml: Likewise.
7002 * features/arc-v2.c: Likewise
7003 * features/arc-v2.xml: Likewise
7004 * features/arc/aux-arcompact.xml: New file.
7005 * features/arc/aux-v2.xml: Likewise.
7006 * features/arc/core-arcompact.xml: Likewise.
7007 * features/arc/core-v2.xml: Likewise.
7008 * features/arc/aux-arcompact.c: Generate.
7009 * features/arc/aux-v2.c: Likewise.
7010 * features/arc/core-arcompact.c: Likewise.
7011 * features/arc/core-v2.c: Likewise.
7012 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7013
7014 2020-03-16 Tom Tromey <tromey@adacore.com>
7015
7016 PR gdb/25663:
7017 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7018 putting value into bcache.
7019
7020 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7021
7022 PR gdb/21500
7023 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7024 to...
7025 (amd64_windows_init_abi_common): ... this. Don't set size of
7026 long type.
7027 (amd64_windows_init_abi): New function.
7028 (amd64_cygwin_init_abi): New function.
7029 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7030 the Cygwin OS ABI.
7031 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7032 comment.
7033
7034 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7035
7036 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7037 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7038 (pe_import_directory_entry): New struct type.
7039 (is_linked_with_cygwin_dll): New function.
7040 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7041 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7042 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7043
7044 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7045
7046 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7047 i386_cygwin_core_osabi_sniffer.
7048
7049 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7050
7051 * i386-cygwin-tdep.c: Rename to...
7052 * i386-windows-tdep.c: ... this.
7053 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7054 i386-windows-tdep.c.
7055 * configure.tgt: Likewise.
7056
7057 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7058
7059 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7060 * osabi.c (gdb_osabi_names): Add "Windows".
7061 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7062 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7063 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7064 i386_cygwin_osabi_sniffer.
7065 (_initialize_i386_cygwin_tdep): Register OS ABI
7066 GDB_OSABI_WINDOWS for i386.
7067 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7068 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7069 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7070 for x86-64.
7071 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7072 when the target matches '*-*-mingw*'.
7073
7074 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7075
7076 * defs.h (enum gdb_osabi): Move to...
7077 * osabi.h (enum gdb_osabi): ... here.
7078 * gdbarch.sh: Include osabi.h in gdbarch.h.
7079 * gdbarch.h: Re-generate.
7080
7081 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7082
7083 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7084 function.
7085 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7086
7087 2020-03-14 Tom Tromey <tom@tromey.com>
7088
7089 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7090 for C++.
7091 (c_type_print_modifier): Likewise. Add "language" parameter.
7092 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7093 (c_type_print_base_1): Update.
7094 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7095 constants.
7096 * type-stack.c (type_stack::insert): Handle tp_atomic and
7097 tp_restrict.
7098 (type_stack::follow_type_instance_flags): Likewise.
7099 (type_stack::follow_types): Likewise. Merge type-following code.
7100 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7101 (space_identifier, cv_with_space_id)
7102 (const_or_volatile_or_space_identifier_noopt)
7103 (const_or_volatile_or_space_identifier): Remove.
7104 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7105 rules.
7106 (ptr_operator, typebase): Update.
7107 (enum token_flag) <FLAG_C>: New constant.
7108 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7109 "_Atomic".
7110 (lex_one_token): Handle FLAG_C.
7111
7112 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7113
7114 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7115 it to the ptrace call.
7116 * m68k-bsd-nat.c (store_registers): Likewise.
7117
7118 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7119
7120 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7121 gdb_byte *.
7122 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7123 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7124 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7125
7126 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7127
7128 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7129 nbsd_nat_target instead of inf_ptrace_target.
7130 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7131 nbsd_nat_target.
7132
7133 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7134
7135 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7136 register_t.
7137
7138 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7139
7140 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7141 it to the ptrace call.
7142 * alpha-bsd-nat.c (store_registers): Likewise.
7143
7144 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7145
7146 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7147 includes.
7148 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7149 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7150 fill_fpregset): Likewise.
7151
7152 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7153
7154 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7155 nbsd_nat_target instead of inf_ptrace_target.
7156 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7157 nbsd_nat_target.
7158
7159 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7160
7161 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7162 register_t.
7163
7164 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7165
7166 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7167 it to the ptrace call.
7168 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7169 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7170 * arm-nbsd-nat.c (store_register): Likewise.
7171 * arm-nbsd-nat.c (store_regs): Likewise.
7172 * arm-nbsd-nat.c (store_fp_register): Likewise.
7173 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7174
7175 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7176
7177 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7178 nbsd_nat_target instead of inf_ptrace_target.
7179 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7180 nbsd_nat_target.
7181
7182 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7183
7184 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7185 it to the ptrace call.
7186 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7187
7188 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7189
7190 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7191 it to the ptrace call.
7192 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7193
7194 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7195
7196 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7197 gdb_byte *.
7198 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7199
7200 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7201
7202 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7203 instead of inf_ptrace_target.
7204 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7205 nbsd_nat_target.
7206
7207 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7208
7209 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7210 register_t.
7211
7212 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7213
7214 * ppc-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 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7220 register_t.
7221
7222 2020-03-13 Tom Tromey <tom@tromey.com>
7223
7224 * value.h (val_print): Don't declare.
7225 * valprint.h (val_print_array_elements)
7226 (val_print_scalar_formatted, generic_val_print): Don't declare.
7227 * valprint.c (generic_val_print_array): Take a struct value.
7228 (generic_val_print_ptr, generic_val_print_memberptr)
7229 (generic_val_print_bool, generic_val_print_int)
7230 (generic_val_print_char, generic_val_print_complex)
7231 (generic_val_print): Remove.
7232 (generic_value_print): Update.
7233 (do_val_print): Remove unused parameters. Don't call
7234 la_val_print.
7235 (val_print): Remove.
7236 (common_val_print): Update. Don't call value_check_printable.
7237 (val_print_scalar_formatted, val_print_array_elements): Remove.
7238 * rust-lang.c (rust_val_print): Remove.
7239 (rust_language_defn): Update.
7240 * p-valprint.c (pascal_val_print): Remove.
7241 (pascal_value_print_inner): Update.
7242 (pascal_object_print_val_fields, pascal_object_print_val):
7243 Remove.
7244 (pascal_object_print_static_field): Update.
7245 * p-lang.h (pascal_val_print): Don't declare.
7246 * p-lang.c (pascal_language_defn): Update.
7247 * opencl-lang.c (opencl_language_defn): Update.
7248 * objc-lang.c (objc_language_defn): Update.
7249 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7250 * m2-lang.h (m2_val_print): Don't declare.
7251 * m2-lang.c (m2_language_defn): Update.
7252 * language.h (struct language_defn) <la_val_print>: Remove.
7253 * language.c (unk_lang_value_print_inner): Rename. Change
7254 argument types.
7255 (unknown_language_defn, auto_language_defn): Update.
7256 * go-valprint.c (go_val_print): Remove.
7257 * go-lang.h (go_val_print): Don't declare.
7258 * go-lang.c (go_language_defn): Update.
7259 * f-valprint.c (f_val_print): Remove.
7260 * f-lang.h (f_value_print): Don't declare.
7261 * f-lang.c (f_language_defn): Update.
7262 * d-valprint.c (d_val_print): Remove.
7263 * d-lang.h (d_value_print): Don't declare.
7264 * d-lang.c (d_language_defn): Update.
7265 * cp-valprint.c (cp_print_value_fields)
7266 (cp_print_value_fields_rtti, cp_print_value): Remove.
7267 (cp_print_static_field): Update.
7268 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7269 (c_val_print_struct, c_val_print_union, c_val_print_int)
7270 (c_val_print_memberptr, c_val_print): Remove.
7271 * c-lang.h (c_val_print_array, cp_print_value_fields)
7272 (cp_print_value_fields_rtti): Don't declare.
7273 * c-lang.c (c_language_defn, cplus_language_defn)
7274 (asm_language_defn, minimal_language_defn): Update.
7275 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7276 (ada_val_print_enum): Take a struct value.
7277 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7278 (ada_val_print): Remove.
7279 (ada_value_print_1): Update.
7280 (printable_val_type): Remove.
7281 * ada-lang.h (ada_val_print): Don't declare.
7282 * ada-lang.c (ada_language_defn): Update.
7283
7284 2020-03-13 Tom Tromey <tom@tromey.com>
7285
7286 * valprint.c (do_val_print): Update.
7287 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7288 a struct value.
7289 (value_to_value_object_no_release): Declare.
7290 * python/py-value.c (value_to_value_object_no_release): New
7291 function.
7292 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7293 struct value.
7294 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7295 function.
7296 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7297 a struct value.
7298 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7299 Declare.
7300 (gdbscm_apply_val_pretty_printer): Take a struct value.
7301 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7302 value.
7303 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7304 value.
7305 * extension-priv.h (struct extension_language_ops)
7306 <apply_val_pretty_printer>: Take a struct value.
7307 * cp-valprint.c (cp_print_value): Create a struct value.
7308 (cp_print_value): Update.
7309
7310 2020-03-13 Tom Tromey <tom@tromey.com>
7311
7312 * ada-valprint.c (print_field_values): Call common_val_print.
7313
7314 2020-03-13 Tom Tromey <tom@tromey.com>
7315
7316 * ada-valprint.c (val_print_packed_array_elements): Remove
7317 bitoffset and val parameters. Call common_val_print.
7318 (ada_val_print_string): Remove offset, address, and original_value
7319 parameters.
7320 (ada_val_print_array): Update.
7321 (ada_value_print_array): New function.
7322 (ada_value_print_1): Call it.
7323
7324 2020-03-13 Tom Tromey <tom@tromey.com>
7325
7326 * ada-valprint.c (ada_value_print): Use common_val_print.
7327
7328 2020-03-13 Tom Tromey <tom@tromey.com>
7329
7330 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7331
7332 2020-03-13 Tom Tromey <tom@tromey.com>
7333
7334 * ada-valprint.c (ada_value_print_num): New function.
7335 (ada_value_print_1): Use it.
7336
7337 2020-03-13 Tom Tromey <tom@tromey.com>
7338
7339 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7340
7341 2020-03-13 Tom Tromey <tom@tromey.com>
7342
7343 * ada-valprint.c (ada_value_print_ptr): New function.
7344 (ada_value_print_1): Use it.
7345
7346 2020-03-13 Tom Tromey <tom@tromey.com>
7347
7348 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7349 call common_val_print.
7350 (ada_val_print_1): Update.
7351 (ada_value_print_1): New function.
7352 (ada_value_print_inner): Rewrite.
7353
7354 2020-03-13 Tom Tromey <tom@tromey.com>
7355
7356 * cp-valprint.c (cp_print_value_fields): Update.
7357 (cp_print_value): New function.
7358
7359 2020-03-13 Tom Tromey <tom@tromey.com>
7360
7361 * m2-valprint.c (m2_value_print_inner): Use
7362 cp_print_value_fields.
7363 * cp-valprint.c (cp_print_value_fields): New function.
7364 * c-valprint.c (c_value_print_struct): New function.
7365 (c_value_print_inner): Use c_value_print_struct.
7366 * c-lang.h (cp_print_value_fields): Declare.
7367
7368 2020-03-13 Tom Tromey <tom@tromey.com>
7369
7370 * c-valprint.c (c_value_print_array): New function.
7371 (c_value_print_inner): Use it.
7372
7373 2020-03-13 Tom Tromey <tom@tromey.com>
7374
7375 * c-valprint.c (c_value_print_memberptr): 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_int): 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_ptr): 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_inner): Rewrite.
7391
7392 2020-03-13 Tom Tromey <tom@tromey.com>
7393
7394 * valprint.c (generic_value_print_complex): New function.
7395 (generic_value_print): Use it.
7396
7397 2020-03-13 Tom Tromey <tom@tromey.com>
7398
7399 * valprint.c (generic_val_print_float): Don't call
7400 val_print_scalar_formatted.
7401 (generic_val_print, generic_value_print): Update.
7402
7403 2020-03-13 Tom Tromey <tom@tromey.com>
7404
7405 * valprint.c (generic_value_print_char): New function
7406 (generic_value_print): Use it.
7407
7408 2020-03-13 Tom Tromey <tom@tromey.com>
7409
7410 * valprint.c (generic_value_print_int): 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_bool): New function.
7416 (generic_value_print): Use it.
7417
7418 2020-03-13 Tom Tromey <tom@tromey.com>
7419
7420 * valprint.c (generic_val_print_func): Simplify.
7421 (generic_val_print, generic_value_print): Update.
7422
7423 2020-03-13 Tom Tromey <tom@tromey.com>
7424
7425 * valprint.c (generic_val_print_flags): Remove.
7426 (generic_val_print, generic_value_print): Update.
7427 (val_print_type_code_flags): Add original_value parameter.
7428
7429 2020-03-13 Tom Tromey <tom@tromey.com>
7430
7431 * valprint.c (generic_val_print): Update.
7432 (generic_value_print): Update.
7433 * valprint.c (generic_val_print_enum): Don't call
7434 val_print_scalar_formatted.
7435
7436 2020-03-13 Tom Tromey <tom@tromey.com>
7437
7438 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7439 * valprint.c (generic_value_print_ptr): New function.
7440
7441 2020-03-13 Tom Tromey <tom@tromey.com>
7442
7443 * valprint.c (generic_value_print): Rewrite.
7444
7445 2020-03-13 Tom Tromey <tom@tromey.com>
7446
7447 * p-valprint.c (pascal_object_print_value_fields)
7448 (pascal_object_print_value): New functions.
7449
7450 2020-03-13 Tom Tromey <tom@tromey.com>
7451
7452 * p-valprint.c (pascal_value_print_inner): Rewrite.
7453
7454 2020-03-13 Tom Tromey <tom@tromey.com>
7455
7456 * f-valprint.c (f_value_print_innner): Rewrite.
7457
7458 2020-03-13 Tom Tromey <tom@tromey.com>
7459
7460 * m2-valprint.c (m2_print_unbounded_array): New overload.
7461 (m2_print_unbounded_array): Update.
7462 (m2_print_array_contents): Take a struct value.
7463 (m2_value_print_inner): Rewrite.
7464
7465 2020-03-13 Tom Tromey <tom@tromey.com>
7466
7467 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7468 (d_value_print_inner): New function.
7469 * d-lang.h (d_value_print_inner): Declare.
7470 * d-lang.c (d_language_defn): Use d_value_print_inner.
7471
7472 2020-03-13 Tom Tromey <tom@tromey.com>
7473
7474 * go-valprint.c (go_value_print_inner): New function.
7475 * go-lang.h (go_value_print_inner): Declare.
7476 * go-lang.c (go_language_defn): Use go_value_print_inner.
7477
7478 2020-03-13 Tom Tromey <tom@tromey.com>
7479
7480 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7481 API.
7482 (rust_val_print): Rewrite.
7483 (rust_value_print_inner): New function, from rust_val_print.
7484 (rust_language_defn): Use rust_value_print_inner.
7485
7486 2020-03-13 Tom Tromey <tom@tromey.com>
7487
7488 * ada-valprint.c (ada_value_print_inner): New function.
7489 * ada-lang.h (ada_value_print_inner): Declare.
7490 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7491
7492 2020-03-13 Tom Tromey <tom@tromey.com>
7493
7494 * f-valprint.c (f_value_print_innner): New function.
7495 * f-lang.h (f_value_print_innner): Declare.
7496 * f-lang.c (f_language_defn): Use f_value_print_innner.
7497
7498 2020-03-13 Tom Tromey <tom@tromey.com>
7499
7500 * p-valprint.c (pascal_value_print_inner): New function.
7501 * p-lang.h (pascal_value_print_inner): Declare.
7502 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7503
7504 2020-03-13 Tom Tromey <tom@tromey.com>
7505
7506 * m2-valprint.c (m2_value_print_inner): New function.
7507 * m2-lang.h (m2_value_print_inner): Declare.
7508 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7509
7510 2020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7513 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7514 * c-valprint.c (c_value_print_inner): New function.
7515 * c-lang.h (c_value_print_inner): Declare.
7516 * c-lang.c (c_language_defn, cplus_language_defn)
7517 (asm_language_defn, minimal_language_defn): Use
7518 c_value_print_inner.
7519
7520 2020-03-13 Tom Tromey <tom@tromey.com>
7521
7522 * p-valprint.c (pascal_object_print_value_fields): Now static.
7523 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7524
7525 2020-03-13 Tom Tromey <tom@tromey.com>
7526
7527 * c-valprint.c (c_val_print_array): Simplify.
7528
7529 2020-03-13 Tom Tromey <tom@tromey.com>
7530
7531 * valprint.c (value_print_array_elements): New function.
7532 * valprint.h (value_print_array_elements): Declare.
7533
7534 2020-03-13 Tom Tromey <tom@tromey.com>
7535
7536 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7537 * mips-tdep.c (mips_print_register): Use
7538 value_print_scalar_formatted.
7539
7540 2020-03-13 Tom Tromey <tom@tromey.com>
7541
7542 * valprint.h (value_print_scalar_formatted): Declare.
7543 * valprint.c (value_print_scalar_formatted): New function.
7544
7545 2020-03-13 Tom Tromey <tom@tromey.com>
7546
7547 * valprint.h (generic_value_print): Declare.
7548 * valprint.c (generic_value_print): New function.
7549
7550 2020-03-13 Tom Tromey <tom@tromey.com>
7551
7552 * valprint.c (do_val_print): Call la_value_print_inner, if
7553 available.
7554 * rust-lang.c (rust_language_defn): Update.
7555 * p-lang.c (pascal_language_defn): Update.
7556 * opencl-lang.c (opencl_language_defn): Update.
7557 * objc-lang.c (objc_language_defn): Update.
7558 * m2-lang.c (m2_language_defn): Update.
7559 * language.h (struct language_defn) <la_value_print_inner>: New
7560 member.
7561 * language.c (unknown_language_defn, auto_language_defn): Update.
7562 * go-lang.c (go_language_defn): Update.
7563 * f-lang.c (f_language_defn): Update.
7564 * d-lang.c (d_language_defn): Update.
7565 * c-lang.c (c_language_defn, cplus_language_defn)
7566 (asm_language_defn, minimal_language_defn): Update.
7567 * ada-lang.c (ada_language_defn): Update.
7568
7569 2020-03-13 Tom Tromey <tom@tromey.com>
7570
7571 * c-valprint.c (c_value_print): Use common_val_print.
7572
7573 2020-03-13 Tom Tromey <tom@tromey.com>
7574
7575 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7576
7577 2020-03-13 Tom Tromey <tom@tromey.com>
7578
7579 * f-valprint.c (f77_print_array_1, f_val_print): Use
7580 common_val_print.
7581
7582 2020-03-13 Tom Tromey <tom@tromey.com>
7583
7584 * riscv-tdep.c (riscv_print_one_register_info): Use
7585 common_val_print.
7586
7587 2020-03-13 Tom Tromey <tom@tromey.com>
7588
7589 * mi/mi-main.c (output_register): Use common_val_print.
7590
7591 2020-03-13 Tom Tromey <tom@tromey.com>
7592
7593 * infcmd.c (default_print_one_register_info): Use
7594 common_val_print.
7595
7596 2020-03-13 Tom Tromey <tom@tromey.com>
7597
7598 * valprint.h (common_val_print_checked): Declare.
7599 * valprint.c (common_val_print_checked): New function.
7600 * stack.c (print_frame_arg): Use common_val_print_checked.
7601
7602 2020-03-13 Tom Tromey <tom@tromey.com>
7603
7604 * valprint.c (do_val_print): New function, from val_print.
7605 (val_print): Use do_val_print.
7606 (common_val_print): Use do_val_print.
7607
7608 2020-03-13 Tom Tromey <tom@tromey.com>
7609
7610 * valprint.c (value_print): Use scoped_value_mark.
7611
7612 2020-03-13 Tom de Vries <tdevries@suse.de>
7613
7614 PR symtab/25646
7615 * psymtab.c (partial_symtab::partial_symtab): Don't set
7616 globals_offset and statics_offset. Push element onto
7617 current_global_psymbols and current_static_psymbols stacks.
7618 (concat): New function.
7619 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7620 element from current_global_psymbols and current_static_psymbols
7621 stacks. Concat popped elements to global_psymbols and
7622 static_symbols.
7623 (add_psymbol_to_list): Use current_global_psymbols and
7624 current_static_psymbols stacks.
7625 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7626 current_static_psymbols fields.
7627
7628 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7629
7630 * corelow.c (sniff_core_bfd): Remove.
7631 (class core_target) <m_core_vec>: Remove.
7632 (core_target::core_target): Update.
7633 (core_file_fns): Remove.
7634 (deprecated_add_core_fns): Remove.
7635 (default_core_sniffer): Remove.
7636 (sniff_core_bfd): Remove.
7637 (default_check_format): Remove.
7638 (gdb_check_format): Remove.
7639 (core_target_open): Update.
7640 (core_target::get_core_register_section): Update.
7641 (get_core_registers_cb): Update.
7642 (core_target::fetch_registers): Update.
7643 * gdbcore.h (struct core_fns): Remove.
7644 (deprecated_add_core_fns): Remove.
7645 (default_core_sniffer): Remove.
7646 (default_check_format): Remove.
7647
7648 2020-03-12 Tom Tromey <tom@tromey.com>
7649
7650 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7651 CORE_ADDR.
7652 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7653
7654 2020-03-12 Tom Tromey <tom@tromey.com>
7655
7656 * remote.c (remote_target::download_tracepoint)
7657 (remote_target::enable_tracepoint)
7658 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7659 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7660 sprintf_vma.
7661
7662 2020-03-12 Tom Tromey <tom@tromey.com>
7663
7664 * symfile-mem.c: Update CORE_ADDR size assert.
7665
7666 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7667
7668 * selftest.m4: Move to gdbsupport/.
7669 * acinclude.m4: Update path to selftest.m4.
7670
7671 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7672
7673 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7674 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7675 gdbarch-selfselftests.c and selftest-arch.c.
7676 (SUBDIR_UNITTESTS_OBS): Rename to...
7677 (SELFTESTS_OBS): ... this.
7678 (COMMON_SFILES): Remove disasm-selftests.c and
7679 gdbarch-selftests.c.
7680 * configure.ac: Don't add selftest-arch.{c,o} to
7681 CONFIG_{SRCS,OBS}.
7682 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7683 preprocessor conditions.
7684
7685 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7686
7687 * configure.ac: Don't source bfd/development.sh.
7688 * selftest.m4: Modify comment.
7689 * configure: Re-generate.
7690
7691 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7692
7693 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7694 not "true" or "false".
7695 * configure: Re-generate.
7696
7697 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7698
7699 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7700 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7701 renamed to arm_nbsd_supply_gregset.
7702 (fetch_register): Update to call arm_nbsd_supply_gregset.
7703 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7704 (arm_netbsd_nat_target::fetch_registers): Update.
7705 (fetch_elfcore_registers): Removed.
7706 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7707 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7708 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7709 not require NetBSD system headers.
7710 (arm_nbsd_regset): New struct.
7711 (arm_nbsd_iterate_over_regset_sections): New function.
7712 (arm_netbsd_init_abi_common): Updated to call
7713 set_gdbarch_iterate_over_regset_sections.
7714 * arm-nbsd-tdep.h: New file.
7715
7716 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7717
7718 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7719 recursion.
7720
7721 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7722
7723 * configure: Re-generate.
7724
7725 2020-03-11 Tom Tromey <tromey@adacore.com>
7726
7727 * ada-typeprint.c (print_choices): Fix comment.
7728
7729 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7730
7731 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7732 previous item in the list, when the list has no items.
7733
7734 2020-03-11 Tom de Vries <tdevries@suse.de>
7735
7736 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7737 PROP_LOCLIST handling code.
7738
7739 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7740
7741 * buildsym-legacy.c (record_line): Pass extra parameter to
7742 record_line.
7743 * buildsym.c (buildsym_compunit::record_line): Take an extra
7744 parameter, reduce duplication in the line table, and record the
7745 is_stmt flag in the line table.
7746 * buildsym.h (buildsym_compunit::record_line): Add extra
7747 parameter.
7748 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7749 non-statement lines.
7750 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7751 this to the symtab builder.
7752 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7753 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7754 through to dwarf_record_line_1.
7755 * infrun.c (process_event_stop_test): When stepping, don't stop at
7756 a non-statement instruction, and only refresh the step info when
7757 we land in the middle of a line's range. Also add an extra
7758 comment.
7759 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7760 field.
7761 * record-btrace.c (btrace_find_line_range): Only record lines
7762 marked as is-statement.
7763 * stack.c (frame_show_address): Show the frame address if we are
7764 in a non-statement sal.
7765 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7766 (maintenance_print_one_line_table): Print a header for the is_stmt
7767 column, and include is_stmt information in the output.
7768 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7769 preference to non-statements.
7770 (find_pcs_for_symtab_line): Prefer is-statement entries.
7771 (find_line_common): Likewise.
7772 * symtab.h (struct linetable_entry): Add is_stmt field.
7773 (struct symtab_and_line): Likewise.
7774 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7775 arranging the line table.
7776
7777 2020-03-07 Tom de Vries <tdevries@suse.de>
7778
7779 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7780 DIE.
7781
7782 2020-03-07 Tom Tromey <tom@tromey.com>
7783
7784 * valops.c (value_literal_complex): Remove obsolete comment.
7785 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7786 comment.
7787
7788 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7789
7790 * infrun.h: Forward-declare thread_info.
7791 (set_step_info): Add thread_info parameter, add doc.
7792 * infrun.c (set_step_info): Add thread_info parameter, move doc
7793 to header.
7794 * infrun.c (process_event_stop_test): Pass thread to
7795 set_step_info call.
7796 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7797 set_step_info.
7798 (prepare_one_step): Add thread_info parameter, pass it to
7799 set_step_frame and prepare_one_step (recursive) call.
7800 (step_1): Pass thread to prepare_one_step call.
7801 (step_command_fsm::should_stop): Pass thread to
7802 prepare_one_step.
7803 (until_next_fsm): Pass thread to set_step_frame call.
7804 (finish_command): Pass thread to set_step_info call.
7805
7806 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7807
7808 * windows-tdep.c (windows_solib_create_inferior_hook):
7809 Check if inferior is running.
7810
7811 2020-03-06 Tom de Vries <tdevries@suse.de>
7812
7813 * NEWS: Fix "the the".
7814 * ctfread.c: Same.
7815
7816 2020-03-06 Tom de Vries <tdevries@suse.de>
7817
7818 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7819
7820 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7821
7822 * .dir-locals.el: Add a comment referencing the other copies of
7823 this file.
7824
7825 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7826
7827 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7828 psargs.
7829
7830 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7831
7832 * .gitattributes: New file.
7833
7834 2020-03-04 Tom Tromey <tom@tromey.com>
7835
7836 * symmisc.c (print_symbol_bcache_statistics)
7837 (print_objfile_statistics): Update.
7838 * symfile.c (allocate_symtab): Use intern.
7839 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7840 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7841 macro_cache>: Remove.
7842 <string_cache>: New member.
7843 (struct objfile) <intern>: New methods.
7844 * elfread.c (elf_symtab_read): Use intern.
7845 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7846 (dwarf2_compute_name, dwarf2_physname)
7847 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7848 names.
7849 (guess_partial_die_structure_name): Update.
7850 (partial_die_info::fixup): Intern name.
7851 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7852 name.
7853 (dwarf2_name): Intern name. Update.
7854 * buildsym.c (buildsym_compunit::get_macro_table): Use
7855 string_cache.
7856
7857 2020-03-04 Tom Tromey <tom@tromey.com>
7858
7859 * jit.c (bfd_open_from_target_memory): Make "target" const.
7860 * corefile.c (gnutarget): Now const.
7861 * gdbcore.h (gnutarget): Now const.
7862
7863 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7864
7865 * NEWS: Mention support for WOW64 processes.
7866 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7867 (amd64_windows_segment_register_p): Remove static.
7868 (_initialize_amd64_windows_nat): Update.
7869 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7870 * i386-windows-nat.c (context_offset): Update.
7871 (i386_mappings): Rename and remove static.
7872 (i386_windows_segment_register_p): Remove static.
7873 (_initialize_i386_windows_nat): Update.
7874 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7875 (STATUS_WX86_SINGLE_STEP): New macro.
7876 (EnumProcessModulesEx): New macro.
7877 (Wow64SuspendThread): New macro.
7878 (Wow64GetThreadContext): New macro.
7879 (Wow64SetThreadContext): New macro.
7880 (Wow64GetThreadSelectorEntry): New macro.
7881 (windows_set_context_register_offsets): Add static.
7882 (windows_set_segment_register_p): Likewise.
7883 (windows_add_thread): Adapt for WOW64 processes.
7884 (windows_fetch_one_register): Likewise.
7885 (windows_nat_target::fetch_registers): Likewise.
7886 (windows_store_one_register): Likewise.
7887 (display_selector): Likewise.
7888 (display_selectors): Likewise.
7889 (handle_exception): Likewise.
7890 (windows_continue): Likewise.
7891 (windows_nat_target::resume): Likewise.
7892 (windows_add_all_dlls): Likewise.
7893 (do_initial_windows_stuff): Likewise.
7894 (windows_nat_target::attach): Likewise.
7895 (windows_get_exec_module_filename): Likewise.
7896 (windows_nat_target::create_inferior): Likewise.
7897 (windows_xfer_siginfo): Likewise.
7898 (_initialize_loadable): Initialize Wow64SuspendThread,
7899 Wow64GetThreadContext, Wow64SetThreadContext,
7900 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7901 * windows-nat.h (windows_set_context_register_offsets):
7902 Remove declaration.
7903 (windows_set_segment_register_p): Likewise.
7904 (i386_windows_segment_register_p): Add declaration.
7905 (amd64_windows_segment_register_p): Likewise.
7906
7907 2020-03-04 Luis Machado <luis.machado@linaro.org>
7908
7909 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7910 in "info registers" for AArch64/ARM.
7911
7912 The change caused "info registers" to not print GPR's.
7913
7914 gdb/ChangeLog:
7915
7916 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7917
7918 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7919 when reg->group is empty and reggroup is not.
7920
7921 2020-03-03 Tom Tromey <tromey@adacore.com>
7922
7923 * dwarf2/frame.c (struct dwarf2_frame_cache)
7924 <checked_tailcall_bottom, entry_cfa_sp_offset,
7925 entry_cfa_sp_offset_p>: Remove members.
7926 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
7927 (dwarf2_frame_prev_register): Don't call
7928 dwarf2_tailcall_sniffer_first.
7929 (dwarf2_append_unwinders): Don't append tailcall unwinder.
7930 * frame-unwind.c (add_unwinder): New fuction.
7931 (frame_unwind_init): Use it. Add tailcall unwinder.
7932
7933 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
7934 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
7935
7936 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
7937 value should be printed as true.
7938
7939 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
7940
7941 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
7942 (windows_init_abi): Set and use windows_so_ops.
7943
7944 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
7945
7946 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
7947 when verifying if dealing with a convenience variable.
7948
7949 2020-03-03 Luis Machado <luis.machado@linaro.org>
7950
7951 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
7952
7953 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
7954
7955 * infrun.c (gdbarch_supports_displaced_stepping): New.
7956 (use_displaced_stepping): Break up conditions in smaller pieces.
7957 Use gdbarch_supports_displaced_stepping.
7958 (displaced_step_prepare_throw): Use
7959 gdbarch_supports_displaced_stepping.
7960
7961 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7962
7963 * NEWS: Mention new behaviour of the history filename.
7964 * top.c (write_history_p): Add comment.
7965 (show_write_history_p): Add header comment, give a different
7966 message when history writing is on, but the history filename is
7967 empty.
7968 (history_filename): Add comment.
7969 (history_filename_empty): New function.
7970 (show_history_filename): Add header comment, give a different
7971 message when the filename is empty.
7972 (init_history): Compare history_filename against nullptr, and only
7973 read history if the filename is not empty.
7974 (set_history_filename): Add header comment, and only make
7975 non-empty filenames absolute.
7976 (init_main): Make the filename argument to 'set history filename'
7977 optional.
7978
7979 2020-03-02 Christian Biesinger <cbiesinger@google.com>
7980
7981 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
7982 (arm_supply_vfpregset): ...this, and update to use VFP registers.
7983 (fetch_fp_register): Update.
7984 (fetch_fp_regs): Update.
7985 (store_fp_register): Update.
7986 (store_fp_regs): Update.
7987 (arm_netbsd_nat_target::read_description): New function.
7988 (fetch_elfcore_registers): Update.
7989
7990 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
7991
7992 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
7993 general_thread if the stop reply is missing a thread-id.
7994 (remote_target::process_stop_reply): Use the first non-exited
7995 thread if the target didn't pass a thread-id.
7996 * infrun.c (do_target_wait): Move call to
7997 switch_to_inferior_no_thread to ....
7998 (do_target_wait_1): ... here.
7999
8000 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8001
8002 * debuginfod-support.c: Include defs.h first.
8003
8004 2020-02-28 Tom de Vries <tdevries@suse.de>
8005
8006 * symfile.c (set_initial_language): Use default language for lookup.
8007
8008 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8009
8010 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8011 reader variable, pass `this` to read_cutu_die_from_dwo.
8012
8013 2020-02-27 Aaron Merey <amerey@redhat.com>
8014
8015 * source.c (open_source_file): Check for nullptr when computing
8016 srcpath.
8017
8018 2020-02-27 Tom Tromey <tromey@adacore.com>
8019
8020 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8021 member.
8022 (dwarf2_add_field): Don't update nfields.
8023 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8024
8025 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8026
8027 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8028 abs.
8029
8030 2020-02-26 Tom Tromey <tom@tromey.com>
8031
8032 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8033 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8034 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8035 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8036 per_cu_data.
8037
8038 2020-02-26 Tom Tromey <tom@tromey.com>
8039
8040 * dwarf2/index-write.c (psym_index_map): Change type.
8041 (add_address_entry_worker, write_one_signatured_type)
8042 (recursively_count_psymbols, recursively_write_psymbols)
8043 (class debug_names, psyms_seen_size, write_gdbindex)
8044 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8045
8046 2020-02-26 Aaron Merey <amerey@redhat.com>
8047
8048 * Makefile.in: Handle optional debuginfod support.
8049 * NEWS: Update.
8050 * README: Add --with-debuginfod summary.
8051 * config.in: Regenerate.
8052 * configure: Regenerate.
8053 * configure.ac: Handle optional debuginfod support.
8054 * debuginfod-support.c: debuginfod helper functions.
8055 * debuginfod-support.h: Ditto.
8056 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8057 summary.
8058 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8059 when a dwz file cannot be found.
8060 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8061 debuginfo file cannot be found.
8062 * source.c (open_source_file): Query debuginfod servers when a
8063 source file cannot be found.
8064 * top.c (print_gdb_configuration): Include
8065 --{with,without}-debuginfod in the output.
8066
8067 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8068
8069 * thread.c (thr_try_catch_cmd): Print thread name.
8070
8071 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8072
8073 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8074 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8075 dwarf2_fetch_die_type_sect_off): Move to...
8076 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8077 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8078 dwarf2_fetch_die_type_sect_off): ... here.
8079 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8080 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8081 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8082
8083 2020-02-26 Tom de Vries <tdevries@suse.de>
8084
8085 PR gdb/25603
8086 * symfile.c (set_initial_language): Exit-early if
8087 language_mode == language_mode_manual.
8088
8089 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8090
8091 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8092 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8093 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8094
8095 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8096
8097 * gdbtypes.c (create_array_type_with_stride): Handle negative
8098 array strides.
8099 * valarith.c (value_subscripted_rvalue): Likewise.
8100
8101 2020-02-25 Luis Machado <luis.machado@linaro.org>
8102
8103 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8104
8105 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8106
8107 * loc.h (dwarf2_get_die_type): Move to...
8108 * read.h (dwarf2_get_die_type): ... here.
8109 * read.c (dwarf2_get_die_type): Move doc to header.
8110
8111 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8112
8113 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8114 'gnulib/Makefile.in' to the list.
8115
8116 2020-02-24 Tom Tromey <tom@tromey.com>
8117
8118 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8119 Remove.
8120 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8121 XOBNEWVEC.
8122
8123 2020-02-24 Tom Tromey <tom@tromey.com>
8124
8125 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8126 New method.
8127 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8128 (dw2_do_instantiate_symtab, dw2_get_file_names)
8129 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8130
8131 2020-02-24 Tom Tromey <tom@tromey.com>
8132
8133 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8134 make_scoped_restore.
8135 (dwarf2_psymtab::read_symtab): Don't clear
8136 reading_partial_symbols.
8137
8138 2020-02-24 Tom de Vries <tdevries@suse.de>
8139
8140 PR gdb/25592
8141 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8142
8143 2020-02-24 Tom de Vries <tdevries@suse.de>
8144
8145 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8146 commands layout next/prev/regs.
8147
8148 2020-02-22 Tom Tromey <tom@tromey.com>
8149
8150 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8151 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8152
8153 2020-02-22 Tom Tromey <tom@tromey.com>
8154
8155 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8156
8157 2020-02-22 Tom Tromey <tom@tromey.com>
8158
8159 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8160 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8161 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8162 * tui/tui.c (_initialize_tui): Add usage text.
8163
8164 2020-02-22 Tom Tromey <tom@tromey.com>
8165
8166 * tui/tui-win.c (tui_set_focus_command)
8167 (tui_set_win_height_command): Use error_no_arg.
8168 (_initialize_tui_win): Update help text.
8169 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8170
8171 2020-02-22 Tom Tromey <tom@tromey.com>
8172
8173 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8174 * tui/tui-disasm.h (struct tui_disasm_window)
8175 <display_start_addr>: Declare.
8176 * tui/tui-source.h (struct tui_source_window)
8177 <display_start_addr>: Declare.
8178 * tui/tui-winsource.h (struct tui_source_window_base)
8179 <show_source_line, display_start_addr>: New methods.
8180 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8181 Rename and move to protected section.
8182 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8183 (tui_source_window_base::do_erase_source_content): Update.
8184 (tui_source_window_base::show_source_line): Now a method.
8185 (tui_source_window_base::show_source_content)
8186 (tui_source_window_base::tui_source_window_base)
8187 (tui_source_window_base::rerender)
8188 (tui_source_window_base::refill)
8189 (tui_source_window_base::do_scroll_horizontal)
8190 (tui_source_window_base::set_is_exec_point_at)
8191 (tui_source_window_base::update_breakpoint_info)
8192 (tui_source_window_base::update_exec_info): Update.
8193 * tui/tui-source.c (tui_source_window::set_contents)
8194 (tui_source_window::showing_source_p)
8195 (tui_source_window::do_scroll_vertical)
8196 (tui_source_window::location_matches_p)
8197 (tui_source_window::line_is_displayed): Update.
8198 (tui_source_window::display_start_addr): New method.
8199 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8200 (tui_disasm_window::do_scroll_vertical)
8201 (tui_disasm_window::location_matches_p): Update.
8202 (tui_disasm_window::display_start_addr): New method.
8203
8204 2020-02-22 Tom Tromey <tom@tromey.com>
8205
8206 * NEWS: Add entry for gdb.register_window_type.
8207 * tui/tui-layout.h (window_factory): New typedef.
8208 (tui_register_window): Declare.
8209 * tui/tui-layout.c (saved_tui_windows): New global.
8210 (tui_apply_current_layout): Use it.
8211 (tui_register_window): New function.
8212 * python/python.c (do_start_initialization): Call
8213 gdbpy_initialize_tui.
8214 (python_GdbMethods): Add "register_window_type" function.
8215 * python/python-internal.h (gdbpy_register_tui_window)
8216 (gdbpy_initialize_tui): Declare.
8217 * python/py-tui.c: New file.
8218 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8219
8220 2020-02-22 Tom Tromey <tom@tromey.com>
8221
8222 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8223
8224 2020-02-22 Tom Tromey <tom@tromey.com>
8225
8226 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8227 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8228 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8229 (tui_set_win_focus_to): Move from tui-win.c.
8230
8231 2020-02-22 Tom Tromey <tom@tromey.com>
8232
8233 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8234 functions.
8235 (known_window_types): New global.
8236 (tui_get_window_by_name): Reimplement.
8237 (initialize_known_windows): New function.
8238 (validate_window_name): Rewrite.
8239 (_initialize_tui_layout): Call initialize_known_windows.
8240
8241 2020-02-22 Tom Tromey <tom@tromey.com>
8242
8243 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8244 Remove constants.
8245 * tui/tui-winsource.h (struct tui_source_window_base)
8246 <tui_source_window_base>: Remove parameter.
8247 * tui/tui-winsource.c
8248 (tui_source_window_base::tui_source_window_base): Remove
8249 parameter.
8250 (tui_source_window_base::refill): Update.
8251 * tui/tui-stack.h (struct tui_locator_window)
8252 <tui_locator_window>: Update.
8253 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8254 Default the constructor.
8255 * tui/tui-regs.h (struct tui_data_item_window)
8256 <tui_data_item_window>: Default the constructor.
8257 (struct tui_data_window) <tui_data_window>: Likewise.
8258 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8259 Default the constructor.
8260 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8261 Default the constructor.
8262 <type>: Remove.
8263 (struct tui_win_info) <tui_win_info>: Default the constructor.
8264 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8265 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8266 Default the constructor.
8267
8268 2020-02-22 Tom Tromey <tom@tromey.com>
8269
8270 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8271 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8272 * tui/tui-win.c (tui_resize_all): Don't call
8273 tui_delete_invisible_windows.
8274 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8275 done.
8276 (tui_set_layout): Update.
8277 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8278 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8279 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8280
8281 2020-02-22 Tom Tromey <tom@tromey.com>
8282
8283 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8284 correctly.
8285
8286 2020-02-22 Tom Tromey <tom@tromey.com>
8287
8288 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8289
8290 2020-02-22 Tom Tromey <tom@tromey.com>
8291
8292 * tui/tui-winsource.h (struct tui_source_window_iterator)
8293 <inner_iterator>: New etytypedef.
8294 <tui_source_window_iterator>: Take "end" parameter.
8295 <tui_source_window_iterator>: Take iterator.
8296 <operator*, advance>: Update.
8297 <m_iter>: Change type.
8298 <m_end>: New field.
8299 (struct tui_source_windows) <begin, end>: Update.
8300 * tui/tui-layout.c (tui_windows): New global.
8301 (tui_apply_current_layout): Clear tui_windows.
8302 (tui_layout_window::apply): Update tui_windows.
8303 * tui/tui-data.h (tui_windows): Declare.
8304 (all_tui_windows): Now inline function.
8305 (class tui_window_iterator, struct all_tui_windows): Remove.
8306
8307 2020-02-22 Tom Tromey <tom@tromey.com>
8308
8309 PR tui/17850:
8310 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8311 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8312 "height" argument.
8313 (class tui_layout_window) <get_sizes>: Likewise.
8314 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8315 argument.
8316 <get_sizes>: Add "height" argument.
8317 <m_vertical>: New field.
8318 * tui/tui-layout.c (tui_layout_split::clone): Update.
8319 (tui_layout_split::get_sizes): Add "height" argument.
8320 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8321 (tui_new_layout_command): Parse "-horizontal".
8322 (_initialize_tui_layout): Update help string.
8323 (tui_layout_split::specification): Add "-horizontal" when needed.
8324 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8325 argument.
8326 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8327 New methods.
8328
8329 2020-02-22 Tom Tromey <tom@tromey.com>
8330
8331 * tui/tui-layout.h (enum tui_adjust_result): New.
8332 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8333 (class tui_layout_window) <adjust_size>: Return
8334 tui_adjust_result. Rewrite.
8335 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8336 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8337
8338 2020-02-22 Tom Tromey <tom@tromey.com>
8339
8340 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8341 parameter and return types.
8342 (class tui_layout_base) <specification>: Add "depth".
8343 (class tui_layout_window) <specification>: Add "depth".
8344 (class tui_layout_split) <specification>: Add "depth".
8345 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8346 and return types.
8347 (tui_new_layout_command): Parse sub-layouts.
8348 (_initialize_tui_layout): Update help string.
8349 (tui_layout_window::specification): Add "depth".
8350 (add_layout_command): Update.
8351
8352 2020-02-22 Tom Tromey <tom@tromey.com>
8353
8354 * NEWS: Add "tui new-layout" item.
8355 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8356 Add new-layout command to help text.
8357 (validate_window_name): New function.
8358 (tui_new_layout_command): New function.
8359 (_initialize_tui_layout): Register "new-layout".
8360 (tui_layout_window::specification): New method.
8361 (tui_layout_window::specification): New method.
8362 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8363 method.
8364 (class tui_layout_window) <specification>: New method.
8365 (class tui_layout_split) <specification>: New method.
8366
8367 2020-02-22 Tom Tromey <tom@tromey.com>
8368
8369 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8370 * tui/tui-win.c (window_name_completer): Update comment.
8371 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8372 Declare method.
8373 (class tui_layout_window) <replace_window>: Likewise.
8374 (class tui_layout_split) <replace_window>: Likewise.
8375 (tui_set_layout): Don't declare.
8376 (tui_set_initial_layout): Declare function.
8377 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8378 (asm_regs_layout): New globals.
8379 (tui_current_layout, show_layout): Remove.
8380 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8381 (find_layout, tui_apply_layout): New function.
8382 (layout_completer): Remove.
8383 (tui_next_layout): Reimplement.
8384 (tui_next_layout_command): New function.
8385 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8386 (tui_regs_layout): Reimplement.
8387 (tui_regs_layout_command): New function.
8388 (extract_display_start_addr): Rewrite.
8389 (next_layout, prev_layout): Remove.
8390 (tui_layout_window::replace_window): New method.
8391 (tui_layout_split::replace_window): New method.
8392 (destroy_layout): New function.
8393 (layout_list): New global.
8394 (add_layout_command): New function.
8395 (initialize_layouts): Update.
8396 (tui_layout_command): New function.
8397 (_initialize_tui_layout): Install "layout" commands.
8398 * tui/tui-data.h (enum tui_layout_type): Remove.
8399 (tui_current_layout): Don't declare.
8400
8401 2020-02-22 Tom Tromey <tom@tromey.com>
8402
8403 * tui/tui-regs.c (tui_reg_layout): Remove.
8404 (tui_reg_command): Use tui_regs_layout.
8405 * tui/tui-layout.h (tui_reg_command): Declare.
8406 * tui/tui-layout.c (tui_reg_command): New function.
8407
8408 2020-02-22 Tom Tromey <tom@tromey.com>
8409
8410 * tui/tui.c (tui_rl_delete_other_windows): Call
8411 tui_remove_some_windows.
8412 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8413 Declare method.
8414 (class tui_layout_window) <remove_windows>: New method.
8415 (class tui_layout_split) <remove_windows>: Declare.
8416 (tui_remove_some_windows): Declare.
8417 * tui/tui-layout.c (tui_remove_some_windows): New function.
8418 (tui_layout_split::remove_windows): New method.
8419
8420 2020-02-22 Tom Tromey <tom@tromey.com>
8421
8422 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8423 * tui/tui-layout.h (tui_next_layout): Declare.
8424 * tui/tui-layout.c (tui_next_layout): New function.
8425
8426 2020-02-22 Tom Tromey <tom@tromey.com>
8427
8428 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8429 correct coordinates.
8430
8431 2020-02-22 Tom Tromey <tom@tromey.com>
8432
8433 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8434 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8435 DATA_WIN case.
8436
8437 2020-02-22 Tom Tromey <tom@tromey.com>
8438
8439 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8440 TUI_DISASM_WIN, not tui_win_list.
8441
8442 2020-02-22 Tom Tromey <tom@tromey.com>
8443
8444 * valprint.c (generic_val_print_enum_1)
8445 (val_print_type_code_flags): Style member names.
8446 * rust-lang.c (val_print_struct, rust_print_enum)
8447 (rust_print_struct_def, rust_internal_print_type): Style member
8448 names.
8449 * p-valprint.c (pascal_object_print_value_fields): Style member
8450 names. Only call fprintf_symbol_filtered for static members.
8451 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8452 * f-valprint.c (f_val_print): Style member names.
8453 * f-typeprint.c (f_type_print_base): Style member names.
8454 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8455 call fprintf_symbol_filtered for static members.
8456 (cp_print_class_member): Style member names.
8457 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8458 member names.
8459 * ada-valprint.c (ada_print_scalar): Style enum names.
8460 (ada_val_print_enum): Likewise.
8461 * ada-typeprint.c (print_enum_type): Style enum names.
8462
8463 2020-02-21 Tom Tromey <tom@tromey.com>
8464
8465 * psympriv.h (struct partial_symtab): Update comment.
8466
8467 2020-02-21 Tom Tromey <tromey@adacore.com>
8468
8469 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8470 type is CORE_ADDR.
8471
8472 2020-02-21 Tom de Vries <tdevries@suse.de>
8473
8474 PR gdb/25534
8475 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8476 if dependencies[i]->user != NULL.
8477
8478 2020-02-21 Ali Tamur <tamur@google.com>
8479
8480 * dwarf2/read.c (dwarf2_name): Add null check.
8481
8482 2020-02-20 Tom Tromey <tom@tromey.com>
8483
8484 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8485 ">=", in binary search.
8486 (dwarf2_find_containing_comp_unit): New overload.
8487 (run_test): New self-test.
8488 (_initialize_dwarf2_read): Register new test.
8489
8490 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8491
8492 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8493 * riscv-tdep.h: Likewise.
8494 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8495 rv32-only CSR.
8496 * features/riscv/64bit-csr.xml: Regenerated.
8497
8498 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8499 Tom Tromey <tom@tromey.com>
8500
8501 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8502 of 'fputc_unfiltered'.
8503 (putchar_unfiltered): Call 'fputc_unfiltered'.
8504 (fputc_unfiltered): Call 'fputs_unfiltered'.
8505
8506 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8507
8508 * config.in: Regenerate.
8509 * configure: Regenerate.
8510 * configure.ac: Add --with-python-libdir option.
8511 * main.c: Use WITH_PYTHON_LIBDIR.
8512
8513 2020-02-19 Tom Tromey <tom@tromey.com>
8514
8515 * symtab.c (general_symbol_info::compute_and_set_names): Use
8516 obstack_strndup. Simplify call to symbol_set_demangled_name.
8517
8518 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8519
8520 * dwarf2/read.c (allocate_signatured_type_table,
8521 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8522 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8523 Remove objfile parameter, update all callers.
8524
8525 2020-02-19 Doug Evans <dje@google.com>
8526
8527 PR rust/25535
8528 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8529 rust_enum_variant calculation.
8530
8531 2020-02-19 Tom Tromey <tromey@adacore.com>
8532
8533 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8534
8535 2020-02-19 Tom Tromey <tromey@adacore.com>
8536
8537 * ada-lang.c (cache_symbol): Use obstack_strdup.
8538
8539 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8540
8541 * configure: Regenerate.
8542
8543 2020-02-19 Tom Tromey <tromey@adacore.com>
8544
8545 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8546 NULL check.
8547
8548 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8549
8550 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8551
8552 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8553
8554 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8555 if GDBSERVER is not defined.
8556 (riscv_tdesc_cache): Likewise, also store const target_desc.
8557 (STATIC_IN_GDB): Define.
8558 (riscv_create_target_description): Update declaration with
8559 STATIC_IN_GDB.
8560 (riscv_lookup_target_description): New function, only define if
8561 GDBSERVER is not defined.
8562 * arch/riscv.h (riscv_create_target_description): Declare only
8563 when GDBSERVER is defined.
8564 (riscv_lookup_target_description): New declaration when GDBSERVER
8565 is not defined.
8566 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8567 (riscv_linux_read_features): ...this, and return
8568 riscv_gdbarch_features instead of target_desc.
8569 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8570 (riscv_linux_read_description): Rename to...
8571 (riscv_linux_read_features): ...this.
8572 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8573 Update to use riscv_gdbarch_features and
8574 riscv_lookup_target_description.
8575 * riscv-tdep.c (riscv_find_default_target_description): Use
8576 riscv_lookup_target_description instead of
8577 riscv_create_target_description.
8578
8579 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8580
8581 * valprint.c (generic_val_print_enum_1): When printing a flag
8582 enum with value 0 and there is no enumerator with value 0, print
8583 just "0" instead of "(unknown: 0x0)".
8584
8585 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8586
8587 * valprint.c (generic_val_print_enum_1): Print unknown part of
8588 flag enum in hex.
8589
8590 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8591
8592 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8593 flag enums to contain duplicate enumerators.
8594 * valprint.c (generic_val_print_enum_1): Update comment.
8595
8596 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8597
8598 * dwarf2/read.c: Include "count-one-bits.h".
8599 (update_enumeration_type_from_children): If an enumerator has
8600 multiple bits set, don't treat the enumeration as a "flag enum".
8601 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8602 of flag enums have 0 or 1 bit set.
8603
8604 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8605
8606 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8607 conversion.
8608 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8609 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8610 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8611 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8612 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8613
8614 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8615
8616 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8617
8618 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8619
8620 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8621 displaced_step_closure_up.
8622 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8623 (struct displaced_step_closure_up):
8624 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8625 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8626 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8627 Likewise.
8628 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8629 * gdbarch.c, gdbarch.h: Re-generate.
8630 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8631 displaced_step_closure_up.
8632 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8633 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8634 * infrun.h (displaced_step_closure_up): New type alias.
8635 (struct displaced_step_inferior_state) <step_closure>: Change
8636 type to displaced_step_closure_up.
8637 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8638 displaced_step_closure_up.
8639 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8640
8641 2020-02-14 Tom Tromey <tom@tromey.com>
8642
8643 * minidebug.c (gnu_debug_key): New global.
8644 (find_separate_debug_file_in_section): Use it.
8645
8646 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8647
8648 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8649 std::unique_ptr.
8650 * gdbarch.c: Re-generate.
8651 * gdbarch.h: Re-generate.
8652 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8653 change.
8654 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8655 type to std::unique_ptr.
8656 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8657 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8658 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8659 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8660 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8661 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8662 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8663 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8664 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8665
8666 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8667
8668 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8669 std::unique_ptr.
8670 (displaced_step_clear): Rename to...
8671 (displaced_step_reset): ... this. Just call displaced->reset ().
8672 (displaced_step_clear_cleanup): Rename to...
8673 (displaced_step_reset_cleanup): ... this.
8674 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8675 (displaced_step_fixup): Likewise.
8676 (resume_1): Likewise.
8677 (handle_inferior_event): Restore child's memory before calling
8678 displaced_step_fixup on the parent.
8679 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8680 to std::unique_ptr.
8681 <step_closure>: Change type to std::unique_ptr.
8682
8683 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8684
8685 * arm-tdep.c: Include count-one-bits.h.
8686 (cleanup_block_store_pc): Use count_one_bits.
8687 (cleanup_block_load_pc): Use count_one_bits.
8688 (arm_copy_block_xfer): Use count_one_bits.
8689 (thumb2_copy_block_xfer): Use count_one_bits.
8690 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8691 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8692 (thumb_get_next_pcs_raw): Use count_one_bits.
8693 (arm_get_next_pcs_raw): Use count_one_bits_l.
8694 * arch/arm.c (bitcount): Remove.
8695 * arch/arm.h (bitcount): Remove.
8696
8697 2020-02-14 Tom Tromey <tromey@adacore.com>
8698
8699 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8700 Update.
8701 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8702 * dwarf2/loc.c (call_site_find_chain_1): Return
8703 unique_xmalloc_ptr.
8704 (call_site_find_chain): Likewise.
8705
8706 2020-02-14 Richard Biener <rguenther@suse.de>
8707
8708 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8709 on expression with division operators.
8710
8711 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8712
8713 * MAINTAINERS (Write After Approval): Adding myself.
8714
8715 2020-02-12 Tom Tromey <tom@tromey.com>
8716
8717 * event-loop.c (event_data, gdb_event, event_handler_func):
8718 Remove.
8719
8720 2020-02-12 Tom Tromey <tom@tromey.com>
8721
8722 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8723 (dwarf2_frame_objfile_data): Add comment.
8724 (find_comp_unit, set_comp_unit): New functions.
8725 (dwarf2_frame_find_fde): Use find_comp_unit.
8726 (dwarf2_build_frame_info): Use set_comp_unit.
8727
8728 2020-02-12 Tom Tromey <tom@tromey.com>
8729
8730 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8731 (comp_unit): Don't initialize objfile.
8732 (execute_cfa_program): Add text_offset parameter.
8733 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8734 (dwarf2_frame_cache): Update.
8735 (dwarf2_build_frame_info): Don't set "objfile" member.
8736
8737 2020-02-12 Tom Tromey <tom@tromey.com>
8738
8739 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8740 (decode_frame_entry): Likewise.
8741 (dwarf2_build_frame_info): Update.
8742
8743 2020-02-12 Tom Tromey <tom@tromey.com>
8744
8745 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8746 (decode_frame_entry_1): Use the comp_unit obstack.
8747
8748 2020-02-12 Tom Tromey <tom@tromey.com>
8749
8750 * dwarf2/frame.c (struct comp_unit): Add initializers and
8751 constructor.
8752 (dwarf2_frame_objfile_data): Store a comp_unit.
8753 (dwarf2_frame_find_fde): Update.
8754 (dwarf2_build_frame_info): Use "new".
8755
8756 2020-02-12 Tom Tromey <tom@tromey.com>
8757
8758 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8759 (dwarf2_fde_table): Typedef for std::vector.
8760 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8761 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8762 (decode_frame_entry): Update.
8763 (dwarf2_build_frame_info): Use "new".
8764
8765 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8766
8767 * arm-tdep.c (arm_gdbarch_init): Update.
8768 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8769 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8770 have_neon, is_m>: Change to bool.
8771
8772 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8773
8774 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8775
8776 2020-02-12 Tom Tromey <tom@tromey.com>
8777
8778 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8779
8780 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8781
8782 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8783 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8784
8785 2020-02-11 Tom Tromey <tom@tromey.com>
8786
8787 * psymtab.h: Update comment.
8788
8789 2020-02-11 Tom Tromey <tom@tromey.com>
8790
8791 * gdb_obstack.h (struct auto_obstack): Use
8792 DISABLE_COPY_AND_ASSIGN.
8793
8794 2020-02-11 Tom Tromey <tom@tromey.com>
8795
8796 * dwarf2/frame.h (struct objfile): Don't forward declare.
8797
8798 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8799
8800 * cris-tdep.c (cris_supply_gregset): Change signature to match
8801 what struct regset expects.
8802 (cris_regset): New struct.
8803 (fetch_core_registers): Remove.
8804 (cris_iterate_over_regset_sections): New function.
8805 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8806 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8807
8808 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8809
8810 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8811 registers.
8812
8813 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8814
8815 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8816
8817 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8818
8819 * configure: Re-generate.
8820
8821 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8822
8823 * configure: Re-generate.
8824
8825 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8826
8827 * acinclude: Update warning.m4 path.
8828 * warning.m4: Move to gdbsupport.
8829
8830 2020-02-11 Tom Tromey <tromey@adacore.com>
8831
8832 * remote.c (remote_console_output): Update.
8833 * printcmd.c (printf_command): Update.
8834 * event-loop.c (gdb_wait_for_event): Update.
8835 * linux-nat.c (sigchld_handler): Update.
8836 * remote-sim.c (gdb_os_write_stdout): Update.
8837 (gdb_os_flush_stdout): Update.
8838 (gdb_os_flush_stderr): Update.
8839 (gdb_os_write_stderr): Update.
8840 * exceptions.c (print_exception): Update.
8841 * remote-fileio.c (remote_fileio_func_read): Update.
8842 (remote_fileio_func_write): Update.
8843 * tui/tui.c (tui_enable): Update.
8844 * tui/tui-interp.c (tui_interp::init): Update.
8845 * utils.c (init_page_info): Update.
8846 (putchar_unfiltered, fputc_unfiltered): Update.
8847 (gdb_flush): Update.
8848 (emit_style_escape): Update.
8849 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8850 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8851 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8852 (stderr_file::write): Update.
8853 (stderr_file::puts): Update.
8854 * ui-file.h (ui_file_isatty, ui_file_write)
8855 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8856 (ui_file_puts): Don't declare.
8857
8858 2020-02-10 Tom de Vries <tdevries@suse.de>
8859
8860 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8861 sentinel to char *.
8862
8863 2020-02-09 Tom de Vries <tdevries@suse.de>
8864
8865 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8866 filename if it matches "<artificial>".
8867
8868 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8869
8870 * windows-tdep.c (struct enum_value_name): New struct.
8871 (create_enum): New function.
8872 (windows_get_siginfo_type): Create and use enum types.
8873
8874 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8875
8876 * NEWS: Mention $_siginfo support for Windows.
8877 * windows-nat.c (handle_exception): Set siginfo_er.
8878 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8879 (windows_xfer_siginfo): New function.
8880 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8881 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8882 (init_windows_gdbarch_data): New function.
8883 (get_windows_gdbarch_data): New function.
8884 (windows_get_siginfo_type): New function.
8885 (windows_init_abi): Register windows_get_siginfo_type.
8886 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8887
8888 2020-02-08 Tom Tromey <tom@tromey.com>
8889
8890 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8891 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8892 <keep>: Declare method.
8893 <m_keep>: Remove member.
8894 <~cutu_reader>: Remove.
8895 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8896 (cutu_reader::cutu_reader): Update.
8897 (cutu_reader::keep): Rename from ~cutu_reader.
8898 (process_psymtab_comp_unit, build_type_psymtabs_1)
8899 (process_skeletonless_type_unit, load_partial_comp_unit)
8900 (load_full_comp_unit, dwarf2_read_addr_index)
8901 (read_signatured_type): Update.
8902
8903 2020-02-08 Tom Tromey <tom@tromey.com>
8904
8905 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8906 "want_partial_unit" parameter.
8907 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8908 Inline check for DW_TAG_partial_unit.
8909 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8910
8911 2020-02-08 Tom Tromey <tom@tromey.com>
8912
8913 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8914 read.c.
8915 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8916 read.c.
8917
8918 2020-02-08 Tom Tromey <tom@tromey.com>
8919
8920 * dwarf2/read.c (read_address): Move to comp-unit.c.
8921 (dwarf2_rnglists_process, dwarf2_ranges_process)
8922 (read_attribute_value, dwarf_decode_lines_1)
8923 (var_decode_location, decode_locdesc): Update.
8924 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8925 read.c. Remove "cu" parameter.
8926 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
8927 method.
8928
8929 2020-02-08 Tom Tromey <tom@tromey.com>
8930
8931 * dwarf2/read.c (read_attribute_value, read_indirect_string)
8932 (read_indirect_line_string): Update.
8933 * dwarf2/comp-unit.c (read_offset): Remove.
8934 (read_comp_unit_head): Update.
8935 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
8936 method.
8937 (read_offset): Don't declare.
8938
8939 2020-02-08 Tom Tromey <tom@tromey.com>
8940
8941 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
8942 * dwarf2/read.c (struct comp_unit_head): Move to
8943 dwarf2/comp-unit.h.
8944 (enum class rcuh_kind): Move to comp-unit.h.
8945 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
8946 (read_comp_unit_head, error_check_comp_unit_head)
8947 (read_and_check_comp_unit_head): Move to comp-unit.c.
8948 (read_offset, dwarf_unit_type_name): Likewise.
8949 (create_debug_type_hash_table, read_cutu_die_from_dwo)
8950 (cutu_reader::cutu_reader, read_call_site_scope)
8951 (find_partial_die, follow_die_offset): Update.
8952 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
8953
8954 2020-02-08 Tom Tromey <tom@tromey.com>
8955
8956 * dwarf2/read.c (read_offset_1): Move to leb.c.
8957 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
8958 (dwarf_decode_macro_bytes): Update.
8959 * dwarf2/leb.c (read_offset): Rename; move from read.c.
8960 * dwarf2/leb.h (read_offset): Declare.
8961
8962 2020-02-08 Tom Tromey <tom@tromey.com>
8963
8964 * dwarf2/read.c (dwarf2_section_size): Remove.
8965 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
8966 Update.
8967 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
8968
8969 2020-02-08 Tom Tromey <tom@tromey.com>
8970
8971 * dwarf2/read.c (read_initial_length): Move to leb.c.
8972 * dwarf2/leb.h (read_initial_length): Declare.
8973 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
8974 handle_nonstd parameter.
8975 * dwarf2/frame.c (read_initial_length): Remove.
8976 (decode_frame_entry_1): Update.
8977
8978 2020-02-08 Tom Tromey <tom@tromey.com>
8979
8980 * dwarf2/loc.c (dwarf2_find_location_expression)
8981 (dwarf_evaluate_loc_desc::get_tls_address)
8982 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
8983 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
8984 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
8985 (dwarf2_compile_property_to_c)
8986 (dwarf2_loc_desc_get_symbol_read_needs)
8987 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
8988 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
8989 (loclist_describe_location, loclist_tracepoint_var_ref)
8990 (loclist_generate_c_location): Update.
8991 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
8992 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
8993 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
8994 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
8995 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
8996 (dwarf2_per_cu_data::addr_size)
8997 (dwarf2_per_cu_data::ref_addr_size)
8998 (dwarf2_per_cu_data::text_offset)
8999 (dwarf2_per_cu_data::addr_type): Now methods.
9000 (per_cu_header_read_in): Make per_cu "const".
9001 (dwarf2_version): Remove.
9002 (dwarf2_per_cu_data::int_type): Now a method.
9003 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9004 (set_die_type, read_array_type, read_subrange_index_type)
9005 (read_tag_string_type, read_subrange_type): Update.
9006 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9007 offset_size, ref_addr_size, text_offset, addr_type, version,
9008 objfile, int_type, addr_sized_int_type>: Declare methods.
9009
9010 2020-02-08 Tom Tromey <tom@tromey.com>
9011
9012 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9013 Move earlier.
9014
9015 2020-02-08 Tom Tromey <tom@tromey.com>
9016
9017 * dwarf2/read.h (dwarf_line_debug): Declare.
9018 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9019 * dwarf2/read.c: Move line_header code to new files.
9020 (dwarf_line_debug): No longer static.
9021 * dwarf2/line-header.c: New file.
9022 * dwarf2/line-header.h: New file.
9023
9024 2020-02-08 Tom Tromey <tom@tromey.com>
9025
9026 * dwarf2/read.c (struct line_header) <file_full_name,
9027 file_file_name>: Return unique_xmalloc_ptr.
9028 (line_header::file_file_name): Update.
9029 (line_header::file_full_name): Update.
9030 (dw2_get_file_names_reader): Update.
9031 (macro_start_file): Update.
9032
9033 2020-02-08 Tom Tromey <tom@tromey.com>
9034
9035 * dwarf2/read.c (struct line_header) <file_full_name,
9036 file_file_name>: Declare methods.
9037 (dw2_get_file_names_reader): Update.
9038 (file_file_name): Now a method.
9039 (file_full_name): Likewise.
9040 (macro_start_file): Update.
9041
9042 2020-02-08 Tom Tromey <tom@tromey.com>
9043
9044 * dwarf2/read.c (dwarf_always_disassemble)
9045 (show_dwarf_always_disassemble): Move to loc.c.
9046 (_initialize_dwarf2_read): Move "always-disassemble" registration
9047 to loc.c.
9048 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9049 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9050 static.
9051 (show_dwarf_always_disassemble): Move from read.c.
9052 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9053
9054 2020-02-08 Tom Tromey <tom@tromey.com>
9055
9056 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9057 (create_quick_file_names_table): Return htab_up.
9058 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9059 Update.
9060 * dwarf2/read.h (struct dwarf2_per_objfile)
9061 <quick_file_names_table>: Now htab_up.
9062
9063 2020-02-08 Tom Tromey <tom@tromey.com>
9064
9065 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9066
9067 2020-02-08 Tom Tromey <tom@tromey.com>
9068
9069 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9070 Rewrite.
9071 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9072 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9073 (abbrev_table::abbrev_table): No longer inline.
9074 (ABBREV_HASH_SIZE): Remove.
9075 (abbrev_table::m_abbrevs): Now an htab_up.
9076
9077 2020-02-08 Tom Tromey <tom@tromey.com>
9078
9079 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9080 (cutu_reader): Update.
9081 (build_type_psymtabs_1): Update.
9082 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9083 (abbrev_table::alloc_abbrev): Update.
9084 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9085 (abbrev_table::read): New static method, renamed from
9086 abbrev_table_read_table.
9087 (abbrev_table::alloc_abbrev)
9088 (abbrev_table::add_abbrev): Now private.
9089 (abbrev_table::abbrev_table): Now private.
9090 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9091
9092 2020-02-08 Tom Tromey <tom@tromey.com>
9093
9094 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9095 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9096 htab_up.
9097
9098 2020-02-08 Tom Tromey <tom@tromey.com>
9099
9100 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9101 htab_up.
9102 (lookup_dwo_unit_in_dwp): Update.
9103 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9104 on obstack.
9105
9106 2020-02-08 Tom Tromey <tom@tromey.com>
9107
9108 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9109 obstack.
9110
9111 2020-02-08 Tom Tromey <tom@tromey.com>
9112
9113 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9114 line_header_hash.
9115 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9116 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9117 Change type to htab_up.
9118
9119 2020-02-08 Tom Tromey <tom@tromey.com>
9120
9121 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9122 htab_up. Don't allocate on obstack.
9123 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9124 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9125 Change type to htab_up.
9126
9127 2020-02-08 Tom Tromey <tom@tromey.com>
9128
9129 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9130 Change type to htab_up.
9131 * dwarf2/read.c (create_signatured_type_table_from_index)
9132 (create_signatured_type_table_from_debug_names)
9133 (create_all_type_units, add_type_unit)
9134 (lookup_dwo_signatured_type, lookup_signatured_type)
9135 (process_skeletonless_type_unit): Update.
9136 (create_debug_type_hash_table, create_debug_types_hash_table):
9137 Change type of types_htab.
9138 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9139 htab_up. Don't allocate on obstack.
9140 (create_cus_hash_table): Change type of cus_htab parameter.
9141 (struct dwo_file) <cus, tus>: Now htab_up.
9142 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9143 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9144 (queue_and_load_all_dwo_tus): Update.
9145 * dwarf2/index-write.c (write_gdbindex): Update.
9146 (write_debug_names): Update.
9147
9148 2020-02-08 Tom Tromey <tom@tromey.com>
9149
9150 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9151 dwarf2/read.c. Remove "next" member. Add constructor ntad
9152 destructor.
9153 (struct dwarf2_per_objfile) <queue>: New member.
9154 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9155 dwarf2/read.h.
9156 (dwarf2_queue, dwarf2_queue_tail): Remove.
9157 (class dwarf2_queue_guard): Add parameter to constructor. Use
9158 DISABLE_COPY_AND_ASSIGN.
9159 <m_per_objfile>: New member.
9160 <~dwarf2_queue_guard>: Rewrite.
9161 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9162 Update.
9163 (~dwarf2_queue_item): New.
9164
9165 2020-02-08 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2/read.c (struct die_info) <has_children>: New member.
9168 (dw2_get_file_names_reader): Remove has_children.
9169 (dw2_get_file_names): Update.
9170 (read_cutu_die_from_dwo): Remove has_children.
9171 (cutu_reader::init_tu_and_read_dwo_dies)
9172 (cutu_reader::cutu_reader): Update.
9173 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9174 Remove has_children.
9175 (build_type_psymtabs_1, process_skeletonless_type_unit)
9176 (load_partial_comp_unit, load_full_comp_unit): Update.
9177 (create_dwo_cu_reader): Remove has_children.
9178 (create_cus_hash_table, read_die_and_children): Update.
9179 (read_full_die_1,read_full_die): Remove has_children.
9180 (read_signatured_type): Update.
9181 (class cutu_reader) <has_children>: Remove.
9182
9183 2020-02-08 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2/expr.c: Rename from dwarf2expr.c.
9186 * dwarf2/expr.h: Rename from dwarf2expr.h.
9187 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9188 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9189 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9190 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9191 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9192 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9193 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9194 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9195 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9196 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9197 * dwarf2/loc.c: Rename from dwarf2loc.c.
9198 * dwarf2/loc.h: Rename from dwarf2loc.h.
9199 * dwarf2/read.c: Rename from dwarf2read.c.
9200 * dwarf2/read.h: Rename from dwarf2read.h.
9201 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9202 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9203 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9204 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9205 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9206 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9207 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9208 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9209 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9210 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9211 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9212 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9213 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9214 Update.
9215 * Makefile.in (COMMON_SFILES): Update.
9216 (HFILES_NO_SRCDIR): Update.
9217
9218 2020-02-08 Tom Tromey <tom@tromey.com>
9219
9220 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9221 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9222
9223 2020-02-08 Tom Tromey <tom@tromey.com>
9224
9225 * dwarf2read.h (struct die_info): Don't declare.
9226
9227 2020-02-08 Tom Tromey <tom@tromey.com>
9228
9229 * dwarf2read.h (die_info_ptr): Remove typedef.
9230
9231 2020-02-08 Tom Tromey <tom@tromey.com>
9232
9233 * dwarf2read.c (read_call_site_scope)
9234 (handle_data_member_location, dwarf2_add_member_fn)
9235 (mark_common_block_symbol_computed, read_common_block)
9236 (attr_to_dynamic_prop, partial_die_info::read)
9237 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9238 (dwarf2_symbol_mark_computed, set_die_type): Update.
9239 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9240 method.
9241 (attr_form_is_block): Don't declare.
9242 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9243
9244 2020-02-08 Tom Tromey <tom@tromey.com>
9245
9246 * dwarf2read.c (dwarf2_find_base_address, )
9247 (read_call_site_scope, rust_containing_type)
9248 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9249 (handle_data_member_location, dwarf2_add_member_fn)
9250 (get_alignment, read_structure_type, process_structure_scope)
9251 (mark_common_block_symbol_computed, read_common_block)
9252 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9253 (partial_die_info::read, read_attribute_value, new_symbol)
9254 (lookup_die_type, dwarf2_get_ref_die_offset)
9255 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9256 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9257 (dwarf2_symbol_mark_computed): Update.
9258 * dwarf2/attribute.h (struct attribute) <value_as_address,
9259 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9260 methods.
9261 (value_as_address, attr_form_is_section_offset)
9262 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9263 * dwarf2/attribute.c (attribute::value_as_address)
9264 (attribute::form_is_section_offset, attribute::form_is_constant)
9265 (attribute::form_is_ref): Now methods.
9266
9267 2020-02-08 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2read.c (struct attribute, DW_STRING)
9270 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9271 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9272 (attr_form_is_block, attr_form_is_section_offset)
9273 (attr_form_is_constant, attr_form_is_ref): Move.
9274 * dwarf2/attribute.h: New file.
9275 * dwarf2/attribute.c: New file, from dwarf2read.c.
9276 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9277
9278 2020-02-08 Tom Tromey <tom@tromey.com>
9279
9280 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9281 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9282 Move.
9283 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9284 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9285 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9286 abbrev.c.
9287 * dwarf2/abbrev.h: New file.
9288 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9289 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9290
9291 2020-02-08 Tom Tromey <tom@tromey.com>
9292
9293 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9294 (dwarf2_section_size, dwarf2_get_section_info)
9295 (create_signatured_type_table_from_debug_names)
9296 (create_addrmap_from_aranges, read_debug_names_from_section)
9297 (get_gdb_index_contents_from_section, read_comp_unit_head)
9298 (error_check_comp_unit_head, read_abbrev_offset)
9299 (create_debug_type_hash_table, init_cu_die_reader)
9300 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9301 (read_comp_units_from_section, create_cus_hash_table)
9302 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9303 (create_dwp_v2_section, dwarf2_rnglists_process)
9304 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9305 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9306 (read_indirect_string_from_dwz, read_addr_index_1)
9307 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9308 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9309 (fill_in_loclist_baton): Update.
9310 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9311 get_containing_section, get_bfd_owner, get_bfd_section,
9312 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9313 (dwarf2_read_section, get_section_name, get_section_file_name)
9314 (get_containing_section, get_section_bfd_owner)
9315 (get_section_bfd_section, get_section_name, get_section_file_name)
9316 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9317 declare.
9318 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9319 (dwarf2_section_info::get_bfd_owner)
9320 (dwarf2_section_info::get_bfd_section)
9321 (dwarf2_section_info::get_name)
9322 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9323 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9324 (dwarf2_section_info::read): Now methods.
9325 * dwarf-index-write.c (class debug_names): Update.
9326
9327 2020-02-08 Tom Tromey <tom@tromey.com>
9328
9329 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9330 Move to dwarf2/section.h.
9331 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9332 (get_section_bfd_section, get_section_name)
9333 (get_section_file_name, get_section_id, get_section_flags)
9334 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9335 dwarf2/section.c.
9336 * dwarf2/section.h: New file.
9337 * dwarf2/section.c: New file, from dwarf2read.c.
9338 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9339
9340 2020-02-08 Tom Tromey <tom@tromey.com>
9341
9342 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9343 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9344 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9345 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9346 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9347 * dwarf2/leb.h: New file, from dwarf2read.c.
9348 * dwarf2/leb.c: New file, from dwarf2read.c.
9349 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9350 Remove.
9351 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9352 (COMMON_SFILES): Add dwarf2/leb.c.
9353
9354 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9355
9356 GDB 9.1 released.
9357
9358 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9359
9360 PR gdb/25190:
9361 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9362 * gdb/remote.c (remote_console_output): Update.
9363 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9364 (ui_file_puts): ...this.
9365 * gdb/ui-file.h (ui_file_puts): Add declaration.
9366 * gdb/utils.c (emit_style_escape): Update.
9367 (flush_wrap_buffer): Update.
9368 (fputs_maybe_filtered): Update.
9369 (fputs_unfiltered): Add function.
9370
9371 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9372
9373 * gdb/event-loop.c (gdb_wait_for_event): Update.
9374 * gdb/printcmd.c (printf_command): Update.
9375 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9376 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9377 (gdb_os_flush_stderr): Update.
9378 * gdb/remote.c (remote_console_output): Update.
9379 * gdb/ui-file.c (gdb_flush): Rename to...
9380 (ui_file_flush): ...this.
9381 (stderr_file::write): Update.
9382 (stderr_file::puts): Update.
9383 * gdb/ui-file.h (gdb_flush): Rename to...
9384 (ui_file_flush): ...this.
9385 * gdb/utils.c (gdb_flush): Add function.
9386 * gdb/utils.h (gdb_flush): Add declaration.
9387
9388 2020-02-07 Tom Tromey <tromey@adacore.com>
9389
9390 PR breakpoints/24915:
9391 * source.c (find_and_open_source): Do not check basenames_may_differ.
9392
9393 2020-02-07 Tom Tromey <tom@tromey.com>
9394
9395 * README: Update gdbserver documentation.
9396 * gdbserver: Move to top level.
9397 * configure.tgt (build_gdbserver): Remove.
9398 * configure.ac: Remove --enable-gdbserver.
9399 * configure: Rebuild.
9400 * Makefile.in (distclean): Don't mention gdbserver.
9401
9402 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9403
9404 * source-cache.c (source_cache::ensure): Surround
9405 get_plain_source_lines with a try/catch.
9406 (source_cache::get_line_charpos): Get rid of try/catch
9407 and only check for the return value of "ensure".
9408 * tui/tui-source.c (tui_source_window::set_contents):
9409 Simplify "nlines" calculation.
9410
9411 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9412
9413 * MAINTAINERS (Write After Approval): Add myself.
9414
9415 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9416
9417 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9418 function call.
9419
9420 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9421
9422 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9423
9424 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9425
9426 * nat/riscv-linux-tdesc.h: New file.
9427 * nat/riscv-linux-tdesc.c: New file, taking code from...
9428 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9429 ... here.
9430 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9431 NATDEPFILES.
9432
9433 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9434
9435 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9436 we don't set the fake simulator ptid to the null_ptid.
9437
9438 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9439
9440 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9441 * gdbthread.h (class thread_info) <resumed>: Likewise.
9442 * infrun.c (resume_1): Likewise.
9443 (proceed): Likewise.
9444 (infrun_thread_stop_requested): Likewise.
9445 (stop_all_threads): Likewise.
9446 (handle_inferior_event): Likewise.
9447 (restart_threads): Likewise.
9448 (finish_step_over): Likewise.
9449 (keep_going_stepped_thread): Likewise.
9450 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9451 (linux_handle_extended_wait): Likewise.
9452 * record-btrace.c (get_thread_current_frame_id): Likewise.
9453 * record-full.c (record_full_wait_1): Likewise.
9454 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9455 * target.c (target_resume): Likewise.
9456 * thread.c (set_running_thread): Likewise.
9457
9458 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9459
9460 * f-valprint.c (f77_print_array_1): Changed datatype of index
9461 variable to LONGEST from int to enable it to contain bound
9462 values correctly.
9463
9464 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9465
9466 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9467 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9468 offsets according to FLEN determined.
9469 (riscv_linux_nat_target::read_description): Determine FLEN
9470 dynamically.
9471 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9472 according to FLEN determined.
9473 (riscv_linux_nat_target::store_registers): Likewise.
9474
9475 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9476
9477 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9478 when reg->group is empty and reggroup is not.
9479
9480 2020-01-31 Tom Tromey <tromey@adacore.com>
9481
9482 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9483 Call beneath target's mourn_inferior after unpushing.
9484
9485 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9486
9487 PR tui/9765
9488 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9489 have enough lines to fill the screen, still return the lowest
9490 address we found.
9491
9492 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9493
9494 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9495 '-', '<', and '>' commands.
9496
9497 2020-01-29 Pedro Alves <palves@redhat.com>
9498 Sergio Durigan Junior <sergiodj@redhat.com>
9499
9500 * infcmd.c (construct_inferior_arguments): Assert that
9501 'argc' is greater than 0.
9502
9503 2020-01-29 Luis Machado <luis.machado@linaro.org>
9504
9505 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9506 (BRK_INSN_MASK): Define to 0xd4200000.
9507 (aarch64_program_breakpoint_here_p): New function.
9508 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9509 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9510 breakpoint.c.
9511 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9512 breakpoint.h
9513 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9514 call gdbarch_program_breakpoint_here_p.
9515 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9516 default_program_breakpoint_here_p, changed return type to bool and
9517 simplified.
9518 * breakpoint.h (program_breakpoint_here): Moved prototype to
9519 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9520 return type to bool.
9521 * gdbarch.c: Regenerate.
9522 * gdbarch.h: Regenerate.
9523 * gdbarch.sh (program_breakpoint_here_p): New method.
9524 * infrun.c (handle_signal_stop): Call
9525 gdbarch_program_breakpoint_here_p.
9526
9527 2020-01-26 Tom Tromey <tom@tromey.com>
9528
9529 * ctfread.c (struct ctf_fp_info): Reindent.
9530 (_initialize_ctfread): Remove.
9531
9532 2020-01-26 Tom Tromey <tom@tromey.com>
9533
9534 * psymtab.c (partial_map_expand_apply)
9535 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9536 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9537 (psym_print_stats, psym_expand_symtabs_for_function)
9538 (psym_map_symbol_filenames, psym_map_matching_symbols)
9539 (psym_expand_symtabs_matching)
9540 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9541 (maintenance_check_psymtabs): Use new methods.
9542 * psympriv.h (struct partial_symtab) <readin_p,
9543 get_compunit_symtab>: New methods.
9544 <readin, compunit_symtab>: Remove members.
9545 (struct standard_psymtab): New.
9546 (struct legacy_psymtab): Derive from standard_psymtab.
9547 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9548 standard_psymtab.
9549 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9550
9551 2020-01-26 Tom Tromey <tom@tromey.com>
9552
9553 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9554 read_dependencies. Add assert.
9555 * psymtab.c (partial_symtab::read_dependencies): New method.
9556 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9557 method.
9558 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9559 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9560 read_dependencies.
9561 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9562 Add assert.
9563
9564 2020-01-26 Tom Tromey <tom@tromey.com>
9565
9566 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9567 Call expand_psymtab.
9568 (xcoff_read_symtab): Call expand_psymtab.
9569 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9570 legacy_expand_psymtab.
9571 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9572 method.
9573 (struct legacy_psymtab) <expand_psymtab>: Implement.
9574 <legacy_expand_psymtab>: New member.
9575 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9576 (parse_partial_symbols): Set legacy_expand_psymtab.
9577 (psymtab_to_symtab_1): Change argument order. Call
9578 expand_psymtab.
9579 (new_psymtab): Set legacy_expand_psymtab.
9580 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9581 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9582 expand_psymtab.
9583 (dwarf2_psymtab::expand_psymtab): Rename from
9584 psymtab_to_symtab_1. Call expand_psymtab.
9585 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9586 (dbx_end_psymtab): Likewise.
9587 (dbx_psymtab_to_symtab_1): Change argument order. Call
9588 expand_psymtab.
9589 (dbx_read_symtab): Call expand_psymtab.
9590 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9591 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9592 (ctf_psymtab::read_symtab): Call expand_psymtab.
9593
9594 2020-01-26 Tom Tromey <tom@tromey.com>
9595
9596 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9597 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9598 messages.
9599 * mdebugread.c (mdebug_read_symtab): Remove prints.
9600 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9601 assert.
9602 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9603
9604 2020-01-26 Tom Tromey <tom@tromey.com>
9605
9606 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9607 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9608 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9609 legacy_symtab.
9610 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9611 * psymtab.c (psymtab_to_symtab): Call method.
9612 (dump_psymtab): Update.
9613 * psympriv.h (struct partial_symtab): Add virtual destructor.
9614 <read_symtab>: New method.
9615 (struct legacy_symtab): New.
9616 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9617 (struct pst_map) <pst>: Now a legacy_psymtab.
9618 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9619 (new_psymtab): Use legacy_psymtab.
9620 * dwarf2read.h (struct dwarf2_psymtab): New.
9621 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9622 * dwarf2read.c (dwarf2_create_include_psymtab)
9623 (dwarf2_build_include_psymtabs, create_type_unit_group)
9624 (create_partial_symtab, process_psymtab_comp_unit_reader)
9625 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9626 (set_partial_user): Use dwarf2_psymtab.
9627 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9628 (psymtab_to_symtab_1, process_full_comp_unit)
9629 (process_full_type_unit, dwarf2_ranges_read)
9630 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9631 (dwarf_decode_lines): Use dwarf2_psymtab.
9632 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9633 (add_address_entry_worker, write_one_signatured_type)
9634 (recursively_count_psymbols, recursively_write_psymbols)
9635 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9636 (write_debug_names): Likewise.
9637 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9638 <pst>: Now a legacy_psymtab.
9639 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9640 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9641 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9642 * ctfread.c (struct ctf_psymtab): New.
9643 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9644 ctf_psymtab.
9645 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9646 (create_partial_symtab): Return a ctf_psymtab.
9647 (scan_partial_symbols): Update.
9648
9649 2020-01-26 Tom Tromey <tom@tromey.com>
9650
9651 * xcoffread.c (xcoff_start_psymtab): Use new.
9652 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9653 renamed from start_psymtab_common.
9654 * psympriv.h (struct partial_symtab): Add new constructor.
9655 (start_psymtab_common): Don't declare.
9656 * mdebugread.c (parse_partial_symbols): Use new.
9657 * dwarf2read.c (create_partial_symtab): Use new.
9658 * dbxread.c (start_psymtab): Use new.
9659 * ctfread.c (create_partial_symtab): Use new.
9660
9661 2020-01-26 Tom Tromey <tom@tromey.com>
9662
9663 * xcoffread.c (xcoff_end_psymtab): Use new.
9664 * psymtab.c (start_psymtab_common): Use new.
9665 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9666 Update.
9667 * psympriv.h (struct partial_symtab): Add parameters to
9668 constructor. Don't inline.
9669 (allocate_psymtab): Don't declare.
9670 * mdebugread.c (new_psymtab): Use new.
9671 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9672 * dbxread.c (dbx_end_psymtab): Use new.
9673
9674 2020-01-26 Tom Tromey <tom@tromey.com>
9675
9676 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9677 allocate_psymtab. Update documentation.
9678 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9679 allocate_psymtab. Do not use new.
9680 (allocate_psymtab): Use new. Update.
9681
9682 2020-01-26 Tom Tromey <tom@tromey.com>
9683
9684 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9685 * psymtab.c (psym_print_stats): Update.
9686 * psympriv.h (struct partial_symtab) <readin,
9687 psymtabs_addrmap_supported, anonymous>: Now bool.
9688 * mdebugread.c (psymtab_to_symtab_1): Update.
9689 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9690 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9691 (process_full_comp_unit, process_full_type_unit): Update.
9692 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9693 * ctfread.c (psymtab_to_symtab): Update.
9694
9695 2020-01-26 Tom Tromey <tom@tromey.com>
9696
9697 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9698 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9699 * psymtab.c (psymtab_storage): Delete psymtabs.
9700 (psymtab_storage::allocate_psymtab): Use new.
9701 (psymtab_storage::discard_psymtab): Use delete.
9702 * psympriv.h (struct partial_symtab): Add constructor and
9703 initializers.
9704
9705 2020-01-26 Tom Tromey <tom@tromey.com>
9706
9707 * machoread.c: Do not include psympriv.h.
9708
9709 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9710
9711 * NEWS: Mention the new option and the set/show commands.
9712
9713 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9714
9715 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9716 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9717 (validate_exec_file): New variables, enums, functions.
9718 (exec_file_locate_attach, print_section_info): Style the filenames.
9719 (_initialize_exec): Install show_exec_file_mismatch_command and
9720 set_exec_file_mismatch_command.
9721 * gdbcore.h (validate_exec_file): Declare.
9722 * infcmd.c (attach_command): Call validate_exec_file.
9723 * remote.c ( remote_target::remote_add_inferior): Likewise.
9724
9725 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9726
9727 * frame.c (find_frame_sal): Move call to get_next_frame into more
9728 inner scope.
9729 * inline-frame.c (inilne_state) <inline_state>: Update argument
9730 types.
9731 (inilne_state) <skipped_symbol>: Rename to...
9732 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9733 (skip_inline_frames): Build vector of skipped symbols and use this
9734 to reate the inline_state.
9735 (inline_skipped_symbol): Add a comment and some assertions, fetch
9736 skipped symbol from the list.
9737
9738 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9739
9740 * buildsym.c (lte_is_less_than): Delete.
9741 (buildsym_compunit::end_symtab_with_blockvector): Create local
9742 lambda function to sort line table entries, and use
9743 std::stable_sort instead of std::sort.
9744 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9745 markers when looking for a previous line.
9746
9747 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9748
9749 * dwarf2read.c (lnp_state_machine::record_line): Include
9750 end_sequence parameter in debug print out. Record the line if we
9751 are at an end_sequence marker even if it's not the start of a
9752 statement.
9753 * symmisc.c (maintenance_print_one_line_table): Print end of
9754 sequence markers with 'END' not '0'.
9755
9756 2020-01-24 Pedro Alves <palves@redhat.com>
9757
9758 PR gdb/25410
9759 * thread.c (scoped_restore_current_thread::restore): Use
9760 switch_to_inferior_no_thread.
9761 * exec.c: Include "progspace-and-thread.h".
9762 (add_target_sections, remove_target_sections):
9763 scoped_restore_current_pspace_and_thread instead of
9764 scoped_restore_current_thread.
9765 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9766 and aspace to the inferior before calling clone_program_space.
9767 Remove stale comment.
9768
9769 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9770
9771 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9772 (arm_netbsd_nat_target::fetch_registers): ...this.
9773 (arm_nbsd_nat_target::store_registers): Rename to...
9774 (arm_netbsd_nat_target::store_registers): ...this.
9775
9776 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9777
9778 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9779 register_t.
9780
9781 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9782
9783 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9784 Update comment.
9785 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9786 Likewise.
9787 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9788 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9789 the correct replacement (iterate_over_regset_sections).
9790 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9791 Update comment.
9792
9793 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9794
9795 PR gdb/23718
9796 * gdb/python/python.c (execute_gdb_command): Call
9797 async_enable_stdin in catch block.
9798
9799 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9800
9801 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9802 SWITCH_THRU_ALL_UIS.
9803
9804 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9805
9806 PR tui/9765
9807 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9808 comment, add extra parameter, and update to store previous symbol
9809 when appropriate.
9810 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9811 add extra parameter.
9812 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9813 remove unneeded parameter, add try/catch around gdb_print_insn,
9814 rewrite to add items to asm_lines vector.
9815 (tui_find_backward_disassembly_start_address): New function.
9816 (tui_find_disassembly_address): Updated throughout.
9817 (tui_disasm_window::set_contents): Update for changes to
9818 tui_disassemble.
9819 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9820 number of lines to scroll.
9821
9822 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9823
9824 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9825 (SECT_OFF_DATA): Likewise.
9826 (SECT_OFF_RODATA): Likewise.
9827 (SECT_OFF_TEXT): Likewise.
9828 (SECT_OFF_BSS): Likewise.
9829 (struct objfile) <text_section_offset, data_section_offset>: New
9830 methods.
9831 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9832 objfile::text_section_offset.
9833 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9834 * coffread.c (coff_symtab_read): Likewise.
9835 (enter_linenos): Likewise.
9836 (process_coff_symbol): Likewise.
9837 * ctfread.c (get_objfile_text_range): Likewise.
9838 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9839 Use objfile::data_section_offset.
9840 * dwarf2-frame.c (execute_cfa_program): Use
9841 objfile::text_section_offset.
9842 (dwarf2_frame_find_fde): Likewise.
9843 * dwarf2read.c (create_addrmap_from_index): Likewise.
9844 (create_addrmap_from_aranges): Likewise.
9845 (dw2_find_pc_sect_compunit_symtab): Likewise.
9846 (process_psymtab_comp_unit_reader): Likewise.
9847 (add_partial_symbol): Likewise.
9848 (add_partial_subprogram): Likewise.
9849 (process_full_comp_unit): Likewise.
9850 (read_file_scope): Likewise.
9851 (read_func_scope): Likewise.
9852 (read_lexical_block_scope): Likewise.
9853 (read_call_site_scope): Likewise.
9854 (dwarf2_rnglists_process): Likewise.
9855 (dwarf2_ranges_process): Likewise.
9856 (dwarf2_ranges_read): Likewise.
9857 (dwarf_decode_lines_1): Likewise.
9858 (new_symbol): Likewise.
9859 (dwarf2_fetch_die_loc_sect_off): Likewise.
9860 (dwarf2_per_cu_text_offset): Likewise.
9861 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9862 * hppa-tdep.c (read_unwind_info): Likewise.
9863 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9864 * psympriv.h (struct partial_symtab): Likewise.
9865 * psymtab.c (find_pc_sect_psymtab): Likewise.
9866 * solib-svr4.c (enable_break): Likewise.
9867 * stap-probe.c (relocate_address): Use
9868 objfile::data_section_offset.
9869 * xcoffread.c (enter_line_range): Use
9870 objfile::text_section_offset.
9871 (read_xcoff_symtab): Likewise.
9872
9873 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9874
9875 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9876 declaration to narrower scopes.
9877
9878 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9879
9880 * darwin-nat.h (struct darwin_exception_msg, enum
9881 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9882 Move up.
9883 (class darwin_nat_target) <wait_1, check_new_threads,
9884 decode_exception_message, decode_message, stop_inferior,
9885 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9886 * darwin-nat.c (darwin_check_new_threads): Rename to...
9887 (darwin_nat_target::check_new_threads): ... this.
9888 (darwin_suspend_inferior_it): Remove.
9889 (darwin_decode_exception_message): Rename to...
9890 (darwin_nat_target::decode_exception_message): ... this.
9891 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9892 (darwin_decode_message): Rename to...
9893 (darwin_nat_target::decode_message): ... this.
9894 (cancel_breakpoint): Rename to...
9895 (darwin_nat_target::cancel_breakpoint): ... this.
9896 (darwin_wait): Rename to...
9897 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9898 instead of iterate_over_inferiors.
9899 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9900 (darwin_stop_inferior): Rename to...
9901 (darwin_nat_target::stop_inferior): ... this.
9902 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9903 (darwin_init_thread_list): Rename to...
9904 (darwin_nat_target::init_thread_list): ... this.
9905 (darwin_ptrace_him): Rename to...
9906 (darwin_nat_target::ptrace_him): ... this.
9907 (darwin_nat_target::create_inferior): Pass lambda function to
9908 fork_inferior.
9909 (darwin_nat_target::detach): Call stop_inferior instead of
9910 darwin_stop_inferior.
9911 * fork-inferior.h (fork_inferior): Change init_trace_fun
9912 parameter to gdb::function_view.
9913 * fork-inferior.c (fork_inferior): Likewise.
9914
9915 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9916
9917 * i386-cygwin-tdep.c (core_process_module_section): Update.
9918 * windows-nat.c (struct lm_info_windows): Add text_offset.
9919 (windows_xfer_shared_libraries): Update.
9920 * windows-tdep.c (windows_xfer_shared_library):
9921 Add text_offset_cached argument.
9922 * windows-tdep.h (windows_xfer_shared_library): Update.
9923
9924 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9925
9926 * gdbarch.sh: Add declaration for _initialize_gdbarch.
9927
9928 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9929
9930 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
9931 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
9932 replace with range-based for.
9933 (gdbsim_interrupt_inferior): Remove.
9934 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
9935 with a range-based for. Inline code from
9936 gdbsim_interrupt_inferior.
9937
9938 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9939
9940 * infrun.c (proceed): Fix indentation.
9941
9942 2020-01-21 Tom Tromey <tromey@adacore.com>
9943
9944 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
9945 * python/python.c (python_extension_ops): Update.
9946 (gdbpy_colorize): New function.
9947 * python/lib/gdb/__init__.py (colorize): New function.
9948 * extension.h (ext_lang_colorize): Declare.
9949 * extension.c (ext_lang_colorize): New function.
9950 * extension-priv.h (struct extension_language_ops) <colorize>: New
9951 member.
9952 * cli/cli-style.c (_initialize_cli_style): Update help text.
9953
9954 2020-01-21 Luis Machado <luis.machado@linaro.org>
9955
9956 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
9957 <cond>: Change type to bool.
9958 (aarch64_displaced_step_b_cond): Update cond to use bool type.
9959 (aarch64_displaced_step_cb): Likewise.
9960 (aarch64_displaced_step_tb): Likewise.
9961
9962 2020-01-21 Luis Machado <luis.machado@linaro.org>
9963
9964 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
9965 output.
9966
9967 2020-01-21 Luis Machado <luis.machado@linaro.org>
9968
9969 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
9970 <pc_adjust>: Adjust the documentation.
9971 (aarch64_displaced_step_fixup): Check if PC really moved before
9972 adjusting it.
9973
9974 2020-01-19 Tom Tromey <tom@tromey.com>
9975
9976 * disasm.c (~gdb_disassembler): New destructor.
9977 (gdb_buffered_insn_length): Call disassemble_free_target.
9978 * disasm.h (class gdb_disassembler): Declare destructor. Use
9979 DISABLE_COPY_AND_ASSIGN.
9980
9981 2020-01-19 Tom Tromey <tom@tromey.com>
9982
9983 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
9984 (die_reader_func_ftype): Remove.
9985 (cutu_reader): New class.
9986 (dw2_get_file_names_reader): Remove "data" parameter.
9987 (dw2_get_file_names): Use cutu_reader.
9988 (create_debug_type_hash_table): Update.
9989 (read_cutu_die_from_dwo): Update comment.
9990 (lookup_dwo_unit): Add dwo_name parameter.
9991 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
9992 die_reader_func_ftype and data parameters.
9993 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
9994 Remove die_reader_func_ftype and data parameters.
9995 (~cutu_reader): New; from init_cutu_and_read_dies.
9996 (cutu_reader::cutu_reader): Rename from
9997 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
9998 and data parameters.
9999 (init_cutu_and_read_dies_simple): Remove.
10000 (struct process_psymtab_comp_unit_data): Remove.
10001 (process_psymtab_comp_unit_reader): Remove data parameter; add
10002 want_partial_unit and pretend_language parameters.
10003 (process_psymtab_comp_unit): Use cutu_reader.
10004 (build_type_psymtabs_reader): Remove data parameter.
10005 (build_type_psymtabs_1): Use cutu_reader.
10006 (process_skeletonless_type_unit): Likewise.
10007 (load_partial_comp_unit_reader): Remove.
10008 (load_partial_comp_unit): Use cutu_reader.
10009 (load_full_comp_unit_reader): Remove.
10010 (load_full_comp_unit): Use cutu_reader.
10011 (struct create_dwo_cu_data): Remove.
10012 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10013 dwo_unit parameters.
10014 (create_cus_hash_table): Use cutu_reader.
10015 (struct dwarf2_read_addr_index_data): Remove.
10016 (dwarf2_read_addr_index_reader): Remove.
10017 (dwarf2_read_addr_index): Use cutu_reader.
10018 (read_signatured_type_reader): Remove.
10019 (read_signatured_type): Use cutu_reader.
10020
10021 2020-01-19 Tom Tromey <tom@tromey.com>
10022
10023 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10024 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10025 (tui_wrefresh): Declare.
10026 * tui/tui-wingeneral.c (suppress_output): New global.
10027 (tui_suppress_output, ~tui_suppress_output): New constructor and
10028 destructor.
10029 (tui_wrefresh): New function.
10030 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10031 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10032 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10033 method.
10034 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10035 tui_wrefresh.
10036 (tui_data_window::no_refresh): New method.
10037 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10038 (tui_reg_command): Use tui_suppress_output
10039 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10040 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10041 method.
10042 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10043
10044 2020-01-19 Tom Tromey <tom@tromey.com>
10045
10046 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10047 Handle case where symtab is null.
10048
10049 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10050
10051 * linux-fork.c (one_fork_p): Simplify.
10052
10053 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10054
10055 * top.c (struct qt_args): Remove.
10056 (kill_or_detach): Change return type to void, replace `void *`
10057 parameter with a proper one.
10058 (print_inferior_quit_action): Likewise.
10059 (quit_confirm): Use range-based for loop to iterate over inferiors.
10060 (quit_force): Likewise.
10061
10062 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10063
10064 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10065 `void *` parameter with proper parameters.
10066 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10067 (print_one_inferior): Change return type to void, replace `void *`
10068 parameter with proper parameters.
10069 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10070 inferiors.
10071 (get_other_inferior): Remove.
10072 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10073 inferiors.
10074
10075 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10076
10077 * mi/mi-interp.c (report_initial_inferior): Remove.
10078 (mi_interp::init): Use range-based for to iterate over inferiors.
10079
10080 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10081
10082 * python/py-inferior.c (build_inferior_list): Remove.
10083 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10084
10085 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10086
10087 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10088 (btrace_stitch_trace): Likewise.
10089 * charset.c (intermediate_encoding): Likewise (vaild).
10090 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10091 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10092 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10093
10094 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10095
10096 * windows-tdep.c (windows_get_tlb_type):
10097 Add rtl_user_process_parameters type.
10098
10099 2020-01-16 Pedro Alves <palves@redhat.com>
10100 Norbert Lange <nolange79@gmail.com>
10101
10102 PR build/24805
10103 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10104 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10105 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10106 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10107 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10108 (ps_plog): Redeclare exported functions with default visibility.
10109
10110 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10111
10112 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10113 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10114
10115 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10116
10117 * infcmd.c (post_create_inferior): Use get_thread_regcache
10118 instead of get_current_regcache.
10119
10120 2020-01-14 Tom Tromey <tom@tromey.com>
10121
10122 PR symtab/12535:
10123 * python/python.c (gdbpy_decode_line): Treat empty string the same
10124 as no argument.
10125
10126 2020-01-14 Tom Tromey <tom@tromey.com>
10127
10128 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10129
10130 2020-01-14 Tom Tromey <tom@tromey.com>
10131
10132 * nat/linux-btrace.c: Don't include <config.h>.
10133 * nat/linux-ptrace.c: Don't include <config.h>.
10134 * nat/x86-linux-dregs.c: Don't include <config.h>.
10135
10136 2020-01-14 Tom Tromey <tom@tromey.com>
10137
10138 * configure: Rebuild.
10139 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10140
10141 2020-01-14 Tom Tromey <tom@tromey.com>
10142
10143 * nat/x86-linux-dregs.c: Include configh.h.
10144 * nat/linux-ptrace.c: Include configh.h.
10145 * nat/linux-btrace.c: Include configh.h.
10146 * defs.h: Include config.h, bfd.h.
10147 * configure.ac: Don't source common.host.
10148 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10149 * configure: Rebuild.
10150 * acinclude.m4: Update path.
10151 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10152 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10153 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10154 (CLIBS): Add LIBSUPPORT.
10155 (CDEPS): Likewise.
10156 (COMMON_SFILES): Remove gdbsupport files.
10157 (HFILES_NO_SRCDIR): Likewise.
10158 (stamp-version): Update path to create-version.sh.
10159 (ALLDEPFILES): Remove gdbsupport files.
10160
10161 2020-01-14 Tom Tromey <tom@tromey.com>
10162
10163 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10164 USE_WIN32API when needed.
10165 * configure.ac (USE_WIN32API): Don't define.
10166 (WIN32LIBS): Use WIN32APILIBS.
10167 * configure: Rebuild.
10168
10169 2020-01-14 Tom Tromey <tom@tromey.com>
10170
10171 * configure: Rebuild.
10172 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10173
10174 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10175
10176 * skip.c (skip_function_command): Make skip w/o arguments use the
10177 name of the inlined function if pc is inside any inlined function.
10178
10179 2020-01-14 Luis Machado <luis.machado@linaro.org>
10180
10181 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10182 * infrun.c (resume_1): Likewise.
10183 (handle_inferior_event): Remove stale comment.
10184 * linux-nat.c (linux_nat_target::resume): Update comments.
10185 (save_stop_reason): Likewise.
10186 (linux_nat_filter_event): Likewise.
10187 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10188
10189 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10190
10191 * elfread.c (record_minimal_symbol): Set section index to 0 for
10192 non-allocatable sections.
10193
10194
10195 2020-01-13 Ali Tamur <tamur@google.com>
10196
10197 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10198 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10199 to gdb::optional. Update comments.
10200 (dwo_file): Update comments.
10201 (read_attribute): Update API to take an additional out parameter,
10202 need_reprocess. This is used to mark attributes that need other
10203 attributes (e.g. str_offsets_base) for correct computation which may not
10204 have been read yet.
10205 (read_attribute_reprocess): New function declaration.
10206 (read_addr_index): Likewise.
10207 (read_dwo_str_index): Likewise.
10208 (read_stub_str_index): Likewise.
10209 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10210 (lookup_addr_base): New function definition.
10211 (lookup_ranges_base): Likewise.
10212 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10213 lookup_ranges_base.
10214 (init_cutu_and_read_dies): Update comments.
10215 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10216 unit. This is used to inherit parent's str_offsets_base and addr_base.
10217 Update comments.
10218 (init_cutu_and_read_dies_simple): Reflect API changes.
10219 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10220 (create_cus_hash_table): Change API to take parent compile unit.
10221 Reflect API changes.
10222 (open_and_init_dwo_file): Reflect API changes.
10223 (dwarf2_get_pc_bounds): Update comments.
10224 (dwarf2_record_block_ranges): Likewise.
10225 (read_full_die_1): Change implementation to reprocess attributes that
10226 need str_offsets_base and addr_base.
10227 (partial_die_info::read): Likewise.
10228 (read_attribute_reprocess): New function definition.
10229 (read_attribute_value): Change API to take an additional out parameter,
10230 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10231 when a non-dwo compile unit has index based attributes.
10232 (read_attribute): Reflect API changes.
10233 (read_addr_index_1): Reflect API changes. Update comments.
10234 (dwarf2_read_addr_index_data): Reflect API changes.
10235 (dwarf2_read_addr_index): Likewise.
10236 (read_str_index): Change API and implementation. This becomes a helper
10237 to be used by the new string index related methods. Update error
10238 message and comments.
10239 (read_dwo_str_index): New function definition.
10240 (read_stub_str_index): Likewise.
10241 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10242 * symfile.h (dwarf2_debug_sections): Likewise.
10243 * xcoffread.c (dwarf2_debug_sections): Likewise.
10244
10245 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10246
10247 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10248 core_reg_sect type to gdb_byte *.
10249 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10250 * cris-tdep.c (fetch_core_registers): Likewise.
10251 * corelow.c (core_target::get_core_register_section): Change
10252 type of `contents` to gdb::byte_vector.
10253
10254 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10255
10256 * tui/tui-wingeneral.c (box_win): Position the title in the center
10257 of the border.
10258
10259 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10260
10261 * corelow.c (core_target::get_core_register_section): Use
10262 std::vector instead of alloca.
10263
10264 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10265
10266 * warning.m4: Add -Wmissing-declarations to build_warnings.
10267 * configure: Re-generate.
10268
10269 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10270
10271 * python/python.c (init__gdb_module): Add declaration.
10272
10273 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10274
10275 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10276 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10277 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10278 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10279 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10280 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10281 * ada-exp.y (_initialize_ada_exp): Add declaration.
10282 * ada-lang.c (_initialize_ada_language): Add declaration.
10283 * ada-tasks.c (_initialize_tasks): Add declaration.
10284 * agent.c (_initialize_agent): Add declaration.
10285 * aix-thread.c (_initialize_aix_thread): Add declaration.
10286 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10287 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10288 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10289 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10290 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10291 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10292 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10293 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10294 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10295 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10296 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10297 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10298 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10299 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10300 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10301 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10302 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10303 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10304 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10305 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10306 * annotate.c (_initialize_annotate): Add declaration.
10307 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10308 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10309 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10310 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10311 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10312 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10313 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10314 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10315 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10316 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10317 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10318 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10319 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10320 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10321 * auto-load.c (_initialize_auto_load): Add declaration.
10322 * auxv.c (_initialize_auxv): Add declaration.
10323 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10324 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10325 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10326 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10327 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10328 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10329 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10330 * breakpoint.c (_initialize_breakpoint): Add declaration.
10331 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10332 * btrace.c (_initialize_btrace): Add declaration.
10333 * charset.c (_initialize_charset): Add declaration.
10334 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10335 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10336 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10337 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10338 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10339 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10340 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10341 * coffread.c (_initialize_coffread): Add declaration.
10342 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10343 * compile/compile.c (_initialize_compile): Add declaration.
10344 * complaints.c (_initialize_complaints): Add declaration.
10345 * completer.c (_initialize_completer): Add declaration.
10346 * copying.c (_initialize_copying): Add declaration.
10347 * corefile.c (_initialize_core): Add declaration.
10348 * corelow.c (_initialize_corelow): Add declaration.
10349 * cp-abi.c (_initialize_cp_abi): Add declaration.
10350 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10351 * cp-support.c (_initialize_cp_support): Add declaration.
10352 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10353 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10354 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10355 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10356 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10357 * ctfread.c (_initialize_ctfread): Add declaration.
10358 * d-lang.c (_initialize_d_language): Add declaration.
10359 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10360 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10361 * dbxread.c (_initialize_dbxread): Add declaration.
10362 * dcache.c (_initialize_dcache): Add declaration.
10363 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10364 * disasm.c (_initialize_disasm): Add declaration.
10365 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10366 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10367 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10368 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10369 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10370 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10371 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10372 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10373 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10374 * elfread.c (_initialize_elfread): Add declaration.
10375 * exec.c (_initialize_exec): Add declaration.
10376 * extension.c (_initialize_extension): Add declaration.
10377 * f-lang.c (_initialize_f_language): Add declaration.
10378 * f-valprint.c (_initialize_f_valprint): Add declaration.
10379 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10380 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10381 * filesystem.c (_initialize_filesystem): Add declaration.
10382 * findcmd.c (_initialize_mem_search): Add declaration.
10383 * findvar.c (_initialize_findvar): Add declaration.
10384 * fork-child.c (_initialize_fork_child): Add declaration.
10385 * frame-base.c (_initialize_frame_base): Add declaration.
10386 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10387 * frame.c (_initialize_frame): Add declaration.
10388 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10389 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10390 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10391 * gcore.c (_initialize_gcore): Add declaration.
10392 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10393 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10394 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10395 * gdbarch.c (_initialize_gdbarch): Add declaration.
10396 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10397 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10398 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10399 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10400 * go-lang.c (_initialize_go_language): Add declaration.
10401 * go32-nat.c (_initialize_go32_nat): Add declaration.
10402 * guile/guile.c (_initialize_guile): Add declaration.
10403 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10404 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10405 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10406 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10407 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10408 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10409 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10410 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10411 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10412 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10413 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10414 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10415 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10416 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10417 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10418 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10419 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10420 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10421 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10422 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10423 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10424 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10425 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10426 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10427 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10428 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10429 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10430 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10431 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10432 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10433 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10434 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10435 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10436 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10437 * infcall.c (_initialize_infcall): Add declaration.
10438 * infcmd.c (_initialize_infcmd): Add declaration.
10439 * inflow.c (_initialize_inflow): Add declaration.
10440 * infrun.c (_initialize_infrun): Add declaration.
10441 * interps.c (_initialize_interpreter): Add declaration.
10442 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10443 * jit.c (_initialize_jit): Add declaration.
10444 * language.c (_initialize_language): Add declaration.
10445 * linux-fork.c (_initialize_linux_fork): Add declaration.
10446 * linux-nat.c (_initialize_linux_nat): Add declaration.
10447 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10448 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10449 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10450 * m2-lang.c (_initialize_m2_language): Add declaration.
10451 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10452 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10453 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10454 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10455 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10456 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10457 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10458 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10459 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10460 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10461 * machoread.c (_initialize_machoread): Add declaration.
10462 * macrocmd.c (_initialize_macrocmd): Add declaration.
10463 * macroscope.c (_initialize_macroscope): Add declaration.
10464 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10465 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10466 * maint.c (_initialize_maint_cmds): Add declaration.
10467 * mdebugread.c (_initialize_mdebugread): Add declaration.
10468 * memattr.c (_initialize_mem): Add declaration.
10469 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10470 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10471 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10472 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10473 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10474 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10475 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10476 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10477 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10478 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10479 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10480 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10481 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10482 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10483 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10484 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10485 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10486 * mipsread.c (_initialize_mipsread): Add declaration.
10487 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10488 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10489 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10490 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10491 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10492 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10493 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10494 * nto-procfs.c (_initialize_procfs): Add declaration.
10495 * objc-lang.c (_initialize_objc_language): Add declaration.
10496 * observable.c (_initialize_observer): Add declaration.
10497 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10498 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10499 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10500 * osabi.c (_initialize_gdb_osabi): Add declaration.
10501 * osdata.c (_initialize_osdata): Add declaration.
10502 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10503 * parse.c (_initialize_parse): Add declaration.
10504 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10505 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10506 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10507 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10508 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10509 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10510 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10511 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10512 * printcmd.c (_initialize_printcmd): Add declaration.
10513 * probe.c (_initialize_probe): Add declaration.
10514 * proc-api.c (_initialize_proc_api): Add declaration.
10515 * proc-events.c (_initialize_proc_events): Add declaration.
10516 * proc-service.c (_initialize_proc_service): Add declaration.
10517 * procfs.c (_initialize_procfs): Add declaration.
10518 * producer.c (_initialize_producer): Add declaration.
10519 * psymtab.c (_initialize_psymtab): Add declaration.
10520 * python/python.c (_initialize_python): Add declaration.
10521 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10522 * record-btrace.c (_initialize_record_btrace): Add declaration.
10523 * record-full.c (_initialize_record_full): Add declaration.
10524 * record.c (_initialize_record): Add declaration.
10525 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10526 * regcache.c (_initialize_regcache): Add declaration.
10527 * reggroups.c (_initialize_reggroup): Add declaration.
10528 * remote-notif.c (_initialize_notif): Add declaration.
10529 * remote-sim.c (_initialize_remote_sim): Add declaration.
10530 * remote.c (_initialize_remote): Add declaration.
10531 * reverse.c (_initialize_reverse): Add declaration.
10532 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10533 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10534 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10535 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10536 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10537 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10538 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10539 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10540 Add declaration.
10541 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10542 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10543 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10544 * rust-exp.y (_initialize_rust_exp): Add declaration.
10545 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10546 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10547 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10548 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10549 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10550 * score-tdep.c (_initialize_score_tdep): Add declaration.
10551 * ser-go32.c (_initialize_ser_dos): Add declaration.
10552 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10553 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10554 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10555 * ser-uds.c (_initialize_ser_socket): Add declaration.
10556 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10557 * serial.c (_initialize_serial): Add declaration.
10558 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10559 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10560 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10561 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10562 * skip.c (_initialize_step_skip): Add declaration.
10563 * sol-thread.c (_initialize_sol_thread): Add declaration.
10564 * solib-aix.c (_initialize_solib_aix): Add declaration.
10565 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10566 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10567 * solib-frv.c (_initialize_frv_solib): Add declaration.
10568 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10569 * solib-target.c (_initialize_solib_target): Add declaration.
10570 * solib.c (_initialize_solib): Add declaration.
10571 * source-cache.c (_initialize_source_cache): Add declaration.
10572 * source.c (_initialize_source): Add declaration.
10573 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10574 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10575 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10576 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10577 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10578 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10579 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10580 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10581 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10582 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10583 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10584 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10585 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10586 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10587 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10588 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10589 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10590 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10591 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10592 * stabsread.c (_initialize_stabsread): Add declaration.
10593 * stack.c (_initialize_stack): Add declaration.
10594 * stap-probe.c (_initialize_stap_probe): Add declaration.
10595 * std-regs.c (_initialize_frame_reg): Add declaration.
10596 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10597 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10598 * symfile.c (_initialize_symfile): Add declaration.
10599 * symmisc.c (_initialize_symmisc): Add declaration.
10600 * symtab.c (_initialize_symtab): Add declaration.
10601 * target.c (_initialize_target): Add declaration.
10602 * target-connection.c (_initialize_target_connection): Add
10603 declaration.
10604 * target-dcache.c (_initialize_target_dcache): Add declaration.
10605 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10606 * thread.c (_initialize_thread): Add declaration.
10607 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10608 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10609 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10610 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10611 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10612 * tracectf.c (_initialize_ctf): Add declaration.
10613 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10614 * tracefile.c (_initialize_tracefile): Add declaration.
10615 * tracepoint.c (_initialize_tracepoint): Add declaration.
10616 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10617 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10618 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10619 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10620 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10621 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10622 * tui/tui.c (_initialize_tui): Add declaration.
10623 * typeprint.c (_initialize_typeprint): Add declaration.
10624 * ui-style.c (_initialize_ui_style): Add declaration.
10625 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10626 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10627 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10628 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10629 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10630 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10631 * unittests/filtered_iterator-selftests.c
10632 (_initialize_filtered_iterator_selftests): Add declaration.
10633 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10634 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10635 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10636 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10637 * unittests/main-thread-selftests.c
10638 (_initialize_main_thread_selftests): Add declaration.
10639 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10640 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10641 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10642 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10643 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10644 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10645 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10646 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10647 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10648 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10649 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10650 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10651 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10652 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10653 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10654 declaration.
10655 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10656 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10657 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10658 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10659 * user-regs.c (_initialize_user_regs): Add declaration.
10660 * utils.c (_initialize_utils): Add declaration.
10661 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10662 * valops.c (_initialize_valops): Add declaration.
10663 * valprint.c (_initialize_valprint): Add declaration.
10664 * value.c (_initialize_values): Add declaration.
10665 * varobj.c (_initialize_varobj): Add declaration.
10666 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10667 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10668 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10669 * windows-nat.c (_initialize_windows_nat): Add declaration.
10670 (_initialize_check_for_gdb_ini): Add declaration.
10671 (_initialize_loadable): Add declaration.
10672 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10673 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10674 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10675 * xcoffread.c (_initialize_xcoffread): Add declaration.
10676 * xml-support.c (_initialize_xml_support): Add declaration.
10677 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10678 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10679 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10680 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10681
10682 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10683
10684 * regformats/regdat.sh: Generate declaration for init function.
10685
10686 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10687
10688 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10689 up.
10690 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10691 close_one_inferior>: New methods.
10692 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10693 pass down target to find_inferior_pid.
10694 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10695 Pass down target to find_inferior_ptid.
10696 (gdbsim_target::create_inferior): Pass down target to
10697 add_thread_silent.
10698 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10699 target down to find_inferior_ptid and switch_to_thread.
10700 (gdbsim_target::close): Update to call close_one_inferior.
10701 (struct resume_data): Remove.
10702 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10703 directly, rather than through a void pointer.
10704 (gdbsim_target::resume): Update to call resume_one_inferior.
10705
10706 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10707
10708 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10709
10710 2020-01-12 Pedro Alves <palves@redhat.com>
10711
10712 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10713 directly for the current inferior instead of
10714 discard_all_inferiors.
10715 (discard_all_inferiors): Delete.
10716
10717 2020-01-11 Tom Tromey <tom@tromey.com>
10718
10719 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10720 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10721 deprecated_safe_get_selected_frame.
10722
10723 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10724
10725 * inferior.c (print_inferior): Switch inferior before printing it.
10726
10727 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10728 Pedro Alves <palves@redhat.com>
10729
10730 * progspace-and-thread.c (switch_to_program_space_and_thread):
10731 Assert there's an inferior for PSPACE. Use
10732 switch_to_inferior_no_thread to switch the inferior too.
10733 * progspace.c (program_space::~program_space): Call
10734 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10735 (program_space::free_all_objfiles): Don't call clear_symtab_users
10736 here.
10737 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10738
10739 2020-01-10 Pedro Alves <palves@redhat.com>
10740
10741 * NEWS: Mention multi-target debugging, "info connections", and
10742 "add-inferior -no-connection".
10743
10744 2020-01-10 Pedro Alves <palves@redhat.com>
10745
10746 * infrun.c: Include "target-connection.h".
10747 (check_multi_target_resumption): New.
10748 (proceed): Call it.
10749 * target-connection.c (make_target_connection_string): Make
10750 extern.
10751 * target-connection.h (make_target_connection_string): Declare.
10752
10753 2020-01-10 Pedro Alves <palves@redhat.com>
10754
10755 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10756 * inferior.c (uiout_field_connection): New function.
10757 (print_inferior): Add new "connection-id" column.
10758 (add_inferior_command): Show connection number/string of added
10759 inferior.
10760 * process-stratum-target.h
10761 (process_stratum_target::connection_string): New virtual method.
10762 (process_stratum_target::connection_number): New field.
10763 * remote.c (remote_target::connection_string): New override.
10764 * target-connection.c: New file.
10765 * target-connection.h: New file.
10766 * target.c (decref_target): Remove process_stratum targets from
10767 the connection list.
10768 (target_stack::push): Add process_stratum targets to the
10769 connection list.
10770
10771 2020-01-10 Pedro Alves <palves@redhat.com>
10772
10773 Revert:
10774 2016-04-12 Pedro Alves <palves@redhat.com>
10775 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10776 Remove references to name.
10777 * serial.h (struct serial) <name>: Delete.
10778
10779 2020-01-10 Pedro Alves <palves@redhat.com>
10780
10781 * gdbarch-selftests.c (register_to_value_test): Remove "target
10782 already pushed" check.
10783
10784 2020-01-10 Pedro Alves <palves@redhat.com>
10785 John Baldwin <jhb@FreeBSD.org>
10786
10787 * aarch64-linux-nat.c
10788 (aarch64_linux_nat_target::thread_architecture): Adjust.
10789 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10790 (task_command_1): Likewise.
10791 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10792 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10793 (aix_thread_target::store_registers)
10794 (aix_thread_target::thread_alive): Adjust.
10795 * amd64-fbsd-tdep.c: Include "inferior.h".
10796 (amd64fbsd_get_thread_local_address): Pass down target.
10797 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10798 thread's gdbarch instead of target_gdbarch.
10799 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10800 get_last_target_status.
10801 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10802 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10803 inferiors.
10804 (update_inserted_breakpoint_locations): Skip if inferiors with no
10805 execution.
10806 (update_global_location_list): When handling moribund locations,
10807 find representative inferior for location's pspace, and use thread
10808 count of its process_stratum target.
10809 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10810 * bsd-uthread.c (bsd_uthread_target::wait): Use
10811 as_process_stratum_target and adjust thread_change_ptid and
10812 add_thread calls.
10813 (bsd_uthread_target::update_thread_list): Use
10814 as_process_stratum_target and adjust find_thread_ptid,
10815 thread_change_ptid and add_thread calls.
10816 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10817 find_thread_ptid call.
10818 * corelow.c (add_to_thread_list): Adjust add_thread call.
10819 (core_target_open): Adjust add_thread_silent and thread_count
10820 calls.
10821 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10822 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10823 * event-top.c (async_disconnect): Pop targets from all inferiors.
10824 * exec.c (add_target_sections): Push exec target on all inferiors
10825 sharing the program space.
10826 (remove_target_sections): Remove the exec target from all
10827 inferiors sharing the program space.
10828 (exec_on_vfork): New.
10829 * exec.h (exec_on_vfork): Declare.
10830 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10831 Pass it down.
10832 (fbsd_nat_target::update_thread_list): Adjust.
10833 (fbsd_nat_target::resume): Adjust.
10834 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10835 down.
10836 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10837 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10838 get_thread_arch_regcache call.
10839 * fork-child.c (gdb_startup_inferior): Pass target down to
10840 startup_inferior and set_executing.
10841 * gdbthread.h (struct process_stratum_target): Forward declare.
10842 (add_thread, add_thread_silent, add_thread_with_info)
10843 (in_thread_list): Add process_stratum_target parameter.
10844 (find_thread_ptid(inferior*, ptid_t)): New overload.
10845 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10846 parameter.
10847 (all_threads()): Delete overload.
10848 (all_threads, all_non_exited_threads): Add process_stratum_target
10849 parameter.
10850 (all_threads_safe): Use brace initialization.
10851 (thread_count): Add process_stratum_target parameter.
10852 (set_resumed, set_running, set_stop_requested, set_executing)
10853 (threads_are_executing, finish_thread_state): Add
10854 process_stratum_target parameter.
10855 (switch_to_thread): Use is_current_thread.
10856 * i386-fbsd-tdep.c: Include "inferior.h".
10857 (i386fbsd_get_thread_local_address): Pass down target.
10858 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10859 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10860 have_inferiors check.
10861 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10862 (inf_ptrace_target::attach): Adjust.
10863 * infcall.c (run_inferior_call): Adjust.
10864 * infcmd.c (run_command_1): Pass target to
10865 scoped_finish_thread_state.
10866 (proceed_thread_callback): Skip inferiors with no execution.
10867 (continue_command): Rename 'all_threads' local to avoid hiding
10868 'all_threads' function. Adjust get_last_target_status call.
10869 (prepare_one_step): Adjust set_running call.
10870 (signal_command): Use user_visible_resume_target. Compare thread
10871 pointers instead of inferior_ptid.
10872 (info_program_command): Adjust to pass down target.
10873 (attach_command): Mark target's 'thread_executing' flag.
10874 (stop_current_target_threads_ns): New, factored out from ...
10875 (interrupt_target_1): ... this. Switch inferior before making
10876 target calls.
10877 * inferior-iter.h
10878 (struct all_inferiors_iterator, struct all_inferiors_range)
10879 (struct all_inferiors_safe_range)
10880 (struct all_non_exited_inferiors_range): Filter on
10881 process_stratum_target too. Remove explicit.
10882 * inferior.c (inferior::inferior): Push dummy target on target
10883 stack.
10884 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10885 Add process_stratum_target parameter, and pass it down.
10886 (have_live_inferiors): Adjust.
10887 (switch_to_inferior_and_push_target): New.
10888 (add_inferior_command, clone_inferior_command): Handle
10889 "-no-connection" parameter. Use
10890 switch_to_inferior_and_push_target.
10891 (_initialize_inferior): Mention "-no-connection" option in
10892 the help of "add-inferior" and "clone-inferior" commands.
10893 * inferior.h: Include "process-stratum-target.h".
10894 (interrupt_target_1): Use bool.
10895 (struct inferior) <push_target, unpush_target, target_is_pushed,
10896 find_target_beneath, top_target, process_target, target_at,
10897 m_stack>: New.
10898 (discard_all_inferiors): Delete.
10899 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10900 (all_inferiors, all_non_exited_inferiors): Add
10901 process_stratum_target parameter.
10902 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10903 (target_last_proc_target): New global.
10904 (follow_fork_inferior): Push target on new inferior. Pass target
10905 to add_thread_silent. Call exec_on_vfork. Handle target's
10906 reference count.
10907 (follow_fork): Adjust get_last_target_status call. Also consider
10908 target.
10909 (follow_exec): Push target on new inferior.
10910 (struct execution_control_state) <target>: New field.
10911 (user_visible_resume_target): New.
10912 (do_target_resume): Call target_async.
10913 (resume_1): Set target's threads_executing flag. Consider resume
10914 target.
10915 (commit_resume_all_targets): New.
10916 (proceed): Also consider resume target. Skip threads of inferiors
10917 with no execution. Commit resumtion in all targets.
10918 (start_remote): Pass current inferior to wait_for_inferior.
10919 (infrun_thread_stop_requested): Consider target as well. Pass
10920 thread_info pointer to clear_inline_frame_state instead of ptid.
10921 (infrun_thread_thread_exit): Consider target as well.
10922 (random_pending_event_thread): New inferior parameter. Use it.
10923 (do_target_wait): Rename to ...
10924 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10925 down.
10926 (threads_are_resumed_pending_p, do_target_wait): New.
10927 (prepare_for_detach): Adjust calls.
10928 (wait_for_inferior): New inferior parameter. Handle it. Use
10929 do_target_wait_1 instead of do_target_wait.
10930 (fetch_inferior_event): Adjust. Switch to representative
10931 inferior. Pass target down.
10932 (set_last_target_status): Add process_stratum_target parameter.
10933 Save target in global.
10934 (get_last_target_status): Add process_stratum_target parameter and
10935 handle it.
10936 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
10937 (context_switch): Check inferior_ptid == null_ptid before calling
10938 inferior_thread().
10939 (get_inferior_stop_soon): Pass down target.
10940 (wait_one): Rename to ...
10941 (poll_one_curr_target): ... this.
10942 (struct wait_one_event): New.
10943 (wait_one): New.
10944 (stop_all_threads): Adjust.
10945 (handle_no_resumed, handle_inferior_event): Adjust to consider the
10946 event's target.
10947 (switch_back_to_stepped_thread): Also consider target.
10948 (print_stop_event): Update.
10949 (normal_stop): Update. Also consider the resume target.
10950 * infrun.h (wait_for_inferior): Remove declaration.
10951 (user_visible_resume_target): New declaration.
10952 (get_last_target_status, set_last_target_status): New
10953 process_stratum_target parameter.
10954 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10955 process_stratum_target parameter, and use it.
10956 (clear_inline_frame_state (thread_info*)): New.
10957 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
10958 process_stratum_target parameter.
10959 (clear_inline_frame_state (thread_info*)): Declare.
10960 * linux-fork.c (delete_checkpoint_command): Pass target down to
10961 find_thread_ptid.
10962 (checkpoint_command): Adjust.
10963 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
10964 instead of just tweaking inferior_ptid.
10965 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
10966 (exit_lwp): Pass target down to find_thread_ptid.
10967 (attach_proc_task_lwp_callback): Pass target down to
10968 add_thread/set_running/set_executing.
10969 (linux_nat_target::attach): Pass target down to
10970 thread_change_ptid.
10971 (get_detach_signal): Pass target down to find_thread_ptid.
10972 Consider last target status's target.
10973 (linux_resume_one_lwp_throw, resume_lwp)
10974 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
10975 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
10976 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
10977 (linux_nat_target::async_wait_fd): New.
10978 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
10979 target down.
10980 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
10981 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
10982 * linux-thread-db.c (struct thread_db_info::process_target): New
10983 field.
10984 (add_thread_db_info): Save target.
10985 (get_thread_db_info): New process_stratum_target parameter. Also
10986 match target.
10987 (delete_thread_db_info): New process_stratum_target parameter.
10988 Also match target.
10989 (thread_from_lwp): Adjust to pass down target.
10990 (thread_db_notice_clone): Pass down target.
10991 (check_thread_db_callback): Pass down target.
10992 (try_thread_db_load_1): Always push the thread_db target.
10993 (try_thread_db_load, record_thread): Pass target down.
10994 (thread_db_target::detach): Pass target down. Always unpush the
10995 thread_db target.
10996 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
10997 target down. Always unpush the thread_db target.
10998 (find_new_threads_callback, thread_db_find_new_threads_2)
10999 (thread_db_target::update_thread_list): Pass target down.
11000 (thread_db_target::pid_to_str): Pass current inferior down.
11001 (thread_db_target::get_thread_local_address): Pass target down.
11002 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11003 target down.
11004 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11005 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11006 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11007 (procfs_init_inferior): Rename to ...
11008 (procfs_target::procfs_init_inferior): ... this and adjust.
11009 (procfs_target::create_inferior, procfs_notice_thread)
11010 (procfs_do_thread_registers): Adjust.
11011 * ppc-fbsd-tdep.c: Include "inferior.h".
11012 (ppcfbsd_get_thread_local_address): Pass down target.
11013 * proc-service.c (ps_xfer_memory): Switch current inferior and
11014 program space as well.
11015 (get_ps_regcache): Pass target down.
11016 * process-stratum-target.c
11017 (process_stratum_target::thread_address_space)
11018 (process_stratum_target::thread_architecture): Pass target down.
11019 * process-stratum-target.h
11020 (process_stratum_target::threads_executing): New field.
11021 (as_process_stratum_target): New.
11022 * ravenscar-thread.c
11023 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11024 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11025 down.
11026 * record-btrace.c (record_btrace_target::info_record): Adjust.
11027 (record_btrace_target::record_method)
11028 (record_btrace_target::record_is_replaying)
11029 (record_btrace_target::fetch_registers)
11030 (get_thread_current_frame_id, record_btrace_target::resume)
11031 (record_btrace_target::wait, record_btrace_target::stop): Pass
11032 target down.
11033 * record-full.c (record_full_wait_1): Switch to event thread.
11034 Pass target down.
11035 * regcache.c (regcache::regcache)
11036 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11037 process_stratum_target parameter and handle it.
11038 (current_thread_target): New global.
11039 (get_thread_regcache): Add process_stratum_target parameter and
11040 handle it. Switch inferior before calling target method.
11041 (get_thread_regcache): Pass target down.
11042 (get_thread_regcache_for_ptid): Pass target down.
11043 (registers_changed_ptid): Add process_stratum_target parameter and
11044 handle it.
11045 (registers_changed_thread, registers_changed): Pass target down.
11046 (test_get_thread_arch_aspace_regcache): New.
11047 (current_regcache_test): Define a couple local test_target_ops
11048 instances and use them for testing.
11049 (readwrite_regcache): Pass process_stratum_target parameter.
11050 (cooked_read_test, cooked_write_test): Pass mock_target down.
11051 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11052 (get_thread_arch_aspace_regcache): Add process_stratum_target
11053 parameter.
11054 (regcache::target): New method.
11055 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11056 (regcache::registers_changed_ptid): Add process_stratum_target
11057 parameter.
11058 (regcache::m_target): New field.
11059 (registers_changed_ptid): Add process_stratum_target parameter.
11060 * remote.c (remote_state::supports_vCont_probed): New field.
11061 (remote_target::async_wait_fd): New method.
11062 (remote_unpush_and_throw): Add remote_target parameter.
11063 (get_current_remote_target): Adjust.
11064 (remote_target::remote_add_inferior): Push target.
11065 (remote_target::remote_add_thread)
11066 (remote_target::remote_notice_new_inferior)
11067 (get_remote_thread_info): Pass target down.
11068 (remote_target::update_thread_list): Skip threads of inferiors
11069 bound to other targets. (remote_target::close): Don't discard
11070 inferiors. (remote_target::add_current_inferior_and_thread)
11071 (remote_target::process_initial_stop_replies)
11072 (remote_target::start_remote)
11073 (remote_target::remote_serial_quit_handler): Pass down target.
11074 (remote_target::remote_unpush_target): New remote_target
11075 parameter. Unpush the target from all inferiors.
11076 (remote_target::remote_unpush_and_throw): New remote_target
11077 parameter. Pass it down.
11078 (remote_target::open_1): Check whether the current inferior has
11079 execution instead of checking whether any inferior is live. Pass
11080 target down.
11081 (remote_target::remote_detach_1): Pass down target. Use
11082 remote_unpush_target.
11083 (extended_remote_target::attach): Pass down target.
11084 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11085 (remote_target::append_resumption): Pass down target.
11086 (remote_target::append_pending_thread_resumptions)
11087 (remote_target::remote_resume_with_hc, remote_target::resume)
11088 (remote_target::commit_resume): Pass down target.
11089 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11090 (remote_target::interrupt_query)
11091 (remote_target::remove_new_fork_children)
11092 (remote_target::check_pending_events_prevent_wildcard_vcont)
11093 (remote_target::remote_parse_stop_reply)
11094 (remote_target::process_stop_reply): Pass down target.
11095 (first_remote_resumed_thread): New remote_target parameter. Pass
11096 it down.
11097 (remote_target::wait_as): Pass down target.
11098 (unpush_and_perror): New remote_target parameter. Pass it down.
11099 (remote_target::readchar, remote_target::remote_serial_write)
11100 (remote_target::getpkt_or_notif_sane_1)
11101 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11102 down target.
11103 (remote_target::mourn_inferior): Pass down target. Use
11104 remote_unpush_target.
11105 (remote_target::core_of_thread)
11106 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11107 (remote_target::pid_to_exec_file)
11108 (remote_target::thread_handle_to_thread_info): Pass down target.
11109 (remote_target::async_wait_fd): New.
11110 * riscv-fbsd-tdep.c: Include "inferior.h".
11111 (riscv_fbsd_get_thread_local_address): Pass down target.
11112 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11113 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11114 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11115 Adjust.
11116 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11117 * solib-svr4.c (enable_break): Pass down target.
11118 * spu-multiarch.c (parse_spufs_run): Pass down target.
11119 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11120 * target-delegates.c: Regenerate.
11121 * target.c (g_target_stack): Delete.
11122 (current_top_target): Return the current inferior's top target.
11123 (target_has_execution_1): Refer to the passed-in inferior's top
11124 target.
11125 (target_supports_terminal_ours): Check whether the initial
11126 inferior was already created.
11127 (decref_target): New.
11128 (target_stack::push): Incref/decref the target.
11129 (push_target, push_target, unpush_target): Adjust.
11130 (target_stack::unpush): Defref target.
11131 (target_is_pushed): Return bool. Adjust to refer to the current
11132 inferior's target stack.
11133 (dispose_inferior): Delete, and inline parts ...
11134 (target_preopen): ... here. Only dispose of the current inferior.
11135 (target_detach): Hold strong target reference while detaching.
11136 Pass target down.
11137 (target_thread_name): Add assertion.
11138 (target_resume): Pass down target.
11139 (target_ops::beneath, find_target_at): Adjust to refer to the
11140 current inferior's target stack.
11141 (get_dummy_target): New.
11142 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11143 has a thread running.
11144 (initialize_targets): Rename to ...
11145 (_initialize_target): ... this.
11146 * target.h: Include "gdbsupport/refcounted-object.h".
11147 (struct target_ops): Inherit refcounted_object.
11148 (target_ops::shortname, target_ops::longname): Make const.
11149 (target_ops::async_wait_fd): New method.
11150 (decref_target): Declare.
11151 (struct target_ops_ref_policy): New.
11152 (target_ops_ref): New typedef.
11153 (get_dummy_target): Declare function.
11154 (target_is_pushed): Return bool.
11155 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11156 (all_matching_threads_iterator::all_matching_threads_iterator):
11157 Handle filter target.
11158 * thread-iter.h (struct all_matching_threads_iterator, struct
11159 all_matching_threads_range, class all_non_exited_threads_range):
11160 Filter by target too. Remove explicit.
11161 * thread.c (threads_executing): Delete.
11162 (inferior_thread): Pass down current inferior.
11163 (clear_thread_inferior_resources): Pass down thread pointer
11164 instead of ptid_t.
11165 (add_thread_silent, add_thread_with_info, add_thread): Add
11166 process_stratum_target parameter. Use it for thread and inferior
11167 searches.
11168 (is_current_thread): New.
11169 (thread_info::deletable): Use it.
11170 (find_thread_ptid, thread_count, in_thread_list)
11171 (thread_change_ptid, set_resumed, set_running): New
11172 process_stratum_target parameter. Pass it down.
11173 (set_executing): New process_stratum_target parameter. Pass it
11174 down. Adjust reference to 'threads_executing'.
11175 (threads_are_executing): New process_stratum_target parameter.
11176 Adjust reference to 'threads_executing'.
11177 (set_stop_requested, finish_thread_state): New
11178 process_stratum_target parameter. Pass it down.
11179 (switch_to_thread): Also match inferior.
11180 (switch_to_thread): New process_stratum_target parameter. Pass it
11181 down.
11182 (update_threads_executing): Reimplement.
11183 * top.c (quit_force): Pop targets from all inferior.
11184 (gdb_init): Don't call initialize_targets.
11185 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11186 Declare.
11187 (windows_add_thread, windows_delete_thread): Adjust.
11188 (get_windows_debug_event): Rename to ...
11189 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11190 * tracefile-tfile.c (tfile_target_open): Pass down target.
11191 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11192 Forward declare.
11193 (switch_to_thread): Add process_stratum_target parameter.
11194 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11195 parameter. Use it.
11196 (mi_on_resume): Pass target down.
11197 * nat/fork-inferior.c (startup_inferior): Add
11198 process_stratum_target parameter. Pass it down.
11199 * nat/fork-inferior.h (startup_inferior): Add
11200 process_stratum_target parameter.
11201 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11202
11203 2020-01-10 Pedro Alves <palves@redhat.com>
11204
11205 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11206 directly. Instead find the first thread in the thread list and
11207 use switch_to_thread.
11208
11209 2020-01-10 Pedro Alves <palves@redhat.com>
11210
11211 * remote.c (remote_target::remote_add_inferior): Don't bind a
11212 process to the current inferior if the current inferior is already
11213 bound to a process.
11214
11215 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11216 Pedro Alves <palves@redhat.com>
11217
11218 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11219 If no process is specified, return null_ptid instead of
11220 inferior_ptid.
11221 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11222 TARGET_WAITKIND_SIGNALLED with no pid.
11223
11224 2020-01-10 Pedro Alves <palves@redhat.com>
11225
11226 * remote.c (first_remote_resumed_thread): New.
11227 (remote_target::wait_as): Use it as default event_ptid instead of
11228 inferior_ptid.
11229
11230 2020-01-10 Pedro Alves <palves@redhat.com>
11231
11232 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11233
11234 2020-01-10 Pedro Alves <palves@redhat.com>
11235
11236 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11237 not -1.
11238
11239 2020-01-10 Pedro Alves <palves@redhat.com>
11240
11241 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11242 ptid to get_last_target_status.
11243 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11244 ptid to get_last_target_status.
11245 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11246 get_last_target_status.
11247 (info_program_command): Don't pass a target_waitstatus to
11248 get_last_target_status.
11249 * infrun.c (init_wait_for_inferior): Use
11250 nullify_last_target_wait_ptid.
11251 (get_last_target_status): Handle nullptr arguments.
11252 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11253 (print_stop_event): Don't pass a ptid to get_last_target_status.
11254 (normal_stop): Don't pass a ptid to get_last_target_status.
11255 * infrun.h (get_last_target_status, set_last_target_status): Move
11256 comments here and update.
11257 (nullify_last_target_wait_ptid): Declare.
11258 * linux-fork.c (fork_load_infrun_state): Remove local extern
11259 declaration of nullify_last_target_wait_ptid.
11260 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11261 to get_last_target_status.
11262
11263 2020-01-10 Pedro Alves <palves@redhat.com>
11264
11265 * gdbthread.h (scoped_restore_current_thread)
11266 <dont_restore, restore, m_dont_restore>: Declare.
11267 * thread.c (thread_alive): Add assertion. Return bool.
11268 (switch_to_thread_if_alive): New.
11269 (prune_threads): Switch inferior/thread.
11270 (print_thread_info_1): Switch thread before calling target methods.
11271 (scoped_restore_current_thread::restore): New, factored out from
11272 ...
11273 (scoped_restore_current_thread::~scoped_restore_current_thread):
11274 ... this.
11275 (scoped_restore_current_thread::scoped_restore_current_thread):
11276 Add assertion.
11277 (thread_apply_all_command, thread_select): Use
11278 switch_to_thread_if_alive.
11279 * infrun.c (proceed, restart_threads, handle_signal_stop)
11280 (switch_back_to_stepped_thread): Switch current thread before
11281 calling target methods.
11282
11283 2020-01-10 Pedro Alves <palves@redhat.com>
11284
11285 * inferior.c (switch_to_inferior_no_thread): New function,
11286 factored out from ...
11287 (inferior_command): ... here.
11288 * inferior.h (switch_to_inferior_no_thread): Declare.
11289 * mi/mi-main.c (run_one_inferior): Use
11290 switch_to_inferior_no_thread.
11291
11292 2020-01-10 Pedro Alves <palves@redhat.com>
11293
11294 * infcmd.c (kill_command): Remove dead code.
11295
11296 2020-01-10 Pedro Alves <palves@redhat.com>
11297
11298 * remote.c (remote_target::mourn_inferior): No longer check
11299 whether the target is running.
11300
11301 2020-01-10 Pedro Alves <palves@redhat.com>
11302
11303 * corelow.c (core_target::has_execution): Change parameter type to
11304 inferior pointer.
11305 * inferior.c (number_of_live_inferiors): Use
11306 inferior::has_execution instead of target_has_execution_1.
11307 * inferior.h (inferior::has_execution): New.
11308 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11309 inferior::has_execution instead of target_has_execution_1.
11310 * process-stratum-target.c
11311 (process_stratum_target::has_execution): Change parameter type to
11312 inferior pointer. Check the inferior's PID instead of
11313 inferior_ptid.
11314 * process-stratum-target.h
11315 (process_stratum_target::has_execution): Change parameter type to
11316 inferior pointer.
11317 * record-full.c (record_full_core_target::has_execution): Change
11318 parameter type to inferior pointer.
11319 * target.c (target_has_execution_1): Change parameter type to
11320 inferior pointer.
11321 (target_has_execution_current): Adjust.
11322 * target.h (target_ops::has_execution): Change parameter type to
11323 inferior pointer.
11324 (target_has_execution_1): Change parameter type to inferior
11325 pointer. Change return type to bool.
11326 * tracefile.h (tracefile_target::has_execution): Change parameter
11327 type to inferior pointer.
11328
11329 2020-01-10 Pedro Alves <palves@redhat.com>
11330
11331 * exceptions.c (print_flush): Remove current_top_target() check.
11332
11333 2020-01-10 Pedro Alves <palves@redhat.com>
11334
11335 * remote.c (show_remote_exec_file): Show the current inferior's
11336 exec-file instead of the command variable's value.
11337
11338 2020-01-10 Pedro Alves <palves@redhat.com>
11339
11340 * record-full.c (record_full_resume_ptid): New global.
11341 (record_full_target::resume): Set it.
11342 (record_full_wait_1): Use record_full_resume_ptid instead of
11343 inferior_ptid.
11344
11345 2020-01-10 Pedro Alves <palves@redhat.com>
11346
11347 * gdbthread.h (scoped_restore_current_thread)
11348 <dont_restore, restore, m_dont_restore>: Declare.
11349 * thread.c (thread_alive): Add assertion. Return bool.
11350 (switch_to_thread_if_alive): New.
11351 (prune_threads): Switch inferior/thread.
11352 (print_thread_info_1): Switch thread before calling target methods.
11353 (scoped_restore_current_thread::restore): New, factored out from
11354 ...
11355 (scoped_restore_current_thread::~scoped_restore_current_thread):
11356 ... this.
11357 (scoped_restore_current_thread::scoped_restore_current_thread):
11358 Add assertion.
11359 (thread_apply_all_command, thread_select): Use
11360 switch_to_thread_if_alive.
11361
11362 2020-01-10 George Barrett <bob@bob131.so>
11363
11364 * stap-probe.c (stap_modify_semaphore): Don't check for null
11365 semaphores.
11366 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11367 for null semaphores.
11368
11369 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11370
11371 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11372 all source windows, and maintain horizontal scroll status while
11373 doing so.
11374
11375 2020-01-09 Tom Tromey <tom@tromey.com>
11376
11377 PR tui/18932:
11378 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11379 update_source_window, not print_source_lines.
11380
11381 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11382
11383 * tui/tui.c (tui_enable): Register tui hooks after calling
11384 tui_display_main.
11385
11386 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11387
11388 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11389
11390 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11391
11392 * thread.c (print_thread_info_1): Fix indentation.
11393
11394 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11395
11396 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11397 unique_xmalloc_ptr outside the if to always free the demangled name.
11398
11399 2020-01-08 Tom Tromey <tromey@adacore.com>
11400
11401 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11402 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11403 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11404 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11405 Remove.
11406 (section_offsets): New typedef.
11407 * symtab.c (fixup_section, get_msymbol_address): Update.
11408 * symmisc.c (dump_msymbols): Update.
11409 * symfile.h (relative_addr_info_to_section_offsets)
11410 (symfile_map_offsets_to_segments): Update.
11411 * symfile.c (build_section_addr_info_from_objfile)
11412 (init_objfile_sect_indices): Update.
11413 (struct place_section_arg): Change type of "offsets".
11414 (place_section): Update.
11415 (relative_addr_info_to_section_offsets): Change type of
11416 "section_offsets". Remove "num_sections" parameter.
11417 (default_symfile_offsets, syms_from_objfile_1)
11418 (set_objfile_default_section_offset): Update.
11419 (reread_symbols): No need to preserve section offsets by hand.
11420 (symfile_map_offsets_to_segments): Change type of "offsets".
11421 * stap-probe.c (relocate_address): Update.
11422 * stabsread.h (process_one_symbol): Update.
11423 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11424 (solib_target_relocate_section_addresses): Update.
11425 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11426 Update.
11427 * solib-frv.c (frv_relocate_main_executable): Update.
11428 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11429 * solib-aix.c (solib_aix_get_section_offsets): Change return
11430 type.
11431 (solib_aix_solib_create_inferior_hook): Update.
11432 * remote.c (remote_target::get_offsets): Update.
11433 * psymtab.c (find_pc_sect_psymtab): Update.
11434 * psympriv.h (struct partial_symbol) <address, text_low,
11435 text_high>: Update.
11436 * objfiles.h (obj_section_offset): Update.
11437 (struct objfile) <section_offsets>: Change type.
11438 <num_sections>: Remove.
11439 (objfile_relocate): Update.
11440 * objfiles.c (entry_point_address_query): Update
11441 (relocate_one_symbol): Change type of "section_offsets".
11442 (objfile_relocate1, objfile_relocate1): Change type of
11443 "new_offsets".
11444 (objfile_rebase1): Update.
11445 * mipsread.c (mipscoff_symfile_read): Update.
11446 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11447 parameter.
11448 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11449 (parse_external, psymtab_to_symtab_1): Update.
11450 * machoread.c (macho_symfile_offsets): Update.
11451 * ia64-tdep.c (ia64_find_unwind_table): Update.
11452 * hppa-tdep.c (read_unwind_info): Update.
11453 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11454 * dwarf2read.c (create_addrmap_from_index)
11455 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11456 (process_psymtab_comp_unit_reader, add_partial_symbol)
11457 (add_partial_subprogram, process_full_comp_unit)
11458 (read_file_scope, read_func_scope, read_lexical_block_scope)
11459 (read_call_site_scope, dwarf2_rnglists_process)
11460 (dwarf2_ranges_process, dwarf2_ranges_read)
11461 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11462 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11463 Update.
11464 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11465 Update.
11466 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11467 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11468 (process_one_symbol): Change type of "section_offsets".
11469 * ctfread.c (get_objfile_text_range): Update.
11470 * coffread.c (coff_symtab_read, enter_linenos)
11471 (process_coff_symbol): Update.
11472 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11473 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11474
11475 2020-01-08 Tom Tromey <tromey@adacore.com>
11476
11477 * dwarf2read.c (parse_macro_definition): Use std::string.
11478 (parse_macro_definition): Likewise.
11479
11480 2020-01-08 Tom Tromey <tromey@adacore.com>
11481
11482 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11483 (ATTR_ALLOC_CHUNK): Remove.
11484
11485 2020-01-08 Tom Tromey <tromey@adacore.com>
11486
11487 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11488
11489 2020-01-08 Tom Tromey <tromey@adacore.com>
11490
11491 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11492 (dwarf2_compute_name, open_dwo_file): Likewise.
11493 (process_enumeration_scope): Use std::vector.
11494 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11495 (partial_die_info::fixup, dwarf2_start_subfile)
11496 (guess_full_die_structure_name, dwarf2_name): Likewise.
11497 (determine_prefix): Update.
11498 (guess_full_die_structure_name): Make return type const.
11499 (partial_die_full_name): Return unique_xmalloc_ptr.
11500 (DW_FIELD_ALLOC_CHUNK): Remove.
11501
11502 2020-01-07 Tom Tromey <tromey@adacore.com>
11503
11504 PR build/24937:
11505 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11506
11507 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11508
11509 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11510
11511 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11512
11513 * stack.c (print_frame_info): Move disassemble_next_line code
11514 inside source_print block.
11515
11516 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11517
11518 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11519 gdb/signals.h, as we are now using native signal symbols.
11520
11521 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11522
11523 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11524 overflow by an early check of content vs threshold.
11525 * tui/tui-source.c (tui_source_window::line_is_displayed):
11526 Likewise.
11527
11528 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11529
11530 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11531
11532 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11533
11534 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11535 export table if no section contains it's RVA.
11536
11537 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11538
11539 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11540
11541 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11542
11543 * source.c (print_source_lines_base): Set last_line_listed.
11544
11545 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11546
11547 * tui/tui-disasm.c: Remove trailing spaces.
11548
11549 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11550 Pedro Alves <palves@redhat.com>
11551
11552 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11553 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11554 (windows_gdb_signal_to_target): New function, uses the above
11555 enumeration to convert GDB internal signal codes to equivalent
11556 Windows codes.
11557 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11558 * windows-nat.c: Include "gdb_wait.h".
11559 (get_windows_debug_event): Extract the fatal exception from the
11560 exit status and convert to the equivalent Posix signal number.
11561 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11562 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11563 * gdbsupport/gdb_wait.c: New file, implements
11564 windows_status_to_termsig.
11565 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11566 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11567
11568 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11569
11570 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11571 show_layout.
11572
11573 2020-01-05 Luis Machado <luis.machado@linaro.org>
11574
11575 * aarch64-linux-nat.c
11576 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11577 and bfd_mach_aarch64.
11578
11579 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11580
11581 * ui-file.c (stdio_file::can_emit_style_escape)
11582 (tee_file::can_emit_style_escape): Ensure style is used also on
11583 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11584 to gdb_stdout.
11585 * main.c (set_gdb_data_directory): Use file style to output the
11586 warning that the given pathname is not a directory.
11587 * top.c (show_history_filename, gdb_safe_append_history)
11588 (show_gdb_datadir): Use file style.
11589
11590 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11591
11592 * solib-target.c (struct lm_info_target):
11593 Change offsets to be a unique_xmalloc_ptr.
11594 (solib_target_relocate_section_addresses): Update.
11595
11596 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11597
11598 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11599
11600 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11601
11602 * MAINTAINERS (Write After Approval): Add myself.
11603
11604 2020-01-02 Luis Machado <luis.machado@linaro.org>
11605
11606 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11607 Cell BE architecture.
11608 * target.h (struct target_ops) <thread_architecture>: Likewise.
11609
11610 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11611
11612 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11613
11614 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11615
11616 * MAINTAINERS (Write After Approval): Add myself.
11617
11618 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11619
11620 * gdbarch.sh: Update copyright year range of generated files.
11621
11622 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11623
11624 Update copyright year range in all GDB files.
11625
11626 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11627
11628 * copyright.py: Convert to Python 3.
11629
11630 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11631
11632 * copyright.py: Adapt after move of gnulib directory from gdb
11633 directory to toplevel directory.
11634
11635 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11636
11637 * copyright.py (main): Exit if run from the wrong directory.
11638
11639 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11640
11641 * top.c (print_gdb_version): Change copyright year to 2020.
11642
11643 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11644
11645 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11646
11647 For older changes see ChangeLog-2019.
11648 \f
11649 Local Variables:
11650 mode: change-log
11651 left-margin: 8
11652 fill-column: 74
11653 version-control: never
11654 coding: utf-8
11655 End:
This page took 0.273488 seconds and 4 git commands to generate.