[gdb] Fix prop->const_val uses in gdbtypes.c
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-05 Tom de Vries <tdevries@suse.de>
2
3 * gdbtypes.c (type_not_allocated, type_not_associated): Use
4 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5
6 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
7
8 * frame.h (frame_id_p): Return bool.
9 (frame_id_artificial_p): Return bool.
10 (frame_id_eq): Return bool.
11 (has_stack_frames): Return bool.
12 (get_selected_frame): Fix typo in comment.
13 (get_frame_pc_if_available): Return bool.
14 (get_frame_address_in_block_if_available): Return bool.
15 (get_frame_func_if_available): Return bool.
16 (read_frame_register_unsigned): Return bool.
17 (get_frame_register_bytes): Return bool.
18 (safe_frame_unwind_memory): Return bool.
19 (deprecated_frame_register_read): Return bool.
20 (frame_unwinder_is): Return bool.
21 * frame.c (struct frame_info) <prev_arch::p>: Change type to
22 bool.
23 <this_id::p>: Likewise.
24 <prev_p>: Likewise.
25 (frame_stash_add): Return bool.
26 (get_frame_id): Use bool.
27 (frame_id_build_special) Use bool.
28 (frame_id_build_unavailable_stack): Use bool.
29 (frame_id_build): Use bool.
30 (frame_id_p): Return bool, use true/false instead of 1/0.
31 (frame_id_artificial_p): Likewise.
32 (frame_id_eq): Likewise.
33 (frame_id_inner): Likewise.
34 (get_frame_func_if_available): Likewise.
35 (read_frame_register_unsigned): Likewise.
36 (deprecated_frame_register_read): Likewise.
37 (get_frame_register_bytes): Likewise.
38 (has_stack_frames): Likewise.
39 (inside_main_func): Likewise.
40 (inside_entry_func): Likewise.
41 (get_frame_pc_if_available): Likewise.
42 (get_frame_address_in_block_if_available): Likewise.
43 (frame_unwinder_is): Likewise.
44 (safe_frame_unwind_memory): Likewise.
45 (frame_unwind_arch): Likewise.
46
47 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
48
49 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
50 type to cached_copy_status.
51 (fprintf_frame): Adjust.
52 (get_frame_func_if_available): Adjust.
53 (frame_cleanup_after_sniffer): Adjust.
54
55 2020-08-04 Mark Wielaard <mark@klomp.org>
56
57 * MAINTAINERS (Write After Approval): Update email address.
58
59 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
62 dynamic_prop::const_val.
63
64 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
65
66 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
67 dynamic_prop::kind.
68
69 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
70
71 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
72
73 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
74
75 * configure.tgt: Set gdb_sim for bpf-*-* targets.
76
77 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
78 Jose E. Marchesi <jose.marchesi@oracle.com>
79
80 * configure.tgt: Add entry for bpf-*-*.
81 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
82 (ALLDEPFILES): Add bpf-tdep.c.
83 * bpf-tdep.c: New file.
84 * MAINTAINERS: Add bpf target and maintainer.
85 * NEWS: Mention the support for the new target.
86
87 2020-08-04 Tom de Vries <tdevries@suse.de>
88
89 PR symtab/23270
90 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
91 Error.
92
93 2020-08-03 John Baldwin <jhb@FreeBSD.org>
94
95 * syscalls/freebsd.xml: Regenerate.
96
97 2020-08-03 John Baldwin <jhb@FreeBSD.org>
98
99 * syscalls/update-freebsd.sh: Fix usage and year range.
100
101 2020-08-03 Tom de Vries <tdevries@suse.de>
102
103 PR symtab/26333
104 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
105 DW_LNE_lo_user/DW_LNE_hi_user range.
106
107 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
108
109 PR ada/26318
110 * ada-lang.c (ada_modulus): Return 0 if property is not of const
111 kind.
112
113 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
114
115 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
116
117 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
118
119 * breakpoint.c (set_breakpoint_condition): Update the condition
120 expressions after checking that the input condition string parses
121 successfully and does not contain junk at the end.
122
123 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
124
125 * breakpoint.c (set_breakpoint_condition): Update the
126 condition string after parsing the new condition successfully.
127
128 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
129
130 * proc-api.c (_STRUCTURED_PROC): Don't define.
131 * proc-events.c: Likewise.
132 * proc-flags.c: Likewise.
133 * proc-why.c: Likewise.
134 * procfs.c: Likewise.
135
136 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
137 * configure, config.in: Regenerate.
138
139 2020-07-30 Tom de Vries <tdevries@suse.de>
140
141 PR build/26320
142 * ui-style.h (struct ui_file_style::color): Wrap m_value and
143 m_red/m_green/m_blue in a union.
144
145 2020-07-29 Tom de Vries <tdevries@suse.de>
146
147 PR tdep/26280
148 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
149
150 2020-07-28 Tom Tromey <tromey@adacore.com>
151
152 PR symtab/26270:
153 * symtab.h (find_pc_partial_function_sym): Declare.
154 * cli/cli-cmds.c (disassemble_command): Use
155 find_pc_partial_function_sym. Check asm_demangle.
156 * blockframe.c (cache_pc_function_sym): New global.
157 (cache_pc_function_name): Remove.
158 (clear_pc_function_cache): Update.
159 (find_pc_partial_function_sym): New function, from
160 find_pc_partial_function.
161 (find_pc_partial_function): Rewrite using
162 find_pc_partial_function_sym.
163
164 2020-07-28 Tom Tromey <tromey@adacore.com>
165
166 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
167 help. Add usage.
168
169 2020-07-28 Tom Tromey <tromey@adacore.com>
170
171 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
172 <DW_OP_GNU_variable_value>: Cast to address type.
173
174 2020-07-28 Kamil Rytarowski <n54@gmx.com>
175
176 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
177 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
178 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
179 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
180 (nbsd_get_siginfo_type): New.
181 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
182 (_initialize_nbsd_tdep): New.
183
184 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
185
186 PR binutils/26301
187 * configure: Regenerated.
188
189 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
190
191 PR binutils/26301
192 * configure: Regenerated.
193
194 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * python/py-frame.c: Remove 'user-regs.h' include.
197 (frapy_read_register): Rewrite to make use of
198 gdbpy_parse_register_id.
199 * python/py-registers.c (gdbpy_parse_register_id): New function,
200 moved here from python/py-unwind.c. Updated the return type, and
201 also accepts register descriptor objects.
202 * python/py-unwind.c: Remove 'user-regs.h' include.
203 (pyuw_parse_register_id): Moved to python/py-registers.c.
204 (unwind_infopy_add_saved_register): Update to use
205 gdbpy_parse_register_id.
206 (pending_framepy_read_register): Likewise.
207 * python/python-internal.h (gdbpy_parse_register_id): Declare.
208
209 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
210
211 * python/py-registers.c: Add 'user-regs.h' include.
212 (register_descriptor_iter_find): New function.
213 (register_descriptor_iterator_object_methods): New static global
214 methods array.
215 (register_descriptor_iterator_object_type): Add pointer to methods
216 array.
217
218 2020-07-27 John Baldwin <jhb@FreeBSD.org>
219
220 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
221 for all architectures on FreeBSD 11.3 and later.
222
223 2020-07-27 Tom Tromey <tromey@adacore.com>
224
225 * gcore.h (load_corefile): Don't declare.
226
227 2020-07-27 Tom de Vries <tdevries@suse.de>
228
229 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
230 * config.in: Regenerate.
231 * configure: Regenerate.
232
233 2020-07-26 Eli Zaretskii <eliz@gnu.org>
234
235 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
236 ws2tcpip.h. When checking whether socklen_t type is defined, use
237 ws2tcpip.h if it is available and sys/socket.h isn't.
238 * configure: Regenerate.
239 * config.in: Regenerate.
240
241 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 PR fortran/23051
244 PR fortran/26139
245 * valops.c (value_ind): Pass address to
246 readjust_indirect_value_type.
247 * value.c (readjust_indirect_value_type): Make parameter
248 non-const, and add extra address parameter. Resolve original type
249 before using it.
250 * value.h (readjust_indirect_value_type): Update function
251 signature and comment.
252
253 2020-07-25 Tom de Vries <tdevries@suse.de>
254
255 PR symtab/26243
256 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
257 entries.
258
259 2020-07-24 Aaron Merey <amerey@redhat.com>
260
261 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
262 * configure: Rebuild.
263
264 2020-07-23 Kevin Buettner <kevinb@redhat.com>
265
266 PR corefiles/26294
267 * corelow.c (_initialize_corelow): Add period to help text
268 for "maintenance print core-file-backed-mappings".
269
270 2020-07-23 Pedro Alves <pedro@palves.net>
271
272 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
273 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
274 meanwhile.
275 * frame.c (frame_cache_generation, get_frame_cache_generation):
276 New.
277 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
278 (get_prev_frame_if_no_cycle): On exception, don't touch
279 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
280 * frame.h (get_frame_cache_generation): Declare.
281
282 2020-07-23 Tom de Vries <tdevries@suse.de>
283
284 PR tui/26282
285 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
286 New default constructor.
287
288 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
289
290 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
291 exclude non-statement entries.
292
293 2020-07-22 Kevin Buettner <kevinb@redhat.com>
294
295 * NEWS (New commands): Mention new command
296 "maintenance print core-file-backed-mappings".
297
298 2020-07-22 Kevin Buettner <kevinb@redhat.com>
299
300 * corelow.c (gdbcmd.h): Include.
301 (core_target::info_proc_mappings): New method.
302 (get_current_core_target): New function.
303 (maintenance_print_core_file_backed_mappings): New function.
304 (_initialize_corelow): Add core-file-backed-mappings to
305 "maint print" commands.
306
307 2020-07-22 Kevin Buettner <kevinb@redhat.com>
308
309 * linux-tdep.c (dump_note_entry_p): New function.
310 (linux_dump_mapping_p_ftype): New typedef.
311 (linux_find_memory_regions_full): Add new parameter,
312 should_dump_mapping_p.
313 (linux_find_memory_regions): Adjust call to
314 linux_find_memory_regions_full.
315 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
316 call to linux_find_memory_regions_full.
317
318 2020-07-22 Kevin Buettner <kevinb@redhat.com>
319
320 * corelow.c (solist.h, unordered_map): Include.
321 (class core_target): Add field m_core_file_mappings and
322 method build_file_mappings.
323 (core_target::core_target): Call build_file_mappings.
324 (core_target::~core_target): Free memory associated with
325 m_core_file_mappings.
326 (core_target::build_file_mappings): New method.
327 (core_target::xfer_partial): Use m_core_file_mappings
328 for memory transfers.
329 * linux-tdep.c (linux_read_core_file_mappings): New
330 function.
331 (linux_core_info_proc_mappings): Rewrite to use
332 linux_read_core_file_mappings.
333 (linux_init_abi): Register linux_read_core_file_mappings.
334
335 2020-07-22 Kevin Buettner <kevinb@redhat.com>
336
337 * arch-utils.c (default_read_core_file_mappings): New function.
338 * arch-utils.c (default_read_core_file_mappings): Declare.
339 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
340 * gdbarch.h, gdbarch.c: Regenerate.
341
342 2020-07-22 Kevin Buettner <kevinb@redhat.com>
343
344 PR corefiles/25631
345 * corelow.c (core_target:xfer_partial): Revise
346 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
347 case after first checking the stratum beneath the core
348 target.
349 (has_all_memory): Return true.
350 * target.c (raw_memory_xfer_partial): Revise comment
351 regarding use of has_all_memory.
352
353 2020-07-22 Kevin Buettner <kevinb@redhat.com>
354
355 * exec.h (section_table_xfer_memory): Revise declaration,
356 replacing section name parameter with an optional callback
357 predicate.
358 * exec.c (section_table_xfer_memory): Likewise.
359 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
360 of section_table_xfer_memory.
361
362 2020-07-22 Tom Tromey <tromey@adacore.com>
363
364 * mi/mi-cmd-stack.c (list_args_or_locals): Use
365 lookup_symbol_search_name.
366
367 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
368
369 * python/py-registers.c (gdbpy_register_object_data_init): Remove
370 redundant local variable.
371 (gdbpy_get_register_descriptor): Extract descriptor vector as a
372 reference, not pointer, update code accordingly.
373
374 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
375 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
376
377 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
378 * jit.c (jit_breakpoint_re_set_internal): Use the
379 `skip_jit_symbol_lookup` field.
380
381 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
382 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
383
384 * jit.c (jit_read_descriptor): Define the descriptor address once,
385 use twice.
386 (jit_breakpoint_deleted): Move the declaration of the loop variable
387 `iter` into the loop header.
388 (jit_breakpoint_re_set_internal): Move the declaration of the local
389 variable `objf_data` to the first point of definition.
390 (jit_event_handler): Move the declaration of local variables
391 `code_entry`, `entry_addr`, and `objf` to their first point of use.
392 Rename `objf` to `jited`.
393
394 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
395
396 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
397 Remove.
398 * jit.c (get_jiter_objfile_data): Update.
399
400 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
401 Simon Marchi <simon.marchi@polymtl.ca>
402
403 * jit.c (struct jit_program_space_data): Remove.
404 (jit_program_space_key): Remove.
405 (jiter_objfile_data::~jiter_objfile_data): Remove program space
406 stuff.
407 (get_jit_program_space_data): Remove.
408 (jit_breakpoint_deleted): Iterate on all of the program space's
409 objfiles.
410 (jit_inferior_init): Likewise.
411 (jit_breakpoint_re_set_internal): Likewise. Also change return
412 type to void.
413 (jit_breakpoint_re_set): Pass current_program_space to
414 jit_breakpoint_re_set_internal.
415
416 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
417
418 * jit.h (struct jiter_objfile_data) <cached_code_address,
419 jit_breakpoint>: Move to here from ...
420 * jit.c (jit_program_space_data): ... here.
421 (jiter_objfile_data::~jiter_objfile_data): Update.
422 (jit_breakpoint_deleted): Update.
423 (jit_breakpoint_re_set_internal): Update.
424
425 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
426
427 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
428 checks.
429 (jit_read_descriptor): Remove NULL check.
430 (jit_event_handler): Add an assertion.
431
432 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * jit.h (struct jit_objfile_data): Split into...
435 (struct jiter_objfile_data): ... this ...
436 (struct jited_objfile_data): ... and this.
437 * objfiles.h (struct objfile) <jit_data>: Remove.
438 <jiter_data, jited_data>: New fields.
439 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
440 (jiter_objfile_data::~jiter_objfile_data): ... this.
441 (get_jit_objfile_data): Rename to ...
442 (get_jiter_objfile_data): ... this.
443 (add_objfile_entry): Update.
444 (jit_read_descriptor): Use get_jiter_objfile_data.
445 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
446 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
447 (jit_inferior_exit_hook): Use objfile's jited_data field.
448
449 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
450
451 * jit.h: Forward-declare `struct minimal_symbol`.
452 (struct jit_objfile_data): Migrate to here from jit.c; also add a
453 constructor, destructor, and an objfile* field.
454 * jit.c (jit_objfile_data): Remove.
455 (struct jit_objfile_data): Migrate from here to jit.h.
456 (jit_objfile_data::~jit_objfile_data): New destructor
457 implementation with code moved from free_objfile_data.
458 (free_objfile_data): Delete.
459 (get_jit_objfile_data): Update to use the jit_data field of objfile.
460 (jit_find_objf_with_entry_addr): Ditto.
461 (jit_inferior_exit_hook): Ditto.
462 (_initialize_jit): Remove the call to
463 register_objfile_data_with_cleanup.
464 * objfiles.h (struct objfile) <jit_data>: New field.
465
466 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
467
468 * jit.h: Forward-declare `struct objfile`.
469 (jit_event_handler): Add a second parameter, the JITer objfile.
470 * jit.c (jit_read_descriptor): Change the signature to take the
471 JITer objfile as an argument instead of the jit_program_space_data.
472 (jit_inferior_init): Update the call to jit_read_descriptor.
473 (jit_event_handler): Use the new JITer objfile argument when calling
474 jit_read_descriptor.
475 * breakpoint.c (handle_jit_event): Update the call to
476 jit_event_handler to pass the JITer objfile.
477
478 2020-07-21 John Baldwin <jhb@FreeBSD.org>
479
480 * gdbarch.c: Regenerate.
481 * gdbarch.h: Regenerate.
482 * gdbarch.sh (handle_segmentation_fault): Remove method.
483 * infrun.c (handle_segmentation_fault): Remove.
484 (print_signal_received_reason): Remove call to
485 handle_segmentation_fault.
486
487 2020-07-21 John Baldwin <jhb@FreeBSD.org>
488
489 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
490 Rename to sparc64_linux_report_signal_info and add siggnal
491 argument.
492 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
493 instead of sparc64_linux_handle_segmentation_fault.
494
495 2020-07-21 John Baldwin <jhb@FreeBSD.org>
496
497 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
498 i386_linux_report_signal_info instead of
499 i386_linux_handle_segmentation_fault.
500 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
501 to i386_linux_report_signal_info and add siggnal argument.
502 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
503 of i386_linux_handle_segmentation_fault.
504 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
505 to i386_linux_report_signal_info and add siggnal argument.
506
507 2020-07-21 John Baldwin <jhb@FreeBSD.org>
508
509 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
510 hook if present.
511
512 2020-07-21 John Baldwin <jhb@FreeBSD.org>
513
514 * gdbarch.c: Regenerate.
515 * gdbarch.h: Regenerate.
516 * gdbarch.sh (report_signal_info): New method.
517 * infrun.c (print_signal_received_reason): Invoke gdbarch
518 report_signal_info hook if present.
519
520 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
521
522 * python/py-registers.c : Add 'unordered_map' include.
523 (gdbpy_new_reggroup): Renamed to...
524 (gdbpy_get_reggroup): ...this. Update to only create register
525 group descriptors when needed.
526 (gdbpy_reggroup_iter_next): Update.
527
528 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
529
530 * python/py-registers.c (gdbpy_register_object_data): New static
531 global.
532 (gdbpy_register_object_data_init): New function.
533 (gdbpy_new_register_descriptor): Renamed to...
534 (gdbpy_get_register_descriptor): ...this, and update to reuse
535 existing register descriptors where possible.
536 (gdbpy_register_descriptor_iter_next): Update.
537 (gdbpy_initialize_registers): Register new gdbarch data.
538
539 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
540
541 * linux-nat.c (stopped_pids): Make static.
542
543 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
544
545 PR ada/26235
546 * gdbtypes.c (ada_discrete_type_low_bound,
547 ada_discrete_type_high_bound): Handle undefined bounds.
548
549 2020-07-21 Kamil Rytarowski <n54@gmx.com>
550
551 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
552 declaration.
553 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
554 function.
555
556 2020-07-20 John Baldwin <jhb@FreeBSD.org>
557
558 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
559 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
560 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
561 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
562 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
563 method.
564
565 2020-07-20 Ludovic Courtès <ludo@gnu.org>
566
567 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
568 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
569 which are deprecated in Guile 3.0.
570 * configure.ac (try_guile_versions): Add "guile-3.0".
571 * configure (try_guile_versions): Regenerate.
572 * NEWS: Update entry.
573
574 2020-07-20 Ludovic Courtès <ludo@gnu.org>
575 Doug Evans <dje@google.com>
576
577 PR gdb/21104
578 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
579 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
580 USING_GUILE_BEFORE_2_2.
581 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
582 Change type to 'scm_t_port_type *'.
583 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
584 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
585 parameter and honor it. Update callers.
586 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
587 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
588 functions.
589 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
590 USING_GUILE_BEFORE_2_2.
591 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
592 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
593 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
594 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
595 and 'SCM_PORT_TYPE'.
596 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
597 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
598 (gdbscm_memory_port_read, gdbscm_memory_port_write)
599 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
600 [!USING_GUILE_BEFORE_2_2]: New functions.
601 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
602 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
603 'gdbscm_memory_port_read'.
604 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
605 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
606 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
607 function.
608 (ioscm_init_memory_port): Remove.
609 (ioscm_init_memory_port_stream): New function
610 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
611 function.
612 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
613 Return scm_from_uint (0).
614 (gdbscm_set_memory_port_read_buffer_size_x)
615 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
616 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
617 Return scm_from_uint (0).
618 (gdbscm_set_memory_port_write_buffer_size_x)
619 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
620 * configure.ac (try_guile_versions): Add "guile-2.2".
621 * configure: Regenerate.
622 * NEWS: Add entry.
623
624 2020-07-18 Tom Tromey <tom@tromey.com>
625
626 * linux-nat.c (linux_multi_process): Remove.
627 (linux_nat_target::supports_multi_process): Return true.
628
629 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
630
631 * arch/riscv.c (riscv_tdesc_cache): Change map type.
632 (riscv_lookup_target_description): Return pointer out of
633 unique_ptr.
634 * target-descriptions.c (allocate_target_description): Add
635 comment.
636 (target_desc_deleter::operator()): Likewise.
637 * target-descriptions.h (struct target_desc_deleter): Moved to
638 gdbsupport/tdesc.h.
639 (target_desc_up): Likewise.
640
641 2020-07-17 Tom Tromey <tromey@adacore.com>
642
643 * linux-nat.c (linux_nat_target::supports_non_stop)
644 (linux_nat_target::always_non_stop_p): Use "true".
645 (linux_nat_target::supports_disable_randomization): Use "true" and
646 "false".
647
648 2020-07-16 Caroline Tice <cmtice@google.com>
649
650 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
651 (RNGLIST_HEADER_SIZE64): New constant definition.
652 (struct dwop_section_names): Add rnglists_dwo.
653 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
654 (struct loclist_header): Rename to 'loclists_rnglists_header'.
655 (struct dwo_sections): Add rnglists field.
656 (read_attribut_reprocess): Add tag parameter.
657 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
658 (cu_debug_rnglists_section): New function (decl & definition).
659 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
660 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
661 die whose range is being checked; get rnglist section from
662 cu_debug_rnglists_section, to get from either objfile or dwo file as
663 appropriate. Add cases for DW_RLE_base_addressx,
664 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
665 the base address to DW_RLE_offset_pairs (not to all ranges), moving
666 test inside if-condition and updating complaint message.
667 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
668 dwarf2_rnglists_process.
669 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
670 dwarf2_ranges_process.
671 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
672 need_ranges_base and update comment appropriately. Also pass die tag
673 to dwarf2_ranges_read.
674 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
675 need_ranges_base and update comment appropriately. Also pass die tag
676 to dwarf2_ranges_process.
677 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
678 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
679 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
680 need_ranges_base and update comment appropriately. Also pass die tag
681 to read_attribute_reprocess and dwarf2_ranges_read.
682 (read_loclist_header): Rename function to read_loclists_rnglists_header,
683 and update function comment appropriately.
684 (read_loclist_index): Call read_loclists_rnglists_header instead of
685 read_loclist_header.
686 (read_rnglist_index): New function.
687 (read_attribute_reprocess): Add tag parameter. Add code for
688 DW_FORM_rnglistx, passing tag to read_rnglist_index.
689 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
690
691 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
692
693 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
694 being resolved.
695
696 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
697
698 * arch-utils.c (show_architecture): Update formatting of messages.
699
700 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
701
702 * gdbtypes.h (struct type) <bounds>: Handle array and string
703 types.
704 * ada-lang.c (assign_aggregate): Use type::bounds on
705 array/string type.
706 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
707 * c-varobj.c (c_number_of_children): Likewise.
708 (c_describe_child): Likewise.
709 * eval.c (evaluate_subexp_for_sizeof): Likewise.
710 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
711 (f_type_print_base): Likewise.
712 * f-valprint.c (f77_array_offset_tbl): Likewise.
713 (f77_get_upperbound): Likewise.
714 (f77_print_array_1): Likewise.
715 * guile/scm-type.c (gdbscm_type_range): Likewise.
716 * m2-typeprint.c (m2_array): Likewise.
717 (m2_is_long_set_of_type): Likewise.
718 * m2-valprint.c (get_long_set_bounds): Likewise.
719 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
720 * python/py-type.c (typy_range): Likewise.
721 * rust-lang.c (rust_internal_print_type): Likewise.
722 * type-stack.c (type_stack::follow_types): Likewise.
723 * valarith.c (value_subscripted_rvalue): Likewise.
724 * valops.c (value_cast): Likewise.
725
726 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
727
728 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
729 callers to use the equivalent accessor methods.
730
731 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
732
733 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
734 (struct type) <bit_stride>: New method.
735 (TYPE_BIT_STRIDE): Remove.
736 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
737
738 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
739
740 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
741 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
742 callers to use the equivalent accessor methods instead.
743
744 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
745
746 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
747 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
748 callers to use the equivalent accessor methods instead.
749
750 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
751
752 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
753 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
754 to use dynamic_prop::kind.
755
756 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
757
758 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
759 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
760 to get the bound property's kind and check against
761 PROP_UNDEFINED.
762
763 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
764
765 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
766 all callers to use type::range_bounds followed by
767 dynamic_prop::{low,high}.
768
769 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
770
771 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
772 const_val, set_const_val, baton, set_locexpr, set_loclist,
773 set_addr_offset, variant_parts, set_variant_parts,
774 original_type, set_original_type>: New methods.
775 <kind>: Rename to...
776 <m_kind>: ... this. Update all users to use the new methods
777 instead.
778 <data>: Rename to...
779 <m_data>: ... this. Update all users to use the new methods
780 instead.
781
782 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
783
784 * gdbtypes.c (get_discrete_bounds): Return failure if
785 the range type's bounds are not both defined and constant
786 values.
787 (get_array_bounds): Update comment. Remove undefined bound check.
788
789 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
790
791 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
792 the type::bounds method directly.
793
794 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
795
796 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
797 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
798 are used to set the range type's bounds to use set_bounds.
799
800 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
801
802 * exec.c (_initialize_exec): Update exec-file-mismatch help.
803
804 2020-07-10 Pedro Alves <pedro@palves.net>
805
806 * gdbthread.h (inferior_ref): Define.
807 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
808 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
809 * thread.c
810 (scoped_restore_current_thread::restore):
811 Adjust to gdb::ref_ptr.
812 (scoped_restore_current_thread::~scoped_restore_current_thread):
813 Remove manual decref handling.
814 (scoped_restore_current_thread::scoped_restore_current_thread):
815 Adjust to use
816 inferior_ref::new_reference/thread_info_ref::new_reference.
817 Incref the thread before calling get_frame_id instead of after.
818 Let TARGET_CLOSE_ERROR propagate.
819
820 2020-07-10 Pedro Alves <pedro@palves.net>
821
822 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
823 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
824 NOT_AVAILABLE_ERROR.
825 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
826 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
827
828 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
829 Pedro Alves <pedro@palves.net>
830
831 PR gdb/26199
832 * infrun.c (threads_are_resumed_pending_p): Delete.
833 (do_target_wait): Remove threads_are_executing and
834 threads_are_resumed_pending_p checks from the inferior_matches
835 lambda. Update comments.
836
837 2020-07-10 Pedro Alves <pedro@palves.net>
838
839 PR gdb/26199
840 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
841 executing threads.
842
843 2020-07-10 Pedro Alves <pedro@palves.net>
844
845 PR gdb/26199
846 * infrun.c (handle_no_resumed): Handle multiple targets.
847
848 2020-07-10 Pedro Alves <pedro@palves.net>
849
850 PR gdb/26199
851 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
852 target_is_async_p.
853
854 2020-07-10 Pedro Alves <pedro@palves.net>
855
856 PR gdb/26199
857 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
858 threads, not all threads.
859
860 2020-07-10 Pedro Alves <pedro@palves.net>
861
862 PR gdb/26199
863 * remote.c (remote_target::open_1): Pass remote target pointer as
864 data to create_async_event_handler.
865 (remote_async_inferior_event_handler): Mark async event handler
866 before returning if the remote target still has either pending
867 events or unacknowledged notifications.
868
869 2020-07-10 John Baldwin <jhb@FreeBSD.org>
870
871 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
872 declaration.
873 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
874 function.
875
876 2020-07-09 John Baldwin <jhb@FreeBSD.org>
877
878 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
879 inferior_ptid.
880
881 2020-07-09 John Baldwin <jhb@FreeBSD.org>
882
883 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
884 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
885 AT_FREEBSD_PS_STRINGS.
886
887 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
888
889 * auto-load.c (auto_load_objfile_script_1): Convert drive part
890 of debugfile path on Windows.
891
892 2020-07-08 John Baldwin <jhb@FreeBSD.org>
893
894 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
895 argument to 'data'.
896
897 2020-07-08 Tom Tromey <tromey@adacore.com>
898
899 * ada-lang.c (ada_exception_message_1): Use read_memory.
900
901 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
902
903 PR python/22748
904 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
905 special handling for inline frames.
906 * findvar.c (value_of_register_lazy): Skip inline frames when
907 creating lazy register values.
908 * frame.c (frame_id_computed_p): Delete definition.
909 * frame.h (frame_id_computed_p): Delete declaration.
910
911 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * NEWS: Mention additions to Python API.
914 * python/py-arch.c (archpy_register_groups): New function.
915 (arch_object_methods): Add 'register_groups' method.
916 * python/py-registers.c (reggroup_iterator_object): New struct.
917 (reggroup_object): New struct.
918 (gdbpy_new_reggroup): New function.
919 (gdbpy_reggroup_to_string): New function.
920 (gdbpy_reggroup_name): New function.
921 (gdbpy_reggroup_iter): New function.
922 (gdbpy_reggroup_iter_next): New function.
923 (gdbpy_new_reggroup_iterator): New function
924 (gdbpy_initialize_registers): Register new types.
925 (reggroup_iterator_object_type): Define new Python type.
926 (gdbpy_reggroup_getset): New static global.
927 (reggroup_object_type): Define new Python type.
928 * python/python-internal.h
929
930 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
931
932 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
933 * python/py-arch.c (archpy_registers): New function.
934 (arch_object_methods): Add 'registers' method.
935 * python/py-registers.c: New file.
936 * python/python-internal.h
937 (gdbpy_new_register_descriptor_iterator): Declare.
938 (gdbpy_initialize_registers): Declare.
939 * python/python.c (do_start_initialization): Call
940 gdbpy_initialize_registers.
941 * NEWS: Mention additions to the Python API.
942
943 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
944
945 * NEWS: Mention new Python API method.
946 * python/py-unwind.c (pending_framepy_architecture): New function.
947 (pending_frame_object_methods): Add architecture method.
948
949 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
950
951 * gdbarch.c: Regenerate.
952 * gdbarch.h: Regenerate.
953 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
954 (gdbarch_data): Use internal_error for the case where
955 deprecated_set_gdbarch_data was originally needed.
956 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
957 and use passed in obstack.
958 (libunwind_frame_set_descr): Should no longer get back NULL from
959 gdbarch_data.
960 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
961 type.
962 * user-regs.c (user_regs_init): Update parameters, and use passed
963 in obstack.
964 (user_reg_add): Should no longer get back NULL from gdbarch_data.
965 (_initialize_user_regs): Register as a pre-init gdbarch data type.
966
967 2020-07-06 Tom de Vries <tdevries@suse.de>
968
969 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
970 End-Of-Sequence in lte_is_less_than.
971 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
972 "gdb: Don't reorder line table entries too much when sorting".
973
974 2020-07-06 Tom de Vries <tdevries@suse.de>
975
976 PR tui/26205
977 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
978
979 2020-07-05 Tom de Vries <tdevries@suse.de>
980
981 PR build/26187
982 * inferior.h (struct infcall_suspend_state_deleter): If available, use
983 std::uncaught_exceptions instead of deprecated
984 std::uncaught_exception.
985
986 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
987
988 * macroexp.h (macro_stringify): Return
989 gdb::unique_xmalloc_ptr<char>.
990 * macroexp.c (macro_stringify): Likewise.
991 * macrotab.c (fixup_definition): Update.
992
993 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
994
995 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
996 (lex_one_token): Update.
997 * macroexp.c (struct macro_buffer) <release>: Return
998 gdb::unique_xmalloc_ptr<char>.
999 (macro_stringify): Update.
1000 (macro_expand): Update.
1001 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1002 * macroexp.h (macro_expand_next): Likewise.
1003
1004 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1005
1006 * macroexp.h (macro_lookup_ftype): Remove.
1007 (macro_expand, macro_expand_once, macro_expand_next): Remove
1008 lookup function parameters, add scope parameter.
1009 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1010 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1011 * macroscope.h (standard_macro_lookup): Change parameter type
1012 to macro_scope.
1013 * macroscope.c (standard_macro_lookup): Likewise.
1014 * c-exp.y (lex_one_token): Update.
1015 * macrocmd.c (macro_expand_command): Likewise.
1016 (macro_expand_once_command): Likewise.
1017
1018 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1019
1020 * inf-loop.c (inferior_event_handler): Remove client_data param.
1021 * inf-loop.h (inferior_event_handler): Likewise.
1022 * infcmd.c (step_1): Adjust.
1023 * infrun.c (proceed): Adjust.
1024 (fetch_inferior_event): Remove client_data param.
1025 (infrun_async_inferior_event_handler): Adjust.
1026 * infrun.h (fetch_inferior_event): Remove `void *` param.
1027 * linux-nat.c (handle_target_event): Adjust.
1028 * record-btrace.c (record_btrace_handle_async_inferior_event):
1029 Adjust.
1030 * record-full.c (record_full_async_inferior_event_handler):
1031 Adjust.
1032 * remote.c (remote_async_inferior_event_handler): Adjust.
1033
1034 2020-07-01 Tom Tromey <tom@tromey.com>
1035
1036 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1037 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1038
1039 2020-07-01 Tom Tromey <tom@tromey.com>
1040
1041 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1042 tui_gen_win_info.
1043 (tui_win_info::make_window): Merge with
1044 tui_gen_win_info::make_window.
1045 (tui_win_info::make_visible): Move from tui_gen_win_info.
1046 * tui/tui-win.c (tui_win_info::max_width): Move from
1047 tui_gen_win_info.
1048 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1049 type.
1050 <window_factory>: Likewise.
1051 * tui/tui-layout.c (tui_win_info::resize): Move from
1052 tui_gen_win_info.
1053 (make_standard_window): Change return type.
1054 (get_locator_window, tui_get_window_by_name): Likewise.
1055 (tui_layout_window::apply): Remove a cast.
1056 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1057 (struct tui_win_info): Merge with tui_gen_win_info.
1058 (struct tui_gen_win_info): Remove.
1059
1060 2020-07-01 Tom Tromey <tom@tromey.com>
1061
1062 * tui/tui-stack.h (struct tui_locator_window): Derive from
1063 tui_win_info.
1064 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1065 <can_box>: New method.
1066
1067 2020-07-01 Tom Tromey <tom@tromey.com>
1068
1069 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1070
1071 2020-07-01 Tom Tromey <tom@tromey.com>
1072
1073 * tui/tui-regs.c (tui_data_window::display_registers_from)
1074 (tui_data_window::display_registers_from)
1075 (tui_data_window::first_data_item_displayed)
1076 (tui_data_window::delete_data_content_windows): Update.
1077 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1078 Remove.
1079 (tui_data_window::check_register_values): Update.
1080 (tui_data_item_window::rerender): Add parameters. Update.
1081 (tui_data_item_window::refresh_window): Remove.
1082 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1083 virtual.
1084 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1085 tui_gen_win_info.
1086 <refresh_window, max_height, min_height>: Remove.
1087 <rerender>: Add parameters.
1088 <x, y, visible>: New members.
1089 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1090 <m_item_width>: New member.
1091
1092 2020-07-01 Tom Tromey <tom@tromey.com>
1093
1094 * tui/tui-regs.c (tui_data_window::show_register_group)
1095 (tui_data_window::check_register_values): Update.
1096 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1097 from item_no.
1098
1099 2020-07-01 Tom Tromey <tom@tromey.com>
1100
1101 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1102 useless "if".
1103
1104 2020-07-01 Tom Tromey <tom@tromey.com>
1105
1106 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1107 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1108
1109 2020-07-01 Tom Tromey <tom@tromey.com>
1110
1111 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1112 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1113 (struct tui_line_or_address): Move from tui-data.h.
1114 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1115 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1116 (tui_cmd_window, tui_source_window_base, tui_source_window)
1117 (tui_disasm_window): Don't declare.
1118 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1119 to tui-winsource.h.
1120 (SINGLE_KEY): Move to tui-stack.c.
1121
1122 2020-07-01 Tom Tromey <tom@tromey.com>
1123
1124 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1125 std::string.
1126 * tui/tui-regs.c (class tab_expansion_file): New.
1127 (tab_expansion_file::write): New method.
1128 (tui_register_format): Change return type. Use
1129 tab_expansion_file.
1130 (tui_get_register, tui_data_window::display_registers_from)
1131 (tui_data_item_window::rerender): Update.
1132 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1133 * tui/tui-io.c (tui_expand_tabs): Remove.
1134
1135 2020-07-01 Tom Tromey <tom@tromey.com>
1136
1137 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1138
1139 2020-07-01 Fangrui Song <maskray@google.com>
1140
1141 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1142
1143 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1144
1145 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1146 forms for DW_AT_associated and DW_AT_allocated attributes,
1147 which is already checked in function attr_to_dynamic_prop.
1148
1149 2020-06-30 Tom Tromey <tromey@adacore.com>
1150
1151 * dwarf2/read.c (quirk_rust_enum): Correctly call
1152 alloc_rust_variant for default-less enum.
1153
1154 2020-06-30 Tom Tromey <tromey@adacore.com>
1155
1156 PR build/26183:
1157 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1158 gdb::to_string.
1159
1160 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1161
1162 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1163 * gdbarch.h: Re-generate.
1164
1165 2020-06-28 Tom Tromey <tom@tromey.com>
1166
1167 * command.h (cmd_types): Remove.
1168 (cmd_type): Don't declare.
1169 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1170 typedef.
1171 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1172 * cli/cli-decode.c (cmd_type): Remove.
1173
1174 2020-06-27 Pedro Alves <palves@redhat.com>
1175
1176 * fork-child.c (prefork_hook): Adjust.
1177 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1178 Delete.
1179 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1180 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1181 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1182 Remove declarations.
1183 (struct inferior) <set_tty, tty>: New methods.
1184 (struct inferior) <terminal>: Rename to ...
1185 (struct inferior) <m_terminal>: ... this and make private.
1186 * main.c (captured_main_1): Adjust.
1187 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1188 (mi_cmd_inferior_tty_show): Adjust.
1189 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1190 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1191
1192 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1193
1194 * configure.ac: Add --enable-libctf: handle --disable-static
1195 properly.
1196 * acinclude.m4: sinclude ../config/enable.m4.
1197 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1198 (LIBCTF): Substitute in.
1199 (CTF_DEPS): New, likewise.
1200 (CLIBS): libctf needs symbols from libbfd: move earlier.
1201 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1202 flags.
1203 * ctfread.c: Surround in ENABLE_LIBCTF.
1204 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1205 * configure: Regenerate.
1206 * config.in: Likewise.
1207
1208 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1209
1210 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1211
1212 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1213
1214 * inferior.h (struct inferior) <terminal>: Change type to
1215 gdb::unique_xmalloc_ptr<char>.
1216 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1217 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1218 field, adjust to unique pointer.
1219 (get_inferior_io_terminal): Adjust to unique pointer.
1220
1221 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1224 registers, not just the known core set of registers.
1225
1226 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1229 fflags, frm, and fcsr registers.
1230 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1231 restore groups.
1232 (riscv_tdesc_unknown_reg): New function.
1233 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1234 tdesc_use_registers.
1235 * riscv-tdep.h (struct gdbarch_tdep): Add
1236 unknown_csrs_first_regnum, unknown_csrs_count,
1237 duplicate_fflags_regnum, duplicate_frm_regnum, and
1238 duplicate_fcsr_regnum fields.
1239
1240 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1243 callback, use the callback (when not null) to help number unknown
1244 registers.
1245 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1246 (tdesc_use_registers): Add extra parameter to declaration.
1247
1248 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1249
1250 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1251 in the file.
1252 (class riscv_pending_register_alias): Likewise.
1253 (riscv_register_feature::register_info): Change 'required_p' field
1254 to 'required', and change its type. Add 'check' member function.
1255 (riscv_register_feature::register_info::check): Define new member
1256 function.
1257 (riscv_xreg_feature): Change initialisation of 'required' field.
1258 (riscv_freg_feature): Likewise.
1259 (riscv_virtual_feature): Likewise.
1260 (riscv_csr_feature): Likewise.
1261 (riscv_check_tdesc_feature): Take extra parameter, the csr
1262 tdesc_feature, rewrite the function to use the new
1263 riscv_register_feature::register_info::check function.
1264 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1265
1266 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1267
1268 * features/Makefile: Remove all references to the deleted files
1269 below.
1270 * features/riscv/32bit-csr.c: Deleted.
1271 * features/riscv/32bit-csr.xml: Deleted.
1272 * features/riscv/64bit-csr.c: Deleted.
1273 * features/riscv/64bit-csr.xml: Deleted.
1274 * features/riscv/rebuild-csr-xml.sh: Deleted.
1275
1276 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1277
1278 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1279 whitespace error for declaration of names member variable.
1280 (struct riscv_register_feature): Add new prefer_first_name member
1281 variable, and fix whitespace error in declaration of registers.
1282 (riscv_xreg_feature): Initialize prefer_first_name field.
1283 (riscv_freg_feature): Likewise.
1284 (riscv_virtual_feature): Likewise.
1285 (riscv_csr_feature): Likewise.
1286 (riscv_register_name): Expand on comments. Remove register name
1287 modifications for CSR and virtual registers.
1288
1289 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1290
1291 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1292 errors.
1293
1294 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1295
1296 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1297 riscv-opc.h.
1298 (class riscv_pending_register_alias): New class.
1299 (riscv_check_tdesc_feature): Take vector of pending aliases and
1300 populate it as appropriate.
1301 (riscv_setup_register_aliases): Delete.
1302 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1303 to riscv_check_tdesc_feature in all cases. Use the vector to
1304 create the register aliases.
1305
1306 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1307
1308 * sol2-tdep.c (sol2_static_transform_name): Remove.
1309 (sol2_init_abi): Don't register it.
1310 * gdbarch.sh (static_transform_name): Remove.
1311 * gdbarch.c, gdbarch.h: Regenerate.
1312
1313 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1314 gdbarch_static_transform_name.
1315 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1316 * stabsread.c (define_symbol) <'X'>: Remove.
1317 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1318 handling.
1319 <'V'>: Likewise.
1320 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1321 <'S'>: Remove call to gdbarch_static_transform_name.
1322
1323 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1324
1325 * procfs.c (procfs_pre_trace): New function.
1326 (procfs_target::create_inferior): Pass it to fork_inferior.
1327
1328 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1329
1330 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1331 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1332 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1333 sol2-tdep.o, sparc-sol2-tdep.o.
1334 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1335 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1336 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1337 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1338
1339 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1340
1341 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1342 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1343 Call sol2_init_abi.
1344 Remove calls to set_gdbarch_skip_solib_resolver,
1345 set_gdbarch_core_pid_to_str.
1346 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1347 (i386_sol2_static_transform_name): Remove.
1348 (i386_sol2_init_abi): Call sol2_init_abi.
1349 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1350 set_gdbarch_static_transform_name,
1351 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1352 Use sol2_sigtramp_p.
1353 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1354 (sol2_sigtramp_p): New function.
1355 (sol2_static_transform_name): New function.
1356 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1357 (sol2_init_abi): New function.
1358 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1359 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1360 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1361 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1362 (sparc_sol2_static_transform_name): Remove.
1363 (sparc32_sol2_init_abi): Call sol2_init_abi.
1364 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1365 set_gdbarch_static_transform_name,
1366 set_gdbarch_skip_solib_resolver,
1367 set_gdbarch_core_pid_to_str.
1368 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1369 (sparc_sol2_static_transform_name): Remove
1370 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1371 call sol2_sigtramp_p.
1372 (sparc64_sol2_init_abi): Call sol2_init_abi.
1373 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1374 set_gdbarch_static_transform_name,
1375 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1376
1377 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1378
1379 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1380 * exec.c (validate_exec_file): If from_tty, set both
1381 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1382 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1383 and from_tty, unconditionally ask a confirmation.
1384
1385 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1386
1387 * target-descriptions.c (tdesc_architecture_name): Protect against
1388 NULL pointer dereference.
1389 (maint_print_xml_tdesc_cmd): New function.
1390 (_initialize_target_descriptions): Register new 'maint print
1391 xml-tdesc' command and give it the filename completer.
1392 * NEWS: Mention new 'maint print xml-tdesc' command.
1393
1394 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * target-descriptions.c (class tdesc_compatible_info): New class.
1397 (struct target_desc): Change type of compatible vector.
1398 (tdesc_compatible_p): Update for change in type of
1399 target_desc::compatible.
1400 (tdesc_compatible_info_list): New function.
1401 (tdesc_compatible_info_arch_name): New function.
1402 (tdesc_add_compatible): Update for change in type of
1403 target_desc::compatible.
1404 (print_c_tdesc::visit_pre): Likewise.
1405
1406 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1407
1408 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1409 whitespace to underscore.
1410 (maint_print_c_tdesc_cmd): Use fake filename for target
1411 descriptions that came from the target.
1412 (_initialize_target_descriptions): Add filename command completion
1413 for 'maint print c-tdesc'.
1414
1415 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1416
1417 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1418 lines.
1419
1420 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1421
1422 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1423 lines.
1424 (dwarf2_find_location_expression): Likewise.
1425 (call_site_parameter_matches): Likewise.
1426 (dwarf2_compile_expr_to_ax): Likewise.
1427 (disassemble_dwarf_expression): Likewise.
1428 (loclist_describe_location): Likewise.
1429
1430 2020-06-23 Pedro Alves <palves@redhat.com>
1431
1432 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1433 progspace-and-thread.h. Include scoped-mock-context.h instead.
1434 (register_to_value_test): Use scoped_mock_context.
1435 * regcache.c: Include "scoped-mock-context.h".
1436 (cooked_read_test): Don't error out if a target is already pushed.
1437 Use scoped_mock_context. Adjust.
1438 * scoped-mock-context.h: New file.
1439
1440 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1443 initializer.
1444 (ada_language::is_string_type_p): New member function.
1445 * c-lang.c (c_language_data): Delete la_is_string_type_p
1446 initializer.
1447 (cplus_language_data): Likewise.
1448 (asm_language_data): Likewise.
1449 (minimal_language_data): Likewise.
1450 * d-lang.c (d_language_data): Likewise.
1451 * f-lang.c (f_is_string_type_p): Delete function, implementation
1452 moved to f_language::is_string_type_p.
1453 (f_language_data): Delete la_is_string_type_p initializer.
1454 (f_language::is_string_type_p): New member function,
1455 implementation from f_is_string_type_p.
1456 * go-lang.c (go_is_string_type_p): Delete function, implementation
1457 moved to go_language::is_string_type_p.
1458 (go_language_data): Delete la_is_string_type_p initializer.
1459 (go_language::is_string_type_p): New member function,
1460 implementation from go_is_string_type_p.
1461 * language.c (language_defn::is_string_type_p): Define new member
1462 function.
1463 (default_is_string_type_p): Make static, add comment copied from
1464 header file.
1465 (unknown_language_data): Delete la_is_string_type_p initializer.
1466 (unknown_language::is_string_type_p): New member function.
1467 (auto_language_data): Delete la_is_string_type_p initializer.
1468 (auto_language::is_string_type_p): New member function.
1469 * language.h (language_data): Delete la_is_string_type_p field.
1470 (language_defn::is_string_type_p): Declare new function.
1471 (default_is_string_type_p): Delete desclaration, move comment to
1472 definition.
1473 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1474 moved to m2_language::is_string_type_p.
1475 (m2_language_data): Delete la_is_string_type_p initializer.
1476 (m2_language::is_string_type_p): New member function,
1477 implementation from m2_is_string_type_p.
1478 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1479 initializer.
1480 * opencl-lang.c (opencl_language_data): Likewise.
1481 * p-lang.c (pascal_is_string_type_p): Delete function,
1482 implementation moved to pascal_language::is_string_type_p.
1483 (pascal_language_data): Delete la_is_string_type_p initializer.
1484 (pascal_language::is_string_type_p): New member function,
1485 implementation from pascal_is_string_type_p.
1486 * rust-lang.c (rust_is_string_type_p): Delete function,
1487 implementation moved to rust_language::is_string_type_p.
1488 (rust_language_data): Delete la_is_string_type_p initializer.
1489 (rust_language::is_string_type_p): New member function,
1490 implementation from rust_is_string_type_p.
1491 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1492 is_string_type_p.
1493
1494 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1495
1496 * ada-lang.c (ada_language_data): Delete la_print_typedef
1497 initializer.
1498 (ada_language::print_typedef): New member function.
1499 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1500 (cplus_language_data): Likewise.
1501 (asm_language_data): Likewise.
1502 (minimal_language_data): Likewise.
1503 * d-lang.c (d_language_data): Likewise.
1504 * f-lang.c (f_language_data): Likewise.
1505 (f_language::print_typedef): New member function.
1506 * go-lang.c (go_language_data): Delete la_print_typedef
1507 initializer.
1508 * language.c (language_defn::print_typedef): Define member
1509 function.
1510 (unknown_language_data): Delete la_print_typedef initializer.
1511 (unknown_language::print_typedef): New member function.
1512 (auto_language_data): Delete la_print_typedef initializer.
1513 (auto_language::print_typedef): New member function.
1514 * language.h (language_data): Delete la_print_typedef field.
1515 (language_defn::print_typedef): Declare new member function.
1516 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1517 (default_print_typedef): Delete declaration.
1518 * m2-lang.c (m2_language_data): Delete la_print_typedef
1519 initializer.
1520 (m2_language::print_typedef): New member function.
1521 * objc-lang.c (objc_language_data): Delete la_print_typedef
1522 initializer.
1523 * opencl-lang.c (opencl_language_data): Likewise.
1524 * p-lang.c (pascal_language_data): Likewise.
1525 (pascal_language::print_typedef): New member function.
1526 * rust-lang.c (rust_print_typedef): Delete function,
1527 implementation moved to rust_language::print_typedef.
1528 (rust_language): Delete la_print_typedef initializer.
1529 (rust_language::print_typedef): New member function,
1530 implementation from rust_print_typedef.
1531 * typeprint.c (default_print_typedef): Delete.
1532
1533 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1534
1535 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1536 (ada_language::printstr): New member function.
1537 * c-lang.c (c_language_data): Delete la_printstr initializer.
1538 (cplus_language_data): Likewise.
1539 (asm_language_data): Likewise.
1540 (minimal_language_data): Likewise.
1541 * d-lang.c (d_language_data): Likewise.
1542 * f-lang.c (f_printstr): Rename to f_language::printstr.
1543 (f_language_data): Delete la_printstr initializer.
1544 (f_language::printstr): New member function, implementation from
1545 f_printstr.
1546 * go-lang.c (go_language_data): Delete la_printstr initializer.
1547 * language.c (language_defn::printstr): Define new member
1548 function.
1549 (unk_lang_printstr): Delete.
1550 (unknown_language_data): Delete la_printstr initializer.
1551 (unknown_language::printstr): New member function.
1552 (auto_language_data): Delete la_printstr initializer.
1553 (auto_language::printstr): New member function.
1554 * language.h (language_data): Delete la_printstr field.
1555 (language_defn::printstr): Declare new member function.
1556 (LA_PRINT_STRING): Update call to printstr.
1557 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1558 (m2_language_data): Delete la_printstr initializer.
1559 (m2_language::printstr): New member function, implementation from
1560 m2_printstr.
1561 * objc-lang.c (objc_language_data): Delete la_printstr
1562 initializer.
1563 * opencl-lang.c (opencl_language_data): Likewise.
1564 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1565 (pascal_language_data): Delete la_printstr initializer.
1566 (pascal_language::printstr): New member function, implementation
1567 from pascal_printstr.
1568 * p-lang.h (pascal_printstr): Delete declaration.
1569 * rust-lang.c (rust_printstr): Update header comment.
1570 (rust_language_data): Delete la_printstr initializer.
1571 (rust_language::printstr): New member function.
1572
1573 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1574
1575 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1576 (ada_language::printchar): New member function.
1577 * c-lang.c (c_language_data): Delete la_printchar initializer.
1578 (cplus_language_data): Likewise.
1579 (asm_language_data): Likewise.
1580 (minimal_language_data): Likewise.
1581 * d-lang.c (d_language_data): Likewise.
1582 * f-lang.c (f_printchar): Rename to f_language::printchar.
1583 (f_language_data): Delete la_printchar initializer.
1584 (f_language::printchar): New member function, implementation from
1585 f_printchar.
1586 * go-lang.c (go_language_data): Delete la_printchar initializer.
1587 * language.c (unk_lang_printchar): Delete.
1588 (language_defn::printchar): Define new member function.
1589 (unknown_language_data): Delete la_printchar initializer.
1590 (unknown_language::printchar): New member function.
1591 (auto_language_data): Delete la_printchar initializer.
1592 (auto_language::printchar): New member function.
1593 * language.h (language_data): Delete la_printchar field.
1594 (language_defn::printchar): Declare new member function.
1595 (LA_PRINT_CHAR): Update call to printchar.
1596 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1597 (m2_language::printchar): New member function.
1598 * objc-lang.c (objc_language_data): Delete la_printchar
1599 initializer.
1600 * opencl-lang.c (opencl_language_data): Likewise.
1601 * p-lang.c (pascal_language_data): Delete la_printchar
1602 initializer.
1603 (pascal_language::printchar): New member function.
1604 * rust-lang.c (rust_printchar): Rename to
1605 rust_language::printchar.
1606 (rust_language_data): Delete la_printchar initializer.
1607 (rust_language::printchar): New member function, implementation
1608 from rust_printchar.
1609
1610 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1611
1612 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1613 (ada_language_data): Delete la_emitchar initializer.
1614 (ada_language::emitchar): New member function, implementation from
1615 emit_char.
1616 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1617 (cplus_language_data): Likewise.
1618 (asm_language_data): Likewise.
1619 (minimal_language_data): Likewise.
1620 * d-lang.c (d_language_data): Likewise.
1621 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1622 (f_language_data): Delete la_emitchar initializer.
1623 (f_language::emitchar): New member function, implementation from
1624 f_emit_char.
1625 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1626 * language.c (unk_lang_emit_char): Delete.
1627 (language_defn::emitchar): New member function definition.
1628 (unknown_language_data): Delete la_emitchar initializer.
1629 (unknown_language::emitchar): New member function.
1630 (auto_language_data): Delete la_emitchar initializer.
1631 (auto_language::emitchar): New member function.
1632 * language.h (language_data): Delete la_emitchar field.
1633 (language_defn::emitchar): New member field declaration.
1634 (LA_EMIT_CHAR): Update call to emitchar.
1635 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1636 (m2_language_data): Delete la_emitchar initializer.
1637 (m2_language::emitchar): New member function, implementation from
1638 m2_emit_char.
1639 * objc-lang.c (objc_language_data): Delete la_emitchar
1640 initializer.
1641 * opencl-lang.c (opencl_language_data): Likewise.
1642 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1643 (pascal_language_data): Delete la_emitchar initializer.
1644 (pascal_language::emitchar): New member function, implementation
1645 from pascal_emit_char.
1646 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1647 (rust_language_data): Delete la_emitchar initializer.
1648 (rust_language::emitchar): New member function, implementation
1649 from rust_emitchar.
1650
1651 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1652
1653 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1654 (ada_language_data): Delete la_post_parser initializer.
1655 (ada_language::post_parser): New member function.
1656 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1657 (cplus_language_data): Likewise.
1658 (asm_language_data): Likewise.
1659 (minimal_language_data): Likewise.
1660 * d-lang.c (d_language_data): Likewise.
1661 * f-lang.c (f_language_data): Likewise.
1662 * go-lang.c (go_language_data): Likewise.
1663 * language.c (unknown_language_data): Likewise.
1664 (auto_language_data): Likewise.
1665 * language.h (language_data): Delete la_post_parser field.
1666 (language_defn::post_parser): New member function.
1667 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1668 * objc-lang.c (objc_language_data): Likewise.
1669 * opencl-lang.c (opencl_language_data): Likewise.
1670 * p-lang.c (pascal_language_data): Likewise.
1671 * parse.c (parse_exp_in_context): Update call to post_parser.
1672 (null_post_parser): Delete definition.
1673 * parser-defs.h (null_post_parser): Delete declaration.
1674 * rust-lang.c (rust_language_data): Delete la_post_parser
1675 initializer.
1676
1677 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * ada-lang.c (parse): Rename to ada_language::parser.
1680 (ada_language_data): Delete la_parser initializer.
1681 (ada_language::parser): New member function, implementation from
1682 parse.
1683 * c-lang.c (c_language_data): Delete la_parser initializer.
1684 (cplus_language_data): Likewise.
1685 (asm_language_data): Likewise.
1686 (minimal_language_data): Likewise.
1687 * d-lang.c (d_language_data): Likewise.
1688 (d_language::parser): New member function.
1689 * f-lang.c (f_language_data): Delete la_parser initializer.
1690 (f_language::parser): New member function.
1691 * go-lang.c (go_language_data): Delete la_parser initializer.
1692 (go_language::parser): New member function.
1693 * language.c (unk_lang_parser): Delete.
1694 (language_defn::parser): Define new member function.
1695 (unknown_language_data): Delete la_parser initializer.
1696 (unknown_language::parser): New member function.
1697 (auto_language_data): Delete la_parser initializer.
1698 (auto_language::parser): New member function.
1699 * language.h (language_data): Delete la_parser field.
1700 (language_defn::parser): Declare new member function.
1701 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1702 (m2_language::parser): New member function.
1703 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1704 * opencl-lang.c (opencl_language_data): Likewise.
1705 * p-lang.c (pascal_language_data): Likewise.
1706 (pascal_language::parser): New member function.
1707 * parse.c (parse_exp_in_context): Update call to parser.
1708 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1709 (rust_language::parser): New member function.
1710
1711 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1712
1713 * top.c (print_gdb_configuration): Print --with-python-libdir
1714 configuration value.
1715
1716 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1717
1718 * NEWS: Mention change to the alias command.
1719
1720 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1721
1722 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1723 (alias_command_completer)
1724 (make_alias_options_def_group): New functions.
1725 (alias_opts, alias_option_defs): New struct and array.
1726 (alias_usage_error): Update usage.
1727 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1728 Use option framework.
1729 (_initialize_cli_cmds): Update alias command help.
1730 Update aliases command help.
1731 (show_user):
1732 Add NULL for new default_args lookup_cmd argument.
1733 (valid_command_p): Rename to validate_aliased_command.
1734 Add NULL for new default_args lookup_cmd argument. Verify that the
1735 aliased_command has no default args.
1736 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1737 (lookup_cmd_1, lookup_cmd): New argument default_args.
1738 (add_alias_cmd):
1739 Add NULL for new default_args lookup_cmd argument.
1740 (print_help_for_command): Show default args under the layout
1741 alias some_alias = some_aliased_cmd some_alias_default_arg.
1742 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1743 xfree default_args in destructor.
1744 * cli/cli-script.c (process_next_line, do_define_command):
1745 Add NULL for new default_args lookup_cmd argument.
1746 * command.h: Declare new default_args argument in lookup_cmd
1747 and lookup_cmd_1.
1748 * completer.c (complete_line_internal_1):
1749 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1750 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1751 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1752 Likewise.
1753 * infcmd.c (_initialize_infcmd): Likewise.
1754 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1755 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1756 * python/py-param.c (add_setshow_generic): Likewise.
1757 * remote.c (_initialize_remote): Likewise.
1758 * top.c (execute_command): Prepend default_args if command has some.
1759 (set_verbose):
1760 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1761 * tracepoint.c (validate_actionline, encode_actions_1):
1762 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1763
1764 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1765
1766 * jit.c (jit_read_descriptor): Use bool as the return type.
1767 (jit_breakpoint_re_set_internal): Use bool as the return type.
1768 Invert the return value logic; return true if the jit breakpoint
1769 has been successfully initialized.
1770 (jit_inferior_init): Update the call to
1771 jit_breakpoint_re_set_internal.
1772
1773 2020-06-22 Pedro Alves <palves@redhat.com>
1774
1775 PR gdb/25939
1776 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1777 Use the current inferior instead. Don't return
1778 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1779 wait again.
1780 * sol-thread.c (sol_thread_target::wait): Don't reference
1781 inferior_ptid.
1782 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1783 (sol_update_thread_list_callback): Use the current inferior's pid
1784 instead of inferior_ptid.
1785
1786 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1787
1788 * procfs.c: Cleanup many comments.
1789
1790 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1791 (AFTER_WATCHFLAG): Replace by value.
1792
1793 (MAIN_PROC_NAME_FORMAT): Inline ...
1794 (create_procinfo): ... here.
1795
1796 (procfs_debug_inferior): Remove SYS_exec handling.
1797 (syscall_is_exec): Likewise.
1798 (procfs_set_exec_trap): Likewise.
1799
1800 (syscall_is_lwp_exit): Inline in callers.
1801 (syscall_is_exit): Likewise.
1802 (syscall_is_exec): Likewise.
1803 (syscall_is_lwp_create): Likewise.
1804
1805 (invalidate_cache): Remove #if 0 code.
1806
1807 (make_signal_thread_runnable): Remove.
1808 (procfs_target::resume): Remove #if 0 code.
1809
1810 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1811
1812 PR gdb/25939
1813 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1814 call ...
1815 (procfs_target::create_inferior): ... here.
1816
1817 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1818
1819 * exec.c (validate_exec_file): Ensure the build-id is up to
1820 date by calling reopen_exec_file (that checks file timestamp
1821 to decide to re-read the file).
1822
1823 2020-06-18 Pedro Alves <palves@redhat.com>
1824
1825 PR gdb/25412
1826 * gdbthread.h (delete_thread, delete_thread_silent)
1827 (find_thread_ptid): Update comments.
1828 * thread.c (current_thread_): New global.
1829 (is_current_thread): Move higher, and reimplement.
1830 (inferior_thread): Reimplement.
1831 (set_thread_exited): Use bool. Add assertions.
1832 (add_thread_silent): Simplify thread-reuse handling by always
1833 calling delete_thread.
1834 (delete_thread): Remove intro comment.
1835 (find_thread_ptid): Skip exited threads.
1836 (switch_to_thread_no_regs): Write to current_thread_.
1837 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1838 INFERIOR_PTID. Clear current_thread_.
1839
1840 2020-06-18 Pedro Alves <palves@redhat.com>
1841
1842 * aix-thread.c (pd_update): Use switch_to_thread.
1843
1844 2020-06-18 Pedro Alves <palves@redhat.com>
1845
1846 * ravenscar-thread.c (ravenscar_thread_target): Update.
1847 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1848 (ravenscar_thread_target::add_active_thread): ... this. Don't
1849 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1850 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1851
1852 2020-06-18 Pedro Alves <palves@redhat.com>
1853
1854 * nat/windows-nat.c (current_windows_thread): Remove.
1855 * nat/windows-nat.h (current_windows_thread): Remove.
1856 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1857 Adjust.
1858 (display_selectors): Adjust to fetch the current
1859 windows_thread_info based on inferior_ptid.
1860 (fake_create_process): No longer write to current_windows_thread.
1861 (windows_nat_target::get_windows_debug_event):
1862 Don't set inferior_ptid or current_windows_thread.
1863 (windows_nat_target::wait): Adjust to not rely on
1864 current_windows_thread.
1865 (do_initial_windows_stuff): Now a method of windows_nat_target.
1866 Switch to the last_ptid thread.
1867 (windows_nat_target::attach): Adjust.
1868 (windows_nat_target::detach): Use switch_to_no_thread instead of
1869 writing to inferior_ptid directly.
1870 (windows_nat_target::create_inferior): Adjust.
1871
1872 2020-06-18 Pedro Alves <palves@redhat.com>
1873
1874 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1875
1876 2020-06-18 Pedro Alves <palves@redhat.com>
1877
1878 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1879 after creating it, instead of writing to inferior_ptid. Don't
1880 write to inferior_ptid.
1881
1882 2020-06-18 Pedro Alves <palves@redhat.com>
1883
1884 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1885
1886 2020-06-18 Pedro Alves <palves@redhat.com>
1887
1888 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1889 it, instead of writing to inferior_ptid.
1890
1891 2020-06-18 Pedro Alves <palves@redhat.com>
1892
1893 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1894 to inferior_ptid.
1895
1896 2020-06-18 Pedro Alves <palves@redhat.com>
1897
1898 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1899 instead of writing to inferior_ptid directly.
1900
1901 2020-06-18 Pedro Alves <palves@redhat.com>
1902
1903 * corelow.c (core_target::close): Use switch_to_no_thread instead
1904 of writing to inferior_ptid directly.
1905 (add_to_thread_list, core_target_open): Use switch_to_thread
1906 instead of writing to inferior_ptid directly.
1907
1908 2020-06-18 Pedro Alves <palves@redhat.com>
1909
1910 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1911 inferior_ptid.
1912 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1913 inferior_ptid.
1914 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1915 inferior_ptid directly.
1916 (darwin_nat_target::init_thread_list): Switch to thread, instead
1917 of writing to inferior_ptid.
1918 (darwin_nat_target::attach): Don't write to inferior_ptid.
1919 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1920
1921 2020-06-18 Pedro Alves <palves@redhat.com>
1922
1923 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1924 thread.
1925 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1926 Instead use switch_to_thread.
1927 (gnu_nat_target::detach): Use switch_to_no_thread
1928 instead of writing to inferior_ptid directly. Used passed-in
1929 inferior instead of looking up the inferior by pid.
1930
1931 2020-06-18 Pedro Alves <palves@redhat.com>
1932
1933 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1934 inferior_ptid.
1935
1936 2020-06-18 Pedro Alves <palves@redhat.com>
1937
1938 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1939 inferior_ptid.
1940 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1941 thread.
1942 (nto_procfs_target::detach): Avoid referencing
1943 inferior_ptid. Use switch_to_no_thread instead of writing to
1944 inferior_ptid directly.
1945 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1946 instead of writing to inferior_ptid directly.
1947 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1948 to thread.
1949
1950 2020-06-18 Pedro Alves <palves@redhat.com>
1951
1952 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1953 after creating it, instead of writing to inferior_ptid.
1954 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1955 to inferior_ptid directly.
1956 (gdbsim_target::wait): Don't write to inferior_ptid.
1957
1958 2020-06-18 Pedro Alves <palves@redhat.com>
1959
1960 * remote.c (remote_target::remote_notice_new_inferior): Use
1961 switch_to_thread instead of writing to inferior_ptid directly.
1962 (remote_target::add_current_inferior_and_thread): Use
1963 switch_to_no_thread instead of writing to inferior_ptid directly.
1964 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1965 and switch_to_thread instead of using set_current_inferior or
1966 writing to inferior_ptid directly.
1967
1968 2020-06-18 Pedro Alves <palves@redhat.com>
1969
1970 * tracectf.c (ctf_target_open): Switch to added thread instead of
1971 writing to inferior_ptid directly.
1972 (ctf_target::close): Use switch_to_no_thread instead of writing to
1973 inferior_ptid directly.
1974
1975 2020-06-18 Pedro Alves <palves@redhat.com>
1976
1977 * tracefile-tfile.c (tfile_target_open): Don't write to
1978 inferior_ptid directly, instead switch to added thread.
1979 (tfile_target::close): Use switch_to_no_thread instead of writing
1980 to inferior_ptid directly.
1981
1982 2020-06-18 Pedro Alves <palves@redhat.com>
1983
1984 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1985 (procfs_target::detach): Use switch_to_no_thread
1986 instead of writing to inferior_ptid directly.
1987 (do_attach): Change return type to void. Switch to the added
1988 thread.
1989 (procfs_target::create_inferior): Switch to the added thread.
1990 (procfs_do_thread_registers): Don't write to inferior_ptid.
1991
1992 2020-06-18 Pedro Alves <palves@redhat.com>
1993
1994 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1995 of writing to inferior_ptid.
1996 (scoped_restore_exited_inferior): Delete.
1997 (handle_vfork_child_exec_or_exit): Simplify using
1998 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1999 instead of writing to inferior_ptid.
2000 (THREAD_STOPPED_BY): Delete.
2001 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2002 (thread_stopped_by_hw_breakpoint): Delete.
2003 (save_waitstatus): Use
2004 scoped_restore_current_thread+switch_to_thread, and call
2005 target_stopped_by_watchpoint instead of
2006 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2007 instead of thread_stopped_by_sw_breakpoint, and
2008 target_stopped_by_hw_breakpoint instead of
2009 thread_stopped_by_hw_breakpoint.
2010 (handle_inferior_event)
2011 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2012 inferior_ptid directly, nor
2013 set_current_inferior/set_current_program_space. Use
2014 switch_to_thread / switch_to_inferior_no_thread instead.
2015
2016 2020-06-18 Pedro Alves <palves@redhat.com>
2017
2018 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2019 instead of writing to inferior_ptid.
2020
2021 2020-06-18 Pedro Alves <palves@redhat.com>
2022
2023 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2024 added thread.
2025 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2026 to the added thread.
2027 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2028 instead of writing to inferior_ptid.
2029
2030 2020-06-18 Pedro Alves <palves@redhat.com>
2031
2032 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2033 (register_to_value_test): Mock a program_space too. Heap-allocate
2034 the address space. Don't write to inferior_ptid. Use
2035 switch_to_thread instead.
2036
2037 2020-06-18 Pedro Alves <palves@redhat.com>
2038
2039 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2040 Delete.
2041 (find_signalled_thread()): New, factored out from
2042 linux_make_corefile_notes and adjusted to handle exited threads.
2043 (linux_make_corefile_notes): Adjust to use the new
2044 find_signalled_thread.
2045
2046 2020-06-18 Pedro Alves <palves@redhat.com>
2047
2048 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2049 of saving/restoring inferior_ptid.
2050
2051 2020-06-17 Tom Tromey <tom@tromey.com>
2052
2053 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2054 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2055 declare.
2056 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2057
2058 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2059
2060 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2061 of partial symtabs.
2062
2063 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2064
2065 * regformats/reg-arm.dat: Remove.
2066 * regformats/reg-bfin.dat: Remove.
2067 * regformats/reg-cris.dat: Remove.
2068 * regformats/reg-crisv32.dat: Remove.
2069 * regformats/reg-m32r.dat: Remove.
2070 * regformats/reg-tilegx.dat: Remove.
2071 * regformats/reg-tilegx32.dat: Remove.
2072
2073 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2074
2075 * features/Makefile (WHICH): Remove arm files.
2076 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2077 * regformats/arm/arm-with-neon.dat: Remove.
2078 * regformats/arm/arm-with-vfpv2.dat: Remove.
2079 * regformats/arm/arm-with-vfpv3.dat: Remove.
2080
2081 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2082
2083 * features/Makefile (XMLTOC): Remove rx.xml.
2084
2085 2020-06-17 Pedro Alves <palves@redhat.com>
2086
2087 * gdbthread.h (thread_control_state) <trap_expected> Update
2088 comments.
2089
2090 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2091
2092 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2093 ada_language::lookup_symbol_nonlocal.
2094 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2095 (ada_language::lookup_symbol_nonlocal): New member function,
2096 implementation from ada_lookup_symbol_nonlocal.
2097 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2098 initializer.
2099 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2100 initializer.
2101 (cplus_language::lookup_symbol_nonlocal): New member function.
2102 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2103 (minimal_language_data) Likewise.
2104 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2105 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2106 initializer.
2107 (d_language::lookup_symbol_nonlocal): New member function.
2108 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2109 initializer.
2110 (f_language::lookup_symbol_nonlocal): New member function.
2111 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2112 initializer.
2113 * language.c (unknown_language_data): Likewise.
2114 (auto_language_data): Likewise.
2115 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2116 field.
2117 (language_defn::lookup_symbol_nonlocal): New member function.
2118 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2119 initializer.
2120 * objc-lang.c (objc_language_data): Likewise.
2121 * opencl-lang.c (opencl_language_data): Likewise.
2122 * p-lang.c (pascal_language_data): Likewise.
2123 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2124 rust_language::lookup_symbol_nonlocal.
2125 (rust_language_data): Delete la_lookup_symbol_nonlocal
2126 initializer.
2127 (rust_language::lookup_symbol_nonlocal): New member function,
2128 implementation from rust_lookup_symbol_nonlocal.
2129 * symtab.c (lookup_symbol_aux): Update call to
2130 lookup_symbol_nonlocal.
2131 (basic_lookup_symbol_nonlocal): Rename to...
2132 (language_defn::lookup_symbol_nonlocal): ...this, and update
2133 header comment. Remove language_defn parameter, and replace with
2134 uses of `this'.
2135 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2136
2137 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2138
2139 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2140 initializer.
2141 (ada_language::value_print_inner): New member function.
2142 * c-lang.c (c_language_data): Delete la_value_print_inner
2143 initializer.
2144 (cplus_language_data): Likewise.
2145 (asm_language_data): Likewise.
2146 (minimal_language_data): Likewise.
2147 * d-lang.c (d_language_data): Likewise.
2148 (d_language::value_print_inner): New member function.
2149 * f-lang.c (f_language_data): Delete la_value_print_inner
2150 initializer.
2151 (f_language::value_print_inner): New member function.
2152 * f-lang.h (f_value_print_innner): Rename to...
2153 (f_value_print_inner): ...this (note spelling of 'inner').
2154 * f-valprint.c (f_value_print_innner): Rename to...
2155 (f_value_print_inner): ...this (note spelling of 'inner').
2156 * go-lang.c (go_language_data): Delete la_value_print_inner
2157 initializer.
2158 (go_language::value_print_inner): New member function.
2159 * language.c (language_defn::value_print_inner): Define new member
2160 function.
2161 (unk_lang_value_print_inner): Delete.
2162 (unknown_language_data): Delete la_value_print_inner initializer.
2163 (unknown_language::value_print_inner): New member function.
2164 (auto_language_data): Delete la_value_print_inner initializer.
2165 (auto_language::value_print_inner): New member function.
2166 * language.h (language_data): Delete la_value_print_inner field.
2167 (language_defn::value_print_inner): Delcare new member function.
2168 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2169 initializer.
2170 (m2_language::value_print_inner): New member function.
2171 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2172 initializer.
2173 * opencl-lang.c (opencl_language_data): Likewise.
2174 * p-lang.c (pascal_language_data): Likewise.
2175 (pascal_language::value_print_inner): New member function.
2176 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2177 initializer.
2178 (rust_language::value_print_inner): New member function.
2179 * valprint.c (do_val_print): Update call to value_print_inner.
2180
2181 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2182
2183 * ada-lang.c (ada_language_data): Delete la_value_print
2184 initializer.
2185 (ada_language::value_print): New member function.
2186 * c-lang.c (c_language_data): Delete la_value_print initializer.
2187 (cplus_language_data): Likewise.
2188 (asm_language_data): Likewise.
2189 (minimal_language_data): Likewise.
2190 * d-lang.c (d_language_data): Likewise.
2191 * f-lang.c (f_language_data): Likewise.
2192 * go-lang.c (go_language_data): Likewise.
2193 * language.c (unk_lang_value_print): Delete.
2194 (language_defn::value_print): Define new member function.
2195 (unknown_language_data): Delete la_value_print initializer.
2196 (unknown_language::value_print): New member function.
2197 (auto_language_data): Delete la_value_print initializer.
2198 (auto_language::value_print): New member function.
2199 * language.h (language_data): Delete la_value_print field.
2200 (language_defn::value_print): Declare new member function.
2201 (LA_VALUE_PRINT): Update call to value_print.
2202 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2203 * objc-lang.c (objc_language_data): Likewise.
2204 * opencl-lang.c (opencl_language_data): Likewise.
2205 * p-lang.c (pascal_language_data): Likewise.
2206 (pascal_language::value_print): New member function.
2207 * rust-lang.c (rust_language_data): Delete la_value_print
2208 initializer.
2209
2210 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2211
2212 * ada-lang.c (ada_watch_location_expression): Rename to
2213 ada_language::watch_location_expression.
2214 (ada_language_data): Delete la_watch_location_expression
2215 initializer.
2216 (ada_language::watch_location_expression): New member function,
2217 implementation from ada_watch_location_expression.
2218 * breakpoint.c (watch_command_1): Update call to
2219 watch_location_expression.
2220 * c-lang.c (c_watch_location_expression): Rename to
2221 language_defn::watch_location_expression.
2222 (c_language_data): Delete la_watch_location_expression
2223 initializer.
2224 (cplus_language_data): Likewise.
2225 (asm_language_data): Likewise.
2226 (minimal_language_data): Likewise.
2227 * c-lang.h (c_watch_location_expression): Delete declaration.
2228 * d-lang.c (d_language_data): Delete la_watch_location_expression
2229 initializer.
2230 * f-lang.c (f_language_data): Likewise.
2231 * go-lang.c (go_language_data): Likewise.
2232 * language.c (language_defn::watch_location_expression): Member
2233 function implementation from c_watch_location_expression.
2234 (unknown_language_data): Delete la_watch_location_expression
2235 initializer.
2236 (auto_language_data): Likewise.
2237 * language.h (language_data): Delete la_watch_location_expression
2238 field.
2239 (language_defn::watch_location_expression): Declare new member
2240 function.
2241 * m2-lang.c (m2_language_data): Delete
2242 la_watch_location_expression initializer.
2243 * objc-lang.c (objc_language_data): Likewise.
2244 * opencl-lang.c (opencl_language_data): Likewise.
2245 * p-lang.c (pascal_language_data): Likewise.
2246 * rust-lang.c (rust_watch_location_expression): Rename to
2247 rust_language::watch_location_expression.
2248 (rust_language_data): Delete la_watch_location_expression
2249 initializer.
2250 (rust_language::watch_location_expression): New member function,
2251 implementation from rust_watch_location_expression.
2252
2253 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2254
2255 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2256 ada_language::collect_symbol_completion_matches.
2257 (ada_language_data): Delete la_collect_symbol_completion_matches
2258 initializer.
2259 (ada_language::collect_symbol_completion_matches): New member
2260 function, implementation from
2261 ada_collect_symbol_completion_matches.
2262 * c-lang.c (c_language_data): Delete
2263 la_collect_symbol_completion_matches initializer.
2264 (cplus_language_data): Likewise.
2265 (asm_language_data): Likewise.
2266 (minimal_language_data): Likewise.
2267 * d-lang.c (d_language_data): Likewise.
2268 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2269 f_language::collect_symbol_completion_matches.
2270 (f_language_data): Delete la_collect_symbol_completion_matches
2271 initializer.
2272 (f_language::collect_symbol_completion_matches) New member
2273 function, implementation from f_collect_symbol_completion_matches.
2274 * go-lang.c (go_language_data): Delete
2275 la_collect_symbol_completion_matches initializer.
2276 * language.c (unknown_language_data): Likewise.
2277 (auto_language_data): Likewise.
2278 * language.h (language_data): Delete
2279 la_collect_symbol_completion_matches field.
2280 (language_defn::collect_symbol_completion_matches): New member
2281 function.
2282 * m2-lang.c (m2_language_data): Delete
2283 la_collect_symbol_completion_matches initializer.
2284 * objc-lang.c (objc_language_data): Likewise.
2285 * opencl-lang.c (opencl_language_data): Likewise.
2286 * p-lang.c (pascal_language_data): Likewise.
2287 * rust-lang.c (rust_language_data): Likewise.
2288 * symtab.c (default_collect_symbol_completion_matches): Delete.
2289 (collect_symbol_completion_matches): Update call to
2290 collect_symbol_completion_matches.
2291 (collect_symbol_completion_matches_type): Likewise.
2292 * symtab.h (default_collect_symbol_completion_matches): Delete
2293 declaration.
2294
2295 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2298 (ada_language_data): Delete la_word_break_characters initializer.
2299 (ada_language::word_break_characters): New member function.
2300 * c-lang.c (c_language_data): Delete la_word_break_characters
2301 initializer.
2302 (cplus_language_data): Likewise.
2303 (asm_language_data): Likewise.
2304 (minimal_language_data): Likewise.
2305 * completer.c: Update global comment.
2306 (advance_to_expression_complete_word_point): Update call to
2307 word_break_characters.
2308 (complete_files_symbols): Likewise.
2309 (complete_line_internal_1): Likewise.
2310 (default_completer_handle_brkchars): Likewise.
2311 (skip_quoted_chars): Likewise.
2312 * d-lang.c (d_language_data): Delete la_word_break_characters
2313 initializer.
2314 * f-lang.c (f_word_break_characters): Delete.
2315 (f_language_data): Delete la_word_break_characters initializer.
2316 (f_language::word_break_characters): New member function.
2317 * go-lang.c (go_language_data): Delete la_word_break_characters
2318 initializer.
2319 * language.c (unknown_language_data): Likewise.
2320 (auto_language_data): Likewise.
2321 * language.h (default_word_break_characters): Move declaration to
2322 earlier in the file.
2323 (language_data): Delete la_word_break_characters field.
2324 (language_defn::word_break_characters): New member function.
2325 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2326 initializer.
2327 * objc-lang.c (objc_language_data): Likewise.
2328 * opencl-lang.c (opencl_language_data): Likewise.
2329 * p-lang.c (pascal_language_data): Likewise.
2330 * rust-lang.c (rust_language_data): Likewise.
2331
2332 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2333
2334 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2335 (ada_language_data): Delete la_get_symbol_name_matcher
2336 initializer.
2337 (language_defn::get_symbol_name_matcher_inner): New member
2338 function.
2339 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2340 initializer.
2341 (cplus_language_data): Likewise.
2342 (cplus_language::get_symbol_name_matcher_inner): New member
2343 function.
2344 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2345 (minimal_language_data): Likewise.
2346 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2347 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2348 initializer.
2349 * dictionary.c (iter_match_first_hashed): Update call to
2350 get_symbol_name_matcher.
2351 (iter_match_next_hashed): Likewise.
2352 (iter_match_next_linear): Likewise.
2353 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2354 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2355 initializer.
2356 (f_language::get_symbol_name_matcher_inner): New member function.
2357 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2358 initializer.
2359 * language.c (default_symbol_name_matcher): Update header comment,
2360 make static.
2361 (language_defn::get_symbol_name_matcher): New definition.
2362 (language_defn::get_symbol_name_matcher_inner): Likewise.
2363 (get_symbol_name_matcher): Delete.
2364 (unknown_language_data): Delete la_get_symbol_name_matcher
2365 initializer.
2366 (auto_language_data): Likewise.
2367 * language.h (language_data): Delete la_get_symbol_name_matcher
2368 field.
2369 (language_defn::get_symbol_name_matcher): New member function.
2370 (language_defn::get_symbol_name_matcher_inner): Likewise.
2371 (default_symbol_name_matcher): Delete declaration.
2372 * linespec.c (find_methods): Update call to
2373 get_symbol_name_matcher.
2374 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2375 initializer.
2376 * minsyms.c (lookup_minimal_symbol): Update call to
2377 get_symbol_name_matcher.
2378 (iterate_over_minimal_symbols): Likewise.
2379 * objc-lang.c (objc_language_data): Delete
2380 la_get_symbol_name_matcher initializer.
2381 * opencl-lang.c (opencl_language_data): Likewise.
2382 * p-lang.c (pascal_language_data): Likewise.
2383 * psymtab.c (psymbol_name_matches): Update call to
2384 get_symbol_name_matcher.
2385 * rust-lang.c (rust_language_data): Delete
2386 la_get_symbol_name_matcher initializer.
2387 * symtab.c (symbol_matches_search_name): Update call to
2388 get_symbol_name_matcher.
2389 (compare_symbol_name): Likewise.
2390
2391 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2392
2393 * ada-lang.c (ada_language_data): Delete la_compute_program
2394 initializer.
2395 * c-lang.c (c_language_data): Likewise.
2396 (c_language::compute_program): New member function.
2397 (cplus_language_data): Delete la_compute_program initializer.
2398 (cplus_language::compute_program): New member function.
2399 (asm_language_data): Delete la_compute_program initializer.
2400 (minimal_language_data): Likewise.
2401 * c-lang.h (c_compute_program): Update comment.
2402 (cplus_compute_program): Likewise.
2403 * compile/compile-c-support.c (c_compute_program): Likewise.
2404 (cplus_compute_program): Likewise.
2405 * compile/compile.c (compile_to_object): Update call to
2406 la_compute_program.
2407 * d-lang.c (d_language_data): Delete la_compute_program
2408 initializer.
2409 * f-lang.c (f_language_data): Likewise.
2410 * go-lang.c (go_language_data): Likewise.
2411 * language.c (unknown_language_data): Likewise.
2412 (auto_language_data): Likewise.
2413 * language.h (language_data): Delete la_compute_program field.
2414 (language_defn::compute_program): New member function.
2415 * m2-lang.c (m2_language_data): Delete la_compute_program
2416 initializer.
2417 * objc-lang.c (objc_language_data): Likewise.
2418 * opencl-lang.c (opencl_language_data): Likewise.
2419 * p-lang.c (pascal_language_data): Likewise.
2420 * rust-lang.c (rust_language_data): Likewise.
2421
2422 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2423
2424 * ada-lang.c (ada_language_data) Delete
2425 la_class_name_from_physname initializer.
2426 * c-lang.c (c_language_data): Likewise.
2427 (cplus_language_data): Likewise.
2428 (cplus_language::class_name_from_physname): New member function.
2429 (asm_language_data): Delete la_class_name_from_physname
2430 initializer.
2431 (minimal_language_data): Likewise.
2432 * d-lang.c (d_language_data): Likewise.
2433 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2434 method on language_defn class.
2435 (guess_full_die_structure_name): Likewise.
2436 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2437 initializer.
2438 * go-lang.c (go_language_data): Likewise.
2439 * language.c (language_class_name_from_physname): Delete.
2440 (unk_lang_class_name): Delete.
2441 (unknown_language_data): Delete la_class_name_from_physname
2442 initializer.
2443 (auto_language_data): Likewise.
2444 * language.h (language_data): Delete la_class_name_from_physname
2445 field.
2446 (language_defn::class_name_from_physname): New function.
2447 (language_class_name_from_physname): Delete declaration.
2448 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2449 initializer.
2450 * objc-lang.c (objc_language_data): Likewise.
2451 * opencl-lang.c (opencl_language_data): Likewise.
2452 * p-lang.c (pascal_language_data): Likewise.
2453 * rust-lang.c (rust_language_data): Likewise.
2454
2455 2020-06-16 Tom Tromey <tom@tromey.com>
2456
2457 * tui/tui-data.h (STATUS_NAME): New macro.
2458 * tui/tui-layout.c (tui_remove_some_windows)
2459 (initialize_known_windows, tui_register_window)
2460 (tui_layout_split::remove_windows, initialize_layouts)
2461 (tui_new_layout_command): Don't use hard-coded window names.
2462
2463 2020-06-16 Tom Tromey <tom@tromey.com>
2464
2465 PR tui/25348:
2466 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2467 tui_initialize_readline. Only run once. Call rl_initialize.
2468 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2469 tui_initialize_readline.
2470 * tui/tui-io.c (tui_setup_io): Call
2471 tui_ensure_readline_initialized.
2472 * tui/tui-interp.c (tui_interp::init): Update.
2473
2474 2020-06-16 Tom Tromey <tom@tromey.com>
2475
2476 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2477 Also preserve the status window.
2478
2479 2020-06-16 Tom Tromey <tom@tromey.com>
2480
2481 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2482 where m_window==nullptr.
2483
2484 2020-06-15 Tom Tromey <tromey@adacore.com>
2485
2486 * windows-nat.c (windows_nat::handle_output_debug_string):
2487 Update.
2488 (windows_nat::handle_ms_vc_exception): Update.
2489 * target.h (target_read_string): Change API.
2490 * target.c (target_read_string): Change API.
2491 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2492 Update.
2493 * solib-frv.c (frv_current_sos): Update.
2494 * solib-dsbt.c (dsbt_current_sos): Update.
2495 * solib-darwin.c (darwin_current_sos): Update.
2496 * linux-thread-db.c (inferior_has_bug): Update.
2497 * expprint.c (print_subexp_standard): Update.
2498 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2499 (ada_exception_message_1): Update.
2500
2501 2020-06-15 Tom Tromey <tromey@adacore.com>
2502
2503 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2504
2505 2020-06-15 Tom Tromey <tromey@adacore.com>
2506
2507 * valprint.c (read_string): Update comment.
2508 * target.c (MIN): Remove.
2509 (target_read_string): Rewrite.
2510
2511 2020-06-15 Tom Tromey <tromey@adacore.com>
2512
2513 * corefile.c (read_memory_string): Remove.
2514 * ada-valprint.c (ada_value_print_ptr): Update.
2515 * ada-lang.h (ada_tag_name): Change return type.
2516 * ada-lang.c (type_from_tag): Update.
2517 (ada_tag_name_from_tsd): Change return type. Use
2518 target_read_string.
2519 (ada_tag_name): Likewise.
2520 * gdbcore.h (read_memory_string): Don't declare.
2521
2522 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2523
2524 * symtab.c (rbreak_command): Ignore Windows drive colon.
2525
2526 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2527
2528 * NEWS: Mention removed GDBserver host support.
2529
2530 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2531
2532 * features/riscv/rebuild-csr-xml.sh: Updated.
2533
2534 2020-06-11 Tom Tromey <tom@tromey.com>
2535
2536 PR gdb/18318:
2537 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2538
2539 2020-06-09 Jonny Grant <jg@jguk.org>
2540 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2541
2542 * main.c (captured_main_1): Don't print new line after help.
2543 (print_gdb_help): add mailing list and IRC channel information
2544 to --help. Add new lines between items in the footer. Remove
2545 quotes around bug url.
2546
2547 2020-06-11 Keith Seitz <keiths@redhat.com>
2548
2549 PR gdb/21356
2550 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2551 Resolve typedefs for type length calculations.
2552
2553 2020-06-10 Tom de Vries <tdevries@suse.de>
2554
2555 PR ada/24713
2556 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2557 (write_psymbols): Enable .gdb_index for ada.
2558 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2559 ada.
2560
2561 2020-06-10 Tom de Vries <tdevries@suse.de>
2562
2563 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2564 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2565 namei" instead of "const char *name" argument.
2566 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2567 dw2_symtab_iter_init.
2568
2569 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2570
2571 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2572 to use type::field and field::type instead.
2573
2574 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2575
2576 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2577 to use field::type instead.
2578
2579 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2580
2581 * gdbtypes.h (struct field) <type, set_type>: New methods.
2582 Rename `type` field to...
2583 <m_type>: ... this. Change references throughout to use type or
2584 set_type methods.
2585 (FIELD_TYPE): Use field::type. Change call sites that modify
2586 the field's type to use field::set_type instead.
2587
2588 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2589
2590 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2591 to use type::index_type instead.
2592
2593 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2594
2595 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2596 methods.
2597 (TYPE_INDEX_TYPE): Use type::index_type.
2598 * gdbtypes.c (create_array_type_with_stride): Likewise.
2599
2600 2020-06-07 Tom Tromey <tom@tromey.com>
2601
2602 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2603 parameter.
2604 (generic_value_print): Update.
2605
2606 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2607
2608 Revert commit 982a38f60b0.
2609 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2610
2611 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2612
2613 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2614 avoid use after free.
2615
2616 2020-06-05 Tom de Vries <tdevries@suse.de>
2617
2618 * NEWS: Fix typos.
2619
2620 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2621
2622 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2623 the per_bfd object.
2624 (dwarf2_read_debug_names): Likewise.
2625 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2626 object when re-using a per_bfd object with an index.
2627
2628 2020-06-03 Tom de Vries <tdevries@suse.de>
2629
2630 PR symtab/26046
2631 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2632 children for C++.
2633 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2634 DW_TAG_subprogram.
2635
2636 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2637
2638 * ada-lang.c (ada_language_data): Delete skip_trampoline
2639 initializer.
2640 * c-lang.c (c_language_data): Likewise.
2641 (cplus_language_data): Likewise.
2642 (cplus_language::skip_trampoline): New member function.
2643 (asm_language_data): Delete skip_trampoline initializer.
2644 (minimal_language_data): Likewise.
2645 * d-lang.c (d_language_data): Likewise.
2646 * f-lang.c (f_language_data): Likewise.
2647 * go-lang.c (go_language_data): Likewise.
2648 * language.c (unk_lang_trampoline): Delete function.
2649 (skip_language_trampoline): Update.
2650 (unknown_language_data): Delete skip_trampoline initializer.
2651 (auto_language_data): Likewise.
2652 * language.h (language_data): Delete skip_trampoline field.
2653 (language_defn::skip_trampoline): New function.
2654 * m2-lang.c (m2_language_data): Delete skip_trampoline
2655 initializer.
2656 * objc-lang.c (objc_skip_trampoline): Delete function, move
2657 implementation to objc_language::skip_trampoline.
2658 (objc_language_data): Delete skip_trampoline initializer.
2659 (objc_language::skip_trampoline): New member function with
2660 implementation from objc_skip_trampoline.
2661 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2662 initializer.
2663 * p-lang.c (pascal_language_data): Likewise.
2664 * rust-lang.c (rust_language_data): Likewise.
2665
2666 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2667
2668 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2669 (ada_language::demangle): New member function.
2670 * c-lang.c (c_language_data): Delete la_demangle initializer.
2671 (cplus_language_data): Delete la_demangle initializer.
2672 (cplus_language::demangle): New member function.
2673 (asm_language_data): Delete la_demangle initializer.
2674 (minimal_language_data): Delete la_demangle initializer.
2675 * d-lang.c (d_language_data): Delete la_demangle initializer.
2676 (d_language::demangle): New member function.
2677 * f-lang.c (f_language_data): Delete la_demangle initializer.
2678 (f_language::demangle): New member function.
2679 * go-lang.c (go_language_data): Delete la_demangle initializer.
2680 (go_language::demangle): New member function.
2681 * language.c (language_demangle): Update.
2682 (unk_lang_demangle): Delete.
2683 (unknown_language_data): Delete la_demangle initializer.
2684 (unknown_language::demangle): New member function.
2685 (auto_language_data): Delete la_demangle initializer.
2686 (auto_language::demangle): New member function.
2687 * language.h (language_data): Delete la_demangle field.
2688 (language_defn::demangle): New function.
2689 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2690 * objc-lang.c (objc_language_data): Delete la_demangle
2691 initializer.
2692 (objc_language::demangle): New member function.
2693 * opencl-lang.c (opencl_language_data): Delete la_demangle
2694 initializer.
2695 * p-lang.c (pascal_language_data): Likewise.
2696 * rust-lang.c (rust_language_data): Likewise.
2697 (rust_language::demangle): New member function.
2698
2699 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * ada-lang.c (ada_language_data): Delete la_print_type
2702 initializer.
2703 (ada_language::print_type): New member function.
2704 * c-lang.c (c_language_data): Delete la_print_type initializer.
2705 (c_language::print_type): New member function.
2706 (cplus_language_data): Delete la_print_type initializer.
2707 (cplus_language::print_type): New member function.
2708 (asm_language_data): Delete la_print_type initializer.
2709 (asm_language::print_type): New member function.
2710 (minimal_language_data): Delete la_print_type initializer.
2711 (minimal_language::print_type): New member function.
2712 * d-lang.c (d_language_data): Delete la_print_type initializer.
2713 (d_language::print_type): New member function.
2714 * f-lang.c (f_language_data): Delete la_print_type initializer.
2715 (f_language::print_type): New member function.
2716 * go-lang.c (go_language_data): Delete la_print_type initializer.
2717 (go_language::print_type): New member function.
2718 * language.c (unk_lang_print_type): Delete.
2719 (unknown_language_data): Delete la_print_type initializer.
2720 (unknown_language::print_type): New member function.
2721 (auto_language_data): Delete la_print_type initializer.
2722 (auto_language::print_type): New member function.
2723 * language.h (language_data): Delete la_print_type field.
2724 (language_defn::print_type): New function.
2725 (LA_PRINT_TYPE): Update.
2726 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2727 (m2_language::print_type): New member function.
2728 * objc-lang.c (objc_language_data): Delete la_print_type
2729 initializer.
2730 (objc_language::print_type): New member function.
2731 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2732 to opencl_language::print_type.
2733 (opencl_language_data): Delete la_print_type initializer.
2734 (opencl_language::print_type): New member function, implementation
2735 from opencl_print_type.
2736 * p-lang.c (pascal_language_data): Delete la_print_type
2737 initializer.
2738 (pascal_language::print_type): New member function.
2739 * rust-lang.c (rust_print_type): Delete, implementation moved to
2740 rust_language::print_type.
2741 (rust_language_data): Delete la_print_type initializer.
2742 (rust_language::print_type): New member function, implementation
2743 from rust_print_type.
2744
2745 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2746
2747 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2748 implementation moves to...
2749 (ada_language::sniff_from_mangled_name): ...here. Update return
2750 type.
2751 (ada_language_data): Delete la_sniff_from_mangled_name
2752 initializer.
2753 * c-lang.c (c_language_data): Likewise.
2754 (cplus_language_data): Likewise.
2755 (cplus_language::sniff_from_mangled_name): New member function,
2756 implementation taken from gdb_sniff_from_mangled_name.
2757 (asm_language_data): Delete la_sniff_from_mangled_name
2758 initializer.
2759 (minimal_language_data): Likewise.
2760 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2761 implementation moves to cplus_language::sniff_from_mangled_name.
2762 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2763 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2764 moves to...
2765 (d_language::sniff_from_mangled_name): ...here.
2766 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2767 * f-lang.c (f_language_data): Likewise.
2768 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2769 moves to...
2770 (go_language::sniff_from_mangled_name): ...here.
2771 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2772 * language.c (language_sniff_from_mangled_name): Delete.
2773 (unknown_language_data): Delete la_sniff_from_mangled_name
2774 initializer.
2775 (auto_language_data): Likewise.
2776 * language.h (language_data): Delete la_sniff_from_mangled_name
2777 field.
2778 (language_defn::sniff_from_mangled_name): New function.
2779 (language_sniff_from_mangled_name): Delete declaration.
2780 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2781 field.
2782 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2783 implementation moves to...
2784 (objc_language::sniff_from_mangled_name): ...here.
2785 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2786 * opencl-lang.c (opencl_language_data): Likewise.
2787 * p-lang.c (pascal_language_data): Likewise.
2788 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2789 implementation moves to...
2790 (rust_language::sniff_from_mangled_name): ...here.
2791 (rust_language_data): Delete la_sniff_from_mangled_name
2792 initializer.
2793 * symtab.c (symbol_find_demangled_name): Call
2794 sniff_from_mangled_name member function.
2795
2796 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2797
2798 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2799 initializer.
2800 * c-lang.c (c_language_data): Likewise.
2801 (cplus_language_data): Likewise.
2802 (cplus_language::search_name_hash): New member function.
2803 (asm_language_data): Delete la_search_name_hash initializer.
2804 (minimal_language_data): Likewise.
2805 * d-lang.c (d_language_data): Likewise.
2806 * dictionary.c (default_search_name_hash): Rename to...
2807 (language_defn::search_name_hash): ...this.
2808 * f-lang.c (f_language_data): Likewise.
2809 (f_language::search_name_hash): New member function.
2810 * go-lang.c (go_language_data): Delete la_search_name_hash
2811 initializer.
2812 * language.c (unknown_language_data): Likewise.
2813 (auto_language_data): Likewise.
2814 * language.h (struct language_data): Delete la_search_name_hash
2815 field.
2816 (language_defn::search_name_hash): Declare new member function.
2817 (default_search_name_hash): Delete declaration.
2818 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2819 initializer.
2820 * objc-lang.c (objc_language_data): Likewise.
2821 * opencl-lang.c (opencl_language_data): Likewise.
2822 * p-lang.c (pascal_language_data): Likewise.
2823 * rust-lang.c (rust_language_data): Likewise.
2824 * symtab.c (search_name_hash): Update call.
2825
2826 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2827
2828 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2829 initializer.
2830 * c-lang.c (class compile_instance): Declare.
2831 (c_language_data): Delete la_get_compile_instance initializer.
2832 (c_language::get_compile_instance): New member function.
2833 (cplus_language_data): Delete la_get_compile_instance initializer.
2834 (cplus_language::get_compile_instance): New member function.
2835 (asm_language_data): Delete la_get_compile_instance initializer.
2836 (minimal_language_data): Likewise.
2837 * c-lang.h (c_get_compile_context): Update comment.
2838 (cplus_get_compile_context): Update comment.
2839 * compile/compile.c (compile_to_object): Update calls, don't rely
2840 on function pointer being NULL.
2841 * d-lang.c (d_language_data): Delete la_get_compile_instance
2842 initializer.
2843 * f-lang.c (f_language_data): Likewise.
2844 * go-lang.c (go_language_data): Likewise.
2845 * language.c (unknown_language_data): Likewise.
2846 (auto_language_data): Likewise.
2847 * language.h (language_data): Delete la_get_compile_instance field.
2848 (language_defn::get_compile_instance): New member function.
2849 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2850 initializer.
2851 * objc-lang.c (objc_language_data): Likewise.
2852 * opencl-lang.c (opencl_language_data): Likewise.
2853 * p-lang.c (pascal_language_data): Likewise.
2854 * rust-lang.c (rust_language_data): Likewise.
2855
2856 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2857
2858 * ada-lang.c (ada_add_all_symbols): Update comment.
2859 (ada_iterate_over_symbols): Delete, move implementation to...
2860 (ada_language::iterate_over_symbols): ...here, a new member
2861 function, rewrite to use range based for loop.
2862 (ada_language_data): Delete la_iterate_over_symbols initializer.
2863 * c-lang.c (c_language_data): Likewise.
2864 (cplus_language_data): Likewise.
2865 (asm_language_data): Likewise.
2866 (minimal_language_data): Likewise.
2867 * d-lang.c (d_language_data): Likewise.
2868 * f-lang.c (f_language_data): Likewise.
2869 * go-lang.c (go_language_data): Likewise.
2870 * language.c (unknown_language_data): Likewise.
2871 (auto_language_data): Likewise.
2872 * language.h (language_data): Delete la_iterate_over_symbols field.
2873 (language_defn::iterate_over_symbols): New member function.
2874 (LA_ITERATE_OVER_SYMBOLS): Update.
2875 * linespec.c (iterate_over_all_matching_symtabs): Update.
2876 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2877 initializer.
2878 * objc-lang.c (objc_language_data): Likewise.
2879 * opencl-lang.c (opencl_language_data): Likewise.
2880 * p-lang.c (pascal_language_data): Likewise.
2881 * rust-lang.c (rust_language_data): Likewise.
2882
2883 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2884
2885 * ada-lang.c (ada_language_data): Delete
2886 la_lookup_transparent_type initializer.
2887 * c-lang.c (c_language_data): Likewise.
2888 (cplus_language_data): Likewise.
2889 (cplus_language::lookup_transparent_type): New member function.
2890 (asm_language_data): Delete la_lookup_transparent_type
2891 initializer.
2892 (minimal_language_data): Likewise.
2893 * d-lang.c (d_language_data): Likewise.
2894 * f-lang.c (f_language_data): Likewise.
2895 * go-lang.c (go_language_data): Likewise.
2896 * language.c (unknown_language_data): Likewise.
2897 (auto_language_data): Likewise.
2898 * language.h (struct language_data): Delete
2899 la_lookup_transparent_type field.
2900 (language_defn::lookup_transparent_type): New member function.
2901 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2902 initializer.
2903 * objc-lang.c (objc_language_data): Likewise.
2904 * opencl-lang.c (opencl_language_data): Likewise.
2905 * p-lang.c (pascal_language_data): Likewise.
2906 * rust-lang.c (rust_language_data): Likewise.
2907 * symtab.c (symbol_matches_domain): Update call.
2908
2909 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * ada-lang.c (ada_language_arch_info): Delete function, move
2912 implementation to...
2913 (ada_language::language_arch_info): ...here, a new member
2914 function.
2915 (ada_language_data): Delete la_language_arch_info.
2916 * c-lang.c (c_language_data): Likewise.
2917 (c_language::language_arch_info): New member function.
2918 (cplus_language_arch_info): Delete function, move
2919 implementation to...
2920 (cplus_language::language_arch_info): ...here, a new member
2921 function.
2922 (cplus_language_data): Delete la_language_arch_info.
2923 (asm_language_data): Likewise.
2924 (asm_language::language_arch_info): New member function.
2925 (minimal_language_data): Delete la_language_arch_info.
2926 (minimal_language::language_arch_info): New member function.
2927 * d-lang.c (d_language_arch_info): Delete function, move
2928 implementation to...
2929 (d_language::language_arch_info): ...here, a new member
2930 function.
2931 (d_language_data): Delete la_language_arch_info.
2932 * f-lang.c (f_language_arch_info): Delete function, move
2933 implementation to...
2934 (f_language::language_arch_info): ...here, a new member
2935 function.
2936 (f_language_data): Delete la_language_arch_info.
2937 * go-lang.c (go_language_arch_info): Delete function, move
2938 implementation to...
2939 (go_language::language_arch_info): ...here, a new member
2940 function.
2941 (go_language_data): Delete la_language_arch_info.
2942 * language.c (unknown_language_data): Likewise.
2943 (unknown_language::language_arch_info): New member function.
2944 (auto_language_data): Delete la_language_arch_info.
2945 (auto_language::language_arch_info): New member function.
2946 (language_gdbarch_post_init): Update call to
2947 la_language_arch_info.
2948 * language.h (language_data): Delete la_language_arch_info
2949 function pointer.
2950 (language_defn::language_arch_info): New function.
2951 * m2-lang.c (m2_language_arch_info): Delete function, move
2952 implementation to...
2953 (m2_language::language_arch_info): ...here, a new member
2954 function.
2955 (m2_language_data): Delete la_language_arch_info.
2956 * objc-lang.c (objc_language_arch_info): Delete function, move
2957 implementation to...
2958 (objc_language::language_arch_info): ...here, a new member
2959 function.
2960 (objc_language_data): Delete la_language_arch_info.
2961 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2962 implementation to...
2963 (opencl_language::language_arch_info): ...here, a new member
2964 function.
2965 (opencl_language_data): Delete la_language_arch_info.
2966 * p-lang.c (pascal_language_arch_info): Delete function, move
2967 implementation to...
2968 (pascal_language::language_arch_info): ...here, a new member
2969 function.
2970 (pascal_language_data): Delete la_language_arch_info.
2971 * rust-lang.c (rust_language_arch_info): Delete function, move
2972 implementation to...
2973 (rust_language::language_arch_info): ...here, a new member
2974 function.
2975 (rust_language_data): Delete la_language_arch_info.
2976
2977 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2980 initializer.
2981 * c-lang.c (c_language_data): Likewise.
2982 (cplus_language_data): Likewise.
2983 (cplus_language::pass_by_reference_info): New method.
2984 (asm_language_data): Delete la_pass_by_reference initializer.
2985 (minimal_language_data): Likewise.
2986 * cp-abi.c (cp_pass_by_reference): Remove use of
2987 default_pass_by_reference.
2988 * d-lang.c (d_language_data): Likewise.
2989 * f-lang.c (f_language_data): Likewise.
2990 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2991 default_pass_by_reference.
2992 * go-lang.c (go_language_data): Likewise.
2993 * language.c (language_pass_by_reference): Update.
2994 (default_pass_by_reference): Delete.
2995 (unknown_language_data): Delete la_pass_by_reference
2996 initializer.
2997 (auto_language_data): Likewise.
2998 * language.h (struct language_data): Delete la_pass_by_reference
2999 field.
3000 (language_defn::pass_by_reference_info): New member function.
3001 (default_pass_by_reference): Delete declaration.
3002 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3003 initializer.
3004 * objc-lang.c (objc_language_data): Likewise.
3005 * opencl-lang.c (opencl_language_data): Likewise.
3006 * p-lang.c (pascal_language_data): Likewise.
3007 * rust-lang.c (rust_language_data): Likewise.
3008
3009 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3010
3011 * ada-lang.c (ada_read_var_value): Delete function, move
3012 implementation to...
3013 (ada_language::read_var_value): ...here.
3014 (ada_language_data): Delete la_read_var_value initializer.
3015 * c-lang.c (c_language_data): Likewise.
3016 (cplus_language_data): Likewise.
3017 (minimal_language_data): Likewise.
3018 * d-lang.c (d_language_data): Likewise.
3019 * f-lang.c (f_language_data): Likewise.
3020 * findvar.c (default_read_var_value): Rename to...
3021 (language_defn::read_var_value): ...this.
3022 * findvar.c (read_var_value): Update header comment, and change to
3023 call member function instead of function pointer.
3024 * go-lang.c (go_language_data): Likewise.
3025 * language.c (unknown_language_data): Delete la_read_var_value
3026 initializer.
3027 (auto_language_data): Likewise.
3028 * language.h (struct language_data): Delete la_read_var_value
3029 field.
3030 (language_defn::read_var_value): New member function.
3031 (default_read_var_value): Delete declaration.
3032 * m2-lang.c (m2_language_data): Delete la_read_var_value
3033 initializer.
3034 * objc-lang.c (objc_language_data): Likewise.
3035 * opencl-lang.c (opencl_language_data): Likewise.
3036 * p-lang.c (pascal_language_data): Likewise.
3037 * rust-lang.c (rust_language_data): Likewise.
3038 * value.h (default_read_var_value): Delete declaration.
3039
3040 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3041
3042 * ada-lang.c (ada_print_array_index): Delete function, move
3043 implementation to...
3044 (ada_language::print_array_index): ...here.
3045 (ada_language_data): Delete la_print_array_index initializer.
3046 * c-lang.c (c_language_data): Likewise.
3047 (cplus_language_data): Likewise.
3048 (minimal_language_data): Likewise.
3049 * d-lang.c (d_language_data): Likewise.
3050 * f-lang.c (f_language_data): Likewise.
3051 * go-lang.c (go_language_data): Likewise.
3052 * language.c (default_print_array_index): Delete function, move
3053 implementation to...
3054 (language_defn::print_array_index): ...here.
3055 (unknown_language_data): Delete la_print_array_index initializer.
3056 (auto_language_data): Likewise.
3057 * language.h (struct language_data): Delete la_print_array_index
3058 field.
3059 (language_defn::print_array_index): New member function.
3060 (LA_PRINT_ARRAY_INDEX): Update.
3061 (default_print_array_index): Delete declaration.
3062 * m2-lang.c (m2_language_data): Delete la_print_array_index
3063 initializer.
3064 * objc-lang.c (objc_language_data): Likewise.
3065 * opencl-lang.c (opencl_language_data): Likewise.
3066 * p-lang.c (pascal_language_data): Likewise.
3067 * rust-lang.c (rust_language_data): Likewise.
3068
3069 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3070
3071 * gdb/ada-lang.c (ada_language_defn): Convert to...
3072 (ada_language_data): ...this.
3073 (class ada_language): New class.
3074 (ada_language_defn): New static global.
3075 * gdb/c-lang.c (c_language_defn): Convert to...
3076 (c_language_data): ...this.
3077 (class c_language): New class.
3078 (c_language_defn): New static global.
3079 (cplus_language_defn): Convert to...
3080 (cplus_language_data): ...this.
3081 (class cplus_language): New class.
3082 (cplus_language_defn): New static global.
3083 (asm_language_defn): Convert to...
3084 (asm_language_data): ...this.
3085 (class asm_language): New class.
3086 (asm_language_defn): New static global.
3087 (minimal_language_defn): Convert to...
3088 (minimal_language_data): ...this.
3089 (class minimal_language): New class.
3090 (minimal_language_defn): New static global.
3091 * gdb/d-lang.c (d_language_defn): Convert to...
3092 (d_language_data): ...this.
3093 (class d_language): New class.
3094 (d_language_defn): New static global.
3095 * gdb/f-lang.c (f_language_defn): Convert to...
3096 (f_language_data): ...this.
3097 (class f_language): New class.
3098 (f_language_defn): New static global.
3099 * gdb/go-lang.c (go_language_defn): Convert to...
3100 (go_language_data): ...this.
3101 (class go_language): New class.
3102 (go_language_defn): New static global.
3103 * gdb/language.c (unknown_language_defn): Remove declaration.
3104 (current_language): Initialize to nullptr, real initialization is
3105 moved to _initialize_language.
3106 (languages): Delete global.
3107 (language_defn::languages): Define.
3108 (set_language_command): Use language_defn::languages.
3109 (set_language): Likewise.
3110 (range_error): Likewise.
3111 (language_enum): Likewise.
3112 (language_def): Likewise.
3113 (add_set_language_command): Use language_def::languages for the
3114 language list, and language_def to lookup language pointers.
3115 (skip_language_trampoline): Use language_defn::languages.
3116 (unknown_language_defn): Convert to...
3117 (unknown_language_data): ...this.
3118 (class unknown_language): New class.
3119 (unknown_language_defn): New static global.
3120 (auto_language_defn): Convert to...
3121 (auto_language_data): ...this.
3122 (class auto_language): New class.
3123 (auto_language_defn): New static global.
3124 (language_gdbarch_post_init): Use language_defn::languages.
3125 (_initialize_language): Initialize current_language.
3126 * gdb/language.h (struct language_defn): Rename to...
3127 (struct language_data): ...this.
3128 (struct language_defn): New.
3129 (auto_language_defn): Delete.
3130 (unknown_language_defn): Delete.
3131 (minimal_language_defn): Delete.
3132 (ada_language_defn): Delete.
3133 (asm_language_defn): Delete.
3134 (c_language_defn): Delete.
3135 (cplus_language_defn): Delete.
3136 (d_language_defn): Delete.
3137 (f_language_defn): Delete.
3138 (go_language_defn): Delete.
3139 (m2_language_defn): Delete.
3140 (objc_language_defn): Delete.
3141 (opencl_language_defn): Delete.
3142 (pascal_language_defn): Delete.
3143 (rust_language_defn): Delete.
3144 * gdb/m2-lang.c (m2_language_defn): Convert to...
3145 (m2_language_data): ...this.
3146 (class m2_language): New class.
3147 (m2_language_defn): New static global.
3148 * gdb/objc-lang.c (objc_language_defn): Convert to...
3149 (objc_language_data): ...this.
3150 (class objc_language): New class.
3151 (objc_language_defn): New static global.
3152 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3153 (opencl_language_data): ...this.
3154 (class opencl_language): New class.
3155 (opencl_language_defn): New static global.
3156 * gdb/p-lang.c (pascal_language_defn): Convert to...
3157 (pascal_language_data): ...this.
3158 (class pascal_language): New class.
3159 (pascal_language_defn): New static global.
3160 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3161 language pointer, update comment format.
3162 * gdb/rust-lang.c (rust_language_defn): Convert to...
3163 (rust_language_data): ...this.
3164 (class rust_language): New class.
3165 (rust_language_defn): New static global.
3166
3167 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3168
3169 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3170 member variable.
3171 <m_stmt_at_address>: New member variable.
3172 (lnp_state_machine::record_line): Don't record some lines, update
3173 tracking of is_stmt at the same address.
3174 (lnp_state_machine::lnp_state_machine): Initialise new member
3175 variables.
3176
3177 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3178
3179 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3180 "-include gnu-nat-mig.h".
3181 * gnu-nat-mig.h: New file.
3182 * gnu-nat.c: Include "gnu-nat-mig.h".
3183 (exc_server, msg_reply_server, notify_server,
3184 process_reply_server): Remove declarations.
3185
3186 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3187
3188 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3189 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3190 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3191 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3192 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3193 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3194 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3195 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3196 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3197 to gnu_nat_target class.
3198 * gnu-nat.c: Likewise.
3199 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3200 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3201 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3202 object.
3203 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3204 instead of `gnu_target'.
3205
3206 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3207
3208 * i386-gnu-tdep.c: Include "gdbcore.h"
3209 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3210 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3211 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3212 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3213 i386_gnu_sigcontext_addr): New functions
3214 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3215 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3216 tdep.
3217
3218 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3219
3220 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3221 before fork_inferior call. Avoid calling it if target_is_pushed returns
3222 true.
3223
3224 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3225
3226 * gnu-nat.h (gnu_target): New variable declaration.
3227 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3228 gnu_target.
3229 * gnu-nat.c (gnu_target): New variable.
3230 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3231 add_thread_silent, and add_thread calls.
3232 (gnu_nat_target::create_inferior): Pass gnu_target to
3233 add_thread_silent, thread_change_ptid call.
3234 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3235 call.
3236
3237 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3238
3239 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3240 (gnu_nat_target::find_memory_regions): Remove unused
3241 `old_address' variable.
3242
3243 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3244
3245 * gnu-nat.c: Include "gdbarch.h".
3246
3247 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3248
3249 * reply_mig_hack.awk (Error return): Cast function through
3250 void *, to bypass compiler function call check.
3251
3252 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3253
3254 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3255 $(srcdir)/reply_mig_hack.awk.
3256
3257 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3258
3259 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3260
3261 2020-05-30 Jonny Grant <jg@jguk.org>
3262
3263 * configure.ac (ACX_BUGURL): change bug URL to https.
3264
3265 2020-05-30 Pedro Alves <palves@redhat.com>
3266
3267 * cp-support.c (replace_typedefs_template): New.
3268 (replace_typedefs_qualified_name): Handle
3269 DEMANGLE_COMPONENT_TEMPLATE.
3270
3271 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3272
3273 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3274 dwarf2/index-cache.h, dwarf2/index-write.c,
3275 dwarf2/index-write.h, dwarf2/line-header.c,
3276 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3277 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3278 variables and fields from `dwarf2_per_objfile` to just
3279 `per_objfile` throughout.
3280
3281 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3282
3283 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3284 <push_dwarf_reg_entry_value>: Add comment.
3285
3286 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3287 Keith Seitz <keiths@redhat.com>
3288
3289 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3290 instead of PyEval_ReleaseLock.
3291 (class gdbpy_gil): Move to earlier in file.
3292 (finalize_python): Set gdb_python_initialized.
3293 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3294 when not initialized.
3295
3296 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3297
3298 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3299 <push_dwarf_reg_entry_value>: Remove assert. Override
3300 per_objfile with caller_per_objfile.
3301
3302 2020-05-28 Tom de Vries <tdevries@suse.de>
3303
3304 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3305 PR gold/15646 workaround to symbol kind "type".
3306
3307 2020-05-27 Tom Tromey <tromey@adacore.com>
3308
3309 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3310
3311 2020-05-27 Tom Tromey <tromey@adacore.com>
3312
3313 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3314 Use htab_find_with_hash.
3315 <add_abbrev>: Remove "abbrev_number" parameter.
3316 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3317 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3318 (hash_abbrev): Add comment.
3319 (abbrev_table::lookup_abbrev): Move to header file.
3320 (abbrev_table::read): Update.
3321
3322 2020-05-27 Tom Tromey <tromey@adacore.com>
3323
3324 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3325 method.
3326 <canonical_name>: New member.
3327 <raw_name>: Rename from "name".
3328 (partial_die_info): Initialize canonical_name.
3329 (scan_partial_symbols): Check raw_name.
3330 (partial_die_parent_scope, partial_die_full_name)
3331 (add_partial_symbol, add_partial_subprogram)
3332 (add_partial_enumeration, load_partial_dies): Use "name" method.
3333 (partial_die_info::name): New method.
3334 (partial_die_info::read, guess_partial_die_structure_name)
3335 (partial_die_info::fixup): Update.
3336
3337 2020-05-27 Tom Tromey <tromey@adacore.com>
3338
3339 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3340 <get_ref_die_offset>: Inline.
3341 <get_ref_die_offset_complaint>: New method.
3342 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3343 (attribute::get_ref_die_offset_complaint): Rename from
3344 get_ref_die_offset. Just issue complaint.
3345
3346 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3347
3348 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3349
3350 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3351
3352 * exec.c (exec_file_attach): Use errno value of first openp failure.
3353
3354 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3355
3356 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3357 Don't close thread handle.
3358
3359 2020-05-27 Tom Tromey <tom@tromey.com>
3360 Simon Marchi <simon.marchi@efficios.com>
3361
3362 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3363 shared_ptr.
3364 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3365 member.
3366 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3367 dwarf2_per_bfd_objfile_data_key>: New globals.
3368 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3369 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3370 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3371 shared.
3372 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3373 short-circuit when sharing.
3374 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3375 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3376
3377 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3378
3379 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3380 to...
3381 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3382 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3383
3384 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3385
3386 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3387 build_name_components, find_name_components_bounds>:
3388 Add per_objfile parameter.
3389 (struct mapped_index) <symbol_name_at>: Likewise.
3390 (struct mapped_debug_names): Remove constructor.
3391 <dwarf2_per_objfile>: Remove field.
3392 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3393 (mapped_index_base::find_name_components_bounds,
3394 mapped_index_base::build_name_components,
3395 dw2_expand_symtabs_matching_symbol): Likewise.
3396 (class mock_mapped_index) <symbol_name_at>: Likewise.
3397 (check_match): Likewise.
3398 (check_find_bounds_finds): Likewise.
3399 (test_mapped_index_find_name_component_bounds): Update.
3400 (CHECK_MATCH): Update.
3401 (dw2_expand_symtabs_matching): Update.
3402 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3403 per_objfile parameter.
3404 <find_vec_in_debug_names>: Likewise.
3405 <m_per_objfile>: New field.
3406 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3407 parameter.
3408 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3409 (dw2_debug_names_iterator::next): Update.
3410 (dw2_debug_names_lookup_symbol): Update.
3411 (dw2_debug_names_expand_symtabs_for_function): Update.
3412 (dw2_debug_names_map_matching_symbols): Update.
3413 (dw2_debug_names_expand_symtabs_matching): Update.
3414 (dwarf2_read_debug_names): Update.
3415
3416 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3417
3418 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3419 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3420 move to dwarf2_per_objfile.
3421 <read_in_chain>: Remove.
3422 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3423 remove_all_cus, age_comp_units>: New methods.
3424 <m_dwarf2_cus>: New member.
3425 (struct dwarf2_per_cu_data) <cu>: Remove.
3426 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3427 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3428 moved to methods of dwarf2_per_objfile.
3429 (dwarf2_clear_marks): Remove.
3430 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3431 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3432 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3433 (dwarf2_per_objfile::remove_all_cus): New.
3434 (class free_cached_comp_units) <~free_cached_comp_units>:
3435 Update.
3436 (load_cu): Update.
3437 (dw2_do_instantiate_symtab): Adjust.
3438 (fill_in_sig_entry_from_dwo_entry): Adjust.
3439 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3440 (cutu_reader::cutu_reader): Likewise.
3441 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3442 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3443 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3444 and dwarf2_per_objfile::age_comp_units.
3445 (load_partial_comp_unit): Update.
3446 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3447 (process_queue): Likewise.
3448 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3449 backlink.
3450 (dwarf2_read_addr_index): Likewise.
3451 (follow_die_offset): Likewise.
3452 (dwarf2_fetch_die_loc_sect_off): Likewise.
3453 (dwarf2_fetch_constant_bytes): Likewise.
3454 (dwarf2_fetch_die_type_sect_off): Likewise.
3455 (follow_die_sig_1): Likewise.
3456 (load_full_type_unit): Likewise.
3457 (read_signatured_type): Likewise.
3458 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3459 (dwarf2_cu::~dwarf2_cu): Remove.
3460 (dwarf2_per_objfile::get_cu): New.
3461 (dwarf2_per_objfile::set_cu): New.
3462 (age_cached_comp_units): Rename to...
3463 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3464 to std::unordered_map.
3465 (free_one_cached_comp_unit): Rename to...
3466 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3467 to std::unordered_map.
3468 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3469 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3470 a dwarf2_per_objfile in data.
3471 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3472 (dwarf2_clear_marks): Remove.
3473
3474 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3475
3476 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3477 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3478 (init_tu_and_read_dwo_dies): Likewise.
3479 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3480 (cutu_reader::cutu_reader): Likewise.
3481 (load_partial_comp_unit): Likewise.
3482 (process_psymtab_comp_unit): Update.
3483 (build_type_psymtabs_1): Update.
3484 (process_skeletonless_type_unit): Update.
3485 (load_full_comp_unit): Update.
3486 (find_partial_die): Update.
3487 (dwarf2_read_addr_index): Update.
3488 (read_signatured_type): Update.
3489
3490 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3491
3492 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3493 m_header_read_in>: New fields.
3494 <get_header>: New method.
3495 * dwarf2/read.c (per_cu_header_read_in): Remove.
3496 (dwarf2_per_cu_data::get_header): New.
3497 (dwarf2_per_cu_data::addr_size): Update.
3498 (dwarf2_per_cu_data::offset_size): Update.
3499 (dwarf2_per_cu_data::ref_addr_size): Update.
3500
3501 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3502
3503 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3504 (dw2_do_instantiate_symtab): Update.
3505 (queue_and_load_all_dwo_tus): Change parameter from
3506 dwarf2_per_cu_data to dwarf2_cu.
3507 (dwarf2_fetch_die_loc_sect_off): Update.
3508 (dwarf2_fetch_constant_bytes): Update.
3509 (dwarf2_fetch_die_type_sect_off): Update.
3510
3511 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3512
3513 * dwarf2/read.c (process_full_comp_unit,
3514 process_full_type_unit): Remove per_cu, per_objfile paramters.
3515 Add dwarf2_cu parameter.
3516 (process_queue): Update.
3517
3518 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3519
3520 * dwarf2/read.c (create_cu_from_index_list): Replace
3521 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3522 (create_cus_from_index_list): Likewise.
3523 (create_cus_from_index): Likewise.
3524 (create_signatured_type_table_from_index): Likewise.
3525 (create_cus_from_debug_names_list): Likewise.
3526 (create_cus_from_debug_names): Likewise.
3527 (dwarf2_read_gdb_index): Update.
3528 (dwarf2_read_debug_names): Update.
3529
3530 2020-05-27 Tom Tromey <tom@tromey.com>
3531 Simon Marchi <simon.marchi@efficios.com>
3532
3533 * dwarf2/read.h (struct dwarf2_per_objfile)
3534 <get_type_for_signatured_type, set_type_for_signatured_type>:
3535 New methods.
3536 <m_type_map>: New member.
3537 (struct signatured_type) <type>: Remove.
3538 * dwarf2/read.c
3539 (dwarf2_per_objfile::get_type_for_signatured_type,
3540 dwarf2_per_objfile::set_type_for_signatured_type): New.
3541 (get_signatured_type): Use new methods.
3542
3543 2020-05-27 Tom Tromey <tom@tromey.com>
3544 Simon Marchi <simon.marchi@efficios.com>
3545
3546 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3547 (struct dwarf2_per_objfile) <type_units>: New member.
3548 <get_type_unit_group_unshareable>: New method.
3549 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3550 num_symtabs, symtabs>: Remove; move to
3551 type_unit_group_unshareable.
3552 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3553 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3554 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3555
3556 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3557
3558 * dwarf2/read.h (struct dwarf2_per_cu_data):
3559 <dwarf2_per_objfile>: Remove.
3560 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3561 dwarf2_per_objfile.
3562 (create_signatured_type_table_from_index): Likewise.
3563 (create_signatured_type_table_from_debug_names): Likewise.
3564 (create_debug_type_hash_table): Likewise.
3565 (fill_in_sig_entry_from_dwo_entry): Likewise.
3566 (create_type_unit_group): Likewise.
3567 (read_comp_units_from_section): Likewise.
3568 (create_cus_hash_table): Likewise.
3569
3570 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3571
3572 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3573 dwarf2_per_cu_data::dwarf2_per_objfile.
3574 (compute_compunit_symtab_includes): Likewise.
3575 (dwarf2_cu::start_symtab): Likewise.
3576
3577 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3578
3579 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3580 parameter.
3581 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3582 (read_namespace_alias): Update.
3583 (lookup_die_type): Update.
3584 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3585 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3586 Update.
3587 (disassemble_dwarf_expression): Update.
3588
3589 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3590
3591 * dwarf2/read.h (struct dwarf2_queue_item): Add
3592 dwarf2_per_objfile parameter, assign new parameter.
3593 <per_objfile>: New field.
3594 * dwarf2/read.c (free_one_cached_comp_unit): Add
3595 dwarf2_per_objfile parameter.
3596 (queue_comp_unit): Likewise.
3597 (dw2_do_instantiate_symtab): Update.
3598 (process_psymtab_comp_unit): Update.
3599 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3600 (process_imported_unit_die): Update.
3601 (queue_and_load_dwo_tu): Update.
3602 (follow_die_offset): Update.
3603 (follow_die_sig_1): Update.
3604
3605 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3606
3607 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3608 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3609 (read_call_site_scope): Assign per_objfile.
3610 (dwarf2_per_cu_data::objfile): Remove.
3611 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3612 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3613 dwarf2_per_objfile parameter.
3614 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3615 dwarf2_per_objfile parameter.
3616 (dwarf_expr_reg_to_entry_parameter): Add output
3617 dwarf2_per_objfile parameter.
3618 (locexpr_get_frame_base): Update.
3619 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3620 <push_dwarf_reg_entry_value>: Update.
3621 <call_site_to_target_addr>: Update.
3622 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3623 parameter.
3624 (value_of_dwarf_reg_entry): Update.
3625 (rw_pieced_value): Update.
3626 (indirect_synthetic_pointer): Update.
3627 (dwarf2_evaluate_property): Update.
3628 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3629 parameter.
3630 (locexpr_read_variable): Update.
3631 (locexpr_get_symbol_read_needs): Update.
3632 (loclist_read_variable): Update.
3633
3634 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3635
3636 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3637 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3638 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3639 parameter.
3640 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3641 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3642 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3643 parameter.
3644 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3645 sect_variable_value): Add dwarf2_per_objfile parameter.
3646 (class dwarf_evaluate_loc_desc) <dwarf_call,
3647 dwarf_variable_value>: Update.
3648 (fetch_const_value_from_synthetic_pointer): Add
3649 dwarf2_per_objfile parameter.
3650 (fetch_const_value_from_synthetic_pointer): Update.
3651 (coerced_pieced_ref): Update.
3652 (class symbol_needs_eval_context) <dwarf_call,
3653 dwarf_variable_value>: Update.
3654 (dwarf2_compile_expr_to_ax): Update.
3655
3656 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3657
3658 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3659 parameter.
3660 (dwarf2_evaluate_loc_desc_full): Update.
3661
3662 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3663
3664 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3665 parameter.
3666 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3667 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3668 dwarf2_per_objfile parameter.
3669 (decode_debug_loc_dwo_addresses): Likewise.
3670 (dwarf2_find_location_expression): Update.
3671 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3672 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3673 parameter.
3674 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3675 parameter.
3676 (locexpr_describe_location_1): Likewise.
3677 (locexpr_describe_location): Update.
3678
3679 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3680
3681 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3682 Remove.
3683 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3684 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3685 (dwarf2_compile_property_to_c): Update.
3686 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3687 use text offset from objfile.
3688 (locexpr_tracepoint_var_ref): Update.
3689 (locexpr_generate_c_location): Update.
3690 (loclist_describe_location): Update.
3691 (loclist_tracepoint_var_ref): Update.
3692 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3693 dwarf2_per_objfile parameter.
3694 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3695 use text offset from objfile.
3696 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3697
3698 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3699
3700 * dwarf2/expr.h (struct dwarf_expr_context)
3701 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3702 <offset>: Remove.
3703 <per_objfile>: New member.
3704 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3705 dwarf2_per_objfile parameter. Don't set offset, set
3706 per_objfile.
3707 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3708 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3709 a dwarf2_per_objfile object instead of an offset.
3710 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3711 constructor.
3712 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3713 to dwarf2_expr_executor constructor. Don't set offset.
3714 (dwarf2_fetch_cfa_info): Update.
3715 (struct dwarf2_frame_cache) <text_offset>: Remove.
3716 <per_objfile>: New field.
3717 (dwarf2_frame_cache): Update.
3718 (dwarf2_frame_prev_register): Update.
3719 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3720 <dwarf_evaluate_loc_desc>: Add constructor.
3721 (dwarf2_evaluate_loc_desc_full): Update.
3722 (dwarf2_locexpr_baton_eval): Update.
3723 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3724 Add constructor.
3725 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3726
3727 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3730 addr_sized_int_type>: Move to dwarf2_cu.
3731 <int_type>: Move to dwarf2_per_objfile.
3732 (struct dwarf2_per_objfile) <int_type>: Move here.
3733 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3734 addr_sized_int_type>: Move here.
3735 (read_func_scope): Update.
3736 (read_array_type): Update.
3737 (read_tag_string_type): Update.
3738 (attr_to_dynamic_prop): Update.
3739 (dwarf2_per_cu_data::int_type): Rename to...
3740 (dwarf2_per_objfile::int_type): ... this.
3741 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3742 (dwarf2_cu::addr_sized_int_type): ... this.
3743 (read_subrange_type): Update.
3744 (dwarf2_per_cu_data::addr_type): Rename to...
3745 (dwarf2_cu::addr_type): ... this.
3746 (set_die_type): Update.
3747
3748 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3749
3750 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3751 data through per_cu->cu.
3752
3753 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3754
3755 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3756 dwarf2_per_cu_data parameter fo dwarf2_cu.
3757 (lookup_dwo_type_unit): Likewise.
3758 (read_cutu_die_from_dwo): Likewise.
3759 (lookup_dwo_unit): Likewise.
3760 (open_and_init_dwo_file): Likewise.
3761 (lookup_dwo_cutu): Likewise.
3762 (lookup_dwo_comp_unit): Likewise.
3763 (lookup_dwo_type_unit): Likewise.
3764 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3765 (cutu_reader::cutu_reader): Update.
3766
3767 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3770 parameter.
3771 (process_full_type_unit): Likewise.
3772 (process_queue): Update.
3773
3774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3775
3776 * dwarf2/read.c (recursively_compute_inclusions): Add
3777 dwarf2_per_objfile parameter.
3778 (compute_compunit_symtab_includes): Likewise.
3779 (process_cu_includes): Update.
3780
3781 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3784 parameter.
3785 (create_type_unit_group): Update.
3786 (process_psymtab_comp_unit_reader): Update.
3787 (build_type_psymtabs_reader): Update.
3788
3789 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3790
3791 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3792 object through m_this_cu->cu.
3793
3794 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3795
3796 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3797 the info parameter.
3798 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3799
3800 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3801
3802 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3803 per_objfile parameter.
3804 (load_full_type_unit): Add per_objfile parameter.
3805 (read_signatured_type): Likewise.
3806 (load_full_comp_unit): Likewise.
3807 (load_cu): Likewise.
3808 (dw2_do_instantiate_symtab): Likewise.
3809 (dw2_get_file_names): Likewise.
3810 (dw2_map_symtabs_matching_filename): Update.
3811 (dw_expand_symtabs_matching_file_matcher): Update.
3812 (dw2_map_symbol_filenames): Update.
3813 (process_psymtab_comp_unit): Add per_objfile parameter.
3814 (build_type_psymtabs_1): Update.
3815 (process_skeletonless_type_unit): Update.
3816 (dwarf2_build_psymtabs_hard): Update.
3817 (load_partial_comp_unit): Add per_objfile parameter.
3818 (scan_partial_symbols): Update.
3819 (load_full_comp_unit): Add per_objfile parameter.
3820 (process_imported_unit_die): Update.
3821 (create_cus_hash_table): Update.
3822 (find_partial_die): Update.
3823 (dwarf2_read_addr_index): Update.
3824 (follow_die_offset): Update.
3825 (dwarf2_fetch_die_loc_sect_off): Update.
3826 (dwarf2_fetch_constant_bytes): Update.
3827 (dwarf2_fetch_die_type_sect_off): Update.
3828 (follow_die_sig_1): Update.
3829 (load_full_type_unit): Add per_objfile parameter.
3830 (read_signatured_type): Likewise.
3831
3832 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3835 of objfile_name.
3836
3837 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3838
3839 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3840 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3841 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3842 field.
3843 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3844 (create_cus_from_index): Update.
3845 (dwarf2_read_gdb_index): Update.
3846 (create_cus_from_debug_names): Update.
3847 (dwarf2_read_debug_names): Update.
3848 (get_abbrev_section_for_cu): Update.
3849 (create_all_comp_units): Update.
3850 (read_attribute_value): Update.
3851 (get_debug_line_section): Update.
3852 * dwarf2/index-cache.c (index_cache::store): Update.
3853 * dwarf2/index-write.c (save_gdb_index_command): Update.
3854 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3855
3856 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3857
3858 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3859 member.
3860 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3861 dwarf2_per_cu_data::per_bfd.
3862 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3863 (create_type_unit_group): Likewise.
3864 (queue_comp_unit): Remove reference to
3865 per_cu->dwarf2_per_objfile.
3866 (maybe_queue_comp_unit): Likewise.
3867 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3868 (create_cus_hash_table): Assign new field.
3869
3870 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3871
3872 * dwarf2/read.c: Replace
3873 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3874 dwarf2_cu->per_objfile throughout.
3875
3876 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3879 parameter, don't use per_cu->dwarf2_per_objfile.
3880 (dw2_instantiate_symtab): Likewise.
3881 (dw2_find_last_source_symtab): Update.
3882 (dw2_map_expand_apply): Update.
3883 (dw2_lookup_symbol): Update.
3884 (dw2_expand_symtabs_for_function): Update.
3885 (dw2_expand_all_symtabs): Update.
3886 (dw2_expand_symtabs_with_fullname): Update.
3887 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3888 don't use per_cu->dwarf2_per_objfile.
3889 (dw2_expand_marked_cus): Update.
3890 (dw2_find_pc_sect_compunit_symtab): Update.
3891 (dw2_debug_names_lookup_symbol): Update.
3892 (dw2_debug_names_expand_symtabs_for_function): Update.
3893 (dw2_debug_names_map_matching_symbols): Update.
3894 (dwarf2_psymtab::expand_psymtab): Update.
3895
3896 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3897
3898 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3899 <per_objfile>: New member.
3900 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3901 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3902 call to dwarf2_cu.
3903 (cutu_reader::cutu_reader): Update.
3904 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3905
3906 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3909 struct dwarf2_per_objfile.
3910 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3911 dwarf2_per_bfd.
3912 * dwarf2/read.c (set_die_type): Update.
3913 (get_die_type_at_offset): Update.
3914
3915 2020-05-27 Tom Tromey <tom@tromey.com>
3916 Simon Marchi <simon.marchi@efficios.com>
3917
3918 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3919 method.
3920 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3921 get_symtab, set_symtab>: New methods.
3922 <m_symtabs>: New field.
3923 (struct dwarf2_psymtab): Derive from partial_symtab.
3924 <readin_p, get_compunit_symtab>: Declare methods.
3925 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3926 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3927 New methods.
3928 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3929 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3930 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3931 (dw2_symtab_iter_next, dw2_print_stats)
3932 (dw2_expand_symtabs_with_fullname)
3933 (dw2_expand_symtabs_matching_one)
3934 (dw_expand_symtabs_matching_file_matcher)
3935 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3936 (dw2_debug_names_iterator::next)
3937 (dw2_debug_names_map_matching_symbols)
3938 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3939 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3940 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3941 New methods.
3942 (get_compunit_symtab, process_full_comp_unit)
3943 (process_full_type_unit): Update.
3944 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3945
3946 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3947
3948 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3949 then introduce a new dwarf2_per_objfile type.
3950 <read_line_string>: Move to the new dwarf2_per_objfile type.
3951 <objfile>: Likewise.
3952 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3953 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3954 dwarf2_per_objfile->per_bfd.
3955 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3956 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3957 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3958 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3959 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3960 (dwarf2_per_objfile::locate_sections): Rename to...
3961 (dwarf2_per_bfd::locate_sections): ... this.
3962 (dwarf2_per_objfile::get_cutu): Rename to...
3963 (dwarf2_per_bfd::get_cutu): ... this.
3964 (dwarf2_per_objfile::get_cu): Rename to...
3965 (dwarf2_per_bfd::get_cu): ... this.
3966 (dwarf2_per_objfile::get_tu): Rename to...
3967 (dwarf2_per_bfd::get_tu): ... this.
3968 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3969 (dwarf2_per_bfd::allocate_per_cu): ... this.
3970 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3971 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3972 (get_gdb_index_contents_ftype): Change parameter from
3973 dwarf2_per_objfile to dwarf2_per_bfd.
3974 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3975 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3976
3977 2020-05-27 Tom Tromey <tom@tromey.com>
3978 Simon Marchi <simon.marchi@efficios.com>
3979
3980 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3981 (allocate_piece_closure): Set "per_objfile" member.
3982 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3983 (locexpr_describe_location, loclist_describe_location): Use new
3984 member.
3985 * dwarf2/read.c (read_call_site_scope)
3986 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3987 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3988 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3989 handle_data_member_location): Set per_objfile member.
3990 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3991 member.
3992 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3993
3994 2020-05-27 Tom Tromey <tom@tromey.com>
3995
3996 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3997 allocate_signatured_type>: Declare new methods.
3998 <m_num_psymtabs>: New member.
3999 (struct dwarf2_per_cu_data) <index>: New member.
4000 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4001 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4002 (create_cu_from_index_list): Use allocate_per_cu.
4003 (create_signatured_type_table_from_index)
4004 (create_signatured_type_table_from_debug_names)
4005 (create_debug_type_hash_table, add_type_unit)
4006 (read_comp_units_from_section): Use allocate_signatured_type.
4007
4008 2020-05-27 Tom Tromey <tom@tromey.com>
4009
4010 * psymtab.c (partial_map_expand_apply)
4011 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4012 (psym_lookup_global_symbol_language)
4013 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4014 (psym_print_stats, psym_expand_symtabs_for_function)
4015 (psym_map_symbol_filenames, psym_map_matching_symbols)
4016 (psym_expand_symtabs_matching)
4017 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4018 (maintenance_check_psymtabs): Update.
4019 * psympriv.h (struct partial_symtab) <readin_p,
4020 get_compunit_symtab>: Add objfile parameter.
4021 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4022 Likewise.
4023 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4024 get_compunit_symtab>: Likewise.
4025 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4026
4027 2020-05-27 Tom Tromey <tom@tromey.com>
4028
4029 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4030 member.
4031 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4032 (create_cu_from_index_list)
4033 (create_signatured_type_table_from_index)
4034 (create_signatured_type_table_from_debug_names)
4035 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4036 (dwarf2_create_include_psymtab)
4037 (create_debug_type_hash_table, add_type_unit)
4038 (create_type_unit_group, read_comp_units_from_section)
4039 (dwarf2_compute_name, create_cus_hash_table)
4040 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4041 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4042 obstack.
4043 (dw2_get_real_path): Likewise. Change argument to
4044 dwarf2_per_objfile.
4045
4046 2020-05-27 Luis Machado <luis.machado@linaro.org>
4047
4048 PR tdep/26000
4049 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4050 for ldrd (immediate).
4051
4052 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4053
4054 * command.h: Add comment giving the name of class_tui.
4055 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4056 create the fake command for the help for class_tui.
4057
4058 2020-05-26 Tom Tromey <tromey@adacore.com>
4059
4060 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4061 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4062 (val_atr): New function.
4063 (value_val_atr): Use it.
4064 * ada-valprint.c (print_optional_low_bound): Change low bound
4065 handling for enums.
4066 (val_print_packed_array_elements): Don't call discrete_position.
4067 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4068 discrete_position for enum types.
4069 * language.c (default_print_array_index): Change type.
4070 * language.h (struct language_defn) <la_print_array_index>: Add
4071 index_type parameter, change type of index_value.
4072 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4073 (default_print_array_index): Update.
4074 * valprint.c (maybe_print_array_index): Don't call
4075 value_from_longest. Update.
4076 (value_print_array_elements): Don't call discrete_position.
4077
4078 2020-05-26 Tom Tromey <tromey@adacore.com>
4079
4080 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4081 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4082
4083 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4084
4085 PR gdb/13519
4086 * avr-tdep.c (avr_integer_to_address): Return data or code
4087 address accordingly to the second 'type' argument of the
4088 function.
4089
4090 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4091
4092 * infcmd.c, inferior.h: (construct_inferior_arguments):
4093 Moved function from here to gdbsupport/common-inferior.{h,cc}
4094
4095 2020-05-23 Tom Tromey <tom@tromey.com>
4096
4097 Revert commit eca1f90c:
4098 * NEWS: Remove entry for completion styling.
4099 * completer.c (_rl_completion_prefix_display_length): Move
4100 declaration later.
4101 (gdb_fnprint): Revert.
4102 (gdb_display_match_list_1): Likewise.
4103 * cli/cli-style.c (completion_prefix_style)
4104 (completion_difference_style, completion_suffix_style): Remove.
4105 (_initialize_cli_style): Revert.
4106 * cli/cli-style.h (completion_prefix_style)
4107 (completion_difference_style, completion_suffix_style): Don't
4108 declare.
4109
4110 2020-05-24 Pedro Alves <palves@redhat.com>
4111
4112 * symtab.c (completion_list_add_name): Return boolean indication
4113 of whether the symbol matched.
4114 (completion_list_add_symbol): Don't try to remove C++ aliases if
4115 the symbol didn't match in the first place.
4116 * symtab.h (completion_list_add_name): Return bool.
4117
4118 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4119
4120 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4121 type::field.
4122
4123 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4124
4125 GDB 9.2 released.
4126
4127 2020-05-23 Tom Tromey <tom@tromey.com>
4128
4129 * NEWS: Add entry for completion styling.
4130 * completer.c (_rl_completion_prefix_display_length): Move
4131 declaration earlier.
4132 (gdb_fnprint): Use completion_style.
4133 (gdb_display_match_list_1): Likewise.
4134 * cli/cli-style.c (completion_prefix_style)
4135 (completion_difference_style, completion_suffix_style): New
4136 globals.
4137 (_initialize_cli_style): Register new globals.
4138 * cli/cli-style.h (completion_prefix_style)
4139 (completion_difference_style, completion_suffix_style): Declare.
4140
4141 2020-05-23 Pedro Alves <palves@redhat.com>
4142
4143 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4144 (parse_escape): Use ISDIGIT instead of isdigit.
4145 (puts_debug): Use gdb_isprint instead of isprint.
4146 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4147 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4148 ISSPACE instead of isspace.
4149 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4150 instead of isspace.
4151 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4152 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4153 instead of isxdigit and ISDIGIT instead of isdigit.
4154
4155 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4156
4157 * gdbtypes.h (struct type) <field>: New method.
4158 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4159 or type::field.
4160
4161 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4162
4163 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4164 (TYPE_FIELDS): Use type::fields. Change all call sites that
4165 modify the propery to use type::set_fields instead.
4166
4167 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4170 type::num_fields instead.
4171
4172 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4173
4174 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4175 methods.
4176 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4177 that modify the number of fields to use type::set_num_fields
4178 instead.
4179
4180 2020-05-22 Tom Tromey <tromey@adacore.com>
4181
4182 * compile/compile-object-load.h (munmap_list_free): Don't
4183 declare.
4184
4185 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4186
4187 * annotate.c (annotate_source_line): Update return type, add call
4188 to update current symtab and line.
4189 * annotate.h (annotate_source_line): Update return type, and
4190 extend header comment.
4191 * source.c (info_line_command): Check annotation_level before
4192 calling annotate_source_line.
4193 * stack.c (print_frame_info): If calling annotate_source_line
4194 returns true, then don't print any other source line information.
4195
4196 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4199
4200 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * coffread.c (patch_type): Remove NULL check before xfree.
4203 * corefile.c (set_gnutarget): Likewise.
4204 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4205 * exec.c (build_section_table): Likewise.
4206 * remote.c (remote_target::pass_signals): Likewise.
4207 * utils.c (n_spaces): Likewise.
4208 * cli/cli-script.c (document_command): Likewise.
4209 * i386-windows-tdep.c (core_process_module_section): Likewise.
4210 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4211
4212 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4213
4214 * symfile.c (reread_symbols): Clear objfile's section_offsets
4215 vector and section indices, re-compute them by calling
4216 sym_offsets.
4217
4218 2020-05-20 Tom Tromey <tromey@adacore.com>
4219
4220 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4221 (desc_one_bound, desc_index_type): Compute field name.
4222
4223 2020-05-20 Tom de Vries <tdevries@suse.de>
4224
4225 PR symtab/25833
4226 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4227
4228 2020-05-20 Alan Modra <amodra@gmail.com>
4229
4230 PR 25993
4231 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4232 bfd_set_filename.
4233 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4234 passed to bfd_set_filename.
4235 * symfile-mem.c (add_vsyscall_page): Likewise for string
4236 passed to symbol_file_add_from_memory.
4237 (symbol_file_add_from_memory): Make name param a const char* and
4238 don't strdup.
4239
4240 2020-05-20 Alan Modra <amodra@gmail.com>
4241
4242 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4243 rather than accessing bfd->filename directly.
4244 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4245 and use bfd_section_name.
4246 * dwarf2/frame.c (decode_frame_entry): Likewise.
4247 * exec.c (exec_set_section_address): Likewise.
4248 * solib-aix.c (solib_aix_bfd_open): Likewise.
4249 * stap-probe.c (get_stap_base_address): Likewise.
4250 * symfile.c (reread_symbols): Likewise.
4251
4252 2020-05-19 Tom Tromey <tromey@adacore.com>
4253
4254 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4255
4256 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4257
4258 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4259
4260 2020-05-19 Pedro Alves <palves@redhat.com>
4261
4262 * NEWS (set exec-file-mismatch): Adjust entry.
4263 * exec.c: Include "build-id.h".
4264 (validate_exec_file): Try to match build IDs instead of filenames.
4265 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4266 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4267 and pass down 'warn_if_slow'.
4268 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4269 gdb_bfd_open_closure to pass it down.
4270 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4271
4272 2020-05-19 Pedro Alves <palves@redhat.com>
4273
4274 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4275 * target.c (target_fileio_open_1): Rename to target_fileio_open
4276 and make extern. Use bool.
4277 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4278 (target_fileio_read_alloc_1): Adjust.
4279 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4280 (target_fileio_open_warn_if_slow): Delete declaration.
4281
4282 2020-05-19 Pedro Alves <palves@redhat.com>
4283
4284 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4285 Adjust all callers.
4286
4287 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4288
4289 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4290 whether disp is negative.
4291
4292 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4293
4294 * symfile.h (struct symfile_segment_data)
4295 <~symfile_segment_data>: Remove.
4296 <segment_info>: Change to std::vector.
4297 * symfile.c (default_symfile_segments): Update.
4298 * elfread.c (elf_symfile_segments): Update.
4299
4300 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4301
4302 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4303 <segments>: New.
4304 <segment_bases, segment_sizes>: Remove.
4305 * symfile.c (default_symfile_segments): Update.
4306 * elfread.c (elf_symfile_segments): Update.
4307 * remote.c (remote_target::get_offsets): Update.
4308 * solib-target.c (solib_target_relocate_section_addresses):
4309 Update.
4310
4311 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * symfile.h (struct symfile_segment_data): Initialize fields.
4314 <~symfile_segment_data>: Add.
4315 (symfile_segment_data_up): New.
4316 (struct sym_fns) <sym_segments>: Return a
4317 symfile_segment_data_up.
4318 (default_symfile_segments): Return a symfile_segment_data_up.
4319 (free_symfile_segment_data): Remove.
4320 (get_symfile_segment_data): Return a symfile_segment_data_up.
4321 * symfile.c (default_symfile_segments): Likewise.
4322 (get_symfile_segment_data): Likewise.
4323 (free_symfile_segment_data): Remove.
4324 (symfile_find_segment_sections): Update.
4325 * elfread.c (elf_symfile_segments): Return a
4326 symfile_segment_data_up.
4327 * remote.c (remote_target::get_offsets): Update.
4328 * solib-target.c (solib_target_relocate_section_addresses):
4329 Update.
4330 * symfile-debug.c (debug_sym_segments): Return a
4331 symfile_segment_data_up.
4332
4333 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4334
4335 PR build/25981
4336 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4337 Hardcode register numbers.
4338
4339 PR build/25981
4340 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4341 procfs_find_LDT_entry): Remove.
4342 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4343 procfs_find_LDT_entry): Remove.
4344 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4345 Remove.
4346
4347 2020-05-17 Pedro Alves <palves@redhat.com>
4348 Andrew Burgess <andrew.burgess@embecosm.com>
4349 Keno Fischer <keno@juliacomputing.com>
4350
4351 PR gdb/25741
4352 * breakpoint.c (build_target_condition_list): Update comments.
4353 (build_target_command_list): Update comments and skip matching
4354 locations.
4355 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4356 a separate function. Simplify "set breakpoint auto-hw off"
4357 handling.
4358 (insert_breakpoints): Update comment.
4359 (tracepoint_locations_match): New parameter. For breakpoints,
4360 compare location types too, if the caller wants to.
4361 (handle_automatic_hardware_breakpoints): New functions.
4362 (bp_location_is_less_than): Also sort by location type and
4363 hardware breakpoint length.
4364 (update_global_location_list): Handle "set breakpoint auto-hw on"
4365 here.
4366 (update_breakpoint_locations): Ask breakpoint_locations_match to
4367 ignore location types.
4368
4369 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4370
4371 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4372 type::name instead.
4373
4374 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4375
4376 * gdbtypes.h (struct type) <name, set_name>: New methods.
4377 (TYPE_CODE): Use type::name. Change all call sites used to set
4378 the name to use type::set_name instead.
4379
4380 2020-05-16 Tom Tromey <tom@tromey.com>
4381
4382 * top.c (quit_force): Update.
4383 * infrun.c (handle_no_resumed): Update.
4384 * top.h (all_uis): New function.
4385 (ALL_UIS): Remove.
4386
4387 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4388
4389 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4390
4391 2020-05-16 Pedro Alves <palves@redhat.com>
4392
4393 * ia64-linux-nat.c
4394 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4395 Declare method.
4396 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4397
4398 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4399
4400 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4401 (sparc64_adi_info): Likewise.
4402
4403 2020-05-15 Tom Tromey <tom@tromey.com>
4404
4405 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4406 block_objfile.
4407 (lookup_objfile_from_block): Remove.
4408 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4409 (lookup_global_symbol): Use block_objfile.
4410 * symtab.h (lookup_objfile_from_block): Don't declare.
4411 * printcmd.c (clear_dangling_display_expressions): Use
4412 block_objfile.
4413 * parse.c (operator_check_standard): Use block_objfile.
4414
4415 2020-05-15 Tom Tromey <tom@tromey.com>
4416
4417 * language.c (language_alloc_type_symbol): Set
4418 SYMBOL_SECTION.
4419 * symtab.c (initialize_objfile_symbol): Remove.
4420 (allocate_symbol): Remove.
4421 (allocate_template_symbol): Remove.
4422 * dwarf2/read.c (fixup_go_packaging): Use "new".
4423 (new_symbol): Use "new".
4424 (read_variable): Don't call initialize_objfile_symbol. Use
4425 "new".
4426 (read_func_scope): Use "new".
4427 * xcoffread.c (process_xcoff_symbol): Don't call
4428 initialize_objfile_symbol.
4429 (SYMBOL_DUP): Remove.
4430 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4431 "new".
4432 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4433 (allocate_template_symbol): Don't declare.
4434 (struct symbol): Add copy constructor. Change defaults.
4435 * jit.c (finalize_symtab): Use "new".
4436 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4437 Use "new".
4438 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4439 (common_block_end): Use "new".
4440 * mdebugread.c (parse_symbol): Use "new".
4441 (new_symbol): Likewise.
4442
4443 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4444
4445 * NEWS: Mention changes to help and apropos.
4446
4447 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4448
4449 * command.h (enum command_class): Improve comments, document
4450 that class_alias is for user-defined aliases, give the class
4451 name for each class, remove unused class_xdb.
4452 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4453 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4454 by a precise class.
4455 * infcmd.c (_initialize_infcmd): Likewise.
4456 * reverse.c (_initialize_reverse): Likewise.
4457 * stack.c (_initialize_stack): Likewise.
4458 * symfile.c (_initialize_symfile): Likewise.
4459 * tracepoint.c (_initialize_tracepoint): Likewise.
4460
4461 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4462
4463 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4464 when their aliased command is traversed.
4465 (help_cmd): Add fput_command_names_styled call to
4466 output command name and aliases when command has an alias.
4467
4468 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4469
4470 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4471 * cli/cli-decode.c (help_cmd_list): Declare as static,
4472 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4473 a command together with the command.
4474 (fput_command_name_styled, fput_command_names_styled): New functions.
4475 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4476 fput_command_name_styled.
4477 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4478 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4479
4480 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4481
4482 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4483 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4484 * command.h (cmd_show_list): Likewise.
4485 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4486 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4487
4488 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4489
4490 * unittests/command-def-selftests.c (traverse_command_structure):
4491 Verify all commands of a list have the same prefix command and
4492 that only the top cmdlist commands have a null prefix.
4493
4494 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4495
4496 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4497 as prefix, not one of its aliases.
4498 (set_cmd_prefix): Remove.
4499 (do_add_cmd): Centralize the setting of the prefix of a command, when
4500 command is defined after its full chain of prefix commands.
4501 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4502 (add_setshow_cmd_full): Likewise.
4503 (update_prefix_field_of_prefixed_commands): New function.
4504 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4505 update_prefix_field_of_prefixed_commands.
4506 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4507 addresses of remote_set_cmdlist and remote_show_cmdlist given
4508 as argument, not the address of an argument.
4509 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4510 * gdb/remote.c (_initialize_remote): Likewise.
4511
4512 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4513
4514 * cli/cli-cmds.c (alias_command): Check for an existing alias
4515 using lookup_cmd_composition, as valid_command_p is too strict
4516 and forbids aliases that are the prefix of an existing alias
4517 or command.
4518 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4519 command is properly recognised as a valid command.
4520
4521 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4522
4523 * unittests/help-doc-selftests.c: Rename to
4524 unittests/command-def-selftests.c
4525 * unittests/command-def-selftests.c (help_doc_tests): Update some
4526 comments.
4527 (command_structure_tests, traverse_command_structure): New namespace
4528 and function.
4529 (command_structure_invariants_tests): New function.
4530 (_initialize_command_def_selftests) Renamed from
4531 _initialize_help_doc_selftests, register command_structure_invariants
4532 selftest.
4533
4534 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4535
4536 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4537 an alias of 'show'.
4538
4539 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4540
4541 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4542 ada_is_fixed_point_type. Update all callers.
4543 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4544 all callers.
4545 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4546 Update all callers.
4547 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4548 print_fixed_point_type. Update all callers.
4549 * ada-valprint.c (ada_value_print_num): Replace call to
4550 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4551
4552 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4553
4554 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4555 processors.
4556 (cpu_supports_bts): Add CV_AMD case.
4557
4558 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4559 Simon Marchi <simon.marchi@efficios.com>
4560
4561 * infrun.c (stop_all_threads): Collect multiple wait events at
4562 each pass.
4563
4564 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4567 type::code instead.
4568
4569 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4570
4571 * gdbtypes.h (struct type) <code, set_code>: New methods.
4572 (TYPE_CODE): Use type::code. Change all call sites used to set
4573 the code to use type::set_code instead.
4574
4575 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4576 Tom de Vries <tdevries@suse.de>
4577 Pedro Alves <palves@redhat.com>
4578
4579 PR threads/25478
4580 * infrun.c (stop_all_threads): Do NOT ignore
4581 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4582 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4583 received.
4584 (handle_no_resumed): Remove code handling a live inferior with no
4585 threads.
4586 * remote.c (has_single_non_exited_thread): New.
4587 (remote_target::update_thread_list): Do not delete a thread if is
4588 the last thread of the process.
4589 * thread.c (thread_select): Call delete_exited_threads instead of
4590 prune_threads.
4591
4592 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4593
4594 * infrun.c (stop_all_threads): Enable/disable thread events of all
4595 targets. Move a debug message denoting the end of the function
4596 into the SCOPED_EXIT block.
4597
4598 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4599
4600 * process-stratum-target.h: Include <set>.
4601 (all_non_exited_process_targets, switch_to_target_no_thread): New
4602 function declarations.
4603 * process-stratum-target.c (all_non_exited_process_targets)
4604 (switch_to_target_no_thread): New function implementations.
4605
4606 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4607
4608 * infrun.c (handle_inferior_event): Extract out a piece of code
4609 into...
4610 (mark_non_executing_threads): ...this new function.
4611
4612 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4613
4614 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4615 use.
4616
4617 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4618
4619 * regcache.c (regcache_read_pc_protected): New function
4620 implementation that returns 0 if the PC cannot read via
4621 'regcache_read_pc'.
4622 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4623 instead of 'regcache_read_pc'.
4624 (keep_going_pass_signal): Ditto.
4625
4626 2020-05-13 Tom Tromey <tromey@adacore.com>
4627
4628 * ada-lang.c (align_value): Remove.
4629 (ada_template_to_fixed_record_type_1): Use align_up.
4630
4631 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4632
4633 * async-event.c: Update the copyright year.
4634 * async-event.h: Update the copyright year.
4635
4636 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4637
4638 * objfiles.h (is_addr_in_objfile,
4639 shared_objfile_contains_address_p): Return bool.
4640 * objfile.c (is_addr_in_objfile,
4641 shared_objfile_contains_address_p): Return bool.
4642
4643 2020-05-11 Tom Tromey <tromey@adacore.com>
4644
4645 * cli/cli-cmds.c (info_command): Restore.
4646 (_initialize_cli_cmds): Use add_prefix_command for "info".
4647 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4648
4649 2020-05-11 Tom Tromey <tromey@adacore.com>
4650
4651 * ada-lang.c (ada_value_primitive_field): Now public.
4652 * ada-lang.h (ada_value_primitive_field): Declare.
4653 * ada-valprint.c (print_field_values): Use
4654 ada_value_primitive_field for wrapper fields.
4655
4656 2020-05-11 Tom de Vries <tdevries@suse.de>
4657
4658 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4659 MODULE_DOMAIN.
4660
4661 2020-05-11 Tom de Vries <tdevries@suse.de>
4662
4663 PR symtab/25941
4664 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4665 with length 0, if not gdb-produced.
4666 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4667
4668 2020-05-09 Tom de Vries <tdevries@suse.de>
4669
4670 PR gdb/25955
4671 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4672 calculation.
4673
4674 2020-05-09 Tom Tromey <tom@tromey.com>
4675
4676 * top.c (server_command): Now bool.
4677 * top.h (server_command): Now bool.
4678
4679 2020-05-08 Tom Tromey <tromey@adacore.com>
4680
4681 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4682 already being processed.
4683
4684 2020-05-08 Tom Tromey <tom@tromey.com>
4685
4686 * printcmd.c (struct display) <next>: Remove.
4687 <display>: New constructor.
4688 <exp_string>: Now a std::string.
4689 <enabled_p>: Now a bool.
4690 (display_number): Move definition earlier.
4691 (displays): Rename from display_chain. Now a std::vector.
4692 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4693 (display_command): Update.
4694 (do_one_display, disable_display)
4695 (enable_disable_display_command, do_enable_disable_display):
4696 Update.
4697 (free_display): Remove.
4698 (clear_displays): Rewrite.
4699 (delete_display): Update.
4700 (map_display_numbers): Use function_view. Remove "data"
4701 parameter. Update.
4702 (do_delete_display): Remove.
4703 (undisplay_command): Update.
4704 (do_one_display, do_displays, disable_display)
4705 (info_display_command): Update.
4706 (do_enable_disable_display): Remove.
4707 (enable_disable_display_command)
4708 (clear_dangling_display_expressions): Update.
4709
4710 2020-05-08 Tom Tromey <tom@tromey.com>
4711
4712 * symtab.c (set_symbol_cache_size)
4713 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4714 (maintenance_print_symbol_cache_statistics): Update.
4715 * symmisc.c (print_symbol_bcache_statistics)
4716 (print_objfile_statistics, maintenance_print_objfiles)
4717 (maintenance_info_symtabs, maintenance_check_symtabs)
4718 (maintenance_expand_symtabs, maintenance_info_line_tables):
4719 Update.
4720 * symfile-debug.c (set_debug_symfile): Update.
4721 * source.c (forget_cached_source_info): Update.
4722 * python/python.c (gdbpy_progspaces): Update.
4723 * psymtab.c (maintenance_info_psymtabs): Update.
4724 * probe.c (parse_probes): Update.
4725 * linespec.c (iterate_over_all_matching_symtabs)
4726 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4727 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4728 * exec.c (exec_target::close): Update.
4729 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4730 * breakpoint.c (print_one_breakpoint_location)
4731 (create_longjmp_master_breakpoint)
4732 (create_std_terminate_master_breakpoint): Update.
4733 * progspace.c (program_spaces): Now a std::vector.
4734 (maybe_new_address_space): Update.
4735 (add_program_space): Remove.
4736 (program_space::program_space): Update.
4737 (remove_program_space): Update.
4738 (number_of_program_spaces): Remove.
4739 (print_program_space, update_address_spaces): Update.
4740 * progspace.h (program_spaces): Change type.
4741 (ALL_PSPACES): Remove.
4742 (number_of_program_spaces): Don't declare.
4743 (struct program_space) <next>: Remove.
4744
4745 2020-05-08 Tom Tromey <tom@tromey.com>
4746
4747 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4748 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4749 (enable_break): Update.
4750 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4751 (frv_fdpic_find_canonical_descriptor): Update.
4752 (frv_fetch_objfile_link_map): Update.
4753 * progspace.c (program_space::free_all_objfiles): Update.
4754 (program_space::solibs): New method.
4755 * progspace.h (struct program_space) <solibs>: New method.
4756 * solist.h (master_so_list): Don't declare.
4757 (ALL_SO_LIBS): Remove.
4758 * solib.h (so_list_head): Remove.
4759 (update_solib_list): Update comment.
4760 * solib.c (master_so_list): Remove.
4761 (solib_used, update_solib_list, solib_add)
4762 (info_sharedlibrary_command, clear_solib)
4763 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4764
4765 2020-05-08 Tom Tromey <tom@tromey.com>
4766
4767 * extension.c (extension_languages): Now a std::array.
4768 (ALL_EXTENSION_LANGUAGES): Remove.
4769 (get_ext_lang_defn, get_ext_lang_of_file)
4770 (eval_ext_lang_from_control_command): Update.
4771 (finish_ext_lang_initialization)
4772 (auto_load_ext_lang_scripts_for_objfile)
4773 (ext_lang_type_printers::ext_lang_type_printers)
4774 (apply_ext_lang_type_printers)
4775 (ext_lang_type_printers::~ext_lang_type_printers)
4776 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4777 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4778 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4779 (get_matching_xmethod_workers, ext_lang_colorize)
4780 (ext_lang_before_prompt): Update.
4781 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4782
4783 2020-05-08 Tom Tromey <tom@tromey.com>
4784
4785 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4786 overload.
4787 <swap_string, m_string>: Remove.
4788 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4789 Update.
4790 * stabsread.c (define_symbol, read_type): Update.
4791 * linespec.c (find_linespec_symbols): Update.
4792 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4793 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4794 * dbxread.c (read_dbx_symtab): Update.
4795 * cp-support.h (cp_canonicalize_string_full)
4796 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4797 Return unique_xmalloc_ptr.
4798 * cp-support.c (inspect_type): Update.
4799 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4800 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4801 Likewise.
4802 * c-typeprint.c (print_name_maybe_canonical): Update.
4803 * break-catch-throw.c (check_status_exception_catchpoint):
4804 Update.
4805
4806 2020-05-08 Tom de Vries <tdevries@suse.de>
4807
4808 * infrun.c (follow_fork): Copy current_line and current_symtab to
4809 child thread.
4810
4811 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4812
4813 * async-event.c (struct async_signal_handler, struct
4814 async_event_handler): Reformat, remove typedef.
4815
4816 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4817
4818 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4819 access thistype->main_type->dyn_prop_list directly.
4820
4821 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4822
4823 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4824 (remove_dyn_prop): Remove. Update all users to use
4825 type::remove_dyn_prop.
4826 * gdbtypes.c (remove_dyn_prop): Rename to...
4827 (type::remove_dyn_prop): ... this.
4828
4829 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4830
4831 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4832 (add_dyn_prop): Remove. Update all users to use
4833 type::add_dyn_prop.
4834 * gdbtypes.c (add_dyn_prop): Rename to...
4835 (type::add_dyn_prop): ... this.
4836
4837 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4838
4839 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4840 (get_dyn_prop): Remove. Update all users to use
4841 type::dyn_prop.
4842 * gdbtypes.c (get_dyn_prop): Rename to...
4843 (type::dyn_prop): ... this.
4844
4845 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4846
4847 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4848
4849 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4852 instruction, skip it if it's there.
4853
4854 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4857
4858 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4859
4860 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4861 * gdbtypes.c (recursive_dump_type): Remove use of
4862 TYPE_INCOMPLETE.
4863
4864 2020-05-03 Tom Tromey <tom@tromey.com>
4865
4866 * breakpoint.c (catch_command, tcatch_command): Remove.
4867 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4868 add_show_prefix_cmd.
4869 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4870 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4871 Remove.
4872 (add_internal_problem_command): Use add_basic_prefix_cmd,
4873 add_show_prefix_cmd.
4874 * mips-tdep.c (set_mipsfpu_command): Remove.
4875 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4876 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4877 (_initialize_index_cache): Use add_basic_prefix_cmd.
4878 * memattr.c (dummy_cmd): Remove.
4879 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4880 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4881 (_initialize_tui_win): Use add_basic_prefix_cmd,
4882 add_show_prefix_cmd.
4883 * cli/cli-logging.c (set_logging_command): Remove.
4884 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4885 add_show_prefix_cmd.
4886 (show_logging_command): Remove.
4887 * target.c (target_command): Remove.
4888 (add_target): Use add_basic_prefix_cmd.
4889
4890 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4891
4892 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4893
4894 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4895
4896 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4897 info_command.
4898
4899 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4900
4901 * nbsd-nat.c (nbsd_enable_proc_events)
4902 (nbsd_nat_target::post_startup_inferior): Add.
4903 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4904 (nbsd_nat_target::update_thread_list): Rewrite.
4905 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4906 "PTRACE_LWP_CREATE".
4907 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4908
4909 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4910
4911 * stack.c (_initialize_stack): Remove duplicated creation
4912 of "frame" command and "f" alias.
4913
4914 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4915
4916 PR gdb/18706
4917 * gdbtypes.c (check_typedef): Calculate size of array of
4918 stubbed type.
4919
4920 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4921
4922 PR gdb/15559
4923 * i386-tdep.c (i386_push_dummy_call): Call
4924 i386_thiscall_push_dummy_call.
4925 (i386_thiscall_push_dummy_call): New function.
4926 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4927 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4928 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4929
4930 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * gdbarch.sh (do_read): Add shellcheck disable directive for
4933 warning SC2162.
4934
4935 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4938 "referenced but not assigned" warning.
4939
4940 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4941
4942 * gdbarch.sh: Remove code that sets fallbackdefault.
4943
4944 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * gdbarch.sh: Use shell operators && and || instead of
4947 -a and -o.
4948
4949 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * gdbarch.sh: Use $(...) instead of `...`.
4952
4953 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * gdbarch.sh: Use double quotes around variables.
4956
4957 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4958
4959 * gdbarch.sh: Use %s with printf, instead of variables in the
4960 format string.
4961
4962 2020-04-29 Tom Tromey <tromey@adacore.com>
4963
4964 PR ada/25875:
4965 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4966 type fields here.
4967 (read_enumeration_type): Call
4968 update_enumeration_type_from_children later. Update comments.
4969 (process_enumeration_scope): Don't create type fields.
4970
4971 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4972
4973 * nbsd-tdep.c: Include "xml-syscall.h".
4974 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4975
4976 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4977
4978 * nbsd-nat.c: Include "sys/wait.h".
4979 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4980 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4981 (nbsd_nat_target::remove_exec_catchpoint)
4982 (nbsd_nat_target::set_syscall_catchpoint): Add.
4983 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4984 (nbsd_nat_target::insert_exec_catchpoint)
4985 (nbsd_nat_target::remove_exec_catchpoint)
4986 (nbsd_nat_target::set_syscall_catchpoint): Add.
4987 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4988 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4989 `nbsd_get_syscall_number'.
4990
4991 2020-04-29 Tom Tromey <tom@tromey.com>
4992
4993 * stack.c (print_block_frame_labels): Remove.
4994
4995 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4996
4997 PR gdb/17320
4998 * ada-valprint.c (val_print_packed_array_elements): Move array
4999 end bracket to new line.
5000 (ada_val_print_string): Remove extra spaces before first array
5001 element.
5002 * c-valprint.c (c_value_print_array): Likewise.
5003 * m2-valprint.c (m2_print_array_contents): Likewise.
5004 (m2_value_print_inner): Likewise.
5005 * p-valprint.c (pascal_value_print_inner): Likewise.
5006 * valprint.c (generic_val_print_array): Likewise.
5007 (value_print_array_elements): Move first array element and array
5008 end bracket to new line.
5009
5010 2020-04-29 Tom de Vries <tdevries@suse.de>
5011
5012 PR symtab/25889
5013 * linespec.c (find_method): Fix ix calculation.
5014
5015 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5016
5017 * syscalls/update-netbsd.sh: New file.
5018 * syscalls/netbsd.xml: Regenerate.
5019 * data-directory/Makefile.in: Register `netbsd.xml' in
5020 `SYSCALLS_FILES'.
5021
5022 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5023
5024 * syscalls/update-freebsd.sh: Add double quotes.
5025
5026 2020-04-28 Tom Tromey <tom@tromey.com>
5027
5028 * NEWS: Update.
5029 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5030 (cmdpy_init): Allow class_tui.
5031
5032 2020-04-28 Mark Williams <mark@myosotissp.com>
5033
5034 PR gdb/24480
5035 * dwarf2read.c: Add missing assingments to list_in_scope when
5036 start_symtab was already called.
5037
5038 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5039
5040 PR gdb/25881
5041 * dwarf2/read.c (offset_map_type): Use
5042 gdb:hash_enum<sect_offset> as hash function.
5043
5044 2020-04-28 Tom de Vries <tdevries@suse.de>
5045
5046 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5047 with DW_AT_signature.
5048
5049 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5050
5051 * configure.ac: Remove check for fs_base/gs_base in
5052 user_regs_struct.
5053 * configure: Re-generate.
5054 * config.in: Re-generate.
5055 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5056 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5057 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5058
5059 2020-04-27 Luis Machado <luis.machado@linaro.org>
5060
5061 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5062 problematic inline frame unwinding situation.
5063 * frame.c (frame_id_computed_p): New function.
5064 * frame.h (frame_id_computed_p): New prototype.
5065
5066 2020-04-26 Tom Tromey <tom@tromey.com>
5067
5068 * command.h (enum command_class) <class_pseudo>: Remove.
5069
5070 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5071
5072 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5073 and whitespace.
5074
5075 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5076
5077 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5078 `PT_GET_PROCESS_STATE' block.
5079
5080 2020-04-24 Tom Tromey <tom@tromey.com>
5081
5082 * symtab.h (symbol_get_demangled_name): Don't declare.
5083 * symtab.c (symbol_get_demangled_name): Remove.
5084 (general_symbol_info::natural_name)
5085 (general_symbol_info::demangled_name): Update.
5086
5087 2020-04-24 Tom Tromey <tom@tromey.com>
5088
5089 PR rust/25025:
5090 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5091
5092 2020-04-24 Tom Tromey <tom@tromey.com>
5093
5094 PR symtab/12707:
5095 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5096 exists.
5097 (new_symbol): Likewise.
5098 * compile/compile-object-load.c (get_out_value_type): Use
5099 symbol_matches_search_name.
5100
5101 2020-04-24 Tom Tromey <tom@tromey.com>
5102
5103 * dwarf2/read.c (add_partial_symbol): Do not call
5104 compute_and_set_names.
5105
5106 2020-04-24 Tom Tromey <tom@tromey.com>
5107
5108 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5109 overload.
5110
5111 2020-04-24 Tom Tromey <tom@tromey.com>
5112
5113 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5114 (add_psymbol_to_list): New overload. Make old overload call new
5115 one.
5116 * psympriv.h (add_psymbol_to_list): New overload.
5117
5118 2020-04-24 Tom Tromey <tom@tromey.com>
5119
5120 * dwarf2/read.c (partial_die_info::read) <case
5121 DW_AT_linkage_name>: Use value_as_string.
5122 (dwarf2_string_attr): Use value_as_string.
5123 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5124 method.
5125 * dwarf2/attribute.c (attribute::value_as_string): New method.
5126
5127 2020-04-24 Tom Tromey <tom@tromey.com>
5128
5129 * symtab.c (general_symbol_info::natural_name)
5130 (general_symbol_info::demangled_name): Check for language_rust.
5131
5132 2020-04-24 Tom Tromey <tom@tromey.com>
5133
5134 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5135 (dwarf2_physname): ... from here.
5136 (partial_die_info::read): Add Rust "{" hack.
5137
5138 2020-04-24 Tom Tromey <tom@tromey.com>
5139
5140 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5141 method.
5142 (symbol_set_demangled_name): Don't declare.
5143 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5144 symbol_set_demangled_name.
5145 (general_symbol_info::set_language)
5146 (general_symbol_info::compute_and_set_names): Update.
5147 * minsyms.c (minimal_symbol_reader::install): Update.
5148 * dwarf2/read.c (new_symbol): Update.
5149
5150 2020-04-24 Tom Tromey <tromey@adacore.com>
5151
5152 PR python/23662:
5153 * python/py-type.c (convert_field): Handle
5154 FIELD_LOC_KIND_DWARF_BLOCK.
5155 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5156 (typy_get_dynamic): Nw function.
5157 (type_object_getset): Add "dynamic".
5158 * NEWS: Add entry.
5159
5160 2020-04-24 Tom Tromey <tromey@adacore.com>
5161
5162 * ada-typeprint.c (print_choices, print_variant_part)
5163 (print_record_field_types_dynamic): New functions.
5164 (print_record_field_types): Use print_record_field_types_dynamic.
5165
5166 2020-04-24 Tom Tromey <tromey@adacore.com>
5167
5168 * dwarf2/read.c (handle_data_member_location): New overload.
5169 (dwarf2_add_field): Use it.
5170 (decode_locdesc): Add "computed" parameter. Update comment.
5171 * gdbtypes.c (is_dynamic_type_internal): Also look for
5172 FIELD_LOC_KIND_DWARF_BLOCK.
5173 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5174 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5175 virtual base classes.
5176 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5177 FIELD_LOC_KIND_DWARF_BLOCK.
5178
5179 2020-04-24 Tom Tromey <tromey@adacore.com>
5180
5181 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5182 * gdbtypes.c (is_dynamic_type_internal): Check
5183 TYPE_HAS_DYNAMIC_LENGTH.
5184 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5185 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5186 New macros.
5187 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5188 constant.
5189
5190 2020-04-24 Tom Tromey <tromey@adacore.com>
5191
5192 * dwarf2/read.c (struct variant_field): Rewrite.
5193 (struct variant_part_builder): New.
5194 (struct nextfield): Remove "variant" field. Add "offset".
5195 (struct field_info): Add "current_variant_part" and
5196 "variant_parts".
5197 (alloc_discriminant_info): Remove.
5198 (alloc_rust_variant): New function.
5199 (quirk_rust_enum): Update.
5200 (dwarf2_add_field): Set "offset" member. Don't handle
5201 DW_TAG_variant_part.
5202 (offset_map_type): New typedef.
5203 (convert_variant_range, create_one_variant)
5204 (create_one_variant_part, create_variant_parts)
5205 (add_variant_property): New functions.
5206 (dwarf2_attach_fields_to_type): Call add_variant_property.
5207 (read_structure_type): Don't handle DW_TAG_variant_part.
5208 (handle_variant_part, handle_variant): New functions.
5209 (handle_struct_member_die): Use them.
5210 (process_structure_scope): Don't handle variant parts.
5211 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5212 (struct discriminant_info): Remove.
5213 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5214 (struct main_type) <flag_discriminated_union>: Remove.
5215 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5216 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5217 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5218 Update.
5219 * valops.c (value_union_variant): Remove.
5220 * value.h (value_union_variant): Don't declare.
5221
5222 2020-04-24 Tom Tromey <tromey@adacore.com>
5223
5224 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5225 (ada_value_primitive_packed_val): Update.
5226 * ada-valprint.c (ada_value_print_1): Update.
5227 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5228 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5229 just an address. Use evaluate_for_locexpr_baton.
5230 (dwarf2_evaluate_property): Update.
5231 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5232 array_view.
5233 * findvar.c (default_read_var_value): Update.
5234 * gdbtypes.c (compute_variant_fields_inner)
5235 (resolve_dynamic_type_internal): Update.
5236 (resolve_dynamic_type): Change type of valaddr parameter.
5237 * gdbtypes.h (resolve_dynamic_type): Update.
5238 * valarith.c (value_subscripted_rvalue): Update.
5239 * value.c (value_from_contents_and_address): Update.
5240
5241 2020-04-24 Tom Tromey <tromey@adacore.com>
5242
5243 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5244 "push_initial_value" parameter.
5245 (dwarf2_evaluate_property): Likewise.
5246 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5247
5248 2020-04-24 Tom Tromey <tromey@adacore.com>
5249
5250 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5251 (variant::matches, compute_variant_fields_recurse)
5252 (compute_variant_fields_inner, compute_variant_fields): New
5253 functions.
5254 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5255 Use resolved_type after type is made.
5256 (operator==): Add new cases.
5257 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5258 (struct discriminant_range, struct variant, struct variant_part):
5259 New.
5260 (union dynamic_prop_data) <variant_parts, original_type>: New
5261 members.
5262 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5263 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5264 constants.
5265 * value.c (unpack_bits_as_long): Now public.
5266 * value.h (unpack_bits_as_long): Declare.
5267
5268 2020-04-24 Tom Tromey <tromey@adacore.com>
5269
5270 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5271 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5272
5273 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5274
5275 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5276
5277 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5278
5279 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5280 (remove_fork_catchpoint, post_startup_inferior)
5281 (post_attach): Move...
5282 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5283 (remove_fork_catchpoint, post_startup_inferior)
5284 (post_attach): ...here.
5285 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5286 (remove_fork_catchpoint, post_startup_inferior)
5287 (post_attach): Move...
5288 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5289 (remove_fork_catchpoint, post_startup_inferior)
5290 (post_attach): ...here.
5291
5292 2020-04-24 Tom Tromey <tromey@adacore.com>
5293
5294 * nat/windows-nat.h (struct windows_thread_info)
5295 <pc_adjusted>: New member.
5296 * windows-nat.c (windows_fetch_one_register): Check
5297 pc_adjusted.
5298 (windows_nat_target::get_windows_debug_event)
5299 (windows_nat_target::wait): Set pc_adjusted.
5300
5301 2020-04-24 Tom de Vries <tdevries@suse.de>
5302
5303 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5304 Run gdb-add-index inside temp dir.
5305
5306 2020-04-23 Tom Tromey <tromey@adacore.com>
5307
5308 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5309 in loop.
5310
5311 2020-04-23 Luis Machado <luis.machado@linaro.org>
5312
5313 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5314 get_frame_register instead of gdbarch_unwind_pc.
5315
5316 2020-04-23 Tom de Vries <tdevries@suse.de>
5317
5318 * symtab.c (lookup_global_symbol): Prefer def over decl.
5319
5320 2020-04-23 Tom de Vries <tdevries@suse.de>
5321
5322 PR symtab/25807
5323 * block.c (best_symbol, better_symbol): Promote to external.
5324 * block.h (best_symbol, better_symbol): Declare.
5325 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5326 decl.
5327
5328 2020-04-23 Tom Tromey <tromey@adacore.com>
5329
5330 PR ada/25837:
5331 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5332 "const char *", not a "const std::string &".
5333 <name_and_matcher::operator==>: Update.
5334 * unittests/lookup_name_info-selftests.c: Change type of
5335 "result".
5336
5337 2020-04-23 Tom Tromey <tom@tromey.com>
5338
5339 * inferior.h (iterate_over_inferiors): Don't declare.
5340 * inferior.c (iterate_over_inferiors): Remove.
5341 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5342 Remove.
5343 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5344 use iterate_over_inferiors.
5345 (darwin_resume_inferior_it)
5346 (struct resume_inferior_threads_param)
5347 (darwin_resume_inferior_threads_it): Remove.
5348 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5349
5350 2020-04-23 Tom de Vries <tdevries@suse.de>
5351
5352 * blockframe.c (find_pc_partial_function): Use
5353 find_pc_sect_compunit_symtab rather than
5354 objfile->sf->qf->find_pc_sect_compunit_symtab.
5355
5356 2020-04-22 Tom de Vries <tdevries@suse.de>
5357
5358 PR symtab/25764
5359 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5360 in psymtabs.
5361
5362 2020-04-22 Tom de Vries <tdevries@suse.de>
5363
5364 PR symtab/25801
5365 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5366 symtabs.
5367
5368 2020-04-22 Tom de Vries <tdevries@suse.de>
5369
5370 PR symtab/25700
5371 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5372 CU if already created.
5373
5374 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5375
5376 * infrun.c (displaced_step_fixup): Switch to the event_thread
5377 before calling displaced_step_restore, not after.
5378
5379 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5380
5381 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5382 its inferior is not recorded by us.
5383 (record_btrace_target_open): Replace call to
5384 all_non_exited_threads () with call to current_inferior
5385 ()->non_exited_threads ().
5386 (record_btrace_target::stop_recording): Likewise.
5387 (record_btrace_target::close): Likewise.
5388 (record_btrace_target::wait): Likewise.
5389 (record_btrace_target::record_stop_replaying): Likewise.
5390
5391 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5392
5393 * btrace.c (btrace_enable): Throw an error on double enables and
5394 when enabling recording fails.
5395 (btrace_disable): Throw an error if the thread is not recorded.
5396
5397 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5398
5399 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5400 request if we do not have a thread_info.
5401
5402 2020-04-21 Tom de Vries <tdevries@suse.de>
5403
5404 PR gdb/25471
5405 * thread.c
5406 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5407 exception in get_frame_id.
5408
5409 2020-04-20 Tom Tromey <tromey@adacore.com>
5410
5411 * python/python.c (struct gdbpy_event): Mark move constructor as
5412 noexcept.
5413 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5414 constructor as noexcept.
5415 * completer.h (struct completion_result): Mark move constructor as
5416 noexcept.
5417 * completer.c (completion_result::completion_result): Use
5418 initialization style. Don't call reset_match_list.
5419
5420 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5421
5422 * MAINTAINERS (Write After Approval): Add myself.
5423
5424 2020-04-18 Tom Tromey <tom@tromey.com>
5425
5426 * windows-tdep.c (init_w32_command_list)
5427 (w32_prefix_command_valid): Restore.
5428 (_initialize_windows_tdep): Call init_w32_command_list.
5429
5430 2020-04-18 Tom Tromey <tom@tromey.com>
5431
5432 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5433 * value.c (value_fn_field): Update.
5434 * valops.c (find_function_in_inferior)
5435 (value_allocate_space_in_inferior): Update.
5436 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5437 Update.
5438 * tui/tui-source.c (tui_source_window::set_contents): Update.
5439 * symtab.c (lookup_global_or_static_symbol)
5440 (find_function_start_sal_1, skip_prologue_sal)
5441 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5442 * symmisc.c (dump_msymbols, dump_symtab_1)
5443 (maintenance_print_one_line_table): Update.
5444 * symfile.c (init_entry_point_info, section_is_mapped)
5445 (list_overlays_command, simple_read_overlay_table)
5446 (simple_overlay_update_1): Update.
5447 * stap-probe.c (handle_stap_probe): Update.
5448 * stabsread.c (dbx_init_float_type, define_symbol)
5449 (read_one_struct_field, read_enum_type, read_range_type): Update.
5450 * source.c (info_line_command): Update.
5451 * python/python.c (gdbpy_source_objfile_script)
5452 (gdbpy_execute_objfile_script): Update.
5453 * python/py-type.c (save_objfile_types): Update.
5454 * python/py-objfile.c (py_free_objfile): Update.
5455 * python/py-inferior.c (python_new_objfile): Update.
5456 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5457 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5458 (maintenance_check_psymtabs): Update.
5459 * printcmd.c (info_address_command): Update.
5460 * objfiles.h (struct objfile) <arch>: New method, from
5461 get_objfile_arch.
5462 (get_objfile_arch): Don't declare.
5463 * objfiles.c (get_objfile_arch): Remove.
5464 (filter_overlapping_sections): Update.
5465 * minsyms.c (msymbol_is_function): Update.
5466 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5467 (output_nondebug_symbol): Update.
5468 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5469 (mdebug_expand_psymtab): Update.
5470 * machoread.c (macho_add_oso_symfile): Update.
5471 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5472 Update.
5473 * linux-fork.c (checkpoint_command): Update.
5474 * linespec.c (convert_linespec_to_sals): Update.
5475 * jit.c (finalize_symtab): Update.
5476 * infrun.c (insert_exception_resume_from_probe): Update.
5477 * ia64-tdep.c (ia64_find_unwind_table): Update.
5478 * hppa-tdep.c (internalize_unwinds): Update.
5479 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5480 Update.
5481 * gcore.c (call_target_sbrk): Update.
5482 * elfread.c (record_minimal_symbol, elf_symtab_read)
5483 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5484 (elf_gnu_ifunc_resolve_by_got): Update.
5485 * dwarf2/read.c (create_addrmap_from_index)
5486 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5487 (read_debug_names_from_section)
5488 (process_psymtab_comp_unit_reader, add_partial_symbol)
5489 (add_partial_subprogram, process_full_comp_unit)
5490 (read_file_scope, read_func_scope, read_lexical_block_scope)
5491 (read_call_site_scope, dwarf2_ranges_read)
5492 (dwarf2_record_block_ranges, dwarf2_add_field)
5493 (mark_common_block_symbol_computed, read_tag_pointer_type)
5494 (read_tag_string_type, dwarf2_init_float_type)
5495 (dwarf2_init_complex_target_type, read_base_type)
5496 (partial_die_info::read, partial_die_info::read)
5497 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5498 (dwarf2_fetch_die_loc_sect_off): Update.
5499 * dwarf2/loc.c (dwarf2_find_location_expression)
5500 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5501 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5502 (dwarf2_loc_desc_get_symbol_read_needs)
5503 (locexpr_describe_location_piece, locexpr_describe_location_1)
5504 (loclist_describe_location): Update.
5505 * dwarf2/index-write.c (write_debug_names): Update.
5506 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5507 * dtrace-probe.c (dtrace_process_dof): Update.
5508 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5509 (process_one_symbol): Update.
5510 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5511 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5512 (coff_read_enum_type): Update.
5513 * cli/cli-cmds.c (edit_command, list_command): Update.
5514 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5515 * breakpoint.c (create_overlay_event_breakpoint)
5516 (create_longjmp_master_breakpoint)
5517 (create_std_terminate_master_breakpoint)
5518 (create_exception_master_breakpoint, get_sal_arch): Update.
5519 * block.c (block_gdbarch): Update.
5520 * annotate.c (annotate_source_line): Update.
5521
5522 2020-04-17 Tom Tromey <tromey@adacore.com>
5523
5524 * auto-load.c (show_auto_load_cmd): Remove.
5525 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5526 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5527 (maintenance_print_arc_command): Remove.
5528 * tui/tui-win.c (tui_command): Remove.
5529 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5530 * tui/tui-layout.c (tui_layout_command): Remove.
5531 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5532 * python/python.c (user_set_python, user_show_python): Remove.
5533 (_initialize_python): Use add_basic_prefix_cmd,
5534 add_show_prefix_cmd.
5535 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5536 (install_gdb_commands): Use add_basic_prefix_cmd,
5537 add_show_prefix_cmd.
5538 (info_guile_command): Remove.
5539 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5540 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5541 add_show_prefix_cmd.
5542 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5543 Remove do_set and do_show parameters.
5544 * cli/cli-style.c (set_style, show_style): Remove.
5545 (_initialize_cli_style): Use add_basic_prefix_cmd,
5546 add_show_prefix_cmd.
5547 (cli_style_option::add_setshow_commands): Remove do_set and
5548 do_show parameters.
5549 (cli_style_option::add_setshow_commands): Use
5550 add_basic_prefix_cmd, add_show_prefix_cmd.
5551 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5552 (set_style_name): Remove.
5553 * cli/cli-dump.c (dump_command, append_command): Remove.
5554 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5555 (tekhex_dump_command, binary_dump_command)
5556 (binary_append_command): Remove.
5557 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5558 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5559 (init_w32_command_list): Remove; move into ...
5560 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5561 * valprint.c (set_print, show_print, set_print_raw)
5562 (show_print_raw): Remove.
5563 (_initialize_valprint): Use add_basic_prefix_cmd,
5564 add_show_prefix_cmd.
5565 * typeprint.c (set_print_type, show_print_type): Remove.
5566 (_initialize_typeprint): Use add_basic_prefix_cmd,
5567 add_show_prefix_cmd.
5568 * record.c (set_record_command, show_record_command): Remove.
5569 (_initialize_record): Use add_basic_prefix_cmd,
5570 add_show_prefix_cmd.
5571 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5572 add_show_prefix_cmd.
5573 (info_command, show_command, set_debug, show_debug): Remove.
5574 * top.h (set_history, show_history): Don't declare.
5575 * top.c (set_history, show_history): Remove.
5576 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5577 (unset_tdesc_cmd): Remove.
5578 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5579 add_show_prefix_cmd.
5580 * symtab.c (info_module_command): Remove.
5581 (_initialize_symtab): Use add_basic_prefix_cmd.
5582 * symfile.c (overlay_command): Remove.
5583 (_initialize_symfile): Use add_basic_prefix_cmd.
5584 * sparc64-tdep.c (info_adi_command): Remove.
5585 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5586 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5587 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5588 add_show_prefix_cmd.
5589 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5590 (_initialize_serial): Use add_basic_prefix_cmd,
5591 add_show_prefix_cmd.
5592 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5593 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5594 add_show_prefix_cmd.
5595 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5596 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5597 add_show_prefix_cmd.
5598 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5599 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5600 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5601 add_show_prefix_cmd.
5602 * remote.c (remote_command, set_remote_cmd): Remove.
5603 (_initialize_remote): Use add_basic_prefix_cmd.
5604 * record-full.c (set_record_full_command)
5605 (show_record_full_command): Remove.
5606 (_initialize_record_full): Use add_basic_prefix_cmd,
5607 add_show_prefix_cmd.
5608 * record-btrace.c (cmd_set_record_btrace)
5609 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5610 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5611 (cmd_show_record_btrace_pt): Remove.
5612 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5613 add_show_prefix_cmd.
5614 * ravenscar-thread.c (set_ravenscar_command)
5615 (show_ravenscar_command): Remove.
5616 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5617 add_show_prefix_cmd.
5618 * mips-tdep.c (show_mips_command, set_mips_command)
5619 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5620 add_show_prefix_cmd.
5621 * maint.c (maintenance_command, maintenance_info_command)
5622 (maintenance_check_command, maintenance_print_command)
5623 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5624 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5625 add_show_prefix_cmd.
5626 (show_per_command_cmd): Remove.
5627 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5628 Remove.
5629 (maintenance_show_test_settings_cmd): Remove.
5630 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5631 add_show_prefix_cmd.
5632 * maint-test-options.c (maintenance_test_options_command):
5633 Remove.
5634 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5635 * macrocmd.c (macro_command): Remove
5636 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5637 * language.c (set_check, show_check): Remove.
5638 (_initialize_language): Use add_basic_prefix_cmd,
5639 add_show_prefix_cmd.
5640 * infcmd.c (unset_command): Remove.
5641 (_initialize_infcmd): Use add_basic_prefix_cmd.
5642 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5643 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5644 add_show_prefix_cmd.
5645 * go32-nat.c (go32_info_dos_command): Remove.
5646 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5647 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5648 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5649 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5650 (_initialize_frame): Use add_basic_prefix_cmd,
5651 add_show_prefix_cmd.
5652 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5653 (_initialize_dcache): Use add_basic_prefix_cmd,
5654 add_show_prefix_cmd.
5655 * cp-support.c (maint_cplus_command): Remove.
5656 (_initialize_cp_support): Use add_basic_prefix_cmd.
5657 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5658 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5659 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5660 add_basic_prefix_cmd, add_show_prefix_cmd.
5661 * breakpoint.c (save_command): Remove.
5662 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5663 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5664 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5665 add_show_prefix_cmd.
5666 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5667 (set_ada_command, show_ada_command): Remove.
5668 (_initialize_ada_language): Use add_basic_prefix_cmd,
5669 add_show_prefix_cmd.
5670 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5671
5672 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5673
5674 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5675 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5676
5677 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5678
5679 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5680 warning messages.
5681
5682 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5683
5684 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5685 import table is not at beginning of .idata section.
5686
5687 2020-04-16 Pedro Alves <palves@redhat.com>
5688
5689 * inferior.c (delete_inferior): Use delete operator directly
5690 instead of delete_program_space.
5691 * progspace.c (add_program_space): New, factored out from
5692 program_space::program_space.
5693 (remove_program_space): New, factored out from
5694 delete_program_space.
5695 (program_space::program_space): Remove intro comment. Rewrite.
5696 (program_space::~program_space): Remove intro comment. Call
5697 remove_program_space.
5698 (delete_program_space): Delete.
5699 * progspace.h (program_space::program_space): Make explicit. Move
5700 intro comment here, adjusted.
5701 (program_space::~program_space): Move intro comment here,
5702 adjusted.
5703 (delete_program_space): Remove.
5704
5705 2020-04-16 Tom Tromey <tromey@adacore.com>
5706
5707 * windows-nat.c (windows_nat::handle_access_violation): New
5708 function.
5709 * nat/windows-nat.h (handle_access_violation): Declare.
5710 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5711 windows-nat.c. Call handle_access_violation.
5712
5713 2020-04-16 Tom de Vries <tdevries@suse.de>
5714
5715 PR symtab/25791
5716 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5717 CUs without psymtab.
5718
5719 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5720
5721 * python/python.c (do_start_initialization): Don't call
5722 PyEval_InitThreads for Python 3.9 and beyond.
5723
5724 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5725
5726 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5727 thread functions.
5728 (obsd_nat_target::wait): Likewise.
5729
5730 2020-04-15 Tom Tromey <tromey@adacore.com>
5731
5732 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5733 (DEBUG_EXCEPT): Use debug_printf.
5734
5735 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5736
5737 * completer.c (class completion_tracker::completion_hash_entry)
5738 <hash_name>: New member function.
5739 (completion_tracker::discard_completions): New callback to hash a
5740 completion_hash_entry, pass this to htab_create_alloc.
5741
5742 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5743
5744 * windows-nat.c (windows_make_so): Warn rather than stopping with
5745 an error if realpath() fails.
5746
5747 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5748
5749 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5750 (nbsd_nat_target::info_proc): Add do_status.
5751
5752 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5753 Tom de Vries <tdevries@suse.de>
5754
5755 PR symtab/25718
5756 * psympriv.h (struct partial_symtab::read_symtab)
5757 (struct partial_symtab::expand_psymtab)
5758 (struct partial_symtab::read_dependencies): Update comments.
5759 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5760 read_symtab for includer.
5761 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5762 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5763 (struct dwarf2_include_psymtab::m_readin): Remove.
5764 (struct dwarf2_include_psymtab::includer): New member function.
5765 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5766
5767 2020-04-14 Tom de Vries <tdevries@suse.de>
5768
5769 PR symtab/25720
5770 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5771 with NULL symbol_matcher and lookup_name.
5772 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5773 and lookup_name.
5774 * dwarf2/read.c (dw2_expand_symtabs_matching)
5775 (dw2_debug_names_expand_symtabs_matching): Same.
5776 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5777 Make lookup_name a pointer. Update comment.
5778 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5779 lookup_name being a pointer.
5780 * symfile.c (expand_symtabs_matching): Same.
5781 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5782 * linespec.c (iterate_over_all_matching_symtabs): Same.
5783
5784 2020-04-13 Tom Tromey <tom@tromey.com>
5785
5786 * run-on-main-thread.c: Update include.
5787 * unittests/main-thread-selftests.c: Update include.
5788 * tui/tui-win.c: Update include.
5789 * tui/tui-io.c: Update include.
5790 * tui/tui-interp.c: Update include.
5791 * tui/tui-hooks.c: Update include.
5792 * top.h: Update include.
5793 * top.c: Update include.
5794 * ser-base.c: Update include.
5795 * remote.c: Update include.
5796 * remote-notif.c: Update include.
5797 * remote-fileio.c: Update include.
5798 * record-full.c: Update include.
5799 * record-btrace.c: Update include.
5800 * python/python.c: Update include.
5801 * posix-hdep.c: Update include.
5802 * mingw-hdep.c: Update include.
5803 * mi/mi-main.c: Update include.
5804 * mi/mi-interp.c: Update include.
5805 * main.c: Update include.
5806 * linux-nat.c: Update include.
5807 * interps.c: Update include.
5808 * infrun.c: Update include.
5809 * inf-loop.c: Update include.
5810 * event-top.c: Update include.
5811 * event-loop.c: Move to ../gdbsupport/.
5812 * event-loop.h: Move to ../gdbsupport/.
5813 * async-event.h: Update include.
5814 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5815
5816 2020-04-13 Tom Tromey <tom@tromey.com>
5817
5818 * tui/tui-win.c: Include async-event.h.
5819 * remote.c: Include async-event.h.
5820 * remote-notif.c: Include async-event.h.
5821 * record-full.c: Include async-event.h.
5822 * record-btrace.c: Include async-event.h.
5823 * infrun.c: Include async-event.h.
5824 * event-top.c: Include async-event.h.
5825 * event-loop.h: Move some declarations to async-event.h.
5826 * event-loop.c: Don't include ser-event.h or top.h. Move some
5827 code to async-event.c.
5828 * async-event.h: New file.
5829 * async-event.c: New file.
5830 * Makefile.in (COMMON_SFILES): Add async-event.c.
5831 (HFILES_NO_SRCDIR): Add async-event.h.
5832
5833 2020-04-13 Tom Tromey <tom@tromey.com>
5834
5835 * utils.c (flush_streams): New function.
5836 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5837
5838 2020-04-13 Tom Tromey <tom@tromey.com>
5839
5840 * event-loop.c (handle_file_event): Use warning, not
5841 printf_unfiltered.
5842
5843 2020-04-13 Tom Tromey <tom@tromey.com>
5844
5845 * event-loop.c: Include <chrono>.
5846
5847 2020-04-13 Tom Tromey <tom@tromey.com>
5848
5849 * gdb_select.h: Move to ../gdbsupport/.
5850 * event-loop.c: Update include path.
5851 * top.c: Update include path.
5852 * ser-base.c: Update include path.
5853 * ui-file.c: Update include path.
5854 * ser-tcp.c: Update include path.
5855 * guile/scm-ports.c: Update include path.
5856 * posix-hdep.c: Update include path.
5857 * ser-unix.c: Update include path.
5858 * gdb_usleep.c: Update include path.
5859 * mingw-hdep.c: Update include path.
5860 * inflow.c: Update include path.
5861 * infrun.c: Update include path.
5862 * event-top.c: Update include path.
5863
5864 2020-04-13 Tom Tromey <tom@tromey.com>
5865
5866 * configure: Rebuild.
5867 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5868
5869 2020-04-13 Tom Tromey <tom@tromey.com>
5870
5871 * event-loop.h (start_event_loop): Don't declare.
5872 * event-loop.c (start_event_loop): Move...
5873 * main.c (start_event_loop): ...here. Now static.
5874
5875 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5876
5877 * MAINTAINERS: Update my email address.
5878
5879 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5880
5881 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5882 IP_ALL.
5883
5884 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5885
5886 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5887 (nbsd_nat_target::info_proc): Add do_cmdline.
5888
5889 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5890
5891 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5892 (nbsd_nat_target::info_proc): Add do_cwd.
5893
5894 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5895
5896 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5897
5898 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5899
5900 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5901 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5902 (nbsd_nat_target::info_proc): New functions.
5903 * nbsd-nat.c (kinfo_get_vmmap): New function.
5904 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5905 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5906 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5907 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5908 functions.
5909 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5910 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5911 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5912 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5913 (KINFO_VME_FLAG_GROWS_DOWN): New.
5914
5915 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5916
5917 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5918 bit shift.
5919
5920 2020-04-10 Tom Tromey <tromey@adacore.com>
5921
5922 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5923
5924 2020-04-10 Tom Tromey <tromey@adacore.com>
5925
5926 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5927 separate debug files.
5928
5929 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5930
5931 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5932 Move to...
5933 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5934 ... here.
5935 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5936 Check for STATUS_WX86_BREAKPOINT.
5937 (windows_nat_target::wait): Same.
5938
5939 2020-04-10 Tom de Vries <tdevries@suse.de>
5940
5941 PR cli/25808
5942 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5943
5944 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5945
5946 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5947 (Write After Approval): Remove Tom de Vries.
5948
5949 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5950
5951 revert partially:
5952 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5953
5954 * buildsym.c (record_line): Fix undefined behavior and preserve
5955 lines at eof.
5956
5957 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5958
5959 * auxv.h (svr4_auxv_parse): New.
5960 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5961 and generic_auxv_parse.
5962 (svr4_auxv_parse): Add.
5963 * obsd-tdep.c: Include "auxv.h".
5964 (obsd_auxv_parse): Remove.
5965 (obsd_init_abi): Remove comment.
5966 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5967 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5968 * nbsd-tdep.c: Include "auxv.h".
5969 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5970
5971 2020-04-08 Tom Tromey <tromey@adacore.com>
5972
5973 * nat/windows-nat.h (last_wait_event): Don't declare.
5974 (wait_for_debug_event): Update comment.
5975 * nat/windows-nat.c (last_wait_event): Now static.
5976
5977 2020-04-08 Tom Tromey <tromey@adacore.com>
5978
5979 * windows-nat.c (wait_for_debug_event): Move to
5980 nat/windows-nat.c.
5981 * nat/windows-nat.h (wait_for_debug_event): Declare.
5982 * nat/windows-nat.c (wait_for_debug_event): Move from
5983 windows-nat.c. No longer static.
5984
5985 2020-04-08 Tom Tromey <tromey@adacore.com>
5986
5987 * windows-nat.c (get_windows_debug_event): Use
5988 fetch_pending_stop.
5989 * nat/windows-nat.h (fetch_pending_stop): Declare.
5990 * nat/windows-nat.c (fetch_pending_stop): New function.
5991
5992 2020-04-08 Tom Tromey <tromey@adacore.com>
5993
5994 * windows-nat.c (windows_continue): Use matching_pending_stop and
5995 continue_last_debug_event.
5996 * nat/windows-nat.h (matching_pending_stop)
5997 (continue_last_debug_event): Declare.
5998 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5999 (matching_pending_stop, continue_last_debug_event): New
6000 functions.
6001
6002 2020-04-08 Tom Tromey <tromey@adacore.com>
6003
6004 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6005 (handle_exception_result): Move to nat/windows-nat.h.
6006 (DEBUG_EXCEPTION_SIMPLE): Remove.
6007 (windows_nat::handle_ms_vc_exception): New function.
6008 (handle_exception): Move to nat/windows-nat.c.
6009 (get_windows_debug_event): Update.
6010 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6011 nat/windows-nat.c.
6012 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6013 (handle_exception_result): Move from windows-nat.c.
6014 (handle_exception): Declare.
6015 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6016 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6017 windows-nat.c.
6018
6019 2020-04-08 Tom Tromey <tromey@adacore.com>
6020
6021 * windows-nat.c (exception_count, event_count): Remove.
6022 (handle_exception, get_windows_debug_event)
6023 (do_initial_windows_stuff): Update.
6024
6025 2020-04-08 Tom Tromey <tromey@adacore.com>
6026
6027 * windows-nat.c (windows_nat::handle_load_dll)
6028 (windows_nat::handle_unload_dll): Rename. No longer static.
6029 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6030 Declare.
6031
6032 2020-04-08 Tom Tromey <tromey@adacore.com>
6033
6034 * complaints.h (stop_whining): Declare at top-level.
6035 (complaint): Don't declare stop_whining.
6036
6037 2020-04-08 Tom Tromey <tromey@adacore.com>
6038
6039 * windows-nat.c (windows_nat::handle_output_debug_string):
6040 Rename. No longer static.
6041 * nat/windows-nat.h (handle_output_debug_string): Declare.
6042
6043 2020-04-08 Tom Tromey <tromey@adacore.com>
6044
6045 * windows-nat.c (current_process_handle, current_process_id)
6046 (main_thread_id, last_sig, current_event, last_wait_event)
6047 (current_windows_thread, desired_stop_thread_id, pending_stops)
6048 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6049 (display_selectors, fake_create_process)
6050 (get_windows_debug_event): Update.
6051 * nat/windows-nat.h (current_process_handle, current_process_id)
6052 (main_thread_id, last_sig, current_event, last_wait_event)
6053 (current_windows_thread, desired_stop_thread_id, pending_stops)
6054 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6055 * nat/windows-nat.c (current_process_handle, current_process_id)
6056 (main_thread_id, last_sig, current_event, last_wait_event)
6057 (current_windows_thread, desired_stop_thread_id, pending_stops)
6058 (siginfo_er): New globals. Move from windows-nat.c.
6059
6060 2020-04-08 Tom Tromey <tromey@adacore.com>
6061
6062 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6063 (handle_load_dll): Update.
6064 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6065
6066 2020-04-08 Tom Tromey <tromey@adacore.com>
6067
6068 * windows-nat.c (enum thread_disposition_type): Move to
6069 nat/windows-nat.h.
6070 (windows_nat::thread_rec): Rename from thread_rec. No longer
6071 static.
6072 (windows_add_thread, windows_nat_target::fetch_registers)
6073 (windows_nat_target::store_registers, handle_exception)
6074 (windows_nat_target::resume, get_windows_debug_event)
6075 (windows_nat_target::get_tib_address)
6076 (windows_nat_target::thread_name)
6077 (windows_nat_target::thread_alive): Update.
6078 * nat/windows-nat.h (enum thread_disposition_type): Move from
6079 windows-nat.c.
6080 (thread_rec): Declare.
6081
6082 2020-04-08 Tom Tromey <tromey@adacore.com>
6083
6084 * windows-nat.c: Add "using namespace".
6085 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6086 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6087
6088 2020-04-08 Tom Tromey <tromey@adacore.com>
6089
6090 * nat/windows-nat.h (struct windows_thread_info): Declare
6091 destructor.
6092 * nat/windows-nat.c (~windows_thread_info): New.
6093
6094 2020-04-08 Tom Tromey <tromey@adacore.com>
6095
6096 PR gdb/22992
6097 * windows-nat.c (current_event): Update comment.
6098 (last_wait_event, desired_stop_thread_id): New globals.
6099 (struct pending_stop): New.
6100 (pending_stops): New global.
6101 (windows_nat_target) <stopped_by_sw_breakpoint>
6102 <supports_stopped_by_sw_breakpoint>: New methods.
6103 (windows_fetch_one_register): Add assertions. Adjust PC.
6104 (windows_continue): Handle pending stops. Suspend other threads
6105 when stepping. Use last_wait_event
6106 (wait_for_debug_event): New function.
6107 (get_windows_debug_event): Use wait_for_debug_event. Handle
6108 pending stops. Queue spurious stops.
6109 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6110 (windows_nat_target::kill): Use wait_for_debug_event.
6111 * nat/windows-nat.h (struct windows_thread_info)
6112 <stopped_at_software_breakpoint>: New field.
6113 * nat/windows-nat.c (windows_thread_info::resume): Clear
6114 stopped_at_software_breakpoint.
6115
6116 2020-04-08 Tom Tromey <tromey@adacore.com>
6117
6118 * windows-nat.c (enum thread_disposition_type): New.
6119 (thread_rec): Replace "get_context" parameter with "disposition";
6120 change type.
6121 (windows_add_thread, windows_nat_target::fetch_registers)
6122 (windows_nat_target::store_registers, handle_exception)
6123 (windows_nat_target::resume, get_windows_debug_event)
6124 (windows_nat_target::get_tib_address)
6125 (windows_nat_target::thread_name)
6126 (windows_nat_target::thread_alive): Update.
6127
6128 2020-04-08 Tom Tromey <tromey@adacore.com>
6129
6130 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6131 (windows_continue): Use windows_continue::resume.
6132 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6133 resume>: Declare new methods.
6134 * nat/windows-nat.c: New file.
6135 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6136
6137 2020-04-08 Tom Tromey <tromey@adacore.com>
6138
6139 * windows-nat.c (windows_add_thread, windows_delete_thread)
6140 (windows_nat_target::fetch_registers)
6141 (windows_nat_target::store_registers, fake_create_process)
6142 (windows_nat_target::resume, windows_nat_target::resume)
6143 (get_windows_debug_event, windows_nat_target::wait)
6144 (windows_nat_target::pid_to_str)
6145 (windows_nat_target::get_tib_address)
6146 (windows_nat_target::get_ada_task_ptid)
6147 (windows_nat_target::thread_name)
6148 (windows_nat_target::thread_alive): Use lwp, not tid.
6149
6150 2020-04-08 Tom Tromey <tromey@adacore.com>
6151
6152 * windows-nat.c (handle_exception)
6153 (windows_nat_target::thread_name): Update.
6154 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6155 <name>: Now unique_xmalloc_ptr.
6156
6157 2020-04-08 Tom Tromey <tromey@adacore.com>
6158
6159 * windows-nat.c (thread_rec)
6160 (windows_nat_target::fetch_registers): Update.
6161 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6162 Update comment.
6163 <debug_registers_changed, reload_context>: Now bool.
6164
6165 2020-04-08 Tom Tromey <tromey@adacore.com>
6166
6167 * windows-nat.c (windows_add_thread): Use new.
6168 (windows_init_thread_list, windows_delete_thread): Use delete.
6169 (get_windows_debug_event): Update.
6170 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6171 destructor, and initializers.
6172
6173 2020-04-08 Tom Tromey <tromey@adacore.com>
6174
6175 * windows-nat.c (struct windows_thread_info): Remove.
6176 * nat/windows-nat.h: New file.
6177
6178 2020-04-08 Tom Tromey <tromey@adacore.com>
6179
6180 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6181 (thread_rec, windows_add_thread, windows_delete_thread)
6182 (windows_continue): Update.
6183
6184 2020-04-08 Tom Tromey <tromey@adacore.com>
6185
6186 * windows-nat.c (struct windows_thread_info): Remove typedef.
6187 (thread_head): Remove.
6188 (thread_list): New global.
6189 (thread_rec, windows_add_thread, windows_init_thread_list)
6190 (windows_delete_thread, windows_continue): Update.
6191
6192 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * windows-tdep.h (windows_init_abi): Add comment.
6195 (cygwin_init_abi): New declaration.
6196 * windows-tdep.c: Split signal enumeration in two, one for
6197 Windows and one for Cygwin.
6198 (windows_gdb_signal_to_target): Only deal with signal of the
6199 Windows OS ABI.
6200 (cygwin_gdb_signal_to_target): New function.
6201 (windows_init_abi): Rename to windows_init_abi_common, don't set
6202 gdb_signal_to_target gdbarch method. Add new new function with
6203 this name.
6204 (cygwin_init_abi): New function.
6205 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6206 comment. Don't call windows_init_abi.
6207 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6208 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6209 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6210 i386_windows_init_abi_common, don't call windows_init_abi. Add
6211 a new function of this name.
6212 (i386_cygwin_init_abi): New function.
6213 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6214 OS ABI Cygwin.
6215
6216 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6217
6218 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6219 parameter.c.
6220 (dwarf2_read_gdb_index): Update.
6221
6222 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6223
6224 * nbsd-tdep.c: Include "objfiles.h".
6225 (nbsd_skip_solib_resolver): New.
6226 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6227
6228 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6229
6230 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6231 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6232 with DW_LLE_base_addressx are being emitted in DWARFv5.
6233 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6234 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6235 unsigned integer.
6236
6237 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6238
6239 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6240 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6241 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6242 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6243 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6244 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6245 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6246
6247
6248 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6249
6250 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6251 (read_loclist_index): New function definition.
6252 (lookup_loclist_base): New function definition.
6253 (read_loclist_header): New function definition.
6254 (dwarf2_cu): Add loclist_base and loclist_header field.
6255 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6256 (read_full_die_1): Read the value of DW_AT_loclists_base.
6257 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6258 (read_attribute_value): Handle DW_FORM_loclistx.
6259 (skip_one_die): Handle DW_FORM_loclistx.
6260 (loclist_header): New structure declaration.
6261 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6262
6263 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6266 constructor. Remove `addr` parameter from other constructor and
6267 add `per_cu` parameter.
6268 * dwarf2/read.c (create_partial_symtab): Update.
6269
6270 2020-04-07 Tom de Vries <tdevries@suse.de>
6271
6272 PR symtab/25796
6273 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6274 (partial_die_info::fixup): Inherit has_const_value.
6275
6276 2020-04-07 Tom de Vries <tdevries@suse.de>
6277
6278 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6279 symbols without address.
6280
6281 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6282
6283 * nbsd-nat.h (struct thread_info): Add forward declaration.
6284 (nbsd_nat_target::thread_alive): Add.
6285 (nbsd_nat_target::thread_name): Likewise.
6286 (nbsd_nat_target::update_thread_list): Likewise.
6287 (update_thread_list::post_attach): Likewise.
6288 (post_attach::pid_to_str): Likewise.
6289 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6290 (nbsd_thread_lister): Add.
6291 (nbsd_nat_target::thread_alive): Likewise.
6292 (nbsd_nat_target::thread_name): Likewise.
6293 (nbsd_add_threads): Likewise.
6294 (update_thread_list::post_attach): Likewise.
6295 (nbsd_nat_target::update_thread_list): Likewise.
6296 (post_attach::pid_to_str): Likewise.
6297
6298 2020-04-06 Tom Tromey <tromey@adacore.com>
6299
6300 * ada-valprint.c (print_variant_part): Extract the variant field.
6301 (print_field_values): Use the field as the outer value when
6302 recursing.
6303
6304 2020-04-06 Tom Tromey <tromey@adacore.com>
6305
6306 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6307 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6308 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6309 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6310 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6311
6312 2020-04-06 Tom Tromey <tromey@adacore.com>
6313
6314 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6315 TYPE_CODE_ERROR.
6316
6317 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6318
6319 * nbsd-tdep.c: Include "gdbarch.h".
6320 Define enum with NetBSD signal numbers.
6321 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6322 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6323 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6324 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6325 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6326 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6327 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6328 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6329 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6330 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6331 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6332 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6333
6334 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6335
6336 PR gdb/25325
6337 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6338
6339 2020-04-03 Tom Tromey <tromey@adacore.com>
6340
6341 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6342 Read constant block.
6343
6344 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6345
6346 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6347 (gdb_bfd_get_full_section_contents): New declaration.
6348 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6349 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6350 gdb_bfd_get_full_section_contents.
6351
6352 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6353
6354 * exec.c (build_section_table): Replace internal_error with
6355 gdb_assert.
6356 (section_table_xfer_memory_partial): Likewise.
6357 * mdebugread.c (parse_partial_symbols): Likewise.
6358 * psymtab.c (lookup_partial_symbol): Likewise.
6359 * utils.c (wrap_here): Likewise.
6360
6361 2020-04-02 Tom Tromey <tromey@adacore.com>
6362
6363 * f-lang.c (build_fortran_types): Use arch_type to initialize
6364 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6365
6366 2020-04-02 Tom Tromey <tromey@adacore.com>
6367
6368 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6369 of attributes.
6370
6371 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6372 Bernd Edlinger <bernd.edlinger@hotmail.de>
6373 Tom Tromey <tromey@adacore.com>
6374
6375 * buildsym.c (buildsym_compunit::record_line): Remove
6376 deduplication code.
6377
6378 2020-04-02 Tom de Vries <tdevries@suse.de>
6379
6380 PR ada/24671
6381 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6382
6383 2020-04-02 Tom de Vries <tdevries@suse.de>
6384
6385 * dwarf2/read.c (dwarf2_gdb_index_functions,
6386 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6387 NULL.
6388 * psymtab.c (psym_lookup_global_symbol_language): New function.
6389 (psym_functions): Init psym_lookup_global_symbol_language with
6390 psym_lookup_global_symbol_language.
6391 * symfile-debug.c (debug_sym_quick_functions): Init
6392 lookup_global_symbol_language with NULL.
6393 * symfile.c (set_initial_language): Remove fixme comment.
6394 * symfile.h (struct quick_symbol_functions): Add
6395 lookup_global_symbol_language.
6396 * symtab.c (find_quick_global_symbol_language): New function.
6397 (find_main_name): Use find_quick_global_symbol_language.
6398
6399 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6400
6401 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6402
6403 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6404
6405 * buildsym.c (record_line): Fix undefined behavior and preserve
6406 lines at eof.
6407
6408 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6409
6410 * buildsym.c (record_line): Fix the resizing condition.
6411
6412 2020-04-01 Tom Tromey <tom@tromey.com>
6413
6414 * value.h (value_literal_complex): Add comment.
6415 * valops.c (value_literal_complex): Refer to value.h.
6416
6417 2020-04-01 Tom Tromey <tom@tromey.com>
6418
6419 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6420 (scalar_type): New rule, from typebase.
6421 (typebase): Use scalar_type. Recognize complex types.
6422 (field_name): Handle FLOAT_KEYWORD.
6423 (ident_tokens): Add _Complex and __complex__.
6424
6425 2020-04-01 Tom Tromey <tom@tromey.com>
6426
6427 PR exp/25299:
6428 * valarith.c (promotion_type, complex_binop): New functions.
6429 (scalar_binop): Handle complex numbers. Use promotion_type.
6430 (value_pos, value_neg, value_complement): Handle complex numbers.
6431
6432 2020-04-01 Tom Tromey <tom@tromey.com>
6433
6434 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6435 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6436 (parse_number): Handle complex numbers.
6437
6438 2020-04-01 Tom Tromey <tom@tromey.com>
6439
6440 * c-valprint.c (c_decorations): Change complex suffix to "i".
6441
6442 2020-04-01 Tom Tromey <tom@tromey.com>
6443
6444 * valprint.c (generic_value_print_complex): Use accessors.
6445 * value.h (value_real_part, value_imaginary_part): Declare.
6446 * valops.c (value_real_part, value_imaginary_part): New
6447 functions.
6448 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6449
6450 2020-04-01 Tom Tromey <tom@tromey.com>
6451
6452 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6453 (read_range_type): Update.
6454 * mdebugread.c (basic_type): Update.
6455 * go-lang.c (build_go_types): Use init_complex_type.
6456 * gdbtypes.h (struct main_type) <complex_type>: New member.
6457 (init_complex_type): Update.
6458 (arch_complex_type): Don't declare.
6459 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6460 Make name if none given. Use alloc_type_copy. Look for cached
6461 complex type.
6462 (arch_complex_type): Remove.
6463 (gdbtypes_post_init): Use init_complex_type.
6464 * f-lang.c (build_fortran_types): Use init_complex_type.
6465 * dwarf2/read.c (read_base_type): Update.
6466 * d-lang.c (build_d_types): Use init_complex_type.
6467 * ctfread.c (read_base_type): Update.
6468
6469 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6470
6471 * infrun.c (stop_all_threads): Update assertion, plus when
6472 stopping threads, take into account that we might be trying
6473 to stop an all-stop target.
6474 (stop_waiting): Call 'stop_all_threads' if there exists a
6475 non-stop target.
6476
6477 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6478
6479 * target.h (exists_non_stop_target): New function declaration.
6480 * target.c (exists_non_stop_target): New function.
6481
6482 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6483
6484 PR gdb/24789
6485 * eval.c (is_integral_or_integral_reference): New function.
6486 (evaluate_subexp_standard): Allow integer references in
6487 pointer arithmetic.
6488
6489 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6490
6491 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6492 check for no ptid in the stop reply when the target is non-stop.
6493
6494 2020-04-01 Tom Tromey <tromey@adacore.com>
6495
6496 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6497 "name" parameter to rvalue reference. Initialize m_name_holder.
6498 <lookup_name_info>: New overloads.
6499 <name>: Return gdb::string_view.
6500 <c_str>: New method.
6501 <make_ignore_params>: Update.
6502 <search_name_hash>: Update.
6503 <language_lookup_name>: Return const char *.
6504 <m_name>: Change type.
6505 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6506 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6507 (lookup_name_info::match_any): Update.
6508 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6509 Update.
6510 * minsyms.c (linkage_name_str): Update.
6511 * language.c (default_symbol_name_matcher): Update.
6512 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6513 Update.
6514 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6515 (ada_lookup_name_info::ada_lookup_name_info): Update.
6516 (literal_symbol_name_matcher): Update.
6517
6518 2020-04-01 Tom Tromey <tromey@adacore.com>
6519
6520 * psymtab.c (psymtab_search_name): Remove function.
6521 (psym_lookup_symbol): Create search name and lookup name here.
6522 (lookup_partial_symbol): Remove "name" parameter; add
6523 lookup_name.
6524 (psym_expand_symtabs_for_function): Update.
6525
6526 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6527
6528 PR tui/25597:
6529 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6530
6531 2020-03-31 Tom Tromey <tromey@adacore.com>
6532
6533 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6534 memcpy.
6535
6536 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6537
6538 * features/riscv/32bit-csr.xml: Regenerated.
6539 * features/riscv/64bit-csr.xml: Regenerated.
6540
6541 2020-03-30 Tom Tromey <tromey@adacore.com>
6542
6543 * ada-valprint.c (print_variant_part): Update.
6544 * ada-lang.h (ada_which_variant_applies): Update.
6545 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6546 outer_valaddr parameters; replace with "outer" value parameter.
6547 (to_fixed_variant_branch_type): Update.
6548
6549 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6550
6551 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6552 <list>. Remove inclusion of observable.h.
6553 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6554 (struct arch_lwp_info): New struct.
6555 (class ppc_linux_dreg_interface): New class.
6556 (struct ppc_linux_process_info): New struct.
6557 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6558 <low_new_clone, low_forget_process, low_prepare_to_resume>
6559 <copy_thread_dreg_state, mark_thread_stale>
6560 <mark_debug_registers_changed, register_hw_breakpoint>
6561 <clear_hw_breakpoint, register_wp, clear_wp>
6562 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6563 <num_memory_accesses, get_trigger_type>
6564 <create_watchpoint_request, hwdebug_point_cmp>
6565 <init_arch_lwp_info, get_arch_lwp_info>
6566 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6567 methods.
6568 <struct ptid_hash>: New inner struct.
6569 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6570 members.
6571 (saved_dabr_value, hwdebug_info, max_slots_number)
6572 (struct hw_break_tuple, struct thread_points, ppc_threads)
6573 (have_ptrace_hwdebug_interface)
6574 (hwdebug_find_thread_points_by_tid)
6575 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6576 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6577 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6578 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6579 use m_dreg_interface.
6580 (hwdebug_point_cmp): Change to...
6581 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6582 reference arguments instead of pointers.
6583 (ppc_linux_nat_target::ranged_break_num_registers): Use
6584 m_dreg_interface.
6585 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6586 m_dreg_interface. Call register_hw_breakpoint.
6587 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6588 m_dreg_interface. Call clear_hw_breakpoint.
6589 (get_trigger_type): Change to...
6590 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6591 comment.
6592 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6593 use m_dreg_interface. Call register_hw_breakpoint.
6594 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6595 use m_dreg_interface. Call clear_hw_breakpoint.
6596 (can_use_watchpoint_cond_accel): Change to...
6597 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6598 method. Update comment, use m_dreg_interface and
6599 m_process_info.
6600 (calculate_dvc): Change to...
6601 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6602 m_dreg_interface.
6603 (num_memory_accesses): Change to...
6604 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6605 (check_condition): Change to...
6606 (ppc_linux_nat_target::check_condition): ...this method.
6607 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6608 comment, use m_dreg_interface.
6609 (create_watchpoint_request): Change to...
6610 (ppc_linux_nat_target::create_watchpoint_request): ...this
6611 method. Use m_dreg_interface.
6612 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6613 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6614 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6615 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6616 (ppc_linux_nat_target::low_forget_process)
6617 (ppc_linux_nat_target::low_new_fork)
6618 (ppc_linux_nat_target::low_new_clone)
6619 (ppc_linux_nat_target::low_delete_thread)
6620 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6621 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6622 only call mark_thread_stale.
6623 (ppc_linux_thread_exit): Remove.
6624 (ppc_linux_nat_target::stopped_data_address): Change to...
6625 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6626 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6627 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6628 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6629 comment. Call low_stopped_data_address.
6630 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6631 m_dreg_interface.
6632 (ppc_linux_nat_target::masked_watch_num_registers): Use
6633 m_dreg_interface.
6634 (ppc_linux_nat_target::copy_thread_dreg_state)
6635 (ppc_linux_nat_target::mark_thread_stale)
6636 (ppc_linux_nat_target::mark_debug_registers_changed)
6637 (ppc_linux_nat_target::register_hw_breakpoint)
6638 (ppc_linux_nat_target::clear_hw_breakpoint)
6639 (ppc_linux_nat_target::register_wp)
6640 (ppc_linux_nat_target::clear_wp)
6641 (ppc_linux_nat_target::init_arch_lwp_info)
6642 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6643 (_initialize_ppc_linux_nat): Remove observer callback.
6644
6645 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6646
6647 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6648 (ppc_linux_nat_target::auxv_parse)
6649 (ppc_linux_nat_target::read_description)
6650 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6651 Move up.
6652
6653 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6654
6655 * linux-nat.h (low_new_clone): New method.
6656 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6657
6658 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6659
6660 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6661 (dbx_expand_psymtab): ... this.
6662 (start_psymtab): Update.
6663 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6664 (mdebug_expand_psymtab): ... this.
6665 (parse_partial_symbols): Update.
6666 (new_psymtab): Update.
6667 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6668 (xcoff_expand_psymtab): ... this.
6669 (xcoff_start_psymtab): Update.
6670
6671 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6672
6673 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6674 <expand_dependencies>: ... this.
6675 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6676 (partial_symtab::expand_dependencies): ... this.
6677 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6678 Update.
6679 (dwarf2_psymtab::expand_psymtab): Update.
6680 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6681 * mdebugread.c (psymtab_to_symtab_1): Update.
6682 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6683
6684 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6685
6686 * psympriv.h (discard_psymtab): Remove.
6687 * dbxread.c (dbx_end_psymtab): Update.
6688 * xcoffread.c (xcoff_end_psymtab): Update.
6689
6690 2020-03-28 Tom Tromey <tom@tromey.com>
6691
6692 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6693 comment.
6694
6695 2020-03-28 Tom Tromey <tom@tromey.com>
6696
6697 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6698
6699 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6700
6701 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6702
6703 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6704
6705 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6706
6707 2020-03-26 Tom Tromey <tom@tromey.com>
6708
6709 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6710 (mark_common_block_symbol_computed, read_tag_string_type)
6711 (attr_to_dynamic_prop, read_subrange_type): Update.
6712 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6713 to be methods on struct attribute.
6714 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6715 (read_call_site_scope, partial_die_info::read)
6716 (partial_die_info::read, lookup_die_type, follow_die_ref):
6717 Update.
6718 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6719 from dwarf2_get_ref_die_offset.
6720 (attribute::constant_value): New method, from
6721 dwarf2_get_attr_constant_value.
6722 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6723 Declare method.
6724 <constant_value>: New method.
6725
6726 2020-03-26 Tom Tromey <tom@tromey.com>
6727
6728 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6729 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6730 (dwarf_type_encoding_name): Move to stringify.c.
6731 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6732 * dwarf2/stringify.c: New file.
6733 * dwarf2/stringify.h: New file.
6734
6735 2020-03-26 Tom Tromey <tom@tromey.com>
6736
6737 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6738 Rewrite.
6739
6740 2020-03-26 Tom Tromey <tom@tromey.com>
6741
6742 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6743 methods.
6744 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6745 (lookup_ranges_base): Likewise.
6746 (read_cutu_die_from_dwo, read_full_die_1): Update.
6747
6748 2020-03-26 Tom Tromey <tom@tromey.com>
6749
6750 * dwarf2/read.c (read_import_statement, read_file_scope)
6751 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6752 (read_lexical_block_scope, read_call_site_scope)
6753 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6754 (handle_struct_member_die, process_structure_scope)
6755 (update_enumeration_type_from_children)
6756 (process_enumeration_scope, read_array_type, read_common_block)
6757 (read_namespace, read_module, read_subroutine_type): Update.
6758 (sibling_die): Remove.
6759
6760 2020-03-26 Tom Tromey <tom@tromey.com>
6761
6762 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6763 (build_type_psymtabs_reader, read_structure_type)
6764 (read_enumeration_type, read_full_die_1): Update.
6765 (dwarf2_attr_no_follow): Move to die.h.
6766 * dwarf2/die.h (struct die_info) <attr>: New method.
6767
6768 2020-03-26 Tom Tromey <tom@tromey.com>
6769
6770 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6771 <base_address>: Now an optional.
6772 (dwarf2_find_base_address, dwarf2_rnglists_process)
6773 (dwarf2_ranges_process, fill_in_loclist_baton)
6774 (dwarf2_symbol_mark_computed): Update.
6775
6776 2020-03-26 Tom Tromey <tom@tromey.com>
6777
6778 * dwarf2/read.c (struct die_info): Move to die.h.
6779 * dwarf2/die.h: New file.
6780
6781 2020-03-26 Tom Tromey <tom@tromey.com>
6782
6783 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6784 * dwarf2/read.c
6785 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6786 Move to line-header.c.
6787 (read_checked_initial_length_and_offset, read_formatted_entries):
6788 Likewise.
6789 (dwarf_decode_line_header): Split into two.
6790 * dwarf2/line-header.c
6791 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6792 Move from read.c.
6793 (read_checked_initial_length_and_offset, read_formatted_entries):
6794 Likewise.
6795 (dwarf_decode_line_header): New function, split from read.c.
6796
6797 2020-03-26 Tom Tromey <tom@tromey.com>
6798
6799 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6800 Declare method.
6801 * dwarf2/read.c (read_attribute_value): Update.
6802 (dwarf2_per_objfile::read_line_string): Rename from
6803 read_indirect_line_string.
6804 (read_formatted_entries): Update.
6805
6806 2020-03-26 Tom Tromey <tom@tromey.com>
6807
6808 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6809 variable.
6810
6811 2020-03-26 Tom Tromey <tom@tromey.com>
6812
6813 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6814 const.
6815 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6816 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6817 parameter const.
6818
6819 2020-03-26 Tom Tromey <tom@tromey.com>
6820
6821 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6822 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6823 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6824 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6825
6826 2020-03-26 Tom Tromey <tom@tromey.com>
6827
6828 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6829 file_names_size, file_full_name, file_file_name>: Use const.
6830 <file_name_at, file_names>: Add const overload.
6831 * dwarf2/line-header.c (line_header::file_file_name)
6832 (line_header::file_full_name): Update.
6833
6834 2020-03-26 Tom Tromey <tom@tromey.com>
6835
6836 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6837 (macro_start_file, consume_improper_spaces)
6838 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6839 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6840 (dwarf_decode_macros): Move to macro.c.
6841 * dwarf2/macro.c: New file.
6842 * dwarf2/macro.h: New file.
6843 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6844
6845 2020-03-26 Tom Tromey <tom@tromey.com>
6846
6847 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6848 method.
6849 * dwarf2/section.c: New method. From
6850 read_indirect_string_at_offset_from.
6851 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6852 (read_indirect_string_at_offset_from): Move to section.c.
6853 (read_indirect_string_at_offset): Rewrite.
6854 (read_indirect_line_string_at_offset): Remove.
6855 (read_indirect_string, read_indirect_line_string)
6856 (dwarf_decode_macro_bytes): Update.
6857
6858 2020-03-26 Tom Tromey <tom@tromey.com>
6859
6860 * dwarf2/section.h (struct dwarf2_section_info)
6861 <overload_complaint>: Declare.
6862 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6863 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6864 Rename from dwarf2_section_buffer_overflow_complaint.
6865 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6866 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6867
6868 2020-03-26 Tom Tromey <tom@tromey.com>
6869
6870 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6871 Declare.
6872 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6873 Move from read.c.
6874 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6875 to section.c.
6876
6877 2020-03-26 Tom Tromey <tom@tromey.com>
6878
6879 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6880
6881 2020-03-26 Tom Tromey <tom@tromey.com>
6882
6883 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6884 "builder".
6885 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6886 parameter.
6887 (dwarf_decode_macros): Update.
6888
6889 2020-03-26 Tom Tromey <tom@tromey.com>
6890
6891 * dwarf2/read.c (read_attribute_value): Update.
6892 (read_indirect_string_from_dwz): Move to dwz.c; change into
6893 method.
6894 (dwarf_decode_macro_bytes): Update.
6895 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6896 * dwarf2/dwz.c: New file.
6897 * Makefile.in (COMMON_SFILES): Add dwz.c.
6898
6899 2020-03-26 Tom Tromey <tom@tromey.com>
6900
6901 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6902 * dwarf2/read.c: Add include.
6903 * dwarf2/index-write.c: Add include.
6904 * dwarf2/index-cache.c: Add include.
6905 * dwarf2/dwz.h: New file.
6906
6907 2020-03-25 Tom Tromey <tom@tromey.com>
6908
6909 * compile/compile-object-load.c (get_out_value_type): Mention
6910 correct symbol name in error message.
6911
6912 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6913
6914 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6915
6916 2020-03-25 Tom de Vries <tdevries@suse.de>
6917
6918 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6919 * symmisc.c (dump_symtab_1): Print user and includes fields.
6920 (maintenance_info_symtabs): Same.
6921
6922 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6923
6924 PR gdb/25534
6925 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6926 (riscv_regcache_cooked_write): New function.
6927 (riscv_push_dummy_call): Use new function.
6928 (riscv_return_value): Likewise.
6929
6930 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6931
6932 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6933 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6934 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6935 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6936 * infrun.c (follow_fork): Likewise.
6937 (follow_fork_inferior): Likewise.
6938 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6939 * linux-nat.h (class linux_nat_target): Likewise.
6940 * remote.c (class remote_target) <follow_fork>: Likewise.
6941 (remote_target::follow_fork): Likewise.
6942 * target-delegates.c: Re-generate.
6943 * target.c (default_follow_fork): Likewise.
6944 (target_follow_fork): Likewise.
6945 * target.h (struct target_ops) <follow_fork>: Likewise.
6946 (target_follow_fork): Likewise.
6947
6948 2020-03-24 Tom de Vries <tdevries@suse.de>
6949
6950 * psymtab.c (maintenance_info_psymtabs): Print user field.
6951
6952 2020-03-20 Tom Tromey <tromey@adacore.com>
6953
6954 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6955 const.
6956 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6957 const.
6958
6959 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6960
6961 * ptrace.m4: Don't check for ptrace declaration.
6962 * config.in: Re-generate.
6963 * configure: Re-generate.
6964 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6965 not defined.
6966
6967 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6968
6969 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6970 `PTRACE_TYPE_RET'.
6971 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6972 * sparc-nat.c (gdb_ptrace): Likewise.
6973 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6974
6975 2020-03-20 Tom Tromey <tromey@adacore.com>
6976
6977 * c-exp.y (lex_one_token): Fix assert.
6978
6979 2020-03-20 Tom Tromey <tromey@adacore.com>
6980
6981 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6982 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6983 strncpy call.
6984
6985 2020-03-20 Tom Tromey <tromey@adacore.com>
6986
6987 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6988
6989 2020-03-20 Tom Tromey <tromey@adacore.com>
6990
6991 * ada-valprint.c (print_variant_part): Remove parameters; switch
6992 to value-based API.
6993 (print_field_values): Likewise.
6994 (ada_val_print_struct_union): Likewise.
6995 (ada_value_print_1): Update.
6996
6997 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6998
6999 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7000 nbsd_nat_target instead of inf_ptrace_target.
7001 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7002 nbsd_nat_target.
7003
7004 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7005
7006 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7007 it to the ptrace call.
7008 * (store_registers): Likewise.
7009
7010 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7011
7012 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7013 it to the ptrace call.
7014 * (store_registers): Likewise.
7015
7016 2020-03-19 Luis Machado <luis.machado@linaro.org>
7017
7018 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7019 valid, fetch vg value from ptrace.
7020
7021 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7022 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7023 * inf-ptrace.c: Likewise.
7024 * (gdb_ptrace): Add.
7025 * (inf_ptrace_target::resume): Update.
7026 * (inf_ptrace_target::xfer_partial): Likewise.
7027 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7028 * (inf_ptrace_peek_poke): Update.
7029
7030 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7031
7032 * x86-bsd-nat.c (gdb_ptrace): New.
7033 * (x86bsd_dr_set): Add new argument `ptid'.
7034 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7035 x86bsd_dr_set_addr): Update.
7036
7037 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7038
7039 * remote.c (remote_target::process_stop_reply): Handle events for
7040 all threads differently.
7041
7042 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7043
7044 * completer.c (completion_tracker::remove_completion): Define new
7045 function.
7046 * completer.h (completion_tracker::remove_completion): Declare new
7047 function.
7048 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7049 when adding a C++ function symbol.
7050
7051 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7052
7053 * completer.c (completion_tracker::completion_hash_entry): Define
7054 new class.
7055 (advance_to_filename_complete_word_point): Call
7056 recompute_lowest_common_denominator.
7057 (completion_tracker::completion_tracker): Call discard_completions
7058 to setup the hash table.
7059 (completion_tracker::discard_completions): Allow for being called
7060 from the constructor, pass new equal function, and element deleter
7061 when constructing the hash table. Initialise new class member
7062 variables.
7063 (completion_tracker::maybe_add_completion): Remove use of
7064 m_entries_vec, and store more information into m_entries_hash.
7065 (completion_tracker::recompute_lcd_visitor): New function, most
7066 content taken from...
7067 (completion_tracker::recompute_lowest_common_denominator):
7068 ...here, this now just visits each item in the hash calling the
7069 above visitor.
7070 (completion_tracker::build_completion_result): Remove use of
7071 m_entries_vec, call recompute_lowest_common_denominator.
7072 * completer.h (completion_tracker::have_completions): Remove use
7073 of m_entries_vec.
7074 (completion_tracker::completion_hash_entry): Declare new class.
7075 (completion_tracker::recompute_lowest_common_denominator): Change
7076 function signature.
7077 (completion_tracker::recompute_lcd_visitor): Declare new function.
7078 (completion_tracker::m_entries_vec): Delete.
7079 (completion_tracker::m_entries_hash): Initialize to NULL.
7080 (completion_tracker::m_lowest_common_denominator_valid): New
7081 member variable.
7082 (completion_tracker::m_lowest_common_denominator_max_length): New
7083 member variable.
7084
7085 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7086
7087 * regformats/regdef.h: Put reg in gdb namespace.
7088
7089 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7090
7091 * i386-bsd-nat.c (gdb_ptrace): New.
7092 * (i386bsd_fetch_inferior_registers,
7093 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7094 * (i386bsd_fetch_inferior_registers,
7095 i386bsd_store_inferior_registers) Use gdb_ptrace.
7096
7097 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7098
7099 * amd64-bsd-nat.c (gdb_ptrace): New.
7100 * (amd64bsd_fetch_inferior_registers,
7101 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7102 * (amd64bsd_fetch_inferior_registers,
7103 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7104
7105 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7106
7107 * user-regs.c (user_reg::read): Rename to...
7108 (user_reg::xread): ...this.
7109 * (append_user_reg): Rename argument `read' to `xread'.
7110 * (user_reg_add_builtin): Likewise.
7111 * (user_reg_add): Likewise.
7112 * (value_of_user_reg): Likewise.
7113
7114 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7115
7116 * sparc-nat.c (gdb_ptrace): New.
7117 * sparc-nat.c (sparc_fetch_inferior_registers)
7118 (sparc_store_inferior_registers) Remove obsolete comment.
7119 * sparc-nat.c (sparc_fetch_inferior_registers)
7120 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7121 * sparc-nat.c (sparc_fetch_inferior_registers)
7122 (sparc_store_inferior_registers) Use gdb_ptrace.
7123
7124 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7125
7126 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7127 it to the ptrace call.
7128 * sh-nbsd-nat.c (store_registers): Likewise.
7129
7130 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7131
7132 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7133 nbsd_nat_target instead of inf_ptrace_target.
7134 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7135 nbsd_nat_target.
7136
7137 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7138
7139 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7140
7141 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7142
7143 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7144 <sys/sysctl.h>.
7145 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7146
7147 2020-03-17 Tom de Vries <tdevries@suse.de>
7148
7149 PR gdb/23710
7150 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7151 fields.
7152 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7153 fields.
7154 (process_imported_unit_die): Skip import of c++ CUs.
7155
7156 2020-03-16 Tom Tromey <tom@tromey.com>
7157
7158 * p-valprint.c (pascal_object_print_value): Initialize
7159 base_value.
7160
7161 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7162 Shahab Vahedi <shahab@synopsys.com>
7163
7164 * Makefile.in: Add arch/arc.o
7165 * configure.tgt: Likewise.
7166 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7167 (_initialize_arc_tdep): Don't initialize old target descriptions.
7168 (arc_read_description): New function to cache target descriptions.
7169 * arc-tdep.h (arc_read_description): Add proto type.
7170 * arch/arc.c: New file.
7171 * arch/arc.h: Likewise.
7172 * features/Makefile: Replace old target descriptions with new.
7173 * features/arc-arcompact.c: Remove.
7174 * features/arc-arcompact.xml: Likewise.
7175 * features/arc-v2.c: Likewise
7176 * features/arc-v2.xml: Likewise
7177 * features/arc/aux-arcompact.xml: New file.
7178 * features/arc/aux-v2.xml: Likewise.
7179 * features/arc/core-arcompact.xml: Likewise.
7180 * features/arc/core-v2.xml: Likewise.
7181 * features/arc/aux-arcompact.c: Generate.
7182 * features/arc/aux-v2.c: Likewise.
7183 * features/arc/core-arcompact.c: Likewise.
7184 * features/arc/core-v2.c: Likewise.
7185 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7186
7187 2020-03-16 Tom Tromey <tromey@adacore.com>
7188
7189 PR gdb/25663:
7190 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7191 putting value into bcache.
7192
7193 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7194
7195 PR gdb/21500
7196 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7197 to...
7198 (amd64_windows_init_abi_common): ... this. Don't set size of
7199 long type.
7200 (amd64_windows_init_abi): New function.
7201 (amd64_cygwin_init_abi): New function.
7202 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7203 the Cygwin OS ABI.
7204 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7205 comment.
7206
7207 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7208
7209 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7210 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7211 (pe_import_directory_entry): New struct type.
7212 (is_linked_with_cygwin_dll): New function.
7213 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7214 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7215 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7216
7217 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7218
7219 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7220 i386_cygwin_core_osabi_sniffer.
7221
7222 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7223
7224 * i386-cygwin-tdep.c: Rename to...
7225 * i386-windows-tdep.c: ... this.
7226 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7227 i386-windows-tdep.c.
7228 * configure.tgt: Likewise.
7229
7230 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7231
7232 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7233 * osabi.c (gdb_osabi_names): Add "Windows".
7234 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7235 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7236 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7237 i386_cygwin_osabi_sniffer.
7238 (_initialize_i386_cygwin_tdep): Register OS ABI
7239 GDB_OSABI_WINDOWS for i386.
7240 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7241 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7242 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7243 for x86-64.
7244 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7245 when the target matches '*-*-mingw*'.
7246
7247 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7248
7249 * defs.h (enum gdb_osabi): Move to...
7250 * osabi.h (enum gdb_osabi): ... here.
7251 * gdbarch.sh: Include osabi.h in gdbarch.h.
7252 * gdbarch.h: Re-generate.
7253
7254 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7255
7256 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7257 function.
7258 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7259
7260 2020-03-14 Tom Tromey <tom@tromey.com>
7261
7262 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7263 for C++.
7264 (c_type_print_modifier): Likewise. Add "language" parameter.
7265 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7266 (c_type_print_base_1): Update.
7267 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7268 constants.
7269 * type-stack.c (type_stack::insert): Handle tp_atomic and
7270 tp_restrict.
7271 (type_stack::follow_type_instance_flags): Likewise.
7272 (type_stack::follow_types): Likewise. Merge type-following code.
7273 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7274 (space_identifier, cv_with_space_id)
7275 (const_or_volatile_or_space_identifier_noopt)
7276 (const_or_volatile_or_space_identifier): Remove.
7277 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7278 rules.
7279 (ptr_operator, typebase): Update.
7280 (enum token_flag) <FLAG_C>: New constant.
7281 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7282 "_Atomic".
7283 (lex_one_token): Handle FLAG_C.
7284
7285 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7286
7287 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7288 it to the ptrace call.
7289 * m68k-bsd-nat.c (store_registers): Likewise.
7290
7291 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7292
7293 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7294 gdb_byte *.
7295 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7296 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7297 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7298
7299 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7300
7301 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7302 nbsd_nat_target instead of inf_ptrace_target.
7303 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7304 nbsd_nat_target.
7305
7306 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7307
7308 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7309 register_t.
7310
7311 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7312
7313 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7314 it to the ptrace call.
7315 * alpha-bsd-nat.c (store_registers): Likewise.
7316
7317 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7318
7319 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7320 includes.
7321 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7322 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7323 fill_fpregset): Likewise.
7324
7325 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7326
7327 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7328 nbsd_nat_target instead of inf_ptrace_target.
7329 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7330 nbsd_nat_target.
7331
7332 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7333
7334 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7335 register_t.
7336
7337 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7338
7339 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7340 it to the ptrace call.
7341 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7342 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7343 * arm-nbsd-nat.c (store_register): Likewise.
7344 * arm-nbsd-nat.c (store_regs): Likewise.
7345 * arm-nbsd-nat.c (store_fp_register): Likewise.
7346 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7347
7348 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7349
7350 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7351 nbsd_nat_target instead of inf_ptrace_target.
7352 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7353 nbsd_nat_target.
7354
7355 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7356
7357 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7358 it to the ptrace call.
7359 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7360
7361 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7362
7363 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7364 it to the ptrace call.
7365 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7366
7367 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7368
7369 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7370 gdb_byte *.
7371 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7372
7373 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7374
7375 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7376 instead of inf_ptrace_target.
7377 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7378 nbsd_nat_target.
7379
7380 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7381
7382 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7383 register_t.
7384
7385 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7386
7387 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7388 register_t.
7389
7390 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7391
7392 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7393 register_t.
7394
7395 2020-03-13 Tom Tromey <tom@tromey.com>
7396
7397 * value.h (val_print): Don't declare.
7398 * valprint.h (val_print_array_elements)
7399 (val_print_scalar_formatted, generic_val_print): Don't declare.
7400 * valprint.c (generic_val_print_array): Take a struct value.
7401 (generic_val_print_ptr, generic_val_print_memberptr)
7402 (generic_val_print_bool, generic_val_print_int)
7403 (generic_val_print_char, generic_val_print_complex)
7404 (generic_val_print): Remove.
7405 (generic_value_print): Update.
7406 (do_val_print): Remove unused parameters. Don't call
7407 la_val_print.
7408 (val_print): Remove.
7409 (common_val_print): Update. Don't call value_check_printable.
7410 (val_print_scalar_formatted, val_print_array_elements): Remove.
7411 * rust-lang.c (rust_val_print): Remove.
7412 (rust_language_defn): Update.
7413 * p-valprint.c (pascal_val_print): Remove.
7414 (pascal_value_print_inner): Update.
7415 (pascal_object_print_val_fields, pascal_object_print_val):
7416 Remove.
7417 (pascal_object_print_static_field): Update.
7418 * p-lang.h (pascal_val_print): Don't declare.
7419 * p-lang.c (pascal_language_defn): Update.
7420 * opencl-lang.c (opencl_language_defn): Update.
7421 * objc-lang.c (objc_language_defn): Update.
7422 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7423 * m2-lang.h (m2_val_print): Don't declare.
7424 * m2-lang.c (m2_language_defn): Update.
7425 * language.h (struct language_defn) <la_val_print>: Remove.
7426 * language.c (unk_lang_value_print_inner): Rename. Change
7427 argument types.
7428 (unknown_language_defn, auto_language_defn): Update.
7429 * go-valprint.c (go_val_print): Remove.
7430 * go-lang.h (go_val_print): Don't declare.
7431 * go-lang.c (go_language_defn): Update.
7432 * f-valprint.c (f_val_print): Remove.
7433 * f-lang.h (f_value_print): Don't declare.
7434 * f-lang.c (f_language_defn): Update.
7435 * d-valprint.c (d_val_print): Remove.
7436 * d-lang.h (d_value_print): Don't declare.
7437 * d-lang.c (d_language_defn): Update.
7438 * cp-valprint.c (cp_print_value_fields)
7439 (cp_print_value_fields_rtti, cp_print_value): Remove.
7440 (cp_print_static_field): Update.
7441 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7442 (c_val_print_struct, c_val_print_union, c_val_print_int)
7443 (c_val_print_memberptr, c_val_print): Remove.
7444 * c-lang.h (c_val_print_array, cp_print_value_fields)
7445 (cp_print_value_fields_rtti): Don't declare.
7446 * c-lang.c (c_language_defn, cplus_language_defn)
7447 (asm_language_defn, minimal_language_defn): Update.
7448 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7449 (ada_val_print_enum): Take a struct value.
7450 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7451 (ada_val_print): Remove.
7452 (ada_value_print_1): Update.
7453 (printable_val_type): Remove.
7454 * ada-lang.h (ada_val_print): Don't declare.
7455 * ada-lang.c (ada_language_defn): Update.
7456
7457 2020-03-13 Tom Tromey <tom@tromey.com>
7458
7459 * valprint.c (do_val_print): Update.
7460 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7461 a struct value.
7462 (value_to_value_object_no_release): Declare.
7463 * python/py-value.c (value_to_value_object_no_release): New
7464 function.
7465 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7466 struct value.
7467 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7468 function.
7469 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7470 a struct value.
7471 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7472 Declare.
7473 (gdbscm_apply_val_pretty_printer): Take a struct value.
7474 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7475 value.
7476 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7477 value.
7478 * extension-priv.h (struct extension_language_ops)
7479 <apply_val_pretty_printer>: Take a struct value.
7480 * cp-valprint.c (cp_print_value): Create a struct value.
7481 (cp_print_value): Update.
7482
7483 2020-03-13 Tom Tromey <tom@tromey.com>
7484
7485 * ada-valprint.c (print_field_values): Call common_val_print.
7486
7487 2020-03-13 Tom Tromey <tom@tromey.com>
7488
7489 * ada-valprint.c (val_print_packed_array_elements): Remove
7490 bitoffset and val parameters. Call common_val_print.
7491 (ada_val_print_string): Remove offset, address, and original_value
7492 parameters.
7493 (ada_val_print_array): Update.
7494 (ada_value_print_array): New function.
7495 (ada_value_print_1): Call it.
7496
7497 2020-03-13 Tom Tromey <tom@tromey.com>
7498
7499 * ada-valprint.c (ada_value_print): Use common_val_print.
7500
7501 2020-03-13 Tom Tromey <tom@tromey.com>
7502
7503 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7504
7505 2020-03-13 Tom Tromey <tom@tromey.com>
7506
7507 * ada-valprint.c (ada_value_print_num): New function.
7508 (ada_value_print_1): Use it.
7509
7510 2020-03-13 Tom Tromey <tom@tromey.com>
7511
7512 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7513
7514 2020-03-13 Tom Tromey <tom@tromey.com>
7515
7516 * ada-valprint.c (ada_value_print_ptr): New function.
7517 (ada_value_print_1): Use it.
7518
7519 2020-03-13 Tom Tromey <tom@tromey.com>
7520
7521 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7522 call common_val_print.
7523 (ada_val_print_1): Update.
7524 (ada_value_print_1): New function.
7525 (ada_value_print_inner): Rewrite.
7526
7527 2020-03-13 Tom Tromey <tom@tromey.com>
7528
7529 * cp-valprint.c (cp_print_value_fields): Update.
7530 (cp_print_value): New function.
7531
7532 2020-03-13 Tom Tromey <tom@tromey.com>
7533
7534 * m2-valprint.c (m2_value_print_inner): Use
7535 cp_print_value_fields.
7536 * cp-valprint.c (cp_print_value_fields): New function.
7537 * c-valprint.c (c_value_print_struct): New function.
7538 (c_value_print_inner): Use c_value_print_struct.
7539 * c-lang.h (cp_print_value_fields): Declare.
7540
7541 2020-03-13 Tom Tromey <tom@tromey.com>
7542
7543 * c-valprint.c (c_value_print_array): New function.
7544 (c_value_print_inner): Use it.
7545
7546 2020-03-13 Tom Tromey <tom@tromey.com>
7547
7548 * c-valprint.c (c_value_print_memberptr): New function.
7549 (c_value_print_inner): Use it.
7550
7551 2020-03-13 Tom Tromey <tom@tromey.com>
7552
7553 * c-valprint.c (c_value_print_int): New function.
7554 (c_value_print_inner): Use it.
7555
7556 2020-03-13 Tom Tromey <tom@tromey.com>
7557
7558 * c-valprint.c (c_value_print_ptr): New function.
7559 (c_value_print_inner): Use it.
7560
7561 2020-03-13 Tom Tromey <tom@tromey.com>
7562
7563 * c-valprint.c (c_value_print_inner): Rewrite.
7564
7565 2020-03-13 Tom Tromey <tom@tromey.com>
7566
7567 * valprint.c (generic_value_print_complex): New function.
7568 (generic_value_print): Use it.
7569
7570 2020-03-13 Tom Tromey <tom@tromey.com>
7571
7572 * valprint.c (generic_val_print_float): Don't call
7573 val_print_scalar_formatted.
7574 (generic_val_print, generic_value_print): Update.
7575
7576 2020-03-13 Tom Tromey <tom@tromey.com>
7577
7578 * valprint.c (generic_value_print_char): New function
7579 (generic_value_print): Use it.
7580
7581 2020-03-13 Tom Tromey <tom@tromey.com>
7582
7583 * valprint.c (generic_value_print_int): New function.
7584 (generic_value_print): Use it.
7585
7586 2020-03-13 Tom Tromey <tom@tromey.com>
7587
7588 * valprint.c (generic_value_print_bool): New function.
7589 (generic_value_print): Use it.
7590
7591 2020-03-13 Tom Tromey <tom@tromey.com>
7592
7593 * valprint.c (generic_val_print_func): Simplify.
7594 (generic_val_print, generic_value_print): Update.
7595
7596 2020-03-13 Tom Tromey <tom@tromey.com>
7597
7598 * valprint.c (generic_val_print_flags): Remove.
7599 (generic_val_print, generic_value_print): Update.
7600 (val_print_type_code_flags): Add original_value parameter.
7601
7602 2020-03-13 Tom Tromey <tom@tromey.com>
7603
7604 * valprint.c (generic_val_print): Update.
7605 (generic_value_print): Update.
7606 * valprint.c (generic_val_print_enum): Don't call
7607 val_print_scalar_formatted.
7608
7609 2020-03-13 Tom Tromey <tom@tromey.com>
7610
7611 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7612 * valprint.c (generic_value_print_ptr): New function.
7613
7614 2020-03-13 Tom Tromey <tom@tromey.com>
7615
7616 * valprint.c (generic_value_print): Rewrite.
7617
7618 2020-03-13 Tom Tromey <tom@tromey.com>
7619
7620 * p-valprint.c (pascal_object_print_value_fields)
7621 (pascal_object_print_value): New functions.
7622
7623 2020-03-13 Tom Tromey <tom@tromey.com>
7624
7625 * p-valprint.c (pascal_value_print_inner): Rewrite.
7626
7627 2020-03-13 Tom Tromey <tom@tromey.com>
7628
7629 * f-valprint.c (f_value_print_innner): Rewrite.
7630
7631 2020-03-13 Tom Tromey <tom@tromey.com>
7632
7633 * m2-valprint.c (m2_print_unbounded_array): New overload.
7634 (m2_print_unbounded_array): Update.
7635 (m2_print_array_contents): Take a struct value.
7636 (m2_value_print_inner): Rewrite.
7637
7638 2020-03-13 Tom Tromey <tom@tromey.com>
7639
7640 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7641 (d_value_print_inner): New function.
7642 * d-lang.h (d_value_print_inner): Declare.
7643 * d-lang.c (d_language_defn): Use d_value_print_inner.
7644
7645 2020-03-13 Tom Tromey <tom@tromey.com>
7646
7647 * go-valprint.c (go_value_print_inner): New function.
7648 * go-lang.h (go_value_print_inner): Declare.
7649 * go-lang.c (go_language_defn): Use go_value_print_inner.
7650
7651 2020-03-13 Tom Tromey <tom@tromey.com>
7652
7653 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7654 API.
7655 (rust_val_print): Rewrite.
7656 (rust_value_print_inner): New function, from rust_val_print.
7657 (rust_language_defn): Use rust_value_print_inner.
7658
7659 2020-03-13 Tom Tromey <tom@tromey.com>
7660
7661 * ada-valprint.c (ada_value_print_inner): New function.
7662 * ada-lang.h (ada_value_print_inner): Declare.
7663 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7664
7665 2020-03-13 Tom Tromey <tom@tromey.com>
7666
7667 * f-valprint.c (f_value_print_innner): New function.
7668 * f-lang.h (f_value_print_innner): Declare.
7669 * f-lang.c (f_language_defn): Use f_value_print_innner.
7670
7671 2020-03-13 Tom Tromey <tom@tromey.com>
7672
7673 * p-valprint.c (pascal_value_print_inner): New function.
7674 * p-lang.h (pascal_value_print_inner): Declare.
7675 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7676
7677 2020-03-13 Tom Tromey <tom@tromey.com>
7678
7679 * m2-valprint.c (m2_value_print_inner): New function.
7680 * m2-lang.h (m2_value_print_inner): Declare.
7681 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7682
7683 2020-03-13 Tom Tromey <tom@tromey.com>
7684
7685 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7686 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7687 * c-valprint.c (c_value_print_inner): New function.
7688 * c-lang.h (c_value_print_inner): Declare.
7689 * c-lang.c (c_language_defn, cplus_language_defn)
7690 (asm_language_defn, minimal_language_defn): Use
7691 c_value_print_inner.
7692
7693 2020-03-13 Tom Tromey <tom@tromey.com>
7694
7695 * p-valprint.c (pascal_object_print_value_fields): Now static.
7696 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7697
7698 2020-03-13 Tom Tromey <tom@tromey.com>
7699
7700 * c-valprint.c (c_val_print_array): Simplify.
7701
7702 2020-03-13 Tom Tromey <tom@tromey.com>
7703
7704 * valprint.c (value_print_array_elements): New function.
7705 * valprint.h (value_print_array_elements): Declare.
7706
7707 2020-03-13 Tom Tromey <tom@tromey.com>
7708
7709 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7710 * mips-tdep.c (mips_print_register): Use
7711 value_print_scalar_formatted.
7712
7713 2020-03-13 Tom Tromey <tom@tromey.com>
7714
7715 * valprint.h (value_print_scalar_formatted): Declare.
7716 * valprint.c (value_print_scalar_formatted): New function.
7717
7718 2020-03-13 Tom Tromey <tom@tromey.com>
7719
7720 * valprint.h (generic_value_print): Declare.
7721 * valprint.c (generic_value_print): New function.
7722
7723 2020-03-13 Tom Tromey <tom@tromey.com>
7724
7725 * valprint.c (do_val_print): Call la_value_print_inner, if
7726 available.
7727 * rust-lang.c (rust_language_defn): Update.
7728 * p-lang.c (pascal_language_defn): Update.
7729 * opencl-lang.c (opencl_language_defn): Update.
7730 * objc-lang.c (objc_language_defn): Update.
7731 * m2-lang.c (m2_language_defn): Update.
7732 * language.h (struct language_defn) <la_value_print_inner>: New
7733 member.
7734 * language.c (unknown_language_defn, auto_language_defn): Update.
7735 * go-lang.c (go_language_defn): Update.
7736 * f-lang.c (f_language_defn): Update.
7737 * d-lang.c (d_language_defn): Update.
7738 * c-lang.c (c_language_defn, cplus_language_defn)
7739 (asm_language_defn, minimal_language_defn): Update.
7740 * ada-lang.c (ada_language_defn): Update.
7741
7742 2020-03-13 Tom Tromey <tom@tromey.com>
7743
7744 * c-valprint.c (c_value_print): Use common_val_print.
7745
7746 2020-03-13 Tom Tromey <tom@tromey.com>
7747
7748 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7749
7750 2020-03-13 Tom Tromey <tom@tromey.com>
7751
7752 * f-valprint.c (f77_print_array_1, f_val_print): Use
7753 common_val_print.
7754
7755 2020-03-13 Tom Tromey <tom@tromey.com>
7756
7757 * riscv-tdep.c (riscv_print_one_register_info): Use
7758 common_val_print.
7759
7760 2020-03-13 Tom Tromey <tom@tromey.com>
7761
7762 * mi/mi-main.c (output_register): Use common_val_print.
7763
7764 2020-03-13 Tom Tromey <tom@tromey.com>
7765
7766 * infcmd.c (default_print_one_register_info): Use
7767 common_val_print.
7768
7769 2020-03-13 Tom Tromey <tom@tromey.com>
7770
7771 * valprint.h (common_val_print_checked): Declare.
7772 * valprint.c (common_val_print_checked): New function.
7773 * stack.c (print_frame_arg): Use common_val_print_checked.
7774
7775 2020-03-13 Tom Tromey <tom@tromey.com>
7776
7777 * valprint.c (do_val_print): New function, from val_print.
7778 (val_print): Use do_val_print.
7779 (common_val_print): Use do_val_print.
7780
7781 2020-03-13 Tom Tromey <tom@tromey.com>
7782
7783 * valprint.c (value_print): Use scoped_value_mark.
7784
7785 2020-03-13 Tom de Vries <tdevries@suse.de>
7786
7787 PR symtab/25646
7788 * psymtab.c (partial_symtab::partial_symtab): Don't set
7789 globals_offset and statics_offset. Push element onto
7790 current_global_psymbols and current_static_psymbols stacks.
7791 (concat): New function.
7792 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7793 element from current_global_psymbols and current_static_psymbols
7794 stacks. Concat popped elements to global_psymbols and
7795 static_symbols.
7796 (add_psymbol_to_list): Use current_global_psymbols and
7797 current_static_psymbols stacks.
7798 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7799 current_static_psymbols fields.
7800
7801 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7802
7803 * corelow.c (sniff_core_bfd): Remove.
7804 (class core_target) <m_core_vec>: Remove.
7805 (core_target::core_target): Update.
7806 (core_file_fns): Remove.
7807 (deprecated_add_core_fns): Remove.
7808 (default_core_sniffer): Remove.
7809 (sniff_core_bfd): Remove.
7810 (default_check_format): Remove.
7811 (gdb_check_format): Remove.
7812 (core_target_open): Update.
7813 (core_target::get_core_register_section): Update.
7814 (get_core_registers_cb): Update.
7815 (core_target::fetch_registers): Update.
7816 * gdbcore.h (struct core_fns): Remove.
7817 (deprecated_add_core_fns): Remove.
7818 (default_core_sniffer): Remove.
7819 (default_check_format): Remove.
7820
7821 2020-03-12 Tom Tromey <tom@tromey.com>
7822
7823 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7824 CORE_ADDR.
7825 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7826
7827 2020-03-12 Tom Tromey <tom@tromey.com>
7828
7829 * remote.c (remote_target::download_tracepoint)
7830 (remote_target::enable_tracepoint)
7831 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7832 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7833 sprintf_vma.
7834
7835 2020-03-12 Tom Tromey <tom@tromey.com>
7836
7837 * symfile-mem.c: Update CORE_ADDR size assert.
7838
7839 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7840
7841 * selftest.m4: Move to gdbsupport/.
7842 * acinclude.m4: Update path to selftest.m4.
7843
7844 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7845
7846 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7847 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7848 gdbarch-selfselftests.c and selftest-arch.c.
7849 (SUBDIR_UNITTESTS_OBS): Rename to...
7850 (SELFTESTS_OBS): ... this.
7851 (COMMON_SFILES): Remove disasm-selftests.c and
7852 gdbarch-selftests.c.
7853 * configure.ac: Don't add selftest-arch.{c,o} to
7854 CONFIG_{SRCS,OBS}.
7855 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7856 preprocessor conditions.
7857
7858 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7859
7860 * configure.ac: Don't source bfd/development.sh.
7861 * selftest.m4: Modify comment.
7862 * configure: Re-generate.
7863
7864 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7865
7866 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7867 not "true" or "false".
7868 * configure: Re-generate.
7869
7870 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7871
7872 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7873 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7874 renamed to arm_nbsd_supply_gregset.
7875 (fetch_register): Update to call arm_nbsd_supply_gregset.
7876 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7877 (arm_netbsd_nat_target::fetch_registers): Update.
7878 (fetch_elfcore_registers): Removed.
7879 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7880 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7881 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7882 not require NetBSD system headers.
7883 (arm_nbsd_regset): New struct.
7884 (arm_nbsd_iterate_over_regset_sections): New function.
7885 (arm_netbsd_init_abi_common): Updated to call
7886 set_gdbarch_iterate_over_regset_sections.
7887 * arm-nbsd-tdep.h: New file.
7888
7889 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7890
7891 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7892 recursion.
7893
7894 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7895
7896 * configure: Re-generate.
7897
7898 2020-03-11 Tom Tromey <tromey@adacore.com>
7899
7900 * ada-typeprint.c (print_choices): Fix comment.
7901
7902 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7905 previous item in the list, when the list has no items.
7906
7907 2020-03-11 Tom de Vries <tdevries@suse.de>
7908
7909 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7910 PROP_LOCLIST handling code.
7911
7912 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7913
7914 * buildsym-legacy.c (record_line): Pass extra parameter to
7915 record_line.
7916 * buildsym.c (buildsym_compunit::record_line): Take an extra
7917 parameter, reduce duplication in the line table, and record the
7918 is_stmt flag in the line table.
7919 * buildsym.h (buildsym_compunit::record_line): Add extra
7920 parameter.
7921 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7922 non-statement lines.
7923 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7924 this to the symtab builder.
7925 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7926 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7927 through to dwarf_record_line_1.
7928 * infrun.c (process_event_stop_test): When stepping, don't stop at
7929 a non-statement instruction, and only refresh the step info when
7930 we land in the middle of a line's range. Also add an extra
7931 comment.
7932 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7933 field.
7934 * record-btrace.c (btrace_find_line_range): Only record lines
7935 marked as is-statement.
7936 * stack.c (frame_show_address): Show the frame address if we are
7937 in a non-statement sal.
7938 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7939 (maintenance_print_one_line_table): Print a header for the is_stmt
7940 column, and include is_stmt information in the output.
7941 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7942 preference to non-statements.
7943 (find_pcs_for_symtab_line): Prefer is-statement entries.
7944 (find_line_common): Likewise.
7945 * symtab.h (struct linetable_entry): Add is_stmt field.
7946 (struct symtab_and_line): Likewise.
7947 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7948 arranging the line table.
7949
7950 2020-03-07 Tom de Vries <tdevries@suse.de>
7951
7952 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7953 DIE.
7954
7955 2020-03-07 Tom Tromey <tom@tromey.com>
7956
7957 * valops.c (value_literal_complex): Remove obsolete comment.
7958 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7959 comment.
7960
7961 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7962
7963 * infrun.h: Forward-declare thread_info.
7964 (set_step_info): Add thread_info parameter, add doc.
7965 * infrun.c (set_step_info): Add thread_info parameter, move doc
7966 to header.
7967 * infrun.c (process_event_stop_test): Pass thread to
7968 set_step_info call.
7969 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7970 set_step_info.
7971 (prepare_one_step): Add thread_info parameter, pass it to
7972 set_step_frame and prepare_one_step (recursive) call.
7973 (step_1): Pass thread to prepare_one_step call.
7974 (step_command_fsm::should_stop): Pass thread to
7975 prepare_one_step.
7976 (until_next_fsm): Pass thread to set_step_frame call.
7977 (finish_command): Pass thread to set_step_info call.
7978
7979 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7980
7981 * windows-tdep.c (windows_solib_create_inferior_hook):
7982 Check if inferior is running.
7983
7984 2020-03-06 Tom de Vries <tdevries@suse.de>
7985
7986 * NEWS: Fix "the the".
7987 * ctfread.c: Same.
7988
7989 2020-03-06 Tom de Vries <tdevries@suse.de>
7990
7991 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7992
7993 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7994
7995 * .dir-locals.el: Add a comment referencing the other copies of
7996 this file.
7997
7998 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7999
8000 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8001 psargs.
8002
8003 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8004
8005 * .gitattributes: New file.
8006
8007 2020-03-04 Tom Tromey <tom@tromey.com>
8008
8009 * symmisc.c (print_symbol_bcache_statistics)
8010 (print_objfile_statistics): Update.
8011 * symfile.c (allocate_symtab): Use intern.
8012 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8013 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8014 macro_cache>: Remove.
8015 <string_cache>: New member.
8016 (struct objfile) <intern>: New methods.
8017 * elfread.c (elf_symtab_read): Use intern.
8018 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8019 (dwarf2_compute_name, dwarf2_physname)
8020 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8021 names.
8022 (guess_partial_die_structure_name): Update.
8023 (partial_die_info::fixup): Intern name.
8024 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8025 name.
8026 (dwarf2_name): Intern name. Update.
8027 * buildsym.c (buildsym_compunit::get_macro_table): Use
8028 string_cache.
8029
8030 2020-03-04 Tom Tromey <tom@tromey.com>
8031
8032 * jit.c (bfd_open_from_target_memory): Make "target" const.
8033 * corefile.c (gnutarget): Now const.
8034 * gdbcore.h (gnutarget): Now const.
8035
8036 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8037
8038 * NEWS: Mention support for WOW64 processes.
8039 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8040 (amd64_windows_segment_register_p): Remove static.
8041 (_initialize_amd64_windows_nat): Update.
8042 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8043 * i386-windows-nat.c (context_offset): Update.
8044 (i386_mappings): Rename and remove static.
8045 (i386_windows_segment_register_p): Remove static.
8046 (_initialize_i386_windows_nat): Update.
8047 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8048 (STATUS_WX86_SINGLE_STEP): New macro.
8049 (EnumProcessModulesEx): New macro.
8050 (Wow64SuspendThread): New macro.
8051 (Wow64GetThreadContext): New macro.
8052 (Wow64SetThreadContext): New macro.
8053 (Wow64GetThreadSelectorEntry): New macro.
8054 (windows_set_context_register_offsets): Add static.
8055 (windows_set_segment_register_p): Likewise.
8056 (windows_add_thread): Adapt for WOW64 processes.
8057 (windows_fetch_one_register): Likewise.
8058 (windows_nat_target::fetch_registers): Likewise.
8059 (windows_store_one_register): Likewise.
8060 (display_selector): Likewise.
8061 (display_selectors): Likewise.
8062 (handle_exception): Likewise.
8063 (windows_continue): Likewise.
8064 (windows_nat_target::resume): Likewise.
8065 (windows_add_all_dlls): Likewise.
8066 (do_initial_windows_stuff): Likewise.
8067 (windows_nat_target::attach): Likewise.
8068 (windows_get_exec_module_filename): Likewise.
8069 (windows_nat_target::create_inferior): Likewise.
8070 (windows_xfer_siginfo): Likewise.
8071 (_initialize_loadable): Initialize Wow64SuspendThread,
8072 Wow64GetThreadContext, Wow64SetThreadContext,
8073 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8074 * windows-nat.h (windows_set_context_register_offsets):
8075 Remove declaration.
8076 (windows_set_segment_register_p): Likewise.
8077 (i386_windows_segment_register_p): Add declaration.
8078 (amd64_windows_segment_register_p): Likewise.
8079
8080 2020-03-04 Luis Machado <luis.machado@linaro.org>
8081
8082 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8083 in "info registers" for AArch64/ARM.
8084
8085 The change caused "info registers" to not print GPR's.
8086
8087 gdb/ChangeLog:
8088
8089 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8090
8091 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8092 when reg->group is empty and reggroup is not.
8093
8094 2020-03-03 Tom Tromey <tromey@adacore.com>
8095
8096 * dwarf2/frame.c (struct dwarf2_frame_cache)
8097 <checked_tailcall_bottom, entry_cfa_sp_offset,
8098 entry_cfa_sp_offset_p>: Remove members.
8099 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8100 (dwarf2_frame_prev_register): Don't call
8101 dwarf2_tailcall_sniffer_first.
8102 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8103 * frame-unwind.c (add_unwinder): New fuction.
8104 (frame_unwind_init): Use it. Add tailcall unwinder.
8105
8106 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8107 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8108
8109 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8110 value should be printed as true.
8111
8112 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8113
8114 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8115 (windows_init_abi): Set and use windows_so_ops.
8116
8117 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8118
8119 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8120 when verifying if dealing with a convenience variable.
8121
8122 2020-03-03 Luis Machado <luis.machado@linaro.org>
8123
8124 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8125
8126 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8127
8128 * infrun.c (gdbarch_supports_displaced_stepping): New.
8129 (use_displaced_stepping): Break up conditions in smaller pieces.
8130 Use gdbarch_supports_displaced_stepping.
8131 (displaced_step_prepare_throw): Use
8132 gdbarch_supports_displaced_stepping.
8133
8134 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8135
8136 * NEWS: Mention new behaviour of the history filename.
8137 * top.c (write_history_p): Add comment.
8138 (show_write_history_p): Add header comment, give a different
8139 message when history writing is on, but the history filename is
8140 empty.
8141 (history_filename): Add comment.
8142 (history_filename_empty): New function.
8143 (show_history_filename): Add header comment, give a different
8144 message when the filename is empty.
8145 (init_history): Compare history_filename against nullptr, and only
8146 read history if the filename is not empty.
8147 (set_history_filename): Add header comment, and only make
8148 non-empty filenames absolute.
8149 (init_main): Make the filename argument to 'set history filename'
8150 optional.
8151
8152 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8153
8154 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8155 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8156 (fetch_fp_register): Update.
8157 (fetch_fp_regs): Update.
8158 (store_fp_register): Update.
8159 (store_fp_regs): Update.
8160 (arm_netbsd_nat_target::read_description): New function.
8161 (fetch_elfcore_registers): Update.
8162
8163 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8164
8165 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8166 general_thread if the stop reply is missing a thread-id.
8167 (remote_target::process_stop_reply): Use the first non-exited
8168 thread if the target didn't pass a thread-id.
8169 * infrun.c (do_target_wait): Move call to
8170 switch_to_inferior_no_thread to ....
8171 (do_target_wait_1): ... here.
8172
8173 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8174
8175 * debuginfod-support.c: Include defs.h first.
8176
8177 2020-02-28 Tom de Vries <tdevries@suse.de>
8178
8179 * symfile.c (set_initial_language): Use default language for lookup.
8180
8181 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8182
8183 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8184 reader variable, pass `this` to read_cutu_die_from_dwo.
8185
8186 2020-02-27 Aaron Merey <amerey@redhat.com>
8187
8188 * source.c (open_source_file): Check for nullptr when computing
8189 srcpath.
8190
8191 2020-02-27 Tom Tromey <tromey@adacore.com>
8192
8193 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8194 member.
8195 (dwarf2_add_field): Don't update nfields.
8196 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8197
8198 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8199
8200 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8201 abs.
8202
8203 2020-02-26 Tom Tromey <tom@tromey.com>
8204
8205 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8206 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8207 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8208 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8209 per_cu_data.
8210
8211 2020-02-26 Tom Tromey <tom@tromey.com>
8212
8213 * dwarf2/index-write.c (psym_index_map): Change type.
8214 (add_address_entry_worker, write_one_signatured_type)
8215 (recursively_count_psymbols, recursively_write_psymbols)
8216 (class debug_names, psyms_seen_size, write_gdbindex)
8217 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8218
8219 2020-02-26 Aaron Merey <amerey@redhat.com>
8220
8221 * Makefile.in: Handle optional debuginfod support.
8222 * NEWS: Update.
8223 * README: Add --with-debuginfod summary.
8224 * config.in: Regenerate.
8225 * configure: Regenerate.
8226 * configure.ac: Handle optional debuginfod support.
8227 * debuginfod-support.c: debuginfod helper functions.
8228 * debuginfod-support.h: Ditto.
8229 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8230 summary.
8231 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8232 when a dwz file cannot be found.
8233 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8234 debuginfo file cannot be found.
8235 * source.c (open_source_file): Query debuginfod servers when a
8236 source file cannot be found.
8237 * top.c (print_gdb_configuration): Include
8238 --{with,without}-debuginfod in the output.
8239
8240 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8241
8242 * thread.c (thr_try_catch_cmd): Print thread name.
8243
8244 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8245
8246 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8247 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8248 dwarf2_fetch_die_type_sect_off): Move to...
8249 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8250 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8251 dwarf2_fetch_die_type_sect_off): ... here.
8252 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8253 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8254 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8255
8256 2020-02-26 Tom de Vries <tdevries@suse.de>
8257
8258 PR gdb/25603
8259 * symfile.c (set_initial_language): Exit-early if
8260 language_mode == language_mode_manual.
8261
8262 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8263
8264 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8265 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8266 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8267
8268 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8269
8270 * gdbtypes.c (create_array_type_with_stride): Handle negative
8271 array strides.
8272 * valarith.c (value_subscripted_rvalue): Likewise.
8273
8274 2020-02-25 Luis Machado <luis.machado@linaro.org>
8275
8276 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8277
8278 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8279
8280 * loc.h (dwarf2_get_die_type): Move to...
8281 * read.h (dwarf2_get_die_type): ... here.
8282 * read.c (dwarf2_get_die_type): Move doc to header.
8283
8284 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8285
8286 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8287 'gnulib/Makefile.in' to the list.
8288
8289 2020-02-24 Tom Tromey <tom@tromey.com>
8290
8291 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8292 Remove.
8293 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8294 XOBNEWVEC.
8295
8296 2020-02-24 Tom Tromey <tom@tromey.com>
8297
8298 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8299 New method.
8300 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8301 (dw2_do_instantiate_symtab, dw2_get_file_names)
8302 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8303
8304 2020-02-24 Tom Tromey <tom@tromey.com>
8305
8306 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8307 make_scoped_restore.
8308 (dwarf2_psymtab::read_symtab): Don't clear
8309 reading_partial_symbols.
8310
8311 2020-02-24 Tom de Vries <tdevries@suse.de>
8312
8313 PR gdb/25592
8314 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8315
8316 2020-02-24 Tom de Vries <tdevries@suse.de>
8317
8318 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8319 commands layout next/prev/regs.
8320
8321 2020-02-22 Tom Tromey <tom@tromey.com>
8322
8323 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8324 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8325
8326 2020-02-22 Tom Tromey <tom@tromey.com>
8327
8328 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8329
8330 2020-02-22 Tom Tromey <tom@tromey.com>
8331
8332 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8333 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8334 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8335 * tui/tui.c (_initialize_tui): Add usage text.
8336
8337 2020-02-22 Tom Tromey <tom@tromey.com>
8338
8339 * tui/tui-win.c (tui_set_focus_command)
8340 (tui_set_win_height_command): Use error_no_arg.
8341 (_initialize_tui_win): Update help text.
8342 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8343
8344 2020-02-22 Tom Tromey <tom@tromey.com>
8345
8346 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8347 * tui/tui-disasm.h (struct tui_disasm_window)
8348 <display_start_addr>: Declare.
8349 * tui/tui-source.h (struct tui_source_window)
8350 <display_start_addr>: Declare.
8351 * tui/tui-winsource.h (struct tui_source_window_base)
8352 <show_source_line, display_start_addr>: New methods.
8353 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8354 Rename and move to protected section.
8355 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8356 (tui_source_window_base::do_erase_source_content): Update.
8357 (tui_source_window_base::show_source_line): Now a method.
8358 (tui_source_window_base::show_source_content)
8359 (tui_source_window_base::tui_source_window_base)
8360 (tui_source_window_base::rerender)
8361 (tui_source_window_base::refill)
8362 (tui_source_window_base::do_scroll_horizontal)
8363 (tui_source_window_base::set_is_exec_point_at)
8364 (tui_source_window_base::update_breakpoint_info)
8365 (tui_source_window_base::update_exec_info): Update.
8366 * tui/tui-source.c (tui_source_window::set_contents)
8367 (tui_source_window::showing_source_p)
8368 (tui_source_window::do_scroll_vertical)
8369 (tui_source_window::location_matches_p)
8370 (tui_source_window::line_is_displayed): Update.
8371 (tui_source_window::display_start_addr): New method.
8372 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8373 (tui_disasm_window::do_scroll_vertical)
8374 (tui_disasm_window::location_matches_p): Update.
8375 (tui_disasm_window::display_start_addr): New method.
8376
8377 2020-02-22 Tom Tromey <tom@tromey.com>
8378
8379 * NEWS: Add entry for gdb.register_window_type.
8380 * tui/tui-layout.h (window_factory): New typedef.
8381 (tui_register_window): Declare.
8382 * tui/tui-layout.c (saved_tui_windows): New global.
8383 (tui_apply_current_layout): Use it.
8384 (tui_register_window): New function.
8385 * python/python.c (do_start_initialization): Call
8386 gdbpy_initialize_tui.
8387 (python_GdbMethods): Add "register_window_type" function.
8388 * python/python-internal.h (gdbpy_register_tui_window)
8389 (gdbpy_initialize_tui): Declare.
8390 * python/py-tui.c: New file.
8391 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8392
8393 2020-02-22 Tom Tromey <tom@tromey.com>
8394
8395 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8396
8397 2020-02-22 Tom Tromey <tom@tromey.com>
8398
8399 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8400 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8401 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8402 (tui_set_win_focus_to): Move from tui-win.c.
8403
8404 2020-02-22 Tom Tromey <tom@tromey.com>
8405
8406 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8407 functions.
8408 (known_window_types): New global.
8409 (tui_get_window_by_name): Reimplement.
8410 (initialize_known_windows): New function.
8411 (validate_window_name): Rewrite.
8412 (_initialize_tui_layout): Call initialize_known_windows.
8413
8414 2020-02-22 Tom Tromey <tom@tromey.com>
8415
8416 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8417 Remove constants.
8418 * tui/tui-winsource.h (struct tui_source_window_base)
8419 <tui_source_window_base>: Remove parameter.
8420 * tui/tui-winsource.c
8421 (tui_source_window_base::tui_source_window_base): Remove
8422 parameter.
8423 (tui_source_window_base::refill): Update.
8424 * tui/tui-stack.h (struct tui_locator_window)
8425 <tui_locator_window>: Update.
8426 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8427 Default the constructor.
8428 * tui/tui-regs.h (struct tui_data_item_window)
8429 <tui_data_item_window>: Default the constructor.
8430 (struct tui_data_window) <tui_data_window>: Likewise.
8431 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8432 Default the constructor.
8433 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8434 Default the constructor.
8435 <type>: Remove.
8436 (struct tui_win_info) <tui_win_info>: Default the constructor.
8437 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8438 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8439 Default the constructor.
8440
8441 2020-02-22 Tom Tromey <tom@tromey.com>
8442
8443 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8444 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8445 * tui/tui-win.c (tui_resize_all): Don't call
8446 tui_delete_invisible_windows.
8447 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8448 done.
8449 (tui_set_layout): Update.
8450 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8451 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8452 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8453
8454 2020-02-22 Tom Tromey <tom@tromey.com>
8455
8456 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8457 correctly.
8458
8459 2020-02-22 Tom Tromey <tom@tromey.com>
8460
8461 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8462
8463 2020-02-22 Tom Tromey <tom@tromey.com>
8464
8465 * tui/tui-winsource.h (struct tui_source_window_iterator)
8466 <inner_iterator>: New etytypedef.
8467 <tui_source_window_iterator>: Take "end" parameter.
8468 <tui_source_window_iterator>: Take iterator.
8469 <operator*, advance>: Update.
8470 <m_iter>: Change type.
8471 <m_end>: New field.
8472 (struct tui_source_windows) <begin, end>: Update.
8473 * tui/tui-layout.c (tui_windows): New global.
8474 (tui_apply_current_layout): Clear tui_windows.
8475 (tui_layout_window::apply): Update tui_windows.
8476 * tui/tui-data.h (tui_windows): Declare.
8477 (all_tui_windows): Now inline function.
8478 (class tui_window_iterator, struct all_tui_windows): Remove.
8479
8480 2020-02-22 Tom Tromey <tom@tromey.com>
8481
8482 PR tui/17850:
8483 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8484 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8485 "height" argument.
8486 (class tui_layout_window) <get_sizes>: Likewise.
8487 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8488 argument.
8489 <get_sizes>: Add "height" argument.
8490 <m_vertical>: New field.
8491 * tui/tui-layout.c (tui_layout_split::clone): Update.
8492 (tui_layout_split::get_sizes): Add "height" argument.
8493 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8494 (tui_new_layout_command): Parse "-horizontal".
8495 (_initialize_tui_layout): Update help string.
8496 (tui_layout_split::specification): Add "-horizontal" when needed.
8497 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8498 argument.
8499 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8500 New methods.
8501
8502 2020-02-22 Tom Tromey <tom@tromey.com>
8503
8504 * tui/tui-layout.h (enum tui_adjust_result): New.
8505 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8506 (class tui_layout_window) <adjust_size>: Return
8507 tui_adjust_result. Rewrite.
8508 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8509 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8510
8511 2020-02-22 Tom Tromey <tom@tromey.com>
8512
8513 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8514 parameter and return types.
8515 (class tui_layout_base) <specification>: Add "depth".
8516 (class tui_layout_window) <specification>: Add "depth".
8517 (class tui_layout_split) <specification>: Add "depth".
8518 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8519 and return types.
8520 (tui_new_layout_command): Parse sub-layouts.
8521 (_initialize_tui_layout): Update help string.
8522 (tui_layout_window::specification): Add "depth".
8523 (add_layout_command): Update.
8524
8525 2020-02-22 Tom Tromey <tom@tromey.com>
8526
8527 * NEWS: Add "tui new-layout" item.
8528 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8529 Add new-layout command to help text.
8530 (validate_window_name): New function.
8531 (tui_new_layout_command): New function.
8532 (_initialize_tui_layout): Register "new-layout".
8533 (tui_layout_window::specification): New method.
8534 (tui_layout_window::specification): New method.
8535 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8536 method.
8537 (class tui_layout_window) <specification>: New method.
8538 (class tui_layout_split) <specification>: New method.
8539
8540 2020-02-22 Tom Tromey <tom@tromey.com>
8541
8542 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8543 * tui/tui-win.c (window_name_completer): Update comment.
8544 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8545 Declare method.
8546 (class tui_layout_window) <replace_window>: Likewise.
8547 (class tui_layout_split) <replace_window>: Likewise.
8548 (tui_set_layout): Don't declare.
8549 (tui_set_initial_layout): Declare function.
8550 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8551 (asm_regs_layout): New globals.
8552 (tui_current_layout, show_layout): Remove.
8553 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8554 (find_layout, tui_apply_layout): New function.
8555 (layout_completer): Remove.
8556 (tui_next_layout): Reimplement.
8557 (tui_next_layout_command): New function.
8558 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8559 (tui_regs_layout): Reimplement.
8560 (tui_regs_layout_command): New function.
8561 (extract_display_start_addr): Rewrite.
8562 (next_layout, prev_layout): Remove.
8563 (tui_layout_window::replace_window): New method.
8564 (tui_layout_split::replace_window): New method.
8565 (destroy_layout): New function.
8566 (layout_list): New global.
8567 (add_layout_command): New function.
8568 (initialize_layouts): Update.
8569 (tui_layout_command): New function.
8570 (_initialize_tui_layout): Install "layout" commands.
8571 * tui/tui-data.h (enum tui_layout_type): Remove.
8572 (tui_current_layout): Don't declare.
8573
8574 2020-02-22 Tom Tromey <tom@tromey.com>
8575
8576 * tui/tui-regs.c (tui_reg_layout): Remove.
8577 (tui_reg_command): Use tui_regs_layout.
8578 * tui/tui-layout.h (tui_reg_command): Declare.
8579 * tui/tui-layout.c (tui_reg_command): New function.
8580
8581 2020-02-22 Tom Tromey <tom@tromey.com>
8582
8583 * tui/tui.c (tui_rl_delete_other_windows): Call
8584 tui_remove_some_windows.
8585 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8586 Declare method.
8587 (class tui_layout_window) <remove_windows>: New method.
8588 (class tui_layout_split) <remove_windows>: Declare.
8589 (tui_remove_some_windows): Declare.
8590 * tui/tui-layout.c (tui_remove_some_windows): New function.
8591 (tui_layout_split::remove_windows): New method.
8592
8593 2020-02-22 Tom Tromey <tom@tromey.com>
8594
8595 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8596 * tui/tui-layout.h (tui_next_layout): Declare.
8597 * tui/tui-layout.c (tui_next_layout): New function.
8598
8599 2020-02-22 Tom Tromey <tom@tromey.com>
8600
8601 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8602 correct coordinates.
8603
8604 2020-02-22 Tom Tromey <tom@tromey.com>
8605
8606 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8607 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8608 DATA_WIN case.
8609
8610 2020-02-22 Tom Tromey <tom@tromey.com>
8611
8612 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8613 TUI_DISASM_WIN, not tui_win_list.
8614
8615 2020-02-22 Tom Tromey <tom@tromey.com>
8616
8617 * valprint.c (generic_val_print_enum_1)
8618 (val_print_type_code_flags): Style member names.
8619 * rust-lang.c (val_print_struct, rust_print_enum)
8620 (rust_print_struct_def, rust_internal_print_type): Style member
8621 names.
8622 * p-valprint.c (pascal_object_print_value_fields): Style member
8623 names. Only call fprintf_symbol_filtered for static members.
8624 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8625 * f-valprint.c (f_val_print): Style member names.
8626 * f-typeprint.c (f_type_print_base): Style member names.
8627 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8628 call fprintf_symbol_filtered for static members.
8629 (cp_print_class_member): Style member names.
8630 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8631 member names.
8632 * ada-valprint.c (ada_print_scalar): Style enum names.
8633 (ada_val_print_enum): Likewise.
8634 * ada-typeprint.c (print_enum_type): Style enum names.
8635
8636 2020-02-21 Tom Tromey <tom@tromey.com>
8637
8638 * psympriv.h (struct partial_symtab): Update comment.
8639
8640 2020-02-21 Tom Tromey <tromey@adacore.com>
8641
8642 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8643 type is CORE_ADDR.
8644
8645 2020-02-21 Tom de Vries <tdevries@suse.de>
8646
8647 PR gdb/25534
8648 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8649 if dependencies[i]->user != NULL.
8650
8651 2020-02-21 Ali Tamur <tamur@google.com>
8652
8653 * dwarf2/read.c (dwarf2_name): Add null check.
8654
8655 2020-02-20 Tom Tromey <tom@tromey.com>
8656
8657 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8658 ">=", in binary search.
8659 (dwarf2_find_containing_comp_unit): New overload.
8660 (run_test): New self-test.
8661 (_initialize_dwarf2_read): Register new test.
8662
8663 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8664
8665 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8666 * riscv-tdep.h: Likewise.
8667 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8668 rv32-only CSR.
8669 * features/riscv/64bit-csr.xml: Regenerated.
8670
8671 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8672 Tom Tromey <tom@tromey.com>
8673
8674 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8675 of 'fputc_unfiltered'.
8676 (putchar_unfiltered): Call 'fputc_unfiltered'.
8677 (fputc_unfiltered): Call 'fputs_unfiltered'.
8678
8679 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8680
8681 * config.in: Regenerate.
8682 * configure: Regenerate.
8683 * configure.ac: Add --with-python-libdir option.
8684 * main.c: Use WITH_PYTHON_LIBDIR.
8685
8686 2020-02-19 Tom Tromey <tom@tromey.com>
8687
8688 * symtab.c (general_symbol_info::compute_and_set_names): Use
8689 obstack_strndup. Simplify call to symbol_set_demangled_name.
8690
8691 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8692
8693 * dwarf2/read.c (allocate_signatured_type_table,
8694 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8695 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8696 Remove objfile parameter, update all callers.
8697
8698 2020-02-19 Doug Evans <dje@google.com>
8699
8700 PR rust/25535
8701 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8702 rust_enum_variant calculation.
8703
8704 2020-02-19 Tom Tromey <tromey@adacore.com>
8705
8706 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8707
8708 2020-02-19 Tom Tromey <tromey@adacore.com>
8709
8710 * ada-lang.c (cache_symbol): Use obstack_strdup.
8711
8712 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8713
8714 * configure: Regenerate.
8715
8716 2020-02-19 Tom Tromey <tromey@adacore.com>
8717
8718 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8719 NULL check.
8720
8721 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8722
8723 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8724
8725 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8726
8727 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8728 if GDBSERVER is not defined.
8729 (riscv_tdesc_cache): Likewise, also store const target_desc.
8730 (STATIC_IN_GDB): Define.
8731 (riscv_create_target_description): Update declaration with
8732 STATIC_IN_GDB.
8733 (riscv_lookup_target_description): New function, only define if
8734 GDBSERVER is not defined.
8735 * arch/riscv.h (riscv_create_target_description): Declare only
8736 when GDBSERVER is defined.
8737 (riscv_lookup_target_description): New declaration when GDBSERVER
8738 is not defined.
8739 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8740 (riscv_linux_read_features): ...this, and return
8741 riscv_gdbarch_features instead of target_desc.
8742 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8743 (riscv_linux_read_description): Rename to...
8744 (riscv_linux_read_features): ...this.
8745 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8746 Update to use riscv_gdbarch_features and
8747 riscv_lookup_target_description.
8748 * riscv-tdep.c (riscv_find_default_target_description): Use
8749 riscv_lookup_target_description instead of
8750 riscv_create_target_description.
8751
8752 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8753
8754 * valprint.c (generic_val_print_enum_1): When printing a flag
8755 enum with value 0 and there is no enumerator with value 0, print
8756 just "0" instead of "(unknown: 0x0)".
8757
8758 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8759
8760 * valprint.c (generic_val_print_enum_1): Print unknown part of
8761 flag enum in hex.
8762
8763 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8764
8765 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8766 flag enums to contain duplicate enumerators.
8767 * valprint.c (generic_val_print_enum_1): Update comment.
8768
8769 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8770
8771 * dwarf2/read.c: Include "count-one-bits.h".
8772 (update_enumeration_type_from_children): If an enumerator has
8773 multiple bits set, don't treat the enumeration as a "flag enum".
8774 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8775 of flag enums have 0 or 1 bit set.
8776
8777 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8778
8779 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8780 conversion.
8781 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8782 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8783 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8784 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8785 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8786
8787 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8788
8789 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8790
8791 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8792
8793 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8794 displaced_step_closure_up.
8795 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8796 (struct displaced_step_closure_up):
8797 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8798 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8799 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8800 Likewise.
8801 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8802 * gdbarch.c, gdbarch.h: Re-generate.
8803 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8804 displaced_step_closure_up.
8805 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8806 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8807 * infrun.h (displaced_step_closure_up): New type alias.
8808 (struct displaced_step_inferior_state) <step_closure>: Change
8809 type to displaced_step_closure_up.
8810 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8811 displaced_step_closure_up.
8812 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8813
8814 2020-02-14 Tom Tromey <tom@tromey.com>
8815
8816 * minidebug.c (gnu_debug_key): New global.
8817 (find_separate_debug_file_in_section): Use it.
8818
8819 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8820
8821 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8822 std::unique_ptr.
8823 * gdbarch.c: Re-generate.
8824 * gdbarch.h: Re-generate.
8825 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8826 change.
8827 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8828 type to std::unique_ptr.
8829 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8830 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8831 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8832 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8833 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8834 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8835 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8836 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8837 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8838
8839 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8840
8841 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8842 std::unique_ptr.
8843 (displaced_step_clear): Rename to...
8844 (displaced_step_reset): ... this. Just call displaced->reset ().
8845 (displaced_step_clear_cleanup): Rename to...
8846 (displaced_step_reset_cleanup): ... this.
8847 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8848 (displaced_step_fixup): Likewise.
8849 (resume_1): Likewise.
8850 (handle_inferior_event): Restore child's memory before calling
8851 displaced_step_fixup on the parent.
8852 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8853 to std::unique_ptr.
8854 <step_closure>: Change type to std::unique_ptr.
8855
8856 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8857
8858 * arm-tdep.c: Include count-one-bits.h.
8859 (cleanup_block_store_pc): Use count_one_bits.
8860 (cleanup_block_load_pc): Use count_one_bits.
8861 (arm_copy_block_xfer): Use count_one_bits.
8862 (thumb2_copy_block_xfer): Use count_one_bits.
8863 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8864 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8865 (thumb_get_next_pcs_raw): Use count_one_bits.
8866 (arm_get_next_pcs_raw): Use count_one_bits_l.
8867 * arch/arm.c (bitcount): Remove.
8868 * arch/arm.h (bitcount): Remove.
8869
8870 2020-02-14 Tom Tromey <tromey@adacore.com>
8871
8872 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8873 Update.
8874 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8875 * dwarf2/loc.c (call_site_find_chain_1): Return
8876 unique_xmalloc_ptr.
8877 (call_site_find_chain): Likewise.
8878
8879 2020-02-14 Richard Biener <rguenther@suse.de>
8880
8881 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8882 on expression with division operators.
8883
8884 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8885
8886 * MAINTAINERS (Write After Approval): Adding myself.
8887
8888 2020-02-12 Tom Tromey <tom@tromey.com>
8889
8890 * event-loop.c (event_data, gdb_event, event_handler_func):
8891 Remove.
8892
8893 2020-02-12 Tom Tromey <tom@tromey.com>
8894
8895 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8896 (dwarf2_frame_objfile_data): Add comment.
8897 (find_comp_unit, set_comp_unit): New functions.
8898 (dwarf2_frame_find_fde): Use find_comp_unit.
8899 (dwarf2_build_frame_info): Use set_comp_unit.
8900
8901 2020-02-12 Tom Tromey <tom@tromey.com>
8902
8903 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8904 (comp_unit): Don't initialize objfile.
8905 (execute_cfa_program): Add text_offset parameter.
8906 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8907 (dwarf2_frame_cache): Update.
8908 (dwarf2_build_frame_info): Don't set "objfile" member.
8909
8910 2020-02-12 Tom Tromey <tom@tromey.com>
8911
8912 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8913 (decode_frame_entry): Likewise.
8914 (dwarf2_build_frame_info): Update.
8915
8916 2020-02-12 Tom Tromey <tom@tromey.com>
8917
8918 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8919 (decode_frame_entry_1): Use the comp_unit obstack.
8920
8921 2020-02-12 Tom Tromey <tom@tromey.com>
8922
8923 * dwarf2/frame.c (struct comp_unit): Add initializers and
8924 constructor.
8925 (dwarf2_frame_objfile_data): Store a comp_unit.
8926 (dwarf2_frame_find_fde): Update.
8927 (dwarf2_build_frame_info): Use "new".
8928
8929 2020-02-12 Tom Tromey <tom@tromey.com>
8930
8931 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8932 (dwarf2_fde_table): Typedef for std::vector.
8933 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8934 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8935 (decode_frame_entry): Update.
8936 (dwarf2_build_frame_info): Use "new".
8937
8938 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8939
8940 * arm-tdep.c (arm_gdbarch_init): Update.
8941 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8942 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8943 have_neon, is_m>: Change to bool.
8944
8945 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8946
8947 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8948
8949 2020-02-12 Tom Tromey <tom@tromey.com>
8950
8951 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8952
8953 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8954
8955 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8956 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8957
8958 2020-02-11 Tom Tromey <tom@tromey.com>
8959
8960 * psymtab.h: Update comment.
8961
8962 2020-02-11 Tom Tromey <tom@tromey.com>
8963
8964 * gdb_obstack.h (struct auto_obstack): Use
8965 DISABLE_COPY_AND_ASSIGN.
8966
8967 2020-02-11 Tom Tromey <tom@tromey.com>
8968
8969 * dwarf2/frame.h (struct objfile): Don't forward declare.
8970
8971 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8972
8973 * cris-tdep.c (cris_supply_gregset): Change signature to match
8974 what struct regset expects.
8975 (cris_regset): New struct.
8976 (fetch_core_registers): Remove.
8977 (cris_iterate_over_regset_sections): New function.
8978 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8979 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8980
8981 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8982
8983 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8984 registers.
8985
8986 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8987
8988 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8989
8990 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8991
8992 * configure: Re-generate.
8993
8994 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8995
8996 * configure: Re-generate.
8997
8998 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8999
9000 * acinclude: Update warning.m4 path.
9001 * warning.m4: Move to gdbsupport.
9002
9003 2020-02-11 Tom Tromey <tromey@adacore.com>
9004
9005 * remote.c (remote_console_output): Update.
9006 * printcmd.c (printf_command): Update.
9007 * event-loop.c (gdb_wait_for_event): Update.
9008 * linux-nat.c (sigchld_handler): Update.
9009 * remote-sim.c (gdb_os_write_stdout): Update.
9010 (gdb_os_flush_stdout): Update.
9011 (gdb_os_flush_stderr): Update.
9012 (gdb_os_write_stderr): Update.
9013 * exceptions.c (print_exception): Update.
9014 * remote-fileio.c (remote_fileio_func_read): Update.
9015 (remote_fileio_func_write): Update.
9016 * tui/tui.c (tui_enable): Update.
9017 * tui/tui-interp.c (tui_interp::init): Update.
9018 * utils.c (init_page_info): Update.
9019 (putchar_unfiltered, fputc_unfiltered): Update.
9020 (gdb_flush): Update.
9021 (emit_style_escape): Update.
9022 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9023 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9024 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9025 (stderr_file::write): Update.
9026 (stderr_file::puts): Update.
9027 * ui-file.h (ui_file_isatty, ui_file_write)
9028 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9029 (ui_file_puts): Don't declare.
9030
9031 2020-02-10 Tom de Vries <tdevries@suse.de>
9032
9033 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9034 sentinel to char *.
9035
9036 2020-02-09 Tom de Vries <tdevries@suse.de>
9037
9038 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9039 filename if it matches "<artificial>".
9040
9041 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9042
9043 * windows-tdep.c (struct enum_value_name): New struct.
9044 (create_enum): New function.
9045 (windows_get_siginfo_type): Create and use enum types.
9046
9047 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9048
9049 * NEWS: Mention $_siginfo support for Windows.
9050 * windows-nat.c (handle_exception): Set siginfo_er.
9051 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9052 (windows_xfer_siginfo): New function.
9053 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9054 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9055 (init_windows_gdbarch_data): New function.
9056 (get_windows_gdbarch_data): New function.
9057 (windows_get_siginfo_type): New function.
9058 (windows_init_abi): Register windows_get_siginfo_type.
9059 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9060
9061 2020-02-08 Tom Tromey <tom@tromey.com>
9062
9063 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9064 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9065 <keep>: Declare method.
9066 <m_keep>: Remove member.
9067 <~cutu_reader>: Remove.
9068 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9069 (cutu_reader::cutu_reader): Update.
9070 (cutu_reader::keep): Rename from ~cutu_reader.
9071 (process_psymtab_comp_unit, build_type_psymtabs_1)
9072 (process_skeletonless_type_unit, load_partial_comp_unit)
9073 (load_full_comp_unit, dwarf2_read_addr_index)
9074 (read_signatured_type): Update.
9075
9076 2020-02-08 Tom Tromey <tom@tromey.com>
9077
9078 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9079 "want_partial_unit" parameter.
9080 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9081 Inline check for DW_TAG_partial_unit.
9082 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9083
9084 2020-02-08 Tom Tromey <tom@tromey.com>
9085
9086 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9087 read.c.
9088 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9089 read.c.
9090
9091 2020-02-08 Tom Tromey <tom@tromey.com>
9092
9093 * dwarf2/read.c (read_address): Move to comp-unit.c.
9094 (dwarf2_rnglists_process, dwarf2_ranges_process)
9095 (read_attribute_value, dwarf_decode_lines_1)
9096 (var_decode_location, decode_locdesc): Update.
9097 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9098 read.c. Remove "cu" parameter.
9099 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9100 method.
9101
9102 2020-02-08 Tom Tromey <tom@tromey.com>
9103
9104 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9105 (read_indirect_line_string): Update.
9106 * dwarf2/comp-unit.c (read_offset): Remove.
9107 (read_comp_unit_head): Update.
9108 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9109 method.
9110 (read_offset): Don't declare.
9111
9112 2020-02-08 Tom Tromey <tom@tromey.com>
9113
9114 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9115 * dwarf2/read.c (struct comp_unit_head): Move to
9116 dwarf2/comp-unit.h.
9117 (enum class rcuh_kind): Move to comp-unit.h.
9118 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9119 (read_comp_unit_head, error_check_comp_unit_head)
9120 (read_and_check_comp_unit_head): Move to comp-unit.c.
9121 (read_offset, dwarf_unit_type_name): Likewise.
9122 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9123 (cutu_reader::cutu_reader, read_call_site_scope)
9124 (find_partial_die, follow_die_offset): Update.
9125 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9126
9127 2020-02-08 Tom Tromey <tom@tromey.com>
9128
9129 * dwarf2/read.c (read_offset_1): Move to leb.c.
9130 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9131 (dwarf_decode_macro_bytes): Update.
9132 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9133 * dwarf2/leb.h (read_offset): Declare.
9134
9135 2020-02-08 Tom Tromey <tom@tromey.com>
9136
9137 * dwarf2/read.c (dwarf2_section_size): Remove.
9138 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9139 Update.
9140 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9141
9142 2020-02-08 Tom Tromey <tom@tromey.com>
9143
9144 * dwarf2/read.c (read_initial_length): Move to leb.c.
9145 * dwarf2/leb.h (read_initial_length): Declare.
9146 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9147 handle_nonstd parameter.
9148 * dwarf2/frame.c (read_initial_length): Remove.
9149 (decode_frame_entry_1): Update.
9150
9151 2020-02-08 Tom Tromey <tom@tromey.com>
9152
9153 * dwarf2/loc.c (dwarf2_find_location_expression)
9154 (dwarf_evaluate_loc_desc::get_tls_address)
9155 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9156 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9157 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9158 (dwarf2_compile_property_to_c)
9159 (dwarf2_loc_desc_get_symbol_read_needs)
9160 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9161 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9162 (loclist_describe_location, loclist_tracepoint_var_ref)
9163 (loclist_generate_c_location): Update.
9164 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9165 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9166 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9167 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9168 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9169 (dwarf2_per_cu_data::addr_size)
9170 (dwarf2_per_cu_data::ref_addr_size)
9171 (dwarf2_per_cu_data::text_offset)
9172 (dwarf2_per_cu_data::addr_type): Now methods.
9173 (per_cu_header_read_in): Make per_cu "const".
9174 (dwarf2_version): Remove.
9175 (dwarf2_per_cu_data::int_type): Now a method.
9176 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9177 (set_die_type, read_array_type, read_subrange_index_type)
9178 (read_tag_string_type, read_subrange_type): Update.
9179 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9180 offset_size, ref_addr_size, text_offset, addr_type, version,
9181 objfile, int_type, addr_sized_int_type>: Declare methods.
9182
9183 2020-02-08 Tom Tromey <tom@tromey.com>
9184
9185 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9186 Move earlier.
9187
9188 2020-02-08 Tom Tromey <tom@tromey.com>
9189
9190 * dwarf2/read.h (dwarf_line_debug): Declare.
9191 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9192 * dwarf2/read.c: Move line_header code to new files.
9193 (dwarf_line_debug): No longer static.
9194 * dwarf2/line-header.c: New file.
9195 * dwarf2/line-header.h: New file.
9196
9197 2020-02-08 Tom Tromey <tom@tromey.com>
9198
9199 * dwarf2/read.c (struct line_header) <file_full_name,
9200 file_file_name>: Return unique_xmalloc_ptr.
9201 (line_header::file_file_name): Update.
9202 (line_header::file_full_name): Update.
9203 (dw2_get_file_names_reader): Update.
9204 (macro_start_file): Update.
9205
9206 2020-02-08 Tom Tromey <tom@tromey.com>
9207
9208 * dwarf2/read.c (struct line_header) <file_full_name,
9209 file_file_name>: Declare methods.
9210 (dw2_get_file_names_reader): Update.
9211 (file_file_name): Now a method.
9212 (file_full_name): Likewise.
9213 (macro_start_file): Update.
9214
9215 2020-02-08 Tom Tromey <tom@tromey.com>
9216
9217 * dwarf2/read.c (dwarf_always_disassemble)
9218 (show_dwarf_always_disassemble): Move to loc.c.
9219 (_initialize_dwarf2_read): Move "always-disassemble" registration
9220 to loc.c.
9221 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9222 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9223 static.
9224 (show_dwarf_always_disassemble): Move from read.c.
9225 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9226
9227 2020-02-08 Tom Tromey <tom@tromey.com>
9228
9229 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9230 (create_quick_file_names_table): Return htab_up.
9231 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9232 Update.
9233 * dwarf2/read.h (struct dwarf2_per_objfile)
9234 <quick_file_names_table>: Now htab_up.
9235
9236 2020-02-08 Tom Tromey <tom@tromey.com>
9237
9238 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9239
9240 2020-02-08 Tom Tromey <tom@tromey.com>
9241
9242 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9243 Rewrite.
9244 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9245 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9246 (abbrev_table::abbrev_table): No longer inline.
9247 (ABBREV_HASH_SIZE): Remove.
9248 (abbrev_table::m_abbrevs): Now an htab_up.
9249
9250 2020-02-08 Tom Tromey <tom@tromey.com>
9251
9252 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9253 (cutu_reader): Update.
9254 (build_type_psymtabs_1): Update.
9255 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9256 (abbrev_table::alloc_abbrev): Update.
9257 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9258 (abbrev_table::read): New static method, renamed from
9259 abbrev_table_read_table.
9260 (abbrev_table::alloc_abbrev)
9261 (abbrev_table::add_abbrev): Now private.
9262 (abbrev_table::abbrev_table): Now private.
9263 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9264
9265 2020-02-08 Tom Tromey <tom@tromey.com>
9266
9267 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9268 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9269 htab_up.
9270
9271 2020-02-08 Tom Tromey <tom@tromey.com>
9272
9273 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9274 htab_up.
9275 (lookup_dwo_unit_in_dwp): Update.
9276 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9277 on obstack.
9278
9279 2020-02-08 Tom Tromey <tom@tromey.com>
9280
9281 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9282 obstack.
9283
9284 2020-02-08 Tom Tromey <tom@tromey.com>
9285
9286 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9287 line_header_hash.
9288 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9289 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9290 Change type to htab_up.
9291
9292 2020-02-08 Tom Tromey <tom@tromey.com>
9293
9294 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9295 htab_up. Don't allocate on obstack.
9296 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9297 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9298 Change type to htab_up.
9299
9300 2020-02-08 Tom Tromey <tom@tromey.com>
9301
9302 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9303 Change type to htab_up.
9304 * dwarf2/read.c (create_signatured_type_table_from_index)
9305 (create_signatured_type_table_from_debug_names)
9306 (create_all_type_units, add_type_unit)
9307 (lookup_dwo_signatured_type, lookup_signatured_type)
9308 (process_skeletonless_type_unit): Update.
9309 (create_debug_type_hash_table, create_debug_types_hash_table):
9310 Change type of types_htab.
9311 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9312 htab_up. Don't allocate on obstack.
9313 (create_cus_hash_table): Change type of cus_htab parameter.
9314 (struct dwo_file) <cus, tus>: Now htab_up.
9315 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9316 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9317 (queue_and_load_all_dwo_tus): Update.
9318 * dwarf2/index-write.c (write_gdbindex): Update.
9319 (write_debug_names): Update.
9320
9321 2020-02-08 Tom Tromey <tom@tromey.com>
9322
9323 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9324 dwarf2/read.c. Remove "next" member. Add constructor ntad
9325 destructor.
9326 (struct dwarf2_per_objfile) <queue>: New member.
9327 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9328 dwarf2/read.h.
9329 (dwarf2_queue, dwarf2_queue_tail): Remove.
9330 (class dwarf2_queue_guard): Add parameter to constructor. Use
9331 DISABLE_COPY_AND_ASSIGN.
9332 <m_per_objfile>: New member.
9333 <~dwarf2_queue_guard>: Rewrite.
9334 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9335 Update.
9336 (~dwarf2_queue_item): New.
9337
9338 2020-02-08 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/read.c (struct die_info) <has_children>: New member.
9341 (dw2_get_file_names_reader): Remove has_children.
9342 (dw2_get_file_names): Update.
9343 (read_cutu_die_from_dwo): Remove has_children.
9344 (cutu_reader::init_tu_and_read_dwo_dies)
9345 (cutu_reader::cutu_reader): Update.
9346 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9347 Remove has_children.
9348 (build_type_psymtabs_1, process_skeletonless_type_unit)
9349 (load_partial_comp_unit, load_full_comp_unit): Update.
9350 (create_dwo_cu_reader): Remove has_children.
9351 (create_cus_hash_table, read_die_and_children): Update.
9352 (read_full_die_1,read_full_die): Remove has_children.
9353 (read_signatured_type): Update.
9354 (class cutu_reader) <has_children>: Remove.
9355
9356 2020-02-08 Tom Tromey <tom@tromey.com>
9357
9358 * dwarf2/expr.c: Rename from dwarf2expr.c.
9359 * dwarf2/expr.h: Rename from dwarf2expr.h.
9360 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9361 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9362 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9363 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9364 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9365 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9366 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9367 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9368 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9369 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9370 * dwarf2/loc.c: Rename from dwarf2loc.c.
9371 * dwarf2/loc.h: Rename from dwarf2loc.h.
9372 * dwarf2/read.c: Rename from dwarf2read.c.
9373 * dwarf2/read.h: Rename from dwarf2read.h.
9374 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9375 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9376 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9377 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9378 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9379 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9380 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9381 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9382 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9383 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9384 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9385 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9386 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9387 Update.
9388 * Makefile.in (COMMON_SFILES): Update.
9389 (HFILES_NO_SRCDIR): Update.
9390
9391 2020-02-08 Tom Tromey <tom@tromey.com>
9392
9393 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9394 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9395
9396 2020-02-08 Tom Tromey <tom@tromey.com>
9397
9398 * dwarf2read.h (struct die_info): Don't declare.
9399
9400 2020-02-08 Tom Tromey <tom@tromey.com>
9401
9402 * dwarf2read.h (die_info_ptr): Remove typedef.
9403
9404 2020-02-08 Tom Tromey <tom@tromey.com>
9405
9406 * dwarf2read.c (read_call_site_scope)
9407 (handle_data_member_location, dwarf2_add_member_fn)
9408 (mark_common_block_symbol_computed, read_common_block)
9409 (attr_to_dynamic_prop, partial_die_info::read)
9410 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9411 (dwarf2_symbol_mark_computed, set_die_type): Update.
9412 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9413 method.
9414 (attr_form_is_block): Don't declare.
9415 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9416
9417 2020-02-08 Tom Tromey <tom@tromey.com>
9418
9419 * dwarf2read.c (dwarf2_find_base_address, )
9420 (read_call_site_scope, rust_containing_type)
9421 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9422 (handle_data_member_location, dwarf2_add_member_fn)
9423 (get_alignment, read_structure_type, process_structure_scope)
9424 (mark_common_block_symbol_computed, read_common_block)
9425 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9426 (partial_die_info::read, read_attribute_value, new_symbol)
9427 (lookup_die_type, dwarf2_get_ref_die_offset)
9428 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9429 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9430 (dwarf2_symbol_mark_computed): Update.
9431 * dwarf2/attribute.h (struct attribute) <value_as_address,
9432 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9433 methods.
9434 (value_as_address, attr_form_is_section_offset)
9435 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9436 * dwarf2/attribute.c (attribute::value_as_address)
9437 (attribute::form_is_section_offset, attribute::form_is_constant)
9438 (attribute::form_is_ref): Now methods.
9439
9440 2020-02-08 Tom Tromey <tom@tromey.com>
9441
9442 * dwarf2read.c (struct attribute, DW_STRING)
9443 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9444 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9445 (attr_form_is_block, attr_form_is_section_offset)
9446 (attr_form_is_constant, attr_form_is_ref): Move.
9447 * dwarf2/attribute.h: New file.
9448 * dwarf2/attribute.c: New file, from dwarf2read.c.
9449 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9450
9451 2020-02-08 Tom Tromey <tom@tromey.com>
9452
9453 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9454 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9455 Move.
9456 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9457 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9458 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9459 abbrev.c.
9460 * dwarf2/abbrev.h: New file.
9461 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9462 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9463
9464 2020-02-08 Tom Tromey <tom@tromey.com>
9465
9466 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9467 (dwarf2_section_size, dwarf2_get_section_info)
9468 (create_signatured_type_table_from_debug_names)
9469 (create_addrmap_from_aranges, read_debug_names_from_section)
9470 (get_gdb_index_contents_from_section, read_comp_unit_head)
9471 (error_check_comp_unit_head, read_abbrev_offset)
9472 (create_debug_type_hash_table, init_cu_die_reader)
9473 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9474 (read_comp_units_from_section, create_cus_hash_table)
9475 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9476 (create_dwp_v2_section, dwarf2_rnglists_process)
9477 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9478 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9479 (read_indirect_string_from_dwz, read_addr_index_1)
9480 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9481 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9482 (fill_in_loclist_baton): Update.
9483 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9484 get_containing_section, get_bfd_owner, get_bfd_section,
9485 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9486 (dwarf2_read_section, get_section_name, get_section_file_name)
9487 (get_containing_section, get_section_bfd_owner)
9488 (get_section_bfd_section, get_section_name, get_section_file_name)
9489 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9490 declare.
9491 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9492 (dwarf2_section_info::get_bfd_owner)
9493 (dwarf2_section_info::get_bfd_section)
9494 (dwarf2_section_info::get_name)
9495 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9496 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9497 (dwarf2_section_info::read): Now methods.
9498 * dwarf-index-write.c (class debug_names): Update.
9499
9500 2020-02-08 Tom Tromey <tom@tromey.com>
9501
9502 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9503 Move to dwarf2/section.h.
9504 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9505 (get_section_bfd_section, get_section_name)
9506 (get_section_file_name, get_section_id, get_section_flags)
9507 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9508 dwarf2/section.c.
9509 * dwarf2/section.h: New file.
9510 * dwarf2/section.c: New file, from dwarf2read.c.
9511 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9512
9513 2020-02-08 Tom Tromey <tom@tromey.com>
9514
9515 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9516 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9517 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9518 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9519 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9520 * dwarf2/leb.h: New file, from dwarf2read.c.
9521 * dwarf2/leb.c: New file, from dwarf2read.c.
9522 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9523 Remove.
9524 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9525 (COMMON_SFILES): Add dwarf2/leb.c.
9526
9527 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9528
9529 GDB 9.1 released.
9530
9531 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9532
9533 PR gdb/25190:
9534 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9535 * gdb/remote.c (remote_console_output): Update.
9536 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9537 (ui_file_puts): ...this.
9538 * gdb/ui-file.h (ui_file_puts): Add declaration.
9539 * gdb/utils.c (emit_style_escape): Update.
9540 (flush_wrap_buffer): Update.
9541 (fputs_maybe_filtered): Update.
9542 (fputs_unfiltered): Add function.
9543
9544 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9545
9546 * gdb/event-loop.c (gdb_wait_for_event): Update.
9547 * gdb/printcmd.c (printf_command): Update.
9548 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9549 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9550 (gdb_os_flush_stderr): Update.
9551 * gdb/remote.c (remote_console_output): Update.
9552 * gdb/ui-file.c (gdb_flush): Rename to...
9553 (ui_file_flush): ...this.
9554 (stderr_file::write): Update.
9555 (stderr_file::puts): Update.
9556 * gdb/ui-file.h (gdb_flush): Rename to...
9557 (ui_file_flush): ...this.
9558 * gdb/utils.c (gdb_flush): Add function.
9559 * gdb/utils.h (gdb_flush): Add declaration.
9560
9561 2020-02-07 Tom Tromey <tromey@adacore.com>
9562
9563 PR breakpoints/24915:
9564 * source.c (find_and_open_source): Do not check basenames_may_differ.
9565
9566 2020-02-07 Tom Tromey <tom@tromey.com>
9567
9568 * README: Update gdbserver documentation.
9569 * gdbserver: Move to top level.
9570 * configure.tgt (build_gdbserver): Remove.
9571 * configure.ac: Remove --enable-gdbserver.
9572 * configure: Rebuild.
9573 * Makefile.in (distclean): Don't mention gdbserver.
9574
9575 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9576
9577 * source-cache.c (source_cache::ensure): Surround
9578 get_plain_source_lines with a try/catch.
9579 (source_cache::get_line_charpos): Get rid of try/catch
9580 and only check for the return value of "ensure".
9581 * tui/tui-source.c (tui_source_window::set_contents):
9582 Simplify "nlines" calculation.
9583
9584 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9585
9586 * MAINTAINERS (Write After Approval): Add myself.
9587
9588 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9589
9590 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9591 function call.
9592
9593 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9594
9595 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9596
9597 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9598
9599 * nat/riscv-linux-tdesc.h: New file.
9600 * nat/riscv-linux-tdesc.c: New file, taking code from...
9601 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9602 ... here.
9603 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9604 NATDEPFILES.
9605
9606 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9607
9608 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9609 we don't set the fake simulator ptid to the null_ptid.
9610
9611 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9612
9613 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9614 * gdbthread.h (class thread_info) <resumed>: Likewise.
9615 * infrun.c (resume_1): Likewise.
9616 (proceed): Likewise.
9617 (infrun_thread_stop_requested): Likewise.
9618 (stop_all_threads): Likewise.
9619 (handle_inferior_event): Likewise.
9620 (restart_threads): Likewise.
9621 (finish_step_over): Likewise.
9622 (keep_going_stepped_thread): Likewise.
9623 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9624 (linux_handle_extended_wait): Likewise.
9625 * record-btrace.c (get_thread_current_frame_id): Likewise.
9626 * record-full.c (record_full_wait_1): Likewise.
9627 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9628 * target.c (target_resume): Likewise.
9629 * thread.c (set_running_thread): Likewise.
9630
9631 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9632
9633 * f-valprint.c (f77_print_array_1): Changed datatype of index
9634 variable to LONGEST from int to enable it to contain bound
9635 values correctly.
9636
9637 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9638
9639 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9640 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9641 offsets according to FLEN determined.
9642 (riscv_linux_nat_target::read_description): Determine FLEN
9643 dynamically.
9644 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9645 according to FLEN determined.
9646 (riscv_linux_nat_target::store_registers): Likewise.
9647
9648 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9649
9650 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9651 when reg->group is empty and reggroup is not.
9652
9653 2020-01-31 Tom Tromey <tromey@adacore.com>
9654
9655 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9656 Call beneath target's mourn_inferior after unpushing.
9657
9658 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9659
9660 PR tui/9765
9661 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9662 have enough lines to fill the screen, still return the lowest
9663 address we found.
9664
9665 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9666
9667 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9668 '-', '<', and '>' commands.
9669
9670 2020-01-29 Pedro Alves <palves@redhat.com>
9671 Sergio Durigan Junior <sergiodj@redhat.com>
9672
9673 * infcmd.c (construct_inferior_arguments): Assert that
9674 'argc' is greater than 0.
9675
9676 2020-01-29 Luis Machado <luis.machado@linaro.org>
9677
9678 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9679 (BRK_INSN_MASK): Define to 0xd4200000.
9680 (aarch64_program_breakpoint_here_p): New function.
9681 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9682 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9683 breakpoint.c.
9684 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9685 breakpoint.h
9686 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9687 call gdbarch_program_breakpoint_here_p.
9688 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9689 default_program_breakpoint_here_p, changed return type to bool and
9690 simplified.
9691 * breakpoint.h (program_breakpoint_here): Moved prototype to
9692 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9693 return type to bool.
9694 * gdbarch.c: Regenerate.
9695 * gdbarch.h: Regenerate.
9696 * gdbarch.sh (program_breakpoint_here_p): New method.
9697 * infrun.c (handle_signal_stop): Call
9698 gdbarch_program_breakpoint_here_p.
9699
9700 2020-01-26 Tom Tromey <tom@tromey.com>
9701
9702 * ctfread.c (struct ctf_fp_info): Reindent.
9703 (_initialize_ctfread): Remove.
9704
9705 2020-01-26 Tom Tromey <tom@tromey.com>
9706
9707 * psymtab.c (partial_map_expand_apply)
9708 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9709 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9710 (psym_print_stats, psym_expand_symtabs_for_function)
9711 (psym_map_symbol_filenames, psym_map_matching_symbols)
9712 (psym_expand_symtabs_matching)
9713 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9714 (maintenance_check_psymtabs): Use new methods.
9715 * psympriv.h (struct partial_symtab) <readin_p,
9716 get_compunit_symtab>: New methods.
9717 <readin, compunit_symtab>: Remove members.
9718 (struct standard_psymtab): New.
9719 (struct legacy_psymtab): Derive from standard_psymtab.
9720 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9721 standard_psymtab.
9722 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9723
9724 2020-01-26 Tom Tromey <tom@tromey.com>
9725
9726 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9727 read_dependencies. Add assert.
9728 * psymtab.c (partial_symtab::read_dependencies): New method.
9729 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9730 method.
9731 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9732 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9733 read_dependencies.
9734 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9735 Add assert.
9736
9737 2020-01-26 Tom Tromey <tom@tromey.com>
9738
9739 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9740 Call expand_psymtab.
9741 (xcoff_read_symtab): Call expand_psymtab.
9742 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9743 legacy_expand_psymtab.
9744 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9745 method.
9746 (struct legacy_psymtab) <expand_psymtab>: Implement.
9747 <legacy_expand_psymtab>: New member.
9748 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9749 (parse_partial_symbols): Set legacy_expand_psymtab.
9750 (psymtab_to_symtab_1): Change argument order. Call
9751 expand_psymtab.
9752 (new_psymtab): Set legacy_expand_psymtab.
9753 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9754 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9755 expand_psymtab.
9756 (dwarf2_psymtab::expand_psymtab): Rename from
9757 psymtab_to_symtab_1. Call expand_psymtab.
9758 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9759 (dbx_end_psymtab): Likewise.
9760 (dbx_psymtab_to_symtab_1): Change argument order. Call
9761 expand_psymtab.
9762 (dbx_read_symtab): Call expand_psymtab.
9763 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9764 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9765 (ctf_psymtab::read_symtab): Call expand_psymtab.
9766
9767 2020-01-26 Tom Tromey <tom@tromey.com>
9768
9769 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9770 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9771 messages.
9772 * mdebugread.c (mdebug_read_symtab): Remove prints.
9773 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9774 assert.
9775 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9776
9777 2020-01-26 Tom Tromey <tom@tromey.com>
9778
9779 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9780 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9781 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9782 legacy_symtab.
9783 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9784 * psymtab.c (psymtab_to_symtab): Call method.
9785 (dump_psymtab): Update.
9786 * psympriv.h (struct partial_symtab): Add virtual destructor.
9787 <read_symtab>: New method.
9788 (struct legacy_symtab): New.
9789 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9790 (struct pst_map) <pst>: Now a legacy_psymtab.
9791 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9792 (new_psymtab): Use legacy_psymtab.
9793 * dwarf2read.h (struct dwarf2_psymtab): New.
9794 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9795 * dwarf2read.c (dwarf2_create_include_psymtab)
9796 (dwarf2_build_include_psymtabs, create_type_unit_group)
9797 (create_partial_symtab, process_psymtab_comp_unit_reader)
9798 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9799 (set_partial_user): Use dwarf2_psymtab.
9800 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9801 (psymtab_to_symtab_1, process_full_comp_unit)
9802 (process_full_type_unit, dwarf2_ranges_read)
9803 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9804 (dwarf_decode_lines): Use dwarf2_psymtab.
9805 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9806 (add_address_entry_worker, write_one_signatured_type)
9807 (recursively_count_psymbols, recursively_write_psymbols)
9808 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9809 (write_debug_names): Likewise.
9810 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9811 <pst>: Now a legacy_psymtab.
9812 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9813 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9814 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9815 * ctfread.c (struct ctf_psymtab): New.
9816 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9817 ctf_psymtab.
9818 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9819 (create_partial_symtab): Return a ctf_psymtab.
9820 (scan_partial_symbols): Update.
9821
9822 2020-01-26 Tom Tromey <tom@tromey.com>
9823
9824 * xcoffread.c (xcoff_start_psymtab): Use new.
9825 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9826 renamed from start_psymtab_common.
9827 * psympriv.h (struct partial_symtab): Add new constructor.
9828 (start_psymtab_common): Don't declare.
9829 * mdebugread.c (parse_partial_symbols): Use new.
9830 * dwarf2read.c (create_partial_symtab): Use new.
9831 * dbxread.c (start_psymtab): Use new.
9832 * ctfread.c (create_partial_symtab): Use new.
9833
9834 2020-01-26 Tom Tromey <tom@tromey.com>
9835
9836 * xcoffread.c (xcoff_end_psymtab): Use new.
9837 * psymtab.c (start_psymtab_common): Use new.
9838 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9839 Update.
9840 * psympriv.h (struct partial_symtab): Add parameters to
9841 constructor. Don't inline.
9842 (allocate_psymtab): Don't declare.
9843 * mdebugread.c (new_psymtab): Use new.
9844 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9845 * dbxread.c (dbx_end_psymtab): Use new.
9846
9847 2020-01-26 Tom Tromey <tom@tromey.com>
9848
9849 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9850 allocate_psymtab. Update documentation.
9851 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9852 allocate_psymtab. Do not use new.
9853 (allocate_psymtab): Use new. Update.
9854
9855 2020-01-26 Tom Tromey <tom@tromey.com>
9856
9857 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9858 * psymtab.c (psym_print_stats): Update.
9859 * psympriv.h (struct partial_symtab) <readin,
9860 psymtabs_addrmap_supported, anonymous>: Now bool.
9861 * mdebugread.c (psymtab_to_symtab_1): Update.
9862 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9863 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9864 (process_full_comp_unit, process_full_type_unit): Update.
9865 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9866 * ctfread.c (psymtab_to_symtab): Update.
9867
9868 2020-01-26 Tom Tromey <tom@tromey.com>
9869
9870 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9871 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9872 * psymtab.c (psymtab_storage): Delete psymtabs.
9873 (psymtab_storage::allocate_psymtab): Use new.
9874 (psymtab_storage::discard_psymtab): Use delete.
9875 * psympriv.h (struct partial_symtab): Add constructor and
9876 initializers.
9877
9878 2020-01-26 Tom Tromey <tom@tromey.com>
9879
9880 * machoread.c: Do not include psympriv.h.
9881
9882 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9883
9884 * NEWS: Mention the new option and the set/show commands.
9885
9886 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9887
9888 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9889 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9890 (validate_exec_file): New variables, enums, functions.
9891 (exec_file_locate_attach, print_section_info): Style the filenames.
9892 (_initialize_exec): Install show_exec_file_mismatch_command and
9893 set_exec_file_mismatch_command.
9894 * gdbcore.h (validate_exec_file): Declare.
9895 * infcmd.c (attach_command): Call validate_exec_file.
9896 * remote.c ( remote_target::remote_add_inferior): Likewise.
9897
9898 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9899
9900 * frame.c (find_frame_sal): Move call to get_next_frame into more
9901 inner scope.
9902 * inline-frame.c (inilne_state) <inline_state>: Update argument
9903 types.
9904 (inilne_state) <skipped_symbol>: Rename to...
9905 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9906 (skip_inline_frames): Build vector of skipped symbols and use this
9907 to reate the inline_state.
9908 (inline_skipped_symbol): Add a comment and some assertions, fetch
9909 skipped symbol from the list.
9910
9911 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9912
9913 * buildsym.c (lte_is_less_than): Delete.
9914 (buildsym_compunit::end_symtab_with_blockvector): Create local
9915 lambda function to sort line table entries, and use
9916 std::stable_sort instead of std::sort.
9917 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9918 markers when looking for a previous line.
9919
9920 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9921
9922 * dwarf2read.c (lnp_state_machine::record_line): Include
9923 end_sequence parameter in debug print out. Record the line if we
9924 are at an end_sequence marker even if it's not the start of a
9925 statement.
9926 * symmisc.c (maintenance_print_one_line_table): Print end of
9927 sequence markers with 'END' not '0'.
9928
9929 2020-01-24 Pedro Alves <palves@redhat.com>
9930
9931 PR gdb/25410
9932 * thread.c (scoped_restore_current_thread::restore): Use
9933 switch_to_inferior_no_thread.
9934 * exec.c: Include "progspace-and-thread.h".
9935 (add_target_sections, remove_target_sections):
9936 scoped_restore_current_pspace_and_thread instead of
9937 scoped_restore_current_thread.
9938 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9939 and aspace to the inferior before calling clone_program_space.
9940 Remove stale comment.
9941
9942 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9943
9944 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9945 (arm_netbsd_nat_target::fetch_registers): ...this.
9946 (arm_nbsd_nat_target::store_registers): Rename to...
9947 (arm_netbsd_nat_target::store_registers): ...this.
9948
9949 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9950
9951 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9952 register_t.
9953
9954 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9955
9956 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9957 Update comment.
9958 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9959 Likewise.
9960 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9961 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9962 the correct replacement (iterate_over_regset_sections).
9963 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9964 Update comment.
9965
9966 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9967
9968 PR gdb/23718
9969 * gdb/python/python.c (execute_gdb_command): Call
9970 async_enable_stdin in catch block.
9971
9972 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9973
9974 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9975 SWITCH_THRU_ALL_UIS.
9976
9977 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9978
9979 PR tui/9765
9980 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9981 comment, add extra parameter, and update to store previous symbol
9982 when appropriate.
9983 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9984 add extra parameter.
9985 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9986 remove unneeded parameter, add try/catch around gdb_print_insn,
9987 rewrite to add items to asm_lines vector.
9988 (tui_find_backward_disassembly_start_address): New function.
9989 (tui_find_disassembly_address): Updated throughout.
9990 (tui_disasm_window::set_contents): Update for changes to
9991 tui_disassemble.
9992 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9993 number of lines to scroll.
9994
9995 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9996
9997 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9998 (SECT_OFF_DATA): Likewise.
9999 (SECT_OFF_RODATA): Likewise.
10000 (SECT_OFF_TEXT): Likewise.
10001 (SECT_OFF_BSS): Likewise.
10002 (struct objfile) <text_section_offset, data_section_offset>: New
10003 methods.
10004 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10005 objfile::text_section_offset.
10006 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10007 * coffread.c (coff_symtab_read): Likewise.
10008 (enter_linenos): Likewise.
10009 (process_coff_symbol): Likewise.
10010 * ctfread.c (get_objfile_text_range): Likewise.
10011 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10012 Use objfile::data_section_offset.
10013 * dwarf2-frame.c (execute_cfa_program): Use
10014 objfile::text_section_offset.
10015 (dwarf2_frame_find_fde): Likewise.
10016 * dwarf2read.c (create_addrmap_from_index): Likewise.
10017 (create_addrmap_from_aranges): Likewise.
10018 (dw2_find_pc_sect_compunit_symtab): Likewise.
10019 (process_psymtab_comp_unit_reader): Likewise.
10020 (add_partial_symbol): Likewise.
10021 (add_partial_subprogram): Likewise.
10022 (process_full_comp_unit): Likewise.
10023 (read_file_scope): Likewise.
10024 (read_func_scope): Likewise.
10025 (read_lexical_block_scope): Likewise.
10026 (read_call_site_scope): Likewise.
10027 (dwarf2_rnglists_process): Likewise.
10028 (dwarf2_ranges_process): Likewise.
10029 (dwarf2_ranges_read): Likewise.
10030 (dwarf_decode_lines_1): Likewise.
10031 (new_symbol): Likewise.
10032 (dwarf2_fetch_die_loc_sect_off): Likewise.
10033 (dwarf2_per_cu_text_offset): Likewise.
10034 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10035 * hppa-tdep.c (read_unwind_info): Likewise.
10036 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10037 * psympriv.h (struct partial_symtab): Likewise.
10038 * psymtab.c (find_pc_sect_psymtab): Likewise.
10039 * solib-svr4.c (enable_break): Likewise.
10040 * stap-probe.c (relocate_address): Use
10041 objfile::data_section_offset.
10042 * xcoffread.c (enter_line_range): Use
10043 objfile::text_section_offset.
10044 (read_xcoff_symtab): Likewise.
10045
10046 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10047
10048 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10049 declaration to narrower scopes.
10050
10051 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10052
10053 * darwin-nat.h (struct darwin_exception_msg, enum
10054 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10055 Move up.
10056 (class darwin_nat_target) <wait_1, check_new_threads,
10057 decode_exception_message, decode_message, stop_inferior,
10058 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10059 * darwin-nat.c (darwin_check_new_threads): Rename to...
10060 (darwin_nat_target::check_new_threads): ... this.
10061 (darwin_suspend_inferior_it): Remove.
10062 (darwin_decode_exception_message): Rename to...
10063 (darwin_nat_target::decode_exception_message): ... this.
10064 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10065 (darwin_decode_message): Rename to...
10066 (darwin_nat_target::decode_message): ... this.
10067 (cancel_breakpoint): Rename to...
10068 (darwin_nat_target::cancel_breakpoint): ... this.
10069 (darwin_wait): Rename to...
10070 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10071 instead of iterate_over_inferiors.
10072 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10073 (darwin_stop_inferior): Rename to...
10074 (darwin_nat_target::stop_inferior): ... this.
10075 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10076 (darwin_init_thread_list): Rename to...
10077 (darwin_nat_target::init_thread_list): ... this.
10078 (darwin_ptrace_him): Rename to...
10079 (darwin_nat_target::ptrace_him): ... this.
10080 (darwin_nat_target::create_inferior): Pass lambda function to
10081 fork_inferior.
10082 (darwin_nat_target::detach): Call stop_inferior instead of
10083 darwin_stop_inferior.
10084 * fork-inferior.h (fork_inferior): Change init_trace_fun
10085 parameter to gdb::function_view.
10086 * fork-inferior.c (fork_inferior): Likewise.
10087
10088 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10089
10090 * i386-cygwin-tdep.c (core_process_module_section): Update.
10091 * windows-nat.c (struct lm_info_windows): Add text_offset.
10092 (windows_xfer_shared_libraries): Update.
10093 * windows-tdep.c (windows_xfer_shared_library):
10094 Add text_offset_cached argument.
10095 * windows-tdep.h (windows_xfer_shared_library): Update.
10096
10097 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10098
10099 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10100
10101 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10102
10103 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10104 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10105 replace with range-based for.
10106 (gdbsim_interrupt_inferior): Remove.
10107 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10108 with a range-based for. Inline code from
10109 gdbsim_interrupt_inferior.
10110
10111 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10112
10113 * infrun.c (proceed): Fix indentation.
10114
10115 2020-01-21 Tom Tromey <tromey@adacore.com>
10116
10117 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10118 * python/python.c (python_extension_ops): Update.
10119 (gdbpy_colorize): New function.
10120 * python/lib/gdb/__init__.py (colorize): New function.
10121 * extension.h (ext_lang_colorize): Declare.
10122 * extension.c (ext_lang_colorize): New function.
10123 * extension-priv.h (struct extension_language_ops) <colorize>: New
10124 member.
10125 * cli/cli-style.c (_initialize_cli_style): Update help text.
10126
10127 2020-01-21 Luis Machado <luis.machado@linaro.org>
10128
10129 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10130 <cond>: Change type to bool.
10131 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10132 (aarch64_displaced_step_cb): Likewise.
10133 (aarch64_displaced_step_tb): Likewise.
10134
10135 2020-01-21 Luis Machado <luis.machado@linaro.org>
10136
10137 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10138 output.
10139
10140 2020-01-21 Luis Machado <luis.machado@linaro.org>
10141
10142 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10143 <pc_adjust>: Adjust the documentation.
10144 (aarch64_displaced_step_fixup): Check if PC really moved before
10145 adjusting it.
10146
10147 2020-01-19 Tom Tromey <tom@tromey.com>
10148
10149 * disasm.c (~gdb_disassembler): New destructor.
10150 (gdb_buffered_insn_length): Call disassemble_free_target.
10151 * disasm.h (class gdb_disassembler): Declare destructor. Use
10152 DISABLE_COPY_AND_ASSIGN.
10153
10154 2020-01-19 Tom Tromey <tom@tromey.com>
10155
10156 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10157 (die_reader_func_ftype): Remove.
10158 (cutu_reader): New class.
10159 (dw2_get_file_names_reader): Remove "data" parameter.
10160 (dw2_get_file_names): Use cutu_reader.
10161 (create_debug_type_hash_table): Update.
10162 (read_cutu_die_from_dwo): Update comment.
10163 (lookup_dwo_unit): Add dwo_name parameter.
10164 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10165 die_reader_func_ftype and data parameters.
10166 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10167 Remove die_reader_func_ftype and data parameters.
10168 (~cutu_reader): New; from init_cutu_and_read_dies.
10169 (cutu_reader::cutu_reader): Rename from
10170 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10171 and data parameters.
10172 (init_cutu_and_read_dies_simple): Remove.
10173 (struct process_psymtab_comp_unit_data): Remove.
10174 (process_psymtab_comp_unit_reader): Remove data parameter; add
10175 want_partial_unit and pretend_language parameters.
10176 (process_psymtab_comp_unit): Use cutu_reader.
10177 (build_type_psymtabs_reader): Remove data parameter.
10178 (build_type_psymtabs_1): Use cutu_reader.
10179 (process_skeletonless_type_unit): Likewise.
10180 (load_partial_comp_unit_reader): Remove.
10181 (load_partial_comp_unit): Use cutu_reader.
10182 (load_full_comp_unit_reader): Remove.
10183 (load_full_comp_unit): Use cutu_reader.
10184 (struct create_dwo_cu_data): Remove.
10185 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10186 dwo_unit parameters.
10187 (create_cus_hash_table): Use cutu_reader.
10188 (struct dwarf2_read_addr_index_data): Remove.
10189 (dwarf2_read_addr_index_reader): Remove.
10190 (dwarf2_read_addr_index): Use cutu_reader.
10191 (read_signatured_type_reader): Remove.
10192 (read_signatured_type): Use cutu_reader.
10193
10194 2020-01-19 Tom Tromey <tom@tromey.com>
10195
10196 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10197 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10198 (tui_wrefresh): Declare.
10199 * tui/tui-wingeneral.c (suppress_output): New global.
10200 (tui_suppress_output, ~tui_suppress_output): New constructor and
10201 destructor.
10202 (tui_wrefresh): New function.
10203 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10204 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10205 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10206 method.
10207 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10208 tui_wrefresh.
10209 (tui_data_window::no_refresh): New method.
10210 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10211 (tui_reg_command): Use tui_suppress_output
10212 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10213 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10214 method.
10215 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10216
10217 2020-01-19 Tom Tromey <tom@tromey.com>
10218
10219 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10220 Handle case where symtab is null.
10221
10222 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10223
10224 * linux-fork.c (one_fork_p): Simplify.
10225
10226 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10227
10228 * top.c (struct qt_args): Remove.
10229 (kill_or_detach): Change return type to void, replace `void *`
10230 parameter with a proper one.
10231 (print_inferior_quit_action): Likewise.
10232 (quit_confirm): Use range-based for loop to iterate over inferiors.
10233 (quit_force): Likewise.
10234
10235 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10236
10237 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10238 `void *` parameter with proper parameters.
10239 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10240 (print_one_inferior): Change return type to void, replace `void *`
10241 parameter with proper parameters.
10242 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10243 inferiors.
10244 (get_other_inferior): Remove.
10245 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10246 inferiors.
10247
10248 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10249
10250 * mi/mi-interp.c (report_initial_inferior): Remove.
10251 (mi_interp::init): Use range-based for to iterate over inferiors.
10252
10253 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10254
10255 * python/py-inferior.c (build_inferior_list): Remove.
10256 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10257
10258 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10259
10260 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10261 (btrace_stitch_trace): Likewise.
10262 * charset.c (intermediate_encoding): Likewise (vaild).
10263 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10264 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10265 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10266
10267 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10268
10269 * windows-tdep.c (windows_get_tlb_type):
10270 Add rtl_user_process_parameters type.
10271
10272 2020-01-16 Pedro Alves <palves@redhat.com>
10273 Norbert Lange <nolange79@gmail.com>
10274
10275 PR build/24805
10276 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10277 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10278 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10279 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10280 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10281 (ps_plog): Redeclare exported functions with default visibility.
10282
10283 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10284
10285 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10286 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10287
10288 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10289
10290 * infcmd.c (post_create_inferior): Use get_thread_regcache
10291 instead of get_current_regcache.
10292
10293 2020-01-14 Tom Tromey <tom@tromey.com>
10294
10295 PR symtab/12535:
10296 * python/python.c (gdbpy_decode_line): Treat empty string the same
10297 as no argument.
10298
10299 2020-01-14 Tom Tromey <tom@tromey.com>
10300
10301 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10302
10303 2020-01-14 Tom Tromey <tom@tromey.com>
10304
10305 * nat/linux-btrace.c: Don't include <config.h>.
10306 * nat/linux-ptrace.c: Don't include <config.h>.
10307 * nat/x86-linux-dregs.c: Don't include <config.h>.
10308
10309 2020-01-14 Tom Tromey <tom@tromey.com>
10310
10311 * configure: Rebuild.
10312 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10313
10314 2020-01-14 Tom Tromey <tom@tromey.com>
10315
10316 * nat/x86-linux-dregs.c: Include configh.h.
10317 * nat/linux-ptrace.c: Include configh.h.
10318 * nat/linux-btrace.c: Include configh.h.
10319 * defs.h: Include config.h, bfd.h.
10320 * configure.ac: Don't source common.host.
10321 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10322 * configure: Rebuild.
10323 * acinclude.m4: Update path.
10324 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10325 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10326 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10327 (CLIBS): Add LIBSUPPORT.
10328 (CDEPS): Likewise.
10329 (COMMON_SFILES): Remove gdbsupport files.
10330 (HFILES_NO_SRCDIR): Likewise.
10331 (stamp-version): Update path to create-version.sh.
10332 (ALLDEPFILES): Remove gdbsupport files.
10333
10334 2020-01-14 Tom Tromey <tom@tromey.com>
10335
10336 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10337 USE_WIN32API when needed.
10338 * configure.ac (USE_WIN32API): Don't define.
10339 (WIN32LIBS): Use WIN32APILIBS.
10340 * configure: Rebuild.
10341
10342 2020-01-14 Tom Tromey <tom@tromey.com>
10343
10344 * configure: Rebuild.
10345 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10346
10347 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10348
10349 * skip.c (skip_function_command): Make skip w/o arguments use the
10350 name of the inlined function if pc is inside any inlined function.
10351
10352 2020-01-14 Luis Machado <luis.machado@linaro.org>
10353
10354 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10355 * infrun.c (resume_1): Likewise.
10356 (handle_inferior_event): Remove stale comment.
10357 * linux-nat.c (linux_nat_target::resume): Update comments.
10358 (save_stop_reason): Likewise.
10359 (linux_nat_filter_event): Likewise.
10360 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10361
10362 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10363
10364 * elfread.c (record_minimal_symbol): Set section index to 0 for
10365 non-allocatable sections.
10366
10367
10368 2020-01-13 Ali Tamur <tamur@google.com>
10369
10370 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10371 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10372 to gdb::optional. Update comments.
10373 (dwo_file): Update comments.
10374 (read_attribute): Update API to take an additional out parameter,
10375 need_reprocess. This is used to mark attributes that need other
10376 attributes (e.g. str_offsets_base) for correct computation which may not
10377 have been read yet.
10378 (read_attribute_reprocess): New function declaration.
10379 (read_addr_index): Likewise.
10380 (read_dwo_str_index): Likewise.
10381 (read_stub_str_index): Likewise.
10382 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10383 (lookup_addr_base): New function definition.
10384 (lookup_ranges_base): Likewise.
10385 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10386 lookup_ranges_base.
10387 (init_cutu_and_read_dies): Update comments.
10388 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10389 unit. This is used to inherit parent's str_offsets_base and addr_base.
10390 Update comments.
10391 (init_cutu_and_read_dies_simple): Reflect API changes.
10392 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10393 (create_cus_hash_table): Change API to take parent compile unit.
10394 Reflect API changes.
10395 (open_and_init_dwo_file): Reflect API changes.
10396 (dwarf2_get_pc_bounds): Update comments.
10397 (dwarf2_record_block_ranges): Likewise.
10398 (read_full_die_1): Change implementation to reprocess attributes that
10399 need str_offsets_base and addr_base.
10400 (partial_die_info::read): Likewise.
10401 (read_attribute_reprocess): New function definition.
10402 (read_attribute_value): Change API to take an additional out parameter,
10403 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10404 when a non-dwo compile unit has index based attributes.
10405 (read_attribute): Reflect API changes.
10406 (read_addr_index_1): Reflect API changes. Update comments.
10407 (dwarf2_read_addr_index_data): Reflect API changes.
10408 (dwarf2_read_addr_index): Likewise.
10409 (read_str_index): Change API and implementation. This becomes a helper
10410 to be used by the new string index related methods. Update error
10411 message and comments.
10412 (read_dwo_str_index): New function definition.
10413 (read_stub_str_index): Likewise.
10414 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10415 * symfile.h (dwarf2_debug_sections): Likewise.
10416 * xcoffread.c (dwarf2_debug_sections): Likewise.
10417
10418 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10419
10420 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10421 core_reg_sect type to gdb_byte *.
10422 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10423 * cris-tdep.c (fetch_core_registers): Likewise.
10424 * corelow.c (core_target::get_core_register_section): Change
10425 type of `contents` to gdb::byte_vector.
10426
10427 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10428
10429 * tui/tui-wingeneral.c (box_win): Position the title in the center
10430 of the border.
10431
10432 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10433
10434 * corelow.c (core_target::get_core_register_section): Use
10435 std::vector instead of alloca.
10436
10437 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10438
10439 * warning.m4: Add -Wmissing-declarations to build_warnings.
10440 * configure: Re-generate.
10441
10442 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10443
10444 * python/python.c (init__gdb_module): Add declaration.
10445
10446 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10447
10448 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10449 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10450 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10451 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10452 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10453 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10454 * ada-exp.y (_initialize_ada_exp): Add declaration.
10455 * ada-lang.c (_initialize_ada_language): Add declaration.
10456 * ada-tasks.c (_initialize_tasks): Add declaration.
10457 * agent.c (_initialize_agent): Add declaration.
10458 * aix-thread.c (_initialize_aix_thread): Add declaration.
10459 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10460 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10461 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10462 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10463 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10464 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10465 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10466 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10467 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10468 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10469 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10470 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10471 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10472 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10473 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10474 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10475 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10476 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10477 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10478 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10479 * annotate.c (_initialize_annotate): Add declaration.
10480 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10481 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10482 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10483 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10484 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10485 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10486 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10487 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10488 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10489 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10490 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10491 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10492 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10493 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10494 * auto-load.c (_initialize_auto_load): Add declaration.
10495 * auxv.c (_initialize_auxv): Add declaration.
10496 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10497 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10498 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10499 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10500 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10501 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10502 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10503 * breakpoint.c (_initialize_breakpoint): Add declaration.
10504 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10505 * btrace.c (_initialize_btrace): Add declaration.
10506 * charset.c (_initialize_charset): Add declaration.
10507 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10508 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10509 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10510 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10511 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10512 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10513 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10514 * coffread.c (_initialize_coffread): Add declaration.
10515 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10516 * compile/compile.c (_initialize_compile): Add declaration.
10517 * complaints.c (_initialize_complaints): Add declaration.
10518 * completer.c (_initialize_completer): Add declaration.
10519 * copying.c (_initialize_copying): Add declaration.
10520 * corefile.c (_initialize_core): Add declaration.
10521 * corelow.c (_initialize_corelow): Add declaration.
10522 * cp-abi.c (_initialize_cp_abi): Add declaration.
10523 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10524 * cp-support.c (_initialize_cp_support): Add declaration.
10525 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10526 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10527 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10528 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10529 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10530 * ctfread.c (_initialize_ctfread): Add declaration.
10531 * d-lang.c (_initialize_d_language): Add declaration.
10532 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10533 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10534 * dbxread.c (_initialize_dbxread): Add declaration.
10535 * dcache.c (_initialize_dcache): Add declaration.
10536 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10537 * disasm.c (_initialize_disasm): Add declaration.
10538 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10539 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10540 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10541 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10542 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10543 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10544 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10545 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10546 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10547 * elfread.c (_initialize_elfread): Add declaration.
10548 * exec.c (_initialize_exec): Add declaration.
10549 * extension.c (_initialize_extension): Add declaration.
10550 * f-lang.c (_initialize_f_language): Add declaration.
10551 * f-valprint.c (_initialize_f_valprint): Add declaration.
10552 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10553 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10554 * filesystem.c (_initialize_filesystem): Add declaration.
10555 * findcmd.c (_initialize_mem_search): Add declaration.
10556 * findvar.c (_initialize_findvar): Add declaration.
10557 * fork-child.c (_initialize_fork_child): Add declaration.
10558 * frame-base.c (_initialize_frame_base): Add declaration.
10559 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10560 * frame.c (_initialize_frame): Add declaration.
10561 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10562 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10563 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10564 * gcore.c (_initialize_gcore): Add declaration.
10565 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10566 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10567 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10568 * gdbarch.c (_initialize_gdbarch): Add declaration.
10569 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10570 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10571 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10572 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10573 * go-lang.c (_initialize_go_language): Add declaration.
10574 * go32-nat.c (_initialize_go32_nat): Add declaration.
10575 * guile/guile.c (_initialize_guile): Add declaration.
10576 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10577 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10578 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10579 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10580 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10581 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10582 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10583 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10584 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10585 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10586 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10587 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10588 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10589 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10590 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10591 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10592 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10593 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10594 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10595 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10596 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10597 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10598 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10599 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10600 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10601 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10602 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10603 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10604 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10605 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10606 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10607 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10608 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10609 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10610 * infcall.c (_initialize_infcall): Add declaration.
10611 * infcmd.c (_initialize_infcmd): Add declaration.
10612 * inflow.c (_initialize_inflow): Add declaration.
10613 * infrun.c (_initialize_infrun): Add declaration.
10614 * interps.c (_initialize_interpreter): Add declaration.
10615 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10616 * jit.c (_initialize_jit): Add declaration.
10617 * language.c (_initialize_language): Add declaration.
10618 * linux-fork.c (_initialize_linux_fork): Add declaration.
10619 * linux-nat.c (_initialize_linux_nat): Add declaration.
10620 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10621 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10622 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10623 * m2-lang.c (_initialize_m2_language): Add declaration.
10624 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10625 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10626 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10627 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10628 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10629 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10630 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10631 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10632 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10633 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10634 * machoread.c (_initialize_machoread): Add declaration.
10635 * macrocmd.c (_initialize_macrocmd): Add declaration.
10636 * macroscope.c (_initialize_macroscope): Add declaration.
10637 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10638 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10639 * maint.c (_initialize_maint_cmds): Add declaration.
10640 * mdebugread.c (_initialize_mdebugread): Add declaration.
10641 * memattr.c (_initialize_mem): Add declaration.
10642 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10643 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10644 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10645 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10646 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10647 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10648 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10649 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10650 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10651 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10652 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10653 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10654 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10655 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10656 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10657 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10658 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10659 * mipsread.c (_initialize_mipsread): Add declaration.
10660 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10661 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10662 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10663 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10664 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10665 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10666 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10667 * nto-procfs.c (_initialize_procfs): Add declaration.
10668 * objc-lang.c (_initialize_objc_language): Add declaration.
10669 * observable.c (_initialize_observer): Add declaration.
10670 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10671 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10672 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10673 * osabi.c (_initialize_gdb_osabi): Add declaration.
10674 * osdata.c (_initialize_osdata): Add declaration.
10675 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10676 * parse.c (_initialize_parse): Add declaration.
10677 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10678 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10679 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10680 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10681 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10682 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10683 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10684 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10685 * printcmd.c (_initialize_printcmd): Add declaration.
10686 * probe.c (_initialize_probe): Add declaration.
10687 * proc-api.c (_initialize_proc_api): Add declaration.
10688 * proc-events.c (_initialize_proc_events): Add declaration.
10689 * proc-service.c (_initialize_proc_service): Add declaration.
10690 * procfs.c (_initialize_procfs): Add declaration.
10691 * producer.c (_initialize_producer): Add declaration.
10692 * psymtab.c (_initialize_psymtab): Add declaration.
10693 * python/python.c (_initialize_python): Add declaration.
10694 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10695 * record-btrace.c (_initialize_record_btrace): Add declaration.
10696 * record-full.c (_initialize_record_full): Add declaration.
10697 * record.c (_initialize_record): Add declaration.
10698 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10699 * regcache.c (_initialize_regcache): Add declaration.
10700 * reggroups.c (_initialize_reggroup): Add declaration.
10701 * remote-notif.c (_initialize_notif): Add declaration.
10702 * remote-sim.c (_initialize_remote_sim): Add declaration.
10703 * remote.c (_initialize_remote): Add declaration.
10704 * reverse.c (_initialize_reverse): Add declaration.
10705 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10706 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10707 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10708 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10709 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10710 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10711 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10712 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10713 Add declaration.
10714 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10715 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10716 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10717 * rust-exp.y (_initialize_rust_exp): Add declaration.
10718 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10719 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10720 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10721 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10722 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10723 * score-tdep.c (_initialize_score_tdep): Add declaration.
10724 * ser-go32.c (_initialize_ser_dos): Add declaration.
10725 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10726 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10727 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10728 * ser-uds.c (_initialize_ser_socket): Add declaration.
10729 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10730 * serial.c (_initialize_serial): Add declaration.
10731 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10732 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10733 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10734 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10735 * skip.c (_initialize_step_skip): Add declaration.
10736 * sol-thread.c (_initialize_sol_thread): Add declaration.
10737 * solib-aix.c (_initialize_solib_aix): Add declaration.
10738 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10739 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10740 * solib-frv.c (_initialize_frv_solib): Add declaration.
10741 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10742 * solib-target.c (_initialize_solib_target): Add declaration.
10743 * solib.c (_initialize_solib): Add declaration.
10744 * source-cache.c (_initialize_source_cache): Add declaration.
10745 * source.c (_initialize_source): Add declaration.
10746 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10747 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10748 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10749 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10750 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10751 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10752 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10753 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10754 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10755 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10756 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10757 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10758 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10759 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10760 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10761 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10762 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10763 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10764 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10765 * stabsread.c (_initialize_stabsread): Add declaration.
10766 * stack.c (_initialize_stack): Add declaration.
10767 * stap-probe.c (_initialize_stap_probe): Add declaration.
10768 * std-regs.c (_initialize_frame_reg): Add declaration.
10769 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10770 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10771 * symfile.c (_initialize_symfile): Add declaration.
10772 * symmisc.c (_initialize_symmisc): Add declaration.
10773 * symtab.c (_initialize_symtab): Add declaration.
10774 * target.c (_initialize_target): Add declaration.
10775 * target-connection.c (_initialize_target_connection): Add
10776 declaration.
10777 * target-dcache.c (_initialize_target_dcache): Add declaration.
10778 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10779 * thread.c (_initialize_thread): Add declaration.
10780 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10781 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10782 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10783 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10784 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10785 * tracectf.c (_initialize_ctf): Add declaration.
10786 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10787 * tracefile.c (_initialize_tracefile): Add declaration.
10788 * tracepoint.c (_initialize_tracepoint): Add declaration.
10789 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10790 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10791 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10792 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10793 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10794 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10795 * tui/tui.c (_initialize_tui): Add declaration.
10796 * typeprint.c (_initialize_typeprint): Add declaration.
10797 * ui-style.c (_initialize_ui_style): Add declaration.
10798 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10799 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10800 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10801 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10802 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10803 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10804 * unittests/filtered_iterator-selftests.c
10805 (_initialize_filtered_iterator_selftests): Add declaration.
10806 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10807 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10808 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10809 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10810 * unittests/main-thread-selftests.c
10811 (_initialize_main_thread_selftests): Add declaration.
10812 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10813 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10814 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10815 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10816 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10817 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10818 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10819 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10820 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10821 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10822 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10823 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10824 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10825 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10826 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10827 declaration.
10828 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10829 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10830 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10831 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10832 * user-regs.c (_initialize_user_regs): Add declaration.
10833 * utils.c (_initialize_utils): Add declaration.
10834 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10835 * valops.c (_initialize_valops): Add declaration.
10836 * valprint.c (_initialize_valprint): Add declaration.
10837 * value.c (_initialize_values): Add declaration.
10838 * varobj.c (_initialize_varobj): Add declaration.
10839 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10840 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10841 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10842 * windows-nat.c (_initialize_windows_nat): Add declaration.
10843 (_initialize_check_for_gdb_ini): Add declaration.
10844 (_initialize_loadable): Add declaration.
10845 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10846 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10847 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10848 * xcoffread.c (_initialize_xcoffread): Add declaration.
10849 * xml-support.c (_initialize_xml_support): Add declaration.
10850 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10851 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10852 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10853 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10854
10855 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10856
10857 * regformats/regdat.sh: Generate declaration for init function.
10858
10859 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10860
10861 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10862 up.
10863 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10864 close_one_inferior>: New methods.
10865 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10866 pass down target to find_inferior_pid.
10867 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10868 Pass down target to find_inferior_ptid.
10869 (gdbsim_target::create_inferior): Pass down target to
10870 add_thread_silent.
10871 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10872 target down to find_inferior_ptid and switch_to_thread.
10873 (gdbsim_target::close): Update to call close_one_inferior.
10874 (struct resume_data): Remove.
10875 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10876 directly, rather than through a void pointer.
10877 (gdbsim_target::resume): Update to call resume_one_inferior.
10878
10879 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10880
10881 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10882
10883 2020-01-12 Pedro Alves <palves@redhat.com>
10884
10885 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10886 directly for the current inferior instead of
10887 discard_all_inferiors.
10888 (discard_all_inferiors): Delete.
10889
10890 2020-01-11 Tom Tromey <tom@tromey.com>
10891
10892 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10893 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10894 deprecated_safe_get_selected_frame.
10895
10896 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10897
10898 * inferior.c (print_inferior): Switch inferior before printing it.
10899
10900 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10901 Pedro Alves <palves@redhat.com>
10902
10903 * progspace-and-thread.c (switch_to_program_space_and_thread):
10904 Assert there's an inferior for PSPACE. Use
10905 switch_to_inferior_no_thread to switch the inferior too.
10906 * progspace.c (program_space::~program_space): Call
10907 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10908 (program_space::free_all_objfiles): Don't call clear_symtab_users
10909 here.
10910 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10911
10912 2020-01-10 Pedro Alves <palves@redhat.com>
10913
10914 * NEWS: Mention multi-target debugging, "info connections", and
10915 "add-inferior -no-connection".
10916
10917 2020-01-10 Pedro Alves <palves@redhat.com>
10918
10919 * infrun.c: Include "target-connection.h".
10920 (check_multi_target_resumption): New.
10921 (proceed): Call it.
10922 * target-connection.c (make_target_connection_string): Make
10923 extern.
10924 * target-connection.h (make_target_connection_string): Declare.
10925
10926 2020-01-10 Pedro Alves <palves@redhat.com>
10927
10928 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10929 * inferior.c (uiout_field_connection): New function.
10930 (print_inferior): Add new "connection-id" column.
10931 (add_inferior_command): Show connection number/string of added
10932 inferior.
10933 * process-stratum-target.h
10934 (process_stratum_target::connection_string): New virtual method.
10935 (process_stratum_target::connection_number): New field.
10936 * remote.c (remote_target::connection_string): New override.
10937 * target-connection.c: New file.
10938 * target-connection.h: New file.
10939 * target.c (decref_target): Remove process_stratum targets from
10940 the connection list.
10941 (target_stack::push): Add process_stratum targets to the
10942 connection list.
10943
10944 2020-01-10 Pedro Alves <palves@redhat.com>
10945
10946 Revert:
10947 2016-04-12 Pedro Alves <palves@redhat.com>
10948 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10949 Remove references to name.
10950 * serial.h (struct serial) <name>: Delete.
10951
10952 2020-01-10 Pedro Alves <palves@redhat.com>
10953
10954 * gdbarch-selftests.c (register_to_value_test): Remove "target
10955 already pushed" check.
10956
10957 2020-01-10 Pedro Alves <palves@redhat.com>
10958 John Baldwin <jhb@FreeBSD.org>
10959
10960 * aarch64-linux-nat.c
10961 (aarch64_linux_nat_target::thread_architecture): Adjust.
10962 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10963 (task_command_1): Likewise.
10964 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10965 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10966 (aix_thread_target::store_registers)
10967 (aix_thread_target::thread_alive): Adjust.
10968 * amd64-fbsd-tdep.c: Include "inferior.h".
10969 (amd64fbsd_get_thread_local_address): Pass down target.
10970 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10971 thread's gdbarch instead of target_gdbarch.
10972 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10973 get_last_target_status.
10974 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10975 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10976 inferiors.
10977 (update_inserted_breakpoint_locations): Skip if inferiors with no
10978 execution.
10979 (update_global_location_list): When handling moribund locations,
10980 find representative inferior for location's pspace, and use thread
10981 count of its process_stratum target.
10982 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10983 * bsd-uthread.c (bsd_uthread_target::wait): Use
10984 as_process_stratum_target and adjust thread_change_ptid and
10985 add_thread calls.
10986 (bsd_uthread_target::update_thread_list): Use
10987 as_process_stratum_target and adjust find_thread_ptid,
10988 thread_change_ptid and add_thread calls.
10989 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10990 find_thread_ptid call.
10991 * corelow.c (add_to_thread_list): Adjust add_thread call.
10992 (core_target_open): Adjust add_thread_silent and thread_count
10993 calls.
10994 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10995 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10996 * event-top.c (async_disconnect): Pop targets from all inferiors.
10997 * exec.c (add_target_sections): Push exec target on all inferiors
10998 sharing the program space.
10999 (remove_target_sections): Remove the exec target from all
11000 inferiors sharing the program space.
11001 (exec_on_vfork): New.
11002 * exec.h (exec_on_vfork): Declare.
11003 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11004 Pass it down.
11005 (fbsd_nat_target::update_thread_list): Adjust.
11006 (fbsd_nat_target::resume): Adjust.
11007 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11008 down.
11009 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11010 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11011 get_thread_arch_regcache call.
11012 * fork-child.c (gdb_startup_inferior): Pass target down to
11013 startup_inferior and set_executing.
11014 * gdbthread.h (struct process_stratum_target): Forward declare.
11015 (add_thread, add_thread_silent, add_thread_with_info)
11016 (in_thread_list): Add process_stratum_target parameter.
11017 (find_thread_ptid(inferior*, ptid_t)): New overload.
11018 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11019 parameter.
11020 (all_threads()): Delete overload.
11021 (all_threads, all_non_exited_threads): Add process_stratum_target
11022 parameter.
11023 (all_threads_safe): Use brace initialization.
11024 (thread_count): Add process_stratum_target parameter.
11025 (set_resumed, set_running, set_stop_requested, set_executing)
11026 (threads_are_executing, finish_thread_state): Add
11027 process_stratum_target parameter.
11028 (switch_to_thread): Use is_current_thread.
11029 * i386-fbsd-tdep.c: Include "inferior.h".
11030 (i386fbsd_get_thread_local_address): Pass down target.
11031 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11032 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11033 have_inferiors check.
11034 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11035 (inf_ptrace_target::attach): Adjust.
11036 * infcall.c (run_inferior_call): Adjust.
11037 * infcmd.c (run_command_1): Pass target to
11038 scoped_finish_thread_state.
11039 (proceed_thread_callback): Skip inferiors with no execution.
11040 (continue_command): Rename 'all_threads' local to avoid hiding
11041 'all_threads' function. Adjust get_last_target_status call.
11042 (prepare_one_step): Adjust set_running call.
11043 (signal_command): Use user_visible_resume_target. Compare thread
11044 pointers instead of inferior_ptid.
11045 (info_program_command): Adjust to pass down target.
11046 (attach_command): Mark target's 'thread_executing' flag.
11047 (stop_current_target_threads_ns): New, factored out from ...
11048 (interrupt_target_1): ... this. Switch inferior before making
11049 target calls.
11050 * inferior-iter.h
11051 (struct all_inferiors_iterator, struct all_inferiors_range)
11052 (struct all_inferiors_safe_range)
11053 (struct all_non_exited_inferiors_range): Filter on
11054 process_stratum_target too. Remove explicit.
11055 * inferior.c (inferior::inferior): Push dummy target on target
11056 stack.
11057 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11058 Add process_stratum_target parameter, and pass it down.
11059 (have_live_inferiors): Adjust.
11060 (switch_to_inferior_and_push_target): New.
11061 (add_inferior_command, clone_inferior_command): Handle
11062 "-no-connection" parameter. Use
11063 switch_to_inferior_and_push_target.
11064 (_initialize_inferior): Mention "-no-connection" option in
11065 the help of "add-inferior" and "clone-inferior" commands.
11066 * inferior.h: Include "process-stratum-target.h".
11067 (interrupt_target_1): Use bool.
11068 (struct inferior) <push_target, unpush_target, target_is_pushed,
11069 find_target_beneath, top_target, process_target, target_at,
11070 m_stack>: New.
11071 (discard_all_inferiors): Delete.
11072 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11073 (all_inferiors, all_non_exited_inferiors): Add
11074 process_stratum_target parameter.
11075 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11076 (target_last_proc_target): New global.
11077 (follow_fork_inferior): Push target on new inferior. Pass target
11078 to add_thread_silent. Call exec_on_vfork. Handle target's
11079 reference count.
11080 (follow_fork): Adjust get_last_target_status call. Also consider
11081 target.
11082 (follow_exec): Push target on new inferior.
11083 (struct execution_control_state) <target>: New field.
11084 (user_visible_resume_target): New.
11085 (do_target_resume): Call target_async.
11086 (resume_1): Set target's threads_executing flag. Consider resume
11087 target.
11088 (commit_resume_all_targets): New.
11089 (proceed): Also consider resume target. Skip threads of inferiors
11090 with no execution. Commit resumtion in all targets.
11091 (start_remote): Pass current inferior to wait_for_inferior.
11092 (infrun_thread_stop_requested): Consider target as well. Pass
11093 thread_info pointer to clear_inline_frame_state instead of ptid.
11094 (infrun_thread_thread_exit): Consider target as well.
11095 (random_pending_event_thread): New inferior parameter. Use it.
11096 (do_target_wait): Rename to ...
11097 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11098 down.
11099 (threads_are_resumed_pending_p, do_target_wait): New.
11100 (prepare_for_detach): Adjust calls.
11101 (wait_for_inferior): New inferior parameter. Handle it. Use
11102 do_target_wait_1 instead of do_target_wait.
11103 (fetch_inferior_event): Adjust. Switch to representative
11104 inferior. Pass target down.
11105 (set_last_target_status): Add process_stratum_target parameter.
11106 Save target in global.
11107 (get_last_target_status): Add process_stratum_target parameter and
11108 handle it.
11109 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11110 (context_switch): Check inferior_ptid == null_ptid before calling
11111 inferior_thread().
11112 (get_inferior_stop_soon): Pass down target.
11113 (wait_one): Rename to ...
11114 (poll_one_curr_target): ... this.
11115 (struct wait_one_event): New.
11116 (wait_one): New.
11117 (stop_all_threads): Adjust.
11118 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11119 event's target.
11120 (switch_back_to_stepped_thread): Also consider target.
11121 (print_stop_event): Update.
11122 (normal_stop): Update. Also consider the resume target.
11123 * infrun.h (wait_for_inferior): Remove declaration.
11124 (user_visible_resume_target): New declaration.
11125 (get_last_target_status, set_last_target_status): New
11126 process_stratum_target parameter.
11127 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11128 process_stratum_target parameter, and use it.
11129 (clear_inline_frame_state (thread_info*)): New.
11130 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11131 process_stratum_target parameter.
11132 (clear_inline_frame_state (thread_info*)): Declare.
11133 * linux-fork.c (delete_checkpoint_command): Pass target down to
11134 find_thread_ptid.
11135 (checkpoint_command): Adjust.
11136 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11137 instead of just tweaking inferior_ptid.
11138 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11139 (exit_lwp): Pass target down to find_thread_ptid.
11140 (attach_proc_task_lwp_callback): Pass target down to
11141 add_thread/set_running/set_executing.
11142 (linux_nat_target::attach): Pass target down to
11143 thread_change_ptid.
11144 (get_detach_signal): Pass target down to find_thread_ptid.
11145 Consider last target status's target.
11146 (linux_resume_one_lwp_throw, resume_lwp)
11147 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11148 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11149 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11150 (linux_nat_target::async_wait_fd): New.
11151 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11152 target down.
11153 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11154 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11155 * linux-thread-db.c (struct thread_db_info::process_target): New
11156 field.
11157 (add_thread_db_info): Save target.
11158 (get_thread_db_info): New process_stratum_target parameter. Also
11159 match target.
11160 (delete_thread_db_info): New process_stratum_target parameter.
11161 Also match target.
11162 (thread_from_lwp): Adjust to pass down target.
11163 (thread_db_notice_clone): Pass down target.
11164 (check_thread_db_callback): Pass down target.
11165 (try_thread_db_load_1): Always push the thread_db target.
11166 (try_thread_db_load, record_thread): Pass target down.
11167 (thread_db_target::detach): Pass target down. Always unpush the
11168 thread_db target.
11169 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11170 target down. Always unpush the thread_db target.
11171 (find_new_threads_callback, thread_db_find_new_threads_2)
11172 (thread_db_target::update_thread_list): Pass target down.
11173 (thread_db_target::pid_to_str): Pass current inferior down.
11174 (thread_db_target::get_thread_local_address): Pass target down.
11175 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11176 target down.
11177 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11178 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11179 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11180 (procfs_init_inferior): Rename to ...
11181 (procfs_target::procfs_init_inferior): ... this and adjust.
11182 (procfs_target::create_inferior, procfs_notice_thread)
11183 (procfs_do_thread_registers): Adjust.
11184 * ppc-fbsd-tdep.c: Include "inferior.h".
11185 (ppcfbsd_get_thread_local_address): Pass down target.
11186 * proc-service.c (ps_xfer_memory): Switch current inferior and
11187 program space as well.
11188 (get_ps_regcache): Pass target down.
11189 * process-stratum-target.c
11190 (process_stratum_target::thread_address_space)
11191 (process_stratum_target::thread_architecture): Pass target down.
11192 * process-stratum-target.h
11193 (process_stratum_target::threads_executing): New field.
11194 (as_process_stratum_target): New.
11195 * ravenscar-thread.c
11196 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11197 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11198 down.
11199 * record-btrace.c (record_btrace_target::info_record): Adjust.
11200 (record_btrace_target::record_method)
11201 (record_btrace_target::record_is_replaying)
11202 (record_btrace_target::fetch_registers)
11203 (get_thread_current_frame_id, record_btrace_target::resume)
11204 (record_btrace_target::wait, record_btrace_target::stop): Pass
11205 target down.
11206 * record-full.c (record_full_wait_1): Switch to event thread.
11207 Pass target down.
11208 * regcache.c (regcache::regcache)
11209 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11210 process_stratum_target parameter and handle it.
11211 (current_thread_target): New global.
11212 (get_thread_regcache): Add process_stratum_target parameter and
11213 handle it. Switch inferior before calling target method.
11214 (get_thread_regcache): Pass target down.
11215 (get_thread_regcache_for_ptid): Pass target down.
11216 (registers_changed_ptid): Add process_stratum_target parameter and
11217 handle it.
11218 (registers_changed_thread, registers_changed): Pass target down.
11219 (test_get_thread_arch_aspace_regcache): New.
11220 (current_regcache_test): Define a couple local test_target_ops
11221 instances and use them for testing.
11222 (readwrite_regcache): Pass process_stratum_target parameter.
11223 (cooked_read_test, cooked_write_test): Pass mock_target down.
11224 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11225 (get_thread_arch_aspace_regcache): Add process_stratum_target
11226 parameter.
11227 (regcache::target): New method.
11228 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11229 (regcache::registers_changed_ptid): Add process_stratum_target
11230 parameter.
11231 (regcache::m_target): New field.
11232 (registers_changed_ptid): Add process_stratum_target parameter.
11233 * remote.c (remote_state::supports_vCont_probed): New field.
11234 (remote_target::async_wait_fd): New method.
11235 (remote_unpush_and_throw): Add remote_target parameter.
11236 (get_current_remote_target): Adjust.
11237 (remote_target::remote_add_inferior): Push target.
11238 (remote_target::remote_add_thread)
11239 (remote_target::remote_notice_new_inferior)
11240 (get_remote_thread_info): Pass target down.
11241 (remote_target::update_thread_list): Skip threads of inferiors
11242 bound to other targets. (remote_target::close): Don't discard
11243 inferiors. (remote_target::add_current_inferior_and_thread)
11244 (remote_target::process_initial_stop_replies)
11245 (remote_target::start_remote)
11246 (remote_target::remote_serial_quit_handler): Pass down target.
11247 (remote_target::remote_unpush_target): New remote_target
11248 parameter. Unpush the target from all inferiors.
11249 (remote_target::remote_unpush_and_throw): New remote_target
11250 parameter. Pass it down.
11251 (remote_target::open_1): Check whether the current inferior has
11252 execution instead of checking whether any inferior is live. Pass
11253 target down.
11254 (remote_target::remote_detach_1): Pass down target. Use
11255 remote_unpush_target.
11256 (extended_remote_target::attach): Pass down target.
11257 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11258 (remote_target::append_resumption): Pass down target.
11259 (remote_target::append_pending_thread_resumptions)
11260 (remote_target::remote_resume_with_hc, remote_target::resume)
11261 (remote_target::commit_resume): Pass down target.
11262 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11263 (remote_target::interrupt_query)
11264 (remote_target::remove_new_fork_children)
11265 (remote_target::check_pending_events_prevent_wildcard_vcont)
11266 (remote_target::remote_parse_stop_reply)
11267 (remote_target::process_stop_reply): Pass down target.
11268 (first_remote_resumed_thread): New remote_target parameter. Pass
11269 it down.
11270 (remote_target::wait_as): Pass down target.
11271 (unpush_and_perror): New remote_target parameter. Pass it down.
11272 (remote_target::readchar, remote_target::remote_serial_write)
11273 (remote_target::getpkt_or_notif_sane_1)
11274 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11275 down target.
11276 (remote_target::mourn_inferior): Pass down target. Use
11277 remote_unpush_target.
11278 (remote_target::core_of_thread)
11279 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11280 (remote_target::pid_to_exec_file)
11281 (remote_target::thread_handle_to_thread_info): Pass down target.
11282 (remote_target::async_wait_fd): New.
11283 * riscv-fbsd-tdep.c: Include "inferior.h".
11284 (riscv_fbsd_get_thread_local_address): Pass down target.
11285 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11286 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11287 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11288 Adjust.
11289 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11290 * solib-svr4.c (enable_break): Pass down target.
11291 * spu-multiarch.c (parse_spufs_run): Pass down target.
11292 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11293 * target-delegates.c: Regenerate.
11294 * target.c (g_target_stack): Delete.
11295 (current_top_target): Return the current inferior's top target.
11296 (target_has_execution_1): Refer to the passed-in inferior's top
11297 target.
11298 (target_supports_terminal_ours): Check whether the initial
11299 inferior was already created.
11300 (decref_target): New.
11301 (target_stack::push): Incref/decref the target.
11302 (push_target, push_target, unpush_target): Adjust.
11303 (target_stack::unpush): Defref target.
11304 (target_is_pushed): Return bool. Adjust to refer to the current
11305 inferior's target stack.
11306 (dispose_inferior): Delete, and inline parts ...
11307 (target_preopen): ... here. Only dispose of the current inferior.
11308 (target_detach): Hold strong target reference while detaching.
11309 Pass target down.
11310 (target_thread_name): Add assertion.
11311 (target_resume): Pass down target.
11312 (target_ops::beneath, find_target_at): Adjust to refer to the
11313 current inferior's target stack.
11314 (get_dummy_target): New.
11315 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11316 has a thread running.
11317 (initialize_targets): Rename to ...
11318 (_initialize_target): ... this.
11319 * target.h: Include "gdbsupport/refcounted-object.h".
11320 (struct target_ops): Inherit refcounted_object.
11321 (target_ops::shortname, target_ops::longname): Make const.
11322 (target_ops::async_wait_fd): New method.
11323 (decref_target): Declare.
11324 (struct target_ops_ref_policy): New.
11325 (target_ops_ref): New typedef.
11326 (get_dummy_target): Declare function.
11327 (target_is_pushed): Return bool.
11328 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11329 (all_matching_threads_iterator::all_matching_threads_iterator):
11330 Handle filter target.
11331 * thread-iter.h (struct all_matching_threads_iterator, struct
11332 all_matching_threads_range, class all_non_exited_threads_range):
11333 Filter by target too. Remove explicit.
11334 * thread.c (threads_executing): Delete.
11335 (inferior_thread): Pass down current inferior.
11336 (clear_thread_inferior_resources): Pass down thread pointer
11337 instead of ptid_t.
11338 (add_thread_silent, add_thread_with_info, add_thread): Add
11339 process_stratum_target parameter. Use it for thread and inferior
11340 searches.
11341 (is_current_thread): New.
11342 (thread_info::deletable): Use it.
11343 (find_thread_ptid, thread_count, in_thread_list)
11344 (thread_change_ptid, set_resumed, set_running): New
11345 process_stratum_target parameter. Pass it down.
11346 (set_executing): New process_stratum_target parameter. Pass it
11347 down. Adjust reference to 'threads_executing'.
11348 (threads_are_executing): New process_stratum_target parameter.
11349 Adjust reference to 'threads_executing'.
11350 (set_stop_requested, finish_thread_state): New
11351 process_stratum_target parameter. Pass it down.
11352 (switch_to_thread): Also match inferior.
11353 (switch_to_thread): New process_stratum_target parameter. Pass it
11354 down.
11355 (update_threads_executing): Reimplement.
11356 * top.c (quit_force): Pop targets from all inferior.
11357 (gdb_init): Don't call initialize_targets.
11358 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11359 Declare.
11360 (windows_add_thread, windows_delete_thread): Adjust.
11361 (get_windows_debug_event): Rename to ...
11362 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11363 * tracefile-tfile.c (tfile_target_open): Pass down target.
11364 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11365 Forward declare.
11366 (switch_to_thread): Add process_stratum_target parameter.
11367 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11368 parameter. Use it.
11369 (mi_on_resume): Pass target down.
11370 * nat/fork-inferior.c (startup_inferior): Add
11371 process_stratum_target parameter. Pass it down.
11372 * nat/fork-inferior.h (startup_inferior): Add
11373 process_stratum_target parameter.
11374 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11375
11376 2020-01-10 Pedro Alves <palves@redhat.com>
11377
11378 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11379 directly. Instead find the first thread in the thread list and
11380 use switch_to_thread.
11381
11382 2020-01-10 Pedro Alves <palves@redhat.com>
11383
11384 * remote.c (remote_target::remote_add_inferior): Don't bind a
11385 process to the current inferior if the current inferior is already
11386 bound to a process.
11387
11388 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11389 Pedro Alves <palves@redhat.com>
11390
11391 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11392 If no process is specified, return null_ptid instead of
11393 inferior_ptid.
11394 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11395 TARGET_WAITKIND_SIGNALLED with no pid.
11396
11397 2020-01-10 Pedro Alves <palves@redhat.com>
11398
11399 * remote.c (first_remote_resumed_thread): New.
11400 (remote_target::wait_as): Use it as default event_ptid instead of
11401 inferior_ptid.
11402
11403 2020-01-10 Pedro Alves <palves@redhat.com>
11404
11405 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11406
11407 2020-01-10 Pedro Alves <palves@redhat.com>
11408
11409 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11410 not -1.
11411
11412 2020-01-10 Pedro Alves <palves@redhat.com>
11413
11414 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11415 ptid to get_last_target_status.
11416 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11417 ptid to get_last_target_status.
11418 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11419 get_last_target_status.
11420 (info_program_command): Don't pass a target_waitstatus to
11421 get_last_target_status.
11422 * infrun.c (init_wait_for_inferior): Use
11423 nullify_last_target_wait_ptid.
11424 (get_last_target_status): Handle nullptr arguments.
11425 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11426 (print_stop_event): Don't pass a ptid to get_last_target_status.
11427 (normal_stop): Don't pass a ptid to get_last_target_status.
11428 * infrun.h (get_last_target_status, set_last_target_status): Move
11429 comments here and update.
11430 (nullify_last_target_wait_ptid): Declare.
11431 * linux-fork.c (fork_load_infrun_state): Remove local extern
11432 declaration of nullify_last_target_wait_ptid.
11433 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11434 to get_last_target_status.
11435
11436 2020-01-10 Pedro Alves <palves@redhat.com>
11437
11438 * gdbthread.h (scoped_restore_current_thread)
11439 <dont_restore, restore, m_dont_restore>: Declare.
11440 * thread.c (thread_alive): Add assertion. Return bool.
11441 (switch_to_thread_if_alive): New.
11442 (prune_threads): Switch inferior/thread.
11443 (print_thread_info_1): Switch thread before calling target methods.
11444 (scoped_restore_current_thread::restore): New, factored out from
11445 ...
11446 (scoped_restore_current_thread::~scoped_restore_current_thread):
11447 ... this.
11448 (scoped_restore_current_thread::scoped_restore_current_thread):
11449 Add assertion.
11450 (thread_apply_all_command, thread_select): Use
11451 switch_to_thread_if_alive.
11452 * infrun.c (proceed, restart_threads, handle_signal_stop)
11453 (switch_back_to_stepped_thread): Switch current thread before
11454 calling target methods.
11455
11456 2020-01-10 Pedro Alves <palves@redhat.com>
11457
11458 * inferior.c (switch_to_inferior_no_thread): New function,
11459 factored out from ...
11460 (inferior_command): ... here.
11461 * inferior.h (switch_to_inferior_no_thread): Declare.
11462 * mi/mi-main.c (run_one_inferior): Use
11463 switch_to_inferior_no_thread.
11464
11465 2020-01-10 Pedro Alves <palves@redhat.com>
11466
11467 * infcmd.c (kill_command): Remove dead code.
11468
11469 2020-01-10 Pedro Alves <palves@redhat.com>
11470
11471 * remote.c (remote_target::mourn_inferior): No longer check
11472 whether the target is running.
11473
11474 2020-01-10 Pedro Alves <palves@redhat.com>
11475
11476 * corelow.c (core_target::has_execution): Change parameter type to
11477 inferior pointer.
11478 * inferior.c (number_of_live_inferiors): Use
11479 inferior::has_execution instead of target_has_execution_1.
11480 * inferior.h (inferior::has_execution): New.
11481 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11482 inferior::has_execution instead of target_has_execution_1.
11483 * process-stratum-target.c
11484 (process_stratum_target::has_execution): Change parameter type to
11485 inferior pointer. Check the inferior's PID instead of
11486 inferior_ptid.
11487 * process-stratum-target.h
11488 (process_stratum_target::has_execution): Change parameter type to
11489 inferior pointer.
11490 * record-full.c (record_full_core_target::has_execution): Change
11491 parameter type to inferior pointer.
11492 * target.c (target_has_execution_1): Change parameter type to
11493 inferior pointer.
11494 (target_has_execution_current): Adjust.
11495 * target.h (target_ops::has_execution): Change parameter type to
11496 inferior pointer.
11497 (target_has_execution_1): Change parameter type to inferior
11498 pointer. Change return type to bool.
11499 * tracefile.h (tracefile_target::has_execution): Change parameter
11500 type to inferior pointer.
11501
11502 2020-01-10 Pedro Alves <palves@redhat.com>
11503
11504 * exceptions.c (print_flush): Remove current_top_target() check.
11505
11506 2020-01-10 Pedro Alves <palves@redhat.com>
11507
11508 * remote.c (show_remote_exec_file): Show the current inferior's
11509 exec-file instead of the command variable's value.
11510
11511 2020-01-10 Pedro Alves <palves@redhat.com>
11512
11513 * record-full.c (record_full_resume_ptid): New global.
11514 (record_full_target::resume): Set it.
11515 (record_full_wait_1): Use record_full_resume_ptid instead of
11516 inferior_ptid.
11517
11518 2020-01-10 Pedro Alves <palves@redhat.com>
11519
11520 * gdbthread.h (scoped_restore_current_thread)
11521 <dont_restore, restore, m_dont_restore>: Declare.
11522 * thread.c (thread_alive): Add assertion. Return bool.
11523 (switch_to_thread_if_alive): New.
11524 (prune_threads): Switch inferior/thread.
11525 (print_thread_info_1): Switch thread before calling target methods.
11526 (scoped_restore_current_thread::restore): New, factored out from
11527 ...
11528 (scoped_restore_current_thread::~scoped_restore_current_thread):
11529 ... this.
11530 (scoped_restore_current_thread::scoped_restore_current_thread):
11531 Add assertion.
11532 (thread_apply_all_command, thread_select): Use
11533 switch_to_thread_if_alive.
11534
11535 2020-01-10 George Barrett <bob@bob131.so>
11536
11537 * stap-probe.c (stap_modify_semaphore): Don't check for null
11538 semaphores.
11539 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11540 for null semaphores.
11541
11542 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11543
11544 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11545 all source windows, and maintain horizontal scroll status while
11546 doing so.
11547
11548 2020-01-09 Tom Tromey <tom@tromey.com>
11549
11550 PR tui/18932:
11551 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11552 update_source_window, not print_source_lines.
11553
11554 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11555
11556 * tui/tui.c (tui_enable): Register tui hooks after calling
11557 tui_display_main.
11558
11559 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11560
11561 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11562
11563 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11564
11565 * thread.c (print_thread_info_1): Fix indentation.
11566
11567 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11568
11569 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11570 unique_xmalloc_ptr outside the if to always free the demangled name.
11571
11572 2020-01-08 Tom Tromey <tromey@adacore.com>
11573
11574 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11575 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11576 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11577 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11578 Remove.
11579 (section_offsets): New typedef.
11580 * symtab.c (fixup_section, get_msymbol_address): Update.
11581 * symmisc.c (dump_msymbols): Update.
11582 * symfile.h (relative_addr_info_to_section_offsets)
11583 (symfile_map_offsets_to_segments): Update.
11584 * symfile.c (build_section_addr_info_from_objfile)
11585 (init_objfile_sect_indices): Update.
11586 (struct place_section_arg): Change type of "offsets".
11587 (place_section): Update.
11588 (relative_addr_info_to_section_offsets): Change type of
11589 "section_offsets". Remove "num_sections" parameter.
11590 (default_symfile_offsets, syms_from_objfile_1)
11591 (set_objfile_default_section_offset): Update.
11592 (reread_symbols): No need to preserve section offsets by hand.
11593 (symfile_map_offsets_to_segments): Change type of "offsets".
11594 * stap-probe.c (relocate_address): Update.
11595 * stabsread.h (process_one_symbol): Update.
11596 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11597 (solib_target_relocate_section_addresses): Update.
11598 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11599 Update.
11600 * solib-frv.c (frv_relocate_main_executable): Update.
11601 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11602 * solib-aix.c (solib_aix_get_section_offsets): Change return
11603 type.
11604 (solib_aix_solib_create_inferior_hook): Update.
11605 * remote.c (remote_target::get_offsets): Update.
11606 * psymtab.c (find_pc_sect_psymtab): Update.
11607 * psympriv.h (struct partial_symbol) <address, text_low,
11608 text_high>: Update.
11609 * objfiles.h (obj_section_offset): Update.
11610 (struct objfile) <section_offsets>: Change type.
11611 <num_sections>: Remove.
11612 (objfile_relocate): Update.
11613 * objfiles.c (entry_point_address_query): Update
11614 (relocate_one_symbol): Change type of "section_offsets".
11615 (objfile_relocate1, objfile_relocate1): Change type of
11616 "new_offsets".
11617 (objfile_rebase1): Update.
11618 * mipsread.c (mipscoff_symfile_read): Update.
11619 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11620 parameter.
11621 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11622 (parse_external, psymtab_to_symtab_1): Update.
11623 * machoread.c (macho_symfile_offsets): Update.
11624 * ia64-tdep.c (ia64_find_unwind_table): Update.
11625 * hppa-tdep.c (read_unwind_info): Update.
11626 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11627 * dwarf2read.c (create_addrmap_from_index)
11628 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11629 (process_psymtab_comp_unit_reader, add_partial_symbol)
11630 (add_partial_subprogram, process_full_comp_unit)
11631 (read_file_scope, read_func_scope, read_lexical_block_scope)
11632 (read_call_site_scope, dwarf2_rnglists_process)
11633 (dwarf2_ranges_process, dwarf2_ranges_read)
11634 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11635 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11636 Update.
11637 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11638 Update.
11639 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11640 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11641 (process_one_symbol): Change type of "section_offsets".
11642 * ctfread.c (get_objfile_text_range): Update.
11643 * coffread.c (coff_symtab_read, enter_linenos)
11644 (process_coff_symbol): Update.
11645 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11646 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11647
11648 2020-01-08 Tom Tromey <tromey@adacore.com>
11649
11650 * dwarf2read.c (parse_macro_definition): Use std::string.
11651 (parse_macro_definition): Likewise.
11652
11653 2020-01-08 Tom Tromey <tromey@adacore.com>
11654
11655 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11656 (ATTR_ALLOC_CHUNK): Remove.
11657
11658 2020-01-08 Tom Tromey <tromey@adacore.com>
11659
11660 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11661
11662 2020-01-08 Tom Tromey <tromey@adacore.com>
11663
11664 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11665 (dwarf2_compute_name, open_dwo_file): Likewise.
11666 (process_enumeration_scope): Use std::vector.
11667 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11668 (partial_die_info::fixup, dwarf2_start_subfile)
11669 (guess_full_die_structure_name, dwarf2_name): Likewise.
11670 (determine_prefix): Update.
11671 (guess_full_die_structure_name): Make return type const.
11672 (partial_die_full_name): Return unique_xmalloc_ptr.
11673 (DW_FIELD_ALLOC_CHUNK): Remove.
11674
11675 2020-01-07 Tom Tromey <tromey@adacore.com>
11676
11677 PR build/24937:
11678 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11679
11680 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11681
11682 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11683
11684 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11685
11686 * stack.c (print_frame_info): Move disassemble_next_line code
11687 inside source_print block.
11688
11689 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11690
11691 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11692 gdb/signals.h, as we are now using native signal symbols.
11693
11694 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11695
11696 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11697 overflow by an early check of content vs threshold.
11698 * tui/tui-source.c (tui_source_window::line_is_displayed):
11699 Likewise.
11700
11701 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11702
11703 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11704
11705 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11706
11707 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11708 export table if no section contains it's RVA.
11709
11710 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11711
11712 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11713
11714 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11715
11716 * source.c (print_source_lines_base): Set last_line_listed.
11717
11718 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11719
11720 * tui/tui-disasm.c: Remove trailing spaces.
11721
11722 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11723 Pedro Alves <palves@redhat.com>
11724
11725 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11726 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11727 (windows_gdb_signal_to_target): New function, uses the above
11728 enumeration to convert GDB internal signal codes to equivalent
11729 Windows codes.
11730 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11731 * windows-nat.c: Include "gdb_wait.h".
11732 (get_windows_debug_event): Extract the fatal exception from the
11733 exit status and convert to the equivalent Posix signal number.
11734 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11735 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11736 * gdbsupport/gdb_wait.c: New file, implements
11737 windows_status_to_termsig.
11738 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11739 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11740
11741 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11742
11743 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11744 show_layout.
11745
11746 2020-01-05 Luis Machado <luis.machado@linaro.org>
11747
11748 * aarch64-linux-nat.c
11749 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11750 and bfd_mach_aarch64.
11751
11752 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11753
11754 * ui-file.c (stdio_file::can_emit_style_escape)
11755 (tee_file::can_emit_style_escape): Ensure style is used also on
11756 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11757 to gdb_stdout.
11758 * main.c (set_gdb_data_directory): Use file style to output the
11759 warning that the given pathname is not a directory.
11760 * top.c (show_history_filename, gdb_safe_append_history)
11761 (show_gdb_datadir): Use file style.
11762
11763 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11764
11765 * solib-target.c (struct lm_info_target):
11766 Change offsets to be a unique_xmalloc_ptr.
11767 (solib_target_relocate_section_addresses): Update.
11768
11769 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11770
11771 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11772
11773 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11774
11775 * MAINTAINERS (Write After Approval): Add myself.
11776
11777 2020-01-02 Luis Machado <luis.machado@linaro.org>
11778
11779 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11780 Cell BE architecture.
11781 * target.h (struct target_ops) <thread_architecture>: Likewise.
11782
11783 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11784
11785 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11786
11787 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11788
11789 * MAINTAINERS (Write After Approval): Add myself.
11790
11791 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11792
11793 * gdbarch.sh: Update copyright year range of generated files.
11794
11795 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11796
11797 Update copyright year range in all GDB files.
11798
11799 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11800
11801 * copyright.py: Convert to Python 3.
11802
11803 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11804
11805 * copyright.py: Adapt after move of gnulib directory from gdb
11806 directory to toplevel directory.
11807
11808 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11809
11810 * copyright.py (main): Exit if run from the wrong directory.
11811
11812 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11813
11814 * top.c (print_gdb_version): Change copyright year to 2020.
11815
11816 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11817
11818 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11819
11820 For older changes see ChangeLog-2019.
11821 \f
11822 Local Variables:
11823 mode: change-log
11824 left-margin: 8
11825 fill-column: 74
11826 version-control: never
11827 coding: utf-8
11828 End:
This page took 0.577216 seconds and 5 git commands to generate.