sim: eBPF simulator
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2
3 * configure.tgt: Set gdb_sim for bpf-*-* targets.
4
5 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
6 Jose E. Marchesi <jose.marchesi@oracle.com>
7
8 * configure.tgt: Add entry for bpf-*-*.
9 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
10 (ALLDEPFILES): Add bpf-tdep.c.
11 * bpf-tdep.c: New file.
12 * MAINTAINERS: Add bpf target and maintainer.
13 * NEWS: Mention the support for the new target.
14
15 2020-08-04 Tom de Vries <tdevries@suse.de>
16
17 PR symtab/23270
18 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
19 Error.
20
21 2020-08-03 John Baldwin <jhb@FreeBSD.org>
22
23 * syscalls/freebsd.xml: Regenerate.
24
25 2020-08-03 John Baldwin <jhb@FreeBSD.org>
26
27 * syscalls/update-freebsd.sh: Fix usage and year range.
28
29 2020-08-03 Tom de Vries <tdevries@suse.de>
30
31 PR symtab/26333
32 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
33 DW_LNE_lo_user/DW_LNE_hi_user range.
34
35 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
36
37 PR ada/26318
38 * ada-lang.c (ada_modulus): Return 0 if property is not of const
39 kind.
40
41 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
42
43 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
44
45 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
46
47 * breakpoint.c (set_breakpoint_condition): Update the condition
48 expressions after checking that the input condition string parses
49 successfully and does not contain junk at the end.
50
51 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
52
53 * breakpoint.c (set_breakpoint_condition): Update the
54 condition string after parsing the new condition successfully.
55
56 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
57
58 * proc-api.c (_STRUCTURED_PROC): Don't define.
59 * proc-events.c: Likewise.
60 * proc-flags.c: Likewise.
61 * proc-why.c: Likewise.
62 * procfs.c: Likewise.
63
64 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
65 * configure, config.in: Regenerate.
66
67 2020-07-30 Tom de Vries <tdevries@suse.de>
68
69 PR build/26320
70 * ui-style.h (struct ui_file_style::color): Wrap m_value and
71 m_red/m_green/m_blue in a union.
72
73 2020-07-29 Tom de Vries <tdevries@suse.de>
74
75 PR tdep/26280
76 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
77
78 2020-07-28 Tom Tromey <tromey@adacore.com>
79
80 PR symtab/26270:
81 * symtab.h (find_pc_partial_function_sym): Declare.
82 * cli/cli-cmds.c (disassemble_command): Use
83 find_pc_partial_function_sym. Check asm_demangle.
84 * blockframe.c (cache_pc_function_sym): New global.
85 (cache_pc_function_name): Remove.
86 (clear_pc_function_cache): Update.
87 (find_pc_partial_function_sym): New function, from
88 find_pc_partial_function.
89 (find_pc_partial_function): Rewrite using
90 find_pc_partial_function_sym.
91
92 2020-07-28 Tom Tromey <tromey@adacore.com>
93
94 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
95 help. Add usage.
96
97 2020-07-28 Tom Tromey <tromey@adacore.com>
98
99 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
100 <DW_OP_GNU_variable_value>: Cast to address type.
101
102 2020-07-28 Kamil Rytarowski <n54@gmx.com>
103
104 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
105 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
106 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
107 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
108 (nbsd_get_siginfo_type): New.
109 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
110 (_initialize_nbsd_tdep): New.
111
112 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
113
114 PR binutils/26301
115 * configure: Regenerated.
116
117 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
118
119 PR binutils/26301
120 * configure: Regenerated.
121
122 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * python/py-frame.c: Remove 'user-regs.h' include.
125 (frapy_read_register): Rewrite to make use of
126 gdbpy_parse_register_id.
127 * python/py-registers.c (gdbpy_parse_register_id): New function,
128 moved here from python/py-unwind.c. Updated the return type, and
129 also accepts register descriptor objects.
130 * python/py-unwind.c: Remove 'user-regs.h' include.
131 (pyuw_parse_register_id): Moved to python/py-registers.c.
132 (unwind_infopy_add_saved_register): Update to use
133 gdbpy_parse_register_id.
134 (pending_framepy_read_register): Likewise.
135 * python/python-internal.h (gdbpy_parse_register_id): Declare.
136
137 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
138
139 * python/py-registers.c: Add 'user-regs.h' include.
140 (register_descriptor_iter_find): New function.
141 (register_descriptor_iterator_object_methods): New static global
142 methods array.
143 (register_descriptor_iterator_object_type): Add pointer to methods
144 array.
145
146 2020-07-27 John Baldwin <jhb@FreeBSD.org>
147
148 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
149 for all architectures on FreeBSD 11.3 and later.
150
151 2020-07-27 Tom Tromey <tromey@adacore.com>
152
153 * gcore.h (load_corefile): Don't declare.
154
155 2020-07-27 Tom de Vries <tdevries@suse.de>
156
157 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
158 * config.in: Regenerate.
159 * configure: Regenerate.
160
161 2020-07-26 Eli Zaretskii <eliz@gnu.org>
162
163 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
164 ws2tcpip.h. When checking whether socklen_t type is defined, use
165 ws2tcpip.h if it is available and sys/socket.h isn't.
166 * configure: Regenerate.
167 * config.in: Regenerate.
168
169 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
170
171 PR fortran/23051
172 PR fortran/26139
173 * valops.c (value_ind): Pass address to
174 readjust_indirect_value_type.
175 * value.c (readjust_indirect_value_type): Make parameter
176 non-const, and add extra address parameter. Resolve original type
177 before using it.
178 * value.h (readjust_indirect_value_type): Update function
179 signature and comment.
180
181 2020-07-25 Tom de Vries <tdevries@suse.de>
182
183 PR symtab/26243
184 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
185 entries.
186
187 2020-07-24 Aaron Merey <amerey@redhat.com>
188
189 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
190 * configure: Rebuild.
191
192 2020-07-23 Kevin Buettner <kevinb@redhat.com>
193
194 PR corefiles/26294
195 * corelow.c (_initialize_corelow): Add period to help text
196 for "maintenance print core-file-backed-mappings".
197
198 2020-07-23 Pedro Alves <pedro@palves.net>
199
200 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
201 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
202 meanwhile.
203 * frame.c (frame_cache_generation, get_frame_cache_generation):
204 New.
205 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
206 (get_prev_frame_if_no_cycle): On exception, don't touch
207 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
208 * frame.h (get_frame_cache_generation): Declare.
209
210 2020-07-23 Tom de Vries <tdevries@suse.de>
211
212 PR tui/26282
213 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
214 New default constructor.
215
216 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
217
218 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
219 exclude non-statement entries.
220
221 2020-07-22 Kevin Buettner <kevinb@redhat.com>
222
223 * NEWS (New commands): Mention new command
224 "maintenance print core-file-backed-mappings".
225
226 2020-07-22 Kevin Buettner <kevinb@redhat.com>
227
228 * corelow.c (gdbcmd.h): Include.
229 (core_target::info_proc_mappings): New method.
230 (get_current_core_target): New function.
231 (maintenance_print_core_file_backed_mappings): New function.
232 (_initialize_corelow): Add core-file-backed-mappings to
233 "maint print" commands.
234
235 2020-07-22 Kevin Buettner <kevinb@redhat.com>
236
237 * linux-tdep.c (dump_note_entry_p): New function.
238 (linux_dump_mapping_p_ftype): New typedef.
239 (linux_find_memory_regions_full): Add new parameter,
240 should_dump_mapping_p.
241 (linux_find_memory_regions): Adjust call to
242 linux_find_memory_regions_full.
243 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
244 call to linux_find_memory_regions_full.
245
246 2020-07-22 Kevin Buettner <kevinb@redhat.com>
247
248 * corelow.c (solist.h, unordered_map): Include.
249 (class core_target): Add field m_core_file_mappings and
250 method build_file_mappings.
251 (core_target::core_target): Call build_file_mappings.
252 (core_target::~core_target): Free memory associated with
253 m_core_file_mappings.
254 (core_target::build_file_mappings): New method.
255 (core_target::xfer_partial): Use m_core_file_mappings
256 for memory transfers.
257 * linux-tdep.c (linux_read_core_file_mappings): New
258 function.
259 (linux_core_info_proc_mappings): Rewrite to use
260 linux_read_core_file_mappings.
261 (linux_init_abi): Register linux_read_core_file_mappings.
262
263 2020-07-22 Kevin Buettner <kevinb@redhat.com>
264
265 * arch-utils.c (default_read_core_file_mappings): New function.
266 * arch-utils.c (default_read_core_file_mappings): Declare.
267 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
268 * gdbarch.h, gdbarch.c: Regenerate.
269
270 2020-07-22 Kevin Buettner <kevinb@redhat.com>
271
272 PR corefiles/25631
273 * corelow.c (core_target:xfer_partial): Revise
274 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
275 case after first checking the stratum beneath the core
276 target.
277 (has_all_memory): Return true.
278 * target.c (raw_memory_xfer_partial): Revise comment
279 regarding use of has_all_memory.
280
281 2020-07-22 Kevin Buettner <kevinb@redhat.com>
282
283 * exec.h (section_table_xfer_memory): Revise declaration,
284 replacing section name parameter with an optional callback
285 predicate.
286 * exec.c (section_table_xfer_memory): Likewise.
287 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
288 of section_table_xfer_memory.
289
290 2020-07-22 Tom Tromey <tromey@adacore.com>
291
292 * mi/mi-cmd-stack.c (list_args_or_locals): Use
293 lookup_symbol_search_name.
294
295 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
296
297 * python/py-registers.c (gdbpy_register_object_data_init): Remove
298 redundant local variable.
299 (gdbpy_get_register_descriptor): Extract descriptor vector as a
300 reference, not pointer, update code accordingly.
301
302 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
303 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
304
305 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
306 * jit.c (jit_breakpoint_re_set_internal): Use the
307 `skip_jit_symbol_lookup` field.
308
309 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
310 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
311
312 * jit.c (jit_read_descriptor): Define the descriptor address once,
313 use twice.
314 (jit_breakpoint_deleted): Move the declaration of the loop variable
315 `iter` into the loop header.
316 (jit_breakpoint_re_set_internal): Move the declaration of the local
317 variable `objf_data` to the first point of definition.
318 (jit_event_handler): Move the declaration of local variables
319 `code_entry`, `entry_addr`, and `objf` to their first point of use.
320 Rename `objf` to `jited`.
321
322 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
323
324 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
325 Remove.
326 * jit.c (get_jiter_objfile_data): Update.
327
328 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
329 Simon Marchi <simon.marchi@polymtl.ca>
330
331 * jit.c (struct jit_program_space_data): Remove.
332 (jit_program_space_key): Remove.
333 (jiter_objfile_data::~jiter_objfile_data): Remove program space
334 stuff.
335 (get_jit_program_space_data): Remove.
336 (jit_breakpoint_deleted): Iterate on all of the program space's
337 objfiles.
338 (jit_inferior_init): Likewise.
339 (jit_breakpoint_re_set_internal): Likewise. Also change return
340 type to void.
341 (jit_breakpoint_re_set): Pass current_program_space to
342 jit_breakpoint_re_set_internal.
343
344 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
345
346 * jit.h (struct jiter_objfile_data) <cached_code_address,
347 jit_breakpoint>: Move to here from ...
348 * jit.c (jit_program_space_data): ... here.
349 (jiter_objfile_data::~jiter_objfile_data): Update.
350 (jit_breakpoint_deleted): Update.
351 (jit_breakpoint_re_set_internal): Update.
352
353 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
354
355 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
356 checks.
357 (jit_read_descriptor): Remove NULL check.
358 (jit_event_handler): Add an assertion.
359
360 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * jit.h (struct jit_objfile_data): Split into...
363 (struct jiter_objfile_data): ... this ...
364 (struct jited_objfile_data): ... and this.
365 * objfiles.h (struct objfile) <jit_data>: Remove.
366 <jiter_data, jited_data>: New fields.
367 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
368 (jiter_objfile_data::~jiter_objfile_data): ... this.
369 (get_jit_objfile_data): Rename to ...
370 (get_jiter_objfile_data): ... this.
371 (add_objfile_entry): Update.
372 (jit_read_descriptor): Use get_jiter_objfile_data.
373 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
374 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
375 (jit_inferior_exit_hook): Use objfile's jited_data field.
376
377 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
378
379 * jit.h: Forward-declare `struct minimal_symbol`.
380 (struct jit_objfile_data): Migrate to here from jit.c; also add a
381 constructor, destructor, and an objfile* field.
382 * jit.c (jit_objfile_data): Remove.
383 (struct jit_objfile_data): Migrate from here to jit.h.
384 (jit_objfile_data::~jit_objfile_data): New destructor
385 implementation with code moved from free_objfile_data.
386 (free_objfile_data): Delete.
387 (get_jit_objfile_data): Update to use the jit_data field of objfile.
388 (jit_find_objf_with_entry_addr): Ditto.
389 (jit_inferior_exit_hook): Ditto.
390 (_initialize_jit): Remove the call to
391 register_objfile_data_with_cleanup.
392 * objfiles.h (struct objfile) <jit_data>: New field.
393
394 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
395
396 * jit.h: Forward-declare `struct objfile`.
397 (jit_event_handler): Add a second parameter, the JITer objfile.
398 * jit.c (jit_read_descriptor): Change the signature to take the
399 JITer objfile as an argument instead of the jit_program_space_data.
400 (jit_inferior_init): Update the call to jit_read_descriptor.
401 (jit_event_handler): Use the new JITer objfile argument when calling
402 jit_read_descriptor.
403 * breakpoint.c (handle_jit_event): Update the call to
404 jit_event_handler to pass the JITer objfile.
405
406 2020-07-21 John Baldwin <jhb@FreeBSD.org>
407
408 * gdbarch.c: Regenerate.
409 * gdbarch.h: Regenerate.
410 * gdbarch.sh (handle_segmentation_fault): Remove method.
411 * infrun.c (handle_segmentation_fault): Remove.
412 (print_signal_received_reason): Remove call to
413 handle_segmentation_fault.
414
415 2020-07-21 John Baldwin <jhb@FreeBSD.org>
416
417 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
418 Rename to sparc64_linux_report_signal_info and add siggnal
419 argument.
420 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
421 instead of sparc64_linux_handle_segmentation_fault.
422
423 2020-07-21 John Baldwin <jhb@FreeBSD.org>
424
425 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
426 i386_linux_report_signal_info instead of
427 i386_linux_handle_segmentation_fault.
428 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
429 to i386_linux_report_signal_info and add siggnal argument.
430 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
431 of i386_linux_handle_segmentation_fault.
432 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
433 to i386_linux_report_signal_info and add siggnal argument.
434
435 2020-07-21 John Baldwin <jhb@FreeBSD.org>
436
437 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
438 hook if present.
439
440 2020-07-21 John Baldwin <jhb@FreeBSD.org>
441
442 * gdbarch.c: Regenerate.
443 * gdbarch.h: Regenerate.
444 * gdbarch.sh (report_signal_info): New method.
445 * infrun.c (print_signal_received_reason): Invoke gdbarch
446 report_signal_info hook if present.
447
448 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
449
450 * python/py-registers.c : Add 'unordered_map' include.
451 (gdbpy_new_reggroup): Renamed to...
452 (gdbpy_get_reggroup): ...this. Update to only create register
453 group descriptors when needed.
454 (gdbpy_reggroup_iter_next): Update.
455
456 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 * python/py-registers.c (gdbpy_register_object_data): New static
459 global.
460 (gdbpy_register_object_data_init): New function.
461 (gdbpy_new_register_descriptor): Renamed to...
462 (gdbpy_get_register_descriptor): ...this, and update to reuse
463 existing register descriptors where possible.
464 (gdbpy_register_descriptor_iter_next): Update.
465 (gdbpy_initialize_registers): Register new gdbarch data.
466
467 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
468
469 * linux-nat.c (stopped_pids): Make static.
470
471 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
472
473 PR ada/26235
474 * gdbtypes.c (ada_discrete_type_low_bound,
475 ada_discrete_type_high_bound): Handle undefined bounds.
476
477 2020-07-21 Kamil Rytarowski <n54@gmx.com>
478
479 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
480 declaration.
481 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
482 function.
483
484 2020-07-20 John Baldwin <jhb@FreeBSD.org>
485
486 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
487 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
488 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
489 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
490 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
491 method.
492
493 2020-07-20 Ludovic Courtès <ludo@gnu.org>
494
495 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
496 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
497 which are deprecated in Guile 3.0.
498 * configure.ac (try_guile_versions): Add "guile-3.0".
499 * configure (try_guile_versions): Regenerate.
500 * NEWS: Update entry.
501
502 2020-07-20 Ludovic Courtès <ludo@gnu.org>
503 Doug Evans <dje@google.com>
504
505 PR gdb/21104
506 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
507 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
508 USING_GUILE_BEFORE_2_2.
509 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
510 Change type to 'scm_t_port_type *'.
511 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
512 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
513 parameter and honor it. Update callers.
514 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
515 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
516 functions.
517 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
518 USING_GUILE_BEFORE_2_2.
519 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
520 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
521 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
522 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
523 and 'SCM_PORT_TYPE'.
524 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
525 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
526 (gdbscm_memory_port_read, gdbscm_memory_port_write)
527 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
528 [!USING_GUILE_BEFORE_2_2]: New functions.
529 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
530 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
531 'gdbscm_memory_port_read'.
532 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
533 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
534 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
535 function.
536 (ioscm_init_memory_port): Remove.
537 (ioscm_init_memory_port_stream): New function
538 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
539 function.
540 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
541 Return scm_from_uint (0).
542 (gdbscm_set_memory_port_read_buffer_size_x)
543 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
544 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
545 Return scm_from_uint (0).
546 (gdbscm_set_memory_port_write_buffer_size_x)
547 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
548 * configure.ac (try_guile_versions): Add "guile-2.2".
549 * configure: Regenerate.
550 * NEWS: Add entry.
551
552 2020-07-18 Tom Tromey <tom@tromey.com>
553
554 * linux-nat.c (linux_multi_process): Remove.
555 (linux_nat_target::supports_multi_process): Return true.
556
557 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
558
559 * arch/riscv.c (riscv_tdesc_cache): Change map type.
560 (riscv_lookup_target_description): Return pointer out of
561 unique_ptr.
562 * target-descriptions.c (allocate_target_description): Add
563 comment.
564 (target_desc_deleter::operator()): Likewise.
565 * target-descriptions.h (struct target_desc_deleter): Moved to
566 gdbsupport/tdesc.h.
567 (target_desc_up): Likewise.
568
569 2020-07-17 Tom Tromey <tromey@adacore.com>
570
571 * linux-nat.c (linux_nat_target::supports_non_stop)
572 (linux_nat_target::always_non_stop_p): Use "true".
573 (linux_nat_target::supports_disable_randomization): Use "true" and
574 "false".
575
576 2020-07-16 Caroline Tice <cmtice@google.com>
577
578 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
579 (RNGLIST_HEADER_SIZE64): New constant definition.
580 (struct dwop_section_names): Add rnglists_dwo.
581 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
582 (struct loclist_header): Rename to 'loclists_rnglists_header'.
583 (struct dwo_sections): Add rnglists field.
584 (read_attribut_reprocess): Add tag parameter.
585 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
586 (cu_debug_rnglists_section): New function (decl & definition).
587 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
588 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
589 die whose range is being checked; get rnglist section from
590 cu_debug_rnglists_section, to get from either objfile or dwo file as
591 appropriate. Add cases for DW_RLE_base_addressx,
592 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
593 the base address to DW_RLE_offset_pairs (not to all ranges), moving
594 test inside if-condition and updating complaint message.
595 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
596 dwarf2_rnglists_process.
597 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
598 dwarf2_ranges_process.
599 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
600 need_ranges_base and update comment appropriately. Also pass die tag
601 to dwarf2_ranges_read.
602 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
603 need_ranges_base and update comment appropriately. Also pass die tag
604 to dwarf2_ranges_process.
605 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
606 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
607 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
608 need_ranges_base and update comment appropriately. Also pass die tag
609 to read_attribute_reprocess and dwarf2_ranges_read.
610 (read_loclist_header): Rename function to read_loclists_rnglists_header,
611 and update function comment appropriately.
612 (read_loclist_index): Call read_loclists_rnglists_header instead of
613 read_loclist_header.
614 (read_rnglist_index): New function.
615 (read_attribute_reprocess): Add tag parameter. Add code for
616 DW_FORM_rnglistx, passing tag to read_rnglist_index.
617 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
618
619 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
620
621 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
622 being resolved.
623
624 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 * arch-utils.c (show_architecture): Update formatting of messages.
627
628 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
629
630 * gdbtypes.h (struct type) <bounds>: Handle array and string
631 types.
632 * ada-lang.c (assign_aggregate): Use type::bounds on
633 array/string type.
634 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
635 * c-varobj.c (c_number_of_children): Likewise.
636 (c_describe_child): Likewise.
637 * eval.c (evaluate_subexp_for_sizeof): Likewise.
638 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
639 (f_type_print_base): Likewise.
640 * f-valprint.c (f77_array_offset_tbl): Likewise.
641 (f77_get_upperbound): Likewise.
642 (f77_print_array_1): Likewise.
643 * guile/scm-type.c (gdbscm_type_range): Likewise.
644 * m2-typeprint.c (m2_array): Likewise.
645 (m2_is_long_set_of_type): Likewise.
646 * m2-valprint.c (get_long_set_bounds): Likewise.
647 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
648 * python/py-type.c (typy_range): Likewise.
649 * rust-lang.c (rust_internal_print_type): Likewise.
650 * type-stack.c (type_stack::follow_types): Likewise.
651 * valarith.c (value_subscripted_rvalue): Likewise.
652 * valops.c (value_cast): Likewise.
653
654 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
655
656 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
657 callers to use the equivalent accessor methods.
658
659 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
660
661 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
662 (struct type) <bit_stride>: New method.
663 (TYPE_BIT_STRIDE): Remove.
664 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
665
666 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
667
668 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
669 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
670 callers to use the equivalent accessor methods instead.
671
672 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
673
674 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
675 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
676 callers to use the equivalent accessor methods instead.
677
678 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
679
680 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
681 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
682 to use dynamic_prop::kind.
683
684 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
685
686 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
687 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
688 to get the bound property's kind and check against
689 PROP_UNDEFINED.
690
691 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
692
693 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
694 all callers to use type::range_bounds followed by
695 dynamic_prop::{low,high}.
696
697 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
698
699 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
700 const_val, set_const_val, baton, set_locexpr, set_loclist,
701 set_addr_offset, variant_parts, set_variant_parts,
702 original_type, set_original_type>: New methods.
703 <kind>: Rename to...
704 <m_kind>: ... this. Update all users to use the new methods
705 instead.
706 <data>: Rename to...
707 <m_data>: ... this. Update all users to use the new methods
708 instead.
709
710 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
711
712 * gdbtypes.c (get_discrete_bounds): Return failure if
713 the range type's bounds are not both defined and constant
714 values.
715 (get_array_bounds): Update comment. Remove undefined bound check.
716
717 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
718
719 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
720 the type::bounds method directly.
721
722 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
723
724 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
725 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
726 are used to set the range type's bounds to use set_bounds.
727
728 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
729
730 * exec.c (_initialize_exec): Update exec-file-mismatch help.
731
732 2020-07-10 Pedro Alves <pedro@palves.net>
733
734 * gdbthread.h (inferior_ref): Define.
735 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
736 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
737 * thread.c
738 (scoped_restore_current_thread::restore):
739 Adjust to gdb::ref_ptr.
740 (scoped_restore_current_thread::~scoped_restore_current_thread):
741 Remove manual decref handling.
742 (scoped_restore_current_thread::scoped_restore_current_thread):
743 Adjust to use
744 inferior_ref::new_reference/thread_info_ref::new_reference.
745 Incref the thread before calling get_frame_id instead of after.
746 Let TARGET_CLOSE_ERROR propagate.
747
748 2020-07-10 Pedro Alves <pedro@palves.net>
749
750 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
751 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
752 NOT_AVAILABLE_ERROR.
753 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
754 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
755
756 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
757 Pedro Alves <pedro@palves.net>
758
759 PR gdb/26199
760 * infrun.c (threads_are_resumed_pending_p): Delete.
761 (do_target_wait): Remove threads_are_executing and
762 threads_are_resumed_pending_p checks from the inferior_matches
763 lambda. Update comments.
764
765 2020-07-10 Pedro Alves <pedro@palves.net>
766
767 PR gdb/26199
768 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
769 executing threads.
770
771 2020-07-10 Pedro Alves <pedro@palves.net>
772
773 PR gdb/26199
774 * infrun.c (handle_no_resumed): Handle multiple targets.
775
776 2020-07-10 Pedro Alves <pedro@palves.net>
777
778 PR gdb/26199
779 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
780 target_is_async_p.
781
782 2020-07-10 Pedro Alves <pedro@palves.net>
783
784 PR gdb/26199
785 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
786 threads, not all threads.
787
788 2020-07-10 Pedro Alves <pedro@palves.net>
789
790 PR gdb/26199
791 * remote.c (remote_target::open_1): Pass remote target pointer as
792 data to create_async_event_handler.
793 (remote_async_inferior_event_handler): Mark async event handler
794 before returning if the remote target still has either pending
795 events or unacknowledged notifications.
796
797 2020-07-10 John Baldwin <jhb@FreeBSD.org>
798
799 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
800 declaration.
801 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
802 function.
803
804 2020-07-09 John Baldwin <jhb@FreeBSD.org>
805
806 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
807 inferior_ptid.
808
809 2020-07-09 John Baldwin <jhb@FreeBSD.org>
810
811 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
812 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
813 AT_FREEBSD_PS_STRINGS.
814
815 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
816
817 * auto-load.c (auto_load_objfile_script_1): Convert drive part
818 of debugfile path on Windows.
819
820 2020-07-08 John Baldwin <jhb@FreeBSD.org>
821
822 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
823 argument to 'data'.
824
825 2020-07-08 Tom Tromey <tromey@adacore.com>
826
827 * ada-lang.c (ada_exception_message_1): Use read_memory.
828
829 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
830
831 PR python/22748
832 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
833 special handling for inline frames.
834 * findvar.c (value_of_register_lazy): Skip inline frames when
835 creating lazy register values.
836 * frame.c (frame_id_computed_p): Delete definition.
837 * frame.h (frame_id_computed_p): Delete declaration.
838
839 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
840
841 * NEWS: Mention additions to Python API.
842 * python/py-arch.c (archpy_register_groups): New function.
843 (arch_object_methods): Add 'register_groups' method.
844 * python/py-registers.c (reggroup_iterator_object): New struct.
845 (reggroup_object): New struct.
846 (gdbpy_new_reggroup): New function.
847 (gdbpy_reggroup_to_string): New function.
848 (gdbpy_reggroup_name): New function.
849 (gdbpy_reggroup_iter): New function.
850 (gdbpy_reggroup_iter_next): New function.
851 (gdbpy_new_reggroup_iterator): New function
852 (gdbpy_initialize_registers): Register new types.
853 (reggroup_iterator_object_type): Define new Python type.
854 (gdbpy_reggroup_getset): New static global.
855 (reggroup_object_type): Define new Python type.
856 * python/python-internal.h
857
858 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
861 * python/py-arch.c (archpy_registers): New function.
862 (arch_object_methods): Add 'registers' method.
863 * python/py-registers.c: New file.
864 * python/python-internal.h
865 (gdbpy_new_register_descriptor_iterator): Declare.
866 (gdbpy_initialize_registers): Declare.
867 * python/python.c (do_start_initialization): Call
868 gdbpy_initialize_registers.
869 * NEWS: Mention additions to the Python API.
870
871 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
872
873 * NEWS: Mention new Python API method.
874 * python/py-unwind.c (pending_framepy_architecture): New function.
875 (pending_frame_object_methods): Add architecture method.
876
877 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * gdbarch.c: Regenerate.
880 * gdbarch.h: Regenerate.
881 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
882 (gdbarch_data): Use internal_error for the case where
883 deprecated_set_gdbarch_data was originally needed.
884 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
885 and use passed in obstack.
886 (libunwind_frame_set_descr): Should no longer get back NULL from
887 gdbarch_data.
888 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
889 type.
890 * user-regs.c (user_regs_init): Update parameters, and use passed
891 in obstack.
892 (user_reg_add): Should no longer get back NULL from gdbarch_data.
893 (_initialize_user_regs): Register as a pre-init gdbarch data type.
894
895 2020-07-06 Tom de Vries <tdevries@suse.de>
896
897 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
898 End-Of-Sequence in lte_is_less_than.
899 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
900 "gdb: Don't reorder line table entries too much when sorting".
901
902 2020-07-06 Tom de Vries <tdevries@suse.de>
903
904 PR tui/26205
905 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
906
907 2020-07-05 Tom de Vries <tdevries@suse.de>
908
909 PR build/26187
910 * inferior.h (struct infcall_suspend_state_deleter): If available, use
911 std::uncaught_exceptions instead of deprecated
912 std::uncaught_exception.
913
914 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
915
916 * macroexp.h (macro_stringify): Return
917 gdb::unique_xmalloc_ptr<char>.
918 * macroexp.c (macro_stringify): Likewise.
919 * macrotab.c (fixup_definition): Update.
920
921 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
922
923 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
924 (lex_one_token): Update.
925 * macroexp.c (struct macro_buffer) <release>: Return
926 gdb::unique_xmalloc_ptr<char>.
927 (macro_stringify): Update.
928 (macro_expand): Update.
929 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
930 * macroexp.h (macro_expand_next): Likewise.
931
932 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
933
934 * macroexp.h (macro_lookup_ftype): Remove.
935 (macro_expand, macro_expand_once, macro_expand_next): Remove
936 lookup function parameters, add scope parameter.
937 * macroexp.c (scan, substitute_args, expand, maybe_expand,
938 macro_expand, macro_expand_once, macro_expand_next): Likewise.
939 * macroscope.h (standard_macro_lookup): Change parameter type
940 to macro_scope.
941 * macroscope.c (standard_macro_lookup): Likewise.
942 * c-exp.y (lex_one_token): Update.
943 * macrocmd.c (macro_expand_command): Likewise.
944 (macro_expand_once_command): Likewise.
945
946 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
947
948 * inf-loop.c (inferior_event_handler): Remove client_data param.
949 * inf-loop.h (inferior_event_handler): Likewise.
950 * infcmd.c (step_1): Adjust.
951 * infrun.c (proceed): Adjust.
952 (fetch_inferior_event): Remove client_data param.
953 (infrun_async_inferior_event_handler): Adjust.
954 * infrun.h (fetch_inferior_event): Remove `void *` param.
955 * linux-nat.c (handle_target_event): Adjust.
956 * record-btrace.c (record_btrace_handle_async_inferior_event):
957 Adjust.
958 * record-full.c (record_full_async_inferior_event_handler):
959 Adjust.
960 * remote.c (remote_async_inferior_event_handler): Adjust.
961
962 2020-07-01 Tom Tromey <tom@tromey.com>
963
964 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
965 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
966
967 2020-07-01 Tom Tromey <tom@tromey.com>
968
969 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
970 tui_gen_win_info.
971 (tui_win_info::make_window): Merge with
972 tui_gen_win_info::make_window.
973 (tui_win_info::make_visible): Move from tui_gen_win_info.
974 * tui/tui-win.c (tui_win_info::max_width): Move from
975 tui_gen_win_info.
976 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
977 type.
978 <window_factory>: Likewise.
979 * tui/tui-layout.c (tui_win_info::resize): Move from
980 tui_gen_win_info.
981 (make_standard_window): Change return type.
982 (get_locator_window, tui_get_window_by_name): Likewise.
983 (tui_layout_window::apply): Remove a cast.
984 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
985 (struct tui_win_info): Merge with tui_gen_win_info.
986 (struct tui_gen_win_info): Remove.
987
988 2020-07-01 Tom Tromey <tom@tromey.com>
989
990 * tui/tui-stack.h (struct tui_locator_window): Derive from
991 tui_win_info.
992 <do_scroll_horizontal, do_scroll_vertical>: New methods.
993 <can_box>: New method.
994
995 2020-07-01 Tom Tromey <tom@tromey.com>
996
997 * tui/tui-stack.h (struct tui_locator_window): Remove body.
998
999 2020-07-01 Tom Tromey <tom@tromey.com>
1000
1001 * tui/tui-regs.c (tui_data_window::display_registers_from)
1002 (tui_data_window::display_registers_from)
1003 (tui_data_window::first_data_item_displayed)
1004 (tui_data_window::delete_data_content_windows): Update.
1005 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1006 Remove.
1007 (tui_data_window::check_register_values): Update.
1008 (tui_data_item_window::rerender): Add parameters. Update.
1009 (tui_data_item_window::refresh_window): Remove.
1010 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1011 virtual.
1012 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1013 tui_gen_win_info.
1014 <refresh_window, max_height, min_height>: Remove.
1015 <rerender>: Add parameters.
1016 <x, y, visible>: New members.
1017 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1018 <m_item_width>: New member.
1019
1020 2020-07-01 Tom Tromey <tom@tromey.com>
1021
1022 * tui/tui-regs.c (tui_data_window::show_register_group)
1023 (tui_data_window::check_register_values): Update.
1024 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1025 from item_no.
1026
1027 2020-07-01 Tom Tromey <tom@tromey.com>
1028
1029 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1030 useless "if".
1031
1032 2020-07-01 Tom Tromey <tom@tromey.com>
1033
1034 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1035 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1036
1037 2020-07-01 Tom Tromey <tom@tromey.com>
1038
1039 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1040 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1041 (struct tui_line_or_address): Move from tui-data.h.
1042 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1043 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1044 (tui_cmd_window, tui_source_window_base, tui_source_window)
1045 (tui_disasm_window): Don't declare.
1046 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1047 to tui-winsource.h.
1048 (SINGLE_KEY): Move to tui-stack.c.
1049
1050 2020-07-01 Tom Tromey <tom@tromey.com>
1051
1052 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1053 std::string.
1054 * tui/tui-regs.c (class tab_expansion_file): New.
1055 (tab_expansion_file::write): New method.
1056 (tui_register_format): Change return type. Use
1057 tab_expansion_file.
1058 (tui_get_register, tui_data_window::display_registers_from)
1059 (tui_data_item_window::rerender): Update.
1060 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1061 * tui/tui-io.c (tui_expand_tabs): Remove.
1062
1063 2020-07-01 Tom Tromey <tom@tromey.com>
1064
1065 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1066
1067 2020-07-01 Fangrui Song <maskray@google.com>
1068
1069 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1070
1071 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1072
1073 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1074 forms for DW_AT_associated and DW_AT_allocated attributes,
1075 which is already checked in function attr_to_dynamic_prop.
1076
1077 2020-06-30 Tom Tromey <tromey@adacore.com>
1078
1079 * dwarf2/read.c (quirk_rust_enum): Correctly call
1080 alloc_rust_variant for default-less enum.
1081
1082 2020-06-30 Tom Tromey <tromey@adacore.com>
1083
1084 PR build/26183:
1085 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1086 gdb::to_string.
1087
1088 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1089
1090 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1091 * gdbarch.h: Re-generate.
1092
1093 2020-06-28 Tom Tromey <tom@tromey.com>
1094
1095 * command.h (cmd_types): Remove.
1096 (cmd_type): Don't declare.
1097 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1098 typedef.
1099 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1100 * cli/cli-decode.c (cmd_type): Remove.
1101
1102 2020-06-27 Pedro Alves <palves@redhat.com>
1103
1104 * fork-child.c (prefork_hook): Adjust.
1105 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1106 Delete.
1107 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1108 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1109 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1110 Remove declarations.
1111 (struct inferior) <set_tty, tty>: New methods.
1112 (struct inferior) <terminal>: Rename to ...
1113 (struct inferior) <m_terminal>: ... this and make private.
1114 * main.c (captured_main_1): Adjust.
1115 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1116 (mi_cmd_inferior_tty_show): Adjust.
1117 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1118 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1119
1120 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1121
1122 * configure.ac: Add --enable-libctf: handle --disable-static
1123 properly.
1124 * acinclude.m4: sinclude ../config/enable.m4.
1125 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1126 (LIBCTF): Substitute in.
1127 (CTF_DEPS): New, likewise.
1128 (CLIBS): libctf needs symbols from libbfd: move earlier.
1129 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1130 flags.
1131 * ctfread.c: Surround in ENABLE_LIBCTF.
1132 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1133 * configure: Regenerate.
1134 * config.in: Likewise.
1135
1136 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1137
1138 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1139
1140 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1141
1142 * inferior.h (struct inferior) <terminal>: Change type to
1143 gdb::unique_xmalloc_ptr<char>.
1144 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1145 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1146 field, adjust to unique pointer.
1147 (get_inferior_io_terminal): Adjust to unique pointer.
1148
1149 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1150
1151 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1152 registers, not just the known core set of registers.
1153
1154 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1157 fflags, frm, and fcsr registers.
1158 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1159 restore groups.
1160 (riscv_tdesc_unknown_reg): New function.
1161 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1162 tdesc_use_registers.
1163 * riscv-tdep.h (struct gdbarch_tdep): Add
1164 unknown_csrs_first_regnum, unknown_csrs_count,
1165 duplicate_fflags_regnum, duplicate_frm_regnum, and
1166 duplicate_fcsr_regnum fields.
1167
1168 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1169
1170 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1171 callback, use the callback (when not null) to help number unknown
1172 registers.
1173 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1174 (tdesc_use_registers): Add extra parameter to declaration.
1175
1176 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1179 in the file.
1180 (class riscv_pending_register_alias): Likewise.
1181 (riscv_register_feature::register_info): Change 'required_p' field
1182 to 'required', and change its type. Add 'check' member function.
1183 (riscv_register_feature::register_info::check): Define new member
1184 function.
1185 (riscv_xreg_feature): Change initialisation of 'required' field.
1186 (riscv_freg_feature): Likewise.
1187 (riscv_virtual_feature): Likewise.
1188 (riscv_csr_feature): Likewise.
1189 (riscv_check_tdesc_feature): Take extra parameter, the csr
1190 tdesc_feature, rewrite the function to use the new
1191 riscv_register_feature::register_info::check function.
1192 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1193
1194 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * features/Makefile: Remove all references to the deleted files
1197 below.
1198 * features/riscv/32bit-csr.c: Deleted.
1199 * features/riscv/32bit-csr.xml: Deleted.
1200 * features/riscv/64bit-csr.c: Deleted.
1201 * features/riscv/64bit-csr.xml: Deleted.
1202 * features/riscv/rebuild-csr-xml.sh: Deleted.
1203
1204 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1207 whitespace error for declaration of names member variable.
1208 (struct riscv_register_feature): Add new prefer_first_name member
1209 variable, and fix whitespace error in declaration of registers.
1210 (riscv_xreg_feature): Initialize prefer_first_name field.
1211 (riscv_freg_feature): Likewise.
1212 (riscv_virtual_feature): Likewise.
1213 (riscv_csr_feature): Likewise.
1214 (riscv_register_name): Expand on comments. Remove register name
1215 modifications for CSR and virtual registers.
1216
1217 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1218
1219 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1220 errors.
1221
1222 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1225 riscv-opc.h.
1226 (class riscv_pending_register_alias): New class.
1227 (riscv_check_tdesc_feature): Take vector of pending aliases and
1228 populate it as appropriate.
1229 (riscv_setup_register_aliases): Delete.
1230 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1231 to riscv_check_tdesc_feature in all cases. Use the vector to
1232 create the register aliases.
1233
1234 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1235
1236 * sol2-tdep.c (sol2_static_transform_name): Remove.
1237 (sol2_init_abi): Don't register it.
1238 * gdbarch.sh (static_transform_name): Remove.
1239 * gdbarch.c, gdbarch.h: Regenerate.
1240
1241 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1242 gdbarch_static_transform_name.
1243 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1244 * stabsread.c (define_symbol) <'X'>: Remove.
1245 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1246 handling.
1247 <'V'>: Likewise.
1248 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1249 <'S'>: Remove call to gdbarch_static_transform_name.
1250
1251 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1252
1253 * procfs.c (procfs_pre_trace): New function.
1254 (procfs_target::create_inferior): Pass it to fork_inferior.
1255
1256 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1257
1258 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1259 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1260 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1261 sol2-tdep.o, sparc-sol2-tdep.o.
1262 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1263 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1264 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1265 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1266
1267 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1268
1269 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1270 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1271 Call sol2_init_abi.
1272 Remove calls to set_gdbarch_skip_solib_resolver,
1273 set_gdbarch_core_pid_to_str.
1274 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1275 (i386_sol2_static_transform_name): Remove.
1276 (i386_sol2_init_abi): Call sol2_init_abi.
1277 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1278 set_gdbarch_static_transform_name,
1279 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1280 Use sol2_sigtramp_p.
1281 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1282 (sol2_sigtramp_p): New function.
1283 (sol2_static_transform_name): New function.
1284 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1285 (sol2_init_abi): New function.
1286 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1287 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1288 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1289 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1290 (sparc_sol2_static_transform_name): Remove.
1291 (sparc32_sol2_init_abi): Call sol2_init_abi.
1292 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1293 set_gdbarch_static_transform_name,
1294 set_gdbarch_skip_solib_resolver,
1295 set_gdbarch_core_pid_to_str.
1296 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1297 (sparc_sol2_static_transform_name): Remove
1298 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1299 call sol2_sigtramp_p.
1300 (sparc64_sol2_init_abi): Call sol2_init_abi.
1301 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1302 set_gdbarch_static_transform_name,
1303 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1304
1305 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1306
1307 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1308 * exec.c (validate_exec_file): If from_tty, set both
1309 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1310 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1311 and from_tty, unconditionally ask a confirmation.
1312
1313 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1314
1315 * target-descriptions.c (tdesc_architecture_name): Protect against
1316 NULL pointer dereference.
1317 (maint_print_xml_tdesc_cmd): New function.
1318 (_initialize_target_descriptions): Register new 'maint print
1319 xml-tdesc' command and give it the filename completer.
1320 * NEWS: Mention new 'maint print xml-tdesc' command.
1321
1322 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1323
1324 * target-descriptions.c (class tdesc_compatible_info): New class.
1325 (struct target_desc): Change type of compatible vector.
1326 (tdesc_compatible_p): Update for change in type of
1327 target_desc::compatible.
1328 (tdesc_compatible_info_list): New function.
1329 (tdesc_compatible_info_arch_name): New function.
1330 (tdesc_add_compatible): Update for change in type of
1331 target_desc::compatible.
1332 (print_c_tdesc::visit_pre): Likewise.
1333
1334 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1335
1336 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1337 whitespace to underscore.
1338 (maint_print_c_tdesc_cmd): Use fake filename for target
1339 descriptions that came from the target.
1340 (_initialize_target_descriptions): Add filename command completion
1341 for 'maint print c-tdesc'.
1342
1343 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1344
1345 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1346 lines.
1347
1348 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1349
1350 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1351 lines.
1352 (dwarf2_find_location_expression): Likewise.
1353 (call_site_parameter_matches): Likewise.
1354 (dwarf2_compile_expr_to_ax): Likewise.
1355 (disassemble_dwarf_expression): Likewise.
1356 (loclist_describe_location): Likewise.
1357
1358 2020-06-23 Pedro Alves <palves@redhat.com>
1359
1360 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1361 progspace-and-thread.h. Include scoped-mock-context.h instead.
1362 (register_to_value_test): Use scoped_mock_context.
1363 * regcache.c: Include "scoped-mock-context.h".
1364 (cooked_read_test): Don't error out if a target is already pushed.
1365 Use scoped_mock_context. Adjust.
1366 * scoped-mock-context.h: New file.
1367
1368 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1369
1370 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1371 initializer.
1372 (ada_language::is_string_type_p): New member function.
1373 * c-lang.c (c_language_data): Delete la_is_string_type_p
1374 initializer.
1375 (cplus_language_data): Likewise.
1376 (asm_language_data): Likewise.
1377 (minimal_language_data): Likewise.
1378 * d-lang.c (d_language_data): Likewise.
1379 * f-lang.c (f_is_string_type_p): Delete function, implementation
1380 moved to f_language::is_string_type_p.
1381 (f_language_data): Delete la_is_string_type_p initializer.
1382 (f_language::is_string_type_p): New member function,
1383 implementation from f_is_string_type_p.
1384 * go-lang.c (go_is_string_type_p): Delete function, implementation
1385 moved to go_language::is_string_type_p.
1386 (go_language_data): Delete la_is_string_type_p initializer.
1387 (go_language::is_string_type_p): New member function,
1388 implementation from go_is_string_type_p.
1389 * language.c (language_defn::is_string_type_p): Define new member
1390 function.
1391 (default_is_string_type_p): Make static, add comment copied from
1392 header file.
1393 (unknown_language_data): Delete la_is_string_type_p initializer.
1394 (unknown_language::is_string_type_p): New member function.
1395 (auto_language_data): Delete la_is_string_type_p initializer.
1396 (auto_language::is_string_type_p): New member function.
1397 * language.h (language_data): Delete la_is_string_type_p field.
1398 (language_defn::is_string_type_p): Declare new function.
1399 (default_is_string_type_p): Delete desclaration, move comment to
1400 definition.
1401 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1402 moved to m2_language::is_string_type_p.
1403 (m2_language_data): Delete la_is_string_type_p initializer.
1404 (m2_language::is_string_type_p): New member function,
1405 implementation from m2_is_string_type_p.
1406 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1407 initializer.
1408 * opencl-lang.c (opencl_language_data): Likewise.
1409 * p-lang.c (pascal_is_string_type_p): Delete function,
1410 implementation moved to pascal_language::is_string_type_p.
1411 (pascal_language_data): Delete la_is_string_type_p initializer.
1412 (pascal_language::is_string_type_p): New member function,
1413 implementation from pascal_is_string_type_p.
1414 * rust-lang.c (rust_is_string_type_p): Delete function,
1415 implementation moved to rust_language::is_string_type_p.
1416 (rust_language_data): Delete la_is_string_type_p initializer.
1417 (rust_language::is_string_type_p): New member function,
1418 implementation from rust_is_string_type_p.
1419 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1420 is_string_type_p.
1421
1422 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * ada-lang.c (ada_language_data): Delete la_print_typedef
1425 initializer.
1426 (ada_language::print_typedef): New member function.
1427 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1428 (cplus_language_data): Likewise.
1429 (asm_language_data): Likewise.
1430 (minimal_language_data): Likewise.
1431 * d-lang.c (d_language_data): Likewise.
1432 * f-lang.c (f_language_data): Likewise.
1433 (f_language::print_typedef): New member function.
1434 * go-lang.c (go_language_data): Delete la_print_typedef
1435 initializer.
1436 * language.c (language_defn::print_typedef): Define member
1437 function.
1438 (unknown_language_data): Delete la_print_typedef initializer.
1439 (unknown_language::print_typedef): New member function.
1440 (auto_language_data): Delete la_print_typedef initializer.
1441 (auto_language::print_typedef): New member function.
1442 * language.h (language_data): Delete la_print_typedef field.
1443 (language_defn::print_typedef): Declare new member function.
1444 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1445 (default_print_typedef): Delete declaration.
1446 * m2-lang.c (m2_language_data): Delete la_print_typedef
1447 initializer.
1448 (m2_language::print_typedef): New member function.
1449 * objc-lang.c (objc_language_data): Delete la_print_typedef
1450 initializer.
1451 * opencl-lang.c (opencl_language_data): Likewise.
1452 * p-lang.c (pascal_language_data): Likewise.
1453 (pascal_language::print_typedef): New member function.
1454 * rust-lang.c (rust_print_typedef): Delete function,
1455 implementation moved to rust_language::print_typedef.
1456 (rust_language): Delete la_print_typedef initializer.
1457 (rust_language::print_typedef): New member function,
1458 implementation from rust_print_typedef.
1459 * typeprint.c (default_print_typedef): Delete.
1460
1461 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1462
1463 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1464 (ada_language::printstr): New member function.
1465 * c-lang.c (c_language_data): Delete la_printstr initializer.
1466 (cplus_language_data): Likewise.
1467 (asm_language_data): Likewise.
1468 (minimal_language_data): Likewise.
1469 * d-lang.c (d_language_data): Likewise.
1470 * f-lang.c (f_printstr): Rename to f_language::printstr.
1471 (f_language_data): Delete la_printstr initializer.
1472 (f_language::printstr): New member function, implementation from
1473 f_printstr.
1474 * go-lang.c (go_language_data): Delete la_printstr initializer.
1475 * language.c (language_defn::printstr): Define new member
1476 function.
1477 (unk_lang_printstr): Delete.
1478 (unknown_language_data): Delete la_printstr initializer.
1479 (unknown_language::printstr): New member function.
1480 (auto_language_data): Delete la_printstr initializer.
1481 (auto_language::printstr): New member function.
1482 * language.h (language_data): Delete la_printstr field.
1483 (language_defn::printstr): Declare new member function.
1484 (LA_PRINT_STRING): Update call to printstr.
1485 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1486 (m2_language_data): Delete la_printstr initializer.
1487 (m2_language::printstr): New member function, implementation from
1488 m2_printstr.
1489 * objc-lang.c (objc_language_data): Delete la_printstr
1490 initializer.
1491 * opencl-lang.c (opencl_language_data): Likewise.
1492 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1493 (pascal_language_data): Delete la_printstr initializer.
1494 (pascal_language::printstr): New member function, implementation
1495 from pascal_printstr.
1496 * p-lang.h (pascal_printstr): Delete declaration.
1497 * rust-lang.c (rust_printstr): Update header comment.
1498 (rust_language_data): Delete la_printstr initializer.
1499 (rust_language::printstr): New member function.
1500
1501 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1502
1503 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1504 (ada_language::printchar): New member function.
1505 * c-lang.c (c_language_data): Delete la_printchar initializer.
1506 (cplus_language_data): Likewise.
1507 (asm_language_data): Likewise.
1508 (minimal_language_data): Likewise.
1509 * d-lang.c (d_language_data): Likewise.
1510 * f-lang.c (f_printchar): Rename to f_language::printchar.
1511 (f_language_data): Delete la_printchar initializer.
1512 (f_language::printchar): New member function, implementation from
1513 f_printchar.
1514 * go-lang.c (go_language_data): Delete la_printchar initializer.
1515 * language.c (unk_lang_printchar): Delete.
1516 (language_defn::printchar): Define new member function.
1517 (unknown_language_data): Delete la_printchar initializer.
1518 (unknown_language::printchar): New member function.
1519 (auto_language_data): Delete la_printchar initializer.
1520 (auto_language::printchar): New member function.
1521 * language.h (language_data): Delete la_printchar field.
1522 (language_defn::printchar): Declare new member function.
1523 (LA_PRINT_CHAR): Update call to printchar.
1524 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1525 (m2_language::printchar): New member function.
1526 * objc-lang.c (objc_language_data): Delete la_printchar
1527 initializer.
1528 * opencl-lang.c (opencl_language_data): Likewise.
1529 * p-lang.c (pascal_language_data): Delete la_printchar
1530 initializer.
1531 (pascal_language::printchar): New member function.
1532 * rust-lang.c (rust_printchar): Rename to
1533 rust_language::printchar.
1534 (rust_language_data): Delete la_printchar initializer.
1535 (rust_language::printchar): New member function, implementation
1536 from rust_printchar.
1537
1538 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1539
1540 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1541 (ada_language_data): Delete la_emitchar initializer.
1542 (ada_language::emitchar): New member function, implementation from
1543 emit_char.
1544 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1545 (cplus_language_data): Likewise.
1546 (asm_language_data): Likewise.
1547 (minimal_language_data): Likewise.
1548 * d-lang.c (d_language_data): Likewise.
1549 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1550 (f_language_data): Delete la_emitchar initializer.
1551 (f_language::emitchar): New member function, implementation from
1552 f_emit_char.
1553 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1554 * language.c (unk_lang_emit_char): Delete.
1555 (language_defn::emitchar): New member function definition.
1556 (unknown_language_data): Delete la_emitchar initializer.
1557 (unknown_language::emitchar): New member function.
1558 (auto_language_data): Delete la_emitchar initializer.
1559 (auto_language::emitchar): New member function.
1560 * language.h (language_data): Delete la_emitchar field.
1561 (language_defn::emitchar): New member field declaration.
1562 (LA_EMIT_CHAR): Update call to emitchar.
1563 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1564 (m2_language_data): Delete la_emitchar initializer.
1565 (m2_language::emitchar): New member function, implementation from
1566 m2_emit_char.
1567 * objc-lang.c (objc_language_data): Delete la_emitchar
1568 initializer.
1569 * opencl-lang.c (opencl_language_data): Likewise.
1570 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1571 (pascal_language_data): Delete la_emitchar initializer.
1572 (pascal_language::emitchar): New member function, implementation
1573 from pascal_emit_char.
1574 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1575 (rust_language_data): Delete la_emitchar initializer.
1576 (rust_language::emitchar): New member function, implementation
1577 from rust_emitchar.
1578
1579 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1580
1581 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1582 (ada_language_data): Delete la_post_parser initializer.
1583 (ada_language::post_parser): New member function.
1584 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1585 (cplus_language_data): Likewise.
1586 (asm_language_data): Likewise.
1587 (minimal_language_data): Likewise.
1588 * d-lang.c (d_language_data): Likewise.
1589 * f-lang.c (f_language_data): Likewise.
1590 * go-lang.c (go_language_data): Likewise.
1591 * language.c (unknown_language_data): Likewise.
1592 (auto_language_data): Likewise.
1593 * language.h (language_data): Delete la_post_parser field.
1594 (language_defn::post_parser): New member function.
1595 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1596 * objc-lang.c (objc_language_data): Likewise.
1597 * opencl-lang.c (opencl_language_data): Likewise.
1598 * p-lang.c (pascal_language_data): Likewise.
1599 * parse.c (parse_exp_in_context): Update call to post_parser.
1600 (null_post_parser): Delete definition.
1601 * parser-defs.h (null_post_parser): Delete declaration.
1602 * rust-lang.c (rust_language_data): Delete la_post_parser
1603 initializer.
1604
1605 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * ada-lang.c (parse): Rename to ada_language::parser.
1608 (ada_language_data): Delete la_parser initializer.
1609 (ada_language::parser): New member function, implementation from
1610 parse.
1611 * c-lang.c (c_language_data): Delete la_parser initializer.
1612 (cplus_language_data): Likewise.
1613 (asm_language_data): Likewise.
1614 (minimal_language_data): Likewise.
1615 * d-lang.c (d_language_data): Likewise.
1616 (d_language::parser): New member function.
1617 * f-lang.c (f_language_data): Delete la_parser initializer.
1618 (f_language::parser): New member function.
1619 * go-lang.c (go_language_data): Delete la_parser initializer.
1620 (go_language::parser): New member function.
1621 * language.c (unk_lang_parser): Delete.
1622 (language_defn::parser): Define new member function.
1623 (unknown_language_data): Delete la_parser initializer.
1624 (unknown_language::parser): New member function.
1625 (auto_language_data): Delete la_parser initializer.
1626 (auto_language::parser): New member function.
1627 * language.h (language_data): Delete la_parser field.
1628 (language_defn::parser): Declare new member function.
1629 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1630 (m2_language::parser): New member function.
1631 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1632 * opencl-lang.c (opencl_language_data): Likewise.
1633 * p-lang.c (pascal_language_data): Likewise.
1634 (pascal_language::parser): New member function.
1635 * parse.c (parse_exp_in_context): Update call to parser.
1636 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1637 (rust_language::parser): New member function.
1638
1639 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1640
1641 * top.c (print_gdb_configuration): Print --with-python-libdir
1642 configuration value.
1643
1644 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1645
1646 * NEWS: Mention change to the alias command.
1647
1648 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1649
1650 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1651 (alias_command_completer)
1652 (make_alias_options_def_group): New functions.
1653 (alias_opts, alias_option_defs): New struct and array.
1654 (alias_usage_error): Update usage.
1655 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1656 Use option framework.
1657 (_initialize_cli_cmds): Update alias command help.
1658 Update aliases command help.
1659 (show_user):
1660 Add NULL for new default_args lookup_cmd argument.
1661 (valid_command_p): Rename to validate_aliased_command.
1662 Add NULL for new default_args lookup_cmd argument. Verify that the
1663 aliased_command has no default args.
1664 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1665 (lookup_cmd_1, lookup_cmd): New argument default_args.
1666 (add_alias_cmd):
1667 Add NULL for new default_args lookup_cmd argument.
1668 (print_help_for_command): Show default args under the layout
1669 alias some_alias = some_aliased_cmd some_alias_default_arg.
1670 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1671 xfree default_args in destructor.
1672 * cli/cli-script.c (process_next_line, do_define_command):
1673 Add NULL for new default_args lookup_cmd argument.
1674 * command.h: Declare new default_args argument in lookup_cmd
1675 and lookup_cmd_1.
1676 * completer.c (complete_line_internal_1):
1677 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1678 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1679 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1680 Likewise.
1681 * infcmd.c (_initialize_infcmd): Likewise.
1682 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1683 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1684 * python/py-param.c (add_setshow_generic): Likewise.
1685 * remote.c (_initialize_remote): Likewise.
1686 * top.c (execute_command): Prepend default_args if command has some.
1687 (set_verbose):
1688 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1689 * tracepoint.c (validate_actionline, encode_actions_1):
1690 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1691
1692 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1693
1694 * jit.c (jit_read_descriptor): Use bool as the return type.
1695 (jit_breakpoint_re_set_internal): Use bool as the return type.
1696 Invert the return value logic; return true if the jit breakpoint
1697 has been successfully initialized.
1698 (jit_inferior_init): Update the call to
1699 jit_breakpoint_re_set_internal.
1700
1701 2020-06-22 Pedro Alves <palves@redhat.com>
1702
1703 PR gdb/25939
1704 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1705 Use the current inferior instead. Don't return
1706 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1707 wait again.
1708 * sol-thread.c (sol_thread_target::wait): Don't reference
1709 inferior_ptid.
1710 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1711 (sol_update_thread_list_callback): Use the current inferior's pid
1712 instead of inferior_ptid.
1713
1714 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1715
1716 * procfs.c: Cleanup many comments.
1717
1718 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1719 (AFTER_WATCHFLAG): Replace by value.
1720
1721 (MAIN_PROC_NAME_FORMAT): Inline ...
1722 (create_procinfo): ... here.
1723
1724 (procfs_debug_inferior): Remove SYS_exec handling.
1725 (syscall_is_exec): Likewise.
1726 (procfs_set_exec_trap): Likewise.
1727
1728 (syscall_is_lwp_exit): Inline in callers.
1729 (syscall_is_exit): Likewise.
1730 (syscall_is_exec): Likewise.
1731 (syscall_is_lwp_create): Likewise.
1732
1733 (invalidate_cache): Remove #if 0 code.
1734
1735 (make_signal_thread_runnable): Remove.
1736 (procfs_target::resume): Remove #if 0 code.
1737
1738 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1739
1740 PR gdb/25939
1741 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1742 call ...
1743 (procfs_target::create_inferior): ... here.
1744
1745 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1746
1747 * exec.c (validate_exec_file): Ensure the build-id is up to
1748 date by calling reopen_exec_file (that checks file timestamp
1749 to decide to re-read the file).
1750
1751 2020-06-18 Pedro Alves <palves@redhat.com>
1752
1753 PR gdb/25412
1754 * gdbthread.h (delete_thread, delete_thread_silent)
1755 (find_thread_ptid): Update comments.
1756 * thread.c (current_thread_): New global.
1757 (is_current_thread): Move higher, and reimplement.
1758 (inferior_thread): Reimplement.
1759 (set_thread_exited): Use bool. Add assertions.
1760 (add_thread_silent): Simplify thread-reuse handling by always
1761 calling delete_thread.
1762 (delete_thread): Remove intro comment.
1763 (find_thread_ptid): Skip exited threads.
1764 (switch_to_thread_no_regs): Write to current_thread_.
1765 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1766 INFERIOR_PTID. Clear current_thread_.
1767
1768 2020-06-18 Pedro Alves <palves@redhat.com>
1769
1770 * aix-thread.c (pd_update): Use switch_to_thread.
1771
1772 2020-06-18 Pedro Alves <palves@redhat.com>
1773
1774 * ravenscar-thread.c (ravenscar_thread_target): Update.
1775 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1776 (ravenscar_thread_target::add_active_thread): ... this. Don't
1777 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1778 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1779
1780 2020-06-18 Pedro Alves <palves@redhat.com>
1781
1782 * nat/windows-nat.c (current_windows_thread): Remove.
1783 * nat/windows-nat.h (current_windows_thread): Remove.
1784 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1785 Adjust.
1786 (display_selectors): Adjust to fetch the current
1787 windows_thread_info based on inferior_ptid.
1788 (fake_create_process): No longer write to current_windows_thread.
1789 (windows_nat_target::get_windows_debug_event):
1790 Don't set inferior_ptid or current_windows_thread.
1791 (windows_nat_target::wait): Adjust to not rely on
1792 current_windows_thread.
1793 (do_initial_windows_stuff): Now a method of windows_nat_target.
1794 Switch to the last_ptid thread.
1795 (windows_nat_target::attach): Adjust.
1796 (windows_nat_target::detach): Use switch_to_no_thread instead of
1797 writing to inferior_ptid directly.
1798 (windows_nat_target::create_inferior): Adjust.
1799
1800 2020-06-18 Pedro Alves <palves@redhat.com>
1801
1802 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1803
1804 2020-06-18 Pedro Alves <palves@redhat.com>
1805
1806 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1807 after creating it, instead of writing to inferior_ptid. Don't
1808 write to inferior_ptid.
1809
1810 2020-06-18 Pedro Alves <palves@redhat.com>
1811
1812 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1813
1814 2020-06-18 Pedro Alves <palves@redhat.com>
1815
1816 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1817 it, instead of writing to inferior_ptid.
1818
1819 2020-06-18 Pedro Alves <palves@redhat.com>
1820
1821 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1822 to inferior_ptid.
1823
1824 2020-06-18 Pedro Alves <palves@redhat.com>
1825
1826 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1827 instead of writing to inferior_ptid directly.
1828
1829 2020-06-18 Pedro Alves <palves@redhat.com>
1830
1831 * corelow.c (core_target::close): Use switch_to_no_thread instead
1832 of writing to inferior_ptid directly.
1833 (add_to_thread_list, core_target_open): Use switch_to_thread
1834 instead of writing to inferior_ptid directly.
1835
1836 2020-06-18 Pedro Alves <palves@redhat.com>
1837
1838 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1839 inferior_ptid.
1840 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1841 inferior_ptid.
1842 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1843 inferior_ptid directly.
1844 (darwin_nat_target::init_thread_list): Switch to thread, instead
1845 of writing to inferior_ptid.
1846 (darwin_nat_target::attach): Don't write to inferior_ptid.
1847 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1848
1849 2020-06-18 Pedro Alves <palves@redhat.com>
1850
1851 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1852 thread.
1853 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1854 Instead use switch_to_thread.
1855 (gnu_nat_target::detach): Use switch_to_no_thread
1856 instead of writing to inferior_ptid directly. Used passed-in
1857 inferior instead of looking up the inferior by pid.
1858
1859 2020-06-18 Pedro Alves <palves@redhat.com>
1860
1861 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1862 inferior_ptid.
1863
1864 2020-06-18 Pedro Alves <palves@redhat.com>
1865
1866 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1867 inferior_ptid.
1868 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1869 thread.
1870 (nto_procfs_target::detach): Avoid referencing
1871 inferior_ptid. Use switch_to_no_thread instead of writing to
1872 inferior_ptid directly.
1873 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1874 instead of writing to inferior_ptid directly.
1875 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1876 to thread.
1877
1878 2020-06-18 Pedro Alves <palves@redhat.com>
1879
1880 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1881 after creating it, instead of writing to inferior_ptid.
1882 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1883 to inferior_ptid directly.
1884 (gdbsim_target::wait): Don't write to inferior_ptid.
1885
1886 2020-06-18 Pedro Alves <palves@redhat.com>
1887
1888 * remote.c (remote_target::remote_notice_new_inferior): Use
1889 switch_to_thread instead of writing to inferior_ptid directly.
1890 (remote_target::add_current_inferior_and_thread): Use
1891 switch_to_no_thread instead of writing to inferior_ptid directly.
1892 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1893 and switch_to_thread instead of using set_current_inferior or
1894 writing to inferior_ptid directly.
1895
1896 2020-06-18 Pedro Alves <palves@redhat.com>
1897
1898 * tracectf.c (ctf_target_open): Switch to added thread instead of
1899 writing to inferior_ptid directly.
1900 (ctf_target::close): Use switch_to_no_thread instead of writing to
1901 inferior_ptid directly.
1902
1903 2020-06-18 Pedro Alves <palves@redhat.com>
1904
1905 * tracefile-tfile.c (tfile_target_open): Don't write to
1906 inferior_ptid directly, instead switch to added thread.
1907 (tfile_target::close): Use switch_to_no_thread instead of writing
1908 to inferior_ptid directly.
1909
1910 2020-06-18 Pedro Alves <palves@redhat.com>
1911
1912 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1913 (procfs_target::detach): Use switch_to_no_thread
1914 instead of writing to inferior_ptid directly.
1915 (do_attach): Change return type to void. Switch to the added
1916 thread.
1917 (procfs_target::create_inferior): Switch to the added thread.
1918 (procfs_do_thread_registers): Don't write to inferior_ptid.
1919
1920 2020-06-18 Pedro Alves <palves@redhat.com>
1921
1922 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1923 of writing to inferior_ptid.
1924 (scoped_restore_exited_inferior): Delete.
1925 (handle_vfork_child_exec_or_exit): Simplify using
1926 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1927 instead of writing to inferior_ptid.
1928 (THREAD_STOPPED_BY): Delete.
1929 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1930 (thread_stopped_by_hw_breakpoint): Delete.
1931 (save_waitstatus): Use
1932 scoped_restore_current_thread+switch_to_thread, and call
1933 target_stopped_by_watchpoint instead of
1934 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1935 instead of thread_stopped_by_sw_breakpoint, and
1936 target_stopped_by_hw_breakpoint instead of
1937 thread_stopped_by_hw_breakpoint.
1938 (handle_inferior_event)
1939 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1940 inferior_ptid directly, nor
1941 set_current_inferior/set_current_program_space. Use
1942 switch_to_thread / switch_to_inferior_no_thread instead.
1943
1944 2020-06-18 Pedro Alves <palves@redhat.com>
1945
1946 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1947 instead of writing to inferior_ptid.
1948
1949 2020-06-18 Pedro Alves <palves@redhat.com>
1950
1951 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1952 added thread.
1953 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1954 to the added thread.
1955 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1956 instead of writing to inferior_ptid.
1957
1958 2020-06-18 Pedro Alves <palves@redhat.com>
1959
1960 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1961 (register_to_value_test): Mock a program_space too. Heap-allocate
1962 the address space. Don't write to inferior_ptid. Use
1963 switch_to_thread instead.
1964
1965 2020-06-18 Pedro Alves <palves@redhat.com>
1966
1967 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1968 Delete.
1969 (find_signalled_thread()): New, factored out from
1970 linux_make_corefile_notes and adjusted to handle exited threads.
1971 (linux_make_corefile_notes): Adjust to use the new
1972 find_signalled_thread.
1973
1974 2020-06-18 Pedro Alves <palves@redhat.com>
1975
1976 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1977 of saving/restoring inferior_ptid.
1978
1979 2020-06-17 Tom Tromey <tom@tromey.com>
1980
1981 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1982 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1983 declare.
1984 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1985
1986 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1987
1988 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1989 of partial symtabs.
1990
1991 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1992
1993 * regformats/reg-arm.dat: Remove.
1994 * regformats/reg-bfin.dat: Remove.
1995 * regformats/reg-cris.dat: Remove.
1996 * regformats/reg-crisv32.dat: Remove.
1997 * regformats/reg-m32r.dat: Remove.
1998 * regformats/reg-tilegx.dat: Remove.
1999 * regformats/reg-tilegx32.dat: Remove.
2000
2001 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2002
2003 * features/Makefile (WHICH): Remove arm files.
2004 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2005 * regformats/arm/arm-with-neon.dat: Remove.
2006 * regformats/arm/arm-with-vfpv2.dat: Remove.
2007 * regformats/arm/arm-with-vfpv3.dat: Remove.
2008
2009 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2010
2011 * features/Makefile (XMLTOC): Remove rx.xml.
2012
2013 2020-06-17 Pedro Alves <palves@redhat.com>
2014
2015 * gdbthread.h (thread_control_state) <trap_expected> Update
2016 comments.
2017
2018 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2019
2020 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2021 ada_language::lookup_symbol_nonlocal.
2022 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2023 (ada_language::lookup_symbol_nonlocal): New member function,
2024 implementation from ada_lookup_symbol_nonlocal.
2025 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2026 initializer.
2027 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2028 initializer.
2029 (cplus_language::lookup_symbol_nonlocal): New member function.
2030 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2031 (minimal_language_data) Likewise.
2032 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2033 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2034 initializer.
2035 (d_language::lookup_symbol_nonlocal): New member function.
2036 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2037 initializer.
2038 (f_language::lookup_symbol_nonlocal): New member function.
2039 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2040 initializer.
2041 * language.c (unknown_language_data): Likewise.
2042 (auto_language_data): Likewise.
2043 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2044 field.
2045 (language_defn::lookup_symbol_nonlocal): New member function.
2046 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2047 initializer.
2048 * objc-lang.c (objc_language_data): Likewise.
2049 * opencl-lang.c (opencl_language_data): Likewise.
2050 * p-lang.c (pascal_language_data): Likewise.
2051 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2052 rust_language::lookup_symbol_nonlocal.
2053 (rust_language_data): Delete la_lookup_symbol_nonlocal
2054 initializer.
2055 (rust_language::lookup_symbol_nonlocal): New member function,
2056 implementation from rust_lookup_symbol_nonlocal.
2057 * symtab.c (lookup_symbol_aux): Update call to
2058 lookup_symbol_nonlocal.
2059 (basic_lookup_symbol_nonlocal): Rename to...
2060 (language_defn::lookup_symbol_nonlocal): ...this, and update
2061 header comment. Remove language_defn parameter, and replace with
2062 uses of `this'.
2063 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2064
2065 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2066
2067 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2068 initializer.
2069 (ada_language::value_print_inner): New member function.
2070 * c-lang.c (c_language_data): Delete la_value_print_inner
2071 initializer.
2072 (cplus_language_data): Likewise.
2073 (asm_language_data): Likewise.
2074 (minimal_language_data): Likewise.
2075 * d-lang.c (d_language_data): Likewise.
2076 (d_language::value_print_inner): New member function.
2077 * f-lang.c (f_language_data): Delete la_value_print_inner
2078 initializer.
2079 (f_language::value_print_inner): New member function.
2080 * f-lang.h (f_value_print_innner): Rename to...
2081 (f_value_print_inner): ...this (note spelling of 'inner').
2082 * f-valprint.c (f_value_print_innner): Rename to...
2083 (f_value_print_inner): ...this (note spelling of 'inner').
2084 * go-lang.c (go_language_data): Delete la_value_print_inner
2085 initializer.
2086 (go_language::value_print_inner): New member function.
2087 * language.c (language_defn::value_print_inner): Define new member
2088 function.
2089 (unk_lang_value_print_inner): Delete.
2090 (unknown_language_data): Delete la_value_print_inner initializer.
2091 (unknown_language::value_print_inner): New member function.
2092 (auto_language_data): Delete la_value_print_inner initializer.
2093 (auto_language::value_print_inner): New member function.
2094 * language.h (language_data): Delete la_value_print_inner field.
2095 (language_defn::value_print_inner): Delcare new member function.
2096 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2097 initializer.
2098 (m2_language::value_print_inner): New member function.
2099 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2100 initializer.
2101 * opencl-lang.c (opencl_language_data): Likewise.
2102 * p-lang.c (pascal_language_data): Likewise.
2103 (pascal_language::value_print_inner): New member function.
2104 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2105 initializer.
2106 (rust_language::value_print_inner): New member function.
2107 * valprint.c (do_val_print): Update call to value_print_inner.
2108
2109 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 * ada-lang.c (ada_language_data): Delete la_value_print
2112 initializer.
2113 (ada_language::value_print): New member function.
2114 * c-lang.c (c_language_data): Delete la_value_print initializer.
2115 (cplus_language_data): Likewise.
2116 (asm_language_data): Likewise.
2117 (minimal_language_data): Likewise.
2118 * d-lang.c (d_language_data): Likewise.
2119 * f-lang.c (f_language_data): Likewise.
2120 * go-lang.c (go_language_data): Likewise.
2121 * language.c (unk_lang_value_print): Delete.
2122 (language_defn::value_print): Define new member function.
2123 (unknown_language_data): Delete la_value_print initializer.
2124 (unknown_language::value_print): New member function.
2125 (auto_language_data): Delete la_value_print initializer.
2126 (auto_language::value_print): New member function.
2127 * language.h (language_data): Delete la_value_print field.
2128 (language_defn::value_print): Declare new member function.
2129 (LA_VALUE_PRINT): Update call to value_print.
2130 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2131 * objc-lang.c (objc_language_data): Likewise.
2132 * opencl-lang.c (opencl_language_data): Likewise.
2133 * p-lang.c (pascal_language_data): Likewise.
2134 (pascal_language::value_print): New member function.
2135 * rust-lang.c (rust_language_data): Delete la_value_print
2136 initializer.
2137
2138 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2139
2140 * ada-lang.c (ada_watch_location_expression): Rename to
2141 ada_language::watch_location_expression.
2142 (ada_language_data): Delete la_watch_location_expression
2143 initializer.
2144 (ada_language::watch_location_expression): New member function,
2145 implementation from ada_watch_location_expression.
2146 * breakpoint.c (watch_command_1): Update call to
2147 watch_location_expression.
2148 * c-lang.c (c_watch_location_expression): Rename to
2149 language_defn::watch_location_expression.
2150 (c_language_data): Delete la_watch_location_expression
2151 initializer.
2152 (cplus_language_data): Likewise.
2153 (asm_language_data): Likewise.
2154 (minimal_language_data): Likewise.
2155 * c-lang.h (c_watch_location_expression): Delete declaration.
2156 * d-lang.c (d_language_data): Delete la_watch_location_expression
2157 initializer.
2158 * f-lang.c (f_language_data): Likewise.
2159 * go-lang.c (go_language_data): Likewise.
2160 * language.c (language_defn::watch_location_expression): Member
2161 function implementation from c_watch_location_expression.
2162 (unknown_language_data): Delete la_watch_location_expression
2163 initializer.
2164 (auto_language_data): Likewise.
2165 * language.h (language_data): Delete la_watch_location_expression
2166 field.
2167 (language_defn::watch_location_expression): Declare new member
2168 function.
2169 * m2-lang.c (m2_language_data): Delete
2170 la_watch_location_expression initializer.
2171 * objc-lang.c (objc_language_data): Likewise.
2172 * opencl-lang.c (opencl_language_data): Likewise.
2173 * p-lang.c (pascal_language_data): Likewise.
2174 * rust-lang.c (rust_watch_location_expression): Rename to
2175 rust_language::watch_location_expression.
2176 (rust_language_data): Delete la_watch_location_expression
2177 initializer.
2178 (rust_language::watch_location_expression): New member function,
2179 implementation from rust_watch_location_expression.
2180
2181 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2182
2183 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2184 ada_language::collect_symbol_completion_matches.
2185 (ada_language_data): Delete la_collect_symbol_completion_matches
2186 initializer.
2187 (ada_language::collect_symbol_completion_matches): New member
2188 function, implementation from
2189 ada_collect_symbol_completion_matches.
2190 * c-lang.c (c_language_data): Delete
2191 la_collect_symbol_completion_matches initializer.
2192 (cplus_language_data): Likewise.
2193 (asm_language_data): Likewise.
2194 (minimal_language_data): Likewise.
2195 * d-lang.c (d_language_data): Likewise.
2196 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2197 f_language::collect_symbol_completion_matches.
2198 (f_language_data): Delete la_collect_symbol_completion_matches
2199 initializer.
2200 (f_language::collect_symbol_completion_matches) New member
2201 function, implementation from f_collect_symbol_completion_matches.
2202 * go-lang.c (go_language_data): Delete
2203 la_collect_symbol_completion_matches initializer.
2204 * language.c (unknown_language_data): Likewise.
2205 (auto_language_data): Likewise.
2206 * language.h (language_data): Delete
2207 la_collect_symbol_completion_matches field.
2208 (language_defn::collect_symbol_completion_matches): New member
2209 function.
2210 * m2-lang.c (m2_language_data): Delete
2211 la_collect_symbol_completion_matches initializer.
2212 * objc-lang.c (objc_language_data): Likewise.
2213 * opencl-lang.c (opencl_language_data): Likewise.
2214 * p-lang.c (pascal_language_data): Likewise.
2215 * rust-lang.c (rust_language_data): Likewise.
2216 * symtab.c (default_collect_symbol_completion_matches): Delete.
2217 (collect_symbol_completion_matches): Update call to
2218 collect_symbol_completion_matches.
2219 (collect_symbol_completion_matches_type): Likewise.
2220 * symtab.h (default_collect_symbol_completion_matches): Delete
2221 declaration.
2222
2223 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2224
2225 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2226 (ada_language_data): Delete la_word_break_characters initializer.
2227 (ada_language::word_break_characters): New member function.
2228 * c-lang.c (c_language_data): Delete la_word_break_characters
2229 initializer.
2230 (cplus_language_data): Likewise.
2231 (asm_language_data): Likewise.
2232 (minimal_language_data): Likewise.
2233 * completer.c: Update global comment.
2234 (advance_to_expression_complete_word_point): Update call to
2235 word_break_characters.
2236 (complete_files_symbols): Likewise.
2237 (complete_line_internal_1): Likewise.
2238 (default_completer_handle_brkchars): Likewise.
2239 (skip_quoted_chars): Likewise.
2240 * d-lang.c (d_language_data): Delete la_word_break_characters
2241 initializer.
2242 * f-lang.c (f_word_break_characters): Delete.
2243 (f_language_data): Delete la_word_break_characters initializer.
2244 (f_language::word_break_characters): New member function.
2245 * go-lang.c (go_language_data): Delete la_word_break_characters
2246 initializer.
2247 * language.c (unknown_language_data): Likewise.
2248 (auto_language_data): Likewise.
2249 * language.h (default_word_break_characters): Move declaration to
2250 earlier in the file.
2251 (language_data): Delete la_word_break_characters field.
2252 (language_defn::word_break_characters): New member function.
2253 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2254 initializer.
2255 * objc-lang.c (objc_language_data): Likewise.
2256 * opencl-lang.c (opencl_language_data): Likewise.
2257 * p-lang.c (pascal_language_data): Likewise.
2258 * rust-lang.c (rust_language_data): Likewise.
2259
2260 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2261
2262 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2263 (ada_language_data): Delete la_get_symbol_name_matcher
2264 initializer.
2265 (language_defn::get_symbol_name_matcher_inner): New member
2266 function.
2267 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2268 initializer.
2269 (cplus_language_data): Likewise.
2270 (cplus_language::get_symbol_name_matcher_inner): New member
2271 function.
2272 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2273 (minimal_language_data): Likewise.
2274 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2275 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2276 initializer.
2277 * dictionary.c (iter_match_first_hashed): Update call to
2278 get_symbol_name_matcher.
2279 (iter_match_next_hashed): Likewise.
2280 (iter_match_next_linear): Likewise.
2281 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2282 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2283 initializer.
2284 (f_language::get_symbol_name_matcher_inner): New member function.
2285 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2286 initializer.
2287 * language.c (default_symbol_name_matcher): Update header comment,
2288 make static.
2289 (language_defn::get_symbol_name_matcher): New definition.
2290 (language_defn::get_symbol_name_matcher_inner): Likewise.
2291 (get_symbol_name_matcher): Delete.
2292 (unknown_language_data): Delete la_get_symbol_name_matcher
2293 initializer.
2294 (auto_language_data): Likewise.
2295 * language.h (language_data): Delete la_get_symbol_name_matcher
2296 field.
2297 (language_defn::get_symbol_name_matcher): New member function.
2298 (language_defn::get_symbol_name_matcher_inner): Likewise.
2299 (default_symbol_name_matcher): Delete declaration.
2300 * linespec.c (find_methods): Update call to
2301 get_symbol_name_matcher.
2302 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2303 initializer.
2304 * minsyms.c (lookup_minimal_symbol): Update call to
2305 get_symbol_name_matcher.
2306 (iterate_over_minimal_symbols): Likewise.
2307 * objc-lang.c (objc_language_data): Delete
2308 la_get_symbol_name_matcher initializer.
2309 * opencl-lang.c (opencl_language_data): Likewise.
2310 * p-lang.c (pascal_language_data): Likewise.
2311 * psymtab.c (psymbol_name_matches): Update call to
2312 get_symbol_name_matcher.
2313 * rust-lang.c (rust_language_data): Delete
2314 la_get_symbol_name_matcher initializer.
2315 * symtab.c (symbol_matches_search_name): Update call to
2316 get_symbol_name_matcher.
2317 (compare_symbol_name): Likewise.
2318
2319 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2320
2321 * ada-lang.c (ada_language_data): Delete la_compute_program
2322 initializer.
2323 * c-lang.c (c_language_data): Likewise.
2324 (c_language::compute_program): New member function.
2325 (cplus_language_data): Delete la_compute_program initializer.
2326 (cplus_language::compute_program): New member function.
2327 (asm_language_data): Delete la_compute_program initializer.
2328 (minimal_language_data): Likewise.
2329 * c-lang.h (c_compute_program): Update comment.
2330 (cplus_compute_program): Likewise.
2331 * compile/compile-c-support.c (c_compute_program): Likewise.
2332 (cplus_compute_program): Likewise.
2333 * compile/compile.c (compile_to_object): Update call to
2334 la_compute_program.
2335 * d-lang.c (d_language_data): Delete la_compute_program
2336 initializer.
2337 * f-lang.c (f_language_data): Likewise.
2338 * go-lang.c (go_language_data): Likewise.
2339 * language.c (unknown_language_data): Likewise.
2340 (auto_language_data): Likewise.
2341 * language.h (language_data): Delete la_compute_program field.
2342 (language_defn::compute_program): New member function.
2343 * m2-lang.c (m2_language_data): Delete la_compute_program
2344 initializer.
2345 * objc-lang.c (objc_language_data): Likewise.
2346 * opencl-lang.c (opencl_language_data): Likewise.
2347 * p-lang.c (pascal_language_data): Likewise.
2348 * rust-lang.c (rust_language_data): Likewise.
2349
2350 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2351
2352 * ada-lang.c (ada_language_data) Delete
2353 la_class_name_from_physname initializer.
2354 * c-lang.c (c_language_data): Likewise.
2355 (cplus_language_data): Likewise.
2356 (cplus_language::class_name_from_physname): New member function.
2357 (asm_language_data): Delete la_class_name_from_physname
2358 initializer.
2359 (minimal_language_data): Likewise.
2360 * d-lang.c (d_language_data): Likewise.
2361 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2362 method on language_defn class.
2363 (guess_full_die_structure_name): Likewise.
2364 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2365 initializer.
2366 * go-lang.c (go_language_data): Likewise.
2367 * language.c (language_class_name_from_physname): Delete.
2368 (unk_lang_class_name): Delete.
2369 (unknown_language_data): Delete la_class_name_from_physname
2370 initializer.
2371 (auto_language_data): Likewise.
2372 * language.h (language_data): Delete la_class_name_from_physname
2373 field.
2374 (language_defn::class_name_from_physname): New function.
2375 (language_class_name_from_physname): Delete declaration.
2376 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2377 initializer.
2378 * objc-lang.c (objc_language_data): Likewise.
2379 * opencl-lang.c (opencl_language_data): Likewise.
2380 * p-lang.c (pascal_language_data): Likewise.
2381 * rust-lang.c (rust_language_data): Likewise.
2382
2383 2020-06-16 Tom Tromey <tom@tromey.com>
2384
2385 * tui/tui-data.h (STATUS_NAME): New macro.
2386 * tui/tui-layout.c (tui_remove_some_windows)
2387 (initialize_known_windows, tui_register_window)
2388 (tui_layout_split::remove_windows, initialize_layouts)
2389 (tui_new_layout_command): Don't use hard-coded window names.
2390
2391 2020-06-16 Tom Tromey <tom@tromey.com>
2392
2393 PR tui/25348:
2394 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2395 tui_initialize_readline. Only run once. Call rl_initialize.
2396 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2397 tui_initialize_readline.
2398 * tui/tui-io.c (tui_setup_io): Call
2399 tui_ensure_readline_initialized.
2400 * tui/tui-interp.c (tui_interp::init): Update.
2401
2402 2020-06-16 Tom Tromey <tom@tromey.com>
2403
2404 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2405 Also preserve the status window.
2406
2407 2020-06-16 Tom Tromey <tom@tromey.com>
2408
2409 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2410 where m_window==nullptr.
2411
2412 2020-06-15 Tom Tromey <tromey@adacore.com>
2413
2414 * windows-nat.c (windows_nat::handle_output_debug_string):
2415 Update.
2416 (windows_nat::handle_ms_vc_exception): Update.
2417 * target.h (target_read_string): Change API.
2418 * target.c (target_read_string): Change API.
2419 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2420 Update.
2421 * solib-frv.c (frv_current_sos): Update.
2422 * solib-dsbt.c (dsbt_current_sos): Update.
2423 * solib-darwin.c (darwin_current_sos): Update.
2424 * linux-thread-db.c (inferior_has_bug): Update.
2425 * expprint.c (print_subexp_standard): Update.
2426 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2427 (ada_exception_message_1): Update.
2428
2429 2020-06-15 Tom Tromey <tromey@adacore.com>
2430
2431 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2432
2433 2020-06-15 Tom Tromey <tromey@adacore.com>
2434
2435 * valprint.c (read_string): Update comment.
2436 * target.c (MIN): Remove.
2437 (target_read_string): Rewrite.
2438
2439 2020-06-15 Tom Tromey <tromey@adacore.com>
2440
2441 * corefile.c (read_memory_string): Remove.
2442 * ada-valprint.c (ada_value_print_ptr): Update.
2443 * ada-lang.h (ada_tag_name): Change return type.
2444 * ada-lang.c (type_from_tag): Update.
2445 (ada_tag_name_from_tsd): Change return type. Use
2446 target_read_string.
2447 (ada_tag_name): Likewise.
2448 * gdbcore.h (read_memory_string): Don't declare.
2449
2450 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2451
2452 * symtab.c (rbreak_command): Ignore Windows drive colon.
2453
2454 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2455
2456 * NEWS: Mention removed GDBserver host support.
2457
2458 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2459
2460 * features/riscv/rebuild-csr-xml.sh: Updated.
2461
2462 2020-06-11 Tom Tromey <tom@tromey.com>
2463
2464 PR gdb/18318:
2465 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2466
2467 2020-06-09 Jonny Grant <jg@jguk.org>
2468 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2469
2470 * main.c (captured_main_1): Don't print new line after help.
2471 (print_gdb_help): add mailing list and IRC channel information
2472 to --help. Add new lines between items in the footer. Remove
2473 quotes around bug url.
2474
2475 2020-06-11 Keith Seitz <keiths@redhat.com>
2476
2477 PR gdb/21356
2478 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2479 Resolve typedefs for type length calculations.
2480
2481 2020-06-10 Tom de Vries <tdevries@suse.de>
2482
2483 PR ada/24713
2484 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2485 (write_psymbols): Enable .gdb_index for ada.
2486 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2487 ada.
2488
2489 2020-06-10 Tom de Vries <tdevries@suse.de>
2490
2491 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2492 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2493 namei" instead of "const char *name" argument.
2494 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2495 dw2_symtab_iter_init.
2496
2497 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2498
2499 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2500 to use type::field and field::type instead.
2501
2502 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2503
2504 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2505 to use field::type instead.
2506
2507 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2508
2509 * gdbtypes.h (struct field) <type, set_type>: New methods.
2510 Rename `type` field to...
2511 <m_type>: ... this. Change references throughout to use type or
2512 set_type methods.
2513 (FIELD_TYPE): Use field::type. Change call sites that modify
2514 the field's type to use field::set_type instead.
2515
2516 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2517
2518 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2519 to use type::index_type instead.
2520
2521 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2522
2523 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2524 methods.
2525 (TYPE_INDEX_TYPE): Use type::index_type.
2526 * gdbtypes.c (create_array_type_with_stride): Likewise.
2527
2528 2020-06-07 Tom Tromey <tom@tromey.com>
2529
2530 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2531 parameter.
2532 (generic_value_print): Update.
2533
2534 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2535
2536 Revert commit 982a38f60b0.
2537 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2538
2539 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2540
2541 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2542 avoid use after free.
2543
2544 2020-06-05 Tom de Vries <tdevries@suse.de>
2545
2546 * NEWS: Fix typos.
2547
2548 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2549
2550 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2551 the per_bfd object.
2552 (dwarf2_read_debug_names): Likewise.
2553 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2554 object when re-using a per_bfd object with an index.
2555
2556 2020-06-03 Tom de Vries <tdevries@suse.de>
2557
2558 PR symtab/26046
2559 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2560 children for C++.
2561 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2562 DW_TAG_subprogram.
2563
2564 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * ada-lang.c (ada_language_data): Delete skip_trampoline
2567 initializer.
2568 * c-lang.c (c_language_data): Likewise.
2569 (cplus_language_data): Likewise.
2570 (cplus_language::skip_trampoline): New member function.
2571 (asm_language_data): Delete skip_trampoline initializer.
2572 (minimal_language_data): Likewise.
2573 * d-lang.c (d_language_data): Likewise.
2574 * f-lang.c (f_language_data): Likewise.
2575 * go-lang.c (go_language_data): Likewise.
2576 * language.c (unk_lang_trampoline): Delete function.
2577 (skip_language_trampoline): Update.
2578 (unknown_language_data): Delete skip_trampoline initializer.
2579 (auto_language_data): Likewise.
2580 * language.h (language_data): Delete skip_trampoline field.
2581 (language_defn::skip_trampoline): New function.
2582 * m2-lang.c (m2_language_data): Delete skip_trampoline
2583 initializer.
2584 * objc-lang.c (objc_skip_trampoline): Delete function, move
2585 implementation to objc_language::skip_trampoline.
2586 (objc_language_data): Delete skip_trampoline initializer.
2587 (objc_language::skip_trampoline): New member function with
2588 implementation from objc_skip_trampoline.
2589 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2590 initializer.
2591 * p-lang.c (pascal_language_data): Likewise.
2592 * rust-lang.c (rust_language_data): Likewise.
2593
2594 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2595
2596 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2597 (ada_language::demangle): New member function.
2598 * c-lang.c (c_language_data): Delete la_demangle initializer.
2599 (cplus_language_data): Delete la_demangle initializer.
2600 (cplus_language::demangle): New member function.
2601 (asm_language_data): Delete la_demangle initializer.
2602 (minimal_language_data): Delete la_demangle initializer.
2603 * d-lang.c (d_language_data): Delete la_demangle initializer.
2604 (d_language::demangle): New member function.
2605 * f-lang.c (f_language_data): Delete la_demangle initializer.
2606 (f_language::demangle): New member function.
2607 * go-lang.c (go_language_data): Delete la_demangle initializer.
2608 (go_language::demangle): New member function.
2609 * language.c (language_demangle): Update.
2610 (unk_lang_demangle): Delete.
2611 (unknown_language_data): Delete la_demangle initializer.
2612 (unknown_language::demangle): New member function.
2613 (auto_language_data): Delete la_demangle initializer.
2614 (auto_language::demangle): New member function.
2615 * language.h (language_data): Delete la_demangle field.
2616 (language_defn::demangle): New function.
2617 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2618 * objc-lang.c (objc_language_data): Delete la_demangle
2619 initializer.
2620 (objc_language::demangle): New member function.
2621 * opencl-lang.c (opencl_language_data): Delete la_demangle
2622 initializer.
2623 * p-lang.c (pascal_language_data): Likewise.
2624 * rust-lang.c (rust_language_data): Likewise.
2625 (rust_language::demangle): New member function.
2626
2627 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2628
2629 * ada-lang.c (ada_language_data): Delete la_print_type
2630 initializer.
2631 (ada_language::print_type): New member function.
2632 * c-lang.c (c_language_data): Delete la_print_type initializer.
2633 (c_language::print_type): New member function.
2634 (cplus_language_data): Delete la_print_type initializer.
2635 (cplus_language::print_type): New member function.
2636 (asm_language_data): Delete la_print_type initializer.
2637 (asm_language::print_type): New member function.
2638 (minimal_language_data): Delete la_print_type initializer.
2639 (minimal_language::print_type): New member function.
2640 * d-lang.c (d_language_data): Delete la_print_type initializer.
2641 (d_language::print_type): New member function.
2642 * f-lang.c (f_language_data): Delete la_print_type initializer.
2643 (f_language::print_type): New member function.
2644 * go-lang.c (go_language_data): Delete la_print_type initializer.
2645 (go_language::print_type): New member function.
2646 * language.c (unk_lang_print_type): Delete.
2647 (unknown_language_data): Delete la_print_type initializer.
2648 (unknown_language::print_type): New member function.
2649 (auto_language_data): Delete la_print_type initializer.
2650 (auto_language::print_type): New member function.
2651 * language.h (language_data): Delete la_print_type field.
2652 (language_defn::print_type): New function.
2653 (LA_PRINT_TYPE): Update.
2654 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2655 (m2_language::print_type): New member function.
2656 * objc-lang.c (objc_language_data): Delete la_print_type
2657 initializer.
2658 (objc_language::print_type): New member function.
2659 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2660 to opencl_language::print_type.
2661 (opencl_language_data): Delete la_print_type initializer.
2662 (opencl_language::print_type): New member function, implementation
2663 from opencl_print_type.
2664 * p-lang.c (pascal_language_data): Delete la_print_type
2665 initializer.
2666 (pascal_language::print_type): New member function.
2667 * rust-lang.c (rust_print_type): Delete, implementation moved to
2668 rust_language::print_type.
2669 (rust_language_data): Delete la_print_type initializer.
2670 (rust_language::print_type): New member function, implementation
2671 from rust_print_type.
2672
2673 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2674
2675 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2676 implementation moves to...
2677 (ada_language::sniff_from_mangled_name): ...here. Update return
2678 type.
2679 (ada_language_data): Delete la_sniff_from_mangled_name
2680 initializer.
2681 * c-lang.c (c_language_data): Likewise.
2682 (cplus_language_data): Likewise.
2683 (cplus_language::sniff_from_mangled_name): New member function,
2684 implementation taken from gdb_sniff_from_mangled_name.
2685 (asm_language_data): Delete la_sniff_from_mangled_name
2686 initializer.
2687 (minimal_language_data): Likewise.
2688 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2689 implementation moves to cplus_language::sniff_from_mangled_name.
2690 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2691 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2692 moves to...
2693 (d_language::sniff_from_mangled_name): ...here.
2694 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2695 * f-lang.c (f_language_data): Likewise.
2696 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2697 moves to...
2698 (go_language::sniff_from_mangled_name): ...here.
2699 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2700 * language.c (language_sniff_from_mangled_name): Delete.
2701 (unknown_language_data): Delete la_sniff_from_mangled_name
2702 initializer.
2703 (auto_language_data): Likewise.
2704 * language.h (language_data): Delete la_sniff_from_mangled_name
2705 field.
2706 (language_defn::sniff_from_mangled_name): New function.
2707 (language_sniff_from_mangled_name): Delete declaration.
2708 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2709 field.
2710 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2711 implementation moves to...
2712 (objc_language::sniff_from_mangled_name): ...here.
2713 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2714 * opencl-lang.c (opencl_language_data): Likewise.
2715 * p-lang.c (pascal_language_data): Likewise.
2716 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2717 implementation moves to...
2718 (rust_language::sniff_from_mangled_name): ...here.
2719 (rust_language_data): Delete la_sniff_from_mangled_name
2720 initializer.
2721 * symtab.c (symbol_find_demangled_name): Call
2722 sniff_from_mangled_name member function.
2723
2724 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2725
2726 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2727 initializer.
2728 * c-lang.c (c_language_data): Likewise.
2729 (cplus_language_data): Likewise.
2730 (cplus_language::search_name_hash): New member function.
2731 (asm_language_data): Delete la_search_name_hash initializer.
2732 (minimal_language_data): Likewise.
2733 * d-lang.c (d_language_data): Likewise.
2734 * dictionary.c (default_search_name_hash): Rename to...
2735 (language_defn::search_name_hash): ...this.
2736 * f-lang.c (f_language_data): Likewise.
2737 (f_language::search_name_hash): New member function.
2738 * go-lang.c (go_language_data): Delete la_search_name_hash
2739 initializer.
2740 * language.c (unknown_language_data): Likewise.
2741 (auto_language_data): Likewise.
2742 * language.h (struct language_data): Delete la_search_name_hash
2743 field.
2744 (language_defn::search_name_hash): Declare new member function.
2745 (default_search_name_hash): Delete declaration.
2746 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2747 initializer.
2748 * objc-lang.c (objc_language_data): Likewise.
2749 * opencl-lang.c (opencl_language_data): Likewise.
2750 * p-lang.c (pascal_language_data): Likewise.
2751 * rust-lang.c (rust_language_data): Likewise.
2752 * symtab.c (search_name_hash): Update call.
2753
2754 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2755
2756 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2757 initializer.
2758 * c-lang.c (class compile_instance): Declare.
2759 (c_language_data): Delete la_get_compile_instance initializer.
2760 (c_language::get_compile_instance): New member function.
2761 (cplus_language_data): Delete la_get_compile_instance initializer.
2762 (cplus_language::get_compile_instance): New member function.
2763 (asm_language_data): Delete la_get_compile_instance initializer.
2764 (minimal_language_data): Likewise.
2765 * c-lang.h (c_get_compile_context): Update comment.
2766 (cplus_get_compile_context): Update comment.
2767 * compile/compile.c (compile_to_object): Update calls, don't rely
2768 on function pointer being NULL.
2769 * d-lang.c (d_language_data): Delete la_get_compile_instance
2770 initializer.
2771 * f-lang.c (f_language_data): Likewise.
2772 * go-lang.c (go_language_data): Likewise.
2773 * language.c (unknown_language_data): Likewise.
2774 (auto_language_data): Likewise.
2775 * language.h (language_data): Delete la_get_compile_instance field.
2776 (language_defn::get_compile_instance): New member function.
2777 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2778 initializer.
2779 * objc-lang.c (objc_language_data): Likewise.
2780 * opencl-lang.c (opencl_language_data): Likewise.
2781 * p-lang.c (pascal_language_data): Likewise.
2782 * rust-lang.c (rust_language_data): Likewise.
2783
2784 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2785
2786 * ada-lang.c (ada_add_all_symbols): Update comment.
2787 (ada_iterate_over_symbols): Delete, move implementation to...
2788 (ada_language::iterate_over_symbols): ...here, a new member
2789 function, rewrite to use range based for loop.
2790 (ada_language_data): Delete la_iterate_over_symbols initializer.
2791 * c-lang.c (c_language_data): Likewise.
2792 (cplus_language_data): Likewise.
2793 (asm_language_data): Likewise.
2794 (minimal_language_data): Likewise.
2795 * d-lang.c (d_language_data): Likewise.
2796 * f-lang.c (f_language_data): Likewise.
2797 * go-lang.c (go_language_data): Likewise.
2798 * language.c (unknown_language_data): Likewise.
2799 (auto_language_data): Likewise.
2800 * language.h (language_data): Delete la_iterate_over_symbols field.
2801 (language_defn::iterate_over_symbols): New member function.
2802 (LA_ITERATE_OVER_SYMBOLS): Update.
2803 * linespec.c (iterate_over_all_matching_symtabs): Update.
2804 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2805 initializer.
2806 * objc-lang.c (objc_language_data): Likewise.
2807 * opencl-lang.c (opencl_language_data): Likewise.
2808 * p-lang.c (pascal_language_data): Likewise.
2809 * rust-lang.c (rust_language_data): Likewise.
2810
2811 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2812
2813 * ada-lang.c (ada_language_data): Delete
2814 la_lookup_transparent_type initializer.
2815 * c-lang.c (c_language_data): Likewise.
2816 (cplus_language_data): Likewise.
2817 (cplus_language::lookup_transparent_type): New member function.
2818 (asm_language_data): Delete la_lookup_transparent_type
2819 initializer.
2820 (minimal_language_data): Likewise.
2821 * d-lang.c (d_language_data): Likewise.
2822 * f-lang.c (f_language_data): Likewise.
2823 * go-lang.c (go_language_data): Likewise.
2824 * language.c (unknown_language_data): Likewise.
2825 (auto_language_data): Likewise.
2826 * language.h (struct language_data): Delete
2827 la_lookup_transparent_type field.
2828 (language_defn::lookup_transparent_type): New member function.
2829 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2830 initializer.
2831 * objc-lang.c (objc_language_data): Likewise.
2832 * opencl-lang.c (opencl_language_data): Likewise.
2833 * p-lang.c (pascal_language_data): Likewise.
2834 * rust-lang.c (rust_language_data): Likewise.
2835 * symtab.c (symbol_matches_domain): Update call.
2836
2837 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2838
2839 * ada-lang.c (ada_language_arch_info): Delete function, move
2840 implementation to...
2841 (ada_language::language_arch_info): ...here, a new member
2842 function.
2843 (ada_language_data): Delete la_language_arch_info.
2844 * c-lang.c (c_language_data): Likewise.
2845 (c_language::language_arch_info): New member function.
2846 (cplus_language_arch_info): Delete function, move
2847 implementation to...
2848 (cplus_language::language_arch_info): ...here, a new member
2849 function.
2850 (cplus_language_data): Delete la_language_arch_info.
2851 (asm_language_data): Likewise.
2852 (asm_language::language_arch_info): New member function.
2853 (minimal_language_data): Delete la_language_arch_info.
2854 (minimal_language::language_arch_info): New member function.
2855 * d-lang.c (d_language_arch_info): Delete function, move
2856 implementation to...
2857 (d_language::language_arch_info): ...here, a new member
2858 function.
2859 (d_language_data): Delete la_language_arch_info.
2860 * f-lang.c (f_language_arch_info): Delete function, move
2861 implementation to...
2862 (f_language::language_arch_info): ...here, a new member
2863 function.
2864 (f_language_data): Delete la_language_arch_info.
2865 * go-lang.c (go_language_arch_info): Delete function, move
2866 implementation to...
2867 (go_language::language_arch_info): ...here, a new member
2868 function.
2869 (go_language_data): Delete la_language_arch_info.
2870 * language.c (unknown_language_data): Likewise.
2871 (unknown_language::language_arch_info): New member function.
2872 (auto_language_data): Delete la_language_arch_info.
2873 (auto_language::language_arch_info): New member function.
2874 (language_gdbarch_post_init): Update call to
2875 la_language_arch_info.
2876 * language.h (language_data): Delete la_language_arch_info
2877 function pointer.
2878 (language_defn::language_arch_info): New function.
2879 * m2-lang.c (m2_language_arch_info): Delete function, move
2880 implementation to...
2881 (m2_language::language_arch_info): ...here, a new member
2882 function.
2883 (m2_language_data): Delete la_language_arch_info.
2884 * objc-lang.c (objc_language_arch_info): Delete function, move
2885 implementation to...
2886 (objc_language::language_arch_info): ...here, a new member
2887 function.
2888 (objc_language_data): Delete la_language_arch_info.
2889 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2890 implementation to...
2891 (opencl_language::language_arch_info): ...here, a new member
2892 function.
2893 (opencl_language_data): Delete la_language_arch_info.
2894 * p-lang.c (pascal_language_arch_info): Delete function, move
2895 implementation to...
2896 (pascal_language::language_arch_info): ...here, a new member
2897 function.
2898 (pascal_language_data): Delete la_language_arch_info.
2899 * rust-lang.c (rust_language_arch_info): Delete function, move
2900 implementation to...
2901 (rust_language::language_arch_info): ...here, a new member
2902 function.
2903 (rust_language_data): Delete la_language_arch_info.
2904
2905 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2906
2907 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2908 initializer.
2909 * c-lang.c (c_language_data): Likewise.
2910 (cplus_language_data): Likewise.
2911 (cplus_language::pass_by_reference_info): New method.
2912 (asm_language_data): Delete la_pass_by_reference initializer.
2913 (minimal_language_data): Likewise.
2914 * cp-abi.c (cp_pass_by_reference): Remove use of
2915 default_pass_by_reference.
2916 * d-lang.c (d_language_data): Likewise.
2917 * f-lang.c (f_language_data): Likewise.
2918 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2919 default_pass_by_reference.
2920 * go-lang.c (go_language_data): Likewise.
2921 * language.c (language_pass_by_reference): Update.
2922 (default_pass_by_reference): Delete.
2923 (unknown_language_data): Delete la_pass_by_reference
2924 initializer.
2925 (auto_language_data): Likewise.
2926 * language.h (struct language_data): Delete la_pass_by_reference
2927 field.
2928 (language_defn::pass_by_reference_info): New member function.
2929 (default_pass_by_reference): Delete declaration.
2930 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2931 initializer.
2932 * objc-lang.c (objc_language_data): Likewise.
2933 * opencl-lang.c (opencl_language_data): Likewise.
2934 * p-lang.c (pascal_language_data): Likewise.
2935 * rust-lang.c (rust_language_data): Likewise.
2936
2937 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2938
2939 * ada-lang.c (ada_read_var_value): Delete function, move
2940 implementation to...
2941 (ada_language::read_var_value): ...here.
2942 (ada_language_data): Delete la_read_var_value initializer.
2943 * c-lang.c (c_language_data): Likewise.
2944 (cplus_language_data): Likewise.
2945 (minimal_language_data): Likewise.
2946 * d-lang.c (d_language_data): Likewise.
2947 * f-lang.c (f_language_data): Likewise.
2948 * findvar.c (default_read_var_value): Rename to...
2949 (language_defn::read_var_value): ...this.
2950 * findvar.c (read_var_value): Update header comment, and change to
2951 call member function instead of function pointer.
2952 * go-lang.c (go_language_data): Likewise.
2953 * language.c (unknown_language_data): Delete la_read_var_value
2954 initializer.
2955 (auto_language_data): Likewise.
2956 * language.h (struct language_data): Delete la_read_var_value
2957 field.
2958 (language_defn::read_var_value): New member function.
2959 (default_read_var_value): Delete declaration.
2960 * m2-lang.c (m2_language_data): Delete la_read_var_value
2961 initializer.
2962 * objc-lang.c (objc_language_data): Likewise.
2963 * opencl-lang.c (opencl_language_data): Likewise.
2964 * p-lang.c (pascal_language_data): Likewise.
2965 * rust-lang.c (rust_language_data): Likewise.
2966 * value.h (default_read_var_value): Delete declaration.
2967
2968 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2969
2970 * ada-lang.c (ada_print_array_index): Delete function, move
2971 implementation to...
2972 (ada_language::print_array_index): ...here.
2973 (ada_language_data): Delete la_print_array_index initializer.
2974 * c-lang.c (c_language_data): Likewise.
2975 (cplus_language_data): Likewise.
2976 (minimal_language_data): Likewise.
2977 * d-lang.c (d_language_data): Likewise.
2978 * f-lang.c (f_language_data): Likewise.
2979 * go-lang.c (go_language_data): Likewise.
2980 * language.c (default_print_array_index): Delete function, move
2981 implementation to...
2982 (language_defn::print_array_index): ...here.
2983 (unknown_language_data): Delete la_print_array_index initializer.
2984 (auto_language_data): Likewise.
2985 * language.h (struct language_data): Delete la_print_array_index
2986 field.
2987 (language_defn::print_array_index): New member function.
2988 (LA_PRINT_ARRAY_INDEX): Update.
2989 (default_print_array_index): Delete declaration.
2990 * m2-lang.c (m2_language_data): Delete la_print_array_index
2991 initializer.
2992 * objc-lang.c (objc_language_data): Likewise.
2993 * opencl-lang.c (opencl_language_data): Likewise.
2994 * p-lang.c (pascal_language_data): Likewise.
2995 * rust-lang.c (rust_language_data): Likewise.
2996
2997 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2998
2999 * gdb/ada-lang.c (ada_language_defn): Convert to...
3000 (ada_language_data): ...this.
3001 (class ada_language): New class.
3002 (ada_language_defn): New static global.
3003 * gdb/c-lang.c (c_language_defn): Convert to...
3004 (c_language_data): ...this.
3005 (class c_language): New class.
3006 (c_language_defn): New static global.
3007 (cplus_language_defn): Convert to...
3008 (cplus_language_data): ...this.
3009 (class cplus_language): New class.
3010 (cplus_language_defn): New static global.
3011 (asm_language_defn): Convert to...
3012 (asm_language_data): ...this.
3013 (class asm_language): New class.
3014 (asm_language_defn): New static global.
3015 (minimal_language_defn): Convert to...
3016 (minimal_language_data): ...this.
3017 (class minimal_language): New class.
3018 (minimal_language_defn): New static global.
3019 * gdb/d-lang.c (d_language_defn): Convert to...
3020 (d_language_data): ...this.
3021 (class d_language): New class.
3022 (d_language_defn): New static global.
3023 * gdb/f-lang.c (f_language_defn): Convert to...
3024 (f_language_data): ...this.
3025 (class f_language): New class.
3026 (f_language_defn): New static global.
3027 * gdb/go-lang.c (go_language_defn): Convert to...
3028 (go_language_data): ...this.
3029 (class go_language): New class.
3030 (go_language_defn): New static global.
3031 * gdb/language.c (unknown_language_defn): Remove declaration.
3032 (current_language): Initialize to nullptr, real initialization is
3033 moved to _initialize_language.
3034 (languages): Delete global.
3035 (language_defn::languages): Define.
3036 (set_language_command): Use language_defn::languages.
3037 (set_language): Likewise.
3038 (range_error): Likewise.
3039 (language_enum): Likewise.
3040 (language_def): Likewise.
3041 (add_set_language_command): Use language_def::languages for the
3042 language list, and language_def to lookup language pointers.
3043 (skip_language_trampoline): Use language_defn::languages.
3044 (unknown_language_defn): Convert to...
3045 (unknown_language_data): ...this.
3046 (class unknown_language): New class.
3047 (unknown_language_defn): New static global.
3048 (auto_language_defn): Convert to...
3049 (auto_language_data): ...this.
3050 (class auto_language): New class.
3051 (auto_language_defn): New static global.
3052 (language_gdbarch_post_init): Use language_defn::languages.
3053 (_initialize_language): Initialize current_language.
3054 * gdb/language.h (struct language_defn): Rename to...
3055 (struct language_data): ...this.
3056 (struct language_defn): New.
3057 (auto_language_defn): Delete.
3058 (unknown_language_defn): Delete.
3059 (minimal_language_defn): Delete.
3060 (ada_language_defn): Delete.
3061 (asm_language_defn): Delete.
3062 (c_language_defn): Delete.
3063 (cplus_language_defn): Delete.
3064 (d_language_defn): Delete.
3065 (f_language_defn): Delete.
3066 (go_language_defn): Delete.
3067 (m2_language_defn): Delete.
3068 (objc_language_defn): Delete.
3069 (opencl_language_defn): Delete.
3070 (pascal_language_defn): Delete.
3071 (rust_language_defn): Delete.
3072 * gdb/m2-lang.c (m2_language_defn): Convert to...
3073 (m2_language_data): ...this.
3074 (class m2_language): New class.
3075 (m2_language_defn): New static global.
3076 * gdb/objc-lang.c (objc_language_defn): Convert to...
3077 (objc_language_data): ...this.
3078 (class objc_language): New class.
3079 (objc_language_defn): New static global.
3080 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3081 (opencl_language_data): ...this.
3082 (class opencl_language): New class.
3083 (opencl_language_defn): New static global.
3084 * gdb/p-lang.c (pascal_language_defn): Convert to...
3085 (pascal_language_data): ...this.
3086 (class pascal_language): New class.
3087 (pascal_language_defn): New static global.
3088 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3089 language pointer, update comment format.
3090 * gdb/rust-lang.c (rust_language_defn): Convert to...
3091 (rust_language_data): ...this.
3092 (class rust_language): New class.
3093 (rust_language_defn): New static global.
3094
3095 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3096
3097 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3098 member variable.
3099 <m_stmt_at_address>: New member variable.
3100 (lnp_state_machine::record_line): Don't record some lines, update
3101 tracking of is_stmt at the same address.
3102 (lnp_state_machine::lnp_state_machine): Initialise new member
3103 variables.
3104
3105 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3106
3107 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3108 "-include gnu-nat-mig.h".
3109 * gnu-nat-mig.h: New file.
3110 * gnu-nat.c: Include "gnu-nat-mig.h".
3111 (exc_server, msg_reply_server, notify_server,
3112 process_reply_server): Remove declarations.
3113
3114 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3115
3116 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3117 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3118 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3119 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3120 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3121 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3122 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3123 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3124 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3125 to gnu_nat_target class.
3126 * gnu-nat.c: Likewise.
3127 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3128 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3129 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3130 object.
3131 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3132 instead of `gnu_target'.
3133
3134 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3135
3136 * i386-gnu-tdep.c: Include "gdbcore.h"
3137 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3138 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3139 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3140 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3141 i386_gnu_sigcontext_addr): New functions
3142 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3143 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3144 tdep.
3145
3146 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3147
3148 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3149 before fork_inferior call. Avoid calling it if target_is_pushed returns
3150 true.
3151
3152 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3153
3154 * gnu-nat.h (gnu_target): New variable declaration.
3155 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3156 gnu_target.
3157 * gnu-nat.c (gnu_target): New variable.
3158 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3159 add_thread_silent, and add_thread calls.
3160 (gnu_nat_target::create_inferior): Pass gnu_target to
3161 add_thread_silent, thread_change_ptid call.
3162 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3163 call.
3164
3165 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3166
3167 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3168 (gnu_nat_target::find_memory_regions): Remove unused
3169 `old_address' variable.
3170
3171 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3172
3173 * gnu-nat.c: Include "gdbarch.h".
3174
3175 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3176
3177 * reply_mig_hack.awk (Error return): Cast function through
3178 void *, to bypass compiler function call check.
3179
3180 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3181
3182 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3183 $(srcdir)/reply_mig_hack.awk.
3184
3185 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3186
3187 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3188
3189 2020-05-30 Jonny Grant <jg@jguk.org>
3190
3191 * configure.ac (ACX_BUGURL): change bug URL to https.
3192
3193 2020-05-30 Pedro Alves <palves@redhat.com>
3194
3195 * cp-support.c (replace_typedefs_template): New.
3196 (replace_typedefs_qualified_name): Handle
3197 DEMANGLE_COMPONENT_TEMPLATE.
3198
3199 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3200
3201 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3202 dwarf2/index-cache.h, dwarf2/index-write.c,
3203 dwarf2/index-write.h, dwarf2/line-header.c,
3204 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3205 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3206 variables and fields from `dwarf2_per_objfile` to just
3207 `per_objfile` throughout.
3208
3209 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3212 <push_dwarf_reg_entry_value>: Add comment.
3213
3214 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3215 Keith Seitz <keiths@redhat.com>
3216
3217 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3218 instead of PyEval_ReleaseLock.
3219 (class gdbpy_gil): Move to earlier in file.
3220 (finalize_python): Set gdb_python_initialized.
3221 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3222 when not initialized.
3223
3224 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3225
3226 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3227 <push_dwarf_reg_entry_value>: Remove assert. Override
3228 per_objfile with caller_per_objfile.
3229
3230 2020-05-28 Tom de Vries <tdevries@suse.de>
3231
3232 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3233 PR gold/15646 workaround to symbol kind "type".
3234
3235 2020-05-27 Tom Tromey <tromey@adacore.com>
3236
3237 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3238
3239 2020-05-27 Tom Tromey <tromey@adacore.com>
3240
3241 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3242 Use htab_find_with_hash.
3243 <add_abbrev>: Remove "abbrev_number" parameter.
3244 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3245 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3246 (hash_abbrev): Add comment.
3247 (abbrev_table::lookup_abbrev): Move to header file.
3248 (abbrev_table::read): Update.
3249
3250 2020-05-27 Tom Tromey <tromey@adacore.com>
3251
3252 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3253 method.
3254 <canonical_name>: New member.
3255 <raw_name>: Rename from "name".
3256 (partial_die_info): Initialize canonical_name.
3257 (scan_partial_symbols): Check raw_name.
3258 (partial_die_parent_scope, partial_die_full_name)
3259 (add_partial_symbol, add_partial_subprogram)
3260 (add_partial_enumeration, load_partial_dies): Use "name" method.
3261 (partial_die_info::name): New method.
3262 (partial_die_info::read, guess_partial_die_structure_name)
3263 (partial_die_info::fixup): Update.
3264
3265 2020-05-27 Tom Tromey <tromey@adacore.com>
3266
3267 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3268 <get_ref_die_offset>: Inline.
3269 <get_ref_die_offset_complaint>: New method.
3270 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3271 (attribute::get_ref_die_offset_complaint): Rename from
3272 get_ref_die_offset. Just issue complaint.
3273
3274 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3275
3276 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3277
3278 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3279
3280 * exec.c (exec_file_attach): Use errno value of first openp failure.
3281
3282 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3283
3284 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3285 Don't close thread handle.
3286
3287 2020-05-27 Tom Tromey <tom@tromey.com>
3288 Simon Marchi <simon.marchi@efficios.com>
3289
3290 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3291 shared_ptr.
3292 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3293 member.
3294 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3295 dwarf2_per_bfd_objfile_data_key>: New globals.
3296 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3297 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3298 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3299 shared.
3300 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3301 short-circuit when sharing.
3302 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3303 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3304
3305 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3306
3307 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3308 to...
3309 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3310 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3311
3312 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3313
3314 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3315 build_name_components, find_name_components_bounds>:
3316 Add per_objfile parameter.
3317 (struct mapped_index) <symbol_name_at>: Likewise.
3318 (struct mapped_debug_names): Remove constructor.
3319 <dwarf2_per_objfile>: Remove field.
3320 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3321 (mapped_index_base::find_name_components_bounds,
3322 mapped_index_base::build_name_components,
3323 dw2_expand_symtabs_matching_symbol): Likewise.
3324 (class mock_mapped_index) <symbol_name_at>: Likewise.
3325 (check_match): Likewise.
3326 (check_find_bounds_finds): Likewise.
3327 (test_mapped_index_find_name_component_bounds): Update.
3328 (CHECK_MATCH): Update.
3329 (dw2_expand_symtabs_matching): Update.
3330 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3331 per_objfile parameter.
3332 <find_vec_in_debug_names>: Likewise.
3333 <m_per_objfile>: New field.
3334 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3335 parameter.
3336 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3337 (dw2_debug_names_iterator::next): Update.
3338 (dw2_debug_names_lookup_symbol): Update.
3339 (dw2_debug_names_expand_symtabs_for_function): Update.
3340 (dw2_debug_names_map_matching_symbols): Update.
3341 (dw2_debug_names_expand_symtabs_matching): Update.
3342 (dwarf2_read_debug_names): Update.
3343
3344 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3345
3346 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3347 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3348 move to dwarf2_per_objfile.
3349 <read_in_chain>: Remove.
3350 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3351 remove_all_cus, age_comp_units>: New methods.
3352 <m_dwarf2_cus>: New member.
3353 (struct dwarf2_per_cu_data) <cu>: Remove.
3354 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3355 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3356 moved to methods of dwarf2_per_objfile.
3357 (dwarf2_clear_marks): Remove.
3358 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3359 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3360 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3361 (dwarf2_per_objfile::remove_all_cus): New.
3362 (class free_cached_comp_units) <~free_cached_comp_units>:
3363 Update.
3364 (load_cu): Update.
3365 (dw2_do_instantiate_symtab): Adjust.
3366 (fill_in_sig_entry_from_dwo_entry): Adjust.
3367 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3368 (cutu_reader::cutu_reader): Likewise.
3369 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3370 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3371 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3372 and dwarf2_per_objfile::age_comp_units.
3373 (load_partial_comp_unit): Update.
3374 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3375 (process_queue): Likewise.
3376 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3377 backlink.
3378 (dwarf2_read_addr_index): Likewise.
3379 (follow_die_offset): Likewise.
3380 (dwarf2_fetch_die_loc_sect_off): Likewise.
3381 (dwarf2_fetch_constant_bytes): Likewise.
3382 (dwarf2_fetch_die_type_sect_off): Likewise.
3383 (follow_die_sig_1): Likewise.
3384 (load_full_type_unit): Likewise.
3385 (read_signatured_type): Likewise.
3386 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3387 (dwarf2_cu::~dwarf2_cu): Remove.
3388 (dwarf2_per_objfile::get_cu): New.
3389 (dwarf2_per_objfile::set_cu): New.
3390 (age_cached_comp_units): Rename to...
3391 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3392 to std::unordered_map.
3393 (free_one_cached_comp_unit): Rename to...
3394 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3395 to std::unordered_map.
3396 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3397 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3398 a dwarf2_per_objfile in data.
3399 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3400 (dwarf2_clear_marks): Remove.
3401
3402 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3403
3404 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3405 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3406 (init_tu_and_read_dwo_dies): Likewise.
3407 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3408 (cutu_reader::cutu_reader): Likewise.
3409 (load_partial_comp_unit): Likewise.
3410 (process_psymtab_comp_unit): Update.
3411 (build_type_psymtabs_1): Update.
3412 (process_skeletonless_type_unit): Update.
3413 (load_full_comp_unit): Update.
3414 (find_partial_die): Update.
3415 (dwarf2_read_addr_index): Update.
3416 (read_signatured_type): Update.
3417
3418 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3419
3420 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3421 m_header_read_in>: New fields.
3422 <get_header>: New method.
3423 * dwarf2/read.c (per_cu_header_read_in): Remove.
3424 (dwarf2_per_cu_data::get_header): New.
3425 (dwarf2_per_cu_data::addr_size): Update.
3426 (dwarf2_per_cu_data::offset_size): Update.
3427 (dwarf2_per_cu_data::ref_addr_size): Update.
3428
3429 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3430
3431 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3432 (dw2_do_instantiate_symtab): Update.
3433 (queue_and_load_all_dwo_tus): Change parameter from
3434 dwarf2_per_cu_data to dwarf2_cu.
3435 (dwarf2_fetch_die_loc_sect_off): Update.
3436 (dwarf2_fetch_constant_bytes): Update.
3437 (dwarf2_fetch_die_type_sect_off): Update.
3438
3439 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3440
3441 * dwarf2/read.c (process_full_comp_unit,
3442 process_full_type_unit): Remove per_cu, per_objfile paramters.
3443 Add dwarf2_cu parameter.
3444 (process_queue): Update.
3445
3446 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3447
3448 * dwarf2/read.c (create_cu_from_index_list): Replace
3449 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3450 (create_cus_from_index_list): Likewise.
3451 (create_cus_from_index): Likewise.
3452 (create_signatured_type_table_from_index): Likewise.
3453 (create_cus_from_debug_names_list): Likewise.
3454 (create_cus_from_debug_names): Likewise.
3455 (dwarf2_read_gdb_index): Update.
3456 (dwarf2_read_debug_names): Update.
3457
3458 2020-05-27 Tom Tromey <tom@tromey.com>
3459 Simon Marchi <simon.marchi@efficios.com>
3460
3461 * dwarf2/read.h (struct dwarf2_per_objfile)
3462 <get_type_for_signatured_type, set_type_for_signatured_type>:
3463 New methods.
3464 <m_type_map>: New member.
3465 (struct signatured_type) <type>: Remove.
3466 * dwarf2/read.c
3467 (dwarf2_per_objfile::get_type_for_signatured_type,
3468 dwarf2_per_objfile::set_type_for_signatured_type): New.
3469 (get_signatured_type): Use new methods.
3470
3471 2020-05-27 Tom Tromey <tom@tromey.com>
3472 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3475 (struct dwarf2_per_objfile) <type_units>: New member.
3476 <get_type_unit_group_unshareable>: New method.
3477 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3478 num_symtabs, symtabs>: Remove; move to
3479 type_unit_group_unshareable.
3480 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3481 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3482 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3483
3484 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * dwarf2/read.h (struct dwarf2_per_cu_data):
3487 <dwarf2_per_objfile>: Remove.
3488 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3489 dwarf2_per_objfile.
3490 (create_signatured_type_table_from_index): Likewise.
3491 (create_signatured_type_table_from_debug_names): Likewise.
3492 (create_debug_type_hash_table): Likewise.
3493 (fill_in_sig_entry_from_dwo_entry): Likewise.
3494 (create_type_unit_group): Likewise.
3495 (read_comp_units_from_section): Likewise.
3496 (create_cus_hash_table): Likewise.
3497
3498 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3499
3500 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3501 dwarf2_per_cu_data::dwarf2_per_objfile.
3502 (compute_compunit_symtab_includes): Likewise.
3503 (dwarf2_cu::start_symtab): Likewise.
3504
3505 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3506
3507 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3508 parameter.
3509 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3510 (read_namespace_alias): Update.
3511 (lookup_die_type): Update.
3512 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3513 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3514 Update.
3515 (disassemble_dwarf_expression): Update.
3516
3517 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3518
3519 * dwarf2/read.h (struct dwarf2_queue_item): Add
3520 dwarf2_per_objfile parameter, assign new parameter.
3521 <per_objfile>: New field.
3522 * dwarf2/read.c (free_one_cached_comp_unit): Add
3523 dwarf2_per_objfile parameter.
3524 (queue_comp_unit): Likewise.
3525 (dw2_do_instantiate_symtab): Update.
3526 (process_psymtab_comp_unit): Update.
3527 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3528 (process_imported_unit_die): Update.
3529 (queue_and_load_dwo_tu): Update.
3530 (follow_die_offset): Update.
3531 (follow_die_sig_1): Update.
3532
3533 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3534
3535 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3536 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3537 (read_call_site_scope): Assign per_objfile.
3538 (dwarf2_per_cu_data::objfile): Remove.
3539 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3540 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3541 dwarf2_per_objfile parameter.
3542 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3543 dwarf2_per_objfile parameter.
3544 (dwarf_expr_reg_to_entry_parameter): Add output
3545 dwarf2_per_objfile parameter.
3546 (locexpr_get_frame_base): Update.
3547 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3548 <push_dwarf_reg_entry_value>: Update.
3549 <call_site_to_target_addr>: Update.
3550 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3551 parameter.
3552 (value_of_dwarf_reg_entry): Update.
3553 (rw_pieced_value): Update.
3554 (indirect_synthetic_pointer): Update.
3555 (dwarf2_evaluate_property): Update.
3556 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3557 parameter.
3558 (locexpr_read_variable): Update.
3559 (locexpr_get_symbol_read_needs): Update.
3560 (loclist_read_variable): Update.
3561
3562 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3565 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3566 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3567 parameter.
3568 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3569 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3570 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3571 parameter.
3572 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3573 sect_variable_value): Add dwarf2_per_objfile parameter.
3574 (class dwarf_evaluate_loc_desc) <dwarf_call,
3575 dwarf_variable_value>: Update.
3576 (fetch_const_value_from_synthetic_pointer): Add
3577 dwarf2_per_objfile parameter.
3578 (fetch_const_value_from_synthetic_pointer): Update.
3579 (coerced_pieced_ref): Update.
3580 (class symbol_needs_eval_context) <dwarf_call,
3581 dwarf_variable_value>: Update.
3582 (dwarf2_compile_expr_to_ax): Update.
3583
3584 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3585
3586 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3587 parameter.
3588 (dwarf2_evaluate_loc_desc_full): Update.
3589
3590 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3591
3592 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3593 parameter.
3594 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3595 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3596 dwarf2_per_objfile parameter.
3597 (decode_debug_loc_dwo_addresses): Likewise.
3598 (dwarf2_find_location_expression): Update.
3599 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3600 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3601 parameter.
3602 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3603 parameter.
3604 (locexpr_describe_location_1): Likewise.
3605 (locexpr_describe_location): Update.
3606
3607 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3608
3609 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3610 Remove.
3611 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3612 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3613 (dwarf2_compile_property_to_c): Update.
3614 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3615 use text offset from objfile.
3616 (locexpr_tracepoint_var_ref): Update.
3617 (locexpr_generate_c_location): Update.
3618 (loclist_describe_location): Update.
3619 (loclist_tracepoint_var_ref): Update.
3620 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3621 dwarf2_per_objfile parameter.
3622 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3623 use text offset from objfile.
3624 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3625
3626 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3627
3628 * dwarf2/expr.h (struct dwarf_expr_context)
3629 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3630 <offset>: Remove.
3631 <per_objfile>: New member.
3632 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3633 dwarf2_per_objfile parameter. Don't set offset, set
3634 per_objfile.
3635 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3636 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3637 a dwarf2_per_objfile object instead of an offset.
3638 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3639 constructor.
3640 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3641 to dwarf2_expr_executor constructor. Don't set offset.
3642 (dwarf2_fetch_cfa_info): Update.
3643 (struct dwarf2_frame_cache) <text_offset>: Remove.
3644 <per_objfile>: New field.
3645 (dwarf2_frame_cache): Update.
3646 (dwarf2_frame_prev_register): Update.
3647 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3648 <dwarf_evaluate_loc_desc>: Add constructor.
3649 (dwarf2_evaluate_loc_desc_full): Update.
3650 (dwarf2_locexpr_baton_eval): Update.
3651 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3652 Add constructor.
3653 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3654
3655 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3656
3657 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3658 addr_sized_int_type>: Move to dwarf2_cu.
3659 <int_type>: Move to dwarf2_per_objfile.
3660 (struct dwarf2_per_objfile) <int_type>: Move here.
3661 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3662 addr_sized_int_type>: Move here.
3663 (read_func_scope): Update.
3664 (read_array_type): Update.
3665 (read_tag_string_type): Update.
3666 (attr_to_dynamic_prop): Update.
3667 (dwarf2_per_cu_data::int_type): Rename to...
3668 (dwarf2_per_objfile::int_type): ... this.
3669 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3670 (dwarf2_cu::addr_sized_int_type): ... this.
3671 (read_subrange_type): Update.
3672 (dwarf2_per_cu_data::addr_type): Rename to...
3673 (dwarf2_cu::addr_type): ... this.
3674 (set_die_type): Update.
3675
3676 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3677
3678 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3679 data through per_cu->cu.
3680
3681 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3682
3683 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3684 dwarf2_per_cu_data parameter fo dwarf2_cu.
3685 (lookup_dwo_type_unit): Likewise.
3686 (read_cutu_die_from_dwo): Likewise.
3687 (lookup_dwo_unit): Likewise.
3688 (open_and_init_dwo_file): Likewise.
3689 (lookup_dwo_cutu): Likewise.
3690 (lookup_dwo_comp_unit): Likewise.
3691 (lookup_dwo_type_unit): Likewise.
3692 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3693 (cutu_reader::cutu_reader): Update.
3694
3695 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3696
3697 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3698 parameter.
3699 (process_full_type_unit): Likewise.
3700 (process_queue): Update.
3701
3702 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3703
3704 * dwarf2/read.c (recursively_compute_inclusions): Add
3705 dwarf2_per_objfile parameter.
3706 (compute_compunit_symtab_includes): Likewise.
3707 (process_cu_includes): Update.
3708
3709 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3710
3711 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3712 parameter.
3713 (create_type_unit_group): Update.
3714 (process_psymtab_comp_unit_reader): Update.
3715 (build_type_psymtabs_reader): Update.
3716
3717 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3718
3719 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3720 object through m_this_cu->cu.
3721
3722 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3723
3724 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3725 the info parameter.
3726 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3727
3728 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3729
3730 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3731 per_objfile parameter.
3732 (load_full_type_unit): Add per_objfile parameter.
3733 (read_signatured_type): Likewise.
3734 (load_full_comp_unit): Likewise.
3735 (load_cu): Likewise.
3736 (dw2_do_instantiate_symtab): Likewise.
3737 (dw2_get_file_names): Likewise.
3738 (dw2_map_symtabs_matching_filename): Update.
3739 (dw_expand_symtabs_matching_file_matcher): Update.
3740 (dw2_map_symbol_filenames): Update.
3741 (process_psymtab_comp_unit): Add per_objfile parameter.
3742 (build_type_psymtabs_1): Update.
3743 (process_skeletonless_type_unit): Update.
3744 (dwarf2_build_psymtabs_hard): Update.
3745 (load_partial_comp_unit): Add per_objfile parameter.
3746 (scan_partial_symbols): Update.
3747 (load_full_comp_unit): Add per_objfile parameter.
3748 (process_imported_unit_die): Update.
3749 (create_cus_hash_table): Update.
3750 (find_partial_die): Update.
3751 (dwarf2_read_addr_index): Update.
3752 (follow_die_offset): Update.
3753 (dwarf2_fetch_die_loc_sect_off): Update.
3754 (dwarf2_fetch_constant_bytes): Update.
3755 (dwarf2_fetch_die_type_sect_off): Update.
3756 (follow_die_sig_1): Update.
3757 (load_full_type_unit): Add per_objfile parameter.
3758 (read_signatured_type): Likewise.
3759
3760 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3761
3762 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3763 of objfile_name.
3764
3765 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3766
3767 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3768 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3769 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3770 field.
3771 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3772 (create_cus_from_index): Update.
3773 (dwarf2_read_gdb_index): Update.
3774 (create_cus_from_debug_names): Update.
3775 (dwarf2_read_debug_names): Update.
3776 (get_abbrev_section_for_cu): Update.
3777 (create_all_comp_units): Update.
3778 (read_attribute_value): Update.
3779 (get_debug_line_section): Update.
3780 * dwarf2/index-cache.c (index_cache::store): Update.
3781 * dwarf2/index-write.c (save_gdb_index_command): Update.
3782 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3783
3784 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3785
3786 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3787 member.
3788 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3789 dwarf2_per_cu_data::per_bfd.
3790 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3791 (create_type_unit_group): Likewise.
3792 (queue_comp_unit): Remove reference to
3793 per_cu->dwarf2_per_objfile.
3794 (maybe_queue_comp_unit): Likewise.
3795 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3796 (create_cus_hash_table): Assign new field.
3797
3798 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3799
3800 * dwarf2/read.c: Replace
3801 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3802 dwarf2_cu->per_objfile throughout.
3803
3804 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3805
3806 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3807 parameter, don't use per_cu->dwarf2_per_objfile.
3808 (dw2_instantiate_symtab): Likewise.
3809 (dw2_find_last_source_symtab): Update.
3810 (dw2_map_expand_apply): Update.
3811 (dw2_lookup_symbol): Update.
3812 (dw2_expand_symtabs_for_function): Update.
3813 (dw2_expand_all_symtabs): Update.
3814 (dw2_expand_symtabs_with_fullname): Update.
3815 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3816 don't use per_cu->dwarf2_per_objfile.
3817 (dw2_expand_marked_cus): Update.
3818 (dw2_find_pc_sect_compunit_symtab): Update.
3819 (dw2_debug_names_lookup_symbol): Update.
3820 (dw2_debug_names_expand_symtabs_for_function): Update.
3821 (dw2_debug_names_map_matching_symbols): Update.
3822 (dwarf2_psymtab::expand_psymtab): Update.
3823
3824 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3825
3826 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3827 <per_objfile>: New member.
3828 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3829 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3830 call to dwarf2_cu.
3831 (cutu_reader::cutu_reader): Update.
3832 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3833
3834 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3835
3836 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3837 struct dwarf2_per_objfile.
3838 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3839 dwarf2_per_bfd.
3840 * dwarf2/read.c (set_die_type): Update.
3841 (get_die_type_at_offset): Update.
3842
3843 2020-05-27 Tom Tromey <tom@tromey.com>
3844 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3847 method.
3848 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3849 get_symtab, set_symtab>: New methods.
3850 <m_symtabs>: New field.
3851 (struct dwarf2_psymtab): Derive from partial_symtab.
3852 <readin_p, get_compunit_symtab>: Declare methods.
3853 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3854 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3855 New methods.
3856 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3857 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3858 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3859 (dw2_symtab_iter_next, dw2_print_stats)
3860 (dw2_expand_symtabs_with_fullname)
3861 (dw2_expand_symtabs_matching_one)
3862 (dw_expand_symtabs_matching_file_matcher)
3863 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3864 (dw2_debug_names_iterator::next)
3865 (dw2_debug_names_map_matching_symbols)
3866 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3867 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3868 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3869 New methods.
3870 (get_compunit_symtab, process_full_comp_unit)
3871 (process_full_type_unit): Update.
3872 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3873
3874 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3875
3876 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3877 then introduce a new dwarf2_per_objfile type.
3878 <read_line_string>: Move to the new dwarf2_per_objfile type.
3879 <objfile>: Likewise.
3880 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3881 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3882 dwarf2_per_objfile->per_bfd.
3883 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3884 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3885 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3886 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3887 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3888 (dwarf2_per_objfile::locate_sections): Rename to...
3889 (dwarf2_per_bfd::locate_sections): ... this.
3890 (dwarf2_per_objfile::get_cutu): Rename to...
3891 (dwarf2_per_bfd::get_cutu): ... this.
3892 (dwarf2_per_objfile::get_cu): Rename to...
3893 (dwarf2_per_bfd::get_cu): ... this.
3894 (dwarf2_per_objfile::get_tu): Rename to...
3895 (dwarf2_per_bfd::get_tu): ... this.
3896 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3897 (dwarf2_per_bfd::allocate_per_cu): ... this.
3898 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3899 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3900 (get_gdb_index_contents_ftype): Change parameter from
3901 dwarf2_per_objfile to dwarf2_per_bfd.
3902 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3903 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3904
3905 2020-05-27 Tom Tromey <tom@tromey.com>
3906 Simon Marchi <simon.marchi@efficios.com>
3907
3908 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3909 (allocate_piece_closure): Set "per_objfile" member.
3910 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3911 (locexpr_describe_location, loclist_describe_location): Use new
3912 member.
3913 * dwarf2/read.c (read_call_site_scope)
3914 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3915 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3916 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3917 handle_data_member_location): Set per_objfile member.
3918 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3919 member.
3920 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3921
3922 2020-05-27 Tom Tromey <tom@tromey.com>
3923
3924 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3925 allocate_signatured_type>: Declare new methods.
3926 <m_num_psymtabs>: New member.
3927 (struct dwarf2_per_cu_data) <index>: New member.
3928 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3929 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3930 (create_cu_from_index_list): Use allocate_per_cu.
3931 (create_signatured_type_table_from_index)
3932 (create_signatured_type_table_from_debug_names)
3933 (create_debug_type_hash_table, add_type_unit)
3934 (read_comp_units_from_section): Use allocate_signatured_type.
3935
3936 2020-05-27 Tom Tromey <tom@tromey.com>
3937
3938 * psymtab.c (partial_map_expand_apply)
3939 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3940 (psym_lookup_global_symbol_language)
3941 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3942 (psym_print_stats, psym_expand_symtabs_for_function)
3943 (psym_map_symbol_filenames, psym_map_matching_symbols)
3944 (psym_expand_symtabs_matching)
3945 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3946 (maintenance_check_psymtabs): Update.
3947 * psympriv.h (struct partial_symtab) <readin_p,
3948 get_compunit_symtab>: Add objfile parameter.
3949 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3950 Likewise.
3951 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3952 get_compunit_symtab>: Likewise.
3953 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3954
3955 2020-05-27 Tom Tromey <tom@tromey.com>
3956
3957 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3958 member.
3959 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3960 (create_cu_from_index_list)
3961 (create_signatured_type_table_from_index)
3962 (create_signatured_type_table_from_debug_names)
3963 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3964 (dwarf2_create_include_psymtab)
3965 (create_debug_type_hash_table, add_type_unit)
3966 (create_type_unit_group, read_comp_units_from_section)
3967 (dwarf2_compute_name, create_cus_hash_table)
3968 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3969 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3970 obstack.
3971 (dw2_get_real_path): Likewise. Change argument to
3972 dwarf2_per_objfile.
3973
3974 2020-05-27 Luis Machado <luis.machado@linaro.org>
3975
3976 PR tdep/26000
3977 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3978 for ldrd (immediate).
3979
3980 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3981
3982 * command.h: Add comment giving the name of class_tui.
3983 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3984 create the fake command for the help for class_tui.
3985
3986 2020-05-26 Tom Tromey <tromey@adacore.com>
3987
3988 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3989 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3990 (val_atr): New function.
3991 (value_val_atr): Use it.
3992 * ada-valprint.c (print_optional_low_bound): Change low bound
3993 handling for enums.
3994 (val_print_packed_array_elements): Don't call discrete_position.
3995 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3996 discrete_position for enum types.
3997 * language.c (default_print_array_index): Change type.
3998 * language.h (struct language_defn) <la_print_array_index>: Add
3999 index_type parameter, change type of index_value.
4000 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4001 (default_print_array_index): Update.
4002 * valprint.c (maybe_print_array_index): Don't call
4003 value_from_longest. Update.
4004 (value_print_array_elements): Don't call discrete_position.
4005
4006 2020-05-26 Tom Tromey <tromey@adacore.com>
4007
4008 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4009 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4010
4011 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4012
4013 PR gdb/13519
4014 * avr-tdep.c (avr_integer_to_address): Return data or code
4015 address accordingly to the second 'type' argument of the
4016 function.
4017
4018 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4019
4020 * infcmd.c, inferior.h: (construct_inferior_arguments):
4021 Moved function from here to gdbsupport/common-inferior.{h,cc}
4022
4023 2020-05-23 Tom Tromey <tom@tromey.com>
4024
4025 Revert commit eca1f90c:
4026 * NEWS: Remove entry for completion styling.
4027 * completer.c (_rl_completion_prefix_display_length): Move
4028 declaration later.
4029 (gdb_fnprint): Revert.
4030 (gdb_display_match_list_1): Likewise.
4031 * cli/cli-style.c (completion_prefix_style)
4032 (completion_difference_style, completion_suffix_style): Remove.
4033 (_initialize_cli_style): Revert.
4034 * cli/cli-style.h (completion_prefix_style)
4035 (completion_difference_style, completion_suffix_style): Don't
4036 declare.
4037
4038 2020-05-24 Pedro Alves <palves@redhat.com>
4039
4040 * symtab.c (completion_list_add_name): Return boolean indication
4041 of whether the symbol matched.
4042 (completion_list_add_symbol): Don't try to remove C++ aliases if
4043 the symbol didn't match in the first place.
4044 * symtab.h (completion_list_add_name): Return bool.
4045
4046 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4047
4048 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4049 type::field.
4050
4051 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4052
4053 GDB 9.2 released.
4054
4055 2020-05-23 Tom Tromey <tom@tromey.com>
4056
4057 * NEWS: Add entry for completion styling.
4058 * completer.c (_rl_completion_prefix_display_length): Move
4059 declaration earlier.
4060 (gdb_fnprint): Use completion_style.
4061 (gdb_display_match_list_1): Likewise.
4062 * cli/cli-style.c (completion_prefix_style)
4063 (completion_difference_style, completion_suffix_style): New
4064 globals.
4065 (_initialize_cli_style): Register new globals.
4066 * cli/cli-style.h (completion_prefix_style)
4067 (completion_difference_style, completion_suffix_style): Declare.
4068
4069 2020-05-23 Pedro Alves <palves@redhat.com>
4070
4071 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4072 (parse_escape): Use ISDIGIT instead of isdigit.
4073 (puts_debug): Use gdb_isprint instead of isprint.
4074 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4075 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4076 ISSPACE instead of isspace.
4077 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4078 instead of isspace.
4079 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4080 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4081 instead of isxdigit and ISDIGIT instead of isdigit.
4082
4083 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4084
4085 * gdbtypes.h (struct type) <field>: New method.
4086 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4087 or type::field.
4088
4089 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4090
4091 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4092 (TYPE_FIELDS): Use type::fields. Change all call sites that
4093 modify the propery to use type::set_fields instead.
4094
4095 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4096
4097 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4098 type::num_fields instead.
4099
4100 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4103 methods.
4104 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4105 that modify the number of fields to use type::set_num_fields
4106 instead.
4107
4108 2020-05-22 Tom Tromey <tromey@adacore.com>
4109
4110 * compile/compile-object-load.h (munmap_list_free): Don't
4111 declare.
4112
4113 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4114
4115 * annotate.c (annotate_source_line): Update return type, add call
4116 to update current symtab and line.
4117 * annotate.h (annotate_source_line): Update return type, and
4118 extend header comment.
4119 * source.c (info_line_command): Check annotation_level before
4120 calling annotate_source_line.
4121 * stack.c (print_frame_info): If calling annotate_source_line
4122 returns true, then don't print any other source line information.
4123
4124 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4127
4128 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4129
4130 * coffread.c (patch_type): Remove NULL check before xfree.
4131 * corefile.c (set_gnutarget): Likewise.
4132 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4133 * exec.c (build_section_table): Likewise.
4134 * remote.c (remote_target::pass_signals): Likewise.
4135 * utils.c (n_spaces): Likewise.
4136 * cli/cli-script.c (document_command): Likewise.
4137 * i386-windows-tdep.c (core_process_module_section): Likewise.
4138 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4139
4140 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4141
4142 * symfile.c (reread_symbols): Clear objfile's section_offsets
4143 vector and section indices, re-compute them by calling
4144 sym_offsets.
4145
4146 2020-05-20 Tom Tromey <tromey@adacore.com>
4147
4148 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4149 (desc_one_bound, desc_index_type): Compute field name.
4150
4151 2020-05-20 Tom de Vries <tdevries@suse.de>
4152
4153 PR symtab/25833
4154 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4155
4156 2020-05-20 Alan Modra <amodra@gmail.com>
4157
4158 PR 25993
4159 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4160 bfd_set_filename.
4161 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4162 passed to bfd_set_filename.
4163 * symfile-mem.c (add_vsyscall_page): Likewise for string
4164 passed to symbol_file_add_from_memory.
4165 (symbol_file_add_from_memory): Make name param a const char* and
4166 don't strdup.
4167
4168 2020-05-20 Alan Modra <amodra@gmail.com>
4169
4170 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4171 rather than accessing bfd->filename directly.
4172 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4173 and use bfd_section_name.
4174 * dwarf2/frame.c (decode_frame_entry): Likewise.
4175 * exec.c (exec_set_section_address): Likewise.
4176 * solib-aix.c (solib_aix_bfd_open): Likewise.
4177 * stap-probe.c (get_stap_base_address): Likewise.
4178 * symfile.c (reread_symbols): Likewise.
4179
4180 2020-05-19 Tom Tromey <tromey@adacore.com>
4181
4182 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4183
4184 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4185
4186 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4187
4188 2020-05-19 Pedro Alves <palves@redhat.com>
4189
4190 * NEWS (set exec-file-mismatch): Adjust entry.
4191 * exec.c: Include "build-id.h".
4192 (validate_exec_file): Try to match build IDs instead of filenames.
4193 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4194 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4195 and pass down 'warn_if_slow'.
4196 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4197 gdb_bfd_open_closure to pass it down.
4198 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4199
4200 2020-05-19 Pedro Alves <palves@redhat.com>
4201
4202 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4203 * target.c (target_fileio_open_1): Rename to target_fileio_open
4204 and make extern. Use bool.
4205 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4206 (target_fileio_read_alloc_1): Adjust.
4207 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4208 (target_fileio_open_warn_if_slow): Delete declaration.
4209
4210 2020-05-19 Pedro Alves <palves@redhat.com>
4211
4212 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4213 Adjust all callers.
4214
4215 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4216
4217 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4218 whether disp is negative.
4219
4220 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4221
4222 * symfile.h (struct symfile_segment_data)
4223 <~symfile_segment_data>: Remove.
4224 <segment_info>: Change to std::vector.
4225 * symfile.c (default_symfile_segments): Update.
4226 * elfread.c (elf_symfile_segments): Update.
4227
4228 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4229
4230 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4231 <segments>: New.
4232 <segment_bases, segment_sizes>: Remove.
4233 * symfile.c (default_symfile_segments): Update.
4234 * elfread.c (elf_symfile_segments): Update.
4235 * remote.c (remote_target::get_offsets): Update.
4236 * solib-target.c (solib_target_relocate_section_addresses):
4237 Update.
4238
4239 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4240
4241 * symfile.h (struct symfile_segment_data): Initialize fields.
4242 <~symfile_segment_data>: Add.
4243 (symfile_segment_data_up): New.
4244 (struct sym_fns) <sym_segments>: Return a
4245 symfile_segment_data_up.
4246 (default_symfile_segments): Return a symfile_segment_data_up.
4247 (free_symfile_segment_data): Remove.
4248 (get_symfile_segment_data): Return a symfile_segment_data_up.
4249 * symfile.c (default_symfile_segments): Likewise.
4250 (get_symfile_segment_data): Likewise.
4251 (free_symfile_segment_data): Remove.
4252 (symfile_find_segment_sections): Update.
4253 * elfread.c (elf_symfile_segments): Return a
4254 symfile_segment_data_up.
4255 * remote.c (remote_target::get_offsets): Update.
4256 * solib-target.c (solib_target_relocate_section_addresses):
4257 Update.
4258 * symfile-debug.c (debug_sym_segments): Return a
4259 symfile_segment_data_up.
4260
4261 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4262
4263 PR build/25981
4264 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4265 Hardcode register numbers.
4266
4267 PR build/25981
4268 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4269 procfs_find_LDT_entry): Remove.
4270 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4271 procfs_find_LDT_entry): Remove.
4272 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4273 Remove.
4274
4275 2020-05-17 Pedro Alves <palves@redhat.com>
4276 Andrew Burgess <andrew.burgess@embecosm.com>
4277 Keno Fischer <keno@juliacomputing.com>
4278
4279 PR gdb/25741
4280 * breakpoint.c (build_target_condition_list): Update comments.
4281 (build_target_command_list): Update comments and skip matching
4282 locations.
4283 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4284 a separate function. Simplify "set breakpoint auto-hw off"
4285 handling.
4286 (insert_breakpoints): Update comment.
4287 (tracepoint_locations_match): New parameter. For breakpoints,
4288 compare location types too, if the caller wants to.
4289 (handle_automatic_hardware_breakpoints): New functions.
4290 (bp_location_is_less_than): Also sort by location type and
4291 hardware breakpoint length.
4292 (update_global_location_list): Handle "set breakpoint auto-hw on"
4293 here.
4294 (update_breakpoint_locations): Ask breakpoint_locations_match to
4295 ignore location types.
4296
4297 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4298
4299 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4300 type::name instead.
4301
4302 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4303
4304 * gdbtypes.h (struct type) <name, set_name>: New methods.
4305 (TYPE_CODE): Use type::name. Change all call sites used to set
4306 the name to use type::set_name instead.
4307
4308 2020-05-16 Tom Tromey <tom@tromey.com>
4309
4310 * top.c (quit_force): Update.
4311 * infrun.c (handle_no_resumed): Update.
4312 * top.h (all_uis): New function.
4313 (ALL_UIS): Remove.
4314
4315 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4316
4317 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4318
4319 2020-05-16 Pedro Alves <palves@redhat.com>
4320
4321 * ia64-linux-nat.c
4322 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4323 Declare method.
4324 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4325
4326 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4327
4328 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4329 (sparc64_adi_info): Likewise.
4330
4331 2020-05-15 Tom Tromey <tom@tromey.com>
4332
4333 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4334 block_objfile.
4335 (lookup_objfile_from_block): Remove.
4336 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4337 (lookup_global_symbol): Use block_objfile.
4338 * symtab.h (lookup_objfile_from_block): Don't declare.
4339 * printcmd.c (clear_dangling_display_expressions): Use
4340 block_objfile.
4341 * parse.c (operator_check_standard): Use block_objfile.
4342
4343 2020-05-15 Tom Tromey <tom@tromey.com>
4344
4345 * language.c (language_alloc_type_symbol): Set
4346 SYMBOL_SECTION.
4347 * symtab.c (initialize_objfile_symbol): Remove.
4348 (allocate_symbol): Remove.
4349 (allocate_template_symbol): Remove.
4350 * dwarf2/read.c (fixup_go_packaging): Use "new".
4351 (new_symbol): Use "new".
4352 (read_variable): Don't call initialize_objfile_symbol. Use
4353 "new".
4354 (read_func_scope): Use "new".
4355 * xcoffread.c (process_xcoff_symbol): Don't call
4356 initialize_objfile_symbol.
4357 (SYMBOL_DUP): Remove.
4358 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4359 "new".
4360 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4361 (allocate_template_symbol): Don't declare.
4362 (struct symbol): Add copy constructor. Change defaults.
4363 * jit.c (finalize_symtab): Use "new".
4364 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4365 Use "new".
4366 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4367 (common_block_end): Use "new".
4368 * mdebugread.c (parse_symbol): Use "new".
4369 (new_symbol): Likewise.
4370
4371 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4372
4373 * NEWS: Mention changes to help and apropos.
4374
4375 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4376
4377 * command.h (enum command_class): Improve comments, document
4378 that class_alias is for user-defined aliases, give the class
4379 name for each class, remove unused class_xdb.
4380 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4381 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4382 by a precise class.
4383 * infcmd.c (_initialize_infcmd): Likewise.
4384 * reverse.c (_initialize_reverse): Likewise.
4385 * stack.c (_initialize_stack): Likewise.
4386 * symfile.c (_initialize_symfile): Likewise.
4387 * tracepoint.c (_initialize_tracepoint): Likewise.
4388
4389 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4390
4391 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4392 when their aliased command is traversed.
4393 (help_cmd): Add fput_command_names_styled call to
4394 output command name and aliases when command has an alias.
4395
4396 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4397
4398 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4399 * cli/cli-decode.c (help_cmd_list): Declare as static,
4400 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4401 a command together with the command.
4402 (fput_command_name_styled, fput_command_names_styled): New functions.
4403 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4404 fput_command_name_styled.
4405 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4406 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4407
4408 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4409
4410 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4411 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4412 * command.h (cmd_show_list): Likewise.
4413 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4414 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4415
4416 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4417
4418 * unittests/command-def-selftests.c (traverse_command_structure):
4419 Verify all commands of a list have the same prefix command and
4420 that only the top cmdlist commands have a null prefix.
4421
4422 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4423
4424 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4425 as prefix, not one of its aliases.
4426 (set_cmd_prefix): Remove.
4427 (do_add_cmd): Centralize the setting of the prefix of a command, when
4428 command is defined after its full chain of prefix commands.
4429 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4430 (add_setshow_cmd_full): Likewise.
4431 (update_prefix_field_of_prefixed_commands): New function.
4432 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4433 update_prefix_field_of_prefixed_commands.
4434 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4435 addresses of remote_set_cmdlist and remote_show_cmdlist given
4436 as argument, not the address of an argument.
4437 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4438 * gdb/remote.c (_initialize_remote): Likewise.
4439
4440 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4441
4442 * cli/cli-cmds.c (alias_command): Check for an existing alias
4443 using lookup_cmd_composition, as valid_command_p is too strict
4444 and forbids aliases that are the prefix of an existing alias
4445 or command.
4446 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4447 command is properly recognised as a valid command.
4448
4449 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4450
4451 * unittests/help-doc-selftests.c: Rename to
4452 unittests/command-def-selftests.c
4453 * unittests/command-def-selftests.c (help_doc_tests): Update some
4454 comments.
4455 (command_structure_tests, traverse_command_structure): New namespace
4456 and function.
4457 (command_structure_invariants_tests): New function.
4458 (_initialize_command_def_selftests) Renamed from
4459 _initialize_help_doc_selftests, register command_structure_invariants
4460 selftest.
4461
4462 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4463
4464 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4465 an alias of 'show'.
4466
4467 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4468
4469 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4470 ada_is_fixed_point_type. Update all callers.
4471 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4472 all callers.
4473 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4474 Update all callers.
4475 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4476 print_fixed_point_type. Update all callers.
4477 * ada-valprint.c (ada_value_print_num): Replace call to
4478 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4479
4480 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4481
4482 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4483 processors.
4484 (cpu_supports_bts): Add CV_AMD case.
4485
4486 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4487 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * infrun.c (stop_all_threads): Collect multiple wait events at
4490 each pass.
4491
4492 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4493
4494 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4495 type::code instead.
4496
4497 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4498
4499 * gdbtypes.h (struct type) <code, set_code>: New methods.
4500 (TYPE_CODE): Use type::code. Change all call sites used to set
4501 the code to use type::set_code instead.
4502
4503 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4504 Tom de Vries <tdevries@suse.de>
4505 Pedro Alves <palves@redhat.com>
4506
4507 PR threads/25478
4508 * infrun.c (stop_all_threads): Do NOT ignore
4509 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4510 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4511 received.
4512 (handle_no_resumed): Remove code handling a live inferior with no
4513 threads.
4514 * remote.c (has_single_non_exited_thread): New.
4515 (remote_target::update_thread_list): Do not delete a thread if is
4516 the last thread of the process.
4517 * thread.c (thread_select): Call delete_exited_threads instead of
4518 prune_threads.
4519
4520 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4521
4522 * infrun.c (stop_all_threads): Enable/disable thread events of all
4523 targets. Move a debug message denoting the end of the function
4524 into the SCOPED_EXIT block.
4525
4526 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4527
4528 * process-stratum-target.h: Include <set>.
4529 (all_non_exited_process_targets, switch_to_target_no_thread): New
4530 function declarations.
4531 * process-stratum-target.c (all_non_exited_process_targets)
4532 (switch_to_target_no_thread): New function implementations.
4533
4534 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4535
4536 * infrun.c (handle_inferior_event): Extract out a piece of code
4537 into...
4538 (mark_non_executing_threads): ...this new function.
4539
4540 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4541
4542 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4543 use.
4544
4545 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4546
4547 * regcache.c (regcache_read_pc_protected): New function
4548 implementation that returns 0 if the PC cannot read via
4549 'regcache_read_pc'.
4550 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4551 instead of 'regcache_read_pc'.
4552 (keep_going_pass_signal): Ditto.
4553
4554 2020-05-13 Tom Tromey <tromey@adacore.com>
4555
4556 * ada-lang.c (align_value): Remove.
4557 (ada_template_to_fixed_record_type_1): Use align_up.
4558
4559 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4560
4561 * async-event.c: Update the copyright year.
4562 * async-event.h: Update the copyright year.
4563
4564 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4565
4566 * objfiles.h (is_addr_in_objfile,
4567 shared_objfile_contains_address_p): Return bool.
4568 * objfile.c (is_addr_in_objfile,
4569 shared_objfile_contains_address_p): Return bool.
4570
4571 2020-05-11 Tom Tromey <tromey@adacore.com>
4572
4573 * cli/cli-cmds.c (info_command): Restore.
4574 (_initialize_cli_cmds): Use add_prefix_command for "info".
4575 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4576
4577 2020-05-11 Tom Tromey <tromey@adacore.com>
4578
4579 * ada-lang.c (ada_value_primitive_field): Now public.
4580 * ada-lang.h (ada_value_primitive_field): Declare.
4581 * ada-valprint.c (print_field_values): Use
4582 ada_value_primitive_field for wrapper fields.
4583
4584 2020-05-11 Tom de Vries <tdevries@suse.de>
4585
4586 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4587 MODULE_DOMAIN.
4588
4589 2020-05-11 Tom de Vries <tdevries@suse.de>
4590
4591 PR symtab/25941
4592 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4593 with length 0, if not gdb-produced.
4594 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4595
4596 2020-05-09 Tom de Vries <tdevries@suse.de>
4597
4598 PR gdb/25955
4599 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4600 calculation.
4601
4602 2020-05-09 Tom Tromey <tom@tromey.com>
4603
4604 * top.c (server_command): Now bool.
4605 * top.h (server_command): Now bool.
4606
4607 2020-05-08 Tom Tromey <tromey@adacore.com>
4608
4609 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4610 already being processed.
4611
4612 2020-05-08 Tom Tromey <tom@tromey.com>
4613
4614 * printcmd.c (struct display) <next>: Remove.
4615 <display>: New constructor.
4616 <exp_string>: Now a std::string.
4617 <enabled_p>: Now a bool.
4618 (display_number): Move definition earlier.
4619 (displays): Rename from display_chain. Now a std::vector.
4620 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4621 (display_command): Update.
4622 (do_one_display, disable_display)
4623 (enable_disable_display_command, do_enable_disable_display):
4624 Update.
4625 (free_display): Remove.
4626 (clear_displays): Rewrite.
4627 (delete_display): Update.
4628 (map_display_numbers): Use function_view. Remove "data"
4629 parameter. Update.
4630 (do_delete_display): Remove.
4631 (undisplay_command): Update.
4632 (do_one_display, do_displays, disable_display)
4633 (info_display_command): Update.
4634 (do_enable_disable_display): Remove.
4635 (enable_disable_display_command)
4636 (clear_dangling_display_expressions): Update.
4637
4638 2020-05-08 Tom Tromey <tom@tromey.com>
4639
4640 * symtab.c (set_symbol_cache_size)
4641 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4642 (maintenance_print_symbol_cache_statistics): Update.
4643 * symmisc.c (print_symbol_bcache_statistics)
4644 (print_objfile_statistics, maintenance_print_objfiles)
4645 (maintenance_info_symtabs, maintenance_check_symtabs)
4646 (maintenance_expand_symtabs, maintenance_info_line_tables):
4647 Update.
4648 * symfile-debug.c (set_debug_symfile): Update.
4649 * source.c (forget_cached_source_info): Update.
4650 * python/python.c (gdbpy_progspaces): Update.
4651 * psymtab.c (maintenance_info_psymtabs): Update.
4652 * probe.c (parse_probes): Update.
4653 * linespec.c (iterate_over_all_matching_symtabs)
4654 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4655 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4656 * exec.c (exec_target::close): Update.
4657 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4658 * breakpoint.c (print_one_breakpoint_location)
4659 (create_longjmp_master_breakpoint)
4660 (create_std_terminate_master_breakpoint): Update.
4661 * progspace.c (program_spaces): Now a std::vector.
4662 (maybe_new_address_space): Update.
4663 (add_program_space): Remove.
4664 (program_space::program_space): Update.
4665 (remove_program_space): Update.
4666 (number_of_program_spaces): Remove.
4667 (print_program_space, update_address_spaces): Update.
4668 * progspace.h (program_spaces): Change type.
4669 (ALL_PSPACES): Remove.
4670 (number_of_program_spaces): Don't declare.
4671 (struct program_space) <next>: Remove.
4672
4673 2020-05-08 Tom Tromey <tom@tromey.com>
4674
4675 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4676 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4677 (enable_break): Update.
4678 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4679 (frv_fdpic_find_canonical_descriptor): Update.
4680 (frv_fetch_objfile_link_map): Update.
4681 * progspace.c (program_space::free_all_objfiles): Update.
4682 (program_space::solibs): New method.
4683 * progspace.h (struct program_space) <solibs>: New method.
4684 * solist.h (master_so_list): Don't declare.
4685 (ALL_SO_LIBS): Remove.
4686 * solib.h (so_list_head): Remove.
4687 (update_solib_list): Update comment.
4688 * solib.c (master_so_list): Remove.
4689 (solib_used, update_solib_list, solib_add)
4690 (info_sharedlibrary_command, clear_solib)
4691 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4692
4693 2020-05-08 Tom Tromey <tom@tromey.com>
4694
4695 * extension.c (extension_languages): Now a std::array.
4696 (ALL_EXTENSION_LANGUAGES): Remove.
4697 (get_ext_lang_defn, get_ext_lang_of_file)
4698 (eval_ext_lang_from_control_command): Update.
4699 (finish_ext_lang_initialization)
4700 (auto_load_ext_lang_scripts_for_objfile)
4701 (ext_lang_type_printers::ext_lang_type_printers)
4702 (apply_ext_lang_type_printers)
4703 (ext_lang_type_printers::~ext_lang_type_printers)
4704 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4705 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4706 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4707 (get_matching_xmethod_workers, ext_lang_colorize)
4708 (ext_lang_before_prompt): Update.
4709 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4710
4711 2020-05-08 Tom Tromey <tom@tromey.com>
4712
4713 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4714 overload.
4715 <swap_string, m_string>: Remove.
4716 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4717 Update.
4718 * stabsread.c (define_symbol, read_type): Update.
4719 * linespec.c (find_linespec_symbols): Update.
4720 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4721 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4722 * dbxread.c (read_dbx_symtab): Update.
4723 * cp-support.h (cp_canonicalize_string_full)
4724 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4725 Return unique_xmalloc_ptr.
4726 * cp-support.c (inspect_type): Update.
4727 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4728 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4729 Likewise.
4730 * c-typeprint.c (print_name_maybe_canonical): Update.
4731 * break-catch-throw.c (check_status_exception_catchpoint):
4732 Update.
4733
4734 2020-05-08 Tom de Vries <tdevries@suse.de>
4735
4736 * infrun.c (follow_fork): Copy current_line and current_symtab to
4737 child thread.
4738
4739 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4740
4741 * async-event.c (struct async_signal_handler, struct
4742 async_event_handler): Reformat, remove typedef.
4743
4744 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4745
4746 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4747 access thistype->main_type->dyn_prop_list directly.
4748
4749 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4750
4751 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4752 (remove_dyn_prop): Remove. Update all users to use
4753 type::remove_dyn_prop.
4754 * gdbtypes.c (remove_dyn_prop): Rename to...
4755 (type::remove_dyn_prop): ... this.
4756
4757 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4758
4759 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4760 (add_dyn_prop): Remove. Update all users to use
4761 type::add_dyn_prop.
4762 * gdbtypes.c (add_dyn_prop): Rename to...
4763 (type::add_dyn_prop): ... this.
4764
4765 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4766
4767 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4768 (get_dyn_prop): Remove. Update all users to use
4769 type::dyn_prop.
4770 * gdbtypes.c (get_dyn_prop): Rename to...
4771 (type::dyn_prop): ... this.
4772
4773 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4774
4775 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4776
4777 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4778
4779 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4780 instruction, skip it if it's there.
4781
4782 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4785
4786 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4787
4788 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4789 * gdbtypes.c (recursive_dump_type): Remove use of
4790 TYPE_INCOMPLETE.
4791
4792 2020-05-03 Tom Tromey <tom@tromey.com>
4793
4794 * breakpoint.c (catch_command, tcatch_command): Remove.
4795 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4796 add_show_prefix_cmd.
4797 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4798 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4799 Remove.
4800 (add_internal_problem_command): Use add_basic_prefix_cmd,
4801 add_show_prefix_cmd.
4802 * mips-tdep.c (set_mipsfpu_command): Remove.
4803 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4804 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4805 (_initialize_index_cache): Use add_basic_prefix_cmd.
4806 * memattr.c (dummy_cmd): Remove.
4807 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4808 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4809 (_initialize_tui_win): Use add_basic_prefix_cmd,
4810 add_show_prefix_cmd.
4811 * cli/cli-logging.c (set_logging_command): Remove.
4812 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4813 add_show_prefix_cmd.
4814 (show_logging_command): Remove.
4815 * target.c (target_command): Remove.
4816 (add_target): Use add_basic_prefix_cmd.
4817
4818 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4819
4820 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4821
4822 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4823
4824 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4825 info_command.
4826
4827 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4828
4829 * nbsd-nat.c (nbsd_enable_proc_events)
4830 (nbsd_nat_target::post_startup_inferior): Add.
4831 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4832 (nbsd_nat_target::update_thread_list): Rewrite.
4833 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4834 "PTRACE_LWP_CREATE".
4835 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4836
4837 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4838
4839 * stack.c (_initialize_stack): Remove duplicated creation
4840 of "frame" command and "f" alias.
4841
4842 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4843
4844 PR gdb/18706
4845 * gdbtypes.c (check_typedef): Calculate size of array of
4846 stubbed type.
4847
4848 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4849
4850 PR gdb/15559
4851 * i386-tdep.c (i386_push_dummy_call): Call
4852 i386_thiscall_push_dummy_call.
4853 (i386_thiscall_push_dummy_call): New function.
4854 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4855 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4856 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4857
4858 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4859
4860 * gdbarch.sh (do_read): Add shellcheck disable directive for
4861 warning SC2162.
4862
4863 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4864
4865 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4866 "referenced but not assigned" warning.
4867
4868 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * gdbarch.sh: Remove code that sets fallbackdefault.
4871
4872 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4873
4874 * gdbarch.sh: Use shell operators && and || instead of
4875 -a and -o.
4876
4877 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * gdbarch.sh: Use $(...) instead of `...`.
4880
4881 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * gdbarch.sh: Use double quotes around variables.
4884
4885 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * gdbarch.sh: Use %s with printf, instead of variables in the
4888 format string.
4889
4890 2020-04-29 Tom Tromey <tromey@adacore.com>
4891
4892 PR ada/25875:
4893 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4894 type fields here.
4895 (read_enumeration_type): Call
4896 update_enumeration_type_from_children later. Update comments.
4897 (process_enumeration_scope): Don't create type fields.
4898
4899 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4900
4901 * nbsd-tdep.c: Include "xml-syscall.h".
4902 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4903
4904 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4905
4906 * nbsd-nat.c: Include "sys/wait.h".
4907 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4908 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4909 (nbsd_nat_target::remove_exec_catchpoint)
4910 (nbsd_nat_target::set_syscall_catchpoint): Add.
4911 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4912 (nbsd_nat_target::insert_exec_catchpoint)
4913 (nbsd_nat_target::remove_exec_catchpoint)
4914 (nbsd_nat_target::set_syscall_catchpoint): Add.
4915 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4916 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4917 `nbsd_get_syscall_number'.
4918
4919 2020-04-29 Tom Tromey <tom@tromey.com>
4920
4921 * stack.c (print_block_frame_labels): Remove.
4922
4923 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4924
4925 PR gdb/17320
4926 * ada-valprint.c (val_print_packed_array_elements): Move array
4927 end bracket to new line.
4928 (ada_val_print_string): Remove extra spaces before first array
4929 element.
4930 * c-valprint.c (c_value_print_array): Likewise.
4931 * m2-valprint.c (m2_print_array_contents): Likewise.
4932 (m2_value_print_inner): Likewise.
4933 * p-valprint.c (pascal_value_print_inner): Likewise.
4934 * valprint.c (generic_val_print_array): Likewise.
4935 (value_print_array_elements): Move first array element and array
4936 end bracket to new line.
4937
4938 2020-04-29 Tom de Vries <tdevries@suse.de>
4939
4940 PR symtab/25889
4941 * linespec.c (find_method): Fix ix calculation.
4942
4943 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4944
4945 * syscalls/update-netbsd.sh: New file.
4946 * syscalls/netbsd.xml: Regenerate.
4947 * data-directory/Makefile.in: Register `netbsd.xml' in
4948 `SYSCALLS_FILES'.
4949
4950 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4951
4952 * syscalls/update-freebsd.sh: Add double quotes.
4953
4954 2020-04-28 Tom Tromey <tom@tromey.com>
4955
4956 * NEWS: Update.
4957 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4958 (cmdpy_init): Allow class_tui.
4959
4960 2020-04-28 Mark Williams <mark@myosotissp.com>
4961
4962 PR gdb/24480
4963 * dwarf2read.c: Add missing assingments to list_in_scope when
4964 start_symtab was already called.
4965
4966 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4967
4968 PR gdb/25881
4969 * dwarf2/read.c (offset_map_type): Use
4970 gdb:hash_enum<sect_offset> as hash function.
4971
4972 2020-04-28 Tom de Vries <tdevries@suse.de>
4973
4974 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4975 with DW_AT_signature.
4976
4977 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4978
4979 * configure.ac: Remove check for fs_base/gs_base in
4980 user_regs_struct.
4981 * configure: Re-generate.
4982 * config.in: Re-generate.
4983 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4984 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4985 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4986
4987 2020-04-27 Luis Machado <luis.machado@linaro.org>
4988
4989 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4990 problematic inline frame unwinding situation.
4991 * frame.c (frame_id_computed_p): New function.
4992 * frame.h (frame_id_computed_p): New prototype.
4993
4994 2020-04-26 Tom Tromey <tom@tromey.com>
4995
4996 * command.h (enum command_class) <class_pseudo>: Remove.
4997
4998 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4999
5000 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5001 and whitespace.
5002
5003 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5004
5005 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5006 `PT_GET_PROCESS_STATE' block.
5007
5008 2020-04-24 Tom Tromey <tom@tromey.com>
5009
5010 * symtab.h (symbol_get_demangled_name): Don't declare.
5011 * symtab.c (symbol_get_demangled_name): Remove.
5012 (general_symbol_info::natural_name)
5013 (general_symbol_info::demangled_name): Update.
5014
5015 2020-04-24 Tom Tromey <tom@tromey.com>
5016
5017 PR rust/25025:
5018 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5019
5020 2020-04-24 Tom Tromey <tom@tromey.com>
5021
5022 PR symtab/12707:
5023 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5024 exists.
5025 (new_symbol): Likewise.
5026 * compile/compile-object-load.c (get_out_value_type): Use
5027 symbol_matches_search_name.
5028
5029 2020-04-24 Tom Tromey <tom@tromey.com>
5030
5031 * dwarf2/read.c (add_partial_symbol): Do not call
5032 compute_and_set_names.
5033
5034 2020-04-24 Tom Tromey <tom@tromey.com>
5035
5036 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5037 overload.
5038
5039 2020-04-24 Tom Tromey <tom@tromey.com>
5040
5041 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5042 (add_psymbol_to_list): New overload. Make old overload call new
5043 one.
5044 * psympriv.h (add_psymbol_to_list): New overload.
5045
5046 2020-04-24 Tom Tromey <tom@tromey.com>
5047
5048 * dwarf2/read.c (partial_die_info::read) <case
5049 DW_AT_linkage_name>: Use value_as_string.
5050 (dwarf2_string_attr): Use value_as_string.
5051 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5052 method.
5053 * dwarf2/attribute.c (attribute::value_as_string): New method.
5054
5055 2020-04-24 Tom Tromey <tom@tromey.com>
5056
5057 * symtab.c (general_symbol_info::natural_name)
5058 (general_symbol_info::demangled_name): Check for language_rust.
5059
5060 2020-04-24 Tom Tromey <tom@tromey.com>
5061
5062 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5063 (dwarf2_physname): ... from here.
5064 (partial_die_info::read): Add Rust "{" hack.
5065
5066 2020-04-24 Tom Tromey <tom@tromey.com>
5067
5068 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5069 method.
5070 (symbol_set_demangled_name): Don't declare.
5071 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5072 symbol_set_demangled_name.
5073 (general_symbol_info::set_language)
5074 (general_symbol_info::compute_and_set_names): Update.
5075 * minsyms.c (minimal_symbol_reader::install): Update.
5076 * dwarf2/read.c (new_symbol): Update.
5077
5078 2020-04-24 Tom Tromey <tromey@adacore.com>
5079
5080 PR python/23662:
5081 * python/py-type.c (convert_field): Handle
5082 FIELD_LOC_KIND_DWARF_BLOCK.
5083 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5084 (typy_get_dynamic): Nw function.
5085 (type_object_getset): Add "dynamic".
5086 * NEWS: Add entry.
5087
5088 2020-04-24 Tom Tromey <tromey@adacore.com>
5089
5090 * ada-typeprint.c (print_choices, print_variant_part)
5091 (print_record_field_types_dynamic): New functions.
5092 (print_record_field_types): Use print_record_field_types_dynamic.
5093
5094 2020-04-24 Tom Tromey <tromey@adacore.com>
5095
5096 * dwarf2/read.c (handle_data_member_location): New overload.
5097 (dwarf2_add_field): Use it.
5098 (decode_locdesc): Add "computed" parameter. Update comment.
5099 * gdbtypes.c (is_dynamic_type_internal): Also look for
5100 FIELD_LOC_KIND_DWARF_BLOCK.
5101 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5102 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5103 virtual base classes.
5104 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5105 FIELD_LOC_KIND_DWARF_BLOCK.
5106
5107 2020-04-24 Tom Tromey <tromey@adacore.com>
5108
5109 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5110 * gdbtypes.c (is_dynamic_type_internal): Check
5111 TYPE_HAS_DYNAMIC_LENGTH.
5112 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5113 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5114 New macros.
5115 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5116 constant.
5117
5118 2020-04-24 Tom Tromey <tromey@adacore.com>
5119
5120 * dwarf2/read.c (struct variant_field): Rewrite.
5121 (struct variant_part_builder): New.
5122 (struct nextfield): Remove "variant" field. Add "offset".
5123 (struct field_info): Add "current_variant_part" and
5124 "variant_parts".
5125 (alloc_discriminant_info): Remove.
5126 (alloc_rust_variant): New function.
5127 (quirk_rust_enum): Update.
5128 (dwarf2_add_field): Set "offset" member. Don't handle
5129 DW_TAG_variant_part.
5130 (offset_map_type): New typedef.
5131 (convert_variant_range, create_one_variant)
5132 (create_one_variant_part, create_variant_parts)
5133 (add_variant_property): New functions.
5134 (dwarf2_attach_fields_to_type): Call add_variant_property.
5135 (read_structure_type): Don't handle DW_TAG_variant_part.
5136 (handle_variant_part, handle_variant): New functions.
5137 (handle_struct_member_die): Use them.
5138 (process_structure_scope): Don't handle variant parts.
5139 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5140 (struct discriminant_info): Remove.
5141 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5142 (struct main_type) <flag_discriminated_union>: Remove.
5143 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5144 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5145 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5146 Update.
5147 * valops.c (value_union_variant): Remove.
5148 * value.h (value_union_variant): Don't declare.
5149
5150 2020-04-24 Tom Tromey <tromey@adacore.com>
5151
5152 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5153 (ada_value_primitive_packed_val): Update.
5154 * ada-valprint.c (ada_value_print_1): Update.
5155 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5156 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5157 just an address. Use evaluate_for_locexpr_baton.
5158 (dwarf2_evaluate_property): Update.
5159 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5160 array_view.
5161 * findvar.c (default_read_var_value): Update.
5162 * gdbtypes.c (compute_variant_fields_inner)
5163 (resolve_dynamic_type_internal): Update.
5164 (resolve_dynamic_type): Change type of valaddr parameter.
5165 * gdbtypes.h (resolve_dynamic_type): Update.
5166 * valarith.c (value_subscripted_rvalue): Update.
5167 * value.c (value_from_contents_and_address): Update.
5168
5169 2020-04-24 Tom Tromey <tromey@adacore.com>
5170
5171 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5172 "push_initial_value" parameter.
5173 (dwarf2_evaluate_property): Likewise.
5174 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5175
5176 2020-04-24 Tom Tromey <tromey@adacore.com>
5177
5178 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5179 (variant::matches, compute_variant_fields_recurse)
5180 (compute_variant_fields_inner, compute_variant_fields): New
5181 functions.
5182 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5183 Use resolved_type after type is made.
5184 (operator==): Add new cases.
5185 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5186 (struct discriminant_range, struct variant, struct variant_part):
5187 New.
5188 (union dynamic_prop_data) <variant_parts, original_type>: New
5189 members.
5190 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5191 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5192 constants.
5193 * value.c (unpack_bits_as_long): Now public.
5194 * value.h (unpack_bits_as_long): Declare.
5195
5196 2020-04-24 Tom Tromey <tromey@adacore.com>
5197
5198 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5199 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5200
5201 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5202
5203 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5204
5205 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5206
5207 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5208 (remove_fork_catchpoint, post_startup_inferior)
5209 (post_attach): Move...
5210 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5211 (remove_fork_catchpoint, post_startup_inferior)
5212 (post_attach): ...here.
5213 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5214 (remove_fork_catchpoint, post_startup_inferior)
5215 (post_attach): Move...
5216 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5217 (remove_fork_catchpoint, post_startup_inferior)
5218 (post_attach): ...here.
5219
5220 2020-04-24 Tom Tromey <tromey@adacore.com>
5221
5222 * nat/windows-nat.h (struct windows_thread_info)
5223 <pc_adjusted>: New member.
5224 * windows-nat.c (windows_fetch_one_register): Check
5225 pc_adjusted.
5226 (windows_nat_target::get_windows_debug_event)
5227 (windows_nat_target::wait): Set pc_adjusted.
5228
5229 2020-04-24 Tom de Vries <tdevries@suse.de>
5230
5231 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5232 Run gdb-add-index inside temp dir.
5233
5234 2020-04-23 Tom Tromey <tromey@adacore.com>
5235
5236 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5237 in loop.
5238
5239 2020-04-23 Luis Machado <luis.machado@linaro.org>
5240
5241 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5242 get_frame_register instead of gdbarch_unwind_pc.
5243
5244 2020-04-23 Tom de Vries <tdevries@suse.de>
5245
5246 * symtab.c (lookup_global_symbol): Prefer def over decl.
5247
5248 2020-04-23 Tom de Vries <tdevries@suse.de>
5249
5250 PR symtab/25807
5251 * block.c (best_symbol, better_symbol): Promote to external.
5252 * block.h (best_symbol, better_symbol): Declare.
5253 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5254 decl.
5255
5256 2020-04-23 Tom Tromey <tromey@adacore.com>
5257
5258 PR ada/25837:
5259 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5260 "const char *", not a "const std::string &".
5261 <name_and_matcher::operator==>: Update.
5262 * unittests/lookup_name_info-selftests.c: Change type of
5263 "result".
5264
5265 2020-04-23 Tom Tromey <tom@tromey.com>
5266
5267 * inferior.h (iterate_over_inferiors): Don't declare.
5268 * inferior.c (iterate_over_inferiors): Remove.
5269 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5270 Remove.
5271 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5272 use iterate_over_inferiors.
5273 (darwin_resume_inferior_it)
5274 (struct resume_inferior_threads_param)
5275 (darwin_resume_inferior_threads_it): Remove.
5276 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5277
5278 2020-04-23 Tom de Vries <tdevries@suse.de>
5279
5280 * blockframe.c (find_pc_partial_function): Use
5281 find_pc_sect_compunit_symtab rather than
5282 objfile->sf->qf->find_pc_sect_compunit_symtab.
5283
5284 2020-04-22 Tom de Vries <tdevries@suse.de>
5285
5286 PR symtab/25764
5287 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5288 in psymtabs.
5289
5290 2020-04-22 Tom de Vries <tdevries@suse.de>
5291
5292 PR symtab/25801
5293 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5294 symtabs.
5295
5296 2020-04-22 Tom de Vries <tdevries@suse.de>
5297
5298 PR symtab/25700
5299 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5300 CU if already created.
5301
5302 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5303
5304 * infrun.c (displaced_step_fixup): Switch to the event_thread
5305 before calling displaced_step_restore, not after.
5306
5307 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5308
5309 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5310 its inferior is not recorded by us.
5311 (record_btrace_target_open): Replace call to
5312 all_non_exited_threads () with call to current_inferior
5313 ()->non_exited_threads ().
5314 (record_btrace_target::stop_recording): Likewise.
5315 (record_btrace_target::close): Likewise.
5316 (record_btrace_target::wait): Likewise.
5317 (record_btrace_target::record_stop_replaying): Likewise.
5318
5319 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5320
5321 * btrace.c (btrace_enable): Throw an error on double enables and
5322 when enabling recording fails.
5323 (btrace_disable): Throw an error if the thread is not recorded.
5324
5325 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5326
5327 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5328 request if we do not have a thread_info.
5329
5330 2020-04-21 Tom de Vries <tdevries@suse.de>
5331
5332 PR gdb/25471
5333 * thread.c
5334 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5335 exception in get_frame_id.
5336
5337 2020-04-20 Tom Tromey <tromey@adacore.com>
5338
5339 * python/python.c (struct gdbpy_event): Mark move constructor as
5340 noexcept.
5341 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5342 constructor as noexcept.
5343 * completer.h (struct completion_result): Mark move constructor as
5344 noexcept.
5345 * completer.c (completion_result::completion_result): Use
5346 initialization style. Don't call reset_match_list.
5347
5348 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5349
5350 * MAINTAINERS (Write After Approval): Add myself.
5351
5352 2020-04-18 Tom Tromey <tom@tromey.com>
5353
5354 * windows-tdep.c (init_w32_command_list)
5355 (w32_prefix_command_valid): Restore.
5356 (_initialize_windows_tdep): Call init_w32_command_list.
5357
5358 2020-04-18 Tom Tromey <tom@tromey.com>
5359
5360 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5361 * value.c (value_fn_field): Update.
5362 * valops.c (find_function_in_inferior)
5363 (value_allocate_space_in_inferior): Update.
5364 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5365 Update.
5366 * tui/tui-source.c (tui_source_window::set_contents): Update.
5367 * symtab.c (lookup_global_or_static_symbol)
5368 (find_function_start_sal_1, skip_prologue_sal)
5369 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5370 * symmisc.c (dump_msymbols, dump_symtab_1)
5371 (maintenance_print_one_line_table): Update.
5372 * symfile.c (init_entry_point_info, section_is_mapped)
5373 (list_overlays_command, simple_read_overlay_table)
5374 (simple_overlay_update_1): Update.
5375 * stap-probe.c (handle_stap_probe): Update.
5376 * stabsread.c (dbx_init_float_type, define_symbol)
5377 (read_one_struct_field, read_enum_type, read_range_type): Update.
5378 * source.c (info_line_command): Update.
5379 * python/python.c (gdbpy_source_objfile_script)
5380 (gdbpy_execute_objfile_script): Update.
5381 * python/py-type.c (save_objfile_types): Update.
5382 * python/py-objfile.c (py_free_objfile): Update.
5383 * python/py-inferior.c (python_new_objfile): Update.
5384 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5385 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5386 (maintenance_check_psymtabs): Update.
5387 * printcmd.c (info_address_command): Update.
5388 * objfiles.h (struct objfile) <arch>: New method, from
5389 get_objfile_arch.
5390 (get_objfile_arch): Don't declare.
5391 * objfiles.c (get_objfile_arch): Remove.
5392 (filter_overlapping_sections): Update.
5393 * minsyms.c (msymbol_is_function): Update.
5394 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5395 (output_nondebug_symbol): Update.
5396 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5397 (mdebug_expand_psymtab): Update.
5398 * machoread.c (macho_add_oso_symfile): Update.
5399 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5400 Update.
5401 * linux-fork.c (checkpoint_command): Update.
5402 * linespec.c (convert_linespec_to_sals): Update.
5403 * jit.c (finalize_symtab): Update.
5404 * infrun.c (insert_exception_resume_from_probe): Update.
5405 * ia64-tdep.c (ia64_find_unwind_table): Update.
5406 * hppa-tdep.c (internalize_unwinds): Update.
5407 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5408 Update.
5409 * gcore.c (call_target_sbrk): Update.
5410 * elfread.c (record_minimal_symbol, elf_symtab_read)
5411 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5412 (elf_gnu_ifunc_resolve_by_got): Update.
5413 * dwarf2/read.c (create_addrmap_from_index)
5414 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5415 (read_debug_names_from_section)
5416 (process_psymtab_comp_unit_reader, add_partial_symbol)
5417 (add_partial_subprogram, process_full_comp_unit)
5418 (read_file_scope, read_func_scope, read_lexical_block_scope)
5419 (read_call_site_scope, dwarf2_ranges_read)
5420 (dwarf2_record_block_ranges, dwarf2_add_field)
5421 (mark_common_block_symbol_computed, read_tag_pointer_type)
5422 (read_tag_string_type, dwarf2_init_float_type)
5423 (dwarf2_init_complex_target_type, read_base_type)
5424 (partial_die_info::read, partial_die_info::read)
5425 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5426 (dwarf2_fetch_die_loc_sect_off): Update.
5427 * dwarf2/loc.c (dwarf2_find_location_expression)
5428 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5429 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5430 (dwarf2_loc_desc_get_symbol_read_needs)
5431 (locexpr_describe_location_piece, locexpr_describe_location_1)
5432 (loclist_describe_location): Update.
5433 * dwarf2/index-write.c (write_debug_names): Update.
5434 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5435 * dtrace-probe.c (dtrace_process_dof): Update.
5436 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5437 (process_one_symbol): Update.
5438 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5439 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5440 (coff_read_enum_type): Update.
5441 * cli/cli-cmds.c (edit_command, list_command): Update.
5442 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5443 * breakpoint.c (create_overlay_event_breakpoint)
5444 (create_longjmp_master_breakpoint)
5445 (create_std_terminate_master_breakpoint)
5446 (create_exception_master_breakpoint, get_sal_arch): Update.
5447 * block.c (block_gdbarch): Update.
5448 * annotate.c (annotate_source_line): Update.
5449
5450 2020-04-17 Tom Tromey <tromey@adacore.com>
5451
5452 * auto-load.c (show_auto_load_cmd): Remove.
5453 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5454 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5455 (maintenance_print_arc_command): Remove.
5456 * tui/tui-win.c (tui_command): Remove.
5457 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5458 * tui/tui-layout.c (tui_layout_command): Remove.
5459 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5460 * python/python.c (user_set_python, user_show_python): Remove.
5461 (_initialize_python): Use add_basic_prefix_cmd,
5462 add_show_prefix_cmd.
5463 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5464 (install_gdb_commands): Use add_basic_prefix_cmd,
5465 add_show_prefix_cmd.
5466 (info_guile_command): Remove.
5467 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5468 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5469 add_show_prefix_cmd.
5470 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5471 Remove do_set and do_show parameters.
5472 * cli/cli-style.c (set_style, show_style): Remove.
5473 (_initialize_cli_style): Use add_basic_prefix_cmd,
5474 add_show_prefix_cmd.
5475 (cli_style_option::add_setshow_commands): Remove do_set and
5476 do_show parameters.
5477 (cli_style_option::add_setshow_commands): Use
5478 add_basic_prefix_cmd, add_show_prefix_cmd.
5479 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5480 (set_style_name): Remove.
5481 * cli/cli-dump.c (dump_command, append_command): Remove.
5482 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5483 (tekhex_dump_command, binary_dump_command)
5484 (binary_append_command): Remove.
5485 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5486 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5487 (init_w32_command_list): Remove; move into ...
5488 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5489 * valprint.c (set_print, show_print, set_print_raw)
5490 (show_print_raw): Remove.
5491 (_initialize_valprint): Use add_basic_prefix_cmd,
5492 add_show_prefix_cmd.
5493 * typeprint.c (set_print_type, show_print_type): Remove.
5494 (_initialize_typeprint): Use add_basic_prefix_cmd,
5495 add_show_prefix_cmd.
5496 * record.c (set_record_command, show_record_command): Remove.
5497 (_initialize_record): Use add_basic_prefix_cmd,
5498 add_show_prefix_cmd.
5499 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5500 add_show_prefix_cmd.
5501 (info_command, show_command, set_debug, show_debug): Remove.
5502 * top.h (set_history, show_history): Don't declare.
5503 * top.c (set_history, show_history): Remove.
5504 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5505 (unset_tdesc_cmd): Remove.
5506 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5507 add_show_prefix_cmd.
5508 * symtab.c (info_module_command): Remove.
5509 (_initialize_symtab): Use add_basic_prefix_cmd.
5510 * symfile.c (overlay_command): Remove.
5511 (_initialize_symfile): Use add_basic_prefix_cmd.
5512 * sparc64-tdep.c (info_adi_command): Remove.
5513 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5514 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5515 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5516 add_show_prefix_cmd.
5517 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5518 (_initialize_serial): Use add_basic_prefix_cmd,
5519 add_show_prefix_cmd.
5520 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5521 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5522 add_show_prefix_cmd.
5523 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5524 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5525 add_show_prefix_cmd.
5526 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5527 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5528 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5529 add_show_prefix_cmd.
5530 * remote.c (remote_command, set_remote_cmd): Remove.
5531 (_initialize_remote): Use add_basic_prefix_cmd.
5532 * record-full.c (set_record_full_command)
5533 (show_record_full_command): Remove.
5534 (_initialize_record_full): Use add_basic_prefix_cmd,
5535 add_show_prefix_cmd.
5536 * record-btrace.c (cmd_set_record_btrace)
5537 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5538 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5539 (cmd_show_record_btrace_pt): Remove.
5540 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5541 add_show_prefix_cmd.
5542 * ravenscar-thread.c (set_ravenscar_command)
5543 (show_ravenscar_command): Remove.
5544 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5545 add_show_prefix_cmd.
5546 * mips-tdep.c (show_mips_command, set_mips_command)
5547 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5548 add_show_prefix_cmd.
5549 * maint.c (maintenance_command, maintenance_info_command)
5550 (maintenance_check_command, maintenance_print_command)
5551 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5552 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5553 add_show_prefix_cmd.
5554 (show_per_command_cmd): Remove.
5555 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5556 Remove.
5557 (maintenance_show_test_settings_cmd): Remove.
5558 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5559 add_show_prefix_cmd.
5560 * maint-test-options.c (maintenance_test_options_command):
5561 Remove.
5562 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5563 * macrocmd.c (macro_command): Remove
5564 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5565 * language.c (set_check, show_check): Remove.
5566 (_initialize_language): Use add_basic_prefix_cmd,
5567 add_show_prefix_cmd.
5568 * infcmd.c (unset_command): Remove.
5569 (_initialize_infcmd): Use add_basic_prefix_cmd.
5570 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5571 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5572 add_show_prefix_cmd.
5573 * go32-nat.c (go32_info_dos_command): Remove.
5574 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5575 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5576 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5577 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5578 (_initialize_frame): Use add_basic_prefix_cmd,
5579 add_show_prefix_cmd.
5580 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5581 (_initialize_dcache): Use add_basic_prefix_cmd,
5582 add_show_prefix_cmd.
5583 * cp-support.c (maint_cplus_command): Remove.
5584 (_initialize_cp_support): Use add_basic_prefix_cmd.
5585 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5586 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5587 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5588 add_basic_prefix_cmd, add_show_prefix_cmd.
5589 * breakpoint.c (save_command): Remove.
5590 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5591 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5592 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5593 add_show_prefix_cmd.
5594 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5595 (set_ada_command, show_ada_command): Remove.
5596 (_initialize_ada_language): Use add_basic_prefix_cmd,
5597 add_show_prefix_cmd.
5598 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5599
5600 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5601
5602 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5603 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5604
5605 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5606
5607 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5608 warning messages.
5609
5610 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5611
5612 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5613 import table is not at beginning of .idata section.
5614
5615 2020-04-16 Pedro Alves <palves@redhat.com>
5616
5617 * inferior.c (delete_inferior): Use delete operator directly
5618 instead of delete_program_space.
5619 * progspace.c (add_program_space): New, factored out from
5620 program_space::program_space.
5621 (remove_program_space): New, factored out from
5622 delete_program_space.
5623 (program_space::program_space): Remove intro comment. Rewrite.
5624 (program_space::~program_space): Remove intro comment. Call
5625 remove_program_space.
5626 (delete_program_space): Delete.
5627 * progspace.h (program_space::program_space): Make explicit. Move
5628 intro comment here, adjusted.
5629 (program_space::~program_space): Move intro comment here,
5630 adjusted.
5631 (delete_program_space): Remove.
5632
5633 2020-04-16 Tom Tromey <tromey@adacore.com>
5634
5635 * windows-nat.c (windows_nat::handle_access_violation): New
5636 function.
5637 * nat/windows-nat.h (handle_access_violation): Declare.
5638 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5639 windows-nat.c. Call handle_access_violation.
5640
5641 2020-04-16 Tom de Vries <tdevries@suse.de>
5642
5643 PR symtab/25791
5644 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5645 CUs without psymtab.
5646
5647 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5648
5649 * python/python.c (do_start_initialization): Don't call
5650 PyEval_InitThreads for Python 3.9 and beyond.
5651
5652 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5653
5654 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5655 thread functions.
5656 (obsd_nat_target::wait): Likewise.
5657
5658 2020-04-15 Tom Tromey <tromey@adacore.com>
5659
5660 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5661 (DEBUG_EXCEPT): Use debug_printf.
5662
5663 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5664
5665 * completer.c (class completion_tracker::completion_hash_entry)
5666 <hash_name>: New member function.
5667 (completion_tracker::discard_completions): New callback to hash a
5668 completion_hash_entry, pass this to htab_create_alloc.
5669
5670 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5671
5672 * windows-nat.c (windows_make_so): Warn rather than stopping with
5673 an error if realpath() fails.
5674
5675 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5676
5677 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5678 (nbsd_nat_target::info_proc): Add do_status.
5679
5680 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5681 Tom de Vries <tdevries@suse.de>
5682
5683 PR symtab/25718
5684 * psympriv.h (struct partial_symtab::read_symtab)
5685 (struct partial_symtab::expand_psymtab)
5686 (struct partial_symtab::read_dependencies): Update comments.
5687 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5688 read_symtab for includer.
5689 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5690 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5691 (struct dwarf2_include_psymtab::m_readin): Remove.
5692 (struct dwarf2_include_psymtab::includer): New member function.
5693 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5694
5695 2020-04-14 Tom de Vries <tdevries@suse.de>
5696
5697 PR symtab/25720
5698 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5699 with NULL symbol_matcher and lookup_name.
5700 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5701 and lookup_name.
5702 * dwarf2/read.c (dw2_expand_symtabs_matching)
5703 (dw2_debug_names_expand_symtabs_matching): Same.
5704 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5705 Make lookup_name a pointer. Update comment.
5706 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5707 lookup_name being a pointer.
5708 * symfile.c (expand_symtabs_matching): Same.
5709 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5710 * linespec.c (iterate_over_all_matching_symtabs): Same.
5711
5712 2020-04-13 Tom Tromey <tom@tromey.com>
5713
5714 * run-on-main-thread.c: Update include.
5715 * unittests/main-thread-selftests.c: Update include.
5716 * tui/tui-win.c: Update include.
5717 * tui/tui-io.c: Update include.
5718 * tui/tui-interp.c: Update include.
5719 * tui/tui-hooks.c: Update include.
5720 * top.h: Update include.
5721 * top.c: Update include.
5722 * ser-base.c: Update include.
5723 * remote.c: Update include.
5724 * remote-notif.c: Update include.
5725 * remote-fileio.c: Update include.
5726 * record-full.c: Update include.
5727 * record-btrace.c: Update include.
5728 * python/python.c: Update include.
5729 * posix-hdep.c: Update include.
5730 * mingw-hdep.c: Update include.
5731 * mi/mi-main.c: Update include.
5732 * mi/mi-interp.c: Update include.
5733 * main.c: Update include.
5734 * linux-nat.c: Update include.
5735 * interps.c: Update include.
5736 * infrun.c: Update include.
5737 * inf-loop.c: Update include.
5738 * event-top.c: Update include.
5739 * event-loop.c: Move to ../gdbsupport/.
5740 * event-loop.h: Move to ../gdbsupport/.
5741 * async-event.h: Update include.
5742 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5743
5744 2020-04-13 Tom Tromey <tom@tromey.com>
5745
5746 * tui/tui-win.c: Include async-event.h.
5747 * remote.c: Include async-event.h.
5748 * remote-notif.c: Include async-event.h.
5749 * record-full.c: Include async-event.h.
5750 * record-btrace.c: Include async-event.h.
5751 * infrun.c: Include async-event.h.
5752 * event-top.c: Include async-event.h.
5753 * event-loop.h: Move some declarations to async-event.h.
5754 * event-loop.c: Don't include ser-event.h or top.h. Move some
5755 code to async-event.c.
5756 * async-event.h: New file.
5757 * async-event.c: New file.
5758 * Makefile.in (COMMON_SFILES): Add async-event.c.
5759 (HFILES_NO_SRCDIR): Add async-event.h.
5760
5761 2020-04-13 Tom Tromey <tom@tromey.com>
5762
5763 * utils.c (flush_streams): New function.
5764 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5765
5766 2020-04-13 Tom Tromey <tom@tromey.com>
5767
5768 * event-loop.c (handle_file_event): Use warning, not
5769 printf_unfiltered.
5770
5771 2020-04-13 Tom Tromey <tom@tromey.com>
5772
5773 * event-loop.c: Include <chrono>.
5774
5775 2020-04-13 Tom Tromey <tom@tromey.com>
5776
5777 * gdb_select.h: Move to ../gdbsupport/.
5778 * event-loop.c: Update include path.
5779 * top.c: Update include path.
5780 * ser-base.c: Update include path.
5781 * ui-file.c: Update include path.
5782 * ser-tcp.c: Update include path.
5783 * guile/scm-ports.c: Update include path.
5784 * posix-hdep.c: Update include path.
5785 * ser-unix.c: Update include path.
5786 * gdb_usleep.c: Update include path.
5787 * mingw-hdep.c: Update include path.
5788 * inflow.c: Update include path.
5789 * infrun.c: Update include path.
5790 * event-top.c: Update include path.
5791
5792 2020-04-13 Tom Tromey <tom@tromey.com>
5793
5794 * configure: Rebuild.
5795 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5796
5797 2020-04-13 Tom Tromey <tom@tromey.com>
5798
5799 * event-loop.h (start_event_loop): Don't declare.
5800 * event-loop.c (start_event_loop): Move...
5801 * main.c (start_event_loop): ...here. Now static.
5802
5803 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5804
5805 * MAINTAINERS: Update my email address.
5806
5807 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5808
5809 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5810 IP_ALL.
5811
5812 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5813
5814 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5815 (nbsd_nat_target::info_proc): Add do_cmdline.
5816
5817 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5818
5819 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5820 (nbsd_nat_target::info_proc): Add do_cwd.
5821
5822 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5823
5824 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5825
5826 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5827
5828 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5829 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5830 (nbsd_nat_target::info_proc): New functions.
5831 * nbsd-nat.c (kinfo_get_vmmap): New function.
5832 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5833 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5834 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5835 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5836 functions.
5837 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5838 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5839 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5840 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5841 (KINFO_VME_FLAG_GROWS_DOWN): New.
5842
5843 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5844
5845 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5846 bit shift.
5847
5848 2020-04-10 Tom Tromey <tromey@adacore.com>
5849
5850 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5851
5852 2020-04-10 Tom Tromey <tromey@adacore.com>
5853
5854 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5855 separate debug files.
5856
5857 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5858
5859 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5860 Move to...
5861 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5862 ... here.
5863 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5864 Check for STATUS_WX86_BREAKPOINT.
5865 (windows_nat_target::wait): Same.
5866
5867 2020-04-10 Tom de Vries <tdevries@suse.de>
5868
5869 PR cli/25808
5870 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5871
5872 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5873
5874 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5875 (Write After Approval): Remove Tom de Vries.
5876
5877 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5878
5879 revert partially:
5880 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5881
5882 * buildsym.c (record_line): Fix undefined behavior and preserve
5883 lines at eof.
5884
5885 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5886
5887 * auxv.h (svr4_auxv_parse): New.
5888 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5889 and generic_auxv_parse.
5890 (svr4_auxv_parse): Add.
5891 * obsd-tdep.c: Include "auxv.h".
5892 (obsd_auxv_parse): Remove.
5893 (obsd_init_abi): Remove comment.
5894 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5895 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5896 * nbsd-tdep.c: Include "auxv.h".
5897 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5898
5899 2020-04-08 Tom Tromey <tromey@adacore.com>
5900
5901 * nat/windows-nat.h (last_wait_event): Don't declare.
5902 (wait_for_debug_event): Update comment.
5903 * nat/windows-nat.c (last_wait_event): Now static.
5904
5905 2020-04-08 Tom Tromey <tromey@adacore.com>
5906
5907 * windows-nat.c (wait_for_debug_event): Move to
5908 nat/windows-nat.c.
5909 * nat/windows-nat.h (wait_for_debug_event): Declare.
5910 * nat/windows-nat.c (wait_for_debug_event): Move from
5911 windows-nat.c. No longer static.
5912
5913 2020-04-08 Tom Tromey <tromey@adacore.com>
5914
5915 * windows-nat.c (get_windows_debug_event): Use
5916 fetch_pending_stop.
5917 * nat/windows-nat.h (fetch_pending_stop): Declare.
5918 * nat/windows-nat.c (fetch_pending_stop): New function.
5919
5920 2020-04-08 Tom Tromey <tromey@adacore.com>
5921
5922 * windows-nat.c (windows_continue): Use matching_pending_stop and
5923 continue_last_debug_event.
5924 * nat/windows-nat.h (matching_pending_stop)
5925 (continue_last_debug_event): Declare.
5926 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5927 (matching_pending_stop, continue_last_debug_event): New
5928 functions.
5929
5930 2020-04-08 Tom Tromey <tromey@adacore.com>
5931
5932 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5933 (handle_exception_result): Move to nat/windows-nat.h.
5934 (DEBUG_EXCEPTION_SIMPLE): Remove.
5935 (windows_nat::handle_ms_vc_exception): New function.
5936 (handle_exception): Move to nat/windows-nat.c.
5937 (get_windows_debug_event): Update.
5938 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5939 nat/windows-nat.c.
5940 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5941 (handle_exception_result): Move from windows-nat.c.
5942 (handle_exception): Declare.
5943 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5944 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5945 windows-nat.c.
5946
5947 2020-04-08 Tom Tromey <tromey@adacore.com>
5948
5949 * windows-nat.c (exception_count, event_count): Remove.
5950 (handle_exception, get_windows_debug_event)
5951 (do_initial_windows_stuff): Update.
5952
5953 2020-04-08 Tom Tromey <tromey@adacore.com>
5954
5955 * windows-nat.c (windows_nat::handle_load_dll)
5956 (windows_nat::handle_unload_dll): Rename. No longer static.
5957 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5958 Declare.
5959
5960 2020-04-08 Tom Tromey <tromey@adacore.com>
5961
5962 * complaints.h (stop_whining): Declare at top-level.
5963 (complaint): Don't declare stop_whining.
5964
5965 2020-04-08 Tom Tromey <tromey@adacore.com>
5966
5967 * windows-nat.c (windows_nat::handle_output_debug_string):
5968 Rename. No longer static.
5969 * nat/windows-nat.h (handle_output_debug_string): Declare.
5970
5971 2020-04-08 Tom Tromey <tromey@adacore.com>
5972
5973 * windows-nat.c (current_process_handle, current_process_id)
5974 (main_thread_id, last_sig, current_event, last_wait_event)
5975 (current_windows_thread, desired_stop_thread_id, pending_stops)
5976 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5977 (display_selectors, fake_create_process)
5978 (get_windows_debug_event): Update.
5979 * nat/windows-nat.h (current_process_handle, current_process_id)
5980 (main_thread_id, last_sig, current_event, last_wait_event)
5981 (current_windows_thread, desired_stop_thread_id, pending_stops)
5982 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5983 * nat/windows-nat.c (current_process_handle, current_process_id)
5984 (main_thread_id, last_sig, current_event, last_wait_event)
5985 (current_windows_thread, desired_stop_thread_id, pending_stops)
5986 (siginfo_er): New globals. Move from windows-nat.c.
5987
5988 2020-04-08 Tom Tromey <tromey@adacore.com>
5989
5990 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5991 (handle_load_dll): Update.
5992 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5993
5994 2020-04-08 Tom Tromey <tromey@adacore.com>
5995
5996 * windows-nat.c (enum thread_disposition_type): Move to
5997 nat/windows-nat.h.
5998 (windows_nat::thread_rec): Rename from thread_rec. No longer
5999 static.
6000 (windows_add_thread, windows_nat_target::fetch_registers)
6001 (windows_nat_target::store_registers, handle_exception)
6002 (windows_nat_target::resume, get_windows_debug_event)
6003 (windows_nat_target::get_tib_address)
6004 (windows_nat_target::thread_name)
6005 (windows_nat_target::thread_alive): Update.
6006 * nat/windows-nat.h (enum thread_disposition_type): Move from
6007 windows-nat.c.
6008 (thread_rec): Declare.
6009
6010 2020-04-08 Tom Tromey <tromey@adacore.com>
6011
6012 * windows-nat.c: Add "using namespace".
6013 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6014 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6015
6016 2020-04-08 Tom Tromey <tromey@adacore.com>
6017
6018 * nat/windows-nat.h (struct windows_thread_info): Declare
6019 destructor.
6020 * nat/windows-nat.c (~windows_thread_info): New.
6021
6022 2020-04-08 Tom Tromey <tromey@adacore.com>
6023
6024 PR gdb/22992
6025 * windows-nat.c (current_event): Update comment.
6026 (last_wait_event, desired_stop_thread_id): New globals.
6027 (struct pending_stop): New.
6028 (pending_stops): New global.
6029 (windows_nat_target) <stopped_by_sw_breakpoint>
6030 <supports_stopped_by_sw_breakpoint>: New methods.
6031 (windows_fetch_one_register): Add assertions. Adjust PC.
6032 (windows_continue): Handle pending stops. Suspend other threads
6033 when stepping. Use last_wait_event
6034 (wait_for_debug_event): New function.
6035 (get_windows_debug_event): Use wait_for_debug_event. Handle
6036 pending stops. Queue spurious stops.
6037 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6038 (windows_nat_target::kill): Use wait_for_debug_event.
6039 * nat/windows-nat.h (struct windows_thread_info)
6040 <stopped_at_software_breakpoint>: New field.
6041 * nat/windows-nat.c (windows_thread_info::resume): Clear
6042 stopped_at_software_breakpoint.
6043
6044 2020-04-08 Tom Tromey <tromey@adacore.com>
6045
6046 * windows-nat.c (enum thread_disposition_type): New.
6047 (thread_rec): Replace "get_context" parameter with "disposition";
6048 change type.
6049 (windows_add_thread, windows_nat_target::fetch_registers)
6050 (windows_nat_target::store_registers, handle_exception)
6051 (windows_nat_target::resume, get_windows_debug_event)
6052 (windows_nat_target::get_tib_address)
6053 (windows_nat_target::thread_name)
6054 (windows_nat_target::thread_alive): Update.
6055
6056 2020-04-08 Tom Tromey <tromey@adacore.com>
6057
6058 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6059 (windows_continue): Use windows_continue::resume.
6060 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6061 resume>: Declare new methods.
6062 * nat/windows-nat.c: New file.
6063 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6064
6065 2020-04-08 Tom Tromey <tromey@adacore.com>
6066
6067 * windows-nat.c (windows_add_thread, windows_delete_thread)
6068 (windows_nat_target::fetch_registers)
6069 (windows_nat_target::store_registers, fake_create_process)
6070 (windows_nat_target::resume, windows_nat_target::resume)
6071 (get_windows_debug_event, windows_nat_target::wait)
6072 (windows_nat_target::pid_to_str)
6073 (windows_nat_target::get_tib_address)
6074 (windows_nat_target::get_ada_task_ptid)
6075 (windows_nat_target::thread_name)
6076 (windows_nat_target::thread_alive): Use lwp, not tid.
6077
6078 2020-04-08 Tom Tromey <tromey@adacore.com>
6079
6080 * windows-nat.c (handle_exception)
6081 (windows_nat_target::thread_name): Update.
6082 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6083 <name>: Now unique_xmalloc_ptr.
6084
6085 2020-04-08 Tom Tromey <tromey@adacore.com>
6086
6087 * windows-nat.c (thread_rec)
6088 (windows_nat_target::fetch_registers): Update.
6089 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6090 Update comment.
6091 <debug_registers_changed, reload_context>: Now bool.
6092
6093 2020-04-08 Tom Tromey <tromey@adacore.com>
6094
6095 * windows-nat.c (windows_add_thread): Use new.
6096 (windows_init_thread_list, windows_delete_thread): Use delete.
6097 (get_windows_debug_event): Update.
6098 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6099 destructor, and initializers.
6100
6101 2020-04-08 Tom Tromey <tromey@adacore.com>
6102
6103 * windows-nat.c (struct windows_thread_info): Remove.
6104 * nat/windows-nat.h: New file.
6105
6106 2020-04-08 Tom Tromey <tromey@adacore.com>
6107
6108 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6109 (thread_rec, windows_add_thread, windows_delete_thread)
6110 (windows_continue): Update.
6111
6112 2020-04-08 Tom Tromey <tromey@adacore.com>
6113
6114 * windows-nat.c (struct windows_thread_info): Remove typedef.
6115 (thread_head): Remove.
6116 (thread_list): New global.
6117 (thread_rec, windows_add_thread, windows_init_thread_list)
6118 (windows_delete_thread, windows_continue): Update.
6119
6120 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * windows-tdep.h (windows_init_abi): Add comment.
6123 (cygwin_init_abi): New declaration.
6124 * windows-tdep.c: Split signal enumeration in two, one for
6125 Windows and one for Cygwin.
6126 (windows_gdb_signal_to_target): Only deal with signal of the
6127 Windows OS ABI.
6128 (cygwin_gdb_signal_to_target): New function.
6129 (windows_init_abi): Rename to windows_init_abi_common, don't set
6130 gdb_signal_to_target gdbarch method. Add new new function with
6131 this name.
6132 (cygwin_init_abi): New function.
6133 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6134 comment. Don't call windows_init_abi.
6135 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6136 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6137 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6138 i386_windows_init_abi_common, don't call windows_init_abi. Add
6139 a new function of this name.
6140 (i386_cygwin_init_abi): New function.
6141 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6142 OS ABI Cygwin.
6143
6144 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6145
6146 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6147 parameter.c.
6148 (dwarf2_read_gdb_index): Update.
6149
6150 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6151
6152 * nbsd-tdep.c: Include "objfiles.h".
6153 (nbsd_skip_solib_resolver): New.
6154 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6155
6156 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6157
6158 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6159 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6160 with DW_LLE_base_addressx are being emitted in DWARFv5.
6161 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6162 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6163 unsigned integer.
6164
6165 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6166
6167 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6168 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6169 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6170 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6171 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6172 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6173 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6174
6175
6176 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6177
6178 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6179 (read_loclist_index): New function definition.
6180 (lookup_loclist_base): New function definition.
6181 (read_loclist_header): New function definition.
6182 (dwarf2_cu): Add loclist_base and loclist_header field.
6183 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6184 (read_full_die_1): Read the value of DW_AT_loclists_base.
6185 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6186 (read_attribute_value): Handle DW_FORM_loclistx.
6187 (skip_one_die): Handle DW_FORM_loclistx.
6188 (loclist_header): New structure declaration.
6189 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6190
6191 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6192
6193 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6194 constructor. Remove `addr` parameter from other constructor and
6195 add `per_cu` parameter.
6196 * dwarf2/read.c (create_partial_symtab): Update.
6197
6198 2020-04-07 Tom de Vries <tdevries@suse.de>
6199
6200 PR symtab/25796
6201 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6202 (partial_die_info::fixup): Inherit has_const_value.
6203
6204 2020-04-07 Tom de Vries <tdevries@suse.de>
6205
6206 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6207 symbols without address.
6208
6209 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6210
6211 * nbsd-nat.h (struct thread_info): Add forward declaration.
6212 (nbsd_nat_target::thread_alive): Add.
6213 (nbsd_nat_target::thread_name): Likewise.
6214 (nbsd_nat_target::update_thread_list): Likewise.
6215 (update_thread_list::post_attach): Likewise.
6216 (post_attach::pid_to_str): Likewise.
6217 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6218 (nbsd_thread_lister): Add.
6219 (nbsd_nat_target::thread_alive): Likewise.
6220 (nbsd_nat_target::thread_name): Likewise.
6221 (nbsd_add_threads): Likewise.
6222 (update_thread_list::post_attach): Likewise.
6223 (nbsd_nat_target::update_thread_list): Likewise.
6224 (post_attach::pid_to_str): Likewise.
6225
6226 2020-04-06 Tom Tromey <tromey@adacore.com>
6227
6228 * ada-valprint.c (print_variant_part): Extract the variant field.
6229 (print_field_values): Use the field as the outer value when
6230 recursing.
6231
6232 2020-04-06 Tom Tromey <tromey@adacore.com>
6233
6234 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6235 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6236 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6237 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6238 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6239
6240 2020-04-06 Tom Tromey <tromey@adacore.com>
6241
6242 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6243 TYPE_CODE_ERROR.
6244
6245 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6246
6247 * nbsd-tdep.c: Include "gdbarch.h".
6248 Define enum with NetBSD signal numbers.
6249 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6250 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6251 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6252 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6253 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6254 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6255 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6256 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6257 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6258 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6259 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6260 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6261
6262 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6263
6264 PR gdb/25325
6265 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6266
6267 2020-04-03 Tom Tromey <tromey@adacore.com>
6268
6269 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6270 Read constant block.
6271
6272 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6275 (gdb_bfd_get_full_section_contents): New declaration.
6276 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6277 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6278 gdb_bfd_get_full_section_contents.
6279
6280 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * exec.c (build_section_table): Replace internal_error with
6283 gdb_assert.
6284 (section_table_xfer_memory_partial): Likewise.
6285 * mdebugread.c (parse_partial_symbols): Likewise.
6286 * psymtab.c (lookup_partial_symbol): Likewise.
6287 * utils.c (wrap_here): Likewise.
6288
6289 2020-04-02 Tom Tromey <tromey@adacore.com>
6290
6291 * f-lang.c (build_fortran_types): Use arch_type to initialize
6292 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6293
6294 2020-04-02 Tom Tromey <tromey@adacore.com>
6295
6296 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6297 of attributes.
6298
6299 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6300 Bernd Edlinger <bernd.edlinger@hotmail.de>
6301 Tom Tromey <tromey@adacore.com>
6302
6303 * buildsym.c (buildsym_compunit::record_line): Remove
6304 deduplication code.
6305
6306 2020-04-02 Tom de Vries <tdevries@suse.de>
6307
6308 PR ada/24671
6309 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6310
6311 2020-04-02 Tom de Vries <tdevries@suse.de>
6312
6313 * dwarf2/read.c (dwarf2_gdb_index_functions,
6314 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6315 NULL.
6316 * psymtab.c (psym_lookup_global_symbol_language): New function.
6317 (psym_functions): Init psym_lookup_global_symbol_language with
6318 psym_lookup_global_symbol_language.
6319 * symfile-debug.c (debug_sym_quick_functions): Init
6320 lookup_global_symbol_language with NULL.
6321 * symfile.c (set_initial_language): Remove fixme comment.
6322 * symfile.h (struct quick_symbol_functions): Add
6323 lookup_global_symbol_language.
6324 * symtab.c (find_quick_global_symbol_language): New function.
6325 (find_main_name): Use find_quick_global_symbol_language.
6326
6327 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6328
6329 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6330
6331 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6332
6333 * buildsym.c (record_line): Fix undefined behavior and preserve
6334 lines at eof.
6335
6336 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6337
6338 * buildsym.c (record_line): Fix the resizing condition.
6339
6340 2020-04-01 Tom Tromey <tom@tromey.com>
6341
6342 * value.h (value_literal_complex): Add comment.
6343 * valops.c (value_literal_complex): Refer to value.h.
6344
6345 2020-04-01 Tom Tromey <tom@tromey.com>
6346
6347 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6348 (scalar_type): New rule, from typebase.
6349 (typebase): Use scalar_type. Recognize complex types.
6350 (field_name): Handle FLOAT_KEYWORD.
6351 (ident_tokens): Add _Complex and __complex__.
6352
6353 2020-04-01 Tom Tromey <tom@tromey.com>
6354
6355 PR exp/25299:
6356 * valarith.c (promotion_type, complex_binop): New functions.
6357 (scalar_binop): Handle complex numbers. Use promotion_type.
6358 (value_pos, value_neg, value_complement): Handle complex numbers.
6359
6360 2020-04-01 Tom Tromey <tom@tromey.com>
6361
6362 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6363 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6364 (parse_number): Handle complex numbers.
6365
6366 2020-04-01 Tom Tromey <tom@tromey.com>
6367
6368 * c-valprint.c (c_decorations): Change complex suffix to "i".
6369
6370 2020-04-01 Tom Tromey <tom@tromey.com>
6371
6372 * valprint.c (generic_value_print_complex): Use accessors.
6373 * value.h (value_real_part, value_imaginary_part): Declare.
6374 * valops.c (value_real_part, value_imaginary_part): New
6375 functions.
6376 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6377
6378 2020-04-01 Tom Tromey <tom@tromey.com>
6379
6380 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6381 (read_range_type): Update.
6382 * mdebugread.c (basic_type): Update.
6383 * go-lang.c (build_go_types): Use init_complex_type.
6384 * gdbtypes.h (struct main_type) <complex_type>: New member.
6385 (init_complex_type): Update.
6386 (arch_complex_type): Don't declare.
6387 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6388 Make name if none given. Use alloc_type_copy. Look for cached
6389 complex type.
6390 (arch_complex_type): Remove.
6391 (gdbtypes_post_init): Use init_complex_type.
6392 * f-lang.c (build_fortran_types): Use init_complex_type.
6393 * dwarf2/read.c (read_base_type): Update.
6394 * d-lang.c (build_d_types): Use init_complex_type.
6395 * ctfread.c (read_base_type): Update.
6396
6397 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6398
6399 * infrun.c (stop_all_threads): Update assertion, plus when
6400 stopping threads, take into account that we might be trying
6401 to stop an all-stop target.
6402 (stop_waiting): Call 'stop_all_threads' if there exists a
6403 non-stop target.
6404
6405 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6406
6407 * target.h (exists_non_stop_target): New function declaration.
6408 * target.c (exists_non_stop_target): New function.
6409
6410 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6411
6412 PR gdb/24789
6413 * eval.c (is_integral_or_integral_reference): New function.
6414 (evaluate_subexp_standard): Allow integer references in
6415 pointer arithmetic.
6416
6417 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6418
6419 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6420 check for no ptid in the stop reply when the target is non-stop.
6421
6422 2020-04-01 Tom Tromey <tromey@adacore.com>
6423
6424 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6425 "name" parameter to rvalue reference. Initialize m_name_holder.
6426 <lookup_name_info>: New overloads.
6427 <name>: Return gdb::string_view.
6428 <c_str>: New method.
6429 <make_ignore_params>: Update.
6430 <search_name_hash>: Update.
6431 <language_lookup_name>: Return const char *.
6432 <m_name>: Change type.
6433 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6434 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6435 (lookup_name_info::match_any): Update.
6436 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6437 Update.
6438 * minsyms.c (linkage_name_str): Update.
6439 * language.c (default_symbol_name_matcher): Update.
6440 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6441 Update.
6442 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6443 (ada_lookup_name_info::ada_lookup_name_info): Update.
6444 (literal_symbol_name_matcher): Update.
6445
6446 2020-04-01 Tom Tromey <tromey@adacore.com>
6447
6448 * psymtab.c (psymtab_search_name): Remove function.
6449 (psym_lookup_symbol): Create search name and lookup name here.
6450 (lookup_partial_symbol): Remove "name" parameter; add
6451 lookup_name.
6452 (psym_expand_symtabs_for_function): Update.
6453
6454 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6455
6456 PR tui/25597:
6457 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6458
6459 2020-03-31 Tom Tromey <tromey@adacore.com>
6460
6461 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6462 memcpy.
6463
6464 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6465
6466 * features/riscv/32bit-csr.xml: Regenerated.
6467 * features/riscv/64bit-csr.xml: Regenerated.
6468
6469 2020-03-30 Tom Tromey <tromey@adacore.com>
6470
6471 * ada-valprint.c (print_variant_part): Update.
6472 * ada-lang.h (ada_which_variant_applies): Update.
6473 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6474 outer_valaddr parameters; replace with "outer" value parameter.
6475 (to_fixed_variant_branch_type): Update.
6476
6477 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6478
6479 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6480 <list>. Remove inclusion of observable.h.
6481 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6482 (struct arch_lwp_info): New struct.
6483 (class ppc_linux_dreg_interface): New class.
6484 (struct ppc_linux_process_info): New struct.
6485 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6486 <low_new_clone, low_forget_process, low_prepare_to_resume>
6487 <copy_thread_dreg_state, mark_thread_stale>
6488 <mark_debug_registers_changed, register_hw_breakpoint>
6489 <clear_hw_breakpoint, register_wp, clear_wp>
6490 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6491 <num_memory_accesses, get_trigger_type>
6492 <create_watchpoint_request, hwdebug_point_cmp>
6493 <init_arch_lwp_info, get_arch_lwp_info>
6494 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6495 methods.
6496 <struct ptid_hash>: New inner struct.
6497 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6498 members.
6499 (saved_dabr_value, hwdebug_info, max_slots_number)
6500 (struct hw_break_tuple, struct thread_points, ppc_threads)
6501 (have_ptrace_hwdebug_interface)
6502 (hwdebug_find_thread_points_by_tid)
6503 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6504 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6505 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6506 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6507 use m_dreg_interface.
6508 (hwdebug_point_cmp): Change to...
6509 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6510 reference arguments instead of pointers.
6511 (ppc_linux_nat_target::ranged_break_num_registers): Use
6512 m_dreg_interface.
6513 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6514 m_dreg_interface. Call register_hw_breakpoint.
6515 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6516 m_dreg_interface. Call clear_hw_breakpoint.
6517 (get_trigger_type): Change to...
6518 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6519 comment.
6520 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6521 use m_dreg_interface. Call register_hw_breakpoint.
6522 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6523 use m_dreg_interface. Call clear_hw_breakpoint.
6524 (can_use_watchpoint_cond_accel): Change to...
6525 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6526 method. Update comment, use m_dreg_interface and
6527 m_process_info.
6528 (calculate_dvc): Change to...
6529 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6530 m_dreg_interface.
6531 (num_memory_accesses): Change to...
6532 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6533 (check_condition): Change to...
6534 (ppc_linux_nat_target::check_condition): ...this method.
6535 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6536 comment, use m_dreg_interface.
6537 (create_watchpoint_request): Change to...
6538 (ppc_linux_nat_target::create_watchpoint_request): ...this
6539 method. Use m_dreg_interface.
6540 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6541 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6542 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6543 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6544 (ppc_linux_nat_target::low_forget_process)
6545 (ppc_linux_nat_target::low_new_fork)
6546 (ppc_linux_nat_target::low_new_clone)
6547 (ppc_linux_nat_target::low_delete_thread)
6548 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6549 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6550 only call mark_thread_stale.
6551 (ppc_linux_thread_exit): Remove.
6552 (ppc_linux_nat_target::stopped_data_address): Change to...
6553 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6554 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6555 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6556 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6557 comment. Call low_stopped_data_address.
6558 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6559 m_dreg_interface.
6560 (ppc_linux_nat_target::masked_watch_num_registers): Use
6561 m_dreg_interface.
6562 (ppc_linux_nat_target::copy_thread_dreg_state)
6563 (ppc_linux_nat_target::mark_thread_stale)
6564 (ppc_linux_nat_target::mark_debug_registers_changed)
6565 (ppc_linux_nat_target::register_hw_breakpoint)
6566 (ppc_linux_nat_target::clear_hw_breakpoint)
6567 (ppc_linux_nat_target::register_wp)
6568 (ppc_linux_nat_target::clear_wp)
6569 (ppc_linux_nat_target::init_arch_lwp_info)
6570 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6571 (_initialize_ppc_linux_nat): Remove observer callback.
6572
6573 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6574
6575 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6576 (ppc_linux_nat_target::auxv_parse)
6577 (ppc_linux_nat_target::read_description)
6578 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6579 Move up.
6580
6581 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6582
6583 * linux-nat.h (low_new_clone): New method.
6584 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6585
6586 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6587
6588 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6589 (dbx_expand_psymtab): ... this.
6590 (start_psymtab): Update.
6591 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6592 (mdebug_expand_psymtab): ... this.
6593 (parse_partial_symbols): Update.
6594 (new_psymtab): Update.
6595 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6596 (xcoff_expand_psymtab): ... this.
6597 (xcoff_start_psymtab): Update.
6598
6599 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6600
6601 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6602 <expand_dependencies>: ... this.
6603 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6604 (partial_symtab::expand_dependencies): ... this.
6605 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6606 Update.
6607 (dwarf2_psymtab::expand_psymtab): Update.
6608 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6609 * mdebugread.c (psymtab_to_symtab_1): Update.
6610 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6611
6612 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6613
6614 * psympriv.h (discard_psymtab): Remove.
6615 * dbxread.c (dbx_end_psymtab): Update.
6616 * xcoffread.c (xcoff_end_psymtab): Update.
6617
6618 2020-03-28 Tom Tromey <tom@tromey.com>
6619
6620 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6621 comment.
6622
6623 2020-03-28 Tom Tromey <tom@tromey.com>
6624
6625 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6626
6627 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6628
6629 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6630
6631 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6632
6633 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6634
6635 2020-03-26 Tom Tromey <tom@tromey.com>
6636
6637 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6638 (mark_common_block_symbol_computed, read_tag_string_type)
6639 (attr_to_dynamic_prop, read_subrange_type): Update.
6640 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6641 to be methods on struct attribute.
6642 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6643 (read_call_site_scope, partial_die_info::read)
6644 (partial_die_info::read, lookup_die_type, follow_die_ref):
6645 Update.
6646 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6647 from dwarf2_get_ref_die_offset.
6648 (attribute::constant_value): New method, from
6649 dwarf2_get_attr_constant_value.
6650 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6651 Declare method.
6652 <constant_value>: New method.
6653
6654 2020-03-26 Tom Tromey <tom@tromey.com>
6655
6656 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6657 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6658 (dwarf_type_encoding_name): Move to stringify.c.
6659 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6660 * dwarf2/stringify.c: New file.
6661 * dwarf2/stringify.h: New file.
6662
6663 2020-03-26 Tom Tromey <tom@tromey.com>
6664
6665 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6666 Rewrite.
6667
6668 2020-03-26 Tom Tromey <tom@tromey.com>
6669
6670 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6671 methods.
6672 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6673 (lookup_ranges_base): Likewise.
6674 (read_cutu_die_from_dwo, read_full_die_1): Update.
6675
6676 2020-03-26 Tom Tromey <tom@tromey.com>
6677
6678 * dwarf2/read.c (read_import_statement, read_file_scope)
6679 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6680 (read_lexical_block_scope, read_call_site_scope)
6681 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6682 (handle_struct_member_die, process_structure_scope)
6683 (update_enumeration_type_from_children)
6684 (process_enumeration_scope, read_array_type, read_common_block)
6685 (read_namespace, read_module, read_subroutine_type): Update.
6686 (sibling_die): Remove.
6687
6688 2020-03-26 Tom Tromey <tom@tromey.com>
6689
6690 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6691 (build_type_psymtabs_reader, read_structure_type)
6692 (read_enumeration_type, read_full_die_1): Update.
6693 (dwarf2_attr_no_follow): Move to die.h.
6694 * dwarf2/die.h (struct die_info) <attr>: New method.
6695
6696 2020-03-26 Tom Tromey <tom@tromey.com>
6697
6698 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6699 <base_address>: Now an optional.
6700 (dwarf2_find_base_address, dwarf2_rnglists_process)
6701 (dwarf2_ranges_process, fill_in_loclist_baton)
6702 (dwarf2_symbol_mark_computed): Update.
6703
6704 2020-03-26 Tom Tromey <tom@tromey.com>
6705
6706 * dwarf2/read.c (struct die_info): Move to die.h.
6707 * dwarf2/die.h: New file.
6708
6709 2020-03-26 Tom Tromey <tom@tromey.com>
6710
6711 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6712 * dwarf2/read.c
6713 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6714 Move to line-header.c.
6715 (read_checked_initial_length_and_offset, read_formatted_entries):
6716 Likewise.
6717 (dwarf_decode_line_header): Split into two.
6718 * dwarf2/line-header.c
6719 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6720 Move from read.c.
6721 (read_checked_initial_length_and_offset, read_formatted_entries):
6722 Likewise.
6723 (dwarf_decode_line_header): New function, split from read.c.
6724
6725 2020-03-26 Tom Tromey <tom@tromey.com>
6726
6727 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6728 Declare method.
6729 * dwarf2/read.c (read_attribute_value): Update.
6730 (dwarf2_per_objfile::read_line_string): Rename from
6731 read_indirect_line_string.
6732 (read_formatted_entries): Update.
6733
6734 2020-03-26 Tom Tromey <tom@tromey.com>
6735
6736 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6737 variable.
6738
6739 2020-03-26 Tom Tromey <tom@tromey.com>
6740
6741 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6742 const.
6743 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6744 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6745 parameter const.
6746
6747 2020-03-26 Tom Tromey <tom@tromey.com>
6748
6749 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6750 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6751 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6752 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6753
6754 2020-03-26 Tom Tromey <tom@tromey.com>
6755
6756 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6757 file_names_size, file_full_name, file_file_name>: Use const.
6758 <file_name_at, file_names>: Add const overload.
6759 * dwarf2/line-header.c (line_header::file_file_name)
6760 (line_header::file_full_name): Update.
6761
6762 2020-03-26 Tom Tromey <tom@tromey.com>
6763
6764 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6765 (macro_start_file, consume_improper_spaces)
6766 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6767 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6768 (dwarf_decode_macros): Move to macro.c.
6769 * dwarf2/macro.c: New file.
6770 * dwarf2/macro.h: New file.
6771 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6772
6773 2020-03-26 Tom Tromey <tom@tromey.com>
6774
6775 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6776 method.
6777 * dwarf2/section.c: New method. From
6778 read_indirect_string_at_offset_from.
6779 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6780 (read_indirect_string_at_offset_from): Move to section.c.
6781 (read_indirect_string_at_offset): Rewrite.
6782 (read_indirect_line_string_at_offset): Remove.
6783 (read_indirect_string, read_indirect_line_string)
6784 (dwarf_decode_macro_bytes): Update.
6785
6786 2020-03-26 Tom Tromey <tom@tromey.com>
6787
6788 * dwarf2/section.h (struct dwarf2_section_info)
6789 <overload_complaint>: Declare.
6790 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6791 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6792 Rename from dwarf2_section_buffer_overflow_complaint.
6793 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6794 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6795
6796 2020-03-26 Tom Tromey <tom@tromey.com>
6797
6798 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6799 Declare.
6800 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6801 Move from read.c.
6802 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6803 to section.c.
6804
6805 2020-03-26 Tom Tromey <tom@tromey.com>
6806
6807 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6808
6809 2020-03-26 Tom Tromey <tom@tromey.com>
6810
6811 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6812 "builder".
6813 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6814 parameter.
6815 (dwarf_decode_macros): Update.
6816
6817 2020-03-26 Tom Tromey <tom@tromey.com>
6818
6819 * dwarf2/read.c (read_attribute_value): Update.
6820 (read_indirect_string_from_dwz): Move to dwz.c; change into
6821 method.
6822 (dwarf_decode_macro_bytes): Update.
6823 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6824 * dwarf2/dwz.c: New file.
6825 * Makefile.in (COMMON_SFILES): Add dwz.c.
6826
6827 2020-03-26 Tom Tromey <tom@tromey.com>
6828
6829 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6830 * dwarf2/read.c: Add include.
6831 * dwarf2/index-write.c: Add include.
6832 * dwarf2/index-cache.c: Add include.
6833 * dwarf2/dwz.h: New file.
6834
6835 2020-03-25 Tom Tromey <tom@tromey.com>
6836
6837 * compile/compile-object-load.c (get_out_value_type): Mention
6838 correct symbol name in error message.
6839
6840 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6841
6842 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6843
6844 2020-03-25 Tom de Vries <tdevries@suse.de>
6845
6846 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6847 * symmisc.c (dump_symtab_1): Print user and includes fields.
6848 (maintenance_info_symtabs): Same.
6849
6850 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6851
6852 PR gdb/25534
6853 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6854 (riscv_regcache_cooked_write): New function.
6855 (riscv_push_dummy_call): Use new function.
6856 (riscv_return_value): Likewise.
6857
6858 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6859
6860 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6861 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6862 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6863 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6864 * infrun.c (follow_fork): Likewise.
6865 (follow_fork_inferior): Likewise.
6866 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6867 * linux-nat.h (class linux_nat_target): Likewise.
6868 * remote.c (class remote_target) <follow_fork>: Likewise.
6869 (remote_target::follow_fork): Likewise.
6870 * target-delegates.c: Re-generate.
6871 * target.c (default_follow_fork): Likewise.
6872 (target_follow_fork): Likewise.
6873 * target.h (struct target_ops) <follow_fork>: Likewise.
6874 (target_follow_fork): Likewise.
6875
6876 2020-03-24 Tom de Vries <tdevries@suse.de>
6877
6878 * psymtab.c (maintenance_info_psymtabs): Print user field.
6879
6880 2020-03-20 Tom Tromey <tromey@adacore.com>
6881
6882 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6883 const.
6884 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6885 const.
6886
6887 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6888
6889 * ptrace.m4: Don't check for ptrace declaration.
6890 * config.in: Re-generate.
6891 * configure: Re-generate.
6892 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6893 not defined.
6894
6895 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6896
6897 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6898 `PTRACE_TYPE_RET'.
6899 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6900 * sparc-nat.c (gdb_ptrace): Likewise.
6901 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6902
6903 2020-03-20 Tom Tromey <tromey@adacore.com>
6904
6905 * c-exp.y (lex_one_token): Fix assert.
6906
6907 2020-03-20 Tom Tromey <tromey@adacore.com>
6908
6909 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6910 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6911 strncpy call.
6912
6913 2020-03-20 Tom Tromey <tromey@adacore.com>
6914
6915 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6916
6917 2020-03-20 Tom Tromey <tromey@adacore.com>
6918
6919 * ada-valprint.c (print_variant_part): Remove parameters; switch
6920 to value-based API.
6921 (print_field_values): Likewise.
6922 (ada_val_print_struct_union): Likewise.
6923 (ada_value_print_1): Update.
6924
6925 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6926
6927 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6928 nbsd_nat_target instead of inf_ptrace_target.
6929 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6930 nbsd_nat_target.
6931
6932 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6933
6934 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6935 it to the ptrace call.
6936 * (store_registers): Likewise.
6937
6938 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6939
6940 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6941 it to the ptrace call.
6942 * (store_registers): Likewise.
6943
6944 2020-03-19 Luis Machado <luis.machado@linaro.org>
6945
6946 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6947 valid, fetch vg value from ptrace.
6948
6949 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6950 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6951 * inf-ptrace.c: Likewise.
6952 * (gdb_ptrace): Add.
6953 * (inf_ptrace_target::resume): Update.
6954 * (inf_ptrace_target::xfer_partial): Likewise.
6955 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6956 * (inf_ptrace_peek_poke): Update.
6957
6958 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6959
6960 * x86-bsd-nat.c (gdb_ptrace): New.
6961 * (x86bsd_dr_set): Add new argument `ptid'.
6962 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6963 x86bsd_dr_set_addr): Update.
6964
6965 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6966
6967 * remote.c (remote_target::process_stop_reply): Handle events for
6968 all threads differently.
6969
6970 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * completer.c (completion_tracker::remove_completion): Define new
6973 function.
6974 * completer.h (completion_tracker::remove_completion): Declare new
6975 function.
6976 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6977 when adding a C++ function symbol.
6978
6979 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6980
6981 * completer.c (completion_tracker::completion_hash_entry): Define
6982 new class.
6983 (advance_to_filename_complete_word_point): Call
6984 recompute_lowest_common_denominator.
6985 (completion_tracker::completion_tracker): Call discard_completions
6986 to setup the hash table.
6987 (completion_tracker::discard_completions): Allow for being called
6988 from the constructor, pass new equal function, and element deleter
6989 when constructing the hash table. Initialise new class member
6990 variables.
6991 (completion_tracker::maybe_add_completion): Remove use of
6992 m_entries_vec, and store more information into m_entries_hash.
6993 (completion_tracker::recompute_lcd_visitor): New function, most
6994 content taken from...
6995 (completion_tracker::recompute_lowest_common_denominator):
6996 ...here, this now just visits each item in the hash calling the
6997 above visitor.
6998 (completion_tracker::build_completion_result): Remove use of
6999 m_entries_vec, call recompute_lowest_common_denominator.
7000 * completer.h (completion_tracker::have_completions): Remove use
7001 of m_entries_vec.
7002 (completion_tracker::completion_hash_entry): Declare new class.
7003 (completion_tracker::recompute_lowest_common_denominator): Change
7004 function signature.
7005 (completion_tracker::recompute_lcd_visitor): Declare new function.
7006 (completion_tracker::m_entries_vec): Delete.
7007 (completion_tracker::m_entries_hash): Initialize to NULL.
7008 (completion_tracker::m_lowest_common_denominator_valid): New
7009 member variable.
7010 (completion_tracker::m_lowest_common_denominator_max_length): New
7011 member variable.
7012
7013 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7014
7015 * regformats/regdef.h: Put reg in gdb namespace.
7016
7017 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7018
7019 * i386-bsd-nat.c (gdb_ptrace): New.
7020 * (i386bsd_fetch_inferior_registers,
7021 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7022 * (i386bsd_fetch_inferior_registers,
7023 i386bsd_store_inferior_registers) Use gdb_ptrace.
7024
7025 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7026
7027 * amd64-bsd-nat.c (gdb_ptrace): New.
7028 * (amd64bsd_fetch_inferior_registers,
7029 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7030 * (amd64bsd_fetch_inferior_registers,
7031 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7032
7033 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7034
7035 * user-regs.c (user_reg::read): Rename to...
7036 (user_reg::xread): ...this.
7037 * (append_user_reg): Rename argument `read' to `xread'.
7038 * (user_reg_add_builtin): Likewise.
7039 * (user_reg_add): Likewise.
7040 * (value_of_user_reg): Likewise.
7041
7042 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7043
7044 * sparc-nat.c (gdb_ptrace): New.
7045 * sparc-nat.c (sparc_fetch_inferior_registers)
7046 (sparc_store_inferior_registers) Remove obsolete comment.
7047 * sparc-nat.c (sparc_fetch_inferior_registers)
7048 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7049 * sparc-nat.c (sparc_fetch_inferior_registers)
7050 (sparc_store_inferior_registers) Use gdb_ptrace.
7051
7052 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7053
7054 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7055 it to the ptrace call.
7056 * sh-nbsd-nat.c (store_registers): Likewise.
7057
7058 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7059
7060 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7061 nbsd_nat_target instead of inf_ptrace_target.
7062 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7063 nbsd_nat_target.
7064
7065 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7066
7067 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7068
7069 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7070
7071 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7072 <sys/sysctl.h>.
7073 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7074
7075 2020-03-17 Tom de Vries <tdevries@suse.de>
7076
7077 PR gdb/23710
7078 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7079 fields.
7080 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7081 fields.
7082 (process_imported_unit_die): Skip import of c++ CUs.
7083
7084 2020-03-16 Tom Tromey <tom@tromey.com>
7085
7086 * p-valprint.c (pascal_object_print_value): Initialize
7087 base_value.
7088
7089 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7090 Shahab Vahedi <shahab@synopsys.com>
7091
7092 * Makefile.in: Add arch/arc.o
7093 * configure.tgt: Likewise.
7094 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7095 (_initialize_arc_tdep): Don't initialize old target descriptions.
7096 (arc_read_description): New function to cache target descriptions.
7097 * arc-tdep.h (arc_read_description): Add proto type.
7098 * arch/arc.c: New file.
7099 * arch/arc.h: Likewise.
7100 * features/Makefile: Replace old target descriptions with new.
7101 * features/arc-arcompact.c: Remove.
7102 * features/arc-arcompact.xml: Likewise.
7103 * features/arc-v2.c: Likewise
7104 * features/arc-v2.xml: Likewise
7105 * features/arc/aux-arcompact.xml: New file.
7106 * features/arc/aux-v2.xml: Likewise.
7107 * features/arc/core-arcompact.xml: Likewise.
7108 * features/arc/core-v2.xml: Likewise.
7109 * features/arc/aux-arcompact.c: Generate.
7110 * features/arc/aux-v2.c: Likewise.
7111 * features/arc/core-arcompact.c: Likewise.
7112 * features/arc/core-v2.c: Likewise.
7113 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7114
7115 2020-03-16 Tom Tromey <tromey@adacore.com>
7116
7117 PR gdb/25663:
7118 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7119 putting value into bcache.
7120
7121 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7122
7123 PR gdb/21500
7124 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7125 to...
7126 (amd64_windows_init_abi_common): ... this. Don't set size of
7127 long type.
7128 (amd64_windows_init_abi): New function.
7129 (amd64_cygwin_init_abi): New function.
7130 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7131 the Cygwin OS ABI.
7132 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7133 comment.
7134
7135 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7136
7137 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7138 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7139 (pe_import_directory_entry): New struct type.
7140 (is_linked_with_cygwin_dll): New function.
7141 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7142 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7143 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7144
7145 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7146
7147 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7148 i386_cygwin_core_osabi_sniffer.
7149
7150 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7151
7152 * i386-cygwin-tdep.c: Rename to...
7153 * i386-windows-tdep.c: ... this.
7154 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7155 i386-windows-tdep.c.
7156 * configure.tgt: Likewise.
7157
7158 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7159
7160 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7161 * osabi.c (gdb_osabi_names): Add "Windows".
7162 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7163 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7164 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7165 i386_cygwin_osabi_sniffer.
7166 (_initialize_i386_cygwin_tdep): Register OS ABI
7167 GDB_OSABI_WINDOWS for i386.
7168 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7169 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7170 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7171 for x86-64.
7172 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7173 when the target matches '*-*-mingw*'.
7174
7175 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7176
7177 * defs.h (enum gdb_osabi): Move to...
7178 * osabi.h (enum gdb_osabi): ... here.
7179 * gdbarch.sh: Include osabi.h in gdbarch.h.
7180 * gdbarch.h: Re-generate.
7181
7182 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7183
7184 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7185 function.
7186 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7187
7188 2020-03-14 Tom Tromey <tom@tromey.com>
7189
7190 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7191 for C++.
7192 (c_type_print_modifier): Likewise. Add "language" parameter.
7193 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7194 (c_type_print_base_1): Update.
7195 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7196 constants.
7197 * type-stack.c (type_stack::insert): Handle tp_atomic and
7198 tp_restrict.
7199 (type_stack::follow_type_instance_flags): Likewise.
7200 (type_stack::follow_types): Likewise. Merge type-following code.
7201 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7202 (space_identifier, cv_with_space_id)
7203 (const_or_volatile_or_space_identifier_noopt)
7204 (const_or_volatile_or_space_identifier): Remove.
7205 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7206 rules.
7207 (ptr_operator, typebase): Update.
7208 (enum token_flag) <FLAG_C>: New constant.
7209 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7210 "_Atomic".
7211 (lex_one_token): Handle FLAG_C.
7212
7213 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7214
7215 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7216 it to the ptrace call.
7217 * m68k-bsd-nat.c (store_registers): Likewise.
7218
7219 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7220
7221 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7222 gdb_byte *.
7223 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7224 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7225 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7226
7227 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7228
7229 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7230 nbsd_nat_target instead of inf_ptrace_target.
7231 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7232 nbsd_nat_target.
7233
7234 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7235
7236 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7237 register_t.
7238
7239 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7240
7241 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7242 it to the ptrace call.
7243 * alpha-bsd-nat.c (store_registers): Likewise.
7244
7245 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7246
7247 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7248 includes.
7249 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7250 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7251 fill_fpregset): Likewise.
7252
7253 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7254
7255 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7256 nbsd_nat_target instead of inf_ptrace_target.
7257 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7258 nbsd_nat_target.
7259
7260 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7261
7262 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7263 register_t.
7264
7265 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7266
7267 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7268 it to the ptrace call.
7269 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7270 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7271 * arm-nbsd-nat.c (store_register): Likewise.
7272 * arm-nbsd-nat.c (store_regs): Likewise.
7273 * arm-nbsd-nat.c (store_fp_register): Likewise.
7274 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7275
7276 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7277
7278 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7279 nbsd_nat_target instead of inf_ptrace_target.
7280 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7281 nbsd_nat_target.
7282
7283 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7284
7285 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7286 it to the ptrace call.
7287 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7288
7289 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7290
7291 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7292 it to the ptrace call.
7293 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7294
7295 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7296
7297 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7298 gdb_byte *.
7299 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7300
7301 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7302
7303 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7304 instead of inf_ptrace_target.
7305 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7306 nbsd_nat_target.
7307
7308 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7309
7310 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7311 register_t.
7312
7313 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7314
7315 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7316 register_t.
7317
7318 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7319
7320 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7321 register_t.
7322
7323 2020-03-13 Tom Tromey <tom@tromey.com>
7324
7325 * value.h (val_print): Don't declare.
7326 * valprint.h (val_print_array_elements)
7327 (val_print_scalar_formatted, generic_val_print): Don't declare.
7328 * valprint.c (generic_val_print_array): Take a struct value.
7329 (generic_val_print_ptr, generic_val_print_memberptr)
7330 (generic_val_print_bool, generic_val_print_int)
7331 (generic_val_print_char, generic_val_print_complex)
7332 (generic_val_print): Remove.
7333 (generic_value_print): Update.
7334 (do_val_print): Remove unused parameters. Don't call
7335 la_val_print.
7336 (val_print): Remove.
7337 (common_val_print): Update. Don't call value_check_printable.
7338 (val_print_scalar_formatted, val_print_array_elements): Remove.
7339 * rust-lang.c (rust_val_print): Remove.
7340 (rust_language_defn): Update.
7341 * p-valprint.c (pascal_val_print): Remove.
7342 (pascal_value_print_inner): Update.
7343 (pascal_object_print_val_fields, pascal_object_print_val):
7344 Remove.
7345 (pascal_object_print_static_field): Update.
7346 * p-lang.h (pascal_val_print): Don't declare.
7347 * p-lang.c (pascal_language_defn): Update.
7348 * opencl-lang.c (opencl_language_defn): Update.
7349 * objc-lang.c (objc_language_defn): Update.
7350 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7351 * m2-lang.h (m2_val_print): Don't declare.
7352 * m2-lang.c (m2_language_defn): Update.
7353 * language.h (struct language_defn) <la_val_print>: Remove.
7354 * language.c (unk_lang_value_print_inner): Rename. Change
7355 argument types.
7356 (unknown_language_defn, auto_language_defn): Update.
7357 * go-valprint.c (go_val_print): Remove.
7358 * go-lang.h (go_val_print): Don't declare.
7359 * go-lang.c (go_language_defn): Update.
7360 * f-valprint.c (f_val_print): Remove.
7361 * f-lang.h (f_value_print): Don't declare.
7362 * f-lang.c (f_language_defn): Update.
7363 * d-valprint.c (d_val_print): Remove.
7364 * d-lang.h (d_value_print): Don't declare.
7365 * d-lang.c (d_language_defn): Update.
7366 * cp-valprint.c (cp_print_value_fields)
7367 (cp_print_value_fields_rtti, cp_print_value): Remove.
7368 (cp_print_static_field): Update.
7369 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7370 (c_val_print_struct, c_val_print_union, c_val_print_int)
7371 (c_val_print_memberptr, c_val_print): Remove.
7372 * c-lang.h (c_val_print_array, cp_print_value_fields)
7373 (cp_print_value_fields_rtti): Don't declare.
7374 * c-lang.c (c_language_defn, cplus_language_defn)
7375 (asm_language_defn, minimal_language_defn): Update.
7376 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7377 (ada_val_print_enum): Take a struct value.
7378 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7379 (ada_val_print): Remove.
7380 (ada_value_print_1): Update.
7381 (printable_val_type): Remove.
7382 * ada-lang.h (ada_val_print): Don't declare.
7383 * ada-lang.c (ada_language_defn): Update.
7384
7385 2020-03-13 Tom Tromey <tom@tromey.com>
7386
7387 * valprint.c (do_val_print): Update.
7388 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7389 a struct value.
7390 (value_to_value_object_no_release): Declare.
7391 * python/py-value.c (value_to_value_object_no_release): New
7392 function.
7393 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7394 struct value.
7395 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7396 function.
7397 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7398 a struct value.
7399 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7400 Declare.
7401 (gdbscm_apply_val_pretty_printer): Take a struct value.
7402 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7403 value.
7404 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7405 value.
7406 * extension-priv.h (struct extension_language_ops)
7407 <apply_val_pretty_printer>: Take a struct value.
7408 * cp-valprint.c (cp_print_value): Create a struct value.
7409 (cp_print_value): Update.
7410
7411 2020-03-13 Tom Tromey <tom@tromey.com>
7412
7413 * ada-valprint.c (print_field_values): Call common_val_print.
7414
7415 2020-03-13 Tom Tromey <tom@tromey.com>
7416
7417 * ada-valprint.c (val_print_packed_array_elements): Remove
7418 bitoffset and val parameters. Call common_val_print.
7419 (ada_val_print_string): Remove offset, address, and original_value
7420 parameters.
7421 (ada_val_print_array): Update.
7422 (ada_value_print_array): New function.
7423 (ada_value_print_1): Call it.
7424
7425 2020-03-13 Tom Tromey <tom@tromey.com>
7426
7427 * ada-valprint.c (ada_value_print): Use common_val_print.
7428
7429 2020-03-13 Tom Tromey <tom@tromey.com>
7430
7431 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7432
7433 2020-03-13 Tom Tromey <tom@tromey.com>
7434
7435 * ada-valprint.c (ada_value_print_num): New function.
7436 (ada_value_print_1): Use it.
7437
7438 2020-03-13 Tom Tromey <tom@tromey.com>
7439
7440 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7441
7442 2020-03-13 Tom Tromey <tom@tromey.com>
7443
7444 * ada-valprint.c (ada_value_print_ptr): New function.
7445 (ada_value_print_1): Use it.
7446
7447 2020-03-13 Tom Tromey <tom@tromey.com>
7448
7449 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7450 call common_val_print.
7451 (ada_val_print_1): Update.
7452 (ada_value_print_1): New function.
7453 (ada_value_print_inner): Rewrite.
7454
7455 2020-03-13 Tom Tromey <tom@tromey.com>
7456
7457 * cp-valprint.c (cp_print_value_fields): Update.
7458 (cp_print_value): New function.
7459
7460 2020-03-13 Tom Tromey <tom@tromey.com>
7461
7462 * m2-valprint.c (m2_value_print_inner): Use
7463 cp_print_value_fields.
7464 * cp-valprint.c (cp_print_value_fields): New function.
7465 * c-valprint.c (c_value_print_struct): New function.
7466 (c_value_print_inner): Use c_value_print_struct.
7467 * c-lang.h (cp_print_value_fields): Declare.
7468
7469 2020-03-13 Tom Tromey <tom@tromey.com>
7470
7471 * c-valprint.c (c_value_print_array): New function.
7472 (c_value_print_inner): Use it.
7473
7474 2020-03-13 Tom Tromey <tom@tromey.com>
7475
7476 * c-valprint.c (c_value_print_memberptr): New function.
7477 (c_value_print_inner): Use it.
7478
7479 2020-03-13 Tom Tromey <tom@tromey.com>
7480
7481 * c-valprint.c (c_value_print_int): New function.
7482 (c_value_print_inner): Use it.
7483
7484 2020-03-13 Tom Tromey <tom@tromey.com>
7485
7486 * c-valprint.c (c_value_print_ptr): New function.
7487 (c_value_print_inner): Use it.
7488
7489 2020-03-13 Tom Tromey <tom@tromey.com>
7490
7491 * c-valprint.c (c_value_print_inner): Rewrite.
7492
7493 2020-03-13 Tom Tromey <tom@tromey.com>
7494
7495 * valprint.c (generic_value_print_complex): New function.
7496 (generic_value_print): Use it.
7497
7498 2020-03-13 Tom Tromey <tom@tromey.com>
7499
7500 * valprint.c (generic_val_print_float): Don't call
7501 val_print_scalar_formatted.
7502 (generic_val_print, generic_value_print): Update.
7503
7504 2020-03-13 Tom Tromey <tom@tromey.com>
7505
7506 * valprint.c (generic_value_print_char): New function
7507 (generic_value_print): Use it.
7508
7509 2020-03-13 Tom Tromey <tom@tromey.com>
7510
7511 * valprint.c (generic_value_print_int): New function.
7512 (generic_value_print): Use it.
7513
7514 2020-03-13 Tom Tromey <tom@tromey.com>
7515
7516 * valprint.c (generic_value_print_bool): New function.
7517 (generic_value_print): Use it.
7518
7519 2020-03-13 Tom Tromey <tom@tromey.com>
7520
7521 * valprint.c (generic_val_print_func): Simplify.
7522 (generic_val_print, generic_value_print): Update.
7523
7524 2020-03-13 Tom Tromey <tom@tromey.com>
7525
7526 * valprint.c (generic_val_print_flags): Remove.
7527 (generic_val_print, generic_value_print): Update.
7528 (val_print_type_code_flags): Add original_value parameter.
7529
7530 2020-03-13 Tom Tromey <tom@tromey.com>
7531
7532 * valprint.c (generic_val_print): Update.
7533 (generic_value_print): Update.
7534 * valprint.c (generic_val_print_enum): Don't call
7535 val_print_scalar_formatted.
7536
7537 2020-03-13 Tom Tromey <tom@tromey.com>
7538
7539 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7540 * valprint.c (generic_value_print_ptr): New function.
7541
7542 2020-03-13 Tom Tromey <tom@tromey.com>
7543
7544 * valprint.c (generic_value_print): Rewrite.
7545
7546 2020-03-13 Tom Tromey <tom@tromey.com>
7547
7548 * p-valprint.c (pascal_object_print_value_fields)
7549 (pascal_object_print_value): New functions.
7550
7551 2020-03-13 Tom Tromey <tom@tromey.com>
7552
7553 * p-valprint.c (pascal_value_print_inner): Rewrite.
7554
7555 2020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * f-valprint.c (f_value_print_innner): Rewrite.
7558
7559 2020-03-13 Tom Tromey <tom@tromey.com>
7560
7561 * m2-valprint.c (m2_print_unbounded_array): New overload.
7562 (m2_print_unbounded_array): Update.
7563 (m2_print_array_contents): Take a struct value.
7564 (m2_value_print_inner): Rewrite.
7565
7566 2020-03-13 Tom Tromey <tom@tromey.com>
7567
7568 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7569 (d_value_print_inner): New function.
7570 * d-lang.h (d_value_print_inner): Declare.
7571 * d-lang.c (d_language_defn): Use d_value_print_inner.
7572
7573 2020-03-13 Tom Tromey <tom@tromey.com>
7574
7575 * go-valprint.c (go_value_print_inner): New function.
7576 * go-lang.h (go_value_print_inner): Declare.
7577 * go-lang.c (go_language_defn): Use go_value_print_inner.
7578
7579 2020-03-13 Tom Tromey <tom@tromey.com>
7580
7581 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7582 API.
7583 (rust_val_print): Rewrite.
7584 (rust_value_print_inner): New function, from rust_val_print.
7585 (rust_language_defn): Use rust_value_print_inner.
7586
7587 2020-03-13 Tom Tromey <tom@tromey.com>
7588
7589 * ada-valprint.c (ada_value_print_inner): New function.
7590 * ada-lang.h (ada_value_print_inner): Declare.
7591 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7592
7593 2020-03-13 Tom Tromey <tom@tromey.com>
7594
7595 * f-valprint.c (f_value_print_innner): New function.
7596 * f-lang.h (f_value_print_innner): Declare.
7597 * f-lang.c (f_language_defn): Use f_value_print_innner.
7598
7599 2020-03-13 Tom Tromey <tom@tromey.com>
7600
7601 * p-valprint.c (pascal_value_print_inner): New function.
7602 * p-lang.h (pascal_value_print_inner): Declare.
7603 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7604
7605 2020-03-13 Tom Tromey <tom@tromey.com>
7606
7607 * m2-valprint.c (m2_value_print_inner): New function.
7608 * m2-lang.h (m2_value_print_inner): Declare.
7609 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7610
7611 2020-03-13 Tom Tromey <tom@tromey.com>
7612
7613 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7614 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7615 * c-valprint.c (c_value_print_inner): New function.
7616 * c-lang.h (c_value_print_inner): Declare.
7617 * c-lang.c (c_language_defn, cplus_language_defn)
7618 (asm_language_defn, minimal_language_defn): Use
7619 c_value_print_inner.
7620
7621 2020-03-13 Tom Tromey <tom@tromey.com>
7622
7623 * p-valprint.c (pascal_object_print_value_fields): Now static.
7624 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7625
7626 2020-03-13 Tom Tromey <tom@tromey.com>
7627
7628 * c-valprint.c (c_val_print_array): Simplify.
7629
7630 2020-03-13 Tom Tromey <tom@tromey.com>
7631
7632 * valprint.c (value_print_array_elements): New function.
7633 * valprint.h (value_print_array_elements): Declare.
7634
7635 2020-03-13 Tom Tromey <tom@tromey.com>
7636
7637 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7638 * mips-tdep.c (mips_print_register): Use
7639 value_print_scalar_formatted.
7640
7641 2020-03-13 Tom Tromey <tom@tromey.com>
7642
7643 * valprint.h (value_print_scalar_formatted): Declare.
7644 * valprint.c (value_print_scalar_formatted): New function.
7645
7646 2020-03-13 Tom Tromey <tom@tromey.com>
7647
7648 * valprint.h (generic_value_print): Declare.
7649 * valprint.c (generic_value_print): New function.
7650
7651 2020-03-13 Tom Tromey <tom@tromey.com>
7652
7653 * valprint.c (do_val_print): Call la_value_print_inner, if
7654 available.
7655 * rust-lang.c (rust_language_defn): Update.
7656 * p-lang.c (pascal_language_defn): Update.
7657 * opencl-lang.c (opencl_language_defn): Update.
7658 * objc-lang.c (objc_language_defn): Update.
7659 * m2-lang.c (m2_language_defn): Update.
7660 * language.h (struct language_defn) <la_value_print_inner>: New
7661 member.
7662 * language.c (unknown_language_defn, auto_language_defn): Update.
7663 * go-lang.c (go_language_defn): Update.
7664 * f-lang.c (f_language_defn): Update.
7665 * d-lang.c (d_language_defn): Update.
7666 * c-lang.c (c_language_defn, cplus_language_defn)
7667 (asm_language_defn, minimal_language_defn): Update.
7668 * ada-lang.c (ada_language_defn): Update.
7669
7670 2020-03-13 Tom Tromey <tom@tromey.com>
7671
7672 * c-valprint.c (c_value_print): Use common_val_print.
7673
7674 2020-03-13 Tom Tromey <tom@tromey.com>
7675
7676 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7677
7678 2020-03-13 Tom Tromey <tom@tromey.com>
7679
7680 * f-valprint.c (f77_print_array_1, f_val_print): Use
7681 common_val_print.
7682
7683 2020-03-13 Tom Tromey <tom@tromey.com>
7684
7685 * riscv-tdep.c (riscv_print_one_register_info): Use
7686 common_val_print.
7687
7688 2020-03-13 Tom Tromey <tom@tromey.com>
7689
7690 * mi/mi-main.c (output_register): Use common_val_print.
7691
7692 2020-03-13 Tom Tromey <tom@tromey.com>
7693
7694 * infcmd.c (default_print_one_register_info): Use
7695 common_val_print.
7696
7697 2020-03-13 Tom Tromey <tom@tromey.com>
7698
7699 * valprint.h (common_val_print_checked): Declare.
7700 * valprint.c (common_val_print_checked): New function.
7701 * stack.c (print_frame_arg): Use common_val_print_checked.
7702
7703 2020-03-13 Tom Tromey <tom@tromey.com>
7704
7705 * valprint.c (do_val_print): New function, from val_print.
7706 (val_print): Use do_val_print.
7707 (common_val_print): Use do_val_print.
7708
7709 2020-03-13 Tom Tromey <tom@tromey.com>
7710
7711 * valprint.c (value_print): Use scoped_value_mark.
7712
7713 2020-03-13 Tom de Vries <tdevries@suse.de>
7714
7715 PR symtab/25646
7716 * psymtab.c (partial_symtab::partial_symtab): Don't set
7717 globals_offset and statics_offset. Push element onto
7718 current_global_psymbols and current_static_psymbols stacks.
7719 (concat): New function.
7720 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7721 element from current_global_psymbols and current_static_psymbols
7722 stacks. Concat popped elements to global_psymbols and
7723 static_symbols.
7724 (add_psymbol_to_list): Use current_global_psymbols and
7725 current_static_psymbols stacks.
7726 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7727 current_static_psymbols fields.
7728
7729 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7730
7731 * corelow.c (sniff_core_bfd): Remove.
7732 (class core_target) <m_core_vec>: Remove.
7733 (core_target::core_target): Update.
7734 (core_file_fns): Remove.
7735 (deprecated_add_core_fns): Remove.
7736 (default_core_sniffer): Remove.
7737 (sniff_core_bfd): Remove.
7738 (default_check_format): Remove.
7739 (gdb_check_format): Remove.
7740 (core_target_open): Update.
7741 (core_target::get_core_register_section): Update.
7742 (get_core_registers_cb): Update.
7743 (core_target::fetch_registers): Update.
7744 * gdbcore.h (struct core_fns): Remove.
7745 (deprecated_add_core_fns): Remove.
7746 (default_core_sniffer): Remove.
7747 (default_check_format): Remove.
7748
7749 2020-03-12 Tom Tromey <tom@tromey.com>
7750
7751 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7752 CORE_ADDR.
7753 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7754
7755 2020-03-12 Tom Tromey <tom@tromey.com>
7756
7757 * remote.c (remote_target::download_tracepoint)
7758 (remote_target::enable_tracepoint)
7759 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7760 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7761 sprintf_vma.
7762
7763 2020-03-12 Tom Tromey <tom@tromey.com>
7764
7765 * symfile-mem.c: Update CORE_ADDR size assert.
7766
7767 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7768
7769 * selftest.m4: Move to gdbsupport/.
7770 * acinclude.m4: Update path to selftest.m4.
7771
7772 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7773
7774 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7775 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7776 gdbarch-selfselftests.c and selftest-arch.c.
7777 (SUBDIR_UNITTESTS_OBS): Rename to...
7778 (SELFTESTS_OBS): ... this.
7779 (COMMON_SFILES): Remove disasm-selftests.c and
7780 gdbarch-selftests.c.
7781 * configure.ac: Don't add selftest-arch.{c,o} to
7782 CONFIG_{SRCS,OBS}.
7783 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7784 preprocessor conditions.
7785
7786 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7787
7788 * configure.ac: Don't source bfd/development.sh.
7789 * selftest.m4: Modify comment.
7790 * configure: Re-generate.
7791
7792 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7793
7794 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7795 not "true" or "false".
7796 * configure: Re-generate.
7797
7798 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7799
7800 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7801 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7802 renamed to arm_nbsd_supply_gregset.
7803 (fetch_register): Update to call arm_nbsd_supply_gregset.
7804 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7805 (arm_netbsd_nat_target::fetch_registers): Update.
7806 (fetch_elfcore_registers): Removed.
7807 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7808 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7809 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7810 not require NetBSD system headers.
7811 (arm_nbsd_regset): New struct.
7812 (arm_nbsd_iterate_over_regset_sections): New function.
7813 (arm_netbsd_init_abi_common): Updated to call
7814 set_gdbarch_iterate_over_regset_sections.
7815 * arm-nbsd-tdep.h: New file.
7816
7817 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7818
7819 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7820 recursion.
7821
7822 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7823
7824 * configure: Re-generate.
7825
7826 2020-03-11 Tom Tromey <tromey@adacore.com>
7827
7828 * ada-typeprint.c (print_choices): Fix comment.
7829
7830 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7831
7832 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7833 previous item in the list, when the list has no items.
7834
7835 2020-03-11 Tom de Vries <tdevries@suse.de>
7836
7837 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7838 PROP_LOCLIST handling code.
7839
7840 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7841
7842 * buildsym-legacy.c (record_line): Pass extra parameter to
7843 record_line.
7844 * buildsym.c (buildsym_compunit::record_line): Take an extra
7845 parameter, reduce duplication in the line table, and record the
7846 is_stmt flag in the line table.
7847 * buildsym.h (buildsym_compunit::record_line): Add extra
7848 parameter.
7849 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7850 non-statement lines.
7851 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7852 this to the symtab builder.
7853 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7854 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7855 through to dwarf_record_line_1.
7856 * infrun.c (process_event_stop_test): When stepping, don't stop at
7857 a non-statement instruction, and only refresh the step info when
7858 we land in the middle of a line's range. Also add an extra
7859 comment.
7860 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7861 field.
7862 * record-btrace.c (btrace_find_line_range): Only record lines
7863 marked as is-statement.
7864 * stack.c (frame_show_address): Show the frame address if we are
7865 in a non-statement sal.
7866 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7867 (maintenance_print_one_line_table): Print a header for the is_stmt
7868 column, and include is_stmt information in the output.
7869 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7870 preference to non-statements.
7871 (find_pcs_for_symtab_line): Prefer is-statement entries.
7872 (find_line_common): Likewise.
7873 * symtab.h (struct linetable_entry): Add is_stmt field.
7874 (struct symtab_and_line): Likewise.
7875 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7876 arranging the line table.
7877
7878 2020-03-07 Tom de Vries <tdevries@suse.de>
7879
7880 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7881 DIE.
7882
7883 2020-03-07 Tom Tromey <tom@tromey.com>
7884
7885 * valops.c (value_literal_complex): Remove obsolete comment.
7886 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7887 comment.
7888
7889 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7890
7891 * infrun.h: Forward-declare thread_info.
7892 (set_step_info): Add thread_info parameter, add doc.
7893 * infrun.c (set_step_info): Add thread_info parameter, move doc
7894 to header.
7895 * infrun.c (process_event_stop_test): Pass thread to
7896 set_step_info call.
7897 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7898 set_step_info.
7899 (prepare_one_step): Add thread_info parameter, pass it to
7900 set_step_frame and prepare_one_step (recursive) call.
7901 (step_1): Pass thread to prepare_one_step call.
7902 (step_command_fsm::should_stop): Pass thread to
7903 prepare_one_step.
7904 (until_next_fsm): Pass thread to set_step_frame call.
7905 (finish_command): Pass thread to set_step_info call.
7906
7907 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7908
7909 * windows-tdep.c (windows_solib_create_inferior_hook):
7910 Check if inferior is running.
7911
7912 2020-03-06 Tom de Vries <tdevries@suse.de>
7913
7914 * NEWS: Fix "the the".
7915 * ctfread.c: Same.
7916
7917 2020-03-06 Tom de Vries <tdevries@suse.de>
7918
7919 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7920
7921 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7922
7923 * .dir-locals.el: Add a comment referencing the other copies of
7924 this file.
7925
7926 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7927
7928 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7929 psargs.
7930
7931 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7932
7933 * .gitattributes: New file.
7934
7935 2020-03-04 Tom Tromey <tom@tromey.com>
7936
7937 * symmisc.c (print_symbol_bcache_statistics)
7938 (print_objfile_statistics): Update.
7939 * symfile.c (allocate_symtab): Use intern.
7940 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7941 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7942 macro_cache>: Remove.
7943 <string_cache>: New member.
7944 (struct objfile) <intern>: New methods.
7945 * elfread.c (elf_symtab_read): Use intern.
7946 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7947 (dwarf2_compute_name, dwarf2_physname)
7948 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7949 names.
7950 (guess_partial_die_structure_name): Update.
7951 (partial_die_info::fixup): Intern name.
7952 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7953 name.
7954 (dwarf2_name): Intern name. Update.
7955 * buildsym.c (buildsym_compunit::get_macro_table): Use
7956 string_cache.
7957
7958 2020-03-04 Tom Tromey <tom@tromey.com>
7959
7960 * jit.c (bfd_open_from_target_memory): Make "target" const.
7961 * corefile.c (gnutarget): Now const.
7962 * gdbcore.h (gnutarget): Now const.
7963
7964 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7965
7966 * NEWS: Mention support for WOW64 processes.
7967 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7968 (amd64_windows_segment_register_p): Remove static.
7969 (_initialize_amd64_windows_nat): Update.
7970 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7971 * i386-windows-nat.c (context_offset): Update.
7972 (i386_mappings): Rename and remove static.
7973 (i386_windows_segment_register_p): Remove static.
7974 (_initialize_i386_windows_nat): Update.
7975 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7976 (STATUS_WX86_SINGLE_STEP): New macro.
7977 (EnumProcessModulesEx): New macro.
7978 (Wow64SuspendThread): New macro.
7979 (Wow64GetThreadContext): New macro.
7980 (Wow64SetThreadContext): New macro.
7981 (Wow64GetThreadSelectorEntry): New macro.
7982 (windows_set_context_register_offsets): Add static.
7983 (windows_set_segment_register_p): Likewise.
7984 (windows_add_thread): Adapt for WOW64 processes.
7985 (windows_fetch_one_register): Likewise.
7986 (windows_nat_target::fetch_registers): Likewise.
7987 (windows_store_one_register): Likewise.
7988 (display_selector): Likewise.
7989 (display_selectors): Likewise.
7990 (handle_exception): Likewise.
7991 (windows_continue): Likewise.
7992 (windows_nat_target::resume): Likewise.
7993 (windows_add_all_dlls): Likewise.
7994 (do_initial_windows_stuff): Likewise.
7995 (windows_nat_target::attach): Likewise.
7996 (windows_get_exec_module_filename): Likewise.
7997 (windows_nat_target::create_inferior): Likewise.
7998 (windows_xfer_siginfo): Likewise.
7999 (_initialize_loadable): Initialize Wow64SuspendThread,
8000 Wow64GetThreadContext, Wow64SetThreadContext,
8001 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8002 * windows-nat.h (windows_set_context_register_offsets):
8003 Remove declaration.
8004 (windows_set_segment_register_p): Likewise.
8005 (i386_windows_segment_register_p): Add declaration.
8006 (amd64_windows_segment_register_p): Likewise.
8007
8008 2020-03-04 Luis Machado <luis.machado@linaro.org>
8009
8010 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8011 in "info registers" for AArch64/ARM.
8012
8013 The change caused "info registers" to not print GPR's.
8014
8015 gdb/ChangeLog:
8016
8017 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8018
8019 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8020 when reg->group is empty and reggroup is not.
8021
8022 2020-03-03 Tom Tromey <tromey@adacore.com>
8023
8024 * dwarf2/frame.c (struct dwarf2_frame_cache)
8025 <checked_tailcall_bottom, entry_cfa_sp_offset,
8026 entry_cfa_sp_offset_p>: Remove members.
8027 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8028 (dwarf2_frame_prev_register): Don't call
8029 dwarf2_tailcall_sniffer_first.
8030 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8031 * frame-unwind.c (add_unwinder): New fuction.
8032 (frame_unwind_init): Use it. Add tailcall unwinder.
8033
8034 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8035 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8036
8037 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8038 value should be printed as true.
8039
8040 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8041
8042 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8043 (windows_init_abi): Set and use windows_so_ops.
8044
8045 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8046
8047 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8048 when verifying if dealing with a convenience variable.
8049
8050 2020-03-03 Luis Machado <luis.machado@linaro.org>
8051
8052 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8053
8054 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8055
8056 * infrun.c (gdbarch_supports_displaced_stepping): New.
8057 (use_displaced_stepping): Break up conditions in smaller pieces.
8058 Use gdbarch_supports_displaced_stepping.
8059 (displaced_step_prepare_throw): Use
8060 gdbarch_supports_displaced_stepping.
8061
8062 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8063
8064 * NEWS: Mention new behaviour of the history filename.
8065 * top.c (write_history_p): Add comment.
8066 (show_write_history_p): Add header comment, give a different
8067 message when history writing is on, but the history filename is
8068 empty.
8069 (history_filename): Add comment.
8070 (history_filename_empty): New function.
8071 (show_history_filename): Add header comment, give a different
8072 message when the filename is empty.
8073 (init_history): Compare history_filename against nullptr, and only
8074 read history if the filename is not empty.
8075 (set_history_filename): Add header comment, and only make
8076 non-empty filenames absolute.
8077 (init_main): Make the filename argument to 'set history filename'
8078 optional.
8079
8080 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8081
8082 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8083 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8084 (fetch_fp_register): Update.
8085 (fetch_fp_regs): Update.
8086 (store_fp_register): Update.
8087 (store_fp_regs): Update.
8088 (arm_netbsd_nat_target::read_description): New function.
8089 (fetch_elfcore_registers): Update.
8090
8091 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8092
8093 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8094 general_thread if the stop reply is missing a thread-id.
8095 (remote_target::process_stop_reply): Use the first non-exited
8096 thread if the target didn't pass a thread-id.
8097 * infrun.c (do_target_wait): Move call to
8098 switch_to_inferior_no_thread to ....
8099 (do_target_wait_1): ... here.
8100
8101 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8102
8103 * debuginfod-support.c: Include defs.h first.
8104
8105 2020-02-28 Tom de Vries <tdevries@suse.de>
8106
8107 * symfile.c (set_initial_language): Use default language for lookup.
8108
8109 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8110
8111 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8112 reader variable, pass `this` to read_cutu_die_from_dwo.
8113
8114 2020-02-27 Aaron Merey <amerey@redhat.com>
8115
8116 * source.c (open_source_file): Check for nullptr when computing
8117 srcpath.
8118
8119 2020-02-27 Tom Tromey <tromey@adacore.com>
8120
8121 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8122 member.
8123 (dwarf2_add_field): Don't update nfields.
8124 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8125
8126 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8127
8128 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8129 abs.
8130
8131 2020-02-26 Tom Tromey <tom@tromey.com>
8132
8133 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8134 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8135 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8136 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8137 per_cu_data.
8138
8139 2020-02-26 Tom Tromey <tom@tromey.com>
8140
8141 * dwarf2/index-write.c (psym_index_map): Change type.
8142 (add_address_entry_worker, write_one_signatured_type)
8143 (recursively_count_psymbols, recursively_write_psymbols)
8144 (class debug_names, psyms_seen_size, write_gdbindex)
8145 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8146
8147 2020-02-26 Aaron Merey <amerey@redhat.com>
8148
8149 * Makefile.in: Handle optional debuginfod support.
8150 * NEWS: Update.
8151 * README: Add --with-debuginfod summary.
8152 * config.in: Regenerate.
8153 * configure: Regenerate.
8154 * configure.ac: Handle optional debuginfod support.
8155 * debuginfod-support.c: debuginfod helper functions.
8156 * debuginfod-support.h: Ditto.
8157 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8158 summary.
8159 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8160 when a dwz file cannot be found.
8161 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8162 debuginfo file cannot be found.
8163 * source.c (open_source_file): Query debuginfod servers when a
8164 source file cannot be found.
8165 * top.c (print_gdb_configuration): Include
8166 --{with,without}-debuginfod in the output.
8167
8168 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8169
8170 * thread.c (thr_try_catch_cmd): Print thread name.
8171
8172 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8173
8174 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8175 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8176 dwarf2_fetch_die_type_sect_off): Move to...
8177 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8178 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8179 dwarf2_fetch_die_type_sect_off): ... here.
8180 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8181 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8182 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8183
8184 2020-02-26 Tom de Vries <tdevries@suse.de>
8185
8186 PR gdb/25603
8187 * symfile.c (set_initial_language): Exit-early if
8188 language_mode == language_mode_manual.
8189
8190 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8191
8192 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8193 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8194 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8195
8196 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8197
8198 * gdbtypes.c (create_array_type_with_stride): Handle negative
8199 array strides.
8200 * valarith.c (value_subscripted_rvalue): Likewise.
8201
8202 2020-02-25 Luis Machado <luis.machado@linaro.org>
8203
8204 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8205
8206 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8207
8208 * loc.h (dwarf2_get_die_type): Move to...
8209 * read.h (dwarf2_get_die_type): ... here.
8210 * read.c (dwarf2_get_die_type): Move doc to header.
8211
8212 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8213
8214 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8215 'gnulib/Makefile.in' to the list.
8216
8217 2020-02-24 Tom Tromey <tom@tromey.com>
8218
8219 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8220 Remove.
8221 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8222 XOBNEWVEC.
8223
8224 2020-02-24 Tom Tromey <tom@tromey.com>
8225
8226 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8227 New method.
8228 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8229 (dw2_do_instantiate_symtab, dw2_get_file_names)
8230 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8231
8232 2020-02-24 Tom Tromey <tom@tromey.com>
8233
8234 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8235 make_scoped_restore.
8236 (dwarf2_psymtab::read_symtab): Don't clear
8237 reading_partial_symbols.
8238
8239 2020-02-24 Tom de Vries <tdevries@suse.de>
8240
8241 PR gdb/25592
8242 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8243
8244 2020-02-24 Tom de Vries <tdevries@suse.de>
8245
8246 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8247 commands layout next/prev/regs.
8248
8249 2020-02-22 Tom Tromey <tom@tromey.com>
8250
8251 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8252 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8253
8254 2020-02-22 Tom Tromey <tom@tromey.com>
8255
8256 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8257
8258 2020-02-22 Tom Tromey <tom@tromey.com>
8259
8260 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8261 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8262 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8263 * tui/tui.c (_initialize_tui): Add usage text.
8264
8265 2020-02-22 Tom Tromey <tom@tromey.com>
8266
8267 * tui/tui-win.c (tui_set_focus_command)
8268 (tui_set_win_height_command): Use error_no_arg.
8269 (_initialize_tui_win): Update help text.
8270 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8271
8272 2020-02-22 Tom Tromey <tom@tromey.com>
8273
8274 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8275 * tui/tui-disasm.h (struct tui_disasm_window)
8276 <display_start_addr>: Declare.
8277 * tui/tui-source.h (struct tui_source_window)
8278 <display_start_addr>: Declare.
8279 * tui/tui-winsource.h (struct tui_source_window_base)
8280 <show_source_line, display_start_addr>: New methods.
8281 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8282 Rename and move to protected section.
8283 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8284 (tui_source_window_base::do_erase_source_content): Update.
8285 (tui_source_window_base::show_source_line): Now a method.
8286 (tui_source_window_base::show_source_content)
8287 (tui_source_window_base::tui_source_window_base)
8288 (tui_source_window_base::rerender)
8289 (tui_source_window_base::refill)
8290 (tui_source_window_base::do_scroll_horizontal)
8291 (tui_source_window_base::set_is_exec_point_at)
8292 (tui_source_window_base::update_breakpoint_info)
8293 (tui_source_window_base::update_exec_info): Update.
8294 * tui/tui-source.c (tui_source_window::set_contents)
8295 (tui_source_window::showing_source_p)
8296 (tui_source_window::do_scroll_vertical)
8297 (tui_source_window::location_matches_p)
8298 (tui_source_window::line_is_displayed): Update.
8299 (tui_source_window::display_start_addr): New method.
8300 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8301 (tui_disasm_window::do_scroll_vertical)
8302 (tui_disasm_window::location_matches_p): Update.
8303 (tui_disasm_window::display_start_addr): New method.
8304
8305 2020-02-22 Tom Tromey <tom@tromey.com>
8306
8307 * NEWS: Add entry for gdb.register_window_type.
8308 * tui/tui-layout.h (window_factory): New typedef.
8309 (tui_register_window): Declare.
8310 * tui/tui-layout.c (saved_tui_windows): New global.
8311 (tui_apply_current_layout): Use it.
8312 (tui_register_window): New function.
8313 * python/python.c (do_start_initialization): Call
8314 gdbpy_initialize_tui.
8315 (python_GdbMethods): Add "register_window_type" function.
8316 * python/python-internal.h (gdbpy_register_tui_window)
8317 (gdbpy_initialize_tui): Declare.
8318 * python/py-tui.c: New file.
8319 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8320
8321 2020-02-22 Tom Tromey <tom@tromey.com>
8322
8323 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8324
8325 2020-02-22 Tom Tromey <tom@tromey.com>
8326
8327 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8328 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8329 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8330 (tui_set_win_focus_to): Move from tui-win.c.
8331
8332 2020-02-22 Tom Tromey <tom@tromey.com>
8333
8334 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8335 functions.
8336 (known_window_types): New global.
8337 (tui_get_window_by_name): Reimplement.
8338 (initialize_known_windows): New function.
8339 (validate_window_name): Rewrite.
8340 (_initialize_tui_layout): Call initialize_known_windows.
8341
8342 2020-02-22 Tom Tromey <tom@tromey.com>
8343
8344 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8345 Remove constants.
8346 * tui/tui-winsource.h (struct tui_source_window_base)
8347 <tui_source_window_base>: Remove parameter.
8348 * tui/tui-winsource.c
8349 (tui_source_window_base::tui_source_window_base): Remove
8350 parameter.
8351 (tui_source_window_base::refill): Update.
8352 * tui/tui-stack.h (struct tui_locator_window)
8353 <tui_locator_window>: Update.
8354 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8355 Default the constructor.
8356 * tui/tui-regs.h (struct tui_data_item_window)
8357 <tui_data_item_window>: Default the constructor.
8358 (struct tui_data_window) <tui_data_window>: Likewise.
8359 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8360 Default the constructor.
8361 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8362 Default the constructor.
8363 <type>: Remove.
8364 (struct tui_win_info) <tui_win_info>: Default the constructor.
8365 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8366 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8367 Default the constructor.
8368
8369 2020-02-22 Tom Tromey <tom@tromey.com>
8370
8371 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8372 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8373 * tui/tui-win.c (tui_resize_all): Don't call
8374 tui_delete_invisible_windows.
8375 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8376 done.
8377 (tui_set_layout): Update.
8378 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8379 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8380 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8381
8382 2020-02-22 Tom Tromey <tom@tromey.com>
8383
8384 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8385 correctly.
8386
8387 2020-02-22 Tom Tromey <tom@tromey.com>
8388
8389 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8390
8391 2020-02-22 Tom Tromey <tom@tromey.com>
8392
8393 * tui/tui-winsource.h (struct tui_source_window_iterator)
8394 <inner_iterator>: New etytypedef.
8395 <tui_source_window_iterator>: Take "end" parameter.
8396 <tui_source_window_iterator>: Take iterator.
8397 <operator*, advance>: Update.
8398 <m_iter>: Change type.
8399 <m_end>: New field.
8400 (struct tui_source_windows) <begin, end>: Update.
8401 * tui/tui-layout.c (tui_windows): New global.
8402 (tui_apply_current_layout): Clear tui_windows.
8403 (tui_layout_window::apply): Update tui_windows.
8404 * tui/tui-data.h (tui_windows): Declare.
8405 (all_tui_windows): Now inline function.
8406 (class tui_window_iterator, struct all_tui_windows): Remove.
8407
8408 2020-02-22 Tom Tromey <tom@tromey.com>
8409
8410 PR tui/17850:
8411 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8412 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8413 "height" argument.
8414 (class tui_layout_window) <get_sizes>: Likewise.
8415 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8416 argument.
8417 <get_sizes>: Add "height" argument.
8418 <m_vertical>: New field.
8419 * tui/tui-layout.c (tui_layout_split::clone): Update.
8420 (tui_layout_split::get_sizes): Add "height" argument.
8421 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8422 (tui_new_layout_command): Parse "-horizontal".
8423 (_initialize_tui_layout): Update help string.
8424 (tui_layout_split::specification): Add "-horizontal" when needed.
8425 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8426 argument.
8427 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8428 New methods.
8429
8430 2020-02-22 Tom Tromey <tom@tromey.com>
8431
8432 * tui/tui-layout.h (enum tui_adjust_result): New.
8433 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8434 (class tui_layout_window) <adjust_size>: Return
8435 tui_adjust_result. Rewrite.
8436 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8437 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8438
8439 2020-02-22 Tom Tromey <tom@tromey.com>
8440
8441 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8442 parameter and return types.
8443 (class tui_layout_base) <specification>: Add "depth".
8444 (class tui_layout_window) <specification>: Add "depth".
8445 (class tui_layout_split) <specification>: Add "depth".
8446 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8447 and return types.
8448 (tui_new_layout_command): Parse sub-layouts.
8449 (_initialize_tui_layout): Update help string.
8450 (tui_layout_window::specification): Add "depth".
8451 (add_layout_command): Update.
8452
8453 2020-02-22 Tom Tromey <tom@tromey.com>
8454
8455 * NEWS: Add "tui new-layout" item.
8456 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8457 Add new-layout command to help text.
8458 (validate_window_name): New function.
8459 (tui_new_layout_command): New function.
8460 (_initialize_tui_layout): Register "new-layout".
8461 (tui_layout_window::specification): New method.
8462 (tui_layout_window::specification): New method.
8463 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8464 method.
8465 (class tui_layout_window) <specification>: New method.
8466 (class tui_layout_split) <specification>: New method.
8467
8468 2020-02-22 Tom Tromey <tom@tromey.com>
8469
8470 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8471 * tui/tui-win.c (window_name_completer): Update comment.
8472 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8473 Declare method.
8474 (class tui_layout_window) <replace_window>: Likewise.
8475 (class tui_layout_split) <replace_window>: Likewise.
8476 (tui_set_layout): Don't declare.
8477 (tui_set_initial_layout): Declare function.
8478 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8479 (asm_regs_layout): New globals.
8480 (tui_current_layout, show_layout): Remove.
8481 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8482 (find_layout, tui_apply_layout): New function.
8483 (layout_completer): Remove.
8484 (tui_next_layout): Reimplement.
8485 (tui_next_layout_command): New function.
8486 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8487 (tui_regs_layout): Reimplement.
8488 (tui_regs_layout_command): New function.
8489 (extract_display_start_addr): Rewrite.
8490 (next_layout, prev_layout): Remove.
8491 (tui_layout_window::replace_window): New method.
8492 (tui_layout_split::replace_window): New method.
8493 (destroy_layout): New function.
8494 (layout_list): New global.
8495 (add_layout_command): New function.
8496 (initialize_layouts): Update.
8497 (tui_layout_command): New function.
8498 (_initialize_tui_layout): Install "layout" commands.
8499 * tui/tui-data.h (enum tui_layout_type): Remove.
8500 (tui_current_layout): Don't declare.
8501
8502 2020-02-22 Tom Tromey <tom@tromey.com>
8503
8504 * tui/tui-regs.c (tui_reg_layout): Remove.
8505 (tui_reg_command): Use tui_regs_layout.
8506 * tui/tui-layout.h (tui_reg_command): Declare.
8507 * tui/tui-layout.c (tui_reg_command): New function.
8508
8509 2020-02-22 Tom Tromey <tom@tromey.com>
8510
8511 * tui/tui.c (tui_rl_delete_other_windows): Call
8512 tui_remove_some_windows.
8513 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8514 Declare method.
8515 (class tui_layout_window) <remove_windows>: New method.
8516 (class tui_layout_split) <remove_windows>: Declare.
8517 (tui_remove_some_windows): Declare.
8518 * tui/tui-layout.c (tui_remove_some_windows): New function.
8519 (tui_layout_split::remove_windows): New method.
8520
8521 2020-02-22 Tom Tromey <tom@tromey.com>
8522
8523 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8524 * tui/tui-layout.h (tui_next_layout): Declare.
8525 * tui/tui-layout.c (tui_next_layout): New function.
8526
8527 2020-02-22 Tom Tromey <tom@tromey.com>
8528
8529 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8530 correct coordinates.
8531
8532 2020-02-22 Tom Tromey <tom@tromey.com>
8533
8534 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8535 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8536 DATA_WIN case.
8537
8538 2020-02-22 Tom Tromey <tom@tromey.com>
8539
8540 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8541 TUI_DISASM_WIN, not tui_win_list.
8542
8543 2020-02-22 Tom Tromey <tom@tromey.com>
8544
8545 * valprint.c (generic_val_print_enum_1)
8546 (val_print_type_code_flags): Style member names.
8547 * rust-lang.c (val_print_struct, rust_print_enum)
8548 (rust_print_struct_def, rust_internal_print_type): Style member
8549 names.
8550 * p-valprint.c (pascal_object_print_value_fields): Style member
8551 names. Only call fprintf_symbol_filtered for static members.
8552 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8553 * f-valprint.c (f_val_print): Style member names.
8554 * f-typeprint.c (f_type_print_base): Style member names.
8555 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8556 call fprintf_symbol_filtered for static members.
8557 (cp_print_class_member): Style member names.
8558 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8559 member names.
8560 * ada-valprint.c (ada_print_scalar): Style enum names.
8561 (ada_val_print_enum): Likewise.
8562 * ada-typeprint.c (print_enum_type): Style enum names.
8563
8564 2020-02-21 Tom Tromey <tom@tromey.com>
8565
8566 * psympriv.h (struct partial_symtab): Update comment.
8567
8568 2020-02-21 Tom Tromey <tromey@adacore.com>
8569
8570 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8571 type is CORE_ADDR.
8572
8573 2020-02-21 Tom de Vries <tdevries@suse.de>
8574
8575 PR gdb/25534
8576 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8577 if dependencies[i]->user != NULL.
8578
8579 2020-02-21 Ali Tamur <tamur@google.com>
8580
8581 * dwarf2/read.c (dwarf2_name): Add null check.
8582
8583 2020-02-20 Tom Tromey <tom@tromey.com>
8584
8585 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8586 ">=", in binary search.
8587 (dwarf2_find_containing_comp_unit): New overload.
8588 (run_test): New self-test.
8589 (_initialize_dwarf2_read): Register new test.
8590
8591 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8592
8593 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8594 * riscv-tdep.h: Likewise.
8595 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8596 rv32-only CSR.
8597 * features/riscv/64bit-csr.xml: Regenerated.
8598
8599 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8600 Tom Tromey <tom@tromey.com>
8601
8602 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8603 of 'fputc_unfiltered'.
8604 (putchar_unfiltered): Call 'fputc_unfiltered'.
8605 (fputc_unfiltered): Call 'fputs_unfiltered'.
8606
8607 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8608
8609 * config.in: Regenerate.
8610 * configure: Regenerate.
8611 * configure.ac: Add --with-python-libdir option.
8612 * main.c: Use WITH_PYTHON_LIBDIR.
8613
8614 2020-02-19 Tom Tromey <tom@tromey.com>
8615
8616 * symtab.c (general_symbol_info::compute_and_set_names): Use
8617 obstack_strndup. Simplify call to symbol_set_demangled_name.
8618
8619 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8620
8621 * dwarf2/read.c (allocate_signatured_type_table,
8622 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8623 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8624 Remove objfile parameter, update all callers.
8625
8626 2020-02-19 Doug Evans <dje@google.com>
8627
8628 PR rust/25535
8629 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8630 rust_enum_variant calculation.
8631
8632 2020-02-19 Tom Tromey <tromey@adacore.com>
8633
8634 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8635
8636 2020-02-19 Tom Tromey <tromey@adacore.com>
8637
8638 * ada-lang.c (cache_symbol): Use obstack_strdup.
8639
8640 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8641
8642 * configure: Regenerate.
8643
8644 2020-02-19 Tom Tromey <tromey@adacore.com>
8645
8646 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8647 NULL check.
8648
8649 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8650
8651 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8652
8653 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8654
8655 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8656 if GDBSERVER is not defined.
8657 (riscv_tdesc_cache): Likewise, also store const target_desc.
8658 (STATIC_IN_GDB): Define.
8659 (riscv_create_target_description): Update declaration with
8660 STATIC_IN_GDB.
8661 (riscv_lookup_target_description): New function, only define if
8662 GDBSERVER is not defined.
8663 * arch/riscv.h (riscv_create_target_description): Declare only
8664 when GDBSERVER is defined.
8665 (riscv_lookup_target_description): New declaration when GDBSERVER
8666 is not defined.
8667 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8668 (riscv_linux_read_features): ...this, and return
8669 riscv_gdbarch_features instead of target_desc.
8670 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8671 (riscv_linux_read_description): Rename to...
8672 (riscv_linux_read_features): ...this.
8673 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8674 Update to use riscv_gdbarch_features and
8675 riscv_lookup_target_description.
8676 * riscv-tdep.c (riscv_find_default_target_description): Use
8677 riscv_lookup_target_description instead of
8678 riscv_create_target_description.
8679
8680 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8681
8682 * valprint.c (generic_val_print_enum_1): When printing a flag
8683 enum with value 0 and there is no enumerator with value 0, print
8684 just "0" instead of "(unknown: 0x0)".
8685
8686 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8687
8688 * valprint.c (generic_val_print_enum_1): Print unknown part of
8689 flag enum in hex.
8690
8691 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8692
8693 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8694 flag enums to contain duplicate enumerators.
8695 * valprint.c (generic_val_print_enum_1): Update comment.
8696
8697 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8698
8699 * dwarf2/read.c: Include "count-one-bits.h".
8700 (update_enumeration_type_from_children): If an enumerator has
8701 multiple bits set, don't treat the enumeration as a "flag enum".
8702 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8703 of flag enums have 0 or 1 bit set.
8704
8705 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8706
8707 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8708 conversion.
8709 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8710 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8711 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8712 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8713 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8714
8715 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8718
8719 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8720
8721 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8722 displaced_step_closure_up.
8723 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8724 (struct displaced_step_closure_up):
8725 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8726 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8727 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8728 Likewise.
8729 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8730 * gdbarch.c, gdbarch.h: Re-generate.
8731 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8732 displaced_step_closure_up.
8733 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8734 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8735 * infrun.h (displaced_step_closure_up): New type alias.
8736 (struct displaced_step_inferior_state) <step_closure>: Change
8737 type to displaced_step_closure_up.
8738 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8739 displaced_step_closure_up.
8740 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8741
8742 2020-02-14 Tom Tromey <tom@tromey.com>
8743
8744 * minidebug.c (gnu_debug_key): New global.
8745 (find_separate_debug_file_in_section): Use it.
8746
8747 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8748
8749 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8750 std::unique_ptr.
8751 * gdbarch.c: Re-generate.
8752 * gdbarch.h: Re-generate.
8753 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8754 change.
8755 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8756 type to std::unique_ptr.
8757 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8758 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8759 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8760 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8761 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8762 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8763 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8764 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8765 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8766
8767 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8768
8769 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8770 std::unique_ptr.
8771 (displaced_step_clear): Rename to...
8772 (displaced_step_reset): ... this. Just call displaced->reset ().
8773 (displaced_step_clear_cleanup): Rename to...
8774 (displaced_step_reset_cleanup): ... this.
8775 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8776 (displaced_step_fixup): Likewise.
8777 (resume_1): Likewise.
8778 (handle_inferior_event): Restore child's memory before calling
8779 displaced_step_fixup on the parent.
8780 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8781 to std::unique_ptr.
8782 <step_closure>: Change type to std::unique_ptr.
8783
8784 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8785
8786 * arm-tdep.c: Include count-one-bits.h.
8787 (cleanup_block_store_pc): Use count_one_bits.
8788 (cleanup_block_load_pc): Use count_one_bits.
8789 (arm_copy_block_xfer): Use count_one_bits.
8790 (thumb2_copy_block_xfer): Use count_one_bits.
8791 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8792 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8793 (thumb_get_next_pcs_raw): Use count_one_bits.
8794 (arm_get_next_pcs_raw): Use count_one_bits_l.
8795 * arch/arm.c (bitcount): Remove.
8796 * arch/arm.h (bitcount): Remove.
8797
8798 2020-02-14 Tom Tromey <tromey@adacore.com>
8799
8800 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8801 Update.
8802 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8803 * dwarf2/loc.c (call_site_find_chain_1): Return
8804 unique_xmalloc_ptr.
8805 (call_site_find_chain): Likewise.
8806
8807 2020-02-14 Richard Biener <rguenther@suse.de>
8808
8809 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8810 on expression with division operators.
8811
8812 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8813
8814 * MAINTAINERS (Write After Approval): Adding myself.
8815
8816 2020-02-12 Tom Tromey <tom@tromey.com>
8817
8818 * event-loop.c (event_data, gdb_event, event_handler_func):
8819 Remove.
8820
8821 2020-02-12 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8824 (dwarf2_frame_objfile_data): Add comment.
8825 (find_comp_unit, set_comp_unit): New functions.
8826 (dwarf2_frame_find_fde): Use find_comp_unit.
8827 (dwarf2_build_frame_info): Use set_comp_unit.
8828
8829 2020-02-12 Tom Tromey <tom@tromey.com>
8830
8831 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8832 (comp_unit): Don't initialize objfile.
8833 (execute_cfa_program): Add text_offset parameter.
8834 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8835 (dwarf2_frame_cache): Update.
8836 (dwarf2_build_frame_info): Don't set "objfile" member.
8837
8838 2020-02-12 Tom Tromey <tom@tromey.com>
8839
8840 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8841 (decode_frame_entry): Likewise.
8842 (dwarf2_build_frame_info): Update.
8843
8844 2020-02-12 Tom Tromey <tom@tromey.com>
8845
8846 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8847 (decode_frame_entry_1): Use the comp_unit obstack.
8848
8849 2020-02-12 Tom Tromey <tom@tromey.com>
8850
8851 * dwarf2/frame.c (struct comp_unit): Add initializers and
8852 constructor.
8853 (dwarf2_frame_objfile_data): Store a comp_unit.
8854 (dwarf2_frame_find_fde): Update.
8855 (dwarf2_build_frame_info): Use "new".
8856
8857 2020-02-12 Tom Tromey <tom@tromey.com>
8858
8859 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8860 (dwarf2_fde_table): Typedef for std::vector.
8861 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8862 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8863 (decode_frame_entry): Update.
8864 (dwarf2_build_frame_info): Use "new".
8865
8866 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8867
8868 * arm-tdep.c (arm_gdbarch_init): Update.
8869 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8870 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8871 have_neon, is_m>: Change to bool.
8872
8873 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8874
8875 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8876
8877 2020-02-12 Tom Tromey <tom@tromey.com>
8878
8879 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8880
8881 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8882
8883 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8884 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8885
8886 2020-02-11 Tom Tromey <tom@tromey.com>
8887
8888 * psymtab.h: Update comment.
8889
8890 2020-02-11 Tom Tromey <tom@tromey.com>
8891
8892 * gdb_obstack.h (struct auto_obstack): Use
8893 DISABLE_COPY_AND_ASSIGN.
8894
8895 2020-02-11 Tom Tromey <tom@tromey.com>
8896
8897 * dwarf2/frame.h (struct objfile): Don't forward declare.
8898
8899 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8900
8901 * cris-tdep.c (cris_supply_gregset): Change signature to match
8902 what struct regset expects.
8903 (cris_regset): New struct.
8904 (fetch_core_registers): Remove.
8905 (cris_iterate_over_regset_sections): New function.
8906 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8907 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8908
8909 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8910
8911 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8912 registers.
8913
8914 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8915
8916 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8917
8918 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8919
8920 * configure: Re-generate.
8921
8922 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8923
8924 * configure: Re-generate.
8925
8926 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8927
8928 * acinclude: Update warning.m4 path.
8929 * warning.m4: Move to gdbsupport.
8930
8931 2020-02-11 Tom Tromey <tromey@adacore.com>
8932
8933 * remote.c (remote_console_output): Update.
8934 * printcmd.c (printf_command): Update.
8935 * event-loop.c (gdb_wait_for_event): Update.
8936 * linux-nat.c (sigchld_handler): Update.
8937 * remote-sim.c (gdb_os_write_stdout): Update.
8938 (gdb_os_flush_stdout): Update.
8939 (gdb_os_flush_stderr): Update.
8940 (gdb_os_write_stderr): Update.
8941 * exceptions.c (print_exception): Update.
8942 * remote-fileio.c (remote_fileio_func_read): Update.
8943 (remote_fileio_func_write): Update.
8944 * tui/tui.c (tui_enable): Update.
8945 * tui/tui-interp.c (tui_interp::init): Update.
8946 * utils.c (init_page_info): Update.
8947 (putchar_unfiltered, fputc_unfiltered): Update.
8948 (gdb_flush): Update.
8949 (emit_style_escape): Update.
8950 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8951 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8952 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8953 (stderr_file::write): Update.
8954 (stderr_file::puts): Update.
8955 * ui-file.h (ui_file_isatty, ui_file_write)
8956 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8957 (ui_file_puts): Don't declare.
8958
8959 2020-02-10 Tom de Vries <tdevries@suse.de>
8960
8961 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8962 sentinel to char *.
8963
8964 2020-02-09 Tom de Vries <tdevries@suse.de>
8965
8966 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8967 filename if it matches "<artificial>".
8968
8969 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8970
8971 * windows-tdep.c (struct enum_value_name): New struct.
8972 (create_enum): New function.
8973 (windows_get_siginfo_type): Create and use enum types.
8974
8975 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8976
8977 * NEWS: Mention $_siginfo support for Windows.
8978 * windows-nat.c (handle_exception): Set siginfo_er.
8979 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8980 (windows_xfer_siginfo): New function.
8981 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8982 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8983 (init_windows_gdbarch_data): New function.
8984 (get_windows_gdbarch_data): New function.
8985 (windows_get_siginfo_type): New function.
8986 (windows_init_abi): Register windows_get_siginfo_type.
8987 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8988
8989 2020-02-08 Tom Tromey <tom@tromey.com>
8990
8991 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8992 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8993 <keep>: Declare method.
8994 <m_keep>: Remove member.
8995 <~cutu_reader>: Remove.
8996 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8997 (cutu_reader::cutu_reader): Update.
8998 (cutu_reader::keep): Rename from ~cutu_reader.
8999 (process_psymtab_comp_unit, build_type_psymtabs_1)
9000 (process_skeletonless_type_unit, load_partial_comp_unit)
9001 (load_full_comp_unit, dwarf2_read_addr_index)
9002 (read_signatured_type): Update.
9003
9004 2020-02-08 Tom Tromey <tom@tromey.com>
9005
9006 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9007 "want_partial_unit" parameter.
9008 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9009 Inline check for DW_TAG_partial_unit.
9010 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9011
9012 2020-02-08 Tom Tromey <tom@tromey.com>
9013
9014 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9015 read.c.
9016 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9017 read.c.
9018
9019 2020-02-08 Tom Tromey <tom@tromey.com>
9020
9021 * dwarf2/read.c (read_address): Move to comp-unit.c.
9022 (dwarf2_rnglists_process, dwarf2_ranges_process)
9023 (read_attribute_value, dwarf_decode_lines_1)
9024 (var_decode_location, decode_locdesc): Update.
9025 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9026 read.c. Remove "cu" parameter.
9027 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9028 method.
9029
9030 2020-02-08 Tom Tromey <tom@tromey.com>
9031
9032 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9033 (read_indirect_line_string): Update.
9034 * dwarf2/comp-unit.c (read_offset): Remove.
9035 (read_comp_unit_head): Update.
9036 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9037 method.
9038 (read_offset): Don't declare.
9039
9040 2020-02-08 Tom Tromey <tom@tromey.com>
9041
9042 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9043 * dwarf2/read.c (struct comp_unit_head): Move to
9044 dwarf2/comp-unit.h.
9045 (enum class rcuh_kind): Move to comp-unit.h.
9046 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9047 (read_comp_unit_head, error_check_comp_unit_head)
9048 (read_and_check_comp_unit_head): Move to comp-unit.c.
9049 (read_offset, dwarf_unit_type_name): Likewise.
9050 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9051 (cutu_reader::cutu_reader, read_call_site_scope)
9052 (find_partial_die, follow_die_offset): Update.
9053 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9054
9055 2020-02-08 Tom Tromey <tom@tromey.com>
9056
9057 * dwarf2/read.c (read_offset_1): Move to leb.c.
9058 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9059 (dwarf_decode_macro_bytes): Update.
9060 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9061 * dwarf2/leb.h (read_offset): Declare.
9062
9063 2020-02-08 Tom Tromey <tom@tromey.com>
9064
9065 * dwarf2/read.c (dwarf2_section_size): Remove.
9066 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9067 Update.
9068 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9069
9070 2020-02-08 Tom Tromey <tom@tromey.com>
9071
9072 * dwarf2/read.c (read_initial_length): Move to leb.c.
9073 * dwarf2/leb.h (read_initial_length): Declare.
9074 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9075 handle_nonstd parameter.
9076 * dwarf2/frame.c (read_initial_length): Remove.
9077 (decode_frame_entry_1): Update.
9078
9079 2020-02-08 Tom Tromey <tom@tromey.com>
9080
9081 * dwarf2/loc.c (dwarf2_find_location_expression)
9082 (dwarf_evaluate_loc_desc::get_tls_address)
9083 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9084 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9085 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9086 (dwarf2_compile_property_to_c)
9087 (dwarf2_loc_desc_get_symbol_read_needs)
9088 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9089 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9090 (loclist_describe_location, loclist_tracepoint_var_ref)
9091 (loclist_generate_c_location): Update.
9092 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9093 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9094 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9095 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9096 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9097 (dwarf2_per_cu_data::addr_size)
9098 (dwarf2_per_cu_data::ref_addr_size)
9099 (dwarf2_per_cu_data::text_offset)
9100 (dwarf2_per_cu_data::addr_type): Now methods.
9101 (per_cu_header_read_in): Make per_cu "const".
9102 (dwarf2_version): Remove.
9103 (dwarf2_per_cu_data::int_type): Now a method.
9104 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9105 (set_die_type, read_array_type, read_subrange_index_type)
9106 (read_tag_string_type, read_subrange_type): Update.
9107 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9108 offset_size, ref_addr_size, text_offset, addr_type, version,
9109 objfile, int_type, addr_sized_int_type>: Declare methods.
9110
9111 2020-02-08 Tom Tromey <tom@tromey.com>
9112
9113 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9114 Move earlier.
9115
9116 2020-02-08 Tom Tromey <tom@tromey.com>
9117
9118 * dwarf2/read.h (dwarf_line_debug): Declare.
9119 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9120 * dwarf2/read.c: Move line_header code to new files.
9121 (dwarf_line_debug): No longer static.
9122 * dwarf2/line-header.c: New file.
9123 * dwarf2/line-header.h: New file.
9124
9125 2020-02-08 Tom Tromey <tom@tromey.com>
9126
9127 * dwarf2/read.c (struct line_header) <file_full_name,
9128 file_file_name>: Return unique_xmalloc_ptr.
9129 (line_header::file_file_name): Update.
9130 (line_header::file_full_name): Update.
9131 (dw2_get_file_names_reader): Update.
9132 (macro_start_file): Update.
9133
9134 2020-02-08 Tom Tromey <tom@tromey.com>
9135
9136 * dwarf2/read.c (struct line_header) <file_full_name,
9137 file_file_name>: Declare methods.
9138 (dw2_get_file_names_reader): Update.
9139 (file_file_name): Now a method.
9140 (file_full_name): Likewise.
9141 (macro_start_file): Update.
9142
9143 2020-02-08 Tom Tromey <tom@tromey.com>
9144
9145 * dwarf2/read.c (dwarf_always_disassemble)
9146 (show_dwarf_always_disassemble): Move to loc.c.
9147 (_initialize_dwarf2_read): Move "always-disassemble" registration
9148 to loc.c.
9149 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9150 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9151 static.
9152 (show_dwarf_always_disassemble): Move from read.c.
9153 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9154
9155 2020-02-08 Tom Tromey <tom@tromey.com>
9156
9157 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9158 (create_quick_file_names_table): Return htab_up.
9159 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9160 Update.
9161 * dwarf2/read.h (struct dwarf2_per_objfile)
9162 <quick_file_names_table>: Now htab_up.
9163
9164 2020-02-08 Tom Tromey <tom@tromey.com>
9165
9166 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9167
9168 2020-02-08 Tom Tromey <tom@tromey.com>
9169
9170 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9171 Rewrite.
9172 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9173 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9174 (abbrev_table::abbrev_table): No longer inline.
9175 (ABBREV_HASH_SIZE): Remove.
9176 (abbrev_table::m_abbrevs): Now an htab_up.
9177
9178 2020-02-08 Tom Tromey <tom@tromey.com>
9179
9180 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9181 (cutu_reader): Update.
9182 (build_type_psymtabs_1): Update.
9183 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9184 (abbrev_table::alloc_abbrev): Update.
9185 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9186 (abbrev_table::read): New static method, renamed from
9187 abbrev_table_read_table.
9188 (abbrev_table::alloc_abbrev)
9189 (abbrev_table::add_abbrev): Now private.
9190 (abbrev_table::abbrev_table): Now private.
9191 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9192
9193 2020-02-08 Tom Tromey <tom@tromey.com>
9194
9195 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9196 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9197 htab_up.
9198
9199 2020-02-08 Tom Tromey <tom@tromey.com>
9200
9201 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9202 htab_up.
9203 (lookup_dwo_unit_in_dwp): Update.
9204 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9205 on obstack.
9206
9207 2020-02-08 Tom Tromey <tom@tromey.com>
9208
9209 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9210 obstack.
9211
9212 2020-02-08 Tom Tromey <tom@tromey.com>
9213
9214 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9215 line_header_hash.
9216 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9217 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9218 Change type to htab_up.
9219
9220 2020-02-08 Tom Tromey <tom@tromey.com>
9221
9222 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9223 htab_up. Don't allocate on obstack.
9224 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9225 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9226 Change type to htab_up.
9227
9228 2020-02-08 Tom Tromey <tom@tromey.com>
9229
9230 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9231 Change type to htab_up.
9232 * dwarf2/read.c (create_signatured_type_table_from_index)
9233 (create_signatured_type_table_from_debug_names)
9234 (create_all_type_units, add_type_unit)
9235 (lookup_dwo_signatured_type, lookup_signatured_type)
9236 (process_skeletonless_type_unit): Update.
9237 (create_debug_type_hash_table, create_debug_types_hash_table):
9238 Change type of types_htab.
9239 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9240 htab_up. Don't allocate on obstack.
9241 (create_cus_hash_table): Change type of cus_htab parameter.
9242 (struct dwo_file) <cus, tus>: Now htab_up.
9243 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9244 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9245 (queue_and_load_all_dwo_tus): Update.
9246 * dwarf2/index-write.c (write_gdbindex): Update.
9247 (write_debug_names): Update.
9248
9249 2020-02-08 Tom Tromey <tom@tromey.com>
9250
9251 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9252 dwarf2/read.c. Remove "next" member. Add constructor ntad
9253 destructor.
9254 (struct dwarf2_per_objfile) <queue>: New member.
9255 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9256 dwarf2/read.h.
9257 (dwarf2_queue, dwarf2_queue_tail): Remove.
9258 (class dwarf2_queue_guard): Add parameter to constructor. Use
9259 DISABLE_COPY_AND_ASSIGN.
9260 <m_per_objfile>: New member.
9261 <~dwarf2_queue_guard>: Rewrite.
9262 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9263 Update.
9264 (~dwarf2_queue_item): New.
9265
9266 2020-02-08 Tom Tromey <tom@tromey.com>
9267
9268 * dwarf2/read.c (struct die_info) <has_children>: New member.
9269 (dw2_get_file_names_reader): Remove has_children.
9270 (dw2_get_file_names): Update.
9271 (read_cutu_die_from_dwo): Remove has_children.
9272 (cutu_reader::init_tu_and_read_dwo_dies)
9273 (cutu_reader::cutu_reader): Update.
9274 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9275 Remove has_children.
9276 (build_type_psymtabs_1, process_skeletonless_type_unit)
9277 (load_partial_comp_unit, load_full_comp_unit): Update.
9278 (create_dwo_cu_reader): Remove has_children.
9279 (create_cus_hash_table, read_die_and_children): Update.
9280 (read_full_die_1,read_full_die): Remove has_children.
9281 (read_signatured_type): Update.
9282 (class cutu_reader) <has_children>: Remove.
9283
9284 2020-02-08 Tom Tromey <tom@tromey.com>
9285
9286 * dwarf2/expr.c: Rename from dwarf2expr.c.
9287 * dwarf2/expr.h: Rename from dwarf2expr.h.
9288 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9289 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9290 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9291 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9292 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9293 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9294 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9295 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9296 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9297 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9298 * dwarf2/loc.c: Rename from dwarf2loc.c.
9299 * dwarf2/loc.h: Rename from dwarf2loc.h.
9300 * dwarf2/read.c: Rename from dwarf2read.c.
9301 * dwarf2/read.h: Rename from dwarf2read.h.
9302 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9303 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9304 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9305 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9306 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9307 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9308 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9309 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9310 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9311 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9312 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9313 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9314 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9315 Update.
9316 * Makefile.in (COMMON_SFILES): Update.
9317 (HFILES_NO_SRCDIR): Update.
9318
9319 2020-02-08 Tom Tromey <tom@tromey.com>
9320
9321 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9322 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9323
9324 2020-02-08 Tom Tromey <tom@tromey.com>
9325
9326 * dwarf2read.h (struct die_info): Don't declare.
9327
9328 2020-02-08 Tom Tromey <tom@tromey.com>
9329
9330 * dwarf2read.h (die_info_ptr): Remove typedef.
9331
9332 2020-02-08 Tom Tromey <tom@tromey.com>
9333
9334 * dwarf2read.c (read_call_site_scope)
9335 (handle_data_member_location, dwarf2_add_member_fn)
9336 (mark_common_block_symbol_computed, read_common_block)
9337 (attr_to_dynamic_prop, partial_die_info::read)
9338 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9339 (dwarf2_symbol_mark_computed, set_die_type): Update.
9340 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9341 method.
9342 (attr_form_is_block): Don't declare.
9343 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9344
9345 2020-02-08 Tom Tromey <tom@tromey.com>
9346
9347 * dwarf2read.c (dwarf2_find_base_address, )
9348 (read_call_site_scope, rust_containing_type)
9349 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9350 (handle_data_member_location, dwarf2_add_member_fn)
9351 (get_alignment, read_structure_type, process_structure_scope)
9352 (mark_common_block_symbol_computed, read_common_block)
9353 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9354 (partial_die_info::read, read_attribute_value, new_symbol)
9355 (lookup_die_type, dwarf2_get_ref_die_offset)
9356 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9357 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9358 (dwarf2_symbol_mark_computed): Update.
9359 * dwarf2/attribute.h (struct attribute) <value_as_address,
9360 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9361 methods.
9362 (value_as_address, attr_form_is_section_offset)
9363 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9364 * dwarf2/attribute.c (attribute::value_as_address)
9365 (attribute::form_is_section_offset, attribute::form_is_constant)
9366 (attribute::form_is_ref): Now methods.
9367
9368 2020-02-08 Tom Tromey <tom@tromey.com>
9369
9370 * dwarf2read.c (struct attribute, DW_STRING)
9371 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9372 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9373 (attr_form_is_block, attr_form_is_section_offset)
9374 (attr_form_is_constant, attr_form_is_ref): Move.
9375 * dwarf2/attribute.h: New file.
9376 * dwarf2/attribute.c: New file, from dwarf2read.c.
9377 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9378
9379 2020-02-08 Tom Tromey <tom@tromey.com>
9380
9381 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9382 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9383 Move.
9384 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9385 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9386 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9387 abbrev.c.
9388 * dwarf2/abbrev.h: New file.
9389 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9390 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9391
9392 2020-02-08 Tom Tromey <tom@tromey.com>
9393
9394 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9395 (dwarf2_section_size, dwarf2_get_section_info)
9396 (create_signatured_type_table_from_debug_names)
9397 (create_addrmap_from_aranges, read_debug_names_from_section)
9398 (get_gdb_index_contents_from_section, read_comp_unit_head)
9399 (error_check_comp_unit_head, read_abbrev_offset)
9400 (create_debug_type_hash_table, init_cu_die_reader)
9401 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9402 (read_comp_units_from_section, create_cus_hash_table)
9403 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9404 (create_dwp_v2_section, dwarf2_rnglists_process)
9405 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9406 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9407 (read_indirect_string_from_dwz, read_addr_index_1)
9408 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9409 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9410 (fill_in_loclist_baton): Update.
9411 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9412 get_containing_section, get_bfd_owner, get_bfd_section,
9413 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9414 (dwarf2_read_section, get_section_name, get_section_file_name)
9415 (get_containing_section, get_section_bfd_owner)
9416 (get_section_bfd_section, get_section_name, get_section_file_name)
9417 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9418 declare.
9419 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9420 (dwarf2_section_info::get_bfd_owner)
9421 (dwarf2_section_info::get_bfd_section)
9422 (dwarf2_section_info::get_name)
9423 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9424 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9425 (dwarf2_section_info::read): Now methods.
9426 * dwarf-index-write.c (class debug_names): Update.
9427
9428 2020-02-08 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9431 Move to dwarf2/section.h.
9432 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9433 (get_section_bfd_section, get_section_name)
9434 (get_section_file_name, get_section_id, get_section_flags)
9435 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9436 dwarf2/section.c.
9437 * dwarf2/section.h: New file.
9438 * dwarf2/section.c: New file, from dwarf2read.c.
9439 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9440
9441 2020-02-08 Tom Tromey <tom@tromey.com>
9442
9443 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9444 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9445 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9446 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9447 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9448 * dwarf2/leb.h: New file, from dwarf2read.c.
9449 * dwarf2/leb.c: New file, from dwarf2read.c.
9450 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9451 Remove.
9452 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9453 (COMMON_SFILES): Add dwarf2/leb.c.
9454
9455 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9456
9457 GDB 9.1 released.
9458
9459 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9460
9461 PR gdb/25190:
9462 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9463 * gdb/remote.c (remote_console_output): Update.
9464 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9465 (ui_file_puts): ...this.
9466 * gdb/ui-file.h (ui_file_puts): Add declaration.
9467 * gdb/utils.c (emit_style_escape): Update.
9468 (flush_wrap_buffer): Update.
9469 (fputs_maybe_filtered): Update.
9470 (fputs_unfiltered): Add function.
9471
9472 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9473
9474 * gdb/event-loop.c (gdb_wait_for_event): Update.
9475 * gdb/printcmd.c (printf_command): Update.
9476 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9477 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9478 (gdb_os_flush_stderr): Update.
9479 * gdb/remote.c (remote_console_output): Update.
9480 * gdb/ui-file.c (gdb_flush): Rename to...
9481 (ui_file_flush): ...this.
9482 (stderr_file::write): Update.
9483 (stderr_file::puts): Update.
9484 * gdb/ui-file.h (gdb_flush): Rename to...
9485 (ui_file_flush): ...this.
9486 * gdb/utils.c (gdb_flush): Add function.
9487 * gdb/utils.h (gdb_flush): Add declaration.
9488
9489 2020-02-07 Tom Tromey <tromey@adacore.com>
9490
9491 PR breakpoints/24915:
9492 * source.c (find_and_open_source): Do not check basenames_may_differ.
9493
9494 2020-02-07 Tom Tromey <tom@tromey.com>
9495
9496 * README: Update gdbserver documentation.
9497 * gdbserver: Move to top level.
9498 * configure.tgt (build_gdbserver): Remove.
9499 * configure.ac: Remove --enable-gdbserver.
9500 * configure: Rebuild.
9501 * Makefile.in (distclean): Don't mention gdbserver.
9502
9503 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9504
9505 * source-cache.c (source_cache::ensure): Surround
9506 get_plain_source_lines with a try/catch.
9507 (source_cache::get_line_charpos): Get rid of try/catch
9508 and only check for the return value of "ensure".
9509 * tui/tui-source.c (tui_source_window::set_contents):
9510 Simplify "nlines" calculation.
9511
9512 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9513
9514 * MAINTAINERS (Write After Approval): Add myself.
9515
9516 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9517
9518 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9519 function call.
9520
9521 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9522
9523 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9524
9525 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9526
9527 * nat/riscv-linux-tdesc.h: New file.
9528 * nat/riscv-linux-tdesc.c: New file, taking code from...
9529 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9530 ... here.
9531 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9532 NATDEPFILES.
9533
9534 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9535
9536 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9537 we don't set the fake simulator ptid to the null_ptid.
9538
9539 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9540
9541 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9542 * gdbthread.h (class thread_info) <resumed>: Likewise.
9543 * infrun.c (resume_1): Likewise.
9544 (proceed): Likewise.
9545 (infrun_thread_stop_requested): Likewise.
9546 (stop_all_threads): Likewise.
9547 (handle_inferior_event): Likewise.
9548 (restart_threads): Likewise.
9549 (finish_step_over): Likewise.
9550 (keep_going_stepped_thread): Likewise.
9551 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9552 (linux_handle_extended_wait): Likewise.
9553 * record-btrace.c (get_thread_current_frame_id): Likewise.
9554 * record-full.c (record_full_wait_1): Likewise.
9555 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9556 * target.c (target_resume): Likewise.
9557 * thread.c (set_running_thread): Likewise.
9558
9559 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9560
9561 * f-valprint.c (f77_print_array_1): Changed datatype of index
9562 variable to LONGEST from int to enable it to contain bound
9563 values correctly.
9564
9565 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9566
9567 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9568 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9569 offsets according to FLEN determined.
9570 (riscv_linux_nat_target::read_description): Determine FLEN
9571 dynamically.
9572 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9573 according to FLEN determined.
9574 (riscv_linux_nat_target::store_registers): Likewise.
9575
9576 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9577
9578 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9579 when reg->group is empty and reggroup is not.
9580
9581 2020-01-31 Tom Tromey <tromey@adacore.com>
9582
9583 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9584 Call beneath target's mourn_inferior after unpushing.
9585
9586 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9587
9588 PR tui/9765
9589 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9590 have enough lines to fill the screen, still return the lowest
9591 address we found.
9592
9593 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9594
9595 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9596 '-', '<', and '>' commands.
9597
9598 2020-01-29 Pedro Alves <palves@redhat.com>
9599 Sergio Durigan Junior <sergiodj@redhat.com>
9600
9601 * infcmd.c (construct_inferior_arguments): Assert that
9602 'argc' is greater than 0.
9603
9604 2020-01-29 Luis Machado <luis.machado@linaro.org>
9605
9606 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9607 (BRK_INSN_MASK): Define to 0xd4200000.
9608 (aarch64_program_breakpoint_here_p): New function.
9609 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9610 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9611 breakpoint.c.
9612 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9613 breakpoint.h
9614 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9615 call gdbarch_program_breakpoint_here_p.
9616 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9617 default_program_breakpoint_here_p, changed return type to bool and
9618 simplified.
9619 * breakpoint.h (program_breakpoint_here): Moved prototype to
9620 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9621 return type to bool.
9622 * gdbarch.c: Regenerate.
9623 * gdbarch.h: Regenerate.
9624 * gdbarch.sh (program_breakpoint_here_p): New method.
9625 * infrun.c (handle_signal_stop): Call
9626 gdbarch_program_breakpoint_here_p.
9627
9628 2020-01-26 Tom Tromey <tom@tromey.com>
9629
9630 * ctfread.c (struct ctf_fp_info): Reindent.
9631 (_initialize_ctfread): Remove.
9632
9633 2020-01-26 Tom Tromey <tom@tromey.com>
9634
9635 * psymtab.c (partial_map_expand_apply)
9636 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9637 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9638 (psym_print_stats, psym_expand_symtabs_for_function)
9639 (psym_map_symbol_filenames, psym_map_matching_symbols)
9640 (psym_expand_symtabs_matching)
9641 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9642 (maintenance_check_psymtabs): Use new methods.
9643 * psympriv.h (struct partial_symtab) <readin_p,
9644 get_compunit_symtab>: New methods.
9645 <readin, compunit_symtab>: Remove members.
9646 (struct standard_psymtab): New.
9647 (struct legacy_psymtab): Derive from standard_psymtab.
9648 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9649 standard_psymtab.
9650 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9651
9652 2020-01-26 Tom Tromey <tom@tromey.com>
9653
9654 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9655 read_dependencies. Add assert.
9656 * psymtab.c (partial_symtab::read_dependencies): New method.
9657 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9658 method.
9659 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9660 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9661 read_dependencies.
9662 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9663 Add assert.
9664
9665 2020-01-26 Tom Tromey <tom@tromey.com>
9666
9667 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9668 Call expand_psymtab.
9669 (xcoff_read_symtab): Call expand_psymtab.
9670 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9671 legacy_expand_psymtab.
9672 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9673 method.
9674 (struct legacy_psymtab) <expand_psymtab>: Implement.
9675 <legacy_expand_psymtab>: New member.
9676 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9677 (parse_partial_symbols): Set legacy_expand_psymtab.
9678 (psymtab_to_symtab_1): Change argument order. Call
9679 expand_psymtab.
9680 (new_psymtab): Set legacy_expand_psymtab.
9681 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9682 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9683 expand_psymtab.
9684 (dwarf2_psymtab::expand_psymtab): Rename from
9685 psymtab_to_symtab_1. Call expand_psymtab.
9686 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9687 (dbx_end_psymtab): Likewise.
9688 (dbx_psymtab_to_symtab_1): Change argument order. Call
9689 expand_psymtab.
9690 (dbx_read_symtab): Call expand_psymtab.
9691 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9692 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9693 (ctf_psymtab::read_symtab): Call expand_psymtab.
9694
9695 2020-01-26 Tom Tromey <tom@tromey.com>
9696
9697 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9698 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9699 messages.
9700 * mdebugread.c (mdebug_read_symtab): Remove prints.
9701 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9702 assert.
9703 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9704
9705 2020-01-26 Tom Tromey <tom@tromey.com>
9706
9707 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9708 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9709 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9710 legacy_symtab.
9711 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9712 * psymtab.c (psymtab_to_symtab): Call method.
9713 (dump_psymtab): Update.
9714 * psympriv.h (struct partial_symtab): Add virtual destructor.
9715 <read_symtab>: New method.
9716 (struct legacy_symtab): New.
9717 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9718 (struct pst_map) <pst>: Now a legacy_psymtab.
9719 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9720 (new_psymtab): Use legacy_psymtab.
9721 * dwarf2read.h (struct dwarf2_psymtab): New.
9722 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9723 * dwarf2read.c (dwarf2_create_include_psymtab)
9724 (dwarf2_build_include_psymtabs, create_type_unit_group)
9725 (create_partial_symtab, process_psymtab_comp_unit_reader)
9726 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9727 (set_partial_user): Use dwarf2_psymtab.
9728 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9729 (psymtab_to_symtab_1, process_full_comp_unit)
9730 (process_full_type_unit, dwarf2_ranges_read)
9731 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9732 (dwarf_decode_lines): Use dwarf2_psymtab.
9733 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9734 (add_address_entry_worker, write_one_signatured_type)
9735 (recursively_count_psymbols, recursively_write_psymbols)
9736 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9737 (write_debug_names): Likewise.
9738 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9739 <pst>: Now a legacy_psymtab.
9740 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9741 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9742 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9743 * ctfread.c (struct ctf_psymtab): New.
9744 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9745 ctf_psymtab.
9746 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9747 (create_partial_symtab): Return a ctf_psymtab.
9748 (scan_partial_symbols): Update.
9749
9750 2020-01-26 Tom Tromey <tom@tromey.com>
9751
9752 * xcoffread.c (xcoff_start_psymtab): Use new.
9753 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9754 renamed from start_psymtab_common.
9755 * psympriv.h (struct partial_symtab): Add new constructor.
9756 (start_psymtab_common): Don't declare.
9757 * mdebugread.c (parse_partial_symbols): Use new.
9758 * dwarf2read.c (create_partial_symtab): Use new.
9759 * dbxread.c (start_psymtab): Use new.
9760 * ctfread.c (create_partial_symtab): Use new.
9761
9762 2020-01-26 Tom Tromey <tom@tromey.com>
9763
9764 * xcoffread.c (xcoff_end_psymtab): Use new.
9765 * psymtab.c (start_psymtab_common): Use new.
9766 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9767 Update.
9768 * psympriv.h (struct partial_symtab): Add parameters to
9769 constructor. Don't inline.
9770 (allocate_psymtab): Don't declare.
9771 * mdebugread.c (new_psymtab): Use new.
9772 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9773 * dbxread.c (dbx_end_psymtab): Use new.
9774
9775 2020-01-26 Tom Tromey <tom@tromey.com>
9776
9777 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9778 allocate_psymtab. Update documentation.
9779 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9780 allocate_psymtab. Do not use new.
9781 (allocate_psymtab): Use new. Update.
9782
9783 2020-01-26 Tom Tromey <tom@tromey.com>
9784
9785 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9786 * psymtab.c (psym_print_stats): Update.
9787 * psympriv.h (struct partial_symtab) <readin,
9788 psymtabs_addrmap_supported, anonymous>: Now bool.
9789 * mdebugread.c (psymtab_to_symtab_1): Update.
9790 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9791 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9792 (process_full_comp_unit, process_full_type_unit): Update.
9793 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9794 * ctfread.c (psymtab_to_symtab): Update.
9795
9796 2020-01-26 Tom Tromey <tom@tromey.com>
9797
9798 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9799 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9800 * psymtab.c (psymtab_storage): Delete psymtabs.
9801 (psymtab_storage::allocate_psymtab): Use new.
9802 (psymtab_storage::discard_psymtab): Use delete.
9803 * psympriv.h (struct partial_symtab): Add constructor and
9804 initializers.
9805
9806 2020-01-26 Tom Tromey <tom@tromey.com>
9807
9808 * machoread.c: Do not include psympriv.h.
9809
9810 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9811
9812 * NEWS: Mention the new option and the set/show commands.
9813
9814 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9815
9816 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9817 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9818 (validate_exec_file): New variables, enums, functions.
9819 (exec_file_locate_attach, print_section_info): Style the filenames.
9820 (_initialize_exec): Install show_exec_file_mismatch_command and
9821 set_exec_file_mismatch_command.
9822 * gdbcore.h (validate_exec_file): Declare.
9823 * infcmd.c (attach_command): Call validate_exec_file.
9824 * remote.c ( remote_target::remote_add_inferior): Likewise.
9825
9826 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9827
9828 * frame.c (find_frame_sal): Move call to get_next_frame into more
9829 inner scope.
9830 * inline-frame.c (inilne_state) <inline_state>: Update argument
9831 types.
9832 (inilne_state) <skipped_symbol>: Rename to...
9833 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9834 (skip_inline_frames): Build vector of skipped symbols and use this
9835 to reate the inline_state.
9836 (inline_skipped_symbol): Add a comment and some assertions, fetch
9837 skipped symbol from the list.
9838
9839 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9840
9841 * buildsym.c (lte_is_less_than): Delete.
9842 (buildsym_compunit::end_symtab_with_blockvector): Create local
9843 lambda function to sort line table entries, and use
9844 std::stable_sort instead of std::sort.
9845 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9846 markers when looking for a previous line.
9847
9848 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9849
9850 * dwarf2read.c (lnp_state_machine::record_line): Include
9851 end_sequence parameter in debug print out. Record the line if we
9852 are at an end_sequence marker even if it's not the start of a
9853 statement.
9854 * symmisc.c (maintenance_print_one_line_table): Print end of
9855 sequence markers with 'END' not '0'.
9856
9857 2020-01-24 Pedro Alves <palves@redhat.com>
9858
9859 PR gdb/25410
9860 * thread.c (scoped_restore_current_thread::restore): Use
9861 switch_to_inferior_no_thread.
9862 * exec.c: Include "progspace-and-thread.h".
9863 (add_target_sections, remove_target_sections):
9864 scoped_restore_current_pspace_and_thread instead of
9865 scoped_restore_current_thread.
9866 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9867 and aspace to the inferior before calling clone_program_space.
9868 Remove stale comment.
9869
9870 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9871
9872 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9873 (arm_netbsd_nat_target::fetch_registers): ...this.
9874 (arm_nbsd_nat_target::store_registers): Rename to...
9875 (arm_netbsd_nat_target::store_registers): ...this.
9876
9877 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9878
9879 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9880 register_t.
9881
9882 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9883
9884 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9885 Update comment.
9886 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9887 Likewise.
9888 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9889 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9890 the correct replacement (iterate_over_regset_sections).
9891 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9892 Update comment.
9893
9894 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9895
9896 PR gdb/23718
9897 * gdb/python/python.c (execute_gdb_command): Call
9898 async_enable_stdin in catch block.
9899
9900 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9901
9902 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9903 SWITCH_THRU_ALL_UIS.
9904
9905 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9906
9907 PR tui/9765
9908 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9909 comment, add extra parameter, and update to store previous symbol
9910 when appropriate.
9911 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9912 add extra parameter.
9913 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9914 remove unneeded parameter, add try/catch around gdb_print_insn,
9915 rewrite to add items to asm_lines vector.
9916 (tui_find_backward_disassembly_start_address): New function.
9917 (tui_find_disassembly_address): Updated throughout.
9918 (tui_disasm_window::set_contents): Update for changes to
9919 tui_disassemble.
9920 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9921 number of lines to scroll.
9922
9923 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9924
9925 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9926 (SECT_OFF_DATA): Likewise.
9927 (SECT_OFF_RODATA): Likewise.
9928 (SECT_OFF_TEXT): Likewise.
9929 (SECT_OFF_BSS): Likewise.
9930 (struct objfile) <text_section_offset, data_section_offset>: New
9931 methods.
9932 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9933 objfile::text_section_offset.
9934 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9935 * coffread.c (coff_symtab_read): Likewise.
9936 (enter_linenos): Likewise.
9937 (process_coff_symbol): Likewise.
9938 * ctfread.c (get_objfile_text_range): Likewise.
9939 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9940 Use objfile::data_section_offset.
9941 * dwarf2-frame.c (execute_cfa_program): Use
9942 objfile::text_section_offset.
9943 (dwarf2_frame_find_fde): Likewise.
9944 * dwarf2read.c (create_addrmap_from_index): Likewise.
9945 (create_addrmap_from_aranges): Likewise.
9946 (dw2_find_pc_sect_compunit_symtab): Likewise.
9947 (process_psymtab_comp_unit_reader): Likewise.
9948 (add_partial_symbol): Likewise.
9949 (add_partial_subprogram): Likewise.
9950 (process_full_comp_unit): Likewise.
9951 (read_file_scope): Likewise.
9952 (read_func_scope): Likewise.
9953 (read_lexical_block_scope): Likewise.
9954 (read_call_site_scope): Likewise.
9955 (dwarf2_rnglists_process): Likewise.
9956 (dwarf2_ranges_process): Likewise.
9957 (dwarf2_ranges_read): Likewise.
9958 (dwarf_decode_lines_1): Likewise.
9959 (new_symbol): Likewise.
9960 (dwarf2_fetch_die_loc_sect_off): Likewise.
9961 (dwarf2_per_cu_text_offset): Likewise.
9962 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9963 * hppa-tdep.c (read_unwind_info): Likewise.
9964 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9965 * psympriv.h (struct partial_symtab): Likewise.
9966 * psymtab.c (find_pc_sect_psymtab): Likewise.
9967 * solib-svr4.c (enable_break): Likewise.
9968 * stap-probe.c (relocate_address): Use
9969 objfile::data_section_offset.
9970 * xcoffread.c (enter_line_range): Use
9971 objfile::text_section_offset.
9972 (read_xcoff_symtab): Likewise.
9973
9974 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9975
9976 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9977 declaration to narrower scopes.
9978
9979 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9980
9981 * darwin-nat.h (struct darwin_exception_msg, enum
9982 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9983 Move up.
9984 (class darwin_nat_target) <wait_1, check_new_threads,
9985 decode_exception_message, decode_message, stop_inferior,
9986 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9987 * darwin-nat.c (darwin_check_new_threads): Rename to...
9988 (darwin_nat_target::check_new_threads): ... this.
9989 (darwin_suspend_inferior_it): Remove.
9990 (darwin_decode_exception_message): Rename to...
9991 (darwin_nat_target::decode_exception_message): ... this.
9992 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9993 (darwin_decode_message): Rename to...
9994 (darwin_nat_target::decode_message): ... this.
9995 (cancel_breakpoint): Rename to...
9996 (darwin_nat_target::cancel_breakpoint): ... this.
9997 (darwin_wait): Rename to...
9998 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9999 instead of iterate_over_inferiors.
10000 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10001 (darwin_stop_inferior): Rename to...
10002 (darwin_nat_target::stop_inferior): ... this.
10003 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10004 (darwin_init_thread_list): Rename to...
10005 (darwin_nat_target::init_thread_list): ... this.
10006 (darwin_ptrace_him): Rename to...
10007 (darwin_nat_target::ptrace_him): ... this.
10008 (darwin_nat_target::create_inferior): Pass lambda function to
10009 fork_inferior.
10010 (darwin_nat_target::detach): Call stop_inferior instead of
10011 darwin_stop_inferior.
10012 * fork-inferior.h (fork_inferior): Change init_trace_fun
10013 parameter to gdb::function_view.
10014 * fork-inferior.c (fork_inferior): Likewise.
10015
10016 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10017
10018 * i386-cygwin-tdep.c (core_process_module_section): Update.
10019 * windows-nat.c (struct lm_info_windows): Add text_offset.
10020 (windows_xfer_shared_libraries): Update.
10021 * windows-tdep.c (windows_xfer_shared_library):
10022 Add text_offset_cached argument.
10023 * windows-tdep.h (windows_xfer_shared_library): Update.
10024
10025 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10026
10027 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10028
10029 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10030
10031 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10032 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10033 replace with range-based for.
10034 (gdbsim_interrupt_inferior): Remove.
10035 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10036 with a range-based for. Inline code from
10037 gdbsim_interrupt_inferior.
10038
10039 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10040
10041 * infrun.c (proceed): Fix indentation.
10042
10043 2020-01-21 Tom Tromey <tromey@adacore.com>
10044
10045 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10046 * python/python.c (python_extension_ops): Update.
10047 (gdbpy_colorize): New function.
10048 * python/lib/gdb/__init__.py (colorize): New function.
10049 * extension.h (ext_lang_colorize): Declare.
10050 * extension.c (ext_lang_colorize): New function.
10051 * extension-priv.h (struct extension_language_ops) <colorize>: New
10052 member.
10053 * cli/cli-style.c (_initialize_cli_style): Update help text.
10054
10055 2020-01-21 Luis Machado <luis.machado@linaro.org>
10056
10057 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10058 <cond>: Change type to bool.
10059 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10060 (aarch64_displaced_step_cb): Likewise.
10061 (aarch64_displaced_step_tb): Likewise.
10062
10063 2020-01-21 Luis Machado <luis.machado@linaro.org>
10064
10065 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10066 output.
10067
10068 2020-01-21 Luis Machado <luis.machado@linaro.org>
10069
10070 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10071 <pc_adjust>: Adjust the documentation.
10072 (aarch64_displaced_step_fixup): Check if PC really moved before
10073 adjusting it.
10074
10075 2020-01-19 Tom Tromey <tom@tromey.com>
10076
10077 * disasm.c (~gdb_disassembler): New destructor.
10078 (gdb_buffered_insn_length): Call disassemble_free_target.
10079 * disasm.h (class gdb_disassembler): Declare destructor. Use
10080 DISABLE_COPY_AND_ASSIGN.
10081
10082 2020-01-19 Tom Tromey <tom@tromey.com>
10083
10084 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10085 (die_reader_func_ftype): Remove.
10086 (cutu_reader): New class.
10087 (dw2_get_file_names_reader): Remove "data" parameter.
10088 (dw2_get_file_names): Use cutu_reader.
10089 (create_debug_type_hash_table): Update.
10090 (read_cutu_die_from_dwo): Update comment.
10091 (lookup_dwo_unit): Add dwo_name parameter.
10092 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10093 die_reader_func_ftype and data parameters.
10094 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10095 Remove die_reader_func_ftype and data parameters.
10096 (~cutu_reader): New; from init_cutu_and_read_dies.
10097 (cutu_reader::cutu_reader): Rename from
10098 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10099 and data parameters.
10100 (init_cutu_and_read_dies_simple): Remove.
10101 (struct process_psymtab_comp_unit_data): Remove.
10102 (process_psymtab_comp_unit_reader): Remove data parameter; add
10103 want_partial_unit and pretend_language parameters.
10104 (process_psymtab_comp_unit): Use cutu_reader.
10105 (build_type_psymtabs_reader): Remove data parameter.
10106 (build_type_psymtabs_1): Use cutu_reader.
10107 (process_skeletonless_type_unit): Likewise.
10108 (load_partial_comp_unit_reader): Remove.
10109 (load_partial_comp_unit): Use cutu_reader.
10110 (load_full_comp_unit_reader): Remove.
10111 (load_full_comp_unit): Use cutu_reader.
10112 (struct create_dwo_cu_data): Remove.
10113 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10114 dwo_unit parameters.
10115 (create_cus_hash_table): Use cutu_reader.
10116 (struct dwarf2_read_addr_index_data): Remove.
10117 (dwarf2_read_addr_index_reader): Remove.
10118 (dwarf2_read_addr_index): Use cutu_reader.
10119 (read_signatured_type_reader): Remove.
10120 (read_signatured_type): Use cutu_reader.
10121
10122 2020-01-19 Tom Tromey <tom@tromey.com>
10123
10124 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10125 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10126 (tui_wrefresh): Declare.
10127 * tui/tui-wingeneral.c (suppress_output): New global.
10128 (tui_suppress_output, ~tui_suppress_output): New constructor and
10129 destructor.
10130 (tui_wrefresh): New function.
10131 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10132 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10133 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10134 method.
10135 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10136 tui_wrefresh.
10137 (tui_data_window::no_refresh): New method.
10138 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10139 (tui_reg_command): Use tui_suppress_output
10140 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10141 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10142 method.
10143 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10144
10145 2020-01-19 Tom Tromey <tom@tromey.com>
10146
10147 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10148 Handle case where symtab is null.
10149
10150 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10151
10152 * linux-fork.c (one_fork_p): Simplify.
10153
10154 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10155
10156 * top.c (struct qt_args): Remove.
10157 (kill_or_detach): Change return type to void, replace `void *`
10158 parameter with a proper one.
10159 (print_inferior_quit_action): Likewise.
10160 (quit_confirm): Use range-based for loop to iterate over inferiors.
10161 (quit_force): Likewise.
10162
10163 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10164
10165 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10166 `void *` parameter with proper parameters.
10167 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10168 (print_one_inferior): Change return type to void, replace `void *`
10169 parameter with proper parameters.
10170 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10171 inferiors.
10172 (get_other_inferior): Remove.
10173 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10174 inferiors.
10175
10176 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10177
10178 * mi/mi-interp.c (report_initial_inferior): Remove.
10179 (mi_interp::init): Use range-based for to iterate over inferiors.
10180
10181 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10182
10183 * python/py-inferior.c (build_inferior_list): Remove.
10184 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10185
10186 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10187
10188 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10189 (btrace_stitch_trace): Likewise.
10190 * charset.c (intermediate_encoding): Likewise (vaild).
10191 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10192 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10193 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10194
10195 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10196
10197 * windows-tdep.c (windows_get_tlb_type):
10198 Add rtl_user_process_parameters type.
10199
10200 2020-01-16 Pedro Alves <palves@redhat.com>
10201 Norbert Lange <nolange79@gmail.com>
10202
10203 PR build/24805
10204 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10205 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10206 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10207 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10208 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10209 (ps_plog): Redeclare exported functions with default visibility.
10210
10211 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10212
10213 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10214 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10215
10216 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10217
10218 * infcmd.c (post_create_inferior): Use get_thread_regcache
10219 instead of get_current_regcache.
10220
10221 2020-01-14 Tom Tromey <tom@tromey.com>
10222
10223 PR symtab/12535:
10224 * python/python.c (gdbpy_decode_line): Treat empty string the same
10225 as no argument.
10226
10227 2020-01-14 Tom Tromey <tom@tromey.com>
10228
10229 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10230
10231 2020-01-14 Tom Tromey <tom@tromey.com>
10232
10233 * nat/linux-btrace.c: Don't include <config.h>.
10234 * nat/linux-ptrace.c: Don't include <config.h>.
10235 * nat/x86-linux-dregs.c: Don't include <config.h>.
10236
10237 2020-01-14 Tom Tromey <tom@tromey.com>
10238
10239 * configure: Rebuild.
10240 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10241
10242 2020-01-14 Tom Tromey <tom@tromey.com>
10243
10244 * nat/x86-linux-dregs.c: Include configh.h.
10245 * nat/linux-ptrace.c: Include configh.h.
10246 * nat/linux-btrace.c: Include configh.h.
10247 * defs.h: Include config.h, bfd.h.
10248 * configure.ac: Don't source common.host.
10249 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10250 * configure: Rebuild.
10251 * acinclude.m4: Update path.
10252 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10253 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10254 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10255 (CLIBS): Add LIBSUPPORT.
10256 (CDEPS): Likewise.
10257 (COMMON_SFILES): Remove gdbsupport files.
10258 (HFILES_NO_SRCDIR): Likewise.
10259 (stamp-version): Update path to create-version.sh.
10260 (ALLDEPFILES): Remove gdbsupport files.
10261
10262 2020-01-14 Tom Tromey <tom@tromey.com>
10263
10264 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10265 USE_WIN32API when needed.
10266 * configure.ac (USE_WIN32API): Don't define.
10267 (WIN32LIBS): Use WIN32APILIBS.
10268 * configure: Rebuild.
10269
10270 2020-01-14 Tom Tromey <tom@tromey.com>
10271
10272 * configure: Rebuild.
10273 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10274
10275 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10276
10277 * skip.c (skip_function_command): Make skip w/o arguments use the
10278 name of the inlined function if pc is inside any inlined function.
10279
10280 2020-01-14 Luis Machado <luis.machado@linaro.org>
10281
10282 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10283 * infrun.c (resume_1): Likewise.
10284 (handle_inferior_event): Remove stale comment.
10285 * linux-nat.c (linux_nat_target::resume): Update comments.
10286 (save_stop_reason): Likewise.
10287 (linux_nat_filter_event): Likewise.
10288 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10289
10290 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10291
10292 * elfread.c (record_minimal_symbol): Set section index to 0 for
10293 non-allocatable sections.
10294
10295
10296 2020-01-13 Ali Tamur <tamur@google.com>
10297
10298 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10299 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10300 to gdb::optional. Update comments.
10301 (dwo_file): Update comments.
10302 (read_attribute): Update API to take an additional out parameter,
10303 need_reprocess. This is used to mark attributes that need other
10304 attributes (e.g. str_offsets_base) for correct computation which may not
10305 have been read yet.
10306 (read_attribute_reprocess): New function declaration.
10307 (read_addr_index): Likewise.
10308 (read_dwo_str_index): Likewise.
10309 (read_stub_str_index): Likewise.
10310 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10311 (lookup_addr_base): New function definition.
10312 (lookup_ranges_base): Likewise.
10313 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10314 lookup_ranges_base.
10315 (init_cutu_and_read_dies): Update comments.
10316 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10317 unit. This is used to inherit parent's str_offsets_base and addr_base.
10318 Update comments.
10319 (init_cutu_and_read_dies_simple): Reflect API changes.
10320 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10321 (create_cus_hash_table): Change API to take parent compile unit.
10322 Reflect API changes.
10323 (open_and_init_dwo_file): Reflect API changes.
10324 (dwarf2_get_pc_bounds): Update comments.
10325 (dwarf2_record_block_ranges): Likewise.
10326 (read_full_die_1): Change implementation to reprocess attributes that
10327 need str_offsets_base and addr_base.
10328 (partial_die_info::read): Likewise.
10329 (read_attribute_reprocess): New function definition.
10330 (read_attribute_value): Change API to take an additional out parameter,
10331 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10332 when a non-dwo compile unit has index based attributes.
10333 (read_attribute): Reflect API changes.
10334 (read_addr_index_1): Reflect API changes. Update comments.
10335 (dwarf2_read_addr_index_data): Reflect API changes.
10336 (dwarf2_read_addr_index): Likewise.
10337 (read_str_index): Change API and implementation. This becomes a helper
10338 to be used by the new string index related methods. Update error
10339 message and comments.
10340 (read_dwo_str_index): New function definition.
10341 (read_stub_str_index): Likewise.
10342 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10343 * symfile.h (dwarf2_debug_sections): Likewise.
10344 * xcoffread.c (dwarf2_debug_sections): Likewise.
10345
10346 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10347
10348 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10349 core_reg_sect type to gdb_byte *.
10350 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10351 * cris-tdep.c (fetch_core_registers): Likewise.
10352 * corelow.c (core_target::get_core_register_section): Change
10353 type of `contents` to gdb::byte_vector.
10354
10355 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10356
10357 * tui/tui-wingeneral.c (box_win): Position the title in the center
10358 of the border.
10359
10360 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10361
10362 * corelow.c (core_target::get_core_register_section): Use
10363 std::vector instead of alloca.
10364
10365 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10366
10367 * warning.m4: Add -Wmissing-declarations to build_warnings.
10368 * configure: Re-generate.
10369
10370 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10371
10372 * python/python.c (init__gdb_module): Add declaration.
10373
10374 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10375
10376 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10377 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10378 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10379 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10380 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10381 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10382 * ada-exp.y (_initialize_ada_exp): Add declaration.
10383 * ada-lang.c (_initialize_ada_language): Add declaration.
10384 * ada-tasks.c (_initialize_tasks): Add declaration.
10385 * agent.c (_initialize_agent): Add declaration.
10386 * aix-thread.c (_initialize_aix_thread): Add declaration.
10387 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10388 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10389 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10390 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10391 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10392 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10393 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10394 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10395 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10396 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10397 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10398 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10399 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10400 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10401 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10402 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10403 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10404 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10405 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10406 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10407 * annotate.c (_initialize_annotate): Add declaration.
10408 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10409 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10410 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10411 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10412 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10413 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10414 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10415 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10416 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10417 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10418 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10419 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10420 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10421 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10422 * auto-load.c (_initialize_auto_load): Add declaration.
10423 * auxv.c (_initialize_auxv): Add declaration.
10424 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10425 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10426 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10427 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10428 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10429 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10430 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10431 * breakpoint.c (_initialize_breakpoint): Add declaration.
10432 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10433 * btrace.c (_initialize_btrace): Add declaration.
10434 * charset.c (_initialize_charset): Add declaration.
10435 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10436 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10437 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10438 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10439 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10440 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10441 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10442 * coffread.c (_initialize_coffread): Add declaration.
10443 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10444 * compile/compile.c (_initialize_compile): Add declaration.
10445 * complaints.c (_initialize_complaints): Add declaration.
10446 * completer.c (_initialize_completer): Add declaration.
10447 * copying.c (_initialize_copying): Add declaration.
10448 * corefile.c (_initialize_core): Add declaration.
10449 * corelow.c (_initialize_corelow): Add declaration.
10450 * cp-abi.c (_initialize_cp_abi): Add declaration.
10451 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10452 * cp-support.c (_initialize_cp_support): Add declaration.
10453 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10454 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10455 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10456 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10457 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10458 * ctfread.c (_initialize_ctfread): Add declaration.
10459 * d-lang.c (_initialize_d_language): Add declaration.
10460 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10461 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10462 * dbxread.c (_initialize_dbxread): Add declaration.
10463 * dcache.c (_initialize_dcache): Add declaration.
10464 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10465 * disasm.c (_initialize_disasm): Add declaration.
10466 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10467 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10468 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10469 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10470 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10471 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10472 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10473 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10474 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10475 * elfread.c (_initialize_elfread): Add declaration.
10476 * exec.c (_initialize_exec): Add declaration.
10477 * extension.c (_initialize_extension): Add declaration.
10478 * f-lang.c (_initialize_f_language): Add declaration.
10479 * f-valprint.c (_initialize_f_valprint): Add declaration.
10480 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10481 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10482 * filesystem.c (_initialize_filesystem): Add declaration.
10483 * findcmd.c (_initialize_mem_search): Add declaration.
10484 * findvar.c (_initialize_findvar): Add declaration.
10485 * fork-child.c (_initialize_fork_child): Add declaration.
10486 * frame-base.c (_initialize_frame_base): Add declaration.
10487 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10488 * frame.c (_initialize_frame): Add declaration.
10489 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10490 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10491 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10492 * gcore.c (_initialize_gcore): Add declaration.
10493 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10494 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10495 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10496 * gdbarch.c (_initialize_gdbarch): Add declaration.
10497 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10498 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10499 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10500 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10501 * go-lang.c (_initialize_go_language): Add declaration.
10502 * go32-nat.c (_initialize_go32_nat): Add declaration.
10503 * guile/guile.c (_initialize_guile): Add declaration.
10504 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10505 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10506 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10507 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10508 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10509 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10510 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10511 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10512 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10513 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10514 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10515 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10516 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10517 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10518 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10519 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10520 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10521 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10522 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10523 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10524 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10525 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10526 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10527 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10528 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10529 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10530 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10531 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10532 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10533 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10534 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10535 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10536 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10537 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10538 * infcall.c (_initialize_infcall): Add declaration.
10539 * infcmd.c (_initialize_infcmd): Add declaration.
10540 * inflow.c (_initialize_inflow): Add declaration.
10541 * infrun.c (_initialize_infrun): Add declaration.
10542 * interps.c (_initialize_interpreter): Add declaration.
10543 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10544 * jit.c (_initialize_jit): Add declaration.
10545 * language.c (_initialize_language): Add declaration.
10546 * linux-fork.c (_initialize_linux_fork): Add declaration.
10547 * linux-nat.c (_initialize_linux_nat): Add declaration.
10548 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10549 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10550 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10551 * m2-lang.c (_initialize_m2_language): Add declaration.
10552 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10553 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10554 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10555 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10556 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10557 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10558 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10559 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10560 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10561 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10562 * machoread.c (_initialize_machoread): Add declaration.
10563 * macrocmd.c (_initialize_macrocmd): Add declaration.
10564 * macroscope.c (_initialize_macroscope): Add declaration.
10565 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10566 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10567 * maint.c (_initialize_maint_cmds): Add declaration.
10568 * mdebugread.c (_initialize_mdebugread): Add declaration.
10569 * memattr.c (_initialize_mem): Add declaration.
10570 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10571 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10572 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10573 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10574 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10575 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10576 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10577 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10578 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10579 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10580 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10581 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10582 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10583 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10584 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10585 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10586 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10587 * mipsread.c (_initialize_mipsread): Add declaration.
10588 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10589 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10590 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10591 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10592 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10593 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10594 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10595 * nto-procfs.c (_initialize_procfs): Add declaration.
10596 * objc-lang.c (_initialize_objc_language): Add declaration.
10597 * observable.c (_initialize_observer): Add declaration.
10598 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10599 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10600 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10601 * osabi.c (_initialize_gdb_osabi): Add declaration.
10602 * osdata.c (_initialize_osdata): Add declaration.
10603 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10604 * parse.c (_initialize_parse): Add declaration.
10605 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10606 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10607 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10608 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10609 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10610 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10611 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10612 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10613 * printcmd.c (_initialize_printcmd): Add declaration.
10614 * probe.c (_initialize_probe): Add declaration.
10615 * proc-api.c (_initialize_proc_api): Add declaration.
10616 * proc-events.c (_initialize_proc_events): Add declaration.
10617 * proc-service.c (_initialize_proc_service): Add declaration.
10618 * procfs.c (_initialize_procfs): Add declaration.
10619 * producer.c (_initialize_producer): Add declaration.
10620 * psymtab.c (_initialize_psymtab): Add declaration.
10621 * python/python.c (_initialize_python): Add declaration.
10622 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10623 * record-btrace.c (_initialize_record_btrace): Add declaration.
10624 * record-full.c (_initialize_record_full): Add declaration.
10625 * record.c (_initialize_record): Add declaration.
10626 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10627 * regcache.c (_initialize_regcache): Add declaration.
10628 * reggroups.c (_initialize_reggroup): Add declaration.
10629 * remote-notif.c (_initialize_notif): Add declaration.
10630 * remote-sim.c (_initialize_remote_sim): Add declaration.
10631 * remote.c (_initialize_remote): Add declaration.
10632 * reverse.c (_initialize_reverse): Add declaration.
10633 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10634 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10635 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10636 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10637 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10638 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10639 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10640 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10641 Add declaration.
10642 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10643 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10644 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10645 * rust-exp.y (_initialize_rust_exp): Add declaration.
10646 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10647 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10648 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10649 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10650 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10651 * score-tdep.c (_initialize_score_tdep): Add declaration.
10652 * ser-go32.c (_initialize_ser_dos): Add declaration.
10653 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10654 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10655 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10656 * ser-uds.c (_initialize_ser_socket): Add declaration.
10657 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10658 * serial.c (_initialize_serial): Add declaration.
10659 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10660 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10661 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10662 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10663 * skip.c (_initialize_step_skip): Add declaration.
10664 * sol-thread.c (_initialize_sol_thread): Add declaration.
10665 * solib-aix.c (_initialize_solib_aix): Add declaration.
10666 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10667 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10668 * solib-frv.c (_initialize_frv_solib): Add declaration.
10669 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10670 * solib-target.c (_initialize_solib_target): Add declaration.
10671 * solib.c (_initialize_solib): Add declaration.
10672 * source-cache.c (_initialize_source_cache): Add declaration.
10673 * source.c (_initialize_source): Add declaration.
10674 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10675 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10676 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10677 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10678 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10679 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10680 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10681 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10682 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10683 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10684 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10685 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10686 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10687 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10688 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10689 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10690 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10691 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10692 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10693 * stabsread.c (_initialize_stabsread): Add declaration.
10694 * stack.c (_initialize_stack): Add declaration.
10695 * stap-probe.c (_initialize_stap_probe): Add declaration.
10696 * std-regs.c (_initialize_frame_reg): Add declaration.
10697 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10698 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10699 * symfile.c (_initialize_symfile): Add declaration.
10700 * symmisc.c (_initialize_symmisc): Add declaration.
10701 * symtab.c (_initialize_symtab): Add declaration.
10702 * target.c (_initialize_target): Add declaration.
10703 * target-connection.c (_initialize_target_connection): Add
10704 declaration.
10705 * target-dcache.c (_initialize_target_dcache): Add declaration.
10706 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10707 * thread.c (_initialize_thread): Add declaration.
10708 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10709 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10710 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10711 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10712 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10713 * tracectf.c (_initialize_ctf): Add declaration.
10714 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10715 * tracefile.c (_initialize_tracefile): Add declaration.
10716 * tracepoint.c (_initialize_tracepoint): Add declaration.
10717 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10718 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10719 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10720 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10721 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10722 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10723 * tui/tui.c (_initialize_tui): Add declaration.
10724 * typeprint.c (_initialize_typeprint): Add declaration.
10725 * ui-style.c (_initialize_ui_style): Add declaration.
10726 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10727 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10728 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10729 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10730 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10731 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10732 * unittests/filtered_iterator-selftests.c
10733 (_initialize_filtered_iterator_selftests): Add declaration.
10734 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10735 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10736 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10737 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10738 * unittests/main-thread-selftests.c
10739 (_initialize_main_thread_selftests): Add declaration.
10740 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10741 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10742 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10743 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10744 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10745 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10746 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10747 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10748 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10749 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10750 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10751 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10752 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10753 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10754 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10755 declaration.
10756 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10757 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10758 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10759 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10760 * user-regs.c (_initialize_user_regs): Add declaration.
10761 * utils.c (_initialize_utils): Add declaration.
10762 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10763 * valops.c (_initialize_valops): Add declaration.
10764 * valprint.c (_initialize_valprint): Add declaration.
10765 * value.c (_initialize_values): Add declaration.
10766 * varobj.c (_initialize_varobj): Add declaration.
10767 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10768 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10769 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10770 * windows-nat.c (_initialize_windows_nat): Add declaration.
10771 (_initialize_check_for_gdb_ini): Add declaration.
10772 (_initialize_loadable): Add declaration.
10773 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10774 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10775 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10776 * xcoffread.c (_initialize_xcoffread): Add declaration.
10777 * xml-support.c (_initialize_xml_support): Add declaration.
10778 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10779 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10780 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10781 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10782
10783 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10784
10785 * regformats/regdat.sh: Generate declaration for init function.
10786
10787 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10788
10789 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10790 up.
10791 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10792 close_one_inferior>: New methods.
10793 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10794 pass down target to find_inferior_pid.
10795 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10796 Pass down target to find_inferior_ptid.
10797 (gdbsim_target::create_inferior): Pass down target to
10798 add_thread_silent.
10799 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10800 target down to find_inferior_ptid and switch_to_thread.
10801 (gdbsim_target::close): Update to call close_one_inferior.
10802 (struct resume_data): Remove.
10803 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10804 directly, rather than through a void pointer.
10805 (gdbsim_target::resume): Update to call resume_one_inferior.
10806
10807 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10808
10809 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10810
10811 2020-01-12 Pedro Alves <palves@redhat.com>
10812
10813 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10814 directly for the current inferior instead of
10815 discard_all_inferiors.
10816 (discard_all_inferiors): Delete.
10817
10818 2020-01-11 Tom Tromey <tom@tromey.com>
10819
10820 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10821 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10822 deprecated_safe_get_selected_frame.
10823
10824 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10825
10826 * inferior.c (print_inferior): Switch inferior before printing it.
10827
10828 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10829 Pedro Alves <palves@redhat.com>
10830
10831 * progspace-and-thread.c (switch_to_program_space_and_thread):
10832 Assert there's an inferior for PSPACE. Use
10833 switch_to_inferior_no_thread to switch the inferior too.
10834 * progspace.c (program_space::~program_space): Call
10835 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10836 (program_space::free_all_objfiles): Don't call clear_symtab_users
10837 here.
10838 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10839
10840 2020-01-10 Pedro Alves <palves@redhat.com>
10841
10842 * NEWS: Mention multi-target debugging, "info connections", and
10843 "add-inferior -no-connection".
10844
10845 2020-01-10 Pedro Alves <palves@redhat.com>
10846
10847 * infrun.c: Include "target-connection.h".
10848 (check_multi_target_resumption): New.
10849 (proceed): Call it.
10850 * target-connection.c (make_target_connection_string): Make
10851 extern.
10852 * target-connection.h (make_target_connection_string): Declare.
10853
10854 2020-01-10 Pedro Alves <palves@redhat.com>
10855
10856 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10857 * inferior.c (uiout_field_connection): New function.
10858 (print_inferior): Add new "connection-id" column.
10859 (add_inferior_command): Show connection number/string of added
10860 inferior.
10861 * process-stratum-target.h
10862 (process_stratum_target::connection_string): New virtual method.
10863 (process_stratum_target::connection_number): New field.
10864 * remote.c (remote_target::connection_string): New override.
10865 * target-connection.c: New file.
10866 * target-connection.h: New file.
10867 * target.c (decref_target): Remove process_stratum targets from
10868 the connection list.
10869 (target_stack::push): Add process_stratum targets to the
10870 connection list.
10871
10872 2020-01-10 Pedro Alves <palves@redhat.com>
10873
10874 Revert:
10875 2016-04-12 Pedro Alves <palves@redhat.com>
10876 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10877 Remove references to name.
10878 * serial.h (struct serial) <name>: Delete.
10879
10880 2020-01-10 Pedro Alves <palves@redhat.com>
10881
10882 * gdbarch-selftests.c (register_to_value_test): Remove "target
10883 already pushed" check.
10884
10885 2020-01-10 Pedro Alves <palves@redhat.com>
10886 John Baldwin <jhb@FreeBSD.org>
10887
10888 * aarch64-linux-nat.c
10889 (aarch64_linux_nat_target::thread_architecture): Adjust.
10890 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10891 (task_command_1): Likewise.
10892 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10893 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10894 (aix_thread_target::store_registers)
10895 (aix_thread_target::thread_alive): Adjust.
10896 * amd64-fbsd-tdep.c: Include "inferior.h".
10897 (amd64fbsd_get_thread_local_address): Pass down target.
10898 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10899 thread's gdbarch instead of target_gdbarch.
10900 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10901 get_last_target_status.
10902 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10903 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10904 inferiors.
10905 (update_inserted_breakpoint_locations): Skip if inferiors with no
10906 execution.
10907 (update_global_location_list): When handling moribund locations,
10908 find representative inferior for location's pspace, and use thread
10909 count of its process_stratum target.
10910 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10911 * bsd-uthread.c (bsd_uthread_target::wait): Use
10912 as_process_stratum_target and adjust thread_change_ptid and
10913 add_thread calls.
10914 (bsd_uthread_target::update_thread_list): Use
10915 as_process_stratum_target and adjust find_thread_ptid,
10916 thread_change_ptid and add_thread calls.
10917 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10918 find_thread_ptid call.
10919 * corelow.c (add_to_thread_list): Adjust add_thread call.
10920 (core_target_open): Adjust add_thread_silent and thread_count
10921 calls.
10922 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10923 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10924 * event-top.c (async_disconnect): Pop targets from all inferiors.
10925 * exec.c (add_target_sections): Push exec target on all inferiors
10926 sharing the program space.
10927 (remove_target_sections): Remove the exec target from all
10928 inferiors sharing the program space.
10929 (exec_on_vfork): New.
10930 * exec.h (exec_on_vfork): Declare.
10931 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10932 Pass it down.
10933 (fbsd_nat_target::update_thread_list): Adjust.
10934 (fbsd_nat_target::resume): Adjust.
10935 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10936 down.
10937 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10938 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10939 get_thread_arch_regcache call.
10940 * fork-child.c (gdb_startup_inferior): Pass target down to
10941 startup_inferior and set_executing.
10942 * gdbthread.h (struct process_stratum_target): Forward declare.
10943 (add_thread, add_thread_silent, add_thread_with_info)
10944 (in_thread_list): Add process_stratum_target parameter.
10945 (find_thread_ptid(inferior*, ptid_t)): New overload.
10946 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10947 parameter.
10948 (all_threads()): Delete overload.
10949 (all_threads, all_non_exited_threads): Add process_stratum_target
10950 parameter.
10951 (all_threads_safe): Use brace initialization.
10952 (thread_count): Add process_stratum_target parameter.
10953 (set_resumed, set_running, set_stop_requested, set_executing)
10954 (threads_are_executing, finish_thread_state): Add
10955 process_stratum_target parameter.
10956 (switch_to_thread): Use is_current_thread.
10957 * i386-fbsd-tdep.c: Include "inferior.h".
10958 (i386fbsd_get_thread_local_address): Pass down target.
10959 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10960 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10961 have_inferiors check.
10962 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10963 (inf_ptrace_target::attach): Adjust.
10964 * infcall.c (run_inferior_call): Adjust.
10965 * infcmd.c (run_command_1): Pass target to
10966 scoped_finish_thread_state.
10967 (proceed_thread_callback): Skip inferiors with no execution.
10968 (continue_command): Rename 'all_threads' local to avoid hiding
10969 'all_threads' function. Adjust get_last_target_status call.
10970 (prepare_one_step): Adjust set_running call.
10971 (signal_command): Use user_visible_resume_target. Compare thread
10972 pointers instead of inferior_ptid.
10973 (info_program_command): Adjust to pass down target.
10974 (attach_command): Mark target's 'thread_executing' flag.
10975 (stop_current_target_threads_ns): New, factored out from ...
10976 (interrupt_target_1): ... this. Switch inferior before making
10977 target calls.
10978 * inferior-iter.h
10979 (struct all_inferiors_iterator, struct all_inferiors_range)
10980 (struct all_inferiors_safe_range)
10981 (struct all_non_exited_inferiors_range): Filter on
10982 process_stratum_target too. Remove explicit.
10983 * inferior.c (inferior::inferior): Push dummy target on target
10984 stack.
10985 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10986 Add process_stratum_target parameter, and pass it down.
10987 (have_live_inferiors): Adjust.
10988 (switch_to_inferior_and_push_target): New.
10989 (add_inferior_command, clone_inferior_command): Handle
10990 "-no-connection" parameter. Use
10991 switch_to_inferior_and_push_target.
10992 (_initialize_inferior): Mention "-no-connection" option in
10993 the help of "add-inferior" and "clone-inferior" commands.
10994 * inferior.h: Include "process-stratum-target.h".
10995 (interrupt_target_1): Use bool.
10996 (struct inferior) <push_target, unpush_target, target_is_pushed,
10997 find_target_beneath, top_target, process_target, target_at,
10998 m_stack>: New.
10999 (discard_all_inferiors): Delete.
11000 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11001 (all_inferiors, all_non_exited_inferiors): Add
11002 process_stratum_target parameter.
11003 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11004 (target_last_proc_target): New global.
11005 (follow_fork_inferior): Push target on new inferior. Pass target
11006 to add_thread_silent. Call exec_on_vfork. Handle target's
11007 reference count.
11008 (follow_fork): Adjust get_last_target_status call. Also consider
11009 target.
11010 (follow_exec): Push target on new inferior.
11011 (struct execution_control_state) <target>: New field.
11012 (user_visible_resume_target): New.
11013 (do_target_resume): Call target_async.
11014 (resume_1): Set target's threads_executing flag. Consider resume
11015 target.
11016 (commit_resume_all_targets): New.
11017 (proceed): Also consider resume target. Skip threads of inferiors
11018 with no execution. Commit resumtion in all targets.
11019 (start_remote): Pass current inferior to wait_for_inferior.
11020 (infrun_thread_stop_requested): Consider target as well. Pass
11021 thread_info pointer to clear_inline_frame_state instead of ptid.
11022 (infrun_thread_thread_exit): Consider target as well.
11023 (random_pending_event_thread): New inferior parameter. Use it.
11024 (do_target_wait): Rename to ...
11025 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11026 down.
11027 (threads_are_resumed_pending_p, do_target_wait): New.
11028 (prepare_for_detach): Adjust calls.
11029 (wait_for_inferior): New inferior parameter. Handle it. Use
11030 do_target_wait_1 instead of do_target_wait.
11031 (fetch_inferior_event): Adjust. Switch to representative
11032 inferior. Pass target down.
11033 (set_last_target_status): Add process_stratum_target parameter.
11034 Save target in global.
11035 (get_last_target_status): Add process_stratum_target parameter and
11036 handle it.
11037 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11038 (context_switch): Check inferior_ptid == null_ptid before calling
11039 inferior_thread().
11040 (get_inferior_stop_soon): Pass down target.
11041 (wait_one): Rename to ...
11042 (poll_one_curr_target): ... this.
11043 (struct wait_one_event): New.
11044 (wait_one): New.
11045 (stop_all_threads): Adjust.
11046 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11047 event's target.
11048 (switch_back_to_stepped_thread): Also consider target.
11049 (print_stop_event): Update.
11050 (normal_stop): Update. Also consider the resume target.
11051 * infrun.h (wait_for_inferior): Remove declaration.
11052 (user_visible_resume_target): New declaration.
11053 (get_last_target_status, set_last_target_status): New
11054 process_stratum_target parameter.
11055 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11056 process_stratum_target parameter, and use it.
11057 (clear_inline_frame_state (thread_info*)): New.
11058 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11059 process_stratum_target parameter.
11060 (clear_inline_frame_state (thread_info*)): Declare.
11061 * linux-fork.c (delete_checkpoint_command): Pass target down to
11062 find_thread_ptid.
11063 (checkpoint_command): Adjust.
11064 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11065 instead of just tweaking inferior_ptid.
11066 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11067 (exit_lwp): Pass target down to find_thread_ptid.
11068 (attach_proc_task_lwp_callback): Pass target down to
11069 add_thread/set_running/set_executing.
11070 (linux_nat_target::attach): Pass target down to
11071 thread_change_ptid.
11072 (get_detach_signal): Pass target down to find_thread_ptid.
11073 Consider last target status's target.
11074 (linux_resume_one_lwp_throw, resume_lwp)
11075 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11076 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11077 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11078 (linux_nat_target::async_wait_fd): New.
11079 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11080 target down.
11081 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11082 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11083 * linux-thread-db.c (struct thread_db_info::process_target): New
11084 field.
11085 (add_thread_db_info): Save target.
11086 (get_thread_db_info): New process_stratum_target parameter. Also
11087 match target.
11088 (delete_thread_db_info): New process_stratum_target parameter.
11089 Also match target.
11090 (thread_from_lwp): Adjust to pass down target.
11091 (thread_db_notice_clone): Pass down target.
11092 (check_thread_db_callback): Pass down target.
11093 (try_thread_db_load_1): Always push the thread_db target.
11094 (try_thread_db_load, record_thread): Pass target down.
11095 (thread_db_target::detach): Pass target down. Always unpush the
11096 thread_db target.
11097 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11098 target down. Always unpush the thread_db target.
11099 (find_new_threads_callback, thread_db_find_new_threads_2)
11100 (thread_db_target::update_thread_list): Pass target down.
11101 (thread_db_target::pid_to_str): Pass current inferior down.
11102 (thread_db_target::get_thread_local_address): Pass target down.
11103 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11104 target down.
11105 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11106 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11107 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11108 (procfs_init_inferior): Rename to ...
11109 (procfs_target::procfs_init_inferior): ... this and adjust.
11110 (procfs_target::create_inferior, procfs_notice_thread)
11111 (procfs_do_thread_registers): Adjust.
11112 * ppc-fbsd-tdep.c: Include "inferior.h".
11113 (ppcfbsd_get_thread_local_address): Pass down target.
11114 * proc-service.c (ps_xfer_memory): Switch current inferior and
11115 program space as well.
11116 (get_ps_regcache): Pass target down.
11117 * process-stratum-target.c
11118 (process_stratum_target::thread_address_space)
11119 (process_stratum_target::thread_architecture): Pass target down.
11120 * process-stratum-target.h
11121 (process_stratum_target::threads_executing): New field.
11122 (as_process_stratum_target): New.
11123 * ravenscar-thread.c
11124 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11125 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11126 down.
11127 * record-btrace.c (record_btrace_target::info_record): Adjust.
11128 (record_btrace_target::record_method)
11129 (record_btrace_target::record_is_replaying)
11130 (record_btrace_target::fetch_registers)
11131 (get_thread_current_frame_id, record_btrace_target::resume)
11132 (record_btrace_target::wait, record_btrace_target::stop): Pass
11133 target down.
11134 * record-full.c (record_full_wait_1): Switch to event thread.
11135 Pass target down.
11136 * regcache.c (regcache::regcache)
11137 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11138 process_stratum_target parameter and handle it.
11139 (current_thread_target): New global.
11140 (get_thread_regcache): Add process_stratum_target parameter and
11141 handle it. Switch inferior before calling target method.
11142 (get_thread_regcache): Pass target down.
11143 (get_thread_regcache_for_ptid): Pass target down.
11144 (registers_changed_ptid): Add process_stratum_target parameter and
11145 handle it.
11146 (registers_changed_thread, registers_changed): Pass target down.
11147 (test_get_thread_arch_aspace_regcache): New.
11148 (current_regcache_test): Define a couple local test_target_ops
11149 instances and use them for testing.
11150 (readwrite_regcache): Pass process_stratum_target parameter.
11151 (cooked_read_test, cooked_write_test): Pass mock_target down.
11152 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11153 (get_thread_arch_aspace_regcache): Add process_stratum_target
11154 parameter.
11155 (regcache::target): New method.
11156 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11157 (regcache::registers_changed_ptid): Add process_stratum_target
11158 parameter.
11159 (regcache::m_target): New field.
11160 (registers_changed_ptid): Add process_stratum_target parameter.
11161 * remote.c (remote_state::supports_vCont_probed): New field.
11162 (remote_target::async_wait_fd): New method.
11163 (remote_unpush_and_throw): Add remote_target parameter.
11164 (get_current_remote_target): Adjust.
11165 (remote_target::remote_add_inferior): Push target.
11166 (remote_target::remote_add_thread)
11167 (remote_target::remote_notice_new_inferior)
11168 (get_remote_thread_info): Pass target down.
11169 (remote_target::update_thread_list): Skip threads of inferiors
11170 bound to other targets. (remote_target::close): Don't discard
11171 inferiors. (remote_target::add_current_inferior_and_thread)
11172 (remote_target::process_initial_stop_replies)
11173 (remote_target::start_remote)
11174 (remote_target::remote_serial_quit_handler): Pass down target.
11175 (remote_target::remote_unpush_target): New remote_target
11176 parameter. Unpush the target from all inferiors.
11177 (remote_target::remote_unpush_and_throw): New remote_target
11178 parameter. Pass it down.
11179 (remote_target::open_1): Check whether the current inferior has
11180 execution instead of checking whether any inferior is live. Pass
11181 target down.
11182 (remote_target::remote_detach_1): Pass down target. Use
11183 remote_unpush_target.
11184 (extended_remote_target::attach): Pass down target.
11185 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11186 (remote_target::append_resumption): Pass down target.
11187 (remote_target::append_pending_thread_resumptions)
11188 (remote_target::remote_resume_with_hc, remote_target::resume)
11189 (remote_target::commit_resume): Pass down target.
11190 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11191 (remote_target::interrupt_query)
11192 (remote_target::remove_new_fork_children)
11193 (remote_target::check_pending_events_prevent_wildcard_vcont)
11194 (remote_target::remote_parse_stop_reply)
11195 (remote_target::process_stop_reply): Pass down target.
11196 (first_remote_resumed_thread): New remote_target parameter. Pass
11197 it down.
11198 (remote_target::wait_as): Pass down target.
11199 (unpush_and_perror): New remote_target parameter. Pass it down.
11200 (remote_target::readchar, remote_target::remote_serial_write)
11201 (remote_target::getpkt_or_notif_sane_1)
11202 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11203 down target.
11204 (remote_target::mourn_inferior): Pass down target. Use
11205 remote_unpush_target.
11206 (remote_target::core_of_thread)
11207 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11208 (remote_target::pid_to_exec_file)
11209 (remote_target::thread_handle_to_thread_info): Pass down target.
11210 (remote_target::async_wait_fd): New.
11211 * riscv-fbsd-tdep.c: Include "inferior.h".
11212 (riscv_fbsd_get_thread_local_address): Pass down target.
11213 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11214 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11215 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11216 Adjust.
11217 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11218 * solib-svr4.c (enable_break): Pass down target.
11219 * spu-multiarch.c (parse_spufs_run): Pass down target.
11220 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11221 * target-delegates.c: Regenerate.
11222 * target.c (g_target_stack): Delete.
11223 (current_top_target): Return the current inferior's top target.
11224 (target_has_execution_1): Refer to the passed-in inferior's top
11225 target.
11226 (target_supports_terminal_ours): Check whether the initial
11227 inferior was already created.
11228 (decref_target): New.
11229 (target_stack::push): Incref/decref the target.
11230 (push_target, push_target, unpush_target): Adjust.
11231 (target_stack::unpush): Defref target.
11232 (target_is_pushed): Return bool. Adjust to refer to the current
11233 inferior's target stack.
11234 (dispose_inferior): Delete, and inline parts ...
11235 (target_preopen): ... here. Only dispose of the current inferior.
11236 (target_detach): Hold strong target reference while detaching.
11237 Pass target down.
11238 (target_thread_name): Add assertion.
11239 (target_resume): Pass down target.
11240 (target_ops::beneath, find_target_at): Adjust to refer to the
11241 current inferior's target stack.
11242 (get_dummy_target): New.
11243 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11244 has a thread running.
11245 (initialize_targets): Rename to ...
11246 (_initialize_target): ... this.
11247 * target.h: Include "gdbsupport/refcounted-object.h".
11248 (struct target_ops): Inherit refcounted_object.
11249 (target_ops::shortname, target_ops::longname): Make const.
11250 (target_ops::async_wait_fd): New method.
11251 (decref_target): Declare.
11252 (struct target_ops_ref_policy): New.
11253 (target_ops_ref): New typedef.
11254 (get_dummy_target): Declare function.
11255 (target_is_pushed): Return bool.
11256 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11257 (all_matching_threads_iterator::all_matching_threads_iterator):
11258 Handle filter target.
11259 * thread-iter.h (struct all_matching_threads_iterator, struct
11260 all_matching_threads_range, class all_non_exited_threads_range):
11261 Filter by target too. Remove explicit.
11262 * thread.c (threads_executing): Delete.
11263 (inferior_thread): Pass down current inferior.
11264 (clear_thread_inferior_resources): Pass down thread pointer
11265 instead of ptid_t.
11266 (add_thread_silent, add_thread_with_info, add_thread): Add
11267 process_stratum_target parameter. Use it for thread and inferior
11268 searches.
11269 (is_current_thread): New.
11270 (thread_info::deletable): Use it.
11271 (find_thread_ptid, thread_count, in_thread_list)
11272 (thread_change_ptid, set_resumed, set_running): New
11273 process_stratum_target parameter. Pass it down.
11274 (set_executing): New process_stratum_target parameter. Pass it
11275 down. Adjust reference to 'threads_executing'.
11276 (threads_are_executing): New process_stratum_target parameter.
11277 Adjust reference to 'threads_executing'.
11278 (set_stop_requested, finish_thread_state): New
11279 process_stratum_target parameter. Pass it down.
11280 (switch_to_thread): Also match inferior.
11281 (switch_to_thread): New process_stratum_target parameter. Pass it
11282 down.
11283 (update_threads_executing): Reimplement.
11284 * top.c (quit_force): Pop targets from all inferior.
11285 (gdb_init): Don't call initialize_targets.
11286 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11287 Declare.
11288 (windows_add_thread, windows_delete_thread): Adjust.
11289 (get_windows_debug_event): Rename to ...
11290 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11291 * tracefile-tfile.c (tfile_target_open): Pass down target.
11292 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11293 Forward declare.
11294 (switch_to_thread): Add process_stratum_target parameter.
11295 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11296 parameter. Use it.
11297 (mi_on_resume): Pass target down.
11298 * nat/fork-inferior.c (startup_inferior): Add
11299 process_stratum_target parameter. Pass it down.
11300 * nat/fork-inferior.h (startup_inferior): Add
11301 process_stratum_target parameter.
11302 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11303
11304 2020-01-10 Pedro Alves <palves@redhat.com>
11305
11306 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11307 directly. Instead find the first thread in the thread list and
11308 use switch_to_thread.
11309
11310 2020-01-10 Pedro Alves <palves@redhat.com>
11311
11312 * remote.c (remote_target::remote_add_inferior): Don't bind a
11313 process to the current inferior if the current inferior is already
11314 bound to a process.
11315
11316 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11317 Pedro Alves <palves@redhat.com>
11318
11319 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11320 If no process is specified, return null_ptid instead of
11321 inferior_ptid.
11322 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11323 TARGET_WAITKIND_SIGNALLED with no pid.
11324
11325 2020-01-10 Pedro Alves <palves@redhat.com>
11326
11327 * remote.c (first_remote_resumed_thread): New.
11328 (remote_target::wait_as): Use it as default event_ptid instead of
11329 inferior_ptid.
11330
11331 2020-01-10 Pedro Alves <palves@redhat.com>
11332
11333 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11334
11335 2020-01-10 Pedro Alves <palves@redhat.com>
11336
11337 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11338 not -1.
11339
11340 2020-01-10 Pedro Alves <palves@redhat.com>
11341
11342 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11343 ptid to get_last_target_status.
11344 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11345 ptid to get_last_target_status.
11346 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11347 get_last_target_status.
11348 (info_program_command): Don't pass a target_waitstatus to
11349 get_last_target_status.
11350 * infrun.c (init_wait_for_inferior): Use
11351 nullify_last_target_wait_ptid.
11352 (get_last_target_status): Handle nullptr arguments.
11353 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11354 (print_stop_event): Don't pass a ptid to get_last_target_status.
11355 (normal_stop): Don't pass a ptid to get_last_target_status.
11356 * infrun.h (get_last_target_status, set_last_target_status): Move
11357 comments here and update.
11358 (nullify_last_target_wait_ptid): Declare.
11359 * linux-fork.c (fork_load_infrun_state): Remove local extern
11360 declaration of nullify_last_target_wait_ptid.
11361 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11362 to get_last_target_status.
11363
11364 2020-01-10 Pedro Alves <palves@redhat.com>
11365
11366 * gdbthread.h (scoped_restore_current_thread)
11367 <dont_restore, restore, m_dont_restore>: Declare.
11368 * thread.c (thread_alive): Add assertion. Return bool.
11369 (switch_to_thread_if_alive): New.
11370 (prune_threads): Switch inferior/thread.
11371 (print_thread_info_1): Switch thread before calling target methods.
11372 (scoped_restore_current_thread::restore): New, factored out from
11373 ...
11374 (scoped_restore_current_thread::~scoped_restore_current_thread):
11375 ... this.
11376 (scoped_restore_current_thread::scoped_restore_current_thread):
11377 Add assertion.
11378 (thread_apply_all_command, thread_select): Use
11379 switch_to_thread_if_alive.
11380 * infrun.c (proceed, restart_threads, handle_signal_stop)
11381 (switch_back_to_stepped_thread): Switch current thread before
11382 calling target methods.
11383
11384 2020-01-10 Pedro Alves <palves@redhat.com>
11385
11386 * inferior.c (switch_to_inferior_no_thread): New function,
11387 factored out from ...
11388 (inferior_command): ... here.
11389 * inferior.h (switch_to_inferior_no_thread): Declare.
11390 * mi/mi-main.c (run_one_inferior): Use
11391 switch_to_inferior_no_thread.
11392
11393 2020-01-10 Pedro Alves <palves@redhat.com>
11394
11395 * infcmd.c (kill_command): Remove dead code.
11396
11397 2020-01-10 Pedro Alves <palves@redhat.com>
11398
11399 * remote.c (remote_target::mourn_inferior): No longer check
11400 whether the target is running.
11401
11402 2020-01-10 Pedro Alves <palves@redhat.com>
11403
11404 * corelow.c (core_target::has_execution): Change parameter type to
11405 inferior pointer.
11406 * inferior.c (number_of_live_inferiors): Use
11407 inferior::has_execution instead of target_has_execution_1.
11408 * inferior.h (inferior::has_execution): New.
11409 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11410 inferior::has_execution instead of target_has_execution_1.
11411 * process-stratum-target.c
11412 (process_stratum_target::has_execution): Change parameter type to
11413 inferior pointer. Check the inferior's PID instead of
11414 inferior_ptid.
11415 * process-stratum-target.h
11416 (process_stratum_target::has_execution): Change parameter type to
11417 inferior pointer.
11418 * record-full.c (record_full_core_target::has_execution): Change
11419 parameter type to inferior pointer.
11420 * target.c (target_has_execution_1): Change parameter type to
11421 inferior pointer.
11422 (target_has_execution_current): Adjust.
11423 * target.h (target_ops::has_execution): Change parameter type to
11424 inferior pointer.
11425 (target_has_execution_1): Change parameter type to inferior
11426 pointer. Change return type to bool.
11427 * tracefile.h (tracefile_target::has_execution): Change parameter
11428 type to inferior pointer.
11429
11430 2020-01-10 Pedro Alves <palves@redhat.com>
11431
11432 * exceptions.c (print_flush): Remove current_top_target() check.
11433
11434 2020-01-10 Pedro Alves <palves@redhat.com>
11435
11436 * remote.c (show_remote_exec_file): Show the current inferior's
11437 exec-file instead of the command variable's value.
11438
11439 2020-01-10 Pedro Alves <palves@redhat.com>
11440
11441 * record-full.c (record_full_resume_ptid): New global.
11442 (record_full_target::resume): Set it.
11443 (record_full_wait_1): Use record_full_resume_ptid instead of
11444 inferior_ptid.
11445
11446 2020-01-10 Pedro Alves <palves@redhat.com>
11447
11448 * gdbthread.h (scoped_restore_current_thread)
11449 <dont_restore, restore, m_dont_restore>: Declare.
11450 * thread.c (thread_alive): Add assertion. Return bool.
11451 (switch_to_thread_if_alive): New.
11452 (prune_threads): Switch inferior/thread.
11453 (print_thread_info_1): Switch thread before calling target methods.
11454 (scoped_restore_current_thread::restore): New, factored out from
11455 ...
11456 (scoped_restore_current_thread::~scoped_restore_current_thread):
11457 ... this.
11458 (scoped_restore_current_thread::scoped_restore_current_thread):
11459 Add assertion.
11460 (thread_apply_all_command, thread_select): Use
11461 switch_to_thread_if_alive.
11462
11463 2020-01-10 George Barrett <bob@bob131.so>
11464
11465 * stap-probe.c (stap_modify_semaphore): Don't check for null
11466 semaphores.
11467 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11468 for null semaphores.
11469
11470 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11471
11472 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11473 all source windows, and maintain horizontal scroll status while
11474 doing so.
11475
11476 2020-01-09 Tom Tromey <tom@tromey.com>
11477
11478 PR tui/18932:
11479 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11480 update_source_window, not print_source_lines.
11481
11482 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11483
11484 * tui/tui.c (tui_enable): Register tui hooks after calling
11485 tui_display_main.
11486
11487 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11488
11489 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11490
11491 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11492
11493 * thread.c (print_thread_info_1): Fix indentation.
11494
11495 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11496
11497 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11498 unique_xmalloc_ptr outside the if to always free the demangled name.
11499
11500 2020-01-08 Tom Tromey <tromey@adacore.com>
11501
11502 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11503 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11504 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11505 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11506 Remove.
11507 (section_offsets): New typedef.
11508 * symtab.c (fixup_section, get_msymbol_address): Update.
11509 * symmisc.c (dump_msymbols): Update.
11510 * symfile.h (relative_addr_info_to_section_offsets)
11511 (symfile_map_offsets_to_segments): Update.
11512 * symfile.c (build_section_addr_info_from_objfile)
11513 (init_objfile_sect_indices): Update.
11514 (struct place_section_arg): Change type of "offsets".
11515 (place_section): Update.
11516 (relative_addr_info_to_section_offsets): Change type of
11517 "section_offsets". Remove "num_sections" parameter.
11518 (default_symfile_offsets, syms_from_objfile_1)
11519 (set_objfile_default_section_offset): Update.
11520 (reread_symbols): No need to preserve section offsets by hand.
11521 (symfile_map_offsets_to_segments): Change type of "offsets".
11522 * stap-probe.c (relocate_address): Update.
11523 * stabsread.h (process_one_symbol): Update.
11524 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11525 (solib_target_relocate_section_addresses): Update.
11526 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11527 Update.
11528 * solib-frv.c (frv_relocate_main_executable): Update.
11529 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11530 * solib-aix.c (solib_aix_get_section_offsets): Change return
11531 type.
11532 (solib_aix_solib_create_inferior_hook): Update.
11533 * remote.c (remote_target::get_offsets): Update.
11534 * psymtab.c (find_pc_sect_psymtab): Update.
11535 * psympriv.h (struct partial_symbol) <address, text_low,
11536 text_high>: Update.
11537 * objfiles.h (obj_section_offset): Update.
11538 (struct objfile) <section_offsets>: Change type.
11539 <num_sections>: Remove.
11540 (objfile_relocate): Update.
11541 * objfiles.c (entry_point_address_query): Update
11542 (relocate_one_symbol): Change type of "section_offsets".
11543 (objfile_relocate1, objfile_relocate1): Change type of
11544 "new_offsets".
11545 (objfile_rebase1): Update.
11546 * mipsread.c (mipscoff_symfile_read): Update.
11547 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11548 parameter.
11549 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11550 (parse_external, psymtab_to_symtab_1): Update.
11551 * machoread.c (macho_symfile_offsets): Update.
11552 * ia64-tdep.c (ia64_find_unwind_table): Update.
11553 * hppa-tdep.c (read_unwind_info): Update.
11554 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11555 * dwarf2read.c (create_addrmap_from_index)
11556 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11557 (process_psymtab_comp_unit_reader, add_partial_symbol)
11558 (add_partial_subprogram, process_full_comp_unit)
11559 (read_file_scope, read_func_scope, read_lexical_block_scope)
11560 (read_call_site_scope, dwarf2_rnglists_process)
11561 (dwarf2_ranges_process, dwarf2_ranges_read)
11562 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11563 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11564 Update.
11565 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11566 Update.
11567 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11568 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11569 (process_one_symbol): Change type of "section_offsets".
11570 * ctfread.c (get_objfile_text_range): Update.
11571 * coffread.c (coff_symtab_read, enter_linenos)
11572 (process_coff_symbol): Update.
11573 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11574 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11575
11576 2020-01-08 Tom Tromey <tromey@adacore.com>
11577
11578 * dwarf2read.c (parse_macro_definition): Use std::string.
11579 (parse_macro_definition): Likewise.
11580
11581 2020-01-08 Tom Tromey <tromey@adacore.com>
11582
11583 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11584 (ATTR_ALLOC_CHUNK): Remove.
11585
11586 2020-01-08 Tom Tromey <tromey@adacore.com>
11587
11588 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11589
11590 2020-01-08 Tom Tromey <tromey@adacore.com>
11591
11592 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11593 (dwarf2_compute_name, open_dwo_file): Likewise.
11594 (process_enumeration_scope): Use std::vector.
11595 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11596 (partial_die_info::fixup, dwarf2_start_subfile)
11597 (guess_full_die_structure_name, dwarf2_name): Likewise.
11598 (determine_prefix): Update.
11599 (guess_full_die_structure_name): Make return type const.
11600 (partial_die_full_name): Return unique_xmalloc_ptr.
11601 (DW_FIELD_ALLOC_CHUNK): Remove.
11602
11603 2020-01-07 Tom Tromey <tromey@adacore.com>
11604
11605 PR build/24937:
11606 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11607
11608 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11609
11610 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11611
11612 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11613
11614 * stack.c (print_frame_info): Move disassemble_next_line code
11615 inside source_print block.
11616
11617 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11618
11619 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11620 gdb/signals.h, as we are now using native signal symbols.
11621
11622 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11623
11624 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11625 overflow by an early check of content vs threshold.
11626 * tui/tui-source.c (tui_source_window::line_is_displayed):
11627 Likewise.
11628
11629 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11630
11631 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11632
11633 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11634
11635 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11636 export table if no section contains it's RVA.
11637
11638 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11639
11640 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11641
11642 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11643
11644 * source.c (print_source_lines_base): Set last_line_listed.
11645
11646 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11647
11648 * tui/tui-disasm.c: Remove trailing spaces.
11649
11650 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11651 Pedro Alves <palves@redhat.com>
11652
11653 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11654 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11655 (windows_gdb_signal_to_target): New function, uses the above
11656 enumeration to convert GDB internal signal codes to equivalent
11657 Windows codes.
11658 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11659 * windows-nat.c: Include "gdb_wait.h".
11660 (get_windows_debug_event): Extract the fatal exception from the
11661 exit status and convert to the equivalent Posix signal number.
11662 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11663 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11664 * gdbsupport/gdb_wait.c: New file, implements
11665 windows_status_to_termsig.
11666 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11667 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11668
11669 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11670
11671 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11672 show_layout.
11673
11674 2020-01-05 Luis Machado <luis.machado@linaro.org>
11675
11676 * aarch64-linux-nat.c
11677 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11678 and bfd_mach_aarch64.
11679
11680 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11681
11682 * ui-file.c (stdio_file::can_emit_style_escape)
11683 (tee_file::can_emit_style_escape): Ensure style is used also on
11684 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11685 to gdb_stdout.
11686 * main.c (set_gdb_data_directory): Use file style to output the
11687 warning that the given pathname is not a directory.
11688 * top.c (show_history_filename, gdb_safe_append_history)
11689 (show_gdb_datadir): Use file style.
11690
11691 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11692
11693 * solib-target.c (struct lm_info_target):
11694 Change offsets to be a unique_xmalloc_ptr.
11695 (solib_target_relocate_section_addresses): Update.
11696
11697 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11698
11699 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11700
11701 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11702
11703 * MAINTAINERS (Write After Approval): Add myself.
11704
11705 2020-01-02 Luis Machado <luis.machado@linaro.org>
11706
11707 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11708 Cell BE architecture.
11709 * target.h (struct target_ops) <thread_architecture>: Likewise.
11710
11711 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11712
11713 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11714
11715 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11716
11717 * MAINTAINERS (Write After Approval): Add myself.
11718
11719 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11720
11721 * gdbarch.sh: Update copyright year range of generated files.
11722
11723 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11724
11725 Update copyright year range in all GDB files.
11726
11727 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11728
11729 * copyright.py: Convert to Python 3.
11730
11731 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11732
11733 * copyright.py: Adapt after move of gnulib directory from gdb
11734 directory to toplevel directory.
11735
11736 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11737
11738 * copyright.py (main): Exit if run from the wrong directory.
11739
11740 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11741
11742 * top.c (print_gdb_version): Change copyright year to 2020.
11743
11744 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11745
11746 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11747
11748 For older changes see ChangeLog-2019.
11749 \f
11750 Local Variables:
11751 mode: change-log
11752 left-margin: 8
11753 fill-column: 74
11754 version-control: never
11755 coding: utf-8
11756 End:
This page took 0.259423 seconds and 5 git commands to generate.