]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
da68b1194e8e7a81640dc175f3efd3773f94f2d3
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
4 dynamic_prop::kind.
5
6 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
9
10 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
11
12 * configure.tgt: Set gdb_sim for bpf-*-* targets.
13
14 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
15 Jose E. Marchesi <jose.marchesi@oracle.com>
16
17 * configure.tgt: Add entry for bpf-*-*.
18 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
19 (ALLDEPFILES): Add bpf-tdep.c.
20 * bpf-tdep.c: New file.
21 * MAINTAINERS: Add bpf target and maintainer.
22 * NEWS: Mention the support for the new target.
23
24 2020-08-04 Tom de Vries <tdevries@suse.de>
25
26 PR symtab/23270
27 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
28 Error.
29
30 2020-08-03 John Baldwin <jhb@FreeBSD.org>
31
32 * syscalls/freebsd.xml: Regenerate.
33
34 2020-08-03 John Baldwin <jhb@FreeBSD.org>
35
36 * syscalls/update-freebsd.sh: Fix usage and year range.
37
38 2020-08-03 Tom de Vries <tdevries@suse.de>
39
40 PR symtab/26333
41 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
42 DW_LNE_lo_user/DW_LNE_hi_user range.
43
44 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
45
46 PR ada/26318
47 * ada-lang.c (ada_modulus): Return 0 if property is not of const
48 kind.
49
50 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
51
52 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
53
54 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
55
56 * breakpoint.c (set_breakpoint_condition): Update the condition
57 expressions after checking that the input condition string parses
58 successfully and does not contain junk at the end.
59
60 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
61
62 * breakpoint.c (set_breakpoint_condition): Update the
63 condition string after parsing the new condition successfully.
64
65 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66
67 * proc-api.c (_STRUCTURED_PROC): Don't define.
68 * proc-events.c: Likewise.
69 * proc-flags.c: Likewise.
70 * proc-why.c: Likewise.
71 * procfs.c: Likewise.
72
73 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
74 * configure, config.in: Regenerate.
75
76 2020-07-30 Tom de Vries <tdevries@suse.de>
77
78 PR build/26320
79 * ui-style.h (struct ui_file_style::color): Wrap m_value and
80 m_red/m_green/m_blue in a union.
81
82 2020-07-29 Tom de Vries <tdevries@suse.de>
83
84 PR tdep/26280
85 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
86
87 2020-07-28 Tom Tromey <tromey@adacore.com>
88
89 PR symtab/26270:
90 * symtab.h (find_pc_partial_function_sym): Declare.
91 * cli/cli-cmds.c (disassemble_command): Use
92 find_pc_partial_function_sym. Check asm_demangle.
93 * blockframe.c (cache_pc_function_sym): New global.
94 (cache_pc_function_name): Remove.
95 (clear_pc_function_cache): Update.
96 (find_pc_partial_function_sym): New function, from
97 find_pc_partial_function.
98 (find_pc_partial_function): Rewrite using
99 find_pc_partial_function_sym.
100
101 2020-07-28 Tom Tromey <tromey@adacore.com>
102
103 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
104 help. Add usage.
105
106 2020-07-28 Tom Tromey <tromey@adacore.com>
107
108 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
109 <DW_OP_GNU_variable_value>: Cast to address type.
110
111 2020-07-28 Kamil Rytarowski <n54@gmx.com>
112
113 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
114 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
115 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
116 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
117 (nbsd_get_siginfo_type): New.
118 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
119 (_initialize_nbsd_tdep): New.
120
121 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
122
123 PR binutils/26301
124 * configure: Regenerated.
125
126 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
127
128 PR binutils/26301
129 * configure: Regenerated.
130
131 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
132
133 * python/py-frame.c: Remove 'user-regs.h' include.
134 (frapy_read_register): Rewrite to make use of
135 gdbpy_parse_register_id.
136 * python/py-registers.c (gdbpy_parse_register_id): New function,
137 moved here from python/py-unwind.c. Updated the return type, and
138 also accepts register descriptor objects.
139 * python/py-unwind.c: Remove 'user-regs.h' include.
140 (pyuw_parse_register_id): Moved to python/py-registers.c.
141 (unwind_infopy_add_saved_register): Update to use
142 gdbpy_parse_register_id.
143 (pending_framepy_read_register): Likewise.
144 * python/python-internal.h (gdbpy_parse_register_id): Declare.
145
146 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
147
148 * python/py-registers.c: Add 'user-regs.h' include.
149 (register_descriptor_iter_find): New function.
150 (register_descriptor_iterator_object_methods): New static global
151 methods array.
152 (register_descriptor_iterator_object_type): Add pointer to methods
153 array.
154
155 2020-07-27 John Baldwin <jhb@FreeBSD.org>
156
157 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
158 for all architectures on FreeBSD 11.3 and later.
159
160 2020-07-27 Tom Tromey <tromey@adacore.com>
161
162 * gcore.h (load_corefile): Don't declare.
163
164 2020-07-27 Tom de Vries <tdevries@suse.de>
165
166 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
167 * config.in: Regenerate.
168 * configure: Regenerate.
169
170 2020-07-26 Eli Zaretskii <eliz@gnu.org>
171
172 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
173 ws2tcpip.h. When checking whether socklen_t type is defined, use
174 ws2tcpip.h if it is available and sys/socket.h isn't.
175 * configure: Regenerate.
176 * config.in: Regenerate.
177
178 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
179
180 PR fortran/23051
181 PR fortran/26139
182 * valops.c (value_ind): Pass address to
183 readjust_indirect_value_type.
184 * value.c (readjust_indirect_value_type): Make parameter
185 non-const, and add extra address parameter. Resolve original type
186 before using it.
187 * value.h (readjust_indirect_value_type): Update function
188 signature and comment.
189
190 2020-07-25 Tom de Vries <tdevries@suse.de>
191
192 PR symtab/26243
193 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
194 entries.
195
196 2020-07-24 Aaron Merey <amerey@redhat.com>
197
198 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
199 * configure: Rebuild.
200
201 2020-07-23 Kevin Buettner <kevinb@redhat.com>
202
203 PR corefiles/26294
204 * corelow.c (_initialize_corelow): Add period to help text
205 for "maintenance print core-file-backed-mappings".
206
207 2020-07-23 Pedro Alves <pedro@palves.net>
208
209 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
210 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
211 meanwhile.
212 * frame.c (frame_cache_generation, get_frame_cache_generation):
213 New.
214 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
215 (get_prev_frame_if_no_cycle): On exception, don't touch
216 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
217 * frame.h (get_frame_cache_generation): Declare.
218
219 2020-07-23 Tom de Vries <tdevries@suse.de>
220
221 PR tui/26282
222 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
223 New default constructor.
224
225 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
226
227 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
228 exclude non-statement entries.
229
230 2020-07-22 Kevin Buettner <kevinb@redhat.com>
231
232 * NEWS (New commands): Mention new command
233 "maintenance print core-file-backed-mappings".
234
235 2020-07-22 Kevin Buettner <kevinb@redhat.com>
236
237 * corelow.c (gdbcmd.h): Include.
238 (core_target::info_proc_mappings): New method.
239 (get_current_core_target): New function.
240 (maintenance_print_core_file_backed_mappings): New function.
241 (_initialize_corelow): Add core-file-backed-mappings to
242 "maint print" commands.
243
244 2020-07-22 Kevin Buettner <kevinb@redhat.com>
245
246 * linux-tdep.c (dump_note_entry_p): New function.
247 (linux_dump_mapping_p_ftype): New typedef.
248 (linux_find_memory_regions_full): Add new parameter,
249 should_dump_mapping_p.
250 (linux_find_memory_regions): Adjust call to
251 linux_find_memory_regions_full.
252 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
253 call to linux_find_memory_regions_full.
254
255 2020-07-22 Kevin Buettner <kevinb@redhat.com>
256
257 * corelow.c (solist.h, unordered_map): Include.
258 (class core_target): Add field m_core_file_mappings and
259 method build_file_mappings.
260 (core_target::core_target): Call build_file_mappings.
261 (core_target::~core_target): Free memory associated with
262 m_core_file_mappings.
263 (core_target::build_file_mappings): New method.
264 (core_target::xfer_partial): Use m_core_file_mappings
265 for memory transfers.
266 * linux-tdep.c (linux_read_core_file_mappings): New
267 function.
268 (linux_core_info_proc_mappings): Rewrite to use
269 linux_read_core_file_mappings.
270 (linux_init_abi): Register linux_read_core_file_mappings.
271
272 2020-07-22 Kevin Buettner <kevinb@redhat.com>
273
274 * arch-utils.c (default_read_core_file_mappings): New function.
275 * arch-utils.c (default_read_core_file_mappings): Declare.
276 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
277 * gdbarch.h, gdbarch.c: Regenerate.
278
279 2020-07-22 Kevin Buettner <kevinb@redhat.com>
280
281 PR corefiles/25631
282 * corelow.c (core_target:xfer_partial): Revise
283 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
284 case after first checking the stratum beneath the core
285 target.
286 (has_all_memory): Return true.
287 * target.c (raw_memory_xfer_partial): Revise comment
288 regarding use of has_all_memory.
289
290 2020-07-22 Kevin Buettner <kevinb@redhat.com>
291
292 * exec.h (section_table_xfer_memory): Revise declaration,
293 replacing section name parameter with an optional callback
294 predicate.
295 * exec.c (section_table_xfer_memory): Likewise.
296 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
297 of section_table_xfer_memory.
298
299 2020-07-22 Tom Tromey <tromey@adacore.com>
300
301 * mi/mi-cmd-stack.c (list_args_or_locals): Use
302 lookup_symbol_search_name.
303
304 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
305
306 * python/py-registers.c (gdbpy_register_object_data_init): Remove
307 redundant local variable.
308 (gdbpy_get_register_descriptor): Extract descriptor vector as a
309 reference, not pointer, update code accordingly.
310
311 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
312 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
313
314 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
315 * jit.c (jit_breakpoint_re_set_internal): Use the
316 `skip_jit_symbol_lookup` field.
317
318 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
319 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
320
321 * jit.c (jit_read_descriptor): Define the descriptor address once,
322 use twice.
323 (jit_breakpoint_deleted): Move the declaration of the loop variable
324 `iter` into the loop header.
325 (jit_breakpoint_re_set_internal): Move the declaration of the local
326 variable `objf_data` to the first point of definition.
327 (jit_event_handler): Move the declaration of local variables
328 `code_entry`, `entry_addr`, and `objf` to their first point of use.
329 Rename `objf` to `jited`.
330
331 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
332
333 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
334 Remove.
335 * jit.c (get_jiter_objfile_data): Update.
336
337 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
338 Simon Marchi <simon.marchi@polymtl.ca>
339
340 * jit.c (struct jit_program_space_data): Remove.
341 (jit_program_space_key): Remove.
342 (jiter_objfile_data::~jiter_objfile_data): Remove program space
343 stuff.
344 (get_jit_program_space_data): Remove.
345 (jit_breakpoint_deleted): Iterate on all of the program space's
346 objfiles.
347 (jit_inferior_init): Likewise.
348 (jit_breakpoint_re_set_internal): Likewise. Also change return
349 type to void.
350 (jit_breakpoint_re_set): Pass current_program_space to
351 jit_breakpoint_re_set_internal.
352
353 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
354
355 * jit.h (struct jiter_objfile_data) <cached_code_address,
356 jit_breakpoint>: Move to here from ...
357 * jit.c (jit_program_space_data): ... here.
358 (jiter_objfile_data::~jiter_objfile_data): Update.
359 (jit_breakpoint_deleted): Update.
360 (jit_breakpoint_re_set_internal): Update.
361
362 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
363
364 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
365 checks.
366 (jit_read_descriptor): Remove NULL check.
367 (jit_event_handler): Add an assertion.
368
369 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * jit.h (struct jit_objfile_data): Split into...
372 (struct jiter_objfile_data): ... this ...
373 (struct jited_objfile_data): ... and this.
374 * objfiles.h (struct objfile) <jit_data>: Remove.
375 <jiter_data, jited_data>: New fields.
376 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
377 (jiter_objfile_data::~jiter_objfile_data): ... this.
378 (get_jit_objfile_data): Rename to ...
379 (get_jiter_objfile_data): ... this.
380 (add_objfile_entry): Update.
381 (jit_read_descriptor): Use get_jiter_objfile_data.
382 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
383 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
384 (jit_inferior_exit_hook): Use objfile's jited_data field.
385
386 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
387
388 * jit.h: Forward-declare `struct minimal_symbol`.
389 (struct jit_objfile_data): Migrate to here from jit.c; also add a
390 constructor, destructor, and an objfile* field.
391 * jit.c (jit_objfile_data): Remove.
392 (struct jit_objfile_data): Migrate from here to jit.h.
393 (jit_objfile_data::~jit_objfile_data): New destructor
394 implementation with code moved from free_objfile_data.
395 (free_objfile_data): Delete.
396 (get_jit_objfile_data): Update to use the jit_data field of objfile.
397 (jit_find_objf_with_entry_addr): Ditto.
398 (jit_inferior_exit_hook): Ditto.
399 (_initialize_jit): Remove the call to
400 register_objfile_data_with_cleanup.
401 * objfiles.h (struct objfile) <jit_data>: New field.
402
403 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
404
405 * jit.h: Forward-declare `struct objfile`.
406 (jit_event_handler): Add a second parameter, the JITer objfile.
407 * jit.c (jit_read_descriptor): Change the signature to take the
408 JITer objfile as an argument instead of the jit_program_space_data.
409 (jit_inferior_init): Update the call to jit_read_descriptor.
410 (jit_event_handler): Use the new JITer objfile argument when calling
411 jit_read_descriptor.
412 * breakpoint.c (handle_jit_event): Update the call to
413 jit_event_handler to pass the JITer objfile.
414
415 2020-07-21 John Baldwin <jhb@FreeBSD.org>
416
417 * gdbarch.c: Regenerate.
418 * gdbarch.h: Regenerate.
419 * gdbarch.sh (handle_segmentation_fault): Remove method.
420 * infrun.c (handle_segmentation_fault): Remove.
421 (print_signal_received_reason): Remove call to
422 handle_segmentation_fault.
423
424 2020-07-21 John Baldwin <jhb@FreeBSD.org>
425
426 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
427 Rename to sparc64_linux_report_signal_info and add siggnal
428 argument.
429 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
430 instead of sparc64_linux_handle_segmentation_fault.
431
432 2020-07-21 John Baldwin <jhb@FreeBSD.org>
433
434 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
435 i386_linux_report_signal_info instead of
436 i386_linux_handle_segmentation_fault.
437 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
438 to i386_linux_report_signal_info and add siggnal argument.
439 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
440 of i386_linux_handle_segmentation_fault.
441 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
442 to i386_linux_report_signal_info and add siggnal argument.
443
444 2020-07-21 John Baldwin <jhb@FreeBSD.org>
445
446 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
447 hook if present.
448
449 2020-07-21 John Baldwin <jhb@FreeBSD.org>
450
451 * gdbarch.c: Regenerate.
452 * gdbarch.h: Regenerate.
453 * gdbarch.sh (report_signal_info): New method.
454 * infrun.c (print_signal_received_reason): Invoke gdbarch
455 report_signal_info hook if present.
456
457 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
458
459 * python/py-registers.c : Add 'unordered_map' include.
460 (gdbpy_new_reggroup): Renamed to...
461 (gdbpy_get_reggroup): ...this. Update to only create register
462 group descriptors when needed.
463 (gdbpy_reggroup_iter_next): Update.
464
465 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
466
467 * python/py-registers.c (gdbpy_register_object_data): New static
468 global.
469 (gdbpy_register_object_data_init): New function.
470 (gdbpy_new_register_descriptor): Renamed to...
471 (gdbpy_get_register_descriptor): ...this, and update to reuse
472 existing register descriptors where possible.
473 (gdbpy_register_descriptor_iter_next): Update.
474 (gdbpy_initialize_registers): Register new gdbarch data.
475
476 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
477
478 * linux-nat.c (stopped_pids): Make static.
479
480 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
481
482 PR ada/26235
483 * gdbtypes.c (ada_discrete_type_low_bound,
484 ada_discrete_type_high_bound): Handle undefined bounds.
485
486 2020-07-21 Kamil Rytarowski <n54@gmx.com>
487
488 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
489 declaration.
490 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
491 function.
492
493 2020-07-20 John Baldwin <jhb@FreeBSD.org>
494
495 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
496 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
497 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
498 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
499 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
500 method.
501
502 2020-07-20 Ludovic Courtès <ludo@gnu.org>
503
504 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
505 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
506 which are deprecated in Guile 3.0.
507 * configure.ac (try_guile_versions): Add "guile-3.0".
508 * configure (try_guile_versions): Regenerate.
509 * NEWS: Update entry.
510
511 2020-07-20 Ludovic Courtès <ludo@gnu.org>
512 Doug Evans <dje@google.com>
513
514 PR gdb/21104
515 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
516 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
517 USING_GUILE_BEFORE_2_2.
518 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
519 Change type to 'scm_t_port_type *'.
520 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
521 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
522 parameter and honor it. Update callers.
523 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
524 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
525 functions.
526 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
527 USING_GUILE_BEFORE_2_2.
528 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
529 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
530 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
531 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
532 and 'SCM_PORT_TYPE'.
533 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
534 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
535 (gdbscm_memory_port_read, gdbscm_memory_port_write)
536 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
537 [!USING_GUILE_BEFORE_2_2]: New functions.
538 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
539 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
540 'gdbscm_memory_port_read'.
541 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
542 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
543 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
544 function.
545 (ioscm_init_memory_port): Remove.
546 (ioscm_init_memory_port_stream): New function
547 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
548 function.
549 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
550 Return scm_from_uint (0).
551 (gdbscm_set_memory_port_read_buffer_size_x)
552 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
553 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
554 Return scm_from_uint (0).
555 (gdbscm_set_memory_port_write_buffer_size_x)
556 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
557 * configure.ac (try_guile_versions): Add "guile-2.2".
558 * configure: Regenerate.
559 * NEWS: Add entry.
560
561 2020-07-18 Tom Tromey <tom@tromey.com>
562
563 * linux-nat.c (linux_multi_process): Remove.
564 (linux_nat_target::supports_multi_process): Return true.
565
566 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
567
568 * arch/riscv.c (riscv_tdesc_cache): Change map type.
569 (riscv_lookup_target_description): Return pointer out of
570 unique_ptr.
571 * target-descriptions.c (allocate_target_description): Add
572 comment.
573 (target_desc_deleter::operator()): Likewise.
574 * target-descriptions.h (struct target_desc_deleter): Moved to
575 gdbsupport/tdesc.h.
576 (target_desc_up): Likewise.
577
578 2020-07-17 Tom Tromey <tromey@adacore.com>
579
580 * linux-nat.c (linux_nat_target::supports_non_stop)
581 (linux_nat_target::always_non_stop_p): Use "true".
582 (linux_nat_target::supports_disable_randomization): Use "true" and
583 "false".
584
585 2020-07-16 Caroline Tice <cmtice@google.com>
586
587 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
588 (RNGLIST_HEADER_SIZE64): New constant definition.
589 (struct dwop_section_names): Add rnglists_dwo.
590 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
591 (struct loclist_header): Rename to 'loclists_rnglists_header'.
592 (struct dwo_sections): Add rnglists field.
593 (read_attribut_reprocess): Add tag parameter.
594 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
595 (cu_debug_rnglists_section): New function (decl & definition).
596 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
597 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
598 die whose range is being checked; get rnglist section from
599 cu_debug_rnglists_section, to get from either objfile or dwo file as
600 appropriate. Add cases for DW_RLE_base_addressx,
601 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
602 the base address to DW_RLE_offset_pairs (not to all ranges), moving
603 test inside if-condition and updating complaint message.
604 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
605 dwarf2_rnglists_process.
606 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
607 dwarf2_ranges_process.
608 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
609 need_ranges_base and update comment appropriately. Also pass die tag
610 to dwarf2_ranges_read.
611 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
612 need_ranges_base and update comment appropriately. Also pass die tag
613 to dwarf2_ranges_process.
614 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
615 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
616 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
617 need_ranges_base and update comment appropriately. Also pass die tag
618 to read_attribute_reprocess and dwarf2_ranges_read.
619 (read_loclist_header): Rename function to read_loclists_rnglists_header,
620 and update function comment appropriately.
621 (read_loclist_index): Call read_loclists_rnglists_header instead of
622 read_loclist_header.
623 (read_rnglist_index): New function.
624 (read_attribute_reprocess): Add tag parameter. Add code for
625 DW_FORM_rnglistx, passing tag to read_rnglist_index.
626 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
627
628 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
629
630 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
631 being resolved.
632
633 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
634
635 * arch-utils.c (show_architecture): Update formatting of messages.
636
637 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
638
639 * gdbtypes.h (struct type) <bounds>: Handle array and string
640 types.
641 * ada-lang.c (assign_aggregate): Use type::bounds on
642 array/string type.
643 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
644 * c-varobj.c (c_number_of_children): Likewise.
645 (c_describe_child): Likewise.
646 * eval.c (evaluate_subexp_for_sizeof): Likewise.
647 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
648 (f_type_print_base): Likewise.
649 * f-valprint.c (f77_array_offset_tbl): Likewise.
650 (f77_get_upperbound): Likewise.
651 (f77_print_array_1): Likewise.
652 * guile/scm-type.c (gdbscm_type_range): Likewise.
653 * m2-typeprint.c (m2_array): Likewise.
654 (m2_is_long_set_of_type): Likewise.
655 * m2-valprint.c (get_long_set_bounds): Likewise.
656 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
657 * python/py-type.c (typy_range): Likewise.
658 * rust-lang.c (rust_internal_print_type): Likewise.
659 * type-stack.c (type_stack::follow_types): Likewise.
660 * valarith.c (value_subscripted_rvalue): Likewise.
661 * valops.c (value_cast): Likewise.
662
663 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
664
665 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
666 callers to use the equivalent accessor methods.
667
668 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
669
670 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
671 (struct type) <bit_stride>: New method.
672 (TYPE_BIT_STRIDE): Remove.
673 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
674
675 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
676
677 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
678 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
679 callers to use the equivalent accessor methods instead.
680
681 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
682
683 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
684 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
685 callers to use the equivalent accessor methods instead.
686
687 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
688
689 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
690 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
691 to use dynamic_prop::kind.
692
693 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
694
695 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
696 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
697 to get the bound property's kind and check against
698 PROP_UNDEFINED.
699
700 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
701
702 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
703 all callers to use type::range_bounds followed by
704 dynamic_prop::{low,high}.
705
706 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
707
708 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
709 const_val, set_const_val, baton, set_locexpr, set_loclist,
710 set_addr_offset, variant_parts, set_variant_parts,
711 original_type, set_original_type>: New methods.
712 <kind>: Rename to...
713 <m_kind>: ... this. Update all users to use the new methods
714 instead.
715 <data>: Rename to...
716 <m_data>: ... this. Update all users to use the new methods
717 instead.
718
719 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
720
721 * gdbtypes.c (get_discrete_bounds): Return failure if
722 the range type's bounds are not both defined and constant
723 values.
724 (get_array_bounds): Update comment. Remove undefined bound check.
725
726 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
727
728 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
729 the type::bounds method directly.
730
731 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
732
733 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
734 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
735 are used to set the range type's bounds to use set_bounds.
736
737 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
738
739 * exec.c (_initialize_exec): Update exec-file-mismatch help.
740
741 2020-07-10 Pedro Alves <pedro@palves.net>
742
743 * gdbthread.h (inferior_ref): Define.
744 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
745 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
746 * thread.c
747 (scoped_restore_current_thread::restore):
748 Adjust to gdb::ref_ptr.
749 (scoped_restore_current_thread::~scoped_restore_current_thread):
750 Remove manual decref handling.
751 (scoped_restore_current_thread::scoped_restore_current_thread):
752 Adjust to use
753 inferior_ref::new_reference/thread_info_ref::new_reference.
754 Incref the thread before calling get_frame_id instead of after.
755 Let TARGET_CLOSE_ERROR propagate.
756
757 2020-07-10 Pedro Alves <pedro@palves.net>
758
759 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
760 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
761 NOT_AVAILABLE_ERROR.
762 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
763 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
764
765 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
766 Pedro Alves <pedro@palves.net>
767
768 PR gdb/26199
769 * infrun.c (threads_are_resumed_pending_p): Delete.
770 (do_target_wait): Remove threads_are_executing and
771 threads_are_resumed_pending_p checks from the inferior_matches
772 lambda. Update comments.
773
774 2020-07-10 Pedro Alves <pedro@palves.net>
775
776 PR gdb/26199
777 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
778 executing threads.
779
780 2020-07-10 Pedro Alves <pedro@palves.net>
781
782 PR gdb/26199
783 * infrun.c (handle_no_resumed): Handle multiple targets.
784
785 2020-07-10 Pedro Alves <pedro@palves.net>
786
787 PR gdb/26199
788 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
789 target_is_async_p.
790
791 2020-07-10 Pedro Alves <pedro@palves.net>
792
793 PR gdb/26199
794 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
795 threads, not all threads.
796
797 2020-07-10 Pedro Alves <pedro@palves.net>
798
799 PR gdb/26199
800 * remote.c (remote_target::open_1): Pass remote target pointer as
801 data to create_async_event_handler.
802 (remote_async_inferior_event_handler): Mark async event handler
803 before returning if the remote target still has either pending
804 events or unacknowledged notifications.
805
806 2020-07-10 John Baldwin <jhb@FreeBSD.org>
807
808 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
809 declaration.
810 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
811 function.
812
813 2020-07-09 John Baldwin <jhb@FreeBSD.org>
814
815 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
816 inferior_ptid.
817
818 2020-07-09 John Baldwin <jhb@FreeBSD.org>
819
820 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
821 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
822 AT_FREEBSD_PS_STRINGS.
823
824 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
825
826 * auto-load.c (auto_load_objfile_script_1): Convert drive part
827 of debugfile path on Windows.
828
829 2020-07-08 John Baldwin <jhb@FreeBSD.org>
830
831 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
832 argument to 'data'.
833
834 2020-07-08 Tom Tromey <tromey@adacore.com>
835
836 * ada-lang.c (ada_exception_message_1): Use read_memory.
837
838 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
839
840 PR python/22748
841 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
842 special handling for inline frames.
843 * findvar.c (value_of_register_lazy): Skip inline frames when
844 creating lazy register values.
845 * frame.c (frame_id_computed_p): Delete definition.
846 * frame.h (frame_id_computed_p): Delete declaration.
847
848 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
849
850 * NEWS: Mention additions to Python API.
851 * python/py-arch.c (archpy_register_groups): New function.
852 (arch_object_methods): Add 'register_groups' method.
853 * python/py-registers.c (reggroup_iterator_object): New struct.
854 (reggroup_object): New struct.
855 (gdbpy_new_reggroup): New function.
856 (gdbpy_reggroup_to_string): New function.
857 (gdbpy_reggroup_name): New function.
858 (gdbpy_reggroup_iter): New function.
859 (gdbpy_reggroup_iter_next): New function.
860 (gdbpy_new_reggroup_iterator): New function
861 (gdbpy_initialize_registers): Register new types.
862 (reggroup_iterator_object_type): Define new Python type.
863 (gdbpy_reggroup_getset): New static global.
864 (reggroup_object_type): Define new Python type.
865 * python/python-internal.h
866
867 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
870 * python/py-arch.c (archpy_registers): New function.
871 (arch_object_methods): Add 'registers' method.
872 * python/py-registers.c: New file.
873 * python/python-internal.h
874 (gdbpy_new_register_descriptor_iterator): Declare.
875 (gdbpy_initialize_registers): Declare.
876 * python/python.c (do_start_initialization): Call
877 gdbpy_initialize_registers.
878 * NEWS: Mention additions to the Python API.
879
880 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
881
882 * NEWS: Mention new Python API method.
883 * python/py-unwind.c (pending_framepy_architecture): New function.
884 (pending_frame_object_methods): Add architecture method.
885
886 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
887
888 * gdbarch.c: Regenerate.
889 * gdbarch.h: Regenerate.
890 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
891 (gdbarch_data): Use internal_error for the case where
892 deprecated_set_gdbarch_data was originally needed.
893 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
894 and use passed in obstack.
895 (libunwind_frame_set_descr): Should no longer get back NULL from
896 gdbarch_data.
897 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
898 type.
899 * user-regs.c (user_regs_init): Update parameters, and use passed
900 in obstack.
901 (user_reg_add): Should no longer get back NULL from gdbarch_data.
902 (_initialize_user_regs): Register as a pre-init gdbarch data type.
903
904 2020-07-06 Tom de Vries <tdevries@suse.de>
905
906 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
907 End-Of-Sequence in lte_is_less_than.
908 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
909 "gdb: Don't reorder line table entries too much when sorting".
910
911 2020-07-06 Tom de Vries <tdevries@suse.de>
912
913 PR tui/26205
914 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
915
916 2020-07-05 Tom de Vries <tdevries@suse.de>
917
918 PR build/26187
919 * inferior.h (struct infcall_suspend_state_deleter): If available, use
920 std::uncaught_exceptions instead of deprecated
921 std::uncaught_exception.
922
923 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
924
925 * macroexp.h (macro_stringify): Return
926 gdb::unique_xmalloc_ptr<char>.
927 * macroexp.c (macro_stringify): Likewise.
928 * macrotab.c (fixup_definition): Update.
929
930 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
931
932 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
933 (lex_one_token): Update.
934 * macroexp.c (struct macro_buffer) <release>: Return
935 gdb::unique_xmalloc_ptr<char>.
936 (macro_stringify): Update.
937 (macro_expand): Update.
938 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
939 * macroexp.h (macro_expand_next): Likewise.
940
941 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
942
943 * macroexp.h (macro_lookup_ftype): Remove.
944 (macro_expand, macro_expand_once, macro_expand_next): Remove
945 lookup function parameters, add scope parameter.
946 * macroexp.c (scan, substitute_args, expand, maybe_expand,
947 macro_expand, macro_expand_once, macro_expand_next): Likewise.
948 * macroscope.h (standard_macro_lookup): Change parameter type
949 to macro_scope.
950 * macroscope.c (standard_macro_lookup): Likewise.
951 * c-exp.y (lex_one_token): Update.
952 * macrocmd.c (macro_expand_command): Likewise.
953 (macro_expand_once_command): Likewise.
954
955 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
956
957 * inf-loop.c (inferior_event_handler): Remove client_data param.
958 * inf-loop.h (inferior_event_handler): Likewise.
959 * infcmd.c (step_1): Adjust.
960 * infrun.c (proceed): Adjust.
961 (fetch_inferior_event): Remove client_data param.
962 (infrun_async_inferior_event_handler): Adjust.
963 * infrun.h (fetch_inferior_event): Remove `void *` param.
964 * linux-nat.c (handle_target_event): Adjust.
965 * record-btrace.c (record_btrace_handle_async_inferior_event):
966 Adjust.
967 * record-full.c (record_full_async_inferior_event_handler):
968 Adjust.
969 * remote.c (remote_async_inferior_event_handler): Adjust.
970
971 2020-07-01 Tom Tromey <tom@tromey.com>
972
973 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
974 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
975
976 2020-07-01 Tom Tromey <tom@tromey.com>
977
978 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
979 tui_gen_win_info.
980 (tui_win_info::make_window): Merge with
981 tui_gen_win_info::make_window.
982 (tui_win_info::make_visible): Move from tui_gen_win_info.
983 * tui/tui-win.c (tui_win_info::max_width): Move from
984 tui_gen_win_info.
985 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
986 type.
987 <window_factory>: Likewise.
988 * tui/tui-layout.c (tui_win_info::resize): Move from
989 tui_gen_win_info.
990 (make_standard_window): Change return type.
991 (get_locator_window, tui_get_window_by_name): Likewise.
992 (tui_layout_window::apply): Remove a cast.
993 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
994 (struct tui_win_info): Merge with tui_gen_win_info.
995 (struct tui_gen_win_info): Remove.
996
997 2020-07-01 Tom Tromey <tom@tromey.com>
998
999 * tui/tui-stack.h (struct tui_locator_window): Derive from
1000 tui_win_info.
1001 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1002 <can_box>: New method.
1003
1004 2020-07-01 Tom Tromey <tom@tromey.com>
1005
1006 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1007
1008 2020-07-01 Tom Tromey <tom@tromey.com>
1009
1010 * tui/tui-regs.c (tui_data_window::display_registers_from)
1011 (tui_data_window::display_registers_from)
1012 (tui_data_window::first_data_item_displayed)
1013 (tui_data_window::delete_data_content_windows): Update.
1014 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1015 Remove.
1016 (tui_data_window::check_register_values): Update.
1017 (tui_data_item_window::rerender): Add parameters. Update.
1018 (tui_data_item_window::refresh_window): Remove.
1019 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1020 virtual.
1021 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1022 tui_gen_win_info.
1023 <refresh_window, max_height, min_height>: Remove.
1024 <rerender>: Add parameters.
1025 <x, y, visible>: New members.
1026 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1027 <m_item_width>: New member.
1028
1029 2020-07-01 Tom Tromey <tom@tromey.com>
1030
1031 * tui/tui-regs.c (tui_data_window::show_register_group)
1032 (tui_data_window::check_register_values): Update.
1033 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1034 from item_no.
1035
1036 2020-07-01 Tom Tromey <tom@tromey.com>
1037
1038 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1039 useless "if".
1040
1041 2020-07-01 Tom Tromey <tom@tromey.com>
1042
1043 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1044 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1045
1046 2020-07-01 Tom Tromey <tom@tromey.com>
1047
1048 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1049 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1050 (struct tui_line_or_address): Move from tui-data.h.
1051 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1052 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1053 (tui_cmd_window, tui_source_window_base, tui_source_window)
1054 (tui_disasm_window): Don't declare.
1055 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1056 to tui-winsource.h.
1057 (SINGLE_KEY): Move to tui-stack.c.
1058
1059 2020-07-01 Tom Tromey <tom@tromey.com>
1060
1061 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1062 std::string.
1063 * tui/tui-regs.c (class tab_expansion_file): New.
1064 (tab_expansion_file::write): New method.
1065 (tui_register_format): Change return type. Use
1066 tab_expansion_file.
1067 (tui_get_register, tui_data_window::display_registers_from)
1068 (tui_data_item_window::rerender): Update.
1069 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1070 * tui/tui-io.c (tui_expand_tabs): Remove.
1071
1072 2020-07-01 Tom Tromey <tom@tromey.com>
1073
1074 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1075
1076 2020-07-01 Fangrui Song <maskray@google.com>
1077
1078 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1079
1080 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1081
1082 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1083 forms for DW_AT_associated and DW_AT_allocated attributes,
1084 which is already checked in function attr_to_dynamic_prop.
1085
1086 2020-06-30 Tom Tromey <tromey@adacore.com>
1087
1088 * dwarf2/read.c (quirk_rust_enum): Correctly call
1089 alloc_rust_variant for default-less enum.
1090
1091 2020-06-30 Tom Tromey <tromey@adacore.com>
1092
1093 PR build/26183:
1094 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1095 gdb::to_string.
1096
1097 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1098
1099 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1100 * gdbarch.h: Re-generate.
1101
1102 2020-06-28 Tom Tromey <tom@tromey.com>
1103
1104 * command.h (cmd_types): Remove.
1105 (cmd_type): Don't declare.
1106 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1107 typedef.
1108 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1109 * cli/cli-decode.c (cmd_type): Remove.
1110
1111 2020-06-27 Pedro Alves <palves@redhat.com>
1112
1113 * fork-child.c (prefork_hook): Adjust.
1114 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1115 Delete.
1116 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1117 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1118 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1119 Remove declarations.
1120 (struct inferior) <set_tty, tty>: New methods.
1121 (struct inferior) <terminal>: Rename to ...
1122 (struct inferior) <m_terminal>: ... this and make private.
1123 * main.c (captured_main_1): Adjust.
1124 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1125 (mi_cmd_inferior_tty_show): Adjust.
1126 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1127 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1128
1129 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1130
1131 * configure.ac: Add --enable-libctf: handle --disable-static
1132 properly.
1133 * acinclude.m4: sinclude ../config/enable.m4.
1134 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1135 (LIBCTF): Substitute in.
1136 (CTF_DEPS): New, likewise.
1137 (CLIBS): libctf needs symbols from libbfd: move earlier.
1138 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1139 flags.
1140 * ctfread.c: Surround in ENABLE_LIBCTF.
1141 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1142 * configure: Regenerate.
1143 * config.in: Likewise.
1144
1145 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1146
1147 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1148
1149 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1150
1151 * inferior.h (struct inferior) <terminal>: Change type to
1152 gdb::unique_xmalloc_ptr<char>.
1153 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1154 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1155 field, adjust to unique pointer.
1156 (get_inferior_io_terminal): Adjust to unique pointer.
1157
1158 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1159
1160 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1161 registers, not just the known core set of registers.
1162
1163 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1164
1165 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1166 fflags, frm, and fcsr registers.
1167 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1168 restore groups.
1169 (riscv_tdesc_unknown_reg): New function.
1170 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1171 tdesc_use_registers.
1172 * riscv-tdep.h (struct gdbarch_tdep): Add
1173 unknown_csrs_first_regnum, unknown_csrs_count,
1174 duplicate_fflags_regnum, duplicate_frm_regnum, and
1175 duplicate_fcsr_regnum fields.
1176
1177 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1178
1179 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1180 callback, use the callback (when not null) to help number unknown
1181 registers.
1182 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1183 (tdesc_use_registers): Add extra parameter to declaration.
1184
1185 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1186
1187 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1188 in the file.
1189 (class riscv_pending_register_alias): Likewise.
1190 (riscv_register_feature::register_info): Change 'required_p' field
1191 to 'required', and change its type. Add 'check' member function.
1192 (riscv_register_feature::register_info::check): Define new member
1193 function.
1194 (riscv_xreg_feature): Change initialisation of 'required' field.
1195 (riscv_freg_feature): Likewise.
1196 (riscv_virtual_feature): Likewise.
1197 (riscv_csr_feature): Likewise.
1198 (riscv_check_tdesc_feature): Take extra parameter, the csr
1199 tdesc_feature, rewrite the function to use the new
1200 riscv_register_feature::register_info::check function.
1201 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1202
1203 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * features/Makefile: Remove all references to the deleted files
1206 below.
1207 * features/riscv/32bit-csr.c: Deleted.
1208 * features/riscv/32bit-csr.xml: Deleted.
1209 * features/riscv/64bit-csr.c: Deleted.
1210 * features/riscv/64bit-csr.xml: Deleted.
1211 * features/riscv/rebuild-csr-xml.sh: Deleted.
1212
1213 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1214
1215 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1216 whitespace error for declaration of names member variable.
1217 (struct riscv_register_feature): Add new prefer_first_name member
1218 variable, and fix whitespace error in declaration of registers.
1219 (riscv_xreg_feature): Initialize prefer_first_name field.
1220 (riscv_freg_feature): Likewise.
1221 (riscv_virtual_feature): Likewise.
1222 (riscv_csr_feature): Likewise.
1223 (riscv_register_name): Expand on comments. Remove register name
1224 modifications for CSR and virtual registers.
1225
1226 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1227
1228 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1229 errors.
1230
1231 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1232
1233 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1234 riscv-opc.h.
1235 (class riscv_pending_register_alias): New class.
1236 (riscv_check_tdesc_feature): Take vector of pending aliases and
1237 populate it as appropriate.
1238 (riscv_setup_register_aliases): Delete.
1239 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1240 to riscv_check_tdesc_feature in all cases. Use the vector to
1241 create the register aliases.
1242
1243 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1244
1245 * sol2-tdep.c (sol2_static_transform_name): Remove.
1246 (sol2_init_abi): Don't register it.
1247 * gdbarch.sh (static_transform_name): Remove.
1248 * gdbarch.c, gdbarch.h: Regenerate.
1249
1250 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1251 gdbarch_static_transform_name.
1252 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1253 * stabsread.c (define_symbol) <'X'>: Remove.
1254 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1255 handling.
1256 <'V'>: Likewise.
1257 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1258 <'S'>: Remove call to gdbarch_static_transform_name.
1259
1260 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1261
1262 * procfs.c (procfs_pre_trace): New function.
1263 (procfs_target::create_inferior): Pass it to fork_inferior.
1264
1265 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1266
1267 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1268 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1269 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1270 sol2-tdep.o, sparc-sol2-tdep.o.
1271 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1272 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1273 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1274 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1275
1276 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1277
1278 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1279 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1280 Call sol2_init_abi.
1281 Remove calls to set_gdbarch_skip_solib_resolver,
1282 set_gdbarch_core_pid_to_str.
1283 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1284 (i386_sol2_static_transform_name): Remove.
1285 (i386_sol2_init_abi): Call sol2_init_abi.
1286 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1287 set_gdbarch_static_transform_name,
1288 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1289 Use sol2_sigtramp_p.
1290 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1291 (sol2_sigtramp_p): New function.
1292 (sol2_static_transform_name): New function.
1293 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1294 (sol2_init_abi): New function.
1295 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1296 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1297 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1298 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1299 (sparc_sol2_static_transform_name): Remove.
1300 (sparc32_sol2_init_abi): Call sol2_init_abi.
1301 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1302 set_gdbarch_static_transform_name,
1303 set_gdbarch_skip_solib_resolver,
1304 set_gdbarch_core_pid_to_str.
1305 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1306 (sparc_sol2_static_transform_name): Remove
1307 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1308 call sol2_sigtramp_p.
1309 (sparc64_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, set_gdbarch_core_pid_to_str.
1313
1314 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1315
1316 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1317 * exec.c (validate_exec_file): If from_tty, set both
1318 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1319 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1320 and from_tty, unconditionally ask a confirmation.
1321
1322 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1323
1324 * target-descriptions.c (tdesc_architecture_name): Protect against
1325 NULL pointer dereference.
1326 (maint_print_xml_tdesc_cmd): New function.
1327 (_initialize_target_descriptions): Register new 'maint print
1328 xml-tdesc' command and give it the filename completer.
1329 * NEWS: Mention new 'maint print xml-tdesc' command.
1330
1331 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1332
1333 * target-descriptions.c (class tdesc_compatible_info): New class.
1334 (struct target_desc): Change type of compatible vector.
1335 (tdesc_compatible_p): Update for change in type of
1336 target_desc::compatible.
1337 (tdesc_compatible_info_list): New function.
1338 (tdesc_compatible_info_arch_name): New function.
1339 (tdesc_add_compatible): Update for change in type of
1340 target_desc::compatible.
1341 (print_c_tdesc::visit_pre): Likewise.
1342
1343 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1344
1345 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1346 whitespace to underscore.
1347 (maint_print_c_tdesc_cmd): Use fake filename for target
1348 descriptions that came from the target.
1349 (_initialize_target_descriptions): Add filename command completion
1350 for 'maint print c-tdesc'.
1351
1352 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1353
1354 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1355 lines.
1356
1357 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1358
1359 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1360 lines.
1361 (dwarf2_find_location_expression): Likewise.
1362 (call_site_parameter_matches): Likewise.
1363 (dwarf2_compile_expr_to_ax): Likewise.
1364 (disassemble_dwarf_expression): Likewise.
1365 (loclist_describe_location): Likewise.
1366
1367 2020-06-23 Pedro Alves <palves@redhat.com>
1368
1369 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1370 progspace-and-thread.h. Include scoped-mock-context.h instead.
1371 (register_to_value_test): Use scoped_mock_context.
1372 * regcache.c: Include "scoped-mock-context.h".
1373 (cooked_read_test): Don't error out if a target is already pushed.
1374 Use scoped_mock_context. Adjust.
1375 * scoped-mock-context.h: New file.
1376
1377 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1378
1379 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1380 initializer.
1381 (ada_language::is_string_type_p): New member function.
1382 * c-lang.c (c_language_data): Delete la_is_string_type_p
1383 initializer.
1384 (cplus_language_data): Likewise.
1385 (asm_language_data): Likewise.
1386 (minimal_language_data): Likewise.
1387 * d-lang.c (d_language_data): Likewise.
1388 * f-lang.c (f_is_string_type_p): Delete function, implementation
1389 moved to f_language::is_string_type_p.
1390 (f_language_data): Delete la_is_string_type_p initializer.
1391 (f_language::is_string_type_p): New member function,
1392 implementation from f_is_string_type_p.
1393 * go-lang.c (go_is_string_type_p): Delete function, implementation
1394 moved to go_language::is_string_type_p.
1395 (go_language_data): Delete la_is_string_type_p initializer.
1396 (go_language::is_string_type_p): New member function,
1397 implementation from go_is_string_type_p.
1398 * language.c (language_defn::is_string_type_p): Define new member
1399 function.
1400 (default_is_string_type_p): Make static, add comment copied from
1401 header file.
1402 (unknown_language_data): Delete la_is_string_type_p initializer.
1403 (unknown_language::is_string_type_p): New member function.
1404 (auto_language_data): Delete la_is_string_type_p initializer.
1405 (auto_language::is_string_type_p): New member function.
1406 * language.h (language_data): Delete la_is_string_type_p field.
1407 (language_defn::is_string_type_p): Declare new function.
1408 (default_is_string_type_p): Delete desclaration, move comment to
1409 definition.
1410 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1411 moved to m2_language::is_string_type_p.
1412 (m2_language_data): Delete la_is_string_type_p initializer.
1413 (m2_language::is_string_type_p): New member function,
1414 implementation from m2_is_string_type_p.
1415 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1416 initializer.
1417 * opencl-lang.c (opencl_language_data): Likewise.
1418 * p-lang.c (pascal_is_string_type_p): Delete function,
1419 implementation moved to pascal_language::is_string_type_p.
1420 (pascal_language_data): Delete la_is_string_type_p initializer.
1421 (pascal_language::is_string_type_p): New member function,
1422 implementation from pascal_is_string_type_p.
1423 * rust-lang.c (rust_is_string_type_p): Delete function,
1424 implementation moved to rust_language::is_string_type_p.
1425 (rust_language_data): Delete la_is_string_type_p initializer.
1426 (rust_language::is_string_type_p): New member function,
1427 implementation from rust_is_string_type_p.
1428 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1429 is_string_type_p.
1430
1431 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * ada-lang.c (ada_language_data): Delete la_print_typedef
1434 initializer.
1435 (ada_language::print_typedef): New member function.
1436 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1437 (cplus_language_data): Likewise.
1438 (asm_language_data): Likewise.
1439 (minimal_language_data): Likewise.
1440 * d-lang.c (d_language_data): Likewise.
1441 * f-lang.c (f_language_data): Likewise.
1442 (f_language::print_typedef): New member function.
1443 * go-lang.c (go_language_data): Delete la_print_typedef
1444 initializer.
1445 * language.c (language_defn::print_typedef): Define member
1446 function.
1447 (unknown_language_data): Delete la_print_typedef initializer.
1448 (unknown_language::print_typedef): New member function.
1449 (auto_language_data): Delete la_print_typedef initializer.
1450 (auto_language::print_typedef): New member function.
1451 * language.h (language_data): Delete la_print_typedef field.
1452 (language_defn::print_typedef): Declare new member function.
1453 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1454 (default_print_typedef): Delete declaration.
1455 * m2-lang.c (m2_language_data): Delete la_print_typedef
1456 initializer.
1457 (m2_language::print_typedef): New member function.
1458 * objc-lang.c (objc_language_data): Delete la_print_typedef
1459 initializer.
1460 * opencl-lang.c (opencl_language_data): Likewise.
1461 * p-lang.c (pascal_language_data): Likewise.
1462 (pascal_language::print_typedef): New member function.
1463 * rust-lang.c (rust_print_typedef): Delete function,
1464 implementation moved to rust_language::print_typedef.
1465 (rust_language): Delete la_print_typedef initializer.
1466 (rust_language::print_typedef): New member function,
1467 implementation from rust_print_typedef.
1468 * typeprint.c (default_print_typedef): Delete.
1469
1470 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1471
1472 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1473 (ada_language::printstr): New member function.
1474 * c-lang.c (c_language_data): Delete la_printstr initializer.
1475 (cplus_language_data): Likewise.
1476 (asm_language_data): Likewise.
1477 (minimal_language_data): Likewise.
1478 * d-lang.c (d_language_data): Likewise.
1479 * f-lang.c (f_printstr): Rename to f_language::printstr.
1480 (f_language_data): Delete la_printstr initializer.
1481 (f_language::printstr): New member function, implementation from
1482 f_printstr.
1483 * go-lang.c (go_language_data): Delete la_printstr initializer.
1484 * language.c (language_defn::printstr): Define new member
1485 function.
1486 (unk_lang_printstr): Delete.
1487 (unknown_language_data): Delete la_printstr initializer.
1488 (unknown_language::printstr): New member function.
1489 (auto_language_data): Delete la_printstr initializer.
1490 (auto_language::printstr): New member function.
1491 * language.h (language_data): Delete la_printstr field.
1492 (language_defn::printstr): Declare new member function.
1493 (LA_PRINT_STRING): Update call to printstr.
1494 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1495 (m2_language_data): Delete la_printstr initializer.
1496 (m2_language::printstr): New member function, implementation from
1497 m2_printstr.
1498 * objc-lang.c (objc_language_data): Delete la_printstr
1499 initializer.
1500 * opencl-lang.c (opencl_language_data): Likewise.
1501 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1502 (pascal_language_data): Delete la_printstr initializer.
1503 (pascal_language::printstr): New member function, implementation
1504 from pascal_printstr.
1505 * p-lang.h (pascal_printstr): Delete declaration.
1506 * rust-lang.c (rust_printstr): Update header comment.
1507 (rust_language_data): Delete la_printstr initializer.
1508 (rust_language::printstr): New member function.
1509
1510 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1511
1512 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1513 (ada_language::printchar): New member function.
1514 * c-lang.c (c_language_data): Delete la_printchar initializer.
1515 (cplus_language_data): Likewise.
1516 (asm_language_data): Likewise.
1517 (minimal_language_data): Likewise.
1518 * d-lang.c (d_language_data): Likewise.
1519 * f-lang.c (f_printchar): Rename to f_language::printchar.
1520 (f_language_data): Delete la_printchar initializer.
1521 (f_language::printchar): New member function, implementation from
1522 f_printchar.
1523 * go-lang.c (go_language_data): Delete la_printchar initializer.
1524 * language.c (unk_lang_printchar): Delete.
1525 (language_defn::printchar): Define new member function.
1526 (unknown_language_data): Delete la_printchar initializer.
1527 (unknown_language::printchar): New member function.
1528 (auto_language_data): Delete la_printchar initializer.
1529 (auto_language::printchar): New member function.
1530 * language.h (language_data): Delete la_printchar field.
1531 (language_defn::printchar): Declare new member function.
1532 (LA_PRINT_CHAR): Update call to printchar.
1533 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1534 (m2_language::printchar): New member function.
1535 * objc-lang.c (objc_language_data): Delete la_printchar
1536 initializer.
1537 * opencl-lang.c (opencl_language_data): Likewise.
1538 * p-lang.c (pascal_language_data): Delete la_printchar
1539 initializer.
1540 (pascal_language::printchar): New member function.
1541 * rust-lang.c (rust_printchar): Rename to
1542 rust_language::printchar.
1543 (rust_language_data): Delete la_printchar initializer.
1544 (rust_language::printchar): New member function, implementation
1545 from rust_printchar.
1546
1547 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1548
1549 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1550 (ada_language_data): Delete la_emitchar initializer.
1551 (ada_language::emitchar): New member function, implementation from
1552 emit_char.
1553 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1554 (cplus_language_data): Likewise.
1555 (asm_language_data): Likewise.
1556 (minimal_language_data): Likewise.
1557 * d-lang.c (d_language_data): Likewise.
1558 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1559 (f_language_data): Delete la_emitchar initializer.
1560 (f_language::emitchar): New member function, implementation from
1561 f_emit_char.
1562 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1563 * language.c (unk_lang_emit_char): Delete.
1564 (language_defn::emitchar): New member function definition.
1565 (unknown_language_data): Delete la_emitchar initializer.
1566 (unknown_language::emitchar): New member function.
1567 (auto_language_data): Delete la_emitchar initializer.
1568 (auto_language::emitchar): New member function.
1569 * language.h (language_data): Delete la_emitchar field.
1570 (language_defn::emitchar): New member field declaration.
1571 (LA_EMIT_CHAR): Update call to emitchar.
1572 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1573 (m2_language_data): Delete la_emitchar initializer.
1574 (m2_language::emitchar): New member function, implementation from
1575 m2_emit_char.
1576 * objc-lang.c (objc_language_data): Delete la_emitchar
1577 initializer.
1578 * opencl-lang.c (opencl_language_data): Likewise.
1579 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1580 (pascal_language_data): Delete la_emitchar initializer.
1581 (pascal_language::emitchar): New member function, implementation
1582 from pascal_emit_char.
1583 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1584 (rust_language_data): Delete la_emitchar initializer.
1585 (rust_language::emitchar): New member function, implementation
1586 from rust_emitchar.
1587
1588 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1589
1590 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1591 (ada_language_data): Delete la_post_parser initializer.
1592 (ada_language::post_parser): New member function.
1593 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1594 (cplus_language_data): Likewise.
1595 (asm_language_data): Likewise.
1596 (minimal_language_data): Likewise.
1597 * d-lang.c (d_language_data): Likewise.
1598 * f-lang.c (f_language_data): Likewise.
1599 * go-lang.c (go_language_data): Likewise.
1600 * language.c (unknown_language_data): Likewise.
1601 (auto_language_data): Likewise.
1602 * language.h (language_data): Delete la_post_parser field.
1603 (language_defn::post_parser): New member function.
1604 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1605 * objc-lang.c (objc_language_data): Likewise.
1606 * opencl-lang.c (opencl_language_data): Likewise.
1607 * p-lang.c (pascal_language_data): Likewise.
1608 * parse.c (parse_exp_in_context): Update call to post_parser.
1609 (null_post_parser): Delete definition.
1610 * parser-defs.h (null_post_parser): Delete declaration.
1611 * rust-lang.c (rust_language_data): Delete la_post_parser
1612 initializer.
1613
1614 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * ada-lang.c (parse): Rename to ada_language::parser.
1617 (ada_language_data): Delete la_parser initializer.
1618 (ada_language::parser): New member function, implementation from
1619 parse.
1620 * c-lang.c (c_language_data): Delete la_parser initializer.
1621 (cplus_language_data): Likewise.
1622 (asm_language_data): Likewise.
1623 (minimal_language_data): Likewise.
1624 * d-lang.c (d_language_data): Likewise.
1625 (d_language::parser): New member function.
1626 * f-lang.c (f_language_data): Delete la_parser initializer.
1627 (f_language::parser): New member function.
1628 * go-lang.c (go_language_data): Delete la_parser initializer.
1629 (go_language::parser): New member function.
1630 * language.c (unk_lang_parser): Delete.
1631 (language_defn::parser): Define new member function.
1632 (unknown_language_data): Delete la_parser initializer.
1633 (unknown_language::parser): New member function.
1634 (auto_language_data): Delete la_parser initializer.
1635 (auto_language::parser): New member function.
1636 * language.h (language_data): Delete la_parser field.
1637 (language_defn::parser): Declare new member function.
1638 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1639 (m2_language::parser): New member function.
1640 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1641 * opencl-lang.c (opencl_language_data): Likewise.
1642 * p-lang.c (pascal_language_data): Likewise.
1643 (pascal_language::parser): New member function.
1644 * parse.c (parse_exp_in_context): Update call to parser.
1645 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1646 (rust_language::parser): New member function.
1647
1648 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1649
1650 * top.c (print_gdb_configuration): Print --with-python-libdir
1651 configuration value.
1652
1653 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1654
1655 * NEWS: Mention change to the alias command.
1656
1657 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1658
1659 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1660 (alias_command_completer)
1661 (make_alias_options_def_group): New functions.
1662 (alias_opts, alias_option_defs): New struct and array.
1663 (alias_usage_error): Update usage.
1664 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1665 Use option framework.
1666 (_initialize_cli_cmds): Update alias command help.
1667 Update aliases command help.
1668 (show_user):
1669 Add NULL for new default_args lookup_cmd argument.
1670 (valid_command_p): Rename to validate_aliased_command.
1671 Add NULL for new default_args lookup_cmd argument. Verify that the
1672 aliased_command has no default args.
1673 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1674 (lookup_cmd_1, lookup_cmd): New argument default_args.
1675 (add_alias_cmd):
1676 Add NULL for new default_args lookup_cmd argument.
1677 (print_help_for_command): Show default args under the layout
1678 alias some_alias = some_aliased_cmd some_alias_default_arg.
1679 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1680 xfree default_args in destructor.
1681 * cli/cli-script.c (process_next_line, do_define_command):
1682 Add NULL for new default_args lookup_cmd argument.
1683 * command.h: Declare new default_args argument in lookup_cmd
1684 and lookup_cmd_1.
1685 * completer.c (complete_line_internal_1):
1686 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1687 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1688 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1689 Likewise.
1690 * infcmd.c (_initialize_infcmd): Likewise.
1691 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1692 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1693 * python/py-param.c (add_setshow_generic): Likewise.
1694 * remote.c (_initialize_remote): Likewise.
1695 * top.c (execute_command): Prepend default_args if command has some.
1696 (set_verbose):
1697 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1698 * tracepoint.c (validate_actionline, encode_actions_1):
1699 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1700
1701 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1702
1703 * jit.c (jit_read_descriptor): Use bool as the return type.
1704 (jit_breakpoint_re_set_internal): Use bool as the return type.
1705 Invert the return value logic; return true if the jit breakpoint
1706 has been successfully initialized.
1707 (jit_inferior_init): Update the call to
1708 jit_breakpoint_re_set_internal.
1709
1710 2020-06-22 Pedro Alves <palves@redhat.com>
1711
1712 PR gdb/25939
1713 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1714 Use the current inferior instead. Don't return
1715 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1716 wait again.
1717 * sol-thread.c (sol_thread_target::wait): Don't reference
1718 inferior_ptid.
1719 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1720 (sol_update_thread_list_callback): Use the current inferior's pid
1721 instead of inferior_ptid.
1722
1723 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1724
1725 * procfs.c: Cleanup many comments.
1726
1727 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1728 (AFTER_WATCHFLAG): Replace by value.
1729
1730 (MAIN_PROC_NAME_FORMAT): Inline ...
1731 (create_procinfo): ... here.
1732
1733 (procfs_debug_inferior): Remove SYS_exec handling.
1734 (syscall_is_exec): Likewise.
1735 (procfs_set_exec_trap): Likewise.
1736
1737 (syscall_is_lwp_exit): Inline in callers.
1738 (syscall_is_exit): Likewise.
1739 (syscall_is_exec): Likewise.
1740 (syscall_is_lwp_create): Likewise.
1741
1742 (invalidate_cache): Remove #if 0 code.
1743
1744 (make_signal_thread_runnable): Remove.
1745 (procfs_target::resume): Remove #if 0 code.
1746
1747 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1748
1749 PR gdb/25939
1750 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1751 call ...
1752 (procfs_target::create_inferior): ... here.
1753
1754 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1755
1756 * exec.c (validate_exec_file): Ensure the build-id is up to
1757 date by calling reopen_exec_file (that checks file timestamp
1758 to decide to re-read the file).
1759
1760 2020-06-18 Pedro Alves <palves@redhat.com>
1761
1762 PR gdb/25412
1763 * gdbthread.h (delete_thread, delete_thread_silent)
1764 (find_thread_ptid): Update comments.
1765 * thread.c (current_thread_): New global.
1766 (is_current_thread): Move higher, and reimplement.
1767 (inferior_thread): Reimplement.
1768 (set_thread_exited): Use bool. Add assertions.
1769 (add_thread_silent): Simplify thread-reuse handling by always
1770 calling delete_thread.
1771 (delete_thread): Remove intro comment.
1772 (find_thread_ptid): Skip exited threads.
1773 (switch_to_thread_no_regs): Write to current_thread_.
1774 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1775 INFERIOR_PTID. Clear current_thread_.
1776
1777 2020-06-18 Pedro Alves <palves@redhat.com>
1778
1779 * aix-thread.c (pd_update): Use switch_to_thread.
1780
1781 2020-06-18 Pedro Alves <palves@redhat.com>
1782
1783 * ravenscar-thread.c (ravenscar_thread_target): Update.
1784 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1785 (ravenscar_thread_target::add_active_thread): ... this. Don't
1786 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1787 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1788
1789 2020-06-18 Pedro Alves <palves@redhat.com>
1790
1791 * nat/windows-nat.c (current_windows_thread): Remove.
1792 * nat/windows-nat.h (current_windows_thread): Remove.
1793 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1794 Adjust.
1795 (display_selectors): Adjust to fetch the current
1796 windows_thread_info based on inferior_ptid.
1797 (fake_create_process): No longer write to current_windows_thread.
1798 (windows_nat_target::get_windows_debug_event):
1799 Don't set inferior_ptid or current_windows_thread.
1800 (windows_nat_target::wait): Adjust to not rely on
1801 current_windows_thread.
1802 (do_initial_windows_stuff): Now a method of windows_nat_target.
1803 Switch to the last_ptid thread.
1804 (windows_nat_target::attach): Adjust.
1805 (windows_nat_target::detach): Use switch_to_no_thread instead of
1806 writing to inferior_ptid directly.
1807 (windows_nat_target::create_inferior): Adjust.
1808
1809 2020-06-18 Pedro Alves <palves@redhat.com>
1810
1811 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1812
1813 2020-06-18 Pedro Alves <palves@redhat.com>
1814
1815 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1816 after creating it, instead of writing to inferior_ptid. Don't
1817 write to inferior_ptid.
1818
1819 2020-06-18 Pedro Alves <palves@redhat.com>
1820
1821 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1822
1823 2020-06-18 Pedro Alves <palves@redhat.com>
1824
1825 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1826 it, instead of writing to inferior_ptid.
1827
1828 2020-06-18 Pedro Alves <palves@redhat.com>
1829
1830 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1831 to inferior_ptid.
1832
1833 2020-06-18 Pedro Alves <palves@redhat.com>
1834
1835 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1836 instead of writing to inferior_ptid directly.
1837
1838 2020-06-18 Pedro Alves <palves@redhat.com>
1839
1840 * corelow.c (core_target::close): Use switch_to_no_thread instead
1841 of writing to inferior_ptid directly.
1842 (add_to_thread_list, core_target_open): Use switch_to_thread
1843 instead of writing to inferior_ptid directly.
1844
1845 2020-06-18 Pedro Alves <palves@redhat.com>
1846
1847 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1848 inferior_ptid.
1849 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1850 inferior_ptid.
1851 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1852 inferior_ptid directly.
1853 (darwin_nat_target::init_thread_list): Switch to thread, instead
1854 of writing to inferior_ptid.
1855 (darwin_nat_target::attach): Don't write to inferior_ptid.
1856 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1857
1858 2020-06-18 Pedro Alves <palves@redhat.com>
1859
1860 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1861 thread.
1862 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1863 Instead use switch_to_thread.
1864 (gnu_nat_target::detach): Use switch_to_no_thread
1865 instead of writing to inferior_ptid directly. Used passed-in
1866 inferior instead of looking up the inferior by pid.
1867
1868 2020-06-18 Pedro Alves <palves@redhat.com>
1869
1870 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1871 inferior_ptid.
1872
1873 2020-06-18 Pedro Alves <palves@redhat.com>
1874
1875 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1876 inferior_ptid.
1877 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1878 thread.
1879 (nto_procfs_target::detach): Avoid referencing
1880 inferior_ptid. Use switch_to_no_thread instead of writing to
1881 inferior_ptid directly.
1882 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1883 instead of writing to inferior_ptid directly.
1884 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1885 to thread.
1886
1887 2020-06-18 Pedro Alves <palves@redhat.com>
1888
1889 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1890 after creating it, instead of writing to inferior_ptid.
1891 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1892 to inferior_ptid directly.
1893 (gdbsim_target::wait): Don't write to inferior_ptid.
1894
1895 2020-06-18 Pedro Alves <palves@redhat.com>
1896
1897 * remote.c (remote_target::remote_notice_new_inferior): Use
1898 switch_to_thread instead of writing to inferior_ptid directly.
1899 (remote_target::add_current_inferior_and_thread): Use
1900 switch_to_no_thread instead of writing to inferior_ptid directly.
1901 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1902 and switch_to_thread instead of using set_current_inferior or
1903 writing to inferior_ptid directly.
1904
1905 2020-06-18 Pedro Alves <palves@redhat.com>
1906
1907 * tracectf.c (ctf_target_open): Switch to added thread instead of
1908 writing to inferior_ptid directly.
1909 (ctf_target::close): Use switch_to_no_thread instead of writing to
1910 inferior_ptid directly.
1911
1912 2020-06-18 Pedro Alves <palves@redhat.com>
1913
1914 * tracefile-tfile.c (tfile_target_open): Don't write to
1915 inferior_ptid directly, instead switch to added thread.
1916 (tfile_target::close): Use switch_to_no_thread instead of writing
1917 to inferior_ptid directly.
1918
1919 2020-06-18 Pedro Alves <palves@redhat.com>
1920
1921 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1922 (procfs_target::detach): Use switch_to_no_thread
1923 instead of writing to inferior_ptid directly.
1924 (do_attach): Change return type to void. Switch to the added
1925 thread.
1926 (procfs_target::create_inferior): Switch to the added thread.
1927 (procfs_do_thread_registers): Don't write to inferior_ptid.
1928
1929 2020-06-18 Pedro Alves <palves@redhat.com>
1930
1931 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1932 of writing to inferior_ptid.
1933 (scoped_restore_exited_inferior): Delete.
1934 (handle_vfork_child_exec_or_exit): Simplify using
1935 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1936 instead of writing to inferior_ptid.
1937 (THREAD_STOPPED_BY): Delete.
1938 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1939 (thread_stopped_by_hw_breakpoint): Delete.
1940 (save_waitstatus): Use
1941 scoped_restore_current_thread+switch_to_thread, and call
1942 target_stopped_by_watchpoint instead of
1943 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1944 instead of thread_stopped_by_sw_breakpoint, and
1945 target_stopped_by_hw_breakpoint instead of
1946 thread_stopped_by_hw_breakpoint.
1947 (handle_inferior_event)
1948 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1949 inferior_ptid directly, nor
1950 set_current_inferior/set_current_program_space. Use
1951 switch_to_thread / switch_to_inferior_no_thread instead.
1952
1953 2020-06-18 Pedro Alves <palves@redhat.com>
1954
1955 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1956 instead of writing to inferior_ptid.
1957
1958 2020-06-18 Pedro Alves <palves@redhat.com>
1959
1960 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1961 added thread.
1962 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1963 to the added thread.
1964 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1965 instead of writing to inferior_ptid.
1966
1967 2020-06-18 Pedro Alves <palves@redhat.com>
1968
1969 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1970 (register_to_value_test): Mock a program_space too. Heap-allocate
1971 the address space. Don't write to inferior_ptid. Use
1972 switch_to_thread instead.
1973
1974 2020-06-18 Pedro Alves <palves@redhat.com>
1975
1976 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1977 Delete.
1978 (find_signalled_thread()): New, factored out from
1979 linux_make_corefile_notes and adjusted to handle exited threads.
1980 (linux_make_corefile_notes): Adjust to use the new
1981 find_signalled_thread.
1982
1983 2020-06-18 Pedro Alves <palves@redhat.com>
1984
1985 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1986 of saving/restoring inferior_ptid.
1987
1988 2020-06-17 Tom Tromey <tom@tromey.com>
1989
1990 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1991 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1992 declare.
1993 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1994
1995 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1996
1997 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1998 of partial symtabs.
1999
2000 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2001
2002 * regformats/reg-arm.dat: Remove.
2003 * regformats/reg-bfin.dat: Remove.
2004 * regformats/reg-cris.dat: Remove.
2005 * regformats/reg-crisv32.dat: Remove.
2006 * regformats/reg-m32r.dat: Remove.
2007 * regformats/reg-tilegx.dat: Remove.
2008 * regformats/reg-tilegx32.dat: Remove.
2009
2010 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2011
2012 * features/Makefile (WHICH): Remove arm files.
2013 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2014 * regformats/arm/arm-with-neon.dat: Remove.
2015 * regformats/arm/arm-with-vfpv2.dat: Remove.
2016 * regformats/arm/arm-with-vfpv3.dat: Remove.
2017
2018 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2019
2020 * features/Makefile (XMLTOC): Remove rx.xml.
2021
2022 2020-06-17 Pedro Alves <palves@redhat.com>
2023
2024 * gdbthread.h (thread_control_state) <trap_expected> Update
2025 comments.
2026
2027 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2028
2029 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2030 ada_language::lookup_symbol_nonlocal.
2031 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2032 (ada_language::lookup_symbol_nonlocal): New member function,
2033 implementation from ada_lookup_symbol_nonlocal.
2034 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2035 initializer.
2036 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2037 initializer.
2038 (cplus_language::lookup_symbol_nonlocal): New member function.
2039 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2040 (minimal_language_data) Likewise.
2041 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2042 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2043 initializer.
2044 (d_language::lookup_symbol_nonlocal): New member function.
2045 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2046 initializer.
2047 (f_language::lookup_symbol_nonlocal): New member function.
2048 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2049 initializer.
2050 * language.c (unknown_language_data): Likewise.
2051 (auto_language_data): Likewise.
2052 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2053 field.
2054 (language_defn::lookup_symbol_nonlocal): New member function.
2055 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2056 initializer.
2057 * objc-lang.c (objc_language_data): Likewise.
2058 * opencl-lang.c (opencl_language_data): Likewise.
2059 * p-lang.c (pascal_language_data): Likewise.
2060 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2061 rust_language::lookup_symbol_nonlocal.
2062 (rust_language_data): Delete la_lookup_symbol_nonlocal
2063 initializer.
2064 (rust_language::lookup_symbol_nonlocal): New member function,
2065 implementation from rust_lookup_symbol_nonlocal.
2066 * symtab.c (lookup_symbol_aux): Update call to
2067 lookup_symbol_nonlocal.
2068 (basic_lookup_symbol_nonlocal): Rename to...
2069 (language_defn::lookup_symbol_nonlocal): ...this, and update
2070 header comment. Remove language_defn parameter, and replace with
2071 uses of `this'.
2072 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2073
2074 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2075
2076 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2077 initializer.
2078 (ada_language::value_print_inner): New member function.
2079 * c-lang.c (c_language_data): Delete la_value_print_inner
2080 initializer.
2081 (cplus_language_data): Likewise.
2082 (asm_language_data): Likewise.
2083 (minimal_language_data): Likewise.
2084 * d-lang.c (d_language_data): Likewise.
2085 (d_language::value_print_inner): New member function.
2086 * f-lang.c (f_language_data): Delete la_value_print_inner
2087 initializer.
2088 (f_language::value_print_inner): New member function.
2089 * f-lang.h (f_value_print_innner): Rename to...
2090 (f_value_print_inner): ...this (note spelling of 'inner').
2091 * f-valprint.c (f_value_print_innner): Rename to...
2092 (f_value_print_inner): ...this (note spelling of 'inner').
2093 * go-lang.c (go_language_data): Delete la_value_print_inner
2094 initializer.
2095 (go_language::value_print_inner): New member function.
2096 * language.c (language_defn::value_print_inner): Define new member
2097 function.
2098 (unk_lang_value_print_inner): Delete.
2099 (unknown_language_data): Delete la_value_print_inner initializer.
2100 (unknown_language::value_print_inner): New member function.
2101 (auto_language_data): Delete la_value_print_inner initializer.
2102 (auto_language::value_print_inner): New member function.
2103 * language.h (language_data): Delete la_value_print_inner field.
2104 (language_defn::value_print_inner): Delcare new member function.
2105 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2106 initializer.
2107 (m2_language::value_print_inner): New member function.
2108 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2109 initializer.
2110 * opencl-lang.c (opencl_language_data): Likewise.
2111 * p-lang.c (pascal_language_data): Likewise.
2112 (pascal_language::value_print_inner): New member function.
2113 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2114 initializer.
2115 (rust_language::value_print_inner): New member function.
2116 * valprint.c (do_val_print): Update call to value_print_inner.
2117
2118 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2119
2120 * ada-lang.c (ada_language_data): Delete la_value_print
2121 initializer.
2122 (ada_language::value_print): New member function.
2123 * c-lang.c (c_language_data): Delete la_value_print initializer.
2124 (cplus_language_data): Likewise.
2125 (asm_language_data): Likewise.
2126 (minimal_language_data): Likewise.
2127 * d-lang.c (d_language_data): Likewise.
2128 * f-lang.c (f_language_data): Likewise.
2129 * go-lang.c (go_language_data): Likewise.
2130 * language.c (unk_lang_value_print): Delete.
2131 (language_defn::value_print): Define new member function.
2132 (unknown_language_data): Delete la_value_print initializer.
2133 (unknown_language::value_print): New member function.
2134 (auto_language_data): Delete la_value_print initializer.
2135 (auto_language::value_print): New member function.
2136 * language.h (language_data): Delete la_value_print field.
2137 (language_defn::value_print): Declare new member function.
2138 (LA_VALUE_PRINT): Update call to value_print.
2139 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2140 * objc-lang.c (objc_language_data): Likewise.
2141 * opencl-lang.c (opencl_language_data): Likewise.
2142 * p-lang.c (pascal_language_data): Likewise.
2143 (pascal_language::value_print): New member function.
2144 * rust-lang.c (rust_language_data): Delete la_value_print
2145 initializer.
2146
2147 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2148
2149 * ada-lang.c (ada_watch_location_expression): Rename to
2150 ada_language::watch_location_expression.
2151 (ada_language_data): Delete la_watch_location_expression
2152 initializer.
2153 (ada_language::watch_location_expression): New member function,
2154 implementation from ada_watch_location_expression.
2155 * breakpoint.c (watch_command_1): Update call to
2156 watch_location_expression.
2157 * c-lang.c (c_watch_location_expression): Rename to
2158 language_defn::watch_location_expression.
2159 (c_language_data): Delete la_watch_location_expression
2160 initializer.
2161 (cplus_language_data): Likewise.
2162 (asm_language_data): Likewise.
2163 (minimal_language_data): Likewise.
2164 * c-lang.h (c_watch_location_expression): Delete declaration.
2165 * d-lang.c (d_language_data): Delete la_watch_location_expression
2166 initializer.
2167 * f-lang.c (f_language_data): Likewise.
2168 * go-lang.c (go_language_data): Likewise.
2169 * language.c (language_defn::watch_location_expression): Member
2170 function implementation from c_watch_location_expression.
2171 (unknown_language_data): Delete la_watch_location_expression
2172 initializer.
2173 (auto_language_data): Likewise.
2174 * language.h (language_data): Delete la_watch_location_expression
2175 field.
2176 (language_defn::watch_location_expression): Declare new member
2177 function.
2178 * m2-lang.c (m2_language_data): Delete
2179 la_watch_location_expression initializer.
2180 * objc-lang.c (objc_language_data): Likewise.
2181 * opencl-lang.c (opencl_language_data): Likewise.
2182 * p-lang.c (pascal_language_data): Likewise.
2183 * rust-lang.c (rust_watch_location_expression): Rename to
2184 rust_language::watch_location_expression.
2185 (rust_language_data): Delete la_watch_location_expression
2186 initializer.
2187 (rust_language::watch_location_expression): New member function,
2188 implementation from rust_watch_location_expression.
2189
2190 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2193 ada_language::collect_symbol_completion_matches.
2194 (ada_language_data): Delete la_collect_symbol_completion_matches
2195 initializer.
2196 (ada_language::collect_symbol_completion_matches): New member
2197 function, implementation from
2198 ada_collect_symbol_completion_matches.
2199 * c-lang.c (c_language_data): Delete
2200 la_collect_symbol_completion_matches initializer.
2201 (cplus_language_data): Likewise.
2202 (asm_language_data): Likewise.
2203 (minimal_language_data): Likewise.
2204 * d-lang.c (d_language_data): Likewise.
2205 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2206 f_language::collect_symbol_completion_matches.
2207 (f_language_data): Delete la_collect_symbol_completion_matches
2208 initializer.
2209 (f_language::collect_symbol_completion_matches) New member
2210 function, implementation from f_collect_symbol_completion_matches.
2211 * go-lang.c (go_language_data): Delete
2212 la_collect_symbol_completion_matches initializer.
2213 * language.c (unknown_language_data): Likewise.
2214 (auto_language_data): Likewise.
2215 * language.h (language_data): Delete
2216 la_collect_symbol_completion_matches field.
2217 (language_defn::collect_symbol_completion_matches): New member
2218 function.
2219 * m2-lang.c (m2_language_data): Delete
2220 la_collect_symbol_completion_matches initializer.
2221 * objc-lang.c (objc_language_data): Likewise.
2222 * opencl-lang.c (opencl_language_data): Likewise.
2223 * p-lang.c (pascal_language_data): Likewise.
2224 * rust-lang.c (rust_language_data): Likewise.
2225 * symtab.c (default_collect_symbol_completion_matches): Delete.
2226 (collect_symbol_completion_matches): Update call to
2227 collect_symbol_completion_matches.
2228 (collect_symbol_completion_matches_type): Likewise.
2229 * symtab.h (default_collect_symbol_completion_matches): Delete
2230 declaration.
2231
2232 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2233
2234 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2235 (ada_language_data): Delete la_word_break_characters initializer.
2236 (ada_language::word_break_characters): New member function.
2237 * c-lang.c (c_language_data): Delete la_word_break_characters
2238 initializer.
2239 (cplus_language_data): Likewise.
2240 (asm_language_data): Likewise.
2241 (minimal_language_data): Likewise.
2242 * completer.c: Update global comment.
2243 (advance_to_expression_complete_word_point): Update call to
2244 word_break_characters.
2245 (complete_files_symbols): Likewise.
2246 (complete_line_internal_1): Likewise.
2247 (default_completer_handle_brkchars): Likewise.
2248 (skip_quoted_chars): Likewise.
2249 * d-lang.c (d_language_data): Delete la_word_break_characters
2250 initializer.
2251 * f-lang.c (f_word_break_characters): Delete.
2252 (f_language_data): Delete la_word_break_characters initializer.
2253 (f_language::word_break_characters): New member function.
2254 * go-lang.c (go_language_data): Delete la_word_break_characters
2255 initializer.
2256 * language.c (unknown_language_data): Likewise.
2257 (auto_language_data): Likewise.
2258 * language.h (default_word_break_characters): Move declaration to
2259 earlier in the file.
2260 (language_data): Delete la_word_break_characters field.
2261 (language_defn::word_break_characters): New member function.
2262 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2263 initializer.
2264 * objc-lang.c (objc_language_data): Likewise.
2265 * opencl-lang.c (opencl_language_data): Likewise.
2266 * p-lang.c (pascal_language_data): Likewise.
2267 * rust-lang.c (rust_language_data): Likewise.
2268
2269 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2270
2271 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2272 (ada_language_data): Delete la_get_symbol_name_matcher
2273 initializer.
2274 (language_defn::get_symbol_name_matcher_inner): New member
2275 function.
2276 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2277 initializer.
2278 (cplus_language_data): Likewise.
2279 (cplus_language::get_symbol_name_matcher_inner): New member
2280 function.
2281 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2282 (minimal_language_data): Likewise.
2283 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2284 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2285 initializer.
2286 * dictionary.c (iter_match_first_hashed): Update call to
2287 get_symbol_name_matcher.
2288 (iter_match_next_hashed): Likewise.
2289 (iter_match_next_linear): Likewise.
2290 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2291 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2292 initializer.
2293 (f_language::get_symbol_name_matcher_inner): New member function.
2294 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2295 initializer.
2296 * language.c (default_symbol_name_matcher): Update header comment,
2297 make static.
2298 (language_defn::get_symbol_name_matcher): New definition.
2299 (language_defn::get_symbol_name_matcher_inner): Likewise.
2300 (get_symbol_name_matcher): Delete.
2301 (unknown_language_data): Delete la_get_symbol_name_matcher
2302 initializer.
2303 (auto_language_data): Likewise.
2304 * language.h (language_data): Delete la_get_symbol_name_matcher
2305 field.
2306 (language_defn::get_symbol_name_matcher): New member function.
2307 (language_defn::get_symbol_name_matcher_inner): Likewise.
2308 (default_symbol_name_matcher): Delete declaration.
2309 * linespec.c (find_methods): Update call to
2310 get_symbol_name_matcher.
2311 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2312 initializer.
2313 * minsyms.c (lookup_minimal_symbol): Update call to
2314 get_symbol_name_matcher.
2315 (iterate_over_minimal_symbols): Likewise.
2316 * objc-lang.c (objc_language_data): Delete
2317 la_get_symbol_name_matcher initializer.
2318 * opencl-lang.c (opencl_language_data): Likewise.
2319 * p-lang.c (pascal_language_data): Likewise.
2320 * psymtab.c (psymbol_name_matches): Update call to
2321 get_symbol_name_matcher.
2322 * rust-lang.c (rust_language_data): Delete
2323 la_get_symbol_name_matcher initializer.
2324 * symtab.c (symbol_matches_search_name): Update call to
2325 get_symbol_name_matcher.
2326 (compare_symbol_name): Likewise.
2327
2328 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2329
2330 * ada-lang.c (ada_language_data): Delete la_compute_program
2331 initializer.
2332 * c-lang.c (c_language_data): Likewise.
2333 (c_language::compute_program): New member function.
2334 (cplus_language_data): Delete la_compute_program initializer.
2335 (cplus_language::compute_program): New member function.
2336 (asm_language_data): Delete la_compute_program initializer.
2337 (minimal_language_data): Likewise.
2338 * c-lang.h (c_compute_program): Update comment.
2339 (cplus_compute_program): Likewise.
2340 * compile/compile-c-support.c (c_compute_program): Likewise.
2341 (cplus_compute_program): Likewise.
2342 * compile/compile.c (compile_to_object): Update call to
2343 la_compute_program.
2344 * d-lang.c (d_language_data): Delete la_compute_program
2345 initializer.
2346 * f-lang.c (f_language_data): Likewise.
2347 * go-lang.c (go_language_data): Likewise.
2348 * language.c (unknown_language_data): Likewise.
2349 (auto_language_data): Likewise.
2350 * language.h (language_data): Delete la_compute_program field.
2351 (language_defn::compute_program): New member function.
2352 * m2-lang.c (m2_language_data): Delete la_compute_program
2353 initializer.
2354 * objc-lang.c (objc_language_data): Likewise.
2355 * opencl-lang.c (opencl_language_data): Likewise.
2356 * p-lang.c (pascal_language_data): Likewise.
2357 * rust-lang.c (rust_language_data): Likewise.
2358
2359 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2360
2361 * ada-lang.c (ada_language_data) Delete
2362 la_class_name_from_physname initializer.
2363 * c-lang.c (c_language_data): Likewise.
2364 (cplus_language_data): Likewise.
2365 (cplus_language::class_name_from_physname): New member function.
2366 (asm_language_data): Delete la_class_name_from_physname
2367 initializer.
2368 (minimal_language_data): Likewise.
2369 * d-lang.c (d_language_data): Likewise.
2370 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2371 method on language_defn class.
2372 (guess_full_die_structure_name): Likewise.
2373 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2374 initializer.
2375 * go-lang.c (go_language_data): Likewise.
2376 * language.c (language_class_name_from_physname): Delete.
2377 (unk_lang_class_name): Delete.
2378 (unknown_language_data): Delete la_class_name_from_physname
2379 initializer.
2380 (auto_language_data): Likewise.
2381 * language.h (language_data): Delete la_class_name_from_physname
2382 field.
2383 (language_defn::class_name_from_physname): New function.
2384 (language_class_name_from_physname): Delete declaration.
2385 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2386 initializer.
2387 * objc-lang.c (objc_language_data): Likewise.
2388 * opencl-lang.c (opencl_language_data): Likewise.
2389 * p-lang.c (pascal_language_data): Likewise.
2390 * rust-lang.c (rust_language_data): Likewise.
2391
2392 2020-06-16 Tom Tromey <tom@tromey.com>
2393
2394 * tui/tui-data.h (STATUS_NAME): New macro.
2395 * tui/tui-layout.c (tui_remove_some_windows)
2396 (initialize_known_windows, tui_register_window)
2397 (tui_layout_split::remove_windows, initialize_layouts)
2398 (tui_new_layout_command): Don't use hard-coded window names.
2399
2400 2020-06-16 Tom Tromey <tom@tromey.com>
2401
2402 PR tui/25348:
2403 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2404 tui_initialize_readline. Only run once. Call rl_initialize.
2405 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2406 tui_initialize_readline.
2407 * tui/tui-io.c (tui_setup_io): Call
2408 tui_ensure_readline_initialized.
2409 * tui/tui-interp.c (tui_interp::init): Update.
2410
2411 2020-06-16 Tom Tromey <tom@tromey.com>
2412
2413 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2414 Also preserve the status window.
2415
2416 2020-06-16 Tom Tromey <tom@tromey.com>
2417
2418 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2419 where m_window==nullptr.
2420
2421 2020-06-15 Tom Tromey <tromey@adacore.com>
2422
2423 * windows-nat.c (windows_nat::handle_output_debug_string):
2424 Update.
2425 (windows_nat::handle_ms_vc_exception): Update.
2426 * target.h (target_read_string): Change API.
2427 * target.c (target_read_string): Change API.
2428 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2429 Update.
2430 * solib-frv.c (frv_current_sos): Update.
2431 * solib-dsbt.c (dsbt_current_sos): Update.
2432 * solib-darwin.c (darwin_current_sos): Update.
2433 * linux-thread-db.c (inferior_has_bug): Update.
2434 * expprint.c (print_subexp_standard): Update.
2435 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2436 (ada_exception_message_1): Update.
2437
2438 2020-06-15 Tom Tromey <tromey@adacore.com>
2439
2440 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2441
2442 2020-06-15 Tom Tromey <tromey@adacore.com>
2443
2444 * valprint.c (read_string): Update comment.
2445 * target.c (MIN): Remove.
2446 (target_read_string): Rewrite.
2447
2448 2020-06-15 Tom Tromey <tromey@adacore.com>
2449
2450 * corefile.c (read_memory_string): Remove.
2451 * ada-valprint.c (ada_value_print_ptr): Update.
2452 * ada-lang.h (ada_tag_name): Change return type.
2453 * ada-lang.c (type_from_tag): Update.
2454 (ada_tag_name_from_tsd): Change return type. Use
2455 target_read_string.
2456 (ada_tag_name): Likewise.
2457 * gdbcore.h (read_memory_string): Don't declare.
2458
2459 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2460
2461 * symtab.c (rbreak_command): Ignore Windows drive colon.
2462
2463 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2464
2465 * NEWS: Mention removed GDBserver host support.
2466
2467 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2468
2469 * features/riscv/rebuild-csr-xml.sh: Updated.
2470
2471 2020-06-11 Tom Tromey <tom@tromey.com>
2472
2473 PR gdb/18318:
2474 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2475
2476 2020-06-09 Jonny Grant <jg@jguk.org>
2477 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 * main.c (captured_main_1): Don't print new line after help.
2480 (print_gdb_help): add mailing list and IRC channel information
2481 to --help. Add new lines between items in the footer. Remove
2482 quotes around bug url.
2483
2484 2020-06-11 Keith Seitz <keiths@redhat.com>
2485
2486 PR gdb/21356
2487 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2488 Resolve typedefs for type length calculations.
2489
2490 2020-06-10 Tom de Vries <tdevries@suse.de>
2491
2492 PR ada/24713
2493 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2494 (write_psymbols): Enable .gdb_index for ada.
2495 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2496 ada.
2497
2498 2020-06-10 Tom de Vries <tdevries@suse.de>
2499
2500 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2501 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2502 namei" instead of "const char *name" argument.
2503 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2504 dw2_symtab_iter_init.
2505
2506 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2507
2508 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2509 to use type::field and field::type instead.
2510
2511 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2512
2513 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2514 to use field::type instead.
2515
2516 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2517
2518 * gdbtypes.h (struct field) <type, set_type>: New methods.
2519 Rename `type` field to...
2520 <m_type>: ... this. Change references throughout to use type or
2521 set_type methods.
2522 (FIELD_TYPE): Use field::type. Change call sites that modify
2523 the field's type to use field::set_type instead.
2524
2525 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2526
2527 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2528 to use type::index_type instead.
2529
2530 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2531
2532 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2533 methods.
2534 (TYPE_INDEX_TYPE): Use type::index_type.
2535 * gdbtypes.c (create_array_type_with_stride): Likewise.
2536
2537 2020-06-07 Tom Tromey <tom@tromey.com>
2538
2539 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2540 parameter.
2541 (generic_value_print): Update.
2542
2543 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 Revert commit 982a38f60b0.
2546 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2547
2548 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2549
2550 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2551 avoid use after free.
2552
2553 2020-06-05 Tom de Vries <tdevries@suse.de>
2554
2555 * NEWS: Fix typos.
2556
2557 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2558
2559 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2560 the per_bfd object.
2561 (dwarf2_read_debug_names): Likewise.
2562 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2563 object when re-using a per_bfd object with an index.
2564
2565 2020-06-03 Tom de Vries <tdevries@suse.de>
2566
2567 PR symtab/26046
2568 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2569 children for C++.
2570 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2571 DW_TAG_subprogram.
2572
2573 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2574
2575 * ada-lang.c (ada_language_data): Delete skip_trampoline
2576 initializer.
2577 * c-lang.c (c_language_data): Likewise.
2578 (cplus_language_data): Likewise.
2579 (cplus_language::skip_trampoline): New member function.
2580 (asm_language_data): Delete skip_trampoline initializer.
2581 (minimal_language_data): Likewise.
2582 * d-lang.c (d_language_data): Likewise.
2583 * f-lang.c (f_language_data): Likewise.
2584 * go-lang.c (go_language_data): Likewise.
2585 * language.c (unk_lang_trampoline): Delete function.
2586 (skip_language_trampoline): Update.
2587 (unknown_language_data): Delete skip_trampoline initializer.
2588 (auto_language_data): Likewise.
2589 * language.h (language_data): Delete skip_trampoline field.
2590 (language_defn::skip_trampoline): New function.
2591 * m2-lang.c (m2_language_data): Delete skip_trampoline
2592 initializer.
2593 * objc-lang.c (objc_skip_trampoline): Delete function, move
2594 implementation to objc_language::skip_trampoline.
2595 (objc_language_data): Delete skip_trampoline initializer.
2596 (objc_language::skip_trampoline): New member function with
2597 implementation from objc_skip_trampoline.
2598 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2599 initializer.
2600 * p-lang.c (pascal_language_data): Likewise.
2601 * rust-lang.c (rust_language_data): Likewise.
2602
2603 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2604
2605 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2606 (ada_language::demangle): New member function.
2607 * c-lang.c (c_language_data): Delete la_demangle initializer.
2608 (cplus_language_data): Delete la_demangle initializer.
2609 (cplus_language::demangle): New member function.
2610 (asm_language_data): Delete la_demangle initializer.
2611 (minimal_language_data): Delete la_demangle initializer.
2612 * d-lang.c (d_language_data): Delete la_demangle initializer.
2613 (d_language::demangle): New member function.
2614 * f-lang.c (f_language_data): Delete la_demangle initializer.
2615 (f_language::demangle): New member function.
2616 * go-lang.c (go_language_data): Delete la_demangle initializer.
2617 (go_language::demangle): New member function.
2618 * language.c (language_demangle): Update.
2619 (unk_lang_demangle): Delete.
2620 (unknown_language_data): Delete la_demangle initializer.
2621 (unknown_language::demangle): New member function.
2622 (auto_language_data): Delete la_demangle initializer.
2623 (auto_language::demangle): New member function.
2624 * language.h (language_data): Delete la_demangle field.
2625 (language_defn::demangle): New function.
2626 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2627 * objc-lang.c (objc_language_data): Delete la_demangle
2628 initializer.
2629 (objc_language::demangle): New member function.
2630 * opencl-lang.c (opencl_language_data): Delete la_demangle
2631 initializer.
2632 * p-lang.c (pascal_language_data): Likewise.
2633 * rust-lang.c (rust_language_data): Likewise.
2634 (rust_language::demangle): New member function.
2635
2636 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2637
2638 * ada-lang.c (ada_language_data): Delete la_print_type
2639 initializer.
2640 (ada_language::print_type): New member function.
2641 * c-lang.c (c_language_data): Delete la_print_type initializer.
2642 (c_language::print_type): New member function.
2643 (cplus_language_data): Delete la_print_type initializer.
2644 (cplus_language::print_type): New member function.
2645 (asm_language_data): Delete la_print_type initializer.
2646 (asm_language::print_type): New member function.
2647 (minimal_language_data): Delete la_print_type initializer.
2648 (minimal_language::print_type): New member function.
2649 * d-lang.c (d_language_data): Delete la_print_type initializer.
2650 (d_language::print_type): New member function.
2651 * f-lang.c (f_language_data): Delete la_print_type initializer.
2652 (f_language::print_type): New member function.
2653 * go-lang.c (go_language_data): Delete la_print_type initializer.
2654 (go_language::print_type): New member function.
2655 * language.c (unk_lang_print_type): Delete.
2656 (unknown_language_data): Delete la_print_type initializer.
2657 (unknown_language::print_type): New member function.
2658 (auto_language_data): Delete la_print_type initializer.
2659 (auto_language::print_type): New member function.
2660 * language.h (language_data): Delete la_print_type field.
2661 (language_defn::print_type): New function.
2662 (LA_PRINT_TYPE): Update.
2663 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2664 (m2_language::print_type): New member function.
2665 * objc-lang.c (objc_language_data): Delete la_print_type
2666 initializer.
2667 (objc_language::print_type): New member function.
2668 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2669 to opencl_language::print_type.
2670 (opencl_language_data): Delete la_print_type initializer.
2671 (opencl_language::print_type): New member function, implementation
2672 from opencl_print_type.
2673 * p-lang.c (pascal_language_data): Delete la_print_type
2674 initializer.
2675 (pascal_language::print_type): New member function.
2676 * rust-lang.c (rust_print_type): Delete, implementation moved to
2677 rust_language::print_type.
2678 (rust_language_data): Delete la_print_type initializer.
2679 (rust_language::print_type): New member function, implementation
2680 from rust_print_type.
2681
2682 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2683
2684 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2685 implementation moves to...
2686 (ada_language::sniff_from_mangled_name): ...here. Update return
2687 type.
2688 (ada_language_data): Delete la_sniff_from_mangled_name
2689 initializer.
2690 * c-lang.c (c_language_data): Likewise.
2691 (cplus_language_data): Likewise.
2692 (cplus_language::sniff_from_mangled_name): New member function,
2693 implementation taken from gdb_sniff_from_mangled_name.
2694 (asm_language_data): Delete la_sniff_from_mangled_name
2695 initializer.
2696 (minimal_language_data): Likewise.
2697 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2698 implementation moves to cplus_language::sniff_from_mangled_name.
2699 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2700 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2701 moves to...
2702 (d_language::sniff_from_mangled_name): ...here.
2703 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2704 * f-lang.c (f_language_data): Likewise.
2705 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2706 moves to...
2707 (go_language::sniff_from_mangled_name): ...here.
2708 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2709 * language.c (language_sniff_from_mangled_name): Delete.
2710 (unknown_language_data): Delete la_sniff_from_mangled_name
2711 initializer.
2712 (auto_language_data): Likewise.
2713 * language.h (language_data): Delete la_sniff_from_mangled_name
2714 field.
2715 (language_defn::sniff_from_mangled_name): New function.
2716 (language_sniff_from_mangled_name): Delete declaration.
2717 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2718 field.
2719 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2720 implementation moves to...
2721 (objc_language::sniff_from_mangled_name): ...here.
2722 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2723 * opencl-lang.c (opencl_language_data): Likewise.
2724 * p-lang.c (pascal_language_data): Likewise.
2725 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2726 implementation moves to...
2727 (rust_language::sniff_from_mangled_name): ...here.
2728 (rust_language_data): Delete la_sniff_from_mangled_name
2729 initializer.
2730 * symtab.c (symbol_find_demangled_name): Call
2731 sniff_from_mangled_name member function.
2732
2733 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2736 initializer.
2737 * c-lang.c (c_language_data): Likewise.
2738 (cplus_language_data): Likewise.
2739 (cplus_language::search_name_hash): New member function.
2740 (asm_language_data): Delete la_search_name_hash initializer.
2741 (minimal_language_data): Likewise.
2742 * d-lang.c (d_language_data): Likewise.
2743 * dictionary.c (default_search_name_hash): Rename to...
2744 (language_defn::search_name_hash): ...this.
2745 * f-lang.c (f_language_data): Likewise.
2746 (f_language::search_name_hash): New member function.
2747 * go-lang.c (go_language_data): Delete la_search_name_hash
2748 initializer.
2749 * language.c (unknown_language_data): Likewise.
2750 (auto_language_data): Likewise.
2751 * language.h (struct language_data): Delete la_search_name_hash
2752 field.
2753 (language_defn::search_name_hash): Declare new member function.
2754 (default_search_name_hash): Delete declaration.
2755 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2756 initializer.
2757 * objc-lang.c (objc_language_data): Likewise.
2758 * opencl-lang.c (opencl_language_data): Likewise.
2759 * p-lang.c (pascal_language_data): Likewise.
2760 * rust-lang.c (rust_language_data): Likewise.
2761 * symtab.c (search_name_hash): Update call.
2762
2763 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2764
2765 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2766 initializer.
2767 * c-lang.c (class compile_instance): Declare.
2768 (c_language_data): Delete la_get_compile_instance initializer.
2769 (c_language::get_compile_instance): New member function.
2770 (cplus_language_data): Delete la_get_compile_instance initializer.
2771 (cplus_language::get_compile_instance): New member function.
2772 (asm_language_data): Delete la_get_compile_instance initializer.
2773 (minimal_language_data): Likewise.
2774 * c-lang.h (c_get_compile_context): Update comment.
2775 (cplus_get_compile_context): Update comment.
2776 * compile/compile.c (compile_to_object): Update calls, don't rely
2777 on function pointer being NULL.
2778 * d-lang.c (d_language_data): Delete la_get_compile_instance
2779 initializer.
2780 * f-lang.c (f_language_data): Likewise.
2781 * go-lang.c (go_language_data): Likewise.
2782 * language.c (unknown_language_data): Likewise.
2783 (auto_language_data): Likewise.
2784 * language.h (language_data): Delete la_get_compile_instance field.
2785 (language_defn::get_compile_instance): New member function.
2786 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2787 initializer.
2788 * objc-lang.c (objc_language_data): Likewise.
2789 * opencl-lang.c (opencl_language_data): Likewise.
2790 * p-lang.c (pascal_language_data): Likewise.
2791 * rust-lang.c (rust_language_data): Likewise.
2792
2793 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2794
2795 * ada-lang.c (ada_add_all_symbols): Update comment.
2796 (ada_iterate_over_symbols): Delete, move implementation to...
2797 (ada_language::iterate_over_symbols): ...here, a new member
2798 function, rewrite to use range based for loop.
2799 (ada_language_data): Delete la_iterate_over_symbols initializer.
2800 * c-lang.c (c_language_data): Likewise.
2801 (cplus_language_data): Likewise.
2802 (asm_language_data): Likewise.
2803 (minimal_language_data): Likewise.
2804 * d-lang.c (d_language_data): Likewise.
2805 * f-lang.c (f_language_data): Likewise.
2806 * go-lang.c (go_language_data): Likewise.
2807 * language.c (unknown_language_data): Likewise.
2808 (auto_language_data): Likewise.
2809 * language.h (language_data): Delete la_iterate_over_symbols field.
2810 (language_defn::iterate_over_symbols): New member function.
2811 (LA_ITERATE_OVER_SYMBOLS): Update.
2812 * linespec.c (iterate_over_all_matching_symtabs): Update.
2813 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2814 initializer.
2815 * objc-lang.c (objc_language_data): Likewise.
2816 * opencl-lang.c (opencl_language_data): Likewise.
2817 * p-lang.c (pascal_language_data): Likewise.
2818 * rust-lang.c (rust_language_data): Likewise.
2819
2820 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2821
2822 * ada-lang.c (ada_language_data): Delete
2823 la_lookup_transparent_type initializer.
2824 * c-lang.c (c_language_data): Likewise.
2825 (cplus_language_data): Likewise.
2826 (cplus_language::lookup_transparent_type): New member function.
2827 (asm_language_data): Delete la_lookup_transparent_type
2828 initializer.
2829 (minimal_language_data): Likewise.
2830 * d-lang.c (d_language_data): Likewise.
2831 * f-lang.c (f_language_data): Likewise.
2832 * go-lang.c (go_language_data): Likewise.
2833 * language.c (unknown_language_data): Likewise.
2834 (auto_language_data): Likewise.
2835 * language.h (struct language_data): Delete
2836 la_lookup_transparent_type field.
2837 (language_defn::lookup_transparent_type): New member function.
2838 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2839 initializer.
2840 * objc-lang.c (objc_language_data): Likewise.
2841 * opencl-lang.c (opencl_language_data): Likewise.
2842 * p-lang.c (pascal_language_data): Likewise.
2843 * rust-lang.c (rust_language_data): Likewise.
2844 * symtab.c (symbol_matches_domain): Update call.
2845
2846 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2847
2848 * ada-lang.c (ada_language_arch_info): Delete function, move
2849 implementation to...
2850 (ada_language::language_arch_info): ...here, a new member
2851 function.
2852 (ada_language_data): Delete la_language_arch_info.
2853 * c-lang.c (c_language_data): Likewise.
2854 (c_language::language_arch_info): New member function.
2855 (cplus_language_arch_info): Delete function, move
2856 implementation to...
2857 (cplus_language::language_arch_info): ...here, a new member
2858 function.
2859 (cplus_language_data): Delete la_language_arch_info.
2860 (asm_language_data): Likewise.
2861 (asm_language::language_arch_info): New member function.
2862 (minimal_language_data): Delete la_language_arch_info.
2863 (minimal_language::language_arch_info): New member function.
2864 * d-lang.c (d_language_arch_info): Delete function, move
2865 implementation to...
2866 (d_language::language_arch_info): ...here, a new member
2867 function.
2868 (d_language_data): Delete la_language_arch_info.
2869 * f-lang.c (f_language_arch_info): Delete function, move
2870 implementation to...
2871 (f_language::language_arch_info): ...here, a new member
2872 function.
2873 (f_language_data): Delete la_language_arch_info.
2874 * go-lang.c (go_language_arch_info): Delete function, move
2875 implementation to...
2876 (go_language::language_arch_info): ...here, a new member
2877 function.
2878 (go_language_data): Delete la_language_arch_info.
2879 * language.c (unknown_language_data): Likewise.
2880 (unknown_language::language_arch_info): New member function.
2881 (auto_language_data): Delete la_language_arch_info.
2882 (auto_language::language_arch_info): New member function.
2883 (language_gdbarch_post_init): Update call to
2884 la_language_arch_info.
2885 * language.h (language_data): Delete la_language_arch_info
2886 function pointer.
2887 (language_defn::language_arch_info): New function.
2888 * m2-lang.c (m2_language_arch_info): Delete function, move
2889 implementation to...
2890 (m2_language::language_arch_info): ...here, a new member
2891 function.
2892 (m2_language_data): Delete la_language_arch_info.
2893 * objc-lang.c (objc_language_arch_info): Delete function, move
2894 implementation to...
2895 (objc_language::language_arch_info): ...here, a new member
2896 function.
2897 (objc_language_data): Delete la_language_arch_info.
2898 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2899 implementation to...
2900 (opencl_language::language_arch_info): ...here, a new member
2901 function.
2902 (opencl_language_data): Delete la_language_arch_info.
2903 * p-lang.c (pascal_language_arch_info): Delete function, move
2904 implementation to...
2905 (pascal_language::language_arch_info): ...here, a new member
2906 function.
2907 (pascal_language_data): Delete la_language_arch_info.
2908 * rust-lang.c (rust_language_arch_info): Delete function, move
2909 implementation to...
2910 (rust_language::language_arch_info): ...here, a new member
2911 function.
2912 (rust_language_data): Delete la_language_arch_info.
2913
2914 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2915
2916 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2917 initializer.
2918 * c-lang.c (c_language_data): Likewise.
2919 (cplus_language_data): Likewise.
2920 (cplus_language::pass_by_reference_info): New method.
2921 (asm_language_data): Delete la_pass_by_reference initializer.
2922 (minimal_language_data): Likewise.
2923 * cp-abi.c (cp_pass_by_reference): Remove use of
2924 default_pass_by_reference.
2925 * d-lang.c (d_language_data): Likewise.
2926 * f-lang.c (f_language_data): Likewise.
2927 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2928 default_pass_by_reference.
2929 * go-lang.c (go_language_data): Likewise.
2930 * language.c (language_pass_by_reference): Update.
2931 (default_pass_by_reference): Delete.
2932 (unknown_language_data): Delete la_pass_by_reference
2933 initializer.
2934 (auto_language_data): Likewise.
2935 * language.h (struct language_data): Delete la_pass_by_reference
2936 field.
2937 (language_defn::pass_by_reference_info): New member function.
2938 (default_pass_by_reference): Delete declaration.
2939 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2940 initializer.
2941 * objc-lang.c (objc_language_data): Likewise.
2942 * opencl-lang.c (opencl_language_data): Likewise.
2943 * p-lang.c (pascal_language_data): Likewise.
2944 * rust-lang.c (rust_language_data): Likewise.
2945
2946 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2947
2948 * ada-lang.c (ada_read_var_value): Delete function, move
2949 implementation to...
2950 (ada_language::read_var_value): ...here.
2951 (ada_language_data): Delete la_read_var_value initializer.
2952 * c-lang.c (c_language_data): Likewise.
2953 (cplus_language_data): Likewise.
2954 (minimal_language_data): Likewise.
2955 * d-lang.c (d_language_data): Likewise.
2956 * f-lang.c (f_language_data): Likewise.
2957 * findvar.c (default_read_var_value): Rename to...
2958 (language_defn::read_var_value): ...this.
2959 * findvar.c (read_var_value): Update header comment, and change to
2960 call member function instead of function pointer.
2961 * go-lang.c (go_language_data): Likewise.
2962 * language.c (unknown_language_data): Delete la_read_var_value
2963 initializer.
2964 (auto_language_data): Likewise.
2965 * language.h (struct language_data): Delete la_read_var_value
2966 field.
2967 (language_defn::read_var_value): New member function.
2968 (default_read_var_value): Delete declaration.
2969 * m2-lang.c (m2_language_data): Delete la_read_var_value
2970 initializer.
2971 * objc-lang.c (objc_language_data): Likewise.
2972 * opencl-lang.c (opencl_language_data): Likewise.
2973 * p-lang.c (pascal_language_data): Likewise.
2974 * rust-lang.c (rust_language_data): Likewise.
2975 * value.h (default_read_var_value): Delete declaration.
2976
2977 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2978
2979 * ada-lang.c (ada_print_array_index): Delete function, move
2980 implementation to...
2981 (ada_language::print_array_index): ...here.
2982 (ada_language_data): Delete la_print_array_index initializer.
2983 * c-lang.c (c_language_data): Likewise.
2984 (cplus_language_data): Likewise.
2985 (minimal_language_data): Likewise.
2986 * d-lang.c (d_language_data): Likewise.
2987 * f-lang.c (f_language_data): Likewise.
2988 * go-lang.c (go_language_data): Likewise.
2989 * language.c (default_print_array_index): Delete function, move
2990 implementation to...
2991 (language_defn::print_array_index): ...here.
2992 (unknown_language_data): Delete la_print_array_index initializer.
2993 (auto_language_data): Likewise.
2994 * language.h (struct language_data): Delete la_print_array_index
2995 field.
2996 (language_defn::print_array_index): New member function.
2997 (LA_PRINT_ARRAY_INDEX): Update.
2998 (default_print_array_index): Delete declaration.
2999 * m2-lang.c (m2_language_data): Delete la_print_array_index
3000 initializer.
3001 * objc-lang.c (objc_language_data): Likewise.
3002 * opencl-lang.c (opencl_language_data): Likewise.
3003 * p-lang.c (pascal_language_data): Likewise.
3004 * rust-lang.c (rust_language_data): Likewise.
3005
3006 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3007
3008 * gdb/ada-lang.c (ada_language_defn): Convert to...
3009 (ada_language_data): ...this.
3010 (class ada_language): New class.
3011 (ada_language_defn): New static global.
3012 * gdb/c-lang.c (c_language_defn): Convert to...
3013 (c_language_data): ...this.
3014 (class c_language): New class.
3015 (c_language_defn): New static global.
3016 (cplus_language_defn): Convert to...
3017 (cplus_language_data): ...this.
3018 (class cplus_language): New class.
3019 (cplus_language_defn): New static global.
3020 (asm_language_defn): Convert to...
3021 (asm_language_data): ...this.
3022 (class asm_language): New class.
3023 (asm_language_defn): New static global.
3024 (minimal_language_defn): Convert to...
3025 (minimal_language_data): ...this.
3026 (class minimal_language): New class.
3027 (minimal_language_defn): New static global.
3028 * gdb/d-lang.c (d_language_defn): Convert to...
3029 (d_language_data): ...this.
3030 (class d_language): New class.
3031 (d_language_defn): New static global.
3032 * gdb/f-lang.c (f_language_defn): Convert to...
3033 (f_language_data): ...this.
3034 (class f_language): New class.
3035 (f_language_defn): New static global.
3036 * gdb/go-lang.c (go_language_defn): Convert to...
3037 (go_language_data): ...this.
3038 (class go_language): New class.
3039 (go_language_defn): New static global.
3040 * gdb/language.c (unknown_language_defn): Remove declaration.
3041 (current_language): Initialize to nullptr, real initialization is
3042 moved to _initialize_language.
3043 (languages): Delete global.
3044 (language_defn::languages): Define.
3045 (set_language_command): Use language_defn::languages.
3046 (set_language): Likewise.
3047 (range_error): Likewise.
3048 (language_enum): Likewise.
3049 (language_def): Likewise.
3050 (add_set_language_command): Use language_def::languages for the
3051 language list, and language_def to lookup language pointers.
3052 (skip_language_trampoline): Use language_defn::languages.
3053 (unknown_language_defn): Convert to...
3054 (unknown_language_data): ...this.
3055 (class unknown_language): New class.
3056 (unknown_language_defn): New static global.
3057 (auto_language_defn): Convert to...
3058 (auto_language_data): ...this.
3059 (class auto_language): New class.
3060 (auto_language_defn): New static global.
3061 (language_gdbarch_post_init): Use language_defn::languages.
3062 (_initialize_language): Initialize current_language.
3063 * gdb/language.h (struct language_defn): Rename to...
3064 (struct language_data): ...this.
3065 (struct language_defn): New.
3066 (auto_language_defn): Delete.
3067 (unknown_language_defn): Delete.
3068 (minimal_language_defn): Delete.
3069 (ada_language_defn): Delete.
3070 (asm_language_defn): Delete.
3071 (c_language_defn): Delete.
3072 (cplus_language_defn): Delete.
3073 (d_language_defn): Delete.
3074 (f_language_defn): Delete.
3075 (go_language_defn): Delete.
3076 (m2_language_defn): Delete.
3077 (objc_language_defn): Delete.
3078 (opencl_language_defn): Delete.
3079 (pascal_language_defn): Delete.
3080 (rust_language_defn): Delete.
3081 * gdb/m2-lang.c (m2_language_defn): Convert to...
3082 (m2_language_data): ...this.
3083 (class m2_language): New class.
3084 (m2_language_defn): New static global.
3085 * gdb/objc-lang.c (objc_language_defn): Convert to...
3086 (objc_language_data): ...this.
3087 (class objc_language): New class.
3088 (objc_language_defn): New static global.
3089 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3090 (opencl_language_data): ...this.
3091 (class opencl_language): New class.
3092 (opencl_language_defn): New static global.
3093 * gdb/p-lang.c (pascal_language_defn): Convert to...
3094 (pascal_language_data): ...this.
3095 (class pascal_language): New class.
3096 (pascal_language_defn): New static global.
3097 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3098 language pointer, update comment format.
3099 * gdb/rust-lang.c (rust_language_defn): Convert to...
3100 (rust_language_data): ...this.
3101 (class rust_language): New class.
3102 (rust_language_defn): New static global.
3103
3104 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3105
3106 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3107 member variable.
3108 <m_stmt_at_address>: New member variable.
3109 (lnp_state_machine::record_line): Don't record some lines, update
3110 tracking of is_stmt at the same address.
3111 (lnp_state_machine::lnp_state_machine): Initialise new member
3112 variables.
3113
3114 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3115
3116 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3117 "-include gnu-nat-mig.h".
3118 * gnu-nat-mig.h: New file.
3119 * gnu-nat.c: Include "gnu-nat-mig.h".
3120 (exc_server, msg_reply_server, notify_server,
3121 process_reply_server): Remove declarations.
3122
3123 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3124
3125 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3126 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3127 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3128 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3129 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3130 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3131 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3132 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3133 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3134 to gnu_nat_target class.
3135 * gnu-nat.c: Likewise.
3136 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3137 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3138 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3139 object.
3140 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3141 instead of `gnu_target'.
3142
3143 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3144
3145 * i386-gnu-tdep.c: Include "gdbcore.h"
3146 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3147 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3148 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3149 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3150 i386_gnu_sigcontext_addr): New functions
3151 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3152 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3153 tdep.
3154
3155 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3156
3157 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3158 before fork_inferior call. Avoid calling it if target_is_pushed returns
3159 true.
3160
3161 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3162
3163 * gnu-nat.h (gnu_target): New variable declaration.
3164 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3165 gnu_target.
3166 * gnu-nat.c (gnu_target): New variable.
3167 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3168 add_thread_silent, and add_thread calls.
3169 (gnu_nat_target::create_inferior): Pass gnu_target to
3170 add_thread_silent, thread_change_ptid call.
3171 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3172 call.
3173
3174 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3175
3176 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3177 (gnu_nat_target::find_memory_regions): Remove unused
3178 `old_address' variable.
3179
3180 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3181
3182 * gnu-nat.c: Include "gdbarch.h".
3183
3184 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3185
3186 * reply_mig_hack.awk (Error return): Cast function through
3187 void *, to bypass compiler function call check.
3188
3189 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3190
3191 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3192 $(srcdir)/reply_mig_hack.awk.
3193
3194 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3195
3196 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3197
3198 2020-05-30 Jonny Grant <jg@jguk.org>
3199
3200 * configure.ac (ACX_BUGURL): change bug URL to https.
3201
3202 2020-05-30 Pedro Alves <palves@redhat.com>
3203
3204 * cp-support.c (replace_typedefs_template): New.
3205 (replace_typedefs_qualified_name): Handle
3206 DEMANGLE_COMPONENT_TEMPLATE.
3207
3208 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3209
3210 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3211 dwarf2/index-cache.h, dwarf2/index-write.c,
3212 dwarf2/index-write.h, dwarf2/line-header.c,
3213 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3214 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3215 variables and fields from `dwarf2_per_objfile` to just
3216 `per_objfile` throughout.
3217
3218 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3219
3220 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3221 <push_dwarf_reg_entry_value>: Add comment.
3222
3223 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3224 Keith Seitz <keiths@redhat.com>
3225
3226 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3227 instead of PyEval_ReleaseLock.
3228 (class gdbpy_gil): Move to earlier in file.
3229 (finalize_python): Set gdb_python_initialized.
3230 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3231 when not initialized.
3232
3233 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3234
3235 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3236 <push_dwarf_reg_entry_value>: Remove assert. Override
3237 per_objfile with caller_per_objfile.
3238
3239 2020-05-28 Tom de Vries <tdevries@suse.de>
3240
3241 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3242 PR gold/15646 workaround to symbol kind "type".
3243
3244 2020-05-27 Tom Tromey <tromey@adacore.com>
3245
3246 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3247
3248 2020-05-27 Tom Tromey <tromey@adacore.com>
3249
3250 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3251 Use htab_find_with_hash.
3252 <add_abbrev>: Remove "abbrev_number" parameter.
3253 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3254 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3255 (hash_abbrev): Add comment.
3256 (abbrev_table::lookup_abbrev): Move to header file.
3257 (abbrev_table::read): Update.
3258
3259 2020-05-27 Tom Tromey <tromey@adacore.com>
3260
3261 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3262 method.
3263 <canonical_name>: New member.
3264 <raw_name>: Rename from "name".
3265 (partial_die_info): Initialize canonical_name.
3266 (scan_partial_symbols): Check raw_name.
3267 (partial_die_parent_scope, partial_die_full_name)
3268 (add_partial_symbol, add_partial_subprogram)
3269 (add_partial_enumeration, load_partial_dies): Use "name" method.
3270 (partial_die_info::name): New method.
3271 (partial_die_info::read, guess_partial_die_structure_name)
3272 (partial_die_info::fixup): Update.
3273
3274 2020-05-27 Tom Tromey <tromey@adacore.com>
3275
3276 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3277 <get_ref_die_offset>: Inline.
3278 <get_ref_die_offset_complaint>: New method.
3279 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3280 (attribute::get_ref_die_offset_complaint): Rename from
3281 get_ref_die_offset. Just issue complaint.
3282
3283 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3284
3285 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3286
3287 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3288
3289 * exec.c (exec_file_attach): Use errno value of first openp failure.
3290
3291 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3292
3293 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3294 Don't close thread handle.
3295
3296 2020-05-27 Tom Tromey <tom@tromey.com>
3297 Simon Marchi <simon.marchi@efficios.com>
3298
3299 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3300 shared_ptr.
3301 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3302 member.
3303 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3304 dwarf2_per_bfd_objfile_data_key>: New globals.
3305 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3306 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3307 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3308 shared.
3309 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3310 short-circuit when sharing.
3311 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3312 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3313
3314 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3315
3316 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3317 to...
3318 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3319 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3320
3321 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3322
3323 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3324 build_name_components, find_name_components_bounds>:
3325 Add per_objfile parameter.
3326 (struct mapped_index) <symbol_name_at>: Likewise.
3327 (struct mapped_debug_names): Remove constructor.
3328 <dwarf2_per_objfile>: Remove field.
3329 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3330 (mapped_index_base::find_name_components_bounds,
3331 mapped_index_base::build_name_components,
3332 dw2_expand_symtabs_matching_symbol): Likewise.
3333 (class mock_mapped_index) <symbol_name_at>: Likewise.
3334 (check_match): Likewise.
3335 (check_find_bounds_finds): Likewise.
3336 (test_mapped_index_find_name_component_bounds): Update.
3337 (CHECK_MATCH): Update.
3338 (dw2_expand_symtabs_matching): Update.
3339 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3340 per_objfile parameter.
3341 <find_vec_in_debug_names>: Likewise.
3342 <m_per_objfile>: New field.
3343 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3344 parameter.
3345 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3346 (dw2_debug_names_iterator::next): Update.
3347 (dw2_debug_names_lookup_symbol): Update.
3348 (dw2_debug_names_expand_symtabs_for_function): Update.
3349 (dw2_debug_names_map_matching_symbols): Update.
3350 (dw2_debug_names_expand_symtabs_matching): Update.
3351 (dwarf2_read_debug_names): Update.
3352
3353 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3354
3355 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3356 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3357 move to dwarf2_per_objfile.
3358 <read_in_chain>: Remove.
3359 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3360 remove_all_cus, age_comp_units>: New methods.
3361 <m_dwarf2_cus>: New member.
3362 (struct dwarf2_per_cu_data) <cu>: Remove.
3363 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3364 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3365 moved to methods of dwarf2_per_objfile.
3366 (dwarf2_clear_marks): Remove.
3367 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3368 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3369 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3370 (dwarf2_per_objfile::remove_all_cus): New.
3371 (class free_cached_comp_units) <~free_cached_comp_units>:
3372 Update.
3373 (load_cu): Update.
3374 (dw2_do_instantiate_symtab): Adjust.
3375 (fill_in_sig_entry_from_dwo_entry): Adjust.
3376 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3377 (cutu_reader::cutu_reader): Likewise.
3378 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3379 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3380 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3381 and dwarf2_per_objfile::age_comp_units.
3382 (load_partial_comp_unit): Update.
3383 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3384 (process_queue): Likewise.
3385 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3386 backlink.
3387 (dwarf2_read_addr_index): Likewise.
3388 (follow_die_offset): Likewise.
3389 (dwarf2_fetch_die_loc_sect_off): Likewise.
3390 (dwarf2_fetch_constant_bytes): Likewise.
3391 (dwarf2_fetch_die_type_sect_off): Likewise.
3392 (follow_die_sig_1): Likewise.
3393 (load_full_type_unit): Likewise.
3394 (read_signatured_type): Likewise.
3395 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3396 (dwarf2_cu::~dwarf2_cu): Remove.
3397 (dwarf2_per_objfile::get_cu): New.
3398 (dwarf2_per_objfile::set_cu): New.
3399 (age_cached_comp_units): Rename to...
3400 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3401 to std::unordered_map.
3402 (free_one_cached_comp_unit): Rename to...
3403 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3404 to std::unordered_map.
3405 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3406 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3407 a dwarf2_per_objfile in data.
3408 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3409 (dwarf2_clear_marks): Remove.
3410
3411 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3412
3413 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3414 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3415 (init_tu_and_read_dwo_dies): Likewise.
3416 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3417 (cutu_reader::cutu_reader): Likewise.
3418 (load_partial_comp_unit): Likewise.
3419 (process_psymtab_comp_unit): Update.
3420 (build_type_psymtabs_1): Update.
3421 (process_skeletonless_type_unit): Update.
3422 (load_full_comp_unit): Update.
3423 (find_partial_die): Update.
3424 (dwarf2_read_addr_index): Update.
3425 (read_signatured_type): Update.
3426
3427 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3428
3429 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3430 m_header_read_in>: New fields.
3431 <get_header>: New method.
3432 * dwarf2/read.c (per_cu_header_read_in): Remove.
3433 (dwarf2_per_cu_data::get_header): New.
3434 (dwarf2_per_cu_data::addr_size): Update.
3435 (dwarf2_per_cu_data::offset_size): Update.
3436 (dwarf2_per_cu_data::ref_addr_size): Update.
3437
3438 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3439
3440 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3441 (dw2_do_instantiate_symtab): Update.
3442 (queue_and_load_all_dwo_tus): Change parameter from
3443 dwarf2_per_cu_data to dwarf2_cu.
3444 (dwarf2_fetch_die_loc_sect_off): Update.
3445 (dwarf2_fetch_constant_bytes): Update.
3446 (dwarf2_fetch_die_type_sect_off): Update.
3447
3448 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3449
3450 * dwarf2/read.c (process_full_comp_unit,
3451 process_full_type_unit): Remove per_cu, per_objfile paramters.
3452 Add dwarf2_cu parameter.
3453 (process_queue): Update.
3454
3455 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3456
3457 * dwarf2/read.c (create_cu_from_index_list): Replace
3458 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3459 (create_cus_from_index_list): Likewise.
3460 (create_cus_from_index): Likewise.
3461 (create_signatured_type_table_from_index): Likewise.
3462 (create_cus_from_debug_names_list): Likewise.
3463 (create_cus_from_debug_names): Likewise.
3464 (dwarf2_read_gdb_index): Update.
3465 (dwarf2_read_debug_names): Update.
3466
3467 2020-05-27 Tom Tromey <tom@tromey.com>
3468 Simon Marchi <simon.marchi@efficios.com>
3469
3470 * dwarf2/read.h (struct dwarf2_per_objfile)
3471 <get_type_for_signatured_type, set_type_for_signatured_type>:
3472 New methods.
3473 <m_type_map>: New member.
3474 (struct signatured_type) <type>: Remove.
3475 * dwarf2/read.c
3476 (dwarf2_per_objfile::get_type_for_signatured_type,
3477 dwarf2_per_objfile::set_type_for_signatured_type): New.
3478 (get_signatured_type): Use new methods.
3479
3480 2020-05-27 Tom Tromey <tom@tromey.com>
3481 Simon Marchi <simon.marchi@efficios.com>
3482
3483 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3484 (struct dwarf2_per_objfile) <type_units>: New member.
3485 <get_type_unit_group_unshareable>: New method.
3486 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3487 num_symtabs, symtabs>: Remove; move to
3488 type_unit_group_unshareable.
3489 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3490 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3491 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3492
3493 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3494
3495 * dwarf2/read.h (struct dwarf2_per_cu_data):
3496 <dwarf2_per_objfile>: Remove.
3497 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3498 dwarf2_per_objfile.
3499 (create_signatured_type_table_from_index): Likewise.
3500 (create_signatured_type_table_from_debug_names): Likewise.
3501 (create_debug_type_hash_table): Likewise.
3502 (fill_in_sig_entry_from_dwo_entry): Likewise.
3503 (create_type_unit_group): Likewise.
3504 (read_comp_units_from_section): Likewise.
3505 (create_cus_hash_table): Likewise.
3506
3507 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3508
3509 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3510 dwarf2_per_cu_data::dwarf2_per_objfile.
3511 (compute_compunit_symtab_includes): Likewise.
3512 (dwarf2_cu::start_symtab): Likewise.
3513
3514 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3515
3516 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3517 parameter.
3518 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3519 (read_namespace_alias): Update.
3520 (lookup_die_type): Update.
3521 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3522 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3523 Update.
3524 (disassemble_dwarf_expression): Update.
3525
3526 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3527
3528 * dwarf2/read.h (struct dwarf2_queue_item): Add
3529 dwarf2_per_objfile parameter, assign new parameter.
3530 <per_objfile>: New field.
3531 * dwarf2/read.c (free_one_cached_comp_unit): Add
3532 dwarf2_per_objfile parameter.
3533 (queue_comp_unit): Likewise.
3534 (dw2_do_instantiate_symtab): Update.
3535 (process_psymtab_comp_unit): Update.
3536 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3537 (process_imported_unit_die): Update.
3538 (queue_and_load_dwo_tu): Update.
3539 (follow_die_offset): Update.
3540 (follow_die_sig_1): Update.
3541
3542 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3543
3544 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3545 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3546 (read_call_site_scope): Assign per_objfile.
3547 (dwarf2_per_cu_data::objfile): Remove.
3548 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3549 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3550 dwarf2_per_objfile parameter.
3551 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3552 dwarf2_per_objfile parameter.
3553 (dwarf_expr_reg_to_entry_parameter): Add output
3554 dwarf2_per_objfile parameter.
3555 (locexpr_get_frame_base): Update.
3556 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3557 <push_dwarf_reg_entry_value>: Update.
3558 <call_site_to_target_addr>: Update.
3559 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3560 parameter.
3561 (value_of_dwarf_reg_entry): Update.
3562 (rw_pieced_value): Update.
3563 (indirect_synthetic_pointer): Update.
3564 (dwarf2_evaluate_property): Update.
3565 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3566 parameter.
3567 (locexpr_read_variable): Update.
3568 (locexpr_get_symbol_read_needs): Update.
3569 (loclist_read_variable): Update.
3570
3571 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3572
3573 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3574 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3575 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3576 parameter.
3577 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3578 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3579 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3580 parameter.
3581 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3582 sect_variable_value): Add dwarf2_per_objfile parameter.
3583 (class dwarf_evaluate_loc_desc) <dwarf_call,
3584 dwarf_variable_value>: Update.
3585 (fetch_const_value_from_synthetic_pointer): Add
3586 dwarf2_per_objfile parameter.
3587 (fetch_const_value_from_synthetic_pointer): Update.
3588 (coerced_pieced_ref): Update.
3589 (class symbol_needs_eval_context) <dwarf_call,
3590 dwarf_variable_value>: Update.
3591 (dwarf2_compile_expr_to_ax): Update.
3592
3593 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3594
3595 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3596 parameter.
3597 (dwarf2_evaluate_loc_desc_full): Update.
3598
3599 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3600
3601 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3602 parameter.
3603 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3604 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3605 dwarf2_per_objfile parameter.
3606 (decode_debug_loc_dwo_addresses): Likewise.
3607 (dwarf2_find_location_expression): Update.
3608 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3609 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3610 parameter.
3611 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3612 parameter.
3613 (locexpr_describe_location_1): Likewise.
3614 (locexpr_describe_location): Update.
3615
3616 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3617
3618 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3619 Remove.
3620 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3621 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3622 (dwarf2_compile_property_to_c): Update.
3623 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3624 use text offset from objfile.
3625 (locexpr_tracepoint_var_ref): Update.
3626 (locexpr_generate_c_location): Update.
3627 (loclist_describe_location): Update.
3628 (loclist_tracepoint_var_ref): Update.
3629 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3630 dwarf2_per_objfile parameter.
3631 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3632 use text offset from objfile.
3633 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3634
3635 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3636
3637 * dwarf2/expr.h (struct dwarf_expr_context)
3638 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3639 <offset>: Remove.
3640 <per_objfile>: New member.
3641 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3642 dwarf2_per_objfile parameter. Don't set offset, set
3643 per_objfile.
3644 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3645 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3646 a dwarf2_per_objfile object instead of an offset.
3647 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3648 constructor.
3649 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3650 to dwarf2_expr_executor constructor. Don't set offset.
3651 (dwarf2_fetch_cfa_info): Update.
3652 (struct dwarf2_frame_cache) <text_offset>: Remove.
3653 <per_objfile>: New field.
3654 (dwarf2_frame_cache): Update.
3655 (dwarf2_frame_prev_register): Update.
3656 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3657 <dwarf_evaluate_loc_desc>: Add constructor.
3658 (dwarf2_evaluate_loc_desc_full): Update.
3659 (dwarf2_locexpr_baton_eval): Update.
3660 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3661 Add constructor.
3662 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3663
3664 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3665
3666 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3667 addr_sized_int_type>: Move to dwarf2_cu.
3668 <int_type>: Move to dwarf2_per_objfile.
3669 (struct dwarf2_per_objfile) <int_type>: Move here.
3670 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3671 addr_sized_int_type>: Move here.
3672 (read_func_scope): Update.
3673 (read_array_type): Update.
3674 (read_tag_string_type): Update.
3675 (attr_to_dynamic_prop): Update.
3676 (dwarf2_per_cu_data::int_type): Rename to...
3677 (dwarf2_per_objfile::int_type): ... this.
3678 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3679 (dwarf2_cu::addr_sized_int_type): ... this.
3680 (read_subrange_type): Update.
3681 (dwarf2_per_cu_data::addr_type): Rename to...
3682 (dwarf2_cu::addr_type): ... this.
3683 (set_die_type): Update.
3684
3685 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3686
3687 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3688 data through per_cu->cu.
3689
3690 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3691
3692 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3693 dwarf2_per_cu_data parameter fo dwarf2_cu.
3694 (lookup_dwo_type_unit): Likewise.
3695 (read_cutu_die_from_dwo): Likewise.
3696 (lookup_dwo_unit): Likewise.
3697 (open_and_init_dwo_file): Likewise.
3698 (lookup_dwo_cutu): Likewise.
3699 (lookup_dwo_comp_unit): Likewise.
3700 (lookup_dwo_type_unit): Likewise.
3701 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3702 (cutu_reader::cutu_reader): Update.
3703
3704 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3705
3706 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3707 parameter.
3708 (process_full_type_unit): Likewise.
3709 (process_queue): Update.
3710
3711 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * dwarf2/read.c (recursively_compute_inclusions): Add
3714 dwarf2_per_objfile parameter.
3715 (compute_compunit_symtab_includes): Likewise.
3716 (process_cu_includes): Update.
3717
3718 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3721 parameter.
3722 (create_type_unit_group): Update.
3723 (process_psymtab_comp_unit_reader): Update.
3724 (build_type_psymtabs_reader): Update.
3725
3726 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3727
3728 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3729 object through m_this_cu->cu.
3730
3731 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3732
3733 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3734 the info parameter.
3735 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3736
3737 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3738
3739 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3740 per_objfile parameter.
3741 (load_full_type_unit): Add per_objfile parameter.
3742 (read_signatured_type): Likewise.
3743 (load_full_comp_unit): Likewise.
3744 (load_cu): Likewise.
3745 (dw2_do_instantiate_symtab): Likewise.
3746 (dw2_get_file_names): Likewise.
3747 (dw2_map_symtabs_matching_filename): Update.
3748 (dw_expand_symtabs_matching_file_matcher): Update.
3749 (dw2_map_symbol_filenames): Update.
3750 (process_psymtab_comp_unit): Add per_objfile parameter.
3751 (build_type_psymtabs_1): Update.
3752 (process_skeletonless_type_unit): Update.
3753 (dwarf2_build_psymtabs_hard): Update.
3754 (load_partial_comp_unit): Add per_objfile parameter.
3755 (scan_partial_symbols): Update.
3756 (load_full_comp_unit): Add per_objfile parameter.
3757 (process_imported_unit_die): Update.
3758 (create_cus_hash_table): Update.
3759 (find_partial_die): Update.
3760 (dwarf2_read_addr_index): Update.
3761 (follow_die_offset): Update.
3762 (dwarf2_fetch_die_loc_sect_off): Update.
3763 (dwarf2_fetch_constant_bytes): Update.
3764 (dwarf2_fetch_die_type_sect_off): Update.
3765 (follow_die_sig_1): Update.
3766 (load_full_type_unit): Add per_objfile parameter.
3767 (read_signatured_type): Likewise.
3768
3769 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3770
3771 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3772 of objfile_name.
3773
3774 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3775
3776 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3777 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3778 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3779 field.
3780 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3781 (create_cus_from_index): Update.
3782 (dwarf2_read_gdb_index): Update.
3783 (create_cus_from_debug_names): Update.
3784 (dwarf2_read_debug_names): Update.
3785 (get_abbrev_section_for_cu): Update.
3786 (create_all_comp_units): Update.
3787 (read_attribute_value): Update.
3788 (get_debug_line_section): Update.
3789 * dwarf2/index-cache.c (index_cache::store): Update.
3790 * dwarf2/index-write.c (save_gdb_index_command): Update.
3791 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3792
3793 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3794
3795 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3796 member.
3797 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3798 dwarf2_per_cu_data::per_bfd.
3799 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3800 (create_type_unit_group): Likewise.
3801 (queue_comp_unit): Remove reference to
3802 per_cu->dwarf2_per_objfile.
3803 (maybe_queue_comp_unit): Likewise.
3804 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3805 (create_cus_hash_table): Assign new field.
3806
3807 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3808
3809 * dwarf2/read.c: Replace
3810 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3811 dwarf2_cu->per_objfile throughout.
3812
3813 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3814
3815 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3816 parameter, don't use per_cu->dwarf2_per_objfile.
3817 (dw2_instantiate_symtab): Likewise.
3818 (dw2_find_last_source_symtab): Update.
3819 (dw2_map_expand_apply): Update.
3820 (dw2_lookup_symbol): Update.
3821 (dw2_expand_symtabs_for_function): Update.
3822 (dw2_expand_all_symtabs): Update.
3823 (dw2_expand_symtabs_with_fullname): Update.
3824 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3825 don't use per_cu->dwarf2_per_objfile.
3826 (dw2_expand_marked_cus): Update.
3827 (dw2_find_pc_sect_compunit_symtab): Update.
3828 (dw2_debug_names_lookup_symbol): Update.
3829 (dw2_debug_names_expand_symtabs_for_function): Update.
3830 (dw2_debug_names_map_matching_symbols): Update.
3831 (dwarf2_psymtab::expand_psymtab): Update.
3832
3833 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3834
3835 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3836 <per_objfile>: New member.
3837 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3838 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3839 call to dwarf2_cu.
3840 (cutu_reader::cutu_reader): Update.
3841 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3842
3843 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3844
3845 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3846 struct dwarf2_per_objfile.
3847 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3848 dwarf2_per_bfd.
3849 * dwarf2/read.c (set_die_type): Update.
3850 (get_die_type_at_offset): Update.
3851
3852 2020-05-27 Tom Tromey <tom@tromey.com>
3853 Simon Marchi <simon.marchi@efficios.com>
3854
3855 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3856 method.
3857 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3858 get_symtab, set_symtab>: New methods.
3859 <m_symtabs>: New field.
3860 (struct dwarf2_psymtab): Derive from partial_symtab.
3861 <readin_p, get_compunit_symtab>: Declare methods.
3862 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3863 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3864 New methods.
3865 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3866 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3867 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3868 (dw2_symtab_iter_next, dw2_print_stats)
3869 (dw2_expand_symtabs_with_fullname)
3870 (dw2_expand_symtabs_matching_one)
3871 (dw_expand_symtabs_matching_file_matcher)
3872 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3873 (dw2_debug_names_iterator::next)
3874 (dw2_debug_names_map_matching_symbols)
3875 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3876 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3877 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3878 New methods.
3879 (get_compunit_symtab, process_full_comp_unit)
3880 (process_full_type_unit): Update.
3881 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3882
3883 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3884
3885 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3886 then introduce a new dwarf2_per_objfile type.
3887 <read_line_string>: Move to the new dwarf2_per_objfile type.
3888 <objfile>: Likewise.
3889 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3890 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3891 dwarf2_per_objfile->per_bfd.
3892 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3893 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3894 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3895 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3896 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3897 (dwarf2_per_objfile::locate_sections): Rename to...
3898 (dwarf2_per_bfd::locate_sections): ... this.
3899 (dwarf2_per_objfile::get_cutu): Rename to...
3900 (dwarf2_per_bfd::get_cutu): ... this.
3901 (dwarf2_per_objfile::get_cu): Rename to...
3902 (dwarf2_per_bfd::get_cu): ... this.
3903 (dwarf2_per_objfile::get_tu): Rename to...
3904 (dwarf2_per_bfd::get_tu): ... this.
3905 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3906 (dwarf2_per_bfd::allocate_per_cu): ... this.
3907 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3908 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3909 (get_gdb_index_contents_ftype): Change parameter from
3910 dwarf2_per_objfile to dwarf2_per_bfd.
3911 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3912 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3913
3914 2020-05-27 Tom Tromey <tom@tromey.com>
3915 Simon Marchi <simon.marchi@efficios.com>
3916
3917 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3918 (allocate_piece_closure): Set "per_objfile" member.
3919 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3920 (locexpr_describe_location, loclist_describe_location): Use new
3921 member.
3922 * dwarf2/read.c (read_call_site_scope)
3923 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3924 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3925 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3926 handle_data_member_location): Set per_objfile member.
3927 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3928 member.
3929 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3930
3931 2020-05-27 Tom Tromey <tom@tromey.com>
3932
3933 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3934 allocate_signatured_type>: Declare new methods.
3935 <m_num_psymtabs>: New member.
3936 (struct dwarf2_per_cu_data) <index>: New member.
3937 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3938 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3939 (create_cu_from_index_list): Use allocate_per_cu.
3940 (create_signatured_type_table_from_index)
3941 (create_signatured_type_table_from_debug_names)
3942 (create_debug_type_hash_table, add_type_unit)
3943 (read_comp_units_from_section): Use allocate_signatured_type.
3944
3945 2020-05-27 Tom Tromey <tom@tromey.com>
3946
3947 * psymtab.c (partial_map_expand_apply)
3948 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3949 (psym_lookup_global_symbol_language)
3950 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3951 (psym_print_stats, psym_expand_symtabs_for_function)
3952 (psym_map_symbol_filenames, psym_map_matching_symbols)
3953 (psym_expand_symtabs_matching)
3954 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3955 (maintenance_check_psymtabs): Update.
3956 * psympriv.h (struct partial_symtab) <readin_p,
3957 get_compunit_symtab>: Add objfile parameter.
3958 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3959 Likewise.
3960 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3961 get_compunit_symtab>: Likewise.
3962 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3963
3964 2020-05-27 Tom Tromey <tom@tromey.com>
3965
3966 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3967 member.
3968 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3969 (create_cu_from_index_list)
3970 (create_signatured_type_table_from_index)
3971 (create_signatured_type_table_from_debug_names)
3972 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3973 (dwarf2_create_include_psymtab)
3974 (create_debug_type_hash_table, add_type_unit)
3975 (create_type_unit_group, read_comp_units_from_section)
3976 (dwarf2_compute_name, create_cus_hash_table)
3977 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3978 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3979 obstack.
3980 (dw2_get_real_path): Likewise. Change argument to
3981 dwarf2_per_objfile.
3982
3983 2020-05-27 Luis Machado <luis.machado@linaro.org>
3984
3985 PR tdep/26000
3986 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3987 for ldrd (immediate).
3988
3989 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3990
3991 * command.h: Add comment giving the name of class_tui.
3992 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3993 create the fake command for the help for class_tui.
3994
3995 2020-05-26 Tom Tromey <tromey@adacore.com>
3996
3997 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3998 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3999 (val_atr): New function.
4000 (value_val_atr): Use it.
4001 * ada-valprint.c (print_optional_low_bound): Change low bound
4002 handling for enums.
4003 (val_print_packed_array_elements): Don't call discrete_position.
4004 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4005 discrete_position for enum types.
4006 * language.c (default_print_array_index): Change type.
4007 * language.h (struct language_defn) <la_print_array_index>: Add
4008 index_type parameter, change type of index_value.
4009 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4010 (default_print_array_index): Update.
4011 * valprint.c (maybe_print_array_index): Don't call
4012 value_from_longest. Update.
4013 (value_print_array_elements): Don't call discrete_position.
4014
4015 2020-05-26 Tom Tromey <tromey@adacore.com>
4016
4017 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4018 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4019
4020 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4021
4022 PR gdb/13519
4023 * avr-tdep.c (avr_integer_to_address): Return data or code
4024 address accordingly to the second 'type' argument of the
4025 function.
4026
4027 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4028
4029 * infcmd.c, inferior.h: (construct_inferior_arguments):
4030 Moved function from here to gdbsupport/common-inferior.{h,cc}
4031
4032 2020-05-23 Tom Tromey <tom@tromey.com>
4033
4034 Revert commit eca1f90c:
4035 * NEWS: Remove entry for completion styling.
4036 * completer.c (_rl_completion_prefix_display_length): Move
4037 declaration later.
4038 (gdb_fnprint): Revert.
4039 (gdb_display_match_list_1): Likewise.
4040 * cli/cli-style.c (completion_prefix_style)
4041 (completion_difference_style, completion_suffix_style): Remove.
4042 (_initialize_cli_style): Revert.
4043 * cli/cli-style.h (completion_prefix_style)
4044 (completion_difference_style, completion_suffix_style): Don't
4045 declare.
4046
4047 2020-05-24 Pedro Alves <palves@redhat.com>
4048
4049 * symtab.c (completion_list_add_name): Return boolean indication
4050 of whether the symbol matched.
4051 (completion_list_add_symbol): Don't try to remove C++ aliases if
4052 the symbol didn't match in the first place.
4053 * symtab.h (completion_list_add_name): Return bool.
4054
4055 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4056
4057 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4058 type::field.
4059
4060 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4061
4062 GDB 9.2 released.
4063
4064 2020-05-23 Tom Tromey <tom@tromey.com>
4065
4066 * NEWS: Add entry for completion styling.
4067 * completer.c (_rl_completion_prefix_display_length): Move
4068 declaration earlier.
4069 (gdb_fnprint): Use completion_style.
4070 (gdb_display_match_list_1): Likewise.
4071 * cli/cli-style.c (completion_prefix_style)
4072 (completion_difference_style, completion_suffix_style): New
4073 globals.
4074 (_initialize_cli_style): Register new globals.
4075 * cli/cli-style.h (completion_prefix_style)
4076 (completion_difference_style, completion_suffix_style): Declare.
4077
4078 2020-05-23 Pedro Alves <palves@redhat.com>
4079
4080 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4081 (parse_escape): Use ISDIGIT instead of isdigit.
4082 (puts_debug): Use gdb_isprint instead of isprint.
4083 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4084 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4085 ISSPACE instead of isspace.
4086 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4087 instead of isspace.
4088 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4089 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4090 instead of isxdigit and ISDIGIT instead of isdigit.
4091
4092 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * gdbtypes.h (struct type) <field>: New method.
4095 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4096 or type::field.
4097
4098 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4099
4100 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4101 (TYPE_FIELDS): Use type::fields. Change all call sites that
4102 modify the propery to use type::set_fields instead.
4103
4104 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4105
4106 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4107 type::num_fields instead.
4108
4109 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4110
4111 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4112 methods.
4113 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4114 that modify the number of fields to use type::set_num_fields
4115 instead.
4116
4117 2020-05-22 Tom Tromey <tromey@adacore.com>
4118
4119 * compile/compile-object-load.h (munmap_list_free): Don't
4120 declare.
4121
4122 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * annotate.c (annotate_source_line): Update return type, add call
4125 to update current symtab and line.
4126 * annotate.h (annotate_source_line): Update return type, and
4127 extend header comment.
4128 * source.c (info_line_command): Check annotation_level before
4129 calling annotate_source_line.
4130 * stack.c (print_frame_info): If calling annotate_source_line
4131 returns true, then don't print any other source line information.
4132
4133 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4134
4135 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4136
4137 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4138
4139 * coffread.c (patch_type): Remove NULL check before xfree.
4140 * corefile.c (set_gnutarget): Likewise.
4141 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4142 * exec.c (build_section_table): Likewise.
4143 * remote.c (remote_target::pass_signals): Likewise.
4144 * utils.c (n_spaces): Likewise.
4145 * cli/cli-script.c (document_command): Likewise.
4146 * i386-windows-tdep.c (core_process_module_section): Likewise.
4147 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4148
4149 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4150
4151 * symfile.c (reread_symbols): Clear objfile's section_offsets
4152 vector and section indices, re-compute them by calling
4153 sym_offsets.
4154
4155 2020-05-20 Tom Tromey <tromey@adacore.com>
4156
4157 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4158 (desc_one_bound, desc_index_type): Compute field name.
4159
4160 2020-05-20 Tom de Vries <tdevries@suse.de>
4161
4162 PR symtab/25833
4163 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4164
4165 2020-05-20 Alan Modra <amodra@gmail.com>
4166
4167 PR 25993
4168 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4169 bfd_set_filename.
4170 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4171 passed to bfd_set_filename.
4172 * symfile-mem.c (add_vsyscall_page): Likewise for string
4173 passed to symbol_file_add_from_memory.
4174 (symbol_file_add_from_memory): Make name param a const char* and
4175 don't strdup.
4176
4177 2020-05-20 Alan Modra <amodra@gmail.com>
4178
4179 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4180 rather than accessing bfd->filename directly.
4181 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4182 and use bfd_section_name.
4183 * dwarf2/frame.c (decode_frame_entry): Likewise.
4184 * exec.c (exec_set_section_address): Likewise.
4185 * solib-aix.c (solib_aix_bfd_open): Likewise.
4186 * stap-probe.c (get_stap_base_address): Likewise.
4187 * symfile.c (reread_symbols): Likewise.
4188
4189 2020-05-19 Tom Tromey <tromey@adacore.com>
4190
4191 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4192
4193 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4194
4195 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4196
4197 2020-05-19 Pedro Alves <palves@redhat.com>
4198
4199 * NEWS (set exec-file-mismatch): Adjust entry.
4200 * exec.c: Include "build-id.h".
4201 (validate_exec_file): Try to match build IDs instead of filenames.
4202 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4203 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4204 and pass down 'warn_if_slow'.
4205 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4206 gdb_bfd_open_closure to pass it down.
4207 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4208
4209 2020-05-19 Pedro Alves <palves@redhat.com>
4210
4211 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4212 * target.c (target_fileio_open_1): Rename to target_fileio_open
4213 and make extern. Use bool.
4214 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4215 (target_fileio_read_alloc_1): Adjust.
4216 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4217 (target_fileio_open_warn_if_slow): Delete declaration.
4218
4219 2020-05-19 Pedro Alves <palves@redhat.com>
4220
4221 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4222 Adjust all callers.
4223
4224 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4225
4226 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4227 whether disp is negative.
4228
4229 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4230
4231 * symfile.h (struct symfile_segment_data)
4232 <~symfile_segment_data>: Remove.
4233 <segment_info>: Change to std::vector.
4234 * symfile.c (default_symfile_segments): Update.
4235 * elfread.c (elf_symfile_segments): Update.
4236
4237 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4238
4239 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4240 <segments>: New.
4241 <segment_bases, segment_sizes>: Remove.
4242 * symfile.c (default_symfile_segments): Update.
4243 * elfread.c (elf_symfile_segments): Update.
4244 * remote.c (remote_target::get_offsets): Update.
4245 * solib-target.c (solib_target_relocate_section_addresses):
4246 Update.
4247
4248 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4249
4250 * symfile.h (struct symfile_segment_data): Initialize fields.
4251 <~symfile_segment_data>: Add.
4252 (symfile_segment_data_up): New.
4253 (struct sym_fns) <sym_segments>: Return a
4254 symfile_segment_data_up.
4255 (default_symfile_segments): Return a symfile_segment_data_up.
4256 (free_symfile_segment_data): Remove.
4257 (get_symfile_segment_data): Return a symfile_segment_data_up.
4258 * symfile.c (default_symfile_segments): Likewise.
4259 (get_symfile_segment_data): Likewise.
4260 (free_symfile_segment_data): Remove.
4261 (symfile_find_segment_sections): Update.
4262 * elfread.c (elf_symfile_segments): Return a
4263 symfile_segment_data_up.
4264 * remote.c (remote_target::get_offsets): Update.
4265 * solib-target.c (solib_target_relocate_section_addresses):
4266 Update.
4267 * symfile-debug.c (debug_sym_segments): Return a
4268 symfile_segment_data_up.
4269
4270 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4271
4272 PR build/25981
4273 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4274 Hardcode register numbers.
4275
4276 PR build/25981
4277 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4278 procfs_find_LDT_entry): Remove.
4279 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4280 procfs_find_LDT_entry): Remove.
4281 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4282 Remove.
4283
4284 2020-05-17 Pedro Alves <palves@redhat.com>
4285 Andrew Burgess <andrew.burgess@embecosm.com>
4286 Keno Fischer <keno@juliacomputing.com>
4287
4288 PR gdb/25741
4289 * breakpoint.c (build_target_condition_list): Update comments.
4290 (build_target_command_list): Update comments and skip matching
4291 locations.
4292 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4293 a separate function. Simplify "set breakpoint auto-hw off"
4294 handling.
4295 (insert_breakpoints): Update comment.
4296 (tracepoint_locations_match): New parameter. For breakpoints,
4297 compare location types too, if the caller wants to.
4298 (handle_automatic_hardware_breakpoints): New functions.
4299 (bp_location_is_less_than): Also sort by location type and
4300 hardware breakpoint length.
4301 (update_global_location_list): Handle "set breakpoint auto-hw on"
4302 here.
4303 (update_breakpoint_locations): Ask breakpoint_locations_match to
4304 ignore location types.
4305
4306 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4307
4308 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4309 type::name instead.
4310
4311 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4312
4313 * gdbtypes.h (struct type) <name, set_name>: New methods.
4314 (TYPE_CODE): Use type::name. Change all call sites used to set
4315 the name to use type::set_name instead.
4316
4317 2020-05-16 Tom Tromey <tom@tromey.com>
4318
4319 * top.c (quit_force): Update.
4320 * infrun.c (handle_no_resumed): Update.
4321 * top.h (all_uis): New function.
4322 (ALL_UIS): Remove.
4323
4324 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4325
4326 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4327
4328 2020-05-16 Pedro Alves <palves@redhat.com>
4329
4330 * ia64-linux-nat.c
4331 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4332 Declare method.
4333 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4334
4335 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4336
4337 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4338 (sparc64_adi_info): Likewise.
4339
4340 2020-05-15 Tom Tromey <tom@tromey.com>
4341
4342 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4343 block_objfile.
4344 (lookup_objfile_from_block): Remove.
4345 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4346 (lookup_global_symbol): Use block_objfile.
4347 * symtab.h (lookup_objfile_from_block): Don't declare.
4348 * printcmd.c (clear_dangling_display_expressions): Use
4349 block_objfile.
4350 * parse.c (operator_check_standard): Use block_objfile.
4351
4352 2020-05-15 Tom Tromey <tom@tromey.com>
4353
4354 * language.c (language_alloc_type_symbol): Set
4355 SYMBOL_SECTION.
4356 * symtab.c (initialize_objfile_symbol): Remove.
4357 (allocate_symbol): Remove.
4358 (allocate_template_symbol): Remove.
4359 * dwarf2/read.c (fixup_go_packaging): Use "new".
4360 (new_symbol): Use "new".
4361 (read_variable): Don't call initialize_objfile_symbol. Use
4362 "new".
4363 (read_func_scope): Use "new".
4364 * xcoffread.c (process_xcoff_symbol): Don't call
4365 initialize_objfile_symbol.
4366 (SYMBOL_DUP): Remove.
4367 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4368 "new".
4369 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4370 (allocate_template_symbol): Don't declare.
4371 (struct symbol): Add copy constructor. Change defaults.
4372 * jit.c (finalize_symtab): Use "new".
4373 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4374 Use "new".
4375 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4376 (common_block_end): Use "new".
4377 * mdebugread.c (parse_symbol): Use "new".
4378 (new_symbol): Likewise.
4379
4380 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4381
4382 * NEWS: Mention changes to help and apropos.
4383
4384 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4385
4386 * command.h (enum command_class): Improve comments, document
4387 that class_alias is for user-defined aliases, give the class
4388 name for each class, remove unused class_xdb.
4389 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4390 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4391 by a precise class.
4392 * infcmd.c (_initialize_infcmd): Likewise.
4393 * reverse.c (_initialize_reverse): Likewise.
4394 * stack.c (_initialize_stack): Likewise.
4395 * symfile.c (_initialize_symfile): Likewise.
4396 * tracepoint.c (_initialize_tracepoint): Likewise.
4397
4398 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4399
4400 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4401 when their aliased command is traversed.
4402 (help_cmd): Add fput_command_names_styled call to
4403 output command name and aliases when command has an alias.
4404
4405 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4406
4407 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4408 * cli/cli-decode.c (help_cmd_list): Declare as static,
4409 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4410 a command together with the command.
4411 (fput_command_name_styled, fput_command_names_styled): New functions.
4412 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4413 fput_command_name_styled.
4414 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4415 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4416
4417 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4418
4419 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4420 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4421 * command.h (cmd_show_list): Likewise.
4422 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4423 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4424
4425 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4426
4427 * unittests/command-def-selftests.c (traverse_command_structure):
4428 Verify all commands of a list have the same prefix command and
4429 that only the top cmdlist commands have a null prefix.
4430
4431 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4432
4433 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4434 as prefix, not one of its aliases.
4435 (set_cmd_prefix): Remove.
4436 (do_add_cmd): Centralize the setting of the prefix of a command, when
4437 command is defined after its full chain of prefix commands.
4438 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4439 (add_setshow_cmd_full): Likewise.
4440 (update_prefix_field_of_prefixed_commands): New function.
4441 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4442 update_prefix_field_of_prefixed_commands.
4443 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4444 addresses of remote_set_cmdlist and remote_show_cmdlist given
4445 as argument, not the address of an argument.
4446 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4447 * gdb/remote.c (_initialize_remote): Likewise.
4448
4449 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4450
4451 * cli/cli-cmds.c (alias_command): Check for an existing alias
4452 using lookup_cmd_composition, as valid_command_p is too strict
4453 and forbids aliases that are the prefix of an existing alias
4454 or command.
4455 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4456 command is properly recognised as a valid command.
4457
4458 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4459
4460 * unittests/help-doc-selftests.c: Rename to
4461 unittests/command-def-selftests.c
4462 * unittests/command-def-selftests.c (help_doc_tests): Update some
4463 comments.
4464 (command_structure_tests, traverse_command_structure): New namespace
4465 and function.
4466 (command_structure_invariants_tests): New function.
4467 (_initialize_command_def_selftests) Renamed from
4468 _initialize_help_doc_selftests, register command_structure_invariants
4469 selftest.
4470
4471 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4472
4473 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4474 an alias of 'show'.
4475
4476 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4477
4478 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4479 ada_is_fixed_point_type. Update all callers.
4480 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4481 all callers.
4482 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4483 Update all callers.
4484 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4485 print_fixed_point_type. Update all callers.
4486 * ada-valprint.c (ada_value_print_num): Replace call to
4487 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4488
4489 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4490
4491 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4492 processors.
4493 (cpu_supports_bts): Add CV_AMD case.
4494
4495 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4496 Simon Marchi <simon.marchi@efficios.com>
4497
4498 * infrun.c (stop_all_threads): Collect multiple wait events at
4499 each pass.
4500
4501 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4502
4503 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4504 type::code instead.
4505
4506 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4507
4508 * gdbtypes.h (struct type) <code, set_code>: New methods.
4509 (TYPE_CODE): Use type::code. Change all call sites used to set
4510 the code to use type::set_code instead.
4511
4512 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4513 Tom de Vries <tdevries@suse.de>
4514 Pedro Alves <palves@redhat.com>
4515
4516 PR threads/25478
4517 * infrun.c (stop_all_threads): Do NOT ignore
4518 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4519 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4520 received.
4521 (handle_no_resumed): Remove code handling a live inferior with no
4522 threads.
4523 * remote.c (has_single_non_exited_thread): New.
4524 (remote_target::update_thread_list): Do not delete a thread if is
4525 the last thread of the process.
4526 * thread.c (thread_select): Call delete_exited_threads instead of
4527 prune_threads.
4528
4529 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4530
4531 * infrun.c (stop_all_threads): Enable/disable thread events of all
4532 targets. Move a debug message denoting the end of the function
4533 into the SCOPED_EXIT block.
4534
4535 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4536
4537 * process-stratum-target.h: Include <set>.
4538 (all_non_exited_process_targets, switch_to_target_no_thread): New
4539 function declarations.
4540 * process-stratum-target.c (all_non_exited_process_targets)
4541 (switch_to_target_no_thread): New function implementations.
4542
4543 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4544
4545 * infrun.c (handle_inferior_event): Extract out a piece of code
4546 into...
4547 (mark_non_executing_threads): ...this new function.
4548
4549 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4550
4551 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4552 use.
4553
4554 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4555
4556 * regcache.c (regcache_read_pc_protected): New function
4557 implementation that returns 0 if the PC cannot read via
4558 'regcache_read_pc'.
4559 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4560 instead of 'regcache_read_pc'.
4561 (keep_going_pass_signal): Ditto.
4562
4563 2020-05-13 Tom Tromey <tromey@adacore.com>
4564
4565 * ada-lang.c (align_value): Remove.
4566 (ada_template_to_fixed_record_type_1): Use align_up.
4567
4568 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4569
4570 * async-event.c: Update the copyright year.
4571 * async-event.h: Update the copyright year.
4572
4573 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * objfiles.h (is_addr_in_objfile,
4576 shared_objfile_contains_address_p): Return bool.
4577 * objfile.c (is_addr_in_objfile,
4578 shared_objfile_contains_address_p): Return bool.
4579
4580 2020-05-11 Tom Tromey <tromey@adacore.com>
4581
4582 * cli/cli-cmds.c (info_command): Restore.
4583 (_initialize_cli_cmds): Use add_prefix_command for "info".
4584 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4585
4586 2020-05-11 Tom Tromey <tromey@adacore.com>
4587
4588 * ada-lang.c (ada_value_primitive_field): Now public.
4589 * ada-lang.h (ada_value_primitive_field): Declare.
4590 * ada-valprint.c (print_field_values): Use
4591 ada_value_primitive_field for wrapper fields.
4592
4593 2020-05-11 Tom de Vries <tdevries@suse.de>
4594
4595 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4596 MODULE_DOMAIN.
4597
4598 2020-05-11 Tom de Vries <tdevries@suse.de>
4599
4600 PR symtab/25941
4601 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4602 with length 0, if not gdb-produced.
4603 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4604
4605 2020-05-09 Tom de Vries <tdevries@suse.de>
4606
4607 PR gdb/25955
4608 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4609 calculation.
4610
4611 2020-05-09 Tom Tromey <tom@tromey.com>
4612
4613 * top.c (server_command): Now bool.
4614 * top.h (server_command): Now bool.
4615
4616 2020-05-08 Tom Tromey <tromey@adacore.com>
4617
4618 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4619 already being processed.
4620
4621 2020-05-08 Tom Tromey <tom@tromey.com>
4622
4623 * printcmd.c (struct display) <next>: Remove.
4624 <display>: New constructor.
4625 <exp_string>: Now a std::string.
4626 <enabled_p>: Now a bool.
4627 (display_number): Move definition earlier.
4628 (displays): Rename from display_chain. Now a std::vector.
4629 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4630 (display_command): Update.
4631 (do_one_display, disable_display)
4632 (enable_disable_display_command, do_enable_disable_display):
4633 Update.
4634 (free_display): Remove.
4635 (clear_displays): Rewrite.
4636 (delete_display): Update.
4637 (map_display_numbers): Use function_view. Remove "data"
4638 parameter. Update.
4639 (do_delete_display): Remove.
4640 (undisplay_command): Update.
4641 (do_one_display, do_displays, disable_display)
4642 (info_display_command): Update.
4643 (do_enable_disable_display): Remove.
4644 (enable_disable_display_command)
4645 (clear_dangling_display_expressions): Update.
4646
4647 2020-05-08 Tom Tromey <tom@tromey.com>
4648
4649 * symtab.c (set_symbol_cache_size)
4650 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4651 (maintenance_print_symbol_cache_statistics): Update.
4652 * symmisc.c (print_symbol_bcache_statistics)
4653 (print_objfile_statistics, maintenance_print_objfiles)
4654 (maintenance_info_symtabs, maintenance_check_symtabs)
4655 (maintenance_expand_symtabs, maintenance_info_line_tables):
4656 Update.
4657 * symfile-debug.c (set_debug_symfile): Update.
4658 * source.c (forget_cached_source_info): Update.
4659 * python/python.c (gdbpy_progspaces): Update.
4660 * psymtab.c (maintenance_info_psymtabs): Update.
4661 * probe.c (parse_probes): Update.
4662 * linespec.c (iterate_over_all_matching_symtabs)
4663 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4664 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4665 * exec.c (exec_target::close): Update.
4666 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4667 * breakpoint.c (print_one_breakpoint_location)
4668 (create_longjmp_master_breakpoint)
4669 (create_std_terminate_master_breakpoint): Update.
4670 * progspace.c (program_spaces): Now a std::vector.
4671 (maybe_new_address_space): Update.
4672 (add_program_space): Remove.
4673 (program_space::program_space): Update.
4674 (remove_program_space): Update.
4675 (number_of_program_spaces): Remove.
4676 (print_program_space, update_address_spaces): Update.
4677 * progspace.h (program_spaces): Change type.
4678 (ALL_PSPACES): Remove.
4679 (number_of_program_spaces): Don't declare.
4680 (struct program_space) <next>: Remove.
4681
4682 2020-05-08 Tom Tromey <tom@tromey.com>
4683
4684 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4685 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4686 (enable_break): Update.
4687 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4688 (frv_fdpic_find_canonical_descriptor): Update.
4689 (frv_fetch_objfile_link_map): Update.
4690 * progspace.c (program_space::free_all_objfiles): Update.
4691 (program_space::solibs): New method.
4692 * progspace.h (struct program_space) <solibs>: New method.
4693 * solist.h (master_so_list): Don't declare.
4694 (ALL_SO_LIBS): Remove.
4695 * solib.h (so_list_head): Remove.
4696 (update_solib_list): Update comment.
4697 * solib.c (master_so_list): Remove.
4698 (solib_used, update_solib_list, solib_add)
4699 (info_sharedlibrary_command, clear_solib)
4700 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4701
4702 2020-05-08 Tom Tromey <tom@tromey.com>
4703
4704 * extension.c (extension_languages): Now a std::array.
4705 (ALL_EXTENSION_LANGUAGES): Remove.
4706 (get_ext_lang_defn, get_ext_lang_of_file)
4707 (eval_ext_lang_from_control_command): Update.
4708 (finish_ext_lang_initialization)
4709 (auto_load_ext_lang_scripts_for_objfile)
4710 (ext_lang_type_printers::ext_lang_type_printers)
4711 (apply_ext_lang_type_printers)
4712 (ext_lang_type_printers::~ext_lang_type_printers)
4713 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4714 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4715 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4716 (get_matching_xmethod_workers, ext_lang_colorize)
4717 (ext_lang_before_prompt): Update.
4718 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4719
4720 2020-05-08 Tom Tromey <tom@tromey.com>
4721
4722 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4723 overload.
4724 <swap_string, m_string>: Remove.
4725 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4726 Update.
4727 * stabsread.c (define_symbol, read_type): Update.
4728 * linespec.c (find_linespec_symbols): Update.
4729 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4730 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4731 * dbxread.c (read_dbx_symtab): Update.
4732 * cp-support.h (cp_canonicalize_string_full)
4733 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4734 Return unique_xmalloc_ptr.
4735 * cp-support.c (inspect_type): Update.
4736 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4737 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4738 Likewise.
4739 * c-typeprint.c (print_name_maybe_canonical): Update.
4740 * break-catch-throw.c (check_status_exception_catchpoint):
4741 Update.
4742
4743 2020-05-08 Tom de Vries <tdevries@suse.de>
4744
4745 * infrun.c (follow_fork): Copy current_line and current_symtab to
4746 child thread.
4747
4748 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4749
4750 * async-event.c (struct async_signal_handler, struct
4751 async_event_handler): Reformat, remove typedef.
4752
4753 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4754
4755 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4756 access thistype->main_type->dyn_prop_list directly.
4757
4758 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4759
4760 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4761 (remove_dyn_prop): Remove. Update all users to use
4762 type::remove_dyn_prop.
4763 * gdbtypes.c (remove_dyn_prop): Rename to...
4764 (type::remove_dyn_prop): ... this.
4765
4766 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4767
4768 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4769 (add_dyn_prop): Remove. Update all users to use
4770 type::add_dyn_prop.
4771 * gdbtypes.c (add_dyn_prop): Rename to...
4772 (type::add_dyn_prop): ... this.
4773
4774 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4775
4776 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4777 (get_dyn_prop): Remove. Update all users to use
4778 type::dyn_prop.
4779 * gdbtypes.c (get_dyn_prop): Rename to...
4780 (type::dyn_prop): ... this.
4781
4782 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4785
4786 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4787
4788 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4789 instruction, skip it if it's there.
4790
4791 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4792
4793 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4794
4795 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4796
4797 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4798 * gdbtypes.c (recursive_dump_type): Remove use of
4799 TYPE_INCOMPLETE.
4800
4801 2020-05-03 Tom Tromey <tom@tromey.com>
4802
4803 * breakpoint.c (catch_command, tcatch_command): Remove.
4804 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4805 add_show_prefix_cmd.
4806 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4807 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4808 Remove.
4809 (add_internal_problem_command): Use add_basic_prefix_cmd,
4810 add_show_prefix_cmd.
4811 * mips-tdep.c (set_mipsfpu_command): Remove.
4812 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4813 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4814 (_initialize_index_cache): Use add_basic_prefix_cmd.
4815 * memattr.c (dummy_cmd): Remove.
4816 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4817 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4818 (_initialize_tui_win): Use add_basic_prefix_cmd,
4819 add_show_prefix_cmd.
4820 * cli/cli-logging.c (set_logging_command): Remove.
4821 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4822 add_show_prefix_cmd.
4823 (show_logging_command): Remove.
4824 * target.c (target_command): Remove.
4825 (add_target): Use add_basic_prefix_cmd.
4826
4827 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4828
4829 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4830
4831 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4832
4833 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4834 info_command.
4835
4836 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4837
4838 * nbsd-nat.c (nbsd_enable_proc_events)
4839 (nbsd_nat_target::post_startup_inferior): Add.
4840 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4841 (nbsd_nat_target::update_thread_list): Rewrite.
4842 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4843 "PTRACE_LWP_CREATE".
4844 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4845
4846 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4847
4848 * stack.c (_initialize_stack): Remove duplicated creation
4849 of "frame" command and "f" alias.
4850
4851 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4852
4853 PR gdb/18706
4854 * gdbtypes.c (check_typedef): Calculate size of array of
4855 stubbed type.
4856
4857 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4858
4859 PR gdb/15559
4860 * i386-tdep.c (i386_push_dummy_call): Call
4861 i386_thiscall_push_dummy_call.
4862 (i386_thiscall_push_dummy_call): New function.
4863 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4864 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4865 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4866
4867 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4868
4869 * gdbarch.sh (do_read): Add shellcheck disable directive for
4870 warning SC2162.
4871
4872 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4873
4874 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4875 "referenced but not assigned" warning.
4876
4877 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4878
4879 * gdbarch.sh: Remove code that sets fallbackdefault.
4880
4881 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * gdbarch.sh: Use shell operators && and || instead of
4884 -a and -o.
4885
4886 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * gdbarch.sh: Use $(...) instead of `...`.
4889
4890 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * gdbarch.sh: Use double quotes around variables.
4893
4894 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4895
4896 * gdbarch.sh: Use %s with printf, instead of variables in the
4897 format string.
4898
4899 2020-04-29 Tom Tromey <tromey@adacore.com>
4900
4901 PR ada/25875:
4902 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4903 type fields here.
4904 (read_enumeration_type): Call
4905 update_enumeration_type_from_children later. Update comments.
4906 (process_enumeration_scope): Don't create type fields.
4907
4908 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4909
4910 * nbsd-tdep.c: Include "xml-syscall.h".
4911 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4912
4913 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4914
4915 * nbsd-nat.c: Include "sys/wait.h".
4916 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4917 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4918 (nbsd_nat_target::remove_exec_catchpoint)
4919 (nbsd_nat_target::set_syscall_catchpoint): Add.
4920 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4921 (nbsd_nat_target::insert_exec_catchpoint)
4922 (nbsd_nat_target::remove_exec_catchpoint)
4923 (nbsd_nat_target::set_syscall_catchpoint): Add.
4924 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4925 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4926 `nbsd_get_syscall_number'.
4927
4928 2020-04-29 Tom Tromey <tom@tromey.com>
4929
4930 * stack.c (print_block_frame_labels): Remove.
4931
4932 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4933
4934 PR gdb/17320
4935 * ada-valprint.c (val_print_packed_array_elements): Move array
4936 end bracket to new line.
4937 (ada_val_print_string): Remove extra spaces before first array
4938 element.
4939 * c-valprint.c (c_value_print_array): Likewise.
4940 * m2-valprint.c (m2_print_array_contents): Likewise.
4941 (m2_value_print_inner): Likewise.
4942 * p-valprint.c (pascal_value_print_inner): Likewise.
4943 * valprint.c (generic_val_print_array): Likewise.
4944 (value_print_array_elements): Move first array element and array
4945 end bracket to new line.
4946
4947 2020-04-29 Tom de Vries <tdevries@suse.de>
4948
4949 PR symtab/25889
4950 * linespec.c (find_method): Fix ix calculation.
4951
4952 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4953
4954 * syscalls/update-netbsd.sh: New file.
4955 * syscalls/netbsd.xml: Regenerate.
4956 * data-directory/Makefile.in: Register `netbsd.xml' in
4957 `SYSCALLS_FILES'.
4958
4959 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * syscalls/update-freebsd.sh: Add double quotes.
4962
4963 2020-04-28 Tom Tromey <tom@tromey.com>
4964
4965 * NEWS: Update.
4966 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4967 (cmdpy_init): Allow class_tui.
4968
4969 2020-04-28 Mark Williams <mark@myosotissp.com>
4970
4971 PR gdb/24480
4972 * dwarf2read.c: Add missing assingments to list_in_scope when
4973 start_symtab was already called.
4974
4975 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4976
4977 PR gdb/25881
4978 * dwarf2/read.c (offset_map_type): Use
4979 gdb:hash_enum<sect_offset> as hash function.
4980
4981 2020-04-28 Tom de Vries <tdevries@suse.de>
4982
4983 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4984 with DW_AT_signature.
4985
4986 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4987
4988 * configure.ac: Remove check for fs_base/gs_base in
4989 user_regs_struct.
4990 * configure: Re-generate.
4991 * config.in: Re-generate.
4992 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4993 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4994 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4995
4996 2020-04-27 Luis Machado <luis.machado@linaro.org>
4997
4998 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4999 problematic inline frame unwinding situation.
5000 * frame.c (frame_id_computed_p): New function.
5001 * frame.h (frame_id_computed_p): New prototype.
5002
5003 2020-04-26 Tom Tromey <tom@tromey.com>
5004
5005 * command.h (enum command_class) <class_pseudo>: Remove.
5006
5007 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5008
5009 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5010 and whitespace.
5011
5012 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5013
5014 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5015 `PT_GET_PROCESS_STATE' block.
5016
5017 2020-04-24 Tom Tromey <tom@tromey.com>
5018
5019 * symtab.h (symbol_get_demangled_name): Don't declare.
5020 * symtab.c (symbol_get_demangled_name): Remove.
5021 (general_symbol_info::natural_name)
5022 (general_symbol_info::demangled_name): Update.
5023
5024 2020-04-24 Tom Tromey <tom@tromey.com>
5025
5026 PR rust/25025:
5027 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5028
5029 2020-04-24 Tom Tromey <tom@tromey.com>
5030
5031 PR symtab/12707:
5032 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5033 exists.
5034 (new_symbol): Likewise.
5035 * compile/compile-object-load.c (get_out_value_type): Use
5036 symbol_matches_search_name.
5037
5038 2020-04-24 Tom Tromey <tom@tromey.com>
5039
5040 * dwarf2/read.c (add_partial_symbol): Do not call
5041 compute_and_set_names.
5042
5043 2020-04-24 Tom Tromey <tom@tromey.com>
5044
5045 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5046 overload.
5047
5048 2020-04-24 Tom Tromey <tom@tromey.com>
5049
5050 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5051 (add_psymbol_to_list): New overload. Make old overload call new
5052 one.
5053 * psympriv.h (add_psymbol_to_list): New overload.
5054
5055 2020-04-24 Tom Tromey <tom@tromey.com>
5056
5057 * dwarf2/read.c (partial_die_info::read) <case
5058 DW_AT_linkage_name>: Use value_as_string.
5059 (dwarf2_string_attr): Use value_as_string.
5060 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5061 method.
5062 * dwarf2/attribute.c (attribute::value_as_string): New method.
5063
5064 2020-04-24 Tom Tromey <tom@tromey.com>
5065
5066 * symtab.c (general_symbol_info::natural_name)
5067 (general_symbol_info::demangled_name): Check for language_rust.
5068
5069 2020-04-24 Tom Tromey <tom@tromey.com>
5070
5071 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5072 (dwarf2_physname): ... from here.
5073 (partial_die_info::read): Add Rust "{" hack.
5074
5075 2020-04-24 Tom Tromey <tom@tromey.com>
5076
5077 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5078 method.
5079 (symbol_set_demangled_name): Don't declare.
5080 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5081 symbol_set_demangled_name.
5082 (general_symbol_info::set_language)
5083 (general_symbol_info::compute_and_set_names): Update.
5084 * minsyms.c (minimal_symbol_reader::install): Update.
5085 * dwarf2/read.c (new_symbol): Update.
5086
5087 2020-04-24 Tom Tromey <tromey@adacore.com>
5088
5089 PR python/23662:
5090 * python/py-type.c (convert_field): Handle
5091 FIELD_LOC_KIND_DWARF_BLOCK.
5092 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5093 (typy_get_dynamic): Nw function.
5094 (type_object_getset): Add "dynamic".
5095 * NEWS: Add entry.
5096
5097 2020-04-24 Tom Tromey <tromey@adacore.com>
5098
5099 * ada-typeprint.c (print_choices, print_variant_part)
5100 (print_record_field_types_dynamic): New functions.
5101 (print_record_field_types): Use print_record_field_types_dynamic.
5102
5103 2020-04-24 Tom Tromey <tromey@adacore.com>
5104
5105 * dwarf2/read.c (handle_data_member_location): New overload.
5106 (dwarf2_add_field): Use it.
5107 (decode_locdesc): Add "computed" parameter. Update comment.
5108 * gdbtypes.c (is_dynamic_type_internal): Also look for
5109 FIELD_LOC_KIND_DWARF_BLOCK.
5110 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5111 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5112 virtual base classes.
5113 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5114 FIELD_LOC_KIND_DWARF_BLOCK.
5115
5116 2020-04-24 Tom Tromey <tromey@adacore.com>
5117
5118 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5119 * gdbtypes.c (is_dynamic_type_internal): Check
5120 TYPE_HAS_DYNAMIC_LENGTH.
5121 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5122 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5123 New macros.
5124 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5125 constant.
5126
5127 2020-04-24 Tom Tromey <tromey@adacore.com>
5128
5129 * dwarf2/read.c (struct variant_field): Rewrite.
5130 (struct variant_part_builder): New.
5131 (struct nextfield): Remove "variant" field. Add "offset".
5132 (struct field_info): Add "current_variant_part" and
5133 "variant_parts".
5134 (alloc_discriminant_info): Remove.
5135 (alloc_rust_variant): New function.
5136 (quirk_rust_enum): Update.
5137 (dwarf2_add_field): Set "offset" member. Don't handle
5138 DW_TAG_variant_part.
5139 (offset_map_type): New typedef.
5140 (convert_variant_range, create_one_variant)
5141 (create_one_variant_part, create_variant_parts)
5142 (add_variant_property): New functions.
5143 (dwarf2_attach_fields_to_type): Call add_variant_property.
5144 (read_structure_type): Don't handle DW_TAG_variant_part.
5145 (handle_variant_part, handle_variant): New functions.
5146 (handle_struct_member_die): Use them.
5147 (process_structure_scope): Don't handle variant parts.
5148 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5149 (struct discriminant_info): Remove.
5150 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5151 (struct main_type) <flag_discriminated_union>: Remove.
5152 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5153 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5154 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5155 Update.
5156 * valops.c (value_union_variant): Remove.
5157 * value.h (value_union_variant): Don't declare.
5158
5159 2020-04-24 Tom Tromey <tromey@adacore.com>
5160
5161 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5162 (ada_value_primitive_packed_val): Update.
5163 * ada-valprint.c (ada_value_print_1): Update.
5164 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5165 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5166 just an address. Use evaluate_for_locexpr_baton.
5167 (dwarf2_evaluate_property): Update.
5168 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5169 array_view.
5170 * findvar.c (default_read_var_value): Update.
5171 * gdbtypes.c (compute_variant_fields_inner)
5172 (resolve_dynamic_type_internal): Update.
5173 (resolve_dynamic_type): Change type of valaddr parameter.
5174 * gdbtypes.h (resolve_dynamic_type): Update.
5175 * valarith.c (value_subscripted_rvalue): Update.
5176 * value.c (value_from_contents_and_address): Update.
5177
5178 2020-04-24 Tom Tromey <tromey@adacore.com>
5179
5180 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5181 "push_initial_value" parameter.
5182 (dwarf2_evaluate_property): Likewise.
5183 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5184
5185 2020-04-24 Tom Tromey <tromey@adacore.com>
5186
5187 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5188 (variant::matches, compute_variant_fields_recurse)
5189 (compute_variant_fields_inner, compute_variant_fields): New
5190 functions.
5191 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5192 Use resolved_type after type is made.
5193 (operator==): Add new cases.
5194 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5195 (struct discriminant_range, struct variant, struct variant_part):
5196 New.
5197 (union dynamic_prop_data) <variant_parts, original_type>: New
5198 members.
5199 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5200 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5201 constants.
5202 * value.c (unpack_bits_as_long): Now public.
5203 * value.h (unpack_bits_as_long): Declare.
5204
5205 2020-04-24 Tom Tromey <tromey@adacore.com>
5206
5207 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5208 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5209
5210 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5211
5212 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5213
5214 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5215
5216 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5217 (remove_fork_catchpoint, post_startup_inferior)
5218 (post_attach): Move...
5219 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5220 (remove_fork_catchpoint, post_startup_inferior)
5221 (post_attach): ...here.
5222 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5223 (remove_fork_catchpoint, post_startup_inferior)
5224 (post_attach): Move...
5225 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5226 (remove_fork_catchpoint, post_startup_inferior)
5227 (post_attach): ...here.
5228
5229 2020-04-24 Tom Tromey <tromey@adacore.com>
5230
5231 * nat/windows-nat.h (struct windows_thread_info)
5232 <pc_adjusted>: New member.
5233 * windows-nat.c (windows_fetch_one_register): Check
5234 pc_adjusted.
5235 (windows_nat_target::get_windows_debug_event)
5236 (windows_nat_target::wait): Set pc_adjusted.
5237
5238 2020-04-24 Tom de Vries <tdevries@suse.de>
5239
5240 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5241 Run gdb-add-index inside temp dir.
5242
5243 2020-04-23 Tom Tromey <tromey@adacore.com>
5244
5245 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5246 in loop.
5247
5248 2020-04-23 Luis Machado <luis.machado@linaro.org>
5249
5250 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5251 get_frame_register instead of gdbarch_unwind_pc.
5252
5253 2020-04-23 Tom de Vries <tdevries@suse.de>
5254
5255 * symtab.c (lookup_global_symbol): Prefer def over decl.
5256
5257 2020-04-23 Tom de Vries <tdevries@suse.de>
5258
5259 PR symtab/25807
5260 * block.c (best_symbol, better_symbol): Promote to external.
5261 * block.h (best_symbol, better_symbol): Declare.
5262 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5263 decl.
5264
5265 2020-04-23 Tom Tromey <tromey@adacore.com>
5266
5267 PR ada/25837:
5268 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5269 "const char *", not a "const std::string &".
5270 <name_and_matcher::operator==>: Update.
5271 * unittests/lookup_name_info-selftests.c: Change type of
5272 "result".
5273
5274 2020-04-23 Tom Tromey <tom@tromey.com>
5275
5276 * inferior.h (iterate_over_inferiors): Don't declare.
5277 * inferior.c (iterate_over_inferiors): Remove.
5278 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5279 Remove.
5280 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5281 use iterate_over_inferiors.
5282 (darwin_resume_inferior_it)
5283 (struct resume_inferior_threads_param)
5284 (darwin_resume_inferior_threads_it): Remove.
5285 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5286
5287 2020-04-23 Tom de Vries <tdevries@suse.de>
5288
5289 * blockframe.c (find_pc_partial_function): Use
5290 find_pc_sect_compunit_symtab rather than
5291 objfile->sf->qf->find_pc_sect_compunit_symtab.
5292
5293 2020-04-22 Tom de Vries <tdevries@suse.de>
5294
5295 PR symtab/25764
5296 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5297 in psymtabs.
5298
5299 2020-04-22 Tom de Vries <tdevries@suse.de>
5300
5301 PR symtab/25801
5302 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5303 symtabs.
5304
5305 2020-04-22 Tom de Vries <tdevries@suse.de>
5306
5307 PR symtab/25700
5308 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5309 CU if already created.
5310
5311 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5312
5313 * infrun.c (displaced_step_fixup): Switch to the event_thread
5314 before calling displaced_step_restore, not after.
5315
5316 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5317
5318 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5319 its inferior is not recorded by us.
5320 (record_btrace_target_open): Replace call to
5321 all_non_exited_threads () with call to current_inferior
5322 ()->non_exited_threads ().
5323 (record_btrace_target::stop_recording): Likewise.
5324 (record_btrace_target::close): Likewise.
5325 (record_btrace_target::wait): Likewise.
5326 (record_btrace_target::record_stop_replaying): Likewise.
5327
5328 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5329
5330 * btrace.c (btrace_enable): Throw an error on double enables and
5331 when enabling recording fails.
5332 (btrace_disable): Throw an error if the thread is not recorded.
5333
5334 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5335
5336 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5337 request if we do not have a thread_info.
5338
5339 2020-04-21 Tom de Vries <tdevries@suse.de>
5340
5341 PR gdb/25471
5342 * thread.c
5343 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5344 exception in get_frame_id.
5345
5346 2020-04-20 Tom Tromey <tromey@adacore.com>
5347
5348 * python/python.c (struct gdbpy_event): Mark move constructor as
5349 noexcept.
5350 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5351 constructor as noexcept.
5352 * completer.h (struct completion_result): Mark move constructor as
5353 noexcept.
5354 * completer.c (completion_result::completion_result): Use
5355 initialization style. Don't call reset_match_list.
5356
5357 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5358
5359 * MAINTAINERS (Write After Approval): Add myself.
5360
5361 2020-04-18 Tom Tromey <tom@tromey.com>
5362
5363 * windows-tdep.c (init_w32_command_list)
5364 (w32_prefix_command_valid): Restore.
5365 (_initialize_windows_tdep): Call init_w32_command_list.
5366
5367 2020-04-18 Tom Tromey <tom@tromey.com>
5368
5369 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5370 * value.c (value_fn_field): Update.
5371 * valops.c (find_function_in_inferior)
5372 (value_allocate_space_in_inferior): Update.
5373 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5374 Update.
5375 * tui/tui-source.c (tui_source_window::set_contents): Update.
5376 * symtab.c (lookup_global_or_static_symbol)
5377 (find_function_start_sal_1, skip_prologue_sal)
5378 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5379 * symmisc.c (dump_msymbols, dump_symtab_1)
5380 (maintenance_print_one_line_table): Update.
5381 * symfile.c (init_entry_point_info, section_is_mapped)
5382 (list_overlays_command, simple_read_overlay_table)
5383 (simple_overlay_update_1): Update.
5384 * stap-probe.c (handle_stap_probe): Update.
5385 * stabsread.c (dbx_init_float_type, define_symbol)
5386 (read_one_struct_field, read_enum_type, read_range_type): Update.
5387 * source.c (info_line_command): Update.
5388 * python/python.c (gdbpy_source_objfile_script)
5389 (gdbpy_execute_objfile_script): Update.
5390 * python/py-type.c (save_objfile_types): Update.
5391 * python/py-objfile.c (py_free_objfile): Update.
5392 * python/py-inferior.c (python_new_objfile): Update.
5393 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5394 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5395 (maintenance_check_psymtabs): Update.
5396 * printcmd.c (info_address_command): Update.
5397 * objfiles.h (struct objfile) <arch>: New method, from
5398 get_objfile_arch.
5399 (get_objfile_arch): Don't declare.
5400 * objfiles.c (get_objfile_arch): Remove.
5401 (filter_overlapping_sections): Update.
5402 * minsyms.c (msymbol_is_function): Update.
5403 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5404 (output_nondebug_symbol): Update.
5405 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5406 (mdebug_expand_psymtab): Update.
5407 * machoread.c (macho_add_oso_symfile): Update.
5408 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5409 Update.
5410 * linux-fork.c (checkpoint_command): Update.
5411 * linespec.c (convert_linespec_to_sals): Update.
5412 * jit.c (finalize_symtab): Update.
5413 * infrun.c (insert_exception_resume_from_probe): Update.
5414 * ia64-tdep.c (ia64_find_unwind_table): Update.
5415 * hppa-tdep.c (internalize_unwinds): Update.
5416 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5417 Update.
5418 * gcore.c (call_target_sbrk): Update.
5419 * elfread.c (record_minimal_symbol, elf_symtab_read)
5420 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5421 (elf_gnu_ifunc_resolve_by_got): Update.
5422 * dwarf2/read.c (create_addrmap_from_index)
5423 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5424 (read_debug_names_from_section)
5425 (process_psymtab_comp_unit_reader, add_partial_symbol)
5426 (add_partial_subprogram, process_full_comp_unit)
5427 (read_file_scope, read_func_scope, read_lexical_block_scope)
5428 (read_call_site_scope, dwarf2_ranges_read)
5429 (dwarf2_record_block_ranges, dwarf2_add_field)
5430 (mark_common_block_symbol_computed, read_tag_pointer_type)
5431 (read_tag_string_type, dwarf2_init_float_type)
5432 (dwarf2_init_complex_target_type, read_base_type)
5433 (partial_die_info::read, partial_die_info::read)
5434 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5435 (dwarf2_fetch_die_loc_sect_off): Update.
5436 * dwarf2/loc.c (dwarf2_find_location_expression)
5437 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5438 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5439 (dwarf2_loc_desc_get_symbol_read_needs)
5440 (locexpr_describe_location_piece, locexpr_describe_location_1)
5441 (loclist_describe_location): Update.
5442 * dwarf2/index-write.c (write_debug_names): Update.
5443 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5444 * dtrace-probe.c (dtrace_process_dof): Update.
5445 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5446 (process_one_symbol): Update.
5447 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5448 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5449 (coff_read_enum_type): Update.
5450 * cli/cli-cmds.c (edit_command, list_command): Update.
5451 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5452 * breakpoint.c (create_overlay_event_breakpoint)
5453 (create_longjmp_master_breakpoint)
5454 (create_std_terminate_master_breakpoint)
5455 (create_exception_master_breakpoint, get_sal_arch): Update.
5456 * block.c (block_gdbarch): Update.
5457 * annotate.c (annotate_source_line): Update.
5458
5459 2020-04-17 Tom Tromey <tromey@adacore.com>
5460
5461 * auto-load.c (show_auto_load_cmd): Remove.
5462 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5463 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5464 (maintenance_print_arc_command): Remove.
5465 * tui/tui-win.c (tui_command): Remove.
5466 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5467 * tui/tui-layout.c (tui_layout_command): Remove.
5468 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5469 * python/python.c (user_set_python, user_show_python): Remove.
5470 (_initialize_python): Use add_basic_prefix_cmd,
5471 add_show_prefix_cmd.
5472 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5473 (install_gdb_commands): Use add_basic_prefix_cmd,
5474 add_show_prefix_cmd.
5475 (info_guile_command): Remove.
5476 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5477 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5478 add_show_prefix_cmd.
5479 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5480 Remove do_set and do_show parameters.
5481 * cli/cli-style.c (set_style, show_style): Remove.
5482 (_initialize_cli_style): Use add_basic_prefix_cmd,
5483 add_show_prefix_cmd.
5484 (cli_style_option::add_setshow_commands): Remove do_set and
5485 do_show parameters.
5486 (cli_style_option::add_setshow_commands): Use
5487 add_basic_prefix_cmd, add_show_prefix_cmd.
5488 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5489 (set_style_name): Remove.
5490 * cli/cli-dump.c (dump_command, append_command): Remove.
5491 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5492 (tekhex_dump_command, binary_dump_command)
5493 (binary_append_command): Remove.
5494 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5495 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5496 (init_w32_command_list): Remove; move into ...
5497 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5498 * valprint.c (set_print, show_print, set_print_raw)
5499 (show_print_raw): Remove.
5500 (_initialize_valprint): Use add_basic_prefix_cmd,
5501 add_show_prefix_cmd.
5502 * typeprint.c (set_print_type, show_print_type): Remove.
5503 (_initialize_typeprint): Use add_basic_prefix_cmd,
5504 add_show_prefix_cmd.
5505 * record.c (set_record_command, show_record_command): Remove.
5506 (_initialize_record): Use add_basic_prefix_cmd,
5507 add_show_prefix_cmd.
5508 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5509 add_show_prefix_cmd.
5510 (info_command, show_command, set_debug, show_debug): Remove.
5511 * top.h (set_history, show_history): Don't declare.
5512 * top.c (set_history, show_history): Remove.
5513 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5514 (unset_tdesc_cmd): Remove.
5515 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5516 add_show_prefix_cmd.
5517 * symtab.c (info_module_command): Remove.
5518 (_initialize_symtab): Use add_basic_prefix_cmd.
5519 * symfile.c (overlay_command): Remove.
5520 (_initialize_symfile): Use add_basic_prefix_cmd.
5521 * sparc64-tdep.c (info_adi_command): Remove.
5522 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5523 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5524 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5525 add_show_prefix_cmd.
5526 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5527 (_initialize_serial): Use add_basic_prefix_cmd,
5528 add_show_prefix_cmd.
5529 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5530 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5531 add_show_prefix_cmd.
5532 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5533 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5534 add_show_prefix_cmd.
5535 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5536 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5537 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5538 add_show_prefix_cmd.
5539 * remote.c (remote_command, set_remote_cmd): Remove.
5540 (_initialize_remote): Use add_basic_prefix_cmd.
5541 * record-full.c (set_record_full_command)
5542 (show_record_full_command): Remove.
5543 (_initialize_record_full): Use add_basic_prefix_cmd,
5544 add_show_prefix_cmd.
5545 * record-btrace.c (cmd_set_record_btrace)
5546 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5547 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5548 (cmd_show_record_btrace_pt): Remove.
5549 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5550 add_show_prefix_cmd.
5551 * ravenscar-thread.c (set_ravenscar_command)
5552 (show_ravenscar_command): Remove.
5553 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5554 add_show_prefix_cmd.
5555 * mips-tdep.c (show_mips_command, set_mips_command)
5556 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5557 add_show_prefix_cmd.
5558 * maint.c (maintenance_command, maintenance_info_command)
5559 (maintenance_check_command, maintenance_print_command)
5560 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5561 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5562 add_show_prefix_cmd.
5563 (show_per_command_cmd): Remove.
5564 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5565 Remove.
5566 (maintenance_show_test_settings_cmd): Remove.
5567 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5568 add_show_prefix_cmd.
5569 * maint-test-options.c (maintenance_test_options_command):
5570 Remove.
5571 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5572 * macrocmd.c (macro_command): Remove
5573 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5574 * language.c (set_check, show_check): Remove.
5575 (_initialize_language): Use add_basic_prefix_cmd,
5576 add_show_prefix_cmd.
5577 * infcmd.c (unset_command): Remove.
5578 (_initialize_infcmd): Use add_basic_prefix_cmd.
5579 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5580 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5581 add_show_prefix_cmd.
5582 * go32-nat.c (go32_info_dos_command): Remove.
5583 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5584 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5585 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5586 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5587 (_initialize_frame): Use add_basic_prefix_cmd,
5588 add_show_prefix_cmd.
5589 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5590 (_initialize_dcache): Use add_basic_prefix_cmd,
5591 add_show_prefix_cmd.
5592 * cp-support.c (maint_cplus_command): Remove.
5593 (_initialize_cp_support): Use add_basic_prefix_cmd.
5594 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5595 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5596 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5597 add_basic_prefix_cmd, add_show_prefix_cmd.
5598 * breakpoint.c (save_command): Remove.
5599 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5600 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5601 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5602 add_show_prefix_cmd.
5603 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5604 (set_ada_command, show_ada_command): Remove.
5605 (_initialize_ada_language): Use add_basic_prefix_cmd,
5606 add_show_prefix_cmd.
5607 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5608
5609 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5610
5611 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5612 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5613
5614 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5615
5616 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5617 warning messages.
5618
5619 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5620
5621 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5622 import table is not at beginning of .idata section.
5623
5624 2020-04-16 Pedro Alves <palves@redhat.com>
5625
5626 * inferior.c (delete_inferior): Use delete operator directly
5627 instead of delete_program_space.
5628 * progspace.c (add_program_space): New, factored out from
5629 program_space::program_space.
5630 (remove_program_space): New, factored out from
5631 delete_program_space.
5632 (program_space::program_space): Remove intro comment. Rewrite.
5633 (program_space::~program_space): Remove intro comment. Call
5634 remove_program_space.
5635 (delete_program_space): Delete.
5636 * progspace.h (program_space::program_space): Make explicit. Move
5637 intro comment here, adjusted.
5638 (program_space::~program_space): Move intro comment here,
5639 adjusted.
5640 (delete_program_space): Remove.
5641
5642 2020-04-16 Tom Tromey <tromey@adacore.com>
5643
5644 * windows-nat.c (windows_nat::handle_access_violation): New
5645 function.
5646 * nat/windows-nat.h (handle_access_violation): Declare.
5647 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5648 windows-nat.c. Call handle_access_violation.
5649
5650 2020-04-16 Tom de Vries <tdevries@suse.de>
5651
5652 PR symtab/25791
5653 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5654 CUs without psymtab.
5655
5656 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5657
5658 * python/python.c (do_start_initialization): Don't call
5659 PyEval_InitThreads for Python 3.9 and beyond.
5660
5661 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5662
5663 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5664 thread functions.
5665 (obsd_nat_target::wait): Likewise.
5666
5667 2020-04-15 Tom Tromey <tromey@adacore.com>
5668
5669 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5670 (DEBUG_EXCEPT): Use debug_printf.
5671
5672 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5673
5674 * completer.c (class completion_tracker::completion_hash_entry)
5675 <hash_name>: New member function.
5676 (completion_tracker::discard_completions): New callback to hash a
5677 completion_hash_entry, pass this to htab_create_alloc.
5678
5679 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5680
5681 * windows-nat.c (windows_make_so): Warn rather than stopping with
5682 an error if realpath() fails.
5683
5684 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5685
5686 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5687 (nbsd_nat_target::info_proc): Add do_status.
5688
5689 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5690 Tom de Vries <tdevries@suse.de>
5691
5692 PR symtab/25718
5693 * psympriv.h (struct partial_symtab::read_symtab)
5694 (struct partial_symtab::expand_psymtab)
5695 (struct partial_symtab::read_dependencies): Update comments.
5696 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5697 read_symtab for includer.
5698 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5699 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5700 (struct dwarf2_include_psymtab::m_readin): Remove.
5701 (struct dwarf2_include_psymtab::includer): New member function.
5702 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5703
5704 2020-04-14 Tom de Vries <tdevries@suse.de>
5705
5706 PR symtab/25720
5707 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5708 with NULL symbol_matcher and lookup_name.
5709 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5710 and lookup_name.
5711 * dwarf2/read.c (dw2_expand_symtabs_matching)
5712 (dw2_debug_names_expand_symtabs_matching): Same.
5713 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5714 Make lookup_name a pointer. Update comment.
5715 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5716 lookup_name being a pointer.
5717 * symfile.c (expand_symtabs_matching): Same.
5718 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5719 * linespec.c (iterate_over_all_matching_symtabs): Same.
5720
5721 2020-04-13 Tom Tromey <tom@tromey.com>
5722
5723 * run-on-main-thread.c: Update include.
5724 * unittests/main-thread-selftests.c: Update include.
5725 * tui/tui-win.c: Update include.
5726 * tui/tui-io.c: Update include.
5727 * tui/tui-interp.c: Update include.
5728 * tui/tui-hooks.c: Update include.
5729 * top.h: Update include.
5730 * top.c: Update include.
5731 * ser-base.c: Update include.
5732 * remote.c: Update include.
5733 * remote-notif.c: Update include.
5734 * remote-fileio.c: Update include.
5735 * record-full.c: Update include.
5736 * record-btrace.c: Update include.
5737 * python/python.c: Update include.
5738 * posix-hdep.c: Update include.
5739 * mingw-hdep.c: Update include.
5740 * mi/mi-main.c: Update include.
5741 * mi/mi-interp.c: Update include.
5742 * main.c: Update include.
5743 * linux-nat.c: Update include.
5744 * interps.c: Update include.
5745 * infrun.c: Update include.
5746 * inf-loop.c: Update include.
5747 * event-top.c: Update include.
5748 * event-loop.c: Move to ../gdbsupport/.
5749 * event-loop.h: Move to ../gdbsupport/.
5750 * async-event.h: Update include.
5751 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5752
5753 2020-04-13 Tom Tromey <tom@tromey.com>
5754
5755 * tui/tui-win.c: Include async-event.h.
5756 * remote.c: Include async-event.h.
5757 * remote-notif.c: Include async-event.h.
5758 * record-full.c: Include async-event.h.
5759 * record-btrace.c: Include async-event.h.
5760 * infrun.c: Include async-event.h.
5761 * event-top.c: Include async-event.h.
5762 * event-loop.h: Move some declarations to async-event.h.
5763 * event-loop.c: Don't include ser-event.h or top.h. Move some
5764 code to async-event.c.
5765 * async-event.h: New file.
5766 * async-event.c: New file.
5767 * Makefile.in (COMMON_SFILES): Add async-event.c.
5768 (HFILES_NO_SRCDIR): Add async-event.h.
5769
5770 2020-04-13 Tom Tromey <tom@tromey.com>
5771
5772 * utils.c (flush_streams): New function.
5773 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5774
5775 2020-04-13 Tom Tromey <tom@tromey.com>
5776
5777 * event-loop.c (handle_file_event): Use warning, not
5778 printf_unfiltered.
5779
5780 2020-04-13 Tom Tromey <tom@tromey.com>
5781
5782 * event-loop.c: Include <chrono>.
5783
5784 2020-04-13 Tom Tromey <tom@tromey.com>
5785
5786 * gdb_select.h: Move to ../gdbsupport/.
5787 * event-loop.c: Update include path.
5788 * top.c: Update include path.
5789 * ser-base.c: Update include path.
5790 * ui-file.c: Update include path.
5791 * ser-tcp.c: Update include path.
5792 * guile/scm-ports.c: Update include path.
5793 * posix-hdep.c: Update include path.
5794 * ser-unix.c: Update include path.
5795 * gdb_usleep.c: Update include path.
5796 * mingw-hdep.c: Update include path.
5797 * inflow.c: Update include path.
5798 * infrun.c: Update include path.
5799 * event-top.c: Update include path.
5800
5801 2020-04-13 Tom Tromey <tom@tromey.com>
5802
5803 * configure: Rebuild.
5804 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5805
5806 2020-04-13 Tom Tromey <tom@tromey.com>
5807
5808 * event-loop.h (start_event_loop): Don't declare.
5809 * event-loop.c (start_event_loop): Move...
5810 * main.c (start_event_loop): ...here. Now static.
5811
5812 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5813
5814 * MAINTAINERS: Update my email address.
5815
5816 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5817
5818 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5819 IP_ALL.
5820
5821 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5822
5823 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5824 (nbsd_nat_target::info_proc): Add do_cmdline.
5825
5826 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5827
5828 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5829 (nbsd_nat_target::info_proc): Add do_cwd.
5830
5831 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5832
5833 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5834
5835 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5836
5837 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5838 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5839 (nbsd_nat_target::info_proc): New functions.
5840 * nbsd-nat.c (kinfo_get_vmmap): New function.
5841 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5842 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5843 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5844 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5845 functions.
5846 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5847 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5848 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5849 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5850 (KINFO_VME_FLAG_GROWS_DOWN): New.
5851
5852 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5853
5854 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5855 bit shift.
5856
5857 2020-04-10 Tom Tromey <tromey@adacore.com>
5858
5859 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5860
5861 2020-04-10 Tom Tromey <tromey@adacore.com>
5862
5863 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5864 separate debug files.
5865
5866 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5867
5868 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5869 Move to...
5870 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5871 ... here.
5872 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5873 Check for STATUS_WX86_BREAKPOINT.
5874 (windows_nat_target::wait): Same.
5875
5876 2020-04-10 Tom de Vries <tdevries@suse.de>
5877
5878 PR cli/25808
5879 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5880
5881 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5882
5883 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5884 (Write After Approval): Remove Tom de Vries.
5885
5886 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5887
5888 revert partially:
5889 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5890
5891 * buildsym.c (record_line): Fix undefined behavior and preserve
5892 lines at eof.
5893
5894 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5895
5896 * auxv.h (svr4_auxv_parse): New.
5897 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5898 and generic_auxv_parse.
5899 (svr4_auxv_parse): Add.
5900 * obsd-tdep.c: Include "auxv.h".
5901 (obsd_auxv_parse): Remove.
5902 (obsd_init_abi): Remove comment.
5903 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5904 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5905 * nbsd-tdep.c: Include "auxv.h".
5906 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5907
5908 2020-04-08 Tom Tromey <tromey@adacore.com>
5909
5910 * nat/windows-nat.h (last_wait_event): Don't declare.
5911 (wait_for_debug_event): Update comment.
5912 * nat/windows-nat.c (last_wait_event): Now static.
5913
5914 2020-04-08 Tom Tromey <tromey@adacore.com>
5915
5916 * windows-nat.c (wait_for_debug_event): Move to
5917 nat/windows-nat.c.
5918 * nat/windows-nat.h (wait_for_debug_event): Declare.
5919 * nat/windows-nat.c (wait_for_debug_event): Move from
5920 windows-nat.c. No longer static.
5921
5922 2020-04-08 Tom Tromey <tromey@adacore.com>
5923
5924 * windows-nat.c (get_windows_debug_event): Use
5925 fetch_pending_stop.
5926 * nat/windows-nat.h (fetch_pending_stop): Declare.
5927 * nat/windows-nat.c (fetch_pending_stop): New function.
5928
5929 2020-04-08 Tom Tromey <tromey@adacore.com>
5930
5931 * windows-nat.c (windows_continue): Use matching_pending_stop and
5932 continue_last_debug_event.
5933 * nat/windows-nat.h (matching_pending_stop)
5934 (continue_last_debug_event): Declare.
5935 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5936 (matching_pending_stop, continue_last_debug_event): New
5937 functions.
5938
5939 2020-04-08 Tom Tromey <tromey@adacore.com>
5940
5941 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5942 (handle_exception_result): Move to nat/windows-nat.h.
5943 (DEBUG_EXCEPTION_SIMPLE): Remove.
5944 (windows_nat::handle_ms_vc_exception): New function.
5945 (handle_exception): Move to nat/windows-nat.c.
5946 (get_windows_debug_event): Update.
5947 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5948 nat/windows-nat.c.
5949 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5950 (handle_exception_result): Move from windows-nat.c.
5951 (handle_exception): Declare.
5952 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5953 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5954 windows-nat.c.
5955
5956 2020-04-08 Tom Tromey <tromey@adacore.com>
5957
5958 * windows-nat.c (exception_count, event_count): Remove.
5959 (handle_exception, get_windows_debug_event)
5960 (do_initial_windows_stuff): Update.
5961
5962 2020-04-08 Tom Tromey <tromey@adacore.com>
5963
5964 * windows-nat.c (windows_nat::handle_load_dll)
5965 (windows_nat::handle_unload_dll): Rename. No longer static.
5966 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5967 Declare.
5968
5969 2020-04-08 Tom Tromey <tromey@adacore.com>
5970
5971 * complaints.h (stop_whining): Declare at top-level.
5972 (complaint): Don't declare stop_whining.
5973
5974 2020-04-08 Tom Tromey <tromey@adacore.com>
5975
5976 * windows-nat.c (windows_nat::handle_output_debug_string):
5977 Rename. No longer static.
5978 * nat/windows-nat.h (handle_output_debug_string): Declare.
5979
5980 2020-04-08 Tom Tromey <tromey@adacore.com>
5981
5982 * windows-nat.c (current_process_handle, current_process_id)
5983 (main_thread_id, last_sig, current_event, last_wait_event)
5984 (current_windows_thread, desired_stop_thread_id, pending_stops)
5985 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5986 (display_selectors, fake_create_process)
5987 (get_windows_debug_event): Update.
5988 * nat/windows-nat.h (current_process_handle, current_process_id)
5989 (main_thread_id, last_sig, current_event, last_wait_event)
5990 (current_windows_thread, desired_stop_thread_id, pending_stops)
5991 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5992 * nat/windows-nat.c (current_process_handle, current_process_id)
5993 (main_thread_id, last_sig, current_event, last_wait_event)
5994 (current_windows_thread, desired_stop_thread_id, pending_stops)
5995 (siginfo_er): New globals. Move from windows-nat.c.
5996
5997 2020-04-08 Tom Tromey <tromey@adacore.com>
5998
5999 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6000 (handle_load_dll): Update.
6001 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6002
6003 2020-04-08 Tom Tromey <tromey@adacore.com>
6004
6005 * windows-nat.c (enum thread_disposition_type): Move to
6006 nat/windows-nat.h.
6007 (windows_nat::thread_rec): Rename from thread_rec. No longer
6008 static.
6009 (windows_add_thread, windows_nat_target::fetch_registers)
6010 (windows_nat_target::store_registers, handle_exception)
6011 (windows_nat_target::resume, get_windows_debug_event)
6012 (windows_nat_target::get_tib_address)
6013 (windows_nat_target::thread_name)
6014 (windows_nat_target::thread_alive): Update.
6015 * nat/windows-nat.h (enum thread_disposition_type): Move from
6016 windows-nat.c.
6017 (thread_rec): Declare.
6018
6019 2020-04-08 Tom Tromey <tromey@adacore.com>
6020
6021 * windows-nat.c: Add "using namespace".
6022 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6023 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6024
6025 2020-04-08 Tom Tromey <tromey@adacore.com>
6026
6027 * nat/windows-nat.h (struct windows_thread_info): Declare
6028 destructor.
6029 * nat/windows-nat.c (~windows_thread_info): New.
6030
6031 2020-04-08 Tom Tromey <tromey@adacore.com>
6032
6033 PR gdb/22992
6034 * windows-nat.c (current_event): Update comment.
6035 (last_wait_event, desired_stop_thread_id): New globals.
6036 (struct pending_stop): New.
6037 (pending_stops): New global.
6038 (windows_nat_target) <stopped_by_sw_breakpoint>
6039 <supports_stopped_by_sw_breakpoint>: New methods.
6040 (windows_fetch_one_register): Add assertions. Adjust PC.
6041 (windows_continue): Handle pending stops. Suspend other threads
6042 when stepping. Use last_wait_event
6043 (wait_for_debug_event): New function.
6044 (get_windows_debug_event): Use wait_for_debug_event. Handle
6045 pending stops. Queue spurious stops.
6046 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6047 (windows_nat_target::kill): Use wait_for_debug_event.
6048 * nat/windows-nat.h (struct windows_thread_info)
6049 <stopped_at_software_breakpoint>: New field.
6050 * nat/windows-nat.c (windows_thread_info::resume): Clear
6051 stopped_at_software_breakpoint.
6052
6053 2020-04-08 Tom Tromey <tromey@adacore.com>
6054
6055 * windows-nat.c (enum thread_disposition_type): New.
6056 (thread_rec): Replace "get_context" parameter with "disposition";
6057 change type.
6058 (windows_add_thread, windows_nat_target::fetch_registers)
6059 (windows_nat_target::store_registers, handle_exception)
6060 (windows_nat_target::resume, get_windows_debug_event)
6061 (windows_nat_target::get_tib_address)
6062 (windows_nat_target::thread_name)
6063 (windows_nat_target::thread_alive): Update.
6064
6065 2020-04-08 Tom Tromey <tromey@adacore.com>
6066
6067 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6068 (windows_continue): Use windows_continue::resume.
6069 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6070 resume>: Declare new methods.
6071 * nat/windows-nat.c: New file.
6072 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6073
6074 2020-04-08 Tom Tromey <tromey@adacore.com>
6075
6076 * windows-nat.c (windows_add_thread, windows_delete_thread)
6077 (windows_nat_target::fetch_registers)
6078 (windows_nat_target::store_registers, fake_create_process)
6079 (windows_nat_target::resume, windows_nat_target::resume)
6080 (get_windows_debug_event, windows_nat_target::wait)
6081 (windows_nat_target::pid_to_str)
6082 (windows_nat_target::get_tib_address)
6083 (windows_nat_target::get_ada_task_ptid)
6084 (windows_nat_target::thread_name)
6085 (windows_nat_target::thread_alive): Use lwp, not tid.
6086
6087 2020-04-08 Tom Tromey <tromey@adacore.com>
6088
6089 * windows-nat.c (handle_exception)
6090 (windows_nat_target::thread_name): Update.
6091 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6092 <name>: Now unique_xmalloc_ptr.
6093
6094 2020-04-08 Tom Tromey <tromey@adacore.com>
6095
6096 * windows-nat.c (thread_rec)
6097 (windows_nat_target::fetch_registers): Update.
6098 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6099 Update comment.
6100 <debug_registers_changed, reload_context>: Now bool.
6101
6102 2020-04-08 Tom Tromey <tromey@adacore.com>
6103
6104 * windows-nat.c (windows_add_thread): Use new.
6105 (windows_init_thread_list, windows_delete_thread): Use delete.
6106 (get_windows_debug_event): Update.
6107 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6108 destructor, and initializers.
6109
6110 2020-04-08 Tom Tromey <tromey@adacore.com>
6111
6112 * windows-nat.c (struct windows_thread_info): Remove.
6113 * nat/windows-nat.h: New file.
6114
6115 2020-04-08 Tom Tromey <tromey@adacore.com>
6116
6117 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6118 (thread_rec, windows_add_thread, windows_delete_thread)
6119 (windows_continue): Update.
6120
6121 2020-04-08 Tom Tromey <tromey@adacore.com>
6122
6123 * windows-nat.c (struct windows_thread_info): Remove typedef.
6124 (thread_head): Remove.
6125 (thread_list): New global.
6126 (thread_rec, windows_add_thread, windows_init_thread_list)
6127 (windows_delete_thread, windows_continue): Update.
6128
6129 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6130
6131 * windows-tdep.h (windows_init_abi): Add comment.
6132 (cygwin_init_abi): New declaration.
6133 * windows-tdep.c: Split signal enumeration in two, one for
6134 Windows and one for Cygwin.
6135 (windows_gdb_signal_to_target): Only deal with signal of the
6136 Windows OS ABI.
6137 (cygwin_gdb_signal_to_target): New function.
6138 (windows_init_abi): Rename to windows_init_abi_common, don't set
6139 gdb_signal_to_target gdbarch method. Add new new function with
6140 this name.
6141 (cygwin_init_abi): New function.
6142 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6143 comment. Don't call windows_init_abi.
6144 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6145 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6146 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6147 i386_windows_init_abi_common, don't call windows_init_abi. Add
6148 a new function of this name.
6149 (i386_cygwin_init_abi): New function.
6150 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6151 OS ABI Cygwin.
6152
6153 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6154
6155 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6156 parameter.c.
6157 (dwarf2_read_gdb_index): Update.
6158
6159 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6160
6161 * nbsd-tdep.c: Include "objfiles.h".
6162 (nbsd_skip_solib_resolver): New.
6163 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6164
6165 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6166
6167 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6168 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6169 with DW_LLE_base_addressx are being emitted in DWARFv5.
6170 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6171 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6172 unsigned integer.
6173
6174 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6175
6176 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6177 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6178 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6179 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6180 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6181 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6182 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6183
6184
6185 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6186
6187 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6188 (read_loclist_index): New function definition.
6189 (lookup_loclist_base): New function definition.
6190 (read_loclist_header): New function definition.
6191 (dwarf2_cu): Add loclist_base and loclist_header field.
6192 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6193 (read_full_die_1): Read the value of DW_AT_loclists_base.
6194 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6195 (read_attribute_value): Handle DW_FORM_loclistx.
6196 (skip_one_die): Handle DW_FORM_loclistx.
6197 (loclist_header): New structure declaration.
6198 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6199
6200 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6201
6202 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6203 constructor. Remove `addr` parameter from other constructor and
6204 add `per_cu` parameter.
6205 * dwarf2/read.c (create_partial_symtab): Update.
6206
6207 2020-04-07 Tom de Vries <tdevries@suse.de>
6208
6209 PR symtab/25796
6210 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6211 (partial_die_info::fixup): Inherit has_const_value.
6212
6213 2020-04-07 Tom de Vries <tdevries@suse.de>
6214
6215 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6216 symbols without address.
6217
6218 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6219
6220 * nbsd-nat.h (struct thread_info): Add forward declaration.
6221 (nbsd_nat_target::thread_alive): Add.
6222 (nbsd_nat_target::thread_name): Likewise.
6223 (nbsd_nat_target::update_thread_list): Likewise.
6224 (update_thread_list::post_attach): Likewise.
6225 (post_attach::pid_to_str): Likewise.
6226 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6227 (nbsd_thread_lister): Add.
6228 (nbsd_nat_target::thread_alive): Likewise.
6229 (nbsd_nat_target::thread_name): Likewise.
6230 (nbsd_add_threads): Likewise.
6231 (update_thread_list::post_attach): Likewise.
6232 (nbsd_nat_target::update_thread_list): Likewise.
6233 (post_attach::pid_to_str): Likewise.
6234
6235 2020-04-06 Tom Tromey <tromey@adacore.com>
6236
6237 * ada-valprint.c (print_variant_part): Extract the variant field.
6238 (print_field_values): Use the field as the outer value when
6239 recursing.
6240
6241 2020-04-06 Tom Tromey <tromey@adacore.com>
6242
6243 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6244 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6245 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6246 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6247 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6248
6249 2020-04-06 Tom Tromey <tromey@adacore.com>
6250
6251 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6252 TYPE_CODE_ERROR.
6253
6254 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6255
6256 * nbsd-tdep.c: Include "gdbarch.h".
6257 Define enum with NetBSD signal numbers.
6258 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6259 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6260 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6261 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6262 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6263 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6264 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6265 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6266 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6267 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6268 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6269 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6270
6271 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6272
6273 PR gdb/25325
6274 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6275
6276 2020-04-03 Tom Tromey <tromey@adacore.com>
6277
6278 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6279 Read constant block.
6280
6281 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6282
6283 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6284 (gdb_bfd_get_full_section_contents): New declaration.
6285 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6286 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6287 gdb_bfd_get_full_section_contents.
6288
6289 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6290
6291 * exec.c (build_section_table): Replace internal_error with
6292 gdb_assert.
6293 (section_table_xfer_memory_partial): Likewise.
6294 * mdebugread.c (parse_partial_symbols): Likewise.
6295 * psymtab.c (lookup_partial_symbol): Likewise.
6296 * utils.c (wrap_here): Likewise.
6297
6298 2020-04-02 Tom Tromey <tromey@adacore.com>
6299
6300 * f-lang.c (build_fortran_types): Use arch_type to initialize
6301 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6302
6303 2020-04-02 Tom Tromey <tromey@adacore.com>
6304
6305 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6306 of attributes.
6307
6308 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6309 Bernd Edlinger <bernd.edlinger@hotmail.de>
6310 Tom Tromey <tromey@adacore.com>
6311
6312 * buildsym.c (buildsym_compunit::record_line): Remove
6313 deduplication code.
6314
6315 2020-04-02 Tom de Vries <tdevries@suse.de>
6316
6317 PR ada/24671
6318 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6319
6320 2020-04-02 Tom de Vries <tdevries@suse.de>
6321
6322 * dwarf2/read.c (dwarf2_gdb_index_functions,
6323 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6324 NULL.
6325 * psymtab.c (psym_lookup_global_symbol_language): New function.
6326 (psym_functions): Init psym_lookup_global_symbol_language with
6327 psym_lookup_global_symbol_language.
6328 * symfile-debug.c (debug_sym_quick_functions): Init
6329 lookup_global_symbol_language with NULL.
6330 * symfile.c (set_initial_language): Remove fixme comment.
6331 * symfile.h (struct quick_symbol_functions): Add
6332 lookup_global_symbol_language.
6333 * symtab.c (find_quick_global_symbol_language): New function.
6334 (find_main_name): Use find_quick_global_symbol_language.
6335
6336 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6339
6340 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6341
6342 * buildsym.c (record_line): Fix undefined behavior and preserve
6343 lines at eof.
6344
6345 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6346
6347 * buildsym.c (record_line): Fix the resizing condition.
6348
6349 2020-04-01 Tom Tromey <tom@tromey.com>
6350
6351 * value.h (value_literal_complex): Add comment.
6352 * valops.c (value_literal_complex): Refer to value.h.
6353
6354 2020-04-01 Tom Tromey <tom@tromey.com>
6355
6356 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6357 (scalar_type): New rule, from typebase.
6358 (typebase): Use scalar_type. Recognize complex types.
6359 (field_name): Handle FLOAT_KEYWORD.
6360 (ident_tokens): Add _Complex and __complex__.
6361
6362 2020-04-01 Tom Tromey <tom@tromey.com>
6363
6364 PR exp/25299:
6365 * valarith.c (promotion_type, complex_binop): New functions.
6366 (scalar_binop): Handle complex numbers. Use promotion_type.
6367 (value_pos, value_neg, value_complement): Handle complex numbers.
6368
6369 2020-04-01 Tom Tromey <tom@tromey.com>
6370
6371 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6372 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6373 (parse_number): Handle complex numbers.
6374
6375 2020-04-01 Tom Tromey <tom@tromey.com>
6376
6377 * c-valprint.c (c_decorations): Change complex suffix to "i".
6378
6379 2020-04-01 Tom Tromey <tom@tromey.com>
6380
6381 * valprint.c (generic_value_print_complex): Use accessors.
6382 * value.h (value_real_part, value_imaginary_part): Declare.
6383 * valops.c (value_real_part, value_imaginary_part): New
6384 functions.
6385 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6386
6387 2020-04-01 Tom Tromey <tom@tromey.com>
6388
6389 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6390 (read_range_type): Update.
6391 * mdebugread.c (basic_type): Update.
6392 * go-lang.c (build_go_types): Use init_complex_type.
6393 * gdbtypes.h (struct main_type) <complex_type>: New member.
6394 (init_complex_type): Update.
6395 (arch_complex_type): Don't declare.
6396 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6397 Make name if none given. Use alloc_type_copy. Look for cached
6398 complex type.
6399 (arch_complex_type): Remove.
6400 (gdbtypes_post_init): Use init_complex_type.
6401 * f-lang.c (build_fortran_types): Use init_complex_type.
6402 * dwarf2/read.c (read_base_type): Update.
6403 * d-lang.c (build_d_types): Use init_complex_type.
6404 * ctfread.c (read_base_type): Update.
6405
6406 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6407
6408 * infrun.c (stop_all_threads): Update assertion, plus when
6409 stopping threads, take into account that we might be trying
6410 to stop an all-stop target.
6411 (stop_waiting): Call 'stop_all_threads' if there exists a
6412 non-stop target.
6413
6414 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6415
6416 * target.h (exists_non_stop_target): New function declaration.
6417 * target.c (exists_non_stop_target): New function.
6418
6419 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6420
6421 PR gdb/24789
6422 * eval.c (is_integral_or_integral_reference): New function.
6423 (evaluate_subexp_standard): Allow integer references in
6424 pointer arithmetic.
6425
6426 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6427
6428 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6429 check for no ptid in the stop reply when the target is non-stop.
6430
6431 2020-04-01 Tom Tromey <tromey@adacore.com>
6432
6433 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6434 "name" parameter to rvalue reference. Initialize m_name_holder.
6435 <lookup_name_info>: New overloads.
6436 <name>: Return gdb::string_view.
6437 <c_str>: New method.
6438 <make_ignore_params>: Update.
6439 <search_name_hash>: Update.
6440 <language_lookup_name>: Return const char *.
6441 <m_name>: Change type.
6442 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6443 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6444 (lookup_name_info::match_any): Update.
6445 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6446 Update.
6447 * minsyms.c (linkage_name_str): Update.
6448 * language.c (default_symbol_name_matcher): Update.
6449 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6450 Update.
6451 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6452 (ada_lookup_name_info::ada_lookup_name_info): Update.
6453 (literal_symbol_name_matcher): Update.
6454
6455 2020-04-01 Tom Tromey <tromey@adacore.com>
6456
6457 * psymtab.c (psymtab_search_name): Remove function.
6458 (psym_lookup_symbol): Create search name and lookup name here.
6459 (lookup_partial_symbol): Remove "name" parameter; add
6460 lookup_name.
6461 (psym_expand_symtabs_for_function): Update.
6462
6463 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6464
6465 PR tui/25597:
6466 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6467
6468 2020-03-31 Tom Tromey <tromey@adacore.com>
6469
6470 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6471 memcpy.
6472
6473 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6474
6475 * features/riscv/32bit-csr.xml: Regenerated.
6476 * features/riscv/64bit-csr.xml: Regenerated.
6477
6478 2020-03-30 Tom Tromey <tromey@adacore.com>
6479
6480 * ada-valprint.c (print_variant_part): Update.
6481 * ada-lang.h (ada_which_variant_applies): Update.
6482 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6483 outer_valaddr parameters; replace with "outer" value parameter.
6484 (to_fixed_variant_branch_type): Update.
6485
6486 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6487
6488 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6489 <list>. Remove inclusion of observable.h.
6490 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6491 (struct arch_lwp_info): New struct.
6492 (class ppc_linux_dreg_interface): New class.
6493 (struct ppc_linux_process_info): New struct.
6494 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6495 <low_new_clone, low_forget_process, low_prepare_to_resume>
6496 <copy_thread_dreg_state, mark_thread_stale>
6497 <mark_debug_registers_changed, register_hw_breakpoint>
6498 <clear_hw_breakpoint, register_wp, clear_wp>
6499 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6500 <num_memory_accesses, get_trigger_type>
6501 <create_watchpoint_request, hwdebug_point_cmp>
6502 <init_arch_lwp_info, get_arch_lwp_info>
6503 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6504 methods.
6505 <struct ptid_hash>: New inner struct.
6506 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6507 members.
6508 (saved_dabr_value, hwdebug_info, max_slots_number)
6509 (struct hw_break_tuple, struct thread_points, ppc_threads)
6510 (have_ptrace_hwdebug_interface)
6511 (hwdebug_find_thread_points_by_tid)
6512 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6513 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6514 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6515 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6516 use m_dreg_interface.
6517 (hwdebug_point_cmp): Change to...
6518 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6519 reference arguments instead of pointers.
6520 (ppc_linux_nat_target::ranged_break_num_registers): Use
6521 m_dreg_interface.
6522 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6523 m_dreg_interface. Call register_hw_breakpoint.
6524 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6525 m_dreg_interface. Call clear_hw_breakpoint.
6526 (get_trigger_type): Change to...
6527 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6528 comment.
6529 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6530 use m_dreg_interface. Call register_hw_breakpoint.
6531 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6532 use m_dreg_interface. Call clear_hw_breakpoint.
6533 (can_use_watchpoint_cond_accel): Change to...
6534 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6535 method. Update comment, use m_dreg_interface and
6536 m_process_info.
6537 (calculate_dvc): Change to...
6538 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6539 m_dreg_interface.
6540 (num_memory_accesses): Change to...
6541 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6542 (check_condition): Change to...
6543 (ppc_linux_nat_target::check_condition): ...this method.
6544 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6545 comment, use m_dreg_interface.
6546 (create_watchpoint_request): Change to...
6547 (ppc_linux_nat_target::create_watchpoint_request): ...this
6548 method. Use m_dreg_interface.
6549 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6550 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6551 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6552 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6553 (ppc_linux_nat_target::low_forget_process)
6554 (ppc_linux_nat_target::low_new_fork)
6555 (ppc_linux_nat_target::low_new_clone)
6556 (ppc_linux_nat_target::low_delete_thread)
6557 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6558 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6559 only call mark_thread_stale.
6560 (ppc_linux_thread_exit): Remove.
6561 (ppc_linux_nat_target::stopped_data_address): Change to...
6562 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6563 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6564 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6565 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6566 comment. Call low_stopped_data_address.
6567 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6568 m_dreg_interface.
6569 (ppc_linux_nat_target::masked_watch_num_registers): Use
6570 m_dreg_interface.
6571 (ppc_linux_nat_target::copy_thread_dreg_state)
6572 (ppc_linux_nat_target::mark_thread_stale)
6573 (ppc_linux_nat_target::mark_debug_registers_changed)
6574 (ppc_linux_nat_target::register_hw_breakpoint)
6575 (ppc_linux_nat_target::clear_hw_breakpoint)
6576 (ppc_linux_nat_target::register_wp)
6577 (ppc_linux_nat_target::clear_wp)
6578 (ppc_linux_nat_target::init_arch_lwp_info)
6579 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6580 (_initialize_ppc_linux_nat): Remove observer callback.
6581
6582 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6583
6584 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6585 (ppc_linux_nat_target::auxv_parse)
6586 (ppc_linux_nat_target::read_description)
6587 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6588 Move up.
6589
6590 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6591
6592 * linux-nat.h (low_new_clone): New method.
6593 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6594
6595 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6596
6597 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6598 (dbx_expand_psymtab): ... this.
6599 (start_psymtab): Update.
6600 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6601 (mdebug_expand_psymtab): ... this.
6602 (parse_partial_symbols): Update.
6603 (new_psymtab): Update.
6604 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6605 (xcoff_expand_psymtab): ... this.
6606 (xcoff_start_psymtab): Update.
6607
6608 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6609
6610 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6611 <expand_dependencies>: ... this.
6612 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6613 (partial_symtab::expand_dependencies): ... this.
6614 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6615 Update.
6616 (dwarf2_psymtab::expand_psymtab): Update.
6617 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6618 * mdebugread.c (psymtab_to_symtab_1): Update.
6619 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6620
6621 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6622
6623 * psympriv.h (discard_psymtab): Remove.
6624 * dbxread.c (dbx_end_psymtab): Update.
6625 * xcoffread.c (xcoff_end_psymtab): Update.
6626
6627 2020-03-28 Tom Tromey <tom@tromey.com>
6628
6629 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6630 comment.
6631
6632 2020-03-28 Tom Tromey <tom@tromey.com>
6633
6634 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6635
6636 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6637
6638 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6639
6640 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6641
6642 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6643
6644 2020-03-26 Tom Tromey <tom@tromey.com>
6645
6646 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6647 (mark_common_block_symbol_computed, read_tag_string_type)
6648 (attr_to_dynamic_prop, read_subrange_type): Update.
6649 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6650 to be methods on struct attribute.
6651 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6652 (read_call_site_scope, partial_die_info::read)
6653 (partial_die_info::read, lookup_die_type, follow_die_ref):
6654 Update.
6655 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6656 from dwarf2_get_ref_die_offset.
6657 (attribute::constant_value): New method, from
6658 dwarf2_get_attr_constant_value.
6659 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6660 Declare method.
6661 <constant_value>: New method.
6662
6663 2020-03-26 Tom Tromey <tom@tromey.com>
6664
6665 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6666 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6667 (dwarf_type_encoding_name): Move to stringify.c.
6668 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6669 * dwarf2/stringify.c: New file.
6670 * dwarf2/stringify.h: New file.
6671
6672 2020-03-26 Tom Tromey <tom@tromey.com>
6673
6674 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6675 Rewrite.
6676
6677 2020-03-26 Tom Tromey <tom@tromey.com>
6678
6679 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6680 methods.
6681 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6682 (lookup_ranges_base): Likewise.
6683 (read_cutu_die_from_dwo, read_full_die_1): Update.
6684
6685 2020-03-26 Tom Tromey <tom@tromey.com>
6686
6687 * dwarf2/read.c (read_import_statement, read_file_scope)
6688 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6689 (read_lexical_block_scope, read_call_site_scope)
6690 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6691 (handle_struct_member_die, process_structure_scope)
6692 (update_enumeration_type_from_children)
6693 (process_enumeration_scope, read_array_type, read_common_block)
6694 (read_namespace, read_module, read_subroutine_type): Update.
6695 (sibling_die): Remove.
6696
6697 2020-03-26 Tom Tromey <tom@tromey.com>
6698
6699 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6700 (build_type_psymtabs_reader, read_structure_type)
6701 (read_enumeration_type, read_full_die_1): Update.
6702 (dwarf2_attr_no_follow): Move to die.h.
6703 * dwarf2/die.h (struct die_info) <attr>: New method.
6704
6705 2020-03-26 Tom Tromey <tom@tromey.com>
6706
6707 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6708 <base_address>: Now an optional.
6709 (dwarf2_find_base_address, dwarf2_rnglists_process)
6710 (dwarf2_ranges_process, fill_in_loclist_baton)
6711 (dwarf2_symbol_mark_computed): Update.
6712
6713 2020-03-26 Tom Tromey <tom@tromey.com>
6714
6715 * dwarf2/read.c (struct die_info): Move to die.h.
6716 * dwarf2/die.h: New file.
6717
6718 2020-03-26 Tom Tromey <tom@tromey.com>
6719
6720 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6721 * dwarf2/read.c
6722 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6723 Move to line-header.c.
6724 (read_checked_initial_length_and_offset, read_formatted_entries):
6725 Likewise.
6726 (dwarf_decode_line_header): Split into two.
6727 * dwarf2/line-header.c
6728 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6729 Move from read.c.
6730 (read_checked_initial_length_and_offset, read_formatted_entries):
6731 Likewise.
6732 (dwarf_decode_line_header): New function, split from read.c.
6733
6734 2020-03-26 Tom Tromey <tom@tromey.com>
6735
6736 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6737 Declare method.
6738 * dwarf2/read.c (read_attribute_value): Update.
6739 (dwarf2_per_objfile::read_line_string): Rename from
6740 read_indirect_line_string.
6741 (read_formatted_entries): Update.
6742
6743 2020-03-26 Tom Tromey <tom@tromey.com>
6744
6745 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6746 variable.
6747
6748 2020-03-26 Tom Tromey <tom@tromey.com>
6749
6750 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6751 const.
6752 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6753 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6754 parameter const.
6755
6756 2020-03-26 Tom Tromey <tom@tromey.com>
6757
6758 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6759 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6760 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6761 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6762
6763 2020-03-26 Tom Tromey <tom@tromey.com>
6764
6765 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6766 file_names_size, file_full_name, file_file_name>: Use const.
6767 <file_name_at, file_names>: Add const overload.
6768 * dwarf2/line-header.c (line_header::file_file_name)
6769 (line_header::file_full_name): Update.
6770
6771 2020-03-26 Tom Tromey <tom@tromey.com>
6772
6773 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6774 (macro_start_file, consume_improper_spaces)
6775 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6776 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6777 (dwarf_decode_macros): Move to macro.c.
6778 * dwarf2/macro.c: New file.
6779 * dwarf2/macro.h: New file.
6780 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6781
6782 2020-03-26 Tom Tromey <tom@tromey.com>
6783
6784 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6785 method.
6786 * dwarf2/section.c: New method. From
6787 read_indirect_string_at_offset_from.
6788 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6789 (read_indirect_string_at_offset_from): Move to section.c.
6790 (read_indirect_string_at_offset): Rewrite.
6791 (read_indirect_line_string_at_offset): Remove.
6792 (read_indirect_string, read_indirect_line_string)
6793 (dwarf_decode_macro_bytes): Update.
6794
6795 2020-03-26 Tom Tromey <tom@tromey.com>
6796
6797 * dwarf2/section.h (struct dwarf2_section_info)
6798 <overload_complaint>: Declare.
6799 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6800 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6801 Rename from dwarf2_section_buffer_overflow_complaint.
6802 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6803 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6804
6805 2020-03-26 Tom Tromey <tom@tromey.com>
6806
6807 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6808 Declare.
6809 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6810 Move from read.c.
6811 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6812 to section.c.
6813
6814 2020-03-26 Tom Tromey <tom@tromey.com>
6815
6816 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6817
6818 2020-03-26 Tom Tromey <tom@tromey.com>
6819
6820 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6821 "builder".
6822 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6823 parameter.
6824 (dwarf_decode_macros): Update.
6825
6826 2020-03-26 Tom Tromey <tom@tromey.com>
6827
6828 * dwarf2/read.c (read_attribute_value): Update.
6829 (read_indirect_string_from_dwz): Move to dwz.c; change into
6830 method.
6831 (dwarf_decode_macro_bytes): Update.
6832 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6833 * dwarf2/dwz.c: New file.
6834 * Makefile.in (COMMON_SFILES): Add dwz.c.
6835
6836 2020-03-26 Tom Tromey <tom@tromey.com>
6837
6838 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6839 * dwarf2/read.c: Add include.
6840 * dwarf2/index-write.c: Add include.
6841 * dwarf2/index-cache.c: Add include.
6842 * dwarf2/dwz.h: New file.
6843
6844 2020-03-25 Tom Tromey <tom@tromey.com>
6845
6846 * compile/compile-object-load.c (get_out_value_type): Mention
6847 correct symbol name in error message.
6848
6849 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6850
6851 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6852
6853 2020-03-25 Tom de Vries <tdevries@suse.de>
6854
6855 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6856 * symmisc.c (dump_symtab_1): Print user and includes fields.
6857 (maintenance_info_symtabs): Same.
6858
6859 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6860
6861 PR gdb/25534
6862 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6863 (riscv_regcache_cooked_write): New function.
6864 (riscv_push_dummy_call): Use new function.
6865 (riscv_return_value): Likewise.
6866
6867 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6868
6869 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6870 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6871 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6872 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6873 * infrun.c (follow_fork): Likewise.
6874 (follow_fork_inferior): Likewise.
6875 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6876 * linux-nat.h (class linux_nat_target): Likewise.
6877 * remote.c (class remote_target) <follow_fork>: Likewise.
6878 (remote_target::follow_fork): Likewise.
6879 * target-delegates.c: Re-generate.
6880 * target.c (default_follow_fork): Likewise.
6881 (target_follow_fork): Likewise.
6882 * target.h (struct target_ops) <follow_fork>: Likewise.
6883 (target_follow_fork): Likewise.
6884
6885 2020-03-24 Tom de Vries <tdevries@suse.de>
6886
6887 * psymtab.c (maintenance_info_psymtabs): Print user field.
6888
6889 2020-03-20 Tom Tromey <tromey@adacore.com>
6890
6891 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6892 const.
6893 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6894 const.
6895
6896 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6897
6898 * ptrace.m4: Don't check for ptrace declaration.
6899 * config.in: Re-generate.
6900 * configure: Re-generate.
6901 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6902 not defined.
6903
6904 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6905
6906 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6907 `PTRACE_TYPE_RET'.
6908 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6909 * sparc-nat.c (gdb_ptrace): Likewise.
6910 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6911
6912 2020-03-20 Tom Tromey <tromey@adacore.com>
6913
6914 * c-exp.y (lex_one_token): Fix assert.
6915
6916 2020-03-20 Tom Tromey <tromey@adacore.com>
6917
6918 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6919 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6920 strncpy call.
6921
6922 2020-03-20 Tom Tromey <tromey@adacore.com>
6923
6924 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6925
6926 2020-03-20 Tom Tromey <tromey@adacore.com>
6927
6928 * ada-valprint.c (print_variant_part): Remove parameters; switch
6929 to value-based API.
6930 (print_field_values): Likewise.
6931 (ada_val_print_struct_union): Likewise.
6932 (ada_value_print_1): Update.
6933
6934 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6935
6936 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6937 nbsd_nat_target instead of inf_ptrace_target.
6938 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6939 nbsd_nat_target.
6940
6941 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6942
6943 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6944 it to the ptrace call.
6945 * (store_registers): Likewise.
6946
6947 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6948
6949 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6950 it to the ptrace call.
6951 * (store_registers): Likewise.
6952
6953 2020-03-19 Luis Machado <luis.machado@linaro.org>
6954
6955 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6956 valid, fetch vg value from ptrace.
6957
6958 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6959 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6960 * inf-ptrace.c: Likewise.
6961 * (gdb_ptrace): Add.
6962 * (inf_ptrace_target::resume): Update.
6963 * (inf_ptrace_target::xfer_partial): Likewise.
6964 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6965 * (inf_ptrace_peek_poke): Update.
6966
6967 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6968
6969 * x86-bsd-nat.c (gdb_ptrace): New.
6970 * (x86bsd_dr_set): Add new argument `ptid'.
6971 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6972 x86bsd_dr_set_addr): Update.
6973
6974 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6975
6976 * remote.c (remote_target::process_stop_reply): Handle events for
6977 all threads differently.
6978
6979 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6980
6981 * completer.c (completion_tracker::remove_completion): Define new
6982 function.
6983 * completer.h (completion_tracker::remove_completion): Declare new
6984 function.
6985 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6986 when adding a C++ function symbol.
6987
6988 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6989
6990 * completer.c (completion_tracker::completion_hash_entry): Define
6991 new class.
6992 (advance_to_filename_complete_word_point): Call
6993 recompute_lowest_common_denominator.
6994 (completion_tracker::completion_tracker): Call discard_completions
6995 to setup the hash table.
6996 (completion_tracker::discard_completions): Allow for being called
6997 from the constructor, pass new equal function, and element deleter
6998 when constructing the hash table. Initialise new class member
6999 variables.
7000 (completion_tracker::maybe_add_completion): Remove use of
7001 m_entries_vec, and store more information into m_entries_hash.
7002 (completion_tracker::recompute_lcd_visitor): New function, most
7003 content taken from...
7004 (completion_tracker::recompute_lowest_common_denominator):
7005 ...here, this now just visits each item in the hash calling the
7006 above visitor.
7007 (completion_tracker::build_completion_result): Remove use of
7008 m_entries_vec, call recompute_lowest_common_denominator.
7009 * completer.h (completion_tracker::have_completions): Remove use
7010 of m_entries_vec.
7011 (completion_tracker::completion_hash_entry): Declare new class.
7012 (completion_tracker::recompute_lowest_common_denominator): Change
7013 function signature.
7014 (completion_tracker::recompute_lcd_visitor): Declare new function.
7015 (completion_tracker::m_entries_vec): Delete.
7016 (completion_tracker::m_entries_hash): Initialize to NULL.
7017 (completion_tracker::m_lowest_common_denominator_valid): New
7018 member variable.
7019 (completion_tracker::m_lowest_common_denominator_max_length): New
7020 member variable.
7021
7022 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7023
7024 * regformats/regdef.h: Put reg in gdb namespace.
7025
7026 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7027
7028 * i386-bsd-nat.c (gdb_ptrace): New.
7029 * (i386bsd_fetch_inferior_registers,
7030 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7031 * (i386bsd_fetch_inferior_registers,
7032 i386bsd_store_inferior_registers) Use gdb_ptrace.
7033
7034 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7035
7036 * amd64-bsd-nat.c (gdb_ptrace): New.
7037 * (amd64bsd_fetch_inferior_registers,
7038 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7039 * (amd64bsd_fetch_inferior_registers,
7040 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7041
7042 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7043
7044 * user-regs.c (user_reg::read): Rename to...
7045 (user_reg::xread): ...this.
7046 * (append_user_reg): Rename argument `read' to `xread'.
7047 * (user_reg_add_builtin): Likewise.
7048 * (user_reg_add): Likewise.
7049 * (value_of_user_reg): Likewise.
7050
7051 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7052
7053 * sparc-nat.c (gdb_ptrace): New.
7054 * sparc-nat.c (sparc_fetch_inferior_registers)
7055 (sparc_store_inferior_registers) Remove obsolete comment.
7056 * sparc-nat.c (sparc_fetch_inferior_registers)
7057 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7058 * sparc-nat.c (sparc_fetch_inferior_registers)
7059 (sparc_store_inferior_registers) Use gdb_ptrace.
7060
7061 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7062
7063 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7064 it to the ptrace call.
7065 * sh-nbsd-nat.c (store_registers): Likewise.
7066
7067 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7068
7069 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7070 nbsd_nat_target instead of inf_ptrace_target.
7071 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7072 nbsd_nat_target.
7073
7074 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7075
7076 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7077
7078 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7079
7080 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7081 <sys/sysctl.h>.
7082 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7083
7084 2020-03-17 Tom de Vries <tdevries@suse.de>
7085
7086 PR gdb/23710
7087 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7088 fields.
7089 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7090 fields.
7091 (process_imported_unit_die): Skip import of c++ CUs.
7092
7093 2020-03-16 Tom Tromey <tom@tromey.com>
7094
7095 * p-valprint.c (pascal_object_print_value): Initialize
7096 base_value.
7097
7098 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7099 Shahab Vahedi <shahab@synopsys.com>
7100
7101 * Makefile.in: Add arch/arc.o
7102 * configure.tgt: Likewise.
7103 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7104 (_initialize_arc_tdep): Don't initialize old target descriptions.
7105 (arc_read_description): New function to cache target descriptions.
7106 * arc-tdep.h (arc_read_description): Add proto type.
7107 * arch/arc.c: New file.
7108 * arch/arc.h: Likewise.
7109 * features/Makefile: Replace old target descriptions with new.
7110 * features/arc-arcompact.c: Remove.
7111 * features/arc-arcompact.xml: Likewise.
7112 * features/arc-v2.c: Likewise
7113 * features/arc-v2.xml: Likewise
7114 * features/arc/aux-arcompact.xml: New file.
7115 * features/arc/aux-v2.xml: Likewise.
7116 * features/arc/core-arcompact.xml: Likewise.
7117 * features/arc/core-v2.xml: Likewise.
7118 * features/arc/aux-arcompact.c: Generate.
7119 * features/arc/aux-v2.c: Likewise.
7120 * features/arc/core-arcompact.c: Likewise.
7121 * features/arc/core-v2.c: Likewise.
7122 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7123
7124 2020-03-16 Tom Tromey <tromey@adacore.com>
7125
7126 PR gdb/25663:
7127 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7128 putting value into bcache.
7129
7130 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7131
7132 PR gdb/21500
7133 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7134 to...
7135 (amd64_windows_init_abi_common): ... this. Don't set size of
7136 long type.
7137 (amd64_windows_init_abi): New function.
7138 (amd64_cygwin_init_abi): New function.
7139 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7140 the Cygwin OS ABI.
7141 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7142 comment.
7143
7144 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7145
7146 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7147 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7148 (pe_import_directory_entry): New struct type.
7149 (is_linked_with_cygwin_dll): New function.
7150 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7151 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7152 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7153
7154 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7155
7156 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7157 i386_cygwin_core_osabi_sniffer.
7158
7159 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7160
7161 * i386-cygwin-tdep.c: Rename to...
7162 * i386-windows-tdep.c: ... this.
7163 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7164 i386-windows-tdep.c.
7165 * configure.tgt: Likewise.
7166
7167 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7168
7169 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7170 * osabi.c (gdb_osabi_names): Add "Windows".
7171 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7172 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7173 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7174 i386_cygwin_osabi_sniffer.
7175 (_initialize_i386_cygwin_tdep): Register OS ABI
7176 GDB_OSABI_WINDOWS for i386.
7177 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7178 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7179 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7180 for x86-64.
7181 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7182 when the target matches '*-*-mingw*'.
7183
7184 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7185
7186 * defs.h (enum gdb_osabi): Move to...
7187 * osabi.h (enum gdb_osabi): ... here.
7188 * gdbarch.sh: Include osabi.h in gdbarch.h.
7189 * gdbarch.h: Re-generate.
7190
7191 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7192
7193 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7194 function.
7195 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7196
7197 2020-03-14 Tom Tromey <tom@tromey.com>
7198
7199 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7200 for C++.
7201 (c_type_print_modifier): Likewise. Add "language" parameter.
7202 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7203 (c_type_print_base_1): Update.
7204 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7205 constants.
7206 * type-stack.c (type_stack::insert): Handle tp_atomic and
7207 tp_restrict.
7208 (type_stack::follow_type_instance_flags): Likewise.
7209 (type_stack::follow_types): Likewise. Merge type-following code.
7210 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7211 (space_identifier, cv_with_space_id)
7212 (const_or_volatile_or_space_identifier_noopt)
7213 (const_or_volatile_or_space_identifier): Remove.
7214 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7215 rules.
7216 (ptr_operator, typebase): Update.
7217 (enum token_flag) <FLAG_C>: New constant.
7218 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7219 "_Atomic".
7220 (lex_one_token): Handle FLAG_C.
7221
7222 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7223
7224 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7225 it to the ptrace call.
7226 * m68k-bsd-nat.c (store_registers): Likewise.
7227
7228 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7229
7230 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7231 gdb_byte *.
7232 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7233 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7234 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7235
7236 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7237
7238 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7239 nbsd_nat_target instead of inf_ptrace_target.
7240 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7241 nbsd_nat_target.
7242
7243 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7244
7245 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7246 register_t.
7247
7248 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7249
7250 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7251 it to the ptrace call.
7252 * alpha-bsd-nat.c (store_registers): Likewise.
7253
7254 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7255
7256 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7257 includes.
7258 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7259 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7260 fill_fpregset): Likewise.
7261
7262 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7263
7264 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7265 nbsd_nat_target instead of inf_ptrace_target.
7266 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7267 nbsd_nat_target.
7268
7269 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7270
7271 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7272 register_t.
7273
7274 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7275
7276 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7277 it to the ptrace call.
7278 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7279 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7280 * arm-nbsd-nat.c (store_register): Likewise.
7281 * arm-nbsd-nat.c (store_regs): Likewise.
7282 * arm-nbsd-nat.c (store_fp_register): Likewise.
7283 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7284
7285 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7286
7287 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7288 nbsd_nat_target instead of inf_ptrace_target.
7289 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7290 nbsd_nat_target.
7291
7292 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7293
7294 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7295 it to the ptrace call.
7296 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7297
7298 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7299
7300 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7301 it to the ptrace call.
7302 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7303
7304 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7305
7306 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7307 gdb_byte *.
7308 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7309
7310 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7311
7312 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7313 instead of inf_ptrace_target.
7314 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7315 nbsd_nat_target.
7316
7317 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7318
7319 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7320 register_t.
7321
7322 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7323
7324 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7325 register_t.
7326
7327 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7328
7329 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7330 register_t.
7331
7332 2020-03-13 Tom Tromey <tom@tromey.com>
7333
7334 * value.h (val_print): Don't declare.
7335 * valprint.h (val_print_array_elements)
7336 (val_print_scalar_formatted, generic_val_print): Don't declare.
7337 * valprint.c (generic_val_print_array): Take a struct value.
7338 (generic_val_print_ptr, generic_val_print_memberptr)
7339 (generic_val_print_bool, generic_val_print_int)
7340 (generic_val_print_char, generic_val_print_complex)
7341 (generic_val_print): Remove.
7342 (generic_value_print): Update.
7343 (do_val_print): Remove unused parameters. Don't call
7344 la_val_print.
7345 (val_print): Remove.
7346 (common_val_print): Update. Don't call value_check_printable.
7347 (val_print_scalar_formatted, val_print_array_elements): Remove.
7348 * rust-lang.c (rust_val_print): Remove.
7349 (rust_language_defn): Update.
7350 * p-valprint.c (pascal_val_print): Remove.
7351 (pascal_value_print_inner): Update.
7352 (pascal_object_print_val_fields, pascal_object_print_val):
7353 Remove.
7354 (pascal_object_print_static_field): Update.
7355 * p-lang.h (pascal_val_print): Don't declare.
7356 * p-lang.c (pascal_language_defn): Update.
7357 * opencl-lang.c (opencl_language_defn): Update.
7358 * objc-lang.c (objc_language_defn): Update.
7359 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7360 * m2-lang.h (m2_val_print): Don't declare.
7361 * m2-lang.c (m2_language_defn): Update.
7362 * language.h (struct language_defn) <la_val_print>: Remove.
7363 * language.c (unk_lang_value_print_inner): Rename. Change
7364 argument types.
7365 (unknown_language_defn, auto_language_defn): Update.
7366 * go-valprint.c (go_val_print): Remove.
7367 * go-lang.h (go_val_print): Don't declare.
7368 * go-lang.c (go_language_defn): Update.
7369 * f-valprint.c (f_val_print): Remove.
7370 * f-lang.h (f_value_print): Don't declare.
7371 * f-lang.c (f_language_defn): Update.
7372 * d-valprint.c (d_val_print): Remove.
7373 * d-lang.h (d_value_print): Don't declare.
7374 * d-lang.c (d_language_defn): Update.
7375 * cp-valprint.c (cp_print_value_fields)
7376 (cp_print_value_fields_rtti, cp_print_value): Remove.
7377 (cp_print_static_field): Update.
7378 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7379 (c_val_print_struct, c_val_print_union, c_val_print_int)
7380 (c_val_print_memberptr, c_val_print): Remove.
7381 * c-lang.h (c_val_print_array, cp_print_value_fields)
7382 (cp_print_value_fields_rtti): Don't declare.
7383 * c-lang.c (c_language_defn, cplus_language_defn)
7384 (asm_language_defn, minimal_language_defn): Update.
7385 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7386 (ada_val_print_enum): Take a struct value.
7387 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7388 (ada_val_print): Remove.
7389 (ada_value_print_1): Update.
7390 (printable_val_type): Remove.
7391 * ada-lang.h (ada_val_print): Don't declare.
7392 * ada-lang.c (ada_language_defn): Update.
7393
7394 2020-03-13 Tom Tromey <tom@tromey.com>
7395
7396 * valprint.c (do_val_print): Update.
7397 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7398 a struct value.
7399 (value_to_value_object_no_release): Declare.
7400 * python/py-value.c (value_to_value_object_no_release): New
7401 function.
7402 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7403 struct value.
7404 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7405 function.
7406 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7407 a struct value.
7408 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7409 Declare.
7410 (gdbscm_apply_val_pretty_printer): Take a struct value.
7411 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7412 value.
7413 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7414 value.
7415 * extension-priv.h (struct extension_language_ops)
7416 <apply_val_pretty_printer>: Take a struct value.
7417 * cp-valprint.c (cp_print_value): Create a struct value.
7418 (cp_print_value): Update.
7419
7420 2020-03-13 Tom Tromey <tom@tromey.com>
7421
7422 * ada-valprint.c (print_field_values): Call common_val_print.
7423
7424 2020-03-13 Tom Tromey <tom@tromey.com>
7425
7426 * ada-valprint.c (val_print_packed_array_elements): Remove
7427 bitoffset and val parameters. Call common_val_print.
7428 (ada_val_print_string): Remove offset, address, and original_value
7429 parameters.
7430 (ada_val_print_array): Update.
7431 (ada_value_print_array): New function.
7432 (ada_value_print_1): Call it.
7433
7434 2020-03-13 Tom Tromey <tom@tromey.com>
7435
7436 * ada-valprint.c (ada_value_print): Use common_val_print.
7437
7438 2020-03-13 Tom Tromey <tom@tromey.com>
7439
7440 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7441
7442 2020-03-13 Tom Tromey <tom@tromey.com>
7443
7444 * ada-valprint.c (ada_value_print_num): New function.
7445 (ada_value_print_1): Use it.
7446
7447 2020-03-13 Tom Tromey <tom@tromey.com>
7448
7449 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7450
7451 2020-03-13 Tom Tromey <tom@tromey.com>
7452
7453 * ada-valprint.c (ada_value_print_ptr): 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_val_print_gnat_array): Take a struct value;
7459 call common_val_print.
7460 (ada_val_print_1): Update.
7461 (ada_value_print_1): New function.
7462 (ada_value_print_inner): Rewrite.
7463
7464 2020-03-13 Tom Tromey <tom@tromey.com>
7465
7466 * cp-valprint.c (cp_print_value_fields): Update.
7467 (cp_print_value): New function.
7468
7469 2020-03-13 Tom Tromey <tom@tromey.com>
7470
7471 * m2-valprint.c (m2_value_print_inner): Use
7472 cp_print_value_fields.
7473 * cp-valprint.c (cp_print_value_fields): New function.
7474 * c-valprint.c (c_value_print_struct): New function.
7475 (c_value_print_inner): Use c_value_print_struct.
7476 * c-lang.h (cp_print_value_fields): Declare.
7477
7478 2020-03-13 Tom Tromey <tom@tromey.com>
7479
7480 * c-valprint.c (c_value_print_array): New function.
7481 (c_value_print_inner): Use it.
7482
7483 2020-03-13 Tom Tromey <tom@tromey.com>
7484
7485 * c-valprint.c (c_value_print_memberptr): New function.
7486 (c_value_print_inner): Use it.
7487
7488 2020-03-13 Tom Tromey <tom@tromey.com>
7489
7490 * c-valprint.c (c_value_print_int): New function.
7491 (c_value_print_inner): Use it.
7492
7493 2020-03-13 Tom Tromey <tom@tromey.com>
7494
7495 * c-valprint.c (c_value_print_ptr): New function.
7496 (c_value_print_inner): Use it.
7497
7498 2020-03-13 Tom Tromey <tom@tromey.com>
7499
7500 * c-valprint.c (c_value_print_inner): Rewrite.
7501
7502 2020-03-13 Tom Tromey <tom@tromey.com>
7503
7504 * valprint.c (generic_value_print_complex): New function.
7505 (generic_value_print): Use it.
7506
7507 2020-03-13 Tom Tromey <tom@tromey.com>
7508
7509 * valprint.c (generic_val_print_float): Don't call
7510 val_print_scalar_formatted.
7511 (generic_val_print, generic_value_print): Update.
7512
7513 2020-03-13 Tom Tromey <tom@tromey.com>
7514
7515 * valprint.c (generic_value_print_char): New function
7516 (generic_value_print): Use it.
7517
7518 2020-03-13 Tom Tromey <tom@tromey.com>
7519
7520 * valprint.c (generic_value_print_int): New function.
7521 (generic_value_print): Use it.
7522
7523 2020-03-13 Tom Tromey <tom@tromey.com>
7524
7525 * valprint.c (generic_value_print_bool): New function.
7526 (generic_value_print): Use it.
7527
7528 2020-03-13 Tom Tromey <tom@tromey.com>
7529
7530 * valprint.c (generic_val_print_func): Simplify.
7531 (generic_val_print, generic_value_print): Update.
7532
7533 2020-03-13 Tom Tromey <tom@tromey.com>
7534
7535 * valprint.c (generic_val_print_flags): Remove.
7536 (generic_val_print, generic_value_print): Update.
7537 (val_print_type_code_flags): Add original_value parameter.
7538
7539 2020-03-13 Tom Tromey <tom@tromey.com>
7540
7541 * valprint.c (generic_val_print): Update.
7542 (generic_value_print): Update.
7543 * valprint.c (generic_val_print_enum): Don't call
7544 val_print_scalar_formatted.
7545
7546 2020-03-13 Tom Tromey <tom@tromey.com>
7547
7548 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7549 * valprint.c (generic_value_print_ptr): New function.
7550
7551 2020-03-13 Tom Tromey <tom@tromey.com>
7552
7553 * valprint.c (generic_value_print): Rewrite.
7554
7555 2020-03-13 Tom Tromey <tom@tromey.com>
7556
7557 * p-valprint.c (pascal_object_print_value_fields)
7558 (pascal_object_print_value): New functions.
7559
7560 2020-03-13 Tom Tromey <tom@tromey.com>
7561
7562 * p-valprint.c (pascal_value_print_inner): Rewrite.
7563
7564 2020-03-13 Tom Tromey <tom@tromey.com>
7565
7566 * f-valprint.c (f_value_print_innner): Rewrite.
7567
7568 2020-03-13 Tom Tromey <tom@tromey.com>
7569
7570 * m2-valprint.c (m2_print_unbounded_array): New overload.
7571 (m2_print_unbounded_array): Update.
7572 (m2_print_array_contents): Take a struct value.
7573 (m2_value_print_inner): Rewrite.
7574
7575 2020-03-13 Tom Tromey <tom@tromey.com>
7576
7577 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7578 (d_value_print_inner): New function.
7579 * d-lang.h (d_value_print_inner): Declare.
7580 * d-lang.c (d_language_defn): Use d_value_print_inner.
7581
7582 2020-03-13 Tom Tromey <tom@tromey.com>
7583
7584 * go-valprint.c (go_value_print_inner): New function.
7585 * go-lang.h (go_value_print_inner): Declare.
7586 * go-lang.c (go_language_defn): Use go_value_print_inner.
7587
7588 2020-03-13 Tom Tromey <tom@tromey.com>
7589
7590 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7591 API.
7592 (rust_val_print): Rewrite.
7593 (rust_value_print_inner): New function, from rust_val_print.
7594 (rust_language_defn): Use rust_value_print_inner.
7595
7596 2020-03-13 Tom Tromey <tom@tromey.com>
7597
7598 * ada-valprint.c (ada_value_print_inner): New function.
7599 * ada-lang.h (ada_value_print_inner): Declare.
7600 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7601
7602 2020-03-13 Tom Tromey <tom@tromey.com>
7603
7604 * f-valprint.c (f_value_print_innner): New function.
7605 * f-lang.h (f_value_print_innner): Declare.
7606 * f-lang.c (f_language_defn): Use f_value_print_innner.
7607
7608 2020-03-13 Tom Tromey <tom@tromey.com>
7609
7610 * p-valprint.c (pascal_value_print_inner): New function.
7611 * p-lang.h (pascal_value_print_inner): Declare.
7612 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7613
7614 2020-03-13 Tom Tromey <tom@tromey.com>
7615
7616 * m2-valprint.c (m2_value_print_inner): New function.
7617 * m2-lang.h (m2_value_print_inner): Declare.
7618 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7619
7620 2020-03-13 Tom Tromey <tom@tromey.com>
7621
7622 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7623 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7624 * c-valprint.c (c_value_print_inner): New function.
7625 * c-lang.h (c_value_print_inner): Declare.
7626 * c-lang.c (c_language_defn, cplus_language_defn)
7627 (asm_language_defn, minimal_language_defn): Use
7628 c_value_print_inner.
7629
7630 2020-03-13 Tom Tromey <tom@tromey.com>
7631
7632 * p-valprint.c (pascal_object_print_value_fields): Now static.
7633 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7634
7635 2020-03-13 Tom Tromey <tom@tromey.com>
7636
7637 * c-valprint.c (c_val_print_array): Simplify.
7638
7639 2020-03-13 Tom Tromey <tom@tromey.com>
7640
7641 * valprint.c (value_print_array_elements): New function.
7642 * valprint.h (value_print_array_elements): Declare.
7643
7644 2020-03-13 Tom Tromey <tom@tromey.com>
7645
7646 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7647 * mips-tdep.c (mips_print_register): Use
7648 value_print_scalar_formatted.
7649
7650 2020-03-13 Tom Tromey <tom@tromey.com>
7651
7652 * valprint.h (value_print_scalar_formatted): Declare.
7653 * valprint.c (value_print_scalar_formatted): New function.
7654
7655 2020-03-13 Tom Tromey <tom@tromey.com>
7656
7657 * valprint.h (generic_value_print): Declare.
7658 * valprint.c (generic_value_print): New function.
7659
7660 2020-03-13 Tom Tromey <tom@tromey.com>
7661
7662 * valprint.c (do_val_print): Call la_value_print_inner, if
7663 available.
7664 * rust-lang.c (rust_language_defn): Update.
7665 * p-lang.c (pascal_language_defn): Update.
7666 * opencl-lang.c (opencl_language_defn): Update.
7667 * objc-lang.c (objc_language_defn): Update.
7668 * m2-lang.c (m2_language_defn): Update.
7669 * language.h (struct language_defn) <la_value_print_inner>: New
7670 member.
7671 * language.c (unknown_language_defn, auto_language_defn): Update.
7672 * go-lang.c (go_language_defn): Update.
7673 * f-lang.c (f_language_defn): Update.
7674 * d-lang.c (d_language_defn): Update.
7675 * c-lang.c (c_language_defn, cplus_language_defn)
7676 (asm_language_defn, minimal_language_defn): Update.
7677 * ada-lang.c (ada_language_defn): Update.
7678
7679 2020-03-13 Tom Tromey <tom@tromey.com>
7680
7681 * c-valprint.c (c_value_print): Use common_val_print.
7682
7683 2020-03-13 Tom Tromey <tom@tromey.com>
7684
7685 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7686
7687 2020-03-13 Tom Tromey <tom@tromey.com>
7688
7689 * f-valprint.c (f77_print_array_1, f_val_print): Use
7690 common_val_print.
7691
7692 2020-03-13 Tom Tromey <tom@tromey.com>
7693
7694 * riscv-tdep.c (riscv_print_one_register_info): Use
7695 common_val_print.
7696
7697 2020-03-13 Tom Tromey <tom@tromey.com>
7698
7699 * mi/mi-main.c (output_register): Use common_val_print.
7700
7701 2020-03-13 Tom Tromey <tom@tromey.com>
7702
7703 * infcmd.c (default_print_one_register_info): Use
7704 common_val_print.
7705
7706 2020-03-13 Tom Tromey <tom@tromey.com>
7707
7708 * valprint.h (common_val_print_checked): Declare.
7709 * valprint.c (common_val_print_checked): New function.
7710 * stack.c (print_frame_arg): Use common_val_print_checked.
7711
7712 2020-03-13 Tom Tromey <tom@tromey.com>
7713
7714 * valprint.c (do_val_print): New function, from val_print.
7715 (val_print): Use do_val_print.
7716 (common_val_print): Use do_val_print.
7717
7718 2020-03-13 Tom Tromey <tom@tromey.com>
7719
7720 * valprint.c (value_print): Use scoped_value_mark.
7721
7722 2020-03-13 Tom de Vries <tdevries@suse.de>
7723
7724 PR symtab/25646
7725 * psymtab.c (partial_symtab::partial_symtab): Don't set
7726 globals_offset and statics_offset. Push element onto
7727 current_global_psymbols and current_static_psymbols stacks.
7728 (concat): New function.
7729 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7730 element from current_global_psymbols and current_static_psymbols
7731 stacks. Concat popped elements to global_psymbols and
7732 static_symbols.
7733 (add_psymbol_to_list): Use current_global_psymbols and
7734 current_static_psymbols stacks.
7735 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7736 current_static_psymbols fields.
7737
7738 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7739
7740 * corelow.c (sniff_core_bfd): Remove.
7741 (class core_target) <m_core_vec>: Remove.
7742 (core_target::core_target): Update.
7743 (core_file_fns): Remove.
7744 (deprecated_add_core_fns): Remove.
7745 (default_core_sniffer): Remove.
7746 (sniff_core_bfd): Remove.
7747 (default_check_format): Remove.
7748 (gdb_check_format): Remove.
7749 (core_target_open): Update.
7750 (core_target::get_core_register_section): Update.
7751 (get_core_registers_cb): Update.
7752 (core_target::fetch_registers): Update.
7753 * gdbcore.h (struct core_fns): Remove.
7754 (deprecated_add_core_fns): Remove.
7755 (default_core_sniffer): Remove.
7756 (default_check_format): Remove.
7757
7758 2020-03-12 Tom Tromey <tom@tromey.com>
7759
7760 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7761 CORE_ADDR.
7762 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7763
7764 2020-03-12 Tom Tromey <tom@tromey.com>
7765
7766 * remote.c (remote_target::download_tracepoint)
7767 (remote_target::enable_tracepoint)
7768 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7769 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7770 sprintf_vma.
7771
7772 2020-03-12 Tom Tromey <tom@tromey.com>
7773
7774 * symfile-mem.c: Update CORE_ADDR size assert.
7775
7776 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7777
7778 * selftest.m4: Move to gdbsupport/.
7779 * acinclude.m4: Update path to selftest.m4.
7780
7781 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7782
7783 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7784 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7785 gdbarch-selfselftests.c and selftest-arch.c.
7786 (SUBDIR_UNITTESTS_OBS): Rename to...
7787 (SELFTESTS_OBS): ... this.
7788 (COMMON_SFILES): Remove disasm-selftests.c and
7789 gdbarch-selftests.c.
7790 * configure.ac: Don't add selftest-arch.{c,o} to
7791 CONFIG_{SRCS,OBS}.
7792 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7793 preprocessor conditions.
7794
7795 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7796
7797 * configure.ac: Don't source bfd/development.sh.
7798 * selftest.m4: Modify comment.
7799 * configure: Re-generate.
7800
7801 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7802
7803 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7804 not "true" or "false".
7805 * configure: Re-generate.
7806
7807 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7808
7809 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7810 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7811 renamed to arm_nbsd_supply_gregset.
7812 (fetch_register): Update to call arm_nbsd_supply_gregset.
7813 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7814 (arm_netbsd_nat_target::fetch_registers): Update.
7815 (fetch_elfcore_registers): Removed.
7816 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7817 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7818 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7819 not require NetBSD system headers.
7820 (arm_nbsd_regset): New struct.
7821 (arm_nbsd_iterate_over_regset_sections): New function.
7822 (arm_netbsd_init_abi_common): Updated to call
7823 set_gdbarch_iterate_over_regset_sections.
7824 * arm-nbsd-tdep.h: New file.
7825
7826 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7827
7828 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7829 recursion.
7830
7831 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7832
7833 * configure: Re-generate.
7834
7835 2020-03-11 Tom Tromey <tromey@adacore.com>
7836
7837 * ada-typeprint.c (print_choices): Fix comment.
7838
7839 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7840
7841 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7842 previous item in the list, when the list has no items.
7843
7844 2020-03-11 Tom de Vries <tdevries@suse.de>
7845
7846 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7847 PROP_LOCLIST handling code.
7848
7849 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7850
7851 * buildsym-legacy.c (record_line): Pass extra parameter to
7852 record_line.
7853 * buildsym.c (buildsym_compunit::record_line): Take an extra
7854 parameter, reduce duplication in the line table, and record the
7855 is_stmt flag in the line table.
7856 * buildsym.h (buildsym_compunit::record_line): Add extra
7857 parameter.
7858 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7859 non-statement lines.
7860 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7861 this to the symtab builder.
7862 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7863 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7864 through to dwarf_record_line_1.
7865 * infrun.c (process_event_stop_test): When stepping, don't stop at
7866 a non-statement instruction, and only refresh the step info when
7867 we land in the middle of a line's range. Also add an extra
7868 comment.
7869 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7870 field.
7871 * record-btrace.c (btrace_find_line_range): Only record lines
7872 marked as is-statement.
7873 * stack.c (frame_show_address): Show the frame address if we are
7874 in a non-statement sal.
7875 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7876 (maintenance_print_one_line_table): Print a header for the is_stmt
7877 column, and include is_stmt information in the output.
7878 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7879 preference to non-statements.
7880 (find_pcs_for_symtab_line): Prefer is-statement entries.
7881 (find_line_common): Likewise.
7882 * symtab.h (struct linetable_entry): Add is_stmt field.
7883 (struct symtab_and_line): Likewise.
7884 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7885 arranging the line table.
7886
7887 2020-03-07 Tom de Vries <tdevries@suse.de>
7888
7889 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7890 DIE.
7891
7892 2020-03-07 Tom Tromey <tom@tromey.com>
7893
7894 * valops.c (value_literal_complex): Remove obsolete comment.
7895 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7896 comment.
7897
7898 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7899
7900 * infrun.h: Forward-declare thread_info.
7901 (set_step_info): Add thread_info parameter, add doc.
7902 * infrun.c (set_step_info): Add thread_info parameter, move doc
7903 to header.
7904 * infrun.c (process_event_stop_test): Pass thread to
7905 set_step_info call.
7906 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7907 set_step_info.
7908 (prepare_one_step): Add thread_info parameter, pass it to
7909 set_step_frame and prepare_one_step (recursive) call.
7910 (step_1): Pass thread to prepare_one_step call.
7911 (step_command_fsm::should_stop): Pass thread to
7912 prepare_one_step.
7913 (until_next_fsm): Pass thread to set_step_frame call.
7914 (finish_command): Pass thread to set_step_info call.
7915
7916 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7917
7918 * windows-tdep.c (windows_solib_create_inferior_hook):
7919 Check if inferior is running.
7920
7921 2020-03-06 Tom de Vries <tdevries@suse.de>
7922
7923 * NEWS: Fix "the the".
7924 * ctfread.c: Same.
7925
7926 2020-03-06 Tom de Vries <tdevries@suse.de>
7927
7928 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7929
7930 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7931
7932 * .dir-locals.el: Add a comment referencing the other copies of
7933 this file.
7934
7935 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7936
7937 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7938 psargs.
7939
7940 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7941
7942 * .gitattributes: New file.
7943
7944 2020-03-04 Tom Tromey <tom@tromey.com>
7945
7946 * symmisc.c (print_symbol_bcache_statistics)
7947 (print_objfile_statistics): Update.
7948 * symfile.c (allocate_symtab): Use intern.
7949 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7950 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7951 macro_cache>: Remove.
7952 <string_cache>: New member.
7953 (struct objfile) <intern>: New methods.
7954 * elfread.c (elf_symtab_read): Use intern.
7955 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7956 (dwarf2_compute_name, dwarf2_physname)
7957 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7958 names.
7959 (guess_partial_die_structure_name): Update.
7960 (partial_die_info::fixup): Intern name.
7961 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7962 name.
7963 (dwarf2_name): Intern name. Update.
7964 * buildsym.c (buildsym_compunit::get_macro_table): Use
7965 string_cache.
7966
7967 2020-03-04 Tom Tromey <tom@tromey.com>
7968
7969 * jit.c (bfd_open_from_target_memory): Make "target" const.
7970 * corefile.c (gnutarget): Now const.
7971 * gdbcore.h (gnutarget): Now const.
7972
7973 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7974
7975 * NEWS: Mention support for WOW64 processes.
7976 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7977 (amd64_windows_segment_register_p): Remove static.
7978 (_initialize_amd64_windows_nat): Update.
7979 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7980 * i386-windows-nat.c (context_offset): Update.
7981 (i386_mappings): Rename and remove static.
7982 (i386_windows_segment_register_p): Remove static.
7983 (_initialize_i386_windows_nat): Update.
7984 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7985 (STATUS_WX86_SINGLE_STEP): New macro.
7986 (EnumProcessModulesEx): New macro.
7987 (Wow64SuspendThread): New macro.
7988 (Wow64GetThreadContext): New macro.
7989 (Wow64SetThreadContext): New macro.
7990 (Wow64GetThreadSelectorEntry): New macro.
7991 (windows_set_context_register_offsets): Add static.
7992 (windows_set_segment_register_p): Likewise.
7993 (windows_add_thread): Adapt for WOW64 processes.
7994 (windows_fetch_one_register): Likewise.
7995 (windows_nat_target::fetch_registers): Likewise.
7996 (windows_store_one_register): Likewise.
7997 (display_selector): Likewise.
7998 (display_selectors): Likewise.
7999 (handle_exception): Likewise.
8000 (windows_continue): Likewise.
8001 (windows_nat_target::resume): Likewise.
8002 (windows_add_all_dlls): Likewise.
8003 (do_initial_windows_stuff): Likewise.
8004 (windows_nat_target::attach): Likewise.
8005 (windows_get_exec_module_filename): Likewise.
8006 (windows_nat_target::create_inferior): Likewise.
8007 (windows_xfer_siginfo): Likewise.
8008 (_initialize_loadable): Initialize Wow64SuspendThread,
8009 Wow64GetThreadContext, Wow64SetThreadContext,
8010 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8011 * windows-nat.h (windows_set_context_register_offsets):
8012 Remove declaration.
8013 (windows_set_segment_register_p): Likewise.
8014 (i386_windows_segment_register_p): Add declaration.
8015 (amd64_windows_segment_register_p): Likewise.
8016
8017 2020-03-04 Luis Machado <luis.machado@linaro.org>
8018
8019 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8020 in "info registers" for AArch64/ARM.
8021
8022 The change caused "info registers" to not print GPR's.
8023
8024 gdb/ChangeLog:
8025
8026 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8027
8028 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8029 when reg->group is empty and reggroup is not.
8030
8031 2020-03-03 Tom Tromey <tromey@adacore.com>
8032
8033 * dwarf2/frame.c (struct dwarf2_frame_cache)
8034 <checked_tailcall_bottom, entry_cfa_sp_offset,
8035 entry_cfa_sp_offset_p>: Remove members.
8036 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8037 (dwarf2_frame_prev_register): Don't call
8038 dwarf2_tailcall_sniffer_first.
8039 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8040 * frame-unwind.c (add_unwinder): New fuction.
8041 (frame_unwind_init): Use it. Add tailcall unwinder.
8042
8043 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8044 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8045
8046 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8047 value should be printed as true.
8048
8049 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8050
8051 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8052 (windows_init_abi): Set and use windows_so_ops.
8053
8054 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8055
8056 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8057 when verifying if dealing with a convenience variable.
8058
8059 2020-03-03 Luis Machado <luis.machado@linaro.org>
8060
8061 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8062
8063 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8064
8065 * infrun.c (gdbarch_supports_displaced_stepping): New.
8066 (use_displaced_stepping): Break up conditions in smaller pieces.
8067 Use gdbarch_supports_displaced_stepping.
8068 (displaced_step_prepare_throw): Use
8069 gdbarch_supports_displaced_stepping.
8070
8071 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8072
8073 * NEWS: Mention new behaviour of the history filename.
8074 * top.c (write_history_p): Add comment.
8075 (show_write_history_p): Add header comment, give a different
8076 message when history writing is on, but the history filename is
8077 empty.
8078 (history_filename): Add comment.
8079 (history_filename_empty): New function.
8080 (show_history_filename): Add header comment, give a different
8081 message when the filename is empty.
8082 (init_history): Compare history_filename against nullptr, and only
8083 read history if the filename is not empty.
8084 (set_history_filename): Add header comment, and only make
8085 non-empty filenames absolute.
8086 (init_main): Make the filename argument to 'set history filename'
8087 optional.
8088
8089 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8090
8091 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8092 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8093 (fetch_fp_register): Update.
8094 (fetch_fp_regs): Update.
8095 (store_fp_register): Update.
8096 (store_fp_regs): Update.
8097 (arm_netbsd_nat_target::read_description): New function.
8098 (fetch_elfcore_registers): Update.
8099
8100 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8101
8102 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8103 general_thread if the stop reply is missing a thread-id.
8104 (remote_target::process_stop_reply): Use the first non-exited
8105 thread if the target didn't pass a thread-id.
8106 * infrun.c (do_target_wait): Move call to
8107 switch_to_inferior_no_thread to ....
8108 (do_target_wait_1): ... here.
8109
8110 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8111
8112 * debuginfod-support.c: Include defs.h first.
8113
8114 2020-02-28 Tom de Vries <tdevries@suse.de>
8115
8116 * symfile.c (set_initial_language): Use default language for lookup.
8117
8118 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8119
8120 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8121 reader variable, pass `this` to read_cutu_die_from_dwo.
8122
8123 2020-02-27 Aaron Merey <amerey@redhat.com>
8124
8125 * source.c (open_source_file): Check for nullptr when computing
8126 srcpath.
8127
8128 2020-02-27 Tom Tromey <tromey@adacore.com>
8129
8130 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8131 member.
8132 (dwarf2_add_field): Don't update nfields.
8133 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8134
8135 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8136
8137 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8138 abs.
8139
8140 2020-02-26 Tom Tromey <tom@tromey.com>
8141
8142 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8143 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8144 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8145 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8146 per_cu_data.
8147
8148 2020-02-26 Tom Tromey <tom@tromey.com>
8149
8150 * dwarf2/index-write.c (psym_index_map): Change type.
8151 (add_address_entry_worker, write_one_signatured_type)
8152 (recursively_count_psymbols, recursively_write_psymbols)
8153 (class debug_names, psyms_seen_size, write_gdbindex)
8154 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8155
8156 2020-02-26 Aaron Merey <amerey@redhat.com>
8157
8158 * Makefile.in: Handle optional debuginfod support.
8159 * NEWS: Update.
8160 * README: Add --with-debuginfod summary.
8161 * config.in: Regenerate.
8162 * configure: Regenerate.
8163 * configure.ac: Handle optional debuginfod support.
8164 * debuginfod-support.c: debuginfod helper functions.
8165 * debuginfod-support.h: Ditto.
8166 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8167 summary.
8168 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8169 when a dwz file cannot be found.
8170 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8171 debuginfo file cannot be found.
8172 * source.c (open_source_file): Query debuginfod servers when a
8173 source file cannot be found.
8174 * top.c (print_gdb_configuration): Include
8175 --{with,without}-debuginfod in the output.
8176
8177 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8178
8179 * thread.c (thr_try_catch_cmd): Print thread name.
8180
8181 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8182
8183 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8184 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8185 dwarf2_fetch_die_type_sect_off): Move to...
8186 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8187 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8188 dwarf2_fetch_die_type_sect_off): ... here.
8189 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8190 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8191 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8192
8193 2020-02-26 Tom de Vries <tdevries@suse.de>
8194
8195 PR gdb/25603
8196 * symfile.c (set_initial_language): Exit-early if
8197 language_mode == language_mode_manual.
8198
8199 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8200
8201 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8202 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8203 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8204
8205 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8206
8207 * gdbtypes.c (create_array_type_with_stride): Handle negative
8208 array strides.
8209 * valarith.c (value_subscripted_rvalue): Likewise.
8210
8211 2020-02-25 Luis Machado <luis.machado@linaro.org>
8212
8213 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8214
8215 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8216
8217 * loc.h (dwarf2_get_die_type): Move to...
8218 * read.h (dwarf2_get_die_type): ... here.
8219 * read.c (dwarf2_get_die_type): Move doc to header.
8220
8221 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8222
8223 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8224 'gnulib/Makefile.in' to the list.
8225
8226 2020-02-24 Tom Tromey <tom@tromey.com>
8227
8228 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8229 Remove.
8230 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8231 XOBNEWVEC.
8232
8233 2020-02-24 Tom Tromey <tom@tromey.com>
8234
8235 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8236 New method.
8237 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8238 (dw2_do_instantiate_symtab, dw2_get_file_names)
8239 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8240
8241 2020-02-24 Tom Tromey <tom@tromey.com>
8242
8243 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8244 make_scoped_restore.
8245 (dwarf2_psymtab::read_symtab): Don't clear
8246 reading_partial_symbols.
8247
8248 2020-02-24 Tom de Vries <tdevries@suse.de>
8249
8250 PR gdb/25592
8251 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8252
8253 2020-02-24 Tom de Vries <tdevries@suse.de>
8254
8255 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8256 commands layout next/prev/regs.
8257
8258 2020-02-22 Tom Tromey <tom@tromey.com>
8259
8260 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8261 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8262
8263 2020-02-22 Tom Tromey <tom@tromey.com>
8264
8265 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8266
8267 2020-02-22 Tom Tromey <tom@tromey.com>
8268
8269 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8270 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8271 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8272 * tui/tui.c (_initialize_tui): Add usage text.
8273
8274 2020-02-22 Tom Tromey <tom@tromey.com>
8275
8276 * tui/tui-win.c (tui_set_focus_command)
8277 (tui_set_win_height_command): Use error_no_arg.
8278 (_initialize_tui_win): Update help text.
8279 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8280
8281 2020-02-22 Tom Tromey <tom@tromey.com>
8282
8283 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8284 * tui/tui-disasm.h (struct tui_disasm_window)
8285 <display_start_addr>: Declare.
8286 * tui/tui-source.h (struct tui_source_window)
8287 <display_start_addr>: Declare.
8288 * tui/tui-winsource.h (struct tui_source_window_base)
8289 <show_source_line, display_start_addr>: New methods.
8290 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8291 Rename and move to protected section.
8292 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8293 (tui_source_window_base::do_erase_source_content): Update.
8294 (tui_source_window_base::show_source_line): Now a method.
8295 (tui_source_window_base::show_source_content)
8296 (tui_source_window_base::tui_source_window_base)
8297 (tui_source_window_base::rerender)
8298 (tui_source_window_base::refill)
8299 (tui_source_window_base::do_scroll_horizontal)
8300 (tui_source_window_base::set_is_exec_point_at)
8301 (tui_source_window_base::update_breakpoint_info)
8302 (tui_source_window_base::update_exec_info): Update.
8303 * tui/tui-source.c (tui_source_window::set_contents)
8304 (tui_source_window::showing_source_p)
8305 (tui_source_window::do_scroll_vertical)
8306 (tui_source_window::location_matches_p)
8307 (tui_source_window::line_is_displayed): Update.
8308 (tui_source_window::display_start_addr): New method.
8309 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8310 (tui_disasm_window::do_scroll_vertical)
8311 (tui_disasm_window::location_matches_p): Update.
8312 (tui_disasm_window::display_start_addr): New method.
8313
8314 2020-02-22 Tom Tromey <tom@tromey.com>
8315
8316 * NEWS: Add entry for gdb.register_window_type.
8317 * tui/tui-layout.h (window_factory): New typedef.
8318 (tui_register_window): Declare.
8319 * tui/tui-layout.c (saved_tui_windows): New global.
8320 (tui_apply_current_layout): Use it.
8321 (tui_register_window): New function.
8322 * python/python.c (do_start_initialization): Call
8323 gdbpy_initialize_tui.
8324 (python_GdbMethods): Add "register_window_type" function.
8325 * python/python-internal.h (gdbpy_register_tui_window)
8326 (gdbpy_initialize_tui): Declare.
8327 * python/py-tui.c: New file.
8328 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8329
8330 2020-02-22 Tom Tromey <tom@tromey.com>
8331
8332 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8333
8334 2020-02-22 Tom Tromey <tom@tromey.com>
8335
8336 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8337 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8338 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8339 (tui_set_win_focus_to): Move from tui-win.c.
8340
8341 2020-02-22 Tom Tromey <tom@tromey.com>
8342
8343 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8344 functions.
8345 (known_window_types): New global.
8346 (tui_get_window_by_name): Reimplement.
8347 (initialize_known_windows): New function.
8348 (validate_window_name): Rewrite.
8349 (_initialize_tui_layout): Call initialize_known_windows.
8350
8351 2020-02-22 Tom Tromey <tom@tromey.com>
8352
8353 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8354 Remove constants.
8355 * tui/tui-winsource.h (struct tui_source_window_base)
8356 <tui_source_window_base>: Remove parameter.
8357 * tui/tui-winsource.c
8358 (tui_source_window_base::tui_source_window_base): Remove
8359 parameter.
8360 (tui_source_window_base::refill): Update.
8361 * tui/tui-stack.h (struct tui_locator_window)
8362 <tui_locator_window>: Update.
8363 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8364 Default the constructor.
8365 * tui/tui-regs.h (struct tui_data_item_window)
8366 <tui_data_item_window>: Default the constructor.
8367 (struct tui_data_window) <tui_data_window>: Likewise.
8368 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8369 Default the constructor.
8370 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8371 Default the constructor.
8372 <type>: Remove.
8373 (struct tui_win_info) <tui_win_info>: Default the constructor.
8374 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8375 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8376 Default the constructor.
8377
8378 2020-02-22 Tom Tromey <tom@tromey.com>
8379
8380 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8381 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8382 * tui/tui-win.c (tui_resize_all): Don't call
8383 tui_delete_invisible_windows.
8384 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8385 done.
8386 (tui_set_layout): Update.
8387 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8388 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8389 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8390
8391 2020-02-22 Tom Tromey <tom@tromey.com>
8392
8393 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8394 correctly.
8395
8396 2020-02-22 Tom Tromey <tom@tromey.com>
8397
8398 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8399
8400 2020-02-22 Tom Tromey <tom@tromey.com>
8401
8402 * tui/tui-winsource.h (struct tui_source_window_iterator)
8403 <inner_iterator>: New etytypedef.
8404 <tui_source_window_iterator>: Take "end" parameter.
8405 <tui_source_window_iterator>: Take iterator.
8406 <operator*, advance>: Update.
8407 <m_iter>: Change type.
8408 <m_end>: New field.
8409 (struct tui_source_windows) <begin, end>: Update.
8410 * tui/tui-layout.c (tui_windows): New global.
8411 (tui_apply_current_layout): Clear tui_windows.
8412 (tui_layout_window::apply): Update tui_windows.
8413 * tui/tui-data.h (tui_windows): Declare.
8414 (all_tui_windows): Now inline function.
8415 (class tui_window_iterator, struct all_tui_windows): Remove.
8416
8417 2020-02-22 Tom Tromey <tom@tromey.com>
8418
8419 PR tui/17850:
8420 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8421 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8422 "height" argument.
8423 (class tui_layout_window) <get_sizes>: Likewise.
8424 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8425 argument.
8426 <get_sizes>: Add "height" argument.
8427 <m_vertical>: New field.
8428 * tui/tui-layout.c (tui_layout_split::clone): Update.
8429 (tui_layout_split::get_sizes): Add "height" argument.
8430 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8431 (tui_new_layout_command): Parse "-horizontal".
8432 (_initialize_tui_layout): Update help string.
8433 (tui_layout_split::specification): Add "-horizontal" when needed.
8434 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8435 argument.
8436 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8437 New methods.
8438
8439 2020-02-22 Tom Tromey <tom@tromey.com>
8440
8441 * tui/tui-layout.h (enum tui_adjust_result): New.
8442 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8443 (class tui_layout_window) <adjust_size>: Return
8444 tui_adjust_result. Rewrite.
8445 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8446 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8447
8448 2020-02-22 Tom Tromey <tom@tromey.com>
8449
8450 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8451 parameter and return types.
8452 (class tui_layout_base) <specification>: Add "depth".
8453 (class tui_layout_window) <specification>: Add "depth".
8454 (class tui_layout_split) <specification>: Add "depth".
8455 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8456 and return types.
8457 (tui_new_layout_command): Parse sub-layouts.
8458 (_initialize_tui_layout): Update help string.
8459 (tui_layout_window::specification): Add "depth".
8460 (add_layout_command): Update.
8461
8462 2020-02-22 Tom Tromey <tom@tromey.com>
8463
8464 * NEWS: Add "tui new-layout" item.
8465 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8466 Add new-layout command to help text.
8467 (validate_window_name): New function.
8468 (tui_new_layout_command): New function.
8469 (_initialize_tui_layout): Register "new-layout".
8470 (tui_layout_window::specification): New method.
8471 (tui_layout_window::specification): New method.
8472 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8473 method.
8474 (class tui_layout_window) <specification>: New method.
8475 (class tui_layout_split) <specification>: New method.
8476
8477 2020-02-22 Tom Tromey <tom@tromey.com>
8478
8479 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8480 * tui/tui-win.c (window_name_completer): Update comment.
8481 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8482 Declare method.
8483 (class tui_layout_window) <replace_window>: Likewise.
8484 (class tui_layout_split) <replace_window>: Likewise.
8485 (tui_set_layout): Don't declare.
8486 (tui_set_initial_layout): Declare function.
8487 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8488 (asm_regs_layout): New globals.
8489 (tui_current_layout, show_layout): Remove.
8490 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8491 (find_layout, tui_apply_layout): New function.
8492 (layout_completer): Remove.
8493 (tui_next_layout): Reimplement.
8494 (tui_next_layout_command): New function.
8495 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8496 (tui_regs_layout): Reimplement.
8497 (tui_regs_layout_command): New function.
8498 (extract_display_start_addr): Rewrite.
8499 (next_layout, prev_layout): Remove.
8500 (tui_layout_window::replace_window): New method.
8501 (tui_layout_split::replace_window): New method.
8502 (destroy_layout): New function.
8503 (layout_list): New global.
8504 (add_layout_command): New function.
8505 (initialize_layouts): Update.
8506 (tui_layout_command): New function.
8507 (_initialize_tui_layout): Install "layout" commands.
8508 * tui/tui-data.h (enum tui_layout_type): Remove.
8509 (tui_current_layout): Don't declare.
8510
8511 2020-02-22 Tom Tromey <tom@tromey.com>
8512
8513 * tui/tui-regs.c (tui_reg_layout): Remove.
8514 (tui_reg_command): Use tui_regs_layout.
8515 * tui/tui-layout.h (tui_reg_command): Declare.
8516 * tui/tui-layout.c (tui_reg_command): New function.
8517
8518 2020-02-22 Tom Tromey <tom@tromey.com>
8519
8520 * tui/tui.c (tui_rl_delete_other_windows): Call
8521 tui_remove_some_windows.
8522 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8523 Declare method.
8524 (class tui_layout_window) <remove_windows>: New method.
8525 (class tui_layout_split) <remove_windows>: Declare.
8526 (tui_remove_some_windows): Declare.
8527 * tui/tui-layout.c (tui_remove_some_windows): New function.
8528 (tui_layout_split::remove_windows): New method.
8529
8530 2020-02-22 Tom Tromey <tom@tromey.com>
8531
8532 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8533 * tui/tui-layout.h (tui_next_layout): Declare.
8534 * tui/tui-layout.c (tui_next_layout): New function.
8535
8536 2020-02-22 Tom Tromey <tom@tromey.com>
8537
8538 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8539 correct coordinates.
8540
8541 2020-02-22 Tom Tromey <tom@tromey.com>
8542
8543 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8544 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8545 DATA_WIN case.
8546
8547 2020-02-22 Tom Tromey <tom@tromey.com>
8548
8549 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8550 TUI_DISASM_WIN, not tui_win_list.
8551
8552 2020-02-22 Tom Tromey <tom@tromey.com>
8553
8554 * valprint.c (generic_val_print_enum_1)
8555 (val_print_type_code_flags): Style member names.
8556 * rust-lang.c (val_print_struct, rust_print_enum)
8557 (rust_print_struct_def, rust_internal_print_type): Style member
8558 names.
8559 * p-valprint.c (pascal_object_print_value_fields): Style member
8560 names. Only call fprintf_symbol_filtered for static members.
8561 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8562 * f-valprint.c (f_val_print): Style member names.
8563 * f-typeprint.c (f_type_print_base): Style member names.
8564 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8565 call fprintf_symbol_filtered for static members.
8566 (cp_print_class_member): Style member names.
8567 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8568 member names.
8569 * ada-valprint.c (ada_print_scalar): Style enum names.
8570 (ada_val_print_enum): Likewise.
8571 * ada-typeprint.c (print_enum_type): Style enum names.
8572
8573 2020-02-21 Tom Tromey <tom@tromey.com>
8574
8575 * psympriv.h (struct partial_symtab): Update comment.
8576
8577 2020-02-21 Tom Tromey <tromey@adacore.com>
8578
8579 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8580 type is CORE_ADDR.
8581
8582 2020-02-21 Tom de Vries <tdevries@suse.de>
8583
8584 PR gdb/25534
8585 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8586 if dependencies[i]->user != NULL.
8587
8588 2020-02-21 Ali Tamur <tamur@google.com>
8589
8590 * dwarf2/read.c (dwarf2_name): Add null check.
8591
8592 2020-02-20 Tom Tromey <tom@tromey.com>
8593
8594 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8595 ">=", in binary search.
8596 (dwarf2_find_containing_comp_unit): New overload.
8597 (run_test): New self-test.
8598 (_initialize_dwarf2_read): Register new test.
8599
8600 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8601
8602 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8603 * riscv-tdep.h: Likewise.
8604 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8605 rv32-only CSR.
8606 * features/riscv/64bit-csr.xml: Regenerated.
8607
8608 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8609 Tom Tromey <tom@tromey.com>
8610
8611 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8612 of 'fputc_unfiltered'.
8613 (putchar_unfiltered): Call 'fputc_unfiltered'.
8614 (fputc_unfiltered): Call 'fputs_unfiltered'.
8615
8616 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8617
8618 * config.in: Regenerate.
8619 * configure: Regenerate.
8620 * configure.ac: Add --with-python-libdir option.
8621 * main.c: Use WITH_PYTHON_LIBDIR.
8622
8623 2020-02-19 Tom Tromey <tom@tromey.com>
8624
8625 * symtab.c (general_symbol_info::compute_and_set_names): Use
8626 obstack_strndup. Simplify call to symbol_set_demangled_name.
8627
8628 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8629
8630 * dwarf2/read.c (allocate_signatured_type_table,
8631 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8632 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8633 Remove objfile parameter, update all callers.
8634
8635 2020-02-19 Doug Evans <dje@google.com>
8636
8637 PR rust/25535
8638 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8639 rust_enum_variant calculation.
8640
8641 2020-02-19 Tom Tromey <tromey@adacore.com>
8642
8643 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8644
8645 2020-02-19 Tom Tromey <tromey@adacore.com>
8646
8647 * ada-lang.c (cache_symbol): Use obstack_strdup.
8648
8649 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8650
8651 * configure: Regenerate.
8652
8653 2020-02-19 Tom Tromey <tromey@adacore.com>
8654
8655 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8656 NULL check.
8657
8658 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8659
8660 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8661
8662 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8663
8664 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8665 if GDBSERVER is not defined.
8666 (riscv_tdesc_cache): Likewise, also store const target_desc.
8667 (STATIC_IN_GDB): Define.
8668 (riscv_create_target_description): Update declaration with
8669 STATIC_IN_GDB.
8670 (riscv_lookup_target_description): New function, only define if
8671 GDBSERVER is not defined.
8672 * arch/riscv.h (riscv_create_target_description): Declare only
8673 when GDBSERVER is defined.
8674 (riscv_lookup_target_description): New declaration when GDBSERVER
8675 is not defined.
8676 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8677 (riscv_linux_read_features): ...this, and return
8678 riscv_gdbarch_features instead of target_desc.
8679 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8680 (riscv_linux_read_description): Rename to...
8681 (riscv_linux_read_features): ...this.
8682 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8683 Update to use riscv_gdbarch_features and
8684 riscv_lookup_target_description.
8685 * riscv-tdep.c (riscv_find_default_target_description): Use
8686 riscv_lookup_target_description instead of
8687 riscv_create_target_description.
8688
8689 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8690
8691 * valprint.c (generic_val_print_enum_1): When printing a flag
8692 enum with value 0 and there is no enumerator with value 0, print
8693 just "0" instead of "(unknown: 0x0)".
8694
8695 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8696
8697 * valprint.c (generic_val_print_enum_1): Print unknown part of
8698 flag enum in hex.
8699
8700 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8701
8702 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8703 flag enums to contain duplicate enumerators.
8704 * valprint.c (generic_val_print_enum_1): Update comment.
8705
8706 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8707
8708 * dwarf2/read.c: Include "count-one-bits.h".
8709 (update_enumeration_type_from_children): If an enumerator has
8710 multiple bits set, don't treat the enumeration as a "flag enum".
8711 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8712 of flag enums have 0 or 1 bit set.
8713
8714 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8715
8716 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8717 conversion.
8718 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8719 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8720 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8721 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8722 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8723
8724 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8725
8726 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8727
8728 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8729
8730 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8731 displaced_step_closure_up.
8732 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8733 (struct displaced_step_closure_up):
8734 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8735 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8736 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8737 Likewise.
8738 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8739 * gdbarch.c, gdbarch.h: Re-generate.
8740 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8741 displaced_step_closure_up.
8742 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8743 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8744 * infrun.h (displaced_step_closure_up): New type alias.
8745 (struct displaced_step_inferior_state) <step_closure>: Change
8746 type to displaced_step_closure_up.
8747 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8748 displaced_step_closure_up.
8749 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8750
8751 2020-02-14 Tom Tromey <tom@tromey.com>
8752
8753 * minidebug.c (gnu_debug_key): New global.
8754 (find_separate_debug_file_in_section): Use it.
8755
8756 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8757
8758 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8759 std::unique_ptr.
8760 * gdbarch.c: Re-generate.
8761 * gdbarch.h: Re-generate.
8762 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8763 change.
8764 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8765 type to std::unique_ptr.
8766 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8767 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8768 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8769 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8770 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8771 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8772 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8773 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8774 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8775
8776 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8777
8778 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8779 std::unique_ptr.
8780 (displaced_step_clear): Rename to...
8781 (displaced_step_reset): ... this. Just call displaced->reset ().
8782 (displaced_step_clear_cleanup): Rename to...
8783 (displaced_step_reset_cleanup): ... this.
8784 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8785 (displaced_step_fixup): Likewise.
8786 (resume_1): Likewise.
8787 (handle_inferior_event): Restore child's memory before calling
8788 displaced_step_fixup on the parent.
8789 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8790 to std::unique_ptr.
8791 <step_closure>: Change type to std::unique_ptr.
8792
8793 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8794
8795 * arm-tdep.c: Include count-one-bits.h.
8796 (cleanup_block_store_pc): Use count_one_bits.
8797 (cleanup_block_load_pc): Use count_one_bits.
8798 (arm_copy_block_xfer): Use count_one_bits.
8799 (thumb2_copy_block_xfer): Use count_one_bits.
8800 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8801 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8802 (thumb_get_next_pcs_raw): Use count_one_bits.
8803 (arm_get_next_pcs_raw): Use count_one_bits_l.
8804 * arch/arm.c (bitcount): Remove.
8805 * arch/arm.h (bitcount): Remove.
8806
8807 2020-02-14 Tom Tromey <tromey@adacore.com>
8808
8809 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8810 Update.
8811 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8812 * dwarf2/loc.c (call_site_find_chain_1): Return
8813 unique_xmalloc_ptr.
8814 (call_site_find_chain): Likewise.
8815
8816 2020-02-14 Richard Biener <rguenther@suse.de>
8817
8818 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8819 on expression with division operators.
8820
8821 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8822
8823 * MAINTAINERS (Write After Approval): Adding myself.
8824
8825 2020-02-12 Tom Tromey <tom@tromey.com>
8826
8827 * event-loop.c (event_data, gdb_event, event_handler_func):
8828 Remove.
8829
8830 2020-02-12 Tom Tromey <tom@tromey.com>
8831
8832 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8833 (dwarf2_frame_objfile_data): Add comment.
8834 (find_comp_unit, set_comp_unit): New functions.
8835 (dwarf2_frame_find_fde): Use find_comp_unit.
8836 (dwarf2_build_frame_info): Use set_comp_unit.
8837
8838 2020-02-12 Tom Tromey <tom@tromey.com>
8839
8840 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8841 (comp_unit): Don't initialize objfile.
8842 (execute_cfa_program): Add text_offset parameter.
8843 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8844 (dwarf2_frame_cache): Update.
8845 (dwarf2_build_frame_info): Don't set "objfile" member.
8846
8847 2020-02-12 Tom Tromey <tom@tromey.com>
8848
8849 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8850 (decode_frame_entry): Likewise.
8851 (dwarf2_build_frame_info): Update.
8852
8853 2020-02-12 Tom Tromey <tom@tromey.com>
8854
8855 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8856 (decode_frame_entry_1): Use the comp_unit obstack.
8857
8858 2020-02-12 Tom Tromey <tom@tromey.com>
8859
8860 * dwarf2/frame.c (struct comp_unit): Add initializers and
8861 constructor.
8862 (dwarf2_frame_objfile_data): Store a comp_unit.
8863 (dwarf2_frame_find_fde): Update.
8864 (dwarf2_build_frame_info): Use "new".
8865
8866 2020-02-12 Tom Tromey <tom@tromey.com>
8867
8868 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8869 (dwarf2_fde_table): Typedef for std::vector.
8870 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8871 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8872 (decode_frame_entry): Update.
8873 (dwarf2_build_frame_info): Use "new".
8874
8875 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8876
8877 * arm-tdep.c (arm_gdbarch_init): Update.
8878 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8879 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8880 have_neon, is_m>: Change to bool.
8881
8882 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8883
8884 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8885
8886 2020-02-12 Tom Tromey <tom@tromey.com>
8887
8888 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8889
8890 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8891
8892 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8893 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8894
8895 2020-02-11 Tom Tromey <tom@tromey.com>
8896
8897 * psymtab.h: Update comment.
8898
8899 2020-02-11 Tom Tromey <tom@tromey.com>
8900
8901 * gdb_obstack.h (struct auto_obstack): Use
8902 DISABLE_COPY_AND_ASSIGN.
8903
8904 2020-02-11 Tom Tromey <tom@tromey.com>
8905
8906 * dwarf2/frame.h (struct objfile): Don't forward declare.
8907
8908 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8909
8910 * cris-tdep.c (cris_supply_gregset): Change signature to match
8911 what struct regset expects.
8912 (cris_regset): New struct.
8913 (fetch_core_registers): Remove.
8914 (cris_iterate_over_regset_sections): New function.
8915 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8916 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8917
8918 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8919
8920 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8921 registers.
8922
8923 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8924
8925 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8926
8927 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8928
8929 * configure: Re-generate.
8930
8931 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8932
8933 * configure: Re-generate.
8934
8935 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8936
8937 * acinclude: Update warning.m4 path.
8938 * warning.m4: Move to gdbsupport.
8939
8940 2020-02-11 Tom Tromey <tromey@adacore.com>
8941
8942 * remote.c (remote_console_output): Update.
8943 * printcmd.c (printf_command): Update.
8944 * event-loop.c (gdb_wait_for_event): Update.
8945 * linux-nat.c (sigchld_handler): Update.
8946 * remote-sim.c (gdb_os_write_stdout): Update.
8947 (gdb_os_flush_stdout): Update.
8948 (gdb_os_flush_stderr): Update.
8949 (gdb_os_write_stderr): Update.
8950 * exceptions.c (print_exception): Update.
8951 * remote-fileio.c (remote_fileio_func_read): Update.
8952 (remote_fileio_func_write): Update.
8953 * tui/tui.c (tui_enable): Update.
8954 * tui/tui-interp.c (tui_interp::init): Update.
8955 * utils.c (init_page_info): Update.
8956 (putchar_unfiltered, fputc_unfiltered): Update.
8957 (gdb_flush): Update.
8958 (emit_style_escape): Update.
8959 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8960 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8961 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8962 (stderr_file::write): Update.
8963 (stderr_file::puts): Update.
8964 * ui-file.h (ui_file_isatty, ui_file_write)
8965 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8966 (ui_file_puts): Don't declare.
8967
8968 2020-02-10 Tom de Vries <tdevries@suse.de>
8969
8970 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8971 sentinel to char *.
8972
8973 2020-02-09 Tom de Vries <tdevries@suse.de>
8974
8975 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8976 filename if it matches "<artificial>".
8977
8978 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8979
8980 * windows-tdep.c (struct enum_value_name): New struct.
8981 (create_enum): New function.
8982 (windows_get_siginfo_type): Create and use enum types.
8983
8984 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8985
8986 * NEWS: Mention $_siginfo support for Windows.
8987 * windows-nat.c (handle_exception): Set siginfo_er.
8988 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8989 (windows_xfer_siginfo): New function.
8990 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8991 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8992 (init_windows_gdbarch_data): New function.
8993 (get_windows_gdbarch_data): New function.
8994 (windows_get_siginfo_type): New function.
8995 (windows_init_abi): Register windows_get_siginfo_type.
8996 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8997
8998 2020-02-08 Tom Tromey <tom@tromey.com>
8999
9000 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9001 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9002 <keep>: Declare method.
9003 <m_keep>: Remove member.
9004 <~cutu_reader>: Remove.
9005 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9006 (cutu_reader::cutu_reader): Update.
9007 (cutu_reader::keep): Rename from ~cutu_reader.
9008 (process_psymtab_comp_unit, build_type_psymtabs_1)
9009 (process_skeletonless_type_unit, load_partial_comp_unit)
9010 (load_full_comp_unit, dwarf2_read_addr_index)
9011 (read_signatured_type): Update.
9012
9013 2020-02-08 Tom Tromey <tom@tromey.com>
9014
9015 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9016 "want_partial_unit" parameter.
9017 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9018 Inline check for DW_TAG_partial_unit.
9019 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9020
9021 2020-02-08 Tom Tromey <tom@tromey.com>
9022
9023 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9024 read.c.
9025 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9026 read.c.
9027
9028 2020-02-08 Tom Tromey <tom@tromey.com>
9029
9030 * dwarf2/read.c (read_address): Move to comp-unit.c.
9031 (dwarf2_rnglists_process, dwarf2_ranges_process)
9032 (read_attribute_value, dwarf_decode_lines_1)
9033 (var_decode_location, decode_locdesc): Update.
9034 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9035 read.c. Remove "cu" parameter.
9036 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9037 method.
9038
9039 2020-02-08 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9042 (read_indirect_line_string): Update.
9043 * dwarf2/comp-unit.c (read_offset): Remove.
9044 (read_comp_unit_head): Update.
9045 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9046 method.
9047 (read_offset): Don't declare.
9048
9049 2020-02-08 Tom Tromey <tom@tromey.com>
9050
9051 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9052 * dwarf2/read.c (struct comp_unit_head): Move to
9053 dwarf2/comp-unit.h.
9054 (enum class rcuh_kind): Move to comp-unit.h.
9055 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9056 (read_comp_unit_head, error_check_comp_unit_head)
9057 (read_and_check_comp_unit_head): Move to comp-unit.c.
9058 (read_offset, dwarf_unit_type_name): Likewise.
9059 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9060 (cutu_reader::cutu_reader, read_call_site_scope)
9061 (find_partial_die, follow_die_offset): Update.
9062 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9063
9064 2020-02-08 Tom Tromey <tom@tromey.com>
9065
9066 * dwarf2/read.c (read_offset_1): Move to leb.c.
9067 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9068 (dwarf_decode_macro_bytes): Update.
9069 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9070 * dwarf2/leb.h (read_offset): Declare.
9071
9072 2020-02-08 Tom Tromey <tom@tromey.com>
9073
9074 * dwarf2/read.c (dwarf2_section_size): Remove.
9075 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9076 Update.
9077 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9078
9079 2020-02-08 Tom Tromey <tom@tromey.com>
9080
9081 * dwarf2/read.c (read_initial_length): Move to leb.c.
9082 * dwarf2/leb.h (read_initial_length): Declare.
9083 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9084 handle_nonstd parameter.
9085 * dwarf2/frame.c (read_initial_length): Remove.
9086 (decode_frame_entry_1): Update.
9087
9088 2020-02-08 Tom Tromey <tom@tromey.com>
9089
9090 * dwarf2/loc.c (dwarf2_find_location_expression)
9091 (dwarf_evaluate_loc_desc::get_tls_address)
9092 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9093 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9094 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9095 (dwarf2_compile_property_to_c)
9096 (dwarf2_loc_desc_get_symbol_read_needs)
9097 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9098 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9099 (loclist_describe_location, loclist_tracepoint_var_ref)
9100 (loclist_generate_c_location): Update.
9101 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9102 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9103 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9104 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9105 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9106 (dwarf2_per_cu_data::addr_size)
9107 (dwarf2_per_cu_data::ref_addr_size)
9108 (dwarf2_per_cu_data::text_offset)
9109 (dwarf2_per_cu_data::addr_type): Now methods.
9110 (per_cu_header_read_in): Make per_cu "const".
9111 (dwarf2_version): Remove.
9112 (dwarf2_per_cu_data::int_type): Now a method.
9113 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9114 (set_die_type, read_array_type, read_subrange_index_type)
9115 (read_tag_string_type, read_subrange_type): Update.
9116 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9117 offset_size, ref_addr_size, text_offset, addr_type, version,
9118 objfile, int_type, addr_sized_int_type>: Declare methods.
9119
9120 2020-02-08 Tom Tromey <tom@tromey.com>
9121
9122 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9123 Move earlier.
9124
9125 2020-02-08 Tom Tromey <tom@tromey.com>
9126
9127 * dwarf2/read.h (dwarf_line_debug): Declare.
9128 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9129 * dwarf2/read.c: Move line_header code to new files.
9130 (dwarf_line_debug): No longer static.
9131 * dwarf2/line-header.c: New file.
9132 * dwarf2/line-header.h: New file.
9133
9134 2020-02-08 Tom Tromey <tom@tromey.com>
9135
9136 * dwarf2/read.c (struct line_header) <file_full_name,
9137 file_file_name>: Return unique_xmalloc_ptr.
9138 (line_header::file_file_name): Update.
9139 (line_header::file_full_name): Update.
9140 (dw2_get_file_names_reader): Update.
9141 (macro_start_file): Update.
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>: Declare methods.
9147 (dw2_get_file_names_reader): Update.
9148 (file_file_name): Now a method.
9149 (file_full_name): Likewise.
9150 (macro_start_file): Update.
9151
9152 2020-02-08 Tom Tromey <tom@tromey.com>
9153
9154 * dwarf2/read.c (dwarf_always_disassemble)
9155 (show_dwarf_always_disassemble): Move to loc.c.
9156 (_initialize_dwarf2_read): Move "always-disassemble" registration
9157 to loc.c.
9158 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9159 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9160 static.
9161 (show_dwarf_always_disassemble): Move from read.c.
9162 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9163
9164 2020-02-08 Tom Tromey <tom@tromey.com>
9165
9166 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9167 (create_quick_file_names_table): Return htab_up.
9168 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9169 Update.
9170 * dwarf2/read.h (struct dwarf2_per_objfile)
9171 <quick_file_names_table>: Now htab_up.
9172
9173 2020-02-08 Tom Tromey <tom@tromey.com>
9174
9175 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9176
9177 2020-02-08 Tom Tromey <tom@tromey.com>
9178
9179 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9180 Rewrite.
9181 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9182 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9183 (abbrev_table::abbrev_table): No longer inline.
9184 (ABBREV_HASH_SIZE): Remove.
9185 (abbrev_table::m_abbrevs): Now an htab_up.
9186
9187 2020-02-08 Tom Tromey <tom@tromey.com>
9188
9189 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9190 (cutu_reader): Update.
9191 (build_type_psymtabs_1): Update.
9192 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9193 (abbrev_table::alloc_abbrev): Update.
9194 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9195 (abbrev_table::read): New static method, renamed from
9196 abbrev_table_read_table.
9197 (abbrev_table::alloc_abbrev)
9198 (abbrev_table::add_abbrev): Now private.
9199 (abbrev_table::abbrev_table): Now private.
9200 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9201
9202 2020-02-08 Tom Tromey <tom@tromey.com>
9203
9204 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9205 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9206 htab_up.
9207
9208 2020-02-08 Tom Tromey <tom@tromey.com>
9209
9210 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9211 htab_up.
9212 (lookup_dwo_unit_in_dwp): Update.
9213 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9214 on obstack.
9215
9216 2020-02-08 Tom Tromey <tom@tromey.com>
9217
9218 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9219 obstack.
9220
9221 2020-02-08 Tom Tromey <tom@tromey.com>
9222
9223 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9224 line_header_hash.
9225 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9226 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9227 Change type to htab_up.
9228
9229 2020-02-08 Tom Tromey <tom@tromey.com>
9230
9231 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9232 htab_up. Don't allocate on obstack.
9233 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9234 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9235 Change type to htab_up.
9236
9237 2020-02-08 Tom Tromey <tom@tromey.com>
9238
9239 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9240 Change type to htab_up.
9241 * dwarf2/read.c (create_signatured_type_table_from_index)
9242 (create_signatured_type_table_from_debug_names)
9243 (create_all_type_units, add_type_unit)
9244 (lookup_dwo_signatured_type, lookup_signatured_type)
9245 (process_skeletonless_type_unit): Update.
9246 (create_debug_type_hash_table, create_debug_types_hash_table):
9247 Change type of types_htab.
9248 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9249 htab_up. Don't allocate on obstack.
9250 (create_cus_hash_table): Change type of cus_htab parameter.
9251 (struct dwo_file) <cus, tus>: Now htab_up.
9252 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9253 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9254 (queue_and_load_all_dwo_tus): Update.
9255 * dwarf2/index-write.c (write_gdbindex): Update.
9256 (write_debug_names): Update.
9257
9258 2020-02-08 Tom Tromey <tom@tromey.com>
9259
9260 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9261 dwarf2/read.c. Remove "next" member. Add constructor ntad
9262 destructor.
9263 (struct dwarf2_per_objfile) <queue>: New member.
9264 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9265 dwarf2/read.h.
9266 (dwarf2_queue, dwarf2_queue_tail): Remove.
9267 (class dwarf2_queue_guard): Add parameter to constructor. Use
9268 DISABLE_COPY_AND_ASSIGN.
9269 <m_per_objfile>: New member.
9270 <~dwarf2_queue_guard>: Rewrite.
9271 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9272 Update.
9273 (~dwarf2_queue_item): New.
9274
9275 2020-02-08 Tom Tromey <tom@tromey.com>
9276
9277 * dwarf2/read.c (struct die_info) <has_children>: New member.
9278 (dw2_get_file_names_reader): Remove has_children.
9279 (dw2_get_file_names): Update.
9280 (read_cutu_die_from_dwo): Remove has_children.
9281 (cutu_reader::init_tu_and_read_dwo_dies)
9282 (cutu_reader::cutu_reader): Update.
9283 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9284 Remove has_children.
9285 (build_type_psymtabs_1, process_skeletonless_type_unit)
9286 (load_partial_comp_unit, load_full_comp_unit): Update.
9287 (create_dwo_cu_reader): Remove has_children.
9288 (create_cus_hash_table, read_die_and_children): Update.
9289 (read_full_die_1,read_full_die): Remove has_children.
9290 (read_signatured_type): Update.
9291 (class cutu_reader) <has_children>: Remove.
9292
9293 2020-02-08 Tom Tromey <tom@tromey.com>
9294
9295 * dwarf2/expr.c: Rename from dwarf2expr.c.
9296 * dwarf2/expr.h: Rename from dwarf2expr.h.
9297 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9298 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9299 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9300 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9301 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9302 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9303 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9304 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9305 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9306 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9307 * dwarf2/loc.c: Rename from dwarf2loc.c.
9308 * dwarf2/loc.h: Rename from dwarf2loc.h.
9309 * dwarf2/read.c: Rename from dwarf2read.c.
9310 * dwarf2/read.h: Rename from dwarf2read.h.
9311 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9312 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9313 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9314 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9315 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9316 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9317 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9318 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9319 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9320 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9321 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9322 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9323 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9324 Update.
9325 * Makefile.in (COMMON_SFILES): Update.
9326 (HFILES_NO_SRCDIR): Update.
9327
9328 2020-02-08 Tom Tromey <tom@tromey.com>
9329
9330 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9331 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9332
9333 2020-02-08 Tom Tromey <tom@tromey.com>
9334
9335 * dwarf2read.h (struct die_info): Don't declare.
9336
9337 2020-02-08 Tom Tromey <tom@tromey.com>
9338
9339 * dwarf2read.h (die_info_ptr): Remove typedef.
9340
9341 2020-02-08 Tom Tromey <tom@tromey.com>
9342
9343 * dwarf2read.c (read_call_site_scope)
9344 (handle_data_member_location, dwarf2_add_member_fn)
9345 (mark_common_block_symbol_computed, read_common_block)
9346 (attr_to_dynamic_prop, partial_die_info::read)
9347 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9348 (dwarf2_symbol_mark_computed, set_die_type): Update.
9349 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9350 method.
9351 (attr_form_is_block): Don't declare.
9352 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9353
9354 2020-02-08 Tom Tromey <tom@tromey.com>
9355
9356 * dwarf2read.c (dwarf2_find_base_address, )
9357 (read_call_site_scope, rust_containing_type)
9358 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9359 (handle_data_member_location, dwarf2_add_member_fn)
9360 (get_alignment, read_structure_type, process_structure_scope)
9361 (mark_common_block_symbol_computed, read_common_block)
9362 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9363 (partial_die_info::read, read_attribute_value, new_symbol)
9364 (lookup_die_type, dwarf2_get_ref_die_offset)
9365 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9366 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9367 (dwarf2_symbol_mark_computed): Update.
9368 * dwarf2/attribute.h (struct attribute) <value_as_address,
9369 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9370 methods.
9371 (value_as_address, attr_form_is_section_offset)
9372 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9373 * dwarf2/attribute.c (attribute::value_as_address)
9374 (attribute::form_is_section_offset, attribute::form_is_constant)
9375 (attribute::form_is_ref): Now methods.
9376
9377 2020-02-08 Tom Tromey <tom@tromey.com>
9378
9379 * dwarf2read.c (struct attribute, DW_STRING)
9380 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9381 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9382 (attr_form_is_block, attr_form_is_section_offset)
9383 (attr_form_is_constant, attr_form_is_ref): Move.
9384 * dwarf2/attribute.h: New file.
9385 * dwarf2/attribute.c: New file, from dwarf2read.c.
9386 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9387
9388 2020-02-08 Tom Tromey <tom@tromey.com>
9389
9390 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9391 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9392 Move.
9393 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9394 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9395 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9396 abbrev.c.
9397 * dwarf2/abbrev.h: New file.
9398 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9399 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9400
9401 2020-02-08 Tom Tromey <tom@tromey.com>
9402
9403 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9404 (dwarf2_section_size, dwarf2_get_section_info)
9405 (create_signatured_type_table_from_debug_names)
9406 (create_addrmap_from_aranges, read_debug_names_from_section)
9407 (get_gdb_index_contents_from_section, read_comp_unit_head)
9408 (error_check_comp_unit_head, read_abbrev_offset)
9409 (create_debug_type_hash_table, init_cu_die_reader)
9410 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9411 (read_comp_units_from_section, create_cus_hash_table)
9412 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9413 (create_dwp_v2_section, dwarf2_rnglists_process)
9414 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9415 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9416 (read_indirect_string_from_dwz, read_addr_index_1)
9417 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9418 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9419 (fill_in_loclist_baton): Update.
9420 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9421 get_containing_section, get_bfd_owner, get_bfd_section,
9422 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9423 (dwarf2_read_section, get_section_name, get_section_file_name)
9424 (get_containing_section, get_section_bfd_owner)
9425 (get_section_bfd_section, get_section_name, get_section_file_name)
9426 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9427 declare.
9428 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9429 (dwarf2_section_info::get_bfd_owner)
9430 (dwarf2_section_info::get_bfd_section)
9431 (dwarf2_section_info::get_name)
9432 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9433 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9434 (dwarf2_section_info::read): Now methods.
9435 * dwarf-index-write.c (class debug_names): Update.
9436
9437 2020-02-08 Tom Tromey <tom@tromey.com>
9438
9439 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9440 Move to dwarf2/section.h.
9441 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9442 (get_section_bfd_section, get_section_name)
9443 (get_section_file_name, get_section_id, get_section_flags)
9444 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9445 dwarf2/section.c.
9446 * dwarf2/section.h: New file.
9447 * dwarf2/section.c: New file, from dwarf2read.c.
9448 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9449
9450 2020-02-08 Tom Tromey <tom@tromey.com>
9451
9452 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9453 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9454 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9455 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9456 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9457 * dwarf2/leb.h: New file, from dwarf2read.c.
9458 * dwarf2/leb.c: New file, from dwarf2read.c.
9459 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9460 Remove.
9461 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9462 (COMMON_SFILES): Add dwarf2/leb.c.
9463
9464 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9465
9466 GDB 9.1 released.
9467
9468 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9469
9470 PR gdb/25190:
9471 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9472 * gdb/remote.c (remote_console_output): Update.
9473 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9474 (ui_file_puts): ...this.
9475 * gdb/ui-file.h (ui_file_puts): Add declaration.
9476 * gdb/utils.c (emit_style_escape): Update.
9477 (flush_wrap_buffer): Update.
9478 (fputs_maybe_filtered): Update.
9479 (fputs_unfiltered): Add function.
9480
9481 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9482
9483 * gdb/event-loop.c (gdb_wait_for_event): Update.
9484 * gdb/printcmd.c (printf_command): Update.
9485 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9486 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9487 (gdb_os_flush_stderr): Update.
9488 * gdb/remote.c (remote_console_output): Update.
9489 * gdb/ui-file.c (gdb_flush): Rename to...
9490 (ui_file_flush): ...this.
9491 (stderr_file::write): Update.
9492 (stderr_file::puts): Update.
9493 * gdb/ui-file.h (gdb_flush): Rename to...
9494 (ui_file_flush): ...this.
9495 * gdb/utils.c (gdb_flush): Add function.
9496 * gdb/utils.h (gdb_flush): Add declaration.
9497
9498 2020-02-07 Tom Tromey <tromey@adacore.com>
9499
9500 PR breakpoints/24915:
9501 * source.c (find_and_open_source): Do not check basenames_may_differ.
9502
9503 2020-02-07 Tom Tromey <tom@tromey.com>
9504
9505 * README: Update gdbserver documentation.
9506 * gdbserver: Move to top level.
9507 * configure.tgt (build_gdbserver): Remove.
9508 * configure.ac: Remove --enable-gdbserver.
9509 * configure: Rebuild.
9510 * Makefile.in (distclean): Don't mention gdbserver.
9511
9512 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9513
9514 * source-cache.c (source_cache::ensure): Surround
9515 get_plain_source_lines with a try/catch.
9516 (source_cache::get_line_charpos): Get rid of try/catch
9517 and only check for the return value of "ensure".
9518 * tui/tui-source.c (tui_source_window::set_contents):
9519 Simplify "nlines" calculation.
9520
9521 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9522
9523 * MAINTAINERS (Write After Approval): Add myself.
9524
9525 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9526
9527 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9528 function call.
9529
9530 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9531
9532 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9533
9534 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9535
9536 * nat/riscv-linux-tdesc.h: New file.
9537 * nat/riscv-linux-tdesc.c: New file, taking code from...
9538 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9539 ... here.
9540 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9541 NATDEPFILES.
9542
9543 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9544
9545 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9546 we don't set the fake simulator ptid to the null_ptid.
9547
9548 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9549
9550 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9551 * gdbthread.h (class thread_info) <resumed>: Likewise.
9552 * infrun.c (resume_1): Likewise.
9553 (proceed): Likewise.
9554 (infrun_thread_stop_requested): Likewise.
9555 (stop_all_threads): Likewise.
9556 (handle_inferior_event): Likewise.
9557 (restart_threads): Likewise.
9558 (finish_step_over): Likewise.
9559 (keep_going_stepped_thread): Likewise.
9560 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9561 (linux_handle_extended_wait): Likewise.
9562 * record-btrace.c (get_thread_current_frame_id): Likewise.
9563 * record-full.c (record_full_wait_1): Likewise.
9564 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9565 * target.c (target_resume): Likewise.
9566 * thread.c (set_running_thread): Likewise.
9567
9568 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9569
9570 * f-valprint.c (f77_print_array_1): Changed datatype of index
9571 variable to LONGEST from int to enable it to contain bound
9572 values correctly.
9573
9574 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9575
9576 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9577 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9578 offsets according to FLEN determined.
9579 (riscv_linux_nat_target::read_description): Determine FLEN
9580 dynamically.
9581 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9582 according to FLEN determined.
9583 (riscv_linux_nat_target::store_registers): Likewise.
9584
9585 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9586
9587 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9588 when reg->group is empty and reggroup is not.
9589
9590 2020-01-31 Tom Tromey <tromey@adacore.com>
9591
9592 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9593 Call beneath target's mourn_inferior after unpushing.
9594
9595 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9596
9597 PR tui/9765
9598 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9599 have enough lines to fill the screen, still return the lowest
9600 address we found.
9601
9602 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9603
9604 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9605 '-', '<', and '>' commands.
9606
9607 2020-01-29 Pedro Alves <palves@redhat.com>
9608 Sergio Durigan Junior <sergiodj@redhat.com>
9609
9610 * infcmd.c (construct_inferior_arguments): Assert that
9611 'argc' is greater than 0.
9612
9613 2020-01-29 Luis Machado <luis.machado@linaro.org>
9614
9615 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9616 (BRK_INSN_MASK): Define to 0xd4200000.
9617 (aarch64_program_breakpoint_here_p): New function.
9618 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9619 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9620 breakpoint.c.
9621 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9622 breakpoint.h
9623 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9624 call gdbarch_program_breakpoint_here_p.
9625 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9626 default_program_breakpoint_here_p, changed return type to bool and
9627 simplified.
9628 * breakpoint.h (program_breakpoint_here): Moved prototype to
9629 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9630 return type to bool.
9631 * gdbarch.c: Regenerate.
9632 * gdbarch.h: Regenerate.
9633 * gdbarch.sh (program_breakpoint_here_p): New method.
9634 * infrun.c (handle_signal_stop): Call
9635 gdbarch_program_breakpoint_here_p.
9636
9637 2020-01-26 Tom Tromey <tom@tromey.com>
9638
9639 * ctfread.c (struct ctf_fp_info): Reindent.
9640 (_initialize_ctfread): Remove.
9641
9642 2020-01-26 Tom Tromey <tom@tromey.com>
9643
9644 * psymtab.c (partial_map_expand_apply)
9645 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9646 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9647 (psym_print_stats, psym_expand_symtabs_for_function)
9648 (psym_map_symbol_filenames, psym_map_matching_symbols)
9649 (psym_expand_symtabs_matching)
9650 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9651 (maintenance_check_psymtabs): Use new methods.
9652 * psympriv.h (struct partial_symtab) <readin_p,
9653 get_compunit_symtab>: New methods.
9654 <readin, compunit_symtab>: Remove members.
9655 (struct standard_psymtab): New.
9656 (struct legacy_psymtab): Derive from standard_psymtab.
9657 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9658 standard_psymtab.
9659 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9660
9661 2020-01-26 Tom Tromey <tom@tromey.com>
9662
9663 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9664 read_dependencies. Add assert.
9665 * psymtab.c (partial_symtab::read_dependencies): New method.
9666 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9667 method.
9668 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9669 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9670 read_dependencies.
9671 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9672 Add assert.
9673
9674 2020-01-26 Tom Tromey <tom@tromey.com>
9675
9676 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9677 Call expand_psymtab.
9678 (xcoff_read_symtab): Call expand_psymtab.
9679 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9680 legacy_expand_psymtab.
9681 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9682 method.
9683 (struct legacy_psymtab) <expand_psymtab>: Implement.
9684 <legacy_expand_psymtab>: New member.
9685 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9686 (parse_partial_symbols): Set legacy_expand_psymtab.
9687 (psymtab_to_symtab_1): Change argument order. Call
9688 expand_psymtab.
9689 (new_psymtab): Set legacy_expand_psymtab.
9690 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9691 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9692 expand_psymtab.
9693 (dwarf2_psymtab::expand_psymtab): Rename from
9694 psymtab_to_symtab_1. Call expand_psymtab.
9695 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9696 (dbx_end_psymtab): Likewise.
9697 (dbx_psymtab_to_symtab_1): Change argument order. Call
9698 expand_psymtab.
9699 (dbx_read_symtab): Call expand_psymtab.
9700 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9701 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9702 (ctf_psymtab::read_symtab): Call expand_psymtab.
9703
9704 2020-01-26 Tom Tromey <tom@tromey.com>
9705
9706 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9707 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9708 messages.
9709 * mdebugread.c (mdebug_read_symtab): Remove prints.
9710 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9711 assert.
9712 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9713
9714 2020-01-26 Tom Tromey <tom@tromey.com>
9715
9716 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9717 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9718 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9719 legacy_symtab.
9720 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9721 * psymtab.c (psymtab_to_symtab): Call method.
9722 (dump_psymtab): Update.
9723 * psympriv.h (struct partial_symtab): Add virtual destructor.
9724 <read_symtab>: New method.
9725 (struct legacy_symtab): New.
9726 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9727 (struct pst_map) <pst>: Now a legacy_psymtab.
9728 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9729 (new_psymtab): Use legacy_psymtab.
9730 * dwarf2read.h (struct dwarf2_psymtab): New.
9731 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9732 * dwarf2read.c (dwarf2_create_include_psymtab)
9733 (dwarf2_build_include_psymtabs, create_type_unit_group)
9734 (create_partial_symtab, process_psymtab_comp_unit_reader)
9735 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9736 (set_partial_user): Use dwarf2_psymtab.
9737 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9738 (psymtab_to_symtab_1, process_full_comp_unit)
9739 (process_full_type_unit, dwarf2_ranges_read)
9740 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9741 (dwarf_decode_lines): Use dwarf2_psymtab.
9742 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9743 (add_address_entry_worker, write_one_signatured_type)
9744 (recursively_count_psymbols, recursively_write_psymbols)
9745 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9746 (write_debug_names): Likewise.
9747 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9748 <pst>: Now a legacy_psymtab.
9749 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9750 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9751 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9752 * ctfread.c (struct ctf_psymtab): New.
9753 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9754 ctf_psymtab.
9755 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9756 (create_partial_symtab): Return a ctf_psymtab.
9757 (scan_partial_symbols): Update.
9758
9759 2020-01-26 Tom Tromey <tom@tromey.com>
9760
9761 * xcoffread.c (xcoff_start_psymtab): Use new.
9762 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9763 renamed from start_psymtab_common.
9764 * psympriv.h (struct partial_symtab): Add new constructor.
9765 (start_psymtab_common): Don't declare.
9766 * mdebugread.c (parse_partial_symbols): Use new.
9767 * dwarf2read.c (create_partial_symtab): Use new.
9768 * dbxread.c (start_psymtab): Use new.
9769 * ctfread.c (create_partial_symtab): Use new.
9770
9771 2020-01-26 Tom Tromey <tom@tromey.com>
9772
9773 * xcoffread.c (xcoff_end_psymtab): Use new.
9774 * psymtab.c (start_psymtab_common): Use new.
9775 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9776 Update.
9777 * psympriv.h (struct partial_symtab): Add parameters to
9778 constructor. Don't inline.
9779 (allocate_psymtab): Don't declare.
9780 * mdebugread.c (new_psymtab): Use new.
9781 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9782 * dbxread.c (dbx_end_psymtab): Use new.
9783
9784 2020-01-26 Tom Tromey <tom@tromey.com>
9785
9786 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9787 allocate_psymtab. Update documentation.
9788 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9789 allocate_psymtab. Do not use new.
9790 (allocate_psymtab): Use new. Update.
9791
9792 2020-01-26 Tom Tromey <tom@tromey.com>
9793
9794 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9795 * psymtab.c (psym_print_stats): Update.
9796 * psympriv.h (struct partial_symtab) <readin,
9797 psymtabs_addrmap_supported, anonymous>: Now bool.
9798 * mdebugread.c (psymtab_to_symtab_1): Update.
9799 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9800 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9801 (process_full_comp_unit, process_full_type_unit): Update.
9802 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9803 * ctfread.c (psymtab_to_symtab): Update.
9804
9805 2020-01-26 Tom Tromey <tom@tromey.com>
9806
9807 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9808 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9809 * psymtab.c (psymtab_storage): Delete psymtabs.
9810 (psymtab_storage::allocate_psymtab): Use new.
9811 (psymtab_storage::discard_psymtab): Use delete.
9812 * psympriv.h (struct partial_symtab): Add constructor and
9813 initializers.
9814
9815 2020-01-26 Tom Tromey <tom@tromey.com>
9816
9817 * machoread.c: Do not include psympriv.h.
9818
9819 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9820
9821 * NEWS: Mention the new option and the set/show commands.
9822
9823 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9824
9825 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9826 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9827 (validate_exec_file): New variables, enums, functions.
9828 (exec_file_locate_attach, print_section_info): Style the filenames.
9829 (_initialize_exec): Install show_exec_file_mismatch_command and
9830 set_exec_file_mismatch_command.
9831 * gdbcore.h (validate_exec_file): Declare.
9832 * infcmd.c (attach_command): Call validate_exec_file.
9833 * remote.c ( remote_target::remote_add_inferior): Likewise.
9834
9835 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9836
9837 * frame.c (find_frame_sal): Move call to get_next_frame into more
9838 inner scope.
9839 * inline-frame.c (inilne_state) <inline_state>: Update argument
9840 types.
9841 (inilne_state) <skipped_symbol>: Rename to...
9842 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9843 (skip_inline_frames): Build vector of skipped symbols and use this
9844 to reate the inline_state.
9845 (inline_skipped_symbol): Add a comment and some assertions, fetch
9846 skipped symbol from the list.
9847
9848 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9849
9850 * buildsym.c (lte_is_less_than): Delete.
9851 (buildsym_compunit::end_symtab_with_blockvector): Create local
9852 lambda function to sort line table entries, and use
9853 std::stable_sort instead of std::sort.
9854 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9855 markers when looking for a previous line.
9856
9857 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9858
9859 * dwarf2read.c (lnp_state_machine::record_line): Include
9860 end_sequence parameter in debug print out. Record the line if we
9861 are at an end_sequence marker even if it's not the start of a
9862 statement.
9863 * symmisc.c (maintenance_print_one_line_table): Print end of
9864 sequence markers with 'END' not '0'.
9865
9866 2020-01-24 Pedro Alves <palves@redhat.com>
9867
9868 PR gdb/25410
9869 * thread.c (scoped_restore_current_thread::restore): Use
9870 switch_to_inferior_no_thread.
9871 * exec.c: Include "progspace-and-thread.h".
9872 (add_target_sections, remove_target_sections):
9873 scoped_restore_current_pspace_and_thread instead of
9874 scoped_restore_current_thread.
9875 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9876 and aspace to the inferior before calling clone_program_space.
9877 Remove stale comment.
9878
9879 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9880
9881 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9882 (arm_netbsd_nat_target::fetch_registers): ...this.
9883 (arm_nbsd_nat_target::store_registers): Rename to...
9884 (arm_netbsd_nat_target::store_registers): ...this.
9885
9886 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9887
9888 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9889 register_t.
9890
9891 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9892
9893 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9894 Update comment.
9895 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9896 Likewise.
9897 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9898 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9899 the correct replacement (iterate_over_regset_sections).
9900 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9901 Update comment.
9902
9903 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9904
9905 PR gdb/23718
9906 * gdb/python/python.c (execute_gdb_command): Call
9907 async_enable_stdin in catch block.
9908
9909 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9910
9911 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9912 SWITCH_THRU_ALL_UIS.
9913
9914 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9915
9916 PR tui/9765
9917 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9918 comment, add extra parameter, and update to store previous symbol
9919 when appropriate.
9920 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9921 add extra parameter.
9922 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9923 remove unneeded parameter, add try/catch around gdb_print_insn,
9924 rewrite to add items to asm_lines vector.
9925 (tui_find_backward_disassembly_start_address): New function.
9926 (tui_find_disassembly_address): Updated throughout.
9927 (tui_disasm_window::set_contents): Update for changes to
9928 tui_disassemble.
9929 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9930 number of lines to scroll.
9931
9932 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9933
9934 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9935 (SECT_OFF_DATA): Likewise.
9936 (SECT_OFF_RODATA): Likewise.
9937 (SECT_OFF_TEXT): Likewise.
9938 (SECT_OFF_BSS): Likewise.
9939 (struct objfile) <text_section_offset, data_section_offset>: New
9940 methods.
9941 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9942 objfile::text_section_offset.
9943 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9944 * coffread.c (coff_symtab_read): Likewise.
9945 (enter_linenos): Likewise.
9946 (process_coff_symbol): Likewise.
9947 * ctfread.c (get_objfile_text_range): Likewise.
9948 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9949 Use objfile::data_section_offset.
9950 * dwarf2-frame.c (execute_cfa_program): Use
9951 objfile::text_section_offset.
9952 (dwarf2_frame_find_fde): Likewise.
9953 * dwarf2read.c (create_addrmap_from_index): Likewise.
9954 (create_addrmap_from_aranges): Likewise.
9955 (dw2_find_pc_sect_compunit_symtab): Likewise.
9956 (process_psymtab_comp_unit_reader): Likewise.
9957 (add_partial_symbol): Likewise.
9958 (add_partial_subprogram): Likewise.
9959 (process_full_comp_unit): Likewise.
9960 (read_file_scope): Likewise.
9961 (read_func_scope): Likewise.
9962 (read_lexical_block_scope): Likewise.
9963 (read_call_site_scope): Likewise.
9964 (dwarf2_rnglists_process): Likewise.
9965 (dwarf2_ranges_process): Likewise.
9966 (dwarf2_ranges_read): Likewise.
9967 (dwarf_decode_lines_1): Likewise.
9968 (new_symbol): Likewise.
9969 (dwarf2_fetch_die_loc_sect_off): Likewise.
9970 (dwarf2_per_cu_text_offset): Likewise.
9971 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9972 * hppa-tdep.c (read_unwind_info): Likewise.
9973 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9974 * psympriv.h (struct partial_symtab): Likewise.
9975 * psymtab.c (find_pc_sect_psymtab): Likewise.
9976 * solib-svr4.c (enable_break): Likewise.
9977 * stap-probe.c (relocate_address): Use
9978 objfile::data_section_offset.
9979 * xcoffread.c (enter_line_range): Use
9980 objfile::text_section_offset.
9981 (read_xcoff_symtab): Likewise.
9982
9983 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9984
9985 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9986 declaration to narrower scopes.
9987
9988 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9989
9990 * darwin-nat.h (struct darwin_exception_msg, enum
9991 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9992 Move up.
9993 (class darwin_nat_target) <wait_1, check_new_threads,
9994 decode_exception_message, decode_message, stop_inferior,
9995 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9996 * darwin-nat.c (darwin_check_new_threads): Rename to...
9997 (darwin_nat_target::check_new_threads): ... this.
9998 (darwin_suspend_inferior_it): Remove.
9999 (darwin_decode_exception_message): Rename to...
10000 (darwin_nat_target::decode_exception_message): ... this.
10001 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10002 (darwin_decode_message): Rename to...
10003 (darwin_nat_target::decode_message): ... this.
10004 (cancel_breakpoint): Rename to...
10005 (darwin_nat_target::cancel_breakpoint): ... this.
10006 (darwin_wait): Rename to...
10007 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10008 instead of iterate_over_inferiors.
10009 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10010 (darwin_stop_inferior): Rename to...
10011 (darwin_nat_target::stop_inferior): ... this.
10012 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10013 (darwin_init_thread_list): Rename to...
10014 (darwin_nat_target::init_thread_list): ... this.
10015 (darwin_ptrace_him): Rename to...
10016 (darwin_nat_target::ptrace_him): ... this.
10017 (darwin_nat_target::create_inferior): Pass lambda function to
10018 fork_inferior.
10019 (darwin_nat_target::detach): Call stop_inferior instead of
10020 darwin_stop_inferior.
10021 * fork-inferior.h (fork_inferior): Change init_trace_fun
10022 parameter to gdb::function_view.
10023 * fork-inferior.c (fork_inferior): Likewise.
10024
10025 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10026
10027 * i386-cygwin-tdep.c (core_process_module_section): Update.
10028 * windows-nat.c (struct lm_info_windows): Add text_offset.
10029 (windows_xfer_shared_libraries): Update.
10030 * windows-tdep.c (windows_xfer_shared_library):
10031 Add text_offset_cached argument.
10032 * windows-tdep.h (windows_xfer_shared_library): Update.
10033
10034 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10035
10036 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10037
10038 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10039
10040 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10041 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10042 replace with range-based for.
10043 (gdbsim_interrupt_inferior): Remove.
10044 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10045 with a range-based for. Inline code from
10046 gdbsim_interrupt_inferior.
10047
10048 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10049
10050 * infrun.c (proceed): Fix indentation.
10051
10052 2020-01-21 Tom Tromey <tromey@adacore.com>
10053
10054 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10055 * python/python.c (python_extension_ops): Update.
10056 (gdbpy_colorize): New function.
10057 * python/lib/gdb/__init__.py (colorize): New function.
10058 * extension.h (ext_lang_colorize): Declare.
10059 * extension.c (ext_lang_colorize): New function.
10060 * extension-priv.h (struct extension_language_ops) <colorize>: New
10061 member.
10062 * cli/cli-style.c (_initialize_cli_style): Update help text.
10063
10064 2020-01-21 Luis Machado <luis.machado@linaro.org>
10065
10066 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10067 <cond>: Change type to bool.
10068 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10069 (aarch64_displaced_step_cb): Likewise.
10070 (aarch64_displaced_step_tb): Likewise.
10071
10072 2020-01-21 Luis Machado <luis.machado@linaro.org>
10073
10074 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10075 output.
10076
10077 2020-01-21 Luis Machado <luis.machado@linaro.org>
10078
10079 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10080 <pc_adjust>: Adjust the documentation.
10081 (aarch64_displaced_step_fixup): Check if PC really moved before
10082 adjusting it.
10083
10084 2020-01-19 Tom Tromey <tom@tromey.com>
10085
10086 * disasm.c (~gdb_disassembler): New destructor.
10087 (gdb_buffered_insn_length): Call disassemble_free_target.
10088 * disasm.h (class gdb_disassembler): Declare destructor. Use
10089 DISABLE_COPY_AND_ASSIGN.
10090
10091 2020-01-19 Tom Tromey <tom@tromey.com>
10092
10093 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10094 (die_reader_func_ftype): Remove.
10095 (cutu_reader): New class.
10096 (dw2_get_file_names_reader): Remove "data" parameter.
10097 (dw2_get_file_names): Use cutu_reader.
10098 (create_debug_type_hash_table): Update.
10099 (read_cutu_die_from_dwo): Update comment.
10100 (lookup_dwo_unit): Add dwo_name parameter.
10101 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10102 die_reader_func_ftype and data parameters.
10103 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10104 Remove die_reader_func_ftype and data parameters.
10105 (~cutu_reader): New; from init_cutu_and_read_dies.
10106 (cutu_reader::cutu_reader): Rename from
10107 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10108 and data parameters.
10109 (init_cutu_and_read_dies_simple): Remove.
10110 (struct process_psymtab_comp_unit_data): Remove.
10111 (process_psymtab_comp_unit_reader): Remove data parameter; add
10112 want_partial_unit and pretend_language parameters.
10113 (process_psymtab_comp_unit): Use cutu_reader.
10114 (build_type_psymtabs_reader): Remove data parameter.
10115 (build_type_psymtabs_1): Use cutu_reader.
10116 (process_skeletonless_type_unit): Likewise.
10117 (load_partial_comp_unit_reader): Remove.
10118 (load_partial_comp_unit): Use cutu_reader.
10119 (load_full_comp_unit_reader): Remove.
10120 (load_full_comp_unit): Use cutu_reader.
10121 (struct create_dwo_cu_data): Remove.
10122 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10123 dwo_unit parameters.
10124 (create_cus_hash_table): Use cutu_reader.
10125 (struct dwarf2_read_addr_index_data): Remove.
10126 (dwarf2_read_addr_index_reader): Remove.
10127 (dwarf2_read_addr_index): Use cutu_reader.
10128 (read_signatured_type_reader): Remove.
10129 (read_signatured_type): Use cutu_reader.
10130
10131 2020-01-19 Tom Tromey <tom@tromey.com>
10132
10133 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10134 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10135 (tui_wrefresh): Declare.
10136 * tui/tui-wingeneral.c (suppress_output): New global.
10137 (tui_suppress_output, ~tui_suppress_output): New constructor and
10138 destructor.
10139 (tui_wrefresh): New function.
10140 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10141 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10142 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10143 method.
10144 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10145 tui_wrefresh.
10146 (tui_data_window::no_refresh): New method.
10147 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10148 (tui_reg_command): Use tui_suppress_output
10149 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10150 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10151 method.
10152 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10153
10154 2020-01-19 Tom Tromey <tom@tromey.com>
10155
10156 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10157 Handle case where symtab is null.
10158
10159 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10160
10161 * linux-fork.c (one_fork_p): Simplify.
10162
10163 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10164
10165 * top.c (struct qt_args): Remove.
10166 (kill_or_detach): Change return type to void, replace `void *`
10167 parameter with a proper one.
10168 (print_inferior_quit_action): Likewise.
10169 (quit_confirm): Use range-based for loop to iterate over inferiors.
10170 (quit_force): Likewise.
10171
10172 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10173
10174 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10175 `void *` parameter with proper parameters.
10176 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10177 (print_one_inferior): Change return type to void, replace `void *`
10178 parameter with proper parameters.
10179 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10180 inferiors.
10181 (get_other_inferior): Remove.
10182 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10183 inferiors.
10184
10185 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10186
10187 * mi/mi-interp.c (report_initial_inferior): Remove.
10188 (mi_interp::init): Use range-based for to iterate over inferiors.
10189
10190 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10191
10192 * python/py-inferior.c (build_inferior_list): Remove.
10193 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10194
10195 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10196
10197 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10198 (btrace_stitch_trace): Likewise.
10199 * charset.c (intermediate_encoding): Likewise (vaild).
10200 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10201 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10202 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10203
10204 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10205
10206 * windows-tdep.c (windows_get_tlb_type):
10207 Add rtl_user_process_parameters type.
10208
10209 2020-01-16 Pedro Alves <palves@redhat.com>
10210 Norbert Lange <nolange79@gmail.com>
10211
10212 PR build/24805
10213 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10214 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10215 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10216 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10217 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10218 (ps_plog): Redeclare exported functions with default visibility.
10219
10220 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10221
10222 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10223 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10224
10225 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10226
10227 * infcmd.c (post_create_inferior): Use get_thread_regcache
10228 instead of get_current_regcache.
10229
10230 2020-01-14 Tom Tromey <tom@tromey.com>
10231
10232 PR symtab/12535:
10233 * python/python.c (gdbpy_decode_line): Treat empty string the same
10234 as no argument.
10235
10236 2020-01-14 Tom Tromey <tom@tromey.com>
10237
10238 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10239
10240 2020-01-14 Tom Tromey <tom@tromey.com>
10241
10242 * nat/linux-btrace.c: Don't include <config.h>.
10243 * nat/linux-ptrace.c: Don't include <config.h>.
10244 * nat/x86-linux-dregs.c: Don't include <config.h>.
10245
10246 2020-01-14 Tom Tromey <tom@tromey.com>
10247
10248 * configure: Rebuild.
10249 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10250
10251 2020-01-14 Tom Tromey <tom@tromey.com>
10252
10253 * nat/x86-linux-dregs.c: Include configh.h.
10254 * nat/linux-ptrace.c: Include configh.h.
10255 * nat/linux-btrace.c: Include configh.h.
10256 * defs.h: Include config.h, bfd.h.
10257 * configure.ac: Don't source common.host.
10258 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10259 * configure: Rebuild.
10260 * acinclude.m4: Update path.
10261 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10262 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10263 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10264 (CLIBS): Add LIBSUPPORT.
10265 (CDEPS): Likewise.
10266 (COMMON_SFILES): Remove gdbsupport files.
10267 (HFILES_NO_SRCDIR): Likewise.
10268 (stamp-version): Update path to create-version.sh.
10269 (ALLDEPFILES): Remove gdbsupport files.
10270
10271 2020-01-14 Tom Tromey <tom@tromey.com>
10272
10273 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10274 USE_WIN32API when needed.
10275 * configure.ac (USE_WIN32API): Don't define.
10276 (WIN32LIBS): Use WIN32APILIBS.
10277 * configure: Rebuild.
10278
10279 2020-01-14 Tom Tromey <tom@tromey.com>
10280
10281 * configure: Rebuild.
10282 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10283
10284 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10285
10286 * skip.c (skip_function_command): Make skip w/o arguments use the
10287 name of the inlined function if pc is inside any inlined function.
10288
10289 2020-01-14 Luis Machado <luis.machado@linaro.org>
10290
10291 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10292 * infrun.c (resume_1): Likewise.
10293 (handle_inferior_event): Remove stale comment.
10294 * linux-nat.c (linux_nat_target::resume): Update comments.
10295 (save_stop_reason): Likewise.
10296 (linux_nat_filter_event): Likewise.
10297 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10298
10299 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10300
10301 * elfread.c (record_minimal_symbol): Set section index to 0 for
10302 non-allocatable sections.
10303
10304
10305 2020-01-13 Ali Tamur <tamur@google.com>
10306
10307 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10308 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10309 to gdb::optional. Update comments.
10310 (dwo_file): Update comments.
10311 (read_attribute): Update API to take an additional out parameter,
10312 need_reprocess. This is used to mark attributes that need other
10313 attributes (e.g. str_offsets_base) for correct computation which may not
10314 have been read yet.
10315 (read_attribute_reprocess): New function declaration.
10316 (read_addr_index): Likewise.
10317 (read_dwo_str_index): Likewise.
10318 (read_stub_str_index): Likewise.
10319 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10320 (lookup_addr_base): New function definition.
10321 (lookup_ranges_base): Likewise.
10322 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10323 lookup_ranges_base.
10324 (init_cutu_and_read_dies): Update comments.
10325 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10326 unit. This is used to inherit parent's str_offsets_base and addr_base.
10327 Update comments.
10328 (init_cutu_and_read_dies_simple): Reflect API changes.
10329 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10330 (create_cus_hash_table): Change API to take parent compile unit.
10331 Reflect API changes.
10332 (open_and_init_dwo_file): Reflect API changes.
10333 (dwarf2_get_pc_bounds): Update comments.
10334 (dwarf2_record_block_ranges): Likewise.
10335 (read_full_die_1): Change implementation to reprocess attributes that
10336 need str_offsets_base and addr_base.
10337 (partial_die_info::read): Likewise.
10338 (read_attribute_reprocess): New function definition.
10339 (read_attribute_value): Change API to take an additional out parameter,
10340 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10341 when a non-dwo compile unit has index based attributes.
10342 (read_attribute): Reflect API changes.
10343 (read_addr_index_1): Reflect API changes. Update comments.
10344 (dwarf2_read_addr_index_data): Reflect API changes.
10345 (dwarf2_read_addr_index): Likewise.
10346 (read_str_index): Change API and implementation. This becomes a helper
10347 to be used by the new string index related methods. Update error
10348 message and comments.
10349 (read_dwo_str_index): New function definition.
10350 (read_stub_str_index): Likewise.
10351 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10352 * symfile.h (dwarf2_debug_sections): Likewise.
10353 * xcoffread.c (dwarf2_debug_sections): Likewise.
10354
10355 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10356
10357 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10358 core_reg_sect type to gdb_byte *.
10359 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10360 * cris-tdep.c (fetch_core_registers): Likewise.
10361 * corelow.c (core_target::get_core_register_section): Change
10362 type of `contents` to gdb::byte_vector.
10363
10364 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10365
10366 * tui/tui-wingeneral.c (box_win): Position the title in the center
10367 of the border.
10368
10369 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10370
10371 * corelow.c (core_target::get_core_register_section): Use
10372 std::vector instead of alloca.
10373
10374 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10375
10376 * warning.m4: Add -Wmissing-declarations to build_warnings.
10377 * configure: Re-generate.
10378
10379 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10380
10381 * python/python.c (init__gdb_module): Add declaration.
10382
10383 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10384
10385 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10386 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10387 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10388 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10389 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10390 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10391 * ada-exp.y (_initialize_ada_exp): Add declaration.
10392 * ada-lang.c (_initialize_ada_language): Add declaration.
10393 * ada-tasks.c (_initialize_tasks): Add declaration.
10394 * agent.c (_initialize_agent): Add declaration.
10395 * aix-thread.c (_initialize_aix_thread): Add declaration.
10396 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10397 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10398 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10399 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10400 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10401 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10402 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10403 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10404 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10405 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10406 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10407 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10408 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10409 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10410 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10411 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10412 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10413 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10414 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10415 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10416 * annotate.c (_initialize_annotate): Add declaration.
10417 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10418 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10419 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10420 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10421 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10422 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10423 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10424 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10425 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10426 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10427 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10428 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10429 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10430 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10431 * auto-load.c (_initialize_auto_load): Add declaration.
10432 * auxv.c (_initialize_auxv): Add declaration.
10433 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10434 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10435 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10436 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10437 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10438 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10439 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10440 * breakpoint.c (_initialize_breakpoint): Add declaration.
10441 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10442 * btrace.c (_initialize_btrace): Add declaration.
10443 * charset.c (_initialize_charset): Add declaration.
10444 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10445 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10446 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10447 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10448 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10449 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10450 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10451 * coffread.c (_initialize_coffread): Add declaration.
10452 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10453 * compile/compile.c (_initialize_compile): Add declaration.
10454 * complaints.c (_initialize_complaints): Add declaration.
10455 * completer.c (_initialize_completer): Add declaration.
10456 * copying.c (_initialize_copying): Add declaration.
10457 * corefile.c (_initialize_core): Add declaration.
10458 * corelow.c (_initialize_corelow): Add declaration.
10459 * cp-abi.c (_initialize_cp_abi): Add declaration.
10460 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10461 * cp-support.c (_initialize_cp_support): Add declaration.
10462 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10463 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10464 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10465 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10466 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10467 * ctfread.c (_initialize_ctfread): Add declaration.
10468 * d-lang.c (_initialize_d_language): Add declaration.
10469 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10470 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10471 * dbxread.c (_initialize_dbxread): Add declaration.
10472 * dcache.c (_initialize_dcache): Add declaration.
10473 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10474 * disasm.c (_initialize_disasm): Add declaration.
10475 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10476 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10477 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10478 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10479 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10480 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10481 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10482 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10483 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10484 * elfread.c (_initialize_elfread): Add declaration.
10485 * exec.c (_initialize_exec): Add declaration.
10486 * extension.c (_initialize_extension): Add declaration.
10487 * f-lang.c (_initialize_f_language): Add declaration.
10488 * f-valprint.c (_initialize_f_valprint): Add declaration.
10489 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10490 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10491 * filesystem.c (_initialize_filesystem): Add declaration.
10492 * findcmd.c (_initialize_mem_search): Add declaration.
10493 * findvar.c (_initialize_findvar): Add declaration.
10494 * fork-child.c (_initialize_fork_child): Add declaration.
10495 * frame-base.c (_initialize_frame_base): Add declaration.
10496 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10497 * frame.c (_initialize_frame): Add declaration.
10498 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10499 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10500 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10501 * gcore.c (_initialize_gcore): Add declaration.
10502 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10503 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10504 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10505 * gdbarch.c (_initialize_gdbarch): Add declaration.
10506 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10507 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10508 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10509 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10510 * go-lang.c (_initialize_go_language): Add declaration.
10511 * go32-nat.c (_initialize_go32_nat): Add declaration.
10512 * guile/guile.c (_initialize_guile): Add declaration.
10513 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10514 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10515 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10516 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10517 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10518 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10519 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10520 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10521 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10522 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10523 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10524 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10525 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10526 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10527 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10528 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10529 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10530 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10531 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10532 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10533 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10534 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10535 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10536 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10537 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10538 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10539 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10540 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10541 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10542 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10543 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10544 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10545 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10546 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10547 * infcall.c (_initialize_infcall): Add declaration.
10548 * infcmd.c (_initialize_infcmd): Add declaration.
10549 * inflow.c (_initialize_inflow): Add declaration.
10550 * infrun.c (_initialize_infrun): Add declaration.
10551 * interps.c (_initialize_interpreter): Add declaration.
10552 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10553 * jit.c (_initialize_jit): Add declaration.
10554 * language.c (_initialize_language): Add declaration.
10555 * linux-fork.c (_initialize_linux_fork): Add declaration.
10556 * linux-nat.c (_initialize_linux_nat): Add declaration.
10557 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10558 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10559 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10560 * m2-lang.c (_initialize_m2_language): Add declaration.
10561 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10562 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10563 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10564 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10565 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10566 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10567 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10568 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10569 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10570 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10571 * machoread.c (_initialize_machoread): Add declaration.
10572 * macrocmd.c (_initialize_macrocmd): Add declaration.
10573 * macroscope.c (_initialize_macroscope): Add declaration.
10574 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10575 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10576 * maint.c (_initialize_maint_cmds): Add declaration.
10577 * mdebugread.c (_initialize_mdebugread): Add declaration.
10578 * memattr.c (_initialize_mem): Add declaration.
10579 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10580 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10581 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10582 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10583 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10584 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10585 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10586 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10587 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10588 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10589 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10590 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10591 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10592 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10593 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10594 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10595 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10596 * mipsread.c (_initialize_mipsread): Add declaration.
10597 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10598 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10599 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10600 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10601 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10602 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10603 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10604 * nto-procfs.c (_initialize_procfs): Add declaration.
10605 * objc-lang.c (_initialize_objc_language): Add declaration.
10606 * observable.c (_initialize_observer): Add declaration.
10607 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10608 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10609 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10610 * osabi.c (_initialize_gdb_osabi): Add declaration.
10611 * osdata.c (_initialize_osdata): Add declaration.
10612 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10613 * parse.c (_initialize_parse): Add declaration.
10614 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10615 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10616 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10617 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10618 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10619 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10620 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10621 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10622 * printcmd.c (_initialize_printcmd): Add declaration.
10623 * probe.c (_initialize_probe): Add declaration.
10624 * proc-api.c (_initialize_proc_api): Add declaration.
10625 * proc-events.c (_initialize_proc_events): Add declaration.
10626 * proc-service.c (_initialize_proc_service): Add declaration.
10627 * procfs.c (_initialize_procfs): Add declaration.
10628 * producer.c (_initialize_producer): Add declaration.
10629 * psymtab.c (_initialize_psymtab): Add declaration.
10630 * python/python.c (_initialize_python): Add declaration.
10631 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10632 * record-btrace.c (_initialize_record_btrace): Add declaration.
10633 * record-full.c (_initialize_record_full): Add declaration.
10634 * record.c (_initialize_record): Add declaration.
10635 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10636 * regcache.c (_initialize_regcache): Add declaration.
10637 * reggroups.c (_initialize_reggroup): Add declaration.
10638 * remote-notif.c (_initialize_notif): Add declaration.
10639 * remote-sim.c (_initialize_remote_sim): Add declaration.
10640 * remote.c (_initialize_remote): Add declaration.
10641 * reverse.c (_initialize_reverse): Add declaration.
10642 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10643 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10644 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10645 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10646 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10647 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10648 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10649 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10650 Add declaration.
10651 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10652 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10653 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10654 * rust-exp.y (_initialize_rust_exp): Add declaration.
10655 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10656 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10657 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10658 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10659 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10660 * score-tdep.c (_initialize_score_tdep): Add declaration.
10661 * ser-go32.c (_initialize_ser_dos): Add declaration.
10662 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10663 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10664 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10665 * ser-uds.c (_initialize_ser_socket): Add declaration.
10666 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10667 * serial.c (_initialize_serial): Add declaration.
10668 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10669 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10670 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10671 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10672 * skip.c (_initialize_step_skip): Add declaration.
10673 * sol-thread.c (_initialize_sol_thread): Add declaration.
10674 * solib-aix.c (_initialize_solib_aix): Add declaration.
10675 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10676 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10677 * solib-frv.c (_initialize_frv_solib): Add declaration.
10678 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10679 * solib-target.c (_initialize_solib_target): Add declaration.
10680 * solib.c (_initialize_solib): Add declaration.
10681 * source-cache.c (_initialize_source_cache): Add declaration.
10682 * source.c (_initialize_source): Add declaration.
10683 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10684 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10685 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10686 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10687 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10688 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10689 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10690 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10691 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10692 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10693 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10694 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10695 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10696 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10697 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10698 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10699 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10700 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10701 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10702 * stabsread.c (_initialize_stabsread): Add declaration.
10703 * stack.c (_initialize_stack): Add declaration.
10704 * stap-probe.c (_initialize_stap_probe): Add declaration.
10705 * std-regs.c (_initialize_frame_reg): Add declaration.
10706 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10707 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10708 * symfile.c (_initialize_symfile): Add declaration.
10709 * symmisc.c (_initialize_symmisc): Add declaration.
10710 * symtab.c (_initialize_symtab): Add declaration.
10711 * target.c (_initialize_target): Add declaration.
10712 * target-connection.c (_initialize_target_connection): Add
10713 declaration.
10714 * target-dcache.c (_initialize_target_dcache): Add declaration.
10715 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10716 * thread.c (_initialize_thread): Add declaration.
10717 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10718 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10719 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10720 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10721 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10722 * tracectf.c (_initialize_ctf): Add declaration.
10723 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10724 * tracefile.c (_initialize_tracefile): Add declaration.
10725 * tracepoint.c (_initialize_tracepoint): Add declaration.
10726 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10727 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10728 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10729 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10730 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10731 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10732 * tui/tui.c (_initialize_tui): Add declaration.
10733 * typeprint.c (_initialize_typeprint): Add declaration.
10734 * ui-style.c (_initialize_ui_style): Add declaration.
10735 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10736 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10737 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10738 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10739 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10740 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10741 * unittests/filtered_iterator-selftests.c
10742 (_initialize_filtered_iterator_selftests): Add declaration.
10743 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10744 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10745 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10746 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10747 * unittests/main-thread-selftests.c
10748 (_initialize_main_thread_selftests): Add declaration.
10749 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10750 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10751 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10752 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10753 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10754 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10755 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10756 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10757 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10758 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10759 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10760 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10761 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10762 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10763 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10764 declaration.
10765 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10766 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10767 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10768 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10769 * user-regs.c (_initialize_user_regs): Add declaration.
10770 * utils.c (_initialize_utils): Add declaration.
10771 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10772 * valops.c (_initialize_valops): Add declaration.
10773 * valprint.c (_initialize_valprint): Add declaration.
10774 * value.c (_initialize_values): Add declaration.
10775 * varobj.c (_initialize_varobj): Add declaration.
10776 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10777 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10778 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10779 * windows-nat.c (_initialize_windows_nat): Add declaration.
10780 (_initialize_check_for_gdb_ini): Add declaration.
10781 (_initialize_loadable): Add declaration.
10782 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10783 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10784 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10785 * xcoffread.c (_initialize_xcoffread): Add declaration.
10786 * xml-support.c (_initialize_xml_support): Add declaration.
10787 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10788 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10789 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10790 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10791
10792 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10793
10794 * regformats/regdat.sh: Generate declaration for init function.
10795
10796 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10797
10798 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10799 up.
10800 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10801 close_one_inferior>: New methods.
10802 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10803 pass down target to find_inferior_pid.
10804 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10805 Pass down target to find_inferior_ptid.
10806 (gdbsim_target::create_inferior): Pass down target to
10807 add_thread_silent.
10808 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10809 target down to find_inferior_ptid and switch_to_thread.
10810 (gdbsim_target::close): Update to call close_one_inferior.
10811 (struct resume_data): Remove.
10812 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10813 directly, rather than through a void pointer.
10814 (gdbsim_target::resume): Update to call resume_one_inferior.
10815
10816 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10817
10818 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10819
10820 2020-01-12 Pedro Alves <palves@redhat.com>
10821
10822 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10823 directly for the current inferior instead of
10824 discard_all_inferiors.
10825 (discard_all_inferiors): Delete.
10826
10827 2020-01-11 Tom Tromey <tom@tromey.com>
10828
10829 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10830 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10831 deprecated_safe_get_selected_frame.
10832
10833 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10834
10835 * inferior.c (print_inferior): Switch inferior before printing it.
10836
10837 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10838 Pedro Alves <palves@redhat.com>
10839
10840 * progspace-and-thread.c (switch_to_program_space_and_thread):
10841 Assert there's an inferior for PSPACE. Use
10842 switch_to_inferior_no_thread to switch the inferior too.
10843 * progspace.c (program_space::~program_space): Call
10844 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10845 (program_space::free_all_objfiles): Don't call clear_symtab_users
10846 here.
10847 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10848
10849 2020-01-10 Pedro Alves <palves@redhat.com>
10850
10851 * NEWS: Mention multi-target debugging, "info connections", and
10852 "add-inferior -no-connection".
10853
10854 2020-01-10 Pedro Alves <palves@redhat.com>
10855
10856 * infrun.c: Include "target-connection.h".
10857 (check_multi_target_resumption): New.
10858 (proceed): Call it.
10859 * target-connection.c (make_target_connection_string): Make
10860 extern.
10861 * target-connection.h (make_target_connection_string): Declare.
10862
10863 2020-01-10 Pedro Alves <palves@redhat.com>
10864
10865 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10866 * inferior.c (uiout_field_connection): New function.
10867 (print_inferior): Add new "connection-id" column.
10868 (add_inferior_command): Show connection number/string of added
10869 inferior.
10870 * process-stratum-target.h
10871 (process_stratum_target::connection_string): New virtual method.
10872 (process_stratum_target::connection_number): New field.
10873 * remote.c (remote_target::connection_string): New override.
10874 * target-connection.c: New file.
10875 * target-connection.h: New file.
10876 * target.c (decref_target): Remove process_stratum targets from
10877 the connection list.
10878 (target_stack::push): Add process_stratum targets to the
10879 connection list.
10880
10881 2020-01-10 Pedro Alves <palves@redhat.com>
10882
10883 Revert:
10884 2016-04-12 Pedro Alves <palves@redhat.com>
10885 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10886 Remove references to name.
10887 * serial.h (struct serial) <name>: Delete.
10888
10889 2020-01-10 Pedro Alves <palves@redhat.com>
10890
10891 * gdbarch-selftests.c (register_to_value_test): Remove "target
10892 already pushed" check.
10893
10894 2020-01-10 Pedro Alves <palves@redhat.com>
10895 John Baldwin <jhb@FreeBSD.org>
10896
10897 * aarch64-linux-nat.c
10898 (aarch64_linux_nat_target::thread_architecture): Adjust.
10899 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10900 (task_command_1): Likewise.
10901 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10902 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10903 (aix_thread_target::store_registers)
10904 (aix_thread_target::thread_alive): Adjust.
10905 * amd64-fbsd-tdep.c: Include "inferior.h".
10906 (amd64fbsd_get_thread_local_address): Pass down target.
10907 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10908 thread's gdbarch instead of target_gdbarch.
10909 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10910 get_last_target_status.
10911 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10912 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10913 inferiors.
10914 (update_inserted_breakpoint_locations): Skip if inferiors with no
10915 execution.
10916 (update_global_location_list): When handling moribund locations,
10917 find representative inferior for location's pspace, and use thread
10918 count of its process_stratum target.
10919 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10920 * bsd-uthread.c (bsd_uthread_target::wait): Use
10921 as_process_stratum_target and adjust thread_change_ptid and
10922 add_thread calls.
10923 (bsd_uthread_target::update_thread_list): Use
10924 as_process_stratum_target and adjust find_thread_ptid,
10925 thread_change_ptid and add_thread calls.
10926 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10927 find_thread_ptid call.
10928 * corelow.c (add_to_thread_list): Adjust add_thread call.
10929 (core_target_open): Adjust add_thread_silent and thread_count
10930 calls.
10931 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10932 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10933 * event-top.c (async_disconnect): Pop targets from all inferiors.
10934 * exec.c (add_target_sections): Push exec target on all inferiors
10935 sharing the program space.
10936 (remove_target_sections): Remove the exec target from all
10937 inferiors sharing the program space.
10938 (exec_on_vfork): New.
10939 * exec.h (exec_on_vfork): Declare.
10940 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10941 Pass it down.
10942 (fbsd_nat_target::update_thread_list): Adjust.
10943 (fbsd_nat_target::resume): Adjust.
10944 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10945 down.
10946 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10947 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10948 get_thread_arch_regcache call.
10949 * fork-child.c (gdb_startup_inferior): Pass target down to
10950 startup_inferior and set_executing.
10951 * gdbthread.h (struct process_stratum_target): Forward declare.
10952 (add_thread, add_thread_silent, add_thread_with_info)
10953 (in_thread_list): Add process_stratum_target parameter.
10954 (find_thread_ptid(inferior*, ptid_t)): New overload.
10955 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10956 parameter.
10957 (all_threads()): Delete overload.
10958 (all_threads, all_non_exited_threads): Add process_stratum_target
10959 parameter.
10960 (all_threads_safe): Use brace initialization.
10961 (thread_count): Add process_stratum_target parameter.
10962 (set_resumed, set_running, set_stop_requested, set_executing)
10963 (threads_are_executing, finish_thread_state): Add
10964 process_stratum_target parameter.
10965 (switch_to_thread): Use is_current_thread.
10966 * i386-fbsd-tdep.c: Include "inferior.h".
10967 (i386fbsd_get_thread_local_address): Pass down target.
10968 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10969 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10970 have_inferiors check.
10971 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10972 (inf_ptrace_target::attach): Adjust.
10973 * infcall.c (run_inferior_call): Adjust.
10974 * infcmd.c (run_command_1): Pass target to
10975 scoped_finish_thread_state.
10976 (proceed_thread_callback): Skip inferiors with no execution.
10977 (continue_command): Rename 'all_threads' local to avoid hiding
10978 'all_threads' function. Adjust get_last_target_status call.
10979 (prepare_one_step): Adjust set_running call.
10980 (signal_command): Use user_visible_resume_target. Compare thread
10981 pointers instead of inferior_ptid.
10982 (info_program_command): Adjust to pass down target.
10983 (attach_command): Mark target's 'thread_executing' flag.
10984 (stop_current_target_threads_ns): New, factored out from ...
10985 (interrupt_target_1): ... this. Switch inferior before making
10986 target calls.
10987 * inferior-iter.h
10988 (struct all_inferiors_iterator, struct all_inferiors_range)
10989 (struct all_inferiors_safe_range)
10990 (struct all_non_exited_inferiors_range): Filter on
10991 process_stratum_target too. Remove explicit.
10992 * inferior.c (inferior::inferior): Push dummy target on target
10993 stack.
10994 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10995 Add process_stratum_target parameter, and pass it down.
10996 (have_live_inferiors): Adjust.
10997 (switch_to_inferior_and_push_target): New.
10998 (add_inferior_command, clone_inferior_command): Handle
10999 "-no-connection" parameter. Use
11000 switch_to_inferior_and_push_target.
11001 (_initialize_inferior): Mention "-no-connection" option in
11002 the help of "add-inferior" and "clone-inferior" commands.
11003 * inferior.h: Include "process-stratum-target.h".
11004 (interrupt_target_1): Use bool.
11005 (struct inferior) <push_target, unpush_target, target_is_pushed,
11006 find_target_beneath, top_target, process_target, target_at,
11007 m_stack>: New.
11008 (discard_all_inferiors): Delete.
11009 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11010 (all_inferiors, all_non_exited_inferiors): Add
11011 process_stratum_target parameter.
11012 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11013 (target_last_proc_target): New global.
11014 (follow_fork_inferior): Push target on new inferior. Pass target
11015 to add_thread_silent. Call exec_on_vfork. Handle target's
11016 reference count.
11017 (follow_fork): Adjust get_last_target_status call. Also consider
11018 target.
11019 (follow_exec): Push target on new inferior.
11020 (struct execution_control_state) <target>: New field.
11021 (user_visible_resume_target): New.
11022 (do_target_resume): Call target_async.
11023 (resume_1): Set target's threads_executing flag. Consider resume
11024 target.
11025 (commit_resume_all_targets): New.
11026 (proceed): Also consider resume target. Skip threads of inferiors
11027 with no execution. Commit resumtion in all targets.
11028 (start_remote): Pass current inferior to wait_for_inferior.
11029 (infrun_thread_stop_requested): Consider target as well. Pass
11030 thread_info pointer to clear_inline_frame_state instead of ptid.
11031 (infrun_thread_thread_exit): Consider target as well.
11032 (random_pending_event_thread): New inferior parameter. Use it.
11033 (do_target_wait): Rename to ...
11034 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11035 down.
11036 (threads_are_resumed_pending_p, do_target_wait): New.
11037 (prepare_for_detach): Adjust calls.
11038 (wait_for_inferior): New inferior parameter. Handle it. Use
11039 do_target_wait_1 instead of do_target_wait.
11040 (fetch_inferior_event): Adjust. Switch to representative
11041 inferior. Pass target down.
11042 (set_last_target_status): Add process_stratum_target parameter.
11043 Save target in global.
11044 (get_last_target_status): Add process_stratum_target parameter and
11045 handle it.
11046 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11047 (context_switch): Check inferior_ptid == null_ptid before calling
11048 inferior_thread().
11049 (get_inferior_stop_soon): Pass down target.
11050 (wait_one): Rename to ...
11051 (poll_one_curr_target): ... this.
11052 (struct wait_one_event): New.
11053 (wait_one): New.
11054 (stop_all_threads): Adjust.
11055 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11056 event's target.
11057 (switch_back_to_stepped_thread): Also consider target.
11058 (print_stop_event): Update.
11059 (normal_stop): Update. Also consider the resume target.
11060 * infrun.h (wait_for_inferior): Remove declaration.
11061 (user_visible_resume_target): New declaration.
11062 (get_last_target_status, set_last_target_status): New
11063 process_stratum_target parameter.
11064 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11065 process_stratum_target parameter, and use it.
11066 (clear_inline_frame_state (thread_info*)): New.
11067 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11068 process_stratum_target parameter.
11069 (clear_inline_frame_state (thread_info*)): Declare.
11070 * linux-fork.c (delete_checkpoint_command): Pass target down to
11071 find_thread_ptid.
11072 (checkpoint_command): Adjust.
11073 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11074 instead of just tweaking inferior_ptid.
11075 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11076 (exit_lwp): Pass target down to find_thread_ptid.
11077 (attach_proc_task_lwp_callback): Pass target down to
11078 add_thread/set_running/set_executing.
11079 (linux_nat_target::attach): Pass target down to
11080 thread_change_ptid.
11081 (get_detach_signal): Pass target down to find_thread_ptid.
11082 Consider last target status's target.
11083 (linux_resume_one_lwp_throw, resume_lwp)
11084 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11085 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11086 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11087 (linux_nat_target::async_wait_fd): New.
11088 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11089 target down.
11090 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11091 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11092 * linux-thread-db.c (struct thread_db_info::process_target): New
11093 field.
11094 (add_thread_db_info): Save target.
11095 (get_thread_db_info): New process_stratum_target parameter. Also
11096 match target.
11097 (delete_thread_db_info): New process_stratum_target parameter.
11098 Also match target.
11099 (thread_from_lwp): Adjust to pass down target.
11100 (thread_db_notice_clone): Pass down target.
11101 (check_thread_db_callback): Pass down target.
11102 (try_thread_db_load_1): Always push the thread_db target.
11103 (try_thread_db_load, record_thread): Pass target down.
11104 (thread_db_target::detach): Pass target down. Always unpush the
11105 thread_db target.
11106 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11107 target down. Always unpush the thread_db target.
11108 (find_new_threads_callback, thread_db_find_new_threads_2)
11109 (thread_db_target::update_thread_list): Pass target down.
11110 (thread_db_target::pid_to_str): Pass current inferior down.
11111 (thread_db_target::get_thread_local_address): Pass target down.
11112 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11113 target down.
11114 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11115 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11116 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11117 (procfs_init_inferior): Rename to ...
11118 (procfs_target::procfs_init_inferior): ... this and adjust.
11119 (procfs_target::create_inferior, procfs_notice_thread)
11120 (procfs_do_thread_registers): Adjust.
11121 * ppc-fbsd-tdep.c: Include "inferior.h".
11122 (ppcfbsd_get_thread_local_address): Pass down target.
11123 * proc-service.c (ps_xfer_memory): Switch current inferior and
11124 program space as well.
11125 (get_ps_regcache): Pass target down.
11126 * process-stratum-target.c
11127 (process_stratum_target::thread_address_space)
11128 (process_stratum_target::thread_architecture): Pass target down.
11129 * process-stratum-target.h
11130 (process_stratum_target::threads_executing): New field.
11131 (as_process_stratum_target): New.
11132 * ravenscar-thread.c
11133 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11134 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11135 down.
11136 * record-btrace.c (record_btrace_target::info_record): Adjust.
11137 (record_btrace_target::record_method)
11138 (record_btrace_target::record_is_replaying)
11139 (record_btrace_target::fetch_registers)
11140 (get_thread_current_frame_id, record_btrace_target::resume)
11141 (record_btrace_target::wait, record_btrace_target::stop): Pass
11142 target down.
11143 * record-full.c (record_full_wait_1): Switch to event thread.
11144 Pass target down.
11145 * regcache.c (regcache::regcache)
11146 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11147 process_stratum_target parameter and handle it.
11148 (current_thread_target): New global.
11149 (get_thread_regcache): Add process_stratum_target parameter and
11150 handle it. Switch inferior before calling target method.
11151 (get_thread_regcache): Pass target down.
11152 (get_thread_regcache_for_ptid): Pass target down.
11153 (registers_changed_ptid): Add process_stratum_target parameter and
11154 handle it.
11155 (registers_changed_thread, registers_changed): Pass target down.
11156 (test_get_thread_arch_aspace_regcache): New.
11157 (current_regcache_test): Define a couple local test_target_ops
11158 instances and use them for testing.
11159 (readwrite_regcache): Pass process_stratum_target parameter.
11160 (cooked_read_test, cooked_write_test): Pass mock_target down.
11161 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11162 (get_thread_arch_aspace_regcache): Add process_stratum_target
11163 parameter.
11164 (regcache::target): New method.
11165 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11166 (regcache::registers_changed_ptid): Add process_stratum_target
11167 parameter.
11168 (regcache::m_target): New field.
11169 (registers_changed_ptid): Add process_stratum_target parameter.
11170 * remote.c (remote_state::supports_vCont_probed): New field.
11171 (remote_target::async_wait_fd): New method.
11172 (remote_unpush_and_throw): Add remote_target parameter.
11173 (get_current_remote_target): Adjust.
11174 (remote_target::remote_add_inferior): Push target.
11175 (remote_target::remote_add_thread)
11176 (remote_target::remote_notice_new_inferior)
11177 (get_remote_thread_info): Pass target down.
11178 (remote_target::update_thread_list): Skip threads of inferiors
11179 bound to other targets. (remote_target::close): Don't discard
11180 inferiors. (remote_target::add_current_inferior_and_thread)
11181 (remote_target::process_initial_stop_replies)
11182 (remote_target::start_remote)
11183 (remote_target::remote_serial_quit_handler): Pass down target.
11184 (remote_target::remote_unpush_target): New remote_target
11185 parameter. Unpush the target from all inferiors.
11186 (remote_target::remote_unpush_and_throw): New remote_target
11187 parameter. Pass it down.
11188 (remote_target::open_1): Check whether the current inferior has
11189 execution instead of checking whether any inferior is live. Pass
11190 target down.
11191 (remote_target::remote_detach_1): Pass down target. Use
11192 remote_unpush_target.
11193 (extended_remote_target::attach): Pass down target.
11194 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11195 (remote_target::append_resumption): Pass down target.
11196 (remote_target::append_pending_thread_resumptions)
11197 (remote_target::remote_resume_with_hc, remote_target::resume)
11198 (remote_target::commit_resume): Pass down target.
11199 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11200 (remote_target::interrupt_query)
11201 (remote_target::remove_new_fork_children)
11202 (remote_target::check_pending_events_prevent_wildcard_vcont)
11203 (remote_target::remote_parse_stop_reply)
11204 (remote_target::process_stop_reply): Pass down target.
11205 (first_remote_resumed_thread): New remote_target parameter. Pass
11206 it down.
11207 (remote_target::wait_as): Pass down target.
11208 (unpush_and_perror): New remote_target parameter. Pass it down.
11209 (remote_target::readchar, remote_target::remote_serial_write)
11210 (remote_target::getpkt_or_notif_sane_1)
11211 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11212 down target.
11213 (remote_target::mourn_inferior): Pass down target. Use
11214 remote_unpush_target.
11215 (remote_target::core_of_thread)
11216 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11217 (remote_target::pid_to_exec_file)
11218 (remote_target::thread_handle_to_thread_info): Pass down target.
11219 (remote_target::async_wait_fd): New.
11220 * riscv-fbsd-tdep.c: Include "inferior.h".
11221 (riscv_fbsd_get_thread_local_address): Pass down target.
11222 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11223 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11224 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11225 Adjust.
11226 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11227 * solib-svr4.c (enable_break): Pass down target.
11228 * spu-multiarch.c (parse_spufs_run): Pass down target.
11229 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11230 * target-delegates.c: Regenerate.
11231 * target.c (g_target_stack): Delete.
11232 (current_top_target): Return the current inferior's top target.
11233 (target_has_execution_1): Refer to the passed-in inferior's top
11234 target.
11235 (target_supports_terminal_ours): Check whether the initial
11236 inferior was already created.
11237 (decref_target): New.
11238 (target_stack::push): Incref/decref the target.
11239 (push_target, push_target, unpush_target): Adjust.
11240 (target_stack::unpush): Defref target.
11241 (target_is_pushed): Return bool. Adjust to refer to the current
11242 inferior's target stack.
11243 (dispose_inferior): Delete, and inline parts ...
11244 (target_preopen): ... here. Only dispose of the current inferior.
11245 (target_detach): Hold strong target reference while detaching.
11246 Pass target down.
11247 (target_thread_name): Add assertion.
11248 (target_resume): Pass down target.
11249 (target_ops::beneath, find_target_at): Adjust to refer to the
11250 current inferior's target stack.
11251 (get_dummy_target): New.
11252 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11253 has a thread running.
11254 (initialize_targets): Rename to ...
11255 (_initialize_target): ... this.
11256 * target.h: Include "gdbsupport/refcounted-object.h".
11257 (struct target_ops): Inherit refcounted_object.
11258 (target_ops::shortname, target_ops::longname): Make const.
11259 (target_ops::async_wait_fd): New method.
11260 (decref_target): Declare.
11261 (struct target_ops_ref_policy): New.
11262 (target_ops_ref): New typedef.
11263 (get_dummy_target): Declare function.
11264 (target_is_pushed): Return bool.
11265 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11266 (all_matching_threads_iterator::all_matching_threads_iterator):
11267 Handle filter target.
11268 * thread-iter.h (struct all_matching_threads_iterator, struct
11269 all_matching_threads_range, class all_non_exited_threads_range):
11270 Filter by target too. Remove explicit.
11271 * thread.c (threads_executing): Delete.
11272 (inferior_thread): Pass down current inferior.
11273 (clear_thread_inferior_resources): Pass down thread pointer
11274 instead of ptid_t.
11275 (add_thread_silent, add_thread_with_info, add_thread): Add
11276 process_stratum_target parameter. Use it for thread and inferior
11277 searches.
11278 (is_current_thread): New.
11279 (thread_info::deletable): Use it.
11280 (find_thread_ptid, thread_count, in_thread_list)
11281 (thread_change_ptid, set_resumed, set_running): New
11282 process_stratum_target parameter. Pass it down.
11283 (set_executing): New process_stratum_target parameter. Pass it
11284 down. Adjust reference to 'threads_executing'.
11285 (threads_are_executing): New process_stratum_target parameter.
11286 Adjust reference to 'threads_executing'.
11287 (set_stop_requested, finish_thread_state): New
11288 process_stratum_target parameter. Pass it down.
11289 (switch_to_thread): Also match inferior.
11290 (switch_to_thread): New process_stratum_target parameter. Pass it
11291 down.
11292 (update_threads_executing): Reimplement.
11293 * top.c (quit_force): Pop targets from all inferior.
11294 (gdb_init): Don't call initialize_targets.
11295 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11296 Declare.
11297 (windows_add_thread, windows_delete_thread): Adjust.
11298 (get_windows_debug_event): Rename to ...
11299 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11300 * tracefile-tfile.c (tfile_target_open): Pass down target.
11301 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11302 Forward declare.
11303 (switch_to_thread): Add process_stratum_target parameter.
11304 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11305 parameter. Use it.
11306 (mi_on_resume): Pass target down.
11307 * nat/fork-inferior.c (startup_inferior): Add
11308 process_stratum_target parameter. Pass it down.
11309 * nat/fork-inferior.h (startup_inferior): Add
11310 process_stratum_target parameter.
11311 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11312
11313 2020-01-10 Pedro Alves <palves@redhat.com>
11314
11315 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11316 directly. Instead find the first thread in the thread list and
11317 use switch_to_thread.
11318
11319 2020-01-10 Pedro Alves <palves@redhat.com>
11320
11321 * remote.c (remote_target::remote_add_inferior): Don't bind a
11322 process to the current inferior if the current inferior is already
11323 bound to a process.
11324
11325 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11326 Pedro Alves <palves@redhat.com>
11327
11328 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11329 If no process is specified, return null_ptid instead of
11330 inferior_ptid.
11331 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11332 TARGET_WAITKIND_SIGNALLED with no pid.
11333
11334 2020-01-10 Pedro Alves <palves@redhat.com>
11335
11336 * remote.c (first_remote_resumed_thread): New.
11337 (remote_target::wait_as): Use it as default event_ptid instead of
11338 inferior_ptid.
11339
11340 2020-01-10 Pedro Alves <palves@redhat.com>
11341
11342 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11343
11344 2020-01-10 Pedro Alves <palves@redhat.com>
11345
11346 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11347 not -1.
11348
11349 2020-01-10 Pedro Alves <palves@redhat.com>
11350
11351 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11352 ptid to get_last_target_status.
11353 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11354 ptid to get_last_target_status.
11355 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11356 get_last_target_status.
11357 (info_program_command): Don't pass a target_waitstatus to
11358 get_last_target_status.
11359 * infrun.c (init_wait_for_inferior): Use
11360 nullify_last_target_wait_ptid.
11361 (get_last_target_status): Handle nullptr arguments.
11362 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11363 (print_stop_event): Don't pass a ptid to get_last_target_status.
11364 (normal_stop): Don't pass a ptid to get_last_target_status.
11365 * infrun.h (get_last_target_status, set_last_target_status): Move
11366 comments here and update.
11367 (nullify_last_target_wait_ptid): Declare.
11368 * linux-fork.c (fork_load_infrun_state): Remove local extern
11369 declaration of nullify_last_target_wait_ptid.
11370 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11371 to get_last_target_status.
11372
11373 2020-01-10 Pedro Alves <palves@redhat.com>
11374
11375 * gdbthread.h (scoped_restore_current_thread)
11376 <dont_restore, restore, m_dont_restore>: Declare.
11377 * thread.c (thread_alive): Add assertion. Return bool.
11378 (switch_to_thread_if_alive): New.
11379 (prune_threads): Switch inferior/thread.
11380 (print_thread_info_1): Switch thread before calling target methods.
11381 (scoped_restore_current_thread::restore): New, factored out from
11382 ...
11383 (scoped_restore_current_thread::~scoped_restore_current_thread):
11384 ... this.
11385 (scoped_restore_current_thread::scoped_restore_current_thread):
11386 Add assertion.
11387 (thread_apply_all_command, thread_select): Use
11388 switch_to_thread_if_alive.
11389 * infrun.c (proceed, restart_threads, handle_signal_stop)
11390 (switch_back_to_stepped_thread): Switch current thread before
11391 calling target methods.
11392
11393 2020-01-10 Pedro Alves <palves@redhat.com>
11394
11395 * inferior.c (switch_to_inferior_no_thread): New function,
11396 factored out from ...
11397 (inferior_command): ... here.
11398 * inferior.h (switch_to_inferior_no_thread): Declare.
11399 * mi/mi-main.c (run_one_inferior): Use
11400 switch_to_inferior_no_thread.
11401
11402 2020-01-10 Pedro Alves <palves@redhat.com>
11403
11404 * infcmd.c (kill_command): Remove dead code.
11405
11406 2020-01-10 Pedro Alves <palves@redhat.com>
11407
11408 * remote.c (remote_target::mourn_inferior): No longer check
11409 whether the target is running.
11410
11411 2020-01-10 Pedro Alves <palves@redhat.com>
11412
11413 * corelow.c (core_target::has_execution): Change parameter type to
11414 inferior pointer.
11415 * inferior.c (number_of_live_inferiors): Use
11416 inferior::has_execution instead of target_has_execution_1.
11417 * inferior.h (inferior::has_execution): New.
11418 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11419 inferior::has_execution instead of target_has_execution_1.
11420 * process-stratum-target.c
11421 (process_stratum_target::has_execution): Change parameter type to
11422 inferior pointer. Check the inferior's PID instead of
11423 inferior_ptid.
11424 * process-stratum-target.h
11425 (process_stratum_target::has_execution): Change parameter type to
11426 inferior pointer.
11427 * record-full.c (record_full_core_target::has_execution): Change
11428 parameter type to inferior pointer.
11429 * target.c (target_has_execution_1): Change parameter type to
11430 inferior pointer.
11431 (target_has_execution_current): Adjust.
11432 * target.h (target_ops::has_execution): Change parameter type to
11433 inferior pointer.
11434 (target_has_execution_1): Change parameter type to inferior
11435 pointer. Change return type to bool.
11436 * tracefile.h (tracefile_target::has_execution): Change parameter
11437 type to inferior pointer.
11438
11439 2020-01-10 Pedro Alves <palves@redhat.com>
11440
11441 * exceptions.c (print_flush): Remove current_top_target() check.
11442
11443 2020-01-10 Pedro Alves <palves@redhat.com>
11444
11445 * remote.c (show_remote_exec_file): Show the current inferior's
11446 exec-file instead of the command variable's value.
11447
11448 2020-01-10 Pedro Alves <palves@redhat.com>
11449
11450 * record-full.c (record_full_resume_ptid): New global.
11451 (record_full_target::resume): Set it.
11452 (record_full_wait_1): Use record_full_resume_ptid instead of
11453 inferior_ptid.
11454
11455 2020-01-10 Pedro Alves <palves@redhat.com>
11456
11457 * gdbthread.h (scoped_restore_current_thread)
11458 <dont_restore, restore, m_dont_restore>: Declare.
11459 * thread.c (thread_alive): Add assertion. Return bool.
11460 (switch_to_thread_if_alive): New.
11461 (prune_threads): Switch inferior/thread.
11462 (print_thread_info_1): Switch thread before calling target methods.
11463 (scoped_restore_current_thread::restore): New, factored out from
11464 ...
11465 (scoped_restore_current_thread::~scoped_restore_current_thread):
11466 ... this.
11467 (scoped_restore_current_thread::scoped_restore_current_thread):
11468 Add assertion.
11469 (thread_apply_all_command, thread_select): Use
11470 switch_to_thread_if_alive.
11471
11472 2020-01-10 George Barrett <bob@bob131.so>
11473
11474 * stap-probe.c (stap_modify_semaphore): Don't check for null
11475 semaphores.
11476 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11477 for null semaphores.
11478
11479 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11480
11481 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11482 all source windows, and maintain horizontal scroll status while
11483 doing so.
11484
11485 2020-01-09 Tom Tromey <tom@tromey.com>
11486
11487 PR tui/18932:
11488 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11489 update_source_window, not print_source_lines.
11490
11491 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11492
11493 * tui/tui.c (tui_enable): Register tui hooks after calling
11494 tui_display_main.
11495
11496 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11497
11498 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11499
11500 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11501
11502 * thread.c (print_thread_info_1): Fix indentation.
11503
11504 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11505
11506 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11507 unique_xmalloc_ptr outside the if to always free the demangled name.
11508
11509 2020-01-08 Tom Tromey <tromey@adacore.com>
11510
11511 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11512 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11513 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11514 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11515 Remove.
11516 (section_offsets): New typedef.
11517 * symtab.c (fixup_section, get_msymbol_address): Update.
11518 * symmisc.c (dump_msymbols): Update.
11519 * symfile.h (relative_addr_info_to_section_offsets)
11520 (symfile_map_offsets_to_segments): Update.
11521 * symfile.c (build_section_addr_info_from_objfile)
11522 (init_objfile_sect_indices): Update.
11523 (struct place_section_arg): Change type of "offsets".
11524 (place_section): Update.
11525 (relative_addr_info_to_section_offsets): Change type of
11526 "section_offsets". Remove "num_sections" parameter.
11527 (default_symfile_offsets, syms_from_objfile_1)
11528 (set_objfile_default_section_offset): Update.
11529 (reread_symbols): No need to preserve section offsets by hand.
11530 (symfile_map_offsets_to_segments): Change type of "offsets".
11531 * stap-probe.c (relocate_address): Update.
11532 * stabsread.h (process_one_symbol): Update.
11533 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11534 (solib_target_relocate_section_addresses): Update.
11535 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11536 Update.
11537 * solib-frv.c (frv_relocate_main_executable): Update.
11538 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11539 * solib-aix.c (solib_aix_get_section_offsets): Change return
11540 type.
11541 (solib_aix_solib_create_inferior_hook): Update.
11542 * remote.c (remote_target::get_offsets): Update.
11543 * psymtab.c (find_pc_sect_psymtab): Update.
11544 * psympriv.h (struct partial_symbol) <address, text_low,
11545 text_high>: Update.
11546 * objfiles.h (obj_section_offset): Update.
11547 (struct objfile) <section_offsets>: Change type.
11548 <num_sections>: Remove.
11549 (objfile_relocate): Update.
11550 * objfiles.c (entry_point_address_query): Update
11551 (relocate_one_symbol): Change type of "section_offsets".
11552 (objfile_relocate1, objfile_relocate1): Change type of
11553 "new_offsets".
11554 (objfile_rebase1): Update.
11555 * mipsread.c (mipscoff_symfile_read): Update.
11556 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11557 parameter.
11558 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11559 (parse_external, psymtab_to_symtab_1): Update.
11560 * machoread.c (macho_symfile_offsets): Update.
11561 * ia64-tdep.c (ia64_find_unwind_table): Update.
11562 * hppa-tdep.c (read_unwind_info): Update.
11563 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11564 * dwarf2read.c (create_addrmap_from_index)
11565 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11566 (process_psymtab_comp_unit_reader, add_partial_symbol)
11567 (add_partial_subprogram, process_full_comp_unit)
11568 (read_file_scope, read_func_scope, read_lexical_block_scope)
11569 (read_call_site_scope, dwarf2_rnglists_process)
11570 (dwarf2_ranges_process, dwarf2_ranges_read)
11571 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11572 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11573 Update.
11574 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11575 Update.
11576 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11577 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11578 (process_one_symbol): Change type of "section_offsets".
11579 * ctfread.c (get_objfile_text_range): Update.
11580 * coffread.c (coff_symtab_read, enter_linenos)
11581 (process_coff_symbol): Update.
11582 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11583 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11584
11585 2020-01-08 Tom Tromey <tromey@adacore.com>
11586
11587 * dwarf2read.c (parse_macro_definition): Use std::string.
11588 (parse_macro_definition): Likewise.
11589
11590 2020-01-08 Tom Tromey <tromey@adacore.com>
11591
11592 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11593 (ATTR_ALLOC_CHUNK): Remove.
11594
11595 2020-01-08 Tom Tromey <tromey@adacore.com>
11596
11597 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11598
11599 2020-01-08 Tom Tromey <tromey@adacore.com>
11600
11601 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11602 (dwarf2_compute_name, open_dwo_file): Likewise.
11603 (process_enumeration_scope): Use std::vector.
11604 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11605 (partial_die_info::fixup, dwarf2_start_subfile)
11606 (guess_full_die_structure_name, dwarf2_name): Likewise.
11607 (determine_prefix): Update.
11608 (guess_full_die_structure_name): Make return type const.
11609 (partial_die_full_name): Return unique_xmalloc_ptr.
11610 (DW_FIELD_ALLOC_CHUNK): Remove.
11611
11612 2020-01-07 Tom Tromey <tromey@adacore.com>
11613
11614 PR build/24937:
11615 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11616
11617 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11618
11619 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11620
11621 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11622
11623 * stack.c (print_frame_info): Move disassemble_next_line code
11624 inside source_print block.
11625
11626 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11627
11628 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11629 gdb/signals.h, as we are now using native signal symbols.
11630
11631 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11632
11633 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11634 overflow by an early check of content vs threshold.
11635 * tui/tui-source.c (tui_source_window::line_is_displayed):
11636 Likewise.
11637
11638 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11639
11640 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11641
11642 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11643
11644 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11645 export table if no section contains it's RVA.
11646
11647 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11648
11649 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11650
11651 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11652
11653 * source.c (print_source_lines_base): Set last_line_listed.
11654
11655 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11656
11657 * tui/tui-disasm.c: Remove trailing spaces.
11658
11659 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11660 Pedro Alves <palves@redhat.com>
11661
11662 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11663 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11664 (windows_gdb_signal_to_target): New function, uses the above
11665 enumeration to convert GDB internal signal codes to equivalent
11666 Windows codes.
11667 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11668 * windows-nat.c: Include "gdb_wait.h".
11669 (get_windows_debug_event): Extract the fatal exception from the
11670 exit status and convert to the equivalent Posix signal number.
11671 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11672 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11673 * gdbsupport/gdb_wait.c: New file, implements
11674 windows_status_to_termsig.
11675 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11676 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11677
11678 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11679
11680 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11681 show_layout.
11682
11683 2020-01-05 Luis Machado <luis.machado@linaro.org>
11684
11685 * aarch64-linux-nat.c
11686 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11687 and bfd_mach_aarch64.
11688
11689 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11690
11691 * ui-file.c (stdio_file::can_emit_style_escape)
11692 (tee_file::can_emit_style_escape): Ensure style is used also on
11693 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11694 to gdb_stdout.
11695 * main.c (set_gdb_data_directory): Use file style to output the
11696 warning that the given pathname is not a directory.
11697 * top.c (show_history_filename, gdb_safe_append_history)
11698 (show_gdb_datadir): Use file style.
11699
11700 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11701
11702 * solib-target.c (struct lm_info_target):
11703 Change offsets to be a unique_xmalloc_ptr.
11704 (solib_target_relocate_section_addresses): Update.
11705
11706 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11707
11708 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11709
11710 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11711
11712 * MAINTAINERS (Write After Approval): Add myself.
11713
11714 2020-01-02 Luis Machado <luis.machado@linaro.org>
11715
11716 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11717 Cell BE architecture.
11718 * target.h (struct target_ops) <thread_architecture>: Likewise.
11719
11720 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11721
11722 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11723
11724 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11725
11726 * MAINTAINERS (Write After Approval): Add myself.
11727
11728 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11729
11730 * gdbarch.sh: Update copyright year range of generated files.
11731
11732 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11733
11734 Update copyright year range in all GDB files.
11735
11736 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11737
11738 * copyright.py: Convert to Python 3.
11739
11740 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11741
11742 * copyright.py: Adapt after move of gnulib directory from gdb
11743 directory to toplevel directory.
11744
11745 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11746
11747 * copyright.py (main): Exit if run from the wrong directory.
11748
11749 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11750
11751 * top.c (print_gdb_version): Change copyright year to 2020.
11752
11753 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11754
11755 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11756
11757 For older changes see ChangeLog-2019.
11758 \f
11759 Local Variables:
11760 mode: change-log
11761 left-margin: 8
11762 fill-column: 74
11763 version-control: never
11764 coding: utf-8
11765 End: