]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Update email address in MAINTAINERS
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-04 Mark Wielaard <mark@klomp.org>
2
3 * MAINTAINERS (Write After Approval): Update email address.
4
5 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
6
7 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
8 dynamic_prop::const_val.
9
10 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
11
12 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
13 dynamic_prop::kind.
14
15 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
16
17 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
18
19 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
20
21 * configure.tgt: Set gdb_sim for bpf-*-* targets.
22
23 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
24 Jose E. Marchesi <jose.marchesi@oracle.com>
25
26 * configure.tgt: Add entry for bpf-*-*.
27 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
28 (ALLDEPFILES): Add bpf-tdep.c.
29 * bpf-tdep.c: New file.
30 * MAINTAINERS: Add bpf target and maintainer.
31 * NEWS: Mention the support for the new target.
32
33 2020-08-04 Tom de Vries <tdevries@suse.de>
34
35 PR symtab/23270
36 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
37 Error.
38
39 2020-08-03 John Baldwin <jhb@FreeBSD.org>
40
41 * syscalls/freebsd.xml: Regenerate.
42
43 2020-08-03 John Baldwin <jhb@FreeBSD.org>
44
45 * syscalls/update-freebsd.sh: Fix usage and year range.
46
47 2020-08-03 Tom de Vries <tdevries@suse.de>
48
49 PR symtab/26333
50 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
51 DW_LNE_lo_user/DW_LNE_hi_user range.
52
53 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
54
55 PR ada/26318
56 * ada-lang.c (ada_modulus): Return 0 if property is not of const
57 kind.
58
59 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
60
61 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
62
63 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
64
65 * breakpoint.c (set_breakpoint_condition): Update the condition
66 expressions after checking that the input condition string parses
67 successfully and does not contain junk at the end.
68
69 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
70
71 * breakpoint.c (set_breakpoint_condition): Update the
72 condition string after parsing the new condition successfully.
73
74 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
75
76 * proc-api.c (_STRUCTURED_PROC): Don't define.
77 * proc-events.c: Likewise.
78 * proc-flags.c: Likewise.
79 * proc-why.c: Likewise.
80 * procfs.c: Likewise.
81
82 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
83 * configure, config.in: Regenerate.
84
85 2020-07-30 Tom de Vries <tdevries@suse.de>
86
87 PR build/26320
88 * ui-style.h (struct ui_file_style::color): Wrap m_value and
89 m_red/m_green/m_blue in a union.
90
91 2020-07-29 Tom de Vries <tdevries@suse.de>
92
93 PR tdep/26280
94 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
95
96 2020-07-28 Tom Tromey <tromey@adacore.com>
97
98 PR symtab/26270:
99 * symtab.h (find_pc_partial_function_sym): Declare.
100 * cli/cli-cmds.c (disassemble_command): Use
101 find_pc_partial_function_sym. Check asm_demangle.
102 * blockframe.c (cache_pc_function_sym): New global.
103 (cache_pc_function_name): Remove.
104 (clear_pc_function_cache): Update.
105 (find_pc_partial_function_sym): New function, from
106 find_pc_partial_function.
107 (find_pc_partial_function): Rewrite using
108 find_pc_partial_function_sym.
109
110 2020-07-28 Tom Tromey <tromey@adacore.com>
111
112 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
113 help. Add usage.
114
115 2020-07-28 Tom Tromey <tromey@adacore.com>
116
117 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
118 <DW_OP_GNU_variable_value>: Cast to address type.
119
120 2020-07-28 Kamil Rytarowski <n54@gmx.com>
121
122 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
123 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
124 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
125 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
126 (nbsd_get_siginfo_type): New.
127 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
128 (_initialize_nbsd_tdep): New.
129
130 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
131
132 PR binutils/26301
133 * configure: Regenerated.
134
135 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
136
137 PR binutils/26301
138 * configure: Regenerated.
139
140 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * python/py-frame.c: Remove 'user-regs.h' include.
143 (frapy_read_register): Rewrite to make use of
144 gdbpy_parse_register_id.
145 * python/py-registers.c (gdbpy_parse_register_id): New function,
146 moved here from python/py-unwind.c. Updated the return type, and
147 also accepts register descriptor objects.
148 * python/py-unwind.c: Remove 'user-regs.h' include.
149 (pyuw_parse_register_id): Moved to python/py-registers.c.
150 (unwind_infopy_add_saved_register): Update to use
151 gdbpy_parse_register_id.
152 (pending_framepy_read_register): Likewise.
153 * python/python-internal.h (gdbpy_parse_register_id): Declare.
154
155 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
156
157 * python/py-registers.c: Add 'user-regs.h' include.
158 (register_descriptor_iter_find): New function.
159 (register_descriptor_iterator_object_methods): New static global
160 methods array.
161 (register_descriptor_iterator_object_type): Add pointer to methods
162 array.
163
164 2020-07-27 John Baldwin <jhb@FreeBSD.org>
165
166 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
167 for all architectures on FreeBSD 11.3 and later.
168
169 2020-07-27 Tom Tromey <tromey@adacore.com>
170
171 * gcore.h (load_corefile): Don't declare.
172
173 2020-07-27 Tom de Vries <tdevries@suse.de>
174
175 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
176 * config.in: Regenerate.
177 * configure: Regenerate.
178
179 2020-07-26 Eli Zaretskii <eliz@gnu.org>
180
181 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
182 ws2tcpip.h. When checking whether socklen_t type is defined, use
183 ws2tcpip.h if it is available and sys/socket.h isn't.
184 * configure: Regenerate.
185 * config.in: Regenerate.
186
187 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
188
189 PR fortran/23051
190 PR fortran/26139
191 * valops.c (value_ind): Pass address to
192 readjust_indirect_value_type.
193 * value.c (readjust_indirect_value_type): Make parameter
194 non-const, and add extra address parameter. Resolve original type
195 before using it.
196 * value.h (readjust_indirect_value_type): Update function
197 signature and comment.
198
199 2020-07-25 Tom de Vries <tdevries@suse.de>
200
201 PR symtab/26243
202 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
203 entries.
204
205 2020-07-24 Aaron Merey <amerey@redhat.com>
206
207 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
208 * configure: Rebuild.
209
210 2020-07-23 Kevin Buettner <kevinb@redhat.com>
211
212 PR corefiles/26294
213 * corelow.c (_initialize_corelow): Add period to help text
214 for "maintenance print core-file-backed-mappings".
215
216 2020-07-23 Pedro Alves <pedro@palves.net>
217
218 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
219 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
220 meanwhile.
221 * frame.c (frame_cache_generation, get_frame_cache_generation):
222 New.
223 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
224 (get_prev_frame_if_no_cycle): On exception, don't touch
225 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
226 * frame.h (get_frame_cache_generation): Declare.
227
228 2020-07-23 Tom de Vries <tdevries@suse.de>
229
230 PR tui/26282
231 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
232 New default constructor.
233
234 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
235
236 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
237 exclude non-statement entries.
238
239 2020-07-22 Kevin Buettner <kevinb@redhat.com>
240
241 * NEWS (New commands): Mention new command
242 "maintenance print core-file-backed-mappings".
243
244 2020-07-22 Kevin Buettner <kevinb@redhat.com>
245
246 * corelow.c (gdbcmd.h): Include.
247 (core_target::info_proc_mappings): New method.
248 (get_current_core_target): New function.
249 (maintenance_print_core_file_backed_mappings): New function.
250 (_initialize_corelow): Add core-file-backed-mappings to
251 "maint print" commands.
252
253 2020-07-22 Kevin Buettner <kevinb@redhat.com>
254
255 * linux-tdep.c (dump_note_entry_p): New function.
256 (linux_dump_mapping_p_ftype): New typedef.
257 (linux_find_memory_regions_full): Add new parameter,
258 should_dump_mapping_p.
259 (linux_find_memory_regions): Adjust call to
260 linux_find_memory_regions_full.
261 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
262 call to linux_find_memory_regions_full.
263
264 2020-07-22 Kevin Buettner <kevinb@redhat.com>
265
266 * corelow.c (solist.h, unordered_map): Include.
267 (class core_target): Add field m_core_file_mappings and
268 method build_file_mappings.
269 (core_target::core_target): Call build_file_mappings.
270 (core_target::~core_target): Free memory associated with
271 m_core_file_mappings.
272 (core_target::build_file_mappings): New method.
273 (core_target::xfer_partial): Use m_core_file_mappings
274 for memory transfers.
275 * linux-tdep.c (linux_read_core_file_mappings): New
276 function.
277 (linux_core_info_proc_mappings): Rewrite to use
278 linux_read_core_file_mappings.
279 (linux_init_abi): Register linux_read_core_file_mappings.
280
281 2020-07-22 Kevin Buettner <kevinb@redhat.com>
282
283 * arch-utils.c (default_read_core_file_mappings): New function.
284 * arch-utils.c (default_read_core_file_mappings): Declare.
285 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
286 * gdbarch.h, gdbarch.c: Regenerate.
287
288 2020-07-22 Kevin Buettner <kevinb@redhat.com>
289
290 PR corefiles/25631
291 * corelow.c (core_target:xfer_partial): Revise
292 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
293 case after first checking the stratum beneath the core
294 target.
295 (has_all_memory): Return true.
296 * target.c (raw_memory_xfer_partial): Revise comment
297 regarding use of has_all_memory.
298
299 2020-07-22 Kevin Buettner <kevinb@redhat.com>
300
301 * exec.h (section_table_xfer_memory): Revise declaration,
302 replacing section name parameter with an optional callback
303 predicate.
304 * exec.c (section_table_xfer_memory): Likewise.
305 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
306 of section_table_xfer_memory.
307
308 2020-07-22 Tom Tromey <tromey@adacore.com>
309
310 * mi/mi-cmd-stack.c (list_args_or_locals): Use
311 lookup_symbol_search_name.
312
313 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
314
315 * python/py-registers.c (gdbpy_register_object_data_init): Remove
316 redundant local variable.
317 (gdbpy_get_register_descriptor): Extract descriptor vector as a
318 reference, not pointer, update code accordingly.
319
320 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
321 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
322
323 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
324 * jit.c (jit_breakpoint_re_set_internal): Use the
325 `skip_jit_symbol_lookup` field.
326
327 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
328 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
329
330 * jit.c (jit_read_descriptor): Define the descriptor address once,
331 use twice.
332 (jit_breakpoint_deleted): Move the declaration of the loop variable
333 `iter` into the loop header.
334 (jit_breakpoint_re_set_internal): Move the declaration of the local
335 variable `objf_data` to the first point of definition.
336 (jit_event_handler): Move the declaration of local variables
337 `code_entry`, `entry_addr`, and `objf` to their first point of use.
338 Rename `objf` to `jited`.
339
340 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
341
342 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
343 Remove.
344 * jit.c (get_jiter_objfile_data): Update.
345
346 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
347 Simon Marchi <simon.marchi@polymtl.ca>
348
349 * jit.c (struct jit_program_space_data): Remove.
350 (jit_program_space_key): Remove.
351 (jiter_objfile_data::~jiter_objfile_data): Remove program space
352 stuff.
353 (get_jit_program_space_data): Remove.
354 (jit_breakpoint_deleted): Iterate on all of the program space's
355 objfiles.
356 (jit_inferior_init): Likewise.
357 (jit_breakpoint_re_set_internal): Likewise. Also change return
358 type to void.
359 (jit_breakpoint_re_set): Pass current_program_space to
360 jit_breakpoint_re_set_internal.
361
362 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
363
364 * jit.h (struct jiter_objfile_data) <cached_code_address,
365 jit_breakpoint>: Move to here from ...
366 * jit.c (jit_program_space_data): ... here.
367 (jiter_objfile_data::~jiter_objfile_data): Update.
368 (jit_breakpoint_deleted): Update.
369 (jit_breakpoint_re_set_internal): Update.
370
371 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
372
373 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
374 checks.
375 (jit_read_descriptor): Remove NULL check.
376 (jit_event_handler): Add an assertion.
377
378 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
379
380 * jit.h (struct jit_objfile_data): Split into...
381 (struct jiter_objfile_data): ... this ...
382 (struct jited_objfile_data): ... and this.
383 * objfiles.h (struct objfile) <jit_data>: Remove.
384 <jiter_data, jited_data>: New fields.
385 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
386 (jiter_objfile_data::~jiter_objfile_data): ... this.
387 (get_jit_objfile_data): Rename to ...
388 (get_jiter_objfile_data): ... this.
389 (add_objfile_entry): Update.
390 (jit_read_descriptor): Use get_jiter_objfile_data.
391 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
392 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
393 (jit_inferior_exit_hook): Use objfile's jited_data field.
394
395 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * jit.h: Forward-declare `struct minimal_symbol`.
398 (struct jit_objfile_data): Migrate to here from jit.c; also add a
399 constructor, destructor, and an objfile* field.
400 * jit.c (jit_objfile_data): Remove.
401 (struct jit_objfile_data): Migrate from here to jit.h.
402 (jit_objfile_data::~jit_objfile_data): New destructor
403 implementation with code moved from free_objfile_data.
404 (free_objfile_data): Delete.
405 (get_jit_objfile_data): Update to use the jit_data field of objfile.
406 (jit_find_objf_with_entry_addr): Ditto.
407 (jit_inferior_exit_hook): Ditto.
408 (_initialize_jit): Remove the call to
409 register_objfile_data_with_cleanup.
410 * objfiles.h (struct objfile) <jit_data>: New field.
411
412 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
413
414 * jit.h: Forward-declare `struct objfile`.
415 (jit_event_handler): Add a second parameter, the JITer objfile.
416 * jit.c (jit_read_descriptor): Change the signature to take the
417 JITer objfile as an argument instead of the jit_program_space_data.
418 (jit_inferior_init): Update the call to jit_read_descriptor.
419 (jit_event_handler): Use the new JITer objfile argument when calling
420 jit_read_descriptor.
421 * breakpoint.c (handle_jit_event): Update the call to
422 jit_event_handler to pass the JITer objfile.
423
424 2020-07-21 John Baldwin <jhb@FreeBSD.org>
425
426 * gdbarch.c: Regenerate.
427 * gdbarch.h: Regenerate.
428 * gdbarch.sh (handle_segmentation_fault): Remove method.
429 * infrun.c (handle_segmentation_fault): Remove.
430 (print_signal_received_reason): Remove call to
431 handle_segmentation_fault.
432
433 2020-07-21 John Baldwin <jhb@FreeBSD.org>
434
435 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
436 Rename to sparc64_linux_report_signal_info and add siggnal
437 argument.
438 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
439 instead of sparc64_linux_handle_segmentation_fault.
440
441 2020-07-21 John Baldwin <jhb@FreeBSD.org>
442
443 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
444 i386_linux_report_signal_info instead of
445 i386_linux_handle_segmentation_fault.
446 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
447 to i386_linux_report_signal_info and add siggnal argument.
448 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
449 of i386_linux_handle_segmentation_fault.
450 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
451 to i386_linux_report_signal_info and add siggnal argument.
452
453 2020-07-21 John Baldwin <jhb@FreeBSD.org>
454
455 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
456 hook if present.
457
458 2020-07-21 John Baldwin <jhb@FreeBSD.org>
459
460 * gdbarch.c: Regenerate.
461 * gdbarch.h: Regenerate.
462 * gdbarch.sh (report_signal_info): New method.
463 * infrun.c (print_signal_received_reason): Invoke gdbarch
464 report_signal_info hook if present.
465
466 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
467
468 * python/py-registers.c : Add 'unordered_map' include.
469 (gdbpy_new_reggroup): Renamed to...
470 (gdbpy_get_reggroup): ...this. Update to only create register
471 group descriptors when needed.
472 (gdbpy_reggroup_iter_next): Update.
473
474 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
475
476 * python/py-registers.c (gdbpy_register_object_data): New static
477 global.
478 (gdbpy_register_object_data_init): New function.
479 (gdbpy_new_register_descriptor): Renamed to...
480 (gdbpy_get_register_descriptor): ...this, and update to reuse
481 existing register descriptors where possible.
482 (gdbpy_register_descriptor_iter_next): Update.
483 (gdbpy_initialize_registers): Register new gdbarch data.
484
485 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
486
487 * linux-nat.c (stopped_pids): Make static.
488
489 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
490
491 PR ada/26235
492 * gdbtypes.c (ada_discrete_type_low_bound,
493 ada_discrete_type_high_bound): Handle undefined bounds.
494
495 2020-07-21 Kamil Rytarowski <n54@gmx.com>
496
497 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
498 declaration.
499 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
500 function.
501
502 2020-07-20 John Baldwin <jhb@FreeBSD.org>
503
504 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
505 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
506 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
507 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
508 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
509 method.
510
511 2020-07-20 Ludovic Courtès <ludo@gnu.org>
512
513 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
514 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
515 which are deprecated in Guile 3.0.
516 * configure.ac (try_guile_versions): Add "guile-3.0".
517 * configure (try_guile_versions): Regenerate.
518 * NEWS: Update entry.
519
520 2020-07-20 Ludovic Courtès <ludo@gnu.org>
521 Doug Evans <dje@google.com>
522
523 PR gdb/21104
524 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
525 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
526 USING_GUILE_BEFORE_2_2.
527 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
528 Change type to 'scm_t_port_type *'.
529 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
530 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
531 parameter and honor it. Update callers.
532 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
533 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
534 functions.
535 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
536 USING_GUILE_BEFORE_2_2.
537 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
538 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
539 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
540 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
541 and 'SCM_PORT_TYPE'.
542 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
543 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
544 (gdbscm_memory_port_read, gdbscm_memory_port_write)
545 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
546 [!USING_GUILE_BEFORE_2_2]: New functions.
547 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
548 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
549 'gdbscm_memory_port_read'.
550 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
551 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
552 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
553 function.
554 (ioscm_init_memory_port): Remove.
555 (ioscm_init_memory_port_stream): New function
556 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
557 function.
558 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
559 Return scm_from_uint (0).
560 (gdbscm_set_memory_port_read_buffer_size_x)
561 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
562 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
563 Return scm_from_uint (0).
564 (gdbscm_set_memory_port_write_buffer_size_x)
565 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
566 * configure.ac (try_guile_versions): Add "guile-2.2".
567 * configure: Regenerate.
568 * NEWS: Add entry.
569
570 2020-07-18 Tom Tromey <tom@tromey.com>
571
572 * linux-nat.c (linux_multi_process): Remove.
573 (linux_nat_target::supports_multi_process): Return true.
574
575 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
576
577 * arch/riscv.c (riscv_tdesc_cache): Change map type.
578 (riscv_lookup_target_description): Return pointer out of
579 unique_ptr.
580 * target-descriptions.c (allocate_target_description): Add
581 comment.
582 (target_desc_deleter::operator()): Likewise.
583 * target-descriptions.h (struct target_desc_deleter): Moved to
584 gdbsupport/tdesc.h.
585 (target_desc_up): Likewise.
586
587 2020-07-17 Tom Tromey <tromey@adacore.com>
588
589 * linux-nat.c (linux_nat_target::supports_non_stop)
590 (linux_nat_target::always_non_stop_p): Use "true".
591 (linux_nat_target::supports_disable_randomization): Use "true" and
592 "false".
593
594 2020-07-16 Caroline Tice <cmtice@google.com>
595
596 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
597 (RNGLIST_HEADER_SIZE64): New constant definition.
598 (struct dwop_section_names): Add rnglists_dwo.
599 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
600 (struct loclist_header): Rename to 'loclists_rnglists_header'.
601 (struct dwo_sections): Add rnglists field.
602 (read_attribut_reprocess): Add tag parameter.
603 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
604 (cu_debug_rnglists_section): New function (decl & definition).
605 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
606 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
607 die whose range is being checked; get rnglist section from
608 cu_debug_rnglists_section, to get from either objfile or dwo file as
609 appropriate. Add cases for DW_RLE_base_addressx,
610 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
611 the base address to DW_RLE_offset_pairs (not to all ranges), moving
612 test inside if-condition and updating complaint message.
613 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
614 dwarf2_rnglists_process.
615 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
616 dwarf2_ranges_process.
617 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
618 need_ranges_base and update comment appropriately. Also pass die tag
619 to dwarf2_ranges_read.
620 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
621 need_ranges_base and update comment appropriately. Also pass die tag
622 to dwarf2_ranges_process.
623 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
624 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
625 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
626 need_ranges_base and update comment appropriately. Also pass die tag
627 to read_attribute_reprocess and dwarf2_ranges_read.
628 (read_loclist_header): Rename function to read_loclists_rnglists_header,
629 and update function comment appropriately.
630 (read_loclist_index): Call read_loclists_rnglists_header instead of
631 read_loclist_header.
632 (read_rnglist_index): New function.
633 (read_attribute_reprocess): Add tag parameter. Add code for
634 DW_FORM_rnglistx, passing tag to read_rnglist_index.
635 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
636
637 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
638
639 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
640 being resolved.
641
642 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
643
644 * arch-utils.c (show_architecture): Update formatting of messages.
645
646 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
647
648 * gdbtypes.h (struct type) <bounds>: Handle array and string
649 types.
650 * ada-lang.c (assign_aggregate): Use type::bounds on
651 array/string type.
652 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
653 * c-varobj.c (c_number_of_children): Likewise.
654 (c_describe_child): Likewise.
655 * eval.c (evaluate_subexp_for_sizeof): Likewise.
656 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
657 (f_type_print_base): Likewise.
658 * f-valprint.c (f77_array_offset_tbl): Likewise.
659 (f77_get_upperbound): Likewise.
660 (f77_print_array_1): Likewise.
661 * guile/scm-type.c (gdbscm_type_range): Likewise.
662 * m2-typeprint.c (m2_array): Likewise.
663 (m2_is_long_set_of_type): Likewise.
664 * m2-valprint.c (get_long_set_bounds): Likewise.
665 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
666 * python/py-type.c (typy_range): Likewise.
667 * rust-lang.c (rust_internal_print_type): Likewise.
668 * type-stack.c (type_stack::follow_types): Likewise.
669 * valarith.c (value_subscripted_rvalue): Likewise.
670 * valops.c (value_cast): Likewise.
671
672 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
673
674 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
675 callers to use the equivalent accessor methods.
676
677 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
678
679 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
680 (struct type) <bit_stride>: New method.
681 (TYPE_BIT_STRIDE): Remove.
682 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
683
684 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
685
686 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
687 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
688 callers to use the equivalent accessor methods instead.
689
690 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
691
692 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
693 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
694 callers to use the equivalent accessor methods instead.
695
696 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
697
698 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
699 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
700 to use dynamic_prop::kind.
701
702 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
703
704 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
705 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
706 to get the bound property's kind and check against
707 PROP_UNDEFINED.
708
709 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
710
711 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
712 all callers to use type::range_bounds followed by
713 dynamic_prop::{low,high}.
714
715 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
716
717 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
718 const_val, set_const_val, baton, set_locexpr, set_loclist,
719 set_addr_offset, variant_parts, set_variant_parts,
720 original_type, set_original_type>: New methods.
721 <kind>: Rename to...
722 <m_kind>: ... this. Update all users to use the new methods
723 instead.
724 <data>: Rename to...
725 <m_data>: ... this. Update all users to use the new methods
726 instead.
727
728 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
729
730 * gdbtypes.c (get_discrete_bounds): Return failure if
731 the range type's bounds are not both defined and constant
732 values.
733 (get_array_bounds): Update comment. Remove undefined bound check.
734
735 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
736
737 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
738 the type::bounds method directly.
739
740 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
741
742 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
743 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
744 are used to set the range type's bounds to use set_bounds.
745
746 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
747
748 * exec.c (_initialize_exec): Update exec-file-mismatch help.
749
750 2020-07-10 Pedro Alves <pedro@palves.net>
751
752 * gdbthread.h (inferior_ref): Define.
753 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
754 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
755 * thread.c
756 (scoped_restore_current_thread::restore):
757 Adjust to gdb::ref_ptr.
758 (scoped_restore_current_thread::~scoped_restore_current_thread):
759 Remove manual decref handling.
760 (scoped_restore_current_thread::scoped_restore_current_thread):
761 Adjust to use
762 inferior_ref::new_reference/thread_info_ref::new_reference.
763 Incref the thread before calling get_frame_id instead of after.
764 Let TARGET_CLOSE_ERROR propagate.
765
766 2020-07-10 Pedro Alves <pedro@palves.net>
767
768 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
769 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
770 NOT_AVAILABLE_ERROR.
771 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
772 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
773
774 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
775 Pedro Alves <pedro@palves.net>
776
777 PR gdb/26199
778 * infrun.c (threads_are_resumed_pending_p): Delete.
779 (do_target_wait): Remove threads_are_executing and
780 threads_are_resumed_pending_p checks from the inferior_matches
781 lambda. Update comments.
782
783 2020-07-10 Pedro Alves <pedro@palves.net>
784
785 PR gdb/26199
786 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
787 executing threads.
788
789 2020-07-10 Pedro Alves <pedro@palves.net>
790
791 PR gdb/26199
792 * infrun.c (handle_no_resumed): Handle multiple targets.
793
794 2020-07-10 Pedro Alves <pedro@palves.net>
795
796 PR gdb/26199
797 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
798 target_is_async_p.
799
800 2020-07-10 Pedro Alves <pedro@palves.net>
801
802 PR gdb/26199
803 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
804 threads, not all threads.
805
806 2020-07-10 Pedro Alves <pedro@palves.net>
807
808 PR gdb/26199
809 * remote.c (remote_target::open_1): Pass remote target pointer as
810 data to create_async_event_handler.
811 (remote_async_inferior_event_handler): Mark async event handler
812 before returning if the remote target still has either pending
813 events or unacknowledged notifications.
814
815 2020-07-10 John Baldwin <jhb@FreeBSD.org>
816
817 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
818 declaration.
819 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
820 function.
821
822 2020-07-09 John Baldwin <jhb@FreeBSD.org>
823
824 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
825 inferior_ptid.
826
827 2020-07-09 John Baldwin <jhb@FreeBSD.org>
828
829 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
830 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
831 AT_FREEBSD_PS_STRINGS.
832
833 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
834
835 * auto-load.c (auto_load_objfile_script_1): Convert drive part
836 of debugfile path on Windows.
837
838 2020-07-08 John Baldwin <jhb@FreeBSD.org>
839
840 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
841 argument to 'data'.
842
843 2020-07-08 Tom Tromey <tromey@adacore.com>
844
845 * ada-lang.c (ada_exception_message_1): Use read_memory.
846
847 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 PR python/22748
850 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
851 special handling for inline frames.
852 * findvar.c (value_of_register_lazy): Skip inline frames when
853 creating lazy register values.
854 * frame.c (frame_id_computed_p): Delete definition.
855 * frame.h (frame_id_computed_p): Delete declaration.
856
857 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
858
859 * NEWS: Mention additions to Python API.
860 * python/py-arch.c (archpy_register_groups): New function.
861 (arch_object_methods): Add 'register_groups' method.
862 * python/py-registers.c (reggroup_iterator_object): New struct.
863 (reggroup_object): New struct.
864 (gdbpy_new_reggroup): New function.
865 (gdbpy_reggroup_to_string): New function.
866 (gdbpy_reggroup_name): New function.
867 (gdbpy_reggroup_iter): New function.
868 (gdbpy_reggroup_iter_next): New function.
869 (gdbpy_new_reggroup_iterator): New function
870 (gdbpy_initialize_registers): Register new types.
871 (reggroup_iterator_object_type): Define new Python type.
872 (gdbpy_reggroup_getset): New static global.
873 (reggroup_object_type): Define new Python type.
874 * python/python-internal.h
875
876 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
877
878 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
879 * python/py-arch.c (archpy_registers): New function.
880 (arch_object_methods): Add 'registers' method.
881 * python/py-registers.c: New file.
882 * python/python-internal.h
883 (gdbpy_new_register_descriptor_iterator): Declare.
884 (gdbpy_initialize_registers): Declare.
885 * python/python.c (do_start_initialization): Call
886 gdbpy_initialize_registers.
887 * NEWS: Mention additions to the Python API.
888
889 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
890
891 * NEWS: Mention new Python API method.
892 * python/py-unwind.c (pending_framepy_architecture): New function.
893 (pending_frame_object_methods): Add architecture method.
894
895 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * gdbarch.c: Regenerate.
898 * gdbarch.h: Regenerate.
899 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
900 (gdbarch_data): Use internal_error for the case where
901 deprecated_set_gdbarch_data was originally needed.
902 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
903 and use passed in obstack.
904 (libunwind_frame_set_descr): Should no longer get back NULL from
905 gdbarch_data.
906 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
907 type.
908 * user-regs.c (user_regs_init): Update parameters, and use passed
909 in obstack.
910 (user_reg_add): Should no longer get back NULL from gdbarch_data.
911 (_initialize_user_regs): Register as a pre-init gdbarch data type.
912
913 2020-07-06 Tom de Vries <tdevries@suse.de>
914
915 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
916 End-Of-Sequence in lte_is_less_than.
917 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
918 "gdb: Don't reorder line table entries too much when sorting".
919
920 2020-07-06 Tom de Vries <tdevries@suse.de>
921
922 PR tui/26205
923 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
924
925 2020-07-05 Tom de Vries <tdevries@suse.de>
926
927 PR build/26187
928 * inferior.h (struct infcall_suspend_state_deleter): If available, use
929 std::uncaught_exceptions instead of deprecated
930 std::uncaught_exception.
931
932 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
933
934 * macroexp.h (macro_stringify): Return
935 gdb::unique_xmalloc_ptr<char>.
936 * macroexp.c (macro_stringify): Likewise.
937 * macrotab.c (fixup_definition): Update.
938
939 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
940
941 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
942 (lex_one_token): Update.
943 * macroexp.c (struct macro_buffer) <release>: Return
944 gdb::unique_xmalloc_ptr<char>.
945 (macro_stringify): Update.
946 (macro_expand): Update.
947 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
948 * macroexp.h (macro_expand_next): Likewise.
949
950 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
951
952 * macroexp.h (macro_lookup_ftype): Remove.
953 (macro_expand, macro_expand_once, macro_expand_next): Remove
954 lookup function parameters, add scope parameter.
955 * macroexp.c (scan, substitute_args, expand, maybe_expand,
956 macro_expand, macro_expand_once, macro_expand_next): Likewise.
957 * macroscope.h (standard_macro_lookup): Change parameter type
958 to macro_scope.
959 * macroscope.c (standard_macro_lookup): Likewise.
960 * c-exp.y (lex_one_token): Update.
961 * macrocmd.c (macro_expand_command): Likewise.
962 (macro_expand_once_command): Likewise.
963
964 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
965
966 * inf-loop.c (inferior_event_handler): Remove client_data param.
967 * inf-loop.h (inferior_event_handler): Likewise.
968 * infcmd.c (step_1): Adjust.
969 * infrun.c (proceed): Adjust.
970 (fetch_inferior_event): Remove client_data param.
971 (infrun_async_inferior_event_handler): Adjust.
972 * infrun.h (fetch_inferior_event): Remove `void *` param.
973 * linux-nat.c (handle_target_event): Adjust.
974 * record-btrace.c (record_btrace_handle_async_inferior_event):
975 Adjust.
976 * record-full.c (record_full_async_inferior_event_handler):
977 Adjust.
978 * remote.c (remote_async_inferior_event_handler): Adjust.
979
980 2020-07-01 Tom Tromey <tom@tromey.com>
981
982 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
983 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
984
985 2020-07-01 Tom Tromey <tom@tromey.com>
986
987 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
988 tui_gen_win_info.
989 (tui_win_info::make_window): Merge with
990 tui_gen_win_info::make_window.
991 (tui_win_info::make_visible): Move from tui_gen_win_info.
992 * tui/tui-win.c (tui_win_info::max_width): Move from
993 tui_gen_win_info.
994 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
995 type.
996 <window_factory>: Likewise.
997 * tui/tui-layout.c (tui_win_info::resize): Move from
998 tui_gen_win_info.
999 (make_standard_window): Change return type.
1000 (get_locator_window, tui_get_window_by_name): Likewise.
1001 (tui_layout_window::apply): Remove a cast.
1002 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1003 (struct tui_win_info): Merge with tui_gen_win_info.
1004 (struct tui_gen_win_info): Remove.
1005
1006 2020-07-01 Tom Tromey <tom@tromey.com>
1007
1008 * tui/tui-stack.h (struct tui_locator_window): Derive from
1009 tui_win_info.
1010 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1011 <can_box>: New method.
1012
1013 2020-07-01 Tom Tromey <tom@tromey.com>
1014
1015 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1016
1017 2020-07-01 Tom Tromey <tom@tromey.com>
1018
1019 * tui/tui-regs.c (tui_data_window::display_registers_from)
1020 (tui_data_window::display_registers_from)
1021 (tui_data_window::first_data_item_displayed)
1022 (tui_data_window::delete_data_content_windows): Update.
1023 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1024 Remove.
1025 (tui_data_window::check_register_values): Update.
1026 (tui_data_item_window::rerender): Add parameters. Update.
1027 (tui_data_item_window::refresh_window): Remove.
1028 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1029 virtual.
1030 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1031 tui_gen_win_info.
1032 <refresh_window, max_height, min_height>: Remove.
1033 <rerender>: Add parameters.
1034 <x, y, visible>: New members.
1035 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1036 <m_item_width>: New member.
1037
1038 2020-07-01 Tom Tromey <tom@tromey.com>
1039
1040 * tui/tui-regs.c (tui_data_window::show_register_group)
1041 (tui_data_window::check_register_values): Update.
1042 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1043 from item_no.
1044
1045 2020-07-01 Tom Tromey <tom@tromey.com>
1046
1047 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1048 useless "if".
1049
1050 2020-07-01 Tom Tromey <tom@tromey.com>
1051
1052 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1053 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1054
1055 2020-07-01 Tom Tromey <tom@tromey.com>
1056
1057 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1058 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1059 (struct tui_line_or_address): Move from tui-data.h.
1060 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1061 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1062 (tui_cmd_window, tui_source_window_base, tui_source_window)
1063 (tui_disasm_window): Don't declare.
1064 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1065 to tui-winsource.h.
1066 (SINGLE_KEY): Move to tui-stack.c.
1067
1068 2020-07-01 Tom Tromey <tom@tromey.com>
1069
1070 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1071 std::string.
1072 * tui/tui-regs.c (class tab_expansion_file): New.
1073 (tab_expansion_file::write): New method.
1074 (tui_register_format): Change return type. Use
1075 tab_expansion_file.
1076 (tui_get_register, tui_data_window::display_registers_from)
1077 (tui_data_item_window::rerender): Update.
1078 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1079 * tui/tui-io.c (tui_expand_tabs): Remove.
1080
1081 2020-07-01 Tom Tromey <tom@tromey.com>
1082
1083 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1084
1085 2020-07-01 Fangrui Song <maskray@google.com>
1086
1087 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1088
1089 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1090
1091 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1092 forms for DW_AT_associated and DW_AT_allocated attributes,
1093 which is already checked in function attr_to_dynamic_prop.
1094
1095 2020-06-30 Tom Tromey <tromey@adacore.com>
1096
1097 * dwarf2/read.c (quirk_rust_enum): Correctly call
1098 alloc_rust_variant for default-less enum.
1099
1100 2020-06-30 Tom Tromey <tromey@adacore.com>
1101
1102 PR build/26183:
1103 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1104 gdb::to_string.
1105
1106 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1107
1108 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1109 * gdbarch.h: Re-generate.
1110
1111 2020-06-28 Tom Tromey <tom@tromey.com>
1112
1113 * command.h (cmd_types): Remove.
1114 (cmd_type): Don't declare.
1115 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1116 typedef.
1117 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1118 * cli/cli-decode.c (cmd_type): Remove.
1119
1120 2020-06-27 Pedro Alves <palves@redhat.com>
1121
1122 * fork-child.c (prefork_hook): Adjust.
1123 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1124 Delete.
1125 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1126 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1127 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1128 Remove declarations.
1129 (struct inferior) <set_tty, tty>: New methods.
1130 (struct inferior) <terminal>: Rename to ...
1131 (struct inferior) <m_terminal>: ... this and make private.
1132 * main.c (captured_main_1): Adjust.
1133 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1134 (mi_cmd_inferior_tty_show): Adjust.
1135 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1136 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1137
1138 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1139
1140 * configure.ac: Add --enable-libctf: handle --disable-static
1141 properly.
1142 * acinclude.m4: sinclude ../config/enable.m4.
1143 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1144 (LIBCTF): Substitute in.
1145 (CTF_DEPS): New, likewise.
1146 (CLIBS): libctf needs symbols from libbfd: move earlier.
1147 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1148 flags.
1149 * ctfread.c: Surround in ENABLE_LIBCTF.
1150 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1151 * configure: Regenerate.
1152 * config.in: Likewise.
1153
1154 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1155
1156 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1157
1158 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1159
1160 * inferior.h (struct inferior) <terminal>: Change type to
1161 gdb::unique_xmalloc_ptr<char>.
1162 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1163 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1164 field, adjust to unique pointer.
1165 (get_inferior_io_terminal): Adjust to unique pointer.
1166
1167 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1170 registers, not just the known core set of registers.
1171
1172 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1175 fflags, frm, and fcsr registers.
1176 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1177 restore groups.
1178 (riscv_tdesc_unknown_reg): New function.
1179 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1180 tdesc_use_registers.
1181 * riscv-tdep.h (struct gdbarch_tdep): Add
1182 unknown_csrs_first_regnum, unknown_csrs_count,
1183 duplicate_fflags_regnum, duplicate_frm_regnum, and
1184 duplicate_fcsr_regnum fields.
1185
1186 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1187
1188 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1189 callback, use the callback (when not null) to help number unknown
1190 registers.
1191 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1192 (tdesc_use_registers): Add extra parameter to declaration.
1193
1194 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1197 in the file.
1198 (class riscv_pending_register_alias): Likewise.
1199 (riscv_register_feature::register_info): Change 'required_p' field
1200 to 'required', and change its type. Add 'check' member function.
1201 (riscv_register_feature::register_info::check): Define new member
1202 function.
1203 (riscv_xreg_feature): Change initialisation of 'required' field.
1204 (riscv_freg_feature): Likewise.
1205 (riscv_virtual_feature): Likewise.
1206 (riscv_csr_feature): Likewise.
1207 (riscv_check_tdesc_feature): Take extra parameter, the csr
1208 tdesc_feature, rewrite the function to use the new
1209 riscv_register_feature::register_info::check function.
1210 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1211
1212 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1213
1214 * features/Makefile: Remove all references to the deleted files
1215 below.
1216 * features/riscv/32bit-csr.c: Deleted.
1217 * features/riscv/32bit-csr.xml: Deleted.
1218 * features/riscv/64bit-csr.c: Deleted.
1219 * features/riscv/64bit-csr.xml: Deleted.
1220 * features/riscv/rebuild-csr-xml.sh: Deleted.
1221
1222 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1223
1224 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1225 whitespace error for declaration of names member variable.
1226 (struct riscv_register_feature): Add new prefer_first_name member
1227 variable, and fix whitespace error in declaration of registers.
1228 (riscv_xreg_feature): Initialize prefer_first_name field.
1229 (riscv_freg_feature): Likewise.
1230 (riscv_virtual_feature): Likewise.
1231 (riscv_csr_feature): Likewise.
1232 (riscv_register_name): Expand on comments. Remove register name
1233 modifications for CSR and virtual registers.
1234
1235 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1236
1237 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1238 errors.
1239
1240 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1243 riscv-opc.h.
1244 (class riscv_pending_register_alias): New class.
1245 (riscv_check_tdesc_feature): Take vector of pending aliases and
1246 populate it as appropriate.
1247 (riscv_setup_register_aliases): Delete.
1248 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1249 to riscv_check_tdesc_feature in all cases. Use the vector to
1250 create the register aliases.
1251
1252 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1253
1254 * sol2-tdep.c (sol2_static_transform_name): Remove.
1255 (sol2_init_abi): Don't register it.
1256 * gdbarch.sh (static_transform_name): Remove.
1257 * gdbarch.c, gdbarch.h: Regenerate.
1258
1259 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1260 gdbarch_static_transform_name.
1261 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1262 * stabsread.c (define_symbol) <'X'>: Remove.
1263 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1264 handling.
1265 <'V'>: Likewise.
1266 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1267 <'S'>: Remove call to gdbarch_static_transform_name.
1268
1269 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1270
1271 * procfs.c (procfs_pre_trace): New function.
1272 (procfs_target::create_inferior): Pass it to fork_inferior.
1273
1274 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1275
1276 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1277 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1278 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1279 sol2-tdep.o, sparc-sol2-tdep.o.
1280 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1281 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1282 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1283 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1284
1285 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1286
1287 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1288 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1289 Call sol2_init_abi.
1290 Remove calls to set_gdbarch_skip_solib_resolver,
1291 set_gdbarch_core_pid_to_str.
1292 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1293 (i386_sol2_static_transform_name): Remove.
1294 (i386_sol2_init_abi): Call sol2_init_abi.
1295 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1296 set_gdbarch_static_transform_name,
1297 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1298 Use sol2_sigtramp_p.
1299 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1300 (sol2_sigtramp_p): New function.
1301 (sol2_static_transform_name): New function.
1302 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1303 (sol2_init_abi): New function.
1304 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1305 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1306 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1307 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1308 (sparc_sol2_static_transform_name): Remove.
1309 (sparc32_sol2_init_abi): Call sol2_init_abi.
1310 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1311 set_gdbarch_static_transform_name,
1312 set_gdbarch_skip_solib_resolver,
1313 set_gdbarch_core_pid_to_str.
1314 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1315 (sparc_sol2_static_transform_name): Remove
1316 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1317 call sol2_sigtramp_p.
1318 (sparc64_sol2_init_abi): Call sol2_init_abi.
1319 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1320 set_gdbarch_static_transform_name,
1321 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1322
1323 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1324
1325 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1326 * exec.c (validate_exec_file): If from_tty, set both
1327 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1328 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1329 and from_tty, unconditionally ask a confirmation.
1330
1331 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * target-descriptions.c (tdesc_architecture_name): Protect against
1334 NULL pointer dereference.
1335 (maint_print_xml_tdesc_cmd): New function.
1336 (_initialize_target_descriptions): Register new 'maint print
1337 xml-tdesc' command and give it the filename completer.
1338 * NEWS: Mention new 'maint print xml-tdesc' command.
1339
1340 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1341
1342 * target-descriptions.c (class tdesc_compatible_info): New class.
1343 (struct target_desc): Change type of compatible vector.
1344 (tdesc_compatible_p): Update for change in type of
1345 target_desc::compatible.
1346 (tdesc_compatible_info_list): New function.
1347 (tdesc_compatible_info_arch_name): New function.
1348 (tdesc_add_compatible): Update for change in type of
1349 target_desc::compatible.
1350 (print_c_tdesc::visit_pre): Likewise.
1351
1352 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1353
1354 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1355 whitespace to underscore.
1356 (maint_print_c_tdesc_cmd): Use fake filename for target
1357 descriptions that came from the target.
1358 (_initialize_target_descriptions): Add filename command completion
1359 for 'maint print c-tdesc'.
1360
1361 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1362
1363 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1364 lines.
1365
1366 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1367
1368 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1369 lines.
1370 (dwarf2_find_location_expression): Likewise.
1371 (call_site_parameter_matches): Likewise.
1372 (dwarf2_compile_expr_to_ax): Likewise.
1373 (disassemble_dwarf_expression): Likewise.
1374 (loclist_describe_location): Likewise.
1375
1376 2020-06-23 Pedro Alves <palves@redhat.com>
1377
1378 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1379 progspace-and-thread.h. Include scoped-mock-context.h instead.
1380 (register_to_value_test): Use scoped_mock_context.
1381 * regcache.c: Include "scoped-mock-context.h".
1382 (cooked_read_test): Don't error out if a target is already pushed.
1383 Use scoped_mock_context. Adjust.
1384 * scoped-mock-context.h: New file.
1385
1386 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1387
1388 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1389 initializer.
1390 (ada_language::is_string_type_p): New member function.
1391 * c-lang.c (c_language_data): Delete la_is_string_type_p
1392 initializer.
1393 (cplus_language_data): Likewise.
1394 (asm_language_data): Likewise.
1395 (minimal_language_data): Likewise.
1396 * d-lang.c (d_language_data): Likewise.
1397 * f-lang.c (f_is_string_type_p): Delete function, implementation
1398 moved to f_language::is_string_type_p.
1399 (f_language_data): Delete la_is_string_type_p initializer.
1400 (f_language::is_string_type_p): New member function,
1401 implementation from f_is_string_type_p.
1402 * go-lang.c (go_is_string_type_p): Delete function, implementation
1403 moved to go_language::is_string_type_p.
1404 (go_language_data): Delete la_is_string_type_p initializer.
1405 (go_language::is_string_type_p): New member function,
1406 implementation from go_is_string_type_p.
1407 * language.c (language_defn::is_string_type_p): Define new member
1408 function.
1409 (default_is_string_type_p): Make static, add comment copied from
1410 header file.
1411 (unknown_language_data): Delete la_is_string_type_p initializer.
1412 (unknown_language::is_string_type_p): New member function.
1413 (auto_language_data): Delete la_is_string_type_p initializer.
1414 (auto_language::is_string_type_p): New member function.
1415 * language.h (language_data): Delete la_is_string_type_p field.
1416 (language_defn::is_string_type_p): Declare new function.
1417 (default_is_string_type_p): Delete desclaration, move comment to
1418 definition.
1419 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1420 moved to m2_language::is_string_type_p.
1421 (m2_language_data): Delete la_is_string_type_p initializer.
1422 (m2_language::is_string_type_p): New member function,
1423 implementation from m2_is_string_type_p.
1424 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1425 initializer.
1426 * opencl-lang.c (opencl_language_data): Likewise.
1427 * p-lang.c (pascal_is_string_type_p): Delete function,
1428 implementation moved to pascal_language::is_string_type_p.
1429 (pascal_language_data): Delete la_is_string_type_p initializer.
1430 (pascal_language::is_string_type_p): New member function,
1431 implementation from pascal_is_string_type_p.
1432 * rust-lang.c (rust_is_string_type_p): Delete function,
1433 implementation moved to rust_language::is_string_type_p.
1434 (rust_language_data): Delete la_is_string_type_p initializer.
1435 (rust_language::is_string_type_p): New member function,
1436 implementation from rust_is_string_type_p.
1437 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1438 is_string_type_p.
1439
1440 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * ada-lang.c (ada_language_data): Delete la_print_typedef
1443 initializer.
1444 (ada_language::print_typedef): New member function.
1445 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1446 (cplus_language_data): Likewise.
1447 (asm_language_data): Likewise.
1448 (minimal_language_data): Likewise.
1449 * d-lang.c (d_language_data): Likewise.
1450 * f-lang.c (f_language_data): Likewise.
1451 (f_language::print_typedef): New member function.
1452 * go-lang.c (go_language_data): Delete la_print_typedef
1453 initializer.
1454 * language.c (language_defn::print_typedef): Define member
1455 function.
1456 (unknown_language_data): Delete la_print_typedef initializer.
1457 (unknown_language::print_typedef): New member function.
1458 (auto_language_data): Delete la_print_typedef initializer.
1459 (auto_language::print_typedef): New member function.
1460 * language.h (language_data): Delete la_print_typedef field.
1461 (language_defn::print_typedef): Declare new member function.
1462 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1463 (default_print_typedef): Delete declaration.
1464 * m2-lang.c (m2_language_data): Delete la_print_typedef
1465 initializer.
1466 (m2_language::print_typedef): New member function.
1467 * objc-lang.c (objc_language_data): Delete la_print_typedef
1468 initializer.
1469 * opencl-lang.c (opencl_language_data): Likewise.
1470 * p-lang.c (pascal_language_data): Likewise.
1471 (pascal_language::print_typedef): New member function.
1472 * rust-lang.c (rust_print_typedef): Delete function,
1473 implementation moved to rust_language::print_typedef.
1474 (rust_language): Delete la_print_typedef initializer.
1475 (rust_language::print_typedef): New member function,
1476 implementation from rust_print_typedef.
1477 * typeprint.c (default_print_typedef): Delete.
1478
1479 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1480
1481 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1482 (ada_language::printstr): New member function.
1483 * c-lang.c (c_language_data): Delete la_printstr initializer.
1484 (cplus_language_data): Likewise.
1485 (asm_language_data): Likewise.
1486 (minimal_language_data): Likewise.
1487 * d-lang.c (d_language_data): Likewise.
1488 * f-lang.c (f_printstr): Rename to f_language::printstr.
1489 (f_language_data): Delete la_printstr initializer.
1490 (f_language::printstr): New member function, implementation from
1491 f_printstr.
1492 * go-lang.c (go_language_data): Delete la_printstr initializer.
1493 * language.c (language_defn::printstr): Define new member
1494 function.
1495 (unk_lang_printstr): Delete.
1496 (unknown_language_data): Delete la_printstr initializer.
1497 (unknown_language::printstr): New member function.
1498 (auto_language_data): Delete la_printstr initializer.
1499 (auto_language::printstr): New member function.
1500 * language.h (language_data): Delete la_printstr field.
1501 (language_defn::printstr): Declare new member function.
1502 (LA_PRINT_STRING): Update call to printstr.
1503 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1504 (m2_language_data): Delete la_printstr initializer.
1505 (m2_language::printstr): New member function, implementation from
1506 m2_printstr.
1507 * objc-lang.c (objc_language_data): Delete la_printstr
1508 initializer.
1509 * opencl-lang.c (opencl_language_data): Likewise.
1510 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1511 (pascal_language_data): Delete la_printstr initializer.
1512 (pascal_language::printstr): New member function, implementation
1513 from pascal_printstr.
1514 * p-lang.h (pascal_printstr): Delete declaration.
1515 * rust-lang.c (rust_printstr): Update header comment.
1516 (rust_language_data): Delete la_printstr initializer.
1517 (rust_language::printstr): New member function.
1518
1519 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1520
1521 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1522 (ada_language::printchar): New member function.
1523 * c-lang.c (c_language_data): Delete la_printchar initializer.
1524 (cplus_language_data): Likewise.
1525 (asm_language_data): Likewise.
1526 (minimal_language_data): Likewise.
1527 * d-lang.c (d_language_data): Likewise.
1528 * f-lang.c (f_printchar): Rename to f_language::printchar.
1529 (f_language_data): Delete la_printchar initializer.
1530 (f_language::printchar): New member function, implementation from
1531 f_printchar.
1532 * go-lang.c (go_language_data): Delete la_printchar initializer.
1533 * language.c (unk_lang_printchar): Delete.
1534 (language_defn::printchar): Define new member function.
1535 (unknown_language_data): Delete la_printchar initializer.
1536 (unknown_language::printchar): New member function.
1537 (auto_language_data): Delete la_printchar initializer.
1538 (auto_language::printchar): New member function.
1539 * language.h (language_data): Delete la_printchar field.
1540 (language_defn::printchar): Declare new member function.
1541 (LA_PRINT_CHAR): Update call to printchar.
1542 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1543 (m2_language::printchar): New member function.
1544 * objc-lang.c (objc_language_data): Delete la_printchar
1545 initializer.
1546 * opencl-lang.c (opencl_language_data): Likewise.
1547 * p-lang.c (pascal_language_data): Delete la_printchar
1548 initializer.
1549 (pascal_language::printchar): New member function.
1550 * rust-lang.c (rust_printchar): Rename to
1551 rust_language::printchar.
1552 (rust_language_data): Delete la_printchar initializer.
1553 (rust_language::printchar): New member function, implementation
1554 from rust_printchar.
1555
1556 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1557
1558 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1559 (ada_language_data): Delete la_emitchar initializer.
1560 (ada_language::emitchar): New member function, implementation from
1561 emit_char.
1562 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1563 (cplus_language_data): Likewise.
1564 (asm_language_data): Likewise.
1565 (minimal_language_data): Likewise.
1566 * d-lang.c (d_language_data): Likewise.
1567 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1568 (f_language_data): Delete la_emitchar initializer.
1569 (f_language::emitchar): New member function, implementation from
1570 f_emit_char.
1571 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1572 * language.c (unk_lang_emit_char): Delete.
1573 (language_defn::emitchar): New member function definition.
1574 (unknown_language_data): Delete la_emitchar initializer.
1575 (unknown_language::emitchar): New member function.
1576 (auto_language_data): Delete la_emitchar initializer.
1577 (auto_language::emitchar): New member function.
1578 * language.h (language_data): Delete la_emitchar field.
1579 (language_defn::emitchar): New member field declaration.
1580 (LA_EMIT_CHAR): Update call to emitchar.
1581 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1582 (m2_language_data): Delete la_emitchar initializer.
1583 (m2_language::emitchar): New member function, implementation from
1584 m2_emit_char.
1585 * objc-lang.c (objc_language_data): Delete la_emitchar
1586 initializer.
1587 * opencl-lang.c (opencl_language_data): Likewise.
1588 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1589 (pascal_language_data): Delete la_emitchar initializer.
1590 (pascal_language::emitchar): New member function, implementation
1591 from pascal_emit_char.
1592 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1593 (rust_language_data): Delete la_emitchar initializer.
1594 (rust_language::emitchar): New member function, implementation
1595 from rust_emitchar.
1596
1597 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1598
1599 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1600 (ada_language_data): Delete la_post_parser initializer.
1601 (ada_language::post_parser): New member function.
1602 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1603 (cplus_language_data): Likewise.
1604 (asm_language_data): Likewise.
1605 (minimal_language_data): Likewise.
1606 * d-lang.c (d_language_data): Likewise.
1607 * f-lang.c (f_language_data): Likewise.
1608 * go-lang.c (go_language_data): Likewise.
1609 * language.c (unknown_language_data): Likewise.
1610 (auto_language_data): Likewise.
1611 * language.h (language_data): Delete la_post_parser field.
1612 (language_defn::post_parser): New member function.
1613 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1614 * objc-lang.c (objc_language_data): Likewise.
1615 * opencl-lang.c (opencl_language_data): Likewise.
1616 * p-lang.c (pascal_language_data): Likewise.
1617 * parse.c (parse_exp_in_context): Update call to post_parser.
1618 (null_post_parser): Delete definition.
1619 * parser-defs.h (null_post_parser): Delete declaration.
1620 * rust-lang.c (rust_language_data): Delete la_post_parser
1621 initializer.
1622
1623 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * ada-lang.c (parse): Rename to ada_language::parser.
1626 (ada_language_data): Delete la_parser initializer.
1627 (ada_language::parser): New member function, implementation from
1628 parse.
1629 * c-lang.c (c_language_data): Delete la_parser initializer.
1630 (cplus_language_data): Likewise.
1631 (asm_language_data): Likewise.
1632 (minimal_language_data): Likewise.
1633 * d-lang.c (d_language_data): Likewise.
1634 (d_language::parser): New member function.
1635 * f-lang.c (f_language_data): Delete la_parser initializer.
1636 (f_language::parser): New member function.
1637 * go-lang.c (go_language_data): Delete la_parser initializer.
1638 (go_language::parser): New member function.
1639 * language.c (unk_lang_parser): Delete.
1640 (language_defn::parser): Define new member function.
1641 (unknown_language_data): Delete la_parser initializer.
1642 (unknown_language::parser): New member function.
1643 (auto_language_data): Delete la_parser initializer.
1644 (auto_language::parser): New member function.
1645 * language.h (language_data): Delete la_parser field.
1646 (language_defn::parser): Declare new member function.
1647 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1648 (m2_language::parser): New member function.
1649 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1650 * opencl-lang.c (opencl_language_data): Likewise.
1651 * p-lang.c (pascal_language_data): Likewise.
1652 (pascal_language::parser): New member function.
1653 * parse.c (parse_exp_in_context): Update call to parser.
1654 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1655 (rust_language::parser): New member function.
1656
1657 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1658
1659 * top.c (print_gdb_configuration): Print --with-python-libdir
1660 configuration value.
1661
1662 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1663
1664 * NEWS: Mention change to the alias command.
1665
1666 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1667
1668 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1669 (alias_command_completer)
1670 (make_alias_options_def_group): New functions.
1671 (alias_opts, alias_option_defs): New struct and array.
1672 (alias_usage_error): Update usage.
1673 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1674 Use option framework.
1675 (_initialize_cli_cmds): Update alias command help.
1676 Update aliases command help.
1677 (show_user):
1678 Add NULL for new default_args lookup_cmd argument.
1679 (valid_command_p): Rename to validate_aliased_command.
1680 Add NULL for new default_args lookup_cmd argument. Verify that the
1681 aliased_command has no default args.
1682 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1683 (lookup_cmd_1, lookup_cmd): New argument default_args.
1684 (add_alias_cmd):
1685 Add NULL for new default_args lookup_cmd argument.
1686 (print_help_for_command): Show default args under the layout
1687 alias some_alias = some_aliased_cmd some_alias_default_arg.
1688 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1689 xfree default_args in destructor.
1690 * cli/cli-script.c (process_next_line, do_define_command):
1691 Add NULL for new default_args lookup_cmd argument.
1692 * command.h: Declare new default_args argument in lookup_cmd
1693 and lookup_cmd_1.
1694 * completer.c (complete_line_internal_1):
1695 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1696 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1697 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1698 Likewise.
1699 * infcmd.c (_initialize_infcmd): Likewise.
1700 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1701 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1702 * python/py-param.c (add_setshow_generic): Likewise.
1703 * remote.c (_initialize_remote): Likewise.
1704 * top.c (execute_command): Prepend default_args if command has some.
1705 (set_verbose):
1706 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1707 * tracepoint.c (validate_actionline, encode_actions_1):
1708 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1709
1710 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1711
1712 * jit.c (jit_read_descriptor): Use bool as the return type.
1713 (jit_breakpoint_re_set_internal): Use bool as the return type.
1714 Invert the return value logic; return true if the jit breakpoint
1715 has been successfully initialized.
1716 (jit_inferior_init): Update the call to
1717 jit_breakpoint_re_set_internal.
1718
1719 2020-06-22 Pedro Alves <palves@redhat.com>
1720
1721 PR gdb/25939
1722 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1723 Use the current inferior instead. Don't return
1724 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1725 wait again.
1726 * sol-thread.c (sol_thread_target::wait): Don't reference
1727 inferior_ptid.
1728 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1729 (sol_update_thread_list_callback): Use the current inferior's pid
1730 instead of inferior_ptid.
1731
1732 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1733
1734 * procfs.c: Cleanup many comments.
1735
1736 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1737 (AFTER_WATCHFLAG): Replace by value.
1738
1739 (MAIN_PROC_NAME_FORMAT): Inline ...
1740 (create_procinfo): ... here.
1741
1742 (procfs_debug_inferior): Remove SYS_exec handling.
1743 (syscall_is_exec): Likewise.
1744 (procfs_set_exec_trap): Likewise.
1745
1746 (syscall_is_lwp_exit): Inline in callers.
1747 (syscall_is_exit): Likewise.
1748 (syscall_is_exec): Likewise.
1749 (syscall_is_lwp_create): Likewise.
1750
1751 (invalidate_cache): Remove #if 0 code.
1752
1753 (make_signal_thread_runnable): Remove.
1754 (procfs_target::resume): Remove #if 0 code.
1755
1756 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1757
1758 PR gdb/25939
1759 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1760 call ...
1761 (procfs_target::create_inferior): ... here.
1762
1763 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1764
1765 * exec.c (validate_exec_file): Ensure the build-id is up to
1766 date by calling reopen_exec_file (that checks file timestamp
1767 to decide to re-read the file).
1768
1769 2020-06-18 Pedro Alves <palves@redhat.com>
1770
1771 PR gdb/25412
1772 * gdbthread.h (delete_thread, delete_thread_silent)
1773 (find_thread_ptid): Update comments.
1774 * thread.c (current_thread_): New global.
1775 (is_current_thread): Move higher, and reimplement.
1776 (inferior_thread): Reimplement.
1777 (set_thread_exited): Use bool. Add assertions.
1778 (add_thread_silent): Simplify thread-reuse handling by always
1779 calling delete_thread.
1780 (delete_thread): Remove intro comment.
1781 (find_thread_ptid): Skip exited threads.
1782 (switch_to_thread_no_regs): Write to current_thread_.
1783 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1784 INFERIOR_PTID. Clear current_thread_.
1785
1786 2020-06-18 Pedro Alves <palves@redhat.com>
1787
1788 * aix-thread.c (pd_update): Use switch_to_thread.
1789
1790 2020-06-18 Pedro Alves <palves@redhat.com>
1791
1792 * ravenscar-thread.c (ravenscar_thread_target): Update.
1793 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1794 (ravenscar_thread_target::add_active_thread): ... this. Don't
1795 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1796 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1797
1798 2020-06-18 Pedro Alves <palves@redhat.com>
1799
1800 * nat/windows-nat.c (current_windows_thread): Remove.
1801 * nat/windows-nat.h (current_windows_thread): Remove.
1802 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1803 Adjust.
1804 (display_selectors): Adjust to fetch the current
1805 windows_thread_info based on inferior_ptid.
1806 (fake_create_process): No longer write to current_windows_thread.
1807 (windows_nat_target::get_windows_debug_event):
1808 Don't set inferior_ptid or current_windows_thread.
1809 (windows_nat_target::wait): Adjust to not rely on
1810 current_windows_thread.
1811 (do_initial_windows_stuff): Now a method of windows_nat_target.
1812 Switch to the last_ptid thread.
1813 (windows_nat_target::attach): Adjust.
1814 (windows_nat_target::detach): Use switch_to_no_thread instead of
1815 writing to inferior_ptid directly.
1816 (windows_nat_target::create_inferior): Adjust.
1817
1818 2020-06-18 Pedro Alves <palves@redhat.com>
1819
1820 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1821
1822 2020-06-18 Pedro Alves <palves@redhat.com>
1823
1824 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1825 after creating it, instead of writing to inferior_ptid. Don't
1826 write to inferior_ptid.
1827
1828 2020-06-18 Pedro Alves <palves@redhat.com>
1829
1830 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1831
1832 2020-06-18 Pedro Alves <palves@redhat.com>
1833
1834 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1835 it, instead of writing to inferior_ptid.
1836
1837 2020-06-18 Pedro Alves <palves@redhat.com>
1838
1839 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1840 to inferior_ptid.
1841
1842 2020-06-18 Pedro Alves <palves@redhat.com>
1843
1844 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1845 instead of writing to inferior_ptid directly.
1846
1847 2020-06-18 Pedro Alves <palves@redhat.com>
1848
1849 * corelow.c (core_target::close): Use switch_to_no_thread instead
1850 of writing to inferior_ptid directly.
1851 (add_to_thread_list, core_target_open): Use switch_to_thread
1852 instead of writing to inferior_ptid directly.
1853
1854 2020-06-18 Pedro Alves <palves@redhat.com>
1855
1856 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1857 inferior_ptid.
1858 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1859 inferior_ptid.
1860 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1861 inferior_ptid directly.
1862 (darwin_nat_target::init_thread_list): Switch to thread, instead
1863 of writing to inferior_ptid.
1864 (darwin_nat_target::attach): Don't write to inferior_ptid.
1865 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1866
1867 2020-06-18 Pedro Alves <palves@redhat.com>
1868
1869 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1870 thread.
1871 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1872 Instead use switch_to_thread.
1873 (gnu_nat_target::detach): Use switch_to_no_thread
1874 instead of writing to inferior_ptid directly. Used passed-in
1875 inferior instead of looking up the inferior by pid.
1876
1877 2020-06-18 Pedro Alves <palves@redhat.com>
1878
1879 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1880 inferior_ptid.
1881
1882 2020-06-18 Pedro Alves <palves@redhat.com>
1883
1884 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1885 inferior_ptid.
1886 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1887 thread.
1888 (nto_procfs_target::detach): Avoid referencing
1889 inferior_ptid. Use switch_to_no_thread instead of writing to
1890 inferior_ptid directly.
1891 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1892 instead of writing to inferior_ptid directly.
1893 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1894 to thread.
1895
1896 2020-06-18 Pedro Alves <palves@redhat.com>
1897
1898 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1899 after creating it, instead of writing to inferior_ptid.
1900 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1901 to inferior_ptid directly.
1902 (gdbsim_target::wait): Don't write to inferior_ptid.
1903
1904 2020-06-18 Pedro Alves <palves@redhat.com>
1905
1906 * remote.c (remote_target::remote_notice_new_inferior): Use
1907 switch_to_thread instead of writing to inferior_ptid directly.
1908 (remote_target::add_current_inferior_and_thread): Use
1909 switch_to_no_thread instead of writing to inferior_ptid directly.
1910 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1911 and switch_to_thread instead of using set_current_inferior or
1912 writing to inferior_ptid directly.
1913
1914 2020-06-18 Pedro Alves <palves@redhat.com>
1915
1916 * tracectf.c (ctf_target_open): Switch to added thread instead of
1917 writing to inferior_ptid directly.
1918 (ctf_target::close): Use switch_to_no_thread instead of writing to
1919 inferior_ptid directly.
1920
1921 2020-06-18 Pedro Alves <palves@redhat.com>
1922
1923 * tracefile-tfile.c (tfile_target_open): Don't write to
1924 inferior_ptid directly, instead switch to added thread.
1925 (tfile_target::close): Use switch_to_no_thread instead of writing
1926 to inferior_ptid directly.
1927
1928 2020-06-18 Pedro Alves <palves@redhat.com>
1929
1930 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1931 (procfs_target::detach): Use switch_to_no_thread
1932 instead of writing to inferior_ptid directly.
1933 (do_attach): Change return type to void. Switch to the added
1934 thread.
1935 (procfs_target::create_inferior): Switch to the added thread.
1936 (procfs_do_thread_registers): Don't write to inferior_ptid.
1937
1938 2020-06-18 Pedro Alves <palves@redhat.com>
1939
1940 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1941 of writing to inferior_ptid.
1942 (scoped_restore_exited_inferior): Delete.
1943 (handle_vfork_child_exec_or_exit): Simplify using
1944 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1945 instead of writing to inferior_ptid.
1946 (THREAD_STOPPED_BY): Delete.
1947 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1948 (thread_stopped_by_hw_breakpoint): Delete.
1949 (save_waitstatus): Use
1950 scoped_restore_current_thread+switch_to_thread, and call
1951 target_stopped_by_watchpoint instead of
1952 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1953 instead of thread_stopped_by_sw_breakpoint, and
1954 target_stopped_by_hw_breakpoint instead of
1955 thread_stopped_by_hw_breakpoint.
1956 (handle_inferior_event)
1957 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1958 inferior_ptid directly, nor
1959 set_current_inferior/set_current_program_space. Use
1960 switch_to_thread / switch_to_inferior_no_thread instead.
1961
1962 2020-06-18 Pedro Alves <palves@redhat.com>
1963
1964 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1965 instead of writing to inferior_ptid.
1966
1967 2020-06-18 Pedro Alves <palves@redhat.com>
1968
1969 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1970 added thread.
1971 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1972 to the added thread.
1973 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1974 instead of writing to inferior_ptid.
1975
1976 2020-06-18 Pedro Alves <palves@redhat.com>
1977
1978 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1979 (register_to_value_test): Mock a program_space too. Heap-allocate
1980 the address space. Don't write to inferior_ptid. Use
1981 switch_to_thread instead.
1982
1983 2020-06-18 Pedro Alves <palves@redhat.com>
1984
1985 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1986 Delete.
1987 (find_signalled_thread()): New, factored out from
1988 linux_make_corefile_notes and adjusted to handle exited threads.
1989 (linux_make_corefile_notes): Adjust to use the new
1990 find_signalled_thread.
1991
1992 2020-06-18 Pedro Alves <palves@redhat.com>
1993
1994 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1995 of saving/restoring inferior_ptid.
1996
1997 2020-06-17 Tom Tromey <tom@tromey.com>
1998
1999 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2000 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2001 declare.
2002 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2003
2004 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2005
2006 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2007 of partial symtabs.
2008
2009 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2010
2011 * regformats/reg-arm.dat: Remove.
2012 * regformats/reg-bfin.dat: Remove.
2013 * regformats/reg-cris.dat: Remove.
2014 * regformats/reg-crisv32.dat: Remove.
2015 * regformats/reg-m32r.dat: Remove.
2016 * regformats/reg-tilegx.dat: Remove.
2017 * regformats/reg-tilegx32.dat: Remove.
2018
2019 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2020
2021 * features/Makefile (WHICH): Remove arm files.
2022 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2023 * regformats/arm/arm-with-neon.dat: Remove.
2024 * regformats/arm/arm-with-vfpv2.dat: Remove.
2025 * regformats/arm/arm-with-vfpv3.dat: Remove.
2026
2027 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2028
2029 * features/Makefile (XMLTOC): Remove rx.xml.
2030
2031 2020-06-17 Pedro Alves <palves@redhat.com>
2032
2033 * gdbthread.h (thread_control_state) <trap_expected> Update
2034 comments.
2035
2036 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2037
2038 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2039 ada_language::lookup_symbol_nonlocal.
2040 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2041 (ada_language::lookup_symbol_nonlocal): New member function,
2042 implementation from ada_lookup_symbol_nonlocal.
2043 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2044 initializer.
2045 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2046 initializer.
2047 (cplus_language::lookup_symbol_nonlocal): New member function.
2048 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2049 (minimal_language_data) Likewise.
2050 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2051 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2052 initializer.
2053 (d_language::lookup_symbol_nonlocal): New member function.
2054 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2055 initializer.
2056 (f_language::lookup_symbol_nonlocal): New member function.
2057 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2058 initializer.
2059 * language.c (unknown_language_data): Likewise.
2060 (auto_language_data): Likewise.
2061 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2062 field.
2063 (language_defn::lookup_symbol_nonlocal): New member function.
2064 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2065 initializer.
2066 * objc-lang.c (objc_language_data): Likewise.
2067 * opencl-lang.c (opencl_language_data): Likewise.
2068 * p-lang.c (pascal_language_data): Likewise.
2069 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2070 rust_language::lookup_symbol_nonlocal.
2071 (rust_language_data): Delete la_lookup_symbol_nonlocal
2072 initializer.
2073 (rust_language::lookup_symbol_nonlocal): New member function,
2074 implementation from rust_lookup_symbol_nonlocal.
2075 * symtab.c (lookup_symbol_aux): Update call to
2076 lookup_symbol_nonlocal.
2077 (basic_lookup_symbol_nonlocal): Rename to...
2078 (language_defn::lookup_symbol_nonlocal): ...this, and update
2079 header comment. Remove language_defn parameter, and replace with
2080 uses of `this'.
2081 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2082
2083 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2084
2085 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2086 initializer.
2087 (ada_language::value_print_inner): New member function.
2088 * c-lang.c (c_language_data): Delete la_value_print_inner
2089 initializer.
2090 (cplus_language_data): Likewise.
2091 (asm_language_data): Likewise.
2092 (minimal_language_data): Likewise.
2093 * d-lang.c (d_language_data): Likewise.
2094 (d_language::value_print_inner): New member function.
2095 * f-lang.c (f_language_data): Delete la_value_print_inner
2096 initializer.
2097 (f_language::value_print_inner): New member function.
2098 * f-lang.h (f_value_print_innner): Rename to...
2099 (f_value_print_inner): ...this (note spelling of 'inner').
2100 * f-valprint.c (f_value_print_innner): Rename to...
2101 (f_value_print_inner): ...this (note spelling of 'inner').
2102 * go-lang.c (go_language_data): Delete la_value_print_inner
2103 initializer.
2104 (go_language::value_print_inner): New member function.
2105 * language.c (language_defn::value_print_inner): Define new member
2106 function.
2107 (unk_lang_value_print_inner): Delete.
2108 (unknown_language_data): Delete la_value_print_inner initializer.
2109 (unknown_language::value_print_inner): New member function.
2110 (auto_language_data): Delete la_value_print_inner initializer.
2111 (auto_language::value_print_inner): New member function.
2112 * language.h (language_data): Delete la_value_print_inner field.
2113 (language_defn::value_print_inner): Delcare new member function.
2114 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2115 initializer.
2116 (m2_language::value_print_inner): New member function.
2117 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2118 initializer.
2119 * opencl-lang.c (opencl_language_data): Likewise.
2120 * p-lang.c (pascal_language_data): Likewise.
2121 (pascal_language::value_print_inner): New member function.
2122 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2123 initializer.
2124 (rust_language::value_print_inner): New member function.
2125 * valprint.c (do_val_print): Update call to value_print_inner.
2126
2127 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2128
2129 * ada-lang.c (ada_language_data): Delete la_value_print
2130 initializer.
2131 (ada_language::value_print): New member function.
2132 * c-lang.c (c_language_data): Delete la_value_print initializer.
2133 (cplus_language_data): Likewise.
2134 (asm_language_data): Likewise.
2135 (minimal_language_data): Likewise.
2136 * d-lang.c (d_language_data): Likewise.
2137 * f-lang.c (f_language_data): Likewise.
2138 * go-lang.c (go_language_data): Likewise.
2139 * language.c (unk_lang_value_print): Delete.
2140 (language_defn::value_print): Define new member function.
2141 (unknown_language_data): Delete la_value_print initializer.
2142 (unknown_language::value_print): New member function.
2143 (auto_language_data): Delete la_value_print initializer.
2144 (auto_language::value_print): New member function.
2145 * language.h (language_data): Delete la_value_print field.
2146 (language_defn::value_print): Declare new member function.
2147 (LA_VALUE_PRINT): Update call to value_print.
2148 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2149 * objc-lang.c (objc_language_data): Likewise.
2150 * opencl-lang.c (opencl_language_data): Likewise.
2151 * p-lang.c (pascal_language_data): Likewise.
2152 (pascal_language::value_print): New member function.
2153 * rust-lang.c (rust_language_data): Delete la_value_print
2154 initializer.
2155
2156 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2157
2158 * ada-lang.c (ada_watch_location_expression): Rename to
2159 ada_language::watch_location_expression.
2160 (ada_language_data): Delete la_watch_location_expression
2161 initializer.
2162 (ada_language::watch_location_expression): New member function,
2163 implementation from ada_watch_location_expression.
2164 * breakpoint.c (watch_command_1): Update call to
2165 watch_location_expression.
2166 * c-lang.c (c_watch_location_expression): Rename to
2167 language_defn::watch_location_expression.
2168 (c_language_data): Delete la_watch_location_expression
2169 initializer.
2170 (cplus_language_data): Likewise.
2171 (asm_language_data): Likewise.
2172 (minimal_language_data): Likewise.
2173 * c-lang.h (c_watch_location_expression): Delete declaration.
2174 * d-lang.c (d_language_data): Delete la_watch_location_expression
2175 initializer.
2176 * f-lang.c (f_language_data): Likewise.
2177 * go-lang.c (go_language_data): Likewise.
2178 * language.c (language_defn::watch_location_expression): Member
2179 function implementation from c_watch_location_expression.
2180 (unknown_language_data): Delete la_watch_location_expression
2181 initializer.
2182 (auto_language_data): Likewise.
2183 * language.h (language_data): Delete la_watch_location_expression
2184 field.
2185 (language_defn::watch_location_expression): Declare new member
2186 function.
2187 * m2-lang.c (m2_language_data): Delete
2188 la_watch_location_expression initializer.
2189 * objc-lang.c (objc_language_data): Likewise.
2190 * opencl-lang.c (opencl_language_data): Likewise.
2191 * p-lang.c (pascal_language_data): Likewise.
2192 * rust-lang.c (rust_watch_location_expression): Rename to
2193 rust_language::watch_location_expression.
2194 (rust_language_data): Delete la_watch_location_expression
2195 initializer.
2196 (rust_language::watch_location_expression): New member function,
2197 implementation from rust_watch_location_expression.
2198
2199 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2200
2201 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2202 ada_language::collect_symbol_completion_matches.
2203 (ada_language_data): Delete la_collect_symbol_completion_matches
2204 initializer.
2205 (ada_language::collect_symbol_completion_matches): New member
2206 function, implementation from
2207 ada_collect_symbol_completion_matches.
2208 * c-lang.c (c_language_data): Delete
2209 la_collect_symbol_completion_matches initializer.
2210 (cplus_language_data): Likewise.
2211 (asm_language_data): Likewise.
2212 (minimal_language_data): Likewise.
2213 * d-lang.c (d_language_data): Likewise.
2214 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2215 f_language::collect_symbol_completion_matches.
2216 (f_language_data): Delete la_collect_symbol_completion_matches
2217 initializer.
2218 (f_language::collect_symbol_completion_matches) New member
2219 function, implementation from f_collect_symbol_completion_matches.
2220 * go-lang.c (go_language_data): Delete
2221 la_collect_symbol_completion_matches initializer.
2222 * language.c (unknown_language_data): Likewise.
2223 (auto_language_data): Likewise.
2224 * language.h (language_data): Delete
2225 la_collect_symbol_completion_matches field.
2226 (language_defn::collect_symbol_completion_matches): New member
2227 function.
2228 * m2-lang.c (m2_language_data): Delete
2229 la_collect_symbol_completion_matches initializer.
2230 * objc-lang.c (objc_language_data): Likewise.
2231 * opencl-lang.c (opencl_language_data): Likewise.
2232 * p-lang.c (pascal_language_data): Likewise.
2233 * rust-lang.c (rust_language_data): Likewise.
2234 * symtab.c (default_collect_symbol_completion_matches): Delete.
2235 (collect_symbol_completion_matches): Update call to
2236 collect_symbol_completion_matches.
2237 (collect_symbol_completion_matches_type): Likewise.
2238 * symtab.h (default_collect_symbol_completion_matches): Delete
2239 declaration.
2240
2241 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2244 (ada_language_data): Delete la_word_break_characters initializer.
2245 (ada_language::word_break_characters): New member function.
2246 * c-lang.c (c_language_data): Delete la_word_break_characters
2247 initializer.
2248 (cplus_language_data): Likewise.
2249 (asm_language_data): Likewise.
2250 (minimal_language_data): Likewise.
2251 * completer.c: Update global comment.
2252 (advance_to_expression_complete_word_point): Update call to
2253 word_break_characters.
2254 (complete_files_symbols): Likewise.
2255 (complete_line_internal_1): Likewise.
2256 (default_completer_handle_brkchars): Likewise.
2257 (skip_quoted_chars): Likewise.
2258 * d-lang.c (d_language_data): Delete la_word_break_characters
2259 initializer.
2260 * f-lang.c (f_word_break_characters): Delete.
2261 (f_language_data): Delete la_word_break_characters initializer.
2262 (f_language::word_break_characters): New member function.
2263 * go-lang.c (go_language_data): Delete la_word_break_characters
2264 initializer.
2265 * language.c (unknown_language_data): Likewise.
2266 (auto_language_data): Likewise.
2267 * language.h (default_word_break_characters): Move declaration to
2268 earlier in the file.
2269 (language_data): Delete la_word_break_characters field.
2270 (language_defn::word_break_characters): New member function.
2271 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2272 initializer.
2273 * objc-lang.c (objc_language_data): Likewise.
2274 * opencl-lang.c (opencl_language_data): Likewise.
2275 * p-lang.c (pascal_language_data): Likewise.
2276 * rust-lang.c (rust_language_data): Likewise.
2277
2278 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2281 (ada_language_data): Delete la_get_symbol_name_matcher
2282 initializer.
2283 (language_defn::get_symbol_name_matcher_inner): New member
2284 function.
2285 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2286 initializer.
2287 (cplus_language_data): Likewise.
2288 (cplus_language::get_symbol_name_matcher_inner): New member
2289 function.
2290 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2291 (minimal_language_data): Likewise.
2292 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2293 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2294 initializer.
2295 * dictionary.c (iter_match_first_hashed): Update call to
2296 get_symbol_name_matcher.
2297 (iter_match_next_hashed): Likewise.
2298 (iter_match_next_linear): Likewise.
2299 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2300 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2301 initializer.
2302 (f_language::get_symbol_name_matcher_inner): New member function.
2303 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2304 initializer.
2305 * language.c (default_symbol_name_matcher): Update header comment,
2306 make static.
2307 (language_defn::get_symbol_name_matcher): New definition.
2308 (language_defn::get_symbol_name_matcher_inner): Likewise.
2309 (get_symbol_name_matcher): Delete.
2310 (unknown_language_data): Delete la_get_symbol_name_matcher
2311 initializer.
2312 (auto_language_data): Likewise.
2313 * language.h (language_data): Delete la_get_symbol_name_matcher
2314 field.
2315 (language_defn::get_symbol_name_matcher): New member function.
2316 (language_defn::get_symbol_name_matcher_inner): Likewise.
2317 (default_symbol_name_matcher): Delete declaration.
2318 * linespec.c (find_methods): Update call to
2319 get_symbol_name_matcher.
2320 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2321 initializer.
2322 * minsyms.c (lookup_minimal_symbol): Update call to
2323 get_symbol_name_matcher.
2324 (iterate_over_minimal_symbols): Likewise.
2325 * objc-lang.c (objc_language_data): Delete
2326 la_get_symbol_name_matcher initializer.
2327 * opencl-lang.c (opencl_language_data): Likewise.
2328 * p-lang.c (pascal_language_data): Likewise.
2329 * psymtab.c (psymbol_name_matches): Update call to
2330 get_symbol_name_matcher.
2331 * rust-lang.c (rust_language_data): Delete
2332 la_get_symbol_name_matcher initializer.
2333 * symtab.c (symbol_matches_search_name): Update call to
2334 get_symbol_name_matcher.
2335 (compare_symbol_name): Likewise.
2336
2337 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2338
2339 * ada-lang.c (ada_language_data): Delete la_compute_program
2340 initializer.
2341 * c-lang.c (c_language_data): Likewise.
2342 (c_language::compute_program): New member function.
2343 (cplus_language_data): Delete la_compute_program initializer.
2344 (cplus_language::compute_program): New member function.
2345 (asm_language_data): Delete la_compute_program initializer.
2346 (minimal_language_data): Likewise.
2347 * c-lang.h (c_compute_program): Update comment.
2348 (cplus_compute_program): Likewise.
2349 * compile/compile-c-support.c (c_compute_program): Likewise.
2350 (cplus_compute_program): Likewise.
2351 * compile/compile.c (compile_to_object): Update call to
2352 la_compute_program.
2353 * d-lang.c (d_language_data): Delete la_compute_program
2354 initializer.
2355 * f-lang.c (f_language_data): Likewise.
2356 * go-lang.c (go_language_data): Likewise.
2357 * language.c (unknown_language_data): Likewise.
2358 (auto_language_data): Likewise.
2359 * language.h (language_data): Delete la_compute_program field.
2360 (language_defn::compute_program): New member function.
2361 * m2-lang.c (m2_language_data): Delete la_compute_program
2362 initializer.
2363 * objc-lang.c (objc_language_data): Likewise.
2364 * opencl-lang.c (opencl_language_data): Likewise.
2365 * p-lang.c (pascal_language_data): Likewise.
2366 * rust-lang.c (rust_language_data): Likewise.
2367
2368 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2369
2370 * ada-lang.c (ada_language_data) Delete
2371 la_class_name_from_physname initializer.
2372 * c-lang.c (c_language_data): Likewise.
2373 (cplus_language_data): Likewise.
2374 (cplus_language::class_name_from_physname): New member function.
2375 (asm_language_data): Delete la_class_name_from_physname
2376 initializer.
2377 (minimal_language_data): Likewise.
2378 * d-lang.c (d_language_data): Likewise.
2379 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2380 method on language_defn class.
2381 (guess_full_die_structure_name): Likewise.
2382 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2383 initializer.
2384 * go-lang.c (go_language_data): Likewise.
2385 * language.c (language_class_name_from_physname): Delete.
2386 (unk_lang_class_name): Delete.
2387 (unknown_language_data): Delete la_class_name_from_physname
2388 initializer.
2389 (auto_language_data): Likewise.
2390 * language.h (language_data): Delete la_class_name_from_physname
2391 field.
2392 (language_defn::class_name_from_physname): New function.
2393 (language_class_name_from_physname): Delete declaration.
2394 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2395 initializer.
2396 * objc-lang.c (objc_language_data): Likewise.
2397 * opencl-lang.c (opencl_language_data): Likewise.
2398 * p-lang.c (pascal_language_data): Likewise.
2399 * rust-lang.c (rust_language_data): Likewise.
2400
2401 2020-06-16 Tom Tromey <tom@tromey.com>
2402
2403 * tui/tui-data.h (STATUS_NAME): New macro.
2404 * tui/tui-layout.c (tui_remove_some_windows)
2405 (initialize_known_windows, tui_register_window)
2406 (tui_layout_split::remove_windows, initialize_layouts)
2407 (tui_new_layout_command): Don't use hard-coded window names.
2408
2409 2020-06-16 Tom Tromey <tom@tromey.com>
2410
2411 PR tui/25348:
2412 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2413 tui_initialize_readline. Only run once. Call rl_initialize.
2414 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2415 tui_initialize_readline.
2416 * tui/tui-io.c (tui_setup_io): Call
2417 tui_ensure_readline_initialized.
2418 * tui/tui-interp.c (tui_interp::init): Update.
2419
2420 2020-06-16 Tom Tromey <tom@tromey.com>
2421
2422 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2423 Also preserve the status window.
2424
2425 2020-06-16 Tom Tromey <tom@tromey.com>
2426
2427 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2428 where m_window==nullptr.
2429
2430 2020-06-15 Tom Tromey <tromey@adacore.com>
2431
2432 * windows-nat.c (windows_nat::handle_output_debug_string):
2433 Update.
2434 (windows_nat::handle_ms_vc_exception): Update.
2435 * target.h (target_read_string): Change API.
2436 * target.c (target_read_string): Change API.
2437 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2438 Update.
2439 * solib-frv.c (frv_current_sos): Update.
2440 * solib-dsbt.c (dsbt_current_sos): Update.
2441 * solib-darwin.c (darwin_current_sos): Update.
2442 * linux-thread-db.c (inferior_has_bug): Update.
2443 * expprint.c (print_subexp_standard): Update.
2444 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2445 (ada_exception_message_1): Update.
2446
2447 2020-06-15 Tom Tromey <tromey@adacore.com>
2448
2449 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2450
2451 2020-06-15 Tom Tromey <tromey@adacore.com>
2452
2453 * valprint.c (read_string): Update comment.
2454 * target.c (MIN): Remove.
2455 (target_read_string): Rewrite.
2456
2457 2020-06-15 Tom Tromey <tromey@adacore.com>
2458
2459 * corefile.c (read_memory_string): Remove.
2460 * ada-valprint.c (ada_value_print_ptr): Update.
2461 * ada-lang.h (ada_tag_name): Change return type.
2462 * ada-lang.c (type_from_tag): Update.
2463 (ada_tag_name_from_tsd): Change return type. Use
2464 target_read_string.
2465 (ada_tag_name): Likewise.
2466 * gdbcore.h (read_memory_string): Don't declare.
2467
2468 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2469
2470 * symtab.c (rbreak_command): Ignore Windows drive colon.
2471
2472 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2473
2474 * NEWS: Mention removed GDBserver host support.
2475
2476 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2477
2478 * features/riscv/rebuild-csr-xml.sh: Updated.
2479
2480 2020-06-11 Tom Tromey <tom@tromey.com>
2481
2482 PR gdb/18318:
2483 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2484
2485 2020-06-09 Jonny Grant <jg@jguk.org>
2486 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 * main.c (captured_main_1): Don't print new line after help.
2489 (print_gdb_help): add mailing list and IRC channel information
2490 to --help. Add new lines between items in the footer. Remove
2491 quotes around bug url.
2492
2493 2020-06-11 Keith Seitz <keiths@redhat.com>
2494
2495 PR gdb/21356
2496 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2497 Resolve typedefs for type length calculations.
2498
2499 2020-06-10 Tom de Vries <tdevries@suse.de>
2500
2501 PR ada/24713
2502 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2503 (write_psymbols): Enable .gdb_index for ada.
2504 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2505 ada.
2506
2507 2020-06-10 Tom de Vries <tdevries@suse.de>
2508
2509 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2510 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2511 namei" instead of "const char *name" argument.
2512 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2513 dw2_symtab_iter_init.
2514
2515 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2516
2517 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2518 to use type::field and field::type instead.
2519
2520 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2521
2522 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2523 to use field::type instead.
2524
2525 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2526
2527 * gdbtypes.h (struct field) <type, set_type>: New methods.
2528 Rename `type` field to...
2529 <m_type>: ... this. Change references throughout to use type or
2530 set_type methods.
2531 (FIELD_TYPE): Use field::type. Change call sites that modify
2532 the field's type to use field::set_type instead.
2533
2534 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2535
2536 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2537 to use type::index_type instead.
2538
2539 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2540
2541 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2542 methods.
2543 (TYPE_INDEX_TYPE): Use type::index_type.
2544 * gdbtypes.c (create_array_type_with_stride): Likewise.
2545
2546 2020-06-07 Tom Tromey <tom@tromey.com>
2547
2548 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2549 parameter.
2550 (generic_value_print): Update.
2551
2552 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2553
2554 Revert commit 982a38f60b0.
2555 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2556
2557 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2558
2559 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2560 avoid use after free.
2561
2562 2020-06-05 Tom de Vries <tdevries@suse.de>
2563
2564 * NEWS: Fix typos.
2565
2566 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2567
2568 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2569 the per_bfd object.
2570 (dwarf2_read_debug_names): Likewise.
2571 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2572 object when re-using a per_bfd object with an index.
2573
2574 2020-06-03 Tom de Vries <tdevries@suse.de>
2575
2576 PR symtab/26046
2577 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2578 children for C++.
2579 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2580 DW_TAG_subprogram.
2581
2582 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2583
2584 * ada-lang.c (ada_language_data): Delete skip_trampoline
2585 initializer.
2586 * c-lang.c (c_language_data): Likewise.
2587 (cplus_language_data): Likewise.
2588 (cplus_language::skip_trampoline): New member function.
2589 (asm_language_data): Delete skip_trampoline initializer.
2590 (minimal_language_data): Likewise.
2591 * d-lang.c (d_language_data): Likewise.
2592 * f-lang.c (f_language_data): Likewise.
2593 * go-lang.c (go_language_data): Likewise.
2594 * language.c (unk_lang_trampoline): Delete function.
2595 (skip_language_trampoline): Update.
2596 (unknown_language_data): Delete skip_trampoline initializer.
2597 (auto_language_data): Likewise.
2598 * language.h (language_data): Delete skip_trampoline field.
2599 (language_defn::skip_trampoline): New function.
2600 * m2-lang.c (m2_language_data): Delete skip_trampoline
2601 initializer.
2602 * objc-lang.c (objc_skip_trampoline): Delete function, move
2603 implementation to objc_language::skip_trampoline.
2604 (objc_language_data): Delete skip_trampoline initializer.
2605 (objc_language::skip_trampoline): New member function with
2606 implementation from objc_skip_trampoline.
2607 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2608 initializer.
2609 * p-lang.c (pascal_language_data): Likewise.
2610 * rust-lang.c (rust_language_data): Likewise.
2611
2612 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2615 (ada_language::demangle): New member function.
2616 * c-lang.c (c_language_data): Delete la_demangle initializer.
2617 (cplus_language_data): Delete la_demangle initializer.
2618 (cplus_language::demangle): New member function.
2619 (asm_language_data): Delete la_demangle initializer.
2620 (minimal_language_data): Delete la_demangle initializer.
2621 * d-lang.c (d_language_data): Delete la_demangle initializer.
2622 (d_language::demangle): New member function.
2623 * f-lang.c (f_language_data): Delete la_demangle initializer.
2624 (f_language::demangle): New member function.
2625 * go-lang.c (go_language_data): Delete la_demangle initializer.
2626 (go_language::demangle): New member function.
2627 * language.c (language_demangle): Update.
2628 (unk_lang_demangle): Delete.
2629 (unknown_language_data): Delete la_demangle initializer.
2630 (unknown_language::demangle): New member function.
2631 (auto_language_data): Delete la_demangle initializer.
2632 (auto_language::demangle): New member function.
2633 * language.h (language_data): Delete la_demangle field.
2634 (language_defn::demangle): New function.
2635 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2636 * objc-lang.c (objc_language_data): Delete la_demangle
2637 initializer.
2638 (objc_language::demangle): New member function.
2639 * opencl-lang.c (opencl_language_data): Delete la_demangle
2640 initializer.
2641 * p-lang.c (pascal_language_data): Likewise.
2642 * rust-lang.c (rust_language_data): Likewise.
2643 (rust_language::demangle): New member function.
2644
2645 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2646
2647 * ada-lang.c (ada_language_data): Delete la_print_type
2648 initializer.
2649 (ada_language::print_type): New member function.
2650 * c-lang.c (c_language_data): Delete la_print_type initializer.
2651 (c_language::print_type): New member function.
2652 (cplus_language_data): Delete la_print_type initializer.
2653 (cplus_language::print_type): New member function.
2654 (asm_language_data): Delete la_print_type initializer.
2655 (asm_language::print_type): New member function.
2656 (minimal_language_data): Delete la_print_type initializer.
2657 (minimal_language::print_type): New member function.
2658 * d-lang.c (d_language_data): Delete la_print_type initializer.
2659 (d_language::print_type): New member function.
2660 * f-lang.c (f_language_data): Delete la_print_type initializer.
2661 (f_language::print_type): New member function.
2662 * go-lang.c (go_language_data): Delete la_print_type initializer.
2663 (go_language::print_type): New member function.
2664 * language.c (unk_lang_print_type): Delete.
2665 (unknown_language_data): Delete la_print_type initializer.
2666 (unknown_language::print_type): New member function.
2667 (auto_language_data): Delete la_print_type initializer.
2668 (auto_language::print_type): New member function.
2669 * language.h (language_data): Delete la_print_type field.
2670 (language_defn::print_type): New function.
2671 (LA_PRINT_TYPE): Update.
2672 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2673 (m2_language::print_type): New member function.
2674 * objc-lang.c (objc_language_data): Delete la_print_type
2675 initializer.
2676 (objc_language::print_type): New member function.
2677 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2678 to opencl_language::print_type.
2679 (opencl_language_data): Delete la_print_type initializer.
2680 (opencl_language::print_type): New member function, implementation
2681 from opencl_print_type.
2682 * p-lang.c (pascal_language_data): Delete la_print_type
2683 initializer.
2684 (pascal_language::print_type): New member function.
2685 * rust-lang.c (rust_print_type): Delete, implementation moved to
2686 rust_language::print_type.
2687 (rust_language_data): Delete la_print_type initializer.
2688 (rust_language::print_type): New member function, implementation
2689 from rust_print_type.
2690
2691 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2692
2693 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2694 implementation moves to...
2695 (ada_language::sniff_from_mangled_name): ...here. Update return
2696 type.
2697 (ada_language_data): Delete la_sniff_from_mangled_name
2698 initializer.
2699 * c-lang.c (c_language_data): Likewise.
2700 (cplus_language_data): Likewise.
2701 (cplus_language::sniff_from_mangled_name): New member function,
2702 implementation taken from gdb_sniff_from_mangled_name.
2703 (asm_language_data): Delete la_sniff_from_mangled_name
2704 initializer.
2705 (minimal_language_data): Likewise.
2706 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2707 implementation moves to cplus_language::sniff_from_mangled_name.
2708 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2709 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2710 moves to...
2711 (d_language::sniff_from_mangled_name): ...here.
2712 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2713 * f-lang.c (f_language_data): Likewise.
2714 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2715 moves to...
2716 (go_language::sniff_from_mangled_name): ...here.
2717 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2718 * language.c (language_sniff_from_mangled_name): Delete.
2719 (unknown_language_data): Delete la_sniff_from_mangled_name
2720 initializer.
2721 (auto_language_data): Likewise.
2722 * language.h (language_data): Delete la_sniff_from_mangled_name
2723 field.
2724 (language_defn::sniff_from_mangled_name): New function.
2725 (language_sniff_from_mangled_name): Delete declaration.
2726 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2727 field.
2728 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2729 implementation moves to...
2730 (objc_language::sniff_from_mangled_name): ...here.
2731 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2732 * opencl-lang.c (opencl_language_data): Likewise.
2733 * p-lang.c (pascal_language_data): Likewise.
2734 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2735 implementation moves to...
2736 (rust_language::sniff_from_mangled_name): ...here.
2737 (rust_language_data): Delete la_sniff_from_mangled_name
2738 initializer.
2739 * symtab.c (symbol_find_demangled_name): Call
2740 sniff_from_mangled_name member function.
2741
2742 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2743
2744 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2745 initializer.
2746 * c-lang.c (c_language_data): Likewise.
2747 (cplus_language_data): Likewise.
2748 (cplus_language::search_name_hash): New member function.
2749 (asm_language_data): Delete la_search_name_hash initializer.
2750 (minimal_language_data): Likewise.
2751 * d-lang.c (d_language_data): Likewise.
2752 * dictionary.c (default_search_name_hash): Rename to...
2753 (language_defn::search_name_hash): ...this.
2754 * f-lang.c (f_language_data): Likewise.
2755 (f_language::search_name_hash): New member function.
2756 * go-lang.c (go_language_data): Delete la_search_name_hash
2757 initializer.
2758 * language.c (unknown_language_data): Likewise.
2759 (auto_language_data): Likewise.
2760 * language.h (struct language_data): Delete la_search_name_hash
2761 field.
2762 (language_defn::search_name_hash): Declare new member function.
2763 (default_search_name_hash): Delete declaration.
2764 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2765 initializer.
2766 * objc-lang.c (objc_language_data): Likewise.
2767 * opencl-lang.c (opencl_language_data): Likewise.
2768 * p-lang.c (pascal_language_data): Likewise.
2769 * rust-lang.c (rust_language_data): Likewise.
2770 * symtab.c (search_name_hash): Update call.
2771
2772 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2773
2774 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2775 initializer.
2776 * c-lang.c (class compile_instance): Declare.
2777 (c_language_data): Delete la_get_compile_instance initializer.
2778 (c_language::get_compile_instance): New member function.
2779 (cplus_language_data): Delete la_get_compile_instance initializer.
2780 (cplus_language::get_compile_instance): New member function.
2781 (asm_language_data): Delete la_get_compile_instance initializer.
2782 (minimal_language_data): Likewise.
2783 * c-lang.h (c_get_compile_context): Update comment.
2784 (cplus_get_compile_context): Update comment.
2785 * compile/compile.c (compile_to_object): Update calls, don't rely
2786 on function pointer being NULL.
2787 * d-lang.c (d_language_data): Delete la_get_compile_instance
2788 initializer.
2789 * f-lang.c (f_language_data): Likewise.
2790 * go-lang.c (go_language_data): Likewise.
2791 * language.c (unknown_language_data): Likewise.
2792 (auto_language_data): Likewise.
2793 * language.h (language_data): Delete la_get_compile_instance field.
2794 (language_defn::get_compile_instance): New member function.
2795 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2796 initializer.
2797 * objc-lang.c (objc_language_data): Likewise.
2798 * opencl-lang.c (opencl_language_data): Likewise.
2799 * p-lang.c (pascal_language_data): Likewise.
2800 * rust-lang.c (rust_language_data): Likewise.
2801
2802 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2803
2804 * ada-lang.c (ada_add_all_symbols): Update comment.
2805 (ada_iterate_over_symbols): Delete, move implementation to...
2806 (ada_language::iterate_over_symbols): ...here, a new member
2807 function, rewrite to use range based for loop.
2808 (ada_language_data): Delete la_iterate_over_symbols initializer.
2809 * c-lang.c (c_language_data): Likewise.
2810 (cplus_language_data): Likewise.
2811 (asm_language_data): Likewise.
2812 (minimal_language_data): Likewise.
2813 * d-lang.c (d_language_data): Likewise.
2814 * f-lang.c (f_language_data): Likewise.
2815 * go-lang.c (go_language_data): Likewise.
2816 * language.c (unknown_language_data): Likewise.
2817 (auto_language_data): Likewise.
2818 * language.h (language_data): Delete la_iterate_over_symbols field.
2819 (language_defn::iterate_over_symbols): New member function.
2820 (LA_ITERATE_OVER_SYMBOLS): Update.
2821 * linespec.c (iterate_over_all_matching_symtabs): Update.
2822 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2823 initializer.
2824 * objc-lang.c (objc_language_data): Likewise.
2825 * opencl-lang.c (opencl_language_data): Likewise.
2826 * p-lang.c (pascal_language_data): Likewise.
2827 * rust-lang.c (rust_language_data): Likewise.
2828
2829 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * ada-lang.c (ada_language_data): Delete
2832 la_lookup_transparent_type initializer.
2833 * c-lang.c (c_language_data): Likewise.
2834 (cplus_language_data): Likewise.
2835 (cplus_language::lookup_transparent_type): New member function.
2836 (asm_language_data): Delete la_lookup_transparent_type
2837 initializer.
2838 (minimal_language_data): Likewise.
2839 * d-lang.c (d_language_data): Likewise.
2840 * f-lang.c (f_language_data): Likewise.
2841 * go-lang.c (go_language_data): Likewise.
2842 * language.c (unknown_language_data): Likewise.
2843 (auto_language_data): Likewise.
2844 * language.h (struct language_data): Delete
2845 la_lookup_transparent_type field.
2846 (language_defn::lookup_transparent_type): New member function.
2847 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2848 initializer.
2849 * objc-lang.c (objc_language_data): Likewise.
2850 * opencl-lang.c (opencl_language_data): Likewise.
2851 * p-lang.c (pascal_language_data): Likewise.
2852 * rust-lang.c (rust_language_data): Likewise.
2853 * symtab.c (symbol_matches_domain): Update call.
2854
2855 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2856
2857 * ada-lang.c (ada_language_arch_info): Delete function, move
2858 implementation to...
2859 (ada_language::language_arch_info): ...here, a new member
2860 function.
2861 (ada_language_data): Delete la_language_arch_info.
2862 * c-lang.c (c_language_data): Likewise.
2863 (c_language::language_arch_info): New member function.
2864 (cplus_language_arch_info): Delete function, move
2865 implementation to...
2866 (cplus_language::language_arch_info): ...here, a new member
2867 function.
2868 (cplus_language_data): Delete la_language_arch_info.
2869 (asm_language_data): Likewise.
2870 (asm_language::language_arch_info): New member function.
2871 (minimal_language_data): Delete la_language_arch_info.
2872 (minimal_language::language_arch_info): New member function.
2873 * d-lang.c (d_language_arch_info): Delete function, move
2874 implementation to...
2875 (d_language::language_arch_info): ...here, a new member
2876 function.
2877 (d_language_data): Delete la_language_arch_info.
2878 * f-lang.c (f_language_arch_info): Delete function, move
2879 implementation to...
2880 (f_language::language_arch_info): ...here, a new member
2881 function.
2882 (f_language_data): Delete la_language_arch_info.
2883 * go-lang.c (go_language_arch_info): Delete function, move
2884 implementation to...
2885 (go_language::language_arch_info): ...here, a new member
2886 function.
2887 (go_language_data): Delete la_language_arch_info.
2888 * language.c (unknown_language_data): Likewise.
2889 (unknown_language::language_arch_info): New member function.
2890 (auto_language_data): Delete la_language_arch_info.
2891 (auto_language::language_arch_info): New member function.
2892 (language_gdbarch_post_init): Update call to
2893 la_language_arch_info.
2894 * language.h (language_data): Delete la_language_arch_info
2895 function pointer.
2896 (language_defn::language_arch_info): New function.
2897 * m2-lang.c (m2_language_arch_info): Delete function, move
2898 implementation to...
2899 (m2_language::language_arch_info): ...here, a new member
2900 function.
2901 (m2_language_data): Delete la_language_arch_info.
2902 * objc-lang.c (objc_language_arch_info): Delete function, move
2903 implementation to...
2904 (objc_language::language_arch_info): ...here, a new member
2905 function.
2906 (objc_language_data): Delete la_language_arch_info.
2907 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2908 implementation to...
2909 (opencl_language::language_arch_info): ...here, a new member
2910 function.
2911 (opencl_language_data): Delete la_language_arch_info.
2912 * p-lang.c (pascal_language_arch_info): Delete function, move
2913 implementation to...
2914 (pascal_language::language_arch_info): ...here, a new member
2915 function.
2916 (pascal_language_data): Delete la_language_arch_info.
2917 * rust-lang.c (rust_language_arch_info): Delete function, move
2918 implementation to...
2919 (rust_language::language_arch_info): ...here, a new member
2920 function.
2921 (rust_language_data): Delete la_language_arch_info.
2922
2923 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2924
2925 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2926 initializer.
2927 * c-lang.c (c_language_data): Likewise.
2928 (cplus_language_data): Likewise.
2929 (cplus_language::pass_by_reference_info): New method.
2930 (asm_language_data): Delete la_pass_by_reference initializer.
2931 (minimal_language_data): Likewise.
2932 * cp-abi.c (cp_pass_by_reference): Remove use of
2933 default_pass_by_reference.
2934 * d-lang.c (d_language_data): Likewise.
2935 * f-lang.c (f_language_data): Likewise.
2936 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2937 default_pass_by_reference.
2938 * go-lang.c (go_language_data): Likewise.
2939 * language.c (language_pass_by_reference): Update.
2940 (default_pass_by_reference): Delete.
2941 (unknown_language_data): Delete la_pass_by_reference
2942 initializer.
2943 (auto_language_data): Likewise.
2944 * language.h (struct language_data): Delete la_pass_by_reference
2945 field.
2946 (language_defn::pass_by_reference_info): New member function.
2947 (default_pass_by_reference): Delete declaration.
2948 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2949 initializer.
2950 * objc-lang.c (objc_language_data): Likewise.
2951 * opencl-lang.c (opencl_language_data): Likewise.
2952 * p-lang.c (pascal_language_data): Likewise.
2953 * rust-lang.c (rust_language_data): Likewise.
2954
2955 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2956
2957 * ada-lang.c (ada_read_var_value): Delete function, move
2958 implementation to...
2959 (ada_language::read_var_value): ...here.
2960 (ada_language_data): Delete la_read_var_value initializer.
2961 * c-lang.c (c_language_data): Likewise.
2962 (cplus_language_data): Likewise.
2963 (minimal_language_data): Likewise.
2964 * d-lang.c (d_language_data): Likewise.
2965 * f-lang.c (f_language_data): Likewise.
2966 * findvar.c (default_read_var_value): Rename to...
2967 (language_defn::read_var_value): ...this.
2968 * findvar.c (read_var_value): Update header comment, and change to
2969 call member function instead of function pointer.
2970 * go-lang.c (go_language_data): Likewise.
2971 * language.c (unknown_language_data): Delete la_read_var_value
2972 initializer.
2973 (auto_language_data): Likewise.
2974 * language.h (struct language_data): Delete la_read_var_value
2975 field.
2976 (language_defn::read_var_value): New member function.
2977 (default_read_var_value): Delete declaration.
2978 * m2-lang.c (m2_language_data): Delete la_read_var_value
2979 initializer.
2980 * objc-lang.c (objc_language_data): Likewise.
2981 * opencl-lang.c (opencl_language_data): Likewise.
2982 * p-lang.c (pascal_language_data): Likewise.
2983 * rust-lang.c (rust_language_data): Likewise.
2984 * value.h (default_read_var_value): Delete declaration.
2985
2986 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2987
2988 * ada-lang.c (ada_print_array_index): Delete function, move
2989 implementation to...
2990 (ada_language::print_array_index): ...here.
2991 (ada_language_data): Delete la_print_array_index initializer.
2992 * c-lang.c (c_language_data): Likewise.
2993 (cplus_language_data): Likewise.
2994 (minimal_language_data): Likewise.
2995 * d-lang.c (d_language_data): Likewise.
2996 * f-lang.c (f_language_data): Likewise.
2997 * go-lang.c (go_language_data): Likewise.
2998 * language.c (default_print_array_index): Delete function, move
2999 implementation to...
3000 (language_defn::print_array_index): ...here.
3001 (unknown_language_data): Delete la_print_array_index initializer.
3002 (auto_language_data): Likewise.
3003 * language.h (struct language_data): Delete la_print_array_index
3004 field.
3005 (language_defn::print_array_index): New member function.
3006 (LA_PRINT_ARRAY_INDEX): Update.
3007 (default_print_array_index): Delete declaration.
3008 * m2-lang.c (m2_language_data): Delete la_print_array_index
3009 initializer.
3010 * objc-lang.c (objc_language_data): Likewise.
3011 * opencl-lang.c (opencl_language_data): Likewise.
3012 * p-lang.c (pascal_language_data): Likewise.
3013 * rust-lang.c (rust_language_data): Likewise.
3014
3015 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3016
3017 * gdb/ada-lang.c (ada_language_defn): Convert to...
3018 (ada_language_data): ...this.
3019 (class ada_language): New class.
3020 (ada_language_defn): New static global.
3021 * gdb/c-lang.c (c_language_defn): Convert to...
3022 (c_language_data): ...this.
3023 (class c_language): New class.
3024 (c_language_defn): New static global.
3025 (cplus_language_defn): Convert to...
3026 (cplus_language_data): ...this.
3027 (class cplus_language): New class.
3028 (cplus_language_defn): New static global.
3029 (asm_language_defn): Convert to...
3030 (asm_language_data): ...this.
3031 (class asm_language): New class.
3032 (asm_language_defn): New static global.
3033 (minimal_language_defn): Convert to...
3034 (minimal_language_data): ...this.
3035 (class minimal_language): New class.
3036 (minimal_language_defn): New static global.
3037 * gdb/d-lang.c (d_language_defn): Convert to...
3038 (d_language_data): ...this.
3039 (class d_language): New class.
3040 (d_language_defn): New static global.
3041 * gdb/f-lang.c (f_language_defn): Convert to...
3042 (f_language_data): ...this.
3043 (class f_language): New class.
3044 (f_language_defn): New static global.
3045 * gdb/go-lang.c (go_language_defn): Convert to...
3046 (go_language_data): ...this.
3047 (class go_language): New class.
3048 (go_language_defn): New static global.
3049 * gdb/language.c (unknown_language_defn): Remove declaration.
3050 (current_language): Initialize to nullptr, real initialization is
3051 moved to _initialize_language.
3052 (languages): Delete global.
3053 (language_defn::languages): Define.
3054 (set_language_command): Use language_defn::languages.
3055 (set_language): Likewise.
3056 (range_error): Likewise.
3057 (language_enum): Likewise.
3058 (language_def): Likewise.
3059 (add_set_language_command): Use language_def::languages for the
3060 language list, and language_def to lookup language pointers.
3061 (skip_language_trampoline): Use language_defn::languages.
3062 (unknown_language_defn): Convert to...
3063 (unknown_language_data): ...this.
3064 (class unknown_language): New class.
3065 (unknown_language_defn): New static global.
3066 (auto_language_defn): Convert to...
3067 (auto_language_data): ...this.
3068 (class auto_language): New class.
3069 (auto_language_defn): New static global.
3070 (language_gdbarch_post_init): Use language_defn::languages.
3071 (_initialize_language): Initialize current_language.
3072 * gdb/language.h (struct language_defn): Rename to...
3073 (struct language_data): ...this.
3074 (struct language_defn): New.
3075 (auto_language_defn): Delete.
3076 (unknown_language_defn): Delete.
3077 (minimal_language_defn): Delete.
3078 (ada_language_defn): Delete.
3079 (asm_language_defn): Delete.
3080 (c_language_defn): Delete.
3081 (cplus_language_defn): Delete.
3082 (d_language_defn): Delete.
3083 (f_language_defn): Delete.
3084 (go_language_defn): Delete.
3085 (m2_language_defn): Delete.
3086 (objc_language_defn): Delete.
3087 (opencl_language_defn): Delete.
3088 (pascal_language_defn): Delete.
3089 (rust_language_defn): Delete.
3090 * gdb/m2-lang.c (m2_language_defn): Convert to...
3091 (m2_language_data): ...this.
3092 (class m2_language): New class.
3093 (m2_language_defn): New static global.
3094 * gdb/objc-lang.c (objc_language_defn): Convert to...
3095 (objc_language_data): ...this.
3096 (class objc_language): New class.
3097 (objc_language_defn): New static global.
3098 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3099 (opencl_language_data): ...this.
3100 (class opencl_language): New class.
3101 (opencl_language_defn): New static global.
3102 * gdb/p-lang.c (pascal_language_defn): Convert to...
3103 (pascal_language_data): ...this.
3104 (class pascal_language): New class.
3105 (pascal_language_defn): New static global.
3106 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3107 language pointer, update comment format.
3108 * gdb/rust-lang.c (rust_language_defn): Convert to...
3109 (rust_language_data): ...this.
3110 (class rust_language): New class.
3111 (rust_language_defn): New static global.
3112
3113 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3114
3115 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3116 member variable.
3117 <m_stmt_at_address>: New member variable.
3118 (lnp_state_machine::record_line): Don't record some lines, update
3119 tracking of is_stmt at the same address.
3120 (lnp_state_machine::lnp_state_machine): Initialise new member
3121 variables.
3122
3123 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3124
3125 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3126 "-include gnu-nat-mig.h".
3127 * gnu-nat-mig.h: New file.
3128 * gnu-nat.c: Include "gnu-nat-mig.h".
3129 (exc_server, msg_reply_server, notify_server,
3130 process_reply_server): Remove declarations.
3131
3132 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3133
3134 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3135 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3136 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3137 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3138 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3139 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3140 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3141 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3142 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3143 to gnu_nat_target class.
3144 * gnu-nat.c: Likewise.
3145 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3146 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3147 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3148 object.
3149 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3150 instead of `gnu_target'.
3151
3152 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3153
3154 * i386-gnu-tdep.c: Include "gdbcore.h"
3155 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3156 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3157 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3158 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3159 i386_gnu_sigcontext_addr): New functions
3160 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3161 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3162 tdep.
3163
3164 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3165
3166 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3167 before fork_inferior call. Avoid calling it if target_is_pushed returns
3168 true.
3169
3170 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3171
3172 * gnu-nat.h (gnu_target): New variable declaration.
3173 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3174 gnu_target.
3175 * gnu-nat.c (gnu_target): New variable.
3176 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3177 add_thread_silent, and add_thread calls.
3178 (gnu_nat_target::create_inferior): Pass gnu_target to
3179 add_thread_silent, thread_change_ptid call.
3180 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3181 call.
3182
3183 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3184
3185 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3186 (gnu_nat_target::find_memory_regions): Remove unused
3187 `old_address' variable.
3188
3189 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3190
3191 * gnu-nat.c: Include "gdbarch.h".
3192
3193 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3194
3195 * reply_mig_hack.awk (Error return): Cast function through
3196 void *, to bypass compiler function call check.
3197
3198 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3199
3200 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3201 $(srcdir)/reply_mig_hack.awk.
3202
3203 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3204
3205 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3206
3207 2020-05-30 Jonny Grant <jg@jguk.org>
3208
3209 * configure.ac (ACX_BUGURL): change bug URL to https.
3210
3211 2020-05-30 Pedro Alves <palves@redhat.com>
3212
3213 * cp-support.c (replace_typedefs_template): New.
3214 (replace_typedefs_qualified_name): Handle
3215 DEMANGLE_COMPONENT_TEMPLATE.
3216
3217 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3218
3219 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3220 dwarf2/index-cache.h, dwarf2/index-write.c,
3221 dwarf2/index-write.h, dwarf2/line-header.c,
3222 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3223 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3224 variables and fields from `dwarf2_per_objfile` to just
3225 `per_objfile` throughout.
3226
3227 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3228
3229 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3230 <push_dwarf_reg_entry_value>: Add comment.
3231
3232 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3233 Keith Seitz <keiths@redhat.com>
3234
3235 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3236 instead of PyEval_ReleaseLock.
3237 (class gdbpy_gil): Move to earlier in file.
3238 (finalize_python): Set gdb_python_initialized.
3239 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3240 when not initialized.
3241
3242 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3243
3244 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3245 <push_dwarf_reg_entry_value>: Remove assert. Override
3246 per_objfile with caller_per_objfile.
3247
3248 2020-05-28 Tom de Vries <tdevries@suse.de>
3249
3250 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3251 PR gold/15646 workaround to symbol kind "type".
3252
3253 2020-05-27 Tom Tromey <tromey@adacore.com>
3254
3255 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3256
3257 2020-05-27 Tom Tromey <tromey@adacore.com>
3258
3259 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3260 Use htab_find_with_hash.
3261 <add_abbrev>: Remove "abbrev_number" parameter.
3262 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3263 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3264 (hash_abbrev): Add comment.
3265 (abbrev_table::lookup_abbrev): Move to header file.
3266 (abbrev_table::read): Update.
3267
3268 2020-05-27 Tom Tromey <tromey@adacore.com>
3269
3270 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3271 method.
3272 <canonical_name>: New member.
3273 <raw_name>: Rename from "name".
3274 (partial_die_info): Initialize canonical_name.
3275 (scan_partial_symbols): Check raw_name.
3276 (partial_die_parent_scope, partial_die_full_name)
3277 (add_partial_symbol, add_partial_subprogram)
3278 (add_partial_enumeration, load_partial_dies): Use "name" method.
3279 (partial_die_info::name): New method.
3280 (partial_die_info::read, guess_partial_die_structure_name)
3281 (partial_die_info::fixup): Update.
3282
3283 2020-05-27 Tom Tromey <tromey@adacore.com>
3284
3285 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3286 <get_ref_die_offset>: Inline.
3287 <get_ref_die_offset_complaint>: New method.
3288 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3289 (attribute::get_ref_die_offset_complaint): Rename from
3290 get_ref_die_offset. Just issue complaint.
3291
3292 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3293
3294 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3295
3296 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3297
3298 * exec.c (exec_file_attach): Use errno value of first openp failure.
3299
3300 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3301
3302 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3303 Don't close thread handle.
3304
3305 2020-05-27 Tom Tromey <tom@tromey.com>
3306 Simon Marchi <simon.marchi@efficios.com>
3307
3308 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3309 shared_ptr.
3310 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3311 member.
3312 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3313 dwarf2_per_bfd_objfile_data_key>: New globals.
3314 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3315 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3316 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3317 shared.
3318 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3319 short-circuit when sharing.
3320 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3321 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3322
3323 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3324
3325 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3326 to...
3327 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3328 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3329
3330 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3331
3332 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3333 build_name_components, find_name_components_bounds>:
3334 Add per_objfile parameter.
3335 (struct mapped_index) <symbol_name_at>: Likewise.
3336 (struct mapped_debug_names): Remove constructor.
3337 <dwarf2_per_objfile>: Remove field.
3338 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3339 (mapped_index_base::find_name_components_bounds,
3340 mapped_index_base::build_name_components,
3341 dw2_expand_symtabs_matching_symbol): Likewise.
3342 (class mock_mapped_index) <symbol_name_at>: Likewise.
3343 (check_match): Likewise.
3344 (check_find_bounds_finds): Likewise.
3345 (test_mapped_index_find_name_component_bounds): Update.
3346 (CHECK_MATCH): Update.
3347 (dw2_expand_symtabs_matching): Update.
3348 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3349 per_objfile parameter.
3350 <find_vec_in_debug_names>: Likewise.
3351 <m_per_objfile>: New field.
3352 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3353 parameter.
3354 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3355 (dw2_debug_names_iterator::next): Update.
3356 (dw2_debug_names_lookup_symbol): Update.
3357 (dw2_debug_names_expand_symtabs_for_function): Update.
3358 (dw2_debug_names_map_matching_symbols): Update.
3359 (dw2_debug_names_expand_symtabs_matching): Update.
3360 (dwarf2_read_debug_names): Update.
3361
3362 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3363
3364 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3365 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3366 move to dwarf2_per_objfile.
3367 <read_in_chain>: Remove.
3368 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3369 remove_all_cus, age_comp_units>: New methods.
3370 <m_dwarf2_cus>: New member.
3371 (struct dwarf2_per_cu_data) <cu>: Remove.
3372 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3373 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3374 moved to methods of dwarf2_per_objfile.
3375 (dwarf2_clear_marks): Remove.
3376 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3377 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3378 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3379 (dwarf2_per_objfile::remove_all_cus): New.
3380 (class free_cached_comp_units) <~free_cached_comp_units>:
3381 Update.
3382 (load_cu): Update.
3383 (dw2_do_instantiate_symtab): Adjust.
3384 (fill_in_sig_entry_from_dwo_entry): Adjust.
3385 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3386 (cutu_reader::cutu_reader): Likewise.
3387 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3388 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3389 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3390 and dwarf2_per_objfile::age_comp_units.
3391 (load_partial_comp_unit): Update.
3392 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3393 (process_queue): Likewise.
3394 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3395 backlink.
3396 (dwarf2_read_addr_index): Likewise.
3397 (follow_die_offset): Likewise.
3398 (dwarf2_fetch_die_loc_sect_off): Likewise.
3399 (dwarf2_fetch_constant_bytes): Likewise.
3400 (dwarf2_fetch_die_type_sect_off): Likewise.
3401 (follow_die_sig_1): Likewise.
3402 (load_full_type_unit): Likewise.
3403 (read_signatured_type): Likewise.
3404 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3405 (dwarf2_cu::~dwarf2_cu): Remove.
3406 (dwarf2_per_objfile::get_cu): New.
3407 (dwarf2_per_objfile::set_cu): New.
3408 (age_cached_comp_units): Rename to...
3409 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3410 to std::unordered_map.
3411 (free_one_cached_comp_unit): Rename to...
3412 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3413 to std::unordered_map.
3414 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3415 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3416 a dwarf2_per_objfile in data.
3417 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3418 (dwarf2_clear_marks): Remove.
3419
3420 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3423 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3424 (init_tu_and_read_dwo_dies): Likewise.
3425 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3426 (cutu_reader::cutu_reader): Likewise.
3427 (load_partial_comp_unit): Likewise.
3428 (process_psymtab_comp_unit): Update.
3429 (build_type_psymtabs_1): Update.
3430 (process_skeletonless_type_unit): Update.
3431 (load_full_comp_unit): Update.
3432 (find_partial_die): Update.
3433 (dwarf2_read_addr_index): Update.
3434 (read_signatured_type): Update.
3435
3436 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3437
3438 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3439 m_header_read_in>: New fields.
3440 <get_header>: New method.
3441 * dwarf2/read.c (per_cu_header_read_in): Remove.
3442 (dwarf2_per_cu_data::get_header): New.
3443 (dwarf2_per_cu_data::addr_size): Update.
3444 (dwarf2_per_cu_data::offset_size): Update.
3445 (dwarf2_per_cu_data::ref_addr_size): Update.
3446
3447 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3448
3449 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3450 (dw2_do_instantiate_symtab): Update.
3451 (queue_and_load_all_dwo_tus): Change parameter from
3452 dwarf2_per_cu_data to dwarf2_cu.
3453 (dwarf2_fetch_die_loc_sect_off): Update.
3454 (dwarf2_fetch_constant_bytes): Update.
3455 (dwarf2_fetch_die_type_sect_off): Update.
3456
3457 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3458
3459 * dwarf2/read.c (process_full_comp_unit,
3460 process_full_type_unit): Remove per_cu, per_objfile paramters.
3461 Add dwarf2_cu parameter.
3462 (process_queue): Update.
3463
3464 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3465
3466 * dwarf2/read.c (create_cu_from_index_list): Replace
3467 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3468 (create_cus_from_index_list): Likewise.
3469 (create_cus_from_index): Likewise.
3470 (create_signatured_type_table_from_index): Likewise.
3471 (create_cus_from_debug_names_list): Likewise.
3472 (create_cus_from_debug_names): Likewise.
3473 (dwarf2_read_gdb_index): Update.
3474 (dwarf2_read_debug_names): Update.
3475
3476 2020-05-27 Tom Tromey <tom@tromey.com>
3477 Simon Marchi <simon.marchi@efficios.com>
3478
3479 * dwarf2/read.h (struct dwarf2_per_objfile)
3480 <get_type_for_signatured_type, set_type_for_signatured_type>:
3481 New methods.
3482 <m_type_map>: New member.
3483 (struct signatured_type) <type>: Remove.
3484 * dwarf2/read.c
3485 (dwarf2_per_objfile::get_type_for_signatured_type,
3486 dwarf2_per_objfile::set_type_for_signatured_type): New.
3487 (get_signatured_type): Use new methods.
3488
3489 2020-05-27 Tom Tromey <tom@tromey.com>
3490 Simon Marchi <simon.marchi@efficios.com>
3491
3492 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3493 (struct dwarf2_per_objfile) <type_units>: New member.
3494 <get_type_unit_group_unshareable>: New method.
3495 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3496 num_symtabs, symtabs>: Remove; move to
3497 type_unit_group_unshareable.
3498 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3499 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3500 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3501
3502 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3503
3504 * dwarf2/read.h (struct dwarf2_per_cu_data):
3505 <dwarf2_per_objfile>: Remove.
3506 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3507 dwarf2_per_objfile.
3508 (create_signatured_type_table_from_index): Likewise.
3509 (create_signatured_type_table_from_debug_names): Likewise.
3510 (create_debug_type_hash_table): Likewise.
3511 (fill_in_sig_entry_from_dwo_entry): Likewise.
3512 (create_type_unit_group): Likewise.
3513 (read_comp_units_from_section): Likewise.
3514 (create_cus_hash_table): Likewise.
3515
3516 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3517
3518 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3519 dwarf2_per_cu_data::dwarf2_per_objfile.
3520 (compute_compunit_symtab_includes): Likewise.
3521 (dwarf2_cu::start_symtab): Likewise.
3522
3523 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3524
3525 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3526 parameter.
3527 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3528 (read_namespace_alias): Update.
3529 (lookup_die_type): Update.
3530 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3531 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3532 Update.
3533 (disassemble_dwarf_expression): Update.
3534
3535 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3536
3537 * dwarf2/read.h (struct dwarf2_queue_item): Add
3538 dwarf2_per_objfile parameter, assign new parameter.
3539 <per_objfile>: New field.
3540 * dwarf2/read.c (free_one_cached_comp_unit): Add
3541 dwarf2_per_objfile parameter.
3542 (queue_comp_unit): Likewise.
3543 (dw2_do_instantiate_symtab): Update.
3544 (process_psymtab_comp_unit): Update.
3545 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3546 (process_imported_unit_die): Update.
3547 (queue_and_load_dwo_tu): Update.
3548 (follow_die_offset): Update.
3549 (follow_die_sig_1): Update.
3550
3551 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3552
3553 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3554 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3555 (read_call_site_scope): Assign per_objfile.
3556 (dwarf2_per_cu_data::objfile): Remove.
3557 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3558 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3559 dwarf2_per_objfile parameter.
3560 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3561 dwarf2_per_objfile parameter.
3562 (dwarf_expr_reg_to_entry_parameter): Add output
3563 dwarf2_per_objfile parameter.
3564 (locexpr_get_frame_base): Update.
3565 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3566 <push_dwarf_reg_entry_value>: Update.
3567 <call_site_to_target_addr>: Update.
3568 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3569 parameter.
3570 (value_of_dwarf_reg_entry): Update.
3571 (rw_pieced_value): Update.
3572 (indirect_synthetic_pointer): Update.
3573 (dwarf2_evaluate_property): Update.
3574 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3575 parameter.
3576 (locexpr_read_variable): Update.
3577 (locexpr_get_symbol_read_needs): Update.
3578 (loclist_read_variable): Update.
3579
3580 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3581
3582 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3583 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3584 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3585 parameter.
3586 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3587 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3588 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3589 parameter.
3590 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3591 sect_variable_value): Add dwarf2_per_objfile parameter.
3592 (class dwarf_evaluate_loc_desc) <dwarf_call,
3593 dwarf_variable_value>: Update.
3594 (fetch_const_value_from_synthetic_pointer): Add
3595 dwarf2_per_objfile parameter.
3596 (fetch_const_value_from_synthetic_pointer): Update.
3597 (coerced_pieced_ref): Update.
3598 (class symbol_needs_eval_context) <dwarf_call,
3599 dwarf_variable_value>: Update.
3600 (dwarf2_compile_expr_to_ax): Update.
3601
3602 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3603
3604 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3605 parameter.
3606 (dwarf2_evaluate_loc_desc_full): Update.
3607
3608 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3609
3610 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3611 parameter.
3612 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3613 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3614 dwarf2_per_objfile parameter.
3615 (decode_debug_loc_dwo_addresses): Likewise.
3616 (dwarf2_find_location_expression): Update.
3617 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3618 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3619 parameter.
3620 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3621 parameter.
3622 (locexpr_describe_location_1): Likewise.
3623 (locexpr_describe_location): Update.
3624
3625 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3626
3627 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3628 Remove.
3629 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3630 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3631 (dwarf2_compile_property_to_c): Update.
3632 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3633 use text offset from objfile.
3634 (locexpr_tracepoint_var_ref): Update.
3635 (locexpr_generate_c_location): Update.
3636 (loclist_describe_location): Update.
3637 (loclist_tracepoint_var_ref): Update.
3638 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3639 dwarf2_per_objfile parameter.
3640 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3641 use text offset from objfile.
3642 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3643
3644 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * dwarf2/expr.h (struct dwarf_expr_context)
3647 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3648 <offset>: Remove.
3649 <per_objfile>: New member.
3650 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3651 dwarf2_per_objfile parameter. Don't set offset, set
3652 per_objfile.
3653 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3654 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3655 a dwarf2_per_objfile object instead of an offset.
3656 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3657 constructor.
3658 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3659 to dwarf2_expr_executor constructor. Don't set offset.
3660 (dwarf2_fetch_cfa_info): Update.
3661 (struct dwarf2_frame_cache) <text_offset>: Remove.
3662 <per_objfile>: New field.
3663 (dwarf2_frame_cache): Update.
3664 (dwarf2_frame_prev_register): Update.
3665 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3666 <dwarf_evaluate_loc_desc>: Add constructor.
3667 (dwarf2_evaluate_loc_desc_full): Update.
3668 (dwarf2_locexpr_baton_eval): Update.
3669 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3670 Add constructor.
3671 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3672
3673 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3674
3675 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3676 addr_sized_int_type>: Move to dwarf2_cu.
3677 <int_type>: Move to dwarf2_per_objfile.
3678 (struct dwarf2_per_objfile) <int_type>: Move here.
3679 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3680 addr_sized_int_type>: Move here.
3681 (read_func_scope): Update.
3682 (read_array_type): Update.
3683 (read_tag_string_type): Update.
3684 (attr_to_dynamic_prop): Update.
3685 (dwarf2_per_cu_data::int_type): Rename to...
3686 (dwarf2_per_objfile::int_type): ... this.
3687 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3688 (dwarf2_cu::addr_sized_int_type): ... this.
3689 (read_subrange_type): Update.
3690 (dwarf2_per_cu_data::addr_type): Rename to...
3691 (dwarf2_cu::addr_type): ... this.
3692 (set_die_type): Update.
3693
3694 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3695
3696 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3697 data through per_cu->cu.
3698
3699 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3700
3701 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3702 dwarf2_per_cu_data parameter fo dwarf2_cu.
3703 (lookup_dwo_type_unit): Likewise.
3704 (read_cutu_die_from_dwo): Likewise.
3705 (lookup_dwo_unit): Likewise.
3706 (open_and_init_dwo_file): Likewise.
3707 (lookup_dwo_cutu): Likewise.
3708 (lookup_dwo_comp_unit): Likewise.
3709 (lookup_dwo_type_unit): Likewise.
3710 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3711 (cutu_reader::cutu_reader): Update.
3712
3713 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3714
3715 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3716 parameter.
3717 (process_full_type_unit): Likewise.
3718 (process_queue): Update.
3719
3720 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * dwarf2/read.c (recursively_compute_inclusions): Add
3723 dwarf2_per_objfile parameter.
3724 (compute_compunit_symtab_includes): Likewise.
3725 (process_cu_includes): Update.
3726
3727 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3728
3729 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3730 parameter.
3731 (create_type_unit_group): Update.
3732 (process_psymtab_comp_unit_reader): Update.
3733 (build_type_psymtabs_reader): Update.
3734
3735 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3736
3737 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3738 object through m_this_cu->cu.
3739
3740 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3741
3742 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3743 the info parameter.
3744 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3745
3746 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3747
3748 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3749 per_objfile parameter.
3750 (load_full_type_unit): Add per_objfile parameter.
3751 (read_signatured_type): Likewise.
3752 (load_full_comp_unit): Likewise.
3753 (load_cu): Likewise.
3754 (dw2_do_instantiate_symtab): Likewise.
3755 (dw2_get_file_names): Likewise.
3756 (dw2_map_symtabs_matching_filename): Update.
3757 (dw_expand_symtabs_matching_file_matcher): Update.
3758 (dw2_map_symbol_filenames): Update.
3759 (process_psymtab_comp_unit): Add per_objfile parameter.
3760 (build_type_psymtabs_1): Update.
3761 (process_skeletonless_type_unit): Update.
3762 (dwarf2_build_psymtabs_hard): Update.
3763 (load_partial_comp_unit): Add per_objfile parameter.
3764 (scan_partial_symbols): Update.
3765 (load_full_comp_unit): Add per_objfile parameter.
3766 (process_imported_unit_die): Update.
3767 (create_cus_hash_table): Update.
3768 (find_partial_die): Update.
3769 (dwarf2_read_addr_index): Update.
3770 (follow_die_offset): Update.
3771 (dwarf2_fetch_die_loc_sect_off): Update.
3772 (dwarf2_fetch_constant_bytes): Update.
3773 (dwarf2_fetch_die_type_sect_off): Update.
3774 (follow_die_sig_1): Update.
3775 (load_full_type_unit): Add per_objfile parameter.
3776 (read_signatured_type): Likewise.
3777
3778 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3779
3780 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3781 of objfile_name.
3782
3783 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3784
3785 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3786 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3787 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3788 field.
3789 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3790 (create_cus_from_index): Update.
3791 (dwarf2_read_gdb_index): Update.
3792 (create_cus_from_debug_names): Update.
3793 (dwarf2_read_debug_names): Update.
3794 (get_abbrev_section_for_cu): Update.
3795 (create_all_comp_units): Update.
3796 (read_attribute_value): Update.
3797 (get_debug_line_section): Update.
3798 * dwarf2/index-cache.c (index_cache::store): Update.
3799 * dwarf2/index-write.c (save_gdb_index_command): Update.
3800 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3801
3802 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3803
3804 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3805 member.
3806 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3807 dwarf2_per_cu_data::per_bfd.
3808 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3809 (create_type_unit_group): Likewise.
3810 (queue_comp_unit): Remove reference to
3811 per_cu->dwarf2_per_objfile.
3812 (maybe_queue_comp_unit): Likewise.
3813 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3814 (create_cus_hash_table): Assign new field.
3815
3816 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3817
3818 * dwarf2/read.c: Replace
3819 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3820 dwarf2_cu->per_objfile throughout.
3821
3822 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3823
3824 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3825 parameter, don't use per_cu->dwarf2_per_objfile.
3826 (dw2_instantiate_symtab): Likewise.
3827 (dw2_find_last_source_symtab): Update.
3828 (dw2_map_expand_apply): Update.
3829 (dw2_lookup_symbol): Update.
3830 (dw2_expand_symtabs_for_function): Update.
3831 (dw2_expand_all_symtabs): Update.
3832 (dw2_expand_symtabs_with_fullname): Update.
3833 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3834 don't use per_cu->dwarf2_per_objfile.
3835 (dw2_expand_marked_cus): Update.
3836 (dw2_find_pc_sect_compunit_symtab): Update.
3837 (dw2_debug_names_lookup_symbol): Update.
3838 (dw2_debug_names_expand_symtabs_for_function): Update.
3839 (dw2_debug_names_map_matching_symbols): Update.
3840 (dwarf2_psymtab::expand_psymtab): Update.
3841
3842 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3843
3844 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3845 <per_objfile>: New member.
3846 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3847 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3848 call to dwarf2_cu.
3849 (cutu_reader::cutu_reader): Update.
3850 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3851
3852 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3853
3854 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3855 struct dwarf2_per_objfile.
3856 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3857 dwarf2_per_bfd.
3858 * dwarf2/read.c (set_die_type): Update.
3859 (get_die_type_at_offset): Update.
3860
3861 2020-05-27 Tom Tromey <tom@tromey.com>
3862 Simon Marchi <simon.marchi@efficios.com>
3863
3864 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3865 method.
3866 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3867 get_symtab, set_symtab>: New methods.
3868 <m_symtabs>: New field.
3869 (struct dwarf2_psymtab): Derive from partial_symtab.
3870 <readin_p, get_compunit_symtab>: Declare methods.
3871 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3872 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3873 New methods.
3874 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3875 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3876 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3877 (dw2_symtab_iter_next, dw2_print_stats)
3878 (dw2_expand_symtabs_with_fullname)
3879 (dw2_expand_symtabs_matching_one)
3880 (dw_expand_symtabs_matching_file_matcher)
3881 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3882 (dw2_debug_names_iterator::next)
3883 (dw2_debug_names_map_matching_symbols)
3884 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3885 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3886 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3887 New methods.
3888 (get_compunit_symtab, process_full_comp_unit)
3889 (process_full_type_unit): Update.
3890 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3891
3892 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3893
3894 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3895 then introduce a new dwarf2_per_objfile type.
3896 <read_line_string>: Move to the new dwarf2_per_objfile type.
3897 <objfile>: Likewise.
3898 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3899 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3900 dwarf2_per_objfile->per_bfd.
3901 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3902 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3903 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3904 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3905 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3906 (dwarf2_per_objfile::locate_sections): Rename to...
3907 (dwarf2_per_bfd::locate_sections): ... this.
3908 (dwarf2_per_objfile::get_cutu): Rename to...
3909 (dwarf2_per_bfd::get_cutu): ... this.
3910 (dwarf2_per_objfile::get_cu): Rename to...
3911 (dwarf2_per_bfd::get_cu): ... this.
3912 (dwarf2_per_objfile::get_tu): Rename to...
3913 (dwarf2_per_bfd::get_tu): ... this.
3914 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3915 (dwarf2_per_bfd::allocate_per_cu): ... this.
3916 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3917 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3918 (get_gdb_index_contents_ftype): Change parameter from
3919 dwarf2_per_objfile to dwarf2_per_bfd.
3920 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3921 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3922
3923 2020-05-27 Tom Tromey <tom@tromey.com>
3924 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3927 (allocate_piece_closure): Set "per_objfile" member.
3928 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3929 (locexpr_describe_location, loclist_describe_location): Use new
3930 member.
3931 * dwarf2/read.c (read_call_site_scope)
3932 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3933 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3934 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3935 handle_data_member_location): Set per_objfile member.
3936 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3937 member.
3938 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3939
3940 2020-05-27 Tom Tromey <tom@tromey.com>
3941
3942 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3943 allocate_signatured_type>: Declare new methods.
3944 <m_num_psymtabs>: New member.
3945 (struct dwarf2_per_cu_data) <index>: New member.
3946 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3947 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3948 (create_cu_from_index_list): Use allocate_per_cu.
3949 (create_signatured_type_table_from_index)
3950 (create_signatured_type_table_from_debug_names)
3951 (create_debug_type_hash_table, add_type_unit)
3952 (read_comp_units_from_section): Use allocate_signatured_type.
3953
3954 2020-05-27 Tom Tromey <tom@tromey.com>
3955
3956 * psymtab.c (partial_map_expand_apply)
3957 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3958 (psym_lookup_global_symbol_language)
3959 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3960 (psym_print_stats, psym_expand_symtabs_for_function)
3961 (psym_map_symbol_filenames, psym_map_matching_symbols)
3962 (psym_expand_symtabs_matching)
3963 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3964 (maintenance_check_psymtabs): Update.
3965 * psympriv.h (struct partial_symtab) <readin_p,
3966 get_compunit_symtab>: Add objfile parameter.
3967 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3968 Likewise.
3969 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3970 get_compunit_symtab>: Likewise.
3971 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3972
3973 2020-05-27 Tom Tromey <tom@tromey.com>
3974
3975 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3976 member.
3977 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3978 (create_cu_from_index_list)
3979 (create_signatured_type_table_from_index)
3980 (create_signatured_type_table_from_debug_names)
3981 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3982 (dwarf2_create_include_psymtab)
3983 (create_debug_type_hash_table, add_type_unit)
3984 (create_type_unit_group, read_comp_units_from_section)
3985 (dwarf2_compute_name, create_cus_hash_table)
3986 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3987 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3988 obstack.
3989 (dw2_get_real_path): Likewise. Change argument to
3990 dwarf2_per_objfile.
3991
3992 2020-05-27 Luis Machado <luis.machado@linaro.org>
3993
3994 PR tdep/26000
3995 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3996 for ldrd (immediate).
3997
3998 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3999
4000 * command.h: Add comment giving the name of class_tui.
4001 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4002 create the fake command for the help for class_tui.
4003
4004 2020-05-26 Tom Tromey <tromey@adacore.com>
4005
4006 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4007 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4008 (val_atr): New function.
4009 (value_val_atr): Use it.
4010 * ada-valprint.c (print_optional_low_bound): Change low bound
4011 handling for enums.
4012 (val_print_packed_array_elements): Don't call discrete_position.
4013 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4014 discrete_position for enum types.
4015 * language.c (default_print_array_index): Change type.
4016 * language.h (struct language_defn) <la_print_array_index>: Add
4017 index_type parameter, change type of index_value.
4018 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4019 (default_print_array_index): Update.
4020 * valprint.c (maybe_print_array_index): Don't call
4021 value_from_longest. Update.
4022 (value_print_array_elements): Don't call discrete_position.
4023
4024 2020-05-26 Tom Tromey <tromey@adacore.com>
4025
4026 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4027 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4028
4029 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4030
4031 PR gdb/13519
4032 * avr-tdep.c (avr_integer_to_address): Return data or code
4033 address accordingly to the second 'type' argument of the
4034 function.
4035
4036 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4037
4038 * infcmd.c, inferior.h: (construct_inferior_arguments):
4039 Moved function from here to gdbsupport/common-inferior.{h,cc}
4040
4041 2020-05-23 Tom Tromey <tom@tromey.com>
4042
4043 Revert commit eca1f90c:
4044 * NEWS: Remove entry for completion styling.
4045 * completer.c (_rl_completion_prefix_display_length): Move
4046 declaration later.
4047 (gdb_fnprint): Revert.
4048 (gdb_display_match_list_1): Likewise.
4049 * cli/cli-style.c (completion_prefix_style)
4050 (completion_difference_style, completion_suffix_style): Remove.
4051 (_initialize_cli_style): Revert.
4052 * cli/cli-style.h (completion_prefix_style)
4053 (completion_difference_style, completion_suffix_style): Don't
4054 declare.
4055
4056 2020-05-24 Pedro Alves <palves@redhat.com>
4057
4058 * symtab.c (completion_list_add_name): Return boolean indication
4059 of whether the symbol matched.
4060 (completion_list_add_symbol): Don't try to remove C++ aliases if
4061 the symbol didn't match in the first place.
4062 * symtab.h (completion_list_add_name): Return bool.
4063
4064 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4065
4066 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4067 type::field.
4068
4069 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4070
4071 GDB 9.2 released.
4072
4073 2020-05-23 Tom Tromey <tom@tromey.com>
4074
4075 * NEWS: Add entry for completion styling.
4076 * completer.c (_rl_completion_prefix_display_length): Move
4077 declaration earlier.
4078 (gdb_fnprint): Use completion_style.
4079 (gdb_display_match_list_1): Likewise.
4080 * cli/cli-style.c (completion_prefix_style)
4081 (completion_difference_style, completion_suffix_style): New
4082 globals.
4083 (_initialize_cli_style): Register new globals.
4084 * cli/cli-style.h (completion_prefix_style)
4085 (completion_difference_style, completion_suffix_style): Declare.
4086
4087 2020-05-23 Pedro Alves <palves@redhat.com>
4088
4089 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4090 (parse_escape): Use ISDIGIT instead of isdigit.
4091 (puts_debug): Use gdb_isprint instead of isprint.
4092 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4093 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4094 ISSPACE instead of isspace.
4095 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4096 instead of isspace.
4097 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4098 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4099 instead of isxdigit and ISDIGIT instead of isdigit.
4100
4101 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4102
4103 * gdbtypes.h (struct type) <field>: New method.
4104 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4105 or type::field.
4106
4107 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4110 (TYPE_FIELDS): Use type::fields. Change all call sites that
4111 modify the propery to use type::set_fields instead.
4112
4113 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4114
4115 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4116 type::num_fields instead.
4117
4118 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4119
4120 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4121 methods.
4122 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4123 that modify the number of fields to use type::set_num_fields
4124 instead.
4125
4126 2020-05-22 Tom Tromey <tromey@adacore.com>
4127
4128 * compile/compile-object-load.h (munmap_list_free): Don't
4129 declare.
4130
4131 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4132
4133 * annotate.c (annotate_source_line): Update return type, add call
4134 to update current symtab and line.
4135 * annotate.h (annotate_source_line): Update return type, and
4136 extend header comment.
4137 * source.c (info_line_command): Check annotation_level before
4138 calling annotate_source_line.
4139 * stack.c (print_frame_info): If calling annotate_source_line
4140 returns true, then don't print any other source line information.
4141
4142 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4143
4144 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4145
4146 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4147
4148 * coffread.c (patch_type): Remove NULL check before xfree.
4149 * corefile.c (set_gnutarget): Likewise.
4150 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4151 * exec.c (build_section_table): Likewise.
4152 * remote.c (remote_target::pass_signals): Likewise.
4153 * utils.c (n_spaces): Likewise.
4154 * cli/cli-script.c (document_command): Likewise.
4155 * i386-windows-tdep.c (core_process_module_section): Likewise.
4156 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4157
4158 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4159
4160 * symfile.c (reread_symbols): Clear objfile's section_offsets
4161 vector and section indices, re-compute them by calling
4162 sym_offsets.
4163
4164 2020-05-20 Tom Tromey <tromey@adacore.com>
4165
4166 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4167 (desc_one_bound, desc_index_type): Compute field name.
4168
4169 2020-05-20 Tom de Vries <tdevries@suse.de>
4170
4171 PR symtab/25833
4172 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4173
4174 2020-05-20 Alan Modra <amodra@gmail.com>
4175
4176 PR 25993
4177 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4178 bfd_set_filename.
4179 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4180 passed to bfd_set_filename.
4181 * symfile-mem.c (add_vsyscall_page): Likewise for string
4182 passed to symbol_file_add_from_memory.
4183 (symbol_file_add_from_memory): Make name param a const char* and
4184 don't strdup.
4185
4186 2020-05-20 Alan Modra <amodra@gmail.com>
4187
4188 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4189 rather than accessing bfd->filename directly.
4190 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4191 and use bfd_section_name.
4192 * dwarf2/frame.c (decode_frame_entry): Likewise.
4193 * exec.c (exec_set_section_address): Likewise.
4194 * solib-aix.c (solib_aix_bfd_open): Likewise.
4195 * stap-probe.c (get_stap_base_address): Likewise.
4196 * symfile.c (reread_symbols): Likewise.
4197
4198 2020-05-19 Tom Tromey <tromey@adacore.com>
4199
4200 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4201
4202 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4203
4204 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4205
4206 2020-05-19 Pedro Alves <palves@redhat.com>
4207
4208 * NEWS (set exec-file-mismatch): Adjust entry.
4209 * exec.c: Include "build-id.h".
4210 (validate_exec_file): Try to match build IDs instead of filenames.
4211 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4212 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4213 and pass down 'warn_if_slow'.
4214 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4215 gdb_bfd_open_closure to pass it down.
4216 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4217
4218 2020-05-19 Pedro Alves <palves@redhat.com>
4219
4220 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4221 * target.c (target_fileio_open_1): Rename to target_fileio_open
4222 and make extern. Use bool.
4223 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4224 (target_fileio_read_alloc_1): Adjust.
4225 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4226 (target_fileio_open_warn_if_slow): Delete declaration.
4227
4228 2020-05-19 Pedro Alves <palves@redhat.com>
4229
4230 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4231 Adjust all callers.
4232
4233 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4234
4235 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4236 whether disp is negative.
4237
4238 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4239
4240 * symfile.h (struct symfile_segment_data)
4241 <~symfile_segment_data>: Remove.
4242 <segment_info>: Change to std::vector.
4243 * symfile.c (default_symfile_segments): Update.
4244 * elfread.c (elf_symfile_segments): Update.
4245
4246 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4247
4248 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4249 <segments>: New.
4250 <segment_bases, segment_sizes>: Remove.
4251 * symfile.c (default_symfile_segments): Update.
4252 * elfread.c (elf_symfile_segments): Update.
4253 * remote.c (remote_target::get_offsets): Update.
4254 * solib-target.c (solib_target_relocate_section_addresses):
4255 Update.
4256
4257 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4258
4259 * symfile.h (struct symfile_segment_data): Initialize fields.
4260 <~symfile_segment_data>: Add.
4261 (symfile_segment_data_up): New.
4262 (struct sym_fns) <sym_segments>: Return a
4263 symfile_segment_data_up.
4264 (default_symfile_segments): Return a symfile_segment_data_up.
4265 (free_symfile_segment_data): Remove.
4266 (get_symfile_segment_data): Return a symfile_segment_data_up.
4267 * symfile.c (default_symfile_segments): Likewise.
4268 (get_symfile_segment_data): Likewise.
4269 (free_symfile_segment_data): Remove.
4270 (symfile_find_segment_sections): Update.
4271 * elfread.c (elf_symfile_segments): Return a
4272 symfile_segment_data_up.
4273 * remote.c (remote_target::get_offsets): Update.
4274 * solib-target.c (solib_target_relocate_section_addresses):
4275 Update.
4276 * symfile-debug.c (debug_sym_segments): Return a
4277 symfile_segment_data_up.
4278
4279 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4280
4281 PR build/25981
4282 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4283 Hardcode register numbers.
4284
4285 PR build/25981
4286 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4287 procfs_find_LDT_entry): Remove.
4288 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4289 procfs_find_LDT_entry): Remove.
4290 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4291 Remove.
4292
4293 2020-05-17 Pedro Alves <palves@redhat.com>
4294 Andrew Burgess <andrew.burgess@embecosm.com>
4295 Keno Fischer <keno@juliacomputing.com>
4296
4297 PR gdb/25741
4298 * breakpoint.c (build_target_condition_list): Update comments.
4299 (build_target_command_list): Update comments and skip matching
4300 locations.
4301 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4302 a separate function. Simplify "set breakpoint auto-hw off"
4303 handling.
4304 (insert_breakpoints): Update comment.
4305 (tracepoint_locations_match): New parameter. For breakpoints,
4306 compare location types too, if the caller wants to.
4307 (handle_automatic_hardware_breakpoints): New functions.
4308 (bp_location_is_less_than): Also sort by location type and
4309 hardware breakpoint length.
4310 (update_global_location_list): Handle "set breakpoint auto-hw on"
4311 here.
4312 (update_breakpoint_locations): Ask breakpoint_locations_match to
4313 ignore location types.
4314
4315 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4316
4317 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4318 type::name instead.
4319
4320 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * gdbtypes.h (struct type) <name, set_name>: New methods.
4323 (TYPE_CODE): Use type::name. Change all call sites used to set
4324 the name to use type::set_name instead.
4325
4326 2020-05-16 Tom Tromey <tom@tromey.com>
4327
4328 * top.c (quit_force): Update.
4329 * infrun.c (handle_no_resumed): Update.
4330 * top.h (all_uis): New function.
4331 (ALL_UIS): Remove.
4332
4333 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4334
4335 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4336
4337 2020-05-16 Pedro Alves <palves@redhat.com>
4338
4339 * ia64-linux-nat.c
4340 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4341 Declare method.
4342 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4343
4344 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4345
4346 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4347 (sparc64_adi_info): Likewise.
4348
4349 2020-05-15 Tom Tromey <tom@tromey.com>
4350
4351 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4352 block_objfile.
4353 (lookup_objfile_from_block): Remove.
4354 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4355 (lookup_global_symbol): Use block_objfile.
4356 * symtab.h (lookup_objfile_from_block): Don't declare.
4357 * printcmd.c (clear_dangling_display_expressions): Use
4358 block_objfile.
4359 * parse.c (operator_check_standard): Use block_objfile.
4360
4361 2020-05-15 Tom Tromey <tom@tromey.com>
4362
4363 * language.c (language_alloc_type_symbol): Set
4364 SYMBOL_SECTION.
4365 * symtab.c (initialize_objfile_symbol): Remove.
4366 (allocate_symbol): Remove.
4367 (allocate_template_symbol): Remove.
4368 * dwarf2/read.c (fixup_go_packaging): Use "new".
4369 (new_symbol): Use "new".
4370 (read_variable): Don't call initialize_objfile_symbol. Use
4371 "new".
4372 (read_func_scope): Use "new".
4373 * xcoffread.c (process_xcoff_symbol): Don't call
4374 initialize_objfile_symbol.
4375 (SYMBOL_DUP): Remove.
4376 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4377 "new".
4378 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4379 (allocate_template_symbol): Don't declare.
4380 (struct symbol): Add copy constructor. Change defaults.
4381 * jit.c (finalize_symtab): Use "new".
4382 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4383 Use "new".
4384 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4385 (common_block_end): Use "new".
4386 * mdebugread.c (parse_symbol): Use "new".
4387 (new_symbol): Likewise.
4388
4389 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4390
4391 * NEWS: Mention changes to help and apropos.
4392
4393 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4394
4395 * command.h (enum command_class): Improve comments, document
4396 that class_alias is for user-defined aliases, give the class
4397 name for each class, remove unused class_xdb.
4398 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4399 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4400 by a precise class.
4401 * infcmd.c (_initialize_infcmd): Likewise.
4402 * reverse.c (_initialize_reverse): Likewise.
4403 * stack.c (_initialize_stack): Likewise.
4404 * symfile.c (_initialize_symfile): Likewise.
4405 * tracepoint.c (_initialize_tracepoint): Likewise.
4406
4407 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4408
4409 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4410 when their aliased command is traversed.
4411 (help_cmd): Add fput_command_names_styled call to
4412 output command name and aliases when command has an alias.
4413
4414 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4415
4416 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4417 * cli/cli-decode.c (help_cmd_list): Declare as static,
4418 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4419 a command together with the command.
4420 (fput_command_name_styled, fput_command_names_styled): New functions.
4421 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4422 fput_command_name_styled.
4423 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4424 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4425
4426 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4427
4428 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4429 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4430 * command.h (cmd_show_list): Likewise.
4431 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4432 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4433
4434 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4435
4436 * unittests/command-def-selftests.c (traverse_command_structure):
4437 Verify all commands of a list have the same prefix command and
4438 that only the top cmdlist commands have a null prefix.
4439
4440 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4441
4442 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4443 as prefix, not one of its aliases.
4444 (set_cmd_prefix): Remove.
4445 (do_add_cmd): Centralize the setting of the prefix of a command, when
4446 command is defined after its full chain of prefix commands.
4447 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4448 (add_setshow_cmd_full): Likewise.
4449 (update_prefix_field_of_prefixed_commands): New function.
4450 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4451 update_prefix_field_of_prefixed_commands.
4452 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4453 addresses of remote_set_cmdlist and remote_show_cmdlist given
4454 as argument, not the address of an argument.
4455 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4456 * gdb/remote.c (_initialize_remote): Likewise.
4457
4458 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4459
4460 * cli/cli-cmds.c (alias_command): Check for an existing alias
4461 using lookup_cmd_composition, as valid_command_p is too strict
4462 and forbids aliases that are the prefix of an existing alias
4463 or command.
4464 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4465 command is properly recognised as a valid command.
4466
4467 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4468
4469 * unittests/help-doc-selftests.c: Rename to
4470 unittests/command-def-selftests.c
4471 * unittests/command-def-selftests.c (help_doc_tests): Update some
4472 comments.
4473 (command_structure_tests, traverse_command_structure): New namespace
4474 and function.
4475 (command_structure_invariants_tests): New function.
4476 (_initialize_command_def_selftests) Renamed from
4477 _initialize_help_doc_selftests, register command_structure_invariants
4478 selftest.
4479
4480 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4481
4482 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4483 an alias of 'show'.
4484
4485 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4486
4487 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4488 ada_is_fixed_point_type. Update all callers.
4489 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4490 all callers.
4491 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4492 Update all callers.
4493 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4494 print_fixed_point_type. Update all callers.
4495 * ada-valprint.c (ada_value_print_num): Replace call to
4496 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4497
4498 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4499
4500 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4501 processors.
4502 (cpu_supports_bts): Add CV_AMD case.
4503
4504 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4505 Simon Marchi <simon.marchi@efficios.com>
4506
4507 * infrun.c (stop_all_threads): Collect multiple wait events at
4508 each pass.
4509
4510 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4511
4512 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4513 type::code instead.
4514
4515 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4516
4517 * gdbtypes.h (struct type) <code, set_code>: New methods.
4518 (TYPE_CODE): Use type::code. Change all call sites used to set
4519 the code to use type::set_code instead.
4520
4521 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4522 Tom de Vries <tdevries@suse.de>
4523 Pedro Alves <palves@redhat.com>
4524
4525 PR threads/25478
4526 * infrun.c (stop_all_threads): Do NOT ignore
4527 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4528 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4529 received.
4530 (handle_no_resumed): Remove code handling a live inferior with no
4531 threads.
4532 * remote.c (has_single_non_exited_thread): New.
4533 (remote_target::update_thread_list): Do not delete a thread if is
4534 the last thread of the process.
4535 * thread.c (thread_select): Call delete_exited_threads instead of
4536 prune_threads.
4537
4538 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4539
4540 * infrun.c (stop_all_threads): Enable/disable thread events of all
4541 targets. Move a debug message denoting the end of the function
4542 into the SCOPED_EXIT block.
4543
4544 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4545
4546 * process-stratum-target.h: Include <set>.
4547 (all_non_exited_process_targets, switch_to_target_no_thread): New
4548 function declarations.
4549 * process-stratum-target.c (all_non_exited_process_targets)
4550 (switch_to_target_no_thread): New function implementations.
4551
4552 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4553
4554 * infrun.c (handle_inferior_event): Extract out a piece of code
4555 into...
4556 (mark_non_executing_threads): ...this new function.
4557
4558 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4559
4560 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4561 use.
4562
4563 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4564
4565 * regcache.c (regcache_read_pc_protected): New function
4566 implementation that returns 0 if the PC cannot read via
4567 'regcache_read_pc'.
4568 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4569 instead of 'regcache_read_pc'.
4570 (keep_going_pass_signal): Ditto.
4571
4572 2020-05-13 Tom Tromey <tromey@adacore.com>
4573
4574 * ada-lang.c (align_value): Remove.
4575 (ada_template_to_fixed_record_type_1): Use align_up.
4576
4577 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4578
4579 * async-event.c: Update the copyright year.
4580 * async-event.h: Update the copyright year.
4581
4582 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4583
4584 * objfiles.h (is_addr_in_objfile,
4585 shared_objfile_contains_address_p): Return bool.
4586 * objfile.c (is_addr_in_objfile,
4587 shared_objfile_contains_address_p): Return bool.
4588
4589 2020-05-11 Tom Tromey <tromey@adacore.com>
4590
4591 * cli/cli-cmds.c (info_command): Restore.
4592 (_initialize_cli_cmds): Use add_prefix_command for "info".
4593 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4594
4595 2020-05-11 Tom Tromey <tromey@adacore.com>
4596
4597 * ada-lang.c (ada_value_primitive_field): Now public.
4598 * ada-lang.h (ada_value_primitive_field): Declare.
4599 * ada-valprint.c (print_field_values): Use
4600 ada_value_primitive_field for wrapper fields.
4601
4602 2020-05-11 Tom de Vries <tdevries@suse.de>
4603
4604 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4605 MODULE_DOMAIN.
4606
4607 2020-05-11 Tom de Vries <tdevries@suse.de>
4608
4609 PR symtab/25941
4610 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4611 with length 0, if not gdb-produced.
4612 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4613
4614 2020-05-09 Tom de Vries <tdevries@suse.de>
4615
4616 PR gdb/25955
4617 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4618 calculation.
4619
4620 2020-05-09 Tom Tromey <tom@tromey.com>
4621
4622 * top.c (server_command): Now bool.
4623 * top.h (server_command): Now bool.
4624
4625 2020-05-08 Tom Tromey <tromey@adacore.com>
4626
4627 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4628 already being processed.
4629
4630 2020-05-08 Tom Tromey <tom@tromey.com>
4631
4632 * printcmd.c (struct display) <next>: Remove.
4633 <display>: New constructor.
4634 <exp_string>: Now a std::string.
4635 <enabled_p>: Now a bool.
4636 (display_number): Move definition earlier.
4637 (displays): Rename from display_chain. Now a std::vector.
4638 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4639 (display_command): Update.
4640 (do_one_display, disable_display)
4641 (enable_disable_display_command, do_enable_disable_display):
4642 Update.
4643 (free_display): Remove.
4644 (clear_displays): Rewrite.
4645 (delete_display): Update.
4646 (map_display_numbers): Use function_view. Remove "data"
4647 parameter. Update.
4648 (do_delete_display): Remove.
4649 (undisplay_command): Update.
4650 (do_one_display, do_displays, disable_display)
4651 (info_display_command): Update.
4652 (do_enable_disable_display): Remove.
4653 (enable_disable_display_command)
4654 (clear_dangling_display_expressions): Update.
4655
4656 2020-05-08 Tom Tromey <tom@tromey.com>
4657
4658 * symtab.c (set_symbol_cache_size)
4659 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4660 (maintenance_print_symbol_cache_statistics): Update.
4661 * symmisc.c (print_symbol_bcache_statistics)
4662 (print_objfile_statistics, maintenance_print_objfiles)
4663 (maintenance_info_symtabs, maintenance_check_symtabs)
4664 (maintenance_expand_symtabs, maintenance_info_line_tables):
4665 Update.
4666 * symfile-debug.c (set_debug_symfile): Update.
4667 * source.c (forget_cached_source_info): Update.
4668 * python/python.c (gdbpy_progspaces): Update.
4669 * psymtab.c (maintenance_info_psymtabs): Update.
4670 * probe.c (parse_probes): Update.
4671 * linespec.c (iterate_over_all_matching_symtabs)
4672 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4673 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4674 * exec.c (exec_target::close): Update.
4675 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4676 * breakpoint.c (print_one_breakpoint_location)
4677 (create_longjmp_master_breakpoint)
4678 (create_std_terminate_master_breakpoint): Update.
4679 * progspace.c (program_spaces): Now a std::vector.
4680 (maybe_new_address_space): Update.
4681 (add_program_space): Remove.
4682 (program_space::program_space): Update.
4683 (remove_program_space): Update.
4684 (number_of_program_spaces): Remove.
4685 (print_program_space, update_address_spaces): Update.
4686 * progspace.h (program_spaces): Change type.
4687 (ALL_PSPACES): Remove.
4688 (number_of_program_spaces): Don't declare.
4689 (struct program_space) <next>: Remove.
4690
4691 2020-05-08 Tom Tromey <tom@tromey.com>
4692
4693 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4694 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4695 (enable_break): Update.
4696 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4697 (frv_fdpic_find_canonical_descriptor): Update.
4698 (frv_fetch_objfile_link_map): Update.
4699 * progspace.c (program_space::free_all_objfiles): Update.
4700 (program_space::solibs): New method.
4701 * progspace.h (struct program_space) <solibs>: New method.
4702 * solist.h (master_so_list): Don't declare.
4703 (ALL_SO_LIBS): Remove.
4704 * solib.h (so_list_head): Remove.
4705 (update_solib_list): Update comment.
4706 * solib.c (master_so_list): Remove.
4707 (solib_used, update_solib_list, solib_add)
4708 (info_sharedlibrary_command, clear_solib)
4709 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4710
4711 2020-05-08 Tom Tromey <tom@tromey.com>
4712
4713 * extension.c (extension_languages): Now a std::array.
4714 (ALL_EXTENSION_LANGUAGES): Remove.
4715 (get_ext_lang_defn, get_ext_lang_of_file)
4716 (eval_ext_lang_from_control_command): Update.
4717 (finish_ext_lang_initialization)
4718 (auto_load_ext_lang_scripts_for_objfile)
4719 (ext_lang_type_printers::ext_lang_type_printers)
4720 (apply_ext_lang_type_printers)
4721 (ext_lang_type_printers::~ext_lang_type_printers)
4722 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4723 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4724 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4725 (get_matching_xmethod_workers, ext_lang_colorize)
4726 (ext_lang_before_prompt): Update.
4727 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4728
4729 2020-05-08 Tom Tromey <tom@tromey.com>
4730
4731 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4732 overload.
4733 <swap_string, m_string>: Remove.
4734 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4735 Update.
4736 * stabsread.c (define_symbol, read_type): Update.
4737 * linespec.c (find_linespec_symbols): Update.
4738 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4739 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4740 * dbxread.c (read_dbx_symtab): Update.
4741 * cp-support.h (cp_canonicalize_string_full)
4742 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4743 Return unique_xmalloc_ptr.
4744 * cp-support.c (inspect_type): Update.
4745 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4746 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4747 Likewise.
4748 * c-typeprint.c (print_name_maybe_canonical): Update.
4749 * break-catch-throw.c (check_status_exception_catchpoint):
4750 Update.
4751
4752 2020-05-08 Tom de Vries <tdevries@suse.de>
4753
4754 * infrun.c (follow_fork): Copy current_line and current_symtab to
4755 child thread.
4756
4757 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * async-event.c (struct async_signal_handler, struct
4760 async_event_handler): Reformat, remove typedef.
4761
4762 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4765 access thistype->main_type->dyn_prop_list directly.
4766
4767 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4768
4769 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4770 (remove_dyn_prop): Remove. Update all users to use
4771 type::remove_dyn_prop.
4772 * gdbtypes.c (remove_dyn_prop): Rename to...
4773 (type::remove_dyn_prop): ... this.
4774
4775 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4776
4777 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4778 (add_dyn_prop): Remove. Update all users to use
4779 type::add_dyn_prop.
4780 * gdbtypes.c (add_dyn_prop): Rename to...
4781 (type::add_dyn_prop): ... this.
4782
4783 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4784
4785 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4786 (get_dyn_prop): Remove. Update all users to use
4787 type::dyn_prop.
4788 * gdbtypes.c (get_dyn_prop): Rename to...
4789 (type::dyn_prop): ... this.
4790
4791 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4794
4795 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4796
4797 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4798 instruction, skip it if it's there.
4799
4800 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4801
4802 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4803
4804 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4805
4806 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4807 * gdbtypes.c (recursive_dump_type): Remove use of
4808 TYPE_INCOMPLETE.
4809
4810 2020-05-03 Tom Tromey <tom@tromey.com>
4811
4812 * breakpoint.c (catch_command, tcatch_command): Remove.
4813 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4814 add_show_prefix_cmd.
4815 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4816 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4817 Remove.
4818 (add_internal_problem_command): Use add_basic_prefix_cmd,
4819 add_show_prefix_cmd.
4820 * mips-tdep.c (set_mipsfpu_command): Remove.
4821 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4822 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4823 (_initialize_index_cache): Use add_basic_prefix_cmd.
4824 * memattr.c (dummy_cmd): Remove.
4825 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4826 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4827 (_initialize_tui_win): Use add_basic_prefix_cmd,
4828 add_show_prefix_cmd.
4829 * cli/cli-logging.c (set_logging_command): Remove.
4830 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4831 add_show_prefix_cmd.
4832 (show_logging_command): Remove.
4833 * target.c (target_command): Remove.
4834 (add_target): Use add_basic_prefix_cmd.
4835
4836 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4837
4838 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4839
4840 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4841
4842 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4843 info_command.
4844
4845 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4846
4847 * nbsd-nat.c (nbsd_enable_proc_events)
4848 (nbsd_nat_target::post_startup_inferior): Add.
4849 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4850 (nbsd_nat_target::update_thread_list): Rewrite.
4851 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4852 "PTRACE_LWP_CREATE".
4853 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4854
4855 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4856
4857 * stack.c (_initialize_stack): Remove duplicated creation
4858 of "frame" command and "f" alias.
4859
4860 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4861
4862 PR gdb/18706
4863 * gdbtypes.c (check_typedef): Calculate size of array of
4864 stubbed type.
4865
4866 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4867
4868 PR gdb/15559
4869 * i386-tdep.c (i386_push_dummy_call): Call
4870 i386_thiscall_push_dummy_call.
4871 (i386_thiscall_push_dummy_call): New function.
4872 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4873 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4874 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4875
4876 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4877
4878 * gdbarch.sh (do_read): Add shellcheck disable directive for
4879 warning SC2162.
4880
4881 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4884 "referenced but not assigned" warning.
4885
4886 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * gdbarch.sh: Remove code that sets fallbackdefault.
4889
4890 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * gdbarch.sh: Use shell operators && and || instead of
4893 -a and -o.
4894
4895 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * gdbarch.sh: Use $(...) instead of `...`.
4898
4899 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4900
4901 * gdbarch.sh: Use double quotes around variables.
4902
4903 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * gdbarch.sh: Use %s with printf, instead of variables in the
4906 format string.
4907
4908 2020-04-29 Tom Tromey <tromey@adacore.com>
4909
4910 PR ada/25875:
4911 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4912 type fields here.
4913 (read_enumeration_type): Call
4914 update_enumeration_type_from_children later. Update comments.
4915 (process_enumeration_scope): Don't create type fields.
4916
4917 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4918
4919 * nbsd-tdep.c: Include "xml-syscall.h".
4920 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4921
4922 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4923
4924 * nbsd-nat.c: Include "sys/wait.h".
4925 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4926 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4927 (nbsd_nat_target::remove_exec_catchpoint)
4928 (nbsd_nat_target::set_syscall_catchpoint): Add.
4929 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4930 (nbsd_nat_target::insert_exec_catchpoint)
4931 (nbsd_nat_target::remove_exec_catchpoint)
4932 (nbsd_nat_target::set_syscall_catchpoint): Add.
4933 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4934 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4935 `nbsd_get_syscall_number'.
4936
4937 2020-04-29 Tom Tromey <tom@tromey.com>
4938
4939 * stack.c (print_block_frame_labels): Remove.
4940
4941 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4942
4943 PR gdb/17320
4944 * ada-valprint.c (val_print_packed_array_elements): Move array
4945 end bracket to new line.
4946 (ada_val_print_string): Remove extra spaces before first array
4947 element.
4948 * c-valprint.c (c_value_print_array): Likewise.
4949 * m2-valprint.c (m2_print_array_contents): Likewise.
4950 (m2_value_print_inner): Likewise.
4951 * p-valprint.c (pascal_value_print_inner): Likewise.
4952 * valprint.c (generic_val_print_array): Likewise.
4953 (value_print_array_elements): Move first array element and array
4954 end bracket to new line.
4955
4956 2020-04-29 Tom de Vries <tdevries@suse.de>
4957
4958 PR symtab/25889
4959 * linespec.c (find_method): Fix ix calculation.
4960
4961 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4962
4963 * syscalls/update-netbsd.sh: New file.
4964 * syscalls/netbsd.xml: Regenerate.
4965 * data-directory/Makefile.in: Register `netbsd.xml' in
4966 `SYSCALLS_FILES'.
4967
4968 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4969
4970 * syscalls/update-freebsd.sh: Add double quotes.
4971
4972 2020-04-28 Tom Tromey <tom@tromey.com>
4973
4974 * NEWS: Update.
4975 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4976 (cmdpy_init): Allow class_tui.
4977
4978 2020-04-28 Mark Williams <mark@myosotissp.com>
4979
4980 PR gdb/24480
4981 * dwarf2read.c: Add missing assingments to list_in_scope when
4982 start_symtab was already called.
4983
4984 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4985
4986 PR gdb/25881
4987 * dwarf2/read.c (offset_map_type): Use
4988 gdb:hash_enum<sect_offset> as hash function.
4989
4990 2020-04-28 Tom de Vries <tdevries@suse.de>
4991
4992 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4993 with DW_AT_signature.
4994
4995 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4996
4997 * configure.ac: Remove check for fs_base/gs_base in
4998 user_regs_struct.
4999 * configure: Re-generate.
5000 * config.in: Re-generate.
5001 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5002 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5003 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5004
5005 2020-04-27 Luis Machado <luis.machado@linaro.org>
5006
5007 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5008 problematic inline frame unwinding situation.
5009 * frame.c (frame_id_computed_p): New function.
5010 * frame.h (frame_id_computed_p): New prototype.
5011
5012 2020-04-26 Tom Tromey <tom@tromey.com>
5013
5014 * command.h (enum command_class) <class_pseudo>: Remove.
5015
5016 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5017
5018 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5019 and whitespace.
5020
5021 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5022
5023 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5024 `PT_GET_PROCESS_STATE' block.
5025
5026 2020-04-24 Tom Tromey <tom@tromey.com>
5027
5028 * symtab.h (symbol_get_demangled_name): Don't declare.
5029 * symtab.c (symbol_get_demangled_name): Remove.
5030 (general_symbol_info::natural_name)
5031 (general_symbol_info::demangled_name): Update.
5032
5033 2020-04-24 Tom Tromey <tom@tromey.com>
5034
5035 PR rust/25025:
5036 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5037
5038 2020-04-24 Tom Tromey <tom@tromey.com>
5039
5040 PR symtab/12707:
5041 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5042 exists.
5043 (new_symbol): Likewise.
5044 * compile/compile-object-load.c (get_out_value_type): Use
5045 symbol_matches_search_name.
5046
5047 2020-04-24 Tom Tromey <tom@tromey.com>
5048
5049 * dwarf2/read.c (add_partial_symbol): Do not call
5050 compute_and_set_names.
5051
5052 2020-04-24 Tom Tromey <tom@tromey.com>
5053
5054 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5055 overload.
5056
5057 2020-04-24 Tom Tromey <tom@tromey.com>
5058
5059 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5060 (add_psymbol_to_list): New overload. Make old overload call new
5061 one.
5062 * psympriv.h (add_psymbol_to_list): New overload.
5063
5064 2020-04-24 Tom Tromey <tom@tromey.com>
5065
5066 * dwarf2/read.c (partial_die_info::read) <case
5067 DW_AT_linkage_name>: Use value_as_string.
5068 (dwarf2_string_attr): Use value_as_string.
5069 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5070 method.
5071 * dwarf2/attribute.c (attribute::value_as_string): New method.
5072
5073 2020-04-24 Tom Tromey <tom@tromey.com>
5074
5075 * symtab.c (general_symbol_info::natural_name)
5076 (general_symbol_info::demangled_name): Check for language_rust.
5077
5078 2020-04-24 Tom Tromey <tom@tromey.com>
5079
5080 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5081 (dwarf2_physname): ... from here.
5082 (partial_die_info::read): Add Rust "{" hack.
5083
5084 2020-04-24 Tom Tromey <tom@tromey.com>
5085
5086 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5087 method.
5088 (symbol_set_demangled_name): Don't declare.
5089 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5090 symbol_set_demangled_name.
5091 (general_symbol_info::set_language)
5092 (general_symbol_info::compute_and_set_names): Update.
5093 * minsyms.c (minimal_symbol_reader::install): Update.
5094 * dwarf2/read.c (new_symbol): Update.
5095
5096 2020-04-24 Tom Tromey <tromey@adacore.com>
5097
5098 PR python/23662:
5099 * python/py-type.c (convert_field): Handle
5100 FIELD_LOC_KIND_DWARF_BLOCK.
5101 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5102 (typy_get_dynamic): Nw function.
5103 (type_object_getset): Add "dynamic".
5104 * NEWS: Add entry.
5105
5106 2020-04-24 Tom Tromey <tromey@adacore.com>
5107
5108 * ada-typeprint.c (print_choices, print_variant_part)
5109 (print_record_field_types_dynamic): New functions.
5110 (print_record_field_types): Use print_record_field_types_dynamic.
5111
5112 2020-04-24 Tom Tromey <tromey@adacore.com>
5113
5114 * dwarf2/read.c (handle_data_member_location): New overload.
5115 (dwarf2_add_field): Use it.
5116 (decode_locdesc): Add "computed" parameter. Update comment.
5117 * gdbtypes.c (is_dynamic_type_internal): Also look for
5118 FIELD_LOC_KIND_DWARF_BLOCK.
5119 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5120 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5121 virtual base classes.
5122 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5123 FIELD_LOC_KIND_DWARF_BLOCK.
5124
5125 2020-04-24 Tom Tromey <tromey@adacore.com>
5126
5127 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5128 * gdbtypes.c (is_dynamic_type_internal): Check
5129 TYPE_HAS_DYNAMIC_LENGTH.
5130 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5131 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5132 New macros.
5133 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5134 constant.
5135
5136 2020-04-24 Tom Tromey <tromey@adacore.com>
5137
5138 * dwarf2/read.c (struct variant_field): Rewrite.
5139 (struct variant_part_builder): New.
5140 (struct nextfield): Remove "variant" field. Add "offset".
5141 (struct field_info): Add "current_variant_part" and
5142 "variant_parts".
5143 (alloc_discriminant_info): Remove.
5144 (alloc_rust_variant): New function.
5145 (quirk_rust_enum): Update.
5146 (dwarf2_add_field): Set "offset" member. Don't handle
5147 DW_TAG_variant_part.
5148 (offset_map_type): New typedef.
5149 (convert_variant_range, create_one_variant)
5150 (create_one_variant_part, create_variant_parts)
5151 (add_variant_property): New functions.
5152 (dwarf2_attach_fields_to_type): Call add_variant_property.
5153 (read_structure_type): Don't handle DW_TAG_variant_part.
5154 (handle_variant_part, handle_variant): New functions.
5155 (handle_struct_member_die): Use them.
5156 (process_structure_scope): Don't handle variant parts.
5157 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5158 (struct discriminant_info): Remove.
5159 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5160 (struct main_type) <flag_discriminated_union>: Remove.
5161 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5162 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5163 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5164 Update.
5165 * valops.c (value_union_variant): Remove.
5166 * value.h (value_union_variant): Don't declare.
5167
5168 2020-04-24 Tom Tromey <tromey@adacore.com>
5169
5170 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5171 (ada_value_primitive_packed_val): Update.
5172 * ada-valprint.c (ada_value_print_1): Update.
5173 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5174 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5175 just an address. Use evaluate_for_locexpr_baton.
5176 (dwarf2_evaluate_property): Update.
5177 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5178 array_view.
5179 * findvar.c (default_read_var_value): Update.
5180 * gdbtypes.c (compute_variant_fields_inner)
5181 (resolve_dynamic_type_internal): Update.
5182 (resolve_dynamic_type): Change type of valaddr parameter.
5183 * gdbtypes.h (resolve_dynamic_type): Update.
5184 * valarith.c (value_subscripted_rvalue): Update.
5185 * value.c (value_from_contents_and_address): Update.
5186
5187 2020-04-24 Tom Tromey <tromey@adacore.com>
5188
5189 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5190 "push_initial_value" parameter.
5191 (dwarf2_evaluate_property): Likewise.
5192 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5193
5194 2020-04-24 Tom Tromey <tromey@adacore.com>
5195
5196 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5197 (variant::matches, compute_variant_fields_recurse)
5198 (compute_variant_fields_inner, compute_variant_fields): New
5199 functions.
5200 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5201 Use resolved_type after type is made.
5202 (operator==): Add new cases.
5203 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5204 (struct discriminant_range, struct variant, struct variant_part):
5205 New.
5206 (union dynamic_prop_data) <variant_parts, original_type>: New
5207 members.
5208 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5209 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5210 constants.
5211 * value.c (unpack_bits_as_long): Now public.
5212 * value.h (unpack_bits_as_long): Declare.
5213
5214 2020-04-24 Tom Tromey <tromey@adacore.com>
5215
5216 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5217 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5218
5219 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5220
5221 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5222
5223 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5224
5225 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5226 (remove_fork_catchpoint, post_startup_inferior)
5227 (post_attach): Move...
5228 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5229 (remove_fork_catchpoint, post_startup_inferior)
5230 (post_attach): ...here.
5231 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5232 (remove_fork_catchpoint, post_startup_inferior)
5233 (post_attach): Move...
5234 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5235 (remove_fork_catchpoint, post_startup_inferior)
5236 (post_attach): ...here.
5237
5238 2020-04-24 Tom Tromey <tromey@adacore.com>
5239
5240 * nat/windows-nat.h (struct windows_thread_info)
5241 <pc_adjusted>: New member.
5242 * windows-nat.c (windows_fetch_one_register): Check
5243 pc_adjusted.
5244 (windows_nat_target::get_windows_debug_event)
5245 (windows_nat_target::wait): Set pc_adjusted.
5246
5247 2020-04-24 Tom de Vries <tdevries@suse.de>
5248
5249 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5250 Run gdb-add-index inside temp dir.
5251
5252 2020-04-23 Tom Tromey <tromey@adacore.com>
5253
5254 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5255 in loop.
5256
5257 2020-04-23 Luis Machado <luis.machado@linaro.org>
5258
5259 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5260 get_frame_register instead of gdbarch_unwind_pc.
5261
5262 2020-04-23 Tom de Vries <tdevries@suse.de>
5263
5264 * symtab.c (lookup_global_symbol): Prefer def over decl.
5265
5266 2020-04-23 Tom de Vries <tdevries@suse.de>
5267
5268 PR symtab/25807
5269 * block.c (best_symbol, better_symbol): Promote to external.
5270 * block.h (best_symbol, better_symbol): Declare.
5271 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5272 decl.
5273
5274 2020-04-23 Tom Tromey <tromey@adacore.com>
5275
5276 PR ada/25837:
5277 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5278 "const char *", not a "const std::string &".
5279 <name_and_matcher::operator==>: Update.
5280 * unittests/lookup_name_info-selftests.c: Change type of
5281 "result".
5282
5283 2020-04-23 Tom Tromey <tom@tromey.com>
5284
5285 * inferior.h (iterate_over_inferiors): Don't declare.
5286 * inferior.c (iterate_over_inferiors): Remove.
5287 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5288 Remove.
5289 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5290 use iterate_over_inferiors.
5291 (darwin_resume_inferior_it)
5292 (struct resume_inferior_threads_param)
5293 (darwin_resume_inferior_threads_it): Remove.
5294 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5295
5296 2020-04-23 Tom de Vries <tdevries@suse.de>
5297
5298 * blockframe.c (find_pc_partial_function): Use
5299 find_pc_sect_compunit_symtab rather than
5300 objfile->sf->qf->find_pc_sect_compunit_symtab.
5301
5302 2020-04-22 Tom de Vries <tdevries@suse.de>
5303
5304 PR symtab/25764
5305 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5306 in psymtabs.
5307
5308 2020-04-22 Tom de Vries <tdevries@suse.de>
5309
5310 PR symtab/25801
5311 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5312 symtabs.
5313
5314 2020-04-22 Tom de Vries <tdevries@suse.de>
5315
5316 PR symtab/25700
5317 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5318 CU if already created.
5319
5320 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5321
5322 * infrun.c (displaced_step_fixup): Switch to the event_thread
5323 before calling displaced_step_restore, not after.
5324
5325 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5326
5327 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5328 its inferior is not recorded by us.
5329 (record_btrace_target_open): Replace call to
5330 all_non_exited_threads () with call to current_inferior
5331 ()->non_exited_threads ().
5332 (record_btrace_target::stop_recording): Likewise.
5333 (record_btrace_target::close): Likewise.
5334 (record_btrace_target::wait): Likewise.
5335 (record_btrace_target::record_stop_replaying): Likewise.
5336
5337 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5338
5339 * btrace.c (btrace_enable): Throw an error on double enables and
5340 when enabling recording fails.
5341 (btrace_disable): Throw an error if the thread is not recorded.
5342
5343 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5344
5345 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5346 request if we do not have a thread_info.
5347
5348 2020-04-21 Tom de Vries <tdevries@suse.de>
5349
5350 PR gdb/25471
5351 * thread.c
5352 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5353 exception in get_frame_id.
5354
5355 2020-04-20 Tom Tromey <tromey@adacore.com>
5356
5357 * python/python.c (struct gdbpy_event): Mark move constructor as
5358 noexcept.
5359 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5360 constructor as noexcept.
5361 * completer.h (struct completion_result): Mark move constructor as
5362 noexcept.
5363 * completer.c (completion_result::completion_result): Use
5364 initialization style. Don't call reset_match_list.
5365
5366 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5367
5368 * MAINTAINERS (Write After Approval): Add myself.
5369
5370 2020-04-18 Tom Tromey <tom@tromey.com>
5371
5372 * windows-tdep.c (init_w32_command_list)
5373 (w32_prefix_command_valid): Restore.
5374 (_initialize_windows_tdep): Call init_w32_command_list.
5375
5376 2020-04-18 Tom Tromey <tom@tromey.com>
5377
5378 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5379 * value.c (value_fn_field): Update.
5380 * valops.c (find_function_in_inferior)
5381 (value_allocate_space_in_inferior): Update.
5382 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5383 Update.
5384 * tui/tui-source.c (tui_source_window::set_contents): Update.
5385 * symtab.c (lookup_global_or_static_symbol)
5386 (find_function_start_sal_1, skip_prologue_sal)
5387 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5388 * symmisc.c (dump_msymbols, dump_symtab_1)
5389 (maintenance_print_one_line_table): Update.
5390 * symfile.c (init_entry_point_info, section_is_mapped)
5391 (list_overlays_command, simple_read_overlay_table)
5392 (simple_overlay_update_1): Update.
5393 * stap-probe.c (handle_stap_probe): Update.
5394 * stabsread.c (dbx_init_float_type, define_symbol)
5395 (read_one_struct_field, read_enum_type, read_range_type): Update.
5396 * source.c (info_line_command): Update.
5397 * python/python.c (gdbpy_source_objfile_script)
5398 (gdbpy_execute_objfile_script): Update.
5399 * python/py-type.c (save_objfile_types): Update.
5400 * python/py-objfile.c (py_free_objfile): Update.
5401 * python/py-inferior.c (python_new_objfile): Update.
5402 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5403 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5404 (maintenance_check_psymtabs): Update.
5405 * printcmd.c (info_address_command): Update.
5406 * objfiles.h (struct objfile) <arch>: New method, from
5407 get_objfile_arch.
5408 (get_objfile_arch): Don't declare.
5409 * objfiles.c (get_objfile_arch): Remove.
5410 (filter_overlapping_sections): Update.
5411 * minsyms.c (msymbol_is_function): Update.
5412 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5413 (output_nondebug_symbol): Update.
5414 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5415 (mdebug_expand_psymtab): Update.
5416 * machoread.c (macho_add_oso_symfile): Update.
5417 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5418 Update.
5419 * linux-fork.c (checkpoint_command): Update.
5420 * linespec.c (convert_linespec_to_sals): Update.
5421 * jit.c (finalize_symtab): Update.
5422 * infrun.c (insert_exception_resume_from_probe): Update.
5423 * ia64-tdep.c (ia64_find_unwind_table): Update.
5424 * hppa-tdep.c (internalize_unwinds): Update.
5425 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5426 Update.
5427 * gcore.c (call_target_sbrk): Update.
5428 * elfread.c (record_minimal_symbol, elf_symtab_read)
5429 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5430 (elf_gnu_ifunc_resolve_by_got): Update.
5431 * dwarf2/read.c (create_addrmap_from_index)
5432 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5433 (read_debug_names_from_section)
5434 (process_psymtab_comp_unit_reader, add_partial_symbol)
5435 (add_partial_subprogram, process_full_comp_unit)
5436 (read_file_scope, read_func_scope, read_lexical_block_scope)
5437 (read_call_site_scope, dwarf2_ranges_read)
5438 (dwarf2_record_block_ranges, dwarf2_add_field)
5439 (mark_common_block_symbol_computed, read_tag_pointer_type)
5440 (read_tag_string_type, dwarf2_init_float_type)
5441 (dwarf2_init_complex_target_type, read_base_type)
5442 (partial_die_info::read, partial_die_info::read)
5443 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5444 (dwarf2_fetch_die_loc_sect_off): Update.
5445 * dwarf2/loc.c (dwarf2_find_location_expression)
5446 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5447 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5448 (dwarf2_loc_desc_get_symbol_read_needs)
5449 (locexpr_describe_location_piece, locexpr_describe_location_1)
5450 (loclist_describe_location): Update.
5451 * dwarf2/index-write.c (write_debug_names): Update.
5452 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5453 * dtrace-probe.c (dtrace_process_dof): Update.
5454 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5455 (process_one_symbol): Update.
5456 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5457 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5458 (coff_read_enum_type): Update.
5459 * cli/cli-cmds.c (edit_command, list_command): Update.
5460 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5461 * breakpoint.c (create_overlay_event_breakpoint)
5462 (create_longjmp_master_breakpoint)
5463 (create_std_terminate_master_breakpoint)
5464 (create_exception_master_breakpoint, get_sal_arch): Update.
5465 * block.c (block_gdbarch): Update.
5466 * annotate.c (annotate_source_line): Update.
5467
5468 2020-04-17 Tom Tromey <tromey@adacore.com>
5469
5470 * auto-load.c (show_auto_load_cmd): Remove.
5471 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5472 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5473 (maintenance_print_arc_command): Remove.
5474 * tui/tui-win.c (tui_command): Remove.
5475 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5476 * tui/tui-layout.c (tui_layout_command): Remove.
5477 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5478 * python/python.c (user_set_python, user_show_python): Remove.
5479 (_initialize_python): Use add_basic_prefix_cmd,
5480 add_show_prefix_cmd.
5481 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5482 (install_gdb_commands): Use add_basic_prefix_cmd,
5483 add_show_prefix_cmd.
5484 (info_guile_command): Remove.
5485 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5486 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5487 add_show_prefix_cmd.
5488 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5489 Remove do_set and do_show parameters.
5490 * cli/cli-style.c (set_style, show_style): Remove.
5491 (_initialize_cli_style): Use add_basic_prefix_cmd,
5492 add_show_prefix_cmd.
5493 (cli_style_option::add_setshow_commands): Remove do_set and
5494 do_show parameters.
5495 (cli_style_option::add_setshow_commands): Use
5496 add_basic_prefix_cmd, add_show_prefix_cmd.
5497 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5498 (set_style_name): Remove.
5499 * cli/cli-dump.c (dump_command, append_command): Remove.
5500 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5501 (tekhex_dump_command, binary_dump_command)
5502 (binary_append_command): Remove.
5503 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5504 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5505 (init_w32_command_list): Remove; move into ...
5506 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5507 * valprint.c (set_print, show_print, set_print_raw)
5508 (show_print_raw): Remove.
5509 (_initialize_valprint): Use add_basic_prefix_cmd,
5510 add_show_prefix_cmd.
5511 * typeprint.c (set_print_type, show_print_type): Remove.
5512 (_initialize_typeprint): Use add_basic_prefix_cmd,
5513 add_show_prefix_cmd.
5514 * record.c (set_record_command, show_record_command): Remove.
5515 (_initialize_record): Use add_basic_prefix_cmd,
5516 add_show_prefix_cmd.
5517 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5518 add_show_prefix_cmd.
5519 (info_command, show_command, set_debug, show_debug): Remove.
5520 * top.h (set_history, show_history): Don't declare.
5521 * top.c (set_history, show_history): Remove.
5522 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5523 (unset_tdesc_cmd): Remove.
5524 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5525 add_show_prefix_cmd.
5526 * symtab.c (info_module_command): Remove.
5527 (_initialize_symtab): Use add_basic_prefix_cmd.
5528 * symfile.c (overlay_command): Remove.
5529 (_initialize_symfile): Use add_basic_prefix_cmd.
5530 * sparc64-tdep.c (info_adi_command): Remove.
5531 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5532 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5533 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5534 add_show_prefix_cmd.
5535 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5536 (_initialize_serial): Use add_basic_prefix_cmd,
5537 add_show_prefix_cmd.
5538 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5539 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5540 add_show_prefix_cmd.
5541 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5542 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5543 add_show_prefix_cmd.
5544 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5545 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5546 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5547 add_show_prefix_cmd.
5548 * remote.c (remote_command, set_remote_cmd): Remove.
5549 (_initialize_remote): Use add_basic_prefix_cmd.
5550 * record-full.c (set_record_full_command)
5551 (show_record_full_command): Remove.
5552 (_initialize_record_full): Use add_basic_prefix_cmd,
5553 add_show_prefix_cmd.
5554 * record-btrace.c (cmd_set_record_btrace)
5555 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5556 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5557 (cmd_show_record_btrace_pt): Remove.
5558 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5559 add_show_prefix_cmd.
5560 * ravenscar-thread.c (set_ravenscar_command)
5561 (show_ravenscar_command): Remove.
5562 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5563 add_show_prefix_cmd.
5564 * mips-tdep.c (show_mips_command, set_mips_command)
5565 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5566 add_show_prefix_cmd.
5567 * maint.c (maintenance_command, maintenance_info_command)
5568 (maintenance_check_command, maintenance_print_command)
5569 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5570 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5571 add_show_prefix_cmd.
5572 (show_per_command_cmd): Remove.
5573 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5574 Remove.
5575 (maintenance_show_test_settings_cmd): Remove.
5576 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5577 add_show_prefix_cmd.
5578 * maint-test-options.c (maintenance_test_options_command):
5579 Remove.
5580 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5581 * macrocmd.c (macro_command): Remove
5582 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5583 * language.c (set_check, show_check): Remove.
5584 (_initialize_language): Use add_basic_prefix_cmd,
5585 add_show_prefix_cmd.
5586 * infcmd.c (unset_command): Remove.
5587 (_initialize_infcmd): Use add_basic_prefix_cmd.
5588 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5589 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5590 add_show_prefix_cmd.
5591 * go32-nat.c (go32_info_dos_command): Remove.
5592 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5593 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5594 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5595 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5596 (_initialize_frame): Use add_basic_prefix_cmd,
5597 add_show_prefix_cmd.
5598 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5599 (_initialize_dcache): Use add_basic_prefix_cmd,
5600 add_show_prefix_cmd.
5601 * cp-support.c (maint_cplus_command): Remove.
5602 (_initialize_cp_support): Use add_basic_prefix_cmd.
5603 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5604 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5605 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5606 add_basic_prefix_cmd, add_show_prefix_cmd.
5607 * breakpoint.c (save_command): Remove.
5608 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5609 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5610 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5611 add_show_prefix_cmd.
5612 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5613 (set_ada_command, show_ada_command): Remove.
5614 (_initialize_ada_language): Use add_basic_prefix_cmd,
5615 add_show_prefix_cmd.
5616 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5617
5618 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5619
5620 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5621 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5622
5623 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5624
5625 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5626 warning messages.
5627
5628 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5629
5630 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5631 import table is not at beginning of .idata section.
5632
5633 2020-04-16 Pedro Alves <palves@redhat.com>
5634
5635 * inferior.c (delete_inferior): Use delete operator directly
5636 instead of delete_program_space.
5637 * progspace.c (add_program_space): New, factored out from
5638 program_space::program_space.
5639 (remove_program_space): New, factored out from
5640 delete_program_space.
5641 (program_space::program_space): Remove intro comment. Rewrite.
5642 (program_space::~program_space): Remove intro comment. Call
5643 remove_program_space.
5644 (delete_program_space): Delete.
5645 * progspace.h (program_space::program_space): Make explicit. Move
5646 intro comment here, adjusted.
5647 (program_space::~program_space): Move intro comment here,
5648 adjusted.
5649 (delete_program_space): Remove.
5650
5651 2020-04-16 Tom Tromey <tromey@adacore.com>
5652
5653 * windows-nat.c (windows_nat::handle_access_violation): New
5654 function.
5655 * nat/windows-nat.h (handle_access_violation): Declare.
5656 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5657 windows-nat.c. Call handle_access_violation.
5658
5659 2020-04-16 Tom de Vries <tdevries@suse.de>
5660
5661 PR symtab/25791
5662 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5663 CUs without psymtab.
5664
5665 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5666
5667 * python/python.c (do_start_initialization): Don't call
5668 PyEval_InitThreads for Python 3.9 and beyond.
5669
5670 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5671
5672 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5673 thread functions.
5674 (obsd_nat_target::wait): Likewise.
5675
5676 2020-04-15 Tom Tromey <tromey@adacore.com>
5677
5678 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5679 (DEBUG_EXCEPT): Use debug_printf.
5680
5681 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5682
5683 * completer.c (class completion_tracker::completion_hash_entry)
5684 <hash_name>: New member function.
5685 (completion_tracker::discard_completions): New callback to hash a
5686 completion_hash_entry, pass this to htab_create_alloc.
5687
5688 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5689
5690 * windows-nat.c (windows_make_so): Warn rather than stopping with
5691 an error if realpath() fails.
5692
5693 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5694
5695 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5696 (nbsd_nat_target::info_proc): Add do_status.
5697
5698 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5699 Tom de Vries <tdevries@suse.de>
5700
5701 PR symtab/25718
5702 * psympriv.h (struct partial_symtab::read_symtab)
5703 (struct partial_symtab::expand_psymtab)
5704 (struct partial_symtab::read_dependencies): Update comments.
5705 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5706 read_symtab for includer.
5707 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5708 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5709 (struct dwarf2_include_psymtab::m_readin): Remove.
5710 (struct dwarf2_include_psymtab::includer): New member function.
5711 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5712
5713 2020-04-14 Tom de Vries <tdevries@suse.de>
5714
5715 PR symtab/25720
5716 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5717 with NULL symbol_matcher and lookup_name.
5718 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5719 and lookup_name.
5720 * dwarf2/read.c (dw2_expand_symtabs_matching)
5721 (dw2_debug_names_expand_symtabs_matching): Same.
5722 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5723 Make lookup_name a pointer. Update comment.
5724 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5725 lookup_name being a pointer.
5726 * symfile.c (expand_symtabs_matching): Same.
5727 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5728 * linespec.c (iterate_over_all_matching_symtabs): Same.
5729
5730 2020-04-13 Tom Tromey <tom@tromey.com>
5731
5732 * run-on-main-thread.c: Update include.
5733 * unittests/main-thread-selftests.c: Update include.
5734 * tui/tui-win.c: Update include.
5735 * tui/tui-io.c: Update include.
5736 * tui/tui-interp.c: Update include.
5737 * tui/tui-hooks.c: Update include.
5738 * top.h: Update include.
5739 * top.c: Update include.
5740 * ser-base.c: Update include.
5741 * remote.c: Update include.
5742 * remote-notif.c: Update include.
5743 * remote-fileio.c: Update include.
5744 * record-full.c: Update include.
5745 * record-btrace.c: Update include.
5746 * python/python.c: Update include.
5747 * posix-hdep.c: Update include.
5748 * mingw-hdep.c: Update include.
5749 * mi/mi-main.c: Update include.
5750 * mi/mi-interp.c: Update include.
5751 * main.c: Update include.
5752 * linux-nat.c: Update include.
5753 * interps.c: Update include.
5754 * infrun.c: Update include.
5755 * inf-loop.c: Update include.
5756 * event-top.c: Update include.
5757 * event-loop.c: Move to ../gdbsupport/.
5758 * event-loop.h: Move to ../gdbsupport/.
5759 * async-event.h: Update include.
5760 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5761
5762 2020-04-13 Tom Tromey <tom@tromey.com>
5763
5764 * tui/tui-win.c: Include async-event.h.
5765 * remote.c: Include async-event.h.
5766 * remote-notif.c: Include async-event.h.
5767 * record-full.c: Include async-event.h.
5768 * record-btrace.c: Include async-event.h.
5769 * infrun.c: Include async-event.h.
5770 * event-top.c: Include async-event.h.
5771 * event-loop.h: Move some declarations to async-event.h.
5772 * event-loop.c: Don't include ser-event.h or top.h. Move some
5773 code to async-event.c.
5774 * async-event.h: New file.
5775 * async-event.c: New file.
5776 * Makefile.in (COMMON_SFILES): Add async-event.c.
5777 (HFILES_NO_SRCDIR): Add async-event.h.
5778
5779 2020-04-13 Tom Tromey <tom@tromey.com>
5780
5781 * utils.c (flush_streams): New function.
5782 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5783
5784 2020-04-13 Tom Tromey <tom@tromey.com>
5785
5786 * event-loop.c (handle_file_event): Use warning, not
5787 printf_unfiltered.
5788
5789 2020-04-13 Tom Tromey <tom@tromey.com>
5790
5791 * event-loop.c: Include <chrono>.
5792
5793 2020-04-13 Tom Tromey <tom@tromey.com>
5794
5795 * gdb_select.h: Move to ../gdbsupport/.
5796 * event-loop.c: Update include path.
5797 * top.c: Update include path.
5798 * ser-base.c: Update include path.
5799 * ui-file.c: Update include path.
5800 * ser-tcp.c: Update include path.
5801 * guile/scm-ports.c: Update include path.
5802 * posix-hdep.c: Update include path.
5803 * ser-unix.c: Update include path.
5804 * gdb_usleep.c: Update include path.
5805 * mingw-hdep.c: Update include path.
5806 * inflow.c: Update include path.
5807 * infrun.c: Update include path.
5808 * event-top.c: Update include path.
5809
5810 2020-04-13 Tom Tromey <tom@tromey.com>
5811
5812 * configure: Rebuild.
5813 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5814
5815 2020-04-13 Tom Tromey <tom@tromey.com>
5816
5817 * event-loop.h (start_event_loop): Don't declare.
5818 * event-loop.c (start_event_loop): Move...
5819 * main.c (start_event_loop): ...here. Now static.
5820
5821 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5822
5823 * MAINTAINERS: Update my email address.
5824
5825 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5826
5827 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5828 IP_ALL.
5829
5830 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5831
5832 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5833 (nbsd_nat_target::info_proc): Add do_cmdline.
5834
5835 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5836
5837 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5838 (nbsd_nat_target::info_proc): Add do_cwd.
5839
5840 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5841
5842 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5843
5844 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5845
5846 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5847 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5848 (nbsd_nat_target::info_proc): New functions.
5849 * nbsd-nat.c (kinfo_get_vmmap): New function.
5850 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5851 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5852 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5853 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5854 functions.
5855 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5856 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5857 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5858 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5859 (KINFO_VME_FLAG_GROWS_DOWN): New.
5860
5861 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5862
5863 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5864 bit shift.
5865
5866 2020-04-10 Tom Tromey <tromey@adacore.com>
5867
5868 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5869
5870 2020-04-10 Tom Tromey <tromey@adacore.com>
5871
5872 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5873 separate debug files.
5874
5875 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5876
5877 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5878 Move to...
5879 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5880 ... here.
5881 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5882 Check for STATUS_WX86_BREAKPOINT.
5883 (windows_nat_target::wait): Same.
5884
5885 2020-04-10 Tom de Vries <tdevries@suse.de>
5886
5887 PR cli/25808
5888 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5889
5890 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5893 (Write After Approval): Remove Tom de Vries.
5894
5895 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5896
5897 revert partially:
5898 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5899
5900 * buildsym.c (record_line): Fix undefined behavior and preserve
5901 lines at eof.
5902
5903 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5904
5905 * auxv.h (svr4_auxv_parse): New.
5906 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5907 and generic_auxv_parse.
5908 (svr4_auxv_parse): Add.
5909 * obsd-tdep.c: Include "auxv.h".
5910 (obsd_auxv_parse): Remove.
5911 (obsd_init_abi): Remove comment.
5912 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5913 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5914 * nbsd-tdep.c: Include "auxv.h".
5915 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5916
5917 2020-04-08 Tom Tromey <tromey@adacore.com>
5918
5919 * nat/windows-nat.h (last_wait_event): Don't declare.
5920 (wait_for_debug_event): Update comment.
5921 * nat/windows-nat.c (last_wait_event): Now static.
5922
5923 2020-04-08 Tom Tromey <tromey@adacore.com>
5924
5925 * windows-nat.c (wait_for_debug_event): Move to
5926 nat/windows-nat.c.
5927 * nat/windows-nat.h (wait_for_debug_event): Declare.
5928 * nat/windows-nat.c (wait_for_debug_event): Move from
5929 windows-nat.c. No longer static.
5930
5931 2020-04-08 Tom Tromey <tromey@adacore.com>
5932
5933 * windows-nat.c (get_windows_debug_event): Use
5934 fetch_pending_stop.
5935 * nat/windows-nat.h (fetch_pending_stop): Declare.
5936 * nat/windows-nat.c (fetch_pending_stop): New function.
5937
5938 2020-04-08 Tom Tromey <tromey@adacore.com>
5939
5940 * windows-nat.c (windows_continue): Use matching_pending_stop and
5941 continue_last_debug_event.
5942 * nat/windows-nat.h (matching_pending_stop)
5943 (continue_last_debug_event): Declare.
5944 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5945 (matching_pending_stop, continue_last_debug_event): New
5946 functions.
5947
5948 2020-04-08 Tom Tromey <tromey@adacore.com>
5949
5950 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5951 (handle_exception_result): Move to nat/windows-nat.h.
5952 (DEBUG_EXCEPTION_SIMPLE): Remove.
5953 (windows_nat::handle_ms_vc_exception): New function.
5954 (handle_exception): Move to nat/windows-nat.c.
5955 (get_windows_debug_event): Update.
5956 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5957 nat/windows-nat.c.
5958 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5959 (handle_exception_result): Move from windows-nat.c.
5960 (handle_exception): Declare.
5961 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5962 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5963 windows-nat.c.
5964
5965 2020-04-08 Tom Tromey <tromey@adacore.com>
5966
5967 * windows-nat.c (exception_count, event_count): Remove.
5968 (handle_exception, get_windows_debug_event)
5969 (do_initial_windows_stuff): Update.
5970
5971 2020-04-08 Tom Tromey <tromey@adacore.com>
5972
5973 * windows-nat.c (windows_nat::handle_load_dll)
5974 (windows_nat::handle_unload_dll): Rename. No longer static.
5975 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5976 Declare.
5977
5978 2020-04-08 Tom Tromey <tromey@adacore.com>
5979
5980 * complaints.h (stop_whining): Declare at top-level.
5981 (complaint): Don't declare stop_whining.
5982
5983 2020-04-08 Tom Tromey <tromey@adacore.com>
5984
5985 * windows-nat.c (windows_nat::handle_output_debug_string):
5986 Rename. No longer static.
5987 * nat/windows-nat.h (handle_output_debug_string): Declare.
5988
5989 2020-04-08 Tom Tromey <tromey@adacore.com>
5990
5991 * windows-nat.c (current_process_handle, current_process_id)
5992 (main_thread_id, last_sig, current_event, last_wait_event)
5993 (current_windows_thread, desired_stop_thread_id, pending_stops)
5994 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5995 (display_selectors, fake_create_process)
5996 (get_windows_debug_event): Update.
5997 * nat/windows-nat.h (current_process_handle, current_process_id)
5998 (main_thread_id, last_sig, current_event, last_wait_event)
5999 (current_windows_thread, desired_stop_thread_id, pending_stops)
6000 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6001 * nat/windows-nat.c (current_process_handle, current_process_id)
6002 (main_thread_id, last_sig, current_event, last_wait_event)
6003 (current_windows_thread, desired_stop_thread_id, pending_stops)
6004 (siginfo_er): New globals. Move from windows-nat.c.
6005
6006 2020-04-08 Tom Tromey <tromey@adacore.com>
6007
6008 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6009 (handle_load_dll): Update.
6010 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6011
6012 2020-04-08 Tom Tromey <tromey@adacore.com>
6013
6014 * windows-nat.c (enum thread_disposition_type): Move to
6015 nat/windows-nat.h.
6016 (windows_nat::thread_rec): Rename from thread_rec. No longer
6017 static.
6018 (windows_add_thread, windows_nat_target::fetch_registers)
6019 (windows_nat_target::store_registers, handle_exception)
6020 (windows_nat_target::resume, get_windows_debug_event)
6021 (windows_nat_target::get_tib_address)
6022 (windows_nat_target::thread_name)
6023 (windows_nat_target::thread_alive): Update.
6024 * nat/windows-nat.h (enum thread_disposition_type): Move from
6025 windows-nat.c.
6026 (thread_rec): Declare.
6027
6028 2020-04-08 Tom Tromey <tromey@adacore.com>
6029
6030 * windows-nat.c: Add "using namespace".
6031 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6032 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6033
6034 2020-04-08 Tom Tromey <tromey@adacore.com>
6035
6036 * nat/windows-nat.h (struct windows_thread_info): Declare
6037 destructor.
6038 * nat/windows-nat.c (~windows_thread_info): New.
6039
6040 2020-04-08 Tom Tromey <tromey@adacore.com>
6041
6042 PR gdb/22992
6043 * windows-nat.c (current_event): Update comment.
6044 (last_wait_event, desired_stop_thread_id): New globals.
6045 (struct pending_stop): New.
6046 (pending_stops): New global.
6047 (windows_nat_target) <stopped_by_sw_breakpoint>
6048 <supports_stopped_by_sw_breakpoint>: New methods.
6049 (windows_fetch_one_register): Add assertions. Adjust PC.
6050 (windows_continue): Handle pending stops. Suspend other threads
6051 when stepping. Use last_wait_event
6052 (wait_for_debug_event): New function.
6053 (get_windows_debug_event): Use wait_for_debug_event. Handle
6054 pending stops. Queue spurious stops.
6055 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6056 (windows_nat_target::kill): Use wait_for_debug_event.
6057 * nat/windows-nat.h (struct windows_thread_info)
6058 <stopped_at_software_breakpoint>: New field.
6059 * nat/windows-nat.c (windows_thread_info::resume): Clear
6060 stopped_at_software_breakpoint.
6061
6062 2020-04-08 Tom Tromey <tromey@adacore.com>
6063
6064 * windows-nat.c (enum thread_disposition_type): New.
6065 (thread_rec): Replace "get_context" parameter with "disposition";
6066 change type.
6067 (windows_add_thread, windows_nat_target::fetch_registers)
6068 (windows_nat_target::store_registers, handle_exception)
6069 (windows_nat_target::resume, get_windows_debug_event)
6070 (windows_nat_target::get_tib_address)
6071 (windows_nat_target::thread_name)
6072 (windows_nat_target::thread_alive): Update.
6073
6074 2020-04-08 Tom Tromey <tromey@adacore.com>
6075
6076 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6077 (windows_continue): Use windows_continue::resume.
6078 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6079 resume>: Declare new methods.
6080 * nat/windows-nat.c: New file.
6081 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6082
6083 2020-04-08 Tom Tromey <tromey@adacore.com>
6084
6085 * windows-nat.c (windows_add_thread, windows_delete_thread)
6086 (windows_nat_target::fetch_registers)
6087 (windows_nat_target::store_registers, fake_create_process)
6088 (windows_nat_target::resume, windows_nat_target::resume)
6089 (get_windows_debug_event, windows_nat_target::wait)
6090 (windows_nat_target::pid_to_str)
6091 (windows_nat_target::get_tib_address)
6092 (windows_nat_target::get_ada_task_ptid)
6093 (windows_nat_target::thread_name)
6094 (windows_nat_target::thread_alive): Use lwp, not tid.
6095
6096 2020-04-08 Tom Tromey <tromey@adacore.com>
6097
6098 * windows-nat.c (handle_exception)
6099 (windows_nat_target::thread_name): Update.
6100 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6101 <name>: Now unique_xmalloc_ptr.
6102
6103 2020-04-08 Tom Tromey <tromey@adacore.com>
6104
6105 * windows-nat.c (thread_rec)
6106 (windows_nat_target::fetch_registers): Update.
6107 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6108 Update comment.
6109 <debug_registers_changed, reload_context>: Now bool.
6110
6111 2020-04-08 Tom Tromey <tromey@adacore.com>
6112
6113 * windows-nat.c (windows_add_thread): Use new.
6114 (windows_init_thread_list, windows_delete_thread): Use delete.
6115 (get_windows_debug_event): Update.
6116 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6117 destructor, and initializers.
6118
6119 2020-04-08 Tom Tromey <tromey@adacore.com>
6120
6121 * windows-nat.c (struct windows_thread_info): Remove.
6122 * nat/windows-nat.h: New file.
6123
6124 2020-04-08 Tom Tromey <tromey@adacore.com>
6125
6126 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6127 (thread_rec, windows_add_thread, windows_delete_thread)
6128 (windows_continue): Update.
6129
6130 2020-04-08 Tom Tromey <tromey@adacore.com>
6131
6132 * windows-nat.c (struct windows_thread_info): Remove typedef.
6133 (thread_head): Remove.
6134 (thread_list): New global.
6135 (thread_rec, windows_add_thread, windows_init_thread_list)
6136 (windows_delete_thread, windows_continue): Update.
6137
6138 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6139
6140 * windows-tdep.h (windows_init_abi): Add comment.
6141 (cygwin_init_abi): New declaration.
6142 * windows-tdep.c: Split signal enumeration in two, one for
6143 Windows and one for Cygwin.
6144 (windows_gdb_signal_to_target): Only deal with signal of the
6145 Windows OS ABI.
6146 (cygwin_gdb_signal_to_target): New function.
6147 (windows_init_abi): Rename to windows_init_abi_common, don't set
6148 gdb_signal_to_target gdbarch method. Add new new function with
6149 this name.
6150 (cygwin_init_abi): New function.
6151 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6152 comment. Don't call windows_init_abi.
6153 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6154 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6155 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6156 i386_windows_init_abi_common, don't call windows_init_abi. Add
6157 a new function of this name.
6158 (i386_cygwin_init_abi): New function.
6159 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6160 OS ABI Cygwin.
6161
6162 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6163
6164 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6165 parameter.c.
6166 (dwarf2_read_gdb_index): Update.
6167
6168 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6169
6170 * nbsd-tdep.c: Include "objfiles.h".
6171 (nbsd_skip_solib_resolver): New.
6172 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6173
6174 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6175
6176 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6177 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6178 with DW_LLE_base_addressx are being emitted in DWARFv5.
6179 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6180 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6181 unsigned integer.
6182
6183 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6184
6185 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6186 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6187 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6188 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6189 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6190 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6191 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6192
6193
6194 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6195
6196 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6197 (read_loclist_index): New function definition.
6198 (lookup_loclist_base): New function definition.
6199 (read_loclist_header): New function definition.
6200 (dwarf2_cu): Add loclist_base and loclist_header field.
6201 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6202 (read_full_die_1): Read the value of DW_AT_loclists_base.
6203 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6204 (read_attribute_value): Handle DW_FORM_loclistx.
6205 (skip_one_die): Handle DW_FORM_loclistx.
6206 (loclist_header): New structure declaration.
6207 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6208
6209 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6210
6211 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6212 constructor. Remove `addr` parameter from other constructor and
6213 add `per_cu` parameter.
6214 * dwarf2/read.c (create_partial_symtab): Update.
6215
6216 2020-04-07 Tom de Vries <tdevries@suse.de>
6217
6218 PR symtab/25796
6219 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6220 (partial_die_info::fixup): Inherit has_const_value.
6221
6222 2020-04-07 Tom de Vries <tdevries@suse.de>
6223
6224 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6225 symbols without address.
6226
6227 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6228
6229 * nbsd-nat.h (struct thread_info): Add forward declaration.
6230 (nbsd_nat_target::thread_alive): Add.
6231 (nbsd_nat_target::thread_name): Likewise.
6232 (nbsd_nat_target::update_thread_list): Likewise.
6233 (update_thread_list::post_attach): Likewise.
6234 (post_attach::pid_to_str): Likewise.
6235 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6236 (nbsd_thread_lister): Add.
6237 (nbsd_nat_target::thread_alive): Likewise.
6238 (nbsd_nat_target::thread_name): Likewise.
6239 (nbsd_add_threads): Likewise.
6240 (update_thread_list::post_attach): Likewise.
6241 (nbsd_nat_target::update_thread_list): Likewise.
6242 (post_attach::pid_to_str): Likewise.
6243
6244 2020-04-06 Tom Tromey <tromey@adacore.com>
6245
6246 * ada-valprint.c (print_variant_part): Extract the variant field.
6247 (print_field_values): Use the field as the outer value when
6248 recursing.
6249
6250 2020-04-06 Tom Tromey <tromey@adacore.com>
6251
6252 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6253 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6254 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6255 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6256 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6257
6258 2020-04-06 Tom Tromey <tromey@adacore.com>
6259
6260 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6261 TYPE_CODE_ERROR.
6262
6263 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6264
6265 * nbsd-tdep.c: Include "gdbarch.h".
6266 Define enum with NetBSD signal numbers.
6267 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6268 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6269 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6270 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6271 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6272 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6273 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6274 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6275 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6276 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6277 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6278 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6279
6280 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6281
6282 PR gdb/25325
6283 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6284
6285 2020-04-03 Tom Tromey <tromey@adacore.com>
6286
6287 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6288 Read constant block.
6289
6290 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6291
6292 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6293 (gdb_bfd_get_full_section_contents): New declaration.
6294 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6295 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6296 gdb_bfd_get_full_section_contents.
6297
6298 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6299
6300 * exec.c (build_section_table): Replace internal_error with
6301 gdb_assert.
6302 (section_table_xfer_memory_partial): Likewise.
6303 * mdebugread.c (parse_partial_symbols): Likewise.
6304 * psymtab.c (lookup_partial_symbol): Likewise.
6305 * utils.c (wrap_here): Likewise.
6306
6307 2020-04-02 Tom Tromey <tromey@adacore.com>
6308
6309 * f-lang.c (build_fortran_types): Use arch_type to initialize
6310 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6311
6312 2020-04-02 Tom Tromey <tromey@adacore.com>
6313
6314 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6315 of attributes.
6316
6317 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6318 Bernd Edlinger <bernd.edlinger@hotmail.de>
6319 Tom Tromey <tromey@adacore.com>
6320
6321 * buildsym.c (buildsym_compunit::record_line): Remove
6322 deduplication code.
6323
6324 2020-04-02 Tom de Vries <tdevries@suse.de>
6325
6326 PR ada/24671
6327 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6328
6329 2020-04-02 Tom de Vries <tdevries@suse.de>
6330
6331 * dwarf2/read.c (dwarf2_gdb_index_functions,
6332 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6333 NULL.
6334 * psymtab.c (psym_lookup_global_symbol_language): New function.
6335 (psym_functions): Init psym_lookup_global_symbol_language with
6336 psym_lookup_global_symbol_language.
6337 * symfile-debug.c (debug_sym_quick_functions): Init
6338 lookup_global_symbol_language with NULL.
6339 * symfile.c (set_initial_language): Remove fixme comment.
6340 * symfile.h (struct quick_symbol_functions): Add
6341 lookup_global_symbol_language.
6342 * symtab.c (find_quick_global_symbol_language): New function.
6343 (find_main_name): Use find_quick_global_symbol_language.
6344
6345 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6346
6347 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6348
6349 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6350
6351 * buildsym.c (record_line): Fix undefined behavior and preserve
6352 lines at eof.
6353
6354 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6355
6356 * buildsym.c (record_line): Fix the resizing condition.
6357
6358 2020-04-01 Tom Tromey <tom@tromey.com>
6359
6360 * value.h (value_literal_complex): Add comment.
6361 * valops.c (value_literal_complex): Refer to value.h.
6362
6363 2020-04-01 Tom Tromey <tom@tromey.com>
6364
6365 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6366 (scalar_type): New rule, from typebase.
6367 (typebase): Use scalar_type. Recognize complex types.
6368 (field_name): Handle FLOAT_KEYWORD.
6369 (ident_tokens): Add _Complex and __complex__.
6370
6371 2020-04-01 Tom Tromey <tom@tromey.com>
6372
6373 PR exp/25299:
6374 * valarith.c (promotion_type, complex_binop): New functions.
6375 (scalar_binop): Handle complex numbers. Use promotion_type.
6376 (value_pos, value_neg, value_complement): Handle complex numbers.
6377
6378 2020-04-01 Tom Tromey <tom@tromey.com>
6379
6380 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6381 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6382 (parse_number): Handle complex numbers.
6383
6384 2020-04-01 Tom Tromey <tom@tromey.com>
6385
6386 * c-valprint.c (c_decorations): Change complex suffix to "i".
6387
6388 2020-04-01 Tom Tromey <tom@tromey.com>
6389
6390 * valprint.c (generic_value_print_complex): Use accessors.
6391 * value.h (value_real_part, value_imaginary_part): Declare.
6392 * valops.c (value_real_part, value_imaginary_part): New
6393 functions.
6394 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6395
6396 2020-04-01 Tom Tromey <tom@tromey.com>
6397
6398 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6399 (read_range_type): Update.
6400 * mdebugread.c (basic_type): Update.
6401 * go-lang.c (build_go_types): Use init_complex_type.
6402 * gdbtypes.h (struct main_type) <complex_type>: New member.
6403 (init_complex_type): Update.
6404 (arch_complex_type): Don't declare.
6405 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6406 Make name if none given. Use alloc_type_copy. Look for cached
6407 complex type.
6408 (arch_complex_type): Remove.
6409 (gdbtypes_post_init): Use init_complex_type.
6410 * f-lang.c (build_fortran_types): Use init_complex_type.
6411 * dwarf2/read.c (read_base_type): Update.
6412 * d-lang.c (build_d_types): Use init_complex_type.
6413 * ctfread.c (read_base_type): Update.
6414
6415 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6416
6417 * infrun.c (stop_all_threads): Update assertion, plus when
6418 stopping threads, take into account that we might be trying
6419 to stop an all-stop target.
6420 (stop_waiting): Call 'stop_all_threads' if there exists a
6421 non-stop target.
6422
6423 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6424
6425 * target.h (exists_non_stop_target): New function declaration.
6426 * target.c (exists_non_stop_target): New function.
6427
6428 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6429
6430 PR gdb/24789
6431 * eval.c (is_integral_or_integral_reference): New function.
6432 (evaluate_subexp_standard): Allow integer references in
6433 pointer arithmetic.
6434
6435 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6436
6437 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6438 check for no ptid in the stop reply when the target is non-stop.
6439
6440 2020-04-01 Tom Tromey <tromey@adacore.com>
6441
6442 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6443 "name" parameter to rvalue reference. Initialize m_name_holder.
6444 <lookup_name_info>: New overloads.
6445 <name>: Return gdb::string_view.
6446 <c_str>: New method.
6447 <make_ignore_params>: Update.
6448 <search_name_hash>: Update.
6449 <language_lookup_name>: Return const char *.
6450 <m_name>: Change type.
6451 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6452 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6453 (lookup_name_info::match_any): Update.
6454 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6455 Update.
6456 * minsyms.c (linkage_name_str): Update.
6457 * language.c (default_symbol_name_matcher): Update.
6458 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6459 Update.
6460 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6461 (ada_lookup_name_info::ada_lookup_name_info): Update.
6462 (literal_symbol_name_matcher): Update.
6463
6464 2020-04-01 Tom Tromey <tromey@adacore.com>
6465
6466 * psymtab.c (psymtab_search_name): Remove function.
6467 (psym_lookup_symbol): Create search name and lookup name here.
6468 (lookup_partial_symbol): Remove "name" parameter; add
6469 lookup_name.
6470 (psym_expand_symtabs_for_function): Update.
6471
6472 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6473
6474 PR tui/25597:
6475 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6476
6477 2020-03-31 Tom Tromey <tromey@adacore.com>
6478
6479 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6480 memcpy.
6481
6482 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6483
6484 * features/riscv/32bit-csr.xml: Regenerated.
6485 * features/riscv/64bit-csr.xml: Regenerated.
6486
6487 2020-03-30 Tom Tromey <tromey@adacore.com>
6488
6489 * ada-valprint.c (print_variant_part): Update.
6490 * ada-lang.h (ada_which_variant_applies): Update.
6491 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6492 outer_valaddr parameters; replace with "outer" value parameter.
6493 (to_fixed_variant_branch_type): Update.
6494
6495 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6496
6497 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6498 <list>. Remove inclusion of observable.h.
6499 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6500 (struct arch_lwp_info): New struct.
6501 (class ppc_linux_dreg_interface): New class.
6502 (struct ppc_linux_process_info): New struct.
6503 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6504 <low_new_clone, low_forget_process, low_prepare_to_resume>
6505 <copy_thread_dreg_state, mark_thread_stale>
6506 <mark_debug_registers_changed, register_hw_breakpoint>
6507 <clear_hw_breakpoint, register_wp, clear_wp>
6508 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6509 <num_memory_accesses, get_trigger_type>
6510 <create_watchpoint_request, hwdebug_point_cmp>
6511 <init_arch_lwp_info, get_arch_lwp_info>
6512 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6513 methods.
6514 <struct ptid_hash>: New inner struct.
6515 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6516 members.
6517 (saved_dabr_value, hwdebug_info, max_slots_number)
6518 (struct hw_break_tuple, struct thread_points, ppc_threads)
6519 (have_ptrace_hwdebug_interface)
6520 (hwdebug_find_thread_points_by_tid)
6521 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6522 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6523 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6524 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6525 use m_dreg_interface.
6526 (hwdebug_point_cmp): Change to...
6527 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6528 reference arguments instead of pointers.
6529 (ppc_linux_nat_target::ranged_break_num_registers): Use
6530 m_dreg_interface.
6531 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6532 m_dreg_interface. Call register_hw_breakpoint.
6533 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6534 m_dreg_interface. Call clear_hw_breakpoint.
6535 (get_trigger_type): Change to...
6536 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6537 comment.
6538 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6539 use m_dreg_interface. Call register_hw_breakpoint.
6540 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6541 use m_dreg_interface. Call clear_hw_breakpoint.
6542 (can_use_watchpoint_cond_accel): Change to...
6543 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6544 method. Update comment, use m_dreg_interface and
6545 m_process_info.
6546 (calculate_dvc): Change to...
6547 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6548 m_dreg_interface.
6549 (num_memory_accesses): Change to...
6550 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6551 (check_condition): Change to...
6552 (ppc_linux_nat_target::check_condition): ...this method.
6553 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6554 comment, use m_dreg_interface.
6555 (create_watchpoint_request): Change to...
6556 (ppc_linux_nat_target::create_watchpoint_request): ...this
6557 method. Use m_dreg_interface.
6558 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6559 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6560 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6561 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6562 (ppc_linux_nat_target::low_forget_process)
6563 (ppc_linux_nat_target::low_new_fork)
6564 (ppc_linux_nat_target::low_new_clone)
6565 (ppc_linux_nat_target::low_delete_thread)
6566 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6567 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6568 only call mark_thread_stale.
6569 (ppc_linux_thread_exit): Remove.
6570 (ppc_linux_nat_target::stopped_data_address): Change to...
6571 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6572 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6573 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6574 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6575 comment. Call low_stopped_data_address.
6576 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6577 m_dreg_interface.
6578 (ppc_linux_nat_target::masked_watch_num_registers): Use
6579 m_dreg_interface.
6580 (ppc_linux_nat_target::copy_thread_dreg_state)
6581 (ppc_linux_nat_target::mark_thread_stale)
6582 (ppc_linux_nat_target::mark_debug_registers_changed)
6583 (ppc_linux_nat_target::register_hw_breakpoint)
6584 (ppc_linux_nat_target::clear_hw_breakpoint)
6585 (ppc_linux_nat_target::register_wp)
6586 (ppc_linux_nat_target::clear_wp)
6587 (ppc_linux_nat_target::init_arch_lwp_info)
6588 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6589 (_initialize_ppc_linux_nat): Remove observer callback.
6590
6591 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6592
6593 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6594 (ppc_linux_nat_target::auxv_parse)
6595 (ppc_linux_nat_target::read_description)
6596 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6597 Move up.
6598
6599 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6600
6601 * linux-nat.h (low_new_clone): New method.
6602 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6603
6604 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6605
6606 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6607 (dbx_expand_psymtab): ... this.
6608 (start_psymtab): Update.
6609 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6610 (mdebug_expand_psymtab): ... this.
6611 (parse_partial_symbols): Update.
6612 (new_psymtab): Update.
6613 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6614 (xcoff_expand_psymtab): ... this.
6615 (xcoff_start_psymtab): Update.
6616
6617 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6618
6619 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6620 <expand_dependencies>: ... this.
6621 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6622 (partial_symtab::expand_dependencies): ... this.
6623 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6624 Update.
6625 (dwarf2_psymtab::expand_psymtab): Update.
6626 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6627 * mdebugread.c (psymtab_to_symtab_1): Update.
6628 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6629
6630 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6631
6632 * psympriv.h (discard_psymtab): Remove.
6633 * dbxread.c (dbx_end_psymtab): Update.
6634 * xcoffread.c (xcoff_end_psymtab): Update.
6635
6636 2020-03-28 Tom Tromey <tom@tromey.com>
6637
6638 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6639 comment.
6640
6641 2020-03-28 Tom Tromey <tom@tromey.com>
6642
6643 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6644
6645 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6646
6647 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6648
6649 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6650
6651 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6652
6653 2020-03-26 Tom Tromey <tom@tromey.com>
6654
6655 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6656 (mark_common_block_symbol_computed, read_tag_string_type)
6657 (attr_to_dynamic_prop, read_subrange_type): Update.
6658 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6659 to be methods on struct attribute.
6660 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6661 (read_call_site_scope, partial_die_info::read)
6662 (partial_die_info::read, lookup_die_type, follow_die_ref):
6663 Update.
6664 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6665 from dwarf2_get_ref_die_offset.
6666 (attribute::constant_value): New method, from
6667 dwarf2_get_attr_constant_value.
6668 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6669 Declare method.
6670 <constant_value>: New method.
6671
6672 2020-03-26 Tom Tromey <tom@tromey.com>
6673
6674 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6675 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6676 (dwarf_type_encoding_name): Move to stringify.c.
6677 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6678 * dwarf2/stringify.c: New file.
6679 * dwarf2/stringify.h: New file.
6680
6681 2020-03-26 Tom Tromey <tom@tromey.com>
6682
6683 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6684 Rewrite.
6685
6686 2020-03-26 Tom Tromey <tom@tromey.com>
6687
6688 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6689 methods.
6690 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6691 (lookup_ranges_base): Likewise.
6692 (read_cutu_die_from_dwo, read_full_die_1): Update.
6693
6694 2020-03-26 Tom Tromey <tom@tromey.com>
6695
6696 * dwarf2/read.c (read_import_statement, read_file_scope)
6697 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6698 (read_lexical_block_scope, read_call_site_scope)
6699 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6700 (handle_struct_member_die, process_structure_scope)
6701 (update_enumeration_type_from_children)
6702 (process_enumeration_scope, read_array_type, read_common_block)
6703 (read_namespace, read_module, read_subroutine_type): Update.
6704 (sibling_die): Remove.
6705
6706 2020-03-26 Tom Tromey <tom@tromey.com>
6707
6708 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6709 (build_type_psymtabs_reader, read_structure_type)
6710 (read_enumeration_type, read_full_die_1): Update.
6711 (dwarf2_attr_no_follow): Move to die.h.
6712 * dwarf2/die.h (struct die_info) <attr>: New method.
6713
6714 2020-03-26 Tom Tromey <tom@tromey.com>
6715
6716 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6717 <base_address>: Now an optional.
6718 (dwarf2_find_base_address, dwarf2_rnglists_process)
6719 (dwarf2_ranges_process, fill_in_loclist_baton)
6720 (dwarf2_symbol_mark_computed): Update.
6721
6722 2020-03-26 Tom Tromey <tom@tromey.com>
6723
6724 * dwarf2/read.c (struct die_info): Move to die.h.
6725 * dwarf2/die.h: New file.
6726
6727 2020-03-26 Tom Tromey <tom@tromey.com>
6728
6729 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6730 * dwarf2/read.c
6731 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6732 Move to line-header.c.
6733 (read_checked_initial_length_and_offset, read_formatted_entries):
6734 Likewise.
6735 (dwarf_decode_line_header): Split into two.
6736 * dwarf2/line-header.c
6737 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6738 Move from read.c.
6739 (read_checked_initial_length_and_offset, read_formatted_entries):
6740 Likewise.
6741 (dwarf_decode_line_header): New function, split from read.c.
6742
6743 2020-03-26 Tom Tromey <tom@tromey.com>
6744
6745 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6746 Declare method.
6747 * dwarf2/read.c (read_attribute_value): Update.
6748 (dwarf2_per_objfile::read_line_string): Rename from
6749 read_indirect_line_string.
6750 (read_formatted_entries): Update.
6751
6752 2020-03-26 Tom Tromey <tom@tromey.com>
6753
6754 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6755 variable.
6756
6757 2020-03-26 Tom Tromey <tom@tromey.com>
6758
6759 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6760 const.
6761 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6762 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6763 parameter const.
6764
6765 2020-03-26 Tom Tromey <tom@tromey.com>
6766
6767 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6768 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6769 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6770 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6771
6772 2020-03-26 Tom Tromey <tom@tromey.com>
6773
6774 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6775 file_names_size, file_full_name, file_file_name>: Use const.
6776 <file_name_at, file_names>: Add const overload.
6777 * dwarf2/line-header.c (line_header::file_file_name)
6778 (line_header::file_full_name): Update.
6779
6780 2020-03-26 Tom Tromey <tom@tromey.com>
6781
6782 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6783 (macro_start_file, consume_improper_spaces)
6784 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6785 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6786 (dwarf_decode_macros): Move to macro.c.
6787 * dwarf2/macro.c: New file.
6788 * dwarf2/macro.h: New file.
6789 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6790
6791 2020-03-26 Tom Tromey <tom@tromey.com>
6792
6793 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6794 method.
6795 * dwarf2/section.c: New method. From
6796 read_indirect_string_at_offset_from.
6797 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6798 (read_indirect_string_at_offset_from): Move to section.c.
6799 (read_indirect_string_at_offset): Rewrite.
6800 (read_indirect_line_string_at_offset): Remove.
6801 (read_indirect_string, read_indirect_line_string)
6802 (dwarf_decode_macro_bytes): Update.
6803
6804 2020-03-26 Tom Tromey <tom@tromey.com>
6805
6806 * dwarf2/section.h (struct dwarf2_section_info)
6807 <overload_complaint>: Declare.
6808 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6809 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6810 Rename from dwarf2_section_buffer_overflow_complaint.
6811 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6812 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6813
6814 2020-03-26 Tom Tromey <tom@tromey.com>
6815
6816 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6817 Declare.
6818 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6819 Move from read.c.
6820 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6821 to section.c.
6822
6823 2020-03-26 Tom Tromey <tom@tromey.com>
6824
6825 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6826
6827 2020-03-26 Tom Tromey <tom@tromey.com>
6828
6829 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6830 "builder".
6831 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6832 parameter.
6833 (dwarf_decode_macros): Update.
6834
6835 2020-03-26 Tom Tromey <tom@tromey.com>
6836
6837 * dwarf2/read.c (read_attribute_value): Update.
6838 (read_indirect_string_from_dwz): Move to dwz.c; change into
6839 method.
6840 (dwarf_decode_macro_bytes): Update.
6841 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6842 * dwarf2/dwz.c: New file.
6843 * Makefile.in (COMMON_SFILES): Add dwz.c.
6844
6845 2020-03-26 Tom Tromey <tom@tromey.com>
6846
6847 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6848 * dwarf2/read.c: Add include.
6849 * dwarf2/index-write.c: Add include.
6850 * dwarf2/index-cache.c: Add include.
6851 * dwarf2/dwz.h: New file.
6852
6853 2020-03-25 Tom Tromey <tom@tromey.com>
6854
6855 * compile/compile-object-load.c (get_out_value_type): Mention
6856 correct symbol name in error message.
6857
6858 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6859
6860 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6861
6862 2020-03-25 Tom de Vries <tdevries@suse.de>
6863
6864 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6865 * symmisc.c (dump_symtab_1): Print user and includes fields.
6866 (maintenance_info_symtabs): Same.
6867
6868 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6869
6870 PR gdb/25534
6871 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6872 (riscv_regcache_cooked_write): New function.
6873 (riscv_push_dummy_call): Use new function.
6874 (riscv_return_value): Likewise.
6875
6876 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6877
6878 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6879 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6880 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6881 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6882 * infrun.c (follow_fork): Likewise.
6883 (follow_fork_inferior): Likewise.
6884 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6885 * linux-nat.h (class linux_nat_target): Likewise.
6886 * remote.c (class remote_target) <follow_fork>: Likewise.
6887 (remote_target::follow_fork): Likewise.
6888 * target-delegates.c: Re-generate.
6889 * target.c (default_follow_fork): Likewise.
6890 (target_follow_fork): Likewise.
6891 * target.h (struct target_ops) <follow_fork>: Likewise.
6892 (target_follow_fork): Likewise.
6893
6894 2020-03-24 Tom de Vries <tdevries@suse.de>
6895
6896 * psymtab.c (maintenance_info_psymtabs): Print user field.
6897
6898 2020-03-20 Tom Tromey <tromey@adacore.com>
6899
6900 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6901 const.
6902 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6903 const.
6904
6905 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6906
6907 * ptrace.m4: Don't check for ptrace declaration.
6908 * config.in: Re-generate.
6909 * configure: Re-generate.
6910 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6911 not defined.
6912
6913 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6914
6915 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6916 `PTRACE_TYPE_RET'.
6917 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6918 * sparc-nat.c (gdb_ptrace): Likewise.
6919 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6920
6921 2020-03-20 Tom Tromey <tromey@adacore.com>
6922
6923 * c-exp.y (lex_one_token): Fix assert.
6924
6925 2020-03-20 Tom Tromey <tromey@adacore.com>
6926
6927 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6928 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6929 strncpy call.
6930
6931 2020-03-20 Tom Tromey <tromey@adacore.com>
6932
6933 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6934
6935 2020-03-20 Tom Tromey <tromey@adacore.com>
6936
6937 * ada-valprint.c (print_variant_part): Remove parameters; switch
6938 to value-based API.
6939 (print_field_values): Likewise.
6940 (ada_val_print_struct_union): Likewise.
6941 (ada_value_print_1): Update.
6942
6943 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6944
6945 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6946 nbsd_nat_target instead of inf_ptrace_target.
6947 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6948 nbsd_nat_target.
6949
6950 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6951
6952 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6953 it to the ptrace call.
6954 * (store_registers): Likewise.
6955
6956 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6957
6958 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6959 it to the ptrace call.
6960 * (store_registers): Likewise.
6961
6962 2020-03-19 Luis Machado <luis.machado@linaro.org>
6963
6964 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6965 valid, fetch vg value from ptrace.
6966
6967 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6968 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6969 * inf-ptrace.c: Likewise.
6970 * (gdb_ptrace): Add.
6971 * (inf_ptrace_target::resume): Update.
6972 * (inf_ptrace_target::xfer_partial): Likewise.
6973 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6974 * (inf_ptrace_peek_poke): Update.
6975
6976 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6977
6978 * x86-bsd-nat.c (gdb_ptrace): New.
6979 * (x86bsd_dr_set): Add new argument `ptid'.
6980 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6981 x86bsd_dr_set_addr): Update.
6982
6983 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6984
6985 * remote.c (remote_target::process_stop_reply): Handle events for
6986 all threads differently.
6987
6988 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6989
6990 * completer.c (completion_tracker::remove_completion): Define new
6991 function.
6992 * completer.h (completion_tracker::remove_completion): Declare new
6993 function.
6994 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6995 when adding a C++ function symbol.
6996
6997 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6998
6999 * completer.c (completion_tracker::completion_hash_entry): Define
7000 new class.
7001 (advance_to_filename_complete_word_point): Call
7002 recompute_lowest_common_denominator.
7003 (completion_tracker::completion_tracker): Call discard_completions
7004 to setup the hash table.
7005 (completion_tracker::discard_completions): Allow for being called
7006 from the constructor, pass new equal function, and element deleter
7007 when constructing the hash table. Initialise new class member
7008 variables.
7009 (completion_tracker::maybe_add_completion): Remove use of
7010 m_entries_vec, and store more information into m_entries_hash.
7011 (completion_tracker::recompute_lcd_visitor): New function, most
7012 content taken from...
7013 (completion_tracker::recompute_lowest_common_denominator):
7014 ...here, this now just visits each item in the hash calling the
7015 above visitor.
7016 (completion_tracker::build_completion_result): Remove use of
7017 m_entries_vec, call recompute_lowest_common_denominator.
7018 * completer.h (completion_tracker::have_completions): Remove use
7019 of m_entries_vec.
7020 (completion_tracker::completion_hash_entry): Declare new class.
7021 (completion_tracker::recompute_lowest_common_denominator): Change
7022 function signature.
7023 (completion_tracker::recompute_lcd_visitor): Declare new function.
7024 (completion_tracker::m_entries_vec): Delete.
7025 (completion_tracker::m_entries_hash): Initialize to NULL.
7026 (completion_tracker::m_lowest_common_denominator_valid): New
7027 member variable.
7028 (completion_tracker::m_lowest_common_denominator_max_length): New
7029 member variable.
7030
7031 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7032
7033 * regformats/regdef.h: Put reg in gdb namespace.
7034
7035 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7036
7037 * i386-bsd-nat.c (gdb_ptrace): New.
7038 * (i386bsd_fetch_inferior_registers,
7039 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7040 * (i386bsd_fetch_inferior_registers,
7041 i386bsd_store_inferior_registers) Use gdb_ptrace.
7042
7043 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7044
7045 * amd64-bsd-nat.c (gdb_ptrace): New.
7046 * (amd64bsd_fetch_inferior_registers,
7047 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7048 * (amd64bsd_fetch_inferior_registers,
7049 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7050
7051 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7052
7053 * user-regs.c (user_reg::read): Rename to...
7054 (user_reg::xread): ...this.
7055 * (append_user_reg): Rename argument `read' to `xread'.
7056 * (user_reg_add_builtin): Likewise.
7057 * (user_reg_add): Likewise.
7058 * (value_of_user_reg): Likewise.
7059
7060 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7061
7062 * sparc-nat.c (gdb_ptrace): New.
7063 * sparc-nat.c (sparc_fetch_inferior_registers)
7064 (sparc_store_inferior_registers) Remove obsolete comment.
7065 * sparc-nat.c (sparc_fetch_inferior_registers)
7066 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7067 * sparc-nat.c (sparc_fetch_inferior_registers)
7068 (sparc_store_inferior_registers) Use gdb_ptrace.
7069
7070 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7071
7072 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7073 it to the ptrace call.
7074 * sh-nbsd-nat.c (store_registers): Likewise.
7075
7076 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7077
7078 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7079 nbsd_nat_target instead of inf_ptrace_target.
7080 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7081 nbsd_nat_target.
7082
7083 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7084
7085 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7086
7087 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7088
7089 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7090 <sys/sysctl.h>.
7091 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7092
7093 2020-03-17 Tom de Vries <tdevries@suse.de>
7094
7095 PR gdb/23710
7096 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7097 fields.
7098 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7099 fields.
7100 (process_imported_unit_die): Skip import of c++ CUs.
7101
7102 2020-03-16 Tom Tromey <tom@tromey.com>
7103
7104 * p-valprint.c (pascal_object_print_value): Initialize
7105 base_value.
7106
7107 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7108 Shahab Vahedi <shahab@synopsys.com>
7109
7110 * Makefile.in: Add arch/arc.o
7111 * configure.tgt: Likewise.
7112 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7113 (_initialize_arc_tdep): Don't initialize old target descriptions.
7114 (arc_read_description): New function to cache target descriptions.
7115 * arc-tdep.h (arc_read_description): Add proto type.
7116 * arch/arc.c: New file.
7117 * arch/arc.h: Likewise.
7118 * features/Makefile: Replace old target descriptions with new.
7119 * features/arc-arcompact.c: Remove.
7120 * features/arc-arcompact.xml: Likewise.
7121 * features/arc-v2.c: Likewise
7122 * features/arc-v2.xml: Likewise
7123 * features/arc/aux-arcompact.xml: New file.
7124 * features/arc/aux-v2.xml: Likewise.
7125 * features/arc/core-arcompact.xml: Likewise.
7126 * features/arc/core-v2.xml: Likewise.
7127 * features/arc/aux-arcompact.c: Generate.
7128 * features/arc/aux-v2.c: Likewise.
7129 * features/arc/core-arcompact.c: Likewise.
7130 * features/arc/core-v2.c: Likewise.
7131 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7132
7133 2020-03-16 Tom Tromey <tromey@adacore.com>
7134
7135 PR gdb/25663:
7136 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7137 putting value into bcache.
7138
7139 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7140
7141 PR gdb/21500
7142 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7143 to...
7144 (amd64_windows_init_abi_common): ... this. Don't set size of
7145 long type.
7146 (amd64_windows_init_abi): New function.
7147 (amd64_cygwin_init_abi): New function.
7148 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7149 the Cygwin OS ABI.
7150 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7151 comment.
7152
7153 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7154
7155 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7156 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7157 (pe_import_directory_entry): New struct type.
7158 (is_linked_with_cygwin_dll): New function.
7159 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7160 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7161 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7162
7163 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7164
7165 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7166 i386_cygwin_core_osabi_sniffer.
7167
7168 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7169
7170 * i386-cygwin-tdep.c: Rename to...
7171 * i386-windows-tdep.c: ... this.
7172 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7173 i386-windows-tdep.c.
7174 * configure.tgt: Likewise.
7175
7176 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7177
7178 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7179 * osabi.c (gdb_osabi_names): Add "Windows".
7180 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7181 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7182 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7183 i386_cygwin_osabi_sniffer.
7184 (_initialize_i386_cygwin_tdep): Register OS ABI
7185 GDB_OSABI_WINDOWS for i386.
7186 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7187 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7188 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7189 for x86-64.
7190 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7191 when the target matches '*-*-mingw*'.
7192
7193 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7194
7195 * defs.h (enum gdb_osabi): Move to...
7196 * osabi.h (enum gdb_osabi): ... here.
7197 * gdbarch.sh: Include osabi.h in gdbarch.h.
7198 * gdbarch.h: Re-generate.
7199
7200 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7201
7202 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7203 function.
7204 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7205
7206 2020-03-14 Tom Tromey <tom@tromey.com>
7207
7208 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7209 for C++.
7210 (c_type_print_modifier): Likewise. Add "language" parameter.
7211 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7212 (c_type_print_base_1): Update.
7213 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7214 constants.
7215 * type-stack.c (type_stack::insert): Handle tp_atomic and
7216 tp_restrict.
7217 (type_stack::follow_type_instance_flags): Likewise.
7218 (type_stack::follow_types): Likewise. Merge type-following code.
7219 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7220 (space_identifier, cv_with_space_id)
7221 (const_or_volatile_or_space_identifier_noopt)
7222 (const_or_volatile_or_space_identifier): Remove.
7223 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7224 rules.
7225 (ptr_operator, typebase): Update.
7226 (enum token_flag) <FLAG_C>: New constant.
7227 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7228 "_Atomic".
7229 (lex_one_token): Handle FLAG_C.
7230
7231 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7232
7233 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7234 it to the ptrace call.
7235 * m68k-bsd-nat.c (store_registers): Likewise.
7236
7237 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7238
7239 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7240 gdb_byte *.
7241 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7242 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7243 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7244
7245 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7246
7247 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7248 nbsd_nat_target instead of inf_ptrace_target.
7249 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7250 nbsd_nat_target.
7251
7252 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7253
7254 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7255 register_t.
7256
7257 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7258
7259 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7260 it to the ptrace call.
7261 * alpha-bsd-nat.c (store_registers): Likewise.
7262
7263 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7264
7265 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7266 includes.
7267 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7268 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7269 fill_fpregset): Likewise.
7270
7271 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7272
7273 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7274 nbsd_nat_target instead of inf_ptrace_target.
7275 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7276 nbsd_nat_target.
7277
7278 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7279
7280 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7281 register_t.
7282
7283 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7284
7285 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7286 it to the ptrace call.
7287 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7288 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7289 * arm-nbsd-nat.c (store_register): Likewise.
7290 * arm-nbsd-nat.c (store_regs): Likewise.
7291 * arm-nbsd-nat.c (store_fp_register): Likewise.
7292 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7293
7294 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7295
7296 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7297 nbsd_nat_target instead of inf_ptrace_target.
7298 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7299 nbsd_nat_target.
7300
7301 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7302
7303 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7304 it to the ptrace call.
7305 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7306
7307 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7308
7309 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7310 it to the ptrace call.
7311 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7312
7313 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7314
7315 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7316 gdb_byte *.
7317 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7318
7319 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7320
7321 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7322 instead of inf_ptrace_target.
7323 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7324 nbsd_nat_target.
7325
7326 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7327
7328 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7329 register_t.
7330
7331 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7332
7333 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7334 register_t.
7335
7336 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7337
7338 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7339 register_t.
7340
7341 2020-03-13 Tom Tromey <tom@tromey.com>
7342
7343 * value.h (val_print): Don't declare.
7344 * valprint.h (val_print_array_elements)
7345 (val_print_scalar_formatted, generic_val_print): Don't declare.
7346 * valprint.c (generic_val_print_array): Take a struct value.
7347 (generic_val_print_ptr, generic_val_print_memberptr)
7348 (generic_val_print_bool, generic_val_print_int)
7349 (generic_val_print_char, generic_val_print_complex)
7350 (generic_val_print): Remove.
7351 (generic_value_print): Update.
7352 (do_val_print): Remove unused parameters. Don't call
7353 la_val_print.
7354 (val_print): Remove.
7355 (common_val_print): Update. Don't call value_check_printable.
7356 (val_print_scalar_formatted, val_print_array_elements): Remove.
7357 * rust-lang.c (rust_val_print): Remove.
7358 (rust_language_defn): Update.
7359 * p-valprint.c (pascal_val_print): Remove.
7360 (pascal_value_print_inner): Update.
7361 (pascal_object_print_val_fields, pascal_object_print_val):
7362 Remove.
7363 (pascal_object_print_static_field): Update.
7364 * p-lang.h (pascal_val_print): Don't declare.
7365 * p-lang.c (pascal_language_defn): Update.
7366 * opencl-lang.c (opencl_language_defn): Update.
7367 * objc-lang.c (objc_language_defn): Update.
7368 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7369 * m2-lang.h (m2_val_print): Don't declare.
7370 * m2-lang.c (m2_language_defn): Update.
7371 * language.h (struct language_defn) <la_val_print>: Remove.
7372 * language.c (unk_lang_value_print_inner): Rename. Change
7373 argument types.
7374 (unknown_language_defn, auto_language_defn): Update.
7375 * go-valprint.c (go_val_print): Remove.
7376 * go-lang.h (go_val_print): Don't declare.
7377 * go-lang.c (go_language_defn): Update.
7378 * f-valprint.c (f_val_print): Remove.
7379 * f-lang.h (f_value_print): Don't declare.
7380 * f-lang.c (f_language_defn): Update.
7381 * d-valprint.c (d_val_print): Remove.
7382 * d-lang.h (d_value_print): Don't declare.
7383 * d-lang.c (d_language_defn): Update.
7384 * cp-valprint.c (cp_print_value_fields)
7385 (cp_print_value_fields_rtti, cp_print_value): Remove.
7386 (cp_print_static_field): Update.
7387 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7388 (c_val_print_struct, c_val_print_union, c_val_print_int)
7389 (c_val_print_memberptr, c_val_print): Remove.
7390 * c-lang.h (c_val_print_array, cp_print_value_fields)
7391 (cp_print_value_fields_rtti): Don't declare.
7392 * c-lang.c (c_language_defn, cplus_language_defn)
7393 (asm_language_defn, minimal_language_defn): Update.
7394 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7395 (ada_val_print_enum): Take a struct value.
7396 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7397 (ada_val_print): Remove.
7398 (ada_value_print_1): Update.
7399 (printable_val_type): Remove.
7400 * ada-lang.h (ada_val_print): Don't declare.
7401 * ada-lang.c (ada_language_defn): Update.
7402
7403 2020-03-13 Tom Tromey <tom@tromey.com>
7404
7405 * valprint.c (do_val_print): Update.
7406 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7407 a struct value.
7408 (value_to_value_object_no_release): Declare.
7409 * python/py-value.c (value_to_value_object_no_release): New
7410 function.
7411 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7412 struct value.
7413 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7414 function.
7415 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7416 a struct value.
7417 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7418 Declare.
7419 (gdbscm_apply_val_pretty_printer): Take a struct value.
7420 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7421 value.
7422 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7423 value.
7424 * extension-priv.h (struct extension_language_ops)
7425 <apply_val_pretty_printer>: Take a struct value.
7426 * cp-valprint.c (cp_print_value): Create a struct value.
7427 (cp_print_value): Update.
7428
7429 2020-03-13 Tom Tromey <tom@tromey.com>
7430
7431 * ada-valprint.c (print_field_values): Call common_val_print.
7432
7433 2020-03-13 Tom Tromey <tom@tromey.com>
7434
7435 * ada-valprint.c (val_print_packed_array_elements): Remove
7436 bitoffset and val parameters. Call common_val_print.
7437 (ada_val_print_string): Remove offset, address, and original_value
7438 parameters.
7439 (ada_val_print_array): Update.
7440 (ada_value_print_array): New function.
7441 (ada_value_print_1): Call it.
7442
7443 2020-03-13 Tom Tromey <tom@tromey.com>
7444
7445 * ada-valprint.c (ada_value_print): Use common_val_print.
7446
7447 2020-03-13 Tom Tromey <tom@tromey.com>
7448
7449 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7450
7451 2020-03-13 Tom Tromey <tom@tromey.com>
7452
7453 * ada-valprint.c (ada_value_print_num): New function.
7454 (ada_value_print_1): Use it.
7455
7456 2020-03-13 Tom Tromey <tom@tromey.com>
7457
7458 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7459
7460 2020-03-13 Tom Tromey <tom@tromey.com>
7461
7462 * ada-valprint.c (ada_value_print_ptr): New function.
7463 (ada_value_print_1): Use it.
7464
7465 2020-03-13 Tom Tromey <tom@tromey.com>
7466
7467 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7468 call common_val_print.
7469 (ada_val_print_1): Update.
7470 (ada_value_print_1): New function.
7471 (ada_value_print_inner): Rewrite.
7472
7473 2020-03-13 Tom Tromey <tom@tromey.com>
7474
7475 * cp-valprint.c (cp_print_value_fields): Update.
7476 (cp_print_value): New function.
7477
7478 2020-03-13 Tom Tromey <tom@tromey.com>
7479
7480 * m2-valprint.c (m2_value_print_inner): Use
7481 cp_print_value_fields.
7482 * cp-valprint.c (cp_print_value_fields): New function.
7483 * c-valprint.c (c_value_print_struct): New function.
7484 (c_value_print_inner): Use c_value_print_struct.
7485 * c-lang.h (cp_print_value_fields): Declare.
7486
7487 2020-03-13 Tom Tromey <tom@tromey.com>
7488
7489 * c-valprint.c (c_value_print_array): New function.
7490 (c_value_print_inner): Use it.
7491
7492 2020-03-13 Tom Tromey <tom@tromey.com>
7493
7494 * c-valprint.c (c_value_print_memberptr): New function.
7495 (c_value_print_inner): Use it.
7496
7497 2020-03-13 Tom Tromey <tom@tromey.com>
7498
7499 * c-valprint.c (c_value_print_int): New function.
7500 (c_value_print_inner): Use it.
7501
7502 2020-03-13 Tom Tromey <tom@tromey.com>
7503
7504 * c-valprint.c (c_value_print_ptr): New function.
7505 (c_value_print_inner): Use it.
7506
7507 2020-03-13 Tom Tromey <tom@tromey.com>
7508
7509 * c-valprint.c (c_value_print_inner): Rewrite.
7510
7511 2020-03-13 Tom Tromey <tom@tromey.com>
7512
7513 * valprint.c (generic_value_print_complex): New function.
7514 (generic_value_print): Use it.
7515
7516 2020-03-13 Tom Tromey <tom@tromey.com>
7517
7518 * valprint.c (generic_val_print_float): Don't call
7519 val_print_scalar_formatted.
7520 (generic_val_print, generic_value_print): Update.
7521
7522 2020-03-13 Tom Tromey <tom@tromey.com>
7523
7524 * valprint.c (generic_value_print_char): New function
7525 (generic_value_print): Use it.
7526
7527 2020-03-13 Tom Tromey <tom@tromey.com>
7528
7529 * valprint.c (generic_value_print_int): New function.
7530 (generic_value_print): Use it.
7531
7532 2020-03-13 Tom Tromey <tom@tromey.com>
7533
7534 * valprint.c (generic_value_print_bool): New function.
7535 (generic_value_print): Use it.
7536
7537 2020-03-13 Tom Tromey <tom@tromey.com>
7538
7539 * valprint.c (generic_val_print_func): Simplify.
7540 (generic_val_print, generic_value_print): Update.
7541
7542 2020-03-13 Tom Tromey <tom@tromey.com>
7543
7544 * valprint.c (generic_val_print_flags): Remove.
7545 (generic_val_print, generic_value_print): Update.
7546 (val_print_type_code_flags): Add original_value parameter.
7547
7548 2020-03-13 Tom Tromey <tom@tromey.com>
7549
7550 * valprint.c (generic_val_print): Update.
7551 (generic_value_print): Update.
7552 * valprint.c (generic_val_print_enum): Don't call
7553 val_print_scalar_formatted.
7554
7555 2020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7558 * valprint.c (generic_value_print_ptr): New function.
7559
7560 2020-03-13 Tom Tromey <tom@tromey.com>
7561
7562 * valprint.c (generic_value_print): Rewrite.
7563
7564 2020-03-13 Tom Tromey <tom@tromey.com>
7565
7566 * p-valprint.c (pascal_object_print_value_fields)
7567 (pascal_object_print_value): New functions.
7568
7569 2020-03-13 Tom Tromey <tom@tromey.com>
7570
7571 * p-valprint.c (pascal_value_print_inner): Rewrite.
7572
7573 2020-03-13 Tom Tromey <tom@tromey.com>
7574
7575 * f-valprint.c (f_value_print_innner): Rewrite.
7576
7577 2020-03-13 Tom Tromey <tom@tromey.com>
7578
7579 * m2-valprint.c (m2_print_unbounded_array): New overload.
7580 (m2_print_unbounded_array): Update.
7581 (m2_print_array_contents): Take a struct value.
7582 (m2_value_print_inner): Rewrite.
7583
7584 2020-03-13 Tom Tromey <tom@tromey.com>
7585
7586 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7587 (d_value_print_inner): New function.
7588 * d-lang.h (d_value_print_inner): Declare.
7589 * d-lang.c (d_language_defn): Use d_value_print_inner.
7590
7591 2020-03-13 Tom Tromey <tom@tromey.com>
7592
7593 * go-valprint.c (go_value_print_inner): New function.
7594 * go-lang.h (go_value_print_inner): Declare.
7595 * go-lang.c (go_language_defn): Use go_value_print_inner.
7596
7597 2020-03-13 Tom Tromey <tom@tromey.com>
7598
7599 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7600 API.
7601 (rust_val_print): Rewrite.
7602 (rust_value_print_inner): New function, from rust_val_print.
7603 (rust_language_defn): Use rust_value_print_inner.
7604
7605 2020-03-13 Tom Tromey <tom@tromey.com>
7606
7607 * ada-valprint.c (ada_value_print_inner): New function.
7608 * ada-lang.h (ada_value_print_inner): Declare.
7609 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7610
7611 2020-03-13 Tom Tromey <tom@tromey.com>
7612
7613 * f-valprint.c (f_value_print_innner): New function.
7614 * f-lang.h (f_value_print_innner): Declare.
7615 * f-lang.c (f_language_defn): Use f_value_print_innner.
7616
7617 2020-03-13 Tom Tromey <tom@tromey.com>
7618
7619 * p-valprint.c (pascal_value_print_inner): New function.
7620 * p-lang.h (pascal_value_print_inner): Declare.
7621 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7622
7623 2020-03-13 Tom Tromey <tom@tromey.com>
7624
7625 * m2-valprint.c (m2_value_print_inner): New function.
7626 * m2-lang.h (m2_value_print_inner): Declare.
7627 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7628
7629 2020-03-13 Tom Tromey <tom@tromey.com>
7630
7631 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7632 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7633 * c-valprint.c (c_value_print_inner): New function.
7634 * c-lang.h (c_value_print_inner): Declare.
7635 * c-lang.c (c_language_defn, cplus_language_defn)
7636 (asm_language_defn, minimal_language_defn): Use
7637 c_value_print_inner.
7638
7639 2020-03-13 Tom Tromey <tom@tromey.com>
7640
7641 * p-valprint.c (pascal_object_print_value_fields): Now static.
7642 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7643
7644 2020-03-13 Tom Tromey <tom@tromey.com>
7645
7646 * c-valprint.c (c_val_print_array): Simplify.
7647
7648 2020-03-13 Tom Tromey <tom@tromey.com>
7649
7650 * valprint.c (value_print_array_elements): New function.
7651 * valprint.h (value_print_array_elements): Declare.
7652
7653 2020-03-13 Tom Tromey <tom@tromey.com>
7654
7655 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7656 * mips-tdep.c (mips_print_register): Use
7657 value_print_scalar_formatted.
7658
7659 2020-03-13 Tom Tromey <tom@tromey.com>
7660
7661 * valprint.h (value_print_scalar_formatted): Declare.
7662 * valprint.c (value_print_scalar_formatted): New function.
7663
7664 2020-03-13 Tom Tromey <tom@tromey.com>
7665
7666 * valprint.h (generic_value_print): Declare.
7667 * valprint.c (generic_value_print): New function.
7668
7669 2020-03-13 Tom Tromey <tom@tromey.com>
7670
7671 * valprint.c (do_val_print): Call la_value_print_inner, if
7672 available.
7673 * rust-lang.c (rust_language_defn): Update.
7674 * p-lang.c (pascal_language_defn): Update.
7675 * opencl-lang.c (opencl_language_defn): Update.
7676 * objc-lang.c (objc_language_defn): Update.
7677 * m2-lang.c (m2_language_defn): Update.
7678 * language.h (struct language_defn) <la_value_print_inner>: New
7679 member.
7680 * language.c (unknown_language_defn, auto_language_defn): Update.
7681 * go-lang.c (go_language_defn): Update.
7682 * f-lang.c (f_language_defn): Update.
7683 * d-lang.c (d_language_defn): Update.
7684 * c-lang.c (c_language_defn, cplus_language_defn)
7685 (asm_language_defn, minimal_language_defn): Update.
7686 * ada-lang.c (ada_language_defn): Update.
7687
7688 2020-03-13 Tom Tromey <tom@tromey.com>
7689
7690 * c-valprint.c (c_value_print): Use common_val_print.
7691
7692 2020-03-13 Tom Tromey <tom@tromey.com>
7693
7694 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7695
7696 2020-03-13 Tom Tromey <tom@tromey.com>
7697
7698 * f-valprint.c (f77_print_array_1, f_val_print): Use
7699 common_val_print.
7700
7701 2020-03-13 Tom Tromey <tom@tromey.com>
7702
7703 * riscv-tdep.c (riscv_print_one_register_info): Use
7704 common_val_print.
7705
7706 2020-03-13 Tom Tromey <tom@tromey.com>
7707
7708 * mi/mi-main.c (output_register): Use common_val_print.
7709
7710 2020-03-13 Tom Tromey <tom@tromey.com>
7711
7712 * infcmd.c (default_print_one_register_info): Use
7713 common_val_print.
7714
7715 2020-03-13 Tom Tromey <tom@tromey.com>
7716
7717 * valprint.h (common_val_print_checked): Declare.
7718 * valprint.c (common_val_print_checked): New function.
7719 * stack.c (print_frame_arg): Use common_val_print_checked.
7720
7721 2020-03-13 Tom Tromey <tom@tromey.com>
7722
7723 * valprint.c (do_val_print): New function, from val_print.
7724 (val_print): Use do_val_print.
7725 (common_val_print): Use do_val_print.
7726
7727 2020-03-13 Tom Tromey <tom@tromey.com>
7728
7729 * valprint.c (value_print): Use scoped_value_mark.
7730
7731 2020-03-13 Tom de Vries <tdevries@suse.de>
7732
7733 PR symtab/25646
7734 * psymtab.c (partial_symtab::partial_symtab): Don't set
7735 globals_offset and statics_offset. Push element onto
7736 current_global_psymbols and current_static_psymbols stacks.
7737 (concat): New function.
7738 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7739 element from current_global_psymbols and current_static_psymbols
7740 stacks. Concat popped elements to global_psymbols and
7741 static_symbols.
7742 (add_psymbol_to_list): Use current_global_psymbols and
7743 current_static_psymbols stacks.
7744 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7745 current_static_psymbols fields.
7746
7747 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7748
7749 * corelow.c (sniff_core_bfd): Remove.
7750 (class core_target) <m_core_vec>: Remove.
7751 (core_target::core_target): Update.
7752 (core_file_fns): Remove.
7753 (deprecated_add_core_fns): Remove.
7754 (default_core_sniffer): Remove.
7755 (sniff_core_bfd): Remove.
7756 (default_check_format): Remove.
7757 (gdb_check_format): Remove.
7758 (core_target_open): Update.
7759 (core_target::get_core_register_section): Update.
7760 (get_core_registers_cb): Update.
7761 (core_target::fetch_registers): Update.
7762 * gdbcore.h (struct core_fns): Remove.
7763 (deprecated_add_core_fns): Remove.
7764 (default_core_sniffer): Remove.
7765 (default_check_format): Remove.
7766
7767 2020-03-12 Tom Tromey <tom@tromey.com>
7768
7769 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7770 CORE_ADDR.
7771 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7772
7773 2020-03-12 Tom Tromey <tom@tromey.com>
7774
7775 * remote.c (remote_target::download_tracepoint)
7776 (remote_target::enable_tracepoint)
7777 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7778 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7779 sprintf_vma.
7780
7781 2020-03-12 Tom Tromey <tom@tromey.com>
7782
7783 * symfile-mem.c: Update CORE_ADDR size assert.
7784
7785 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7786
7787 * selftest.m4: Move to gdbsupport/.
7788 * acinclude.m4: Update path to selftest.m4.
7789
7790 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7791
7792 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7793 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7794 gdbarch-selfselftests.c and selftest-arch.c.
7795 (SUBDIR_UNITTESTS_OBS): Rename to...
7796 (SELFTESTS_OBS): ... this.
7797 (COMMON_SFILES): Remove disasm-selftests.c and
7798 gdbarch-selftests.c.
7799 * configure.ac: Don't add selftest-arch.{c,o} to
7800 CONFIG_{SRCS,OBS}.
7801 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7802 preprocessor conditions.
7803
7804 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7805
7806 * configure.ac: Don't source bfd/development.sh.
7807 * selftest.m4: Modify comment.
7808 * configure: Re-generate.
7809
7810 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7811
7812 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7813 not "true" or "false".
7814 * configure: Re-generate.
7815
7816 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7817
7818 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7819 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7820 renamed to arm_nbsd_supply_gregset.
7821 (fetch_register): Update to call arm_nbsd_supply_gregset.
7822 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7823 (arm_netbsd_nat_target::fetch_registers): Update.
7824 (fetch_elfcore_registers): Removed.
7825 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7826 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7827 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7828 not require NetBSD system headers.
7829 (arm_nbsd_regset): New struct.
7830 (arm_nbsd_iterate_over_regset_sections): New function.
7831 (arm_netbsd_init_abi_common): Updated to call
7832 set_gdbarch_iterate_over_regset_sections.
7833 * arm-nbsd-tdep.h: New file.
7834
7835 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7836
7837 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7838 recursion.
7839
7840 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7841
7842 * configure: Re-generate.
7843
7844 2020-03-11 Tom Tromey <tromey@adacore.com>
7845
7846 * ada-typeprint.c (print_choices): Fix comment.
7847
7848 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7849
7850 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7851 previous item in the list, when the list has no items.
7852
7853 2020-03-11 Tom de Vries <tdevries@suse.de>
7854
7855 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7856 PROP_LOCLIST handling code.
7857
7858 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7859
7860 * buildsym-legacy.c (record_line): Pass extra parameter to
7861 record_line.
7862 * buildsym.c (buildsym_compunit::record_line): Take an extra
7863 parameter, reduce duplication in the line table, and record the
7864 is_stmt flag in the line table.
7865 * buildsym.h (buildsym_compunit::record_line): Add extra
7866 parameter.
7867 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7868 non-statement lines.
7869 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7870 this to the symtab builder.
7871 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7872 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7873 through to dwarf_record_line_1.
7874 * infrun.c (process_event_stop_test): When stepping, don't stop at
7875 a non-statement instruction, and only refresh the step info when
7876 we land in the middle of a line's range. Also add an extra
7877 comment.
7878 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7879 field.
7880 * record-btrace.c (btrace_find_line_range): Only record lines
7881 marked as is-statement.
7882 * stack.c (frame_show_address): Show the frame address if we are
7883 in a non-statement sal.
7884 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7885 (maintenance_print_one_line_table): Print a header for the is_stmt
7886 column, and include is_stmt information in the output.
7887 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7888 preference to non-statements.
7889 (find_pcs_for_symtab_line): Prefer is-statement entries.
7890 (find_line_common): Likewise.
7891 * symtab.h (struct linetable_entry): Add is_stmt field.
7892 (struct symtab_and_line): Likewise.
7893 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7894 arranging the line table.
7895
7896 2020-03-07 Tom de Vries <tdevries@suse.de>
7897
7898 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7899 DIE.
7900
7901 2020-03-07 Tom Tromey <tom@tromey.com>
7902
7903 * valops.c (value_literal_complex): Remove obsolete comment.
7904 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7905 comment.
7906
7907 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7908
7909 * infrun.h: Forward-declare thread_info.
7910 (set_step_info): Add thread_info parameter, add doc.
7911 * infrun.c (set_step_info): Add thread_info parameter, move doc
7912 to header.
7913 * infrun.c (process_event_stop_test): Pass thread to
7914 set_step_info call.
7915 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7916 set_step_info.
7917 (prepare_one_step): Add thread_info parameter, pass it to
7918 set_step_frame and prepare_one_step (recursive) call.
7919 (step_1): Pass thread to prepare_one_step call.
7920 (step_command_fsm::should_stop): Pass thread to
7921 prepare_one_step.
7922 (until_next_fsm): Pass thread to set_step_frame call.
7923 (finish_command): Pass thread to set_step_info call.
7924
7925 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7926
7927 * windows-tdep.c (windows_solib_create_inferior_hook):
7928 Check if inferior is running.
7929
7930 2020-03-06 Tom de Vries <tdevries@suse.de>
7931
7932 * NEWS: Fix "the the".
7933 * ctfread.c: Same.
7934
7935 2020-03-06 Tom de Vries <tdevries@suse.de>
7936
7937 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7938
7939 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7940
7941 * .dir-locals.el: Add a comment referencing the other copies of
7942 this file.
7943
7944 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7945
7946 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7947 psargs.
7948
7949 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7950
7951 * .gitattributes: New file.
7952
7953 2020-03-04 Tom Tromey <tom@tromey.com>
7954
7955 * symmisc.c (print_symbol_bcache_statistics)
7956 (print_objfile_statistics): Update.
7957 * symfile.c (allocate_symtab): Use intern.
7958 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7959 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7960 macro_cache>: Remove.
7961 <string_cache>: New member.
7962 (struct objfile) <intern>: New methods.
7963 * elfread.c (elf_symtab_read): Use intern.
7964 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7965 (dwarf2_compute_name, dwarf2_physname)
7966 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7967 names.
7968 (guess_partial_die_structure_name): Update.
7969 (partial_die_info::fixup): Intern name.
7970 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7971 name.
7972 (dwarf2_name): Intern name. Update.
7973 * buildsym.c (buildsym_compunit::get_macro_table): Use
7974 string_cache.
7975
7976 2020-03-04 Tom Tromey <tom@tromey.com>
7977
7978 * jit.c (bfd_open_from_target_memory): Make "target" const.
7979 * corefile.c (gnutarget): Now const.
7980 * gdbcore.h (gnutarget): Now const.
7981
7982 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7983
7984 * NEWS: Mention support for WOW64 processes.
7985 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7986 (amd64_windows_segment_register_p): Remove static.
7987 (_initialize_amd64_windows_nat): Update.
7988 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7989 * i386-windows-nat.c (context_offset): Update.
7990 (i386_mappings): Rename and remove static.
7991 (i386_windows_segment_register_p): Remove static.
7992 (_initialize_i386_windows_nat): Update.
7993 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7994 (STATUS_WX86_SINGLE_STEP): New macro.
7995 (EnumProcessModulesEx): New macro.
7996 (Wow64SuspendThread): New macro.
7997 (Wow64GetThreadContext): New macro.
7998 (Wow64SetThreadContext): New macro.
7999 (Wow64GetThreadSelectorEntry): New macro.
8000 (windows_set_context_register_offsets): Add static.
8001 (windows_set_segment_register_p): Likewise.
8002 (windows_add_thread): Adapt for WOW64 processes.
8003 (windows_fetch_one_register): Likewise.
8004 (windows_nat_target::fetch_registers): Likewise.
8005 (windows_store_one_register): Likewise.
8006 (display_selector): Likewise.
8007 (display_selectors): Likewise.
8008 (handle_exception): Likewise.
8009 (windows_continue): Likewise.
8010 (windows_nat_target::resume): Likewise.
8011 (windows_add_all_dlls): Likewise.
8012 (do_initial_windows_stuff): Likewise.
8013 (windows_nat_target::attach): Likewise.
8014 (windows_get_exec_module_filename): Likewise.
8015 (windows_nat_target::create_inferior): Likewise.
8016 (windows_xfer_siginfo): Likewise.
8017 (_initialize_loadable): Initialize Wow64SuspendThread,
8018 Wow64GetThreadContext, Wow64SetThreadContext,
8019 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8020 * windows-nat.h (windows_set_context_register_offsets):
8021 Remove declaration.
8022 (windows_set_segment_register_p): Likewise.
8023 (i386_windows_segment_register_p): Add declaration.
8024 (amd64_windows_segment_register_p): Likewise.
8025
8026 2020-03-04 Luis Machado <luis.machado@linaro.org>
8027
8028 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8029 in "info registers" for AArch64/ARM.
8030
8031 The change caused "info registers" to not print GPR's.
8032
8033 gdb/ChangeLog:
8034
8035 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8036
8037 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8038 when reg->group is empty and reggroup is not.
8039
8040 2020-03-03 Tom Tromey <tromey@adacore.com>
8041
8042 * dwarf2/frame.c (struct dwarf2_frame_cache)
8043 <checked_tailcall_bottom, entry_cfa_sp_offset,
8044 entry_cfa_sp_offset_p>: Remove members.
8045 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8046 (dwarf2_frame_prev_register): Don't call
8047 dwarf2_tailcall_sniffer_first.
8048 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8049 * frame-unwind.c (add_unwinder): New fuction.
8050 (frame_unwind_init): Use it. Add tailcall unwinder.
8051
8052 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8053 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8054
8055 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8056 value should be printed as true.
8057
8058 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8059
8060 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8061 (windows_init_abi): Set and use windows_so_ops.
8062
8063 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8064
8065 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8066 when verifying if dealing with a convenience variable.
8067
8068 2020-03-03 Luis Machado <luis.machado@linaro.org>
8069
8070 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8071
8072 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8073
8074 * infrun.c (gdbarch_supports_displaced_stepping): New.
8075 (use_displaced_stepping): Break up conditions in smaller pieces.
8076 Use gdbarch_supports_displaced_stepping.
8077 (displaced_step_prepare_throw): Use
8078 gdbarch_supports_displaced_stepping.
8079
8080 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8081
8082 * NEWS: Mention new behaviour of the history filename.
8083 * top.c (write_history_p): Add comment.
8084 (show_write_history_p): Add header comment, give a different
8085 message when history writing is on, but the history filename is
8086 empty.
8087 (history_filename): Add comment.
8088 (history_filename_empty): New function.
8089 (show_history_filename): Add header comment, give a different
8090 message when the filename is empty.
8091 (init_history): Compare history_filename against nullptr, and only
8092 read history if the filename is not empty.
8093 (set_history_filename): Add header comment, and only make
8094 non-empty filenames absolute.
8095 (init_main): Make the filename argument to 'set history filename'
8096 optional.
8097
8098 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8099
8100 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8101 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8102 (fetch_fp_register): Update.
8103 (fetch_fp_regs): Update.
8104 (store_fp_register): Update.
8105 (store_fp_regs): Update.
8106 (arm_netbsd_nat_target::read_description): New function.
8107 (fetch_elfcore_registers): Update.
8108
8109 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8110
8111 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8112 general_thread if the stop reply is missing a thread-id.
8113 (remote_target::process_stop_reply): Use the first non-exited
8114 thread if the target didn't pass a thread-id.
8115 * infrun.c (do_target_wait): Move call to
8116 switch_to_inferior_no_thread to ....
8117 (do_target_wait_1): ... here.
8118
8119 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8120
8121 * debuginfod-support.c: Include defs.h first.
8122
8123 2020-02-28 Tom de Vries <tdevries@suse.de>
8124
8125 * symfile.c (set_initial_language): Use default language for lookup.
8126
8127 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8128
8129 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8130 reader variable, pass `this` to read_cutu_die_from_dwo.
8131
8132 2020-02-27 Aaron Merey <amerey@redhat.com>
8133
8134 * source.c (open_source_file): Check for nullptr when computing
8135 srcpath.
8136
8137 2020-02-27 Tom Tromey <tromey@adacore.com>
8138
8139 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8140 member.
8141 (dwarf2_add_field): Don't update nfields.
8142 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8143
8144 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8145
8146 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8147 abs.
8148
8149 2020-02-26 Tom Tromey <tom@tromey.com>
8150
8151 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8152 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8153 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8154 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8155 per_cu_data.
8156
8157 2020-02-26 Tom Tromey <tom@tromey.com>
8158
8159 * dwarf2/index-write.c (psym_index_map): Change type.
8160 (add_address_entry_worker, write_one_signatured_type)
8161 (recursively_count_psymbols, recursively_write_psymbols)
8162 (class debug_names, psyms_seen_size, write_gdbindex)
8163 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8164
8165 2020-02-26 Aaron Merey <amerey@redhat.com>
8166
8167 * Makefile.in: Handle optional debuginfod support.
8168 * NEWS: Update.
8169 * README: Add --with-debuginfod summary.
8170 * config.in: Regenerate.
8171 * configure: Regenerate.
8172 * configure.ac: Handle optional debuginfod support.
8173 * debuginfod-support.c: debuginfod helper functions.
8174 * debuginfod-support.h: Ditto.
8175 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8176 summary.
8177 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8178 when a dwz file cannot be found.
8179 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8180 debuginfo file cannot be found.
8181 * source.c (open_source_file): Query debuginfod servers when a
8182 source file cannot be found.
8183 * top.c (print_gdb_configuration): Include
8184 --{with,without}-debuginfod in the output.
8185
8186 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8187
8188 * thread.c (thr_try_catch_cmd): Print thread name.
8189
8190 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8191
8192 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8193 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8194 dwarf2_fetch_die_type_sect_off): Move to...
8195 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8196 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8197 dwarf2_fetch_die_type_sect_off): ... here.
8198 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8199 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8200 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8201
8202 2020-02-26 Tom de Vries <tdevries@suse.de>
8203
8204 PR gdb/25603
8205 * symfile.c (set_initial_language): Exit-early if
8206 language_mode == language_mode_manual.
8207
8208 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8209
8210 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8211 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8212 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8213
8214 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8215
8216 * gdbtypes.c (create_array_type_with_stride): Handle negative
8217 array strides.
8218 * valarith.c (value_subscripted_rvalue): Likewise.
8219
8220 2020-02-25 Luis Machado <luis.machado@linaro.org>
8221
8222 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8223
8224 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8225
8226 * loc.h (dwarf2_get_die_type): Move to...
8227 * read.h (dwarf2_get_die_type): ... here.
8228 * read.c (dwarf2_get_die_type): Move doc to header.
8229
8230 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8231
8232 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8233 'gnulib/Makefile.in' to the list.
8234
8235 2020-02-24 Tom Tromey <tom@tromey.com>
8236
8237 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8238 Remove.
8239 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8240 XOBNEWVEC.
8241
8242 2020-02-24 Tom Tromey <tom@tromey.com>
8243
8244 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8245 New method.
8246 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8247 (dw2_do_instantiate_symtab, dw2_get_file_names)
8248 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8249
8250 2020-02-24 Tom Tromey <tom@tromey.com>
8251
8252 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8253 make_scoped_restore.
8254 (dwarf2_psymtab::read_symtab): Don't clear
8255 reading_partial_symbols.
8256
8257 2020-02-24 Tom de Vries <tdevries@suse.de>
8258
8259 PR gdb/25592
8260 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8261
8262 2020-02-24 Tom de Vries <tdevries@suse.de>
8263
8264 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8265 commands layout next/prev/regs.
8266
8267 2020-02-22 Tom Tromey <tom@tromey.com>
8268
8269 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8270 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8271
8272 2020-02-22 Tom Tromey <tom@tromey.com>
8273
8274 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8275
8276 2020-02-22 Tom Tromey <tom@tromey.com>
8277
8278 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8279 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8280 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8281 * tui/tui.c (_initialize_tui): Add usage text.
8282
8283 2020-02-22 Tom Tromey <tom@tromey.com>
8284
8285 * tui/tui-win.c (tui_set_focus_command)
8286 (tui_set_win_height_command): Use error_no_arg.
8287 (_initialize_tui_win): Update help text.
8288 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8289
8290 2020-02-22 Tom Tromey <tom@tromey.com>
8291
8292 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8293 * tui/tui-disasm.h (struct tui_disasm_window)
8294 <display_start_addr>: Declare.
8295 * tui/tui-source.h (struct tui_source_window)
8296 <display_start_addr>: Declare.
8297 * tui/tui-winsource.h (struct tui_source_window_base)
8298 <show_source_line, display_start_addr>: New methods.
8299 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8300 Rename and move to protected section.
8301 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8302 (tui_source_window_base::do_erase_source_content): Update.
8303 (tui_source_window_base::show_source_line): Now a method.
8304 (tui_source_window_base::show_source_content)
8305 (tui_source_window_base::tui_source_window_base)
8306 (tui_source_window_base::rerender)
8307 (tui_source_window_base::refill)
8308 (tui_source_window_base::do_scroll_horizontal)
8309 (tui_source_window_base::set_is_exec_point_at)
8310 (tui_source_window_base::update_breakpoint_info)
8311 (tui_source_window_base::update_exec_info): Update.
8312 * tui/tui-source.c (tui_source_window::set_contents)
8313 (tui_source_window::showing_source_p)
8314 (tui_source_window::do_scroll_vertical)
8315 (tui_source_window::location_matches_p)
8316 (tui_source_window::line_is_displayed): Update.
8317 (tui_source_window::display_start_addr): New method.
8318 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8319 (tui_disasm_window::do_scroll_vertical)
8320 (tui_disasm_window::location_matches_p): Update.
8321 (tui_disasm_window::display_start_addr): New method.
8322
8323 2020-02-22 Tom Tromey <tom@tromey.com>
8324
8325 * NEWS: Add entry for gdb.register_window_type.
8326 * tui/tui-layout.h (window_factory): New typedef.
8327 (tui_register_window): Declare.
8328 * tui/tui-layout.c (saved_tui_windows): New global.
8329 (tui_apply_current_layout): Use it.
8330 (tui_register_window): New function.
8331 * python/python.c (do_start_initialization): Call
8332 gdbpy_initialize_tui.
8333 (python_GdbMethods): Add "register_window_type" function.
8334 * python/python-internal.h (gdbpy_register_tui_window)
8335 (gdbpy_initialize_tui): Declare.
8336 * python/py-tui.c: New file.
8337 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8338
8339 2020-02-22 Tom Tromey <tom@tromey.com>
8340
8341 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8342
8343 2020-02-22 Tom Tromey <tom@tromey.com>
8344
8345 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8346 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8347 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8348 (tui_set_win_focus_to): Move from tui-win.c.
8349
8350 2020-02-22 Tom Tromey <tom@tromey.com>
8351
8352 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8353 functions.
8354 (known_window_types): New global.
8355 (tui_get_window_by_name): Reimplement.
8356 (initialize_known_windows): New function.
8357 (validate_window_name): Rewrite.
8358 (_initialize_tui_layout): Call initialize_known_windows.
8359
8360 2020-02-22 Tom Tromey <tom@tromey.com>
8361
8362 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8363 Remove constants.
8364 * tui/tui-winsource.h (struct tui_source_window_base)
8365 <tui_source_window_base>: Remove parameter.
8366 * tui/tui-winsource.c
8367 (tui_source_window_base::tui_source_window_base): Remove
8368 parameter.
8369 (tui_source_window_base::refill): Update.
8370 * tui/tui-stack.h (struct tui_locator_window)
8371 <tui_locator_window>: Update.
8372 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8373 Default the constructor.
8374 * tui/tui-regs.h (struct tui_data_item_window)
8375 <tui_data_item_window>: Default the constructor.
8376 (struct tui_data_window) <tui_data_window>: Likewise.
8377 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8378 Default the constructor.
8379 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8380 Default the constructor.
8381 <type>: Remove.
8382 (struct tui_win_info) <tui_win_info>: Default the constructor.
8383 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8384 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8385 Default the constructor.
8386
8387 2020-02-22 Tom Tromey <tom@tromey.com>
8388
8389 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8390 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8391 * tui/tui-win.c (tui_resize_all): Don't call
8392 tui_delete_invisible_windows.
8393 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8394 done.
8395 (tui_set_layout): Update.
8396 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8397 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8398 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8399
8400 2020-02-22 Tom Tromey <tom@tromey.com>
8401
8402 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8403 correctly.
8404
8405 2020-02-22 Tom Tromey <tom@tromey.com>
8406
8407 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8408
8409 2020-02-22 Tom Tromey <tom@tromey.com>
8410
8411 * tui/tui-winsource.h (struct tui_source_window_iterator)
8412 <inner_iterator>: New etytypedef.
8413 <tui_source_window_iterator>: Take "end" parameter.
8414 <tui_source_window_iterator>: Take iterator.
8415 <operator*, advance>: Update.
8416 <m_iter>: Change type.
8417 <m_end>: New field.
8418 (struct tui_source_windows) <begin, end>: Update.
8419 * tui/tui-layout.c (tui_windows): New global.
8420 (tui_apply_current_layout): Clear tui_windows.
8421 (tui_layout_window::apply): Update tui_windows.
8422 * tui/tui-data.h (tui_windows): Declare.
8423 (all_tui_windows): Now inline function.
8424 (class tui_window_iterator, struct all_tui_windows): Remove.
8425
8426 2020-02-22 Tom Tromey <tom@tromey.com>
8427
8428 PR tui/17850:
8429 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8430 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8431 "height" argument.
8432 (class tui_layout_window) <get_sizes>: Likewise.
8433 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8434 argument.
8435 <get_sizes>: Add "height" argument.
8436 <m_vertical>: New field.
8437 * tui/tui-layout.c (tui_layout_split::clone): Update.
8438 (tui_layout_split::get_sizes): Add "height" argument.
8439 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8440 (tui_new_layout_command): Parse "-horizontal".
8441 (_initialize_tui_layout): Update help string.
8442 (tui_layout_split::specification): Add "-horizontal" when needed.
8443 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8444 argument.
8445 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8446 New methods.
8447
8448 2020-02-22 Tom Tromey <tom@tromey.com>
8449
8450 * tui/tui-layout.h (enum tui_adjust_result): New.
8451 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8452 (class tui_layout_window) <adjust_size>: Return
8453 tui_adjust_result. Rewrite.
8454 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8455 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8456
8457 2020-02-22 Tom Tromey <tom@tromey.com>
8458
8459 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8460 parameter and return types.
8461 (class tui_layout_base) <specification>: Add "depth".
8462 (class tui_layout_window) <specification>: Add "depth".
8463 (class tui_layout_split) <specification>: Add "depth".
8464 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8465 and return types.
8466 (tui_new_layout_command): Parse sub-layouts.
8467 (_initialize_tui_layout): Update help string.
8468 (tui_layout_window::specification): Add "depth".
8469 (add_layout_command): Update.
8470
8471 2020-02-22 Tom Tromey <tom@tromey.com>
8472
8473 * NEWS: Add "tui new-layout" item.
8474 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8475 Add new-layout command to help text.
8476 (validate_window_name): New function.
8477 (tui_new_layout_command): New function.
8478 (_initialize_tui_layout): Register "new-layout".
8479 (tui_layout_window::specification): New method.
8480 (tui_layout_window::specification): New method.
8481 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8482 method.
8483 (class tui_layout_window) <specification>: New method.
8484 (class tui_layout_split) <specification>: New method.
8485
8486 2020-02-22 Tom Tromey <tom@tromey.com>
8487
8488 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8489 * tui/tui-win.c (window_name_completer): Update comment.
8490 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8491 Declare method.
8492 (class tui_layout_window) <replace_window>: Likewise.
8493 (class tui_layout_split) <replace_window>: Likewise.
8494 (tui_set_layout): Don't declare.
8495 (tui_set_initial_layout): Declare function.
8496 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8497 (asm_regs_layout): New globals.
8498 (tui_current_layout, show_layout): Remove.
8499 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8500 (find_layout, tui_apply_layout): New function.
8501 (layout_completer): Remove.
8502 (tui_next_layout): Reimplement.
8503 (tui_next_layout_command): New function.
8504 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8505 (tui_regs_layout): Reimplement.
8506 (tui_regs_layout_command): New function.
8507 (extract_display_start_addr): Rewrite.
8508 (next_layout, prev_layout): Remove.
8509 (tui_layout_window::replace_window): New method.
8510 (tui_layout_split::replace_window): New method.
8511 (destroy_layout): New function.
8512 (layout_list): New global.
8513 (add_layout_command): New function.
8514 (initialize_layouts): Update.
8515 (tui_layout_command): New function.
8516 (_initialize_tui_layout): Install "layout" commands.
8517 * tui/tui-data.h (enum tui_layout_type): Remove.
8518 (tui_current_layout): Don't declare.
8519
8520 2020-02-22 Tom Tromey <tom@tromey.com>
8521
8522 * tui/tui-regs.c (tui_reg_layout): Remove.
8523 (tui_reg_command): Use tui_regs_layout.
8524 * tui/tui-layout.h (tui_reg_command): Declare.
8525 * tui/tui-layout.c (tui_reg_command): New function.
8526
8527 2020-02-22 Tom Tromey <tom@tromey.com>
8528
8529 * tui/tui.c (tui_rl_delete_other_windows): Call
8530 tui_remove_some_windows.
8531 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8532 Declare method.
8533 (class tui_layout_window) <remove_windows>: New method.
8534 (class tui_layout_split) <remove_windows>: Declare.
8535 (tui_remove_some_windows): Declare.
8536 * tui/tui-layout.c (tui_remove_some_windows): New function.
8537 (tui_layout_split::remove_windows): New method.
8538
8539 2020-02-22 Tom Tromey <tom@tromey.com>
8540
8541 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8542 * tui/tui-layout.h (tui_next_layout): Declare.
8543 * tui/tui-layout.c (tui_next_layout): New function.
8544
8545 2020-02-22 Tom Tromey <tom@tromey.com>
8546
8547 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8548 correct coordinates.
8549
8550 2020-02-22 Tom Tromey <tom@tromey.com>
8551
8552 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8553 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8554 DATA_WIN case.
8555
8556 2020-02-22 Tom Tromey <tom@tromey.com>
8557
8558 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8559 TUI_DISASM_WIN, not tui_win_list.
8560
8561 2020-02-22 Tom Tromey <tom@tromey.com>
8562
8563 * valprint.c (generic_val_print_enum_1)
8564 (val_print_type_code_flags): Style member names.
8565 * rust-lang.c (val_print_struct, rust_print_enum)
8566 (rust_print_struct_def, rust_internal_print_type): Style member
8567 names.
8568 * p-valprint.c (pascal_object_print_value_fields): Style member
8569 names. Only call fprintf_symbol_filtered for static members.
8570 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8571 * f-valprint.c (f_val_print): Style member names.
8572 * f-typeprint.c (f_type_print_base): Style member names.
8573 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8574 call fprintf_symbol_filtered for static members.
8575 (cp_print_class_member): Style member names.
8576 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8577 member names.
8578 * ada-valprint.c (ada_print_scalar): Style enum names.
8579 (ada_val_print_enum): Likewise.
8580 * ada-typeprint.c (print_enum_type): Style enum names.
8581
8582 2020-02-21 Tom Tromey <tom@tromey.com>
8583
8584 * psympriv.h (struct partial_symtab): Update comment.
8585
8586 2020-02-21 Tom Tromey <tromey@adacore.com>
8587
8588 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8589 type is CORE_ADDR.
8590
8591 2020-02-21 Tom de Vries <tdevries@suse.de>
8592
8593 PR gdb/25534
8594 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8595 if dependencies[i]->user != NULL.
8596
8597 2020-02-21 Ali Tamur <tamur@google.com>
8598
8599 * dwarf2/read.c (dwarf2_name): Add null check.
8600
8601 2020-02-20 Tom Tromey <tom@tromey.com>
8602
8603 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8604 ">=", in binary search.
8605 (dwarf2_find_containing_comp_unit): New overload.
8606 (run_test): New self-test.
8607 (_initialize_dwarf2_read): Register new test.
8608
8609 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8610
8611 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8612 * riscv-tdep.h: Likewise.
8613 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8614 rv32-only CSR.
8615 * features/riscv/64bit-csr.xml: Regenerated.
8616
8617 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8618 Tom Tromey <tom@tromey.com>
8619
8620 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8621 of 'fputc_unfiltered'.
8622 (putchar_unfiltered): Call 'fputc_unfiltered'.
8623 (fputc_unfiltered): Call 'fputs_unfiltered'.
8624
8625 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8626
8627 * config.in: Regenerate.
8628 * configure: Regenerate.
8629 * configure.ac: Add --with-python-libdir option.
8630 * main.c: Use WITH_PYTHON_LIBDIR.
8631
8632 2020-02-19 Tom Tromey <tom@tromey.com>
8633
8634 * symtab.c (general_symbol_info::compute_and_set_names): Use
8635 obstack_strndup. Simplify call to symbol_set_demangled_name.
8636
8637 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8638
8639 * dwarf2/read.c (allocate_signatured_type_table,
8640 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8641 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8642 Remove objfile parameter, update all callers.
8643
8644 2020-02-19 Doug Evans <dje@google.com>
8645
8646 PR rust/25535
8647 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8648 rust_enum_variant calculation.
8649
8650 2020-02-19 Tom Tromey <tromey@adacore.com>
8651
8652 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8653
8654 2020-02-19 Tom Tromey <tromey@adacore.com>
8655
8656 * ada-lang.c (cache_symbol): Use obstack_strdup.
8657
8658 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8659
8660 * configure: Regenerate.
8661
8662 2020-02-19 Tom Tromey <tromey@adacore.com>
8663
8664 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8665 NULL check.
8666
8667 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8668
8669 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8670
8671 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8672
8673 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8674 if GDBSERVER is not defined.
8675 (riscv_tdesc_cache): Likewise, also store const target_desc.
8676 (STATIC_IN_GDB): Define.
8677 (riscv_create_target_description): Update declaration with
8678 STATIC_IN_GDB.
8679 (riscv_lookup_target_description): New function, only define if
8680 GDBSERVER is not defined.
8681 * arch/riscv.h (riscv_create_target_description): Declare only
8682 when GDBSERVER is defined.
8683 (riscv_lookup_target_description): New declaration when GDBSERVER
8684 is not defined.
8685 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8686 (riscv_linux_read_features): ...this, and return
8687 riscv_gdbarch_features instead of target_desc.
8688 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8689 (riscv_linux_read_description): Rename to...
8690 (riscv_linux_read_features): ...this.
8691 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8692 Update to use riscv_gdbarch_features and
8693 riscv_lookup_target_description.
8694 * riscv-tdep.c (riscv_find_default_target_description): Use
8695 riscv_lookup_target_description instead of
8696 riscv_create_target_description.
8697
8698 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8699
8700 * valprint.c (generic_val_print_enum_1): When printing a flag
8701 enum with value 0 and there is no enumerator with value 0, print
8702 just "0" instead of "(unknown: 0x0)".
8703
8704 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8705
8706 * valprint.c (generic_val_print_enum_1): Print unknown part of
8707 flag enum in hex.
8708
8709 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8710
8711 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8712 flag enums to contain duplicate enumerators.
8713 * valprint.c (generic_val_print_enum_1): Update comment.
8714
8715 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8716
8717 * dwarf2/read.c: Include "count-one-bits.h".
8718 (update_enumeration_type_from_children): If an enumerator has
8719 multiple bits set, don't treat the enumeration as a "flag enum".
8720 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8721 of flag enums have 0 or 1 bit set.
8722
8723 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8724
8725 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8726 conversion.
8727 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8728 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8729 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8730 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8731 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8732
8733 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8734
8735 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8736
8737 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8738
8739 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8740 displaced_step_closure_up.
8741 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8742 (struct displaced_step_closure_up):
8743 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8744 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8745 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8746 Likewise.
8747 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8748 * gdbarch.c, gdbarch.h: Re-generate.
8749 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8750 displaced_step_closure_up.
8751 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8752 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8753 * infrun.h (displaced_step_closure_up): New type alias.
8754 (struct displaced_step_inferior_state) <step_closure>: Change
8755 type to displaced_step_closure_up.
8756 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8757 displaced_step_closure_up.
8758 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8759
8760 2020-02-14 Tom Tromey <tom@tromey.com>
8761
8762 * minidebug.c (gnu_debug_key): New global.
8763 (find_separate_debug_file_in_section): Use it.
8764
8765 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8766
8767 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8768 std::unique_ptr.
8769 * gdbarch.c: Re-generate.
8770 * gdbarch.h: Re-generate.
8771 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8772 change.
8773 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8774 type to std::unique_ptr.
8775 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8776 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8777 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8778 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8779 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8780 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8781 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8782 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8783 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8784
8785 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8786
8787 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8788 std::unique_ptr.
8789 (displaced_step_clear): Rename to...
8790 (displaced_step_reset): ... this. Just call displaced->reset ().
8791 (displaced_step_clear_cleanup): Rename to...
8792 (displaced_step_reset_cleanup): ... this.
8793 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8794 (displaced_step_fixup): Likewise.
8795 (resume_1): Likewise.
8796 (handle_inferior_event): Restore child's memory before calling
8797 displaced_step_fixup on the parent.
8798 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8799 to std::unique_ptr.
8800 <step_closure>: Change type to std::unique_ptr.
8801
8802 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8803
8804 * arm-tdep.c: Include count-one-bits.h.
8805 (cleanup_block_store_pc): Use count_one_bits.
8806 (cleanup_block_load_pc): Use count_one_bits.
8807 (arm_copy_block_xfer): Use count_one_bits.
8808 (thumb2_copy_block_xfer): Use count_one_bits.
8809 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8810 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8811 (thumb_get_next_pcs_raw): Use count_one_bits.
8812 (arm_get_next_pcs_raw): Use count_one_bits_l.
8813 * arch/arm.c (bitcount): Remove.
8814 * arch/arm.h (bitcount): Remove.
8815
8816 2020-02-14 Tom Tromey <tromey@adacore.com>
8817
8818 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8819 Update.
8820 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8821 * dwarf2/loc.c (call_site_find_chain_1): Return
8822 unique_xmalloc_ptr.
8823 (call_site_find_chain): Likewise.
8824
8825 2020-02-14 Richard Biener <rguenther@suse.de>
8826
8827 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8828 on expression with division operators.
8829
8830 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8831
8832 * MAINTAINERS (Write After Approval): Adding myself.
8833
8834 2020-02-12 Tom Tromey <tom@tromey.com>
8835
8836 * event-loop.c (event_data, gdb_event, event_handler_func):
8837 Remove.
8838
8839 2020-02-12 Tom Tromey <tom@tromey.com>
8840
8841 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8842 (dwarf2_frame_objfile_data): Add comment.
8843 (find_comp_unit, set_comp_unit): New functions.
8844 (dwarf2_frame_find_fde): Use find_comp_unit.
8845 (dwarf2_build_frame_info): Use set_comp_unit.
8846
8847 2020-02-12 Tom Tromey <tom@tromey.com>
8848
8849 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8850 (comp_unit): Don't initialize objfile.
8851 (execute_cfa_program): Add text_offset parameter.
8852 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8853 (dwarf2_frame_cache): Update.
8854 (dwarf2_build_frame_info): Don't set "objfile" member.
8855
8856 2020-02-12 Tom Tromey <tom@tromey.com>
8857
8858 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8859 (decode_frame_entry): Likewise.
8860 (dwarf2_build_frame_info): Update.
8861
8862 2020-02-12 Tom Tromey <tom@tromey.com>
8863
8864 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8865 (decode_frame_entry_1): Use the comp_unit obstack.
8866
8867 2020-02-12 Tom Tromey <tom@tromey.com>
8868
8869 * dwarf2/frame.c (struct comp_unit): Add initializers and
8870 constructor.
8871 (dwarf2_frame_objfile_data): Store a comp_unit.
8872 (dwarf2_frame_find_fde): Update.
8873 (dwarf2_build_frame_info): Use "new".
8874
8875 2020-02-12 Tom Tromey <tom@tromey.com>
8876
8877 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8878 (dwarf2_fde_table): Typedef for std::vector.
8879 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8880 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8881 (decode_frame_entry): Update.
8882 (dwarf2_build_frame_info): Use "new".
8883
8884 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8885
8886 * arm-tdep.c (arm_gdbarch_init): Update.
8887 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8888 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8889 have_neon, is_m>: Change to bool.
8890
8891 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8892
8893 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8894
8895 2020-02-12 Tom Tromey <tom@tromey.com>
8896
8897 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8898
8899 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8900
8901 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8902 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8903
8904 2020-02-11 Tom Tromey <tom@tromey.com>
8905
8906 * psymtab.h: Update comment.
8907
8908 2020-02-11 Tom Tromey <tom@tromey.com>
8909
8910 * gdb_obstack.h (struct auto_obstack): Use
8911 DISABLE_COPY_AND_ASSIGN.
8912
8913 2020-02-11 Tom Tromey <tom@tromey.com>
8914
8915 * dwarf2/frame.h (struct objfile): Don't forward declare.
8916
8917 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8918
8919 * cris-tdep.c (cris_supply_gregset): Change signature to match
8920 what struct regset expects.
8921 (cris_regset): New struct.
8922 (fetch_core_registers): Remove.
8923 (cris_iterate_over_regset_sections): New function.
8924 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8925 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8926
8927 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8928
8929 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8930 registers.
8931
8932 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8933
8934 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8935
8936 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8937
8938 * configure: Re-generate.
8939
8940 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8941
8942 * configure: Re-generate.
8943
8944 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8945
8946 * acinclude: Update warning.m4 path.
8947 * warning.m4: Move to gdbsupport.
8948
8949 2020-02-11 Tom Tromey <tromey@adacore.com>
8950
8951 * remote.c (remote_console_output): Update.
8952 * printcmd.c (printf_command): Update.
8953 * event-loop.c (gdb_wait_for_event): Update.
8954 * linux-nat.c (sigchld_handler): Update.
8955 * remote-sim.c (gdb_os_write_stdout): Update.
8956 (gdb_os_flush_stdout): Update.
8957 (gdb_os_flush_stderr): Update.
8958 (gdb_os_write_stderr): Update.
8959 * exceptions.c (print_exception): Update.
8960 * remote-fileio.c (remote_fileio_func_read): Update.
8961 (remote_fileio_func_write): Update.
8962 * tui/tui.c (tui_enable): Update.
8963 * tui/tui-interp.c (tui_interp::init): Update.
8964 * utils.c (init_page_info): Update.
8965 (putchar_unfiltered, fputc_unfiltered): Update.
8966 (gdb_flush): Update.
8967 (emit_style_escape): Update.
8968 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8969 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8970 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8971 (stderr_file::write): Update.
8972 (stderr_file::puts): Update.
8973 * ui-file.h (ui_file_isatty, ui_file_write)
8974 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8975 (ui_file_puts): Don't declare.
8976
8977 2020-02-10 Tom de Vries <tdevries@suse.de>
8978
8979 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8980 sentinel to char *.
8981
8982 2020-02-09 Tom de Vries <tdevries@suse.de>
8983
8984 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8985 filename if it matches "<artificial>".
8986
8987 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8988
8989 * windows-tdep.c (struct enum_value_name): New struct.
8990 (create_enum): New function.
8991 (windows_get_siginfo_type): Create and use enum types.
8992
8993 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8994
8995 * NEWS: Mention $_siginfo support for Windows.
8996 * windows-nat.c (handle_exception): Set siginfo_er.
8997 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8998 (windows_xfer_siginfo): New function.
8999 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9000 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9001 (init_windows_gdbarch_data): New function.
9002 (get_windows_gdbarch_data): New function.
9003 (windows_get_siginfo_type): New function.
9004 (windows_init_abi): Register windows_get_siginfo_type.
9005 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9006
9007 2020-02-08 Tom Tromey <tom@tromey.com>
9008
9009 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9010 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9011 <keep>: Declare method.
9012 <m_keep>: Remove member.
9013 <~cutu_reader>: Remove.
9014 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9015 (cutu_reader::cutu_reader): Update.
9016 (cutu_reader::keep): Rename from ~cutu_reader.
9017 (process_psymtab_comp_unit, build_type_psymtabs_1)
9018 (process_skeletonless_type_unit, load_partial_comp_unit)
9019 (load_full_comp_unit, dwarf2_read_addr_index)
9020 (read_signatured_type): Update.
9021
9022 2020-02-08 Tom Tromey <tom@tromey.com>
9023
9024 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9025 "want_partial_unit" parameter.
9026 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9027 Inline check for DW_TAG_partial_unit.
9028 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9029
9030 2020-02-08 Tom Tromey <tom@tromey.com>
9031
9032 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9033 read.c.
9034 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9035 read.c.
9036
9037 2020-02-08 Tom Tromey <tom@tromey.com>
9038
9039 * dwarf2/read.c (read_address): Move to comp-unit.c.
9040 (dwarf2_rnglists_process, dwarf2_ranges_process)
9041 (read_attribute_value, dwarf_decode_lines_1)
9042 (var_decode_location, decode_locdesc): Update.
9043 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9044 read.c. Remove "cu" parameter.
9045 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9046 method.
9047
9048 2020-02-08 Tom Tromey <tom@tromey.com>
9049
9050 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9051 (read_indirect_line_string): Update.
9052 * dwarf2/comp-unit.c (read_offset): Remove.
9053 (read_comp_unit_head): Update.
9054 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9055 method.
9056 (read_offset): Don't declare.
9057
9058 2020-02-08 Tom Tromey <tom@tromey.com>
9059
9060 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9061 * dwarf2/read.c (struct comp_unit_head): Move to
9062 dwarf2/comp-unit.h.
9063 (enum class rcuh_kind): Move to comp-unit.h.
9064 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9065 (read_comp_unit_head, error_check_comp_unit_head)
9066 (read_and_check_comp_unit_head): Move to comp-unit.c.
9067 (read_offset, dwarf_unit_type_name): Likewise.
9068 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9069 (cutu_reader::cutu_reader, read_call_site_scope)
9070 (find_partial_die, follow_die_offset): Update.
9071 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9072
9073 2020-02-08 Tom Tromey <tom@tromey.com>
9074
9075 * dwarf2/read.c (read_offset_1): Move to leb.c.
9076 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9077 (dwarf_decode_macro_bytes): Update.
9078 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9079 * dwarf2/leb.h (read_offset): Declare.
9080
9081 2020-02-08 Tom Tromey <tom@tromey.com>
9082
9083 * dwarf2/read.c (dwarf2_section_size): Remove.
9084 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9085 Update.
9086 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9087
9088 2020-02-08 Tom Tromey <tom@tromey.com>
9089
9090 * dwarf2/read.c (read_initial_length): Move to leb.c.
9091 * dwarf2/leb.h (read_initial_length): Declare.
9092 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9093 handle_nonstd parameter.
9094 * dwarf2/frame.c (read_initial_length): Remove.
9095 (decode_frame_entry_1): Update.
9096
9097 2020-02-08 Tom Tromey <tom@tromey.com>
9098
9099 * dwarf2/loc.c (dwarf2_find_location_expression)
9100 (dwarf_evaluate_loc_desc::get_tls_address)
9101 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9102 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9103 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9104 (dwarf2_compile_property_to_c)
9105 (dwarf2_loc_desc_get_symbol_read_needs)
9106 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9107 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9108 (loclist_describe_location, loclist_tracepoint_var_ref)
9109 (loclist_generate_c_location): Update.
9110 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9111 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9112 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9113 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9114 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9115 (dwarf2_per_cu_data::addr_size)
9116 (dwarf2_per_cu_data::ref_addr_size)
9117 (dwarf2_per_cu_data::text_offset)
9118 (dwarf2_per_cu_data::addr_type): Now methods.
9119 (per_cu_header_read_in): Make per_cu "const".
9120 (dwarf2_version): Remove.
9121 (dwarf2_per_cu_data::int_type): Now a method.
9122 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9123 (set_die_type, read_array_type, read_subrange_index_type)
9124 (read_tag_string_type, read_subrange_type): Update.
9125 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9126 offset_size, ref_addr_size, text_offset, addr_type, version,
9127 objfile, int_type, addr_sized_int_type>: Declare methods.
9128
9129 2020-02-08 Tom Tromey <tom@tromey.com>
9130
9131 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9132 Move earlier.
9133
9134 2020-02-08 Tom Tromey <tom@tromey.com>
9135
9136 * dwarf2/read.h (dwarf_line_debug): Declare.
9137 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9138 * dwarf2/read.c: Move line_header code to new files.
9139 (dwarf_line_debug): No longer static.
9140 * dwarf2/line-header.c: New file.
9141 * dwarf2/line-header.h: New file.
9142
9143 2020-02-08 Tom Tromey <tom@tromey.com>
9144
9145 * dwarf2/read.c (struct line_header) <file_full_name,
9146 file_file_name>: Return unique_xmalloc_ptr.
9147 (line_header::file_file_name): Update.
9148 (line_header::file_full_name): Update.
9149 (dw2_get_file_names_reader): Update.
9150 (macro_start_file): Update.
9151
9152 2020-02-08 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2/read.c (struct line_header) <file_full_name,
9155 file_file_name>: Declare methods.
9156 (dw2_get_file_names_reader): Update.
9157 (file_file_name): Now a method.
9158 (file_full_name): Likewise.
9159 (macro_start_file): Update.
9160
9161 2020-02-08 Tom Tromey <tom@tromey.com>
9162
9163 * dwarf2/read.c (dwarf_always_disassemble)
9164 (show_dwarf_always_disassemble): Move to loc.c.
9165 (_initialize_dwarf2_read): Move "always-disassemble" registration
9166 to loc.c.
9167 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9168 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9169 static.
9170 (show_dwarf_always_disassemble): Move from read.c.
9171 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9172
9173 2020-02-08 Tom Tromey <tom@tromey.com>
9174
9175 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9176 (create_quick_file_names_table): Return htab_up.
9177 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9178 Update.
9179 * dwarf2/read.h (struct dwarf2_per_objfile)
9180 <quick_file_names_table>: Now htab_up.
9181
9182 2020-02-08 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9185
9186 2020-02-08 Tom Tromey <tom@tromey.com>
9187
9188 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9189 Rewrite.
9190 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9191 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9192 (abbrev_table::abbrev_table): No longer inline.
9193 (ABBREV_HASH_SIZE): Remove.
9194 (abbrev_table::m_abbrevs): Now an htab_up.
9195
9196 2020-02-08 Tom Tromey <tom@tromey.com>
9197
9198 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9199 (cutu_reader): Update.
9200 (build_type_psymtabs_1): Update.
9201 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9202 (abbrev_table::alloc_abbrev): Update.
9203 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9204 (abbrev_table::read): New static method, renamed from
9205 abbrev_table_read_table.
9206 (abbrev_table::alloc_abbrev)
9207 (abbrev_table::add_abbrev): Now private.
9208 (abbrev_table::abbrev_table): Now private.
9209 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9210
9211 2020-02-08 Tom Tromey <tom@tromey.com>
9212
9213 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9214 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9215 htab_up.
9216
9217 2020-02-08 Tom Tromey <tom@tromey.com>
9218
9219 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9220 htab_up.
9221 (lookup_dwo_unit_in_dwp): Update.
9222 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9223 on obstack.
9224
9225 2020-02-08 Tom Tromey <tom@tromey.com>
9226
9227 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9228 obstack.
9229
9230 2020-02-08 Tom Tromey <tom@tromey.com>
9231
9232 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9233 line_header_hash.
9234 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9235 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9236 Change type to htab_up.
9237
9238 2020-02-08 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9241 htab_up. Don't allocate on obstack.
9242 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9243 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9244 Change type to htab_up.
9245
9246 2020-02-08 Tom Tromey <tom@tromey.com>
9247
9248 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9249 Change type to htab_up.
9250 * dwarf2/read.c (create_signatured_type_table_from_index)
9251 (create_signatured_type_table_from_debug_names)
9252 (create_all_type_units, add_type_unit)
9253 (lookup_dwo_signatured_type, lookup_signatured_type)
9254 (process_skeletonless_type_unit): Update.
9255 (create_debug_type_hash_table, create_debug_types_hash_table):
9256 Change type of types_htab.
9257 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9258 htab_up. Don't allocate on obstack.
9259 (create_cus_hash_table): Change type of cus_htab parameter.
9260 (struct dwo_file) <cus, tus>: Now htab_up.
9261 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9262 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9263 (queue_and_load_all_dwo_tus): Update.
9264 * dwarf2/index-write.c (write_gdbindex): Update.
9265 (write_debug_names): Update.
9266
9267 2020-02-08 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9270 dwarf2/read.c. Remove "next" member. Add constructor ntad
9271 destructor.
9272 (struct dwarf2_per_objfile) <queue>: New member.
9273 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9274 dwarf2/read.h.
9275 (dwarf2_queue, dwarf2_queue_tail): Remove.
9276 (class dwarf2_queue_guard): Add parameter to constructor. Use
9277 DISABLE_COPY_AND_ASSIGN.
9278 <m_per_objfile>: New member.
9279 <~dwarf2_queue_guard>: Rewrite.
9280 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9281 Update.
9282 (~dwarf2_queue_item): New.
9283
9284 2020-02-08 Tom Tromey <tom@tromey.com>
9285
9286 * dwarf2/read.c (struct die_info) <has_children>: New member.
9287 (dw2_get_file_names_reader): Remove has_children.
9288 (dw2_get_file_names): Update.
9289 (read_cutu_die_from_dwo): Remove has_children.
9290 (cutu_reader::init_tu_and_read_dwo_dies)
9291 (cutu_reader::cutu_reader): Update.
9292 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9293 Remove has_children.
9294 (build_type_psymtabs_1, process_skeletonless_type_unit)
9295 (load_partial_comp_unit, load_full_comp_unit): Update.
9296 (create_dwo_cu_reader): Remove has_children.
9297 (create_cus_hash_table, read_die_and_children): Update.
9298 (read_full_die_1,read_full_die): Remove has_children.
9299 (read_signatured_type): Update.
9300 (class cutu_reader) <has_children>: Remove.
9301
9302 2020-02-08 Tom Tromey <tom@tromey.com>
9303
9304 * dwarf2/expr.c: Rename from dwarf2expr.c.
9305 * dwarf2/expr.h: Rename from dwarf2expr.h.
9306 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9307 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9308 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9309 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9310 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9311 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9312 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9313 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9314 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9315 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9316 * dwarf2/loc.c: Rename from dwarf2loc.c.
9317 * dwarf2/loc.h: Rename from dwarf2loc.h.
9318 * dwarf2/read.c: Rename from dwarf2read.c.
9319 * dwarf2/read.h: Rename from dwarf2read.h.
9320 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9321 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9322 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9323 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9324 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9325 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9326 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9327 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9328 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9329 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9330 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9331 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9332 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9333 Update.
9334 * Makefile.in (COMMON_SFILES): Update.
9335 (HFILES_NO_SRCDIR): Update.
9336
9337 2020-02-08 Tom Tromey <tom@tromey.com>
9338
9339 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9340 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9341
9342 2020-02-08 Tom Tromey <tom@tromey.com>
9343
9344 * dwarf2read.h (struct die_info): Don't declare.
9345
9346 2020-02-08 Tom Tromey <tom@tromey.com>
9347
9348 * dwarf2read.h (die_info_ptr): Remove typedef.
9349
9350 2020-02-08 Tom Tromey <tom@tromey.com>
9351
9352 * dwarf2read.c (read_call_site_scope)
9353 (handle_data_member_location, dwarf2_add_member_fn)
9354 (mark_common_block_symbol_computed, read_common_block)
9355 (attr_to_dynamic_prop, partial_die_info::read)
9356 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9357 (dwarf2_symbol_mark_computed, set_die_type): Update.
9358 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9359 method.
9360 (attr_form_is_block): Don't declare.
9361 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9362
9363 2020-02-08 Tom Tromey <tom@tromey.com>
9364
9365 * dwarf2read.c (dwarf2_find_base_address, )
9366 (read_call_site_scope, rust_containing_type)
9367 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9368 (handle_data_member_location, dwarf2_add_member_fn)
9369 (get_alignment, read_structure_type, process_structure_scope)
9370 (mark_common_block_symbol_computed, read_common_block)
9371 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9372 (partial_die_info::read, read_attribute_value, new_symbol)
9373 (lookup_die_type, dwarf2_get_ref_die_offset)
9374 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9375 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9376 (dwarf2_symbol_mark_computed): Update.
9377 * dwarf2/attribute.h (struct attribute) <value_as_address,
9378 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9379 methods.
9380 (value_as_address, attr_form_is_section_offset)
9381 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9382 * dwarf2/attribute.c (attribute::value_as_address)
9383 (attribute::form_is_section_offset, attribute::form_is_constant)
9384 (attribute::form_is_ref): Now methods.
9385
9386 2020-02-08 Tom Tromey <tom@tromey.com>
9387
9388 * dwarf2read.c (struct attribute, DW_STRING)
9389 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9390 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9391 (attr_form_is_block, attr_form_is_section_offset)
9392 (attr_form_is_constant, attr_form_is_ref): Move.
9393 * dwarf2/attribute.h: New file.
9394 * dwarf2/attribute.c: New file, from dwarf2read.c.
9395 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9396
9397 2020-02-08 Tom Tromey <tom@tromey.com>
9398
9399 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9400 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9401 Move.
9402 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9403 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9404 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9405 abbrev.c.
9406 * dwarf2/abbrev.h: New file.
9407 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9408 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9409
9410 2020-02-08 Tom Tromey <tom@tromey.com>
9411
9412 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9413 (dwarf2_section_size, dwarf2_get_section_info)
9414 (create_signatured_type_table_from_debug_names)
9415 (create_addrmap_from_aranges, read_debug_names_from_section)
9416 (get_gdb_index_contents_from_section, read_comp_unit_head)
9417 (error_check_comp_unit_head, read_abbrev_offset)
9418 (create_debug_type_hash_table, init_cu_die_reader)
9419 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9420 (read_comp_units_from_section, create_cus_hash_table)
9421 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9422 (create_dwp_v2_section, dwarf2_rnglists_process)
9423 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9424 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9425 (read_indirect_string_from_dwz, read_addr_index_1)
9426 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9427 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9428 (fill_in_loclist_baton): Update.
9429 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9430 get_containing_section, get_bfd_owner, get_bfd_section,
9431 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9432 (dwarf2_read_section, get_section_name, get_section_file_name)
9433 (get_containing_section, get_section_bfd_owner)
9434 (get_section_bfd_section, get_section_name, get_section_file_name)
9435 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9436 declare.
9437 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9438 (dwarf2_section_info::get_bfd_owner)
9439 (dwarf2_section_info::get_bfd_section)
9440 (dwarf2_section_info::get_name)
9441 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9442 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9443 (dwarf2_section_info::read): Now methods.
9444 * dwarf-index-write.c (class debug_names): Update.
9445
9446 2020-02-08 Tom Tromey <tom@tromey.com>
9447
9448 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9449 Move to dwarf2/section.h.
9450 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9451 (get_section_bfd_section, get_section_name)
9452 (get_section_file_name, get_section_id, get_section_flags)
9453 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9454 dwarf2/section.c.
9455 * dwarf2/section.h: New file.
9456 * dwarf2/section.c: New file, from dwarf2read.c.
9457 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9458
9459 2020-02-08 Tom Tromey <tom@tromey.com>
9460
9461 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9462 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9463 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9464 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9465 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9466 * dwarf2/leb.h: New file, from dwarf2read.c.
9467 * dwarf2/leb.c: New file, from dwarf2read.c.
9468 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9469 Remove.
9470 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9471 (COMMON_SFILES): Add dwarf2/leb.c.
9472
9473 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9474
9475 GDB 9.1 released.
9476
9477 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9478
9479 PR gdb/25190:
9480 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9481 * gdb/remote.c (remote_console_output): Update.
9482 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9483 (ui_file_puts): ...this.
9484 * gdb/ui-file.h (ui_file_puts): Add declaration.
9485 * gdb/utils.c (emit_style_escape): Update.
9486 (flush_wrap_buffer): Update.
9487 (fputs_maybe_filtered): Update.
9488 (fputs_unfiltered): Add function.
9489
9490 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9491
9492 * gdb/event-loop.c (gdb_wait_for_event): Update.
9493 * gdb/printcmd.c (printf_command): Update.
9494 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9495 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9496 (gdb_os_flush_stderr): Update.
9497 * gdb/remote.c (remote_console_output): Update.
9498 * gdb/ui-file.c (gdb_flush): Rename to...
9499 (ui_file_flush): ...this.
9500 (stderr_file::write): Update.
9501 (stderr_file::puts): Update.
9502 * gdb/ui-file.h (gdb_flush): Rename to...
9503 (ui_file_flush): ...this.
9504 * gdb/utils.c (gdb_flush): Add function.
9505 * gdb/utils.h (gdb_flush): Add declaration.
9506
9507 2020-02-07 Tom Tromey <tromey@adacore.com>
9508
9509 PR breakpoints/24915:
9510 * source.c (find_and_open_source): Do not check basenames_may_differ.
9511
9512 2020-02-07 Tom Tromey <tom@tromey.com>
9513
9514 * README: Update gdbserver documentation.
9515 * gdbserver: Move to top level.
9516 * configure.tgt (build_gdbserver): Remove.
9517 * configure.ac: Remove --enable-gdbserver.
9518 * configure: Rebuild.
9519 * Makefile.in (distclean): Don't mention gdbserver.
9520
9521 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9522
9523 * source-cache.c (source_cache::ensure): Surround
9524 get_plain_source_lines with a try/catch.
9525 (source_cache::get_line_charpos): Get rid of try/catch
9526 and only check for the return value of "ensure".
9527 * tui/tui-source.c (tui_source_window::set_contents):
9528 Simplify "nlines" calculation.
9529
9530 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9531
9532 * MAINTAINERS (Write After Approval): Add myself.
9533
9534 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9535
9536 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9537 function call.
9538
9539 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9540
9541 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9542
9543 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9544
9545 * nat/riscv-linux-tdesc.h: New file.
9546 * nat/riscv-linux-tdesc.c: New file, taking code from...
9547 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9548 ... here.
9549 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9550 NATDEPFILES.
9551
9552 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9553
9554 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9555 we don't set the fake simulator ptid to the null_ptid.
9556
9557 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9558
9559 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9560 * gdbthread.h (class thread_info) <resumed>: Likewise.
9561 * infrun.c (resume_1): Likewise.
9562 (proceed): Likewise.
9563 (infrun_thread_stop_requested): Likewise.
9564 (stop_all_threads): Likewise.
9565 (handle_inferior_event): Likewise.
9566 (restart_threads): Likewise.
9567 (finish_step_over): Likewise.
9568 (keep_going_stepped_thread): Likewise.
9569 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9570 (linux_handle_extended_wait): Likewise.
9571 * record-btrace.c (get_thread_current_frame_id): Likewise.
9572 * record-full.c (record_full_wait_1): Likewise.
9573 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9574 * target.c (target_resume): Likewise.
9575 * thread.c (set_running_thread): Likewise.
9576
9577 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9578
9579 * f-valprint.c (f77_print_array_1): Changed datatype of index
9580 variable to LONGEST from int to enable it to contain bound
9581 values correctly.
9582
9583 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9584
9585 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9586 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9587 offsets according to FLEN determined.
9588 (riscv_linux_nat_target::read_description): Determine FLEN
9589 dynamically.
9590 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9591 according to FLEN determined.
9592 (riscv_linux_nat_target::store_registers): Likewise.
9593
9594 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9595
9596 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9597 when reg->group is empty and reggroup is not.
9598
9599 2020-01-31 Tom Tromey <tromey@adacore.com>
9600
9601 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9602 Call beneath target's mourn_inferior after unpushing.
9603
9604 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9605
9606 PR tui/9765
9607 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9608 have enough lines to fill the screen, still return the lowest
9609 address we found.
9610
9611 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9612
9613 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9614 '-', '<', and '>' commands.
9615
9616 2020-01-29 Pedro Alves <palves@redhat.com>
9617 Sergio Durigan Junior <sergiodj@redhat.com>
9618
9619 * infcmd.c (construct_inferior_arguments): Assert that
9620 'argc' is greater than 0.
9621
9622 2020-01-29 Luis Machado <luis.machado@linaro.org>
9623
9624 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9625 (BRK_INSN_MASK): Define to 0xd4200000.
9626 (aarch64_program_breakpoint_here_p): New function.
9627 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9628 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9629 breakpoint.c.
9630 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9631 breakpoint.h
9632 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9633 call gdbarch_program_breakpoint_here_p.
9634 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9635 default_program_breakpoint_here_p, changed return type to bool and
9636 simplified.
9637 * breakpoint.h (program_breakpoint_here): Moved prototype to
9638 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9639 return type to bool.
9640 * gdbarch.c: Regenerate.
9641 * gdbarch.h: Regenerate.
9642 * gdbarch.sh (program_breakpoint_here_p): New method.
9643 * infrun.c (handle_signal_stop): Call
9644 gdbarch_program_breakpoint_here_p.
9645
9646 2020-01-26 Tom Tromey <tom@tromey.com>
9647
9648 * ctfread.c (struct ctf_fp_info): Reindent.
9649 (_initialize_ctfread): Remove.
9650
9651 2020-01-26 Tom Tromey <tom@tromey.com>
9652
9653 * psymtab.c (partial_map_expand_apply)
9654 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9655 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9656 (psym_print_stats, psym_expand_symtabs_for_function)
9657 (psym_map_symbol_filenames, psym_map_matching_symbols)
9658 (psym_expand_symtabs_matching)
9659 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9660 (maintenance_check_psymtabs): Use new methods.
9661 * psympriv.h (struct partial_symtab) <readin_p,
9662 get_compunit_symtab>: New methods.
9663 <readin, compunit_symtab>: Remove members.
9664 (struct standard_psymtab): New.
9665 (struct legacy_psymtab): Derive from standard_psymtab.
9666 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9667 standard_psymtab.
9668 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9669
9670 2020-01-26 Tom Tromey <tom@tromey.com>
9671
9672 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9673 read_dependencies. Add assert.
9674 * psymtab.c (partial_symtab::read_dependencies): New method.
9675 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9676 method.
9677 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9678 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9679 read_dependencies.
9680 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9681 Add assert.
9682
9683 2020-01-26 Tom Tromey <tom@tromey.com>
9684
9685 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9686 Call expand_psymtab.
9687 (xcoff_read_symtab): Call expand_psymtab.
9688 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9689 legacy_expand_psymtab.
9690 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9691 method.
9692 (struct legacy_psymtab) <expand_psymtab>: Implement.
9693 <legacy_expand_psymtab>: New member.
9694 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9695 (parse_partial_symbols): Set legacy_expand_psymtab.
9696 (psymtab_to_symtab_1): Change argument order. Call
9697 expand_psymtab.
9698 (new_psymtab): Set legacy_expand_psymtab.
9699 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9700 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9701 expand_psymtab.
9702 (dwarf2_psymtab::expand_psymtab): Rename from
9703 psymtab_to_symtab_1. Call expand_psymtab.
9704 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9705 (dbx_end_psymtab): Likewise.
9706 (dbx_psymtab_to_symtab_1): Change argument order. Call
9707 expand_psymtab.
9708 (dbx_read_symtab): Call expand_psymtab.
9709 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9710 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9711 (ctf_psymtab::read_symtab): Call expand_psymtab.
9712
9713 2020-01-26 Tom Tromey <tom@tromey.com>
9714
9715 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9716 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9717 messages.
9718 * mdebugread.c (mdebug_read_symtab): Remove prints.
9719 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9720 assert.
9721 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9722
9723 2020-01-26 Tom Tromey <tom@tromey.com>
9724
9725 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9726 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9727 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9728 legacy_symtab.
9729 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9730 * psymtab.c (psymtab_to_symtab): Call method.
9731 (dump_psymtab): Update.
9732 * psympriv.h (struct partial_symtab): Add virtual destructor.
9733 <read_symtab>: New method.
9734 (struct legacy_symtab): New.
9735 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9736 (struct pst_map) <pst>: Now a legacy_psymtab.
9737 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9738 (new_psymtab): Use legacy_psymtab.
9739 * dwarf2read.h (struct dwarf2_psymtab): New.
9740 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9741 * dwarf2read.c (dwarf2_create_include_psymtab)
9742 (dwarf2_build_include_psymtabs, create_type_unit_group)
9743 (create_partial_symtab, process_psymtab_comp_unit_reader)
9744 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9745 (set_partial_user): Use dwarf2_psymtab.
9746 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9747 (psymtab_to_symtab_1, process_full_comp_unit)
9748 (process_full_type_unit, dwarf2_ranges_read)
9749 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9750 (dwarf_decode_lines): Use dwarf2_psymtab.
9751 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9752 (add_address_entry_worker, write_one_signatured_type)
9753 (recursively_count_psymbols, recursively_write_psymbols)
9754 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9755 (write_debug_names): Likewise.
9756 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9757 <pst>: Now a legacy_psymtab.
9758 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9759 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9760 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9761 * ctfread.c (struct ctf_psymtab): New.
9762 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9763 ctf_psymtab.
9764 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9765 (create_partial_symtab): Return a ctf_psymtab.
9766 (scan_partial_symbols): Update.
9767
9768 2020-01-26 Tom Tromey <tom@tromey.com>
9769
9770 * xcoffread.c (xcoff_start_psymtab): Use new.
9771 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9772 renamed from start_psymtab_common.
9773 * psympriv.h (struct partial_symtab): Add new constructor.
9774 (start_psymtab_common): Don't declare.
9775 * mdebugread.c (parse_partial_symbols): Use new.
9776 * dwarf2read.c (create_partial_symtab): Use new.
9777 * dbxread.c (start_psymtab): Use new.
9778 * ctfread.c (create_partial_symtab): Use new.
9779
9780 2020-01-26 Tom Tromey <tom@tromey.com>
9781
9782 * xcoffread.c (xcoff_end_psymtab): Use new.
9783 * psymtab.c (start_psymtab_common): Use new.
9784 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9785 Update.
9786 * psympriv.h (struct partial_symtab): Add parameters to
9787 constructor. Don't inline.
9788 (allocate_psymtab): Don't declare.
9789 * mdebugread.c (new_psymtab): Use new.
9790 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9791 * dbxread.c (dbx_end_psymtab): Use new.
9792
9793 2020-01-26 Tom Tromey <tom@tromey.com>
9794
9795 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9796 allocate_psymtab. Update documentation.
9797 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9798 allocate_psymtab. Do not use new.
9799 (allocate_psymtab): Use new. Update.
9800
9801 2020-01-26 Tom Tromey <tom@tromey.com>
9802
9803 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9804 * psymtab.c (psym_print_stats): Update.
9805 * psympriv.h (struct partial_symtab) <readin,
9806 psymtabs_addrmap_supported, anonymous>: Now bool.
9807 * mdebugread.c (psymtab_to_symtab_1): Update.
9808 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9809 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9810 (process_full_comp_unit, process_full_type_unit): Update.
9811 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9812 * ctfread.c (psymtab_to_symtab): Update.
9813
9814 2020-01-26 Tom Tromey <tom@tromey.com>
9815
9816 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9817 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9818 * psymtab.c (psymtab_storage): Delete psymtabs.
9819 (psymtab_storage::allocate_psymtab): Use new.
9820 (psymtab_storage::discard_psymtab): Use delete.
9821 * psympriv.h (struct partial_symtab): Add constructor and
9822 initializers.
9823
9824 2020-01-26 Tom Tromey <tom@tromey.com>
9825
9826 * machoread.c: Do not include psympriv.h.
9827
9828 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9829
9830 * NEWS: Mention the new option and the set/show commands.
9831
9832 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9833
9834 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9835 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9836 (validate_exec_file): New variables, enums, functions.
9837 (exec_file_locate_attach, print_section_info): Style the filenames.
9838 (_initialize_exec): Install show_exec_file_mismatch_command and
9839 set_exec_file_mismatch_command.
9840 * gdbcore.h (validate_exec_file): Declare.
9841 * infcmd.c (attach_command): Call validate_exec_file.
9842 * remote.c ( remote_target::remote_add_inferior): Likewise.
9843
9844 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9845
9846 * frame.c (find_frame_sal): Move call to get_next_frame into more
9847 inner scope.
9848 * inline-frame.c (inilne_state) <inline_state>: Update argument
9849 types.
9850 (inilne_state) <skipped_symbol>: Rename to...
9851 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9852 (skip_inline_frames): Build vector of skipped symbols and use this
9853 to reate the inline_state.
9854 (inline_skipped_symbol): Add a comment and some assertions, fetch
9855 skipped symbol from the list.
9856
9857 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9858
9859 * buildsym.c (lte_is_less_than): Delete.
9860 (buildsym_compunit::end_symtab_with_blockvector): Create local
9861 lambda function to sort line table entries, and use
9862 std::stable_sort instead of std::sort.
9863 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9864 markers when looking for a previous line.
9865
9866 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9867
9868 * dwarf2read.c (lnp_state_machine::record_line): Include
9869 end_sequence parameter in debug print out. Record the line if we
9870 are at an end_sequence marker even if it's not the start of a
9871 statement.
9872 * symmisc.c (maintenance_print_one_line_table): Print end of
9873 sequence markers with 'END' not '0'.
9874
9875 2020-01-24 Pedro Alves <palves@redhat.com>
9876
9877 PR gdb/25410
9878 * thread.c (scoped_restore_current_thread::restore): Use
9879 switch_to_inferior_no_thread.
9880 * exec.c: Include "progspace-and-thread.h".
9881 (add_target_sections, remove_target_sections):
9882 scoped_restore_current_pspace_and_thread instead of
9883 scoped_restore_current_thread.
9884 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9885 and aspace to the inferior before calling clone_program_space.
9886 Remove stale comment.
9887
9888 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9889
9890 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9891 (arm_netbsd_nat_target::fetch_registers): ...this.
9892 (arm_nbsd_nat_target::store_registers): Rename to...
9893 (arm_netbsd_nat_target::store_registers): ...this.
9894
9895 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9896
9897 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9898 register_t.
9899
9900 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9901
9902 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9903 Update comment.
9904 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9905 Likewise.
9906 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9907 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9908 the correct replacement (iterate_over_regset_sections).
9909 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9910 Update comment.
9911
9912 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9913
9914 PR gdb/23718
9915 * gdb/python/python.c (execute_gdb_command): Call
9916 async_enable_stdin in catch block.
9917
9918 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9919
9920 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9921 SWITCH_THRU_ALL_UIS.
9922
9923 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9924
9925 PR tui/9765
9926 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9927 comment, add extra parameter, and update to store previous symbol
9928 when appropriate.
9929 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9930 add extra parameter.
9931 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9932 remove unneeded parameter, add try/catch around gdb_print_insn,
9933 rewrite to add items to asm_lines vector.
9934 (tui_find_backward_disassembly_start_address): New function.
9935 (tui_find_disassembly_address): Updated throughout.
9936 (tui_disasm_window::set_contents): Update for changes to
9937 tui_disassemble.
9938 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9939 number of lines to scroll.
9940
9941 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9942
9943 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9944 (SECT_OFF_DATA): Likewise.
9945 (SECT_OFF_RODATA): Likewise.
9946 (SECT_OFF_TEXT): Likewise.
9947 (SECT_OFF_BSS): Likewise.
9948 (struct objfile) <text_section_offset, data_section_offset>: New
9949 methods.
9950 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9951 objfile::text_section_offset.
9952 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9953 * coffread.c (coff_symtab_read): Likewise.
9954 (enter_linenos): Likewise.
9955 (process_coff_symbol): Likewise.
9956 * ctfread.c (get_objfile_text_range): Likewise.
9957 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9958 Use objfile::data_section_offset.
9959 * dwarf2-frame.c (execute_cfa_program): Use
9960 objfile::text_section_offset.
9961 (dwarf2_frame_find_fde): Likewise.
9962 * dwarf2read.c (create_addrmap_from_index): Likewise.
9963 (create_addrmap_from_aranges): Likewise.
9964 (dw2_find_pc_sect_compunit_symtab): Likewise.
9965 (process_psymtab_comp_unit_reader): Likewise.
9966 (add_partial_symbol): Likewise.
9967 (add_partial_subprogram): Likewise.
9968 (process_full_comp_unit): Likewise.
9969 (read_file_scope): Likewise.
9970 (read_func_scope): Likewise.
9971 (read_lexical_block_scope): Likewise.
9972 (read_call_site_scope): Likewise.
9973 (dwarf2_rnglists_process): Likewise.
9974 (dwarf2_ranges_process): Likewise.
9975 (dwarf2_ranges_read): Likewise.
9976 (dwarf_decode_lines_1): Likewise.
9977 (new_symbol): Likewise.
9978 (dwarf2_fetch_die_loc_sect_off): Likewise.
9979 (dwarf2_per_cu_text_offset): Likewise.
9980 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9981 * hppa-tdep.c (read_unwind_info): Likewise.
9982 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9983 * psympriv.h (struct partial_symtab): Likewise.
9984 * psymtab.c (find_pc_sect_psymtab): Likewise.
9985 * solib-svr4.c (enable_break): Likewise.
9986 * stap-probe.c (relocate_address): Use
9987 objfile::data_section_offset.
9988 * xcoffread.c (enter_line_range): Use
9989 objfile::text_section_offset.
9990 (read_xcoff_symtab): Likewise.
9991
9992 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9993
9994 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9995 declaration to narrower scopes.
9996
9997 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9998
9999 * darwin-nat.h (struct darwin_exception_msg, enum
10000 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10001 Move up.
10002 (class darwin_nat_target) <wait_1, check_new_threads,
10003 decode_exception_message, decode_message, stop_inferior,
10004 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10005 * darwin-nat.c (darwin_check_new_threads): Rename to...
10006 (darwin_nat_target::check_new_threads): ... this.
10007 (darwin_suspend_inferior_it): Remove.
10008 (darwin_decode_exception_message): Rename to...
10009 (darwin_nat_target::decode_exception_message): ... this.
10010 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10011 (darwin_decode_message): Rename to...
10012 (darwin_nat_target::decode_message): ... this.
10013 (cancel_breakpoint): Rename to...
10014 (darwin_nat_target::cancel_breakpoint): ... this.
10015 (darwin_wait): Rename to...
10016 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10017 instead of iterate_over_inferiors.
10018 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10019 (darwin_stop_inferior): Rename to...
10020 (darwin_nat_target::stop_inferior): ... this.
10021 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10022 (darwin_init_thread_list): Rename to...
10023 (darwin_nat_target::init_thread_list): ... this.
10024 (darwin_ptrace_him): Rename to...
10025 (darwin_nat_target::ptrace_him): ... this.
10026 (darwin_nat_target::create_inferior): Pass lambda function to
10027 fork_inferior.
10028 (darwin_nat_target::detach): Call stop_inferior instead of
10029 darwin_stop_inferior.
10030 * fork-inferior.h (fork_inferior): Change init_trace_fun
10031 parameter to gdb::function_view.
10032 * fork-inferior.c (fork_inferior): Likewise.
10033
10034 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10035
10036 * i386-cygwin-tdep.c (core_process_module_section): Update.
10037 * windows-nat.c (struct lm_info_windows): Add text_offset.
10038 (windows_xfer_shared_libraries): Update.
10039 * windows-tdep.c (windows_xfer_shared_library):
10040 Add text_offset_cached argument.
10041 * windows-tdep.h (windows_xfer_shared_library): Update.
10042
10043 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10044
10045 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10046
10047 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10048
10049 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10050 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10051 replace with range-based for.
10052 (gdbsim_interrupt_inferior): Remove.
10053 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10054 with a range-based for. Inline code from
10055 gdbsim_interrupt_inferior.
10056
10057 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10058
10059 * infrun.c (proceed): Fix indentation.
10060
10061 2020-01-21 Tom Tromey <tromey@adacore.com>
10062
10063 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10064 * python/python.c (python_extension_ops): Update.
10065 (gdbpy_colorize): New function.
10066 * python/lib/gdb/__init__.py (colorize): New function.
10067 * extension.h (ext_lang_colorize): Declare.
10068 * extension.c (ext_lang_colorize): New function.
10069 * extension-priv.h (struct extension_language_ops) <colorize>: New
10070 member.
10071 * cli/cli-style.c (_initialize_cli_style): Update help text.
10072
10073 2020-01-21 Luis Machado <luis.machado@linaro.org>
10074
10075 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10076 <cond>: Change type to bool.
10077 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10078 (aarch64_displaced_step_cb): Likewise.
10079 (aarch64_displaced_step_tb): Likewise.
10080
10081 2020-01-21 Luis Machado <luis.machado@linaro.org>
10082
10083 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10084 output.
10085
10086 2020-01-21 Luis Machado <luis.machado@linaro.org>
10087
10088 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10089 <pc_adjust>: Adjust the documentation.
10090 (aarch64_displaced_step_fixup): Check if PC really moved before
10091 adjusting it.
10092
10093 2020-01-19 Tom Tromey <tom@tromey.com>
10094
10095 * disasm.c (~gdb_disassembler): New destructor.
10096 (gdb_buffered_insn_length): Call disassemble_free_target.
10097 * disasm.h (class gdb_disassembler): Declare destructor. Use
10098 DISABLE_COPY_AND_ASSIGN.
10099
10100 2020-01-19 Tom Tromey <tom@tromey.com>
10101
10102 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10103 (die_reader_func_ftype): Remove.
10104 (cutu_reader): New class.
10105 (dw2_get_file_names_reader): Remove "data" parameter.
10106 (dw2_get_file_names): Use cutu_reader.
10107 (create_debug_type_hash_table): Update.
10108 (read_cutu_die_from_dwo): Update comment.
10109 (lookup_dwo_unit): Add dwo_name parameter.
10110 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10111 die_reader_func_ftype and data parameters.
10112 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10113 Remove die_reader_func_ftype and data parameters.
10114 (~cutu_reader): New; from init_cutu_and_read_dies.
10115 (cutu_reader::cutu_reader): Rename from
10116 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10117 and data parameters.
10118 (init_cutu_and_read_dies_simple): Remove.
10119 (struct process_psymtab_comp_unit_data): Remove.
10120 (process_psymtab_comp_unit_reader): Remove data parameter; add
10121 want_partial_unit and pretend_language parameters.
10122 (process_psymtab_comp_unit): Use cutu_reader.
10123 (build_type_psymtabs_reader): Remove data parameter.
10124 (build_type_psymtabs_1): Use cutu_reader.
10125 (process_skeletonless_type_unit): Likewise.
10126 (load_partial_comp_unit_reader): Remove.
10127 (load_partial_comp_unit): Use cutu_reader.
10128 (load_full_comp_unit_reader): Remove.
10129 (load_full_comp_unit): Use cutu_reader.
10130 (struct create_dwo_cu_data): Remove.
10131 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10132 dwo_unit parameters.
10133 (create_cus_hash_table): Use cutu_reader.
10134 (struct dwarf2_read_addr_index_data): Remove.
10135 (dwarf2_read_addr_index_reader): Remove.
10136 (dwarf2_read_addr_index): Use cutu_reader.
10137 (read_signatured_type_reader): Remove.
10138 (read_signatured_type): Use cutu_reader.
10139
10140 2020-01-19 Tom Tromey <tom@tromey.com>
10141
10142 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10143 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10144 (tui_wrefresh): Declare.
10145 * tui/tui-wingeneral.c (suppress_output): New global.
10146 (tui_suppress_output, ~tui_suppress_output): New constructor and
10147 destructor.
10148 (tui_wrefresh): New function.
10149 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10150 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10151 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10152 method.
10153 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10154 tui_wrefresh.
10155 (tui_data_window::no_refresh): New method.
10156 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10157 (tui_reg_command): Use tui_suppress_output
10158 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10159 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10160 method.
10161 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10162
10163 2020-01-19 Tom Tromey <tom@tromey.com>
10164
10165 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10166 Handle case where symtab is null.
10167
10168 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10169
10170 * linux-fork.c (one_fork_p): Simplify.
10171
10172 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10173
10174 * top.c (struct qt_args): Remove.
10175 (kill_or_detach): Change return type to void, replace `void *`
10176 parameter with a proper one.
10177 (print_inferior_quit_action): Likewise.
10178 (quit_confirm): Use range-based for loop to iterate over inferiors.
10179 (quit_force): Likewise.
10180
10181 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10182
10183 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10184 `void *` parameter with proper parameters.
10185 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10186 (print_one_inferior): Change return type to void, replace `void *`
10187 parameter with proper parameters.
10188 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10189 inferiors.
10190 (get_other_inferior): Remove.
10191 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10192 inferiors.
10193
10194 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10195
10196 * mi/mi-interp.c (report_initial_inferior): Remove.
10197 (mi_interp::init): Use range-based for to iterate over inferiors.
10198
10199 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10200
10201 * python/py-inferior.c (build_inferior_list): Remove.
10202 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10203
10204 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10205
10206 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10207 (btrace_stitch_trace): Likewise.
10208 * charset.c (intermediate_encoding): Likewise (vaild).
10209 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10210 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10211 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10212
10213 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10214
10215 * windows-tdep.c (windows_get_tlb_type):
10216 Add rtl_user_process_parameters type.
10217
10218 2020-01-16 Pedro Alves <palves@redhat.com>
10219 Norbert Lange <nolange79@gmail.com>
10220
10221 PR build/24805
10222 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10223 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10224 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10225 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10226 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10227 (ps_plog): Redeclare exported functions with default visibility.
10228
10229 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10230
10231 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10232 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10233
10234 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10235
10236 * infcmd.c (post_create_inferior): Use get_thread_regcache
10237 instead of get_current_regcache.
10238
10239 2020-01-14 Tom Tromey <tom@tromey.com>
10240
10241 PR symtab/12535:
10242 * python/python.c (gdbpy_decode_line): Treat empty string the same
10243 as no argument.
10244
10245 2020-01-14 Tom Tromey <tom@tromey.com>
10246
10247 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10248
10249 2020-01-14 Tom Tromey <tom@tromey.com>
10250
10251 * nat/linux-btrace.c: Don't include <config.h>.
10252 * nat/linux-ptrace.c: Don't include <config.h>.
10253 * nat/x86-linux-dregs.c: Don't include <config.h>.
10254
10255 2020-01-14 Tom Tromey <tom@tromey.com>
10256
10257 * configure: Rebuild.
10258 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10259
10260 2020-01-14 Tom Tromey <tom@tromey.com>
10261
10262 * nat/x86-linux-dregs.c: Include configh.h.
10263 * nat/linux-ptrace.c: Include configh.h.
10264 * nat/linux-btrace.c: Include configh.h.
10265 * defs.h: Include config.h, bfd.h.
10266 * configure.ac: Don't source common.host.
10267 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10268 * configure: Rebuild.
10269 * acinclude.m4: Update path.
10270 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10271 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10272 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10273 (CLIBS): Add LIBSUPPORT.
10274 (CDEPS): Likewise.
10275 (COMMON_SFILES): Remove gdbsupport files.
10276 (HFILES_NO_SRCDIR): Likewise.
10277 (stamp-version): Update path to create-version.sh.
10278 (ALLDEPFILES): Remove gdbsupport files.
10279
10280 2020-01-14 Tom Tromey <tom@tromey.com>
10281
10282 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10283 USE_WIN32API when needed.
10284 * configure.ac (USE_WIN32API): Don't define.
10285 (WIN32LIBS): Use WIN32APILIBS.
10286 * configure: Rebuild.
10287
10288 2020-01-14 Tom Tromey <tom@tromey.com>
10289
10290 * configure: Rebuild.
10291 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10292
10293 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10294
10295 * skip.c (skip_function_command): Make skip w/o arguments use the
10296 name of the inlined function if pc is inside any inlined function.
10297
10298 2020-01-14 Luis Machado <luis.machado@linaro.org>
10299
10300 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10301 * infrun.c (resume_1): Likewise.
10302 (handle_inferior_event): Remove stale comment.
10303 * linux-nat.c (linux_nat_target::resume): Update comments.
10304 (save_stop_reason): Likewise.
10305 (linux_nat_filter_event): Likewise.
10306 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10307
10308 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10309
10310 * elfread.c (record_minimal_symbol): Set section index to 0 for
10311 non-allocatable sections.
10312
10313
10314 2020-01-13 Ali Tamur <tamur@google.com>
10315
10316 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10317 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10318 to gdb::optional. Update comments.
10319 (dwo_file): Update comments.
10320 (read_attribute): Update API to take an additional out parameter,
10321 need_reprocess. This is used to mark attributes that need other
10322 attributes (e.g. str_offsets_base) for correct computation which may not
10323 have been read yet.
10324 (read_attribute_reprocess): New function declaration.
10325 (read_addr_index): Likewise.
10326 (read_dwo_str_index): Likewise.
10327 (read_stub_str_index): Likewise.
10328 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10329 (lookup_addr_base): New function definition.
10330 (lookup_ranges_base): Likewise.
10331 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10332 lookup_ranges_base.
10333 (init_cutu_and_read_dies): Update comments.
10334 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10335 unit. This is used to inherit parent's str_offsets_base and addr_base.
10336 Update comments.
10337 (init_cutu_and_read_dies_simple): Reflect API changes.
10338 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10339 (create_cus_hash_table): Change API to take parent compile unit.
10340 Reflect API changes.
10341 (open_and_init_dwo_file): Reflect API changes.
10342 (dwarf2_get_pc_bounds): Update comments.
10343 (dwarf2_record_block_ranges): Likewise.
10344 (read_full_die_1): Change implementation to reprocess attributes that
10345 need str_offsets_base and addr_base.
10346 (partial_die_info::read): Likewise.
10347 (read_attribute_reprocess): New function definition.
10348 (read_attribute_value): Change API to take an additional out parameter,
10349 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10350 when a non-dwo compile unit has index based attributes.
10351 (read_attribute): Reflect API changes.
10352 (read_addr_index_1): Reflect API changes. Update comments.
10353 (dwarf2_read_addr_index_data): Reflect API changes.
10354 (dwarf2_read_addr_index): Likewise.
10355 (read_str_index): Change API and implementation. This becomes a helper
10356 to be used by the new string index related methods. Update error
10357 message and comments.
10358 (read_dwo_str_index): New function definition.
10359 (read_stub_str_index): Likewise.
10360 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10361 * symfile.h (dwarf2_debug_sections): Likewise.
10362 * xcoffread.c (dwarf2_debug_sections): Likewise.
10363
10364 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10365
10366 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10367 core_reg_sect type to gdb_byte *.
10368 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10369 * cris-tdep.c (fetch_core_registers): Likewise.
10370 * corelow.c (core_target::get_core_register_section): Change
10371 type of `contents` to gdb::byte_vector.
10372
10373 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10374
10375 * tui/tui-wingeneral.c (box_win): Position the title in the center
10376 of the border.
10377
10378 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10379
10380 * corelow.c (core_target::get_core_register_section): Use
10381 std::vector instead of alloca.
10382
10383 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10384
10385 * warning.m4: Add -Wmissing-declarations to build_warnings.
10386 * configure: Re-generate.
10387
10388 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10389
10390 * python/python.c (init__gdb_module): Add declaration.
10391
10392 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10393
10394 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10395 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10396 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10397 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10398 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10399 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10400 * ada-exp.y (_initialize_ada_exp): Add declaration.
10401 * ada-lang.c (_initialize_ada_language): Add declaration.
10402 * ada-tasks.c (_initialize_tasks): Add declaration.
10403 * agent.c (_initialize_agent): Add declaration.
10404 * aix-thread.c (_initialize_aix_thread): Add declaration.
10405 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10406 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10407 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10408 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10409 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10410 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10411 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10412 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10413 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10414 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10415 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10416 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10417 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10418 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10419 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10420 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10421 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10422 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10423 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10424 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10425 * annotate.c (_initialize_annotate): Add declaration.
10426 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10427 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10428 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10429 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10430 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10431 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10432 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10433 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10434 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10435 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10436 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10437 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10438 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10439 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10440 * auto-load.c (_initialize_auto_load): Add declaration.
10441 * auxv.c (_initialize_auxv): Add declaration.
10442 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10443 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10444 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10445 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10446 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10447 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10448 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10449 * breakpoint.c (_initialize_breakpoint): Add declaration.
10450 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10451 * btrace.c (_initialize_btrace): Add declaration.
10452 * charset.c (_initialize_charset): Add declaration.
10453 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10454 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10455 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10456 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10457 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10458 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10459 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10460 * coffread.c (_initialize_coffread): Add declaration.
10461 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10462 * compile/compile.c (_initialize_compile): Add declaration.
10463 * complaints.c (_initialize_complaints): Add declaration.
10464 * completer.c (_initialize_completer): Add declaration.
10465 * copying.c (_initialize_copying): Add declaration.
10466 * corefile.c (_initialize_core): Add declaration.
10467 * corelow.c (_initialize_corelow): Add declaration.
10468 * cp-abi.c (_initialize_cp_abi): Add declaration.
10469 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10470 * cp-support.c (_initialize_cp_support): Add declaration.
10471 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10472 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10473 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10474 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10475 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10476 * ctfread.c (_initialize_ctfread): Add declaration.
10477 * d-lang.c (_initialize_d_language): Add declaration.
10478 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10479 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10480 * dbxread.c (_initialize_dbxread): Add declaration.
10481 * dcache.c (_initialize_dcache): Add declaration.
10482 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10483 * disasm.c (_initialize_disasm): Add declaration.
10484 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10485 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10486 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10487 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10488 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10489 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10490 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10491 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10492 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10493 * elfread.c (_initialize_elfread): Add declaration.
10494 * exec.c (_initialize_exec): Add declaration.
10495 * extension.c (_initialize_extension): Add declaration.
10496 * f-lang.c (_initialize_f_language): Add declaration.
10497 * f-valprint.c (_initialize_f_valprint): Add declaration.
10498 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10499 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10500 * filesystem.c (_initialize_filesystem): Add declaration.
10501 * findcmd.c (_initialize_mem_search): Add declaration.
10502 * findvar.c (_initialize_findvar): Add declaration.
10503 * fork-child.c (_initialize_fork_child): Add declaration.
10504 * frame-base.c (_initialize_frame_base): Add declaration.
10505 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10506 * frame.c (_initialize_frame): Add declaration.
10507 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10508 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10509 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10510 * gcore.c (_initialize_gcore): Add declaration.
10511 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10512 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10513 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10514 * gdbarch.c (_initialize_gdbarch): Add declaration.
10515 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10516 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10517 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10518 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10519 * go-lang.c (_initialize_go_language): Add declaration.
10520 * go32-nat.c (_initialize_go32_nat): Add declaration.
10521 * guile/guile.c (_initialize_guile): Add declaration.
10522 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10523 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10524 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10525 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10526 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10527 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10528 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10529 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10530 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10531 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10532 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10533 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10534 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10535 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10536 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10537 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10538 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10539 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10540 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10541 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10542 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10543 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10544 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10545 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10546 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10547 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10548 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10549 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10550 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10551 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10552 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10553 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10554 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10555 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10556 * infcall.c (_initialize_infcall): Add declaration.
10557 * infcmd.c (_initialize_infcmd): Add declaration.
10558 * inflow.c (_initialize_inflow): Add declaration.
10559 * infrun.c (_initialize_infrun): Add declaration.
10560 * interps.c (_initialize_interpreter): Add declaration.
10561 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10562 * jit.c (_initialize_jit): Add declaration.
10563 * language.c (_initialize_language): Add declaration.
10564 * linux-fork.c (_initialize_linux_fork): Add declaration.
10565 * linux-nat.c (_initialize_linux_nat): Add declaration.
10566 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10567 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10568 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10569 * m2-lang.c (_initialize_m2_language): Add declaration.
10570 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10571 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10572 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10573 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10574 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10575 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10576 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10577 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10578 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10579 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10580 * machoread.c (_initialize_machoread): Add declaration.
10581 * macrocmd.c (_initialize_macrocmd): Add declaration.
10582 * macroscope.c (_initialize_macroscope): Add declaration.
10583 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10584 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10585 * maint.c (_initialize_maint_cmds): Add declaration.
10586 * mdebugread.c (_initialize_mdebugread): Add declaration.
10587 * memattr.c (_initialize_mem): Add declaration.
10588 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10589 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10590 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10591 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10592 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10593 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10594 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10595 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10596 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10597 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10598 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10599 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10600 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10601 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10602 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10603 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10604 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10605 * mipsread.c (_initialize_mipsread): Add declaration.
10606 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10607 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10608 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10609 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10610 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10611 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10612 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10613 * nto-procfs.c (_initialize_procfs): Add declaration.
10614 * objc-lang.c (_initialize_objc_language): Add declaration.
10615 * observable.c (_initialize_observer): Add declaration.
10616 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10617 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10618 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10619 * osabi.c (_initialize_gdb_osabi): Add declaration.
10620 * osdata.c (_initialize_osdata): Add declaration.
10621 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10622 * parse.c (_initialize_parse): Add declaration.
10623 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10624 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10625 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10626 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10627 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10628 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10629 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10630 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10631 * printcmd.c (_initialize_printcmd): Add declaration.
10632 * probe.c (_initialize_probe): Add declaration.
10633 * proc-api.c (_initialize_proc_api): Add declaration.
10634 * proc-events.c (_initialize_proc_events): Add declaration.
10635 * proc-service.c (_initialize_proc_service): Add declaration.
10636 * procfs.c (_initialize_procfs): Add declaration.
10637 * producer.c (_initialize_producer): Add declaration.
10638 * psymtab.c (_initialize_psymtab): Add declaration.
10639 * python/python.c (_initialize_python): Add declaration.
10640 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10641 * record-btrace.c (_initialize_record_btrace): Add declaration.
10642 * record-full.c (_initialize_record_full): Add declaration.
10643 * record.c (_initialize_record): Add declaration.
10644 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10645 * regcache.c (_initialize_regcache): Add declaration.
10646 * reggroups.c (_initialize_reggroup): Add declaration.
10647 * remote-notif.c (_initialize_notif): Add declaration.
10648 * remote-sim.c (_initialize_remote_sim): Add declaration.
10649 * remote.c (_initialize_remote): Add declaration.
10650 * reverse.c (_initialize_reverse): Add declaration.
10651 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10652 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10653 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10654 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10655 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10656 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10657 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10658 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10659 Add declaration.
10660 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10661 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10662 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10663 * rust-exp.y (_initialize_rust_exp): Add declaration.
10664 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10665 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10666 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10667 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10668 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10669 * score-tdep.c (_initialize_score_tdep): Add declaration.
10670 * ser-go32.c (_initialize_ser_dos): Add declaration.
10671 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10672 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10673 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10674 * ser-uds.c (_initialize_ser_socket): Add declaration.
10675 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10676 * serial.c (_initialize_serial): Add declaration.
10677 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10678 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10679 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10680 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10681 * skip.c (_initialize_step_skip): Add declaration.
10682 * sol-thread.c (_initialize_sol_thread): Add declaration.
10683 * solib-aix.c (_initialize_solib_aix): Add declaration.
10684 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10685 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10686 * solib-frv.c (_initialize_frv_solib): Add declaration.
10687 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10688 * solib-target.c (_initialize_solib_target): Add declaration.
10689 * solib.c (_initialize_solib): Add declaration.
10690 * source-cache.c (_initialize_source_cache): Add declaration.
10691 * source.c (_initialize_source): Add declaration.
10692 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10693 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10694 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10695 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10696 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10697 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10698 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10699 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10700 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10701 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10702 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10703 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10704 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10705 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10706 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10707 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10708 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10709 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10710 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10711 * stabsread.c (_initialize_stabsread): Add declaration.
10712 * stack.c (_initialize_stack): Add declaration.
10713 * stap-probe.c (_initialize_stap_probe): Add declaration.
10714 * std-regs.c (_initialize_frame_reg): Add declaration.
10715 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10716 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10717 * symfile.c (_initialize_symfile): Add declaration.
10718 * symmisc.c (_initialize_symmisc): Add declaration.
10719 * symtab.c (_initialize_symtab): Add declaration.
10720 * target.c (_initialize_target): Add declaration.
10721 * target-connection.c (_initialize_target_connection): Add
10722 declaration.
10723 * target-dcache.c (_initialize_target_dcache): Add declaration.
10724 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10725 * thread.c (_initialize_thread): Add declaration.
10726 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10727 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10728 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10729 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10730 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10731 * tracectf.c (_initialize_ctf): Add declaration.
10732 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10733 * tracefile.c (_initialize_tracefile): Add declaration.
10734 * tracepoint.c (_initialize_tracepoint): Add declaration.
10735 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10736 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10737 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10738 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10739 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10740 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10741 * tui/tui.c (_initialize_tui): Add declaration.
10742 * typeprint.c (_initialize_typeprint): Add declaration.
10743 * ui-style.c (_initialize_ui_style): Add declaration.
10744 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10745 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10746 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10747 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10748 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10749 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10750 * unittests/filtered_iterator-selftests.c
10751 (_initialize_filtered_iterator_selftests): Add declaration.
10752 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10753 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10754 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10755 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10756 * unittests/main-thread-selftests.c
10757 (_initialize_main_thread_selftests): Add declaration.
10758 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10759 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10760 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10761 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10762 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10763 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10764 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10765 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10766 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10767 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10768 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10769 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10770 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10771 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10772 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10773 declaration.
10774 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10775 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10776 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10777 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10778 * user-regs.c (_initialize_user_regs): Add declaration.
10779 * utils.c (_initialize_utils): Add declaration.
10780 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10781 * valops.c (_initialize_valops): Add declaration.
10782 * valprint.c (_initialize_valprint): Add declaration.
10783 * value.c (_initialize_values): Add declaration.
10784 * varobj.c (_initialize_varobj): Add declaration.
10785 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10786 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10787 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10788 * windows-nat.c (_initialize_windows_nat): Add declaration.
10789 (_initialize_check_for_gdb_ini): Add declaration.
10790 (_initialize_loadable): Add declaration.
10791 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10792 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10793 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10794 * xcoffread.c (_initialize_xcoffread): Add declaration.
10795 * xml-support.c (_initialize_xml_support): Add declaration.
10796 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10797 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10798 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10799 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10800
10801 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10802
10803 * regformats/regdat.sh: Generate declaration for init function.
10804
10805 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10806
10807 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10808 up.
10809 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10810 close_one_inferior>: New methods.
10811 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10812 pass down target to find_inferior_pid.
10813 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10814 Pass down target to find_inferior_ptid.
10815 (gdbsim_target::create_inferior): Pass down target to
10816 add_thread_silent.
10817 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10818 target down to find_inferior_ptid and switch_to_thread.
10819 (gdbsim_target::close): Update to call close_one_inferior.
10820 (struct resume_data): Remove.
10821 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10822 directly, rather than through a void pointer.
10823 (gdbsim_target::resume): Update to call resume_one_inferior.
10824
10825 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10826
10827 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10828
10829 2020-01-12 Pedro Alves <palves@redhat.com>
10830
10831 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10832 directly for the current inferior instead of
10833 discard_all_inferiors.
10834 (discard_all_inferiors): Delete.
10835
10836 2020-01-11 Tom Tromey <tom@tromey.com>
10837
10838 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10839 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10840 deprecated_safe_get_selected_frame.
10841
10842 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10843
10844 * inferior.c (print_inferior): Switch inferior before printing it.
10845
10846 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10847 Pedro Alves <palves@redhat.com>
10848
10849 * progspace-and-thread.c (switch_to_program_space_and_thread):
10850 Assert there's an inferior for PSPACE. Use
10851 switch_to_inferior_no_thread to switch the inferior too.
10852 * progspace.c (program_space::~program_space): Call
10853 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10854 (program_space::free_all_objfiles): Don't call clear_symtab_users
10855 here.
10856 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10857
10858 2020-01-10 Pedro Alves <palves@redhat.com>
10859
10860 * NEWS: Mention multi-target debugging, "info connections", and
10861 "add-inferior -no-connection".
10862
10863 2020-01-10 Pedro Alves <palves@redhat.com>
10864
10865 * infrun.c: Include "target-connection.h".
10866 (check_multi_target_resumption): New.
10867 (proceed): Call it.
10868 * target-connection.c (make_target_connection_string): Make
10869 extern.
10870 * target-connection.h (make_target_connection_string): Declare.
10871
10872 2020-01-10 Pedro Alves <palves@redhat.com>
10873
10874 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10875 * inferior.c (uiout_field_connection): New function.
10876 (print_inferior): Add new "connection-id" column.
10877 (add_inferior_command): Show connection number/string of added
10878 inferior.
10879 * process-stratum-target.h
10880 (process_stratum_target::connection_string): New virtual method.
10881 (process_stratum_target::connection_number): New field.
10882 * remote.c (remote_target::connection_string): New override.
10883 * target-connection.c: New file.
10884 * target-connection.h: New file.
10885 * target.c (decref_target): Remove process_stratum targets from
10886 the connection list.
10887 (target_stack::push): Add process_stratum targets to the
10888 connection list.
10889
10890 2020-01-10 Pedro Alves <palves@redhat.com>
10891
10892 Revert:
10893 2016-04-12 Pedro Alves <palves@redhat.com>
10894 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10895 Remove references to name.
10896 * serial.h (struct serial) <name>: Delete.
10897
10898 2020-01-10 Pedro Alves <palves@redhat.com>
10899
10900 * gdbarch-selftests.c (register_to_value_test): Remove "target
10901 already pushed" check.
10902
10903 2020-01-10 Pedro Alves <palves@redhat.com>
10904 John Baldwin <jhb@FreeBSD.org>
10905
10906 * aarch64-linux-nat.c
10907 (aarch64_linux_nat_target::thread_architecture): Adjust.
10908 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10909 (task_command_1): Likewise.
10910 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10911 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10912 (aix_thread_target::store_registers)
10913 (aix_thread_target::thread_alive): Adjust.
10914 * amd64-fbsd-tdep.c: Include "inferior.h".
10915 (amd64fbsd_get_thread_local_address): Pass down target.
10916 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10917 thread's gdbarch instead of target_gdbarch.
10918 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10919 get_last_target_status.
10920 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10921 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10922 inferiors.
10923 (update_inserted_breakpoint_locations): Skip if inferiors with no
10924 execution.
10925 (update_global_location_list): When handling moribund locations,
10926 find representative inferior for location's pspace, and use thread
10927 count of its process_stratum target.
10928 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10929 * bsd-uthread.c (bsd_uthread_target::wait): Use
10930 as_process_stratum_target and adjust thread_change_ptid and
10931 add_thread calls.
10932 (bsd_uthread_target::update_thread_list): Use
10933 as_process_stratum_target and adjust find_thread_ptid,
10934 thread_change_ptid and add_thread calls.
10935 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10936 find_thread_ptid call.
10937 * corelow.c (add_to_thread_list): Adjust add_thread call.
10938 (core_target_open): Adjust add_thread_silent and thread_count
10939 calls.
10940 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10941 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10942 * event-top.c (async_disconnect): Pop targets from all inferiors.
10943 * exec.c (add_target_sections): Push exec target on all inferiors
10944 sharing the program space.
10945 (remove_target_sections): Remove the exec target from all
10946 inferiors sharing the program space.
10947 (exec_on_vfork): New.
10948 * exec.h (exec_on_vfork): Declare.
10949 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10950 Pass it down.
10951 (fbsd_nat_target::update_thread_list): Adjust.
10952 (fbsd_nat_target::resume): Adjust.
10953 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10954 down.
10955 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10956 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10957 get_thread_arch_regcache call.
10958 * fork-child.c (gdb_startup_inferior): Pass target down to
10959 startup_inferior and set_executing.
10960 * gdbthread.h (struct process_stratum_target): Forward declare.
10961 (add_thread, add_thread_silent, add_thread_with_info)
10962 (in_thread_list): Add process_stratum_target parameter.
10963 (find_thread_ptid(inferior*, ptid_t)): New overload.
10964 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10965 parameter.
10966 (all_threads()): Delete overload.
10967 (all_threads, all_non_exited_threads): Add process_stratum_target
10968 parameter.
10969 (all_threads_safe): Use brace initialization.
10970 (thread_count): Add process_stratum_target parameter.
10971 (set_resumed, set_running, set_stop_requested, set_executing)
10972 (threads_are_executing, finish_thread_state): Add
10973 process_stratum_target parameter.
10974 (switch_to_thread): Use is_current_thread.
10975 * i386-fbsd-tdep.c: Include "inferior.h".
10976 (i386fbsd_get_thread_local_address): Pass down target.
10977 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10978 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10979 have_inferiors check.
10980 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10981 (inf_ptrace_target::attach): Adjust.
10982 * infcall.c (run_inferior_call): Adjust.
10983 * infcmd.c (run_command_1): Pass target to
10984 scoped_finish_thread_state.
10985 (proceed_thread_callback): Skip inferiors with no execution.
10986 (continue_command): Rename 'all_threads' local to avoid hiding
10987 'all_threads' function. Adjust get_last_target_status call.
10988 (prepare_one_step): Adjust set_running call.
10989 (signal_command): Use user_visible_resume_target. Compare thread
10990 pointers instead of inferior_ptid.
10991 (info_program_command): Adjust to pass down target.
10992 (attach_command): Mark target's 'thread_executing' flag.
10993 (stop_current_target_threads_ns): New, factored out from ...
10994 (interrupt_target_1): ... this. Switch inferior before making
10995 target calls.
10996 * inferior-iter.h
10997 (struct all_inferiors_iterator, struct all_inferiors_range)
10998 (struct all_inferiors_safe_range)
10999 (struct all_non_exited_inferiors_range): Filter on
11000 process_stratum_target too. Remove explicit.
11001 * inferior.c (inferior::inferior): Push dummy target on target
11002 stack.
11003 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11004 Add process_stratum_target parameter, and pass it down.
11005 (have_live_inferiors): Adjust.
11006 (switch_to_inferior_and_push_target): New.
11007 (add_inferior_command, clone_inferior_command): Handle
11008 "-no-connection" parameter. Use
11009 switch_to_inferior_and_push_target.
11010 (_initialize_inferior): Mention "-no-connection" option in
11011 the help of "add-inferior" and "clone-inferior" commands.
11012 * inferior.h: Include "process-stratum-target.h".
11013 (interrupt_target_1): Use bool.
11014 (struct inferior) <push_target, unpush_target, target_is_pushed,
11015 find_target_beneath, top_target, process_target, target_at,
11016 m_stack>: New.
11017 (discard_all_inferiors): Delete.
11018 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11019 (all_inferiors, all_non_exited_inferiors): Add
11020 process_stratum_target parameter.
11021 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11022 (target_last_proc_target): New global.
11023 (follow_fork_inferior): Push target on new inferior. Pass target
11024 to add_thread_silent. Call exec_on_vfork. Handle target's
11025 reference count.
11026 (follow_fork): Adjust get_last_target_status call. Also consider
11027 target.
11028 (follow_exec): Push target on new inferior.
11029 (struct execution_control_state) <target>: New field.
11030 (user_visible_resume_target): New.
11031 (do_target_resume): Call target_async.
11032 (resume_1): Set target's threads_executing flag. Consider resume
11033 target.
11034 (commit_resume_all_targets): New.
11035 (proceed): Also consider resume target. Skip threads of inferiors
11036 with no execution. Commit resumtion in all targets.
11037 (start_remote): Pass current inferior to wait_for_inferior.
11038 (infrun_thread_stop_requested): Consider target as well. Pass
11039 thread_info pointer to clear_inline_frame_state instead of ptid.
11040 (infrun_thread_thread_exit): Consider target as well.
11041 (random_pending_event_thread): New inferior parameter. Use it.
11042 (do_target_wait): Rename to ...
11043 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11044 down.
11045 (threads_are_resumed_pending_p, do_target_wait): New.
11046 (prepare_for_detach): Adjust calls.
11047 (wait_for_inferior): New inferior parameter. Handle it. Use
11048 do_target_wait_1 instead of do_target_wait.
11049 (fetch_inferior_event): Adjust. Switch to representative
11050 inferior. Pass target down.
11051 (set_last_target_status): Add process_stratum_target parameter.
11052 Save target in global.
11053 (get_last_target_status): Add process_stratum_target parameter and
11054 handle it.
11055 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11056 (context_switch): Check inferior_ptid == null_ptid before calling
11057 inferior_thread().
11058 (get_inferior_stop_soon): Pass down target.
11059 (wait_one): Rename to ...
11060 (poll_one_curr_target): ... this.
11061 (struct wait_one_event): New.
11062 (wait_one): New.
11063 (stop_all_threads): Adjust.
11064 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11065 event's target.
11066 (switch_back_to_stepped_thread): Also consider target.
11067 (print_stop_event): Update.
11068 (normal_stop): Update. Also consider the resume target.
11069 * infrun.h (wait_for_inferior): Remove declaration.
11070 (user_visible_resume_target): New declaration.
11071 (get_last_target_status, set_last_target_status): New
11072 process_stratum_target parameter.
11073 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11074 process_stratum_target parameter, and use it.
11075 (clear_inline_frame_state (thread_info*)): New.
11076 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11077 process_stratum_target parameter.
11078 (clear_inline_frame_state (thread_info*)): Declare.
11079 * linux-fork.c (delete_checkpoint_command): Pass target down to
11080 find_thread_ptid.
11081 (checkpoint_command): Adjust.
11082 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11083 instead of just tweaking inferior_ptid.
11084 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11085 (exit_lwp): Pass target down to find_thread_ptid.
11086 (attach_proc_task_lwp_callback): Pass target down to
11087 add_thread/set_running/set_executing.
11088 (linux_nat_target::attach): Pass target down to
11089 thread_change_ptid.
11090 (get_detach_signal): Pass target down to find_thread_ptid.
11091 Consider last target status's target.
11092 (linux_resume_one_lwp_throw, resume_lwp)
11093 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11094 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11095 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11096 (linux_nat_target::async_wait_fd): New.
11097 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11098 target down.
11099 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11100 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11101 * linux-thread-db.c (struct thread_db_info::process_target): New
11102 field.
11103 (add_thread_db_info): Save target.
11104 (get_thread_db_info): New process_stratum_target parameter. Also
11105 match target.
11106 (delete_thread_db_info): New process_stratum_target parameter.
11107 Also match target.
11108 (thread_from_lwp): Adjust to pass down target.
11109 (thread_db_notice_clone): Pass down target.
11110 (check_thread_db_callback): Pass down target.
11111 (try_thread_db_load_1): Always push the thread_db target.
11112 (try_thread_db_load, record_thread): Pass target down.
11113 (thread_db_target::detach): Pass target down. Always unpush the
11114 thread_db target.
11115 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11116 target down. Always unpush the thread_db target.
11117 (find_new_threads_callback, thread_db_find_new_threads_2)
11118 (thread_db_target::update_thread_list): Pass target down.
11119 (thread_db_target::pid_to_str): Pass current inferior down.
11120 (thread_db_target::get_thread_local_address): Pass target down.
11121 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11122 target down.
11123 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11124 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11125 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11126 (procfs_init_inferior): Rename to ...
11127 (procfs_target::procfs_init_inferior): ... this and adjust.
11128 (procfs_target::create_inferior, procfs_notice_thread)
11129 (procfs_do_thread_registers): Adjust.
11130 * ppc-fbsd-tdep.c: Include "inferior.h".
11131 (ppcfbsd_get_thread_local_address): Pass down target.
11132 * proc-service.c (ps_xfer_memory): Switch current inferior and
11133 program space as well.
11134 (get_ps_regcache): Pass target down.
11135 * process-stratum-target.c
11136 (process_stratum_target::thread_address_space)
11137 (process_stratum_target::thread_architecture): Pass target down.
11138 * process-stratum-target.h
11139 (process_stratum_target::threads_executing): New field.
11140 (as_process_stratum_target): New.
11141 * ravenscar-thread.c
11142 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11143 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11144 down.
11145 * record-btrace.c (record_btrace_target::info_record): Adjust.
11146 (record_btrace_target::record_method)
11147 (record_btrace_target::record_is_replaying)
11148 (record_btrace_target::fetch_registers)
11149 (get_thread_current_frame_id, record_btrace_target::resume)
11150 (record_btrace_target::wait, record_btrace_target::stop): Pass
11151 target down.
11152 * record-full.c (record_full_wait_1): Switch to event thread.
11153 Pass target down.
11154 * regcache.c (regcache::regcache)
11155 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11156 process_stratum_target parameter and handle it.
11157 (current_thread_target): New global.
11158 (get_thread_regcache): Add process_stratum_target parameter and
11159 handle it. Switch inferior before calling target method.
11160 (get_thread_regcache): Pass target down.
11161 (get_thread_regcache_for_ptid): Pass target down.
11162 (registers_changed_ptid): Add process_stratum_target parameter and
11163 handle it.
11164 (registers_changed_thread, registers_changed): Pass target down.
11165 (test_get_thread_arch_aspace_regcache): New.
11166 (current_regcache_test): Define a couple local test_target_ops
11167 instances and use them for testing.
11168 (readwrite_regcache): Pass process_stratum_target parameter.
11169 (cooked_read_test, cooked_write_test): Pass mock_target down.
11170 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11171 (get_thread_arch_aspace_regcache): Add process_stratum_target
11172 parameter.
11173 (regcache::target): New method.
11174 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11175 (regcache::registers_changed_ptid): Add process_stratum_target
11176 parameter.
11177 (regcache::m_target): New field.
11178 (registers_changed_ptid): Add process_stratum_target parameter.
11179 * remote.c (remote_state::supports_vCont_probed): New field.
11180 (remote_target::async_wait_fd): New method.
11181 (remote_unpush_and_throw): Add remote_target parameter.
11182 (get_current_remote_target): Adjust.
11183 (remote_target::remote_add_inferior): Push target.
11184 (remote_target::remote_add_thread)
11185 (remote_target::remote_notice_new_inferior)
11186 (get_remote_thread_info): Pass target down.
11187 (remote_target::update_thread_list): Skip threads of inferiors
11188 bound to other targets. (remote_target::close): Don't discard
11189 inferiors. (remote_target::add_current_inferior_and_thread)
11190 (remote_target::process_initial_stop_replies)
11191 (remote_target::start_remote)
11192 (remote_target::remote_serial_quit_handler): Pass down target.
11193 (remote_target::remote_unpush_target): New remote_target
11194 parameter. Unpush the target from all inferiors.
11195 (remote_target::remote_unpush_and_throw): New remote_target
11196 parameter. Pass it down.
11197 (remote_target::open_1): Check whether the current inferior has
11198 execution instead of checking whether any inferior is live. Pass
11199 target down.
11200 (remote_target::remote_detach_1): Pass down target. Use
11201 remote_unpush_target.
11202 (extended_remote_target::attach): Pass down target.
11203 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11204 (remote_target::append_resumption): Pass down target.
11205 (remote_target::append_pending_thread_resumptions)
11206 (remote_target::remote_resume_with_hc, remote_target::resume)
11207 (remote_target::commit_resume): Pass down target.
11208 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11209 (remote_target::interrupt_query)
11210 (remote_target::remove_new_fork_children)
11211 (remote_target::check_pending_events_prevent_wildcard_vcont)
11212 (remote_target::remote_parse_stop_reply)
11213 (remote_target::process_stop_reply): Pass down target.
11214 (first_remote_resumed_thread): New remote_target parameter. Pass
11215 it down.
11216 (remote_target::wait_as): Pass down target.
11217 (unpush_and_perror): New remote_target parameter. Pass it down.
11218 (remote_target::readchar, remote_target::remote_serial_write)
11219 (remote_target::getpkt_or_notif_sane_1)
11220 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11221 down target.
11222 (remote_target::mourn_inferior): Pass down target. Use
11223 remote_unpush_target.
11224 (remote_target::core_of_thread)
11225 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11226 (remote_target::pid_to_exec_file)
11227 (remote_target::thread_handle_to_thread_info): Pass down target.
11228 (remote_target::async_wait_fd): New.
11229 * riscv-fbsd-tdep.c: Include "inferior.h".
11230 (riscv_fbsd_get_thread_local_address): Pass down target.
11231 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11232 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11233 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11234 Adjust.
11235 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11236 * solib-svr4.c (enable_break): Pass down target.
11237 * spu-multiarch.c (parse_spufs_run): Pass down target.
11238 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11239 * target-delegates.c: Regenerate.
11240 * target.c (g_target_stack): Delete.
11241 (current_top_target): Return the current inferior's top target.
11242 (target_has_execution_1): Refer to the passed-in inferior's top
11243 target.
11244 (target_supports_terminal_ours): Check whether the initial
11245 inferior was already created.
11246 (decref_target): New.
11247 (target_stack::push): Incref/decref the target.
11248 (push_target, push_target, unpush_target): Adjust.
11249 (target_stack::unpush): Defref target.
11250 (target_is_pushed): Return bool. Adjust to refer to the current
11251 inferior's target stack.
11252 (dispose_inferior): Delete, and inline parts ...
11253 (target_preopen): ... here. Only dispose of the current inferior.
11254 (target_detach): Hold strong target reference while detaching.
11255 Pass target down.
11256 (target_thread_name): Add assertion.
11257 (target_resume): Pass down target.
11258 (target_ops::beneath, find_target_at): Adjust to refer to the
11259 current inferior's target stack.
11260 (get_dummy_target): New.
11261 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11262 has a thread running.
11263 (initialize_targets): Rename to ...
11264 (_initialize_target): ... this.
11265 * target.h: Include "gdbsupport/refcounted-object.h".
11266 (struct target_ops): Inherit refcounted_object.
11267 (target_ops::shortname, target_ops::longname): Make const.
11268 (target_ops::async_wait_fd): New method.
11269 (decref_target): Declare.
11270 (struct target_ops_ref_policy): New.
11271 (target_ops_ref): New typedef.
11272 (get_dummy_target): Declare function.
11273 (target_is_pushed): Return bool.
11274 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11275 (all_matching_threads_iterator::all_matching_threads_iterator):
11276 Handle filter target.
11277 * thread-iter.h (struct all_matching_threads_iterator, struct
11278 all_matching_threads_range, class all_non_exited_threads_range):
11279 Filter by target too. Remove explicit.
11280 * thread.c (threads_executing): Delete.
11281 (inferior_thread): Pass down current inferior.
11282 (clear_thread_inferior_resources): Pass down thread pointer
11283 instead of ptid_t.
11284 (add_thread_silent, add_thread_with_info, add_thread): Add
11285 process_stratum_target parameter. Use it for thread and inferior
11286 searches.
11287 (is_current_thread): New.
11288 (thread_info::deletable): Use it.
11289 (find_thread_ptid, thread_count, in_thread_list)
11290 (thread_change_ptid, set_resumed, set_running): New
11291 process_stratum_target parameter. Pass it down.
11292 (set_executing): New process_stratum_target parameter. Pass it
11293 down. Adjust reference to 'threads_executing'.
11294 (threads_are_executing): New process_stratum_target parameter.
11295 Adjust reference to 'threads_executing'.
11296 (set_stop_requested, finish_thread_state): New
11297 process_stratum_target parameter. Pass it down.
11298 (switch_to_thread): Also match inferior.
11299 (switch_to_thread): New process_stratum_target parameter. Pass it
11300 down.
11301 (update_threads_executing): Reimplement.
11302 * top.c (quit_force): Pop targets from all inferior.
11303 (gdb_init): Don't call initialize_targets.
11304 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11305 Declare.
11306 (windows_add_thread, windows_delete_thread): Adjust.
11307 (get_windows_debug_event): Rename to ...
11308 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11309 * tracefile-tfile.c (tfile_target_open): Pass down target.
11310 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11311 Forward declare.
11312 (switch_to_thread): Add process_stratum_target parameter.
11313 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11314 parameter. Use it.
11315 (mi_on_resume): Pass target down.
11316 * nat/fork-inferior.c (startup_inferior): Add
11317 process_stratum_target parameter. Pass it down.
11318 * nat/fork-inferior.h (startup_inferior): Add
11319 process_stratum_target parameter.
11320 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11321
11322 2020-01-10 Pedro Alves <palves@redhat.com>
11323
11324 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11325 directly. Instead find the first thread in the thread list and
11326 use switch_to_thread.
11327
11328 2020-01-10 Pedro Alves <palves@redhat.com>
11329
11330 * remote.c (remote_target::remote_add_inferior): Don't bind a
11331 process to the current inferior if the current inferior is already
11332 bound to a process.
11333
11334 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11335 Pedro Alves <palves@redhat.com>
11336
11337 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11338 If no process is specified, return null_ptid instead of
11339 inferior_ptid.
11340 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11341 TARGET_WAITKIND_SIGNALLED with no pid.
11342
11343 2020-01-10 Pedro Alves <palves@redhat.com>
11344
11345 * remote.c (first_remote_resumed_thread): New.
11346 (remote_target::wait_as): Use it as default event_ptid instead of
11347 inferior_ptid.
11348
11349 2020-01-10 Pedro Alves <palves@redhat.com>
11350
11351 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11352
11353 2020-01-10 Pedro Alves <palves@redhat.com>
11354
11355 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11356 not -1.
11357
11358 2020-01-10 Pedro Alves <palves@redhat.com>
11359
11360 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11361 ptid to get_last_target_status.
11362 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11363 ptid to get_last_target_status.
11364 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11365 get_last_target_status.
11366 (info_program_command): Don't pass a target_waitstatus to
11367 get_last_target_status.
11368 * infrun.c (init_wait_for_inferior): Use
11369 nullify_last_target_wait_ptid.
11370 (get_last_target_status): Handle nullptr arguments.
11371 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11372 (print_stop_event): Don't pass a ptid to get_last_target_status.
11373 (normal_stop): Don't pass a ptid to get_last_target_status.
11374 * infrun.h (get_last_target_status, set_last_target_status): Move
11375 comments here and update.
11376 (nullify_last_target_wait_ptid): Declare.
11377 * linux-fork.c (fork_load_infrun_state): Remove local extern
11378 declaration of nullify_last_target_wait_ptid.
11379 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11380 to get_last_target_status.
11381
11382 2020-01-10 Pedro Alves <palves@redhat.com>
11383
11384 * gdbthread.h (scoped_restore_current_thread)
11385 <dont_restore, restore, m_dont_restore>: Declare.
11386 * thread.c (thread_alive): Add assertion. Return bool.
11387 (switch_to_thread_if_alive): New.
11388 (prune_threads): Switch inferior/thread.
11389 (print_thread_info_1): Switch thread before calling target methods.
11390 (scoped_restore_current_thread::restore): New, factored out from
11391 ...
11392 (scoped_restore_current_thread::~scoped_restore_current_thread):
11393 ... this.
11394 (scoped_restore_current_thread::scoped_restore_current_thread):
11395 Add assertion.
11396 (thread_apply_all_command, thread_select): Use
11397 switch_to_thread_if_alive.
11398 * infrun.c (proceed, restart_threads, handle_signal_stop)
11399 (switch_back_to_stepped_thread): Switch current thread before
11400 calling target methods.
11401
11402 2020-01-10 Pedro Alves <palves@redhat.com>
11403
11404 * inferior.c (switch_to_inferior_no_thread): New function,
11405 factored out from ...
11406 (inferior_command): ... here.
11407 * inferior.h (switch_to_inferior_no_thread): Declare.
11408 * mi/mi-main.c (run_one_inferior): Use
11409 switch_to_inferior_no_thread.
11410
11411 2020-01-10 Pedro Alves <palves@redhat.com>
11412
11413 * infcmd.c (kill_command): Remove dead code.
11414
11415 2020-01-10 Pedro Alves <palves@redhat.com>
11416
11417 * remote.c (remote_target::mourn_inferior): No longer check
11418 whether the target is running.
11419
11420 2020-01-10 Pedro Alves <palves@redhat.com>
11421
11422 * corelow.c (core_target::has_execution): Change parameter type to
11423 inferior pointer.
11424 * inferior.c (number_of_live_inferiors): Use
11425 inferior::has_execution instead of target_has_execution_1.
11426 * inferior.h (inferior::has_execution): New.
11427 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11428 inferior::has_execution instead of target_has_execution_1.
11429 * process-stratum-target.c
11430 (process_stratum_target::has_execution): Change parameter type to
11431 inferior pointer. Check the inferior's PID instead of
11432 inferior_ptid.
11433 * process-stratum-target.h
11434 (process_stratum_target::has_execution): Change parameter type to
11435 inferior pointer.
11436 * record-full.c (record_full_core_target::has_execution): Change
11437 parameter type to inferior pointer.
11438 * target.c (target_has_execution_1): Change parameter type to
11439 inferior pointer.
11440 (target_has_execution_current): Adjust.
11441 * target.h (target_ops::has_execution): Change parameter type to
11442 inferior pointer.
11443 (target_has_execution_1): Change parameter type to inferior
11444 pointer. Change return type to bool.
11445 * tracefile.h (tracefile_target::has_execution): Change parameter
11446 type to inferior pointer.
11447
11448 2020-01-10 Pedro Alves <palves@redhat.com>
11449
11450 * exceptions.c (print_flush): Remove current_top_target() check.
11451
11452 2020-01-10 Pedro Alves <palves@redhat.com>
11453
11454 * remote.c (show_remote_exec_file): Show the current inferior's
11455 exec-file instead of the command variable's value.
11456
11457 2020-01-10 Pedro Alves <palves@redhat.com>
11458
11459 * record-full.c (record_full_resume_ptid): New global.
11460 (record_full_target::resume): Set it.
11461 (record_full_wait_1): Use record_full_resume_ptid instead of
11462 inferior_ptid.
11463
11464 2020-01-10 Pedro Alves <palves@redhat.com>
11465
11466 * gdbthread.h (scoped_restore_current_thread)
11467 <dont_restore, restore, m_dont_restore>: Declare.
11468 * thread.c (thread_alive): Add assertion. Return bool.
11469 (switch_to_thread_if_alive): New.
11470 (prune_threads): Switch inferior/thread.
11471 (print_thread_info_1): Switch thread before calling target methods.
11472 (scoped_restore_current_thread::restore): New, factored out from
11473 ...
11474 (scoped_restore_current_thread::~scoped_restore_current_thread):
11475 ... this.
11476 (scoped_restore_current_thread::scoped_restore_current_thread):
11477 Add assertion.
11478 (thread_apply_all_command, thread_select): Use
11479 switch_to_thread_if_alive.
11480
11481 2020-01-10 George Barrett <bob@bob131.so>
11482
11483 * stap-probe.c (stap_modify_semaphore): Don't check for null
11484 semaphores.
11485 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11486 for null semaphores.
11487
11488 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11489
11490 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11491 all source windows, and maintain horizontal scroll status while
11492 doing so.
11493
11494 2020-01-09 Tom Tromey <tom@tromey.com>
11495
11496 PR tui/18932:
11497 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11498 update_source_window, not print_source_lines.
11499
11500 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11501
11502 * tui/tui.c (tui_enable): Register tui hooks after calling
11503 tui_display_main.
11504
11505 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11506
11507 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11508
11509 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11510
11511 * thread.c (print_thread_info_1): Fix indentation.
11512
11513 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11514
11515 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11516 unique_xmalloc_ptr outside the if to always free the demangled name.
11517
11518 2020-01-08 Tom Tromey <tromey@adacore.com>
11519
11520 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11521 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11522 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11523 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11524 Remove.
11525 (section_offsets): New typedef.
11526 * symtab.c (fixup_section, get_msymbol_address): Update.
11527 * symmisc.c (dump_msymbols): Update.
11528 * symfile.h (relative_addr_info_to_section_offsets)
11529 (symfile_map_offsets_to_segments): Update.
11530 * symfile.c (build_section_addr_info_from_objfile)
11531 (init_objfile_sect_indices): Update.
11532 (struct place_section_arg): Change type of "offsets".
11533 (place_section): Update.
11534 (relative_addr_info_to_section_offsets): Change type of
11535 "section_offsets". Remove "num_sections" parameter.
11536 (default_symfile_offsets, syms_from_objfile_1)
11537 (set_objfile_default_section_offset): Update.
11538 (reread_symbols): No need to preserve section offsets by hand.
11539 (symfile_map_offsets_to_segments): Change type of "offsets".
11540 * stap-probe.c (relocate_address): Update.
11541 * stabsread.h (process_one_symbol): Update.
11542 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11543 (solib_target_relocate_section_addresses): Update.
11544 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11545 Update.
11546 * solib-frv.c (frv_relocate_main_executable): Update.
11547 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11548 * solib-aix.c (solib_aix_get_section_offsets): Change return
11549 type.
11550 (solib_aix_solib_create_inferior_hook): Update.
11551 * remote.c (remote_target::get_offsets): Update.
11552 * psymtab.c (find_pc_sect_psymtab): Update.
11553 * psympriv.h (struct partial_symbol) <address, text_low,
11554 text_high>: Update.
11555 * objfiles.h (obj_section_offset): Update.
11556 (struct objfile) <section_offsets>: Change type.
11557 <num_sections>: Remove.
11558 (objfile_relocate): Update.
11559 * objfiles.c (entry_point_address_query): Update
11560 (relocate_one_symbol): Change type of "section_offsets".
11561 (objfile_relocate1, objfile_relocate1): Change type of
11562 "new_offsets".
11563 (objfile_rebase1): Update.
11564 * mipsread.c (mipscoff_symfile_read): Update.
11565 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11566 parameter.
11567 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11568 (parse_external, psymtab_to_symtab_1): Update.
11569 * machoread.c (macho_symfile_offsets): Update.
11570 * ia64-tdep.c (ia64_find_unwind_table): Update.
11571 * hppa-tdep.c (read_unwind_info): Update.
11572 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11573 * dwarf2read.c (create_addrmap_from_index)
11574 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11575 (process_psymtab_comp_unit_reader, add_partial_symbol)
11576 (add_partial_subprogram, process_full_comp_unit)
11577 (read_file_scope, read_func_scope, read_lexical_block_scope)
11578 (read_call_site_scope, dwarf2_rnglists_process)
11579 (dwarf2_ranges_process, dwarf2_ranges_read)
11580 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11581 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11582 Update.
11583 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11584 Update.
11585 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11586 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11587 (process_one_symbol): Change type of "section_offsets".
11588 * ctfread.c (get_objfile_text_range): Update.
11589 * coffread.c (coff_symtab_read, enter_linenos)
11590 (process_coff_symbol): Update.
11591 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11592 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11593
11594 2020-01-08 Tom Tromey <tromey@adacore.com>
11595
11596 * dwarf2read.c (parse_macro_definition): Use std::string.
11597 (parse_macro_definition): Likewise.
11598
11599 2020-01-08 Tom Tromey <tromey@adacore.com>
11600
11601 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11602 (ATTR_ALLOC_CHUNK): Remove.
11603
11604 2020-01-08 Tom Tromey <tromey@adacore.com>
11605
11606 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11607
11608 2020-01-08 Tom Tromey <tromey@adacore.com>
11609
11610 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11611 (dwarf2_compute_name, open_dwo_file): Likewise.
11612 (process_enumeration_scope): Use std::vector.
11613 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11614 (partial_die_info::fixup, dwarf2_start_subfile)
11615 (guess_full_die_structure_name, dwarf2_name): Likewise.
11616 (determine_prefix): Update.
11617 (guess_full_die_structure_name): Make return type const.
11618 (partial_die_full_name): Return unique_xmalloc_ptr.
11619 (DW_FIELD_ALLOC_CHUNK): Remove.
11620
11621 2020-01-07 Tom Tromey <tromey@adacore.com>
11622
11623 PR build/24937:
11624 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11625
11626 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11627
11628 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11629
11630 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11631
11632 * stack.c (print_frame_info): Move disassemble_next_line code
11633 inside source_print block.
11634
11635 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11636
11637 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11638 gdb/signals.h, as we are now using native signal symbols.
11639
11640 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11641
11642 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11643 overflow by an early check of content vs threshold.
11644 * tui/tui-source.c (tui_source_window::line_is_displayed):
11645 Likewise.
11646
11647 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11648
11649 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11650
11651 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11652
11653 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11654 export table if no section contains it's RVA.
11655
11656 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11657
11658 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11659
11660 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11661
11662 * source.c (print_source_lines_base): Set last_line_listed.
11663
11664 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11665
11666 * tui/tui-disasm.c: Remove trailing spaces.
11667
11668 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11669 Pedro Alves <palves@redhat.com>
11670
11671 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11672 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11673 (windows_gdb_signal_to_target): New function, uses the above
11674 enumeration to convert GDB internal signal codes to equivalent
11675 Windows codes.
11676 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11677 * windows-nat.c: Include "gdb_wait.h".
11678 (get_windows_debug_event): Extract the fatal exception from the
11679 exit status and convert to the equivalent Posix signal number.
11680 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11681 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11682 * gdbsupport/gdb_wait.c: New file, implements
11683 windows_status_to_termsig.
11684 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11685 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11686
11687 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11688
11689 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11690 show_layout.
11691
11692 2020-01-05 Luis Machado <luis.machado@linaro.org>
11693
11694 * aarch64-linux-nat.c
11695 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11696 and bfd_mach_aarch64.
11697
11698 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11699
11700 * ui-file.c (stdio_file::can_emit_style_escape)
11701 (tee_file::can_emit_style_escape): Ensure style is used also on
11702 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11703 to gdb_stdout.
11704 * main.c (set_gdb_data_directory): Use file style to output the
11705 warning that the given pathname is not a directory.
11706 * top.c (show_history_filename, gdb_safe_append_history)
11707 (show_gdb_datadir): Use file style.
11708
11709 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11710
11711 * solib-target.c (struct lm_info_target):
11712 Change offsets to be a unique_xmalloc_ptr.
11713 (solib_target_relocate_section_addresses): Update.
11714
11715 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11716
11717 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11718
11719 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11720
11721 * MAINTAINERS (Write After Approval): Add myself.
11722
11723 2020-01-02 Luis Machado <luis.machado@linaro.org>
11724
11725 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11726 Cell BE architecture.
11727 * target.h (struct target_ops) <thread_architecture>: Likewise.
11728
11729 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11730
11731 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11732
11733 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11734
11735 * MAINTAINERS (Write After Approval): Add myself.
11736
11737 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11738
11739 * gdbarch.sh: Update copyright year range of generated files.
11740
11741 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11742
11743 Update copyright year range in all GDB files.
11744
11745 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11746
11747 * copyright.py: Convert to Python 3.
11748
11749 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11750
11751 * copyright.py: Adapt after move of gnulib directory from gdb
11752 directory to toplevel directory.
11753
11754 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11755
11756 * copyright.py (main): Exit if run from the wrong directory.
11757
11758 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11759
11760 * top.c (print_gdb_version): Change copyright year to 2020.
11761
11762 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11763
11764 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11765
11766 For older changes see ChangeLog-2019.
11767 \f
11768 Local Variables:
11769 mode: change-log
11770 left-margin: 8
11771 fill-column: 74
11772 version-control: never
11773 coding: utf-8
11774 End: