]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
[gdb/symtab] Ignore DW_LNE_lo_user/DW_LNE_hi_user range
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-03 Tom de Vries <tdevries@suse.de>
2
3 PR symtab/26333
4 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5 DW_LNE_lo_user/DW_LNE_hi_user range.
6
7 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
8
9 PR ada/26318
10 * ada-lang.c (ada_modulus): Return 0 if property is not of const
11 kind.
12
13 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
14
15 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
16
17 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
18
19 * breakpoint.c (set_breakpoint_condition): Update the condition
20 expressions after checking that the input condition string parses
21 successfully and does not contain junk at the end.
22
23 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
24
25 * breakpoint.c (set_breakpoint_condition): Update the
26 condition string after parsing the new condition successfully.
27
28 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29
30 * proc-api.c (_STRUCTURED_PROC): Don't define.
31 * proc-events.c: Likewise.
32 * proc-flags.c: Likewise.
33 * proc-why.c: Likewise.
34 * procfs.c: Likewise.
35
36 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
37 * configure, config.in: Regenerate.
38
39 2020-07-30 Tom de Vries <tdevries@suse.de>
40
41 PR build/26320
42 * ui-style.h (struct ui_file_style::color): Wrap m_value and
43 m_red/m_green/m_blue in a union.
44
45 2020-07-29 Tom de Vries <tdevries@suse.de>
46
47 PR tdep/26280
48 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
49
50 2020-07-28 Tom Tromey <tromey@adacore.com>
51
52 PR symtab/26270:
53 * symtab.h (find_pc_partial_function_sym): Declare.
54 * cli/cli-cmds.c (disassemble_command): Use
55 find_pc_partial_function_sym. Check asm_demangle.
56 * blockframe.c (cache_pc_function_sym): New global.
57 (cache_pc_function_name): Remove.
58 (clear_pc_function_cache): Update.
59 (find_pc_partial_function_sym): New function, from
60 find_pc_partial_function.
61 (find_pc_partial_function): Rewrite using
62 find_pc_partial_function_sym.
63
64 2020-07-28 Tom Tromey <tromey@adacore.com>
65
66 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
67 help. Add usage.
68
69 2020-07-28 Tom Tromey <tromey@adacore.com>
70
71 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
72 <DW_OP_GNU_variable_value>: Cast to address type.
73
74 2020-07-28 Kamil Rytarowski <n54@gmx.com>
75
76 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
77 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
78 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
79 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
80 (nbsd_get_siginfo_type): New.
81 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
82 (_initialize_nbsd_tdep): New.
83
84 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
85
86 PR binutils/26301
87 * configure: Regenerated.
88
89 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
90
91 PR binutils/26301
92 * configure: Regenerated.
93
94 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 * python/py-frame.c: Remove 'user-regs.h' include.
97 (frapy_read_register): Rewrite to make use of
98 gdbpy_parse_register_id.
99 * python/py-registers.c (gdbpy_parse_register_id): New function,
100 moved here from python/py-unwind.c. Updated the return type, and
101 also accepts register descriptor objects.
102 * python/py-unwind.c: Remove 'user-regs.h' include.
103 (pyuw_parse_register_id): Moved to python/py-registers.c.
104 (unwind_infopy_add_saved_register): Update to use
105 gdbpy_parse_register_id.
106 (pending_framepy_read_register): Likewise.
107 * python/python-internal.h (gdbpy_parse_register_id): Declare.
108
109 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
110
111 * python/py-registers.c: Add 'user-regs.h' include.
112 (register_descriptor_iter_find): New function.
113 (register_descriptor_iterator_object_methods): New static global
114 methods array.
115 (register_descriptor_iterator_object_type): Add pointer to methods
116 array.
117
118 2020-07-27 John Baldwin <jhb@FreeBSD.org>
119
120 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
121 for all architectures on FreeBSD 11.3 and later.
122
123 2020-07-27 Tom Tromey <tromey@adacore.com>
124
125 * gcore.h (load_corefile): Don't declare.
126
127 2020-07-27 Tom de Vries <tdevries@suse.de>
128
129 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
130 * config.in: Regenerate.
131 * configure: Regenerate.
132
133 2020-07-26 Eli Zaretskii <eliz@gnu.org>
134
135 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
136 ws2tcpip.h. When checking whether socklen_t type is defined, use
137 ws2tcpip.h if it is available and sys/socket.h isn't.
138 * configure: Regenerate.
139 * config.in: Regenerate.
140
141 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
142
143 PR fortran/23051
144 PR fortran/26139
145 * valops.c (value_ind): Pass address to
146 readjust_indirect_value_type.
147 * value.c (readjust_indirect_value_type): Make parameter
148 non-const, and add extra address parameter. Resolve original type
149 before using it.
150 * value.h (readjust_indirect_value_type): Update function
151 signature and comment.
152
153 2020-07-25 Tom de Vries <tdevries@suse.de>
154
155 PR symtab/26243
156 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
157 entries.
158
159 2020-07-24 Aaron Merey <amerey@redhat.com>
160
161 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
162 * configure: Rebuild.
163
164 2020-07-23 Kevin Buettner <kevinb@redhat.com>
165
166 PR corefiles/26294
167 * corelow.c (_initialize_corelow): Add period to help text
168 for "maintenance print core-file-backed-mappings".
169
170 2020-07-23 Pedro Alves <pedro@palves.net>
171
172 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
173 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
174 meanwhile.
175 * frame.c (frame_cache_generation, get_frame_cache_generation):
176 New.
177 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
178 (get_prev_frame_if_no_cycle): On exception, don't touch
179 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
180 * frame.h (get_frame_cache_generation): Declare.
181
182 2020-07-23 Tom de Vries <tdevries@suse.de>
183
184 PR tui/26282
185 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
186 New default constructor.
187
188 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
191 exclude non-statement entries.
192
193 2020-07-22 Kevin Buettner <kevinb@redhat.com>
194
195 * NEWS (New commands): Mention new command
196 "maintenance print core-file-backed-mappings".
197
198 2020-07-22 Kevin Buettner <kevinb@redhat.com>
199
200 * corelow.c (gdbcmd.h): Include.
201 (core_target::info_proc_mappings): New method.
202 (get_current_core_target): New function.
203 (maintenance_print_core_file_backed_mappings): New function.
204 (_initialize_corelow): Add core-file-backed-mappings to
205 "maint print" commands.
206
207 2020-07-22 Kevin Buettner <kevinb@redhat.com>
208
209 * linux-tdep.c (dump_note_entry_p): New function.
210 (linux_dump_mapping_p_ftype): New typedef.
211 (linux_find_memory_regions_full): Add new parameter,
212 should_dump_mapping_p.
213 (linux_find_memory_regions): Adjust call to
214 linux_find_memory_regions_full.
215 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
216 call to linux_find_memory_regions_full.
217
218 2020-07-22 Kevin Buettner <kevinb@redhat.com>
219
220 * corelow.c (solist.h, unordered_map): Include.
221 (class core_target): Add field m_core_file_mappings and
222 method build_file_mappings.
223 (core_target::core_target): Call build_file_mappings.
224 (core_target::~core_target): Free memory associated with
225 m_core_file_mappings.
226 (core_target::build_file_mappings): New method.
227 (core_target::xfer_partial): Use m_core_file_mappings
228 for memory transfers.
229 * linux-tdep.c (linux_read_core_file_mappings): New
230 function.
231 (linux_core_info_proc_mappings): Rewrite to use
232 linux_read_core_file_mappings.
233 (linux_init_abi): Register linux_read_core_file_mappings.
234
235 2020-07-22 Kevin Buettner <kevinb@redhat.com>
236
237 * arch-utils.c (default_read_core_file_mappings): New function.
238 * arch-utils.c (default_read_core_file_mappings): Declare.
239 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
240 * gdbarch.h, gdbarch.c: Regenerate.
241
242 2020-07-22 Kevin Buettner <kevinb@redhat.com>
243
244 PR corefiles/25631
245 * corelow.c (core_target:xfer_partial): Revise
246 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
247 case after first checking the stratum beneath the core
248 target.
249 (has_all_memory): Return true.
250 * target.c (raw_memory_xfer_partial): Revise comment
251 regarding use of has_all_memory.
252
253 2020-07-22 Kevin Buettner <kevinb@redhat.com>
254
255 * exec.h (section_table_xfer_memory): Revise declaration,
256 replacing section name parameter with an optional callback
257 predicate.
258 * exec.c (section_table_xfer_memory): Likewise.
259 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
260 of section_table_xfer_memory.
261
262 2020-07-22 Tom Tromey <tromey@adacore.com>
263
264 * mi/mi-cmd-stack.c (list_args_or_locals): Use
265 lookup_symbol_search_name.
266
267 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
268
269 * python/py-registers.c (gdbpy_register_object_data_init): Remove
270 redundant local variable.
271 (gdbpy_get_register_descriptor): Extract descriptor vector as a
272 reference, not pointer, update code accordingly.
273
274 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
275 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
276
277 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
278 * jit.c (jit_breakpoint_re_set_internal): Use the
279 `skip_jit_symbol_lookup` field.
280
281 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
282 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
283
284 * jit.c (jit_read_descriptor): Define the descriptor address once,
285 use twice.
286 (jit_breakpoint_deleted): Move the declaration of the loop variable
287 `iter` into the loop header.
288 (jit_breakpoint_re_set_internal): Move the declaration of the local
289 variable `objf_data` to the first point of definition.
290 (jit_event_handler): Move the declaration of local variables
291 `code_entry`, `entry_addr`, and `objf` to their first point of use.
292 Rename `objf` to `jited`.
293
294 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
295
296 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
297 Remove.
298 * jit.c (get_jiter_objfile_data): Update.
299
300 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
301 Simon Marchi <simon.marchi@polymtl.ca>
302
303 * jit.c (struct jit_program_space_data): Remove.
304 (jit_program_space_key): Remove.
305 (jiter_objfile_data::~jiter_objfile_data): Remove program space
306 stuff.
307 (get_jit_program_space_data): Remove.
308 (jit_breakpoint_deleted): Iterate on all of the program space's
309 objfiles.
310 (jit_inferior_init): Likewise.
311 (jit_breakpoint_re_set_internal): Likewise. Also change return
312 type to void.
313 (jit_breakpoint_re_set): Pass current_program_space to
314 jit_breakpoint_re_set_internal.
315
316 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * jit.h (struct jiter_objfile_data) <cached_code_address,
319 jit_breakpoint>: Move to here from ...
320 * jit.c (jit_program_space_data): ... here.
321 (jiter_objfile_data::~jiter_objfile_data): Update.
322 (jit_breakpoint_deleted): Update.
323 (jit_breakpoint_re_set_internal): Update.
324
325 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
326
327 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
328 checks.
329 (jit_read_descriptor): Remove NULL check.
330 (jit_event_handler): Add an assertion.
331
332 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
333
334 * jit.h (struct jit_objfile_data): Split into...
335 (struct jiter_objfile_data): ... this ...
336 (struct jited_objfile_data): ... and this.
337 * objfiles.h (struct objfile) <jit_data>: Remove.
338 <jiter_data, jited_data>: New fields.
339 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
340 (jiter_objfile_data::~jiter_objfile_data): ... this.
341 (get_jit_objfile_data): Rename to ...
342 (get_jiter_objfile_data): ... this.
343 (add_objfile_entry): Update.
344 (jit_read_descriptor): Use get_jiter_objfile_data.
345 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
346 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
347 (jit_inferior_exit_hook): Use objfile's jited_data field.
348
349 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
350
351 * jit.h: Forward-declare `struct minimal_symbol`.
352 (struct jit_objfile_data): Migrate to here from jit.c; also add a
353 constructor, destructor, and an objfile* field.
354 * jit.c (jit_objfile_data): Remove.
355 (struct jit_objfile_data): Migrate from here to jit.h.
356 (jit_objfile_data::~jit_objfile_data): New destructor
357 implementation with code moved from free_objfile_data.
358 (free_objfile_data): Delete.
359 (get_jit_objfile_data): Update to use the jit_data field of objfile.
360 (jit_find_objf_with_entry_addr): Ditto.
361 (jit_inferior_exit_hook): Ditto.
362 (_initialize_jit): Remove the call to
363 register_objfile_data_with_cleanup.
364 * objfiles.h (struct objfile) <jit_data>: New field.
365
366 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
367
368 * jit.h: Forward-declare `struct objfile`.
369 (jit_event_handler): Add a second parameter, the JITer objfile.
370 * jit.c (jit_read_descriptor): Change the signature to take the
371 JITer objfile as an argument instead of the jit_program_space_data.
372 (jit_inferior_init): Update the call to jit_read_descriptor.
373 (jit_event_handler): Use the new JITer objfile argument when calling
374 jit_read_descriptor.
375 * breakpoint.c (handle_jit_event): Update the call to
376 jit_event_handler to pass the JITer objfile.
377
378 2020-07-21 John Baldwin <jhb@FreeBSD.org>
379
380 * gdbarch.c: Regenerate.
381 * gdbarch.h: Regenerate.
382 * gdbarch.sh (handle_segmentation_fault): Remove method.
383 * infrun.c (handle_segmentation_fault): Remove.
384 (print_signal_received_reason): Remove call to
385 handle_segmentation_fault.
386
387 2020-07-21 John Baldwin <jhb@FreeBSD.org>
388
389 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
390 Rename to sparc64_linux_report_signal_info and add siggnal
391 argument.
392 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
393 instead of sparc64_linux_handle_segmentation_fault.
394
395 2020-07-21 John Baldwin <jhb@FreeBSD.org>
396
397 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
398 i386_linux_report_signal_info instead of
399 i386_linux_handle_segmentation_fault.
400 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
401 to i386_linux_report_signal_info and add siggnal argument.
402 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
403 of i386_linux_handle_segmentation_fault.
404 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
405 to i386_linux_report_signal_info and add siggnal argument.
406
407 2020-07-21 John Baldwin <jhb@FreeBSD.org>
408
409 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
410 hook if present.
411
412 2020-07-21 John Baldwin <jhb@FreeBSD.org>
413
414 * gdbarch.c: Regenerate.
415 * gdbarch.h: Regenerate.
416 * gdbarch.sh (report_signal_info): New method.
417 * infrun.c (print_signal_received_reason): Invoke gdbarch
418 report_signal_info hook if present.
419
420 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * python/py-registers.c : Add 'unordered_map' include.
423 (gdbpy_new_reggroup): Renamed to...
424 (gdbpy_get_reggroup): ...this. Update to only create register
425 group descriptors when needed.
426 (gdbpy_reggroup_iter_next): Update.
427
428 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
429
430 * python/py-registers.c (gdbpy_register_object_data): New static
431 global.
432 (gdbpy_register_object_data_init): New function.
433 (gdbpy_new_register_descriptor): Renamed to...
434 (gdbpy_get_register_descriptor): ...this, and update to reuse
435 existing register descriptors where possible.
436 (gdbpy_register_descriptor_iter_next): Update.
437 (gdbpy_initialize_registers): Register new gdbarch data.
438
439 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
440
441 * linux-nat.c (stopped_pids): Make static.
442
443 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
444
445 PR ada/26235
446 * gdbtypes.c (ada_discrete_type_low_bound,
447 ada_discrete_type_high_bound): Handle undefined bounds.
448
449 2020-07-21 Kamil Rytarowski <n54@gmx.com>
450
451 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
452 declaration.
453 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
454 function.
455
456 2020-07-20 John Baldwin <jhb@FreeBSD.org>
457
458 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
459 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
460 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
461 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
462 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
463 method.
464
465 2020-07-20 Ludovic Courtès <ludo@gnu.org>
466
467 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
468 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
469 which are deprecated in Guile 3.0.
470 * configure.ac (try_guile_versions): Add "guile-3.0".
471 * configure (try_guile_versions): Regenerate.
472 * NEWS: Update entry.
473
474 2020-07-20 Ludovic Courtès <ludo@gnu.org>
475 Doug Evans <dje@google.com>
476
477 PR gdb/21104
478 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
479 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
480 USING_GUILE_BEFORE_2_2.
481 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
482 Change type to 'scm_t_port_type *'.
483 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
484 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
485 parameter and honor it. Update callers.
486 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
487 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
488 functions.
489 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
490 USING_GUILE_BEFORE_2_2.
491 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
492 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
493 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
494 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
495 and 'SCM_PORT_TYPE'.
496 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
497 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
498 (gdbscm_memory_port_read, gdbscm_memory_port_write)
499 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
500 [!USING_GUILE_BEFORE_2_2]: New functions.
501 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
502 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
503 'gdbscm_memory_port_read'.
504 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
505 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
506 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
507 function.
508 (ioscm_init_memory_port): Remove.
509 (ioscm_init_memory_port_stream): New function
510 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
511 function.
512 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
513 Return scm_from_uint (0).
514 (gdbscm_set_memory_port_read_buffer_size_x)
515 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
516 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
517 Return scm_from_uint (0).
518 (gdbscm_set_memory_port_write_buffer_size_x)
519 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
520 * configure.ac (try_guile_versions): Add "guile-2.2".
521 * configure: Regenerate.
522 * NEWS: Add entry.
523
524 2020-07-18 Tom Tromey <tom@tromey.com>
525
526 * linux-nat.c (linux_multi_process): Remove.
527 (linux_nat_target::supports_multi_process): Return true.
528
529 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
530
531 * arch/riscv.c (riscv_tdesc_cache): Change map type.
532 (riscv_lookup_target_description): Return pointer out of
533 unique_ptr.
534 * target-descriptions.c (allocate_target_description): Add
535 comment.
536 (target_desc_deleter::operator()): Likewise.
537 * target-descriptions.h (struct target_desc_deleter): Moved to
538 gdbsupport/tdesc.h.
539 (target_desc_up): Likewise.
540
541 2020-07-17 Tom Tromey <tromey@adacore.com>
542
543 * linux-nat.c (linux_nat_target::supports_non_stop)
544 (linux_nat_target::always_non_stop_p): Use "true".
545 (linux_nat_target::supports_disable_randomization): Use "true" and
546 "false".
547
548 2020-07-16 Caroline Tice <cmtice@google.com>
549
550 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
551 (RNGLIST_HEADER_SIZE64): New constant definition.
552 (struct dwop_section_names): Add rnglists_dwo.
553 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
554 (struct loclist_header): Rename to 'loclists_rnglists_header'.
555 (struct dwo_sections): Add rnglists field.
556 (read_attribut_reprocess): Add tag parameter.
557 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
558 (cu_debug_rnglists_section): New function (decl & definition).
559 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
560 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
561 die whose range is being checked; get rnglist section from
562 cu_debug_rnglists_section, to get from either objfile or dwo file as
563 appropriate. Add cases for DW_RLE_base_addressx,
564 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
565 the base address to DW_RLE_offset_pairs (not to all ranges), moving
566 test inside if-condition and updating complaint message.
567 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
568 dwarf2_rnglists_process.
569 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
570 dwarf2_ranges_process.
571 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
572 need_ranges_base and update comment appropriately. Also pass die tag
573 to dwarf2_ranges_read.
574 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
575 need_ranges_base and update comment appropriately. Also pass die tag
576 to dwarf2_ranges_process.
577 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
578 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
579 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
580 need_ranges_base and update comment appropriately. Also pass die tag
581 to read_attribute_reprocess and dwarf2_ranges_read.
582 (read_loclist_header): Rename function to read_loclists_rnglists_header,
583 and update function comment appropriately.
584 (read_loclist_index): Call read_loclists_rnglists_header instead of
585 read_loclist_header.
586 (read_rnglist_index): New function.
587 (read_attribute_reprocess): Add tag parameter. Add code for
588 DW_FORM_rnglistx, passing tag to read_rnglist_index.
589 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
590
591 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
592
593 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
594 being resolved.
595
596 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
597
598 * arch-utils.c (show_architecture): Update formatting of messages.
599
600 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
601
602 * gdbtypes.h (struct type) <bounds>: Handle array and string
603 types.
604 * ada-lang.c (assign_aggregate): Use type::bounds on
605 array/string type.
606 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
607 * c-varobj.c (c_number_of_children): Likewise.
608 (c_describe_child): Likewise.
609 * eval.c (evaluate_subexp_for_sizeof): Likewise.
610 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
611 (f_type_print_base): Likewise.
612 * f-valprint.c (f77_array_offset_tbl): Likewise.
613 (f77_get_upperbound): Likewise.
614 (f77_print_array_1): Likewise.
615 * guile/scm-type.c (gdbscm_type_range): Likewise.
616 * m2-typeprint.c (m2_array): Likewise.
617 (m2_is_long_set_of_type): Likewise.
618 * m2-valprint.c (get_long_set_bounds): Likewise.
619 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
620 * python/py-type.c (typy_range): Likewise.
621 * rust-lang.c (rust_internal_print_type): Likewise.
622 * type-stack.c (type_stack::follow_types): Likewise.
623 * valarith.c (value_subscripted_rvalue): Likewise.
624 * valops.c (value_cast): Likewise.
625
626 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
627
628 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
629 callers to use the equivalent accessor methods.
630
631 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
632
633 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
634 (struct type) <bit_stride>: New method.
635 (TYPE_BIT_STRIDE): Remove.
636 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
637
638 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
639
640 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
641 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
642 callers to use the equivalent accessor methods instead.
643
644 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
645
646 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
647 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
648 callers to use the equivalent accessor methods instead.
649
650 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
651
652 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
653 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
654 to use dynamic_prop::kind.
655
656 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
657
658 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
659 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
660 to get the bound property's kind and check against
661 PROP_UNDEFINED.
662
663 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
664
665 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
666 all callers to use type::range_bounds followed by
667 dynamic_prop::{low,high}.
668
669 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
670
671 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
672 const_val, set_const_val, baton, set_locexpr, set_loclist,
673 set_addr_offset, variant_parts, set_variant_parts,
674 original_type, set_original_type>: New methods.
675 <kind>: Rename to...
676 <m_kind>: ... this. Update all users to use the new methods
677 instead.
678 <data>: Rename to...
679 <m_data>: ... this. Update all users to use the new methods
680 instead.
681
682 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
683
684 * gdbtypes.c (get_discrete_bounds): Return failure if
685 the range type's bounds are not both defined and constant
686 values.
687 (get_array_bounds): Update comment. Remove undefined bound check.
688
689 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
690
691 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
692 the type::bounds method directly.
693
694 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
695
696 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
697 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
698 are used to set the range type's bounds to use set_bounds.
699
700 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
701
702 * exec.c (_initialize_exec): Update exec-file-mismatch help.
703
704 2020-07-10 Pedro Alves <pedro@palves.net>
705
706 * gdbthread.h (inferior_ref): Define.
707 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
708 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
709 * thread.c
710 (scoped_restore_current_thread::restore):
711 Adjust to gdb::ref_ptr.
712 (scoped_restore_current_thread::~scoped_restore_current_thread):
713 Remove manual decref handling.
714 (scoped_restore_current_thread::scoped_restore_current_thread):
715 Adjust to use
716 inferior_ref::new_reference/thread_info_ref::new_reference.
717 Incref the thread before calling get_frame_id instead of after.
718 Let TARGET_CLOSE_ERROR propagate.
719
720 2020-07-10 Pedro Alves <pedro@palves.net>
721
722 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
723 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
724 NOT_AVAILABLE_ERROR.
725 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
726 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
727
728 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
729 Pedro Alves <pedro@palves.net>
730
731 PR gdb/26199
732 * infrun.c (threads_are_resumed_pending_p): Delete.
733 (do_target_wait): Remove threads_are_executing and
734 threads_are_resumed_pending_p checks from the inferior_matches
735 lambda. Update comments.
736
737 2020-07-10 Pedro Alves <pedro@palves.net>
738
739 PR gdb/26199
740 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
741 executing threads.
742
743 2020-07-10 Pedro Alves <pedro@palves.net>
744
745 PR gdb/26199
746 * infrun.c (handle_no_resumed): Handle multiple targets.
747
748 2020-07-10 Pedro Alves <pedro@palves.net>
749
750 PR gdb/26199
751 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
752 target_is_async_p.
753
754 2020-07-10 Pedro Alves <pedro@palves.net>
755
756 PR gdb/26199
757 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
758 threads, not all threads.
759
760 2020-07-10 Pedro Alves <pedro@palves.net>
761
762 PR gdb/26199
763 * remote.c (remote_target::open_1): Pass remote target pointer as
764 data to create_async_event_handler.
765 (remote_async_inferior_event_handler): Mark async event handler
766 before returning if the remote target still has either pending
767 events or unacknowledged notifications.
768
769 2020-07-10 John Baldwin <jhb@FreeBSD.org>
770
771 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
772 declaration.
773 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
774 function.
775
776 2020-07-09 John Baldwin <jhb@FreeBSD.org>
777
778 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
779 inferior_ptid.
780
781 2020-07-09 John Baldwin <jhb@FreeBSD.org>
782
783 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
784 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
785 AT_FREEBSD_PS_STRINGS.
786
787 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
788
789 * auto-load.c (auto_load_objfile_script_1): Convert drive part
790 of debugfile path on Windows.
791
792 2020-07-08 John Baldwin <jhb@FreeBSD.org>
793
794 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
795 argument to 'data'.
796
797 2020-07-08 Tom Tromey <tromey@adacore.com>
798
799 * ada-lang.c (ada_exception_message_1): Use read_memory.
800
801 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
802
803 PR python/22748
804 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
805 special handling for inline frames.
806 * findvar.c (value_of_register_lazy): Skip inline frames when
807 creating lazy register values.
808 * frame.c (frame_id_computed_p): Delete definition.
809 * frame.h (frame_id_computed_p): Delete declaration.
810
811 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
812
813 * NEWS: Mention additions to Python API.
814 * python/py-arch.c (archpy_register_groups): New function.
815 (arch_object_methods): Add 'register_groups' method.
816 * python/py-registers.c (reggroup_iterator_object): New struct.
817 (reggroup_object): New struct.
818 (gdbpy_new_reggroup): New function.
819 (gdbpy_reggroup_to_string): New function.
820 (gdbpy_reggroup_name): New function.
821 (gdbpy_reggroup_iter): New function.
822 (gdbpy_reggroup_iter_next): New function.
823 (gdbpy_new_reggroup_iterator): New function
824 (gdbpy_initialize_registers): Register new types.
825 (reggroup_iterator_object_type): Define new Python type.
826 (gdbpy_reggroup_getset): New static global.
827 (reggroup_object_type): Define new Python type.
828 * python/python-internal.h
829
830 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
831
832 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
833 * python/py-arch.c (archpy_registers): New function.
834 (arch_object_methods): Add 'registers' method.
835 * python/py-registers.c: New file.
836 * python/python-internal.h
837 (gdbpy_new_register_descriptor_iterator): Declare.
838 (gdbpy_initialize_registers): Declare.
839 * python/python.c (do_start_initialization): Call
840 gdbpy_initialize_registers.
841 * NEWS: Mention additions to the Python API.
842
843 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
844
845 * NEWS: Mention new Python API method.
846 * python/py-unwind.c (pending_framepy_architecture): New function.
847 (pending_frame_object_methods): Add architecture method.
848
849 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
850
851 * gdbarch.c: Regenerate.
852 * gdbarch.h: Regenerate.
853 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
854 (gdbarch_data): Use internal_error for the case where
855 deprecated_set_gdbarch_data was originally needed.
856 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
857 and use passed in obstack.
858 (libunwind_frame_set_descr): Should no longer get back NULL from
859 gdbarch_data.
860 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
861 type.
862 * user-regs.c (user_regs_init): Update parameters, and use passed
863 in obstack.
864 (user_reg_add): Should no longer get back NULL from gdbarch_data.
865 (_initialize_user_regs): Register as a pre-init gdbarch data type.
866
867 2020-07-06 Tom de Vries <tdevries@suse.de>
868
869 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
870 End-Of-Sequence in lte_is_less_than.
871 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
872 "gdb: Don't reorder line table entries too much when sorting".
873
874 2020-07-06 Tom de Vries <tdevries@suse.de>
875
876 PR tui/26205
877 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
878
879 2020-07-05 Tom de Vries <tdevries@suse.de>
880
881 PR build/26187
882 * inferior.h (struct infcall_suspend_state_deleter): If available, use
883 std::uncaught_exceptions instead of deprecated
884 std::uncaught_exception.
885
886 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
887
888 * macroexp.h (macro_stringify): Return
889 gdb::unique_xmalloc_ptr<char>.
890 * macroexp.c (macro_stringify): Likewise.
891 * macrotab.c (fixup_definition): Update.
892
893 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
894
895 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
896 (lex_one_token): Update.
897 * macroexp.c (struct macro_buffer) <release>: Return
898 gdb::unique_xmalloc_ptr<char>.
899 (macro_stringify): Update.
900 (macro_expand): Update.
901 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
902 * macroexp.h (macro_expand_next): Likewise.
903
904 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
905
906 * macroexp.h (macro_lookup_ftype): Remove.
907 (macro_expand, macro_expand_once, macro_expand_next): Remove
908 lookup function parameters, add scope parameter.
909 * macroexp.c (scan, substitute_args, expand, maybe_expand,
910 macro_expand, macro_expand_once, macro_expand_next): Likewise.
911 * macroscope.h (standard_macro_lookup): Change parameter type
912 to macro_scope.
913 * macroscope.c (standard_macro_lookup): Likewise.
914 * c-exp.y (lex_one_token): Update.
915 * macrocmd.c (macro_expand_command): Likewise.
916 (macro_expand_once_command): Likewise.
917
918 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
919
920 * inf-loop.c (inferior_event_handler): Remove client_data param.
921 * inf-loop.h (inferior_event_handler): Likewise.
922 * infcmd.c (step_1): Adjust.
923 * infrun.c (proceed): Adjust.
924 (fetch_inferior_event): Remove client_data param.
925 (infrun_async_inferior_event_handler): Adjust.
926 * infrun.h (fetch_inferior_event): Remove `void *` param.
927 * linux-nat.c (handle_target_event): Adjust.
928 * record-btrace.c (record_btrace_handle_async_inferior_event):
929 Adjust.
930 * record-full.c (record_full_async_inferior_event_handler):
931 Adjust.
932 * remote.c (remote_async_inferior_event_handler): Adjust.
933
934 2020-07-01 Tom Tromey <tom@tromey.com>
935
936 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
937 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
938
939 2020-07-01 Tom Tromey <tom@tromey.com>
940
941 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
942 tui_gen_win_info.
943 (tui_win_info::make_window): Merge with
944 tui_gen_win_info::make_window.
945 (tui_win_info::make_visible): Move from tui_gen_win_info.
946 * tui/tui-win.c (tui_win_info::max_width): Move from
947 tui_gen_win_info.
948 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
949 type.
950 <window_factory>: Likewise.
951 * tui/tui-layout.c (tui_win_info::resize): Move from
952 tui_gen_win_info.
953 (make_standard_window): Change return type.
954 (get_locator_window, tui_get_window_by_name): Likewise.
955 (tui_layout_window::apply): Remove a cast.
956 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
957 (struct tui_win_info): Merge with tui_gen_win_info.
958 (struct tui_gen_win_info): Remove.
959
960 2020-07-01 Tom Tromey <tom@tromey.com>
961
962 * tui/tui-stack.h (struct tui_locator_window): Derive from
963 tui_win_info.
964 <do_scroll_horizontal, do_scroll_vertical>: New methods.
965 <can_box>: New method.
966
967 2020-07-01 Tom Tromey <tom@tromey.com>
968
969 * tui/tui-stack.h (struct tui_locator_window): Remove body.
970
971 2020-07-01 Tom Tromey <tom@tromey.com>
972
973 * tui/tui-regs.c (tui_data_window::display_registers_from)
974 (tui_data_window::display_registers_from)
975 (tui_data_window::first_data_item_displayed)
976 (tui_data_window::delete_data_content_windows): Update.
977 (tui_data_window::refresh_window, tui_data_window::no_refresh):
978 Remove.
979 (tui_data_window::check_register_values): Update.
980 (tui_data_item_window::rerender): Add parameters. Update.
981 (tui_data_item_window::refresh_window): Remove.
982 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
983 virtual.
984 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
985 tui_gen_win_info.
986 <refresh_window, max_height, min_height>: Remove.
987 <rerender>: Add parameters.
988 <x, y, visible>: New members.
989 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
990 <m_item_width>: New member.
991
992 2020-07-01 Tom Tromey <tom@tromey.com>
993
994 * tui/tui-regs.c (tui_data_window::show_register_group)
995 (tui_data_window::check_register_values): Update.
996 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
997 from item_no.
998
999 2020-07-01 Tom Tromey <tom@tromey.com>
1000
1001 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1002 useless "if".
1003
1004 2020-07-01 Tom Tromey <tom@tromey.com>
1005
1006 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1007 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1008
1009 2020-07-01 Tom Tromey <tom@tromey.com>
1010
1011 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1012 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1013 (struct tui_line_or_address): Move from tui-data.h.
1014 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1015 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1016 (tui_cmd_window, tui_source_window_base, tui_source_window)
1017 (tui_disasm_window): Don't declare.
1018 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1019 to tui-winsource.h.
1020 (SINGLE_KEY): Move to tui-stack.c.
1021
1022 2020-07-01 Tom Tromey <tom@tromey.com>
1023
1024 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1025 std::string.
1026 * tui/tui-regs.c (class tab_expansion_file): New.
1027 (tab_expansion_file::write): New method.
1028 (tui_register_format): Change return type. Use
1029 tab_expansion_file.
1030 (tui_get_register, tui_data_window::display_registers_from)
1031 (tui_data_item_window::rerender): Update.
1032 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1033 * tui/tui-io.c (tui_expand_tabs): Remove.
1034
1035 2020-07-01 Tom Tromey <tom@tromey.com>
1036
1037 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1038
1039 2020-07-01 Fangrui Song <maskray@google.com>
1040
1041 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1042
1043 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1044
1045 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1046 forms for DW_AT_associated and DW_AT_allocated attributes,
1047 which is already checked in function attr_to_dynamic_prop.
1048
1049 2020-06-30 Tom Tromey <tromey@adacore.com>
1050
1051 * dwarf2/read.c (quirk_rust_enum): Correctly call
1052 alloc_rust_variant for default-less enum.
1053
1054 2020-06-30 Tom Tromey <tromey@adacore.com>
1055
1056 PR build/26183:
1057 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1058 gdb::to_string.
1059
1060 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1061
1062 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1063 * gdbarch.h: Re-generate.
1064
1065 2020-06-28 Tom Tromey <tom@tromey.com>
1066
1067 * command.h (cmd_types): Remove.
1068 (cmd_type): Don't declare.
1069 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1070 typedef.
1071 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1072 * cli/cli-decode.c (cmd_type): Remove.
1073
1074 2020-06-27 Pedro Alves <palves@redhat.com>
1075
1076 * fork-child.c (prefork_hook): Adjust.
1077 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1078 Delete.
1079 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1080 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1081 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1082 Remove declarations.
1083 (struct inferior) <set_tty, tty>: New methods.
1084 (struct inferior) <terminal>: Rename to ...
1085 (struct inferior) <m_terminal>: ... this and make private.
1086 * main.c (captured_main_1): Adjust.
1087 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1088 (mi_cmd_inferior_tty_show): Adjust.
1089 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1090 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1091
1092 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1093
1094 * configure.ac: Add --enable-libctf: handle --disable-static
1095 properly.
1096 * acinclude.m4: sinclude ../config/enable.m4.
1097 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1098 (LIBCTF): Substitute in.
1099 (CTF_DEPS): New, likewise.
1100 (CLIBS): libctf needs symbols from libbfd: move earlier.
1101 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1102 flags.
1103 * ctfread.c: Surround in ENABLE_LIBCTF.
1104 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1105 * configure: Regenerate.
1106 * config.in: Likewise.
1107
1108 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1109
1110 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1111
1112 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1113
1114 * inferior.h (struct inferior) <terminal>: Change type to
1115 gdb::unique_xmalloc_ptr<char>.
1116 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1117 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1118 field, adjust to unique pointer.
1119 (get_inferior_io_terminal): Adjust to unique pointer.
1120
1121 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1122
1123 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1124 registers, not just the known core set of registers.
1125
1126 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1127
1128 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1129 fflags, frm, and fcsr registers.
1130 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1131 restore groups.
1132 (riscv_tdesc_unknown_reg): New function.
1133 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1134 tdesc_use_registers.
1135 * riscv-tdep.h (struct gdbarch_tdep): Add
1136 unknown_csrs_first_regnum, unknown_csrs_count,
1137 duplicate_fflags_regnum, duplicate_frm_regnum, and
1138 duplicate_fcsr_regnum fields.
1139
1140 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1141
1142 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1143 callback, use the callback (when not null) to help number unknown
1144 registers.
1145 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1146 (tdesc_use_registers): Add extra parameter to declaration.
1147
1148 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1151 in the file.
1152 (class riscv_pending_register_alias): Likewise.
1153 (riscv_register_feature::register_info): Change 'required_p' field
1154 to 'required', and change its type. Add 'check' member function.
1155 (riscv_register_feature::register_info::check): Define new member
1156 function.
1157 (riscv_xreg_feature): Change initialisation of 'required' field.
1158 (riscv_freg_feature): Likewise.
1159 (riscv_virtual_feature): Likewise.
1160 (riscv_csr_feature): Likewise.
1161 (riscv_check_tdesc_feature): Take extra parameter, the csr
1162 tdesc_feature, rewrite the function to use the new
1163 riscv_register_feature::register_info::check function.
1164 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1165
1166 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * features/Makefile: Remove all references to the deleted files
1169 below.
1170 * features/riscv/32bit-csr.c: Deleted.
1171 * features/riscv/32bit-csr.xml: Deleted.
1172 * features/riscv/64bit-csr.c: Deleted.
1173 * features/riscv/64bit-csr.xml: Deleted.
1174 * features/riscv/rebuild-csr-xml.sh: Deleted.
1175
1176 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1177
1178 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1179 whitespace error for declaration of names member variable.
1180 (struct riscv_register_feature): Add new prefer_first_name member
1181 variable, and fix whitespace error in declaration of registers.
1182 (riscv_xreg_feature): Initialize prefer_first_name field.
1183 (riscv_freg_feature): Likewise.
1184 (riscv_virtual_feature): Likewise.
1185 (riscv_csr_feature): Likewise.
1186 (riscv_register_name): Expand on comments. Remove register name
1187 modifications for CSR and virtual registers.
1188
1189 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1190
1191 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1192 errors.
1193
1194 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1197 riscv-opc.h.
1198 (class riscv_pending_register_alias): New class.
1199 (riscv_check_tdesc_feature): Take vector of pending aliases and
1200 populate it as appropriate.
1201 (riscv_setup_register_aliases): Delete.
1202 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1203 to riscv_check_tdesc_feature in all cases. Use the vector to
1204 create the register aliases.
1205
1206 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1207
1208 * sol2-tdep.c (sol2_static_transform_name): Remove.
1209 (sol2_init_abi): Don't register it.
1210 * gdbarch.sh (static_transform_name): Remove.
1211 * gdbarch.c, gdbarch.h: Regenerate.
1212
1213 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1214 gdbarch_static_transform_name.
1215 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1216 * stabsread.c (define_symbol) <'X'>: Remove.
1217 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1218 handling.
1219 <'V'>: Likewise.
1220 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1221 <'S'>: Remove call to gdbarch_static_transform_name.
1222
1223 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1224
1225 * procfs.c (procfs_pre_trace): New function.
1226 (procfs_target::create_inferior): Pass it to fork_inferior.
1227
1228 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1229
1230 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1231 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1232 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1233 sol2-tdep.o, sparc-sol2-tdep.o.
1234 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1235 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1236 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1237 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1238
1239 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1240
1241 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1242 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1243 Call sol2_init_abi.
1244 Remove calls to set_gdbarch_skip_solib_resolver,
1245 set_gdbarch_core_pid_to_str.
1246 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1247 (i386_sol2_static_transform_name): Remove.
1248 (i386_sol2_init_abi): Call sol2_init_abi.
1249 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1250 set_gdbarch_static_transform_name,
1251 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1252 Use sol2_sigtramp_p.
1253 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1254 (sol2_sigtramp_p): New function.
1255 (sol2_static_transform_name): New function.
1256 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1257 (sol2_init_abi): New function.
1258 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1259 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1260 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1261 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1262 (sparc_sol2_static_transform_name): Remove.
1263 (sparc32_sol2_init_abi): Call sol2_init_abi.
1264 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1265 set_gdbarch_static_transform_name,
1266 set_gdbarch_skip_solib_resolver,
1267 set_gdbarch_core_pid_to_str.
1268 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1269 (sparc_sol2_static_transform_name): Remove
1270 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1271 call sol2_sigtramp_p.
1272 (sparc64_sol2_init_abi): Call sol2_init_abi.
1273 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1274 set_gdbarch_static_transform_name,
1275 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1276
1277 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1278
1279 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1280 * exec.c (validate_exec_file): If from_tty, set both
1281 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1282 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1283 and from_tty, unconditionally ask a confirmation.
1284
1285 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1286
1287 * target-descriptions.c (tdesc_architecture_name): Protect against
1288 NULL pointer dereference.
1289 (maint_print_xml_tdesc_cmd): New function.
1290 (_initialize_target_descriptions): Register new 'maint print
1291 xml-tdesc' command and give it the filename completer.
1292 * NEWS: Mention new 'maint print xml-tdesc' command.
1293
1294 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1295
1296 * target-descriptions.c (class tdesc_compatible_info): New class.
1297 (struct target_desc): Change type of compatible vector.
1298 (tdesc_compatible_p): Update for change in type of
1299 target_desc::compatible.
1300 (tdesc_compatible_info_list): New function.
1301 (tdesc_compatible_info_arch_name): New function.
1302 (tdesc_add_compatible): Update for change in type of
1303 target_desc::compatible.
1304 (print_c_tdesc::visit_pre): Likewise.
1305
1306 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1307
1308 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1309 whitespace to underscore.
1310 (maint_print_c_tdesc_cmd): Use fake filename for target
1311 descriptions that came from the target.
1312 (_initialize_target_descriptions): Add filename command completion
1313 for 'maint print c-tdesc'.
1314
1315 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1316
1317 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1318 lines.
1319
1320 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1321
1322 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1323 lines.
1324 (dwarf2_find_location_expression): Likewise.
1325 (call_site_parameter_matches): Likewise.
1326 (dwarf2_compile_expr_to_ax): Likewise.
1327 (disassemble_dwarf_expression): Likewise.
1328 (loclist_describe_location): Likewise.
1329
1330 2020-06-23 Pedro Alves <palves@redhat.com>
1331
1332 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1333 progspace-and-thread.h. Include scoped-mock-context.h instead.
1334 (register_to_value_test): Use scoped_mock_context.
1335 * regcache.c: Include "scoped-mock-context.h".
1336 (cooked_read_test): Don't error out if a target is already pushed.
1337 Use scoped_mock_context. Adjust.
1338 * scoped-mock-context.h: New file.
1339
1340 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1341
1342 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1343 initializer.
1344 (ada_language::is_string_type_p): New member function.
1345 * c-lang.c (c_language_data): Delete la_is_string_type_p
1346 initializer.
1347 (cplus_language_data): Likewise.
1348 (asm_language_data): Likewise.
1349 (minimal_language_data): Likewise.
1350 * d-lang.c (d_language_data): Likewise.
1351 * f-lang.c (f_is_string_type_p): Delete function, implementation
1352 moved to f_language::is_string_type_p.
1353 (f_language_data): Delete la_is_string_type_p initializer.
1354 (f_language::is_string_type_p): New member function,
1355 implementation from f_is_string_type_p.
1356 * go-lang.c (go_is_string_type_p): Delete function, implementation
1357 moved to go_language::is_string_type_p.
1358 (go_language_data): Delete la_is_string_type_p initializer.
1359 (go_language::is_string_type_p): New member function,
1360 implementation from go_is_string_type_p.
1361 * language.c (language_defn::is_string_type_p): Define new member
1362 function.
1363 (default_is_string_type_p): Make static, add comment copied from
1364 header file.
1365 (unknown_language_data): Delete la_is_string_type_p initializer.
1366 (unknown_language::is_string_type_p): New member function.
1367 (auto_language_data): Delete la_is_string_type_p initializer.
1368 (auto_language::is_string_type_p): New member function.
1369 * language.h (language_data): Delete la_is_string_type_p field.
1370 (language_defn::is_string_type_p): Declare new function.
1371 (default_is_string_type_p): Delete desclaration, move comment to
1372 definition.
1373 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1374 moved to m2_language::is_string_type_p.
1375 (m2_language_data): Delete la_is_string_type_p initializer.
1376 (m2_language::is_string_type_p): New member function,
1377 implementation from m2_is_string_type_p.
1378 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1379 initializer.
1380 * opencl-lang.c (opencl_language_data): Likewise.
1381 * p-lang.c (pascal_is_string_type_p): Delete function,
1382 implementation moved to pascal_language::is_string_type_p.
1383 (pascal_language_data): Delete la_is_string_type_p initializer.
1384 (pascal_language::is_string_type_p): New member function,
1385 implementation from pascal_is_string_type_p.
1386 * rust-lang.c (rust_is_string_type_p): Delete function,
1387 implementation moved to rust_language::is_string_type_p.
1388 (rust_language_data): Delete la_is_string_type_p initializer.
1389 (rust_language::is_string_type_p): New member function,
1390 implementation from rust_is_string_type_p.
1391 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1392 is_string_type_p.
1393
1394 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * ada-lang.c (ada_language_data): Delete la_print_typedef
1397 initializer.
1398 (ada_language::print_typedef): New member function.
1399 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1400 (cplus_language_data): Likewise.
1401 (asm_language_data): Likewise.
1402 (minimal_language_data): Likewise.
1403 * d-lang.c (d_language_data): Likewise.
1404 * f-lang.c (f_language_data): Likewise.
1405 (f_language::print_typedef): New member function.
1406 * go-lang.c (go_language_data): Delete la_print_typedef
1407 initializer.
1408 * language.c (language_defn::print_typedef): Define member
1409 function.
1410 (unknown_language_data): Delete la_print_typedef initializer.
1411 (unknown_language::print_typedef): New member function.
1412 (auto_language_data): Delete la_print_typedef initializer.
1413 (auto_language::print_typedef): New member function.
1414 * language.h (language_data): Delete la_print_typedef field.
1415 (language_defn::print_typedef): Declare new member function.
1416 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1417 (default_print_typedef): Delete declaration.
1418 * m2-lang.c (m2_language_data): Delete la_print_typedef
1419 initializer.
1420 (m2_language::print_typedef): New member function.
1421 * objc-lang.c (objc_language_data): Delete la_print_typedef
1422 initializer.
1423 * opencl-lang.c (opencl_language_data): Likewise.
1424 * p-lang.c (pascal_language_data): Likewise.
1425 (pascal_language::print_typedef): New member function.
1426 * rust-lang.c (rust_print_typedef): Delete function,
1427 implementation moved to rust_language::print_typedef.
1428 (rust_language): Delete la_print_typedef initializer.
1429 (rust_language::print_typedef): New member function,
1430 implementation from rust_print_typedef.
1431 * typeprint.c (default_print_typedef): Delete.
1432
1433 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1434
1435 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1436 (ada_language::printstr): New member function.
1437 * c-lang.c (c_language_data): Delete la_printstr initializer.
1438 (cplus_language_data): Likewise.
1439 (asm_language_data): Likewise.
1440 (minimal_language_data): Likewise.
1441 * d-lang.c (d_language_data): Likewise.
1442 * f-lang.c (f_printstr): Rename to f_language::printstr.
1443 (f_language_data): Delete la_printstr initializer.
1444 (f_language::printstr): New member function, implementation from
1445 f_printstr.
1446 * go-lang.c (go_language_data): Delete la_printstr initializer.
1447 * language.c (language_defn::printstr): Define new member
1448 function.
1449 (unk_lang_printstr): Delete.
1450 (unknown_language_data): Delete la_printstr initializer.
1451 (unknown_language::printstr): New member function.
1452 (auto_language_data): Delete la_printstr initializer.
1453 (auto_language::printstr): New member function.
1454 * language.h (language_data): Delete la_printstr field.
1455 (language_defn::printstr): Declare new member function.
1456 (LA_PRINT_STRING): Update call to printstr.
1457 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1458 (m2_language_data): Delete la_printstr initializer.
1459 (m2_language::printstr): New member function, implementation from
1460 m2_printstr.
1461 * objc-lang.c (objc_language_data): Delete la_printstr
1462 initializer.
1463 * opencl-lang.c (opencl_language_data): Likewise.
1464 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1465 (pascal_language_data): Delete la_printstr initializer.
1466 (pascal_language::printstr): New member function, implementation
1467 from pascal_printstr.
1468 * p-lang.h (pascal_printstr): Delete declaration.
1469 * rust-lang.c (rust_printstr): Update header comment.
1470 (rust_language_data): Delete la_printstr initializer.
1471 (rust_language::printstr): New member function.
1472
1473 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1474
1475 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1476 (ada_language::printchar): New member function.
1477 * c-lang.c (c_language_data): Delete la_printchar initializer.
1478 (cplus_language_data): Likewise.
1479 (asm_language_data): Likewise.
1480 (minimal_language_data): Likewise.
1481 * d-lang.c (d_language_data): Likewise.
1482 * f-lang.c (f_printchar): Rename to f_language::printchar.
1483 (f_language_data): Delete la_printchar initializer.
1484 (f_language::printchar): New member function, implementation from
1485 f_printchar.
1486 * go-lang.c (go_language_data): Delete la_printchar initializer.
1487 * language.c (unk_lang_printchar): Delete.
1488 (language_defn::printchar): Define new member function.
1489 (unknown_language_data): Delete la_printchar initializer.
1490 (unknown_language::printchar): New member function.
1491 (auto_language_data): Delete la_printchar initializer.
1492 (auto_language::printchar): New member function.
1493 * language.h (language_data): Delete la_printchar field.
1494 (language_defn::printchar): Declare new member function.
1495 (LA_PRINT_CHAR): Update call to printchar.
1496 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1497 (m2_language::printchar): New member function.
1498 * objc-lang.c (objc_language_data): Delete la_printchar
1499 initializer.
1500 * opencl-lang.c (opencl_language_data): Likewise.
1501 * p-lang.c (pascal_language_data): Delete la_printchar
1502 initializer.
1503 (pascal_language::printchar): New member function.
1504 * rust-lang.c (rust_printchar): Rename to
1505 rust_language::printchar.
1506 (rust_language_data): Delete la_printchar initializer.
1507 (rust_language::printchar): New member function, implementation
1508 from rust_printchar.
1509
1510 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1511
1512 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1513 (ada_language_data): Delete la_emitchar initializer.
1514 (ada_language::emitchar): New member function, implementation from
1515 emit_char.
1516 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1517 (cplus_language_data): Likewise.
1518 (asm_language_data): Likewise.
1519 (minimal_language_data): Likewise.
1520 * d-lang.c (d_language_data): Likewise.
1521 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1522 (f_language_data): Delete la_emitchar initializer.
1523 (f_language::emitchar): New member function, implementation from
1524 f_emit_char.
1525 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1526 * language.c (unk_lang_emit_char): Delete.
1527 (language_defn::emitchar): New member function definition.
1528 (unknown_language_data): Delete la_emitchar initializer.
1529 (unknown_language::emitchar): New member function.
1530 (auto_language_data): Delete la_emitchar initializer.
1531 (auto_language::emitchar): New member function.
1532 * language.h (language_data): Delete la_emitchar field.
1533 (language_defn::emitchar): New member field declaration.
1534 (LA_EMIT_CHAR): Update call to emitchar.
1535 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1536 (m2_language_data): Delete la_emitchar initializer.
1537 (m2_language::emitchar): New member function, implementation from
1538 m2_emit_char.
1539 * objc-lang.c (objc_language_data): Delete la_emitchar
1540 initializer.
1541 * opencl-lang.c (opencl_language_data): Likewise.
1542 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1543 (pascal_language_data): Delete la_emitchar initializer.
1544 (pascal_language::emitchar): New member function, implementation
1545 from pascal_emit_char.
1546 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1547 (rust_language_data): Delete la_emitchar initializer.
1548 (rust_language::emitchar): New member function, implementation
1549 from rust_emitchar.
1550
1551 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1552
1553 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1554 (ada_language_data): Delete la_post_parser initializer.
1555 (ada_language::post_parser): New member function.
1556 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1557 (cplus_language_data): Likewise.
1558 (asm_language_data): Likewise.
1559 (minimal_language_data): Likewise.
1560 * d-lang.c (d_language_data): Likewise.
1561 * f-lang.c (f_language_data): Likewise.
1562 * go-lang.c (go_language_data): Likewise.
1563 * language.c (unknown_language_data): Likewise.
1564 (auto_language_data): Likewise.
1565 * language.h (language_data): Delete la_post_parser field.
1566 (language_defn::post_parser): New member function.
1567 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1568 * objc-lang.c (objc_language_data): Likewise.
1569 * opencl-lang.c (opencl_language_data): Likewise.
1570 * p-lang.c (pascal_language_data): Likewise.
1571 * parse.c (parse_exp_in_context): Update call to post_parser.
1572 (null_post_parser): Delete definition.
1573 * parser-defs.h (null_post_parser): Delete declaration.
1574 * rust-lang.c (rust_language_data): Delete la_post_parser
1575 initializer.
1576
1577 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1578
1579 * ada-lang.c (parse): Rename to ada_language::parser.
1580 (ada_language_data): Delete la_parser initializer.
1581 (ada_language::parser): New member function, implementation from
1582 parse.
1583 * c-lang.c (c_language_data): Delete la_parser initializer.
1584 (cplus_language_data): Likewise.
1585 (asm_language_data): Likewise.
1586 (minimal_language_data): Likewise.
1587 * d-lang.c (d_language_data): Likewise.
1588 (d_language::parser): New member function.
1589 * f-lang.c (f_language_data): Delete la_parser initializer.
1590 (f_language::parser): New member function.
1591 * go-lang.c (go_language_data): Delete la_parser initializer.
1592 (go_language::parser): New member function.
1593 * language.c (unk_lang_parser): Delete.
1594 (language_defn::parser): Define new member function.
1595 (unknown_language_data): Delete la_parser initializer.
1596 (unknown_language::parser): New member function.
1597 (auto_language_data): Delete la_parser initializer.
1598 (auto_language::parser): New member function.
1599 * language.h (language_data): Delete la_parser field.
1600 (language_defn::parser): Declare new member function.
1601 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1602 (m2_language::parser): New member function.
1603 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1604 * opencl-lang.c (opencl_language_data): Likewise.
1605 * p-lang.c (pascal_language_data): Likewise.
1606 (pascal_language::parser): New member function.
1607 * parse.c (parse_exp_in_context): Update call to parser.
1608 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1609 (rust_language::parser): New member function.
1610
1611 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1612
1613 * top.c (print_gdb_configuration): Print --with-python-libdir
1614 configuration value.
1615
1616 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1617
1618 * NEWS: Mention change to the alias command.
1619
1620 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1621
1622 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1623 (alias_command_completer)
1624 (make_alias_options_def_group): New functions.
1625 (alias_opts, alias_option_defs): New struct and array.
1626 (alias_usage_error): Update usage.
1627 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1628 Use option framework.
1629 (_initialize_cli_cmds): Update alias command help.
1630 Update aliases command help.
1631 (show_user):
1632 Add NULL for new default_args lookup_cmd argument.
1633 (valid_command_p): Rename to validate_aliased_command.
1634 Add NULL for new default_args lookup_cmd argument. Verify that the
1635 aliased_command has no default args.
1636 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1637 (lookup_cmd_1, lookup_cmd): New argument default_args.
1638 (add_alias_cmd):
1639 Add NULL for new default_args lookup_cmd argument.
1640 (print_help_for_command): Show default args under the layout
1641 alias some_alias = some_aliased_cmd some_alias_default_arg.
1642 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1643 xfree default_args in destructor.
1644 * cli/cli-script.c (process_next_line, do_define_command):
1645 Add NULL for new default_args lookup_cmd argument.
1646 * command.h: Declare new default_args argument in lookup_cmd
1647 and lookup_cmd_1.
1648 * completer.c (complete_line_internal_1):
1649 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1650 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1651 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1652 Likewise.
1653 * infcmd.c (_initialize_infcmd): Likewise.
1654 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1655 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1656 * python/py-param.c (add_setshow_generic): Likewise.
1657 * remote.c (_initialize_remote): Likewise.
1658 * top.c (execute_command): Prepend default_args if command has some.
1659 (set_verbose):
1660 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1661 * tracepoint.c (validate_actionline, encode_actions_1):
1662 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1663
1664 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1665
1666 * jit.c (jit_read_descriptor): Use bool as the return type.
1667 (jit_breakpoint_re_set_internal): Use bool as the return type.
1668 Invert the return value logic; return true if the jit breakpoint
1669 has been successfully initialized.
1670 (jit_inferior_init): Update the call to
1671 jit_breakpoint_re_set_internal.
1672
1673 2020-06-22 Pedro Alves <palves@redhat.com>
1674
1675 PR gdb/25939
1676 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1677 Use the current inferior instead. Don't return
1678 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1679 wait again.
1680 * sol-thread.c (sol_thread_target::wait): Don't reference
1681 inferior_ptid.
1682 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1683 (sol_update_thread_list_callback): Use the current inferior's pid
1684 instead of inferior_ptid.
1685
1686 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1687
1688 * procfs.c: Cleanup many comments.
1689
1690 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1691 (AFTER_WATCHFLAG): Replace by value.
1692
1693 (MAIN_PROC_NAME_FORMAT): Inline ...
1694 (create_procinfo): ... here.
1695
1696 (procfs_debug_inferior): Remove SYS_exec handling.
1697 (syscall_is_exec): Likewise.
1698 (procfs_set_exec_trap): Likewise.
1699
1700 (syscall_is_lwp_exit): Inline in callers.
1701 (syscall_is_exit): Likewise.
1702 (syscall_is_exec): Likewise.
1703 (syscall_is_lwp_create): Likewise.
1704
1705 (invalidate_cache): Remove #if 0 code.
1706
1707 (make_signal_thread_runnable): Remove.
1708 (procfs_target::resume): Remove #if 0 code.
1709
1710 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1711
1712 PR gdb/25939
1713 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1714 call ...
1715 (procfs_target::create_inferior): ... here.
1716
1717 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1718
1719 * exec.c (validate_exec_file): Ensure the build-id is up to
1720 date by calling reopen_exec_file (that checks file timestamp
1721 to decide to re-read the file).
1722
1723 2020-06-18 Pedro Alves <palves@redhat.com>
1724
1725 PR gdb/25412
1726 * gdbthread.h (delete_thread, delete_thread_silent)
1727 (find_thread_ptid): Update comments.
1728 * thread.c (current_thread_): New global.
1729 (is_current_thread): Move higher, and reimplement.
1730 (inferior_thread): Reimplement.
1731 (set_thread_exited): Use bool. Add assertions.
1732 (add_thread_silent): Simplify thread-reuse handling by always
1733 calling delete_thread.
1734 (delete_thread): Remove intro comment.
1735 (find_thread_ptid): Skip exited threads.
1736 (switch_to_thread_no_regs): Write to current_thread_.
1737 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1738 INFERIOR_PTID. Clear current_thread_.
1739
1740 2020-06-18 Pedro Alves <palves@redhat.com>
1741
1742 * aix-thread.c (pd_update): Use switch_to_thread.
1743
1744 2020-06-18 Pedro Alves <palves@redhat.com>
1745
1746 * ravenscar-thread.c (ravenscar_thread_target): Update.
1747 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1748 (ravenscar_thread_target::add_active_thread): ... this. Don't
1749 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1750 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
1751
1752 2020-06-18 Pedro Alves <palves@redhat.com>
1753
1754 * nat/windows-nat.c (current_windows_thread): Remove.
1755 * nat/windows-nat.h (current_windows_thread): Remove.
1756 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
1757 Adjust.
1758 (display_selectors): Adjust to fetch the current
1759 windows_thread_info based on inferior_ptid.
1760 (fake_create_process): No longer write to current_windows_thread.
1761 (windows_nat_target::get_windows_debug_event):
1762 Don't set inferior_ptid or current_windows_thread.
1763 (windows_nat_target::wait): Adjust to not rely on
1764 current_windows_thread.
1765 (do_initial_windows_stuff): Now a method of windows_nat_target.
1766 Switch to the last_ptid thread.
1767 (windows_nat_target::attach): Adjust.
1768 (windows_nat_target::detach): Use switch_to_no_thread instead of
1769 writing to inferior_ptid directly.
1770 (windows_nat_target::create_inferior): Adjust.
1771
1772 2020-06-18 Pedro Alves <palves@redhat.com>
1773
1774 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
1775
1776 2020-06-18 Pedro Alves <palves@redhat.com>
1777
1778 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
1779 after creating it, instead of writing to inferior_ptid. Don't
1780 write to inferior_ptid.
1781
1782 2020-06-18 Pedro Alves <palves@redhat.com>
1783
1784 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
1785
1786 2020-06-18 Pedro Alves <palves@redhat.com>
1787
1788 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
1789 it, instead of writing to inferior_ptid.
1790
1791 2020-06-18 Pedro Alves <palves@redhat.com>
1792
1793 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
1794 to inferior_ptid.
1795
1796 2020-06-18 Pedro Alves <palves@redhat.com>
1797
1798 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
1799 instead of writing to inferior_ptid directly.
1800
1801 2020-06-18 Pedro Alves <palves@redhat.com>
1802
1803 * corelow.c (core_target::close): Use switch_to_no_thread instead
1804 of writing to inferior_ptid directly.
1805 (add_to_thread_list, core_target_open): Use switch_to_thread
1806 instead of writing to inferior_ptid directly.
1807
1808 2020-06-18 Pedro Alves <palves@redhat.com>
1809
1810 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
1811 inferior_ptid.
1812 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
1813 inferior_ptid.
1814 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
1815 inferior_ptid directly.
1816 (darwin_nat_target::init_thread_list): Switch to thread, instead
1817 of writing to inferior_ptid.
1818 (darwin_nat_target::attach): Don't write to inferior_ptid.
1819 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
1820
1821 2020-06-18 Pedro Alves <palves@redhat.com>
1822
1823 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
1824 thread.
1825 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
1826 Instead use switch_to_thread.
1827 (gnu_nat_target::detach): Use switch_to_no_thread
1828 instead of writing to inferior_ptid directly. Used passed-in
1829 inferior instead of looking up the inferior by pid.
1830
1831 2020-06-18 Pedro Alves <palves@redhat.com>
1832
1833 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
1834 inferior_ptid.
1835
1836 2020-06-18 Pedro Alves <palves@redhat.com>
1837
1838 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
1839 inferior_ptid.
1840 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
1841 thread.
1842 (nto_procfs_target::detach): Avoid referencing
1843 inferior_ptid. Use switch_to_no_thread instead of writing to
1844 inferior_ptid directly.
1845 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
1846 instead of writing to inferior_ptid directly.
1847 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
1848 to thread.
1849
1850 2020-06-18 Pedro Alves <palves@redhat.com>
1851
1852 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
1853 after creating it, instead of writing to inferior_ptid.
1854 (gdbsim_target_open): Use switch_to_no_thread instead of writing
1855 to inferior_ptid directly.
1856 (gdbsim_target::wait): Don't write to inferior_ptid.
1857
1858 2020-06-18 Pedro Alves <palves@redhat.com>
1859
1860 * remote.c (remote_target::remote_notice_new_inferior): Use
1861 switch_to_thread instead of writing to inferior_ptid directly.
1862 (remote_target::add_current_inferior_and_thread): Use
1863 switch_to_no_thread instead of writing to inferior_ptid directly.
1864 (extended_remote_target::attach): Use switch_to_inferior_no_thread
1865 and switch_to_thread instead of using set_current_inferior or
1866 writing to inferior_ptid directly.
1867
1868 2020-06-18 Pedro Alves <palves@redhat.com>
1869
1870 * tracectf.c (ctf_target_open): Switch to added thread instead of
1871 writing to inferior_ptid directly.
1872 (ctf_target::close): Use switch_to_no_thread instead of writing to
1873 inferior_ptid directly.
1874
1875 2020-06-18 Pedro Alves <palves@redhat.com>
1876
1877 * tracefile-tfile.c (tfile_target_open): Don't write to
1878 inferior_ptid directly, instead switch to added thread.
1879 (tfile_target::close): Use switch_to_no_thread instead of writing
1880 to inferior_ptid directly.
1881
1882 2020-06-18 Pedro Alves <palves@redhat.com>
1883
1884 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
1885 (procfs_target::detach): Use switch_to_no_thread
1886 instead of writing to inferior_ptid directly.
1887 (do_attach): Change return type to void. Switch to the added
1888 thread.
1889 (procfs_target::create_inferior): Switch to the added thread.
1890 (procfs_do_thread_registers): Don't write to inferior_ptid.
1891
1892 2020-06-18 Pedro Alves <palves@redhat.com>
1893
1894 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
1895 of writing to inferior_ptid.
1896 (scoped_restore_exited_inferior): Delete.
1897 (handle_vfork_child_exec_or_exit): Simplify using
1898 scoped_restore_current_pspace_and_thread. Use switch_to_thread
1899 instead of writing to inferior_ptid.
1900 (THREAD_STOPPED_BY): Delete.
1901 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1902 (thread_stopped_by_hw_breakpoint): Delete.
1903 (save_waitstatus): Use
1904 scoped_restore_current_thread+switch_to_thread, and call
1905 target_stopped_by_watchpoint instead of
1906 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
1907 instead of thread_stopped_by_sw_breakpoint, and
1908 target_stopped_by_hw_breakpoint instead of
1909 thread_stopped_by_hw_breakpoint.
1910 (handle_inferior_event)
1911 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
1912 inferior_ptid directly, nor
1913 set_current_inferior/set_current_program_space. Use
1914 switch_to_thread / switch_to_inferior_no_thread instead.
1915
1916 2020-06-18 Pedro Alves <palves@redhat.com>
1917
1918 * target.c (generic_mourn_inferior): Use switch_to_no_thread
1919 instead of writing to inferior_ptid.
1920
1921 2020-06-18 Pedro Alves <palves@redhat.com>
1922
1923 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
1924 added thread.
1925 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
1926 to the added thread.
1927 (inf_ptrace_target::detach_success): Use switch_to_no_thread
1928 instead of writing to inferior_ptid.
1929
1930 2020-06-18 Pedro Alves <palves@redhat.com>
1931
1932 * gdbarch-selftests.c: Include "progspace-and-thread.h".
1933 (register_to_value_test): Mock a program_space too. Heap-allocate
1934 the address space. Don't write to inferior_ptid. Use
1935 switch_to_thread instead.
1936
1937 2020-06-18 Pedro Alves <palves@redhat.com>
1938
1939 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
1940 Delete.
1941 (find_signalled_thread()): New, factored out from
1942 linux_make_corefile_notes and adjusted to handle exited threads.
1943 (linux_make_corefile_notes): Adjust to use the new
1944 find_signalled_thread.
1945
1946 2020-06-18 Pedro Alves <palves@redhat.com>
1947
1948 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
1949 of saving/restoring inferior_ptid.
1950
1951 2020-06-17 Tom Tromey <tom@tromey.com>
1952
1953 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
1954 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
1955 declare.
1956 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
1957
1958 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
1959
1960 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
1961 of partial symtabs.
1962
1963 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1964
1965 * regformats/reg-arm.dat: Remove.
1966 * regformats/reg-bfin.dat: Remove.
1967 * regformats/reg-cris.dat: Remove.
1968 * regformats/reg-crisv32.dat: Remove.
1969 * regformats/reg-m32r.dat: Remove.
1970 * regformats/reg-tilegx.dat: Remove.
1971 * regformats/reg-tilegx32.dat: Remove.
1972
1973 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1974
1975 * features/Makefile (WHICH): Remove arm files.
1976 * regformats/arm/arm-with-iwmmxt.dat: Remove.
1977 * regformats/arm/arm-with-neon.dat: Remove.
1978 * regformats/arm/arm-with-vfpv2.dat: Remove.
1979 * regformats/arm/arm-with-vfpv3.dat: Remove.
1980
1981 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
1982
1983 * features/Makefile (XMLTOC): Remove rx.xml.
1984
1985 2020-06-17 Pedro Alves <palves@redhat.com>
1986
1987 * gdbthread.h (thread_control_state) <trap_expected> Update
1988 comments.
1989
1990 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
1991
1992 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
1993 ada_language::lookup_symbol_nonlocal.
1994 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
1995 (ada_language::lookup_symbol_nonlocal): New member function,
1996 implementation from ada_lookup_symbol_nonlocal.
1997 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
1998 initializer.
1999 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2000 initializer.
2001 (cplus_language::lookup_symbol_nonlocal): New member function.
2002 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2003 (minimal_language_data) Likewise.
2004 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2005 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2006 initializer.
2007 (d_language::lookup_symbol_nonlocal): New member function.
2008 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2009 initializer.
2010 (f_language::lookup_symbol_nonlocal): New member function.
2011 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2012 initializer.
2013 * language.c (unknown_language_data): Likewise.
2014 (auto_language_data): Likewise.
2015 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2016 field.
2017 (language_defn::lookup_symbol_nonlocal): New member function.
2018 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2019 initializer.
2020 * objc-lang.c (objc_language_data): Likewise.
2021 * opencl-lang.c (opencl_language_data): Likewise.
2022 * p-lang.c (pascal_language_data): Likewise.
2023 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2024 rust_language::lookup_symbol_nonlocal.
2025 (rust_language_data): Delete la_lookup_symbol_nonlocal
2026 initializer.
2027 (rust_language::lookup_symbol_nonlocal): New member function,
2028 implementation from rust_lookup_symbol_nonlocal.
2029 * symtab.c (lookup_symbol_aux): Update call to
2030 lookup_symbol_nonlocal.
2031 (basic_lookup_symbol_nonlocal): Rename to...
2032 (language_defn::lookup_symbol_nonlocal): ...this, and update
2033 header comment. Remove language_defn parameter, and replace with
2034 uses of `this'.
2035 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2036
2037 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2038
2039 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2040 initializer.
2041 (ada_language::value_print_inner): New member function.
2042 * c-lang.c (c_language_data): Delete la_value_print_inner
2043 initializer.
2044 (cplus_language_data): Likewise.
2045 (asm_language_data): Likewise.
2046 (minimal_language_data): Likewise.
2047 * d-lang.c (d_language_data): Likewise.
2048 (d_language::value_print_inner): New member function.
2049 * f-lang.c (f_language_data): Delete la_value_print_inner
2050 initializer.
2051 (f_language::value_print_inner): New member function.
2052 * f-lang.h (f_value_print_innner): Rename to...
2053 (f_value_print_inner): ...this (note spelling of 'inner').
2054 * f-valprint.c (f_value_print_innner): Rename to...
2055 (f_value_print_inner): ...this (note spelling of 'inner').
2056 * go-lang.c (go_language_data): Delete la_value_print_inner
2057 initializer.
2058 (go_language::value_print_inner): New member function.
2059 * language.c (language_defn::value_print_inner): Define new member
2060 function.
2061 (unk_lang_value_print_inner): Delete.
2062 (unknown_language_data): Delete la_value_print_inner initializer.
2063 (unknown_language::value_print_inner): New member function.
2064 (auto_language_data): Delete la_value_print_inner initializer.
2065 (auto_language::value_print_inner): New member function.
2066 * language.h (language_data): Delete la_value_print_inner field.
2067 (language_defn::value_print_inner): Delcare new member function.
2068 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2069 initializer.
2070 (m2_language::value_print_inner): New member function.
2071 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2072 initializer.
2073 * opencl-lang.c (opencl_language_data): Likewise.
2074 * p-lang.c (pascal_language_data): Likewise.
2075 (pascal_language::value_print_inner): New member function.
2076 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2077 initializer.
2078 (rust_language::value_print_inner): New member function.
2079 * valprint.c (do_val_print): Update call to value_print_inner.
2080
2081 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * ada-lang.c (ada_language_data): Delete la_value_print
2084 initializer.
2085 (ada_language::value_print): New member function.
2086 * c-lang.c (c_language_data): Delete la_value_print initializer.
2087 (cplus_language_data): Likewise.
2088 (asm_language_data): Likewise.
2089 (minimal_language_data): Likewise.
2090 * d-lang.c (d_language_data): Likewise.
2091 * f-lang.c (f_language_data): Likewise.
2092 * go-lang.c (go_language_data): Likewise.
2093 * language.c (unk_lang_value_print): Delete.
2094 (language_defn::value_print): Define new member function.
2095 (unknown_language_data): Delete la_value_print initializer.
2096 (unknown_language::value_print): New member function.
2097 (auto_language_data): Delete la_value_print initializer.
2098 (auto_language::value_print): New member function.
2099 * language.h (language_data): Delete la_value_print field.
2100 (language_defn::value_print): Declare new member function.
2101 (LA_VALUE_PRINT): Update call to value_print.
2102 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2103 * objc-lang.c (objc_language_data): Likewise.
2104 * opencl-lang.c (opencl_language_data): Likewise.
2105 * p-lang.c (pascal_language_data): Likewise.
2106 (pascal_language::value_print): New member function.
2107 * rust-lang.c (rust_language_data): Delete la_value_print
2108 initializer.
2109
2110 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2111
2112 * ada-lang.c (ada_watch_location_expression): Rename to
2113 ada_language::watch_location_expression.
2114 (ada_language_data): Delete la_watch_location_expression
2115 initializer.
2116 (ada_language::watch_location_expression): New member function,
2117 implementation from ada_watch_location_expression.
2118 * breakpoint.c (watch_command_1): Update call to
2119 watch_location_expression.
2120 * c-lang.c (c_watch_location_expression): Rename to
2121 language_defn::watch_location_expression.
2122 (c_language_data): Delete la_watch_location_expression
2123 initializer.
2124 (cplus_language_data): Likewise.
2125 (asm_language_data): Likewise.
2126 (minimal_language_data): Likewise.
2127 * c-lang.h (c_watch_location_expression): Delete declaration.
2128 * d-lang.c (d_language_data): Delete la_watch_location_expression
2129 initializer.
2130 * f-lang.c (f_language_data): Likewise.
2131 * go-lang.c (go_language_data): Likewise.
2132 * language.c (language_defn::watch_location_expression): Member
2133 function implementation from c_watch_location_expression.
2134 (unknown_language_data): Delete la_watch_location_expression
2135 initializer.
2136 (auto_language_data): Likewise.
2137 * language.h (language_data): Delete la_watch_location_expression
2138 field.
2139 (language_defn::watch_location_expression): Declare new member
2140 function.
2141 * m2-lang.c (m2_language_data): Delete
2142 la_watch_location_expression initializer.
2143 * objc-lang.c (objc_language_data): Likewise.
2144 * opencl-lang.c (opencl_language_data): Likewise.
2145 * p-lang.c (pascal_language_data): Likewise.
2146 * rust-lang.c (rust_watch_location_expression): Rename to
2147 rust_language::watch_location_expression.
2148 (rust_language_data): Delete la_watch_location_expression
2149 initializer.
2150 (rust_language::watch_location_expression): New member function,
2151 implementation from rust_watch_location_expression.
2152
2153 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2154
2155 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2156 ada_language::collect_symbol_completion_matches.
2157 (ada_language_data): Delete la_collect_symbol_completion_matches
2158 initializer.
2159 (ada_language::collect_symbol_completion_matches): New member
2160 function, implementation from
2161 ada_collect_symbol_completion_matches.
2162 * c-lang.c (c_language_data): Delete
2163 la_collect_symbol_completion_matches initializer.
2164 (cplus_language_data): Likewise.
2165 (asm_language_data): Likewise.
2166 (minimal_language_data): Likewise.
2167 * d-lang.c (d_language_data): Likewise.
2168 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2169 f_language::collect_symbol_completion_matches.
2170 (f_language_data): Delete la_collect_symbol_completion_matches
2171 initializer.
2172 (f_language::collect_symbol_completion_matches) New member
2173 function, implementation from f_collect_symbol_completion_matches.
2174 * go-lang.c (go_language_data): Delete
2175 la_collect_symbol_completion_matches initializer.
2176 * language.c (unknown_language_data): Likewise.
2177 (auto_language_data): Likewise.
2178 * language.h (language_data): Delete
2179 la_collect_symbol_completion_matches field.
2180 (language_defn::collect_symbol_completion_matches): New member
2181 function.
2182 * m2-lang.c (m2_language_data): Delete
2183 la_collect_symbol_completion_matches initializer.
2184 * objc-lang.c (objc_language_data): Likewise.
2185 * opencl-lang.c (opencl_language_data): Likewise.
2186 * p-lang.c (pascal_language_data): Likewise.
2187 * rust-lang.c (rust_language_data): Likewise.
2188 * symtab.c (default_collect_symbol_completion_matches): Delete.
2189 (collect_symbol_completion_matches): Update call to
2190 collect_symbol_completion_matches.
2191 (collect_symbol_completion_matches_type): Likewise.
2192 * symtab.h (default_collect_symbol_completion_matches): Delete
2193 declaration.
2194
2195 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2196
2197 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2198 (ada_language_data): Delete la_word_break_characters initializer.
2199 (ada_language::word_break_characters): New member function.
2200 * c-lang.c (c_language_data): Delete la_word_break_characters
2201 initializer.
2202 (cplus_language_data): Likewise.
2203 (asm_language_data): Likewise.
2204 (minimal_language_data): Likewise.
2205 * completer.c: Update global comment.
2206 (advance_to_expression_complete_word_point): Update call to
2207 word_break_characters.
2208 (complete_files_symbols): Likewise.
2209 (complete_line_internal_1): Likewise.
2210 (default_completer_handle_brkchars): Likewise.
2211 (skip_quoted_chars): Likewise.
2212 * d-lang.c (d_language_data): Delete la_word_break_characters
2213 initializer.
2214 * f-lang.c (f_word_break_characters): Delete.
2215 (f_language_data): Delete la_word_break_characters initializer.
2216 (f_language::word_break_characters): New member function.
2217 * go-lang.c (go_language_data): Delete la_word_break_characters
2218 initializer.
2219 * language.c (unknown_language_data): Likewise.
2220 (auto_language_data): Likewise.
2221 * language.h (default_word_break_characters): Move declaration to
2222 earlier in the file.
2223 (language_data): Delete la_word_break_characters field.
2224 (language_defn::word_break_characters): New member function.
2225 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2226 initializer.
2227 * objc-lang.c (objc_language_data): Likewise.
2228 * opencl-lang.c (opencl_language_data): Likewise.
2229 * p-lang.c (pascal_language_data): Likewise.
2230 * rust-lang.c (rust_language_data): Likewise.
2231
2232 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2233
2234 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2235 (ada_language_data): Delete la_get_symbol_name_matcher
2236 initializer.
2237 (language_defn::get_symbol_name_matcher_inner): New member
2238 function.
2239 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2240 initializer.
2241 (cplus_language_data): Likewise.
2242 (cplus_language::get_symbol_name_matcher_inner): New member
2243 function.
2244 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2245 (minimal_language_data): Likewise.
2246 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2247 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2248 initializer.
2249 * dictionary.c (iter_match_first_hashed): Update call to
2250 get_symbol_name_matcher.
2251 (iter_match_next_hashed): Likewise.
2252 (iter_match_next_linear): Likewise.
2253 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2254 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2255 initializer.
2256 (f_language::get_symbol_name_matcher_inner): New member function.
2257 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2258 initializer.
2259 * language.c (default_symbol_name_matcher): Update header comment,
2260 make static.
2261 (language_defn::get_symbol_name_matcher): New definition.
2262 (language_defn::get_symbol_name_matcher_inner): Likewise.
2263 (get_symbol_name_matcher): Delete.
2264 (unknown_language_data): Delete la_get_symbol_name_matcher
2265 initializer.
2266 (auto_language_data): Likewise.
2267 * language.h (language_data): Delete la_get_symbol_name_matcher
2268 field.
2269 (language_defn::get_symbol_name_matcher): New member function.
2270 (language_defn::get_symbol_name_matcher_inner): Likewise.
2271 (default_symbol_name_matcher): Delete declaration.
2272 * linespec.c (find_methods): Update call to
2273 get_symbol_name_matcher.
2274 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2275 initializer.
2276 * minsyms.c (lookup_minimal_symbol): Update call to
2277 get_symbol_name_matcher.
2278 (iterate_over_minimal_symbols): Likewise.
2279 * objc-lang.c (objc_language_data): Delete
2280 la_get_symbol_name_matcher initializer.
2281 * opencl-lang.c (opencl_language_data): Likewise.
2282 * p-lang.c (pascal_language_data): Likewise.
2283 * psymtab.c (psymbol_name_matches): Update call to
2284 get_symbol_name_matcher.
2285 * rust-lang.c (rust_language_data): Delete
2286 la_get_symbol_name_matcher initializer.
2287 * symtab.c (symbol_matches_search_name): Update call to
2288 get_symbol_name_matcher.
2289 (compare_symbol_name): Likewise.
2290
2291 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2292
2293 * ada-lang.c (ada_language_data): Delete la_compute_program
2294 initializer.
2295 * c-lang.c (c_language_data): Likewise.
2296 (c_language::compute_program): New member function.
2297 (cplus_language_data): Delete la_compute_program initializer.
2298 (cplus_language::compute_program): New member function.
2299 (asm_language_data): Delete la_compute_program initializer.
2300 (minimal_language_data): Likewise.
2301 * c-lang.h (c_compute_program): Update comment.
2302 (cplus_compute_program): Likewise.
2303 * compile/compile-c-support.c (c_compute_program): Likewise.
2304 (cplus_compute_program): Likewise.
2305 * compile/compile.c (compile_to_object): Update call to
2306 la_compute_program.
2307 * d-lang.c (d_language_data): Delete la_compute_program
2308 initializer.
2309 * f-lang.c (f_language_data): Likewise.
2310 * go-lang.c (go_language_data): Likewise.
2311 * language.c (unknown_language_data): Likewise.
2312 (auto_language_data): Likewise.
2313 * language.h (language_data): Delete la_compute_program field.
2314 (language_defn::compute_program): New member function.
2315 * m2-lang.c (m2_language_data): Delete la_compute_program
2316 initializer.
2317 * objc-lang.c (objc_language_data): Likewise.
2318 * opencl-lang.c (opencl_language_data): Likewise.
2319 * p-lang.c (pascal_language_data): Likewise.
2320 * rust-lang.c (rust_language_data): Likewise.
2321
2322 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2323
2324 * ada-lang.c (ada_language_data) Delete
2325 la_class_name_from_physname initializer.
2326 * c-lang.c (c_language_data): Likewise.
2327 (cplus_language_data): Likewise.
2328 (cplus_language::class_name_from_physname): New member function.
2329 (asm_language_data): Delete la_class_name_from_physname
2330 initializer.
2331 (minimal_language_data): Likewise.
2332 * d-lang.c (d_language_data): Likewise.
2333 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2334 method on language_defn class.
2335 (guess_full_die_structure_name): Likewise.
2336 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2337 initializer.
2338 * go-lang.c (go_language_data): Likewise.
2339 * language.c (language_class_name_from_physname): Delete.
2340 (unk_lang_class_name): Delete.
2341 (unknown_language_data): Delete la_class_name_from_physname
2342 initializer.
2343 (auto_language_data): Likewise.
2344 * language.h (language_data): Delete la_class_name_from_physname
2345 field.
2346 (language_defn::class_name_from_physname): New function.
2347 (language_class_name_from_physname): Delete declaration.
2348 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2349 initializer.
2350 * objc-lang.c (objc_language_data): Likewise.
2351 * opencl-lang.c (opencl_language_data): Likewise.
2352 * p-lang.c (pascal_language_data): Likewise.
2353 * rust-lang.c (rust_language_data): Likewise.
2354
2355 2020-06-16 Tom Tromey <tom@tromey.com>
2356
2357 * tui/tui-data.h (STATUS_NAME): New macro.
2358 * tui/tui-layout.c (tui_remove_some_windows)
2359 (initialize_known_windows, tui_register_window)
2360 (tui_layout_split::remove_windows, initialize_layouts)
2361 (tui_new_layout_command): Don't use hard-coded window names.
2362
2363 2020-06-16 Tom Tromey <tom@tromey.com>
2364
2365 PR tui/25348:
2366 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2367 tui_initialize_readline. Only run once. Call rl_initialize.
2368 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2369 tui_initialize_readline.
2370 * tui/tui-io.c (tui_setup_io): Call
2371 tui_ensure_readline_initialized.
2372 * tui/tui-interp.c (tui_interp::init): Update.
2373
2374 2020-06-16 Tom Tromey <tom@tromey.com>
2375
2376 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2377 Also preserve the status window.
2378
2379 2020-06-16 Tom Tromey <tom@tromey.com>
2380
2381 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2382 where m_window==nullptr.
2383
2384 2020-06-15 Tom Tromey <tromey@adacore.com>
2385
2386 * windows-nat.c (windows_nat::handle_output_debug_string):
2387 Update.
2388 (windows_nat::handle_ms_vc_exception): Update.
2389 * target.h (target_read_string): Change API.
2390 * target.c (target_read_string): Change API.
2391 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2392 Update.
2393 * solib-frv.c (frv_current_sos): Update.
2394 * solib-dsbt.c (dsbt_current_sos): Update.
2395 * solib-darwin.c (darwin_current_sos): Update.
2396 * linux-thread-db.c (inferior_has_bug): Update.
2397 * expprint.c (print_subexp_standard): Update.
2398 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2399 (ada_exception_message_1): Update.
2400
2401 2020-06-15 Tom Tromey <tromey@adacore.com>
2402
2403 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2404
2405 2020-06-15 Tom Tromey <tromey@adacore.com>
2406
2407 * valprint.c (read_string): Update comment.
2408 * target.c (MIN): Remove.
2409 (target_read_string): Rewrite.
2410
2411 2020-06-15 Tom Tromey <tromey@adacore.com>
2412
2413 * corefile.c (read_memory_string): Remove.
2414 * ada-valprint.c (ada_value_print_ptr): Update.
2415 * ada-lang.h (ada_tag_name): Change return type.
2416 * ada-lang.c (type_from_tag): Update.
2417 (ada_tag_name_from_tsd): Change return type. Use
2418 target_read_string.
2419 (ada_tag_name): Likewise.
2420 * gdbcore.h (read_memory_string): Don't declare.
2421
2422 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2423
2424 * symtab.c (rbreak_command): Ignore Windows drive colon.
2425
2426 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2427
2428 * NEWS: Mention removed GDBserver host support.
2429
2430 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2431
2432 * features/riscv/rebuild-csr-xml.sh: Updated.
2433
2434 2020-06-11 Tom Tromey <tom@tromey.com>
2435
2436 PR gdb/18318:
2437 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2438
2439 2020-06-09 Jonny Grant <jg@jguk.org>
2440 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 * main.c (captured_main_1): Don't print new line after help.
2443 (print_gdb_help): add mailing list and IRC channel information
2444 to --help. Add new lines between items in the footer. Remove
2445 quotes around bug url.
2446
2447 2020-06-11 Keith Seitz <keiths@redhat.com>
2448
2449 PR gdb/21356
2450 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2451 Resolve typedefs for type length calculations.
2452
2453 2020-06-10 Tom de Vries <tdevries@suse.de>
2454
2455 PR ada/24713
2456 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2457 (write_psymbols): Enable .gdb_index for ada.
2458 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2459 ada.
2460
2461 2020-06-10 Tom de Vries <tdevries@suse.de>
2462
2463 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2464 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2465 namei" instead of "const char *name" argument.
2466 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2467 dw2_symtab_iter_init.
2468
2469 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2470
2471 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2472 to use type::field and field::type instead.
2473
2474 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2475
2476 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2477 to use field::type instead.
2478
2479 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2480
2481 * gdbtypes.h (struct field) <type, set_type>: New methods.
2482 Rename `type` field to...
2483 <m_type>: ... this. Change references throughout to use type or
2484 set_type methods.
2485 (FIELD_TYPE): Use field::type. Change call sites that modify
2486 the field's type to use field::set_type instead.
2487
2488 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2489
2490 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2491 to use type::index_type instead.
2492
2493 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2494
2495 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2496 methods.
2497 (TYPE_INDEX_TYPE): Use type::index_type.
2498 * gdbtypes.c (create_array_type_with_stride): Likewise.
2499
2500 2020-06-07 Tom Tromey <tom@tromey.com>
2501
2502 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2503 parameter.
2504 (generic_value_print): Update.
2505
2506 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2507
2508 Revert commit 982a38f60b0.
2509 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2510
2511 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2512
2513 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2514 avoid use after free.
2515
2516 2020-06-05 Tom de Vries <tdevries@suse.de>
2517
2518 * NEWS: Fix typos.
2519
2520 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2521
2522 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2523 the per_bfd object.
2524 (dwarf2_read_debug_names): Likewise.
2525 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2526 object when re-using a per_bfd object with an index.
2527
2528 2020-06-03 Tom de Vries <tdevries@suse.de>
2529
2530 PR symtab/26046
2531 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2532 children for C++.
2533 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2534 DW_TAG_subprogram.
2535
2536 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2537
2538 * ada-lang.c (ada_language_data): Delete skip_trampoline
2539 initializer.
2540 * c-lang.c (c_language_data): Likewise.
2541 (cplus_language_data): Likewise.
2542 (cplus_language::skip_trampoline): New member function.
2543 (asm_language_data): Delete skip_trampoline initializer.
2544 (minimal_language_data): Likewise.
2545 * d-lang.c (d_language_data): Likewise.
2546 * f-lang.c (f_language_data): Likewise.
2547 * go-lang.c (go_language_data): Likewise.
2548 * language.c (unk_lang_trampoline): Delete function.
2549 (skip_language_trampoline): Update.
2550 (unknown_language_data): Delete skip_trampoline initializer.
2551 (auto_language_data): Likewise.
2552 * language.h (language_data): Delete skip_trampoline field.
2553 (language_defn::skip_trampoline): New function.
2554 * m2-lang.c (m2_language_data): Delete skip_trampoline
2555 initializer.
2556 * objc-lang.c (objc_skip_trampoline): Delete function, move
2557 implementation to objc_language::skip_trampoline.
2558 (objc_language_data): Delete skip_trampoline initializer.
2559 (objc_language::skip_trampoline): New member function with
2560 implementation from objc_skip_trampoline.
2561 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2562 initializer.
2563 * p-lang.c (pascal_language_data): Likewise.
2564 * rust-lang.c (rust_language_data): Likewise.
2565
2566 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2567
2568 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2569 (ada_language::demangle): New member function.
2570 * c-lang.c (c_language_data): Delete la_demangle initializer.
2571 (cplus_language_data): Delete la_demangle initializer.
2572 (cplus_language::demangle): New member function.
2573 (asm_language_data): Delete la_demangle initializer.
2574 (minimal_language_data): Delete la_demangle initializer.
2575 * d-lang.c (d_language_data): Delete la_demangle initializer.
2576 (d_language::demangle): New member function.
2577 * f-lang.c (f_language_data): Delete la_demangle initializer.
2578 (f_language::demangle): New member function.
2579 * go-lang.c (go_language_data): Delete la_demangle initializer.
2580 (go_language::demangle): New member function.
2581 * language.c (language_demangle): Update.
2582 (unk_lang_demangle): Delete.
2583 (unknown_language_data): Delete la_demangle initializer.
2584 (unknown_language::demangle): New member function.
2585 (auto_language_data): Delete la_demangle initializer.
2586 (auto_language::demangle): New member function.
2587 * language.h (language_data): Delete la_demangle field.
2588 (language_defn::demangle): New function.
2589 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2590 * objc-lang.c (objc_language_data): Delete la_demangle
2591 initializer.
2592 (objc_language::demangle): New member function.
2593 * opencl-lang.c (opencl_language_data): Delete la_demangle
2594 initializer.
2595 * p-lang.c (pascal_language_data): Likewise.
2596 * rust-lang.c (rust_language_data): Likewise.
2597 (rust_language::demangle): New member function.
2598
2599 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2600
2601 * ada-lang.c (ada_language_data): Delete la_print_type
2602 initializer.
2603 (ada_language::print_type): New member function.
2604 * c-lang.c (c_language_data): Delete la_print_type initializer.
2605 (c_language::print_type): New member function.
2606 (cplus_language_data): Delete la_print_type initializer.
2607 (cplus_language::print_type): New member function.
2608 (asm_language_data): Delete la_print_type initializer.
2609 (asm_language::print_type): New member function.
2610 (minimal_language_data): Delete la_print_type initializer.
2611 (minimal_language::print_type): New member function.
2612 * d-lang.c (d_language_data): Delete la_print_type initializer.
2613 (d_language::print_type): New member function.
2614 * f-lang.c (f_language_data): Delete la_print_type initializer.
2615 (f_language::print_type): New member function.
2616 * go-lang.c (go_language_data): Delete la_print_type initializer.
2617 (go_language::print_type): New member function.
2618 * language.c (unk_lang_print_type): Delete.
2619 (unknown_language_data): Delete la_print_type initializer.
2620 (unknown_language::print_type): New member function.
2621 (auto_language_data): Delete la_print_type initializer.
2622 (auto_language::print_type): New member function.
2623 * language.h (language_data): Delete la_print_type field.
2624 (language_defn::print_type): New function.
2625 (LA_PRINT_TYPE): Update.
2626 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2627 (m2_language::print_type): New member function.
2628 * objc-lang.c (objc_language_data): Delete la_print_type
2629 initializer.
2630 (objc_language::print_type): New member function.
2631 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2632 to opencl_language::print_type.
2633 (opencl_language_data): Delete la_print_type initializer.
2634 (opencl_language::print_type): New member function, implementation
2635 from opencl_print_type.
2636 * p-lang.c (pascal_language_data): Delete la_print_type
2637 initializer.
2638 (pascal_language::print_type): New member function.
2639 * rust-lang.c (rust_print_type): Delete, implementation moved to
2640 rust_language::print_type.
2641 (rust_language_data): Delete la_print_type initializer.
2642 (rust_language::print_type): New member function, implementation
2643 from rust_print_type.
2644
2645 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2646
2647 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2648 implementation moves to...
2649 (ada_language::sniff_from_mangled_name): ...here. Update return
2650 type.
2651 (ada_language_data): Delete la_sniff_from_mangled_name
2652 initializer.
2653 * c-lang.c (c_language_data): Likewise.
2654 (cplus_language_data): Likewise.
2655 (cplus_language::sniff_from_mangled_name): New member function,
2656 implementation taken from gdb_sniff_from_mangled_name.
2657 (asm_language_data): Delete la_sniff_from_mangled_name
2658 initializer.
2659 (minimal_language_data): Likewise.
2660 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2661 implementation moves to cplus_language::sniff_from_mangled_name.
2662 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2663 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2664 moves to...
2665 (d_language::sniff_from_mangled_name): ...here.
2666 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2667 * f-lang.c (f_language_data): Likewise.
2668 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2669 moves to...
2670 (go_language::sniff_from_mangled_name): ...here.
2671 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2672 * language.c (language_sniff_from_mangled_name): Delete.
2673 (unknown_language_data): Delete la_sniff_from_mangled_name
2674 initializer.
2675 (auto_language_data): Likewise.
2676 * language.h (language_data): Delete la_sniff_from_mangled_name
2677 field.
2678 (language_defn::sniff_from_mangled_name): New function.
2679 (language_sniff_from_mangled_name): Delete declaration.
2680 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2681 field.
2682 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2683 implementation moves to...
2684 (objc_language::sniff_from_mangled_name): ...here.
2685 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2686 * opencl-lang.c (opencl_language_data): Likewise.
2687 * p-lang.c (pascal_language_data): Likewise.
2688 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2689 implementation moves to...
2690 (rust_language::sniff_from_mangled_name): ...here.
2691 (rust_language_data): Delete la_sniff_from_mangled_name
2692 initializer.
2693 * symtab.c (symbol_find_demangled_name): Call
2694 sniff_from_mangled_name member function.
2695
2696 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2697
2698 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2699 initializer.
2700 * c-lang.c (c_language_data): Likewise.
2701 (cplus_language_data): Likewise.
2702 (cplus_language::search_name_hash): New member function.
2703 (asm_language_data): Delete la_search_name_hash initializer.
2704 (minimal_language_data): Likewise.
2705 * d-lang.c (d_language_data): Likewise.
2706 * dictionary.c (default_search_name_hash): Rename to...
2707 (language_defn::search_name_hash): ...this.
2708 * f-lang.c (f_language_data): Likewise.
2709 (f_language::search_name_hash): New member function.
2710 * go-lang.c (go_language_data): Delete la_search_name_hash
2711 initializer.
2712 * language.c (unknown_language_data): Likewise.
2713 (auto_language_data): Likewise.
2714 * language.h (struct language_data): Delete la_search_name_hash
2715 field.
2716 (language_defn::search_name_hash): Declare new member function.
2717 (default_search_name_hash): Delete declaration.
2718 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2719 initializer.
2720 * objc-lang.c (objc_language_data): Likewise.
2721 * opencl-lang.c (opencl_language_data): Likewise.
2722 * p-lang.c (pascal_language_data): Likewise.
2723 * rust-lang.c (rust_language_data): Likewise.
2724 * symtab.c (search_name_hash): Update call.
2725
2726 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2727
2728 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2729 initializer.
2730 * c-lang.c (class compile_instance): Declare.
2731 (c_language_data): Delete la_get_compile_instance initializer.
2732 (c_language::get_compile_instance): New member function.
2733 (cplus_language_data): Delete la_get_compile_instance initializer.
2734 (cplus_language::get_compile_instance): New member function.
2735 (asm_language_data): Delete la_get_compile_instance initializer.
2736 (minimal_language_data): Likewise.
2737 * c-lang.h (c_get_compile_context): Update comment.
2738 (cplus_get_compile_context): Update comment.
2739 * compile/compile.c (compile_to_object): Update calls, don't rely
2740 on function pointer being NULL.
2741 * d-lang.c (d_language_data): Delete la_get_compile_instance
2742 initializer.
2743 * f-lang.c (f_language_data): Likewise.
2744 * go-lang.c (go_language_data): Likewise.
2745 * language.c (unknown_language_data): Likewise.
2746 (auto_language_data): Likewise.
2747 * language.h (language_data): Delete la_get_compile_instance field.
2748 (language_defn::get_compile_instance): New member function.
2749 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2750 initializer.
2751 * objc-lang.c (objc_language_data): Likewise.
2752 * opencl-lang.c (opencl_language_data): Likewise.
2753 * p-lang.c (pascal_language_data): Likewise.
2754 * rust-lang.c (rust_language_data): Likewise.
2755
2756 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2757
2758 * ada-lang.c (ada_add_all_symbols): Update comment.
2759 (ada_iterate_over_symbols): Delete, move implementation to...
2760 (ada_language::iterate_over_symbols): ...here, a new member
2761 function, rewrite to use range based for loop.
2762 (ada_language_data): Delete la_iterate_over_symbols initializer.
2763 * c-lang.c (c_language_data): Likewise.
2764 (cplus_language_data): Likewise.
2765 (asm_language_data): Likewise.
2766 (minimal_language_data): Likewise.
2767 * d-lang.c (d_language_data): Likewise.
2768 * f-lang.c (f_language_data): Likewise.
2769 * go-lang.c (go_language_data): Likewise.
2770 * language.c (unknown_language_data): Likewise.
2771 (auto_language_data): Likewise.
2772 * language.h (language_data): Delete la_iterate_over_symbols field.
2773 (language_defn::iterate_over_symbols): New member function.
2774 (LA_ITERATE_OVER_SYMBOLS): Update.
2775 * linespec.c (iterate_over_all_matching_symtabs): Update.
2776 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
2777 initializer.
2778 * objc-lang.c (objc_language_data): Likewise.
2779 * opencl-lang.c (opencl_language_data): Likewise.
2780 * p-lang.c (pascal_language_data): Likewise.
2781 * rust-lang.c (rust_language_data): Likewise.
2782
2783 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2784
2785 * ada-lang.c (ada_language_data): Delete
2786 la_lookup_transparent_type initializer.
2787 * c-lang.c (c_language_data): Likewise.
2788 (cplus_language_data): Likewise.
2789 (cplus_language::lookup_transparent_type): New member function.
2790 (asm_language_data): Delete la_lookup_transparent_type
2791 initializer.
2792 (minimal_language_data): Likewise.
2793 * d-lang.c (d_language_data): Likewise.
2794 * f-lang.c (f_language_data): Likewise.
2795 * go-lang.c (go_language_data): Likewise.
2796 * language.c (unknown_language_data): Likewise.
2797 (auto_language_data): Likewise.
2798 * language.h (struct language_data): Delete
2799 la_lookup_transparent_type field.
2800 (language_defn::lookup_transparent_type): New member function.
2801 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
2802 initializer.
2803 * objc-lang.c (objc_language_data): Likewise.
2804 * opencl-lang.c (opencl_language_data): Likewise.
2805 * p-lang.c (pascal_language_data): Likewise.
2806 * rust-lang.c (rust_language_data): Likewise.
2807 * symtab.c (symbol_matches_domain): Update call.
2808
2809 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2810
2811 * ada-lang.c (ada_language_arch_info): Delete function, move
2812 implementation to...
2813 (ada_language::language_arch_info): ...here, a new member
2814 function.
2815 (ada_language_data): Delete la_language_arch_info.
2816 * c-lang.c (c_language_data): Likewise.
2817 (c_language::language_arch_info): New member function.
2818 (cplus_language_arch_info): Delete function, move
2819 implementation to...
2820 (cplus_language::language_arch_info): ...here, a new member
2821 function.
2822 (cplus_language_data): Delete la_language_arch_info.
2823 (asm_language_data): Likewise.
2824 (asm_language::language_arch_info): New member function.
2825 (minimal_language_data): Delete la_language_arch_info.
2826 (minimal_language::language_arch_info): New member function.
2827 * d-lang.c (d_language_arch_info): Delete function, move
2828 implementation to...
2829 (d_language::language_arch_info): ...here, a new member
2830 function.
2831 (d_language_data): Delete la_language_arch_info.
2832 * f-lang.c (f_language_arch_info): Delete function, move
2833 implementation to...
2834 (f_language::language_arch_info): ...here, a new member
2835 function.
2836 (f_language_data): Delete la_language_arch_info.
2837 * go-lang.c (go_language_arch_info): Delete function, move
2838 implementation to...
2839 (go_language::language_arch_info): ...here, a new member
2840 function.
2841 (go_language_data): Delete la_language_arch_info.
2842 * language.c (unknown_language_data): Likewise.
2843 (unknown_language::language_arch_info): New member function.
2844 (auto_language_data): Delete la_language_arch_info.
2845 (auto_language::language_arch_info): New member function.
2846 (language_gdbarch_post_init): Update call to
2847 la_language_arch_info.
2848 * language.h (language_data): Delete la_language_arch_info
2849 function pointer.
2850 (language_defn::language_arch_info): New function.
2851 * m2-lang.c (m2_language_arch_info): Delete function, move
2852 implementation to...
2853 (m2_language::language_arch_info): ...here, a new member
2854 function.
2855 (m2_language_data): Delete la_language_arch_info.
2856 * objc-lang.c (objc_language_arch_info): Delete function, move
2857 implementation to...
2858 (objc_language::language_arch_info): ...here, a new member
2859 function.
2860 (objc_language_data): Delete la_language_arch_info.
2861 * opencl-lang.c (opencl_language_arch_info): Delete function, move
2862 implementation to...
2863 (opencl_language::language_arch_info): ...here, a new member
2864 function.
2865 (opencl_language_data): Delete la_language_arch_info.
2866 * p-lang.c (pascal_language_arch_info): Delete function, move
2867 implementation to...
2868 (pascal_language::language_arch_info): ...here, a new member
2869 function.
2870 (pascal_language_data): Delete la_language_arch_info.
2871 * rust-lang.c (rust_language_arch_info): Delete function, move
2872 implementation to...
2873 (rust_language::language_arch_info): ...here, a new member
2874 function.
2875 (rust_language_data): Delete la_language_arch_info.
2876
2877 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
2880 initializer.
2881 * c-lang.c (c_language_data): Likewise.
2882 (cplus_language_data): Likewise.
2883 (cplus_language::pass_by_reference_info): New method.
2884 (asm_language_data): Delete la_pass_by_reference initializer.
2885 (minimal_language_data): Likewise.
2886 * cp-abi.c (cp_pass_by_reference): Remove use of
2887 default_pass_by_reference.
2888 * d-lang.c (d_language_data): Likewise.
2889 * f-lang.c (f_language_data): Likewise.
2890 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
2891 default_pass_by_reference.
2892 * go-lang.c (go_language_data): Likewise.
2893 * language.c (language_pass_by_reference): Update.
2894 (default_pass_by_reference): Delete.
2895 (unknown_language_data): Delete la_pass_by_reference
2896 initializer.
2897 (auto_language_data): Likewise.
2898 * language.h (struct language_data): Delete la_pass_by_reference
2899 field.
2900 (language_defn::pass_by_reference_info): New member function.
2901 (default_pass_by_reference): Delete declaration.
2902 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
2903 initializer.
2904 * objc-lang.c (objc_language_data): Likewise.
2905 * opencl-lang.c (opencl_language_data): Likewise.
2906 * p-lang.c (pascal_language_data): Likewise.
2907 * rust-lang.c (rust_language_data): Likewise.
2908
2909 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2910
2911 * ada-lang.c (ada_read_var_value): Delete function, move
2912 implementation to...
2913 (ada_language::read_var_value): ...here.
2914 (ada_language_data): Delete la_read_var_value initializer.
2915 * c-lang.c (c_language_data): Likewise.
2916 (cplus_language_data): Likewise.
2917 (minimal_language_data): Likewise.
2918 * d-lang.c (d_language_data): Likewise.
2919 * f-lang.c (f_language_data): Likewise.
2920 * findvar.c (default_read_var_value): Rename to...
2921 (language_defn::read_var_value): ...this.
2922 * findvar.c (read_var_value): Update header comment, and change to
2923 call member function instead of function pointer.
2924 * go-lang.c (go_language_data): Likewise.
2925 * language.c (unknown_language_data): Delete la_read_var_value
2926 initializer.
2927 (auto_language_data): Likewise.
2928 * language.h (struct language_data): Delete la_read_var_value
2929 field.
2930 (language_defn::read_var_value): New member function.
2931 (default_read_var_value): Delete declaration.
2932 * m2-lang.c (m2_language_data): Delete la_read_var_value
2933 initializer.
2934 * objc-lang.c (objc_language_data): Likewise.
2935 * opencl-lang.c (opencl_language_data): Likewise.
2936 * p-lang.c (pascal_language_data): Likewise.
2937 * rust-lang.c (rust_language_data): Likewise.
2938 * value.h (default_read_var_value): Delete declaration.
2939
2940 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2941
2942 * ada-lang.c (ada_print_array_index): Delete function, move
2943 implementation to...
2944 (ada_language::print_array_index): ...here.
2945 (ada_language_data): Delete la_print_array_index initializer.
2946 * c-lang.c (c_language_data): Likewise.
2947 (cplus_language_data): Likewise.
2948 (minimal_language_data): Likewise.
2949 * d-lang.c (d_language_data): Likewise.
2950 * f-lang.c (f_language_data): Likewise.
2951 * go-lang.c (go_language_data): Likewise.
2952 * language.c (default_print_array_index): Delete function, move
2953 implementation to...
2954 (language_defn::print_array_index): ...here.
2955 (unknown_language_data): Delete la_print_array_index initializer.
2956 (auto_language_data): Likewise.
2957 * language.h (struct language_data): Delete la_print_array_index
2958 field.
2959 (language_defn::print_array_index): New member function.
2960 (LA_PRINT_ARRAY_INDEX): Update.
2961 (default_print_array_index): Delete declaration.
2962 * m2-lang.c (m2_language_data): Delete la_print_array_index
2963 initializer.
2964 * objc-lang.c (objc_language_data): Likewise.
2965 * opencl-lang.c (opencl_language_data): Likewise.
2966 * p-lang.c (pascal_language_data): Likewise.
2967 * rust-lang.c (rust_language_data): Likewise.
2968
2969 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2970
2971 * gdb/ada-lang.c (ada_language_defn): Convert to...
2972 (ada_language_data): ...this.
2973 (class ada_language): New class.
2974 (ada_language_defn): New static global.
2975 * gdb/c-lang.c (c_language_defn): Convert to...
2976 (c_language_data): ...this.
2977 (class c_language): New class.
2978 (c_language_defn): New static global.
2979 (cplus_language_defn): Convert to...
2980 (cplus_language_data): ...this.
2981 (class cplus_language): New class.
2982 (cplus_language_defn): New static global.
2983 (asm_language_defn): Convert to...
2984 (asm_language_data): ...this.
2985 (class asm_language): New class.
2986 (asm_language_defn): New static global.
2987 (minimal_language_defn): Convert to...
2988 (minimal_language_data): ...this.
2989 (class minimal_language): New class.
2990 (minimal_language_defn): New static global.
2991 * gdb/d-lang.c (d_language_defn): Convert to...
2992 (d_language_data): ...this.
2993 (class d_language): New class.
2994 (d_language_defn): New static global.
2995 * gdb/f-lang.c (f_language_defn): Convert to...
2996 (f_language_data): ...this.
2997 (class f_language): New class.
2998 (f_language_defn): New static global.
2999 * gdb/go-lang.c (go_language_defn): Convert to...
3000 (go_language_data): ...this.
3001 (class go_language): New class.
3002 (go_language_defn): New static global.
3003 * gdb/language.c (unknown_language_defn): Remove declaration.
3004 (current_language): Initialize to nullptr, real initialization is
3005 moved to _initialize_language.
3006 (languages): Delete global.
3007 (language_defn::languages): Define.
3008 (set_language_command): Use language_defn::languages.
3009 (set_language): Likewise.
3010 (range_error): Likewise.
3011 (language_enum): Likewise.
3012 (language_def): Likewise.
3013 (add_set_language_command): Use language_def::languages for the
3014 language list, and language_def to lookup language pointers.
3015 (skip_language_trampoline): Use language_defn::languages.
3016 (unknown_language_defn): Convert to...
3017 (unknown_language_data): ...this.
3018 (class unknown_language): New class.
3019 (unknown_language_defn): New static global.
3020 (auto_language_defn): Convert to...
3021 (auto_language_data): ...this.
3022 (class auto_language): New class.
3023 (auto_language_defn): New static global.
3024 (language_gdbarch_post_init): Use language_defn::languages.
3025 (_initialize_language): Initialize current_language.
3026 * gdb/language.h (struct language_defn): Rename to...
3027 (struct language_data): ...this.
3028 (struct language_defn): New.
3029 (auto_language_defn): Delete.
3030 (unknown_language_defn): Delete.
3031 (minimal_language_defn): Delete.
3032 (ada_language_defn): Delete.
3033 (asm_language_defn): Delete.
3034 (c_language_defn): Delete.
3035 (cplus_language_defn): Delete.
3036 (d_language_defn): Delete.
3037 (f_language_defn): Delete.
3038 (go_language_defn): Delete.
3039 (m2_language_defn): Delete.
3040 (objc_language_defn): Delete.
3041 (opencl_language_defn): Delete.
3042 (pascal_language_defn): Delete.
3043 (rust_language_defn): Delete.
3044 * gdb/m2-lang.c (m2_language_defn): Convert to...
3045 (m2_language_data): ...this.
3046 (class m2_language): New class.
3047 (m2_language_defn): New static global.
3048 * gdb/objc-lang.c (objc_language_defn): Convert to...
3049 (objc_language_data): ...this.
3050 (class objc_language): New class.
3051 (objc_language_defn): New static global.
3052 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3053 (opencl_language_data): ...this.
3054 (class opencl_language): New class.
3055 (opencl_language_defn): New static global.
3056 * gdb/p-lang.c (pascal_language_defn): Convert to...
3057 (pascal_language_data): ...this.
3058 (class pascal_language): New class.
3059 (pascal_language_defn): New static global.
3060 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3061 language pointer, update comment format.
3062 * gdb/rust-lang.c (rust_language_defn): Convert to...
3063 (rust_language_data): ...this.
3064 (class rust_language): New class.
3065 (rust_language_defn): New static global.
3066
3067 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3068
3069 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3070 member variable.
3071 <m_stmt_at_address>: New member variable.
3072 (lnp_state_machine::record_line): Don't record some lines, update
3073 tracking of is_stmt at the same address.
3074 (lnp_state_machine::lnp_state_machine): Initialise new member
3075 variables.
3076
3077 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3078
3079 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3080 "-include gnu-nat-mig.h".
3081 * gnu-nat-mig.h: New file.
3082 * gnu-nat.c: Include "gnu-nat-mig.h".
3083 (exc_server, msg_reply_server, notify_server,
3084 process_reply_server): Remove declarations.
3085
3086 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3087
3088 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3089 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3090 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3091 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3092 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3093 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3094 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3095 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3096 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3097 to gnu_nat_target class.
3098 * gnu-nat.c: Likewise.
3099 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3100 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3101 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3102 object.
3103 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3104 instead of `gnu_target'.
3105
3106 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3107
3108 * i386-gnu-tdep.c: Include "gdbcore.h"
3109 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3110 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3111 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3112 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3113 i386_gnu_sigcontext_addr): New functions
3114 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3115 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3116 tdep.
3117
3118 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3119
3120 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3121 before fork_inferior call. Avoid calling it if target_is_pushed returns
3122 true.
3123
3124 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3125
3126 * gnu-nat.h (gnu_target): New variable declaration.
3127 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3128 gnu_target.
3129 * gnu-nat.c (gnu_target): New variable.
3130 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3131 add_thread_silent, and add_thread calls.
3132 (gnu_nat_target::create_inferior): Pass gnu_target to
3133 add_thread_silent, thread_change_ptid call.
3134 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3135 call.
3136
3137 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3138
3139 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3140 (gnu_nat_target::find_memory_regions): Remove unused
3141 `old_address' variable.
3142
3143 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3144
3145 * gnu-nat.c: Include "gdbarch.h".
3146
3147 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3148
3149 * reply_mig_hack.awk (Error return): Cast function through
3150 void *, to bypass compiler function call check.
3151
3152 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3153
3154 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3155 $(srcdir)/reply_mig_hack.awk.
3156
3157 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3158
3159 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3160
3161 2020-05-30 Jonny Grant <jg@jguk.org>
3162
3163 * configure.ac (ACX_BUGURL): change bug URL to https.
3164
3165 2020-05-30 Pedro Alves <palves@redhat.com>
3166
3167 * cp-support.c (replace_typedefs_template): New.
3168 (replace_typedefs_qualified_name): Handle
3169 DEMANGLE_COMPONENT_TEMPLATE.
3170
3171 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3174 dwarf2/index-cache.h, dwarf2/index-write.c,
3175 dwarf2/index-write.h, dwarf2/line-header.c,
3176 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3177 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3178 variables and fields from `dwarf2_per_objfile` to just
3179 `per_objfile` throughout.
3180
3181 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3182
3183 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3184 <push_dwarf_reg_entry_value>: Add comment.
3185
3186 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3187 Keith Seitz <keiths@redhat.com>
3188
3189 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3190 instead of PyEval_ReleaseLock.
3191 (class gdbpy_gil): Move to earlier in file.
3192 (finalize_python): Set gdb_python_initialized.
3193 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3194 when not initialized.
3195
3196 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3197
3198 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3199 <push_dwarf_reg_entry_value>: Remove assert. Override
3200 per_objfile with caller_per_objfile.
3201
3202 2020-05-28 Tom de Vries <tdevries@suse.de>
3203
3204 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3205 PR gold/15646 workaround to symbol kind "type".
3206
3207 2020-05-27 Tom Tromey <tromey@adacore.com>
3208
3209 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3210
3211 2020-05-27 Tom Tromey <tromey@adacore.com>
3212
3213 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3214 Use htab_find_with_hash.
3215 <add_abbrev>: Remove "abbrev_number" parameter.
3216 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3217 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3218 (hash_abbrev): Add comment.
3219 (abbrev_table::lookup_abbrev): Move to header file.
3220 (abbrev_table::read): Update.
3221
3222 2020-05-27 Tom Tromey <tromey@adacore.com>
3223
3224 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3225 method.
3226 <canonical_name>: New member.
3227 <raw_name>: Rename from "name".
3228 (partial_die_info): Initialize canonical_name.
3229 (scan_partial_symbols): Check raw_name.
3230 (partial_die_parent_scope, partial_die_full_name)
3231 (add_partial_symbol, add_partial_subprogram)
3232 (add_partial_enumeration, load_partial_dies): Use "name" method.
3233 (partial_die_info::name): New method.
3234 (partial_die_info::read, guess_partial_die_structure_name)
3235 (partial_die_info::fixup): Update.
3236
3237 2020-05-27 Tom Tromey <tromey@adacore.com>
3238
3239 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3240 <get_ref_die_offset>: Inline.
3241 <get_ref_die_offset_complaint>: New method.
3242 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3243 (attribute::get_ref_die_offset_complaint): Rename from
3244 get_ref_die_offset. Just issue complaint.
3245
3246 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3247
3248 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3249
3250 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3251
3252 * exec.c (exec_file_attach): Use errno value of first openp failure.
3253
3254 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3255
3256 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3257 Don't close thread handle.
3258
3259 2020-05-27 Tom Tromey <tom@tromey.com>
3260 Simon Marchi <simon.marchi@efficios.com>
3261
3262 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3263 shared_ptr.
3264 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3265 member.
3266 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3267 dwarf2_per_bfd_objfile_data_key>: New globals.
3268 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3269 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3270 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3271 shared.
3272 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3273 short-circuit when sharing.
3274 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3275 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3276
3277 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3278
3279 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3280 to...
3281 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3282 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3283
3284 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3285
3286 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3287 build_name_components, find_name_components_bounds>:
3288 Add per_objfile parameter.
3289 (struct mapped_index) <symbol_name_at>: Likewise.
3290 (struct mapped_debug_names): Remove constructor.
3291 <dwarf2_per_objfile>: Remove field.
3292 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3293 (mapped_index_base::find_name_components_bounds,
3294 mapped_index_base::build_name_components,
3295 dw2_expand_symtabs_matching_symbol): Likewise.
3296 (class mock_mapped_index) <symbol_name_at>: Likewise.
3297 (check_match): Likewise.
3298 (check_find_bounds_finds): Likewise.
3299 (test_mapped_index_find_name_component_bounds): Update.
3300 (CHECK_MATCH): Update.
3301 (dw2_expand_symtabs_matching): Update.
3302 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3303 per_objfile parameter.
3304 <find_vec_in_debug_names>: Likewise.
3305 <m_per_objfile>: New field.
3306 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3307 parameter.
3308 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3309 (dw2_debug_names_iterator::next): Update.
3310 (dw2_debug_names_lookup_symbol): Update.
3311 (dw2_debug_names_expand_symtabs_for_function): Update.
3312 (dw2_debug_names_map_matching_symbols): Update.
3313 (dw2_debug_names_expand_symtabs_matching): Update.
3314 (dwarf2_read_debug_names): Update.
3315
3316 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3317
3318 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3319 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3320 move to dwarf2_per_objfile.
3321 <read_in_chain>: Remove.
3322 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3323 remove_all_cus, age_comp_units>: New methods.
3324 <m_dwarf2_cus>: New member.
3325 (struct dwarf2_per_cu_data) <cu>: Remove.
3326 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3327 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3328 moved to methods of dwarf2_per_objfile.
3329 (dwarf2_clear_marks): Remove.
3330 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3331 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3332 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3333 (dwarf2_per_objfile::remove_all_cus): New.
3334 (class free_cached_comp_units) <~free_cached_comp_units>:
3335 Update.
3336 (load_cu): Update.
3337 (dw2_do_instantiate_symtab): Adjust.
3338 (fill_in_sig_entry_from_dwo_entry): Adjust.
3339 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3340 (cutu_reader::cutu_reader): Likewise.
3341 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3342 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3343 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3344 and dwarf2_per_objfile::age_comp_units.
3345 (load_partial_comp_unit): Update.
3346 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3347 (process_queue): Likewise.
3348 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3349 backlink.
3350 (dwarf2_read_addr_index): Likewise.
3351 (follow_die_offset): Likewise.
3352 (dwarf2_fetch_die_loc_sect_off): Likewise.
3353 (dwarf2_fetch_constant_bytes): Likewise.
3354 (dwarf2_fetch_die_type_sect_off): Likewise.
3355 (follow_die_sig_1): Likewise.
3356 (load_full_type_unit): Likewise.
3357 (read_signatured_type): Likewise.
3358 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3359 (dwarf2_cu::~dwarf2_cu): Remove.
3360 (dwarf2_per_objfile::get_cu): New.
3361 (dwarf2_per_objfile::set_cu): New.
3362 (age_cached_comp_units): Rename to...
3363 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3364 to std::unordered_map.
3365 (free_one_cached_comp_unit): Rename to...
3366 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3367 to std::unordered_map.
3368 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3369 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3370 a dwarf2_per_objfile in data.
3371 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3372 (dwarf2_clear_marks): Remove.
3373
3374 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3375
3376 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3377 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3378 (init_tu_and_read_dwo_dies): Likewise.
3379 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3380 (cutu_reader::cutu_reader): Likewise.
3381 (load_partial_comp_unit): Likewise.
3382 (process_psymtab_comp_unit): Update.
3383 (build_type_psymtabs_1): Update.
3384 (process_skeletonless_type_unit): Update.
3385 (load_full_comp_unit): Update.
3386 (find_partial_die): Update.
3387 (dwarf2_read_addr_index): Update.
3388 (read_signatured_type): Update.
3389
3390 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3391
3392 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3393 m_header_read_in>: New fields.
3394 <get_header>: New method.
3395 * dwarf2/read.c (per_cu_header_read_in): Remove.
3396 (dwarf2_per_cu_data::get_header): New.
3397 (dwarf2_per_cu_data::addr_size): Update.
3398 (dwarf2_per_cu_data::offset_size): Update.
3399 (dwarf2_per_cu_data::ref_addr_size): Update.
3400
3401 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3402
3403 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3404 (dw2_do_instantiate_symtab): Update.
3405 (queue_and_load_all_dwo_tus): Change parameter from
3406 dwarf2_per_cu_data to dwarf2_cu.
3407 (dwarf2_fetch_die_loc_sect_off): Update.
3408 (dwarf2_fetch_constant_bytes): Update.
3409 (dwarf2_fetch_die_type_sect_off): Update.
3410
3411 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3412
3413 * dwarf2/read.c (process_full_comp_unit,
3414 process_full_type_unit): Remove per_cu, per_objfile paramters.
3415 Add dwarf2_cu parameter.
3416 (process_queue): Update.
3417
3418 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3419
3420 * dwarf2/read.c (create_cu_from_index_list): Replace
3421 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3422 (create_cus_from_index_list): Likewise.
3423 (create_cus_from_index): Likewise.
3424 (create_signatured_type_table_from_index): Likewise.
3425 (create_cus_from_debug_names_list): Likewise.
3426 (create_cus_from_debug_names): Likewise.
3427 (dwarf2_read_gdb_index): Update.
3428 (dwarf2_read_debug_names): Update.
3429
3430 2020-05-27 Tom Tromey <tom@tromey.com>
3431 Simon Marchi <simon.marchi@efficios.com>
3432
3433 * dwarf2/read.h (struct dwarf2_per_objfile)
3434 <get_type_for_signatured_type, set_type_for_signatured_type>:
3435 New methods.
3436 <m_type_map>: New member.
3437 (struct signatured_type) <type>: Remove.
3438 * dwarf2/read.c
3439 (dwarf2_per_objfile::get_type_for_signatured_type,
3440 dwarf2_per_objfile::set_type_for_signatured_type): New.
3441 (get_signatured_type): Use new methods.
3442
3443 2020-05-27 Tom Tromey <tom@tromey.com>
3444 Simon Marchi <simon.marchi@efficios.com>
3445
3446 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3447 (struct dwarf2_per_objfile) <type_units>: New member.
3448 <get_type_unit_group_unshareable>: New method.
3449 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3450 num_symtabs, symtabs>: Remove; move to
3451 type_unit_group_unshareable.
3452 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3453 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3454 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3455
3456 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3457
3458 * dwarf2/read.h (struct dwarf2_per_cu_data):
3459 <dwarf2_per_objfile>: Remove.
3460 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3461 dwarf2_per_objfile.
3462 (create_signatured_type_table_from_index): Likewise.
3463 (create_signatured_type_table_from_debug_names): Likewise.
3464 (create_debug_type_hash_table): Likewise.
3465 (fill_in_sig_entry_from_dwo_entry): Likewise.
3466 (create_type_unit_group): Likewise.
3467 (read_comp_units_from_section): Likewise.
3468 (create_cus_hash_table): Likewise.
3469
3470 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3471
3472 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3473 dwarf2_per_cu_data::dwarf2_per_objfile.
3474 (compute_compunit_symtab_includes): Likewise.
3475 (dwarf2_cu::start_symtab): Likewise.
3476
3477 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3478
3479 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3480 parameter.
3481 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3482 (read_namespace_alias): Update.
3483 (lookup_die_type): Update.
3484 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3485 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3486 Update.
3487 (disassemble_dwarf_expression): Update.
3488
3489 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3490
3491 * dwarf2/read.h (struct dwarf2_queue_item): Add
3492 dwarf2_per_objfile parameter, assign new parameter.
3493 <per_objfile>: New field.
3494 * dwarf2/read.c (free_one_cached_comp_unit): Add
3495 dwarf2_per_objfile parameter.
3496 (queue_comp_unit): Likewise.
3497 (dw2_do_instantiate_symtab): Update.
3498 (process_psymtab_comp_unit): Update.
3499 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3500 (process_imported_unit_die): Update.
3501 (queue_and_load_dwo_tu): Update.
3502 (follow_die_offset): Update.
3503 (follow_die_sig_1): Update.
3504
3505 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3506
3507 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3508 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3509 (read_call_site_scope): Assign per_objfile.
3510 (dwarf2_per_cu_data::objfile): Remove.
3511 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3512 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3513 dwarf2_per_objfile parameter.
3514 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3515 dwarf2_per_objfile parameter.
3516 (dwarf_expr_reg_to_entry_parameter): Add output
3517 dwarf2_per_objfile parameter.
3518 (locexpr_get_frame_base): Update.
3519 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3520 <push_dwarf_reg_entry_value>: Update.
3521 <call_site_to_target_addr>: Update.
3522 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3523 parameter.
3524 (value_of_dwarf_reg_entry): Update.
3525 (rw_pieced_value): Update.
3526 (indirect_synthetic_pointer): Update.
3527 (dwarf2_evaluate_property): Update.
3528 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3529 parameter.
3530 (locexpr_read_variable): Update.
3531 (locexpr_get_symbol_read_needs): Update.
3532 (loclist_read_variable): Update.
3533
3534 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3535
3536 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3537 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3538 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3539 parameter.
3540 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3541 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3542 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3543 parameter.
3544 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3545 sect_variable_value): Add dwarf2_per_objfile parameter.
3546 (class dwarf_evaluate_loc_desc) <dwarf_call,
3547 dwarf_variable_value>: Update.
3548 (fetch_const_value_from_synthetic_pointer): Add
3549 dwarf2_per_objfile parameter.
3550 (fetch_const_value_from_synthetic_pointer): Update.
3551 (coerced_pieced_ref): Update.
3552 (class symbol_needs_eval_context) <dwarf_call,
3553 dwarf_variable_value>: Update.
3554 (dwarf2_compile_expr_to_ax): Update.
3555
3556 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3557
3558 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3559 parameter.
3560 (dwarf2_evaluate_loc_desc_full): Update.
3561
3562 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3563
3564 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3565 parameter.
3566 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3567 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3568 dwarf2_per_objfile parameter.
3569 (decode_debug_loc_dwo_addresses): Likewise.
3570 (dwarf2_find_location_expression): Update.
3571 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3572 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3573 parameter.
3574 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3575 parameter.
3576 (locexpr_describe_location_1): Likewise.
3577 (locexpr_describe_location): Update.
3578
3579 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3580
3581 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3582 Remove.
3583 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3584 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3585 (dwarf2_compile_property_to_c): Update.
3586 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3587 use text offset from objfile.
3588 (locexpr_tracepoint_var_ref): Update.
3589 (locexpr_generate_c_location): Update.
3590 (loclist_describe_location): Update.
3591 (loclist_tracepoint_var_ref): Update.
3592 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3593 dwarf2_per_objfile parameter.
3594 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3595 use text offset from objfile.
3596 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3597
3598 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3599
3600 * dwarf2/expr.h (struct dwarf_expr_context)
3601 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3602 <offset>: Remove.
3603 <per_objfile>: New member.
3604 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3605 dwarf2_per_objfile parameter. Don't set offset, set
3606 per_objfile.
3607 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3608 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3609 a dwarf2_per_objfile object instead of an offset.
3610 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3611 constructor.
3612 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3613 to dwarf2_expr_executor constructor. Don't set offset.
3614 (dwarf2_fetch_cfa_info): Update.
3615 (struct dwarf2_frame_cache) <text_offset>: Remove.
3616 <per_objfile>: New field.
3617 (dwarf2_frame_cache): Update.
3618 (dwarf2_frame_prev_register): Update.
3619 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3620 <dwarf_evaluate_loc_desc>: Add constructor.
3621 (dwarf2_evaluate_loc_desc_full): Update.
3622 (dwarf2_locexpr_baton_eval): Update.
3623 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3624 Add constructor.
3625 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3626
3627 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3630 addr_sized_int_type>: Move to dwarf2_cu.
3631 <int_type>: Move to dwarf2_per_objfile.
3632 (struct dwarf2_per_objfile) <int_type>: Move here.
3633 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3634 addr_sized_int_type>: Move here.
3635 (read_func_scope): Update.
3636 (read_array_type): Update.
3637 (read_tag_string_type): Update.
3638 (attr_to_dynamic_prop): Update.
3639 (dwarf2_per_cu_data::int_type): Rename to...
3640 (dwarf2_per_objfile::int_type): ... this.
3641 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3642 (dwarf2_cu::addr_sized_int_type): ... this.
3643 (read_subrange_type): Update.
3644 (dwarf2_per_cu_data::addr_type): Rename to...
3645 (dwarf2_cu::addr_type): ... this.
3646 (set_die_type): Update.
3647
3648 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3649
3650 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3651 data through per_cu->cu.
3652
3653 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3654
3655 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3656 dwarf2_per_cu_data parameter fo dwarf2_cu.
3657 (lookup_dwo_type_unit): Likewise.
3658 (read_cutu_die_from_dwo): Likewise.
3659 (lookup_dwo_unit): Likewise.
3660 (open_and_init_dwo_file): Likewise.
3661 (lookup_dwo_cutu): Likewise.
3662 (lookup_dwo_comp_unit): Likewise.
3663 (lookup_dwo_type_unit): Likewise.
3664 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3665 (cutu_reader::cutu_reader): Update.
3666
3667 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3668
3669 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3670 parameter.
3671 (process_full_type_unit): Likewise.
3672 (process_queue): Update.
3673
3674 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3675
3676 * dwarf2/read.c (recursively_compute_inclusions): Add
3677 dwarf2_per_objfile parameter.
3678 (compute_compunit_symtab_includes): Likewise.
3679 (process_cu_includes): Update.
3680
3681 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3682
3683 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3684 parameter.
3685 (create_type_unit_group): Update.
3686 (process_psymtab_comp_unit_reader): Update.
3687 (build_type_psymtabs_reader): Update.
3688
3689 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3690
3691 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3692 object through m_this_cu->cu.
3693
3694 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3697 the info parameter.
3698 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3699
3700 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3701
3702 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3703 per_objfile parameter.
3704 (load_full_type_unit): Add per_objfile parameter.
3705 (read_signatured_type): Likewise.
3706 (load_full_comp_unit): Likewise.
3707 (load_cu): Likewise.
3708 (dw2_do_instantiate_symtab): Likewise.
3709 (dw2_get_file_names): Likewise.
3710 (dw2_map_symtabs_matching_filename): Update.
3711 (dw_expand_symtabs_matching_file_matcher): Update.
3712 (dw2_map_symbol_filenames): Update.
3713 (process_psymtab_comp_unit): Add per_objfile parameter.
3714 (build_type_psymtabs_1): Update.
3715 (process_skeletonless_type_unit): Update.
3716 (dwarf2_build_psymtabs_hard): Update.
3717 (load_partial_comp_unit): Add per_objfile parameter.
3718 (scan_partial_symbols): Update.
3719 (load_full_comp_unit): Add per_objfile parameter.
3720 (process_imported_unit_die): Update.
3721 (create_cus_hash_table): Update.
3722 (find_partial_die): Update.
3723 (dwarf2_read_addr_index): Update.
3724 (follow_die_offset): Update.
3725 (dwarf2_fetch_die_loc_sect_off): Update.
3726 (dwarf2_fetch_constant_bytes): Update.
3727 (dwarf2_fetch_die_type_sect_off): Update.
3728 (follow_die_sig_1): Update.
3729 (load_full_type_unit): Add per_objfile parameter.
3730 (read_signatured_type): Likewise.
3731
3732 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3733
3734 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3735 of objfile_name.
3736
3737 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3738
3739 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3740 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3741 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3742 field.
3743 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3744 (create_cus_from_index): Update.
3745 (dwarf2_read_gdb_index): Update.
3746 (create_cus_from_debug_names): Update.
3747 (dwarf2_read_debug_names): Update.
3748 (get_abbrev_section_for_cu): Update.
3749 (create_all_comp_units): Update.
3750 (read_attribute_value): Update.
3751 (get_debug_line_section): Update.
3752 * dwarf2/index-cache.c (index_cache::store): Update.
3753 * dwarf2/index-write.c (save_gdb_index_command): Update.
3754 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3755
3756 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3757
3758 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
3759 member.
3760 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
3761 dwarf2_per_cu_data::per_bfd.
3762 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
3763 (create_type_unit_group): Likewise.
3764 (queue_comp_unit): Remove reference to
3765 per_cu->dwarf2_per_objfile.
3766 (maybe_queue_comp_unit): Likewise.
3767 (fill_in_sig_entry_from_dwo_entry): Assign new field.
3768 (create_cus_hash_table): Assign new field.
3769
3770 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3771
3772 * dwarf2/read.c: Replace
3773 dwarf2_cu->per_cu->dwarf2_per_objfile references with
3774 dwarf2_cu->per_objfile throughout.
3775
3776 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3777
3778 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
3779 parameter, don't use per_cu->dwarf2_per_objfile.
3780 (dw2_instantiate_symtab): Likewise.
3781 (dw2_find_last_source_symtab): Update.
3782 (dw2_map_expand_apply): Update.
3783 (dw2_lookup_symbol): Update.
3784 (dw2_expand_symtabs_for_function): Update.
3785 (dw2_expand_all_symtabs): Update.
3786 (dw2_expand_symtabs_with_fullname): Update.
3787 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
3788 don't use per_cu->dwarf2_per_objfile.
3789 (dw2_expand_marked_cus): Update.
3790 (dw2_find_pc_sect_compunit_symtab): Update.
3791 (dw2_debug_names_lookup_symbol): Update.
3792 (dw2_debug_names_expand_symtabs_for_function): Update.
3793 (dw2_debug_names_map_matching_symbols): Update.
3794 (dwarf2_psymtab::expand_psymtab): Update.
3795
3796 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3797
3798 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
3799 <per_objfile>: New member.
3800 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
3801 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
3802 call to dwarf2_cu.
3803 (cutu_reader::cutu_reader): Update.
3804 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
3805
3806 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3807
3808 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
3809 struct dwarf2_per_objfile.
3810 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
3811 dwarf2_per_bfd.
3812 * dwarf2/read.c (set_die_type): Update.
3813 (get_die_type_at_offset): Update.
3814
3815 2020-05-27 Tom Tromey <tom@tromey.com>
3816 Simon Marchi <simon.marchi@efficios.com>
3817
3818 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
3819 method.
3820 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
3821 get_symtab, set_symtab>: New methods.
3822 <m_symtabs>: New field.
3823 (struct dwarf2_psymtab): Derive from partial_symtab.
3824 <readin_p, get_compunit_symtab>: Declare methods.
3825 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
3826 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
3827 New methods.
3828 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
3829 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
3830 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
3831 (dw2_symtab_iter_next, dw2_print_stats)
3832 (dw2_expand_symtabs_with_fullname)
3833 (dw2_expand_symtabs_matching_one)
3834 (dw_expand_symtabs_matching_file_matcher)
3835 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
3836 (dw2_debug_names_iterator::next)
3837 (dw2_debug_names_map_matching_symbols)
3838 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
3839 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
3840 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
3841 New methods.
3842 (get_compunit_symtab, process_full_comp_unit)
3843 (process_full_type_unit): Update.
3844 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
3845
3846 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3847
3848 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
3849 then introduce a new dwarf2_per_objfile type.
3850 <read_line_string>: Move to the new dwarf2_per_objfile type.
3851 <objfile>: Likewise.
3852 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
3853 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
3854 dwarf2_per_objfile->per_bfd.
3855 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
3856 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
3857 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
3858 (dwarf2_per_bfd::free_cached_comp_units): ... this.
3859 (dwarf2_has_info): Allocate dwarf2_per_bfd.
3860 (dwarf2_per_objfile::locate_sections): Rename to...
3861 (dwarf2_per_bfd::locate_sections): ... this.
3862 (dwarf2_per_objfile::get_cutu): Rename to...
3863 (dwarf2_per_bfd::get_cutu): ... this.
3864 (dwarf2_per_objfile::get_cu): Rename to...
3865 (dwarf2_per_bfd::get_cu): ... this.
3866 (dwarf2_per_objfile::get_tu): Rename to...
3867 (dwarf2_per_bfd::get_tu): ... this.
3868 (dwarf2_per_objfile::allocate_per_cu): Rename to...
3869 (dwarf2_per_bfd::allocate_per_cu): ... this.
3870 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
3871 (dwarf2_per_bfd::allocate_signatured_type): ... this.
3872 (get_gdb_index_contents_ftype): Change parameter from
3873 dwarf2_per_objfile to dwarf2_per_bfd.
3874 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
3875 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
3876
3877 2020-05-27 Tom Tromey <tom@tromey.com>
3878 Simon Marchi <simon.marchi@efficios.com>
3879
3880 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
3881 (allocate_piece_closure): Set "per_objfile" member.
3882 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
3883 (locexpr_describe_location, loclist_describe_location): Use new
3884 member.
3885 * dwarf2/read.c (read_call_site_scope)
3886 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3887 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
3888 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
3889 handle_data_member_location): Set per_objfile member.
3890 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
3891 member.
3892 (struct dwarf2_loclist_baton) <per_objfile>: New member.
3893
3894 2020-05-27 Tom Tromey <tom@tromey.com>
3895
3896 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
3897 allocate_signatured_type>: Declare new methods.
3898 <m_num_psymtabs>: New member.
3899 (struct dwarf2_per_cu_data) <index>: New member.
3900 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
3901 (dwarf2_per_objfile::allocate_signatured_type): New methods.
3902 (create_cu_from_index_list): Use allocate_per_cu.
3903 (create_signatured_type_table_from_index)
3904 (create_signatured_type_table_from_debug_names)
3905 (create_debug_type_hash_table, add_type_unit)
3906 (read_comp_units_from_section): Use allocate_signatured_type.
3907
3908 2020-05-27 Tom Tromey <tom@tromey.com>
3909
3910 * psymtab.c (partial_map_expand_apply)
3911 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
3912 (psym_lookup_global_symbol_language)
3913 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
3914 (psym_print_stats, psym_expand_symtabs_for_function)
3915 (psym_map_symbol_filenames, psym_map_matching_symbols)
3916 (psym_expand_symtabs_matching)
3917 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
3918 (maintenance_check_psymtabs): Update.
3919 * psympriv.h (struct partial_symtab) <readin_p,
3920 get_compunit_symtab>: Add objfile parameter.
3921 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
3922 Likewise.
3923 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
3924 get_compunit_symtab>: Likewise.
3925 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
3926
3927 2020-05-27 Tom Tromey <tom@tromey.com>
3928
3929 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
3930 member.
3931 * dwarf2/read.c (delete_file_name_entry): Fix comment.
3932 (create_cu_from_index_list)
3933 (create_signatured_type_table_from_index)
3934 (create_signatured_type_table_from_debug_names)
3935 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
3936 (dwarf2_create_include_psymtab)
3937 (create_debug_type_hash_table, add_type_unit)
3938 (create_type_unit_group, read_comp_units_from_section)
3939 (dwarf2_compute_name, create_cus_hash_table)
3940 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
3941 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
3942 obstack.
3943 (dw2_get_real_path): Likewise. Change argument to
3944 dwarf2_per_objfile.
3945
3946 2020-05-27 Luis Machado <luis.machado@linaro.org>
3947
3948 PR tdep/26000
3949 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
3950 for ldrd (immediate).
3951
3952 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3953
3954 * command.h: Add comment giving the name of class_tui.
3955 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
3956 create the fake command for the help for class_tui.
3957
3958 2020-05-26 Tom Tromey <tromey@adacore.com>
3959
3960 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
3961 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
3962 (val_atr): New function.
3963 (value_val_atr): Use it.
3964 * ada-valprint.c (print_optional_low_bound): Change low bound
3965 handling for enums.
3966 (val_print_packed_array_elements): Don't call discrete_position.
3967 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
3968 discrete_position for enum types.
3969 * language.c (default_print_array_index): Change type.
3970 * language.h (struct language_defn) <la_print_array_index>: Add
3971 index_type parameter, change type of index_value.
3972 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
3973 (default_print_array_index): Update.
3974 * valprint.c (maybe_print_array_index): Don't call
3975 value_from_longest. Update.
3976 (value_print_array_elements): Don't call discrete_position.
3977
3978 2020-05-26 Tom Tromey <tromey@adacore.com>
3979
3980 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
3981 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
3982
3983 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
3984
3985 PR gdb/13519
3986 * avr-tdep.c (avr_integer_to_address): Return data or code
3987 address accordingly to the second 'type' argument of the
3988 function.
3989
3990 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
3991
3992 * infcmd.c, inferior.h: (construct_inferior_arguments):
3993 Moved function from here to gdbsupport/common-inferior.{h,cc}
3994
3995 2020-05-23 Tom Tromey <tom@tromey.com>
3996
3997 Revert commit eca1f90c:
3998 * NEWS: Remove entry for completion styling.
3999 * completer.c (_rl_completion_prefix_display_length): Move
4000 declaration later.
4001 (gdb_fnprint): Revert.
4002 (gdb_display_match_list_1): Likewise.
4003 * cli/cli-style.c (completion_prefix_style)
4004 (completion_difference_style, completion_suffix_style): Remove.
4005 (_initialize_cli_style): Revert.
4006 * cli/cli-style.h (completion_prefix_style)
4007 (completion_difference_style, completion_suffix_style): Don't
4008 declare.
4009
4010 2020-05-24 Pedro Alves <palves@redhat.com>
4011
4012 * symtab.c (completion_list_add_name): Return boolean indication
4013 of whether the symbol matched.
4014 (completion_list_add_symbol): Don't try to remove C++ aliases if
4015 the symbol didn't match in the first place.
4016 * symtab.h (completion_list_add_name): Return bool.
4017
4018 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4019
4020 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4021 type::field.
4022
4023 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4024
4025 GDB 9.2 released.
4026
4027 2020-05-23 Tom Tromey <tom@tromey.com>
4028
4029 * NEWS: Add entry for completion styling.
4030 * completer.c (_rl_completion_prefix_display_length): Move
4031 declaration earlier.
4032 (gdb_fnprint): Use completion_style.
4033 (gdb_display_match_list_1): Likewise.
4034 * cli/cli-style.c (completion_prefix_style)
4035 (completion_difference_style, completion_suffix_style): New
4036 globals.
4037 (_initialize_cli_style): Register new globals.
4038 * cli/cli-style.h (completion_prefix_style)
4039 (completion_difference_style, completion_suffix_style): Declare.
4040
4041 2020-05-23 Pedro Alves <palves@redhat.com>
4042
4043 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4044 (parse_escape): Use ISDIGIT instead of isdigit.
4045 (puts_debug): Use gdb_isprint instead of isprint.
4046 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4047 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4048 ISSPACE instead of isspace.
4049 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4050 instead of isspace.
4051 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4052 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4053 instead of isxdigit and ISDIGIT instead of isdigit.
4054
4055 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4056
4057 * gdbtypes.h (struct type) <field>: New method.
4058 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4059 or type::field.
4060
4061 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4064 (TYPE_FIELDS): Use type::fields. Change all call sites that
4065 modify the propery to use type::set_fields instead.
4066
4067 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4068
4069 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4070 type::num_fields instead.
4071
4072 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4075 methods.
4076 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4077 that modify the number of fields to use type::set_num_fields
4078 instead.
4079
4080 2020-05-22 Tom Tromey <tromey@adacore.com>
4081
4082 * compile/compile-object-load.h (munmap_list_free): Don't
4083 declare.
4084
4085 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4086
4087 * annotate.c (annotate_source_line): Update return type, add call
4088 to update current symtab and line.
4089 * annotate.h (annotate_source_line): Update return type, and
4090 extend header comment.
4091 * source.c (info_line_command): Check annotation_level before
4092 calling annotate_source_line.
4093 * stack.c (print_frame_info): If calling annotate_source_line
4094 returns true, then don't print any other source line information.
4095
4096 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4097
4098 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4099
4100 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4101
4102 * coffread.c (patch_type): Remove NULL check before xfree.
4103 * corefile.c (set_gnutarget): Likewise.
4104 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4105 * exec.c (build_section_table): Likewise.
4106 * remote.c (remote_target::pass_signals): Likewise.
4107 * utils.c (n_spaces): Likewise.
4108 * cli/cli-script.c (document_command): Likewise.
4109 * i386-windows-tdep.c (core_process_module_section): Likewise.
4110 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4111
4112 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4113
4114 * symfile.c (reread_symbols): Clear objfile's section_offsets
4115 vector and section indices, re-compute them by calling
4116 sym_offsets.
4117
4118 2020-05-20 Tom Tromey <tromey@adacore.com>
4119
4120 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4121 (desc_one_bound, desc_index_type): Compute field name.
4122
4123 2020-05-20 Tom de Vries <tdevries@suse.de>
4124
4125 PR symtab/25833
4126 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4127
4128 2020-05-20 Alan Modra <amodra@gmail.com>
4129
4130 PR 25993
4131 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4132 bfd_set_filename.
4133 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4134 passed to bfd_set_filename.
4135 * symfile-mem.c (add_vsyscall_page): Likewise for string
4136 passed to symbol_file_add_from_memory.
4137 (symbol_file_add_from_memory): Make name param a const char* and
4138 don't strdup.
4139
4140 2020-05-20 Alan Modra <amodra@gmail.com>
4141
4142 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4143 rather than accessing bfd->filename directly.
4144 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4145 and use bfd_section_name.
4146 * dwarf2/frame.c (decode_frame_entry): Likewise.
4147 * exec.c (exec_set_section_address): Likewise.
4148 * solib-aix.c (solib_aix_bfd_open): Likewise.
4149 * stap-probe.c (get_stap_base_address): Likewise.
4150 * symfile.c (reread_symbols): Likewise.
4151
4152 2020-05-19 Tom Tromey <tromey@adacore.com>
4153
4154 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4155
4156 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4157
4158 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4159
4160 2020-05-19 Pedro Alves <palves@redhat.com>
4161
4162 * NEWS (set exec-file-mismatch): Adjust entry.
4163 * exec.c: Include "build-id.h".
4164 (validate_exec_file): Try to match build IDs instead of filenames.
4165 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4166 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4167 and pass down 'warn_if_slow'.
4168 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4169 gdb_bfd_open_closure to pass it down.
4170 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4171
4172 2020-05-19 Pedro Alves <palves@redhat.com>
4173
4174 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4175 * target.c (target_fileio_open_1): Rename to target_fileio_open
4176 and make extern. Use bool.
4177 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4178 (target_fileio_read_alloc_1): Adjust.
4179 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4180 (target_fileio_open_warn_if_slow): Delete declaration.
4181
4182 2020-05-19 Pedro Alves <palves@redhat.com>
4183
4184 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4185 Adjust all callers.
4186
4187 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4188
4189 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4190 whether disp is negative.
4191
4192 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4193
4194 * symfile.h (struct symfile_segment_data)
4195 <~symfile_segment_data>: Remove.
4196 <segment_info>: Change to std::vector.
4197 * symfile.c (default_symfile_segments): Update.
4198 * elfread.c (elf_symfile_segments): Update.
4199
4200 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4201
4202 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4203 <segments>: New.
4204 <segment_bases, segment_sizes>: Remove.
4205 * symfile.c (default_symfile_segments): Update.
4206 * elfread.c (elf_symfile_segments): Update.
4207 * remote.c (remote_target::get_offsets): Update.
4208 * solib-target.c (solib_target_relocate_section_addresses):
4209 Update.
4210
4211 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4212
4213 * symfile.h (struct symfile_segment_data): Initialize fields.
4214 <~symfile_segment_data>: Add.
4215 (symfile_segment_data_up): New.
4216 (struct sym_fns) <sym_segments>: Return a
4217 symfile_segment_data_up.
4218 (default_symfile_segments): Return a symfile_segment_data_up.
4219 (free_symfile_segment_data): Remove.
4220 (get_symfile_segment_data): Return a symfile_segment_data_up.
4221 * symfile.c (default_symfile_segments): Likewise.
4222 (get_symfile_segment_data): Likewise.
4223 (free_symfile_segment_data): Remove.
4224 (symfile_find_segment_sections): Update.
4225 * elfread.c (elf_symfile_segments): Return a
4226 symfile_segment_data_up.
4227 * remote.c (remote_target::get_offsets): Update.
4228 * solib-target.c (solib_target_relocate_section_addresses):
4229 Update.
4230 * symfile-debug.c (debug_sym_segments): Return a
4231 symfile_segment_data_up.
4232
4233 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4234
4235 PR build/25981
4236 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4237 Hardcode register numbers.
4238
4239 PR build/25981
4240 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4241 procfs_find_LDT_entry): Remove.
4242 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4243 procfs_find_LDT_entry): Remove.
4244 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4245 Remove.
4246
4247 2020-05-17 Pedro Alves <palves@redhat.com>
4248 Andrew Burgess <andrew.burgess@embecosm.com>
4249 Keno Fischer <keno@juliacomputing.com>
4250
4251 PR gdb/25741
4252 * breakpoint.c (build_target_condition_list): Update comments.
4253 (build_target_command_list): Update comments and skip matching
4254 locations.
4255 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4256 a separate function. Simplify "set breakpoint auto-hw off"
4257 handling.
4258 (insert_breakpoints): Update comment.
4259 (tracepoint_locations_match): New parameter. For breakpoints,
4260 compare location types too, if the caller wants to.
4261 (handle_automatic_hardware_breakpoints): New functions.
4262 (bp_location_is_less_than): Also sort by location type and
4263 hardware breakpoint length.
4264 (update_global_location_list): Handle "set breakpoint auto-hw on"
4265 here.
4266 (update_breakpoint_locations): Ask breakpoint_locations_match to
4267 ignore location types.
4268
4269 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4270
4271 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4272 type::name instead.
4273
4274 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4275
4276 * gdbtypes.h (struct type) <name, set_name>: New methods.
4277 (TYPE_CODE): Use type::name. Change all call sites used to set
4278 the name to use type::set_name instead.
4279
4280 2020-05-16 Tom Tromey <tom@tromey.com>
4281
4282 * top.c (quit_force): Update.
4283 * infrun.c (handle_no_resumed): Update.
4284 * top.h (all_uis): New function.
4285 (ALL_UIS): Remove.
4286
4287 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4288
4289 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4290
4291 2020-05-16 Pedro Alves <palves@redhat.com>
4292
4293 * ia64-linux-nat.c
4294 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4295 Declare method.
4296 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4297
4298 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4299
4300 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4301 (sparc64_adi_info): Likewise.
4302
4303 2020-05-15 Tom Tromey <tom@tromey.com>
4304
4305 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4306 block_objfile.
4307 (lookup_objfile_from_block): Remove.
4308 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4309 (lookup_global_symbol): Use block_objfile.
4310 * symtab.h (lookup_objfile_from_block): Don't declare.
4311 * printcmd.c (clear_dangling_display_expressions): Use
4312 block_objfile.
4313 * parse.c (operator_check_standard): Use block_objfile.
4314
4315 2020-05-15 Tom Tromey <tom@tromey.com>
4316
4317 * language.c (language_alloc_type_symbol): Set
4318 SYMBOL_SECTION.
4319 * symtab.c (initialize_objfile_symbol): Remove.
4320 (allocate_symbol): Remove.
4321 (allocate_template_symbol): Remove.
4322 * dwarf2/read.c (fixup_go_packaging): Use "new".
4323 (new_symbol): Use "new".
4324 (read_variable): Don't call initialize_objfile_symbol. Use
4325 "new".
4326 (read_func_scope): Use "new".
4327 * xcoffread.c (process_xcoff_symbol): Don't call
4328 initialize_objfile_symbol.
4329 (SYMBOL_DUP): Remove.
4330 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4331 "new".
4332 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4333 (allocate_template_symbol): Don't declare.
4334 (struct symbol): Add copy constructor. Change defaults.
4335 * jit.c (finalize_symtab): Use "new".
4336 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4337 Use "new".
4338 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4339 (common_block_end): Use "new".
4340 * mdebugread.c (parse_symbol): Use "new".
4341 (new_symbol): Likewise.
4342
4343 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4344
4345 * NEWS: Mention changes to help and apropos.
4346
4347 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4348
4349 * command.h (enum command_class): Improve comments, document
4350 that class_alias is for user-defined aliases, give the class
4351 name for each class, remove unused class_xdb.
4352 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4353 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4354 by a precise class.
4355 * infcmd.c (_initialize_infcmd): Likewise.
4356 * reverse.c (_initialize_reverse): Likewise.
4357 * stack.c (_initialize_stack): Likewise.
4358 * symfile.c (_initialize_symfile): Likewise.
4359 * tracepoint.c (_initialize_tracepoint): Likewise.
4360
4361 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4362
4363 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4364 when their aliased command is traversed.
4365 (help_cmd): Add fput_command_names_styled call to
4366 output command name and aliases when command has an alias.
4367
4368 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4369
4370 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4371 * cli/cli-decode.c (help_cmd_list): Declare as static,
4372 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4373 a command together with the command.
4374 (fput_command_name_styled, fput_command_names_styled): New functions.
4375 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4376 fput_command_name_styled.
4377 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4378 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4379
4380 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4381
4382 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4383 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4384 * command.h (cmd_show_list): Likewise.
4385 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4386 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4387
4388 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4389
4390 * unittests/command-def-selftests.c (traverse_command_structure):
4391 Verify all commands of a list have the same prefix command and
4392 that only the top cmdlist commands have a null prefix.
4393
4394 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4395
4396 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4397 as prefix, not one of its aliases.
4398 (set_cmd_prefix): Remove.
4399 (do_add_cmd): Centralize the setting of the prefix of a command, when
4400 command is defined after its full chain of prefix commands.
4401 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4402 (add_setshow_cmd_full): Likewise.
4403 (update_prefix_field_of_prefixed_commands): New function.
4404 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4405 update_prefix_field_of_prefixed_commands.
4406 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4407 addresses of remote_set_cmdlist and remote_show_cmdlist given
4408 as argument, not the address of an argument.
4409 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4410 * gdb/remote.c (_initialize_remote): Likewise.
4411
4412 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4413
4414 * cli/cli-cmds.c (alias_command): Check for an existing alias
4415 using lookup_cmd_composition, as valid_command_p is too strict
4416 and forbids aliases that are the prefix of an existing alias
4417 or command.
4418 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4419 command is properly recognised as a valid command.
4420
4421 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4422
4423 * unittests/help-doc-selftests.c: Rename to
4424 unittests/command-def-selftests.c
4425 * unittests/command-def-selftests.c (help_doc_tests): Update some
4426 comments.
4427 (command_structure_tests, traverse_command_structure): New namespace
4428 and function.
4429 (command_structure_invariants_tests): New function.
4430 (_initialize_command_def_selftests) Renamed from
4431 _initialize_help_doc_selftests, register command_structure_invariants
4432 selftest.
4433
4434 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4435
4436 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4437 an alias of 'show'.
4438
4439 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4440
4441 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4442 ada_is_fixed_point_type. Update all callers.
4443 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4444 all callers.
4445 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4446 Update all callers.
4447 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4448 print_fixed_point_type. Update all callers.
4449 * ada-valprint.c (ada_value_print_num): Replace call to
4450 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4451
4452 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4453
4454 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4455 processors.
4456 (cpu_supports_bts): Add CV_AMD case.
4457
4458 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4459 Simon Marchi <simon.marchi@efficios.com>
4460
4461 * infrun.c (stop_all_threads): Collect multiple wait events at
4462 each pass.
4463
4464 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4465
4466 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4467 type::code instead.
4468
4469 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4470
4471 * gdbtypes.h (struct type) <code, set_code>: New methods.
4472 (TYPE_CODE): Use type::code. Change all call sites used to set
4473 the code to use type::set_code instead.
4474
4475 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4476 Tom de Vries <tdevries@suse.de>
4477 Pedro Alves <palves@redhat.com>
4478
4479 PR threads/25478
4480 * infrun.c (stop_all_threads): Do NOT ignore
4481 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4482 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4483 received.
4484 (handle_no_resumed): Remove code handling a live inferior with no
4485 threads.
4486 * remote.c (has_single_non_exited_thread): New.
4487 (remote_target::update_thread_list): Do not delete a thread if is
4488 the last thread of the process.
4489 * thread.c (thread_select): Call delete_exited_threads instead of
4490 prune_threads.
4491
4492 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4493
4494 * infrun.c (stop_all_threads): Enable/disable thread events of all
4495 targets. Move a debug message denoting the end of the function
4496 into the SCOPED_EXIT block.
4497
4498 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4499
4500 * process-stratum-target.h: Include <set>.
4501 (all_non_exited_process_targets, switch_to_target_no_thread): New
4502 function declarations.
4503 * process-stratum-target.c (all_non_exited_process_targets)
4504 (switch_to_target_no_thread): New function implementations.
4505
4506 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4507
4508 * infrun.c (handle_inferior_event): Extract out a piece of code
4509 into...
4510 (mark_non_executing_threads): ...this new function.
4511
4512 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4513
4514 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4515 use.
4516
4517 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4518
4519 * regcache.c (regcache_read_pc_protected): New function
4520 implementation that returns 0 if the PC cannot read via
4521 'regcache_read_pc'.
4522 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4523 instead of 'regcache_read_pc'.
4524 (keep_going_pass_signal): Ditto.
4525
4526 2020-05-13 Tom Tromey <tromey@adacore.com>
4527
4528 * ada-lang.c (align_value): Remove.
4529 (ada_template_to_fixed_record_type_1): Use align_up.
4530
4531 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4532
4533 * async-event.c: Update the copyright year.
4534 * async-event.h: Update the copyright year.
4535
4536 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * objfiles.h (is_addr_in_objfile,
4539 shared_objfile_contains_address_p): Return bool.
4540 * objfile.c (is_addr_in_objfile,
4541 shared_objfile_contains_address_p): Return bool.
4542
4543 2020-05-11 Tom Tromey <tromey@adacore.com>
4544
4545 * cli/cli-cmds.c (info_command): Restore.
4546 (_initialize_cli_cmds): Use add_prefix_command for "info".
4547 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4548
4549 2020-05-11 Tom Tromey <tromey@adacore.com>
4550
4551 * ada-lang.c (ada_value_primitive_field): Now public.
4552 * ada-lang.h (ada_value_primitive_field): Declare.
4553 * ada-valprint.c (print_field_values): Use
4554 ada_value_primitive_field for wrapper fields.
4555
4556 2020-05-11 Tom de Vries <tdevries@suse.de>
4557
4558 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4559 MODULE_DOMAIN.
4560
4561 2020-05-11 Tom de Vries <tdevries@suse.de>
4562
4563 PR symtab/25941
4564 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4565 with length 0, if not gdb-produced.
4566 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4567
4568 2020-05-09 Tom de Vries <tdevries@suse.de>
4569
4570 PR gdb/25955
4571 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4572 calculation.
4573
4574 2020-05-09 Tom Tromey <tom@tromey.com>
4575
4576 * top.c (server_command): Now bool.
4577 * top.h (server_command): Now bool.
4578
4579 2020-05-08 Tom Tromey <tromey@adacore.com>
4580
4581 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4582 already being processed.
4583
4584 2020-05-08 Tom Tromey <tom@tromey.com>
4585
4586 * printcmd.c (struct display) <next>: Remove.
4587 <display>: New constructor.
4588 <exp_string>: Now a std::string.
4589 <enabled_p>: Now a bool.
4590 (display_number): Move definition earlier.
4591 (displays): Rename from display_chain. Now a std::vector.
4592 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4593 (display_command): Update.
4594 (do_one_display, disable_display)
4595 (enable_disable_display_command, do_enable_disable_display):
4596 Update.
4597 (free_display): Remove.
4598 (clear_displays): Rewrite.
4599 (delete_display): Update.
4600 (map_display_numbers): Use function_view. Remove "data"
4601 parameter. Update.
4602 (do_delete_display): Remove.
4603 (undisplay_command): Update.
4604 (do_one_display, do_displays, disable_display)
4605 (info_display_command): Update.
4606 (do_enable_disable_display): Remove.
4607 (enable_disable_display_command)
4608 (clear_dangling_display_expressions): Update.
4609
4610 2020-05-08 Tom Tromey <tom@tromey.com>
4611
4612 * symtab.c (set_symbol_cache_size)
4613 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4614 (maintenance_print_symbol_cache_statistics): Update.
4615 * symmisc.c (print_symbol_bcache_statistics)
4616 (print_objfile_statistics, maintenance_print_objfiles)
4617 (maintenance_info_symtabs, maintenance_check_symtabs)
4618 (maintenance_expand_symtabs, maintenance_info_line_tables):
4619 Update.
4620 * symfile-debug.c (set_debug_symfile): Update.
4621 * source.c (forget_cached_source_info): Update.
4622 * python/python.c (gdbpy_progspaces): Update.
4623 * psymtab.c (maintenance_info_psymtabs): Update.
4624 * probe.c (parse_probes): Update.
4625 * linespec.c (iterate_over_all_matching_symtabs)
4626 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4627 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4628 * exec.c (exec_target::close): Update.
4629 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4630 * breakpoint.c (print_one_breakpoint_location)
4631 (create_longjmp_master_breakpoint)
4632 (create_std_terminate_master_breakpoint): Update.
4633 * progspace.c (program_spaces): Now a std::vector.
4634 (maybe_new_address_space): Update.
4635 (add_program_space): Remove.
4636 (program_space::program_space): Update.
4637 (remove_program_space): Update.
4638 (number_of_program_spaces): Remove.
4639 (print_program_space, update_address_spaces): Update.
4640 * progspace.h (program_spaces): Change type.
4641 (ALL_PSPACES): Remove.
4642 (number_of_program_spaces): Don't declare.
4643 (struct program_space) <next>: Remove.
4644
4645 2020-05-08 Tom Tromey <tom@tromey.com>
4646
4647 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4648 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4649 (enable_break): Update.
4650 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4651 (frv_fdpic_find_canonical_descriptor): Update.
4652 (frv_fetch_objfile_link_map): Update.
4653 * progspace.c (program_space::free_all_objfiles): Update.
4654 (program_space::solibs): New method.
4655 * progspace.h (struct program_space) <solibs>: New method.
4656 * solist.h (master_so_list): Don't declare.
4657 (ALL_SO_LIBS): Remove.
4658 * solib.h (so_list_head): Remove.
4659 (update_solib_list): Update comment.
4660 * solib.c (master_so_list): Remove.
4661 (solib_used, update_solib_list, solib_add)
4662 (info_sharedlibrary_command, clear_solib)
4663 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4664
4665 2020-05-08 Tom Tromey <tom@tromey.com>
4666
4667 * extension.c (extension_languages): Now a std::array.
4668 (ALL_EXTENSION_LANGUAGES): Remove.
4669 (get_ext_lang_defn, get_ext_lang_of_file)
4670 (eval_ext_lang_from_control_command): Update.
4671 (finish_ext_lang_initialization)
4672 (auto_load_ext_lang_scripts_for_objfile)
4673 (ext_lang_type_printers::ext_lang_type_printers)
4674 (apply_ext_lang_type_printers)
4675 (ext_lang_type_printers::~ext_lang_type_printers)
4676 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4677 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4678 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4679 (get_matching_xmethod_workers, ext_lang_colorize)
4680 (ext_lang_before_prompt): Update.
4681 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4682
4683 2020-05-08 Tom Tromey <tom@tromey.com>
4684
4685 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4686 overload.
4687 <swap_string, m_string>: Remove.
4688 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4689 Update.
4690 * stabsread.c (define_symbol, read_type): Update.
4691 * linespec.c (find_linespec_symbols): Update.
4692 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4693 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4694 * dbxread.c (read_dbx_symtab): Update.
4695 * cp-support.h (cp_canonicalize_string_full)
4696 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4697 Return unique_xmalloc_ptr.
4698 * cp-support.c (inspect_type): Update.
4699 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4700 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4701 Likewise.
4702 * c-typeprint.c (print_name_maybe_canonical): Update.
4703 * break-catch-throw.c (check_status_exception_catchpoint):
4704 Update.
4705
4706 2020-05-08 Tom de Vries <tdevries@suse.de>
4707
4708 * infrun.c (follow_fork): Copy current_line and current_symtab to
4709 child thread.
4710
4711 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4712
4713 * async-event.c (struct async_signal_handler, struct
4714 async_event_handler): Reformat, remove typedef.
4715
4716 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4717
4718 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4719 access thistype->main_type->dyn_prop_list directly.
4720
4721 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4722
4723 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4724 (remove_dyn_prop): Remove. Update all users to use
4725 type::remove_dyn_prop.
4726 * gdbtypes.c (remove_dyn_prop): Rename to...
4727 (type::remove_dyn_prop): ... this.
4728
4729 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4730
4731 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4732 (add_dyn_prop): Remove. Update all users to use
4733 type::add_dyn_prop.
4734 * gdbtypes.c (add_dyn_prop): Rename to...
4735 (type::add_dyn_prop): ... this.
4736
4737 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
4738
4739 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4740 (get_dyn_prop): Remove. Update all users to use
4741 type::dyn_prop.
4742 * gdbtypes.c (get_dyn_prop): Rename to...
4743 (type::dyn_prop): ... this.
4744
4745 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4748
4749 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
4750
4751 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
4752 instruction, skip it if it's there.
4753
4754 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
4755
4756 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
4757
4758 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
4759
4760 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
4761 * gdbtypes.c (recursive_dump_type): Remove use of
4762 TYPE_INCOMPLETE.
4763
4764 2020-05-03 Tom Tromey <tom@tromey.com>
4765
4766 * breakpoint.c (catch_command, tcatch_command): Remove.
4767 (_initialize_breakpoint): Use add_basic_prefix_cmd,
4768 add_show_prefix_cmd.
4769 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
4770 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
4771 Remove.
4772 (add_internal_problem_command): Use add_basic_prefix_cmd,
4773 add_show_prefix_cmd.
4774 * mips-tdep.c (set_mipsfpu_command): Remove.
4775 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
4776 * dwarf2/index-cache.c (set_index_cache_command): Remove.
4777 (_initialize_index_cache): Use add_basic_prefix_cmd.
4778 * memattr.c (dummy_cmd): Remove.
4779 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
4780 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
4781 (_initialize_tui_win): Use add_basic_prefix_cmd,
4782 add_show_prefix_cmd.
4783 * cli/cli-logging.c (set_logging_command): Remove.
4784 (_initialize_cli_logging): Use add_basic_prefix_cmd,
4785 add_show_prefix_cmd.
4786 (show_logging_command): Remove.
4787 * target.c (target_command): Remove.
4788 (add_target): Use add_basic_prefix_cmd.
4789
4790 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
4791
4792 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
4793
4794 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4795
4796 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
4797 info_command.
4798
4799 2020-04-30 Kamil Rytarowski <n54@gmx.com>
4800
4801 * nbsd-nat.c (nbsd_enable_proc_events)
4802 (nbsd_nat_target::post_startup_inferior): Add.
4803 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
4804 (nbsd_nat_target::update_thread_list): Rewrite.
4805 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
4806 "PTRACE_LWP_CREATE".
4807 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
4808
4809 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4810
4811 * stack.c (_initialize_stack): Remove duplicated creation
4812 of "frame" command and "f" alias.
4813
4814 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4815
4816 PR gdb/18706
4817 * gdbtypes.c (check_typedef): Calculate size of array of
4818 stubbed type.
4819
4820 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
4821
4822 PR gdb/15559
4823 * i386-tdep.c (i386_push_dummy_call): Call
4824 i386_thiscall_push_dummy_call.
4825 (i386_thiscall_push_dummy_call): New function.
4826 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
4827 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
4828 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
4829
4830 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4831
4832 * gdbarch.sh (do_read): Add shellcheck disable directive for
4833 warning SC2162.
4834
4835 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4836
4837 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
4838 "referenced but not assigned" warning.
4839
4840 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4841
4842 * gdbarch.sh: Remove code that sets fallbackdefault.
4843
4844 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4845
4846 * gdbarch.sh: Use shell operators && and || instead of
4847 -a and -o.
4848
4849 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4850
4851 * gdbarch.sh: Use $(...) instead of `...`.
4852
4853 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4854
4855 * gdbarch.sh: Use double quotes around variables.
4856
4857 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * gdbarch.sh: Use %s with printf, instead of variables in the
4860 format string.
4861
4862 2020-04-29 Tom Tromey <tromey@adacore.com>
4863
4864 PR ada/25875:
4865 * dwarf2/read.c (update_enumeration_type_from_children): Compute
4866 type fields here.
4867 (read_enumeration_type): Call
4868 update_enumeration_type_from_children later. Update comments.
4869 (process_enumeration_scope): Don't create type fields.
4870
4871 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4872
4873 * nbsd-tdep.c: Include "xml-syscall.h".
4874 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
4875
4876 2020-04-29 Kamil Rytarowski <n54@gmx.com>
4877
4878 * nbsd-nat.c: Include "sys/wait.h".
4879 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
4880 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
4881 (nbsd_nat_target::remove_exec_catchpoint)
4882 (nbsd_nat_target::set_syscall_catchpoint): Add.
4883 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
4884 (nbsd_nat_target::insert_exec_catchpoint)
4885 (nbsd_nat_target::remove_exec_catchpoint)
4886 (nbsd_nat_target::set_syscall_catchpoint): Add.
4887 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
4888 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
4889 `nbsd_get_syscall_number'.
4890
4891 2020-04-29 Tom Tromey <tom@tromey.com>
4892
4893 * stack.c (print_block_frame_labels): Remove.
4894
4895 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
4896
4897 PR gdb/17320
4898 * ada-valprint.c (val_print_packed_array_elements): Move array
4899 end bracket to new line.
4900 (ada_val_print_string): Remove extra spaces before first array
4901 element.
4902 * c-valprint.c (c_value_print_array): Likewise.
4903 * m2-valprint.c (m2_print_array_contents): Likewise.
4904 (m2_value_print_inner): Likewise.
4905 * p-valprint.c (pascal_value_print_inner): Likewise.
4906 * valprint.c (generic_val_print_array): Likewise.
4907 (value_print_array_elements): Move first array element and array
4908 end bracket to new line.
4909
4910 2020-04-29 Tom de Vries <tdevries@suse.de>
4911
4912 PR symtab/25889
4913 * linespec.c (find_method): Fix ix calculation.
4914
4915 2020-04-28 Kamil Rytarowski <n54@gmx.com>
4916
4917 * syscalls/update-netbsd.sh: New file.
4918 * syscalls/netbsd.xml: Regenerate.
4919 * data-directory/Makefile.in: Register `netbsd.xml' in
4920 `SYSCALLS_FILES'.
4921
4922 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4923
4924 * syscalls/update-freebsd.sh: Add double quotes.
4925
4926 2020-04-28 Tom Tromey <tom@tromey.com>
4927
4928 * NEWS: Update.
4929 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
4930 (cmdpy_init): Allow class_tui.
4931
4932 2020-04-28 Mark Williams <mark@myosotissp.com>
4933
4934 PR gdb/24480
4935 * dwarf2read.c: Add missing assingments to list_in_scope when
4936 start_symtab was already called.
4937
4938 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
4939
4940 PR gdb/25881
4941 * dwarf2/read.c (offset_map_type): Use
4942 gdb:hash_enum<sect_offset> as hash function.
4943
4944 2020-04-28 Tom de Vries <tdevries@suse.de>
4945
4946 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
4947 with DW_AT_signature.
4948
4949 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
4950
4951 * configure.ac: Remove check for fs_base/gs_base in
4952 user_regs_struct.
4953 * configure: Re-generate.
4954 * config.in: Re-generate.
4955 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
4956 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
4957 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
4958
4959 2020-04-27 Luis Machado <luis.machado@linaro.org>
4960
4961 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
4962 problematic inline frame unwinding situation.
4963 * frame.c (frame_id_computed_p): New function.
4964 * frame.h (frame_id_computed_p): New prototype.
4965
4966 2020-04-26 Tom Tromey <tom@tromey.com>
4967
4968 * command.h (enum command_class) <class_pseudo>: Remove.
4969
4970 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4971
4972 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
4973 and whitespace.
4974
4975 2020-04-25 Kamil Rytarowski <n54@gmx.com>
4976
4977 * inf-ptrace.c (inf_ptrace_target::wait): Remove
4978 `PT_GET_PROCESS_STATE' block.
4979
4980 2020-04-24 Tom Tromey <tom@tromey.com>
4981
4982 * symtab.h (symbol_get_demangled_name): Don't declare.
4983 * symtab.c (symbol_get_demangled_name): Remove.
4984 (general_symbol_info::natural_name)
4985 (general_symbol_info::demangled_name): Update.
4986
4987 2020-04-24 Tom Tromey <tom@tromey.com>
4988
4989 PR rust/25025:
4990 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
4991
4992 2020-04-24 Tom Tromey <tom@tromey.com>
4993
4994 PR symtab/12707:
4995 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
4996 exists.
4997 (new_symbol): Likewise.
4998 * compile/compile-object-load.c (get_out_value_type): Use
4999 symbol_matches_search_name.
5000
5001 2020-04-24 Tom Tromey <tom@tromey.com>
5002
5003 * dwarf2/read.c (add_partial_symbol): Do not call
5004 compute_and_set_names.
5005
5006 2020-04-24 Tom Tromey <tom@tromey.com>
5007
5008 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5009 overload.
5010
5011 2020-04-24 Tom Tromey <tom@tromey.com>
5012
5013 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5014 (add_psymbol_to_list): New overload. Make old overload call new
5015 one.
5016 * psympriv.h (add_psymbol_to_list): New overload.
5017
5018 2020-04-24 Tom Tromey <tom@tromey.com>
5019
5020 * dwarf2/read.c (partial_die_info::read) <case
5021 DW_AT_linkage_name>: Use value_as_string.
5022 (dwarf2_string_attr): Use value_as_string.
5023 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5024 method.
5025 * dwarf2/attribute.c (attribute::value_as_string): New method.
5026
5027 2020-04-24 Tom Tromey <tom@tromey.com>
5028
5029 * symtab.c (general_symbol_info::natural_name)
5030 (general_symbol_info::demangled_name): Check for language_rust.
5031
5032 2020-04-24 Tom Tromey <tom@tromey.com>
5033
5034 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5035 (dwarf2_physname): ... from here.
5036 (partial_die_info::read): Add Rust "{" hack.
5037
5038 2020-04-24 Tom Tromey <tom@tromey.com>
5039
5040 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5041 method.
5042 (symbol_set_demangled_name): Don't declare.
5043 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5044 symbol_set_demangled_name.
5045 (general_symbol_info::set_language)
5046 (general_symbol_info::compute_and_set_names): Update.
5047 * minsyms.c (minimal_symbol_reader::install): Update.
5048 * dwarf2/read.c (new_symbol): Update.
5049
5050 2020-04-24 Tom Tromey <tromey@adacore.com>
5051
5052 PR python/23662:
5053 * python/py-type.c (convert_field): Handle
5054 FIELD_LOC_KIND_DWARF_BLOCK.
5055 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5056 (typy_get_dynamic): Nw function.
5057 (type_object_getset): Add "dynamic".
5058 * NEWS: Add entry.
5059
5060 2020-04-24 Tom Tromey <tromey@adacore.com>
5061
5062 * ada-typeprint.c (print_choices, print_variant_part)
5063 (print_record_field_types_dynamic): New functions.
5064 (print_record_field_types): Use print_record_field_types_dynamic.
5065
5066 2020-04-24 Tom Tromey <tromey@adacore.com>
5067
5068 * dwarf2/read.c (handle_data_member_location): New overload.
5069 (dwarf2_add_field): Use it.
5070 (decode_locdesc): Add "computed" parameter. Update comment.
5071 * gdbtypes.c (is_dynamic_type_internal): Also look for
5072 FIELD_LOC_KIND_DWARF_BLOCK.
5073 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5074 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5075 virtual base classes.
5076 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5077 FIELD_LOC_KIND_DWARF_BLOCK.
5078
5079 2020-04-24 Tom Tromey <tromey@adacore.com>
5080
5081 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5082 * gdbtypes.c (is_dynamic_type_internal): Check
5083 TYPE_HAS_DYNAMIC_LENGTH.
5084 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5085 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5086 New macros.
5087 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5088 constant.
5089
5090 2020-04-24 Tom Tromey <tromey@adacore.com>
5091
5092 * dwarf2/read.c (struct variant_field): Rewrite.
5093 (struct variant_part_builder): New.
5094 (struct nextfield): Remove "variant" field. Add "offset".
5095 (struct field_info): Add "current_variant_part" and
5096 "variant_parts".
5097 (alloc_discriminant_info): Remove.
5098 (alloc_rust_variant): New function.
5099 (quirk_rust_enum): Update.
5100 (dwarf2_add_field): Set "offset" member. Don't handle
5101 DW_TAG_variant_part.
5102 (offset_map_type): New typedef.
5103 (convert_variant_range, create_one_variant)
5104 (create_one_variant_part, create_variant_parts)
5105 (add_variant_property): New functions.
5106 (dwarf2_attach_fields_to_type): Call add_variant_property.
5107 (read_structure_type): Don't handle DW_TAG_variant_part.
5108 (handle_variant_part, handle_variant): New functions.
5109 (handle_struct_member_die): Use them.
5110 (process_structure_scope): Don't handle variant parts.
5111 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5112 (struct discriminant_info): Remove.
5113 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5114 (struct main_type) <flag_discriminated_union>: Remove.
5115 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5116 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5117 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5118 Update.
5119 * valops.c (value_union_variant): Remove.
5120 * value.h (value_union_variant): Don't declare.
5121
5122 2020-04-24 Tom Tromey <tromey@adacore.com>
5123
5124 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5125 (ada_value_primitive_packed_val): Update.
5126 * ada-valprint.c (ada_value_print_1): Update.
5127 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5128 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5129 just an address. Use evaluate_for_locexpr_baton.
5130 (dwarf2_evaluate_property): Update.
5131 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5132 array_view.
5133 * findvar.c (default_read_var_value): Update.
5134 * gdbtypes.c (compute_variant_fields_inner)
5135 (resolve_dynamic_type_internal): Update.
5136 (resolve_dynamic_type): Change type of valaddr parameter.
5137 * gdbtypes.h (resolve_dynamic_type): Update.
5138 * valarith.c (value_subscripted_rvalue): Update.
5139 * value.c (value_from_contents_and_address): Update.
5140
5141 2020-04-24 Tom Tromey <tromey@adacore.com>
5142
5143 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5144 "push_initial_value" parameter.
5145 (dwarf2_evaluate_property): Likewise.
5146 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5147
5148 2020-04-24 Tom Tromey <tromey@adacore.com>
5149
5150 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5151 (variant::matches, compute_variant_fields_recurse)
5152 (compute_variant_fields_inner, compute_variant_fields): New
5153 functions.
5154 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5155 Use resolved_type after type is made.
5156 (operator==): Add new cases.
5157 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5158 (struct discriminant_range, struct variant, struct variant_part):
5159 New.
5160 (union dynamic_prop_data) <variant_parts, original_type>: New
5161 members.
5162 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5163 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5164 constants.
5165 * value.c (unpack_bits_as_long): Now public.
5166 * value.h (unpack_bits_as_long): Declare.
5167
5168 2020-04-24 Tom Tromey <tromey@adacore.com>
5169
5170 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5171 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5172
5173 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5174
5175 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5176
5177 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5178
5179 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5180 (remove_fork_catchpoint, post_startup_inferior)
5181 (post_attach): Move...
5182 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5183 (remove_fork_catchpoint, post_startup_inferior)
5184 (post_attach): ...here.
5185 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5186 (remove_fork_catchpoint, post_startup_inferior)
5187 (post_attach): Move...
5188 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5189 (remove_fork_catchpoint, post_startup_inferior)
5190 (post_attach): ...here.
5191
5192 2020-04-24 Tom Tromey <tromey@adacore.com>
5193
5194 * nat/windows-nat.h (struct windows_thread_info)
5195 <pc_adjusted>: New member.
5196 * windows-nat.c (windows_fetch_one_register): Check
5197 pc_adjusted.
5198 (windows_nat_target::get_windows_debug_event)
5199 (windows_nat_target::wait): Set pc_adjusted.
5200
5201 2020-04-24 Tom de Vries <tdevries@suse.de>
5202
5203 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5204 Run gdb-add-index inside temp dir.
5205
5206 2020-04-23 Tom Tromey <tromey@adacore.com>
5207
5208 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5209 in loop.
5210
5211 2020-04-23 Luis Machado <luis.machado@linaro.org>
5212
5213 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5214 get_frame_register instead of gdbarch_unwind_pc.
5215
5216 2020-04-23 Tom de Vries <tdevries@suse.de>
5217
5218 * symtab.c (lookup_global_symbol): Prefer def over decl.
5219
5220 2020-04-23 Tom de Vries <tdevries@suse.de>
5221
5222 PR symtab/25807
5223 * block.c (best_symbol, better_symbol): Promote to external.
5224 * block.h (best_symbol, better_symbol): Declare.
5225 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5226 decl.
5227
5228 2020-04-23 Tom Tromey <tromey@adacore.com>
5229
5230 PR ada/25837:
5231 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5232 "const char *", not a "const std::string &".
5233 <name_and_matcher::operator==>: Update.
5234 * unittests/lookup_name_info-selftests.c: Change type of
5235 "result".
5236
5237 2020-04-23 Tom Tromey <tom@tromey.com>
5238
5239 * inferior.h (iterate_over_inferiors): Don't declare.
5240 * inferior.c (iterate_over_inferiors): Remove.
5241 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5242 Remove.
5243 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5244 use iterate_over_inferiors.
5245 (darwin_resume_inferior_it)
5246 (struct resume_inferior_threads_param)
5247 (darwin_resume_inferior_threads_it): Remove.
5248 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5249
5250 2020-04-23 Tom de Vries <tdevries@suse.de>
5251
5252 * blockframe.c (find_pc_partial_function): Use
5253 find_pc_sect_compunit_symtab rather than
5254 objfile->sf->qf->find_pc_sect_compunit_symtab.
5255
5256 2020-04-22 Tom de Vries <tdevries@suse.de>
5257
5258 PR symtab/25764
5259 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5260 in psymtabs.
5261
5262 2020-04-22 Tom de Vries <tdevries@suse.de>
5263
5264 PR symtab/25801
5265 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5266 symtabs.
5267
5268 2020-04-22 Tom de Vries <tdevries@suse.de>
5269
5270 PR symtab/25700
5271 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5272 CU if already created.
5273
5274 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5275
5276 * infrun.c (displaced_step_fixup): Switch to the event_thread
5277 before calling displaced_step_restore, not after.
5278
5279 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5280
5281 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5282 its inferior is not recorded by us.
5283 (record_btrace_target_open): Replace call to
5284 all_non_exited_threads () with call to current_inferior
5285 ()->non_exited_threads ().
5286 (record_btrace_target::stop_recording): Likewise.
5287 (record_btrace_target::close): Likewise.
5288 (record_btrace_target::wait): Likewise.
5289 (record_btrace_target::record_stop_replaying): Likewise.
5290
5291 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5292
5293 * btrace.c (btrace_enable): Throw an error on double enables and
5294 when enabling recording fails.
5295 (btrace_disable): Throw an error if the thread is not recorded.
5296
5297 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5298
5299 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5300 request if we do not have a thread_info.
5301
5302 2020-04-21 Tom de Vries <tdevries@suse.de>
5303
5304 PR gdb/25471
5305 * thread.c
5306 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5307 exception in get_frame_id.
5308
5309 2020-04-20 Tom Tromey <tromey@adacore.com>
5310
5311 * python/python.c (struct gdbpy_event): Mark move constructor as
5312 noexcept.
5313 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5314 constructor as noexcept.
5315 * completer.h (struct completion_result): Mark move constructor as
5316 noexcept.
5317 * completer.c (completion_result::completion_result): Use
5318 initialization style. Don't call reset_match_list.
5319
5320 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5321
5322 * MAINTAINERS (Write After Approval): Add myself.
5323
5324 2020-04-18 Tom Tromey <tom@tromey.com>
5325
5326 * windows-tdep.c (init_w32_command_list)
5327 (w32_prefix_command_valid): Restore.
5328 (_initialize_windows_tdep): Call init_w32_command_list.
5329
5330 2020-04-18 Tom Tromey <tom@tromey.com>
5331
5332 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5333 * value.c (value_fn_field): Update.
5334 * valops.c (find_function_in_inferior)
5335 (value_allocate_space_in_inferior): Update.
5336 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5337 Update.
5338 * tui/tui-source.c (tui_source_window::set_contents): Update.
5339 * symtab.c (lookup_global_or_static_symbol)
5340 (find_function_start_sal_1, skip_prologue_sal)
5341 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5342 * symmisc.c (dump_msymbols, dump_symtab_1)
5343 (maintenance_print_one_line_table): Update.
5344 * symfile.c (init_entry_point_info, section_is_mapped)
5345 (list_overlays_command, simple_read_overlay_table)
5346 (simple_overlay_update_1): Update.
5347 * stap-probe.c (handle_stap_probe): Update.
5348 * stabsread.c (dbx_init_float_type, define_symbol)
5349 (read_one_struct_field, read_enum_type, read_range_type): Update.
5350 * source.c (info_line_command): Update.
5351 * python/python.c (gdbpy_source_objfile_script)
5352 (gdbpy_execute_objfile_script): Update.
5353 * python/py-type.c (save_objfile_types): Update.
5354 * python/py-objfile.c (py_free_objfile): Update.
5355 * python/py-inferior.c (python_new_objfile): Update.
5356 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5357 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5358 (maintenance_check_psymtabs): Update.
5359 * printcmd.c (info_address_command): Update.
5360 * objfiles.h (struct objfile) <arch>: New method, from
5361 get_objfile_arch.
5362 (get_objfile_arch): Don't declare.
5363 * objfiles.c (get_objfile_arch): Remove.
5364 (filter_overlapping_sections): Update.
5365 * minsyms.c (msymbol_is_function): Update.
5366 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5367 (output_nondebug_symbol): Update.
5368 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5369 (mdebug_expand_psymtab): Update.
5370 * machoread.c (macho_add_oso_symfile): Update.
5371 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5372 Update.
5373 * linux-fork.c (checkpoint_command): Update.
5374 * linespec.c (convert_linespec_to_sals): Update.
5375 * jit.c (finalize_symtab): Update.
5376 * infrun.c (insert_exception_resume_from_probe): Update.
5377 * ia64-tdep.c (ia64_find_unwind_table): Update.
5378 * hppa-tdep.c (internalize_unwinds): Update.
5379 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5380 Update.
5381 * gcore.c (call_target_sbrk): Update.
5382 * elfread.c (record_minimal_symbol, elf_symtab_read)
5383 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5384 (elf_gnu_ifunc_resolve_by_got): Update.
5385 * dwarf2/read.c (create_addrmap_from_index)
5386 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5387 (read_debug_names_from_section)
5388 (process_psymtab_comp_unit_reader, add_partial_symbol)
5389 (add_partial_subprogram, process_full_comp_unit)
5390 (read_file_scope, read_func_scope, read_lexical_block_scope)
5391 (read_call_site_scope, dwarf2_ranges_read)
5392 (dwarf2_record_block_ranges, dwarf2_add_field)
5393 (mark_common_block_symbol_computed, read_tag_pointer_type)
5394 (read_tag_string_type, dwarf2_init_float_type)
5395 (dwarf2_init_complex_target_type, read_base_type)
5396 (partial_die_info::read, partial_die_info::read)
5397 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5398 (dwarf2_fetch_die_loc_sect_off): Update.
5399 * dwarf2/loc.c (dwarf2_find_location_expression)
5400 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5401 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5402 (dwarf2_loc_desc_get_symbol_read_needs)
5403 (locexpr_describe_location_piece, locexpr_describe_location_1)
5404 (loclist_describe_location): Update.
5405 * dwarf2/index-write.c (write_debug_names): Update.
5406 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5407 * dtrace-probe.c (dtrace_process_dof): Update.
5408 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5409 (process_one_symbol): Update.
5410 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5411 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5412 (coff_read_enum_type): Update.
5413 * cli/cli-cmds.c (edit_command, list_command): Update.
5414 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5415 * breakpoint.c (create_overlay_event_breakpoint)
5416 (create_longjmp_master_breakpoint)
5417 (create_std_terminate_master_breakpoint)
5418 (create_exception_master_breakpoint, get_sal_arch): Update.
5419 * block.c (block_gdbarch): Update.
5420 * annotate.c (annotate_source_line): Update.
5421
5422 2020-04-17 Tom Tromey <tromey@adacore.com>
5423
5424 * auto-load.c (show_auto_load_cmd): Remove.
5425 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5426 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5427 (maintenance_print_arc_command): Remove.
5428 * tui/tui-win.c (tui_command): Remove.
5429 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5430 * tui/tui-layout.c (tui_layout_command): Remove.
5431 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5432 * python/python.c (user_set_python, user_show_python): Remove.
5433 (_initialize_python): Use add_basic_prefix_cmd,
5434 add_show_prefix_cmd.
5435 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5436 (install_gdb_commands): Use add_basic_prefix_cmd,
5437 add_show_prefix_cmd.
5438 (info_guile_command): Remove.
5439 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5440 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5441 add_show_prefix_cmd.
5442 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5443 Remove do_set and do_show parameters.
5444 * cli/cli-style.c (set_style, show_style): Remove.
5445 (_initialize_cli_style): Use add_basic_prefix_cmd,
5446 add_show_prefix_cmd.
5447 (cli_style_option::add_setshow_commands): Remove do_set and
5448 do_show parameters.
5449 (cli_style_option::add_setshow_commands): Use
5450 add_basic_prefix_cmd, add_show_prefix_cmd.
5451 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5452 (set_style_name): Remove.
5453 * cli/cli-dump.c (dump_command, append_command): Remove.
5454 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5455 (tekhex_dump_command, binary_dump_command)
5456 (binary_append_command): Remove.
5457 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5458 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5459 (init_w32_command_list): Remove; move into ...
5460 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5461 * valprint.c (set_print, show_print, set_print_raw)
5462 (show_print_raw): Remove.
5463 (_initialize_valprint): Use add_basic_prefix_cmd,
5464 add_show_prefix_cmd.
5465 * typeprint.c (set_print_type, show_print_type): Remove.
5466 (_initialize_typeprint): Use add_basic_prefix_cmd,
5467 add_show_prefix_cmd.
5468 * record.c (set_record_command, show_record_command): Remove.
5469 (_initialize_record): Use add_basic_prefix_cmd,
5470 add_show_prefix_cmd.
5471 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5472 add_show_prefix_cmd.
5473 (info_command, show_command, set_debug, show_debug): Remove.
5474 * top.h (set_history, show_history): Don't declare.
5475 * top.c (set_history, show_history): Remove.
5476 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5477 (unset_tdesc_cmd): Remove.
5478 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5479 add_show_prefix_cmd.
5480 * symtab.c (info_module_command): Remove.
5481 (_initialize_symtab): Use add_basic_prefix_cmd.
5482 * symfile.c (overlay_command): Remove.
5483 (_initialize_symfile): Use add_basic_prefix_cmd.
5484 * sparc64-tdep.c (info_adi_command): Remove.
5485 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5486 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5487 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5488 add_show_prefix_cmd.
5489 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5490 (_initialize_serial): Use add_basic_prefix_cmd,
5491 add_show_prefix_cmd.
5492 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5493 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5494 add_show_prefix_cmd.
5495 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5496 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5497 add_show_prefix_cmd.
5498 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5499 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5500 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5501 add_show_prefix_cmd.
5502 * remote.c (remote_command, set_remote_cmd): Remove.
5503 (_initialize_remote): Use add_basic_prefix_cmd.
5504 * record-full.c (set_record_full_command)
5505 (show_record_full_command): Remove.
5506 (_initialize_record_full): Use add_basic_prefix_cmd,
5507 add_show_prefix_cmd.
5508 * record-btrace.c (cmd_set_record_btrace)
5509 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5510 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5511 (cmd_show_record_btrace_pt): Remove.
5512 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5513 add_show_prefix_cmd.
5514 * ravenscar-thread.c (set_ravenscar_command)
5515 (show_ravenscar_command): Remove.
5516 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5517 add_show_prefix_cmd.
5518 * mips-tdep.c (show_mips_command, set_mips_command)
5519 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5520 add_show_prefix_cmd.
5521 * maint.c (maintenance_command, maintenance_info_command)
5522 (maintenance_check_command, maintenance_print_command)
5523 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5524 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5525 add_show_prefix_cmd.
5526 (show_per_command_cmd): Remove.
5527 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5528 Remove.
5529 (maintenance_show_test_settings_cmd): Remove.
5530 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5531 add_show_prefix_cmd.
5532 * maint-test-options.c (maintenance_test_options_command):
5533 Remove.
5534 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5535 * macrocmd.c (macro_command): Remove
5536 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5537 * language.c (set_check, show_check): Remove.
5538 (_initialize_language): Use add_basic_prefix_cmd,
5539 add_show_prefix_cmd.
5540 * infcmd.c (unset_command): Remove.
5541 (_initialize_infcmd): Use add_basic_prefix_cmd.
5542 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5543 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5544 add_show_prefix_cmd.
5545 * go32-nat.c (go32_info_dos_command): Remove.
5546 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5547 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5548 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5549 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5550 (_initialize_frame): Use add_basic_prefix_cmd,
5551 add_show_prefix_cmd.
5552 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5553 (_initialize_dcache): Use add_basic_prefix_cmd,
5554 add_show_prefix_cmd.
5555 * cp-support.c (maint_cplus_command): Remove.
5556 (_initialize_cp_support): Use add_basic_prefix_cmd.
5557 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5558 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5559 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5560 add_basic_prefix_cmd, add_show_prefix_cmd.
5561 * breakpoint.c (save_command): Remove.
5562 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5563 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5564 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5565 add_show_prefix_cmd.
5566 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5567 (set_ada_command, show_ada_command): Remove.
5568 (_initialize_ada_language): Use add_basic_prefix_cmd,
5569 add_show_prefix_cmd.
5570 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5571
5572 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5573
5574 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5575 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5576
5577 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5578
5579 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5580 warning messages.
5581
5582 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5583
5584 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5585 import table is not at beginning of .idata section.
5586
5587 2020-04-16 Pedro Alves <palves@redhat.com>
5588
5589 * inferior.c (delete_inferior): Use delete operator directly
5590 instead of delete_program_space.
5591 * progspace.c (add_program_space): New, factored out from
5592 program_space::program_space.
5593 (remove_program_space): New, factored out from
5594 delete_program_space.
5595 (program_space::program_space): Remove intro comment. Rewrite.
5596 (program_space::~program_space): Remove intro comment. Call
5597 remove_program_space.
5598 (delete_program_space): Delete.
5599 * progspace.h (program_space::program_space): Make explicit. Move
5600 intro comment here, adjusted.
5601 (program_space::~program_space): Move intro comment here,
5602 adjusted.
5603 (delete_program_space): Remove.
5604
5605 2020-04-16 Tom Tromey <tromey@adacore.com>
5606
5607 * windows-nat.c (windows_nat::handle_access_violation): New
5608 function.
5609 * nat/windows-nat.h (handle_access_violation): Declare.
5610 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5611 windows-nat.c. Call handle_access_violation.
5612
5613 2020-04-16 Tom de Vries <tdevries@suse.de>
5614
5615 PR symtab/25791
5616 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5617 CUs without psymtab.
5618
5619 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5620
5621 * python/python.c (do_start_initialization): Don't call
5622 PyEval_InitThreads for Python 3.9 and beyond.
5623
5624 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5625
5626 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5627 thread functions.
5628 (obsd_nat_target::wait): Likewise.
5629
5630 2020-04-15 Tom Tromey <tromey@adacore.com>
5631
5632 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5633 (DEBUG_EXCEPT): Use debug_printf.
5634
5635 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5636
5637 * completer.c (class completion_tracker::completion_hash_entry)
5638 <hash_name>: New member function.
5639 (completion_tracker::discard_completions): New callback to hash a
5640 completion_hash_entry, pass this to htab_create_alloc.
5641
5642 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5643
5644 * windows-nat.c (windows_make_so): Warn rather than stopping with
5645 an error if realpath() fails.
5646
5647 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5648
5649 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5650 (nbsd_nat_target::info_proc): Add do_status.
5651
5652 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5653 Tom de Vries <tdevries@suse.de>
5654
5655 PR symtab/25718
5656 * psympriv.h (struct partial_symtab::read_symtab)
5657 (struct partial_symtab::expand_psymtab)
5658 (struct partial_symtab::read_dependencies): Update comments.
5659 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5660 read_symtab for includer.
5661 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5662 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5663 (struct dwarf2_include_psymtab::m_readin): Remove.
5664 (struct dwarf2_include_psymtab::includer): New member function.
5665 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5666
5667 2020-04-14 Tom de Vries <tdevries@suse.de>
5668
5669 PR symtab/25720
5670 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5671 with NULL symbol_matcher and lookup_name.
5672 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5673 and lookup_name.
5674 * dwarf2/read.c (dw2_expand_symtabs_matching)
5675 (dw2_debug_names_expand_symtabs_matching): Same.
5676 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5677 Make lookup_name a pointer. Update comment.
5678 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5679 lookup_name being a pointer.
5680 * symfile.c (expand_symtabs_matching): Same.
5681 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5682 * linespec.c (iterate_over_all_matching_symtabs): Same.
5683
5684 2020-04-13 Tom Tromey <tom@tromey.com>
5685
5686 * run-on-main-thread.c: Update include.
5687 * unittests/main-thread-selftests.c: Update include.
5688 * tui/tui-win.c: Update include.
5689 * tui/tui-io.c: Update include.
5690 * tui/tui-interp.c: Update include.
5691 * tui/tui-hooks.c: Update include.
5692 * top.h: Update include.
5693 * top.c: Update include.
5694 * ser-base.c: Update include.
5695 * remote.c: Update include.
5696 * remote-notif.c: Update include.
5697 * remote-fileio.c: Update include.
5698 * record-full.c: Update include.
5699 * record-btrace.c: Update include.
5700 * python/python.c: Update include.
5701 * posix-hdep.c: Update include.
5702 * mingw-hdep.c: Update include.
5703 * mi/mi-main.c: Update include.
5704 * mi/mi-interp.c: Update include.
5705 * main.c: Update include.
5706 * linux-nat.c: Update include.
5707 * interps.c: Update include.
5708 * infrun.c: Update include.
5709 * inf-loop.c: Update include.
5710 * event-top.c: Update include.
5711 * event-loop.c: Move to ../gdbsupport/.
5712 * event-loop.h: Move to ../gdbsupport/.
5713 * async-event.h: Update include.
5714 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5715
5716 2020-04-13 Tom Tromey <tom@tromey.com>
5717
5718 * tui/tui-win.c: Include async-event.h.
5719 * remote.c: Include async-event.h.
5720 * remote-notif.c: Include async-event.h.
5721 * record-full.c: Include async-event.h.
5722 * record-btrace.c: Include async-event.h.
5723 * infrun.c: Include async-event.h.
5724 * event-top.c: Include async-event.h.
5725 * event-loop.h: Move some declarations to async-event.h.
5726 * event-loop.c: Don't include ser-event.h or top.h. Move some
5727 code to async-event.c.
5728 * async-event.h: New file.
5729 * async-event.c: New file.
5730 * Makefile.in (COMMON_SFILES): Add async-event.c.
5731 (HFILES_NO_SRCDIR): Add async-event.h.
5732
5733 2020-04-13 Tom Tromey <tom@tromey.com>
5734
5735 * utils.c (flush_streams): New function.
5736 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5737
5738 2020-04-13 Tom Tromey <tom@tromey.com>
5739
5740 * event-loop.c (handle_file_event): Use warning, not
5741 printf_unfiltered.
5742
5743 2020-04-13 Tom Tromey <tom@tromey.com>
5744
5745 * event-loop.c: Include <chrono>.
5746
5747 2020-04-13 Tom Tromey <tom@tromey.com>
5748
5749 * gdb_select.h: Move to ../gdbsupport/.
5750 * event-loop.c: Update include path.
5751 * top.c: Update include path.
5752 * ser-base.c: Update include path.
5753 * ui-file.c: Update include path.
5754 * ser-tcp.c: Update include path.
5755 * guile/scm-ports.c: Update include path.
5756 * posix-hdep.c: Update include path.
5757 * ser-unix.c: Update include path.
5758 * gdb_usleep.c: Update include path.
5759 * mingw-hdep.c: Update include path.
5760 * inflow.c: Update include path.
5761 * infrun.c: Update include path.
5762 * event-top.c: Update include path.
5763
5764 2020-04-13 Tom Tromey <tom@tromey.com>
5765
5766 * configure: Rebuild.
5767 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
5768
5769 2020-04-13 Tom Tromey <tom@tromey.com>
5770
5771 * event-loop.h (start_event_loop): Don't declare.
5772 * event-loop.c (start_event_loop): Move...
5773 * main.c (start_event_loop): ...here. Now static.
5774
5775 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
5776
5777 * MAINTAINERS: Update my email address.
5778
5779 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5780
5781 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
5782 IP_ALL.
5783
5784 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5785
5786 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
5787 (nbsd_nat_target::info_proc): Add do_cmdline.
5788
5789 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5790
5791 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
5792 (nbsd_nat_target::info_proc): Add do_cwd.
5793
5794 2020-04-12 Kamil Rytarowski <n54@gmx.com>
5795
5796 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
5797
5798 2020-04-11 Kamil Rytarowski <n54@gmx.com>
5799
5800 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
5801 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
5802 (nbsd_nat_target::info_proc): New functions.
5803 * nbsd-nat.c (kinfo_get_vmmap): New function.
5804 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
5805 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
5806 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
5807 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
5808 functions.
5809 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
5810 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
5811 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
5812 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
5813 (KINFO_VME_FLAG_GROWS_DOWN): New.
5814
5815 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
5816
5817 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
5818 bit shift.
5819
5820 2020-04-10 Tom Tromey <tromey@adacore.com>
5821
5822 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
5823
5824 2020-04-10 Tom Tromey <tromey@adacore.com>
5825
5826 * symtab.c (get_symbol_address, get_msymbol_address): Skip
5827 separate debug files.
5828
5829 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
5830
5831 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5832 Move to...
5833 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
5834 ... here.
5835 * windows-nat.c (windows_nat_target::get_windows_debug_event):
5836 Check for STATUS_WX86_BREAKPOINT.
5837 (windows_nat_target::wait): Same.
5838
5839 2020-04-10 Tom de Vries <tdevries@suse.de>
5840
5841 PR cli/25808
5842 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
5843
5844 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
5845
5846 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
5847 (Write After Approval): Remove Tom de Vries.
5848
5849 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
5850
5851 revert partially:
5852 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
5853
5854 * buildsym.c (record_line): Fix undefined behavior and preserve
5855 lines at eof.
5856
5857 2020-04-09 Kamil Rytarowski <n54@gmx.com>
5858
5859 * auxv.h (svr4_auxv_parse): New.
5860 * auxv.c (default_auxv_parse): Split into default_auxv_parse
5861 and generic_auxv_parse.
5862 (svr4_auxv_parse): Add.
5863 * obsd-tdep.c: Include "auxv.h".
5864 (obsd_auxv_parse): Remove.
5865 (obsd_init_abi): Remove comment.
5866 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
5867 from `obsd_auxv_parse' to `svr4_auxv_parse'.
5868 * nbsd-tdep.c: Include "auxv.h".
5869 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
5870
5871 2020-04-08 Tom Tromey <tromey@adacore.com>
5872
5873 * nat/windows-nat.h (last_wait_event): Don't declare.
5874 (wait_for_debug_event): Update comment.
5875 * nat/windows-nat.c (last_wait_event): Now static.
5876
5877 2020-04-08 Tom Tromey <tromey@adacore.com>
5878
5879 * windows-nat.c (wait_for_debug_event): Move to
5880 nat/windows-nat.c.
5881 * nat/windows-nat.h (wait_for_debug_event): Declare.
5882 * nat/windows-nat.c (wait_for_debug_event): Move from
5883 windows-nat.c. No longer static.
5884
5885 2020-04-08 Tom Tromey <tromey@adacore.com>
5886
5887 * windows-nat.c (get_windows_debug_event): Use
5888 fetch_pending_stop.
5889 * nat/windows-nat.h (fetch_pending_stop): Declare.
5890 * nat/windows-nat.c (fetch_pending_stop): New function.
5891
5892 2020-04-08 Tom Tromey <tromey@adacore.com>
5893
5894 * windows-nat.c (windows_continue): Use matching_pending_stop and
5895 continue_last_debug_event.
5896 * nat/windows-nat.h (matching_pending_stop)
5897 (continue_last_debug_event): Declare.
5898 * nat/windows-nat.c (DEBUG_EVENTS): New define.
5899 (matching_pending_stop, continue_last_debug_event): New
5900 functions.
5901
5902 2020-04-08 Tom Tromey <tromey@adacore.com>
5903
5904 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
5905 (handle_exception_result): Move to nat/windows-nat.h.
5906 (DEBUG_EXCEPTION_SIMPLE): Remove.
5907 (windows_nat::handle_ms_vc_exception): New function.
5908 (handle_exception): Move to nat/windows-nat.c.
5909 (get_windows_debug_event): Update.
5910 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
5911 nat/windows-nat.c.
5912 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
5913 (handle_exception_result): Move from windows-nat.c.
5914 (handle_exception): Declare.
5915 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
5916 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
5917 windows-nat.c.
5918
5919 2020-04-08 Tom Tromey <tromey@adacore.com>
5920
5921 * windows-nat.c (exception_count, event_count): Remove.
5922 (handle_exception, get_windows_debug_event)
5923 (do_initial_windows_stuff): Update.
5924
5925 2020-04-08 Tom Tromey <tromey@adacore.com>
5926
5927 * windows-nat.c (windows_nat::handle_load_dll)
5928 (windows_nat::handle_unload_dll): Rename. No longer static.
5929 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
5930 Declare.
5931
5932 2020-04-08 Tom Tromey <tromey@adacore.com>
5933
5934 * complaints.h (stop_whining): Declare at top-level.
5935 (complaint): Don't declare stop_whining.
5936
5937 2020-04-08 Tom Tromey <tromey@adacore.com>
5938
5939 * windows-nat.c (windows_nat::handle_output_debug_string):
5940 Rename. No longer static.
5941 * nat/windows-nat.h (handle_output_debug_string): Declare.
5942
5943 2020-04-08 Tom Tromey <tromey@adacore.com>
5944
5945 * windows-nat.c (current_process_handle, current_process_id)
5946 (main_thread_id, last_sig, current_event, last_wait_event)
5947 (current_windows_thread, desired_stop_thread_id, pending_stops)
5948 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
5949 (display_selectors, fake_create_process)
5950 (get_windows_debug_event): Update.
5951 * nat/windows-nat.h (current_process_handle, current_process_id)
5952 (main_thread_id, last_sig, current_event, last_wait_event)
5953 (current_windows_thread, desired_stop_thread_id, pending_stops)
5954 (struct pending_stop, siginfo_er): Move from windows-nat.c.
5955 * nat/windows-nat.c (current_process_handle, current_process_id)
5956 (main_thread_id, last_sig, current_event, last_wait_event)
5957 (current_windows_thread, desired_stop_thread_id, pending_stops)
5958 (siginfo_er): New globals. Move from windows-nat.c.
5959
5960 2020-04-08 Tom Tromey <tromey@adacore.com>
5961
5962 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
5963 (handle_load_dll): Update.
5964 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
5965
5966 2020-04-08 Tom Tromey <tromey@adacore.com>
5967
5968 * windows-nat.c (enum thread_disposition_type): Move to
5969 nat/windows-nat.h.
5970 (windows_nat::thread_rec): Rename from thread_rec. No longer
5971 static.
5972 (windows_add_thread, windows_nat_target::fetch_registers)
5973 (windows_nat_target::store_registers, handle_exception)
5974 (windows_nat_target::resume, get_windows_debug_event)
5975 (windows_nat_target::get_tib_address)
5976 (windows_nat_target::thread_name)
5977 (windows_nat_target::thread_alive): Update.
5978 * nat/windows-nat.h (enum thread_disposition_type): Move from
5979 windows-nat.c.
5980 (thread_rec): Declare.
5981
5982 2020-04-08 Tom Tromey <tromey@adacore.com>
5983
5984 * windows-nat.c: Add "using namespace".
5985 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
5986 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
5987
5988 2020-04-08 Tom Tromey <tromey@adacore.com>
5989
5990 * nat/windows-nat.h (struct windows_thread_info): Declare
5991 destructor.
5992 * nat/windows-nat.c (~windows_thread_info): New.
5993
5994 2020-04-08 Tom Tromey <tromey@adacore.com>
5995
5996 PR gdb/22992
5997 * windows-nat.c (current_event): Update comment.
5998 (last_wait_event, desired_stop_thread_id): New globals.
5999 (struct pending_stop): New.
6000 (pending_stops): New global.
6001 (windows_nat_target) <stopped_by_sw_breakpoint>
6002 <supports_stopped_by_sw_breakpoint>: New methods.
6003 (windows_fetch_one_register): Add assertions. Adjust PC.
6004 (windows_continue): Handle pending stops. Suspend other threads
6005 when stepping. Use last_wait_event
6006 (wait_for_debug_event): New function.
6007 (get_windows_debug_event): Use wait_for_debug_event. Handle
6008 pending stops. Queue spurious stops.
6009 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6010 (windows_nat_target::kill): Use wait_for_debug_event.
6011 * nat/windows-nat.h (struct windows_thread_info)
6012 <stopped_at_software_breakpoint>: New field.
6013 * nat/windows-nat.c (windows_thread_info::resume): Clear
6014 stopped_at_software_breakpoint.
6015
6016 2020-04-08 Tom Tromey <tromey@adacore.com>
6017
6018 * windows-nat.c (enum thread_disposition_type): New.
6019 (thread_rec): Replace "get_context" parameter with "disposition";
6020 change type.
6021 (windows_add_thread, windows_nat_target::fetch_registers)
6022 (windows_nat_target::store_registers, handle_exception)
6023 (windows_nat_target::resume, get_windows_debug_event)
6024 (windows_nat_target::get_tib_address)
6025 (windows_nat_target::thread_name)
6026 (windows_nat_target::thread_alive): Update.
6027
6028 2020-04-08 Tom Tromey <tromey@adacore.com>
6029
6030 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6031 (windows_continue): Use windows_continue::resume.
6032 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6033 resume>: Declare new methods.
6034 * nat/windows-nat.c: New file.
6035 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6036
6037 2020-04-08 Tom Tromey <tromey@adacore.com>
6038
6039 * windows-nat.c (windows_add_thread, windows_delete_thread)
6040 (windows_nat_target::fetch_registers)
6041 (windows_nat_target::store_registers, fake_create_process)
6042 (windows_nat_target::resume, windows_nat_target::resume)
6043 (get_windows_debug_event, windows_nat_target::wait)
6044 (windows_nat_target::pid_to_str)
6045 (windows_nat_target::get_tib_address)
6046 (windows_nat_target::get_ada_task_ptid)
6047 (windows_nat_target::thread_name)
6048 (windows_nat_target::thread_alive): Use lwp, not tid.
6049
6050 2020-04-08 Tom Tromey <tromey@adacore.com>
6051
6052 * windows-nat.c (handle_exception)
6053 (windows_nat_target::thread_name): Update.
6054 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6055 <name>: Now unique_xmalloc_ptr.
6056
6057 2020-04-08 Tom Tromey <tromey@adacore.com>
6058
6059 * windows-nat.c (thread_rec)
6060 (windows_nat_target::fetch_registers): Update.
6061 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6062 Update comment.
6063 <debug_registers_changed, reload_context>: Now bool.
6064
6065 2020-04-08 Tom Tromey <tromey@adacore.com>
6066
6067 * windows-nat.c (windows_add_thread): Use new.
6068 (windows_init_thread_list, windows_delete_thread): Use delete.
6069 (get_windows_debug_event): Update.
6070 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6071 destructor, and initializers.
6072
6073 2020-04-08 Tom Tromey <tromey@adacore.com>
6074
6075 * windows-nat.c (struct windows_thread_info): Remove.
6076 * nat/windows-nat.h: New file.
6077
6078 2020-04-08 Tom Tromey <tromey@adacore.com>
6079
6080 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6081 (thread_rec, windows_add_thread, windows_delete_thread)
6082 (windows_continue): Update.
6083
6084 2020-04-08 Tom Tromey <tromey@adacore.com>
6085
6086 * windows-nat.c (struct windows_thread_info): Remove typedef.
6087 (thread_head): Remove.
6088 (thread_list): New global.
6089 (thread_rec, windows_add_thread, windows_init_thread_list)
6090 (windows_delete_thread, windows_continue): Update.
6091
6092 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6093
6094 * windows-tdep.h (windows_init_abi): Add comment.
6095 (cygwin_init_abi): New declaration.
6096 * windows-tdep.c: Split signal enumeration in two, one for
6097 Windows and one for Cygwin.
6098 (windows_gdb_signal_to_target): Only deal with signal of the
6099 Windows OS ABI.
6100 (cygwin_gdb_signal_to_target): New function.
6101 (windows_init_abi): Rename to windows_init_abi_common, don't set
6102 gdb_signal_to_target gdbarch method. Add new new function with
6103 this name.
6104 (cygwin_init_abi): New function.
6105 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6106 comment. Don't call windows_init_abi.
6107 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6108 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6109 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6110 i386_windows_init_abi_common, don't call windows_init_abi. Add
6111 a new function of this name.
6112 (i386_cygwin_init_abi): New function.
6113 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6114 OS ABI Cygwin.
6115
6116 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6117
6118 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6119 parameter.c.
6120 (dwarf2_read_gdb_index): Update.
6121
6122 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6123
6124 * nbsd-tdep.c: Include "objfiles.h".
6125 (nbsd_skip_solib_resolver): New.
6126 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6127
6128 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6129
6130 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6131 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6132 with DW_LLE_base_addressx are being emitted in DWARFv5.
6133 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6134 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6135 unsigned integer.
6136
6137 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6138
6139 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6140 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6141 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6142 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6143 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6144 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6145 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6146
6147
6148 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6149
6150 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6151 (read_loclist_index): New function definition.
6152 (lookup_loclist_base): New function definition.
6153 (read_loclist_header): New function definition.
6154 (dwarf2_cu): Add loclist_base and loclist_header field.
6155 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6156 (read_full_die_1): Read the value of DW_AT_loclists_base.
6157 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6158 (read_attribute_value): Handle DW_FORM_loclistx.
6159 (skip_one_die): Handle DW_FORM_loclistx.
6160 (loclist_header): New structure declaration.
6161 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6162
6163 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6164
6165 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6166 constructor. Remove `addr` parameter from other constructor and
6167 add `per_cu` parameter.
6168 * dwarf2/read.c (create_partial_symtab): Update.
6169
6170 2020-04-07 Tom de Vries <tdevries@suse.de>
6171
6172 PR symtab/25796
6173 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6174 (partial_die_info::fixup): Inherit has_const_value.
6175
6176 2020-04-07 Tom de Vries <tdevries@suse.de>
6177
6178 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6179 symbols without address.
6180
6181 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6182
6183 * nbsd-nat.h (struct thread_info): Add forward declaration.
6184 (nbsd_nat_target::thread_alive): Add.
6185 (nbsd_nat_target::thread_name): Likewise.
6186 (nbsd_nat_target::update_thread_list): Likewise.
6187 (update_thread_list::post_attach): Likewise.
6188 (post_attach::pid_to_str): Likewise.
6189 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6190 (nbsd_thread_lister): Add.
6191 (nbsd_nat_target::thread_alive): Likewise.
6192 (nbsd_nat_target::thread_name): Likewise.
6193 (nbsd_add_threads): Likewise.
6194 (update_thread_list::post_attach): Likewise.
6195 (nbsd_nat_target::update_thread_list): Likewise.
6196 (post_attach::pid_to_str): Likewise.
6197
6198 2020-04-06 Tom Tromey <tromey@adacore.com>
6199
6200 * ada-valprint.c (print_variant_part): Extract the variant field.
6201 (print_field_values): Use the field as the outer value when
6202 recursing.
6203
6204 2020-04-06 Tom Tromey <tromey@adacore.com>
6205
6206 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6207 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6208 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6209 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6210 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6211
6212 2020-04-06 Tom Tromey <tromey@adacore.com>
6213
6214 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6215 TYPE_CODE_ERROR.
6216
6217 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6218
6219 * nbsd-tdep.c: Include "gdbarch.h".
6220 Define enum with NetBSD signal numbers.
6221 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6222 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6223 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6224 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6225 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6226 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6227 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6228 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6229 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6230 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6231 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6232 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6233
6234 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6235
6236 PR gdb/25325
6237 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6238
6239 2020-04-03 Tom Tromey <tromey@adacore.com>
6240
6241 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6242 Read constant block.
6243
6244 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6245
6246 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6247 (gdb_bfd_get_full_section_contents): New declaration.
6248 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6249 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6250 gdb_bfd_get_full_section_contents.
6251
6252 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6253
6254 * exec.c (build_section_table): Replace internal_error with
6255 gdb_assert.
6256 (section_table_xfer_memory_partial): Likewise.
6257 * mdebugread.c (parse_partial_symbols): Likewise.
6258 * psymtab.c (lookup_partial_symbol): Likewise.
6259 * utils.c (wrap_here): Likewise.
6260
6261 2020-04-02 Tom Tromey <tromey@adacore.com>
6262
6263 * f-lang.c (build_fortran_types): Use arch_type to initialize
6264 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6265
6266 2020-04-02 Tom Tromey <tromey@adacore.com>
6267
6268 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6269 of attributes.
6270
6271 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6272 Bernd Edlinger <bernd.edlinger@hotmail.de>
6273 Tom Tromey <tromey@adacore.com>
6274
6275 * buildsym.c (buildsym_compunit::record_line): Remove
6276 deduplication code.
6277
6278 2020-04-02 Tom de Vries <tdevries@suse.de>
6279
6280 PR ada/24671
6281 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6282
6283 2020-04-02 Tom de Vries <tdevries@suse.de>
6284
6285 * dwarf2/read.c (dwarf2_gdb_index_functions,
6286 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6287 NULL.
6288 * psymtab.c (psym_lookup_global_symbol_language): New function.
6289 (psym_functions): Init psym_lookup_global_symbol_language with
6290 psym_lookup_global_symbol_language.
6291 * symfile-debug.c (debug_sym_quick_functions): Init
6292 lookup_global_symbol_language with NULL.
6293 * symfile.c (set_initial_language): Remove fixme comment.
6294 * symfile.h (struct quick_symbol_functions): Add
6295 lookup_global_symbol_language.
6296 * symtab.c (find_quick_global_symbol_language): New function.
6297 (find_main_name): Use find_quick_global_symbol_language.
6298
6299 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6300
6301 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6302
6303 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6304
6305 * buildsym.c (record_line): Fix undefined behavior and preserve
6306 lines at eof.
6307
6308 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6309
6310 * buildsym.c (record_line): Fix the resizing condition.
6311
6312 2020-04-01 Tom Tromey <tom@tromey.com>
6313
6314 * value.h (value_literal_complex): Add comment.
6315 * valops.c (value_literal_complex): Refer to value.h.
6316
6317 2020-04-01 Tom Tromey <tom@tromey.com>
6318
6319 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6320 (scalar_type): New rule, from typebase.
6321 (typebase): Use scalar_type. Recognize complex types.
6322 (field_name): Handle FLOAT_KEYWORD.
6323 (ident_tokens): Add _Complex and __complex__.
6324
6325 2020-04-01 Tom Tromey <tom@tromey.com>
6326
6327 PR exp/25299:
6328 * valarith.c (promotion_type, complex_binop): New functions.
6329 (scalar_binop): Handle complex numbers. Use promotion_type.
6330 (value_pos, value_neg, value_complement): Handle complex numbers.
6331
6332 2020-04-01 Tom Tromey <tom@tromey.com>
6333
6334 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6335 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6336 (parse_number): Handle complex numbers.
6337
6338 2020-04-01 Tom Tromey <tom@tromey.com>
6339
6340 * c-valprint.c (c_decorations): Change complex suffix to "i".
6341
6342 2020-04-01 Tom Tromey <tom@tromey.com>
6343
6344 * valprint.c (generic_value_print_complex): Use accessors.
6345 * value.h (value_real_part, value_imaginary_part): Declare.
6346 * valops.c (value_real_part, value_imaginary_part): New
6347 functions.
6348 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6349
6350 2020-04-01 Tom Tromey <tom@tromey.com>
6351
6352 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6353 (read_range_type): Update.
6354 * mdebugread.c (basic_type): Update.
6355 * go-lang.c (build_go_types): Use init_complex_type.
6356 * gdbtypes.h (struct main_type) <complex_type>: New member.
6357 (init_complex_type): Update.
6358 (arch_complex_type): Don't declare.
6359 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6360 Make name if none given. Use alloc_type_copy. Look for cached
6361 complex type.
6362 (arch_complex_type): Remove.
6363 (gdbtypes_post_init): Use init_complex_type.
6364 * f-lang.c (build_fortran_types): Use init_complex_type.
6365 * dwarf2/read.c (read_base_type): Update.
6366 * d-lang.c (build_d_types): Use init_complex_type.
6367 * ctfread.c (read_base_type): Update.
6368
6369 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6370
6371 * infrun.c (stop_all_threads): Update assertion, plus when
6372 stopping threads, take into account that we might be trying
6373 to stop an all-stop target.
6374 (stop_waiting): Call 'stop_all_threads' if there exists a
6375 non-stop target.
6376
6377 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6378
6379 * target.h (exists_non_stop_target): New function declaration.
6380 * target.c (exists_non_stop_target): New function.
6381
6382 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6383
6384 PR gdb/24789
6385 * eval.c (is_integral_or_integral_reference): New function.
6386 (evaluate_subexp_standard): Allow integer references in
6387 pointer arithmetic.
6388
6389 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6390
6391 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6392 check for no ptid in the stop reply when the target is non-stop.
6393
6394 2020-04-01 Tom Tromey <tromey@adacore.com>
6395
6396 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6397 "name" parameter to rvalue reference. Initialize m_name_holder.
6398 <lookup_name_info>: New overloads.
6399 <name>: Return gdb::string_view.
6400 <c_str>: New method.
6401 <make_ignore_params>: Update.
6402 <search_name_hash>: Update.
6403 <language_lookup_name>: Return const char *.
6404 <m_name>: Change type.
6405 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6406 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6407 (lookup_name_info::match_any): Update.
6408 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6409 Update.
6410 * minsyms.c (linkage_name_str): Update.
6411 * language.c (default_symbol_name_matcher): Update.
6412 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6413 Update.
6414 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6415 (ada_lookup_name_info::ada_lookup_name_info): Update.
6416 (literal_symbol_name_matcher): Update.
6417
6418 2020-04-01 Tom Tromey <tromey@adacore.com>
6419
6420 * psymtab.c (psymtab_search_name): Remove function.
6421 (psym_lookup_symbol): Create search name and lookup name here.
6422 (lookup_partial_symbol): Remove "name" parameter; add
6423 lookup_name.
6424 (psym_expand_symtabs_for_function): Update.
6425
6426 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6427
6428 PR tui/25597:
6429 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6430
6431 2020-03-31 Tom Tromey <tromey@adacore.com>
6432
6433 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6434 memcpy.
6435
6436 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6437
6438 * features/riscv/32bit-csr.xml: Regenerated.
6439 * features/riscv/64bit-csr.xml: Regenerated.
6440
6441 2020-03-30 Tom Tromey <tromey@adacore.com>
6442
6443 * ada-valprint.c (print_variant_part): Update.
6444 * ada-lang.h (ada_which_variant_applies): Update.
6445 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6446 outer_valaddr parameters; replace with "outer" value parameter.
6447 (to_fixed_variant_branch_type): Update.
6448
6449 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6450
6451 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6452 <list>. Remove inclusion of observable.h.
6453 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6454 (struct arch_lwp_info): New struct.
6455 (class ppc_linux_dreg_interface): New class.
6456 (struct ppc_linux_process_info): New struct.
6457 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6458 <low_new_clone, low_forget_process, low_prepare_to_resume>
6459 <copy_thread_dreg_state, mark_thread_stale>
6460 <mark_debug_registers_changed, register_hw_breakpoint>
6461 <clear_hw_breakpoint, register_wp, clear_wp>
6462 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6463 <num_memory_accesses, get_trigger_type>
6464 <create_watchpoint_request, hwdebug_point_cmp>
6465 <init_arch_lwp_info, get_arch_lwp_info>
6466 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6467 methods.
6468 <struct ptid_hash>: New inner struct.
6469 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6470 members.
6471 (saved_dabr_value, hwdebug_info, max_slots_number)
6472 (struct hw_break_tuple, struct thread_points, ppc_threads)
6473 (have_ptrace_hwdebug_interface)
6474 (hwdebug_find_thread_points_by_tid)
6475 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6476 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6477 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6478 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6479 use m_dreg_interface.
6480 (hwdebug_point_cmp): Change to...
6481 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6482 reference arguments instead of pointers.
6483 (ppc_linux_nat_target::ranged_break_num_registers): Use
6484 m_dreg_interface.
6485 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6486 m_dreg_interface. Call register_hw_breakpoint.
6487 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6488 m_dreg_interface. Call clear_hw_breakpoint.
6489 (get_trigger_type): Change to...
6490 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6491 comment.
6492 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6493 use m_dreg_interface. Call register_hw_breakpoint.
6494 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6495 use m_dreg_interface. Call clear_hw_breakpoint.
6496 (can_use_watchpoint_cond_accel): Change to...
6497 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6498 method. Update comment, use m_dreg_interface and
6499 m_process_info.
6500 (calculate_dvc): Change to...
6501 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6502 m_dreg_interface.
6503 (num_memory_accesses): Change to...
6504 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6505 (check_condition): Change to...
6506 (ppc_linux_nat_target::check_condition): ...this method.
6507 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6508 comment, use m_dreg_interface.
6509 (create_watchpoint_request): Change to...
6510 (ppc_linux_nat_target::create_watchpoint_request): ...this
6511 method. Use m_dreg_interface.
6512 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6513 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6514 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6515 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6516 (ppc_linux_nat_target::low_forget_process)
6517 (ppc_linux_nat_target::low_new_fork)
6518 (ppc_linux_nat_target::low_new_clone)
6519 (ppc_linux_nat_target::low_delete_thread)
6520 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6521 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6522 only call mark_thread_stale.
6523 (ppc_linux_thread_exit): Remove.
6524 (ppc_linux_nat_target::stopped_data_address): Change to...
6525 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6526 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6527 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6528 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6529 comment. Call low_stopped_data_address.
6530 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6531 m_dreg_interface.
6532 (ppc_linux_nat_target::masked_watch_num_registers): Use
6533 m_dreg_interface.
6534 (ppc_linux_nat_target::copy_thread_dreg_state)
6535 (ppc_linux_nat_target::mark_thread_stale)
6536 (ppc_linux_nat_target::mark_debug_registers_changed)
6537 (ppc_linux_nat_target::register_hw_breakpoint)
6538 (ppc_linux_nat_target::clear_hw_breakpoint)
6539 (ppc_linux_nat_target::register_wp)
6540 (ppc_linux_nat_target::clear_wp)
6541 (ppc_linux_nat_target::init_arch_lwp_info)
6542 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6543 (_initialize_ppc_linux_nat): Remove observer callback.
6544
6545 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6546
6547 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6548 (ppc_linux_nat_target::auxv_parse)
6549 (ppc_linux_nat_target::read_description)
6550 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6551 Move up.
6552
6553 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6554
6555 * linux-nat.h (low_new_clone): New method.
6556 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6557
6558 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6559
6560 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6561 (dbx_expand_psymtab): ... this.
6562 (start_psymtab): Update.
6563 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6564 (mdebug_expand_psymtab): ... this.
6565 (parse_partial_symbols): Update.
6566 (new_psymtab): Update.
6567 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6568 (xcoff_expand_psymtab): ... this.
6569 (xcoff_start_psymtab): Update.
6570
6571 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6572
6573 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6574 <expand_dependencies>: ... this.
6575 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6576 (partial_symtab::expand_dependencies): ... this.
6577 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6578 Update.
6579 (dwarf2_psymtab::expand_psymtab): Update.
6580 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6581 * mdebugread.c (psymtab_to_symtab_1): Update.
6582 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6583
6584 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6585
6586 * psympriv.h (discard_psymtab): Remove.
6587 * dbxread.c (dbx_end_psymtab): Update.
6588 * xcoffread.c (xcoff_end_psymtab): Update.
6589
6590 2020-03-28 Tom Tromey <tom@tromey.com>
6591
6592 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6593 comment.
6594
6595 2020-03-28 Tom Tromey <tom@tromey.com>
6596
6597 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6598
6599 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6600
6601 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6602
6603 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6604
6605 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6606
6607 2020-03-26 Tom Tromey <tom@tromey.com>
6608
6609 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6610 (mark_common_block_symbol_computed, read_tag_string_type)
6611 (attr_to_dynamic_prop, read_subrange_type): Update.
6612 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6613 to be methods on struct attribute.
6614 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6615 (read_call_site_scope, partial_die_info::read)
6616 (partial_die_info::read, lookup_die_type, follow_die_ref):
6617 Update.
6618 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6619 from dwarf2_get_ref_die_offset.
6620 (attribute::constant_value): New method, from
6621 dwarf2_get_attr_constant_value.
6622 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6623 Declare method.
6624 <constant_value>: New method.
6625
6626 2020-03-26 Tom Tromey <tom@tromey.com>
6627
6628 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6629 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6630 (dwarf_type_encoding_name): Move to stringify.c.
6631 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6632 * dwarf2/stringify.c: New file.
6633 * dwarf2/stringify.h: New file.
6634
6635 2020-03-26 Tom Tromey <tom@tromey.com>
6636
6637 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6638 Rewrite.
6639
6640 2020-03-26 Tom Tromey <tom@tromey.com>
6641
6642 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6643 methods.
6644 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6645 (lookup_ranges_base): Likewise.
6646 (read_cutu_die_from_dwo, read_full_die_1): Update.
6647
6648 2020-03-26 Tom Tromey <tom@tromey.com>
6649
6650 * dwarf2/read.c (read_import_statement, read_file_scope)
6651 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6652 (read_lexical_block_scope, read_call_site_scope)
6653 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6654 (handle_struct_member_die, process_structure_scope)
6655 (update_enumeration_type_from_children)
6656 (process_enumeration_scope, read_array_type, read_common_block)
6657 (read_namespace, read_module, read_subroutine_type): Update.
6658 (sibling_die): Remove.
6659
6660 2020-03-26 Tom Tromey <tom@tromey.com>
6661
6662 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6663 (build_type_psymtabs_reader, read_structure_type)
6664 (read_enumeration_type, read_full_die_1): Update.
6665 (dwarf2_attr_no_follow): Move to die.h.
6666 * dwarf2/die.h (struct die_info) <attr>: New method.
6667
6668 2020-03-26 Tom Tromey <tom@tromey.com>
6669
6670 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6671 <base_address>: Now an optional.
6672 (dwarf2_find_base_address, dwarf2_rnglists_process)
6673 (dwarf2_ranges_process, fill_in_loclist_baton)
6674 (dwarf2_symbol_mark_computed): Update.
6675
6676 2020-03-26 Tom Tromey <tom@tromey.com>
6677
6678 * dwarf2/read.c (struct die_info): Move to die.h.
6679 * dwarf2/die.h: New file.
6680
6681 2020-03-26 Tom Tromey <tom@tromey.com>
6682
6683 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6684 * dwarf2/read.c
6685 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6686 Move to line-header.c.
6687 (read_checked_initial_length_and_offset, read_formatted_entries):
6688 Likewise.
6689 (dwarf_decode_line_header): Split into two.
6690 * dwarf2/line-header.c
6691 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6692 Move from read.c.
6693 (read_checked_initial_length_and_offset, read_formatted_entries):
6694 Likewise.
6695 (dwarf_decode_line_header): New function, split from read.c.
6696
6697 2020-03-26 Tom Tromey <tom@tromey.com>
6698
6699 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6700 Declare method.
6701 * dwarf2/read.c (read_attribute_value): Update.
6702 (dwarf2_per_objfile::read_line_string): Rename from
6703 read_indirect_line_string.
6704 (read_formatted_entries): Update.
6705
6706 2020-03-26 Tom Tromey <tom@tromey.com>
6707
6708 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6709 variable.
6710
6711 2020-03-26 Tom Tromey <tom@tromey.com>
6712
6713 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6714 const.
6715 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6716 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6717 parameter const.
6718
6719 2020-03-26 Tom Tromey <tom@tromey.com>
6720
6721 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6722 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6723 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6724 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6725
6726 2020-03-26 Tom Tromey <tom@tromey.com>
6727
6728 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6729 file_names_size, file_full_name, file_file_name>: Use const.
6730 <file_name_at, file_names>: Add const overload.
6731 * dwarf2/line-header.c (line_header::file_file_name)
6732 (line_header::file_full_name): Update.
6733
6734 2020-03-26 Tom Tromey <tom@tromey.com>
6735
6736 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6737 (macro_start_file, consume_improper_spaces)
6738 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6739 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6740 (dwarf_decode_macros): Move to macro.c.
6741 * dwarf2/macro.c: New file.
6742 * dwarf2/macro.h: New file.
6743 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6744
6745 2020-03-26 Tom Tromey <tom@tromey.com>
6746
6747 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6748 method.
6749 * dwarf2/section.c: New method. From
6750 read_indirect_string_at_offset_from.
6751 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
6752 (read_indirect_string_at_offset_from): Move to section.c.
6753 (read_indirect_string_at_offset): Rewrite.
6754 (read_indirect_line_string_at_offset): Remove.
6755 (read_indirect_string, read_indirect_line_string)
6756 (dwarf_decode_macro_bytes): Update.
6757
6758 2020-03-26 Tom Tromey <tom@tromey.com>
6759
6760 * dwarf2/section.h (struct dwarf2_section_info)
6761 <overload_complaint>: Declare.
6762 (dwarf2_section_buffer_overflow_complaint): Don't declare.
6763 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
6764 Rename from dwarf2_section_buffer_overflow_complaint.
6765 * dwarf2/read.c (skip_one_die, partial_die_info::read)
6766 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
6767
6768 2020-03-26 Tom Tromey <tom@tromey.com>
6769
6770 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
6771 Declare.
6772 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
6773 Move from read.c.
6774 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
6775 to section.c.
6776
6777 2020-03-26 Tom Tromey <tom@tromey.com>
6778
6779 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
6780
6781 2020-03-26 Tom Tromey <tom@tromey.com>
6782
6783 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
6784 "builder".
6785 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
6786 parameter.
6787 (dwarf_decode_macros): Update.
6788
6789 2020-03-26 Tom Tromey <tom@tromey.com>
6790
6791 * dwarf2/read.c (read_attribute_value): Update.
6792 (read_indirect_string_from_dwz): Move to dwz.c; change into
6793 method.
6794 (dwarf_decode_macro_bytes): Update.
6795 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
6796 * dwarf2/dwz.c: New file.
6797 * Makefile.in (COMMON_SFILES): Add dwz.c.
6798
6799 2020-03-26 Tom Tromey <tom@tromey.com>
6800
6801 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
6802 * dwarf2/read.c: Add include.
6803 * dwarf2/index-write.c: Add include.
6804 * dwarf2/index-cache.c: Add include.
6805 * dwarf2/dwz.h: New file.
6806
6807 2020-03-25 Tom Tromey <tom@tromey.com>
6808
6809 * compile/compile-object-load.c (get_out_value_type): Mention
6810 correct symbol name in error message.
6811
6812 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
6813
6814 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6815
6816 2020-03-25 Tom de Vries <tdevries@suse.de>
6817
6818 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
6819 * symmisc.c (dump_symtab_1): Print user and includes fields.
6820 (maintenance_info_symtabs): Same.
6821
6822 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
6823
6824 PR gdb/25534
6825 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
6826 (riscv_regcache_cooked_write): New function.
6827 (riscv_push_dummy_call): Use new function.
6828 (riscv_return_value): Likewise.
6829
6830 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
6831
6832 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
6833 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
6834 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
6835 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
6836 * infrun.c (follow_fork): Likewise.
6837 (follow_fork_inferior): Likewise.
6838 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
6839 * linux-nat.h (class linux_nat_target): Likewise.
6840 * remote.c (class remote_target) <follow_fork>: Likewise.
6841 (remote_target::follow_fork): Likewise.
6842 * target-delegates.c: Re-generate.
6843 * target.c (default_follow_fork): Likewise.
6844 (target_follow_fork): Likewise.
6845 * target.h (struct target_ops) <follow_fork>: Likewise.
6846 (target_follow_fork): Likewise.
6847
6848 2020-03-24 Tom de Vries <tdevries@suse.de>
6849
6850 * psymtab.c (maintenance_info_psymtabs): Print user field.
6851
6852 2020-03-20 Tom Tromey <tromey@adacore.com>
6853
6854 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
6855 const.
6856 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
6857 const.
6858
6859 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
6860
6861 * ptrace.m4: Don't check for ptrace declaration.
6862 * config.in: Re-generate.
6863 * configure: Re-generate.
6864 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
6865 not defined.
6866
6867 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6868
6869 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
6870 `PTRACE_TYPE_RET'.
6871 * i386-bsd-nat.c (gdb_ptrace): Likewise.
6872 * sparc-nat.c (gdb_ptrace): Likewise.
6873 * x86-bsd-nat.c (gdb_ptrace): Likewise.
6874
6875 2020-03-20 Tom Tromey <tromey@adacore.com>
6876
6877 * c-exp.y (lex_one_token): Fix assert.
6878
6879 2020-03-20 Tom Tromey <tromey@adacore.com>
6880
6881 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
6882 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
6883 strncpy call.
6884
6885 2020-03-20 Tom Tromey <tromey@adacore.com>
6886
6887 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
6888
6889 2020-03-20 Tom Tromey <tromey@adacore.com>
6890
6891 * ada-valprint.c (print_variant_part): Remove parameters; switch
6892 to value-based API.
6893 (print_field_values): Likewise.
6894 (ada_val_print_struct_union): Likewise.
6895 (ada_value_print_1): Update.
6896
6897 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6898
6899 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
6900 nbsd_nat_target instead of inf_ptrace_target.
6901 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
6902 nbsd_nat_target.
6903
6904 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6905
6906 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
6907 it to the ptrace call.
6908 * (store_registers): Likewise.
6909
6910 2020-03-20 Kamil Rytarowski <n54@gmx.com>
6911
6912 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
6913 it to the ptrace call.
6914 * (store_registers): Likewise.
6915
6916 2020-03-19 Luis Machado <luis.machado@linaro.org>
6917
6918 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
6919 valid, fetch vg value from ptrace.
6920
6921 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6922 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
6923 * inf-ptrace.c: Likewise.
6924 * (gdb_ptrace): Add.
6925 * (inf_ptrace_target::resume): Update.
6926 * (inf_ptrace_target::xfer_partial): Likewise.
6927 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
6928 * (inf_ptrace_peek_poke): Update.
6929
6930 2020-03-19 Kamil Rytarowski <n54@gmx.com>
6931
6932 * x86-bsd-nat.c (gdb_ptrace): New.
6933 * (x86bsd_dr_set): Add new argument `ptid'.
6934 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
6935 x86bsd_dr_set_addr): Update.
6936
6937 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6938
6939 * remote.c (remote_target::process_stop_reply): Handle events for
6940 all threads differently.
6941
6942 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6943
6944 * completer.c (completion_tracker::remove_completion): Define new
6945 function.
6946 * completer.h (completion_tracker::remove_completion): Declare new
6947 function.
6948 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
6949 when adding a C++ function symbol.
6950
6951 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
6952
6953 * completer.c (completion_tracker::completion_hash_entry): Define
6954 new class.
6955 (advance_to_filename_complete_word_point): Call
6956 recompute_lowest_common_denominator.
6957 (completion_tracker::completion_tracker): Call discard_completions
6958 to setup the hash table.
6959 (completion_tracker::discard_completions): Allow for being called
6960 from the constructor, pass new equal function, and element deleter
6961 when constructing the hash table. Initialise new class member
6962 variables.
6963 (completion_tracker::maybe_add_completion): Remove use of
6964 m_entries_vec, and store more information into m_entries_hash.
6965 (completion_tracker::recompute_lcd_visitor): New function, most
6966 content taken from...
6967 (completion_tracker::recompute_lowest_common_denominator):
6968 ...here, this now just visits each item in the hash calling the
6969 above visitor.
6970 (completion_tracker::build_completion_result): Remove use of
6971 m_entries_vec, call recompute_lowest_common_denominator.
6972 * completer.h (completion_tracker::have_completions): Remove use
6973 of m_entries_vec.
6974 (completion_tracker::completion_hash_entry): Declare new class.
6975 (completion_tracker::recompute_lowest_common_denominator): Change
6976 function signature.
6977 (completion_tracker::recompute_lcd_visitor): Declare new function.
6978 (completion_tracker::m_entries_vec): Delete.
6979 (completion_tracker::m_entries_hash): Initialize to NULL.
6980 (completion_tracker::m_lowest_common_denominator_valid): New
6981 member variable.
6982 (completion_tracker::m_lowest_common_denominator_max_length): New
6983 member variable.
6984
6985 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6986
6987 * regformats/regdef.h: Put reg in gdb namespace.
6988
6989 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6990
6991 * i386-bsd-nat.c (gdb_ptrace): New.
6992 * (i386bsd_fetch_inferior_registers,
6993 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
6994 * (i386bsd_fetch_inferior_registers,
6995 i386bsd_store_inferior_registers) Use gdb_ptrace.
6996
6997 2020-03-17 Kamil Rytarowski <n54@gmx.com>
6998
6999 * amd64-bsd-nat.c (gdb_ptrace): New.
7000 * (amd64bsd_fetch_inferior_registers,
7001 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7002 * (amd64bsd_fetch_inferior_registers,
7003 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7004
7005 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7006
7007 * user-regs.c (user_reg::read): Rename to...
7008 (user_reg::xread): ...this.
7009 * (append_user_reg): Rename argument `read' to `xread'.
7010 * (user_reg_add_builtin): Likewise.
7011 * (user_reg_add): Likewise.
7012 * (value_of_user_reg): Likewise.
7013
7014 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7015
7016 * sparc-nat.c (gdb_ptrace): New.
7017 * sparc-nat.c (sparc_fetch_inferior_registers)
7018 (sparc_store_inferior_registers) Remove obsolete comment.
7019 * sparc-nat.c (sparc_fetch_inferior_registers)
7020 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7021 * sparc-nat.c (sparc_fetch_inferior_registers)
7022 (sparc_store_inferior_registers) Use gdb_ptrace.
7023
7024 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7025
7026 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7027 it to the ptrace call.
7028 * sh-nbsd-nat.c (store_registers): Likewise.
7029
7030 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7031
7032 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7033 nbsd_nat_target instead of inf_ptrace_target.
7034 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7035 nbsd_nat_target.
7036
7037 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7038
7039 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7040
7041 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7042
7043 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7044 <sys/sysctl.h>.
7045 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7046
7047 2020-03-17 Tom de Vries <tdevries@suse.de>
7048
7049 PR gdb/23710
7050 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7051 fields.
7052 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7053 fields.
7054 (process_imported_unit_die): Skip import of c++ CUs.
7055
7056 2020-03-16 Tom Tromey <tom@tromey.com>
7057
7058 * p-valprint.c (pascal_object_print_value): Initialize
7059 base_value.
7060
7061 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7062 Shahab Vahedi <shahab@synopsys.com>
7063
7064 * Makefile.in: Add arch/arc.o
7065 * configure.tgt: Likewise.
7066 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7067 (_initialize_arc_tdep): Don't initialize old target descriptions.
7068 (arc_read_description): New function to cache target descriptions.
7069 * arc-tdep.h (arc_read_description): Add proto type.
7070 * arch/arc.c: New file.
7071 * arch/arc.h: Likewise.
7072 * features/Makefile: Replace old target descriptions with new.
7073 * features/arc-arcompact.c: Remove.
7074 * features/arc-arcompact.xml: Likewise.
7075 * features/arc-v2.c: Likewise
7076 * features/arc-v2.xml: Likewise
7077 * features/arc/aux-arcompact.xml: New file.
7078 * features/arc/aux-v2.xml: Likewise.
7079 * features/arc/core-arcompact.xml: Likewise.
7080 * features/arc/core-v2.xml: Likewise.
7081 * features/arc/aux-arcompact.c: Generate.
7082 * features/arc/aux-v2.c: Likewise.
7083 * features/arc/core-arcompact.c: Likewise.
7084 * features/arc/core-v2.c: Likewise.
7085 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7086
7087 2020-03-16 Tom Tromey <tromey@adacore.com>
7088
7089 PR gdb/25663:
7090 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7091 putting value into bcache.
7092
7093 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7094
7095 PR gdb/21500
7096 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7097 to...
7098 (amd64_windows_init_abi_common): ... this. Don't set size of
7099 long type.
7100 (amd64_windows_init_abi): New function.
7101 (amd64_cygwin_init_abi): New function.
7102 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7103 the Cygwin OS ABI.
7104 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7105 comment.
7106
7107 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7108
7109 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7110 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7111 (pe_import_directory_entry): New struct type.
7112 (is_linked_with_cygwin_dll): New function.
7113 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7114 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7115 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7116
7117 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7118
7119 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7120 i386_cygwin_core_osabi_sniffer.
7121
7122 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7123
7124 * i386-cygwin-tdep.c: Rename to...
7125 * i386-windows-tdep.c: ... this.
7126 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7127 i386-windows-tdep.c.
7128 * configure.tgt: Likewise.
7129
7130 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7131
7132 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7133 * osabi.c (gdb_osabi_names): Add "Windows".
7134 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7135 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7136 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7137 i386_cygwin_osabi_sniffer.
7138 (_initialize_i386_cygwin_tdep): Register OS ABI
7139 GDB_OSABI_WINDOWS for i386.
7140 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7141 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7142 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7143 for x86-64.
7144 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7145 when the target matches '*-*-mingw*'.
7146
7147 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7148
7149 * defs.h (enum gdb_osabi): Move to...
7150 * osabi.h (enum gdb_osabi): ... here.
7151 * gdbarch.sh: Include osabi.h in gdbarch.h.
7152 * gdbarch.h: Re-generate.
7153
7154 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7155
7156 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7157 function.
7158 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7159
7160 2020-03-14 Tom Tromey <tom@tromey.com>
7161
7162 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7163 for C++.
7164 (c_type_print_modifier): Likewise. Add "language" parameter.
7165 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7166 (c_type_print_base_1): Update.
7167 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7168 constants.
7169 * type-stack.c (type_stack::insert): Handle tp_atomic and
7170 tp_restrict.
7171 (type_stack::follow_type_instance_flags): Likewise.
7172 (type_stack::follow_types): Likewise. Merge type-following code.
7173 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7174 (space_identifier, cv_with_space_id)
7175 (const_or_volatile_or_space_identifier_noopt)
7176 (const_or_volatile_or_space_identifier): Remove.
7177 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7178 rules.
7179 (ptr_operator, typebase): Update.
7180 (enum token_flag) <FLAG_C>: New constant.
7181 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7182 "_Atomic".
7183 (lex_one_token): Handle FLAG_C.
7184
7185 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7186
7187 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7188 it to the ptrace call.
7189 * m68k-bsd-nat.c (store_registers): Likewise.
7190
7191 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7192
7193 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7194 gdb_byte *.
7195 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7196 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7197 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7198
7199 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7200
7201 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7202 nbsd_nat_target instead of inf_ptrace_target.
7203 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7204 nbsd_nat_target.
7205
7206 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7207
7208 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7209 register_t.
7210
7211 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7212
7213 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7214 it to the ptrace call.
7215 * alpha-bsd-nat.c (store_registers): Likewise.
7216
7217 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7218
7219 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7220 includes.
7221 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7222 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7223 fill_fpregset): Likewise.
7224
7225 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7226
7227 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7228 nbsd_nat_target instead of inf_ptrace_target.
7229 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7230 nbsd_nat_target.
7231
7232 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7233
7234 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7235 register_t.
7236
7237 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7238
7239 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7240 it to the ptrace call.
7241 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7242 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7243 * arm-nbsd-nat.c (store_register): Likewise.
7244 * arm-nbsd-nat.c (store_regs): Likewise.
7245 * arm-nbsd-nat.c (store_fp_register): Likewise.
7246 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7247
7248 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7249
7250 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7251 nbsd_nat_target instead of inf_ptrace_target.
7252 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7253 nbsd_nat_target.
7254
7255 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7256
7257 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7258 it to the ptrace call.
7259 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7260
7261 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7262
7263 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7264 it to the ptrace call.
7265 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7266
7267 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7268
7269 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7270 gdb_byte *.
7271 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7272
7273 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7274
7275 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7276 instead of inf_ptrace_target.
7277 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7278 nbsd_nat_target.
7279
7280 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7281
7282 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7283 register_t.
7284
7285 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7286
7287 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7288 register_t.
7289
7290 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7291
7292 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7293 register_t.
7294
7295 2020-03-13 Tom Tromey <tom@tromey.com>
7296
7297 * value.h (val_print): Don't declare.
7298 * valprint.h (val_print_array_elements)
7299 (val_print_scalar_formatted, generic_val_print): Don't declare.
7300 * valprint.c (generic_val_print_array): Take a struct value.
7301 (generic_val_print_ptr, generic_val_print_memberptr)
7302 (generic_val_print_bool, generic_val_print_int)
7303 (generic_val_print_char, generic_val_print_complex)
7304 (generic_val_print): Remove.
7305 (generic_value_print): Update.
7306 (do_val_print): Remove unused parameters. Don't call
7307 la_val_print.
7308 (val_print): Remove.
7309 (common_val_print): Update. Don't call value_check_printable.
7310 (val_print_scalar_formatted, val_print_array_elements): Remove.
7311 * rust-lang.c (rust_val_print): Remove.
7312 (rust_language_defn): Update.
7313 * p-valprint.c (pascal_val_print): Remove.
7314 (pascal_value_print_inner): Update.
7315 (pascal_object_print_val_fields, pascal_object_print_val):
7316 Remove.
7317 (pascal_object_print_static_field): Update.
7318 * p-lang.h (pascal_val_print): Don't declare.
7319 * p-lang.c (pascal_language_defn): Update.
7320 * opencl-lang.c (opencl_language_defn): Update.
7321 * objc-lang.c (objc_language_defn): Update.
7322 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7323 * m2-lang.h (m2_val_print): Don't declare.
7324 * m2-lang.c (m2_language_defn): Update.
7325 * language.h (struct language_defn) <la_val_print>: Remove.
7326 * language.c (unk_lang_value_print_inner): Rename. Change
7327 argument types.
7328 (unknown_language_defn, auto_language_defn): Update.
7329 * go-valprint.c (go_val_print): Remove.
7330 * go-lang.h (go_val_print): Don't declare.
7331 * go-lang.c (go_language_defn): Update.
7332 * f-valprint.c (f_val_print): Remove.
7333 * f-lang.h (f_value_print): Don't declare.
7334 * f-lang.c (f_language_defn): Update.
7335 * d-valprint.c (d_val_print): Remove.
7336 * d-lang.h (d_value_print): Don't declare.
7337 * d-lang.c (d_language_defn): Update.
7338 * cp-valprint.c (cp_print_value_fields)
7339 (cp_print_value_fields_rtti, cp_print_value): Remove.
7340 (cp_print_static_field): Update.
7341 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7342 (c_val_print_struct, c_val_print_union, c_val_print_int)
7343 (c_val_print_memberptr, c_val_print): Remove.
7344 * c-lang.h (c_val_print_array, cp_print_value_fields)
7345 (cp_print_value_fields_rtti): Don't declare.
7346 * c-lang.c (c_language_defn, cplus_language_defn)
7347 (asm_language_defn, minimal_language_defn): Update.
7348 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7349 (ada_val_print_enum): Take a struct value.
7350 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7351 (ada_val_print): Remove.
7352 (ada_value_print_1): Update.
7353 (printable_val_type): Remove.
7354 * ada-lang.h (ada_val_print): Don't declare.
7355 * ada-lang.c (ada_language_defn): Update.
7356
7357 2020-03-13 Tom Tromey <tom@tromey.com>
7358
7359 * valprint.c (do_val_print): Update.
7360 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7361 a struct value.
7362 (value_to_value_object_no_release): Declare.
7363 * python/py-value.c (value_to_value_object_no_release): New
7364 function.
7365 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7366 struct value.
7367 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7368 function.
7369 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7370 a struct value.
7371 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7372 Declare.
7373 (gdbscm_apply_val_pretty_printer): Take a struct value.
7374 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7375 value.
7376 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7377 value.
7378 * extension-priv.h (struct extension_language_ops)
7379 <apply_val_pretty_printer>: Take a struct value.
7380 * cp-valprint.c (cp_print_value): Create a struct value.
7381 (cp_print_value): Update.
7382
7383 2020-03-13 Tom Tromey <tom@tromey.com>
7384
7385 * ada-valprint.c (print_field_values): Call common_val_print.
7386
7387 2020-03-13 Tom Tromey <tom@tromey.com>
7388
7389 * ada-valprint.c (val_print_packed_array_elements): Remove
7390 bitoffset and val parameters. Call common_val_print.
7391 (ada_val_print_string): Remove offset, address, and original_value
7392 parameters.
7393 (ada_val_print_array): Update.
7394 (ada_value_print_array): New function.
7395 (ada_value_print_1): Call it.
7396
7397 2020-03-13 Tom Tromey <tom@tromey.com>
7398
7399 * ada-valprint.c (ada_value_print): Use common_val_print.
7400
7401 2020-03-13 Tom Tromey <tom@tromey.com>
7402
7403 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7404
7405 2020-03-13 Tom Tromey <tom@tromey.com>
7406
7407 * ada-valprint.c (ada_value_print_num): New function.
7408 (ada_value_print_1): Use it.
7409
7410 2020-03-13 Tom Tromey <tom@tromey.com>
7411
7412 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7413
7414 2020-03-13 Tom Tromey <tom@tromey.com>
7415
7416 * ada-valprint.c (ada_value_print_ptr): New function.
7417 (ada_value_print_1): Use it.
7418
7419 2020-03-13 Tom Tromey <tom@tromey.com>
7420
7421 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7422 call common_val_print.
7423 (ada_val_print_1): Update.
7424 (ada_value_print_1): New function.
7425 (ada_value_print_inner): Rewrite.
7426
7427 2020-03-13 Tom Tromey <tom@tromey.com>
7428
7429 * cp-valprint.c (cp_print_value_fields): Update.
7430 (cp_print_value): New function.
7431
7432 2020-03-13 Tom Tromey <tom@tromey.com>
7433
7434 * m2-valprint.c (m2_value_print_inner): Use
7435 cp_print_value_fields.
7436 * cp-valprint.c (cp_print_value_fields): New function.
7437 * c-valprint.c (c_value_print_struct): New function.
7438 (c_value_print_inner): Use c_value_print_struct.
7439 * c-lang.h (cp_print_value_fields): Declare.
7440
7441 2020-03-13 Tom Tromey <tom@tromey.com>
7442
7443 * c-valprint.c (c_value_print_array): New function.
7444 (c_value_print_inner): Use it.
7445
7446 2020-03-13 Tom Tromey <tom@tromey.com>
7447
7448 * c-valprint.c (c_value_print_memberptr): New function.
7449 (c_value_print_inner): Use it.
7450
7451 2020-03-13 Tom Tromey <tom@tromey.com>
7452
7453 * c-valprint.c (c_value_print_int): New function.
7454 (c_value_print_inner): Use it.
7455
7456 2020-03-13 Tom Tromey <tom@tromey.com>
7457
7458 * c-valprint.c (c_value_print_ptr): New function.
7459 (c_value_print_inner): Use it.
7460
7461 2020-03-13 Tom Tromey <tom@tromey.com>
7462
7463 * c-valprint.c (c_value_print_inner): Rewrite.
7464
7465 2020-03-13 Tom Tromey <tom@tromey.com>
7466
7467 * valprint.c (generic_value_print_complex): New function.
7468 (generic_value_print): Use it.
7469
7470 2020-03-13 Tom Tromey <tom@tromey.com>
7471
7472 * valprint.c (generic_val_print_float): Don't call
7473 val_print_scalar_formatted.
7474 (generic_val_print, generic_value_print): Update.
7475
7476 2020-03-13 Tom Tromey <tom@tromey.com>
7477
7478 * valprint.c (generic_value_print_char): New function
7479 (generic_value_print): Use it.
7480
7481 2020-03-13 Tom Tromey <tom@tromey.com>
7482
7483 * valprint.c (generic_value_print_int): New function.
7484 (generic_value_print): Use it.
7485
7486 2020-03-13 Tom Tromey <tom@tromey.com>
7487
7488 * valprint.c (generic_value_print_bool): New function.
7489 (generic_value_print): Use it.
7490
7491 2020-03-13 Tom Tromey <tom@tromey.com>
7492
7493 * valprint.c (generic_val_print_func): Simplify.
7494 (generic_val_print, generic_value_print): Update.
7495
7496 2020-03-13 Tom Tromey <tom@tromey.com>
7497
7498 * valprint.c (generic_val_print_flags): Remove.
7499 (generic_val_print, generic_value_print): Update.
7500 (val_print_type_code_flags): Add original_value parameter.
7501
7502 2020-03-13 Tom Tromey <tom@tromey.com>
7503
7504 * valprint.c (generic_val_print): Update.
7505 (generic_value_print): Update.
7506 * valprint.c (generic_val_print_enum): Don't call
7507 val_print_scalar_formatted.
7508
7509 2020-03-13 Tom Tromey <tom@tromey.com>
7510
7511 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7512 * valprint.c (generic_value_print_ptr): New function.
7513
7514 2020-03-13 Tom Tromey <tom@tromey.com>
7515
7516 * valprint.c (generic_value_print): Rewrite.
7517
7518 2020-03-13 Tom Tromey <tom@tromey.com>
7519
7520 * p-valprint.c (pascal_object_print_value_fields)
7521 (pascal_object_print_value): New functions.
7522
7523 2020-03-13 Tom Tromey <tom@tromey.com>
7524
7525 * p-valprint.c (pascal_value_print_inner): Rewrite.
7526
7527 2020-03-13 Tom Tromey <tom@tromey.com>
7528
7529 * f-valprint.c (f_value_print_innner): Rewrite.
7530
7531 2020-03-13 Tom Tromey <tom@tromey.com>
7532
7533 * m2-valprint.c (m2_print_unbounded_array): New overload.
7534 (m2_print_unbounded_array): Update.
7535 (m2_print_array_contents): Take a struct value.
7536 (m2_value_print_inner): Rewrite.
7537
7538 2020-03-13 Tom Tromey <tom@tromey.com>
7539
7540 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7541 (d_value_print_inner): New function.
7542 * d-lang.h (d_value_print_inner): Declare.
7543 * d-lang.c (d_language_defn): Use d_value_print_inner.
7544
7545 2020-03-13 Tom Tromey <tom@tromey.com>
7546
7547 * go-valprint.c (go_value_print_inner): New function.
7548 * go-lang.h (go_value_print_inner): Declare.
7549 * go-lang.c (go_language_defn): Use go_value_print_inner.
7550
7551 2020-03-13 Tom Tromey <tom@tromey.com>
7552
7553 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7554 API.
7555 (rust_val_print): Rewrite.
7556 (rust_value_print_inner): New function, from rust_val_print.
7557 (rust_language_defn): Use rust_value_print_inner.
7558
7559 2020-03-13 Tom Tromey <tom@tromey.com>
7560
7561 * ada-valprint.c (ada_value_print_inner): New function.
7562 * ada-lang.h (ada_value_print_inner): Declare.
7563 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7564
7565 2020-03-13 Tom Tromey <tom@tromey.com>
7566
7567 * f-valprint.c (f_value_print_innner): New function.
7568 * f-lang.h (f_value_print_innner): Declare.
7569 * f-lang.c (f_language_defn): Use f_value_print_innner.
7570
7571 2020-03-13 Tom Tromey <tom@tromey.com>
7572
7573 * p-valprint.c (pascal_value_print_inner): New function.
7574 * p-lang.h (pascal_value_print_inner): Declare.
7575 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7576
7577 2020-03-13 Tom Tromey <tom@tromey.com>
7578
7579 * m2-valprint.c (m2_value_print_inner): New function.
7580 * m2-lang.h (m2_value_print_inner): Declare.
7581 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7582
7583 2020-03-13 Tom Tromey <tom@tromey.com>
7584
7585 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7586 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7587 * c-valprint.c (c_value_print_inner): New function.
7588 * c-lang.h (c_value_print_inner): Declare.
7589 * c-lang.c (c_language_defn, cplus_language_defn)
7590 (asm_language_defn, minimal_language_defn): Use
7591 c_value_print_inner.
7592
7593 2020-03-13 Tom Tromey <tom@tromey.com>
7594
7595 * p-valprint.c (pascal_object_print_value_fields): Now static.
7596 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7597
7598 2020-03-13 Tom Tromey <tom@tromey.com>
7599
7600 * c-valprint.c (c_val_print_array): Simplify.
7601
7602 2020-03-13 Tom Tromey <tom@tromey.com>
7603
7604 * valprint.c (value_print_array_elements): New function.
7605 * valprint.h (value_print_array_elements): Declare.
7606
7607 2020-03-13 Tom Tromey <tom@tromey.com>
7608
7609 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7610 * mips-tdep.c (mips_print_register): Use
7611 value_print_scalar_formatted.
7612
7613 2020-03-13 Tom Tromey <tom@tromey.com>
7614
7615 * valprint.h (value_print_scalar_formatted): Declare.
7616 * valprint.c (value_print_scalar_formatted): New function.
7617
7618 2020-03-13 Tom Tromey <tom@tromey.com>
7619
7620 * valprint.h (generic_value_print): Declare.
7621 * valprint.c (generic_value_print): New function.
7622
7623 2020-03-13 Tom Tromey <tom@tromey.com>
7624
7625 * valprint.c (do_val_print): Call la_value_print_inner, if
7626 available.
7627 * rust-lang.c (rust_language_defn): Update.
7628 * p-lang.c (pascal_language_defn): Update.
7629 * opencl-lang.c (opencl_language_defn): Update.
7630 * objc-lang.c (objc_language_defn): Update.
7631 * m2-lang.c (m2_language_defn): Update.
7632 * language.h (struct language_defn) <la_value_print_inner>: New
7633 member.
7634 * language.c (unknown_language_defn, auto_language_defn): Update.
7635 * go-lang.c (go_language_defn): Update.
7636 * f-lang.c (f_language_defn): Update.
7637 * d-lang.c (d_language_defn): Update.
7638 * c-lang.c (c_language_defn, cplus_language_defn)
7639 (asm_language_defn, minimal_language_defn): Update.
7640 * ada-lang.c (ada_language_defn): Update.
7641
7642 2020-03-13 Tom Tromey <tom@tromey.com>
7643
7644 * c-valprint.c (c_value_print): Use common_val_print.
7645
7646 2020-03-13 Tom Tromey <tom@tromey.com>
7647
7648 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7649
7650 2020-03-13 Tom Tromey <tom@tromey.com>
7651
7652 * f-valprint.c (f77_print_array_1, f_val_print): Use
7653 common_val_print.
7654
7655 2020-03-13 Tom Tromey <tom@tromey.com>
7656
7657 * riscv-tdep.c (riscv_print_one_register_info): Use
7658 common_val_print.
7659
7660 2020-03-13 Tom Tromey <tom@tromey.com>
7661
7662 * mi/mi-main.c (output_register): Use common_val_print.
7663
7664 2020-03-13 Tom Tromey <tom@tromey.com>
7665
7666 * infcmd.c (default_print_one_register_info): Use
7667 common_val_print.
7668
7669 2020-03-13 Tom Tromey <tom@tromey.com>
7670
7671 * valprint.h (common_val_print_checked): Declare.
7672 * valprint.c (common_val_print_checked): New function.
7673 * stack.c (print_frame_arg): Use common_val_print_checked.
7674
7675 2020-03-13 Tom Tromey <tom@tromey.com>
7676
7677 * valprint.c (do_val_print): New function, from val_print.
7678 (val_print): Use do_val_print.
7679 (common_val_print): Use do_val_print.
7680
7681 2020-03-13 Tom Tromey <tom@tromey.com>
7682
7683 * valprint.c (value_print): Use scoped_value_mark.
7684
7685 2020-03-13 Tom de Vries <tdevries@suse.de>
7686
7687 PR symtab/25646
7688 * psymtab.c (partial_symtab::partial_symtab): Don't set
7689 globals_offset and statics_offset. Push element onto
7690 current_global_psymbols and current_static_psymbols stacks.
7691 (concat): New function.
7692 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7693 element from current_global_psymbols and current_static_psymbols
7694 stacks. Concat popped elements to global_psymbols and
7695 static_symbols.
7696 (add_psymbol_to_list): Use current_global_psymbols and
7697 current_static_psymbols stacks.
7698 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7699 current_static_psymbols fields.
7700
7701 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7702
7703 * corelow.c (sniff_core_bfd): Remove.
7704 (class core_target) <m_core_vec>: Remove.
7705 (core_target::core_target): Update.
7706 (core_file_fns): Remove.
7707 (deprecated_add_core_fns): Remove.
7708 (default_core_sniffer): Remove.
7709 (sniff_core_bfd): Remove.
7710 (default_check_format): Remove.
7711 (gdb_check_format): Remove.
7712 (core_target_open): Update.
7713 (core_target::get_core_register_section): Update.
7714 (get_core_registers_cb): Update.
7715 (core_target::fetch_registers): Update.
7716 * gdbcore.h (struct core_fns): Remove.
7717 (deprecated_add_core_fns): Remove.
7718 (default_core_sniffer): Remove.
7719 (default_check_format): Remove.
7720
7721 2020-03-12 Tom Tromey <tom@tromey.com>
7722
7723 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7724 CORE_ADDR.
7725 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7726
7727 2020-03-12 Tom Tromey <tom@tromey.com>
7728
7729 * remote.c (remote_target::download_tracepoint)
7730 (remote_target::enable_tracepoint)
7731 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7732 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7733 sprintf_vma.
7734
7735 2020-03-12 Tom Tromey <tom@tromey.com>
7736
7737 * symfile-mem.c: Update CORE_ADDR size assert.
7738
7739 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7740
7741 * selftest.m4: Move to gdbsupport/.
7742 * acinclude.m4: Update path to selftest.m4.
7743
7744 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7745
7746 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7747 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7748 gdbarch-selfselftests.c and selftest-arch.c.
7749 (SUBDIR_UNITTESTS_OBS): Rename to...
7750 (SELFTESTS_OBS): ... this.
7751 (COMMON_SFILES): Remove disasm-selftests.c and
7752 gdbarch-selftests.c.
7753 * configure.ac: Don't add selftest-arch.{c,o} to
7754 CONFIG_{SRCS,OBS}.
7755 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
7756 preprocessor conditions.
7757
7758 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7759
7760 * configure.ac: Don't source bfd/development.sh.
7761 * selftest.m4: Modify comment.
7762 * configure: Re-generate.
7763
7764 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
7765
7766 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
7767 not "true" or "false".
7768 * configure: Re-generate.
7769
7770 2020-03-12 Christian Biesinger <cbiesinger@google.com>
7771
7772 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
7773 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
7774 renamed to arm_nbsd_supply_gregset.
7775 (fetch_register): Update to call arm_nbsd_supply_gregset.
7776 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
7777 (arm_netbsd_nat_target::fetch_registers): Update.
7778 (fetch_elfcore_registers): Removed.
7779 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
7780 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
7781 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
7782 not require NetBSD system headers.
7783 (arm_nbsd_regset): New struct.
7784 (arm_nbsd_iterate_over_regset_sections): New function.
7785 (arm_netbsd_init_abi_common): Updated to call
7786 set_gdbarch_iterate_over_regset_sections.
7787 * arm-nbsd-tdep.h: New file.
7788
7789 2020-03-11 Kevin Buettner <kevinb@redhat.com>
7790
7791 * symtab.c (find_pc_sect_line): Add check which prevents infinite
7792 recursion.
7793
7794 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
7795
7796 * configure: Re-generate.
7797
7798 2020-03-11 Tom Tromey <tromey@adacore.com>
7799
7800 * ada-typeprint.c (print_choices): Fix comment.
7801
7802 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
7803
7804 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
7805 previous item in the list, when the list has no items.
7806
7807 2020-03-11 Tom de Vries <tdevries@suse.de>
7808
7809 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
7810 PROP_LOCLIST handling code.
7811
7812 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
7813
7814 * buildsym-legacy.c (record_line): Pass extra parameter to
7815 record_line.
7816 * buildsym.c (buildsym_compunit::record_line): Take an extra
7817 parameter, reduce duplication in the line table, and record the
7818 is_stmt flag in the line table.
7819 * buildsym.h (buildsym_compunit::record_line): Add extra
7820 parameter.
7821 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
7822 non-statement lines.
7823 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
7824 this to the symtab builder.
7825 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
7826 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
7827 through to dwarf_record_line_1.
7828 * infrun.c (process_event_stop_test): When stepping, don't stop at
7829 a non-statement instruction, and only refresh the step info when
7830 we land in the middle of a line's range. Also add an extra
7831 comment.
7832 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
7833 field.
7834 * record-btrace.c (btrace_find_line_range): Only record lines
7835 marked as is-statement.
7836 * stack.c (frame_show_address): Show the frame address if we are
7837 in a non-statement sal.
7838 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
7839 (maintenance_print_one_line_table): Print a header for the is_stmt
7840 column, and include is_stmt information in the output.
7841 * symtab.c (find_pc_sect_line): Find lines marked as statements in
7842 preference to non-statements.
7843 (find_pcs_for_symtab_line): Prefer is-statement entries.
7844 (find_line_common): Likewise.
7845 * symtab.h (struct linetable_entry): Add is_stmt field.
7846 (struct symtab_and_line): Likewise.
7847 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
7848 arranging the line table.
7849
7850 2020-03-07 Tom de Vries <tdevries@suse.de>
7851
7852 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
7853 DIE.
7854
7855 2020-03-07 Tom Tromey <tom@tromey.com>
7856
7857 * valops.c (value_literal_complex): Remove obsolete comment.
7858 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
7859 comment.
7860
7861 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
7862
7863 * infrun.h: Forward-declare thread_info.
7864 (set_step_info): Add thread_info parameter, add doc.
7865 * infrun.c (set_step_info): Add thread_info parameter, move doc
7866 to header.
7867 * infrun.c (process_event_stop_test): Pass thread to
7868 set_step_info call.
7869 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
7870 set_step_info.
7871 (prepare_one_step): Add thread_info parameter, pass it to
7872 set_step_frame and prepare_one_step (recursive) call.
7873 (step_1): Pass thread to prepare_one_step call.
7874 (step_command_fsm::should_stop): Pass thread to
7875 prepare_one_step.
7876 (until_next_fsm): Pass thread to set_step_frame call.
7877 (finish_command): Pass thread to set_step_info call.
7878
7879 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
7880
7881 * windows-tdep.c (windows_solib_create_inferior_hook):
7882 Check if inferior is running.
7883
7884 2020-03-06 Tom de Vries <tdevries@suse.de>
7885
7886 * NEWS: Fix "the the".
7887 * ctfread.c: Same.
7888
7889 2020-03-06 Tom de Vries <tdevries@suse.de>
7890
7891 * psymtab.c (psymtab_to_symtab): Don't print "done.".
7892
7893 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
7894
7895 * .dir-locals.el: Add a comment referencing the other copies of
7896 this file.
7897
7898 2020-03-05 John Baldwin <jhb@FreeBSD.org>
7899
7900 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
7901 psargs.
7902
7903 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7904
7905 * .gitattributes: New file.
7906
7907 2020-03-04 Tom Tromey <tom@tromey.com>
7908
7909 * symmisc.c (print_symbol_bcache_statistics)
7910 (print_objfile_statistics): Update.
7911 * symfile.c (allocate_symtab): Use intern.
7912 * psymtab.c (partial_symtab::partial_symtab): Use intern.
7913 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
7914 macro_cache>: Remove.
7915 <string_cache>: New member.
7916 (struct objfile) <intern>: New methods.
7917 * elfread.c (elf_symtab_read): Use intern.
7918 * dwarf2/read.c (fixup_go_packaging): Intern package name.
7919 (dwarf2_compute_name, dwarf2_physname)
7920 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
7921 names.
7922 (guess_partial_die_structure_name): Update.
7923 (partial_die_info::fixup): Intern name.
7924 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
7925 name.
7926 (dwarf2_name): Intern name. Update.
7927 * buildsym.c (buildsym_compunit::get_macro_table): Use
7928 string_cache.
7929
7930 2020-03-04 Tom Tromey <tom@tromey.com>
7931
7932 * jit.c (bfd_open_from_target_memory): Make "target" const.
7933 * corefile.c (gnutarget): Now const.
7934 * gdbcore.h (gnutarget): Now const.
7935
7936 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
7937
7938 * NEWS: Mention support for WOW64 processes.
7939 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
7940 (amd64_windows_segment_register_p): Remove static.
7941 (_initialize_amd64_windows_nat): Update.
7942 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
7943 * i386-windows-nat.c (context_offset): Update.
7944 (i386_mappings): Rename and remove static.
7945 (i386_windows_segment_register_p): Remove static.
7946 (_initialize_i386_windows_nat): Update.
7947 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
7948 (STATUS_WX86_SINGLE_STEP): New macro.
7949 (EnumProcessModulesEx): New macro.
7950 (Wow64SuspendThread): New macro.
7951 (Wow64GetThreadContext): New macro.
7952 (Wow64SetThreadContext): New macro.
7953 (Wow64GetThreadSelectorEntry): New macro.
7954 (windows_set_context_register_offsets): Add static.
7955 (windows_set_segment_register_p): Likewise.
7956 (windows_add_thread): Adapt for WOW64 processes.
7957 (windows_fetch_one_register): Likewise.
7958 (windows_nat_target::fetch_registers): Likewise.
7959 (windows_store_one_register): Likewise.
7960 (display_selector): Likewise.
7961 (display_selectors): Likewise.
7962 (handle_exception): Likewise.
7963 (windows_continue): Likewise.
7964 (windows_nat_target::resume): Likewise.
7965 (windows_add_all_dlls): Likewise.
7966 (do_initial_windows_stuff): Likewise.
7967 (windows_nat_target::attach): Likewise.
7968 (windows_get_exec_module_filename): Likewise.
7969 (windows_nat_target::create_inferior): Likewise.
7970 (windows_xfer_siginfo): Likewise.
7971 (_initialize_loadable): Initialize Wow64SuspendThread,
7972 Wow64GetThreadContext, Wow64SetThreadContext,
7973 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
7974 * windows-nat.h (windows_set_context_register_offsets):
7975 Remove declaration.
7976 (windows_set_segment_register_p): Likewise.
7977 (i386_windows_segment_register_p): Add declaration.
7978 (amd64_windows_segment_register_p): Likewise.
7979
7980 2020-03-04 Luis Machado <luis.machado@linaro.org>
7981
7982 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
7983 in "info registers" for AArch64/ARM.
7984
7985 The change caused "info registers" to not print GPR's.
7986
7987 gdb/ChangeLog:
7988
7989 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
7990
7991 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
7992 when reg->group is empty and reggroup is not.
7993
7994 2020-03-03 Tom Tromey <tromey@adacore.com>
7995
7996 * dwarf2/frame.c (struct dwarf2_frame_cache)
7997 <checked_tailcall_bottom, entry_cfa_sp_offset,
7998 entry_cfa_sp_offset_p>: Remove members.
7999 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8000 (dwarf2_frame_prev_register): Don't call
8001 dwarf2_tailcall_sniffer_first.
8002 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8003 * frame-unwind.c (add_unwinder): New fuction.
8004 (frame_unwind_init): Use it. Add tailcall unwinder.
8005
8006 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8007 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8008
8009 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8010 value should be printed as true.
8011
8012 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8013
8014 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8015 (windows_init_abi): Set and use windows_so_ops.
8016
8017 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8018
8019 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8020 when verifying if dealing with a convenience variable.
8021
8022 2020-03-03 Luis Machado <luis.machado@linaro.org>
8023
8024 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8025
8026 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8027
8028 * infrun.c (gdbarch_supports_displaced_stepping): New.
8029 (use_displaced_stepping): Break up conditions in smaller pieces.
8030 Use gdbarch_supports_displaced_stepping.
8031 (displaced_step_prepare_throw): Use
8032 gdbarch_supports_displaced_stepping.
8033
8034 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8035
8036 * NEWS: Mention new behaviour of the history filename.
8037 * top.c (write_history_p): Add comment.
8038 (show_write_history_p): Add header comment, give a different
8039 message when history writing is on, but the history filename is
8040 empty.
8041 (history_filename): Add comment.
8042 (history_filename_empty): New function.
8043 (show_history_filename): Add header comment, give a different
8044 message when the filename is empty.
8045 (init_history): Compare history_filename against nullptr, and only
8046 read history if the filename is not empty.
8047 (set_history_filename): Add header comment, and only make
8048 non-empty filenames absolute.
8049 (init_main): Make the filename argument to 'set history filename'
8050 optional.
8051
8052 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8053
8054 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8055 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8056 (fetch_fp_register): Update.
8057 (fetch_fp_regs): Update.
8058 (store_fp_register): Update.
8059 (store_fp_regs): Update.
8060 (arm_netbsd_nat_target::read_description): New function.
8061 (fetch_elfcore_registers): Update.
8062
8063 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8064
8065 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8066 general_thread if the stop reply is missing a thread-id.
8067 (remote_target::process_stop_reply): Use the first non-exited
8068 thread if the target didn't pass a thread-id.
8069 * infrun.c (do_target_wait): Move call to
8070 switch_to_inferior_no_thread to ....
8071 (do_target_wait_1): ... here.
8072
8073 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8074
8075 * debuginfod-support.c: Include defs.h first.
8076
8077 2020-02-28 Tom de Vries <tdevries@suse.de>
8078
8079 * symfile.c (set_initial_language): Use default language for lookup.
8080
8081 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8082
8083 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8084 reader variable, pass `this` to read_cutu_die_from_dwo.
8085
8086 2020-02-27 Aaron Merey <amerey@redhat.com>
8087
8088 * source.c (open_source_file): Check for nullptr when computing
8089 srcpath.
8090
8091 2020-02-27 Tom Tromey <tromey@adacore.com>
8092
8093 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8094 member.
8095 (dwarf2_add_field): Don't update nfields.
8096 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8097
8098 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8099
8100 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8101 abs.
8102
8103 2020-02-26 Tom Tromey <tom@tromey.com>
8104
8105 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8106 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8107 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8108 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8109 per_cu_data.
8110
8111 2020-02-26 Tom Tromey <tom@tromey.com>
8112
8113 * dwarf2/index-write.c (psym_index_map): Change type.
8114 (add_address_entry_worker, write_one_signatured_type)
8115 (recursively_count_psymbols, recursively_write_psymbols)
8116 (class debug_names, psyms_seen_size, write_gdbindex)
8117 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8118
8119 2020-02-26 Aaron Merey <amerey@redhat.com>
8120
8121 * Makefile.in: Handle optional debuginfod support.
8122 * NEWS: Update.
8123 * README: Add --with-debuginfod summary.
8124 * config.in: Regenerate.
8125 * configure: Regenerate.
8126 * configure.ac: Handle optional debuginfod support.
8127 * debuginfod-support.c: debuginfod helper functions.
8128 * debuginfod-support.h: Ditto.
8129 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8130 summary.
8131 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8132 when a dwz file cannot be found.
8133 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8134 debuginfo file cannot be found.
8135 * source.c (open_source_file): Query debuginfod servers when a
8136 source file cannot be found.
8137 * top.c (print_gdb_configuration): Include
8138 --{with,without}-debuginfod in the output.
8139
8140 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8141
8142 * thread.c (thr_try_catch_cmd): Print thread name.
8143
8144 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8145
8146 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8147 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8148 dwarf2_fetch_die_type_sect_off): Move to...
8149 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8150 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8151 dwarf2_fetch_die_type_sect_off): ... here.
8152 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8153 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8154 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8155
8156 2020-02-26 Tom de Vries <tdevries@suse.de>
8157
8158 PR gdb/25603
8159 * symfile.c (set_initial_language): Exit-early if
8160 language_mode == language_mode_manual.
8161
8162 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8163
8164 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8165 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8166 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8167
8168 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8169
8170 * gdbtypes.c (create_array_type_with_stride): Handle negative
8171 array strides.
8172 * valarith.c (value_subscripted_rvalue): Likewise.
8173
8174 2020-02-25 Luis Machado <luis.machado@linaro.org>
8175
8176 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8177
8178 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8179
8180 * loc.h (dwarf2_get_die_type): Move to...
8181 * read.h (dwarf2_get_die_type): ... here.
8182 * read.c (dwarf2_get_die_type): Move doc to header.
8183
8184 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8185
8186 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8187 'gnulib/Makefile.in' to the list.
8188
8189 2020-02-24 Tom Tromey <tom@tromey.com>
8190
8191 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8192 Remove.
8193 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8194 XOBNEWVEC.
8195
8196 2020-02-24 Tom Tromey <tom@tromey.com>
8197
8198 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8199 New method.
8200 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8201 (dw2_do_instantiate_symtab, dw2_get_file_names)
8202 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8203
8204 2020-02-24 Tom Tromey <tom@tromey.com>
8205
8206 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8207 make_scoped_restore.
8208 (dwarf2_psymtab::read_symtab): Don't clear
8209 reading_partial_symbols.
8210
8211 2020-02-24 Tom de Vries <tdevries@suse.de>
8212
8213 PR gdb/25592
8214 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8215
8216 2020-02-24 Tom de Vries <tdevries@suse.de>
8217
8218 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8219 commands layout next/prev/regs.
8220
8221 2020-02-22 Tom Tromey <tom@tromey.com>
8222
8223 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8224 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8225
8226 2020-02-22 Tom Tromey <tom@tromey.com>
8227
8228 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8229
8230 2020-02-22 Tom Tromey <tom@tromey.com>
8231
8232 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8233 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8234 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8235 * tui/tui.c (_initialize_tui): Add usage text.
8236
8237 2020-02-22 Tom Tromey <tom@tromey.com>
8238
8239 * tui/tui-win.c (tui_set_focus_command)
8240 (tui_set_win_height_command): Use error_no_arg.
8241 (_initialize_tui_win): Update help text.
8242 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8243
8244 2020-02-22 Tom Tromey <tom@tromey.com>
8245
8246 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8247 * tui/tui-disasm.h (struct tui_disasm_window)
8248 <display_start_addr>: Declare.
8249 * tui/tui-source.h (struct tui_source_window)
8250 <display_start_addr>: Declare.
8251 * tui/tui-winsource.h (struct tui_source_window_base)
8252 <show_source_line, display_start_addr>: New methods.
8253 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8254 Rename and move to protected section.
8255 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8256 (tui_source_window_base::do_erase_source_content): Update.
8257 (tui_source_window_base::show_source_line): Now a method.
8258 (tui_source_window_base::show_source_content)
8259 (tui_source_window_base::tui_source_window_base)
8260 (tui_source_window_base::rerender)
8261 (tui_source_window_base::refill)
8262 (tui_source_window_base::do_scroll_horizontal)
8263 (tui_source_window_base::set_is_exec_point_at)
8264 (tui_source_window_base::update_breakpoint_info)
8265 (tui_source_window_base::update_exec_info): Update.
8266 * tui/tui-source.c (tui_source_window::set_contents)
8267 (tui_source_window::showing_source_p)
8268 (tui_source_window::do_scroll_vertical)
8269 (tui_source_window::location_matches_p)
8270 (tui_source_window::line_is_displayed): Update.
8271 (tui_source_window::display_start_addr): New method.
8272 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8273 (tui_disasm_window::do_scroll_vertical)
8274 (tui_disasm_window::location_matches_p): Update.
8275 (tui_disasm_window::display_start_addr): New method.
8276
8277 2020-02-22 Tom Tromey <tom@tromey.com>
8278
8279 * NEWS: Add entry for gdb.register_window_type.
8280 * tui/tui-layout.h (window_factory): New typedef.
8281 (tui_register_window): Declare.
8282 * tui/tui-layout.c (saved_tui_windows): New global.
8283 (tui_apply_current_layout): Use it.
8284 (tui_register_window): New function.
8285 * python/python.c (do_start_initialization): Call
8286 gdbpy_initialize_tui.
8287 (python_GdbMethods): Add "register_window_type" function.
8288 * python/python-internal.h (gdbpy_register_tui_window)
8289 (gdbpy_initialize_tui): Declare.
8290 * python/py-tui.c: New file.
8291 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8292
8293 2020-02-22 Tom Tromey <tom@tromey.com>
8294
8295 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8296
8297 2020-02-22 Tom Tromey <tom@tromey.com>
8298
8299 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8300 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8301 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8302 (tui_set_win_focus_to): Move from tui-win.c.
8303
8304 2020-02-22 Tom Tromey <tom@tromey.com>
8305
8306 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8307 functions.
8308 (known_window_types): New global.
8309 (tui_get_window_by_name): Reimplement.
8310 (initialize_known_windows): New function.
8311 (validate_window_name): Rewrite.
8312 (_initialize_tui_layout): Call initialize_known_windows.
8313
8314 2020-02-22 Tom Tromey <tom@tromey.com>
8315
8316 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8317 Remove constants.
8318 * tui/tui-winsource.h (struct tui_source_window_base)
8319 <tui_source_window_base>: Remove parameter.
8320 * tui/tui-winsource.c
8321 (tui_source_window_base::tui_source_window_base): Remove
8322 parameter.
8323 (tui_source_window_base::refill): Update.
8324 * tui/tui-stack.h (struct tui_locator_window)
8325 <tui_locator_window>: Update.
8326 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8327 Default the constructor.
8328 * tui/tui-regs.h (struct tui_data_item_window)
8329 <tui_data_item_window>: Default the constructor.
8330 (struct tui_data_window) <tui_data_window>: Likewise.
8331 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8332 Default the constructor.
8333 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8334 Default the constructor.
8335 <type>: Remove.
8336 (struct tui_win_info) <tui_win_info>: Default the constructor.
8337 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8338 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8339 Default the constructor.
8340
8341 2020-02-22 Tom Tromey <tom@tromey.com>
8342
8343 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8344 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8345 * tui/tui-win.c (tui_resize_all): Don't call
8346 tui_delete_invisible_windows.
8347 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8348 done.
8349 (tui_set_layout): Update.
8350 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8351 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8352 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8353
8354 2020-02-22 Tom Tromey <tom@tromey.com>
8355
8356 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8357 correctly.
8358
8359 2020-02-22 Tom Tromey <tom@tromey.com>
8360
8361 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8362
8363 2020-02-22 Tom Tromey <tom@tromey.com>
8364
8365 * tui/tui-winsource.h (struct tui_source_window_iterator)
8366 <inner_iterator>: New etytypedef.
8367 <tui_source_window_iterator>: Take "end" parameter.
8368 <tui_source_window_iterator>: Take iterator.
8369 <operator*, advance>: Update.
8370 <m_iter>: Change type.
8371 <m_end>: New field.
8372 (struct tui_source_windows) <begin, end>: Update.
8373 * tui/tui-layout.c (tui_windows): New global.
8374 (tui_apply_current_layout): Clear tui_windows.
8375 (tui_layout_window::apply): Update tui_windows.
8376 * tui/tui-data.h (tui_windows): Declare.
8377 (all_tui_windows): Now inline function.
8378 (class tui_window_iterator, struct all_tui_windows): Remove.
8379
8380 2020-02-22 Tom Tromey <tom@tromey.com>
8381
8382 PR tui/17850:
8383 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8384 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8385 "height" argument.
8386 (class tui_layout_window) <get_sizes>: Likewise.
8387 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8388 argument.
8389 <get_sizes>: Add "height" argument.
8390 <m_vertical>: New field.
8391 * tui/tui-layout.c (tui_layout_split::clone): Update.
8392 (tui_layout_split::get_sizes): Add "height" argument.
8393 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8394 (tui_new_layout_command): Parse "-horizontal".
8395 (_initialize_tui_layout): Update help string.
8396 (tui_layout_split::specification): Add "-horizontal" when needed.
8397 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8398 argument.
8399 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8400 New methods.
8401
8402 2020-02-22 Tom Tromey <tom@tromey.com>
8403
8404 * tui/tui-layout.h (enum tui_adjust_result): New.
8405 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8406 (class tui_layout_window) <adjust_size>: Return
8407 tui_adjust_result. Rewrite.
8408 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8409 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8410
8411 2020-02-22 Tom Tromey <tom@tromey.com>
8412
8413 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8414 parameter and return types.
8415 (class tui_layout_base) <specification>: Add "depth".
8416 (class tui_layout_window) <specification>: Add "depth".
8417 (class tui_layout_split) <specification>: Add "depth".
8418 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8419 and return types.
8420 (tui_new_layout_command): Parse sub-layouts.
8421 (_initialize_tui_layout): Update help string.
8422 (tui_layout_window::specification): Add "depth".
8423 (add_layout_command): Update.
8424
8425 2020-02-22 Tom Tromey <tom@tromey.com>
8426
8427 * NEWS: Add "tui new-layout" item.
8428 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8429 Add new-layout command to help text.
8430 (validate_window_name): New function.
8431 (tui_new_layout_command): New function.
8432 (_initialize_tui_layout): Register "new-layout".
8433 (tui_layout_window::specification): New method.
8434 (tui_layout_window::specification): New method.
8435 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8436 method.
8437 (class tui_layout_window) <specification>: New method.
8438 (class tui_layout_split) <specification>: New method.
8439
8440 2020-02-22 Tom Tromey <tom@tromey.com>
8441
8442 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8443 * tui/tui-win.c (window_name_completer): Update comment.
8444 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8445 Declare method.
8446 (class tui_layout_window) <replace_window>: Likewise.
8447 (class tui_layout_split) <replace_window>: Likewise.
8448 (tui_set_layout): Don't declare.
8449 (tui_set_initial_layout): Declare function.
8450 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8451 (asm_regs_layout): New globals.
8452 (tui_current_layout, show_layout): Remove.
8453 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8454 (find_layout, tui_apply_layout): New function.
8455 (layout_completer): Remove.
8456 (tui_next_layout): Reimplement.
8457 (tui_next_layout_command): New function.
8458 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8459 (tui_regs_layout): Reimplement.
8460 (tui_regs_layout_command): New function.
8461 (extract_display_start_addr): Rewrite.
8462 (next_layout, prev_layout): Remove.
8463 (tui_layout_window::replace_window): New method.
8464 (tui_layout_split::replace_window): New method.
8465 (destroy_layout): New function.
8466 (layout_list): New global.
8467 (add_layout_command): New function.
8468 (initialize_layouts): Update.
8469 (tui_layout_command): New function.
8470 (_initialize_tui_layout): Install "layout" commands.
8471 * tui/tui-data.h (enum tui_layout_type): Remove.
8472 (tui_current_layout): Don't declare.
8473
8474 2020-02-22 Tom Tromey <tom@tromey.com>
8475
8476 * tui/tui-regs.c (tui_reg_layout): Remove.
8477 (tui_reg_command): Use tui_regs_layout.
8478 * tui/tui-layout.h (tui_reg_command): Declare.
8479 * tui/tui-layout.c (tui_reg_command): New function.
8480
8481 2020-02-22 Tom Tromey <tom@tromey.com>
8482
8483 * tui/tui.c (tui_rl_delete_other_windows): Call
8484 tui_remove_some_windows.
8485 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8486 Declare method.
8487 (class tui_layout_window) <remove_windows>: New method.
8488 (class tui_layout_split) <remove_windows>: Declare.
8489 (tui_remove_some_windows): Declare.
8490 * tui/tui-layout.c (tui_remove_some_windows): New function.
8491 (tui_layout_split::remove_windows): New method.
8492
8493 2020-02-22 Tom Tromey <tom@tromey.com>
8494
8495 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8496 * tui/tui-layout.h (tui_next_layout): Declare.
8497 * tui/tui-layout.c (tui_next_layout): New function.
8498
8499 2020-02-22 Tom Tromey <tom@tromey.com>
8500
8501 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8502 correct coordinates.
8503
8504 2020-02-22 Tom Tromey <tom@tromey.com>
8505
8506 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8507 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8508 DATA_WIN case.
8509
8510 2020-02-22 Tom Tromey <tom@tromey.com>
8511
8512 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8513 TUI_DISASM_WIN, not tui_win_list.
8514
8515 2020-02-22 Tom Tromey <tom@tromey.com>
8516
8517 * valprint.c (generic_val_print_enum_1)
8518 (val_print_type_code_flags): Style member names.
8519 * rust-lang.c (val_print_struct, rust_print_enum)
8520 (rust_print_struct_def, rust_internal_print_type): Style member
8521 names.
8522 * p-valprint.c (pascal_object_print_value_fields): Style member
8523 names. Only call fprintf_symbol_filtered for static members.
8524 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8525 * f-valprint.c (f_val_print): Style member names.
8526 * f-typeprint.c (f_type_print_base): Style member names.
8527 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8528 call fprintf_symbol_filtered for static members.
8529 (cp_print_class_member): Style member names.
8530 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8531 member names.
8532 * ada-valprint.c (ada_print_scalar): Style enum names.
8533 (ada_val_print_enum): Likewise.
8534 * ada-typeprint.c (print_enum_type): Style enum names.
8535
8536 2020-02-21 Tom Tromey <tom@tromey.com>
8537
8538 * psympriv.h (struct partial_symtab): Update comment.
8539
8540 2020-02-21 Tom Tromey <tromey@adacore.com>
8541
8542 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8543 type is CORE_ADDR.
8544
8545 2020-02-21 Tom de Vries <tdevries@suse.de>
8546
8547 PR gdb/25534
8548 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8549 if dependencies[i]->user != NULL.
8550
8551 2020-02-21 Ali Tamur <tamur@google.com>
8552
8553 * dwarf2/read.c (dwarf2_name): Add null check.
8554
8555 2020-02-20 Tom Tromey <tom@tromey.com>
8556
8557 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8558 ">=", in binary search.
8559 (dwarf2_find_containing_comp_unit): New overload.
8560 (run_test): New self-test.
8561 (_initialize_dwarf2_read): Register new test.
8562
8563 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8564
8565 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8566 * riscv-tdep.h: Likewise.
8567 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8568 rv32-only CSR.
8569 * features/riscv/64bit-csr.xml: Regenerated.
8570
8571 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8572 Tom Tromey <tom@tromey.com>
8573
8574 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8575 of 'fputc_unfiltered'.
8576 (putchar_unfiltered): Call 'fputc_unfiltered'.
8577 (fputc_unfiltered): Call 'fputs_unfiltered'.
8578
8579 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8580
8581 * config.in: Regenerate.
8582 * configure: Regenerate.
8583 * configure.ac: Add --with-python-libdir option.
8584 * main.c: Use WITH_PYTHON_LIBDIR.
8585
8586 2020-02-19 Tom Tromey <tom@tromey.com>
8587
8588 * symtab.c (general_symbol_info::compute_and_set_names): Use
8589 obstack_strndup. Simplify call to symbol_set_demangled_name.
8590
8591 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8592
8593 * dwarf2/read.c (allocate_signatured_type_table,
8594 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8595 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8596 Remove objfile parameter, update all callers.
8597
8598 2020-02-19 Doug Evans <dje@google.com>
8599
8600 PR rust/25535
8601 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8602 rust_enum_variant calculation.
8603
8604 2020-02-19 Tom Tromey <tromey@adacore.com>
8605
8606 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8607
8608 2020-02-19 Tom Tromey <tromey@adacore.com>
8609
8610 * ada-lang.c (cache_symbol): Use obstack_strdup.
8611
8612 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8613
8614 * configure: Regenerate.
8615
8616 2020-02-19 Tom Tromey <tromey@adacore.com>
8617
8618 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8619 NULL check.
8620
8621 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8622
8623 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8624
8625 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8626
8627 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8628 if GDBSERVER is not defined.
8629 (riscv_tdesc_cache): Likewise, also store const target_desc.
8630 (STATIC_IN_GDB): Define.
8631 (riscv_create_target_description): Update declaration with
8632 STATIC_IN_GDB.
8633 (riscv_lookup_target_description): New function, only define if
8634 GDBSERVER is not defined.
8635 * arch/riscv.h (riscv_create_target_description): Declare only
8636 when GDBSERVER is defined.
8637 (riscv_lookup_target_description): New declaration when GDBSERVER
8638 is not defined.
8639 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8640 (riscv_linux_read_features): ...this, and return
8641 riscv_gdbarch_features instead of target_desc.
8642 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8643 (riscv_linux_read_description): Rename to...
8644 (riscv_linux_read_features): ...this.
8645 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8646 Update to use riscv_gdbarch_features and
8647 riscv_lookup_target_description.
8648 * riscv-tdep.c (riscv_find_default_target_description): Use
8649 riscv_lookup_target_description instead of
8650 riscv_create_target_description.
8651
8652 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8653
8654 * valprint.c (generic_val_print_enum_1): When printing a flag
8655 enum with value 0 and there is no enumerator with value 0, print
8656 just "0" instead of "(unknown: 0x0)".
8657
8658 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8659
8660 * valprint.c (generic_val_print_enum_1): Print unknown part of
8661 flag enum in hex.
8662
8663 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8664
8665 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8666 flag enums to contain duplicate enumerators.
8667 * valprint.c (generic_val_print_enum_1): Update comment.
8668
8669 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8670
8671 * dwarf2/read.c: Include "count-one-bits.h".
8672 (update_enumeration_type_from_children): If an enumerator has
8673 multiple bits set, don't treat the enumeration as a "flag enum".
8674 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8675 of flag enums have 0 or 1 bit set.
8676
8677 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8678
8679 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8680 conversion.
8681 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8682 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8683 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8684 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8685 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8686
8687 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8688
8689 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8690
8691 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8692
8693 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8694 displaced_step_closure_up.
8695 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8696 (struct displaced_step_closure_up):
8697 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8698 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8699 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8700 Likewise.
8701 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8702 * gdbarch.c, gdbarch.h: Re-generate.
8703 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8704 displaced_step_closure_up.
8705 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8706 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8707 * infrun.h (displaced_step_closure_up): New type alias.
8708 (struct displaced_step_inferior_state) <step_closure>: Change
8709 type to displaced_step_closure_up.
8710 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8711 displaced_step_closure_up.
8712 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8713
8714 2020-02-14 Tom Tromey <tom@tromey.com>
8715
8716 * minidebug.c (gnu_debug_key): New global.
8717 (find_separate_debug_file_in_section): Use it.
8718
8719 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8720
8721 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8722 std::unique_ptr.
8723 * gdbarch.c: Re-generate.
8724 * gdbarch.h: Re-generate.
8725 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8726 change.
8727 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8728 type to std::unique_ptr.
8729 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8730 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8731 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8732 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8733 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8734 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8735 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8736 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8737 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8738
8739 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8740
8741 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8742 std::unique_ptr.
8743 (displaced_step_clear): Rename to...
8744 (displaced_step_reset): ... this. Just call displaced->reset ().
8745 (displaced_step_clear_cleanup): Rename to...
8746 (displaced_step_reset_cleanup): ... this.
8747 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8748 (displaced_step_fixup): Likewise.
8749 (resume_1): Likewise.
8750 (handle_inferior_event): Restore child's memory before calling
8751 displaced_step_fixup on the parent.
8752 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
8753 to std::unique_ptr.
8754 <step_closure>: Change type to std::unique_ptr.
8755
8756 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
8757
8758 * arm-tdep.c: Include count-one-bits.h.
8759 (cleanup_block_store_pc): Use count_one_bits.
8760 (cleanup_block_load_pc): Use count_one_bits.
8761 (arm_copy_block_xfer): Use count_one_bits.
8762 (thumb2_copy_block_xfer): Use count_one_bits.
8763 (thumb_copy_pop_pc_16bit): Use count_one_bits.
8764 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
8765 (thumb_get_next_pcs_raw): Use count_one_bits.
8766 (arm_get_next_pcs_raw): Use count_one_bits_l.
8767 * arch/arm.c (bitcount): Remove.
8768 * arch/arm.h (bitcount): Remove.
8769
8770 2020-02-14 Tom Tromey <tromey@adacore.com>
8771
8772 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
8773 Update.
8774 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
8775 * dwarf2/loc.c (call_site_find_chain_1): Return
8776 unique_xmalloc_ptr.
8777 (call_site_find_chain): Likewise.
8778
8779 2020-02-14 Richard Biener <rguenther@suse.de>
8780
8781 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
8782 on expression with division operators.
8783
8784 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8785
8786 * MAINTAINERS (Write After Approval): Adding myself.
8787
8788 2020-02-12 Tom Tromey <tom@tromey.com>
8789
8790 * event-loop.c (event_data, gdb_event, event_handler_func):
8791 Remove.
8792
8793 2020-02-12 Tom Tromey <tom@tromey.com>
8794
8795 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
8796 (dwarf2_frame_objfile_data): Add comment.
8797 (find_comp_unit, set_comp_unit): New functions.
8798 (dwarf2_frame_find_fde): Use find_comp_unit.
8799 (dwarf2_build_frame_info): Use set_comp_unit.
8800
8801 2020-02-12 Tom Tromey <tom@tromey.com>
8802
8803 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
8804 (comp_unit): Don't initialize objfile.
8805 (execute_cfa_program): Add text_offset parameter.
8806 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
8807 (dwarf2_frame_cache): Update.
8808 (dwarf2_build_frame_info): Don't set "objfile" member.
8809
8810 2020-02-12 Tom Tromey <tom@tromey.com>
8811
8812 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
8813 (decode_frame_entry): Likewise.
8814 (dwarf2_build_frame_info): Update.
8815
8816 2020-02-12 Tom Tromey <tom@tromey.com>
8817
8818 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
8819 (decode_frame_entry_1): Use the comp_unit obstack.
8820
8821 2020-02-12 Tom Tromey <tom@tromey.com>
8822
8823 * dwarf2/frame.c (struct comp_unit): Add initializers and
8824 constructor.
8825 (dwarf2_frame_objfile_data): Store a comp_unit.
8826 (dwarf2_frame_find_fde): Update.
8827 (dwarf2_build_frame_info): Use "new".
8828
8829 2020-02-12 Tom Tromey <tom@tromey.com>
8830
8831 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
8832 (dwarf2_fde_table): Typedef for std::vector.
8833 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
8834 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
8835 (decode_frame_entry): Update.
8836 (dwarf2_build_frame_info): Use "new".
8837
8838 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8839
8840 * arm-tdep.c (arm_gdbarch_init): Update.
8841 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
8842 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
8843 have_neon, is_m>: Change to bool.
8844
8845 2020-02-12 Christian Biesinger <cbiesinger@google.com>
8846
8847 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
8848
8849 2020-02-12 Tom Tromey <tom@tromey.com>
8850
8851 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
8852
8853 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
8854
8855 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
8856 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
8857
8858 2020-02-11 Tom Tromey <tom@tromey.com>
8859
8860 * psymtab.h: Update comment.
8861
8862 2020-02-11 Tom Tromey <tom@tromey.com>
8863
8864 * gdb_obstack.h (struct auto_obstack): Use
8865 DISABLE_COPY_AND_ASSIGN.
8866
8867 2020-02-11 Tom Tromey <tom@tromey.com>
8868
8869 * dwarf2/frame.h (struct objfile): Don't forward declare.
8870
8871 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8872
8873 * cris-tdep.c (cris_supply_gregset): Change signature to match
8874 what struct regset expects.
8875 (cris_regset): New struct.
8876 (fetch_core_registers): Remove.
8877 (cris_iterate_over_regset_sections): New function.
8878 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
8879 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
8880
8881 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8882
8883 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
8884 registers.
8885
8886 2020-02-11 Christian Biesinger <cbiesinger@google.com>
8887
8888 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
8889
8890 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8891
8892 * configure: Re-generate.
8893
8894 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8895
8896 * configure: Re-generate.
8897
8898 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
8899
8900 * acinclude: Update warning.m4 path.
8901 * warning.m4: Move to gdbsupport.
8902
8903 2020-02-11 Tom Tromey <tromey@adacore.com>
8904
8905 * remote.c (remote_console_output): Update.
8906 * printcmd.c (printf_command): Update.
8907 * event-loop.c (gdb_wait_for_event): Update.
8908 * linux-nat.c (sigchld_handler): Update.
8909 * remote-sim.c (gdb_os_write_stdout): Update.
8910 (gdb_os_flush_stdout): Update.
8911 (gdb_os_flush_stderr): Update.
8912 (gdb_os_write_stderr): Update.
8913 * exceptions.c (print_exception): Update.
8914 * remote-fileio.c (remote_fileio_func_read): Update.
8915 (remote_fileio_func_write): Update.
8916 * tui/tui.c (tui_enable): Update.
8917 * tui/tui-interp.c (tui_interp::init): Update.
8918 * utils.c (init_page_info): Update.
8919 (putchar_unfiltered, fputc_unfiltered): Update.
8920 (gdb_flush): Update.
8921 (emit_style_escape): Update.
8922 (flush_wrap_buffer, fputs_maybe_filtered): Update.
8923 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
8924 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
8925 (stderr_file::write): Update.
8926 (stderr_file::puts): Update.
8927 * ui-file.h (ui_file_isatty, ui_file_write)
8928 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
8929 (ui_file_puts): Don't declare.
8930
8931 2020-02-10 Tom de Vries <tdevries@suse.de>
8932
8933 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
8934 sentinel to char *.
8935
8936 2020-02-09 Tom de Vries <tdevries@suse.de>
8937
8938 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
8939 filename if it matches "<artificial>".
8940
8941 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8942
8943 * windows-tdep.c (struct enum_value_name): New struct.
8944 (create_enum): New function.
8945 (windows_get_siginfo_type): Create and use enum types.
8946
8947 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
8948
8949 * NEWS: Mention $_siginfo support for Windows.
8950 * windows-nat.c (handle_exception): Set siginfo_er.
8951 (windows_nat_target::mourn_inferior): Reset siginfo_er.
8952 (windows_xfer_siginfo): New function.
8953 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
8954 * windows-tdep.c (struct windows_gdbarch_data): New struct.
8955 (init_windows_gdbarch_data): New function.
8956 (get_windows_gdbarch_data): New function.
8957 (windows_get_siginfo_type): New function.
8958 (windows_init_abi): Register windows_get_siginfo_type.
8959 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
8960
8961 2020-02-08 Tom Tromey <tom@tromey.com>
8962
8963 * dwarf2/read.c (class cutu_reader) <cutu_reader,
8964 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
8965 <keep>: Declare method.
8966 <m_keep>: Remove member.
8967 <~cutu_reader>: Remove.
8968 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8969 (cutu_reader::cutu_reader): Update.
8970 (cutu_reader::keep): Rename from ~cutu_reader.
8971 (process_psymtab_comp_unit, build_type_psymtabs_1)
8972 (process_skeletonless_type_unit, load_partial_comp_unit)
8973 (load_full_comp_unit, dwarf2_read_addr_index)
8974 (read_signatured_type): Update.
8975
8976 2020-02-08 Tom Tromey <tom@tromey.com>
8977
8978 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
8979 "want_partial_unit" parameter.
8980 (process_psymtab_comp_unit): Change want_partial_unit to bool.
8981 Inline check for DW_TAG_partial_unit.
8982 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
8983
8984 2020-02-08 Tom Tromey <tom@tromey.com>
8985
8986 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
8987 read.c.
8988 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
8989 read.c.
8990
8991 2020-02-08 Tom Tromey <tom@tromey.com>
8992
8993 * dwarf2/read.c (read_address): Move to comp-unit.c.
8994 (dwarf2_rnglists_process, dwarf2_ranges_process)
8995 (read_attribute_value, dwarf_decode_lines_1)
8996 (var_decode_location, decode_locdesc): Update.
8997 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
8998 read.c. Remove "cu" parameter.
8999 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9000 method.
9001
9002 2020-02-08 Tom Tromey <tom@tromey.com>
9003
9004 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9005 (read_indirect_line_string): Update.
9006 * dwarf2/comp-unit.c (read_offset): Remove.
9007 (read_comp_unit_head): Update.
9008 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9009 method.
9010 (read_offset): Don't declare.
9011
9012 2020-02-08 Tom Tromey <tom@tromey.com>
9013
9014 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9015 * dwarf2/read.c (struct comp_unit_head): Move to
9016 dwarf2/comp-unit.h.
9017 (enum class rcuh_kind): Move to comp-unit.h.
9018 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9019 (read_comp_unit_head, error_check_comp_unit_head)
9020 (read_and_check_comp_unit_head): Move to comp-unit.c.
9021 (read_offset, dwarf_unit_type_name): Likewise.
9022 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9023 (cutu_reader::cutu_reader, read_call_site_scope)
9024 (find_partial_die, follow_die_offset): Update.
9025 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9026
9027 2020-02-08 Tom Tromey <tom@tromey.com>
9028
9029 * dwarf2/read.c (read_offset_1): Move to leb.c.
9030 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9031 (dwarf_decode_macro_bytes): Update.
9032 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9033 * dwarf2/leb.h (read_offset): Declare.
9034
9035 2020-02-08 Tom Tromey <tom@tromey.com>
9036
9037 * dwarf2/read.c (dwarf2_section_size): Remove.
9038 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9039 Update.
9040 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9041
9042 2020-02-08 Tom Tromey <tom@tromey.com>
9043
9044 * dwarf2/read.c (read_initial_length): Move to leb.c.
9045 * dwarf2/leb.h (read_initial_length): Declare.
9046 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9047 handle_nonstd parameter.
9048 * dwarf2/frame.c (read_initial_length): Remove.
9049 (decode_frame_entry_1): Update.
9050
9051 2020-02-08 Tom Tromey <tom@tromey.com>
9052
9053 * dwarf2/loc.c (dwarf2_find_location_expression)
9054 (dwarf_evaluate_loc_desc::get_tls_address)
9055 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9056 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9057 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9058 (dwarf2_compile_property_to_c)
9059 (dwarf2_loc_desc_get_symbol_read_needs)
9060 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9061 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9062 (loclist_describe_location, loclist_tracepoint_var_ref)
9063 (loclist_generate_c_location): Update.
9064 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9065 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9066 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9067 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9068 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9069 (dwarf2_per_cu_data::addr_size)
9070 (dwarf2_per_cu_data::ref_addr_size)
9071 (dwarf2_per_cu_data::text_offset)
9072 (dwarf2_per_cu_data::addr_type): Now methods.
9073 (per_cu_header_read_in): Make per_cu "const".
9074 (dwarf2_version): Remove.
9075 (dwarf2_per_cu_data::int_type): Now a method.
9076 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9077 (set_die_type, read_array_type, read_subrange_index_type)
9078 (read_tag_string_type, read_subrange_type): Update.
9079 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9080 offset_size, ref_addr_size, text_offset, addr_type, version,
9081 objfile, int_type, addr_sized_int_type>: Declare methods.
9082
9083 2020-02-08 Tom Tromey <tom@tromey.com>
9084
9085 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9086 Move earlier.
9087
9088 2020-02-08 Tom Tromey <tom@tromey.com>
9089
9090 * dwarf2/read.h (dwarf_line_debug): Declare.
9091 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9092 * dwarf2/read.c: Move line_header code to new files.
9093 (dwarf_line_debug): No longer static.
9094 * dwarf2/line-header.c: New file.
9095 * dwarf2/line-header.h: New file.
9096
9097 2020-02-08 Tom Tromey <tom@tromey.com>
9098
9099 * dwarf2/read.c (struct line_header) <file_full_name,
9100 file_file_name>: Return unique_xmalloc_ptr.
9101 (line_header::file_file_name): Update.
9102 (line_header::file_full_name): Update.
9103 (dw2_get_file_names_reader): Update.
9104 (macro_start_file): Update.
9105
9106 2020-02-08 Tom Tromey <tom@tromey.com>
9107
9108 * dwarf2/read.c (struct line_header) <file_full_name,
9109 file_file_name>: Declare methods.
9110 (dw2_get_file_names_reader): Update.
9111 (file_file_name): Now a method.
9112 (file_full_name): Likewise.
9113 (macro_start_file): Update.
9114
9115 2020-02-08 Tom Tromey <tom@tromey.com>
9116
9117 * dwarf2/read.c (dwarf_always_disassemble)
9118 (show_dwarf_always_disassemble): Move to loc.c.
9119 (_initialize_dwarf2_read): Move "always-disassemble" registration
9120 to loc.c.
9121 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9122 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9123 static.
9124 (show_dwarf_always_disassemble): Move from read.c.
9125 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9126
9127 2020-02-08 Tom Tromey <tom@tromey.com>
9128
9129 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9130 (create_quick_file_names_table): Return htab_up.
9131 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9132 Update.
9133 * dwarf2/read.h (struct dwarf2_per_objfile)
9134 <quick_file_names_table>: Now htab_up.
9135
9136 2020-02-08 Tom Tromey <tom@tromey.com>
9137
9138 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9139
9140 2020-02-08 Tom Tromey <tom@tromey.com>
9141
9142 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9143 Rewrite.
9144 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9145 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9146 (abbrev_table::abbrev_table): No longer inline.
9147 (ABBREV_HASH_SIZE): Remove.
9148 (abbrev_table::m_abbrevs): Now an htab_up.
9149
9150 2020-02-08 Tom Tromey <tom@tromey.com>
9151
9152 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9153 (cutu_reader): Update.
9154 (build_type_psymtabs_1): Update.
9155 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9156 (abbrev_table::alloc_abbrev): Update.
9157 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9158 (abbrev_table::read): New static method, renamed from
9159 abbrev_table_read_table.
9160 (abbrev_table::alloc_abbrev)
9161 (abbrev_table::add_abbrev): Now private.
9162 (abbrev_table::abbrev_table): Now private.
9163 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9164
9165 2020-02-08 Tom Tromey <tom@tromey.com>
9166
9167 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9168 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9169 htab_up.
9170
9171 2020-02-08 Tom Tromey <tom@tromey.com>
9172
9173 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9174 htab_up.
9175 (lookup_dwo_unit_in_dwp): Update.
9176 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9177 on obstack.
9178
9179 2020-02-08 Tom Tromey <tom@tromey.com>
9180
9181 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9182 obstack.
9183
9184 2020-02-08 Tom Tromey <tom@tromey.com>
9185
9186 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9187 line_header_hash.
9188 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9189 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9190 Change type to htab_up.
9191
9192 2020-02-08 Tom Tromey <tom@tromey.com>
9193
9194 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9195 htab_up. Don't allocate on obstack.
9196 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9197 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9198 Change type to htab_up.
9199
9200 2020-02-08 Tom Tromey <tom@tromey.com>
9201
9202 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9203 Change type to htab_up.
9204 * dwarf2/read.c (create_signatured_type_table_from_index)
9205 (create_signatured_type_table_from_debug_names)
9206 (create_all_type_units, add_type_unit)
9207 (lookup_dwo_signatured_type, lookup_signatured_type)
9208 (process_skeletonless_type_unit): Update.
9209 (create_debug_type_hash_table, create_debug_types_hash_table):
9210 Change type of types_htab.
9211 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9212 htab_up. Don't allocate on obstack.
9213 (create_cus_hash_table): Change type of cus_htab parameter.
9214 (struct dwo_file) <cus, tus>: Now htab_up.
9215 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9216 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9217 (queue_and_load_all_dwo_tus): Update.
9218 * dwarf2/index-write.c (write_gdbindex): Update.
9219 (write_debug_names): Update.
9220
9221 2020-02-08 Tom Tromey <tom@tromey.com>
9222
9223 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9224 dwarf2/read.c. Remove "next" member. Add constructor ntad
9225 destructor.
9226 (struct dwarf2_per_objfile) <queue>: New member.
9227 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9228 dwarf2/read.h.
9229 (dwarf2_queue, dwarf2_queue_tail): Remove.
9230 (class dwarf2_queue_guard): Add parameter to constructor. Use
9231 DISABLE_COPY_AND_ASSIGN.
9232 <m_per_objfile>: New member.
9233 <~dwarf2_queue_guard>: Rewrite.
9234 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9235 Update.
9236 (~dwarf2_queue_item): New.
9237
9238 2020-02-08 Tom Tromey <tom@tromey.com>
9239
9240 * dwarf2/read.c (struct die_info) <has_children>: New member.
9241 (dw2_get_file_names_reader): Remove has_children.
9242 (dw2_get_file_names): Update.
9243 (read_cutu_die_from_dwo): Remove has_children.
9244 (cutu_reader::init_tu_and_read_dwo_dies)
9245 (cutu_reader::cutu_reader): Update.
9246 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9247 Remove has_children.
9248 (build_type_psymtabs_1, process_skeletonless_type_unit)
9249 (load_partial_comp_unit, load_full_comp_unit): Update.
9250 (create_dwo_cu_reader): Remove has_children.
9251 (create_cus_hash_table, read_die_and_children): Update.
9252 (read_full_die_1,read_full_die): Remove has_children.
9253 (read_signatured_type): Update.
9254 (class cutu_reader) <has_children>: Remove.
9255
9256 2020-02-08 Tom Tromey <tom@tromey.com>
9257
9258 * dwarf2/expr.c: Rename from dwarf2expr.c.
9259 * dwarf2/expr.h: Rename from dwarf2expr.h.
9260 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9261 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9262 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9263 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9264 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9265 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9266 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9267 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9268 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9269 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9270 * dwarf2/loc.c: Rename from dwarf2loc.c.
9271 * dwarf2/loc.h: Rename from dwarf2loc.h.
9272 * dwarf2/read.c: Rename from dwarf2read.c.
9273 * dwarf2/read.h: Rename from dwarf2read.h.
9274 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9275 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9276 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9277 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9278 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9279 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9280 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9281 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9282 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9283 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9284 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9285 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9286 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9287 Update.
9288 * Makefile.in (COMMON_SFILES): Update.
9289 (HFILES_NO_SRCDIR): Update.
9290
9291 2020-02-08 Tom Tromey <tom@tromey.com>
9292
9293 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9294 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9295
9296 2020-02-08 Tom Tromey <tom@tromey.com>
9297
9298 * dwarf2read.h (struct die_info): Don't declare.
9299
9300 2020-02-08 Tom Tromey <tom@tromey.com>
9301
9302 * dwarf2read.h (die_info_ptr): Remove typedef.
9303
9304 2020-02-08 Tom Tromey <tom@tromey.com>
9305
9306 * dwarf2read.c (read_call_site_scope)
9307 (handle_data_member_location, dwarf2_add_member_fn)
9308 (mark_common_block_symbol_computed, read_common_block)
9309 (attr_to_dynamic_prop, partial_die_info::read)
9310 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9311 (dwarf2_symbol_mark_computed, set_die_type): Update.
9312 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9313 method.
9314 (attr_form_is_block): Don't declare.
9315 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9316
9317 2020-02-08 Tom Tromey <tom@tromey.com>
9318
9319 * dwarf2read.c (dwarf2_find_base_address, )
9320 (read_call_site_scope, rust_containing_type)
9321 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9322 (handle_data_member_location, dwarf2_add_member_fn)
9323 (get_alignment, read_structure_type, process_structure_scope)
9324 (mark_common_block_symbol_computed, read_common_block)
9325 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9326 (partial_die_info::read, read_attribute_value, new_symbol)
9327 (lookup_die_type, dwarf2_get_ref_die_offset)
9328 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9329 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9330 (dwarf2_symbol_mark_computed): Update.
9331 * dwarf2/attribute.h (struct attribute) <value_as_address,
9332 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9333 methods.
9334 (value_as_address, attr_form_is_section_offset)
9335 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9336 * dwarf2/attribute.c (attribute::value_as_address)
9337 (attribute::form_is_section_offset, attribute::form_is_constant)
9338 (attribute::form_is_ref): Now methods.
9339
9340 2020-02-08 Tom Tromey <tom@tromey.com>
9341
9342 * dwarf2read.c (struct attribute, DW_STRING)
9343 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9344 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9345 (attr_form_is_block, attr_form_is_section_offset)
9346 (attr_form_is_constant, attr_form_is_ref): Move.
9347 * dwarf2/attribute.h: New file.
9348 * dwarf2/attribute.c: New file, from dwarf2read.c.
9349 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9350
9351 2020-02-08 Tom Tromey <tom@tromey.com>
9352
9353 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9354 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9355 Move.
9356 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9357 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9358 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9359 abbrev.c.
9360 * dwarf2/abbrev.h: New file.
9361 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9362 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9363
9364 2020-02-08 Tom Tromey <tom@tromey.com>
9365
9366 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9367 (dwarf2_section_size, dwarf2_get_section_info)
9368 (create_signatured_type_table_from_debug_names)
9369 (create_addrmap_from_aranges, read_debug_names_from_section)
9370 (get_gdb_index_contents_from_section, read_comp_unit_head)
9371 (error_check_comp_unit_head, read_abbrev_offset)
9372 (create_debug_type_hash_table, init_cu_die_reader)
9373 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9374 (read_comp_units_from_section, create_cus_hash_table)
9375 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9376 (create_dwp_v2_section, dwarf2_rnglists_process)
9377 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9378 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9379 (read_indirect_string_from_dwz, read_addr_index_1)
9380 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9381 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9382 (fill_in_loclist_baton): Update.
9383 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9384 get_containing_section, get_bfd_owner, get_bfd_section,
9385 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9386 (dwarf2_read_section, get_section_name, get_section_file_name)
9387 (get_containing_section, get_section_bfd_owner)
9388 (get_section_bfd_section, get_section_name, get_section_file_name)
9389 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9390 declare.
9391 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9392 (dwarf2_section_info::get_bfd_owner)
9393 (dwarf2_section_info::get_bfd_section)
9394 (dwarf2_section_info::get_name)
9395 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9396 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9397 (dwarf2_section_info::read): Now methods.
9398 * dwarf-index-write.c (class debug_names): Update.
9399
9400 2020-02-08 Tom Tromey <tom@tromey.com>
9401
9402 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9403 Move to dwarf2/section.h.
9404 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9405 (get_section_bfd_section, get_section_name)
9406 (get_section_file_name, get_section_id, get_section_flags)
9407 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9408 dwarf2/section.c.
9409 * dwarf2/section.h: New file.
9410 * dwarf2/section.c: New file, from dwarf2read.c.
9411 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9412
9413 2020-02-08 Tom Tromey <tom@tromey.com>
9414
9415 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9416 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9417 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9418 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9419 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9420 * dwarf2/leb.h: New file, from dwarf2read.c.
9421 * dwarf2/leb.c: New file, from dwarf2read.c.
9422 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9423 Remove.
9424 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9425 (COMMON_SFILES): Add dwarf2/leb.c.
9426
9427 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9428
9429 GDB 9.1 released.
9430
9431 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9432
9433 PR gdb/25190:
9434 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9435 * gdb/remote.c (remote_console_output): Update.
9436 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9437 (ui_file_puts): ...this.
9438 * gdb/ui-file.h (ui_file_puts): Add declaration.
9439 * gdb/utils.c (emit_style_escape): Update.
9440 (flush_wrap_buffer): Update.
9441 (fputs_maybe_filtered): Update.
9442 (fputs_unfiltered): Add function.
9443
9444 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9445
9446 * gdb/event-loop.c (gdb_wait_for_event): Update.
9447 * gdb/printcmd.c (printf_command): Update.
9448 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9449 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9450 (gdb_os_flush_stderr): Update.
9451 * gdb/remote.c (remote_console_output): Update.
9452 * gdb/ui-file.c (gdb_flush): Rename to...
9453 (ui_file_flush): ...this.
9454 (stderr_file::write): Update.
9455 (stderr_file::puts): Update.
9456 * gdb/ui-file.h (gdb_flush): Rename to...
9457 (ui_file_flush): ...this.
9458 * gdb/utils.c (gdb_flush): Add function.
9459 * gdb/utils.h (gdb_flush): Add declaration.
9460
9461 2020-02-07 Tom Tromey <tromey@adacore.com>
9462
9463 PR breakpoints/24915:
9464 * source.c (find_and_open_source): Do not check basenames_may_differ.
9465
9466 2020-02-07 Tom Tromey <tom@tromey.com>
9467
9468 * README: Update gdbserver documentation.
9469 * gdbserver: Move to top level.
9470 * configure.tgt (build_gdbserver): Remove.
9471 * configure.ac: Remove --enable-gdbserver.
9472 * configure: Rebuild.
9473 * Makefile.in (distclean): Don't mention gdbserver.
9474
9475 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9476
9477 * source-cache.c (source_cache::ensure): Surround
9478 get_plain_source_lines with a try/catch.
9479 (source_cache::get_line_charpos): Get rid of try/catch
9480 and only check for the return value of "ensure".
9481 * tui/tui-source.c (tui_source_window::set_contents):
9482 Simplify "nlines" calculation.
9483
9484 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9485
9486 * MAINTAINERS (Write After Approval): Add myself.
9487
9488 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9489
9490 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9491 function call.
9492
9493 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9494
9495 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9496
9497 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9498
9499 * nat/riscv-linux-tdesc.h: New file.
9500 * nat/riscv-linux-tdesc.c: New file, taking code from...
9501 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9502 ... here.
9503 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9504 NATDEPFILES.
9505
9506 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9507
9508 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9509 we don't set the fake simulator ptid to the null_ptid.
9510
9511 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9512
9513 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9514 * gdbthread.h (class thread_info) <resumed>: Likewise.
9515 * infrun.c (resume_1): Likewise.
9516 (proceed): Likewise.
9517 (infrun_thread_stop_requested): Likewise.
9518 (stop_all_threads): Likewise.
9519 (handle_inferior_event): Likewise.
9520 (restart_threads): Likewise.
9521 (finish_step_over): Likewise.
9522 (keep_going_stepped_thread): Likewise.
9523 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9524 (linux_handle_extended_wait): Likewise.
9525 * record-btrace.c (get_thread_current_frame_id): Likewise.
9526 * record-full.c (record_full_wait_1): Likewise.
9527 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9528 * target.c (target_resume): Likewise.
9529 * thread.c (set_running_thread): Likewise.
9530
9531 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9532
9533 * f-valprint.c (f77_print_array_1): Changed datatype of index
9534 variable to LONGEST from int to enable it to contain bound
9535 values correctly.
9536
9537 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9538
9539 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9540 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9541 offsets according to FLEN determined.
9542 (riscv_linux_nat_target::read_description): Determine FLEN
9543 dynamically.
9544 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9545 according to FLEN determined.
9546 (riscv_linux_nat_target::store_registers): Likewise.
9547
9548 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9549
9550 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9551 when reg->group is empty and reggroup is not.
9552
9553 2020-01-31 Tom Tromey <tromey@adacore.com>
9554
9555 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9556 Call beneath target's mourn_inferior after unpushing.
9557
9558 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9559
9560 PR tui/9765
9561 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9562 have enough lines to fill the screen, still return the lowest
9563 address we found.
9564
9565 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9566
9567 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9568 '-', '<', and '>' commands.
9569
9570 2020-01-29 Pedro Alves <palves@redhat.com>
9571 Sergio Durigan Junior <sergiodj@redhat.com>
9572
9573 * infcmd.c (construct_inferior_arguments): Assert that
9574 'argc' is greater than 0.
9575
9576 2020-01-29 Luis Machado <luis.machado@linaro.org>
9577
9578 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9579 (BRK_INSN_MASK): Define to 0xd4200000.
9580 (aarch64_program_breakpoint_here_p): New function.
9581 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9582 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9583 breakpoint.c.
9584 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9585 breakpoint.h
9586 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9587 call gdbarch_program_breakpoint_here_p.
9588 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9589 default_program_breakpoint_here_p, changed return type to bool and
9590 simplified.
9591 * breakpoint.h (program_breakpoint_here): Moved prototype to
9592 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9593 return type to bool.
9594 * gdbarch.c: Regenerate.
9595 * gdbarch.h: Regenerate.
9596 * gdbarch.sh (program_breakpoint_here_p): New method.
9597 * infrun.c (handle_signal_stop): Call
9598 gdbarch_program_breakpoint_here_p.
9599
9600 2020-01-26 Tom Tromey <tom@tromey.com>
9601
9602 * ctfread.c (struct ctf_fp_info): Reindent.
9603 (_initialize_ctfread): Remove.
9604
9605 2020-01-26 Tom Tromey <tom@tromey.com>
9606
9607 * psymtab.c (partial_map_expand_apply)
9608 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9609 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9610 (psym_print_stats, psym_expand_symtabs_for_function)
9611 (psym_map_symbol_filenames, psym_map_matching_symbols)
9612 (psym_expand_symtabs_matching)
9613 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9614 (maintenance_check_psymtabs): Use new methods.
9615 * psympriv.h (struct partial_symtab) <readin_p,
9616 get_compunit_symtab>: New methods.
9617 <readin, compunit_symtab>: Remove members.
9618 (struct standard_psymtab): New.
9619 (struct legacy_psymtab): Derive from standard_psymtab.
9620 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9621 standard_psymtab.
9622 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9623
9624 2020-01-26 Tom Tromey <tom@tromey.com>
9625
9626 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9627 read_dependencies. Add assert.
9628 * psymtab.c (partial_symtab::read_dependencies): New method.
9629 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9630 method.
9631 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9632 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9633 read_dependencies.
9634 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9635 Add assert.
9636
9637 2020-01-26 Tom Tromey <tom@tromey.com>
9638
9639 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9640 Call expand_psymtab.
9641 (xcoff_read_symtab): Call expand_psymtab.
9642 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9643 legacy_expand_psymtab.
9644 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9645 method.
9646 (struct legacy_psymtab) <expand_psymtab>: Implement.
9647 <legacy_expand_psymtab>: New member.
9648 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9649 (parse_partial_symbols): Set legacy_expand_psymtab.
9650 (psymtab_to_symtab_1): Change argument order. Call
9651 expand_psymtab.
9652 (new_psymtab): Set legacy_expand_psymtab.
9653 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9654 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9655 expand_psymtab.
9656 (dwarf2_psymtab::expand_psymtab): Rename from
9657 psymtab_to_symtab_1. Call expand_psymtab.
9658 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9659 (dbx_end_psymtab): Likewise.
9660 (dbx_psymtab_to_symtab_1): Change argument order. Call
9661 expand_psymtab.
9662 (dbx_read_symtab): Call expand_psymtab.
9663 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9664 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9665 (ctf_psymtab::read_symtab): Call expand_psymtab.
9666
9667 2020-01-26 Tom Tromey <tom@tromey.com>
9668
9669 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9670 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9671 messages.
9672 * mdebugread.c (mdebug_read_symtab): Remove prints.
9673 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9674 assert.
9675 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9676
9677 2020-01-26 Tom Tromey <tom@tromey.com>
9678
9679 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9680 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9681 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9682 legacy_symtab.
9683 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9684 * psymtab.c (psymtab_to_symtab): Call method.
9685 (dump_psymtab): Update.
9686 * psympriv.h (struct partial_symtab): Add virtual destructor.
9687 <read_symtab>: New method.
9688 (struct legacy_symtab): New.
9689 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9690 (struct pst_map) <pst>: Now a legacy_psymtab.
9691 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9692 (new_psymtab): Use legacy_psymtab.
9693 * dwarf2read.h (struct dwarf2_psymtab): New.
9694 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9695 * dwarf2read.c (dwarf2_create_include_psymtab)
9696 (dwarf2_build_include_psymtabs, create_type_unit_group)
9697 (create_partial_symtab, process_psymtab_comp_unit_reader)
9698 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9699 (set_partial_user): Use dwarf2_psymtab.
9700 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9701 (psymtab_to_symtab_1, process_full_comp_unit)
9702 (process_full_type_unit, dwarf2_ranges_read)
9703 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9704 (dwarf_decode_lines): Use dwarf2_psymtab.
9705 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9706 (add_address_entry_worker, write_one_signatured_type)
9707 (recursively_count_psymbols, recursively_write_psymbols)
9708 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9709 (write_debug_names): Likewise.
9710 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9711 <pst>: Now a legacy_psymtab.
9712 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9713 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9714 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9715 * ctfread.c (struct ctf_psymtab): New.
9716 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9717 ctf_psymtab.
9718 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9719 (create_partial_symtab): Return a ctf_psymtab.
9720 (scan_partial_symbols): Update.
9721
9722 2020-01-26 Tom Tromey <tom@tromey.com>
9723
9724 * xcoffread.c (xcoff_start_psymtab): Use new.
9725 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9726 renamed from start_psymtab_common.
9727 * psympriv.h (struct partial_symtab): Add new constructor.
9728 (start_psymtab_common): Don't declare.
9729 * mdebugread.c (parse_partial_symbols): Use new.
9730 * dwarf2read.c (create_partial_symtab): Use new.
9731 * dbxread.c (start_psymtab): Use new.
9732 * ctfread.c (create_partial_symtab): Use new.
9733
9734 2020-01-26 Tom Tromey <tom@tromey.com>
9735
9736 * xcoffread.c (xcoff_end_psymtab): Use new.
9737 * psymtab.c (start_psymtab_common): Use new.
9738 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9739 Update.
9740 * psympriv.h (struct partial_symtab): Add parameters to
9741 constructor. Don't inline.
9742 (allocate_psymtab): Don't declare.
9743 * mdebugread.c (new_psymtab): Use new.
9744 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9745 * dbxread.c (dbx_end_psymtab): Use new.
9746
9747 2020-01-26 Tom Tromey <tom@tromey.com>
9748
9749 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9750 allocate_psymtab. Update documentation.
9751 * psymtab.c (psymtab_storage::install_psymtab): Rename from
9752 allocate_psymtab. Do not use new.
9753 (allocate_psymtab): Use new. Update.
9754
9755 2020-01-26 Tom Tromey <tom@tromey.com>
9756
9757 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
9758 * psymtab.c (psym_print_stats): Update.
9759 * psympriv.h (struct partial_symtab) <readin,
9760 psymtabs_addrmap_supported, anonymous>: Now bool.
9761 * mdebugread.c (psymtab_to_symtab_1): Update.
9762 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
9763 (build_type_psymtabs_reader, psymtab_to_symtab_1)
9764 (process_full_comp_unit, process_full_type_unit): Update.
9765 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
9766 * ctfread.c (psymtab_to_symtab): Update.
9767
9768 2020-01-26 Tom Tromey <tom@tromey.com>
9769
9770 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
9771 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
9772 * psymtab.c (psymtab_storage): Delete psymtabs.
9773 (psymtab_storage::allocate_psymtab): Use new.
9774 (psymtab_storage::discard_psymtab): Use delete.
9775 * psympriv.h (struct partial_symtab): Add constructor and
9776 initializers.
9777
9778 2020-01-26 Tom Tromey <tom@tromey.com>
9779
9780 * machoread.c: Do not include psympriv.h.
9781
9782 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9783
9784 * NEWS: Mention the new option and the set/show commands.
9785
9786 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9787
9788 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
9789 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
9790 (validate_exec_file): New variables, enums, functions.
9791 (exec_file_locate_attach, print_section_info): Style the filenames.
9792 (_initialize_exec): Install show_exec_file_mismatch_command and
9793 set_exec_file_mismatch_command.
9794 * gdbcore.h (validate_exec_file): Declare.
9795 * infcmd.c (attach_command): Call validate_exec_file.
9796 * remote.c ( remote_target::remote_add_inferior): Likewise.
9797
9798 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9799
9800 * frame.c (find_frame_sal): Move call to get_next_frame into more
9801 inner scope.
9802 * inline-frame.c (inilne_state) <inline_state>: Update argument
9803 types.
9804 (inilne_state) <skipped_symbol>: Rename to...
9805 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
9806 (skip_inline_frames): Build vector of skipped symbols and use this
9807 to reate the inline_state.
9808 (inline_skipped_symbol): Add a comment and some assertions, fetch
9809 skipped symbol from the list.
9810
9811 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9812
9813 * buildsym.c (lte_is_less_than): Delete.
9814 (buildsym_compunit::end_symtab_with_blockvector): Create local
9815 lambda function to sort line table entries, and use
9816 std::stable_sort instead of std::sort.
9817 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
9818 markers when looking for a previous line.
9819
9820 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9821
9822 * dwarf2read.c (lnp_state_machine::record_line): Include
9823 end_sequence parameter in debug print out. Record the line if we
9824 are at an end_sequence marker even if it's not the start of a
9825 statement.
9826 * symmisc.c (maintenance_print_one_line_table): Print end of
9827 sequence markers with 'END' not '0'.
9828
9829 2020-01-24 Pedro Alves <palves@redhat.com>
9830
9831 PR gdb/25410
9832 * thread.c (scoped_restore_current_thread::restore): Use
9833 switch_to_inferior_no_thread.
9834 * exec.c: Include "progspace-and-thread.h".
9835 (add_target_sections, remove_target_sections):
9836 scoped_restore_current_pspace_and_thread instead of
9837 scoped_restore_current_thread.
9838 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
9839 and aspace to the inferior before calling clone_program_space.
9840 Remove stale comment.
9841
9842 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9843
9844 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
9845 (arm_netbsd_nat_target::fetch_registers): ...this.
9846 (arm_nbsd_nat_target::store_registers): Rename to...
9847 (arm_netbsd_nat_target::store_registers): ...this.
9848
9849 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9850
9851 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9852 register_t.
9853
9854 2020-01-24 Christian Biesinger <cbiesinger@google.com>
9855
9856 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
9857 Update comment.
9858 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
9859 Likewise.
9860 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
9861 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
9862 the correct replacement (iterate_over_regset_sections).
9863 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
9864 Update comment.
9865
9866 2020-01-24 Graham Markall <graham.markall@embecosm.com>
9867
9868 PR gdb/23718
9869 * gdb/python/python.c (execute_gdb_command): Call
9870 async_enable_stdin in catch block.
9871
9872 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9873
9874 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
9875 SWITCH_THRU_ALL_UIS.
9876
9877 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
9878
9879 PR tui/9765
9880 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
9881 comment, add extra parameter, and update to store previous symbol
9882 when appropriate.
9883 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
9884 add extra parameter.
9885 * tui/tui-disasm.c (tui_disassemble): Update header comment,
9886 remove unneeded parameter, add try/catch around gdb_print_insn,
9887 rewrite to add items to asm_lines vector.
9888 (tui_find_backward_disassembly_start_address): New function.
9889 (tui_find_disassembly_address): Updated throughout.
9890 (tui_disasm_window::set_contents): Update for changes to
9891 tui_disassemble.
9892 (tui_disasm_window::do_scroll_vertical): No need to adjust the
9893 number of lines to scroll.
9894
9895 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
9896
9897 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
9898 (SECT_OFF_DATA): Likewise.
9899 (SECT_OFF_RODATA): Likewise.
9900 (SECT_OFF_TEXT): Likewise.
9901 (SECT_OFF_BSS): Likewise.
9902 (struct objfile) <text_section_offset, data_section_offset>: New
9903 methods.
9904 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
9905 objfile::text_section_offset.
9906 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
9907 * coffread.c (coff_symtab_read): Likewise.
9908 (enter_linenos): Likewise.
9909 (process_coff_symbol): Likewise.
9910 * ctfread.c (get_objfile_text_range): Likewise.
9911 * dtrace-probe.c (dtrace_probe::get_relocated_address):
9912 Use objfile::data_section_offset.
9913 * dwarf2-frame.c (execute_cfa_program): Use
9914 objfile::text_section_offset.
9915 (dwarf2_frame_find_fde): Likewise.
9916 * dwarf2read.c (create_addrmap_from_index): Likewise.
9917 (create_addrmap_from_aranges): Likewise.
9918 (dw2_find_pc_sect_compunit_symtab): Likewise.
9919 (process_psymtab_comp_unit_reader): Likewise.
9920 (add_partial_symbol): Likewise.
9921 (add_partial_subprogram): Likewise.
9922 (process_full_comp_unit): Likewise.
9923 (read_file_scope): Likewise.
9924 (read_func_scope): Likewise.
9925 (read_lexical_block_scope): Likewise.
9926 (read_call_site_scope): Likewise.
9927 (dwarf2_rnglists_process): Likewise.
9928 (dwarf2_ranges_process): Likewise.
9929 (dwarf2_ranges_read): Likewise.
9930 (dwarf_decode_lines_1): Likewise.
9931 (new_symbol): Likewise.
9932 (dwarf2_fetch_die_loc_sect_off): Likewise.
9933 (dwarf2_per_cu_text_offset): Likewise.
9934 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
9935 * hppa-tdep.c (read_unwind_info): Likewise.
9936 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
9937 * psympriv.h (struct partial_symtab): Likewise.
9938 * psymtab.c (find_pc_sect_psymtab): Likewise.
9939 * solib-svr4.c (enable_break): Likewise.
9940 * stap-probe.c (relocate_address): Use
9941 objfile::data_section_offset.
9942 * xcoffread.c (enter_line_range): Use
9943 objfile::text_section_offset.
9944 (read_xcoff_symtab): Likewise.
9945
9946 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9947
9948 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
9949 declaration to narrower scopes.
9950
9951 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
9952
9953 * darwin-nat.h (struct darwin_exception_msg, enum
9954 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
9955 Move up.
9956 (class darwin_nat_target) <wait_1, check_new_threads,
9957 decode_exception_message, decode_message, stop_inferior,
9958 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
9959 * darwin-nat.c (darwin_check_new_threads): Rename to...
9960 (darwin_nat_target::check_new_threads): ... this.
9961 (darwin_suspend_inferior_it): Remove.
9962 (darwin_decode_exception_message): Rename to...
9963 (darwin_nat_target::decode_exception_message): ... this.
9964 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
9965 (darwin_decode_message): Rename to...
9966 (darwin_nat_target::decode_message): ... this.
9967 (cancel_breakpoint): Rename to...
9968 (darwin_nat_target::cancel_breakpoint): ... this.
9969 (darwin_wait): Rename to...
9970 (darwin_nat_target::wait_1): ... this. Use range-based for loop
9971 instead of iterate_over_inferiors.
9972 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
9973 (darwin_stop_inferior): Rename to...
9974 (darwin_nat_target::stop_inferior): ... this.
9975 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
9976 (darwin_init_thread_list): Rename to...
9977 (darwin_nat_target::init_thread_list): ... this.
9978 (darwin_ptrace_him): Rename to...
9979 (darwin_nat_target::ptrace_him): ... this.
9980 (darwin_nat_target::create_inferior): Pass lambda function to
9981 fork_inferior.
9982 (darwin_nat_target::detach): Call stop_inferior instead of
9983 darwin_stop_inferior.
9984 * fork-inferior.h (fork_inferior): Change init_trace_fun
9985 parameter to gdb::function_view.
9986 * fork-inferior.c (fork_inferior): Likewise.
9987
9988 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
9989
9990 * i386-cygwin-tdep.c (core_process_module_section): Update.
9991 * windows-nat.c (struct lm_info_windows): Add text_offset.
9992 (windows_xfer_shared_libraries): Update.
9993 * windows-tdep.c (windows_xfer_shared_library):
9994 Add text_offset_cached argument.
9995 * windows-tdep.h (windows_xfer_shared_library): Update.
9996
9997 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
9998
9999 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10000
10001 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10002
10003 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10004 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10005 replace with range-based for.
10006 (gdbsim_interrupt_inferior): Remove.
10007 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10008 with a range-based for. Inline code from
10009 gdbsim_interrupt_inferior.
10010
10011 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10012
10013 * infrun.c (proceed): Fix indentation.
10014
10015 2020-01-21 Tom Tromey <tromey@adacore.com>
10016
10017 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10018 * python/python.c (python_extension_ops): Update.
10019 (gdbpy_colorize): New function.
10020 * python/lib/gdb/__init__.py (colorize): New function.
10021 * extension.h (ext_lang_colorize): Declare.
10022 * extension.c (ext_lang_colorize): New function.
10023 * extension-priv.h (struct extension_language_ops) <colorize>: New
10024 member.
10025 * cli/cli-style.c (_initialize_cli_style): Update help text.
10026
10027 2020-01-21 Luis Machado <luis.machado@linaro.org>
10028
10029 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10030 <cond>: Change type to bool.
10031 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10032 (aarch64_displaced_step_cb): Likewise.
10033 (aarch64_displaced_step_tb): Likewise.
10034
10035 2020-01-21 Luis Machado <luis.machado@linaro.org>
10036
10037 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10038 output.
10039
10040 2020-01-21 Luis Machado <luis.machado@linaro.org>
10041
10042 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10043 <pc_adjust>: Adjust the documentation.
10044 (aarch64_displaced_step_fixup): Check if PC really moved before
10045 adjusting it.
10046
10047 2020-01-19 Tom Tromey <tom@tromey.com>
10048
10049 * disasm.c (~gdb_disassembler): New destructor.
10050 (gdb_buffered_insn_length): Call disassemble_free_target.
10051 * disasm.h (class gdb_disassembler): Declare destructor. Use
10052 DISABLE_COPY_AND_ASSIGN.
10053
10054 2020-01-19 Tom Tromey <tom@tromey.com>
10055
10056 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10057 (die_reader_func_ftype): Remove.
10058 (cutu_reader): New class.
10059 (dw2_get_file_names_reader): Remove "data" parameter.
10060 (dw2_get_file_names): Use cutu_reader.
10061 (create_debug_type_hash_table): Update.
10062 (read_cutu_die_from_dwo): Update comment.
10063 (lookup_dwo_unit): Add dwo_name parameter.
10064 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10065 die_reader_func_ftype and data parameters.
10066 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10067 Remove die_reader_func_ftype and data parameters.
10068 (~cutu_reader): New; from init_cutu_and_read_dies.
10069 (cutu_reader::cutu_reader): Rename from
10070 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10071 and data parameters.
10072 (init_cutu_and_read_dies_simple): Remove.
10073 (struct process_psymtab_comp_unit_data): Remove.
10074 (process_psymtab_comp_unit_reader): Remove data parameter; add
10075 want_partial_unit and pretend_language parameters.
10076 (process_psymtab_comp_unit): Use cutu_reader.
10077 (build_type_psymtabs_reader): Remove data parameter.
10078 (build_type_psymtabs_1): Use cutu_reader.
10079 (process_skeletonless_type_unit): Likewise.
10080 (load_partial_comp_unit_reader): Remove.
10081 (load_partial_comp_unit): Use cutu_reader.
10082 (load_full_comp_unit_reader): Remove.
10083 (load_full_comp_unit): Use cutu_reader.
10084 (struct create_dwo_cu_data): Remove.
10085 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10086 dwo_unit parameters.
10087 (create_cus_hash_table): Use cutu_reader.
10088 (struct dwarf2_read_addr_index_data): Remove.
10089 (dwarf2_read_addr_index_reader): Remove.
10090 (dwarf2_read_addr_index): Use cutu_reader.
10091 (read_signatured_type_reader): Remove.
10092 (read_signatured_type): Use cutu_reader.
10093
10094 2020-01-19 Tom Tromey <tom@tromey.com>
10095
10096 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10097 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10098 (tui_wrefresh): Declare.
10099 * tui/tui-wingeneral.c (suppress_output): New global.
10100 (tui_suppress_output, ~tui_suppress_output): New constructor and
10101 destructor.
10102 (tui_wrefresh): New function.
10103 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10104 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10105 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10106 method.
10107 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10108 tui_wrefresh.
10109 (tui_data_window::no_refresh): New method.
10110 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10111 (tui_reg_command): Use tui_suppress_output
10112 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10113 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10114 method.
10115 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10116
10117 2020-01-19 Tom Tromey <tom@tromey.com>
10118
10119 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10120 Handle case where symtab is null.
10121
10122 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10123
10124 * linux-fork.c (one_fork_p): Simplify.
10125
10126 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10127
10128 * top.c (struct qt_args): Remove.
10129 (kill_or_detach): Change return type to void, replace `void *`
10130 parameter with a proper one.
10131 (print_inferior_quit_action): Likewise.
10132 (quit_confirm): Use range-based for loop to iterate over inferiors.
10133 (quit_force): Likewise.
10134
10135 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10136
10137 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10138 `void *` parameter with proper parameters.
10139 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10140 (print_one_inferior): Change return type to void, replace `void *`
10141 parameter with proper parameters.
10142 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10143 inferiors.
10144 (get_other_inferior): Remove.
10145 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10146 inferiors.
10147
10148 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10149
10150 * mi/mi-interp.c (report_initial_inferior): Remove.
10151 (mi_interp::init): Use range-based for to iterate over inferiors.
10152
10153 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10154
10155 * python/py-inferior.c (build_inferior_list): Remove.
10156 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10157
10158 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10159
10160 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10161 (btrace_stitch_trace): Likewise.
10162 * charset.c (intermediate_encoding): Likewise (vaild).
10163 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10164 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10165 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10166
10167 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10168
10169 * windows-tdep.c (windows_get_tlb_type):
10170 Add rtl_user_process_parameters type.
10171
10172 2020-01-16 Pedro Alves <palves@redhat.com>
10173 Norbert Lange <nolange79@gmail.com>
10174
10175 PR build/24805
10176 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10177 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10178 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10179 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10180 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10181 (ps_plog): Redeclare exported functions with default visibility.
10182
10183 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10184
10185 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10186 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10187
10188 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10189
10190 * infcmd.c (post_create_inferior): Use get_thread_regcache
10191 instead of get_current_regcache.
10192
10193 2020-01-14 Tom Tromey <tom@tromey.com>
10194
10195 PR symtab/12535:
10196 * python/python.c (gdbpy_decode_line): Treat empty string the same
10197 as no argument.
10198
10199 2020-01-14 Tom Tromey <tom@tromey.com>
10200
10201 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10202
10203 2020-01-14 Tom Tromey <tom@tromey.com>
10204
10205 * nat/linux-btrace.c: Don't include <config.h>.
10206 * nat/linux-ptrace.c: Don't include <config.h>.
10207 * nat/x86-linux-dregs.c: Don't include <config.h>.
10208
10209 2020-01-14 Tom Tromey <tom@tromey.com>
10210
10211 * configure: Rebuild.
10212 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10213
10214 2020-01-14 Tom Tromey <tom@tromey.com>
10215
10216 * nat/x86-linux-dregs.c: Include configh.h.
10217 * nat/linux-ptrace.c: Include configh.h.
10218 * nat/linux-btrace.c: Include configh.h.
10219 * defs.h: Include config.h, bfd.h.
10220 * configure.ac: Don't source common.host.
10221 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10222 * configure: Rebuild.
10223 * acinclude.m4: Update path.
10224 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10225 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10226 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10227 (CLIBS): Add LIBSUPPORT.
10228 (CDEPS): Likewise.
10229 (COMMON_SFILES): Remove gdbsupport files.
10230 (HFILES_NO_SRCDIR): Likewise.
10231 (stamp-version): Update path to create-version.sh.
10232 (ALLDEPFILES): Remove gdbsupport files.
10233
10234 2020-01-14 Tom Tromey <tom@tromey.com>
10235
10236 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10237 USE_WIN32API when needed.
10238 * configure.ac (USE_WIN32API): Don't define.
10239 (WIN32LIBS): Use WIN32APILIBS.
10240 * configure: Rebuild.
10241
10242 2020-01-14 Tom Tromey <tom@tromey.com>
10243
10244 * configure: Rebuild.
10245 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10246
10247 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10248
10249 * skip.c (skip_function_command): Make skip w/o arguments use the
10250 name of the inlined function if pc is inside any inlined function.
10251
10252 2020-01-14 Luis Machado <luis.machado@linaro.org>
10253
10254 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10255 * infrun.c (resume_1): Likewise.
10256 (handle_inferior_event): Remove stale comment.
10257 * linux-nat.c (linux_nat_target::resume): Update comments.
10258 (save_stop_reason): Likewise.
10259 (linux_nat_filter_event): Likewise.
10260 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10261
10262 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10263
10264 * elfread.c (record_minimal_symbol): Set section index to 0 for
10265 non-allocatable sections.
10266
10267
10268 2020-01-13 Ali Tamur <tamur@google.com>
10269
10270 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10271 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10272 to gdb::optional. Update comments.
10273 (dwo_file): Update comments.
10274 (read_attribute): Update API to take an additional out parameter,
10275 need_reprocess. This is used to mark attributes that need other
10276 attributes (e.g. str_offsets_base) for correct computation which may not
10277 have been read yet.
10278 (read_attribute_reprocess): New function declaration.
10279 (read_addr_index): Likewise.
10280 (read_dwo_str_index): Likewise.
10281 (read_stub_str_index): Likewise.
10282 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10283 (lookup_addr_base): New function definition.
10284 (lookup_ranges_base): Likewise.
10285 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10286 lookup_ranges_base.
10287 (init_cutu_and_read_dies): Update comments.
10288 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10289 unit. This is used to inherit parent's str_offsets_base and addr_base.
10290 Update comments.
10291 (init_cutu_and_read_dies_simple): Reflect API changes.
10292 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10293 (create_cus_hash_table): Change API to take parent compile unit.
10294 Reflect API changes.
10295 (open_and_init_dwo_file): Reflect API changes.
10296 (dwarf2_get_pc_bounds): Update comments.
10297 (dwarf2_record_block_ranges): Likewise.
10298 (read_full_die_1): Change implementation to reprocess attributes that
10299 need str_offsets_base and addr_base.
10300 (partial_die_info::read): Likewise.
10301 (read_attribute_reprocess): New function definition.
10302 (read_attribute_value): Change API to take an additional out parameter,
10303 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10304 when a non-dwo compile unit has index based attributes.
10305 (read_attribute): Reflect API changes.
10306 (read_addr_index_1): Reflect API changes. Update comments.
10307 (dwarf2_read_addr_index_data): Reflect API changes.
10308 (dwarf2_read_addr_index): Likewise.
10309 (read_str_index): Change API and implementation. This becomes a helper
10310 to be used by the new string index related methods. Update error
10311 message and comments.
10312 (read_dwo_str_index): New function definition.
10313 (read_stub_str_index): Likewise.
10314 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10315 * symfile.h (dwarf2_debug_sections): Likewise.
10316 * xcoffread.c (dwarf2_debug_sections): Likewise.
10317
10318 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10321 core_reg_sect type to gdb_byte *.
10322 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10323 * cris-tdep.c (fetch_core_registers): Likewise.
10324 * corelow.c (core_target::get_core_register_section): Change
10325 type of `contents` to gdb::byte_vector.
10326
10327 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10328
10329 * tui/tui-wingeneral.c (box_win): Position the title in the center
10330 of the border.
10331
10332 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10333
10334 * corelow.c (core_target::get_core_register_section): Use
10335 std::vector instead of alloca.
10336
10337 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10338
10339 * warning.m4: Add -Wmissing-declarations to build_warnings.
10340 * configure: Re-generate.
10341
10342 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10343
10344 * python/python.c (init__gdb_module): Add declaration.
10345
10346 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10347
10348 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10349 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10350 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10351 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10352 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10353 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10354 * ada-exp.y (_initialize_ada_exp): Add declaration.
10355 * ada-lang.c (_initialize_ada_language): Add declaration.
10356 * ada-tasks.c (_initialize_tasks): Add declaration.
10357 * agent.c (_initialize_agent): Add declaration.
10358 * aix-thread.c (_initialize_aix_thread): Add declaration.
10359 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10360 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10361 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10362 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10363 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10364 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10365 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10366 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10367 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10368 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10369 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10370 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10371 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10372 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10373 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10374 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10375 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10376 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10377 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10378 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10379 * annotate.c (_initialize_annotate): Add declaration.
10380 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10381 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10382 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10383 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10384 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10385 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10386 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10387 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10388 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10389 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10390 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10391 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10392 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10393 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10394 * auto-load.c (_initialize_auto_load): Add declaration.
10395 * auxv.c (_initialize_auxv): Add declaration.
10396 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10397 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10398 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10399 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10400 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10401 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10402 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10403 * breakpoint.c (_initialize_breakpoint): Add declaration.
10404 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10405 * btrace.c (_initialize_btrace): Add declaration.
10406 * charset.c (_initialize_charset): Add declaration.
10407 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10408 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10409 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10410 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10411 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10412 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10413 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10414 * coffread.c (_initialize_coffread): Add declaration.
10415 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10416 * compile/compile.c (_initialize_compile): Add declaration.
10417 * complaints.c (_initialize_complaints): Add declaration.
10418 * completer.c (_initialize_completer): Add declaration.
10419 * copying.c (_initialize_copying): Add declaration.
10420 * corefile.c (_initialize_core): Add declaration.
10421 * corelow.c (_initialize_corelow): Add declaration.
10422 * cp-abi.c (_initialize_cp_abi): Add declaration.
10423 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10424 * cp-support.c (_initialize_cp_support): Add declaration.
10425 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10426 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10427 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10428 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10429 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10430 * ctfread.c (_initialize_ctfread): Add declaration.
10431 * d-lang.c (_initialize_d_language): Add declaration.
10432 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10433 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10434 * dbxread.c (_initialize_dbxread): Add declaration.
10435 * dcache.c (_initialize_dcache): Add declaration.
10436 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10437 * disasm.c (_initialize_disasm): Add declaration.
10438 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10439 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10440 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10441 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10442 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10443 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10444 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10445 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10446 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10447 * elfread.c (_initialize_elfread): Add declaration.
10448 * exec.c (_initialize_exec): Add declaration.
10449 * extension.c (_initialize_extension): Add declaration.
10450 * f-lang.c (_initialize_f_language): Add declaration.
10451 * f-valprint.c (_initialize_f_valprint): Add declaration.
10452 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10453 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10454 * filesystem.c (_initialize_filesystem): Add declaration.
10455 * findcmd.c (_initialize_mem_search): Add declaration.
10456 * findvar.c (_initialize_findvar): Add declaration.
10457 * fork-child.c (_initialize_fork_child): Add declaration.
10458 * frame-base.c (_initialize_frame_base): Add declaration.
10459 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10460 * frame.c (_initialize_frame): Add declaration.
10461 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10462 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10463 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10464 * gcore.c (_initialize_gcore): Add declaration.
10465 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10466 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10467 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10468 * gdbarch.c (_initialize_gdbarch): Add declaration.
10469 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10470 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10471 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10472 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10473 * go-lang.c (_initialize_go_language): Add declaration.
10474 * go32-nat.c (_initialize_go32_nat): Add declaration.
10475 * guile/guile.c (_initialize_guile): Add declaration.
10476 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10477 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10478 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10479 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10480 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10481 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10482 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10483 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10484 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10485 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10486 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10487 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10488 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10489 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10490 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10491 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10492 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10493 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10494 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10495 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10496 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10497 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10498 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10499 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10500 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10501 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10502 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10503 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10504 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10505 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10506 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10507 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10508 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10509 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10510 * infcall.c (_initialize_infcall): Add declaration.
10511 * infcmd.c (_initialize_infcmd): Add declaration.
10512 * inflow.c (_initialize_inflow): Add declaration.
10513 * infrun.c (_initialize_infrun): Add declaration.
10514 * interps.c (_initialize_interpreter): Add declaration.
10515 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10516 * jit.c (_initialize_jit): Add declaration.
10517 * language.c (_initialize_language): Add declaration.
10518 * linux-fork.c (_initialize_linux_fork): Add declaration.
10519 * linux-nat.c (_initialize_linux_nat): Add declaration.
10520 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10521 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10522 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10523 * m2-lang.c (_initialize_m2_language): Add declaration.
10524 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10525 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10526 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10527 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10528 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10529 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10530 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10531 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10532 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10533 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10534 * machoread.c (_initialize_machoread): Add declaration.
10535 * macrocmd.c (_initialize_macrocmd): Add declaration.
10536 * macroscope.c (_initialize_macroscope): Add declaration.
10537 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10538 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10539 * maint.c (_initialize_maint_cmds): Add declaration.
10540 * mdebugread.c (_initialize_mdebugread): Add declaration.
10541 * memattr.c (_initialize_mem): Add declaration.
10542 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10543 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10544 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10545 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10546 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10547 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10548 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10549 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10550 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10551 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10552 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10553 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10554 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10555 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10556 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10557 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10558 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10559 * mipsread.c (_initialize_mipsread): Add declaration.
10560 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10561 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10562 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10563 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10564 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10565 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10566 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10567 * nto-procfs.c (_initialize_procfs): Add declaration.
10568 * objc-lang.c (_initialize_objc_language): Add declaration.
10569 * observable.c (_initialize_observer): Add declaration.
10570 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10571 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10572 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10573 * osabi.c (_initialize_gdb_osabi): Add declaration.
10574 * osdata.c (_initialize_osdata): Add declaration.
10575 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10576 * parse.c (_initialize_parse): Add declaration.
10577 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10578 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10579 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10580 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10581 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10582 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10583 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10584 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10585 * printcmd.c (_initialize_printcmd): Add declaration.
10586 * probe.c (_initialize_probe): Add declaration.
10587 * proc-api.c (_initialize_proc_api): Add declaration.
10588 * proc-events.c (_initialize_proc_events): Add declaration.
10589 * proc-service.c (_initialize_proc_service): Add declaration.
10590 * procfs.c (_initialize_procfs): Add declaration.
10591 * producer.c (_initialize_producer): Add declaration.
10592 * psymtab.c (_initialize_psymtab): Add declaration.
10593 * python/python.c (_initialize_python): Add declaration.
10594 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10595 * record-btrace.c (_initialize_record_btrace): Add declaration.
10596 * record-full.c (_initialize_record_full): Add declaration.
10597 * record.c (_initialize_record): Add declaration.
10598 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10599 * regcache.c (_initialize_regcache): Add declaration.
10600 * reggroups.c (_initialize_reggroup): Add declaration.
10601 * remote-notif.c (_initialize_notif): Add declaration.
10602 * remote-sim.c (_initialize_remote_sim): Add declaration.
10603 * remote.c (_initialize_remote): Add declaration.
10604 * reverse.c (_initialize_reverse): Add declaration.
10605 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10606 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10607 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10608 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10609 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10610 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10611 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10612 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10613 Add declaration.
10614 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10615 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10616 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10617 * rust-exp.y (_initialize_rust_exp): Add declaration.
10618 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10619 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10620 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10621 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10622 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10623 * score-tdep.c (_initialize_score_tdep): Add declaration.
10624 * ser-go32.c (_initialize_ser_dos): Add declaration.
10625 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10626 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10627 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10628 * ser-uds.c (_initialize_ser_socket): Add declaration.
10629 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10630 * serial.c (_initialize_serial): Add declaration.
10631 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10632 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10633 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10634 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10635 * skip.c (_initialize_step_skip): Add declaration.
10636 * sol-thread.c (_initialize_sol_thread): Add declaration.
10637 * solib-aix.c (_initialize_solib_aix): Add declaration.
10638 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10639 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10640 * solib-frv.c (_initialize_frv_solib): Add declaration.
10641 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10642 * solib-target.c (_initialize_solib_target): Add declaration.
10643 * solib.c (_initialize_solib): Add declaration.
10644 * source-cache.c (_initialize_source_cache): Add declaration.
10645 * source.c (_initialize_source): Add declaration.
10646 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10647 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10648 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10649 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10650 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10651 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10652 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10653 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10654 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10655 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10656 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10657 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10658 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10659 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10660 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10661 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10662 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10663 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10664 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10665 * stabsread.c (_initialize_stabsread): Add declaration.
10666 * stack.c (_initialize_stack): Add declaration.
10667 * stap-probe.c (_initialize_stap_probe): Add declaration.
10668 * std-regs.c (_initialize_frame_reg): Add declaration.
10669 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10670 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10671 * symfile.c (_initialize_symfile): Add declaration.
10672 * symmisc.c (_initialize_symmisc): Add declaration.
10673 * symtab.c (_initialize_symtab): Add declaration.
10674 * target.c (_initialize_target): Add declaration.
10675 * target-connection.c (_initialize_target_connection): Add
10676 declaration.
10677 * target-dcache.c (_initialize_target_dcache): Add declaration.
10678 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10679 * thread.c (_initialize_thread): Add declaration.
10680 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10681 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10682 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10683 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10684 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10685 * tracectf.c (_initialize_ctf): Add declaration.
10686 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10687 * tracefile.c (_initialize_tracefile): Add declaration.
10688 * tracepoint.c (_initialize_tracepoint): Add declaration.
10689 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10690 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10691 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10692 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10693 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10694 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10695 * tui/tui.c (_initialize_tui): Add declaration.
10696 * typeprint.c (_initialize_typeprint): Add declaration.
10697 * ui-style.c (_initialize_ui_style): Add declaration.
10698 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10699 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10700 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10701 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10702 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10703 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10704 * unittests/filtered_iterator-selftests.c
10705 (_initialize_filtered_iterator_selftests): Add declaration.
10706 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10707 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10708 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10709 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10710 * unittests/main-thread-selftests.c
10711 (_initialize_main_thread_selftests): Add declaration.
10712 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10713 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10714 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10715 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10716 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10717 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10718 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10719 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10720 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10721 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10722 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10723 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10724 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10725 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10726 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10727 declaration.
10728 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10729 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10730 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10731 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10732 * user-regs.c (_initialize_user_regs): Add declaration.
10733 * utils.c (_initialize_utils): Add declaration.
10734 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10735 * valops.c (_initialize_valops): Add declaration.
10736 * valprint.c (_initialize_valprint): Add declaration.
10737 * value.c (_initialize_values): Add declaration.
10738 * varobj.c (_initialize_varobj): Add declaration.
10739 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10740 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10741 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10742 * windows-nat.c (_initialize_windows_nat): Add declaration.
10743 (_initialize_check_for_gdb_ini): Add declaration.
10744 (_initialize_loadable): Add declaration.
10745 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10746 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10747 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10748 * xcoffread.c (_initialize_xcoffread): Add declaration.
10749 * xml-support.c (_initialize_xml_support): Add declaration.
10750 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
10751 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
10752 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
10753 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
10754
10755 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10756
10757 * regformats/regdat.sh: Generate declaration for init function.
10758
10759 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10760
10761 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
10762 up.
10763 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
10764 close_one_inferior>: New methods.
10765 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
10766 pass down target to find_inferior_pid.
10767 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
10768 Pass down target to find_inferior_ptid.
10769 (gdbsim_target::create_inferior): Pass down target to
10770 add_thread_silent.
10771 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
10772 target down to find_inferior_ptid and switch_to_thread.
10773 (gdbsim_target::close): Update to call close_one_inferior.
10774 (struct resume_data): Remove.
10775 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
10776 directly, rather than through a void pointer.
10777 (gdbsim_target::resume): Update to call resume_one_inferior.
10778
10779 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
10780
10781 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
10782
10783 2020-01-12 Pedro Alves <palves@redhat.com>
10784
10785 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
10786 directly for the current inferior instead of
10787 discard_all_inferiors.
10788 (discard_all_inferiors): Delete.
10789
10790 2020-01-11 Tom Tromey <tom@tromey.com>
10791
10792 * tui/tui-wingeneral.c (box_win): Check cli_styling.
10793 * tui/tui-winsource.c (tui_source_window_base::refill): Use
10794 deprecated_safe_get_selected_frame.
10795
10796 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10797
10798 * inferior.c (print_inferior): Switch inferior before printing it.
10799
10800 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
10801 Pedro Alves <palves@redhat.com>
10802
10803 * progspace-and-thread.c (switch_to_program_space_and_thread):
10804 Assert there's an inferior for PSPACE. Use
10805 switch_to_inferior_no_thread to switch the inferior too.
10806 * progspace.c (program_space::~program_space): Call
10807 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
10808 (program_space::free_all_objfiles): Don't call clear_symtab_users
10809 here.
10810 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
10811
10812 2020-01-10 Pedro Alves <palves@redhat.com>
10813
10814 * NEWS: Mention multi-target debugging, "info connections", and
10815 "add-inferior -no-connection".
10816
10817 2020-01-10 Pedro Alves <palves@redhat.com>
10818
10819 * infrun.c: Include "target-connection.h".
10820 (check_multi_target_resumption): New.
10821 (proceed): Call it.
10822 * target-connection.c (make_target_connection_string): Make
10823 extern.
10824 * target-connection.h (make_target_connection_string): Declare.
10825
10826 2020-01-10 Pedro Alves <palves@redhat.com>
10827
10828 * Makefile.in (COMMON_SFILES): Add target-connection.c.
10829 * inferior.c (uiout_field_connection): New function.
10830 (print_inferior): Add new "connection-id" column.
10831 (add_inferior_command): Show connection number/string of added
10832 inferior.
10833 * process-stratum-target.h
10834 (process_stratum_target::connection_string): New virtual method.
10835 (process_stratum_target::connection_number): New field.
10836 * remote.c (remote_target::connection_string): New override.
10837 * target-connection.c: New file.
10838 * target-connection.h: New file.
10839 * target.c (decref_target): Remove process_stratum targets from
10840 the connection list.
10841 (target_stack::push): Add process_stratum targets to the
10842 connection list.
10843
10844 2020-01-10 Pedro Alves <palves@redhat.com>
10845
10846 Revert:
10847 2016-04-12 Pedro Alves <palves@redhat.com>
10848 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
10849 Remove references to name.
10850 * serial.h (struct serial) <name>: Delete.
10851
10852 2020-01-10 Pedro Alves <palves@redhat.com>
10853
10854 * gdbarch-selftests.c (register_to_value_test): Remove "target
10855 already pushed" check.
10856
10857 2020-01-10 Pedro Alves <palves@redhat.com>
10858 John Baldwin <jhb@FreeBSD.org>
10859
10860 * aarch64-linux-nat.c
10861 (aarch64_linux_nat_target::thread_architecture): Adjust.
10862 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
10863 (task_command_1): Likewise.
10864 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
10865 (aix_thread_target::wait, aix_thread_target::fetch_registers)
10866 (aix_thread_target::store_registers)
10867 (aix_thread_target::thread_alive): Adjust.
10868 * amd64-fbsd-tdep.c: Include "inferior.h".
10869 (amd64fbsd_get_thread_local_address): Pass down target.
10870 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
10871 thread's gdbarch instead of target_gdbarch.
10872 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
10873 get_last_target_status.
10874 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
10875 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
10876 inferiors.
10877 (update_inserted_breakpoint_locations): Skip if inferiors with no
10878 execution.
10879 (update_global_location_list): When handling moribund locations,
10880 find representative inferior for location's pspace, and use thread
10881 count of its process_stratum target.
10882 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
10883 * bsd-uthread.c (bsd_uthread_target::wait): Use
10884 as_process_stratum_target and adjust thread_change_ptid and
10885 add_thread calls.
10886 (bsd_uthread_target::update_thread_list): Use
10887 as_process_stratum_target and adjust find_thread_ptid,
10888 thread_change_ptid and add_thread calls.
10889 * btrace.c (maint_btrace_packet_history_cmd): Adjust
10890 find_thread_ptid call.
10891 * corelow.c (add_to_thread_list): Adjust add_thread call.
10892 (core_target_open): Adjust add_thread_silent and thread_count
10893 calls.
10894 (core_target::pid_to_str): Adjust find_inferior_ptid call.
10895 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
10896 * event-top.c (async_disconnect): Pop targets from all inferiors.
10897 * exec.c (add_target_sections): Push exec target on all inferiors
10898 sharing the program space.
10899 (remove_target_sections): Remove the exec target from all
10900 inferiors sharing the program space.
10901 (exec_on_vfork): New.
10902 * exec.h (exec_on_vfork): Declare.
10903 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
10904 Pass it down.
10905 (fbsd_nat_target::update_thread_list): Adjust.
10906 (fbsd_nat_target::resume): Adjust.
10907 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
10908 down.
10909 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
10910 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
10911 get_thread_arch_regcache call.
10912 * fork-child.c (gdb_startup_inferior): Pass target down to
10913 startup_inferior and set_executing.
10914 * gdbthread.h (struct process_stratum_target): Forward declare.
10915 (add_thread, add_thread_silent, add_thread_with_info)
10916 (in_thread_list): Add process_stratum_target parameter.
10917 (find_thread_ptid(inferior*, ptid_t)): New overload.
10918 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
10919 parameter.
10920 (all_threads()): Delete overload.
10921 (all_threads, all_non_exited_threads): Add process_stratum_target
10922 parameter.
10923 (all_threads_safe): Use brace initialization.
10924 (thread_count): Add process_stratum_target parameter.
10925 (set_resumed, set_running, set_stop_requested, set_executing)
10926 (threads_are_executing, finish_thread_state): Add
10927 process_stratum_target parameter.
10928 (switch_to_thread): Use is_current_thread.
10929 * i386-fbsd-tdep.c: Include "inferior.h".
10930 (i386fbsd_get_thread_local_address): Pass down target.
10931 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
10932 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
10933 have_inferiors check.
10934 * inf-ptrace.c (inf_ptrace_target::create_inferior)
10935 (inf_ptrace_target::attach): Adjust.
10936 * infcall.c (run_inferior_call): Adjust.
10937 * infcmd.c (run_command_1): Pass target to
10938 scoped_finish_thread_state.
10939 (proceed_thread_callback): Skip inferiors with no execution.
10940 (continue_command): Rename 'all_threads' local to avoid hiding
10941 'all_threads' function. Adjust get_last_target_status call.
10942 (prepare_one_step): Adjust set_running call.
10943 (signal_command): Use user_visible_resume_target. Compare thread
10944 pointers instead of inferior_ptid.
10945 (info_program_command): Adjust to pass down target.
10946 (attach_command): Mark target's 'thread_executing' flag.
10947 (stop_current_target_threads_ns): New, factored out from ...
10948 (interrupt_target_1): ... this. Switch inferior before making
10949 target calls.
10950 * inferior-iter.h
10951 (struct all_inferiors_iterator, struct all_inferiors_range)
10952 (struct all_inferiors_safe_range)
10953 (struct all_non_exited_inferiors_range): Filter on
10954 process_stratum_target too. Remove explicit.
10955 * inferior.c (inferior::inferior): Push dummy target on target
10956 stack.
10957 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
10958 Add process_stratum_target parameter, and pass it down.
10959 (have_live_inferiors): Adjust.
10960 (switch_to_inferior_and_push_target): New.
10961 (add_inferior_command, clone_inferior_command): Handle
10962 "-no-connection" parameter. Use
10963 switch_to_inferior_and_push_target.
10964 (_initialize_inferior): Mention "-no-connection" option in
10965 the help of "add-inferior" and "clone-inferior" commands.
10966 * inferior.h: Include "process-stratum-target.h".
10967 (interrupt_target_1): Use bool.
10968 (struct inferior) <push_target, unpush_target, target_is_pushed,
10969 find_target_beneath, top_target, process_target, target_at,
10970 m_stack>: New.
10971 (discard_all_inferiors): Delete.
10972 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
10973 (all_inferiors, all_non_exited_inferiors): Add
10974 process_stratum_target parameter.
10975 * infrun.c: Include "gdb_select.h" and <unordered_map>.
10976 (target_last_proc_target): New global.
10977 (follow_fork_inferior): Push target on new inferior. Pass target
10978 to add_thread_silent. Call exec_on_vfork. Handle target's
10979 reference count.
10980 (follow_fork): Adjust get_last_target_status call. Also consider
10981 target.
10982 (follow_exec): Push target on new inferior.
10983 (struct execution_control_state) <target>: New field.
10984 (user_visible_resume_target): New.
10985 (do_target_resume): Call target_async.
10986 (resume_1): Set target's threads_executing flag. Consider resume
10987 target.
10988 (commit_resume_all_targets): New.
10989 (proceed): Also consider resume target. Skip threads of inferiors
10990 with no execution. Commit resumtion in all targets.
10991 (start_remote): Pass current inferior to wait_for_inferior.
10992 (infrun_thread_stop_requested): Consider target as well. Pass
10993 thread_info pointer to clear_inline_frame_state instead of ptid.
10994 (infrun_thread_thread_exit): Consider target as well.
10995 (random_pending_event_thread): New inferior parameter. Use it.
10996 (do_target_wait): Rename to ...
10997 (do_target_wait_1): ... this. Add inferior parameter, and pass it
10998 down.
10999 (threads_are_resumed_pending_p, do_target_wait): New.
11000 (prepare_for_detach): Adjust calls.
11001 (wait_for_inferior): New inferior parameter. Handle it. Use
11002 do_target_wait_1 instead of do_target_wait.
11003 (fetch_inferior_event): Adjust. Switch to representative
11004 inferior. Pass target down.
11005 (set_last_target_status): Add process_stratum_target parameter.
11006 Save target in global.
11007 (get_last_target_status): Add process_stratum_target parameter and
11008 handle it.
11009 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11010 (context_switch): Check inferior_ptid == null_ptid before calling
11011 inferior_thread().
11012 (get_inferior_stop_soon): Pass down target.
11013 (wait_one): Rename to ...
11014 (poll_one_curr_target): ... this.
11015 (struct wait_one_event): New.
11016 (wait_one): New.
11017 (stop_all_threads): Adjust.
11018 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11019 event's target.
11020 (switch_back_to_stepped_thread): Also consider target.
11021 (print_stop_event): Update.
11022 (normal_stop): Update. Also consider the resume target.
11023 * infrun.h (wait_for_inferior): Remove declaration.
11024 (user_visible_resume_target): New declaration.
11025 (get_last_target_status, set_last_target_status): New
11026 process_stratum_target parameter.
11027 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11028 process_stratum_target parameter, and use it.
11029 (clear_inline_frame_state (thread_info*)): New.
11030 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11031 process_stratum_target parameter.
11032 (clear_inline_frame_state (thread_info*)): Declare.
11033 * linux-fork.c (delete_checkpoint_command): Pass target down to
11034 find_thread_ptid.
11035 (checkpoint_command): Adjust.
11036 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11037 instead of just tweaking inferior_ptid.
11038 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11039 (exit_lwp): Pass target down to find_thread_ptid.
11040 (attach_proc_task_lwp_callback): Pass target down to
11041 add_thread/set_running/set_executing.
11042 (linux_nat_target::attach): Pass target down to
11043 thread_change_ptid.
11044 (get_detach_signal): Pass target down to find_thread_ptid.
11045 Consider last target status's target.
11046 (linux_resume_one_lwp_throw, resume_lwp)
11047 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11048 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11049 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11050 (linux_nat_target::async_wait_fd): New.
11051 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11052 target down.
11053 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11054 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11055 * linux-thread-db.c (struct thread_db_info::process_target): New
11056 field.
11057 (add_thread_db_info): Save target.
11058 (get_thread_db_info): New process_stratum_target parameter. Also
11059 match target.
11060 (delete_thread_db_info): New process_stratum_target parameter.
11061 Also match target.
11062 (thread_from_lwp): Adjust to pass down target.
11063 (thread_db_notice_clone): Pass down target.
11064 (check_thread_db_callback): Pass down target.
11065 (try_thread_db_load_1): Always push the thread_db target.
11066 (try_thread_db_load, record_thread): Pass target down.
11067 (thread_db_target::detach): Pass target down. Always unpush the
11068 thread_db target.
11069 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11070 target down. Always unpush the thread_db target.
11071 (find_new_threads_callback, thread_db_find_new_threads_2)
11072 (thread_db_target::update_thread_list): Pass target down.
11073 (thread_db_target::pid_to_str): Pass current inferior down.
11074 (thread_db_target::get_thread_local_address): Pass target down.
11075 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11076 target down.
11077 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11078 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11079 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11080 (procfs_init_inferior): Rename to ...
11081 (procfs_target::procfs_init_inferior): ... this and adjust.
11082 (procfs_target::create_inferior, procfs_notice_thread)
11083 (procfs_do_thread_registers): Adjust.
11084 * ppc-fbsd-tdep.c: Include "inferior.h".
11085 (ppcfbsd_get_thread_local_address): Pass down target.
11086 * proc-service.c (ps_xfer_memory): Switch current inferior and
11087 program space as well.
11088 (get_ps_regcache): Pass target down.
11089 * process-stratum-target.c
11090 (process_stratum_target::thread_address_space)
11091 (process_stratum_target::thread_architecture): Pass target down.
11092 * process-stratum-target.h
11093 (process_stratum_target::threads_executing): New field.
11094 (as_process_stratum_target): New.
11095 * ravenscar-thread.c
11096 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11097 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11098 down.
11099 * record-btrace.c (record_btrace_target::info_record): Adjust.
11100 (record_btrace_target::record_method)
11101 (record_btrace_target::record_is_replaying)
11102 (record_btrace_target::fetch_registers)
11103 (get_thread_current_frame_id, record_btrace_target::resume)
11104 (record_btrace_target::wait, record_btrace_target::stop): Pass
11105 target down.
11106 * record-full.c (record_full_wait_1): Switch to event thread.
11107 Pass target down.
11108 * regcache.c (regcache::regcache)
11109 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11110 process_stratum_target parameter and handle it.
11111 (current_thread_target): New global.
11112 (get_thread_regcache): Add process_stratum_target parameter and
11113 handle it. Switch inferior before calling target method.
11114 (get_thread_regcache): Pass target down.
11115 (get_thread_regcache_for_ptid): Pass target down.
11116 (registers_changed_ptid): Add process_stratum_target parameter and
11117 handle it.
11118 (registers_changed_thread, registers_changed): Pass target down.
11119 (test_get_thread_arch_aspace_regcache): New.
11120 (current_regcache_test): Define a couple local test_target_ops
11121 instances and use them for testing.
11122 (readwrite_regcache): Pass process_stratum_target parameter.
11123 (cooked_read_test, cooked_write_test): Pass mock_target down.
11124 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11125 (get_thread_arch_aspace_regcache): Add process_stratum_target
11126 parameter.
11127 (regcache::target): New method.
11128 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11129 (regcache::registers_changed_ptid): Add process_stratum_target
11130 parameter.
11131 (regcache::m_target): New field.
11132 (registers_changed_ptid): Add process_stratum_target parameter.
11133 * remote.c (remote_state::supports_vCont_probed): New field.
11134 (remote_target::async_wait_fd): New method.
11135 (remote_unpush_and_throw): Add remote_target parameter.
11136 (get_current_remote_target): Adjust.
11137 (remote_target::remote_add_inferior): Push target.
11138 (remote_target::remote_add_thread)
11139 (remote_target::remote_notice_new_inferior)
11140 (get_remote_thread_info): Pass target down.
11141 (remote_target::update_thread_list): Skip threads of inferiors
11142 bound to other targets. (remote_target::close): Don't discard
11143 inferiors. (remote_target::add_current_inferior_and_thread)
11144 (remote_target::process_initial_stop_replies)
11145 (remote_target::start_remote)
11146 (remote_target::remote_serial_quit_handler): Pass down target.
11147 (remote_target::remote_unpush_target): New remote_target
11148 parameter. Unpush the target from all inferiors.
11149 (remote_target::remote_unpush_and_throw): New remote_target
11150 parameter. Pass it down.
11151 (remote_target::open_1): Check whether the current inferior has
11152 execution instead of checking whether any inferior is live. Pass
11153 target down.
11154 (remote_target::remote_detach_1): Pass down target. Use
11155 remote_unpush_target.
11156 (extended_remote_target::attach): Pass down target.
11157 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11158 (remote_target::append_resumption): Pass down target.
11159 (remote_target::append_pending_thread_resumptions)
11160 (remote_target::remote_resume_with_hc, remote_target::resume)
11161 (remote_target::commit_resume): Pass down target.
11162 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11163 (remote_target::interrupt_query)
11164 (remote_target::remove_new_fork_children)
11165 (remote_target::check_pending_events_prevent_wildcard_vcont)
11166 (remote_target::remote_parse_stop_reply)
11167 (remote_target::process_stop_reply): Pass down target.
11168 (first_remote_resumed_thread): New remote_target parameter. Pass
11169 it down.
11170 (remote_target::wait_as): Pass down target.
11171 (unpush_and_perror): New remote_target parameter. Pass it down.
11172 (remote_target::readchar, remote_target::remote_serial_write)
11173 (remote_target::getpkt_or_notif_sane_1)
11174 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11175 down target.
11176 (remote_target::mourn_inferior): Pass down target. Use
11177 remote_unpush_target.
11178 (remote_target::core_of_thread)
11179 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11180 (remote_target::pid_to_exec_file)
11181 (remote_target::thread_handle_to_thread_info): Pass down target.
11182 (remote_target::async_wait_fd): New.
11183 * riscv-fbsd-tdep.c: Include "inferior.h".
11184 (riscv_fbsd_get_thread_local_address): Pass down target.
11185 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11186 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11187 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11188 Adjust.
11189 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11190 * solib-svr4.c (enable_break): Pass down target.
11191 * spu-multiarch.c (parse_spufs_run): Pass down target.
11192 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11193 * target-delegates.c: Regenerate.
11194 * target.c (g_target_stack): Delete.
11195 (current_top_target): Return the current inferior's top target.
11196 (target_has_execution_1): Refer to the passed-in inferior's top
11197 target.
11198 (target_supports_terminal_ours): Check whether the initial
11199 inferior was already created.
11200 (decref_target): New.
11201 (target_stack::push): Incref/decref the target.
11202 (push_target, push_target, unpush_target): Adjust.
11203 (target_stack::unpush): Defref target.
11204 (target_is_pushed): Return bool. Adjust to refer to the current
11205 inferior's target stack.
11206 (dispose_inferior): Delete, and inline parts ...
11207 (target_preopen): ... here. Only dispose of the current inferior.
11208 (target_detach): Hold strong target reference while detaching.
11209 Pass target down.
11210 (target_thread_name): Add assertion.
11211 (target_resume): Pass down target.
11212 (target_ops::beneath, find_target_at): Adjust to refer to the
11213 current inferior's target stack.
11214 (get_dummy_target): New.
11215 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11216 has a thread running.
11217 (initialize_targets): Rename to ...
11218 (_initialize_target): ... this.
11219 * target.h: Include "gdbsupport/refcounted-object.h".
11220 (struct target_ops): Inherit refcounted_object.
11221 (target_ops::shortname, target_ops::longname): Make const.
11222 (target_ops::async_wait_fd): New method.
11223 (decref_target): Declare.
11224 (struct target_ops_ref_policy): New.
11225 (target_ops_ref): New typedef.
11226 (get_dummy_target): Declare function.
11227 (target_is_pushed): Return bool.
11228 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11229 (all_matching_threads_iterator::all_matching_threads_iterator):
11230 Handle filter target.
11231 * thread-iter.h (struct all_matching_threads_iterator, struct
11232 all_matching_threads_range, class all_non_exited_threads_range):
11233 Filter by target too. Remove explicit.
11234 * thread.c (threads_executing): Delete.
11235 (inferior_thread): Pass down current inferior.
11236 (clear_thread_inferior_resources): Pass down thread pointer
11237 instead of ptid_t.
11238 (add_thread_silent, add_thread_with_info, add_thread): Add
11239 process_stratum_target parameter. Use it for thread and inferior
11240 searches.
11241 (is_current_thread): New.
11242 (thread_info::deletable): Use it.
11243 (find_thread_ptid, thread_count, in_thread_list)
11244 (thread_change_ptid, set_resumed, set_running): New
11245 process_stratum_target parameter. Pass it down.
11246 (set_executing): New process_stratum_target parameter. Pass it
11247 down. Adjust reference to 'threads_executing'.
11248 (threads_are_executing): New process_stratum_target parameter.
11249 Adjust reference to 'threads_executing'.
11250 (set_stop_requested, finish_thread_state): New
11251 process_stratum_target parameter. Pass it down.
11252 (switch_to_thread): Also match inferior.
11253 (switch_to_thread): New process_stratum_target parameter. Pass it
11254 down.
11255 (update_threads_executing): Reimplement.
11256 * top.c (quit_force): Pop targets from all inferior.
11257 (gdb_init): Don't call initialize_targets.
11258 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11259 Declare.
11260 (windows_add_thread, windows_delete_thread): Adjust.
11261 (get_windows_debug_event): Rename to ...
11262 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11263 * tracefile-tfile.c (tfile_target_open): Pass down target.
11264 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11265 Forward declare.
11266 (switch_to_thread): Add process_stratum_target parameter.
11267 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11268 parameter. Use it.
11269 (mi_on_resume): Pass target down.
11270 * nat/fork-inferior.c (startup_inferior): Add
11271 process_stratum_target parameter. Pass it down.
11272 * nat/fork-inferior.h (startup_inferior): Add
11273 process_stratum_target parameter.
11274 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11275
11276 2020-01-10 Pedro Alves <palves@redhat.com>
11277
11278 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11279 directly. Instead find the first thread in the thread list and
11280 use switch_to_thread.
11281
11282 2020-01-10 Pedro Alves <palves@redhat.com>
11283
11284 * remote.c (remote_target::remote_add_inferior): Don't bind a
11285 process to the current inferior if the current inferior is already
11286 bound to a process.
11287
11288 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11289 Pedro Alves <palves@redhat.com>
11290
11291 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11292 If no process is specified, return null_ptid instead of
11293 inferior_ptid.
11294 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11295 TARGET_WAITKIND_SIGNALLED with no pid.
11296
11297 2020-01-10 Pedro Alves <palves@redhat.com>
11298
11299 * remote.c (first_remote_resumed_thread): New.
11300 (remote_target::wait_as): Use it as default event_ptid instead of
11301 inferior_ptid.
11302
11303 2020-01-10 Pedro Alves <palves@redhat.com>
11304
11305 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11306
11307 2020-01-10 Pedro Alves <palves@redhat.com>
11308
11309 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11310 not -1.
11311
11312 2020-01-10 Pedro Alves <palves@redhat.com>
11313
11314 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11315 ptid to get_last_target_status.
11316 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11317 ptid to get_last_target_status.
11318 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11319 get_last_target_status.
11320 (info_program_command): Don't pass a target_waitstatus to
11321 get_last_target_status.
11322 * infrun.c (init_wait_for_inferior): Use
11323 nullify_last_target_wait_ptid.
11324 (get_last_target_status): Handle nullptr arguments.
11325 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11326 (print_stop_event): Don't pass a ptid to get_last_target_status.
11327 (normal_stop): Don't pass a ptid to get_last_target_status.
11328 * infrun.h (get_last_target_status, set_last_target_status): Move
11329 comments here and update.
11330 (nullify_last_target_wait_ptid): Declare.
11331 * linux-fork.c (fork_load_infrun_state): Remove local extern
11332 declaration of nullify_last_target_wait_ptid.
11333 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11334 to get_last_target_status.
11335
11336 2020-01-10 Pedro Alves <palves@redhat.com>
11337
11338 * gdbthread.h (scoped_restore_current_thread)
11339 <dont_restore, restore, m_dont_restore>: Declare.
11340 * thread.c (thread_alive): Add assertion. Return bool.
11341 (switch_to_thread_if_alive): New.
11342 (prune_threads): Switch inferior/thread.
11343 (print_thread_info_1): Switch thread before calling target methods.
11344 (scoped_restore_current_thread::restore): New, factored out from
11345 ...
11346 (scoped_restore_current_thread::~scoped_restore_current_thread):
11347 ... this.
11348 (scoped_restore_current_thread::scoped_restore_current_thread):
11349 Add assertion.
11350 (thread_apply_all_command, thread_select): Use
11351 switch_to_thread_if_alive.
11352 * infrun.c (proceed, restart_threads, handle_signal_stop)
11353 (switch_back_to_stepped_thread): Switch current thread before
11354 calling target methods.
11355
11356 2020-01-10 Pedro Alves <palves@redhat.com>
11357
11358 * inferior.c (switch_to_inferior_no_thread): New function,
11359 factored out from ...
11360 (inferior_command): ... here.
11361 * inferior.h (switch_to_inferior_no_thread): Declare.
11362 * mi/mi-main.c (run_one_inferior): Use
11363 switch_to_inferior_no_thread.
11364
11365 2020-01-10 Pedro Alves <palves@redhat.com>
11366
11367 * infcmd.c (kill_command): Remove dead code.
11368
11369 2020-01-10 Pedro Alves <palves@redhat.com>
11370
11371 * remote.c (remote_target::mourn_inferior): No longer check
11372 whether the target is running.
11373
11374 2020-01-10 Pedro Alves <palves@redhat.com>
11375
11376 * corelow.c (core_target::has_execution): Change parameter type to
11377 inferior pointer.
11378 * inferior.c (number_of_live_inferiors): Use
11379 inferior::has_execution instead of target_has_execution_1.
11380 * inferior.h (inferior::has_execution): New.
11381 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11382 inferior::has_execution instead of target_has_execution_1.
11383 * process-stratum-target.c
11384 (process_stratum_target::has_execution): Change parameter type to
11385 inferior pointer. Check the inferior's PID instead of
11386 inferior_ptid.
11387 * process-stratum-target.h
11388 (process_stratum_target::has_execution): Change parameter type to
11389 inferior pointer.
11390 * record-full.c (record_full_core_target::has_execution): Change
11391 parameter type to inferior pointer.
11392 * target.c (target_has_execution_1): Change parameter type to
11393 inferior pointer.
11394 (target_has_execution_current): Adjust.
11395 * target.h (target_ops::has_execution): Change parameter type to
11396 inferior pointer.
11397 (target_has_execution_1): Change parameter type to inferior
11398 pointer. Change return type to bool.
11399 * tracefile.h (tracefile_target::has_execution): Change parameter
11400 type to inferior pointer.
11401
11402 2020-01-10 Pedro Alves <palves@redhat.com>
11403
11404 * exceptions.c (print_flush): Remove current_top_target() check.
11405
11406 2020-01-10 Pedro Alves <palves@redhat.com>
11407
11408 * remote.c (show_remote_exec_file): Show the current inferior's
11409 exec-file instead of the command variable's value.
11410
11411 2020-01-10 Pedro Alves <palves@redhat.com>
11412
11413 * record-full.c (record_full_resume_ptid): New global.
11414 (record_full_target::resume): Set it.
11415 (record_full_wait_1): Use record_full_resume_ptid instead of
11416 inferior_ptid.
11417
11418 2020-01-10 Pedro Alves <palves@redhat.com>
11419
11420 * gdbthread.h (scoped_restore_current_thread)
11421 <dont_restore, restore, m_dont_restore>: Declare.
11422 * thread.c (thread_alive): Add assertion. Return bool.
11423 (switch_to_thread_if_alive): New.
11424 (prune_threads): Switch inferior/thread.
11425 (print_thread_info_1): Switch thread before calling target methods.
11426 (scoped_restore_current_thread::restore): New, factored out from
11427 ...
11428 (scoped_restore_current_thread::~scoped_restore_current_thread):
11429 ... this.
11430 (scoped_restore_current_thread::scoped_restore_current_thread):
11431 Add assertion.
11432 (thread_apply_all_command, thread_select): Use
11433 switch_to_thread_if_alive.
11434
11435 2020-01-10 George Barrett <bob@bob131.so>
11436
11437 * stap-probe.c (stap_modify_semaphore): Don't check for null
11438 semaphores.
11439 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11440 for null semaphores.
11441
11442 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11443
11444 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11445 all source windows, and maintain horizontal scroll status while
11446 doing so.
11447
11448 2020-01-09 Tom Tromey <tom@tromey.com>
11449
11450 PR tui/18932:
11451 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11452 update_source_window, not print_source_lines.
11453
11454 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11455
11456 * tui/tui.c (tui_enable): Register tui hooks after calling
11457 tui_display_main.
11458
11459 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11460
11461 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11462
11463 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11464
11465 * thread.c (print_thread_info_1): Fix indentation.
11466
11467 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11468
11469 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11470 unique_xmalloc_ptr outside the if to always free the demangled name.
11471
11472 2020-01-08 Tom Tromey <tromey@adacore.com>
11473
11474 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11475 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11476 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11477 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11478 Remove.
11479 (section_offsets): New typedef.
11480 * symtab.c (fixup_section, get_msymbol_address): Update.
11481 * symmisc.c (dump_msymbols): Update.
11482 * symfile.h (relative_addr_info_to_section_offsets)
11483 (symfile_map_offsets_to_segments): Update.
11484 * symfile.c (build_section_addr_info_from_objfile)
11485 (init_objfile_sect_indices): Update.
11486 (struct place_section_arg): Change type of "offsets".
11487 (place_section): Update.
11488 (relative_addr_info_to_section_offsets): Change type of
11489 "section_offsets". Remove "num_sections" parameter.
11490 (default_symfile_offsets, syms_from_objfile_1)
11491 (set_objfile_default_section_offset): Update.
11492 (reread_symbols): No need to preserve section offsets by hand.
11493 (symfile_map_offsets_to_segments): Change type of "offsets".
11494 * stap-probe.c (relocate_address): Update.
11495 * stabsread.h (process_one_symbol): Update.
11496 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11497 (solib_target_relocate_section_addresses): Update.
11498 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11499 Update.
11500 * solib-frv.c (frv_relocate_main_executable): Update.
11501 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11502 * solib-aix.c (solib_aix_get_section_offsets): Change return
11503 type.
11504 (solib_aix_solib_create_inferior_hook): Update.
11505 * remote.c (remote_target::get_offsets): Update.
11506 * psymtab.c (find_pc_sect_psymtab): Update.
11507 * psympriv.h (struct partial_symbol) <address, text_low,
11508 text_high>: Update.
11509 * objfiles.h (obj_section_offset): Update.
11510 (struct objfile) <section_offsets>: Change type.
11511 <num_sections>: Remove.
11512 (objfile_relocate): Update.
11513 * objfiles.c (entry_point_address_query): Update
11514 (relocate_one_symbol): Change type of "section_offsets".
11515 (objfile_relocate1, objfile_relocate1): Change type of
11516 "new_offsets".
11517 (objfile_rebase1): Update.
11518 * mipsread.c (mipscoff_symfile_read): Update.
11519 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11520 parameter.
11521 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11522 (parse_external, psymtab_to_symtab_1): Update.
11523 * machoread.c (macho_symfile_offsets): Update.
11524 * ia64-tdep.c (ia64_find_unwind_table): Update.
11525 * hppa-tdep.c (read_unwind_info): Update.
11526 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11527 * dwarf2read.c (create_addrmap_from_index)
11528 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11529 (process_psymtab_comp_unit_reader, add_partial_symbol)
11530 (add_partial_subprogram, process_full_comp_unit)
11531 (read_file_scope, read_func_scope, read_lexical_block_scope)
11532 (read_call_site_scope, dwarf2_rnglists_process)
11533 (dwarf2_ranges_process, dwarf2_ranges_read)
11534 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11535 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11536 Update.
11537 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11538 Update.
11539 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11540 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11541 (process_one_symbol): Change type of "section_offsets".
11542 * ctfread.c (get_objfile_text_range): Update.
11543 * coffread.c (coff_symtab_read, enter_linenos)
11544 (process_coff_symbol): Update.
11545 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11546 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11547
11548 2020-01-08 Tom Tromey <tromey@adacore.com>
11549
11550 * dwarf2read.c (parse_macro_definition): Use std::string.
11551 (parse_macro_definition): Likewise.
11552
11553 2020-01-08 Tom Tromey <tromey@adacore.com>
11554
11555 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11556 (ATTR_ALLOC_CHUNK): Remove.
11557
11558 2020-01-08 Tom Tromey <tromey@adacore.com>
11559
11560 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11561
11562 2020-01-08 Tom Tromey <tromey@adacore.com>
11563
11564 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11565 (dwarf2_compute_name, open_dwo_file): Likewise.
11566 (process_enumeration_scope): Use std::vector.
11567 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11568 (partial_die_info::fixup, dwarf2_start_subfile)
11569 (guess_full_die_structure_name, dwarf2_name): Likewise.
11570 (determine_prefix): Update.
11571 (guess_full_die_structure_name): Make return type const.
11572 (partial_die_full_name): Return unique_xmalloc_ptr.
11573 (DW_FIELD_ALLOC_CHUNK): Remove.
11574
11575 2020-01-07 Tom Tromey <tromey@adacore.com>
11576
11577 PR build/24937:
11578 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11579
11580 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11581
11582 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11583
11584 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11585
11586 * stack.c (print_frame_info): Move disassemble_next_line code
11587 inside source_print block.
11588
11589 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11590
11591 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11592 gdb/signals.h, as we are now using native signal symbols.
11593
11594 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11595
11596 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11597 overflow by an early check of content vs threshold.
11598 * tui/tui-source.c (tui_source_window::line_is_displayed):
11599 Likewise.
11600
11601 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11602
11603 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11604
11605 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11606
11607 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11608 export table if no section contains it's RVA.
11609
11610 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11611
11612 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11613
11614 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11615
11616 * source.c (print_source_lines_base): Set last_line_listed.
11617
11618 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11619
11620 * tui/tui-disasm.c: Remove trailing spaces.
11621
11622 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11623 Pedro Alves <palves@redhat.com>
11624
11625 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11626 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11627 (windows_gdb_signal_to_target): New function, uses the above
11628 enumeration to convert GDB internal signal codes to equivalent
11629 Windows codes.
11630 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11631 * windows-nat.c: Include "gdb_wait.h".
11632 (get_windows_debug_event): Extract the fatal exception from the
11633 exit status and convert to the equivalent Posix signal number.
11634 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11635 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11636 * gdbsupport/gdb_wait.c: New file, implements
11637 windows_status_to_termsig.
11638 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11639 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11640
11641 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11642
11643 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11644 show_layout.
11645
11646 2020-01-05 Luis Machado <luis.machado@linaro.org>
11647
11648 * aarch64-linux-nat.c
11649 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11650 and bfd_mach_aarch64.
11651
11652 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11653
11654 * ui-file.c (stdio_file::can_emit_style_escape)
11655 (tee_file::can_emit_style_escape): Ensure style is used also on
11656 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11657 to gdb_stdout.
11658 * main.c (set_gdb_data_directory): Use file style to output the
11659 warning that the given pathname is not a directory.
11660 * top.c (show_history_filename, gdb_safe_append_history)
11661 (show_gdb_datadir): Use file style.
11662
11663 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11664
11665 * solib-target.c (struct lm_info_target):
11666 Change offsets to be a unique_xmalloc_ptr.
11667 (solib_target_relocate_section_addresses): Update.
11668
11669 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11670
11671 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11672
11673 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11674
11675 * MAINTAINERS (Write After Approval): Add myself.
11676
11677 2020-01-02 Luis Machado <luis.machado@linaro.org>
11678
11679 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11680 Cell BE architecture.
11681 * target.h (struct target_ops) <thread_architecture>: Likewise.
11682
11683 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11684
11685 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11686
11687 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
11688
11689 * MAINTAINERS (Write After Approval): Add myself.
11690
11691 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11692
11693 * gdbarch.sh: Update copyright year range of generated files.
11694
11695 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11696
11697 Update copyright year range in all GDB files.
11698
11699 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11700
11701 * copyright.py: Convert to Python 3.
11702
11703 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11704
11705 * copyright.py: Adapt after move of gnulib directory from gdb
11706 directory to toplevel directory.
11707
11708 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11709
11710 * copyright.py (main): Exit if run from the wrong directory.
11711
11712 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11713
11714 * top.c (print_gdb_version): Change copyright year to 2020.
11715
11716 2020-01-01 Joel Brobecker <brobecker@adacore.com>
11717
11718 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
11719
11720 For older changes see ChangeLog-2019.
11721 \f
11722 Local Variables:
11723 mode: change-log
11724 left-margin: 8
11725 fill-column: 74
11726 version-control: never
11727 coding: utf-8
11728 End: