[gdb/build] Fix missing implicit constructor call with gcc 4.8
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2020-08-08 Tom de Vries <tdevries@suse.de>
2
3 PR build/26344
4 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5 constructor.
6 * regcache.c (get_thread_arch_aspace_regcache): Same.
7
8 2020-08-07 Tom Tromey <tromey@adacore.com>
9
10 * ravenscar-thread.c
11 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
12 New method.
13 (ravenscar_thread_target::wait): Check
14 runtime_initialized.
15 (ravenscar_thread_target::prepare_to_store)
16 (ravenscar_thread_target::stopped_by_sw_breakpoint)
17 (ravenscar_thread_target::stopped_by_hw_breakpoint)
18 (ravenscar_thread_target::stopped_by_watchpoint)
19 (ravenscar_thread_target::stopped_data_address)
20 (ravenscar_thread_target::core_of_thread): Use
21 scoped_restore_current_thread and
22 set_base_thread_from_ravenscar_task.
23
24 2020-08-07 Tom Tromey <tromey@adacore.com>
25
26 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
27
28 2020-08-07 Tom Tromey <tromey@adacore.com>
29
30 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
31 update_inferior_ptid before update_thread_list.
32 (temporarily_change_regcache_ptid): New class.
33 (ravenscar_thread_target::fetch_registers)
34 (ravenscar_thread_target::store_registers)
35 (ravenscar_thread_target::prepare_to_store): Use base thread when
36 forwarding operation.
37
38 2020-08-07 Tom Tromey <tromey@adacore.com>
39
40 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
41 "is_pid" case.
42
43 2020-08-07 Tom Tromey <tromey@adacore.com>
44
45 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
46 New methods.
47 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
48 first.
49 (ravenscar_thread_target::add_thread): Rename from
50 ravenscar_add_thread.
51 (ravenscar_thread_target::update_thread_list): Use a lambda.
52 (ravenscar_thread_target::xfer_partial): New method.
53
54 2020-08-07 Tom Tromey <tromey@adacore.com>
55
56 * ada-lang.h (ada_task_list_iterator_ftype): Now a
57 gdb::function_view.
58 (iterate_over_live_ada_tasks): Change type of argument.
59 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
60 of argument.
61
62 2020-08-07 Tom Tromey <tromey@adacore.com>
63
64 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
65 Remove.
66 (ravenscar_thread_target::extra_thread_info): Remove.
67 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
68 defer to target beneath for non-Ravenscar threads.
69
70 2020-08-07 Tom Tromey <tromey@adacore.com>
71
72 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
73 get_base_thread_from_ravenscar_task>: Now methods.
74 <m_cpu_map>: New member.
75 (ravenscar_thread_target::get_thread_base_cpu): Rename from
76 ravenscar_get_thread_base_cpu. Check m_cpu_map.
77 (ravenscar_thread_target::task_is_currently_active): Update.
78 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
79 Now a method.
80 (ravenscar_thread_target::add_active_thread): Put initial thread
81 into the m_cpu_map.
82
83 2020-08-07 Tom Tromey <tromey@adacore.com>
84
85 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
86 event_ptid.
87
88 2020-08-07 Tom Tromey <tromey@adacore.com>
89
90 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
91 runtime_initialized.
92
93 2020-08-07 Tom Tromey <tromey@adacore.com>
94
95 * ravenscar-thread.c (ravenscar_thread_target): Don't call
96 add_active_thread.
97 (ravenscar_thread_target::add_active_thread): Now public.
98 (ravenscar_inferior_created): Call add_active_thread after pushing
99 the target.
100
101 2020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
102
103 * regcache.c (ptid_regcache_map): New type.
104 (target_ptid_regcache_map): New type.
105 (regcaches): Change type to target_ptid_regcache_map.
106 (get_thread_arch_aspace_regcache): Update to regcaches' new
107 type.
108 (regcache_thread_ptid_changed): Likewise.
109 (registers_changed_ptid): Likewise.
110 (regcaches_size): Likewise.
111 (regcaches_test): Update.
112 (regcache_thread_ptid_changed): Update.
113 * regcache.h (regcache_up): New type.
114 * gdbsupport/ptid.h (hash_ptid): New struct.
115
116 2020-08-07 Simon Marchi <simon.marchi@efficios.com>
117
118 * observable.h (thread_ptid_changed): Add parameter
119 `process_stratum_target *`.
120 * infrun.c (infrun_thread_ptid_changed): Add parameter
121 `process_stratum_target *` and use it.
122 (selftests): New namespace.
123 (infrun_thread_ptid_changed): New function.
124 (_initialize_infrun): Register selftest.
125 * regcache.c (regcache_thread_ptid_changed): Add parameter
126 `process_stratum_target *` and use it.
127 (regcache_thread_ptid_changed): New function.
128 (_initialize_regcache): Register selftest.
129 * thread.c (thread_change_ptid): Pass target to
130 thread_ptid_changed observable.
131
132 2020-08-06 Caroline Tice <cmtice@google.com>
133
134 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
135 (struct dwp_sections): Update field comments. Add loclists and
136 rnglists fields.
137 (struct virtual_v2_dwo_sections): Rename struct to
138 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
139 size & offset fields for loclists and rnglists.
140 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
141 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
142 skipping dummy type units.
143 (create_dwp_hash_table): Update the large comment above the function to
144 discuss Version 5 DWP files as well, with references. Update all the
145 version checks in the function to check for version 5 as well. Add new
146 section at the end to create dwp hash table for version 5.
147 (create_dwp_v2_section): Rename function to
148 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
149 Add V5 to error message text.
150 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
151 into calls to create_dwp_v2_or_v5_section.
152 (create_dwo_unit_in_dwp_v5): New function.
153 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
154 check for version2; add else clause to handle version 5.
155 (open_and_init_dwo_file): Add code to check dwarf version & only call
156 create_debug_types_hash_table (with sections.types) if version is not 5;
157 else call create_debug_type_hash_table, with sections.info.
158 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
159 version 5.
160 (dwarf2_locate_v5_dwp_sections): New function.
161 (open_and_init_dwp_file): Add else-if clause for version 5 to call
162 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
163
164 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
165
166 * regcache.h (class regcache): Remove friend
167 registers_changed_ptid.
168 <regcache_thread_ptid_changed>: Remove.
169 <regcaches>: Remove.
170 * regcache.c (regcache::regcaches): Rename to...
171 (regcaches): ... this. Make static.
172 (get_thread_arch_aspace_regcache): Update.
173 (regcache::regcache_thread_ptid_changed): Rename to...
174 (regcache_thread_ptid_changed): ... this. Update.
175 (class regcache_access): Remove.
176 (regcaches_test): Update.
177 (_initialize_regcache): Update.
178 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
179 <forward_list>.
180
181 2020-08-06 Simon Marchi <simon.marchi@efficios.com>
182
183 * regcache.h (class regcache) <current_regcache>: Rename to...
184 <regcaches>: ... this. Move doc here.
185 * regcache.c (regcache::current_regcache) Rename to...
186 (regcache::regcaches): ... this. Move doc to header.
187 (get_thread_arch_aspace_regcache): Update.
188 (regcache::regcache_thread_ptid_changed): Update.
189 (registers_changed_ptid): Update.
190 (class regcache_access) <current_regcache_size>: Rename to...
191 <regcaches_size>: ... this.
192 (current_regcache_test): Rename to...
193 (regcaches_test): ... this.
194 (_initialize_regcache): Update.
195
196 2020-08-06 Victor Collod <vcollod@nvidia.com>
197
198 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
199
200 2020-08-05 Kevin Buettner <kevinb@redhat.com>
201
202 * corelow.c (core_target::build_file_mappings): Don't output
203 null pathname in warning.
204
205 2020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
206
207 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
208 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
209 gdb.dwarf2/dw2-single-line-discriminators.exp,
210 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
211
212 2020-08-05 Tom Tromey <tromey@adacore.com>
213
214 PR rust/26197:
215 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
216 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
217 Fix off-by-one and type size errors in ordinary case.
218
219 2020-08-05 Tom de Vries <tdevries@suse.de>
220
221 * gdbtypes.c (type_not_allocated, type_not_associated): Use
222 "prop->const_val () == 0" instead of "prop->const_val () != 0".
223
224 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
225
226 * frame.h (frame_id_p): Return bool.
227 (frame_id_artificial_p): Return bool.
228 (frame_id_eq): Return bool.
229 (has_stack_frames): Return bool.
230 (get_selected_frame): Fix typo in comment.
231 (get_frame_pc_if_available): Return bool.
232 (get_frame_address_in_block_if_available): Return bool.
233 (get_frame_func_if_available): Return bool.
234 (read_frame_register_unsigned): Return bool.
235 (get_frame_register_bytes): Return bool.
236 (safe_frame_unwind_memory): Return bool.
237 (deprecated_frame_register_read): Return bool.
238 (frame_unwinder_is): Return bool.
239 * frame.c (struct frame_info) <prev_arch::p>: Change type to
240 bool.
241 <this_id::p>: Likewise.
242 <prev_p>: Likewise.
243 (frame_stash_add): Return bool.
244 (get_frame_id): Use bool.
245 (frame_id_build_special) Use bool.
246 (frame_id_build_unavailable_stack): Use bool.
247 (frame_id_build): Use bool.
248 (frame_id_p): Return bool, use true/false instead of 1/0.
249 (frame_id_artificial_p): Likewise.
250 (frame_id_eq): Likewise.
251 (frame_id_inner): Likewise.
252 (get_frame_func_if_available): Likewise.
253 (read_frame_register_unsigned): Likewise.
254 (deprecated_frame_register_read): Likewise.
255 (get_frame_register_bytes): Likewise.
256 (has_stack_frames): Likewise.
257 (inside_main_func): Likewise.
258 (inside_entry_func): Likewise.
259 (get_frame_pc_if_available): Likewise.
260 (get_frame_address_in_block_if_available): Likewise.
261 (frame_unwinder_is): Likewise.
262 (safe_frame_unwind_memory): Likewise.
263 (frame_unwind_arch): Likewise.
264
265 2020-08-04 Simon Marchi <simon.marchi@efficios.com>
266
267 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
268 type to cached_copy_status.
269 (fprintf_frame): Adjust.
270 (get_frame_func_if_available): Adjust.
271 (frame_cleanup_after_sniffer): Adjust.
272
273 2020-08-04 Mark Wielaard <mark@klomp.org>
274
275 * MAINTAINERS (Write After Approval): Update email address.
276
277 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
278
279 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
280 dynamic_prop::const_val.
281
282 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
283
284 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
285 dynamic_prop::kind.
286
287 2020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
290
291 2020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
292
293 * configure.tgt: Set gdb_sim for bpf-*-* targets.
294
295 2020-08-04 Weimin Pan <weimin.pan@oracle.com>
296 Jose E. Marchesi <jose.marchesi@oracle.com>
297
298 * configure.tgt: Add entry for bpf-*-*.
299 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
300 (ALLDEPFILES): Add bpf-tdep.c.
301 * bpf-tdep.c: New file.
302 * MAINTAINERS: Add bpf target and maintainer.
303 * NEWS: Mention the support for the new target.
304
305 2020-08-04 Tom de Vries <tdevries@suse.de>
306
307 PR symtab/23270
308 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
309 Error.
310
311 2020-08-03 John Baldwin <jhb@FreeBSD.org>
312
313 * syscalls/freebsd.xml: Regenerate.
314
315 2020-08-03 John Baldwin <jhb@FreeBSD.org>
316
317 * syscalls/update-freebsd.sh: Fix usage and year range.
318
319 2020-08-03 Tom de Vries <tdevries@suse.de>
320
321 PR symtab/26333
322 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
323 DW_LNE_lo_user/DW_LNE_hi_user range.
324
325 2020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
326
327 PR ada/26318
328 * ada-lang.c (ada_modulus): Return 0 if property is not of const
329 kind.
330
331 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
332
333 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
334
335 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
336
337 * breakpoint.c (set_breakpoint_condition): Update the condition
338 expressions after checking that the input condition string parses
339 successfully and does not contain junk at the end.
340
341 2020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
342
343 * breakpoint.c (set_breakpoint_condition): Update the
344 condition string after parsing the new condition successfully.
345
346 2020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
347
348 * proc-api.c (_STRUCTURED_PROC): Don't define.
349 * proc-events.c: Likewise.
350 * proc-flags.c: Likewise.
351 * proc-why.c: Likewise.
352 * procfs.c: Likewise.
353
354 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
355 * configure, config.in: Regenerate.
356
357 2020-07-30 Tom de Vries <tdevries@suse.de>
358
359 PR build/26320
360 * ui-style.h (struct ui_file_style::color): Wrap m_value and
361 m_red/m_green/m_blue in a union.
362
363 2020-07-29 Tom de Vries <tdevries@suse.de>
364
365 PR tdep/26280
366 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
367
368 2020-07-28 Tom Tromey <tromey@adacore.com>
369
370 PR symtab/26270:
371 * symtab.h (find_pc_partial_function_sym): Declare.
372 * cli/cli-cmds.c (disassemble_command): Use
373 find_pc_partial_function_sym. Check asm_demangle.
374 * blockframe.c (cache_pc_function_sym): New global.
375 (cache_pc_function_name): Remove.
376 (clear_pc_function_cache): Update.
377 (find_pc_partial_function_sym): New function, from
378 find_pc_partial_function.
379 (find_pc_partial_function): Rewrite using
380 find_pc_partial_function_sym.
381
382 2020-07-28 Tom Tromey <tromey@adacore.com>
383
384 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
385 help. Add usage.
386
387 2020-07-28 Tom Tromey <tromey@adacore.com>
388
389 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
390 <DW_OP_GNU_variable_value>: Cast to address type.
391
392 2020-07-28 Kamil Rytarowski <n54@gmx.com>
393
394 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
395 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
396 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
397 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
398 (nbsd_get_siginfo_type): New.
399 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
400 (_initialize_nbsd_tdep): New.
401
402 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
403
404 PR binutils/26301
405 * configure: Regenerated.
406
407 2020-07-28 H.J. Lu <hongjiu.lu@intel.com>
408
409 PR binutils/26301
410 * configure: Regenerated.
411
412 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
413
414 * python/py-frame.c: Remove 'user-regs.h' include.
415 (frapy_read_register): Rewrite to make use of
416 gdbpy_parse_register_id.
417 * python/py-registers.c (gdbpy_parse_register_id): New function,
418 moved here from python/py-unwind.c. Updated the return type, and
419 also accepts register descriptor objects.
420 * python/py-unwind.c: Remove 'user-regs.h' include.
421 (pyuw_parse_register_id): Moved to python/py-registers.c.
422 (unwind_infopy_add_saved_register): Update to use
423 gdbpy_parse_register_id.
424 (pending_framepy_read_register): Likewise.
425 * python/python-internal.h (gdbpy_parse_register_id): Declare.
426
427 2020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
428
429 * python/py-registers.c: Add 'user-regs.h' include.
430 (register_descriptor_iter_find): New function.
431 (register_descriptor_iterator_object_methods): New static global
432 methods array.
433 (register_descriptor_iterator_object_type): Add pointer to methods
434 array.
435
436 2020-07-27 John Baldwin <jhb@FreeBSD.org>
437
438 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
439 for all architectures on FreeBSD 11.3 and later.
440
441 2020-07-27 Tom Tromey <tromey@adacore.com>
442
443 * gcore.h (load_corefile): Don't declare.
444
445 2020-07-27 Tom de Vries <tdevries@suse.de>
446
447 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
448 * config.in: Regenerate.
449 * configure: Regenerate.
450
451 2020-07-26 Eli Zaretskii <eliz@gnu.org>
452
453 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
454 ws2tcpip.h. When checking whether socklen_t type is defined, use
455 ws2tcpip.h if it is available and sys/socket.h isn't.
456 * configure: Regenerate.
457 * config.in: Regenerate.
458
459 2020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
460
461 PR fortran/23051
462 PR fortran/26139
463 * valops.c (value_ind): Pass address to
464 readjust_indirect_value_type.
465 * value.c (readjust_indirect_value_type): Make parameter
466 non-const, and add extra address parameter. Resolve original type
467 before using it.
468 * value.h (readjust_indirect_value_type): Update function
469 signature and comment.
470
471 2020-07-25 Tom de Vries <tdevries@suse.de>
472
473 PR symtab/26243
474 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
475 entries.
476
477 2020-07-24 Aaron Merey <amerey@redhat.com>
478
479 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
480 * configure: Rebuild.
481
482 2020-07-23 Kevin Buettner <kevinb@redhat.com>
483
484 PR corefiles/26294
485 * corelow.c (_initialize_corelow): Add period to help text
486 for "maintenance print core-file-backed-mappings".
487
488 2020-07-23 Pedro Alves <pedro@palves.net>
489
490 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
491 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
492 meanwhile.
493 * frame.c (frame_cache_generation, get_frame_cache_generation):
494 New.
495 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
496 (get_prev_frame_if_no_cycle): On exception, don't touch
497 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
498 * frame.h (get_frame_cache_generation): Declare.
499
500 2020-07-23 Tom de Vries <tdevries@suse.de>
501
502 PR tui/26282
503 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
504 New default constructor.
505
506 2020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
507
508 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
509 exclude non-statement entries.
510
511 2020-07-22 Kevin Buettner <kevinb@redhat.com>
512
513 * NEWS (New commands): Mention new command
514 "maintenance print core-file-backed-mappings".
515
516 2020-07-22 Kevin Buettner <kevinb@redhat.com>
517
518 * corelow.c (gdbcmd.h): Include.
519 (core_target::info_proc_mappings): New method.
520 (get_current_core_target): New function.
521 (maintenance_print_core_file_backed_mappings): New function.
522 (_initialize_corelow): Add core-file-backed-mappings to
523 "maint print" commands.
524
525 2020-07-22 Kevin Buettner <kevinb@redhat.com>
526
527 * linux-tdep.c (dump_note_entry_p): New function.
528 (linux_dump_mapping_p_ftype): New typedef.
529 (linux_find_memory_regions_full): Add new parameter,
530 should_dump_mapping_p.
531 (linux_find_memory_regions): Adjust call to
532 linux_find_memory_regions_full.
533 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
534 call to linux_find_memory_regions_full.
535
536 2020-07-22 Kevin Buettner <kevinb@redhat.com>
537
538 * corelow.c (solist.h, unordered_map): Include.
539 (class core_target): Add field m_core_file_mappings and
540 method build_file_mappings.
541 (core_target::core_target): Call build_file_mappings.
542 (core_target::~core_target): Free memory associated with
543 m_core_file_mappings.
544 (core_target::build_file_mappings): New method.
545 (core_target::xfer_partial): Use m_core_file_mappings
546 for memory transfers.
547 * linux-tdep.c (linux_read_core_file_mappings): New
548 function.
549 (linux_core_info_proc_mappings): Rewrite to use
550 linux_read_core_file_mappings.
551 (linux_init_abi): Register linux_read_core_file_mappings.
552
553 2020-07-22 Kevin Buettner <kevinb@redhat.com>
554
555 * arch-utils.c (default_read_core_file_mappings): New function.
556 * arch-utils.c (default_read_core_file_mappings): Declare.
557 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
558 * gdbarch.h, gdbarch.c: Regenerate.
559
560 2020-07-22 Kevin Buettner <kevinb@redhat.com>
561
562 PR corefiles/25631
563 * corelow.c (core_target:xfer_partial): Revise
564 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
565 case after first checking the stratum beneath the core
566 target.
567 (has_all_memory): Return true.
568 * target.c (raw_memory_xfer_partial): Revise comment
569 regarding use of has_all_memory.
570
571 2020-07-22 Kevin Buettner <kevinb@redhat.com>
572
573 * exec.h (section_table_xfer_memory): Revise declaration,
574 replacing section name parameter with an optional callback
575 predicate.
576 * exec.c (section_table_xfer_memory): Likewise.
577 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
578 of section_table_xfer_memory.
579
580 2020-07-22 Tom Tromey <tromey@adacore.com>
581
582 * mi/mi-cmd-stack.c (list_args_or_locals): Use
583 lookup_symbol_search_name.
584
585 2020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
586
587 * python/py-registers.c (gdbpy_register_object_data_init): Remove
588 redundant local variable.
589 (gdbpy_get_register_descriptor): Extract descriptor vector as a
590 reference, not pointer, update code accordingly.
591
592 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
593 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
594
595 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
596 * jit.c (jit_breakpoint_re_set_internal): Use the
597 `skip_jit_symbol_lookup` field.
598
599 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
600 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
601
602 * jit.c (jit_read_descriptor): Define the descriptor address once,
603 use twice.
604 (jit_breakpoint_deleted): Move the declaration of the loop variable
605 `iter` into the loop header.
606 (jit_breakpoint_re_set_internal): Move the declaration of the local
607 variable `objf_data` to the first point of definition.
608 (jit_event_handler): Move the declaration of local variables
609 `code_entry`, `entry_addr`, and `objf` to their first point of use.
610 Rename `objf` to `jited`.
611
612 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
613
614 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
615 Remove.
616 * jit.c (get_jiter_objfile_data): Update.
617
618 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
619 Simon Marchi <simon.marchi@polymtl.ca>
620
621 * jit.c (struct jit_program_space_data): Remove.
622 (jit_program_space_key): Remove.
623 (jiter_objfile_data::~jiter_objfile_data): Remove program space
624 stuff.
625 (get_jit_program_space_data): Remove.
626 (jit_breakpoint_deleted): Iterate on all of the program space's
627 objfiles.
628 (jit_inferior_init): Likewise.
629 (jit_breakpoint_re_set_internal): Likewise. Also change return
630 type to void.
631 (jit_breakpoint_re_set): Pass current_program_space to
632 jit_breakpoint_re_set_internal.
633
634 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
635
636 * jit.h (struct jiter_objfile_data) <cached_code_address,
637 jit_breakpoint>: Move to here from ...
638 * jit.c (jit_program_space_data): ... here.
639 (jiter_objfile_data::~jiter_objfile_data): Update.
640 (jit_breakpoint_deleted): Update.
641 (jit_breakpoint_re_set_internal): Update.
642
643 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
644
645 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
646 checks.
647 (jit_read_descriptor): Remove NULL check.
648 (jit_event_handler): Add an assertion.
649
650 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
651
652 * jit.h (struct jit_objfile_data): Split into...
653 (struct jiter_objfile_data): ... this ...
654 (struct jited_objfile_data): ... and this.
655 * objfiles.h (struct objfile) <jit_data>: Remove.
656 <jiter_data, jited_data>: New fields.
657 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
658 (jiter_objfile_data::~jiter_objfile_data): ... this.
659 (get_jit_objfile_data): Rename to ...
660 (get_jiter_objfile_data): ... this.
661 (add_objfile_entry): Update.
662 (jit_read_descriptor): Use get_jiter_objfile_data.
663 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
664 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
665 (jit_inferior_exit_hook): Use objfile's jited_data field.
666
667 2020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
668
669 * jit.h: Forward-declare `struct minimal_symbol`.
670 (struct jit_objfile_data): Migrate to here from jit.c; also add a
671 constructor, destructor, and an objfile* field.
672 * jit.c (jit_objfile_data): Remove.
673 (struct jit_objfile_data): Migrate from here to jit.h.
674 (jit_objfile_data::~jit_objfile_data): New destructor
675 implementation with code moved from free_objfile_data.
676 (free_objfile_data): Delete.
677 (get_jit_objfile_data): Update to use the jit_data field of objfile.
678 (jit_find_objf_with_entry_addr): Ditto.
679 (jit_inferior_exit_hook): Ditto.
680 (_initialize_jit): Remove the call to
681 register_objfile_data_with_cleanup.
682 * objfiles.h (struct objfile) <jit_data>: New field.
683
684 2020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
685
686 * jit.h: Forward-declare `struct objfile`.
687 (jit_event_handler): Add a second parameter, the JITer objfile.
688 * jit.c (jit_read_descriptor): Change the signature to take the
689 JITer objfile as an argument instead of the jit_program_space_data.
690 (jit_inferior_init): Update the call to jit_read_descriptor.
691 (jit_event_handler): Use the new JITer objfile argument when calling
692 jit_read_descriptor.
693 * breakpoint.c (handle_jit_event): Update the call to
694 jit_event_handler to pass the JITer objfile.
695
696 2020-07-21 John Baldwin <jhb@FreeBSD.org>
697
698 * gdbarch.c: Regenerate.
699 * gdbarch.h: Regenerate.
700 * gdbarch.sh (handle_segmentation_fault): Remove method.
701 * infrun.c (handle_segmentation_fault): Remove.
702 (print_signal_received_reason): Remove call to
703 handle_segmentation_fault.
704
705 2020-07-21 John Baldwin <jhb@FreeBSD.org>
706
707 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
708 Rename to sparc64_linux_report_signal_info and add siggnal
709 argument.
710 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
711 instead of sparc64_linux_handle_segmentation_fault.
712
713 2020-07-21 John Baldwin <jhb@FreeBSD.org>
714
715 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
716 i386_linux_report_signal_info instead of
717 i386_linux_handle_segmentation_fault.
718 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
719 to i386_linux_report_signal_info and add siggnal argument.
720 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
721 of i386_linux_handle_segmentation_fault.
722 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
723 to i386_linux_report_signal_info and add siggnal argument.
724
725 2020-07-21 John Baldwin <jhb@FreeBSD.org>
726
727 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
728 hook if present.
729
730 2020-07-21 John Baldwin <jhb@FreeBSD.org>
731
732 * gdbarch.c: Regenerate.
733 * gdbarch.h: Regenerate.
734 * gdbarch.sh (report_signal_info): New method.
735 * infrun.c (print_signal_received_reason): Invoke gdbarch
736 report_signal_info hook if present.
737
738 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
739
740 * python/py-registers.c : Add 'unordered_map' include.
741 (gdbpy_new_reggroup): Renamed to...
742 (gdbpy_get_reggroup): ...this. Update to only create register
743 group descriptors when needed.
744 (gdbpy_reggroup_iter_next): Update.
745
746 2020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
747
748 * python/py-registers.c (gdbpy_register_object_data): New static
749 global.
750 (gdbpy_register_object_data_init): New function.
751 (gdbpy_new_register_descriptor): Renamed to...
752 (gdbpy_get_register_descriptor): ...this, and update to reuse
753 existing register descriptors where possible.
754 (gdbpy_register_descriptor_iter_next): Update.
755 (gdbpy_initialize_registers): Register new gdbarch data.
756
757 2020-07-21 Simon Marchi <simon.marchi@efficios.com>
758
759 * linux-nat.c (stopped_pids): Make static.
760
761 2020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
762
763 PR ada/26235
764 * gdbtypes.c (ada_discrete_type_low_bound,
765 ada_discrete_type_high_bound): Handle undefined bounds.
766
767 2020-07-21 Kamil Rytarowski <n54@gmx.com>
768
769 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
770 declaration.
771 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
772 function.
773
774 2020-07-20 John Baldwin <jhb@FreeBSD.org>
775
776 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
777 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
778 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
779 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
780 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
781 method.
782
783 2020-07-20 Ludovic Courtès <ludo@gnu.org>
784
785 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
786 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
787 which are deprecated in Guile 3.0.
788 * configure.ac (try_guile_versions): Add "guile-3.0".
789 * configure (try_guile_versions): Regenerate.
790 * NEWS: Update entry.
791
792 2020-07-20 Ludovic Courtès <ludo@gnu.org>
793 Doug Evans <dje@google.com>
794
795 PR gdb/21104
796 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
797 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
798 USING_GUILE_BEFORE_2_2.
799 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
800 Change type to 'scm_t_port_type *'.
801 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
802 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
803 parameter and honor it. Update callers.
804 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
805 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
806 functions.
807 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
808 USING_GUILE_BEFORE_2_2.
809 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
810 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
811 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
812 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
813 and 'SCM_PORT_TYPE'.
814 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
815 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
816 (gdbscm_memory_port_read, gdbscm_memory_port_write)
817 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
818 [!USING_GUILE_BEFORE_2_2]: New functions.
819 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
820 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
821 'gdbscm_memory_port_read'.
822 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
823 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
824 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
825 function.
826 (ioscm_init_memory_port): Remove.
827 (ioscm_init_memory_port_stream): New function
828 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
829 function.
830 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
831 Return scm_from_uint (0).
832 (gdbscm_set_memory_port_read_buffer_size_x)
833 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
834 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
835 Return scm_from_uint (0).
836 (gdbscm_set_memory_port_write_buffer_size_x)
837 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
838 * configure.ac (try_guile_versions): Add "guile-2.2".
839 * configure: Regenerate.
840 * NEWS: Add entry.
841
842 2020-07-18 Tom Tromey <tom@tromey.com>
843
844 * linux-nat.c (linux_multi_process): Remove.
845 (linux_nat_target::supports_multi_process): Return true.
846
847 2020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
848
849 * arch/riscv.c (riscv_tdesc_cache): Change map type.
850 (riscv_lookup_target_description): Return pointer out of
851 unique_ptr.
852 * target-descriptions.c (allocate_target_description): Add
853 comment.
854 (target_desc_deleter::operator()): Likewise.
855 * target-descriptions.h (struct target_desc_deleter): Moved to
856 gdbsupport/tdesc.h.
857 (target_desc_up): Likewise.
858
859 2020-07-17 Tom Tromey <tromey@adacore.com>
860
861 * linux-nat.c (linux_nat_target::supports_non_stop)
862 (linux_nat_target::always_non_stop_p): Use "true".
863 (linux_nat_target::supports_disable_randomization): Use "true" and
864 "false".
865
866 2020-07-16 Caroline Tice <cmtice@google.com>
867
868 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
869 (RNGLIST_HEADER_SIZE64): New constant definition.
870 (struct dwop_section_names): Add rnglists_dwo.
871 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
872 (struct loclist_header): Rename to 'loclists_rnglists_header'.
873 (struct dwo_sections): Add rnglists field.
874 (read_attribut_reprocess): Add tag parameter.
875 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
876 (cu_debug_rnglists_section): New function (decl & definition).
877 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
878 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
879 die whose range is being checked; get rnglist section from
880 cu_debug_rnglists_section, to get from either objfile or dwo file as
881 appropriate. Add cases for DW_RLE_base_addressx,
882 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
883 the base address to DW_RLE_offset_pairs (not to all ranges), moving
884 test inside if-condition and updating complaint message.
885 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
886 dwarf2_rnglists_process.
887 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
888 dwarf2_ranges_process.
889 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
890 need_ranges_base and update comment appropriately. Also pass die tag
891 to dwarf2_ranges_read.
892 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
893 need_ranges_base and update comment appropriately. Also pass die tag
894 to dwarf2_ranges_process.
895 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
896 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
897 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
898 need_ranges_base and update comment appropriately. Also pass die tag
899 to read_attribute_reprocess and dwarf2_ranges_read.
900 (read_loclist_header): Rename function to read_loclists_rnglists_header,
901 and update function comment appropriately.
902 (read_loclist_index): Call read_loclists_rnglists_header instead of
903 read_loclist_header.
904 (read_rnglist_index): New function.
905 (read_attribute_reprocess): Add tag parameter. Add code for
906 DW_FORM_rnglistx, passing tag to read_rnglist_index.
907 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
908
909 2020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
910
911 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
912 being resolved.
913
914 2020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
915
916 * arch-utils.c (show_architecture): Update formatting of messages.
917
918 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
919
920 * gdbtypes.h (struct type) <bounds>: Handle array and string
921 types.
922 * ada-lang.c (assign_aggregate): Use type::bounds on
923 array/string type.
924 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
925 * c-varobj.c (c_number_of_children): Likewise.
926 (c_describe_child): Likewise.
927 * eval.c (evaluate_subexp_for_sizeof): Likewise.
928 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
929 (f_type_print_base): Likewise.
930 * f-valprint.c (f77_array_offset_tbl): Likewise.
931 (f77_get_upperbound): Likewise.
932 (f77_print_array_1): Likewise.
933 * guile/scm-type.c (gdbscm_type_range): Likewise.
934 * m2-typeprint.c (m2_array): Likewise.
935 (m2_is_long_set_of_type): Likewise.
936 * m2-valprint.c (get_long_set_bounds): Likewise.
937 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
938 * python/py-type.c (typy_range): Likewise.
939 * rust-lang.c (rust_internal_print_type): Likewise.
940 * type-stack.c (type_stack::follow_types): Likewise.
941 * valarith.c (value_subscripted_rvalue): Likewise.
942 * valops.c (value_cast): Likewise.
943
944 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
945
946 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
947 callers to use the equivalent accessor methods.
948
949 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
950
951 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
952 (struct type) <bit_stride>: New method.
953 (TYPE_BIT_STRIDE): Remove.
954 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
955
956 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
957
958 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
959 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
960 callers to use the equivalent accessor methods instead.
961
962 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
963
964 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
965 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
966 callers to use the equivalent accessor methods instead.
967
968 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
969
970 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
971 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
972 to use dynamic_prop::kind.
973
974 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
975
976 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
977 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
978 to get the bound property's kind and check against
979 PROP_UNDEFINED.
980
981 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
982
983 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
984 all callers to use type::range_bounds followed by
985 dynamic_prop::{low,high}.
986
987 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
988
989 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
990 const_val, set_const_val, baton, set_locexpr, set_loclist,
991 set_addr_offset, variant_parts, set_variant_parts,
992 original_type, set_original_type>: New methods.
993 <kind>: Rename to...
994 <m_kind>: ... this. Update all users to use the new methods
995 instead.
996 <data>: Rename to...
997 <m_data>: ... this. Update all users to use the new methods
998 instead.
999
1000 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1001
1002 * gdbtypes.c (get_discrete_bounds): Return failure if
1003 the range type's bounds are not both defined and constant
1004 values.
1005 (get_array_bounds): Update comment. Remove undefined bound check.
1006
1007 2020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1008
1009 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1010 the type::bounds method directly.
1011
1012 2020-07-12 Simon Marchi <simon.marchi@efficios.com>
1013
1014 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1015 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1016 are used to set the range type's bounds to use set_bounds.
1017
1018 2020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1019
1020 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1021
1022 2020-07-10 Pedro Alves <pedro@palves.net>
1023
1024 * gdbthread.h (inferior_ref): Define.
1025 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1026 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1027 * thread.c
1028 (scoped_restore_current_thread::restore):
1029 Adjust to gdb::ref_ptr.
1030 (scoped_restore_current_thread::~scoped_restore_current_thread):
1031 Remove manual decref handling.
1032 (scoped_restore_current_thread::scoped_restore_current_thread):
1033 Adjust to use
1034 inferior_ref::new_reference/thread_info_ref::new_reference.
1035 Incref the thread before calling get_frame_id instead of after.
1036 Let TARGET_CLOSE_ERROR propagate.
1037
1038 2020-07-10 Pedro Alves <pedro@palves.net>
1039
1040 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1041 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1042 NOT_AVAILABLE_ERROR.
1043 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1044 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1045
1046 2020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1047 Pedro Alves <pedro@palves.net>
1048
1049 PR gdb/26199
1050 * infrun.c (threads_are_resumed_pending_p): Delete.
1051 (do_target_wait): Remove threads_are_executing and
1052 threads_are_resumed_pending_p checks from the inferior_matches
1053 lambda. Update comments.
1054
1055 2020-07-10 Pedro Alves <pedro@palves.net>
1056
1057 PR gdb/26199
1058 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1059 executing threads.
1060
1061 2020-07-10 Pedro Alves <pedro@palves.net>
1062
1063 PR gdb/26199
1064 * infrun.c (handle_no_resumed): Handle multiple targets.
1065
1066 2020-07-10 Pedro Alves <pedro@palves.net>
1067
1068 PR gdb/26199
1069 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1070 target_is_async_p.
1071
1072 2020-07-10 Pedro Alves <pedro@palves.net>
1073
1074 PR gdb/26199
1075 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1076 threads, not all threads.
1077
1078 2020-07-10 Pedro Alves <pedro@palves.net>
1079
1080 PR gdb/26199
1081 * remote.c (remote_target::open_1): Pass remote target pointer as
1082 data to create_async_event_handler.
1083 (remote_async_inferior_event_handler): Mark async event handler
1084 before returning if the remote target still has either pending
1085 events or unacknowledged notifications.
1086
1087 2020-07-10 John Baldwin <jhb@FreeBSD.org>
1088
1089 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1090 declaration.
1091 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1092 function.
1093
1094 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1095
1096 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1097 inferior_ptid.
1098
1099 2020-07-09 John Baldwin <jhb@FreeBSD.org>
1100
1101 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1102 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1103 AT_FREEBSD_PS_STRINGS.
1104
1105 2020-07-08 Hannes Domani <ssbssa@yahoo.de>
1106
1107 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1108 of debugfile path on Windows.
1109
1110 2020-07-08 John Baldwin <jhb@FreeBSD.org>
1111
1112 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1113 argument to 'data'.
1114
1115 2020-07-08 Tom Tromey <tromey@adacore.com>
1116
1117 * ada-lang.c (ada_exception_message_1): Use read_memory.
1118
1119 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 PR python/22748
1122 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1123 special handling for inline frames.
1124 * findvar.c (value_of_register_lazy): Skip inline frames when
1125 creating lazy register values.
1126 * frame.c (frame_id_computed_p): Delete definition.
1127 * frame.h (frame_id_computed_p): Delete declaration.
1128
1129 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1130
1131 * NEWS: Mention additions to Python API.
1132 * python/py-arch.c (archpy_register_groups): New function.
1133 (arch_object_methods): Add 'register_groups' method.
1134 * python/py-registers.c (reggroup_iterator_object): New struct.
1135 (reggroup_object): New struct.
1136 (gdbpy_new_reggroup): New function.
1137 (gdbpy_reggroup_to_string): New function.
1138 (gdbpy_reggroup_name): New function.
1139 (gdbpy_reggroup_iter): New function.
1140 (gdbpy_reggroup_iter_next): New function.
1141 (gdbpy_new_reggroup_iterator): New function
1142 (gdbpy_initialize_registers): Register new types.
1143 (reggroup_iterator_object_type): Define new Python type.
1144 (gdbpy_reggroup_getset): New static global.
1145 (reggroup_object_type): Define new Python type.
1146 * python/python-internal.h
1147
1148 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1149
1150 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1151 * python/py-arch.c (archpy_registers): New function.
1152 (arch_object_methods): Add 'registers' method.
1153 * python/py-registers.c: New file.
1154 * python/python-internal.h
1155 (gdbpy_new_register_descriptor_iterator): Declare.
1156 (gdbpy_initialize_registers): Declare.
1157 * python/python.c (do_start_initialization): Call
1158 gdbpy_initialize_registers.
1159 * NEWS: Mention additions to the Python API.
1160
1161 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1162
1163 * NEWS: Mention new Python API method.
1164 * python/py-unwind.c (pending_framepy_architecture): New function.
1165 (pending_frame_object_methods): Add architecture method.
1166
1167 2020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1168
1169 * gdbarch.c: Regenerate.
1170 * gdbarch.h: Regenerate.
1171 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1172 (gdbarch_data): Use internal_error for the case where
1173 deprecated_set_gdbarch_data was originally needed.
1174 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1175 and use passed in obstack.
1176 (libunwind_frame_set_descr): Should no longer get back NULL from
1177 gdbarch_data.
1178 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1179 type.
1180 * user-regs.c (user_regs_init): Update parameters, and use passed
1181 in obstack.
1182 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1183 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1184
1185 2020-07-06 Tom de Vries <tdevries@suse.de>
1186
1187 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1188 End-Of-Sequence in lte_is_less_than.
1189 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1190 "gdb: Don't reorder line table entries too much when sorting".
1191
1192 2020-07-06 Tom de Vries <tdevries@suse.de>
1193
1194 PR tui/26205
1195 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1196
1197 2020-07-05 Tom de Vries <tdevries@suse.de>
1198
1199 PR build/26187
1200 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1201 std::uncaught_exceptions instead of deprecated
1202 std::uncaught_exception.
1203
1204 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1205
1206 * macroexp.h (macro_stringify): Return
1207 gdb::unique_xmalloc_ptr<char>.
1208 * macroexp.c (macro_stringify): Likewise.
1209 * macrotab.c (fixup_definition): Update.
1210
1211 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1212
1213 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1214 (lex_one_token): Update.
1215 * macroexp.c (struct macro_buffer) <release>: Return
1216 gdb::unique_xmalloc_ptr<char>.
1217 (macro_stringify): Update.
1218 (macro_expand): Update.
1219 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1220 * macroexp.h (macro_expand_next): Likewise.
1221
1222 2020-07-02 Simon Marchi <simon.marchi@efficios.com>
1223
1224 * macroexp.h (macro_lookup_ftype): Remove.
1225 (macro_expand, macro_expand_once, macro_expand_next): Remove
1226 lookup function parameters, add scope parameter.
1227 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1228 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1229 * macroscope.h (standard_macro_lookup): Change parameter type
1230 to macro_scope.
1231 * macroscope.c (standard_macro_lookup): Likewise.
1232 * c-exp.y (lex_one_token): Update.
1233 * macrocmd.c (macro_expand_command): Likewise.
1234 (macro_expand_once_command): Likewise.
1235
1236 2020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1237
1238 * inf-loop.c (inferior_event_handler): Remove client_data param.
1239 * inf-loop.h (inferior_event_handler): Likewise.
1240 * infcmd.c (step_1): Adjust.
1241 * infrun.c (proceed): Adjust.
1242 (fetch_inferior_event): Remove client_data param.
1243 (infrun_async_inferior_event_handler): Adjust.
1244 * infrun.h (fetch_inferior_event): Remove `void *` param.
1245 * linux-nat.c (handle_target_event): Adjust.
1246 * record-btrace.c (record_btrace_handle_async_inferior_event):
1247 Adjust.
1248 * record-full.c (record_full_async_inferior_event_handler):
1249 Adjust.
1250 * remote.c (remote_async_inferior_event_handler): Adjust.
1251
1252 2020-07-01 Tom Tromey <tom@tromey.com>
1253
1254 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1255 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1256
1257 2020-07-01 Tom Tromey <tom@tromey.com>
1258
1259 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1260 tui_gen_win_info.
1261 (tui_win_info::make_window): Merge with
1262 tui_gen_win_info::make_window.
1263 (tui_win_info::make_visible): Move from tui_gen_win_info.
1264 * tui/tui-win.c (tui_win_info::max_width): Move from
1265 tui_gen_win_info.
1266 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1267 type.
1268 <window_factory>: Likewise.
1269 * tui/tui-layout.c (tui_win_info::resize): Move from
1270 tui_gen_win_info.
1271 (make_standard_window): Change return type.
1272 (get_locator_window, tui_get_window_by_name): Likewise.
1273 (tui_layout_window::apply): Remove a cast.
1274 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1275 (struct tui_win_info): Merge with tui_gen_win_info.
1276 (struct tui_gen_win_info): Remove.
1277
1278 2020-07-01 Tom Tromey <tom@tromey.com>
1279
1280 * tui/tui-stack.h (struct tui_locator_window): Derive from
1281 tui_win_info.
1282 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1283 <can_box>: New method.
1284
1285 2020-07-01 Tom Tromey <tom@tromey.com>
1286
1287 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1288
1289 2020-07-01 Tom Tromey <tom@tromey.com>
1290
1291 * tui/tui-regs.c (tui_data_window::display_registers_from)
1292 (tui_data_window::display_registers_from)
1293 (tui_data_window::first_data_item_displayed)
1294 (tui_data_window::delete_data_content_windows): Update.
1295 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1296 Remove.
1297 (tui_data_window::check_register_values): Update.
1298 (tui_data_item_window::rerender): Add parameters. Update.
1299 (tui_data_item_window::refresh_window): Remove.
1300 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1301 virtual.
1302 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1303 tui_gen_win_info.
1304 <refresh_window, max_height, min_height>: Remove.
1305 <rerender>: Add parameters.
1306 <x, y, visible>: New members.
1307 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1308 <m_item_width>: New member.
1309
1310 2020-07-01 Tom Tromey <tom@tromey.com>
1311
1312 * tui/tui-regs.c (tui_data_window::show_register_group)
1313 (tui_data_window::check_register_values): Update.
1314 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1315 from item_no.
1316
1317 2020-07-01 Tom Tromey <tom@tromey.com>
1318
1319 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1320 useless "if".
1321
1322 2020-07-01 Tom Tromey <tom@tromey.com>
1323
1324 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1325 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1326
1327 2020-07-01 Tom Tromey <tom@tromey.com>
1328
1329 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1330 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1331 (struct tui_line_or_address): Move from tui-data.h.
1332 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1333 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1334 (tui_cmd_window, tui_source_window_base, tui_source_window)
1335 (tui_disasm_window): Don't declare.
1336 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1337 to tui-winsource.h.
1338 (SINGLE_KEY): Move to tui-stack.c.
1339
1340 2020-07-01 Tom Tromey <tom@tromey.com>
1341
1342 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1343 std::string.
1344 * tui/tui-regs.c (class tab_expansion_file): New.
1345 (tab_expansion_file::write): New method.
1346 (tui_register_format): Change return type. Use
1347 tab_expansion_file.
1348 (tui_get_register, tui_data_window::display_registers_from)
1349 (tui_data_item_window::rerender): Update.
1350 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1351 * tui/tui-io.c (tui_expand_tabs): Remove.
1352
1353 2020-07-01 Tom Tromey <tom@tromey.com>
1354
1355 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1356
1357 2020-07-01 Fangrui Song <maskray@google.com>
1358
1359 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1360
1361 2020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1362
1363 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1364 forms for DW_AT_associated and DW_AT_allocated attributes,
1365 which is already checked in function attr_to_dynamic_prop.
1366
1367 2020-06-30 Tom Tromey <tromey@adacore.com>
1368
1369 * dwarf2/read.c (quirk_rust_enum): Correctly call
1370 alloc_rust_variant for default-less enum.
1371
1372 2020-06-30 Tom Tromey <tromey@adacore.com>
1373
1374 PR build/26183:
1375 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1376 gdb::to_string.
1377
1378 2020-06-29 Simon Marchi <simon.marchi@efficios.com>
1379
1380 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1381 * gdbarch.h: Re-generate.
1382
1383 2020-06-28 Tom Tromey <tom@tromey.com>
1384
1385 * command.h (cmd_types): Remove.
1386 (cmd_type): Don't declare.
1387 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1388 typedef.
1389 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1390 * cli/cli-decode.c (cmd_type): Remove.
1391
1392 2020-06-27 Pedro Alves <palves@redhat.com>
1393
1394 * fork-child.c (prefork_hook): Adjust.
1395 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1396 Delete.
1397 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1398 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1399 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1400 Remove declarations.
1401 (struct inferior) <set_tty, tty>: New methods.
1402 (struct inferior) <terminal>: Rename to ...
1403 (struct inferior) <m_terminal>: ... this and make private.
1404 * main.c (captured_main_1): Adjust.
1405 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1406 (mi_cmd_inferior_tty_show): Adjust.
1407 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1408 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1409
1410 2020-06-26 Nick Alcock <nick.alcock@oracle.com>
1411
1412 * configure.ac: Add --enable-libctf: handle --disable-static
1413 properly.
1414 * acinclude.m4: sinclude ../config/enable.m4.
1415 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1416 (LIBCTF): Substitute in.
1417 (CTF_DEPS): New, likewise.
1418 (CLIBS): libctf needs symbols from libbfd: move earlier.
1419 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1420 flags.
1421 * ctfread.c: Surround in ENABLE_LIBCTF.
1422 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1423 * configure: Regenerate.
1424 * config.in: Likewise.
1425
1426 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1427
1428 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1429
1430 2020-06-25 Simon Marchi <simon.marchi@efficios.com>
1431
1432 * inferior.h (struct inferior) <terminal>: Change type to
1433 gdb::unique_xmalloc_ptr<char>.
1434 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1435 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1436 field, adjust to unique pointer.
1437 (get_inferior_io_terminal): Adjust to unique pointer.
1438
1439 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1440
1441 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1442 registers, not just the known core set of registers.
1443
1444 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1447 fflags, frm, and fcsr registers.
1448 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1449 restore groups.
1450 (riscv_tdesc_unknown_reg): New function.
1451 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1452 tdesc_use_registers.
1453 * riscv-tdep.h (struct gdbarch_tdep): Add
1454 unknown_csrs_first_regnum, unknown_csrs_count,
1455 duplicate_fflags_regnum, duplicate_frm_regnum, and
1456 duplicate_fcsr_regnum fields.
1457
1458 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1459
1460 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1461 callback, use the callback (when not null) to help number unknown
1462 registers.
1463 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1464 (tdesc_use_registers): Add extra parameter to declaration.
1465
1466 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1467
1468 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1469 in the file.
1470 (class riscv_pending_register_alias): Likewise.
1471 (riscv_register_feature::register_info): Change 'required_p' field
1472 to 'required', and change its type. Add 'check' member function.
1473 (riscv_register_feature::register_info::check): Define new member
1474 function.
1475 (riscv_xreg_feature): Change initialisation of 'required' field.
1476 (riscv_freg_feature): Likewise.
1477 (riscv_virtual_feature): Likewise.
1478 (riscv_csr_feature): Likewise.
1479 (riscv_check_tdesc_feature): Take extra parameter, the csr
1480 tdesc_feature, rewrite the function to use the new
1481 riscv_register_feature::register_info::check function.
1482 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1483
1484 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1485
1486 * features/Makefile: Remove all references to the deleted files
1487 below.
1488 * features/riscv/32bit-csr.c: Deleted.
1489 * features/riscv/32bit-csr.xml: Deleted.
1490 * features/riscv/64bit-csr.c: Deleted.
1491 * features/riscv/64bit-csr.xml: Deleted.
1492 * features/riscv/rebuild-csr-xml.sh: Deleted.
1493
1494 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1495
1496 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1497 whitespace error for declaration of names member variable.
1498 (struct riscv_register_feature): Add new prefer_first_name member
1499 variable, and fix whitespace error in declaration of registers.
1500 (riscv_xreg_feature): Initialize prefer_first_name field.
1501 (riscv_freg_feature): Likewise.
1502 (riscv_virtual_feature): Likewise.
1503 (riscv_csr_feature): Likewise.
1504 (riscv_register_name): Expand on comments. Remove register name
1505 modifications for CSR and virtual registers.
1506
1507 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1508
1509 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1510 errors.
1511
1512 2020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1513
1514 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1515 riscv-opc.h.
1516 (class riscv_pending_register_alias): New class.
1517 (riscv_check_tdesc_feature): Take vector of pending aliases and
1518 populate it as appropriate.
1519 (riscv_setup_register_aliases): Delete.
1520 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1521 to riscv_check_tdesc_feature in all cases. Use the vector to
1522 create the register aliases.
1523
1524 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1525
1526 * sol2-tdep.c (sol2_static_transform_name): Remove.
1527 (sol2_init_abi): Don't register it.
1528 * gdbarch.sh (static_transform_name): Remove.
1529 * gdbarch.c, gdbarch.h: Regenerate.
1530
1531 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1532 gdbarch_static_transform_name.
1533 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1534 * stabsread.c (define_symbol) <'X'>: Remove.
1535 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1536 handling.
1537 <'V'>: Likewise.
1538 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1539 <'S'>: Remove call to gdbarch_static_transform_name.
1540
1541 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1542
1543 * procfs.c (procfs_pre_trace): New function.
1544 (procfs_target::create_inferior): Pass it to fork_inferior.
1545
1546 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1547
1548 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1549 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1550 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1551 sol2-tdep.o, sparc-sol2-tdep.o.
1552 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1553 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1554 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1555 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1556
1557 2020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1558
1559 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1560 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1561 Call sol2_init_abi.
1562 Remove calls to set_gdbarch_skip_solib_resolver,
1563 set_gdbarch_core_pid_to_str.
1564 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1565 (i386_sol2_static_transform_name): Remove.
1566 (i386_sol2_init_abi): Call sol2_init_abi.
1567 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1568 set_gdbarch_static_transform_name,
1569 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1570 Use sol2_sigtramp_p.
1571 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1572 (sol2_sigtramp_p): New function.
1573 (sol2_static_transform_name): New function.
1574 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1575 (sol2_init_abi): New function.
1576 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1577 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1578 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1579 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1580 (sparc_sol2_static_transform_name): Remove.
1581 (sparc32_sol2_init_abi): Call sol2_init_abi.
1582 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1583 set_gdbarch_static_transform_name,
1584 set_gdbarch_skip_solib_resolver,
1585 set_gdbarch_core_pid_to_str.
1586 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1587 (sparc_sol2_static_transform_name): Remove
1588 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1589 call sol2_sigtramp_p.
1590 (sparc64_sol2_init_abi): Call sol2_init_abi.
1591 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1592 set_gdbarch_static_transform_name,
1593 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1594
1595 2020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1596
1597 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1598 * exec.c (validate_exec_file): If from_tty, set both
1599 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1600 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1601 and from_tty, unconditionally ask a confirmation.
1602
1603 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1604
1605 * target-descriptions.c (tdesc_architecture_name): Protect against
1606 NULL pointer dereference.
1607 (maint_print_xml_tdesc_cmd): New function.
1608 (_initialize_target_descriptions): Register new 'maint print
1609 xml-tdesc' command and give it the filename completer.
1610 * NEWS: Mention new 'maint print xml-tdesc' command.
1611
1612 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1613
1614 * target-descriptions.c (class tdesc_compatible_info): New class.
1615 (struct target_desc): Change type of compatible vector.
1616 (tdesc_compatible_p): Update for change in type of
1617 target_desc::compatible.
1618 (tdesc_compatible_info_list): New function.
1619 (tdesc_compatible_info_arch_name): New function.
1620 (tdesc_add_compatible): Update for change in type of
1621 target_desc::compatible.
1622 (print_c_tdesc::visit_pre): Likewise.
1623
1624 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1625
1626 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1627 whitespace to underscore.
1628 (maint_print_c_tdesc_cmd): Use fake filename for target
1629 descriptions that came from the target.
1630 (_initialize_target_descriptions): Add filename command completion
1631 for 'maint print c-tdesc'.
1632
1633 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1634
1635 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1636 lines.
1637
1638 2020-06-23 Simon Marchi <simon.marchi@efficios.com>
1639
1640 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1641 lines.
1642 (dwarf2_find_location_expression): Likewise.
1643 (call_site_parameter_matches): Likewise.
1644 (dwarf2_compile_expr_to_ax): Likewise.
1645 (disassemble_dwarf_expression): Likewise.
1646 (loclist_describe_location): Likewise.
1647
1648 2020-06-23 Pedro Alves <palves@redhat.com>
1649
1650 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1651 progspace-and-thread.h. Include scoped-mock-context.h instead.
1652 (register_to_value_test): Use scoped_mock_context.
1653 * regcache.c: Include "scoped-mock-context.h".
1654 (cooked_read_test): Don't error out if a target is already pushed.
1655 Use scoped_mock_context. Adjust.
1656 * scoped-mock-context.h: New file.
1657
1658 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1659
1660 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1661 initializer.
1662 (ada_language::is_string_type_p): New member function.
1663 * c-lang.c (c_language_data): Delete la_is_string_type_p
1664 initializer.
1665 (cplus_language_data): Likewise.
1666 (asm_language_data): Likewise.
1667 (minimal_language_data): Likewise.
1668 * d-lang.c (d_language_data): Likewise.
1669 * f-lang.c (f_is_string_type_p): Delete function, implementation
1670 moved to f_language::is_string_type_p.
1671 (f_language_data): Delete la_is_string_type_p initializer.
1672 (f_language::is_string_type_p): New member function,
1673 implementation from f_is_string_type_p.
1674 * go-lang.c (go_is_string_type_p): Delete function, implementation
1675 moved to go_language::is_string_type_p.
1676 (go_language_data): Delete la_is_string_type_p initializer.
1677 (go_language::is_string_type_p): New member function,
1678 implementation from go_is_string_type_p.
1679 * language.c (language_defn::is_string_type_p): Define new member
1680 function.
1681 (default_is_string_type_p): Make static, add comment copied from
1682 header file.
1683 (unknown_language_data): Delete la_is_string_type_p initializer.
1684 (unknown_language::is_string_type_p): New member function.
1685 (auto_language_data): Delete la_is_string_type_p initializer.
1686 (auto_language::is_string_type_p): New member function.
1687 * language.h (language_data): Delete la_is_string_type_p field.
1688 (language_defn::is_string_type_p): Declare new function.
1689 (default_is_string_type_p): Delete desclaration, move comment to
1690 definition.
1691 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1692 moved to m2_language::is_string_type_p.
1693 (m2_language_data): Delete la_is_string_type_p initializer.
1694 (m2_language::is_string_type_p): New member function,
1695 implementation from m2_is_string_type_p.
1696 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1697 initializer.
1698 * opencl-lang.c (opencl_language_data): Likewise.
1699 * p-lang.c (pascal_is_string_type_p): Delete function,
1700 implementation moved to pascal_language::is_string_type_p.
1701 (pascal_language_data): Delete la_is_string_type_p initializer.
1702 (pascal_language::is_string_type_p): New member function,
1703 implementation from pascal_is_string_type_p.
1704 * rust-lang.c (rust_is_string_type_p): Delete function,
1705 implementation moved to rust_language::is_string_type_p.
1706 (rust_language_data): Delete la_is_string_type_p initializer.
1707 (rust_language::is_string_type_p): New member function,
1708 implementation from rust_is_string_type_p.
1709 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1710 is_string_type_p.
1711
1712 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1713
1714 * ada-lang.c (ada_language_data): Delete la_print_typedef
1715 initializer.
1716 (ada_language::print_typedef): New member function.
1717 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1718 (cplus_language_data): Likewise.
1719 (asm_language_data): Likewise.
1720 (minimal_language_data): Likewise.
1721 * d-lang.c (d_language_data): Likewise.
1722 * f-lang.c (f_language_data): Likewise.
1723 (f_language::print_typedef): New member function.
1724 * go-lang.c (go_language_data): Delete la_print_typedef
1725 initializer.
1726 * language.c (language_defn::print_typedef): Define member
1727 function.
1728 (unknown_language_data): Delete la_print_typedef initializer.
1729 (unknown_language::print_typedef): New member function.
1730 (auto_language_data): Delete la_print_typedef initializer.
1731 (auto_language::print_typedef): New member function.
1732 * language.h (language_data): Delete la_print_typedef field.
1733 (language_defn::print_typedef): Declare new member function.
1734 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1735 (default_print_typedef): Delete declaration.
1736 * m2-lang.c (m2_language_data): Delete la_print_typedef
1737 initializer.
1738 (m2_language::print_typedef): New member function.
1739 * objc-lang.c (objc_language_data): Delete la_print_typedef
1740 initializer.
1741 * opencl-lang.c (opencl_language_data): Likewise.
1742 * p-lang.c (pascal_language_data): Likewise.
1743 (pascal_language::print_typedef): New member function.
1744 * rust-lang.c (rust_print_typedef): Delete function,
1745 implementation moved to rust_language::print_typedef.
1746 (rust_language): Delete la_print_typedef initializer.
1747 (rust_language::print_typedef): New member function,
1748 implementation from rust_print_typedef.
1749 * typeprint.c (default_print_typedef): Delete.
1750
1751 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1754 (ada_language::printstr): New member function.
1755 * c-lang.c (c_language_data): Delete la_printstr initializer.
1756 (cplus_language_data): Likewise.
1757 (asm_language_data): Likewise.
1758 (minimal_language_data): Likewise.
1759 * d-lang.c (d_language_data): Likewise.
1760 * f-lang.c (f_printstr): Rename to f_language::printstr.
1761 (f_language_data): Delete la_printstr initializer.
1762 (f_language::printstr): New member function, implementation from
1763 f_printstr.
1764 * go-lang.c (go_language_data): Delete la_printstr initializer.
1765 * language.c (language_defn::printstr): Define new member
1766 function.
1767 (unk_lang_printstr): Delete.
1768 (unknown_language_data): Delete la_printstr initializer.
1769 (unknown_language::printstr): New member function.
1770 (auto_language_data): Delete la_printstr initializer.
1771 (auto_language::printstr): New member function.
1772 * language.h (language_data): Delete la_printstr field.
1773 (language_defn::printstr): Declare new member function.
1774 (LA_PRINT_STRING): Update call to printstr.
1775 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1776 (m2_language_data): Delete la_printstr initializer.
1777 (m2_language::printstr): New member function, implementation from
1778 m2_printstr.
1779 * objc-lang.c (objc_language_data): Delete la_printstr
1780 initializer.
1781 * opencl-lang.c (opencl_language_data): Likewise.
1782 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1783 (pascal_language_data): Delete la_printstr initializer.
1784 (pascal_language::printstr): New member function, implementation
1785 from pascal_printstr.
1786 * p-lang.h (pascal_printstr): Delete declaration.
1787 * rust-lang.c (rust_printstr): Update header comment.
1788 (rust_language_data): Delete la_printstr initializer.
1789 (rust_language::printstr): New member function.
1790
1791 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1792
1793 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1794 (ada_language::printchar): New member function.
1795 * c-lang.c (c_language_data): Delete la_printchar initializer.
1796 (cplus_language_data): Likewise.
1797 (asm_language_data): Likewise.
1798 (minimal_language_data): Likewise.
1799 * d-lang.c (d_language_data): Likewise.
1800 * f-lang.c (f_printchar): Rename to f_language::printchar.
1801 (f_language_data): Delete la_printchar initializer.
1802 (f_language::printchar): New member function, implementation from
1803 f_printchar.
1804 * go-lang.c (go_language_data): Delete la_printchar initializer.
1805 * language.c (unk_lang_printchar): Delete.
1806 (language_defn::printchar): Define new member function.
1807 (unknown_language_data): Delete la_printchar initializer.
1808 (unknown_language::printchar): New member function.
1809 (auto_language_data): Delete la_printchar initializer.
1810 (auto_language::printchar): New member function.
1811 * language.h (language_data): Delete la_printchar field.
1812 (language_defn::printchar): Declare new member function.
1813 (LA_PRINT_CHAR): Update call to printchar.
1814 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1815 (m2_language::printchar): New member function.
1816 * objc-lang.c (objc_language_data): Delete la_printchar
1817 initializer.
1818 * opencl-lang.c (opencl_language_data): Likewise.
1819 * p-lang.c (pascal_language_data): Delete la_printchar
1820 initializer.
1821 (pascal_language::printchar): New member function.
1822 * rust-lang.c (rust_printchar): Rename to
1823 rust_language::printchar.
1824 (rust_language_data): Delete la_printchar initializer.
1825 (rust_language::printchar): New member function, implementation
1826 from rust_printchar.
1827
1828 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1829
1830 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1831 (ada_language_data): Delete la_emitchar initializer.
1832 (ada_language::emitchar): New member function, implementation from
1833 emit_char.
1834 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1835 (cplus_language_data): Likewise.
1836 (asm_language_data): Likewise.
1837 (minimal_language_data): Likewise.
1838 * d-lang.c (d_language_data): Likewise.
1839 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1840 (f_language_data): Delete la_emitchar initializer.
1841 (f_language::emitchar): New member function, implementation from
1842 f_emit_char.
1843 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1844 * language.c (unk_lang_emit_char): Delete.
1845 (language_defn::emitchar): New member function definition.
1846 (unknown_language_data): Delete la_emitchar initializer.
1847 (unknown_language::emitchar): New member function.
1848 (auto_language_data): Delete la_emitchar initializer.
1849 (auto_language::emitchar): New member function.
1850 * language.h (language_data): Delete la_emitchar field.
1851 (language_defn::emitchar): New member field declaration.
1852 (LA_EMIT_CHAR): Update call to emitchar.
1853 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1854 (m2_language_data): Delete la_emitchar initializer.
1855 (m2_language::emitchar): New member function, implementation from
1856 m2_emit_char.
1857 * objc-lang.c (objc_language_data): Delete la_emitchar
1858 initializer.
1859 * opencl-lang.c (opencl_language_data): Likewise.
1860 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1861 (pascal_language_data): Delete la_emitchar initializer.
1862 (pascal_language::emitchar): New member function, implementation
1863 from pascal_emit_char.
1864 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1865 (rust_language_data): Delete la_emitchar initializer.
1866 (rust_language::emitchar): New member function, implementation
1867 from rust_emitchar.
1868
1869 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1872 (ada_language_data): Delete la_post_parser initializer.
1873 (ada_language::post_parser): New member function.
1874 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1875 (cplus_language_data): Likewise.
1876 (asm_language_data): Likewise.
1877 (minimal_language_data): Likewise.
1878 * d-lang.c (d_language_data): Likewise.
1879 * f-lang.c (f_language_data): Likewise.
1880 * go-lang.c (go_language_data): Likewise.
1881 * language.c (unknown_language_data): Likewise.
1882 (auto_language_data): Likewise.
1883 * language.h (language_data): Delete la_post_parser field.
1884 (language_defn::post_parser): New member function.
1885 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1886 * objc-lang.c (objc_language_data): Likewise.
1887 * opencl-lang.c (opencl_language_data): Likewise.
1888 * p-lang.c (pascal_language_data): Likewise.
1889 * parse.c (parse_exp_in_context): Update call to post_parser.
1890 (null_post_parser): Delete definition.
1891 * parser-defs.h (null_post_parser): Delete declaration.
1892 * rust-lang.c (rust_language_data): Delete la_post_parser
1893 initializer.
1894
1895 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1896
1897 * ada-lang.c (parse): Rename to ada_language::parser.
1898 (ada_language_data): Delete la_parser initializer.
1899 (ada_language::parser): New member function, implementation from
1900 parse.
1901 * c-lang.c (c_language_data): Delete la_parser initializer.
1902 (cplus_language_data): Likewise.
1903 (asm_language_data): Likewise.
1904 (minimal_language_data): Likewise.
1905 * d-lang.c (d_language_data): Likewise.
1906 (d_language::parser): New member function.
1907 * f-lang.c (f_language_data): Delete la_parser initializer.
1908 (f_language::parser): New member function.
1909 * go-lang.c (go_language_data): Delete la_parser initializer.
1910 (go_language::parser): New member function.
1911 * language.c (unk_lang_parser): Delete.
1912 (language_defn::parser): Define new member function.
1913 (unknown_language_data): Delete la_parser initializer.
1914 (unknown_language::parser): New member function.
1915 (auto_language_data): Delete la_parser initializer.
1916 (auto_language::parser): New member function.
1917 * language.h (language_data): Delete la_parser field.
1918 (language_defn::parser): Declare new member function.
1919 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1920 (m2_language::parser): New member function.
1921 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1922 * opencl-lang.c (opencl_language_data): Likewise.
1923 * p-lang.c (pascal_language_data): Likewise.
1924 (pascal_language::parser): New member function.
1925 * parse.c (parse_exp_in_context): Update call to parser.
1926 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1927 (rust_language::parser): New member function.
1928
1929 2020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1930
1931 * top.c (print_gdb_configuration): Print --with-python-libdir
1932 configuration value.
1933
1934 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1935
1936 * NEWS: Mention change to the alias command.
1937
1938 2020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1939
1940 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1941 (alias_command_completer)
1942 (make_alias_options_def_group): New functions.
1943 (alias_opts, alias_option_defs): New struct and array.
1944 (alias_usage_error): Update usage.
1945 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1946 Use option framework.
1947 (_initialize_cli_cmds): Update alias command help.
1948 Update aliases command help.
1949 (show_user):
1950 Add NULL for new default_args lookup_cmd argument.
1951 (valid_command_p): Rename to validate_aliased_command.
1952 Add NULL for new default_args lookup_cmd argument. Verify that the
1953 aliased_command has no default args.
1954 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1955 (lookup_cmd_1, lookup_cmd): New argument default_args.
1956 (add_alias_cmd):
1957 Add NULL for new default_args lookup_cmd argument.
1958 (print_help_for_command): Show default args under the layout
1959 alias some_alias = some_aliased_cmd some_alias_default_arg.
1960 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1961 xfree default_args in destructor.
1962 * cli/cli-script.c (process_next_line, do_define_command):
1963 Add NULL for new default_args lookup_cmd argument.
1964 * command.h: Declare new default_args argument in lookup_cmd
1965 and lookup_cmd_1.
1966 * completer.c (complete_line_internal_1):
1967 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1968 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1969 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1970 Likewise.
1971 * infcmd.c (_initialize_infcmd): Likewise.
1972 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1973 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1974 * python/py-param.c (add_setshow_generic): Likewise.
1975 * remote.c (_initialize_remote): Likewise.
1976 * top.c (execute_command): Prepend default_args if command has some.
1977 (set_verbose):
1978 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1979 * tracepoint.c (validate_actionline, encode_actions_1):
1980 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1981
1982 2020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1983
1984 * jit.c (jit_read_descriptor): Use bool as the return type.
1985 (jit_breakpoint_re_set_internal): Use bool as the return type.
1986 Invert the return value logic; return true if the jit breakpoint
1987 has been successfully initialized.
1988 (jit_inferior_init): Update the call to
1989 jit_breakpoint_re_set_internal.
1990
1991 2020-06-22 Pedro Alves <palves@redhat.com>
1992
1993 PR gdb/25939
1994 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1995 Use the current inferior instead. Don't return
1996 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1997 wait again.
1998 * sol-thread.c (sol_thread_target::wait): Don't reference
1999 inferior_ptid.
2000 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2001 (sol_update_thread_list_callback): Use the current inferior's pid
2002 instead of inferior_ptid.
2003
2004 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2005
2006 * procfs.c: Cleanup many comments.
2007
2008 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2009 (AFTER_WATCHFLAG): Replace by value.
2010
2011 (MAIN_PROC_NAME_FORMAT): Inline ...
2012 (create_procinfo): ... here.
2013
2014 (procfs_debug_inferior): Remove SYS_exec handling.
2015 (syscall_is_exec): Likewise.
2016 (procfs_set_exec_trap): Likewise.
2017
2018 (syscall_is_lwp_exit): Inline in callers.
2019 (syscall_is_exit): Likewise.
2020 (syscall_is_exec): Likewise.
2021 (syscall_is_lwp_create): Likewise.
2022
2023 (invalidate_cache): Remove #if 0 code.
2024
2025 (make_signal_thread_runnable): Remove.
2026 (procfs_target::resume): Remove #if 0 code.
2027
2028 2020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2029
2030 PR gdb/25939
2031 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2032 call ...
2033 (procfs_target::create_inferior): ... here.
2034
2035 2020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2036
2037 * exec.c (validate_exec_file): Ensure the build-id is up to
2038 date by calling reopen_exec_file (that checks file timestamp
2039 to decide to re-read the file).
2040
2041 2020-06-18 Pedro Alves <palves@redhat.com>
2042
2043 PR gdb/25412
2044 * gdbthread.h (delete_thread, delete_thread_silent)
2045 (find_thread_ptid): Update comments.
2046 * thread.c (current_thread_): New global.
2047 (is_current_thread): Move higher, and reimplement.
2048 (inferior_thread): Reimplement.
2049 (set_thread_exited): Use bool. Add assertions.
2050 (add_thread_silent): Simplify thread-reuse handling by always
2051 calling delete_thread.
2052 (delete_thread): Remove intro comment.
2053 (find_thread_ptid): Skip exited threads.
2054 (switch_to_thread_no_regs): Write to current_thread_.
2055 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2056 INFERIOR_PTID. Clear current_thread_.
2057
2058 2020-06-18 Pedro Alves <palves@redhat.com>
2059
2060 * aix-thread.c (pd_update): Use switch_to_thread.
2061
2062 2020-06-18 Pedro Alves <palves@redhat.com>
2063
2064 * ravenscar-thread.c (ravenscar_thread_target): Update.
2065 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2066 (ravenscar_thread_target::add_active_thread): ... this. Don't
2067 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2068 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2069
2070 2020-06-18 Pedro Alves <palves@redhat.com>
2071
2072 * nat/windows-nat.c (current_windows_thread): Remove.
2073 * nat/windows-nat.h (current_windows_thread): Remove.
2074 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2075 Adjust.
2076 (display_selectors): Adjust to fetch the current
2077 windows_thread_info based on inferior_ptid.
2078 (fake_create_process): No longer write to current_windows_thread.
2079 (windows_nat_target::get_windows_debug_event):
2080 Don't set inferior_ptid or current_windows_thread.
2081 (windows_nat_target::wait): Adjust to not rely on
2082 current_windows_thread.
2083 (do_initial_windows_stuff): Now a method of windows_nat_target.
2084 Switch to the last_ptid thread.
2085 (windows_nat_target::attach): Adjust.
2086 (windows_nat_target::detach): Use switch_to_no_thread instead of
2087 writing to inferior_ptid directly.
2088 (windows_nat_target::create_inferior): Adjust.
2089
2090 2020-06-18 Pedro Alves <palves@redhat.com>
2091
2092 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2093
2094 2020-06-18 Pedro Alves <palves@redhat.com>
2095
2096 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2097 after creating it, instead of writing to inferior_ptid. Don't
2098 write to inferior_ptid.
2099
2100 2020-06-18 Pedro Alves <palves@redhat.com>
2101
2102 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2103
2104 2020-06-18 Pedro Alves <palves@redhat.com>
2105
2106 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2107 it, instead of writing to inferior_ptid.
2108
2109 2020-06-18 Pedro Alves <palves@redhat.com>
2110
2111 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2112 to inferior_ptid.
2113
2114 2020-06-18 Pedro Alves <palves@redhat.com>
2115
2116 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2117 instead of writing to inferior_ptid directly.
2118
2119 2020-06-18 Pedro Alves <palves@redhat.com>
2120
2121 * corelow.c (core_target::close): Use switch_to_no_thread instead
2122 of writing to inferior_ptid directly.
2123 (add_to_thread_list, core_target_open): Use switch_to_thread
2124 instead of writing to inferior_ptid directly.
2125
2126 2020-06-18 Pedro Alves <palves@redhat.com>
2127
2128 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2129 inferior_ptid.
2130 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2131 inferior_ptid.
2132 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2133 inferior_ptid directly.
2134 (darwin_nat_target::init_thread_list): Switch to thread, instead
2135 of writing to inferior_ptid.
2136 (darwin_nat_target::attach): Don't write to inferior_ptid.
2137 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2138
2139 2020-06-18 Pedro Alves <palves@redhat.com>
2140
2141 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2142 thread.
2143 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2144 Instead use switch_to_thread.
2145 (gnu_nat_target::detach): Use switch_to_no_thread
2146 instead of writing to inferior_ptid directly. Used passed-in
2147 inferior instead of looking up the inferior by pid.
2148
2149 2020-06-18 Pedro Alves <palves@redhat.com>
2150
2151 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2152 inferior_ptid.
2153
2154 2020-06-18 Pedro Alves <palves@redhat.com>
2155
2156 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2157 inferior_ptid.
2158 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2159 thread.
2160 (nto_procfs_target::detach): Avoid referencing
2161 inferior_ptid. Use switch_to_no_thread instead of writing to
2162 inferior_ptid directly.
2163 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2164 instead of writing to inferior_ptid directly.
2165 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2166 to thread.
2167
2168 2020-06-18 Pedro Alves <palves@redhat.com>
2169
2170 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2171 after creating it, instead of writing to inferior_ptid.
2172 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2173 to inferior_ptid directly.
2174 (gdbsim_target::wait): Don't write to inferior_ptid.
2175
2176 2020-06-18 Pedro Alves <palves@redhat.com>
2177
2178 * remote.c (remote_target::remote_notice_new_inferior): Use
2179 switch_to_thread instead of writing to inferior_ptid directly.
2180 (remote_target::add_current_inferior_and_thread): Use
2181 switch_to_no_thread instead of writing to inferior_ptid directly.
2182 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2183 and switch_to_thread instead of using set_current_inferior or
2184 writing to inferior_ptid directly.
2185
2186 2020-06-18 Pedro Alves <palves@redhat.com>
2187
2188 * tracectf.c (ctf_target_open): Switch to added thread instead of
2189 writing to inferior_ptid directly.
2190 (ctf_target::close): Use switch_to_no_thread instead of writing to
2191 inferior_ptid directly.
2192
2193 2020-06-18 Pedro Alves <palves@redhat.com>
2194
2195 * tracefile-tfile.c (tfile_target_open): Don't write to
2196 inferior_ptid directly, instead switch to added thread.
2197 (tfile_target::close): Use switch_to_no_thread instead of writing
2198 to inferior_ptid directly.
2199
2200 2020-06-18 Pedro Alves <palves@redhat.com>
2201
2202 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2203 (procfs_target::detach): Use switch_to_no_thread
2204 instead of writing to inferior_ptid directly.
2205 (do_attach): Change return type to void. Switch to the added
2206 thread.
2207 (procfs_target::create_inferior): Switch to the added thread.
2208 (procfs_do_thread_registers): Don't write to inferior_ptid.
2209
2210 2020-06-18 Pedro Alves <palves@redhat.com>
2211
2212 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2213 of writing to inferior_ptid.
2214 (scoped_restore_exited_inferior): Delete.
2215 (handle_vfork_child_exec_or_exit): Simplify using
2216 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2217 instead of writing to inferior_ptid.
2218 (THREAD_STOPPED_BY): Delete.
2219 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2220 (thread_stopped_by_hw_breakpoint): Delete.
2221 (save_waitstatus): Use
2222 scoped_restore_current_thread+switch_to_thread, and call
2223 target_stopped_by_watchpoint instead of
2224 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2225 instead of thread_stopped_by_sw_breakpoint, and
2226 target_stopped_by_hw_breakpoint instead of
2227 thread_stopped_by_hw_breakpoint.
2228 (handle_inferior_event)
2229 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2230 inferior_ptid directly, nor
2231 set_current_inferior/set_current_program_space. Use
2232 switch_to_thread / switch_to_inferior_no_thread instead.
2233
2234 2020-06-18 Pedro Alves <palves@redhat.com>
2235
2236 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2237 instead of writing to inferior_ptid.
2238
2239 2020-06-18 Pedro Alves <palves@redhat.com>
2240
2241 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2242 added thread.
2243 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2244 to the added thread.
2245 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2246 instead of writing to inferior_ptid.
2247
2248 2020-06-18 Pedro Alves <palves@redhat.com>
2249
2250 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2251 (register_to_value_test): Mock a program_space too. Heap-allocate
2252 the address space. Don't write to inferior_ptid. Use
2253 switch_to_thread instead.
2254
2255 2020-06-18 Pedro Alves <palves@redhat.com>
2256
2257 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2258 Delete.
2259 (find_signalled_thread()): New, factored out from
2260 linux_make_corefile_notes and adjusted to handle exited threads.
2261 (linux_make_corefile_notes): Adjust to use the new
2262 find_signalled_thread.
2263
2264 2020-06-18 Pedro Alves <palves@redhat.com>
2265
2266 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2267 of saving/restoring inferior_ptid.
2268
2269 2020-06-17 Tom Tromey <tom@tromey.com>
2270
2271 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2272 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2273 declare.
2274 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2275
2276 2020-06-15 Simon Marchi <simon.marchi@efficios.com>
2277
2278 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2279 of partial symtabs.
2280
2281 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2282
2283 * regformats/reg-arm.dat: Remove.
2284 * regformats/reg-bfin.dat: Remove.
2285 * regformats/reg-cris.dat: Remove.
2286 * regformats/reg-crisv32.dat: Remove.
2287 * regformats/reg-m32r.dat: Remove.
2288 * regformats/reg-tilegx.dat: Remove.
2289 * regformats/reg-tilegx32.dat: Remove.
2290
2291 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2292
2293 * features/Makefile (WHICH): Remove arm files.
2294 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2295 * regformats/arm/arm-with-neon.dat: Remove.
2296 * regformats/arm/arm-with-vfpv2.dat: Remove.
2297 * regformats/arm/arm-with-vfpv3.dat: Remove.
2298
2299 2020-06-17 Simon Marchi <simon.marchi@efficios.com>
2300
2301 * features/Makefile (XMLTOC): Remove rx.xml.
2302
2303 2020-06-17 Pedro Alves <palves@redhat.com>
2304
2305 * gdbthread.h (thread_control_state) <trap_expected> Update
2306 comments.
2307
2308 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2309
2310 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2311 ada_language::lookup_symbol_nonlocal.
2312 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2313 (ada_language::lookup_symbol_nonlocal): New member function,
2314 implementation from ada_lookup_symbol_nonlocal.
2315 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2316 initializer.
2317 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2318 initializer.
2319 (cplus_language::lookup_symbol_nonlocal): New member function.
2320 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2321 (minimal_language_data) Likewise.
2322 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2323 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2324 initializer.
2325 (d_language::lookup_symbol_nonlocal): New member function.
2326 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2327 initializer.
2328 (f_language::lookup_symbol_nonlocal): New member function.
2329 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2330 initializer.
2331 * language.c (unknown_language_data): Likewise.
2332 (auto_language_data): Likewise.
2333 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2334 field.
2335 (language_defn::lookup_symbol_nonlocal): New member function.
2336 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2337 initializer.
2338 * objc-lang.c (objc_language_data): Likewise.
2339 * opencl-lang.c (opencl_language_data): Likewise.
2340 * p-lang.c (pascal_language_data): Likewise.
2341 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2342 rust_language::lookup_symbol_nonlocal.
2343 (rust_language_data): Delete la_lookup_symbol_nonlocal
2344 initializer.
2345 (rust_language::lookup_symbol_nonlocal): New member function,
2346 implementation from rust_lookup_symbol_nonlocal.
2347 * symtab.c (lookup_symbol_aux): Update call to
2348 lookup_symbol_nonlocal.
2349 (basic_lookup_symbol_nonlocal): Rename to...
2350 (language_defn::lookup_symbol_nonlocal): ...this, and update
2351 header comment. Remove language_defn parameter, and replace with
2352 uses of `this'.
2353 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2354
2355 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2356
2357 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2358 initializer.
2359 (ada_language::value_print_inner): New member function.
2360 * c-lang.c (c_language_data): Delete la_value_print_inner
2361 initializer.
2362 (cplus_language_data): Likewise.
2363 (asm_language_data): Likewise.
2364 (minimal_language_data): Likewise.
2365 * d-lang.c (d_language_data): Likewise.
2366 (d_language::value_print_inner): New member function.
2367 * f-lang.c (f_language_data): Delete la_value_print_inner
2368 initializer.
2369 (f_language::value_print_inner): New member function.
2370 * f-lang.h (f_value_print_innner): Rename to...
2371 (f_value_print_inner): ...this (note spelling of 'inner').
2372 * f-valprint.c (f_value_print_innner): Rename to...
2373 (f_value_print_inner): ...this (note spelling of 'inner').
2374 * go-lang.c (go_language_data): Delete la_value_print_inner
2375 initializer.
2376 (go_language::value_print_inner): New member function.
2377 * language.c (language_defn::value_print_inner): Define new member
2378 function.
2379 (unk_lang_value_print_inner): Delete.
2380 (unknown_language_data): Delete la_value_print_inner initializer.
2381 (unknown_language::value_print_inner): New member function.
2382 (auto_language_data): Delete la_value_print_inner initializer.
2383 (auto_language::value_print_inner): New member function.
2384 * language.h (language_data): Delete la_value_print_inner field.
2385 (language_defn::value_print_inner): Delcare new member function.
2386 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2387 initializer.
2388 (m2_language::value_print_inner): New member function.
2389 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2390 initializer.
2391 * opencl-lang.c (opencl_language_data): Likewise.
2392 * p-lang.c (pascal_language_data): Likewise.
2393 (pascal_language::value_print_inner): New member function.
2394 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2395 initializer.
2396 (rust_language::value_print_inner): New member function.
2397 * valprint.c (do_val_print): Update call to value_print_inner.
2398
2399 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * ada-lang.c (ada_language_data): Delete la_value_print
2402 initializer.
2403 (ada_language::value_print): New member function.
2404 * c-lang.c (c_language_data): Delete la_value_print initializer.
2405 (cplus_language_data): Likewise.
2406 (asm_language_data): Likewise.
2407 (minimal_language_data): Likewise.
2408 * d-lang.c (d_language_data): Likewise.
2409 * f-lang.c (f_language_data): Likewise.
2410 * go-lang.c (go_language_data): Likewise.
2411 * language.c (unk_lang_value_print): Delete.
2412 (language_defn::value_print): Define new member function.
2413 (unknown_language_data): Delete la_value_print initializer.
2414 (unknown_language::value_print): New member function.
2415 (auto_language_data): Delete la_value_print initializer.
2416 (auto_language::value_print): New member function.
2417 * language.h (language_data): Delete la_value_print field.
2418 (language_defn::value_print): Declare new member function.
2419 (LA_VALUE_PRINT): Update call to value_print.
2420 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2421 * objc-lang.c (objc_language_data): Likewise.
2422 * opencl-lang.c (opencl_language_data): Likewise.
2423 * p-lang.c (pascal_language_data): Likewise.
2424 (pascal_language::value_print): New member function.
2425 * rust-lang.c (rust_language_data): Delete la_value_print
2426 initializer.
2427
2428 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * ada-lang.c (ada_watch_location_expression): Rename to
2431 ada_language::watch_location_expression.
2432 (ada_language_data): Delete la_watch_location_expression
2433 initializer.
2434 (ada_language::watch_location_expression): New member function,
2435 implementation from ada_watch_location_expression.
2436 * breakpoint.c (watch_command_1): Update call to
2437 watch_location_expression.
2438 * c-lang.c (c_watch_location_expression): Rename to
2439 language_defn::watch_location_expression.
2440 (c_language_data): Delete la_watch_location_expression
2441 initializer.
2442 (cplus_language_data): Likewise.
2443 (asm_language_data): Likewise.
2444 (minimal_language_data): Likewise.
2445 * c-lang.h (c_watch_location_expression): Delete declaration.
2446 * d-lang.c (d_language_data): Delete la_watch_location_expression
2447 initializer.
2448 * f-lang.c (f_language_data): Likewise.
2449 * go-lang.c (go_language_data): Likewise.
2450 * language.c (language_defn::watch_location_expression): Member
2451 function implementation from c_watch_location_expression.
2452 (unknown_language_data): Delete la_watch_location_expression
2453 initializer.
2454 (auto_language_data): Likewise.
2455 * language.h (language_data): Delete la_watch_location_expression
2456 field.
2457 (language_defn::watch_location_expression): Declare new member
2458 function.
2459 * m2-lang.c (m2_language_data): Delete
2460 la_watch_location_expression initializer.
2461 * objc-lang.c (objc_language_data): Likewise.
2462 * opencl-lang.c (opencl_language_data): Likewise.
2463 * p-lang.c (pascal_language_data): Likewise.
2464 * rust-lang.c (rust_watch_location_expression): Rename to
2465 rust_language::watch_location_expression.
2466 (rust_language_data): Delete la_watch_location_expression
2467 initializer.
2468 (rust_language::watch_location_expression): New member function,
2469 implementation from rust_watch_location_expression.
2470
2471 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2474 ada_language::collect_symbol_completion_matches.
2475 (ada_language_data): Delete la_collect_symbol_completion_matches
2476 initializer.
2477 (ada_language::collect_symbol_completion_matches): New member
2478 function, implementation from
2479 ada_collect_symbol_completion_matches.
2480 * c-lang.c (c_language_data): Delete
2481 la_collect_symbol_completion_matches initializer.
2482 (cplus_language_data): Likewise.
2483 (asm_language_data): Likewise.
2484 (minimal_language_data): Likewise.
2485 * d-lang.c (d_language_data): Likewise.
2486 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2487 f_language::collect_symbol_completion_matches.
2488 (f_language_data): Delete la_collect_symbol_completion_matches
2489 initializer.
2490 (f_language::collect_symbol_completion_matches) New member
2491 function, implementation from f_collect_symbol_completion_matches.
2492 * go-lang.c (go_language_data): Delete
2493 la_collect_symbol_completion_matches initializer.
2494 * language.c (unknown_language_data): Likewise.
2495 (auto_language_data): Likewise.
2496 * language.h (language_data): Delete
2497 la_collect_symbol_completion_matches field.
2498 (language_defn::collect_symbol_completion_matches): New member
2499 function.
2500 * m2-lang.c (m2_language_data): Delete
2501 la_collect_symbol_completion_matches initializer.
2502 * objc-lang.c (objc_language_data): Likewise.
2503 * opencl-lang.c (opencl_language_data): Likewise.
2504 * p-lang.c (pascal_language_data): Likewise.
2505 * rust-lang.c (rust_language_data): Likewise.
2506 * symtab.c (default_collect_symbol_completion_matches): Delete.
2507 (collect_symbol_completion_matches): Update call to
2508 collect_symbol_completion_matches.
2509 (collect_symbol_completion_matches_type): Likewise.
2510 * symtab.h (default_collect_symbol_completion_matches): Delete
2511 declaration.
2512
2513 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2514
2515 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2516 (ada_language_data): Delete la_word_break_characters initializer.
2517 (ada_language::word_break_characters): New member function.
2518 * c-lang.c (c_language_data): Delete la_word_break_characters
2519 initializer.
2520 (cplus_language_data): Likewise.
2521 (asm_language_data): Likewise.
2522 (minimal_language_data): Likewise.
2523 * completer.c: Update global comment.
2524 (advance_to_expression_complete_word_point): Update call to
2525 word_break_characters.
2526 (complete_files_symbols): Likewise.
2527 (complete_line_internal_1): Likewise.
2528 (default_completer_handle_brkchars): Likewise.
2529 (skip_quoted_chars): Likewise.
2530 * d-lang.c (d_language_data): Delete la_word_break_characters
2531 initializer.
2532 * f-lang.c (f_word_break_characters): Delete.
2533 (f_language_data): Delete la_word_break_characters initializer.
2534 (f_language::word_break_characters): New member function.
2535 * go-lang.c (go_language_data): Delete la_word_break_characters
2536 initializer.
2537 * language.c (unknown_language_data): Likewise.
2538 (auto_language_data): Likewise.
2539 * language.h (default_word_break_characters): Move declaration to
2540 earlier in the file.
2541 (language_data): Delete la_word_break_characters field.
2542 (language_defn::word_break_characters): New member function.
2543 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2544 initializer.
2545 * objc-lang.c (objc_language_data): Likewise.
2546 * opencl-lang.c (opencl_language_data): Likewise.
2547 * p-lang.c (pascal_language_data): Likewise.
2548 * rust-lang.c (rust_language_data): Likewise.
2549
2550 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2551
2552 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2553 (ada_language_data): Delete la_get_symbol_name_matcher
2554 initializer.
2555 (language_defn::get_symbol_name_matcher_inner): New member
2556 function.
2557 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2558 initializer.
2559 (cplus_language_data): Likewise.
2560 (cplus_language::get_symbol_name_matcher_inner): New member
2561 function.
2562 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2563 (minimal_language_data): Likewise.
2564 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2565 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2566 initializer.
2567 * dictionary.c (iter_match_first_hashed): Update call to
2568 get_symbol_name_matcher.
2569 (iter_match_next_hashed): Likewise.
2570 (iter_match_next_linear): Likewise.
2571 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2572 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2573 initializer.
2574 (f_language::get_symbol_name_matcher_inner): New member function.
2575 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2576 initializer.
2577 * language.c (default_symbol_name_matcher): Update header comment,
2578 make static.
2579 (language_defn::get_symbol_name_matcher): New definition.
2580 (language_defn::get_symbol_name_matcher_inner): Likewise.
2581 (get_symbol_name_matcher): Delete.
2582 (unknown_language_data): Delete la_get_symbol_name_matcher
2583 initializer.
2584 (auto_language_data): Likewise.
2585 * language.h (language_data): Delete la_get_symbol_name_matcher
2586 field.
2587 (language_defn::get_symbol_name_matcher): New member function.
2588 (language_defn::get_symbol_name_matcher_inner): Likewise.
2589 (default_symbol_name_matcher): Delete declaration.
2590 * linespec.c (find_methods): Update call to
2591 get_symbol_name_matcher.
2592 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2593 initializer.
2594 * minsyms.c (lookup_minimal_symbol): Update call to
2595 get_symbol_name_matcher.
2596 (iterate_over_minimal_symbols): Likewise.
2597 * objc-lang.c (objc_language_data): Delete
2598 la_get_symbol_name_matcher initializer.
2599 * opencl-lang.c (opencl_language_data): Likewise.
2600 * p-lang.c (pascal_language_data): Likewise.
2601 * psymtab.c (psymbol_name_matches): Update call to
2602 get_symbol_name_matcher.
2603 * rust-lang.c (rust_language_data): Delete
2604 la_get_symbol_name_matcher initializer.
2605 * symtab.c (symbol_matches_search_name): Update call to
2606 get_symbol_name_matcher.
2607 (compare_symbol_name): Likewise.
2608
2609 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2610
2611 * ada-lang.c (ada_language_data): Delete la_compute_program
2612 initializer.
2613 * c-lang.c (c_language_data): Likewise.
2614 (c_language::compute_program): New member function.
2615 (cplus_language_data): Delete la_compute_program initializer.
2616 (cplus_language::compute_program): New member function.
2617 (asm_language_data): Delete la_compute_program initializer.
2618 (minimal_language_data): Likewise.
2619 * c-lang.h (c_compute_program): Update comment.
2620 (cplus_compute_program): Likewise.
2621 * compile/compile-c-support.c (c_compute_program): Likewise.
2622 (cplus_compute_program): Likewise.
2623 * compile/compile.c (compile_to_object): Update call to
2624 la_compute_program.
2625 * d-lang.c (d_language_data): Delete la_compute_program
2626 initializer.
2627 * f-lang.c (f_language_data): Likewise.
2628 * go-lang.c (go_language_data): Likewise.
2629 * language.c (unknown_language_data): Likewise.
2630 (auto_language_data): Likewise.
2631 * language.h (language_data): Delete la_compute_program field.
2632 (language_defn::compute_program): New member function.
2633 * m2-lang.c (m2_language_data): Delete la_compute_program
2634 initializer.
2635 * objc-lang.c (objc_language_data): Likewise.
2636 * opencl-lang.c (opencl_language_data): Likewise.
2637 * p-lang.c (pascal_language_data): Likewise.
2638 * rust-lang.c (rust_language_data): Likewise.
2639
2640 2020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2641
2642 * ada-lang.c (ada_language_data) Delete
2643 la_class_name_from_physname initializer.
2644 * c-lang.c (c_language_data): Likewise.
2645 (cplus_language_data): Likewise.
2646 (cplus_language::class_name_from_physname): New member function.
2647 (asm_language_data): Delete la_class_name_from_physname
2648 initializer.
2649 (minimal_language_data): Likewise.
2650 * d-lang.c (d_language_data): Likewise.
2651 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2652 method on language_defn class.
2653 (guess_full_die_structure_name): Likewise.
2654 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2655 initializer.
2656 * go-lang.c (go_language_data): Likewise.
2657 * language.c (language_class_name_from_physname): Delete.
2658 (unk_lang_class_name): Delete.
2659 (unknown_language_data): Delete la_class_name_from_physname
2660 initializer.
2661 (auto_language_data): Likewise.
2662 * language.h (language_data): Delete la_class_name_from_physname
2663 field.
2664 (language_defn::class_name_from_physname): New function.
2665 (language_class_name_from_physname): Delete declaration.
2666 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2667 initializer.
2668 * objc-lang.c (objc_language_data): Likewise.
2669 * opencl-lang.c (opencl_language_data): Likewise.
2670 * p-lang.c (pascal_language_data): Likewise.
2671 * rust-lang.c (rust_language_data): Likewise.
2672
2673 2020-06-16 Tom Tromey <tom@tromey.com>
2674
2675 * tui/tui-data.h (STATUS_NAME): New macro.
2676 * tui/tui-layout.c (tui_remove_some_windows)
2677 (initialize_known_windows, tui_register_window)
2678 (tui_layout_split::remove_windows, initialize_layouts)
2679 (tui_new_layout_command): Don't use hard-coded window names.
2680
2681 2020-06-16 Tom Tromey <tom@tromey.com>
2682
2683 PR tui/25348:
2684 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2685 tui_initialize_readline. Only run once. Call rl_initialize.
2686 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2687 tui_initialize_readline.
2688 * tui/tui-io.c (tui_setup_io): Call
2689 tui_ensure_readline_initialized.
2690 * tui/tui-interp.c (tui_interp::init): Update.
2691
2692 2020-06-16 Tom Tromey <tom@tromey.com>
2693
2694 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2695 Also preserve the status window.
2696
2697 2020-06-16 Tom Tromey <tom@tromey.com>
2698
2699 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2700 where m_window==nullptr.
2701
2702 2020-06-15 Tom Tromey <tromey@adacore.com>
2703
2704 * windows-nat.c (windows_nat::handle_output_debug_string):
2705 Update.
2706 (windows_nat::handle_ms_vc_exception): Update.
2707 * target.h (target_read_string): Change API.
2708 * target.c (target_read_string): Change API.
2709 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2710 Update.
2711 * solib-frv.c (frv_current_sos): Update.
2712 * solib-dsbt.c (dsbt_current_sos): Update.
2713 * solib-darwin.c (darwin_current_sos): Update.
2714 * linux-thread-db.c (inferior_has_bug): Update.
2715 * expprint.c (print_subexp_standard): Update.
2716 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2717 (ada_exception_message_1): Update.
2718
2719 2020-06-15 Tom Tromey <tromey@adacore.com>
2720
2721 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2722
2723 2020-06-15 Tom Tromey <tromey@adacore.com>
2724
2725 * valprint.c (read_string): Update comment.
2726 * target.c (MIN): Remove.
2727 (target_read_string): Rewrite.
2728
2729 2020-06-15 Tom Tromey <tromey@adacore.com>
2730
2731 * corefile.c (read_memory_string): Remove.
2732 * ada-valprint.c (ada_value_print_ptr): Update.
2733 * ada-lang.h (ada_tag_name): Change return type.
2734 * ada-lang.c (type_from_tag): Update.
2735 (ada_tag_name_from_tsd): Change return type. Use
2736 target_read_string.
2737 (ada_tag_name): Likewise.
2738 * gdbcore.h (read_memory_string): Don't declare.
2739
2740 2020-06-14 Hannes Domani <ssbssa@yahoo.de>
2741
2742 * symtab.c (rbreak_command): Ignore Windows drive colon.
2743
2744 2020-06-12 Simon Marchi <simon.marchi@efficios.com>
2745
2746 * NEWS: Mention removed GDBserver host support.
2747
2748 2020-06-12 Nelson Chu <nelson.chu@sifive.com>
2749
2750 * features/riscv/rebuild-csr-xml.sh: Updated.
2751
2752 2020-06-11 Tom Tromey <tom@tromey.com>
2753
2754 PR gdb/18318:
2755 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2756
2757 2020-06-09 Jonny Grant <jg@jguk.org>
2758 2020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2759
2760 * main.c (captured_main_1): Don't print new line after help.
2761 (print_gdb_help): add mailing list and IRC channel information
2762 to --help. Add new lines between items in the footer. Remove
2763 quotes around bug url.
2764
2765 2020-06-11 Keith Seitz <keiths@redhat.com>
2766
2767 PR gdb/21356
2768 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2769 Resolve typedefs for type length calculations.
2770
2771 2020-06-10 Tom de Vries <tdevries@suse.de>
2772
2773 PR ada/24713
2774 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2775 (write_psymbols): Enable .gdb_index for ada.
2776 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2777 ada.
2778
2779 2020-06-10 Tom de Vries <tdevries@suse.de>
2780
2781 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2782 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2783 namei" instead of "const char *name" argument.
2784 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2785 dw2_symtab_iter_init.
2786
2787 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2790 to use type::field and field::type instead.
2791
2792 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2793
2794 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2795 to use field::type instead.
2796
2797 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2798
2799 * gdbtypes.h (struct field) <type, set_type>: New methods.
2800 Rename `type` field to...
2801 <m_type>: ... this. Change references throughout to use type or
2802 set_type methods.
2803 (FIELD_TYPE): Use field::type. Change call sites that modify
2804 the field's type to use field::set_type instead.
2805
2806 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2807
2808 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2809 to use type::index_type instead.
2810
2811 2020-06-08 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2814 methods.
2815 (TYPE_INDEX_TYPE): Use type::index_type.
2816 * gdbtypes.c (create_array_type_with_stride): Likewise.
2817
2818 2020-06-07 Tom Tromey <tom@tromey.com>
2819
2820 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2821 parameter.
2822 (generic_value_print): Update.
2823
2824 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2825
2826 Revert commit 982a38f60b0.
2827 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2828
2829 2020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2830
2831 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2832 avoid use after free.
2833
2834 2020-06-05 Tom de Vries <tdevries@suse.de>
2835
2836 * NEWS: Fix typos.
2837
2838 2020-06-04 Simon Marchi <simon.marchi@efficios.com>
2839
2840 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2841 the per_bfd object.
2842 (dwarf2_read_debug_names): Likewise.
2843 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2844 object when re-using a per_bfd object with an index.
2845
2846 2020-06-03 Tom de Vries <tdevries@suse.de>
2847
2848 PR symtab/26046
2849 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2850 children for C++.
2851 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2852 DW_TAG_subprogram.
2853
2854 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2855
2856 * ada-lang.c (ada_language_data): Delete skip_trampoline
2857 initializer.
2858 * c-lang.c (c_language_data): Likewise.
2859 (cplus_language_data): Likewise.
2860 (cplus_language::skip_trampoline): New member function.
2861 (asm_language_data): Delete skip_trampoline initializer.
2862 (minimal_language_data): Likewise.
2863 * d-lang.c (d_language_data): Likewise.
2864 * f-lang.c (f_language_data): Likewise.
2865 * go-lang.c (go_language_data): Likewise.
2866 * language.c (unk_lang_trampoline): Delete function.
2867 (skip_language_trampoline): Update.
2868 (unknown_language_data): Delete skip_trampoline initializer.
2869 (auto_language_data): Likewise.
2870 * language.h (language_data): Delete skip_trampoline field.
2871 (language_defn::skip_trampoline): New function.
2872 * m2-lang.c (m2_language_data): Delete skip_trampoline
2873 initializer.
2874 * objc-lang.c (objc_skip_trampoline): Delete function, move
2875 implementation to objc_language::skip_trampoline.
2876 (objc_language_data): Delete skip_trampoline initializer.
2877 (objc_language::skip_trampoline): New member function with
2878 implementation from objc_skip_trampoline.
2879 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2880 initializer.
2881 * p-lang.c (pascal_language_data): Likewise.
2882 * rust-lang.c (rust_language_data): Likewise.
2883
2884 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2885
2886 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2887 (ada_language::demangle): New member function.
2888 * c-lang.c (c_language_data): Delete la_demangle initializer.
2889 (cplus_language_data): Delete la_demangle initializer.
2890 (cplus_language::demangle): New member function.
2891 (asm_language_data): Delete la_demangle initializer.
2892 (minimal_language_data): Delete la_demangle initializer.
2893 * d-lang.c (d_language_data): Delete la_demangle initializer.
2894 (d_language::demangle): New member function.
2895 * f-lang.c (f_language_data): Delete la_demangle initializer.
2896 (f_language::demangle): New member function.
2897 * go-lang.c (go_language_data): Delete la_demangle initializer.
2898 (go_language::demangle): New member function.
2899 * language.c (language_demangle): Update.
2900 (unk_lang_demangle): Delete.
2901 (unknown_language_data): Delete la_demangle initializer.
2902 (unknown_language::demangle): New member function.
2903 (auto_language_data): Delete la_demangle initializer.
2904 (auto_language::demangle): New member function.
2905 * language.h (language_data): Delete la_demangle field.
2906 (language_defn::demangle): New function.
2907 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2908 * objc-lang.c (objc_language_data): Delete la_demangle
2909 initializer.
2910 (objc_language::demangle): New member function.
2911 * opencl-lang.c (opencl_language_data): Delete la_demangle
2912 initializer.
2913 * p-lang.c (pascal_language_data): Likewise.
2914 * rust-lang.c (rust_language_data): Likewise.
2915 (rust_language::demangle): New member function.
2916
2917 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2918
2919 * ada-lang.c (ada_language_data): Delete la_print_type
2920 initializer.
2921 (ada_language::print_type): New member function.
2922 * c-lang.c (c_language_data): Delete la_print_type initializer.
2923 (c_language::print_type): New member function.
2924 (cplus_language_data): Delete la_print_type initializer.
2925 (cplus_language::print_type): New member function.
2926 (asm_language_data): Delete la_print_type initializer.
2927 (asm_language::print_type): New member function.
2928 (minimal_language_data): Delete la_print_type initializer.
2929 (minimal_language::print_type): New member function.
2930 * d-lang.c (d_language_data): Delete la_print_type initializer.
2931 (d_language::print_type): New member function.
2932 * f-lang.c (f_language_data): Delete la_print_type initializer.
2933 (f_language::print_type): New member function.
2934 * go-lang.c (go_language_data): Delete la_print_type initializer.
2935 (go_language::print_type): New member function.
2936 * language.c (unk_lang_print_type): Delete.
2937 (unknown_language_data): Delete la_print_type initializer.
2938 (unknown_language::print_type): New member function.
2939 (auto_language_data): Delete la_print_type initializer.
2940 (auto_language::print_type): New member function.
2941 * language.h (language_data): Delete la_print_type field.
2942 (language_defn::print_type): New function.
2943 (LA_PRINT_TYPE): Update.
2944 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2945 (m2_language::print_type): New member function.
2946 * objc-lang.c (objc_language_data): Delete la_print_type
2947 initializer.
2948 (objc_language::print_type): New member function.
2949 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2950 to opencl_language::print_type.
2951 (opencl_language_data): Delete la_print_type initializer.
2952 (opencl_language::print_type): New member function, implementation
2953 from opencl_print_type.
2954 * p-lang.c (pascal_language_data): Delete la_print_type
2955 initializer.
2956 (pascal_language::print_type): New member function.
2957 * rust-lang.c (rust_print_type): Delete, implementation moved to
2958 rust_language::print_type.
2959 (rust_language_data): Delete la_print_type initializer.
2960 (rust_language::print_type): New member function, implementation
2961 from rust_print_type.
2962
2963 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2964
2965 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2966 implementation moves to...
2967 (ada_language::sniff_from_mangled_name): ...here. Update return
2968 type.
2969 (ada_language_data): Delete la_sniff_from_mangled_name
2970 initializer.
2971 * c-lang.c (c_language_data): Likewise.
2972 (cplus_language_data): Likewise.
2973 (cplus_language::sniff_from_mangled_name): New member function,
2974 implementation taken from gdb_sniff_from_mangled_name.
2975 (asm_language_data): Delete la_sniff_from_mangled_name
2976 initializer.
2977 (minimal_language_data): Likewise.
2978 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2979 implementation moves to cplus_language::sniff_from_mangled_name.
2980 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2981 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2982 moves to...
2983 (d_language::sniff_from_mangled_name): ...here.
2984 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2985 * f-lang.c (f_language_data): Likewise.
2986 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2987 moves to...
2988 (go_language::sniff_from_mangled_name): ...here.
2989 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2990 * language.c (language_sniff_from_mangled_name): Delete.
2991 (unknown_language_data): Delete la_sniff_from_mangled_name
2992 initializer.
2993 (auto_language_data): Likewise.
2994 * language.h (language_data): Delete la_sniff_from_mangled_name
2995 field.
2996 (language_defn::sniff_from_mangled_name): New function.
2997 (language_sniff_from_mangled_name): Delete declaration.
2998 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2999 field.
3000 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3001 implementation moves to...
3002 (objc_language::sniff_from_mangled_name): ...here.
3003 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3004 * opencl-lang.c (opencl_language_data): Likewise.
3005 * p-lang.c (pascal_language_data): Likewise.
3006 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3007 implementation moves to...
3008 (rust_language::sniff_from_mangled_name): ...here.
3009 (rust_language_data): Delete la_sniff_from_mangled_name
3010 initializer.
3011 * symtab.c (symbol_find_demangled_name): Call
3012 sniff_from_mangled_name member function.
3013
3014 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3015
3016 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3017 initializer.
3018 * c-lang.c (c_language_data): Likewise.
3019 (cplus_language_data): Likewise.
3020 (cplus_language::search_name_hash): New member function.
3021 (asm_language_data): Delete la_search_name_hash initializer.
3022 (minimal_language_data): Likewise.
3023 * d-lang.c (d_language_data): Likewise.
3024 * dictionary.c (default_search_name_hash): Rename to...
3025 (language_defn::search_name_hash): ...this.
3026 * f-lang.c (f_language_data): Likewise.
3027 (f_language::search_name_hash): New member function.
3028 * go-lang.c (go_language_data): Delete la_search_name_hash
3029 initializer.
3030 * language.c (unknown_language_data): Likewise.
3031 (auto_language_data): Likewise.
3032 * language.h (struct language_data): Delete la_search_name_hash
3033 field.
3034 (language_defn::search_name_hash): Declare new member function.
3035 (default_search_name_hash): Delete declaration.
3036 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3037 initializer.
3038 * objc-lang.c (objc_language_data): Likewise.
3039 * opencl-lang.c (opencl_language_data): Likewise.
3040 * p-lang.c (pascal_language_data): Likewise.
3041 * rust-lang.c (rust_language_data): Likewise.
3042 * symtab.c (search_name_hash): Update call.
3043
3044 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3045
3046 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3047 initializer.
3048 * c-lang.c (class compile_instance): Declare.
3049 (c_language_data): Delete la_get_compile_instance initializer.
3050 (c_language::get_compile_instance): New member function.
3051 (cplus_language_data): Delete la_get_compile_instance initializer.
3052 (cplus_language::get_compile_instance): New member function.
3053 (asm_language_data): Delete la_get_compile_instance initializer.
3054 (minimal_language_data): Likewise.
3055 * c-lang.h (c_get_compile_context): Update comment.
3056 (cplus_get_compile_context): Update comment.
3057 * compile/compile.c (compile_to_object): Update calls, don't rely
3058 on function pointer being NULL.
3059 * d-lang.c (d_language_data): Delete la_get_compile_instance
3060 initializer.
3061 * f-lang.c (f_language_data): Likewise.
3062 * go-lang.c (go_language_data): Likewise.
3063 * language.c (unknown_language_data): Likewise.
3064 (auto_language_data): Likewise.
3065 * language.h (language_data): Delete la_get_compile_instance field.
3066 (language_defn::get_compile_instance): New member function.
3067 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3068 initializer.
3069 * objc-lang.c (objc_language_data): Likewise.
3070 * opencl-lang.c (opencl_language_data): Likewise.
3071 * p-lang.c (pascal_language_data): Likewise.
3072 * rust-lang.c (rust_language_data): Likewise.
3073
3074 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3075
3076 * ada-lang.c (ada_add_all_symbols): Update comment.
3077 (ada_iterate_over_symbols): Delete, move implementation to...
3078 (ada_language::iterate_over_symbols): ...here, a new member
3079 function, rewrite to use range based for loop.
3080 (ada_language_data): Delete la_iterate_over_symbols initializer.
3081 * c-lang.c (c_language_data): Likewise.
3082 (cplus_language_data): Likewise.
3083 (asm_language_data): Likewise.
3084 (minimal_language_data): Likewise.
3085 * d-lang.c (d_language_data): Likewise.
3086 * f-lang.c (f_language_data): Likewise.
3087 * go-lang.c (go_language_data): Likewise.
3088 * language.c (unknown_language_data): Likewise.
3089 (auto_language_data): Likewise.
3090 * language.h (language_data): Delete la_iterate_over_symbols field.
3091 (language_defn::iterate_over_symbols): New member function.
3092 (LA_ITERATE_OVER_SYMBOLS): Update.
3093 * linespec.c (iterate_over_all_matching_symtabs): Update.
3094 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3095 initializer.
3096 * objc-lang.c (objc_language_data): Likewise.
3097 * opencl-lang.c (opencl_language_data): Likewise.
3098 * p-lang.c (pascal_language_data): Likewise.
3099 * rust-lang.c (rust_language_data): Likewise.
3100
3101 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3102
3103 * ada-lang.c (ada_language_data): Delete
3104 la_lookup_transparent_type initializer.
3105 * c-lang.c (c_language_data): Likewise.
3106 (cplus_language_data): Likewise.
3107 (cplus_language::lookup_transparent_type): New member function.
3108 (asm_language_data): Delete la_lookup_transparent_type
3109 initializer.
3110 (minimal_language_data): Likewise.
3111 * d-lang.c (d_language_data): Likewise.
3112 * f-lang.c (f_language_data): Likewise.
3113 * go-lang.c (go_language_data): Likewise.
3114 * language.c (unknown_language_data): Likewise.
3115 (auto_language_data): Likewise.
3116 * language.h (struct language_data): Delete
3117 la_lookup_transparent_type field.
3118 (language_defn::lookup_transparent_type): New member function.
3119 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3120 initializer.
3121 * objc-lang.c (objc_language_data): Likewise.
3122 * opencl-lang.c (opencl_language_data): Likewise.
3123 * p-lang.c (pascal_language_data): Likewise.
3124 * rust-lang.c (rust_language_data): Likewise.
3125 * symtab.c (symbol_matches_domain): Update call.
3126
3127 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3128
3129 * ada-lang.c (ada_language_arch_info): Delete function, move
3130 implementation to...
3131 (ada_language::language_arch_info): ...here, a new member
3132 function.
3133 (ada_language_data): Delete la_language_arch_info.
3134 * c-lang.c (c_language_data): Likewise.
3135 (c_language::language_arch_info): New member function.
3136 (cplus_language_arch_info): Delete function, move
3137 implementation to...
3138 (cplus_language::language_arch_info): ...here, a new member
3139 function.
3140 (cplus_language_data): Delete la_language_arch_info.
3141 (asm_language_data): Likewise.
3142 (asm_language::language_arch_info): New member function.
3143 (minimal_language_data): Delete la_language_arch_info.
3144 (minimal_language::language_arch_info): New member function.
3145 * d-lang.c (d_language_arch_info): Delete function, move
3146 implementation to...
3147 (d_language::language_arch_info): ...here, a new member
3148 function.
3149 (d_language_data): Delete la_language_arch_info.
3150 * f-lang.c (f_language_arch_info): Delete function, move
3151 implementation to...
3152 (f_language::language_arch_info): ...here, a new member
3153 function.
3154 (f_language_data): Delete la_language_arch_info.
3155 * go-lang.c (go_language_arch_info): Delete function, move
3156 implementation to...
3157 (go_language::language_arch_info): ...here, a new member
3158 function.
3159 (go_language_data): Delete la_language_arch_info.
3160 * language.c (unknown_language_data): Likewise.
3161 (unknown_language::language_arch_info): New member function.
3162 (auto_language_data): Delete la_language_arch_info.
3163 (auto_language::language_arch_info): New member function.
3164 (language_gdbarch_post_init): Update call to
3165 la_language_arch_info.
3166 * language.h (language_data): Delete la_language_arch_info
3167 function pointer.
3168 (language_defn::language_arch_info): New function.
3169 * m2-lang.c (m2_language_arch_info): Delete function, move
3170 implementation to...
3171 (m2_language::language_arch_info): ...here, a new member
3172 function.
3173 (m2_language_data): Delete la_language_arch_info.
3174 * objc-lang.c (objc_language_arch_info): Delete function, move
3175 implementation to...
3176 (objc_language::language_arch_info): ...here, a new member
3177 function.
3178 (objc_language_data): Delete la_language_arch_info.
3179 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3180 implementation to...
3181 (opencl_language::language_arch_info): ...here, a new member
3182 function.
3183 (opencl_language_data): Delete la_language_arch_info.
3184 * p-lang.c (pascal_language_arch_info): Delete function, move
3185 implementation to...
3186 (pascal_language::language_arch_info): ...here, a new member
3187 function.
3188 (pascal_language_data): Delete la_language_arch_info.
3189 * rust-lang.c (rust_language_arch_info): Delete function, move
3190 implementation to...
3191 (rust_language::language_arch_info): ...here, a new member
3192 function.
3193 (rust_language_data): Delete la_language_arch_info.
3194
3195 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3196
3197 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3198 initializer.
3199 * c-lang.c (c_language_data): Likewise.
3200 (cplus_language_data): Likewise.
3201 (cplus_language::pass_by_reference_info): New method.
3202 (asm_language_data): Delete la_pass_by_reference initializer.
3203 (minimal_language_data): Likewise.
3204 * cp-abi.c (cp_pass_by_reference): Remove use of
3205 default_pass_by_reference.
3206 * d-lang.c (d_language_data): Likewise.
3207 * f-lang.c (f_language_data): Likewise.
3208 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3209 default_pass_by_reference.
3210 * go-lang.c (go_language_data): Likewise.
3211 * language.c (language_pass_by_reference): Update.
3212 (default_pass_by_reference): Delete.
3213 (unknown_language_data): Delete la_pass_by_reference
3214 initializer.
3215 (auto_language_data): Likewise.
3216 * language.h (struct language_data): Delete la_pass_by_reference
3217 field.
3218 (language_defn::pass_by_reference_info): New member function.
3219 (default_pass_by_reference): Delete declaration.
3220 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3221 initializer.
3222 * objc-lang.c (objc_language_data): Likewise.
3223 * opencl-lang.c (opencl_language_data): Likewise.
3224 * p-lang.c (pascal_language_data): Likewise.
3225 * rust-lang.c (rust_language_data): Likewise.
3226
3227 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3228
3229 * ada-lang.c (ada_read_var_value): Delete function, move
3230 implementation to...
3231 (ada_language::read_var_value): ...here.
3232 (ada_language_data): Delete la_read_var_value initializer.
3233 * c-lang.c (c_language_data): Likewise.
3234 (cplus_language_data): Likewise.
3235 (minimal_language_data): Likewise.
3236 * d-lang.c (d_language_data): Likewise.
3237 * f-lang.c (f_language_data): Likewise.
3238 * findvar.c (default_read_var_value): Rename to...
3239 (language_defn::read_var_value): ...this.
3240 * findvar.c (read_var_value): Update header comment, and change to
3241 call member function instead of function pointer.
3242 * go-lang.c (go_language_data): Likewise.
3243 * language.c (unknown_language_data): Delete la_read_var_value
3244 initializer.
3245 (auto_language_data): Likewise.
3246 * language.h (struct language_data): Delete la_read_var_value
3247 field.
3248 (language_defn::read_var_value): New member function.
3249 (default_read_var_value): Delete declaration.
3250 * m2-lang.c (m2_language_data): Delete la_read_var_value
3251 initializer.
3252 * objc-lang.c (objc_language_data): Likewise.
3253 * opencl-lang.c (opencl_language_data): Likewise.
3254 * p-lang.c (pascal_language_data): Likewise.
3255 * rust-lang.c (rust_language_data): Likewise.
3256 * value.h (default_read_var_value): Delete declaration.
3257
3258 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3259
3260 * ada-lang.c (ada_print_array_index): Delete function, move
3261 implementation to...
3262 (ada_language::print_array_index): ...here.
3263 (ada_language_data): Delete la_print_array_index initializer.
3264 * c-lang.c (c_language_data): Likewise.
3265 (cplus_language_data): Likewise.
3266 (minimal_language_data): Likewise.
3267 * d-lang.c (d_language_data): Likewise.
3268 * f-lang.c (f_language_data): Likewise.
3269 * go-lang.c (go_language_data): Likewise.
3270 * language.c (default_print_array_index): Delete function, move
3271 implementation to...
3272 (language_defn::print_array_index): ...here.
3273 (unknown_language_data): Delete la_print_array_index initializer.
3274 (auto_language_data): Likewise.
3275 * language.h (struct language_data): Delete la_print_array_index
3276 field.
3277 (language_defn::print_array_index): New member function.
3278 (LA_PRINT_ARRAY_INDEX): Update.
3279 (default_print_array_index): Delete declaration.
3280 * m2-lang.c (m2_language_data): Delete la_print_array_index
3281 initializer.
3282 * objc-lang.c (objc_language_data): Likewise.
3283 * opencl-lang.c (opencl_language_data): Likewise.
3284 * p-lang.c (pascal_language_data): Likewise.
3285 * rust-lang.c (rust_language_data): Likewise.
3286
3287 2020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3288
3289 * gdb/ada-lang.c (ada_language_defn): Convert to...
3290 (ada_language_data): ...this.
3291 (class ada_language): New class.
3292 (ada_language_defn): New static global.
3293 * gdb/c-lang.c (c_language_defn): Convert to...
3294 (c_language_data): ...this.
3295 (class c_language): New class.
3296 (c_language_defn): New static global.
3297 (cplus_language_defn): Convert to...
3298 (cplus_language_data): ...this.
3299 (class cplus_language): New class.
3300 (cplus_language_defn): New static global.
3301 (asm_language_defn): Convert to...
3302 (asm_language_data): ...this.
3303 (class asm_language): New class.
3304 (asm_language_defn): New static global.
3305 (minimal_language_defn): Convert to...
3306 (minimal_language_data): ...this.
3307 (class minimal_language): New class.
3308 (minimal_language_defn): New static global.
3309 * gdb/d-lang.c (d_language_defn): Convert to...
3310 (d_language_data): ...this.
3311 (class d_language): New class.
3312 (d_language_defn): New static global.
3313 * gdb/f-lang.c (f_language_defn): Convert to...
3314 (f_language_data): ...this.
3315 (class f_language): New class.
3316 (f_language_defn): New static global.
3317 * gdb/go-lang.c (go_language_defn): Convert to...
3318 (go_language_data): ...this.
3319 (class go_language): New class.
3320 (go_language_defn): New static global.
3321 * gdb/language.c (unknown_language_defn): Remove declaration.
3322 (current_language): Initialize to nullptr, real initialization is
3323 moved to _initialize_language.
3324 (languages): Delete global.
3325 (language_defn::languages): Define.
3326 (set_language_command): Use language_defn::languages.
3327 (set_language): Likewise.
3328 (range_error): Likewise.
3329 (language_enum): Likewise.
3330 (language_def): Likewise.
3331 (add_set_language_command): Use language_def::languages for the
3332 language list, and language_def to lookup language pointers.
3333 (skip_language_trampoline): Use language_defn::languages.
3334 (unknown_language_defn): Convert to...
3335 (unknown_language_data): ...this.
3336 (class unknown_language): New class.
3337 (unknown_language_defn): New static global.
3338 (auto_language_defn): Convert to...
3339 (auto_language_data): ...this.
3340 (class auto_language): New class.
3341 (auto_language_defn): New static global.
3342 (language_gdbarch_post_init): Use language_defn::languages.
3343 (_initialize_language): Initialize current_language.
3344 * gdb/language.h (struct language_defn): Rename to...
3345 (struct language_data): ...this.
3346 (struct language_defn): New.
3347 (auto_language_defn): Delete.
3348 (unknown_language_defn): Delete.
3349 (minimal_language_defn): Delete.
3350 (ada_language_defn): Delete.
3351 (asm_language_defn): Delete.
3352 (c_language_defn): Delete.
3353 (cplus_language_defn): Delete.
3354 (d_language_defn): Delete.
3355 (f_language_defn): Delete.
3356 (go_language_defn): Delete.
3357 (m2_language_defn): Delete.
3358 (objc_language_defn): Delete.
3359 (opencl_language_defn): Delete.
3360 (pascal_language_defn): Delete.
3361 (rust_language_defn): Delete.
3362 * gdb/m2-lang.c (m2_language_defn): Convert to...
3363 (m2_language_data): ...this.
3364 (class m2_language): New class.
3365 (m2_language_defn): New static global.
3366 * gdb/objc-lang.c (objc_language_defn): Convert to...
3367 (objc_language_data): ...this.
3368 (class objc_language): New class.
3369 (objc_language_defn): New static global.
3370 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3371 (opencl_language_data): ...this.
3372 (class opencl_language): New class.
3373 (opencl_language_defn): New static global.
3374 * gdb/p-lang.c (pascal_language_defn): Convert to...
3375 (pascal_language_data): ...this.
3376 (class pascal_language): New class.
3377 (pascal_language_defn): New static global.
3378 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3379 language pointer, update comment format.
3380 * gdb/rust-lang.c (rust_language_defn): Convert to...
3381 (rust_language_data): ...this.
3382 (class rust_language): New class.
3383 (rust_language_defn): New static global.
3384
3385 2020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3388 member variable.
3389 <m_stmt_at_address>: New member variable.
3390 (lnp_state_machine::record_line): Don't record some lines, update
3391 tracking of is_stmt at the same address.
3392 (lnp_state_machine::lnp_state_machine): Initialise new member
3393 variables.
3394
3395 2020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3396
3397 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3398 "-include gnu-nat-mig.h".
3399 * gnu-nat-mig.h: New file.
3400 * gnu-nat.c: Include "gnu-nat-mig.h".
3401 (exc_server, msg_reply_server, notify_server,
3402 process_reply_server): Remove declarations.
3403
3404 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3405
3406 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3407 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3408 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3409 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3410 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3411 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3412 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3413 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3414 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3415 to gnu_nat_target class.
3416 * gnu-nat.c: Likewise.
3417 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3418 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3419 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3420 object.
3421 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3422 instead of `gnu_target'.
3423
3424 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3425
3426 * i386-gnu-tdep.c: Include "gdbcore.h"
3427 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3428 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3429 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3430 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3431 i386_gnu_sigcontext_addr): New functions
3432 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3433 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3434 tdep.
3435
3436 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3437
3438 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3439 before fork_inferior call. Avoid calling it if target_is_pushed returns
3440 true.
3441
3442 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3443
3444 * gnu-nat.h (gnu_target): New variable declaration.
3445 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3446 gnu_target.
3447 * gnu-nat.c (gnu_target): New variable.
3448 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3449 add_thread_silent, and add_thread calls.
3450 (gnu_nat_target::create_inferior): Pass gnu_target to
3451 add_thread_silent, thread_change_ptid call.
3452 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3453 call.
3454
3455 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3456
3457 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3458 (gnu_nat_target::find_memory_regions): Remove unused
3459 `old_address' variable.
3460
3461 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3462
3463 * gnu-nat.c: Include "gdbarch.h".
3464
3465 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3466
3467 * reply_mig_hack.awk (Error return): Cast function through
3468 void *, to bypass compiler function call check.
3469
3470 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3471
3472 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3473 $(srcdir)/reply_mig_hack.awk.
3474
3475 2020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3476
3477 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3478
3479 2020-05-30 Jonny Grant <jg@jguk.org>
3480
3481 * configure.ac (ACX_BUGURL): change bug URL to https.
3482
3483 2020-05-30 Pedro Alves <palves@redhat.com>
3484
3485 * cp-support.c (replace_typedefs_template): New.
3486 (replace_typedefs_qualified_name): Handle
3487 DEMANGLE_COMPONENT_TEMPLATE.
3488
3489 2020-05-29 Simon Marchi <simon.marchi@efficios.com>
3490
3491 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3492 dwarf2/index-cache.h, dwarf2/index-write.c,
3493 dwarf2/index-write.h, dwarf2/line-header.c,
3494 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3495 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3496 variables and fields from `dwarf2_per_objfile` to just
3497 `per_objfile` throughout.
3498
3499 2020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3500
3501 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3502 <push_dwarf_reg_entry_value>: Add comment.
3503
3504 2020-05-28 Kevin Buettner <kevinb@redhat.com>
3505 Keith Seitz <keiths@redhat.com>
3506
3507 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3508 instead of PyEval_ReleaseLock.
3509 (class gdbpy_gil): Move to earlier in file.
3510 (finalize_python): Set gdb_python_initialized.
3511 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3512 when not initialized.
3513
3514 2020-05-28 Simon Marchi <simon.marchi@efficios.com>
3515
3516 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3517 <push_dwarf_reg_entry_value>: Remove assert. Override
3518 per_objfile with caller_per_objfile.
3519
3520 2020-05-28 Tom de Vries <tdevries@suse.de>
3521
3522 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3523 PR gold/15646 workaround to symbol kind "type".
3524
3525 2020-05-27 Tom Tromey <tromey@adacore.com>
3526
3527 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3528
3529 2020-05-27 Tom Tromey <tromey@adacore.com>
3530
3531 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3532 Use htab_find_with_hash.
3533 <add_abbrev>: Remove "abbrev_number" parameter.
3534 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3535 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3536 (hash_abbrev): Add comment.
3537 (abbrev_table::lookup_abbrev): Move to header file.
3538 (abbrev_table::read): Update.
3539
3540 2020-05-27 Tom Tromey <tromey@adacore.com>
3541
3542 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3543 method.
3544 <canonical_name>: New member.
3545 <raw_name>: Rename from "name".
3546 (partial_die_info): Initialize canonical_name.
3547 (scan_partial_symbols): Check raw_name.
3548 (partial_die_parent_scope, partial_die_full_name)
3549 (add_partial_symbol, add_partial_subprogram)
3550 (add_partial_enumeration, load_partial_dies): Use "name" method.
3551 (partial_die_info::name): New method.
3552 (partial_die_info::read, guess_partial_die_structure_name)
3553 (partial_die_info::fixup): Update.
3554
3555 2020-05-27 Tom Tromey <tromey@adacore.com>
3556
3557 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3558 <get_ref_die_offset>: Inline.
3559 <get_ref_die_offset_complaint>: New method.
3560 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3561 (attribute::get_ref_die_offset_complaint): Rename from
3562 get_ref_die_offset. Just issue complaint.
3563
3564 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3565
3566 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3567
3568 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3569
3570 * exec.c (exec_file_attach): Use errno value of first openp failure.
3571
3572 2020-05-27 Hannes Domani <ssbssa@yahoo.de>
3573
3574 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3575 Don't close thread handle.
3576
3577 2020-05-27 Tom Tromey <tom@tromey.com>
3578 Simon Marchi <simon.marchi@efficios.com>
3579
3580 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3581 shared_ptr.
3582 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3583 member.
3584 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3585 dwarf2_per_bfd_objfile_data_key>: New globals.
3586 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3587 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3588 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3589 shared.
3590 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3591 short-circuit when sharing.
3592 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3593 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3594
3595 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3596
3597 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3598 to...
3599 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3600 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3601
3602 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3603
3604 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3605 build_name_components, find_name_components_bounds>:
3606 Add per_objfile parameter.
3607 (struct mapped_index) <symbol_name_at>: Likewise.
3608 (struct mapped_debug_names): Remove constructor.
3609 <dwarf2_per_objfile>: Remove field.
3610 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3611 (mapped_index_base::find_name_components_bounds,
3612 mapped_index_base::build_name_components,
3613 dw2_expand_symtabs_matching_symbol): Likewise.
3614 (class mock_mapped_index) <symbol_name_at>: Likewise.
3615 (check_match): Likewise.
3616 (check_find_bounds_finds): Likewise.
3617 (test_mapped_index_find_name_component_bounds): Update.
3618 (CHECK_MATCH): Update.
3619 (dw2_expand_symtabs_matching): Update.
3620 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3621 per_objfile parameter.
3622 <find_vec_in_debug_names>: Likewise.
3623 <m_per_objfile>: New field.
3624 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3625 parameter.
3626 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3627 (dw2_debug_names_iterator::next): Update.
3628 (dw2_debug_names_lookup_symbol): Update.
3629 (dw2_debug_names_expand_symtabs_for_function): Update.
3630 (dw2_debug_names_map_matching_symbols): Update.
3631 (dw2_debug_names_expand_symtabs_matching): Update.
3632 (dwarf2_read_debug_names): Update.
3633
3634 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3635
3636 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3637 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3638 move to dwarf2_per_objfile.
3639 <read_in_chain>: Remove.
3640 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3641 remove_all_cus, age_comp_units>: New methods.
3642 <m_dwarf2_cus>: New member.
3643 (struct dwarf2_per_cu_data) <cu>: Remove.
3644 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3645 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3646 moved to methods of dwarf2_per_objfile.
3647 (dwarf2_clear_marks): Remove.
3648 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3649 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3650 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3651 (dwarf2_per_objfile::remove_all_cus): New.
3652 (class free_cached_comp_units) <~free_cached_comp_units>:
3653 Update.
3654 (load_cu): Update.
3655 (dw2_do_instantiate_symtab): Adjust.
3656 (fill_in_sig_entry_from_dwo_entry): Adjust.
3657 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3658 (cutu_reader::cutu_reader): Likewise.
3659 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3660 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3661 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3662 and dwarf2_per_objfile::age_comp_units.
3663 (load_partial_comp_unit): Update.
3664 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3665 (process_queue): Likewise.
3666 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3667 backlink.
3668 (dwarf2_read_addr_index): Likewise.
3669 (follow_die_offset): Likewise.
3670 (dwarf2_fetch_die_loc_sect_off): Likewise.
3671 (dwarf2_fetch_constant_bytes): Likewise.
3672 (dwarf2_fetch_die_type_sect_off): Likewise.
3673 (follow_die_sig_1): Likewise.
3674 (load_full_type_unit): Likewise.
3675 (read_signatured_type): Likewise.
3676 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3677 (dwarf2_cu::~dwarf2_cu): Remove.
3678 (dwarf2_per_objfile::get_cu): New.
3679 (dwarf2_per_objfile::set_cu): New.
3680 (age_cached_comp_units): Rename to...
3681 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3682 to std::unordered_map.
3683 (free_one_cached_comp_unit): Rename to...
3684 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3685 to std::unordered_map.
3686 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3687 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3688 a dwarf2_per_objfile in data.
3689 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3690 (dwarf2_clear_marks): Remove.
3691
3692 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3693
3694 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3695 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3696 (init_tu_and_read_dwo_dies): Likewise.
3697 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3698 (cutu_reader::cutu_reader): Likewise.
3699 (load_partial_comp_unit): Likewise.
3700 (process_psymtab_comp_unit): Update.
3701 (build_type_psymtabs_1): Update.
3702 (process_skeletonless_type_unit): Update.
3703 (load_full_comp_unit): Update.
3704 (find_partial_die): Update.
3705 (dwarf2_read_addr_index): Update.
3706 (read_signatured_type): Update.
3707
3708 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3709
3710 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3711 m_header_read_in>: New fields.
3712 <get_header>: New method.
3713 * dwarf2/read.c (per_cu_header_read_in): Remove.
3714 (dwarf2_per_cu_data::get_header): New.
3715 (dwarf2_per_cu_data::addr_size): Update.
3716 (dwarf2_per_cu_data::offset_size): Update.
3717 (dwarf2_per_cu_data::ref_addr_size): Update.
3718
3719 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3720
3721 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3722 (dw2_do_instantiate_symtab): Update.
3723 (queue_and_load_all_dwo_tus): Change parameter from
3724 dwarf2_per_cu_data to dwarf2_cu.
3725 (dwarf2_fetch_die_loc_sect_off): Update.
3726 (dwarf2_fetch_constant_bytes): Update.
3727 (dwarf2_fetch_die_type_sect_off): Update.
3728
3729 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3730
3731 * dwarf2/read.c (process_full_comp_unit,
3732 process_full_type_unit): Remove per_cu, per_objfile paramters.
3733 Add dwarf2_cu parameter.
3734 (process_queue): Update.
3735
3736 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3737
3738 * dwarf2/read.c (create_cu_from_index_list): Replace
3739 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3740 (create_cus_from_index_list): Likewise.
3741 (create_cus_from_index): Likewise.
3742 (create_signatured_type_table_from_index): Likewise.
3743 (create_cus_from_debug_names_list): Likewise.
3744 (create_cus_from_debug_names): Likewise.
3745 (dwarf2_read_gdb_index): Update.
3746 (dwarf2_read_debug_names): Update.
3747
3748 2020-05-27 Tom Tromey <tom@tromey.com>
3749 Simon Marchi <simon.marchi@efficios.com>
3750
3751 * dwarf2/read.h (struct dwarf2_per_objfile)
3752 <get_type_for_signatured_type, set_type_for_signatured_type>:
3753 New methods.
3754 <m_type_map>: New member.
3755 (struct signatured_type) <type>: Remove.
3756 * dwarf2/read.c
3757 (dwarf2_per_objfile::get_type_for_signatured_type,
3758 dwarf2_per_objfile::set_type_for_signatured_type): New.
3759 (get_signatured_type): Use new methods.
3760
3761 2020-05-27 Tom Tromey <tom@tromey.com>
3762 Simon Marchi <simon.marchi@efficios.com>
3763
3764 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3765 (struct dwarf2_per_objfile) <type_units>: New member.
3766 <get_type_unit_group_unshareable>: New method.
3767 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3768 num_symtabs, symtabs>: Remove; move to
3769 type_unit_group_unshareable.
3770 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3771 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3772 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3773
3774 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3775
3776 * dwarf2/read.h (struct dwarf2_per_cu_data):
3777 <dwarf2_per_objfile>: Remove.
3778 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3779 dwarf2_per_objfile.
3780 (create_signatured_type_table_from_index): Likewise.
3781 (create_signatured_type_table_from_debug_names): Likewise.
3782 (create_debug_type_hash_table): Likewise.
3783 (fill_in_sig_entry_from_dwo_entry): Likewise.
3784 (create_type_unit_group): Likewise.
3785 (read_comp_units_from_section): Likewise.
3786 (create_cus_hash_table): Likewise.
3787
3788 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3789
3790 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3791 dwarf2_per_cu_data::dwarf2_per_objfile.
3792 (compute_compunit_symtab_includes): Likewise.
3793 (dwarf2_cu::start_symtab): Likewise.
3794
3795 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3796
3797 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3798 parameter.
3799 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3800 (read_namespace_alias): Update.
3801 (lookup_die_type): Update.
3802 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3803 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3804 Update.
3805 (disassemble_dwarf_expression): Update.
3806
3807 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3808
3809 * dwarf2/read.h (struct dwarf2_queue_item): Add
3810 dwarf2_per_objfile parameter, assign new parameter.
3811 <per_objfile>: New field.
3812 * dwarf2/read.c (free_one_cached_comp_unit): Add
3813 dwarf2_per_objfile parameter.
3814 (queue_comp_unit): Likewise.
3815 (dw2_do_instantiate_symtab): Update.
3816 (process_psymtab_comp_unit): Update.
3817 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3818 (process_imported_unit_die): Update.
3819 (queue_and_load_dwo_tu): Update.
3820 (follow_die_offset): Update.
3821 (follow_die_sig_1): Update.
3822
3823 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3824
3825 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3826 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3827 (read_call_site_scope): Assign per_objfile.
3828 (dwarf2_per_cu_data::objfile): Remove.
3829 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3830 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3831 dwarf2_per_objfile parameter.
3832 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3833 dwarf2_per_objfile parameter.
3834 (dwarf_expr_reg_to_entry_parameter): Add output
3835 dwarf2_per_objfile parameter.
3836 (locexpr_get_frame_base): Update.
3837 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3838 <push_dwarf_reg_entry_value>: Update.
3839 <call_site_to_target_addr>: Update.
3840 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3841 parameter.
3842 (value_of_dwarf_reg_entry): Update.
3843 (rw_pieced_value): Update.
3844 (indirect_synthetic_pointer): Update.
3845 (dwarf2_evaluate_property): Update.
3846 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3847 parameter.
3848 (locexpr_read_variable): Update.
3849 (locexpr_get_symbol_read_needs): Update.
3850 (loclist_read_variable): Update.
3851
3852 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3853
3854 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3855 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3856 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3857 parameter.
3858 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3859 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3860 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3861 parameter.
3862 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3863 sect_variable_value): Add dwarf2_per_objfile parameter.
3864 (class dwarf_evaluate_loc_desc) <dwarf_call,
3865 dwarf_variable_value>: Update.
3866 (fetch_const_value_from_synthetic_pointer): Add
3867 dwarf2_per_objfile parameter.
3868 (fetch_const_value_from_synthetic_pointer): Update.
3869 (coerced_pieced_ref): Update.
3870 (class symbol_needs_eval_context) <dwarf_call,
3871 dwarf_variable_value>: Update.
3872 (dwarf2_compile_expr_to_ax): Update.
3873
3874 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3877 parameter.
3878 (dwarf2_evaluate_loc_desc_full): Update.
3879
3880 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3881
3882 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3883 parameter.
3884 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3885 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3886 dwarf2_per_objfile parameter.
3887 (decode_debug_loc_dwo_addresses): Likewise.
3888 (dwarf2_find_location_expression): Update.
3889 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3890 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3891 parameter.
3892 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3893 parameter.
3894 (locexpr_describe_location_1): Likewise.
3895 (locexpr_describe_location): Update.
3896
3897 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3898
3899 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3900 Remove.
3901 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3902 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3903 (dwarf2_compile_property_to_c): Update.
3904 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3905 use text offset from objfile.
3906 (locexpr_tracepoint_var_ref): Update.
3907 (locexpr_generate_c_location): Update.
3908 (loclist_describe_location): Update.
3909 (loclist_tracepoint_var_ref): Update.
3910 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3911 dwarf2_per_objfile parameter.
3912 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3913 use text offset from objfile.
3914 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3915
3916 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3917
3918 * dwarf2/expr.h (struct dwarf_expr_context)
3919 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3920 <offset>: Remove.
3921 <per_objfile>: New member.
3922 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3923 dwarf2_per_objfile parameter. Don't set offset, set
3924 per_objfile.
3925 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3926 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3927 a dwarf2_per_objfile object instead of an offset.
3928 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3929 constructor.
3930 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3931 to dwarf2_expr_executor constructor. Don't set offset.
3932 (dwarf2_fetch_cfa_info): Update.
3933 (struct dwarf2_frame_cache) <text_offset>: Remove.
3934 <per_objfile>: New field.
3935 (dwarf2_frame_cache): Update.
3936 (dwarf2_frame_prev_register): Update.
3937 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3938 <dwarf_evaluate_loc_desc>: Add constructor.
3939 (dwarf2_evaluate_loc_desc_full): Update.
3940 (dwarf2_locexpr_baton_eval): Update.
3941 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3942 Add constructor.
3943 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3944
3945 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3946
3947 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3948 addr_sized_int_type>: Move to dwarf2_cu.
3949 <int_type>: Move to dwarf2_per_objfile.
3950 (struct dwarf2_per_objfile) <int_type>: Move here.
3951 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3952 addr_sized_int_type>: Move here.
3953 (read_func_scope): Update.
3954 (read_array_type): Update.
3955 (read_tag_string_type): Update.
3956 (attr_to_dynamic_prop): Update.
3957 (dwarf2_per_cu_data::int_type): Rename to...
3958 (dwarf2_per_objfile::int_type): ... this.
3959 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3960 (dwarf2_cu::addr_sized_int_type): ... this.
3961 (read_subrange_type): Update.
3962 (dwarf2_per_cu_data::addr_type): Rename to...
3963 (dwarf2_cu::addr_type): ... this.
3964 (set_die_type): Update.
3965
3966 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3967
3968 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3969 data through per_cu->cu.
3970
3971 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3972
3973 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3974 dwarf2_per_cu_data parameter fo dwarf2_cu.
3975 (lookup_dwo_type_unit): Likewise.
3976 (read_cutu_die_from_dwo): Likewise.
3977 (lookup_dwo_unit): Likewise.
3978 (open_and_init_dwo_file): Likewise.
3979 (lookup_dwo_cutu): Likewise.
3980 (lookup_dwo_comp_unit): Likewise.
3981 (lookup_dwo_type_unit): Likewise.
3982 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3983 (cutu_reader::cutu_reader): Update.
3984
3985 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3986
3987 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3988 parameter.
3989 (process_full_type_unit): Likewise.
3990 (process_queue): Update.
3991
3992 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * dwarf2/read.c (recursively_compute_inclusions): Add
3995 dwarf2_per_objfile parameter.
3996 (compute_compunit_symtab_includes): Likewise.
3997 (process_cu_includes): Update.
3998
3999 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4000
4001 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4002 parameter.
4003 (create_type_unit_group): Update.
4004 (process_psymtab_comp_unit_reader): Update.
4005 (build_type_psymtabs_reader): Update.
4006
4007 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4008
4009 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4010 object through m_this_cu->cu.
4011
4012 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4013
4014 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4015 the info parameter.
4016 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4017
4018 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4019
4020 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4021 per_objfile parameter.
4022 (load_full_type_unit): Add per_objfile parameter.
4023 (read_signatured_type): Likewise.
4024 (load_full_comp_unit): Likewise.
4025 (load_cu): Likewise.
4026 (dw2_do_instantiate_symtab): Likewise.
4027 (dw2_get_file_names): Likewise.
4028 (dw2_map_symtabs_matching_filename): Update.
4029 (dw_expand_symtabs_matching_file_matcher): Update.
4030 (dw2_map_symbol_filenames): Update.
4031 (process_psymtab_comp_unit): Add per_objfile parameter.
4032 (build_type_psymtabs_1): Update.
4033 (process_skeletonless_type_unit): Update.
4034 (dwarf2_build_psymtabs_hard): Update.
4035 (load_partial_comp_unit): Add per_objfile parameter.
4036 (scan_partial_symbols): Update.
4037 (load_full_comp_unit): Add per_objfile parameter.
4038 (process_imported_unit_die): Update.
4039 (create_cus_hash_table): Update.
4040 (find_partial_die): Update.
4041 (dwarf2_read_addr_index): Update.
4042 (follow_die_offset): Update.
4043 (dwarf2_fetch_die_loc_sect_off): Update.
4044 (dwarf2_fetch_constant_bytes): Update.
4045 (dwarf2_fetch_die_type_sect_off): Update.
4046 (follow_die_sig_1): Update.
4047 (load_full_type_unit): Add per_objfile parameter.
4048 (read_signatured_type): Likewise.
4049
4050 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4053 of objfile_name.
4054
4055 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4056
4057 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4058 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4059 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4060 field.
4061 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4062 (create_cus_from_index): Update.
4063 (dwarf2_read_gdb_index): Update.
4064 (create_cus_from_debug_names): Update.
4065 (dwarf2_read_debug_names): Update.
4066 (get_abbrev_section_for_cu): Update.
4067 (create_all_comp_units): Update.
4068 (read_attribute_value): Update.
4069 (get_debug_line_section): Update.
4070 * dwarf2/index-cache.c (index_cache::store): Update.
4071 * dwarf2/index-write.c (save_gdb_index_command): Update.
4072 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4073
4074 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4075
4076 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4077 member.
4078 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4079 dwarf2_per_cu_data::per_bfd.
4080 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4081 (create_type_unit_group): Likewise.
4082 (queue_comp_unit): Remove reference to
4083 per_cu->dwarf2_per_objfile.
4084 (maybe_queue_comp_unit): Likewise.
4085 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4086 (create_cus_hash_table): Assign new field.
4087
4088 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4089
4090 * dwarf2/read.c: Replace
4091 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4092 dwarf2_cu->per_objfile throughout.
4093
4094 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4095
4096 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4097 parameter, don't use per_cu->dwarf2_per_objfile.
4098 (dw2_instantiate_symtab): Likewise.
4099 (dw2_find_last_source_symtab): Update.
4100 (dw2_map_expand_apply): Update.
4101 (dw2_lookup_symbol): Update.
4102 (dw2_expand_symtabs_for_function): Update.
4103 (dw2_expand_all_symtabs): Update.
4104 (dw2_expand_symtabs_with_fullname): Update.
4105 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4106 don't use per_cu->dwarf2_per_objfile.
4107 (dw2_expand_marked_cus): Update.
4108 (dw2_find_pc_sect_compunit_symtab): Update.
4109 (dw2_debug_names_lookup_symbol): Update.
4110 (dw2_debug_names_expand_symtabs_for_function): Update.
4111 (dw2_debug_names_map_matching_symbols): Update.
4112 (dwarf2_psymtab::expand_psymtab): Update.
4113
4114 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4115
4116 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4117 <per_objfile>: New member.
4118 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4119 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4120 call to dwarf2_cu.
4121 (cutu_reader::cutu_reader): Update.
4122 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4123
4124 2020-05-27 Simon Marchi <simon.marchi@efficios.com>
4125
4126 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4127 struct dwarf2_per_objfile.
4128 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4129 dwarf2_per_bfd.
4130 * dwarf2/read.c (set_die_type): Update.
4131 (get_die_type_at_offset): Update.
4132
4133 2020-05-27 Tom Tromey <tom@tromey.com>
4134 Simon Marchi <simon.marchi@efficios.com>
4135
4136 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4137 method.
4138 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4139 get_symtab, set_symtab>: New methods.
4140 <m_symtabs>: New field.
4141 (struct dwarf2_psymtab): Derive from partial_symtab.
4142 <readin_p, get_compunit_symtab>: Declare methods.
4143 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4144 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4145 New methods.
4146 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4147 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4148 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4149 (dw2_symtab_iter_next, dw2_print_stats)
4150 (dw2_expand_symtabs_with_fullname)
4151 (dw2_expand_symtabs_matching_one)
4152 (dw_expand_symtabs_matching_file_matcher)
4153 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4154 (dw2_debug_names_iterator::next)
4155 (dw2_debug_names_map_matching_symbols)
4156 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4157 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4158 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4159 New methods.
4160 (get_compunit_symtab, process_full_comp_unit)
4161 (process_full_type_unit): Update.
4162 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4163
4164 2020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4165
4166 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4167 then introduce a new dwarf2_per_objfile type.
4168 <read_line_string>: Move to the new dwarf2_per_objfile type.
4169 <objfile>: Likewise.
4170 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4171 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4172 dwarf2_per_objfile->per_bfd.
4173 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4174 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4175 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4176 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4177 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4178 (dwarf2_per_objfile::locate_sections): Rename to...
4179 (dwarf2_per_bfd::locate_sections): ... this.
4180 (dwarf2_per_objfile::get_cutu): Rename to...
4181 (dwarf2_per_bfd::get_cutu): ... this.
4182 (dwarf2_per_objfile::get_cu): Rename to...
4183 (dwarf2_per_bfd::get_cu): ... this.
4184 (dwarf2_per_objfile::get_tu): Rename to...
4185 (dwarf2_per_bfd::get_tu): ... this.
4186 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4187 (dwarf2_per_bfd::allocate_per_cu): ... this.
4188 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4189 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4190 (get_gdb_index_contents_ftype): Change parameter from
4191 dwarf2_per_objfile to dwarf2_per_bfd.
4192 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4193 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4194
4195 2020-05-27 Tom Tromey <tom@tromey.com>
4196 Simon Marchi <simon.marchi@efficios.com>
4197
4198 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4199 (allocate_piece_closure): Set "per_objfile" member.
4200 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4201 (locexpr_describe_location, loclist_describe_location): Use new
4202 member.
4203 * dwarf2/read.c (read_call_site_scope)
4204 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4205 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4206 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4207 handle_data_member_location): Set per_objfile member.
4208 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4209 member.
4210 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4211
4212 2020-05-27 Tom Tromey <tom@tromey.com>
4213
4214 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4215 allocate_signatured_type>: Declare new methods.
4216 <m_num_psymtabs>: New member.
4217 (struct dwarf2_per_cu_data) <index>: New member.
4218 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4219 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4220 (create_cu_from_index_list): Use allocate_per_cu.
4221 (create_signatured_type_table_from_index)
4222 (create_signatured_type_table_from_debug_names)
4223 (create_debug_type_hash_table, add_type_unit)
4224 (read_comp_units_from_section): Use allocate_signatured_type.
4225
4226 2020-05-27 Tom Tromey <tom@tromey.com>
4227
4228 * psymtab.c (partial_map_expand_apply)
4229 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4230 (psym_lookup_global_symbol_language)
4231 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4232 (psym_print_stats, psym_expand_symtabs_for_function)
4233 (psym_map_symbol_filenames, psym_map_matching_symbols)
4234 (psym_expand_symtabs_matching)
4235 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4236 (maintenance_check_psymtabs): Update.
4237 * psympriv.h (struct partial_symtab) <readin_p,
4238 get_compunit_symtab>: Add objfile parameter.
4239 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4240 Likewise.
4241 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4242 get_compunit_symtab>: Likewise.
4243 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4244
4245 2020-05-27 Tom Tromey <tom@tromey.com>
4246
4247 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4248 member.
4249 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4250 (create_cu_from_index_list)
4251 (create_signatured_type_table_from_index)
4252 (create_signatured_type_table_from_debug_names)
4253 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4254 (dwarf2_create_include_psymtab)
4255 (create_debug_type_hash_table, add_type_unit)
4256 (create_type_unit_group, read_comp_units_from_section)
4257 (dwarf2_compute_name, create_cus_hash_table)
4258 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4259 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4260 obstack.
4261 (dw2_get_real_path): Likewise. Change argument to
4262 dwarf2_per_objfile.
4263
4264 2020-05-27 Luis Machado <luis.machado@linaro.org>
4265
4266 PR tdep/26000
4267 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4268 for ldrd (immediate).
4269
4270 2020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4271
4272 * command.h: Add comment giving the name of class_tui.
4273 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4274 create the fake command for the help for class_tui.
4275
4276 2020-05-26 Tom Tromey <tromey@adacore.com>
4277
4278 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4279 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4280 (val_atr): New function.
4281 (value_val_atr): Use it.
4282 * ada-valprint.c (print_optional_low_bound): Change low bound
4283 handling for enums.
4284 (val_print_packed_array_elements): Don't call discrete_position.
4285 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4286 discrete_position for enum types.
4287 * language.c (default_print_array_index): Change type.
4288 * language.h (struct language_defn) <la_print_array_index>: Add
4289 index_type parameter, change type of index_value.
4290 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4291 (default_print_array_index): Update.
4292 * valprint.c (maybe_print_array_index): Don't call
4293 value_from_longest. Update.
4294 (value_print_array_elements): Don't call discrete_position.
4295
4296 2020-05-26 Tom Tromey <tromey@adacore.com>
4297
4298 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4299 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4300
4301 2020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4302
4303 PR gdb/13519
4304 * avr-tdep.c (avr_integer_to_address): Return data or code
4305 address accordingly to the second 'type' argument of the
4306 function.
4307
4308 2020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4309
4310 * infcmd.c, inferior.h: (construct_inferior_arguments):
4311 Moved function from here to gdbsupport/common-inferior.{h,cc}
4312
4313 2020-05-23 Tom Tromey <tom@tromey.com>
4314
4315 Revert commit eca1f90c:
4316 * NEWS: Remove entry for completion styling.
4317 * completer.c (_rl_completion_prefix_display_length): Move
4318 declaration later.
4319 (gdb_fnprint): Revert.
4320 (gdb_display_match_list_1): Likewise.
4321 * cli/cli-style.c (completion_prefix_style)
4322 (completion_difference_style, completion_suffix_style): Remove.
4323 (_initialize_cli_style): Revert.
4324 * cli/cli-style.h (completion_prefix_style)
4325 (completion_difference_style, completion_suffix_style): Don't
4326 declare.
4327
4328 2020-05-24 Pedro Alves <palves@redhat.com>
4329
4330 * symtab.c (completion_list_add_name): Return boolean indication
4331 of whether the symbol matched.
4332 (completion_list_add_symbol): Don't try to remove C++ aliases if
4333 the symbol didn't match in the first place.
4334 * symtab.h (completion_list_add_name): Return bool.
4335
4336 2020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4337
4338 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4339 type::field.
4340
4341 2020-05-23 Joel Brobecker <brobecker@adacore.com>
4342
4343 GDB 9.2 released.
4344
4345 2020-05-23 Tom Tromey <tom@tromey.com>
4346
4347 * NEWS: Add entry for completion styling.
4348 * completer.c (_rl_completion_prefix_display_length): Move
4349 declaration earlier.
4350 (gdb_fnprint): Use completion_style.
4351 (gdb_display_match_list_1): Likewise.
4352 * cli/cli-style.c (completion_prefix_style)
4353 (completion_difference_style, completion_suffix_style): New
4354 globals.
4355 (_initialize_cli_style): Register new globals.
4356 * cli/cli-style.h (completion_prefix_style)
4357 (completion_difference_style, completion_suffix_style): Declare.
4358
4359 2020-05-23 Pedro Alves <palves@redhat.com>
4360
4361 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4362 (parse_escape): Use ISDIGIT instead of isdigit.
4363 (puts_debug): Use gdb_isprint instead of isprint.
4364 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4365 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4366 ISSPACE instead of isspace.
4367 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4368 instead of isspace.
4369 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4370 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4371 instead of isxdigit and ISDIGIT instead of isdigit.
4372
4373 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4374
4375 * gdbtypes.h (struct type) <field>: New method.
4376 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4377 or type::field.
4378
4379 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4380
4381 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4382 (TYPE_FIELDS): Use type::fields. Change all call sites that
4383 modify the propery to use type::set_fields instead.
4384
4385 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4386
4387 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4388 type::num_fields instead.
4389
4390 2020-05-22 Simon Marchi <simon.marchi@efficios.com>
4391
4392 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4393 methods.
4394 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4395 that modify the number of fields to use type::set_num_fields
4396 instead.
4397
4398 2020-05-22 Tom Tromey <tromey@adacore.com>
4399
4400 * compile/compile-object-load.h (munmap_list_free): Don't
4401 declare.
4402
4403 2020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4404
4405 * annotate.c (annotate_source_line): Update return type, add call
4406 to update current symtab and line.
4407 * annotate.h (annotate_source_line): Update return type, and
4408 extend header comment.
4409 * source.c (info_line_command): Check annotation_level before
4410 calling annotate_source_line.
4411 * stack.c (print_frame_info): If calling annotate_source_line
4412 returns true, then don't print any other source line information.
4413
4414 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4415
4416 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4417
4418 2020-05-21 Simon Marchi <simon.marchi@efficios.com>
4419
4420 * coffread.c (patch_type): Remove NULL check before xfree.
4421 * corefile.c (set_gnutarget): Likewise.
4422 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4423 * exec.c (build_section_table): Likewise.
4424 * remote.c (remote_target::pass_signals): Likewise.
4425 * utils.c (n_spaces): Likewise.
4426 * cli/cli-script.c (document_command): Likewise.
4427 * i386-windows-tdep.c (core_process_module_section): Likewise.
4428 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4429
4430 2020-05-20 Simon Marchi <simon.marchi@efficios.com>
4431
4432 * symfile.c (reread_symbols): Clear objfile's section_offsets
4433 vector and section indices, re-compute them by calling
4434 sym_offsets.
4435
4436 2020-05-20 Tom Tromey <tromey@adacore.com>
4437
4438 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
4439 (desc_one_bound, desc_index_type): Compute field name.
4440
4441 2020-05-20 Tom de Vries <tdevries@suse.de>
4442
4443 PR symtab/25833
4444 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4445
4446 2020-05-20 Alan Modra <amodra@gmail.com>
4447
4448 PR 25993
4449 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4450 bfd_set_filename.
4451 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4452 passed to bfd_set_filename.
4453 * symfile-mem.c (add_vsyscall_page): Likewise for string
4454 passed to symbol_file_add_from_memory.
4455 (symbol_file_add_from_memory): Make name param a const char* and
4456 don't strdup.
4457
4458 2020-05-20 Alan Modra <amodra@gmail.com>
4459
4460 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4461 rather than accessing bfd->filename directly.
4462 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4463 and use bfd_section_name.
4464 * dwarf2/frame.c (decode_frame_entry): Likewise.
4465 * exec.c (exec_set_section_address): Likewise.
4466 * solib-aix.c (solib_aix_bfd_open): Likewise.
4467 * stap-probe.c (get_stap_base_address): Likewise.
4468 * symfile.c (reread_symbols): Likewise.
4469
4470 2020-05-19 Tom Tromey <tromey@adacore.com>
4471
4472 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4473
4474 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4475
4476 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4477
4478 2020-05-19 Pedro Alves <palves@redhat.com>
4479
4480 * NEWS (set exec-file-mismatch): Adjust entry.
4481 * exec.c: Include "build-id.h".
4482 (validate_exec_file): Try to match build IDs instead of filenames.
4483 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4484 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4485 and pass down 'warn_if_slow'.
4486 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4487 gdb_bfd_open_closure to pass it down.
4488 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4489
4490 2020-05-19 Pedro Alves <palves@redhat.com>
4491
4492 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4493 * target.c (target_fileio_open_1): Rename to target_fileio_open
4494 and make extern. Use bool.
4495 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4496 (target_fileio_read_alloc_1): Adjust.
4497 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4498 (target_fileio_open_warn_if_slow): Delete declaration.
4499
4500 2020-05-19 Pedro Alves <palves@redhat.com>
4501
4502 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4503 Adjust all callers.
4504
4505 2020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4506
4507 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4508 whether disp is negative.
4509
4510 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4511
4512 * symfile.h (struct symfile_segment_data)
4513 <~symfile_segment_data>: Remove.
4514 <segment_info>: Change to std::vector.
4515 * symfile.c (default_symfile_segments): Update.
4516 * elfread.c (elf_symfile_segments): Update.
4517
4518 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4521 <segments>: New.
4522 <segment_bases, segment_sizes>: Remove.
4523 * symfile.c (default_symfile_segments): Update.
4524 * elfread.c (elf_symfile_segments): Update.
4525 * remote.c (remote_target::get_offsets): Update.
4526 * solib-target.c (solib_target_relocate_section_addresses):
4527 Update.
4528
4529 2020-05-19 Simon Marchi <simon.marchi@efficios.com>
4530
4531 * symfile.h (struct symfile_segment_data): Initialize fields.
4532 <~symfile_segment_data>: Add.
4533 (symfile_segment_data_up): New.
4534 (struct sym_fns) <sym_segments>: Return a
4535 symfile_segment_data_up.
4536 (default_symfile_segments): Return a symfile_segment_data_up.
4537 (free_symfile_segment_data): Remove.
4538 (get_symfile_segment_data): Return a symfile_segment_data_up.
4539 * symfile.c (default_symfile_segments): Likewise.
4540 (get_symfile_segment_data): Likewise.
4541 (free_symfile_segment_data): Remove.
4542 (symfile_find_segment_sections): Update.
4543 * elfread.c (elf_symfile_segments): Return a
4544 symfile_segment_data_up.
4545 * remote.c (remote_target::get_offsets): Update.
4546 * solib-target.c (solib_target_relocate_section_addresses):
4547 Update.
4548 * symfile-debug.c (debug_sym_segments): Return a
4549 symfile_segment_data_up.
4550
4551 2020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4552
4553 PR build/25981
4554 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4555 Hardcode register numbers.
4556
4557 PR build/25981
4558 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4559 procfs_find_LDT_entry): Remove.
4560 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4561 procfs_find_LDT_entry): Remove.
4562 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4563 Remove.
4564
4565 2020-05-17 Pedro Alves <palves@redhat.com>
4566 Andrew Burgess <andrew.burgess@embecosm.com>
4567 Keno Fischer <keno@juliacomputing.com>
4568
4569 PR gdb/25741
4570 * breakpoint.c (build_target_condition_list): Update comments.
4571 (build_target_command_list): Update comments and skip matching
4572 locations.
4573 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4574 a separate function. Simplify "set breakpoint auto-hw off"
4575 handling.
4576 (insert_breakpoints): Update comment.
4577 (tracepoint_locations_match): New parameter. For breakpoints,
4578 compare location types too, if the caller wants to.
4579 (handle_automatic_hardware_breakpoints): New functions.
4580 (bp_location_is_less_than): Also sort by location type and
4581 hardware breakpoint length.
4582 (update_global_location_list): Handle "set breakpoint auto-hw on"
4583 here.
4584 (update_breakpoint_locations): Ask breakpoint_locations_match to
4585 ignore location types.
4586
4587 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4590 type::name instead.
4591
4592 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * gdbtypes.h (struct type) <name, set_name>: New methods.
4595 (TYPE_CODE): Use type::name. Change all call sites used to set
4596 the name to use type::set_name instead.
4597
4598 2020-05-16 Tom Tromey <tom@tromey.com>
4599
4600 * top.c (quit_force): Update.
4601 * infrun.c (handle_no_resumed): Update.
4602 * top.h (all_uis): New function.
4603 (ALL_UIS): Remove.
4604
4605 2020-05-16 Simon Marchi <simon.marchi@efficios.com>
4606
4607 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4608
4609 2020-05-16 Pedro Alves <palves@redhat.com>
4610
4611 * ia64-linux-nat.c
4612 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4613 Declare method.
4614 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4615
4616 2020-05-15 Simon Marchi <simon.marchi@efficios.com>
4617
4618 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4619 (sparc64_adi_info): Likewise.
4620
4621 2020-05-15 Tom Tromey <tom@tromey.com>
4622
4623 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4624 block_objfile.
4625 (lookup_objfile_from_block): Remove.
4626 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4627 (lookup_global_symbol): Use block_objfile.
4628 * symtab.h (lookup_objfile_from_block): Don't declare.
4629 * printcmd.c (clear_dangling_display_expressions): Use
4630 block_objfile.
4631 * parse.c (operator_check_standard): Use block_objfile.
4632
4633 2020-05-15 Tom Tromey <tom@tromey.com>
4634
4635 * language.c (language_alloc_type_symbol): Set
4636 SYMBOL_SECTION.
4637 * symtab.c (initialize_objfile_symbol): Remove.
4638 (allocate_symbol): Remove.
4639 (allocate_template_symbol): Remove.
4640 * dwarf2/read.c (fixup_go_packaging): Use "new".
4641 (new_symbol): Use "new".
4642 (read_variable): Don't call initialize_objfile_symbol. Use
4643 "new".
4644 (read_func_scope): Use "new".
4645 * xcoffread.c (process_xcoff_symbol): Don't call
4646 initialize_objfile_symbol.
4647 (SYMBOL_DUP): Remove.
4648 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4649 "new".
4650 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4651 (allocate_template_symbol): Don't declare.
4652 (struct symbol): Add copy constructor. Change defaults.
4653 * jit.c (finalize_symtab): Use "new".
4654 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4655 Use "new".
4656 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4657 (common_block_end): Use "new".
4658 * mdebugread.c (parse_symbol): Use "new".
4659 (new_symbol): Likewise.
4660
4661 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4662
4663 * NEWS: Mention changes to help and apropos.
4664
4665 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4666
4667 * command.h (enum command_class): Improve comments, document
4668 that class_alias is for user-defined aliases, give the class
4669 name for each class, remove unused class_xdb.
4670 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4671 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4672 by a precise class.
4673 * infcmd.c (_initialize_infcmd): Likewise.
4674 * reverse.c (_initialize_reverse): Likewise.
4675 * stack.c (_initialize_stack): Likewise.
4676 * symfile.c (_initialize_symfile): Likewise.
4677 * tracepoint.c (_initialize_tracepoint): Likewise.
4678
4679 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4680
4681 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4682 when their aliased command is traversed.
4683 (help_cmd): Add fput_command_names_styled call to
4684 output command name and aliases when command has an alias.
4685
4686 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4687
4688 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4689 * cli/cli-decode.c (help_cmd_list): Declare as static,
4690 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4691 a command together with the command.
4692 (fput_command_name_styled, fput_command_names_styled): New functions.
4693 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4694 fput_command_name_styled.
4695 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4696 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4697
4698 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4699
4700 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4701 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4702 * command.h (cmd_show_list): Likewise.
4703 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4704 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4705
4706 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4707
4708 * unittests/command-def-selftests.c (traverse_command_structure):
4709 Verify all commands of a list have the same prefix command and
4710 that only the top cmdlist commands have a null prefix.
4711
4712 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4713
4714 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4715 as prefix, not one of its aliases.
4716 (set_cmd_prefix): Remove.
4717 (do_add_cmd): Centralize the setting of the prefix of a command, when
4718 command is defined after its full chain of prefix commands.
4719 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4720 (add_setshow_cmd_full): Likewise.
4721 (update_prefix_field_of_prefixed_commands): New function.
4722 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4723 update_prefix_field_of_prefixed_commands.
4724 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4725 addresses of remote_set_cmdlist and remote_show_cmdlist given
4726 as argument, not the address of an argument.
4727 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4728 * gdb/remote.c (_initialize_remote): Likewise.
4729
4730 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4731
4732 * cli/cli-cmds.c (alias_command): Check for an existing alias
4733 using lookup_cmd_composition, as valid_command_p is too strict
4734 and forbids aliases that are the prefix of an existing alias
4735 or command.
4736 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4737 command is properly recognised as a valid command.
4738
4739 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4740
4741 * unittests/help-doc-selftests.c: Rename to
4742 unittests/command-def-selftests.c
4743 * unittests/command-def-selftests.c (help_doc_tests): Update some
4744 comments.
4745 (command_structure_tests, traverse_command_structure): New namespace
4746 and function.
4747 (command_structure_invariants_tests): New function.
4748 (_initialize_command_def_selftests) Renamed from
4749 _initialize_help_doc_selftests, register command_structure_invariants
4750 selftest.
4751
4752 2020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4753
4754 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4755 an alias of 'show'.
4756
4757 2020-05-15 Joel Brobecker <brobecker@adacore.com>
4758
4759 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4760 ada_is_fixed_point_type. Update all callers.
4761 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4762 all callers.
4763 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4764 Update all callers.
4765 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4766 print_fixed_point_type. Update all callers.
4767 * ada-valprint.c (ada_value_print_num): Replace call to
4768 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4769
4770 2020-05-14 Kevin Buettner <kevinb@redhat.com>
4771
4772 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4773 processors.
4774 (cpu_supports_bts): Add CV_AMD case.
4775
4776 2020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4777 Simon Marchi <simon.marchi@efficios.com>
4778
4779 * infrun.c (stop_all_threads): Collect multiple wait events at
4780 each pass.
4781
4782 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4783
4784 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4785 type::code instead.
4786
4787 2020-05-14 Simon Marchi <simon.marchi@efficios.com>
4788
4789 * gdbtypes.h (struct type) <code, set_code>: New methods.
4790 (TYPE_CODE): Use type::code. Change all call sites used to set
4791 the code to use type::set_code instead.
4792
4793 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4794 Tom de Vries <tdevries@suse.de>
4795 Pedro Alves <palves@redhat.com>
4796
4797 PR threads/25478
4798 * infrun.c (stop_all_threads): Do NOT ignore
4799 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4800 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4801 received.
4802 (handle_no_resumed): Remove code handling a live inferior with no
4803 threads.
4804 * remote.c (has_single_non_exited_thread): New.
4805 (remote_target::update_thread_list): Do not delete a thread if is
4806 the last thread of the process.
4807 * thread.c (thread_select): Call delete_exited_threads instead of
4808 prune_threads.
4809
4810 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4811
4812 * infrun.c (stop_all_threads): Enable/disable thread events of all
4813 targets. Move a debug message denoting the end of the function
4814 into the SCOPED_EXIT block.
4815
4816 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4817
4818 * process-stratum-target.h: Include <set>.
4819 (all_non_exited_process_targets, switch_to_target_no_thread): New
4820 function declarations.
4821 * process-stratum-target.c (all_non_exited_process_targets)
4822 (switch_to_target_no_thread): New function implementations.
4823
4824 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4825
4826 * infrun.c (handle_inferior_event): Extract out a piece of code
4827 into...
4828 (mark_non_executing_threads): ...this new function.
4829
4830 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4831
4832 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4833 use.
4834
4835 2020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4836
4837 * regcache.c (regcache_read_pc_protected): New function
4838 implementation that returns 0 if the PC cannot read via
4839 'regcache_read_pc'.
4840 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4841 instead of 'regcache_read_pc'.
4842 (keep_going_pass_signal): Ditto.
4843
4844 2020-05-13 Tom Tromey <tromey@adacore.com>
4845
4846 * ada-lang.c (align_value): Remove.
4847 (ada_template_to_fixed_record_type_1): Use align_up.
4848
4849 2020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4850
4851 * async-event.c: Update the copyright year.
4852 * async-event.h: Update the copyright year.
4853
4854 2020-05-12 Simon Marchi <simon.marchi@efficios.com>
4855
4856 * objfiles.h (is_addr_in_objfile,
4857 shared_objfile_contains_address_p): Return bool.
4858 * objfile.c (is_addr_in_objfile,
4859 shared_objfile_contains_address_p): Return bool.
4860
4861 2020-05-11 Tom Tromey <tromey@adacore.com>
4862
4863 * cli/cli-cmds.c (info_command): Restore.
4864 (_initialize_cli_cmds): Use add_prefix_command for "info".
4865 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4866
4867 2020-05-11 Tom Tromey <tromey@adacore.com>
4868
4869 * ada-lang.c (ada_value_primitive_field): Now public.
4870 * ada-lang.h (ada_value_primitive_field): Declare.
4871 * ada-valprint.c (print_field_values): Use
4872 ada_value_primitive_field for wrapper fields.
4873
4874 2020-05-11 Tom de Vries <tdevries@suse.de>
4875
4876 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4877 MODULE_DOMAIN.
4878
4879 2020-05-11 Tom de Vries <tdevries@suse.de>
4880
4881 PR symtab/25941
4882 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4883 with length 0, if not gdb-produced.
4884 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4885
4886 2020-05-09 Tom de Vries <tdevries@suse.de>
4887
4888 PR gdb/25955
4889 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4890 calculation.
4891
4892 2020-05-09 Tom Tromey <tom@tromey.com>
4893
4894 * top.c (server_command): Now bool.
4895 * top.h (server_command): Now bool.
4896
4897 2020-05-08 Tom Tromey <tromey@adacore.com>
4898
4899 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4900 already being processed.
4901
4902 2020-05-08 Tom Tromey <tom@tromey.com>
4903
4904 * printcmd.c (struct display) <next>: Remove.
4905 <display>: New constructor.
4906 <exp_string>: Now a std::string.
4907 <enabled_p>: Now a bool.
4908 (display_number): Move definition earlier.
4909 (displays): Rename from display_chain. Now a std::vector.
4910 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4911 (display_command): Update.
4912 (do_one_display, disable_display)
4913 (enable_disable_display_command, do_enable_disable_display):
4914 Update.
4915 (free_display): Remove.
4916 (clear_displays): Rewrite.
4917 (delete_display): Update.
4918 (map_display_numbers): Use function_view. Remove "data"
4919 parameter. Update.
4920 (do_delete_display): Remove.
4921 (undisplay_command): Update.
4922 (do_one_display, do_displays, disable_display)
4923 (info_display_command): Update.
4924 (do_enable_disable_display): Remove.
4925 (enable_disable_display_command)
4926 (clear_dangling_display_expressions): Update.
4927
4928 2020-05-08 Tom Tromey <tom@tromey.com>
4929
4930 * symtab.c (set_symbol_cache_size)
4931 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4932 (maintenance_print_symbol_cache_statistics): Update.
4933 * symmisc.c (print_symbol_bcache_statistics)
4934 (print_objfile_statistics, maintenance_print_objfiles)
4935 (maintenance_info_symtabs, maintenance_check_symtabs)
4936 (maintenance_expand_symtabs, maintenance_info_line_tables):
4937 Update.
4938 * symfile-debug.c (set_debug_symfile): Update.
4939 * source.c (forget_cached_source_info): Update.
4940 * python/python.c (gdbpy_progspaces): Update.
4941 * psymtab.c (maintenance_info_psymtabs): Update.
4942 * probe.c (parse_probes): Update.
4943 * linespec.c (iterate_over_all_matching_symtabs)
4944 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4945 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4946 * exec.c (exec_target::close): Update.
4947 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4948 * breakpoint.c (print_one_breakpoint_location)
4949 (create_longjmp_master_breakpoint)
4950 (create_std_terminate_master_breakpoint): Update.
4951 * progspace.c (program_spaces): Now a std::vector.
4952 (maybe_new_address_space): Update.
4953 (add_program_space): Remove.
4954 (program_space::program_space): Update.
4955 (remove_program_space): Update.
4956 (number_of_program_spaces): Remove.
4957 (print_program_space, update_address_spaces): Update.
4958 * progspace.h (program_spaces): Change type.
4959 (ALL_PSPACES): Remove.
4960 (number_of_program_spaces): Don't declare.
4961 (struct program_space) <next>: Remove.
4962
4963 2020-05-08 Tom Tromey <tom@tromey.com>
4964
4965 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4966 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4967 (enable_break): Update.
4968 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4969 (frv_fdpic_find_canonical_descriptor): Update.
4970 (frv_fetch_objfile_link_map): Update.
4971 * progspace.c (program_space::free_all_objfiles): Update.
4972 (program_space::solibs): New method.
4973 * progspace.h (struct program_space) <solibs>: New method.
4974 * solist.h (master_so_list): Don't declare.
4975 (ALL_SO_LIBS): Remove.
4976 * solib.h (so_list_head): Remove.
4977 (update_solib_list): Update comment.
4978 * solib.c (master_so_list): Remove.
4979 (solib_used, update_solib_list, solib_add)
4980 (info_sharedlibrary_command, clear_solib)
4981 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4982
4983 2020-05-08 Tom Tromey <tom@tromey.com>
4984
4985 * extension.c (extension_languages): Now a std::array.
4986 (ALL_EXTENSION_LANGUAGES): Remove.
4987 (get_ext_lang_defn, get_ext_lang_of_file)
4988 (eval_ext_lang_from_control_command): Update.
4989 (finish_ext_lang_initialization)
4990 (auto_load_ext_lang_scripts_for_objfile)
4991 (ext_lang_type_printers::ext_lang_type_printers)
4992 (apply_ext_lang_type_printers)
4993 (ext_lang_type_printers::~ext_lang_type_printers)
4994 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4995 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4996 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4997 (get_matching_xmethod_workers, ext_lang_colorize)
4998 (ext_lang_before_prompt): Update.
4999 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5000
5001 2020-05-08 Tom Tromey <tom@tromey.com>
5002
5003 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5004 overload.
5005 <swap_string, m_string>: Remove.
5006 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5007 Update.
5008 * stabsread.c (define_symbol, read_type): Update.
5009 * linespec.c (find_linespec_symbols): Update.
5010 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5011 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5012 * dbxread.c (read_dbx_symtab): Update.
5013 * cp-support.h (cp_canonicalize_string_full)
5014 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5015 Return unique_xmalloc_ptr.
5016 * cp-support.c (inspect_type): Update.
5017 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5018 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5019 Likewise.
5020 * c-typeprint.c (print_name_maybe_canonical): Update.
5021 * break-catch-throw.c (check_status_exception_catchpoint):
5022 Update.
5023
5024 2020-05-08 Tom de Vries <tdevries@suse.de>
5025
5026 * infrun.c (follow_fork): Copy current_line and current_symtab to
5027 child thread.
5028
5029 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5030
5031 * async-event.c (struct async_signal_handler, struct
5032 async_event_handler): Reformat, remove typedef.
5033
5034 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5037 access thistype->main_type->dyn_prop_list directly.
5038
5039 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5040
5041 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5042 (remove_dyn_prop): Remove. Update all users to use
5043 type::remove_dyn_prop.
5044 * gdbtypes.c (remove_dyn_prop): Rename to...
5045 (type::remove_dyn_prop): ... this.
5046
5047 2020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5048
5049 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5050 (add_dyn_prop): Remove. Update all users to use
5051 type::add_dyn_prop.
5052 * gdbtypes.c (add_dyn_prop): Rename to...
5053 (type::add_dyn_prop): ... this.
5054
5055 2020-05-07 Simon Marchi <simon.marchi@efficios.com>
5056
5057 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5058 (get_dyn_prop): Remove. Update all users to use
5059 type::dyn_prop.
5060 * gdbtypes.c (get_dyn_prop): Rename to...
5061 (type::dyn_prop): ... this.
5062
5063 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5064
5065 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5066
5067 2020-05-06 Simon Marchi <simon.marchi@efficios.com>
5068
5069 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5070 instruction, skip it if it's there.
5071
5072 2020-05-05 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5075
5076 2020-05-04 Simon Marchi <simon.marchi@efficios.com>
5077
5078 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5079 * gdbtypes.c (recursive_dump_type): Remove use of
5080 TYPE_INCOMPLETE.
5081
5082 2020-05-03 Tom Tromey <tom@tromey.com>
5083
5084 * breakpoint.c (catch_command, tcatch_command): Remove.
5085 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5086 add_show_prefix_cmd.
5087 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5088 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5089 Remove.
5090 (add_internal_problem_command): Use add_basic_prefix_cmd,
5091 add_show_prefix_cmd.
5092 * mips-tdep.c (set_mipsfpu_command): Remove.
5093 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5094 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5095 (_initialize_index_cache): Use add_basic_prefix_cmd.
5096 * memattr.c (dummy_cmd): Remove.
5097 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5098 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5099 (_initialize_tui_win): Use add_basic_prefix_cmd,
5100 add_show_prefix_cmd.
5101 * cli/cli-logging.c (set_logging_command): Remove.
5102 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5103 add_show_prefix_cmd.
5104 (show_logging_command): Remove.
5105 * target.c (target_command): Remove.
5106 (add_target): Use add_basic_prefix_cmd.
5107
5108 2020-05-02 Hannes Domani <ssbssa@yahoo.de>
5109
5110 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5111
5112 2020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5113
5114 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5115 info_command.
5116
5117 2020-04-30 Kamil Rytarowski <n54@gmx.com>
5118
5119 * nbsd-nat.c (nbsd_enable_proc_events)
5120 (nbsd_nat_target::post_startup_inferior): Add.
5121 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5122 (nbsd_nat_target::update_thread_list): Rewrite.
5123 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5124 "PTRACE_LWP_CREATE".
5125 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5126
5127 2020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5128
5129 * stack.c (_initialize_stack): Remove duplicated creation
5130 of "frame" command and "f" alias.
5131
5132 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5133
5134 PR gdb/18706
5135 * gdbtypes.c (check_typedef): Calculate size of array of
5136 stubbed type.
5137
5138 2020-04-30 Hannes Domani <ssbssa@yahoo.de>
5139
5140 PR gdb/15559
5141 * i386-tdep.c (i386_push_dummy_call): Call
5142 i386_thiscall_push_dummy_call.
5143 (i386_thiscall_push_dummy_call): New function.
5144 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5145 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5146 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5147
5148 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5149
5150 * gdbarch.sh (do_read): Add shellcheck disable directive for
5151 warning SC2162.
5152
5153 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5156 "referenced but not assigned" warning.
5157
5158 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5159
5160 * gdbarch.sh: Remove code that sets fallbackdefault.
5161
5162 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5163
5164 * gdbarch.sh: Use shell operators && and || instead of
5165 -a and -o.
5166
5167 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5168
5169 * gdbarch.sh: Use $(...) instead of `...`.
5170
5171 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5172
5173 * gdbarch.sh: Use double quotes around variables.
5174
5175 2020-04-29 Simon Marchi <simon.marchi@efficios.com>
5176
5177 * gdbarch.sh: Use %s with printf, instead of variables in the
5178 format string.
5179
5180 2020-04-29 Tom Tromey <tromey@adacore.com>
5181
5182 PR ada/25875:
5183 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5184 type fields here.
5185 (read_enumeration_type): Call
5186 update_enumeration_type_from_children later. Update comments.
5187 (process_enumeration_scope): Don't create type fields.
5188
5189 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5190
5191 * nbsd-tdep.c: Include "xml-syscall.h".
5192 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5193
5194 2020-04-29 Kamil Rytarowski <n54@gmx.com>
5195
5196 * nbsd-nat.c: Include "sys/wait.h".
5197 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5198 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5199 (nbsd_nat_target::remove_exec_catchpoint)
5200 (nbsd_nat_target::set_syscall_catchpoint): Add.
5201 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5202 (nbsd_nat_target::insert_exec_catchpoint)
5203 (nbsd_nat_target::remove_exec_catchpoint)
5204 (nbsd_nat_target::set_syscall_catchpoint): Add.
5205 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5206 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5207 `nbsd_get_syscall_number'.
5208
5209 2020-04-29 Tom Tromey <tom@tromey.com>
5210
5211 * stack.c (print_block_frame_labels): Remove.
5212
5213 2020-04-29 Hannes Domani <ssbssa@yahoo.de>
5214
5215 PR gdb/17320
5216 * ada-valprint.c (val_print_packed_array_elements): Move array
5217 end bracket to new line.
5218 (ada_val_print_string): Remove extra spaces before first array
5219 element.
5220 * c-valprint.c (c_value_print_array): Likewise.
5221 * m2-valprint.c (m2_print_array_contents): Likewise.
5222 (m2_value_print_inner): Likewise.
5223 * p-valprint.c (pascal_value_print_inner): Likewise.
5224 * valprint.c (generic_val_print_array): Likewise.
5225 (value_print_array_elements): Move first array element and array
5226 end bracket to new line.
5227
5228 2020-04-29 Tom de Vries <tdevries@suse.de>
5229
5230 PR symtab/25889
5231 * linespec.c (find_method): Fix ix calculation.
5232
5233 2020-04-28 Kamil Rytarowski <n54@gmx.com>
5234
5235 * syscalls/update-netbsd.sh: New file.
5236 * syscalls/netbsd.xml: Regenerate.
5237 * data-directory/Makefile.in: Register `netbsd.xml' in
5238 `SYSCALLS_FILES'.
5239
5240 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * syscalls/update-freebsd.sh: Add double quotes.
5243
5244 2020-04-28 Tom Tromey <tom@tromey.com>
5245
5246 * NEWS: Update.
5247 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5248 (cmdpy_init): Allow class_tui.
5249
5250 2020-04-28 Mark Williams <mark@myosotissp.com>
5251
5252 PR gdb/24480
5253 * dwarf2read.c: Add missing assingments to list_in_scope when
5254 start_symtab was already called.
5255
5256 2020-04-28 Simon Marchi <simon.marchi@efficios.com>
5257
5258 PR gdb/25881
5259 * dwarf2/read.c (offset_map_type): Use
5260 gdb:hash_enum<sect_offset> as hash function.
5261
5262 2020-04-28 Tom de Vries <tdevries@suse.de>
5263
5264 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5265 with DW_AT_signature.
5266
5267 2020-04-27 Simon Marchi <simon.marchi@efficios.com>
5268
5269 * configure.ac: Remove check for fs_base/gs_base in
5270 user_regs_struct.
5271 * configure: Re-generate.
5272 * config.in: Re-generate.
5273 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5274 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5275 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5276
5277 2020-04-27 Luis Machado <luis.machado@linaro.org>
5278
5279 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5280 problematic inline frame unwinding situation.
5281 * frame.c (frame_id_computed_p): New function.
5282 * frame.h (frame_id_computed_p): New prototype.
5283
5284 2020-04-26 Tom Tromey <tom@tromey.com>
5285
5286 * command.h (enum command_class) <class_pseudo>: Remove.
5287
5288 2020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5289
5290 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5291 and whitespace.
5292
5293 2020-04-25 Kamil Rytarowski <n54@gmx.com>
5294
5295 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5296 `PT_GET_PROCESS_STATE' block.
5297
5298 2020-04-24 Tom Tromey <tom@tromey.com>
5299
5300 * symtab.h (symbol_get_demangled_name): Don't declare.
5301 * symtab.c (symbol_get_demangled_name): Remove.
5302 (general_symbol_info::natural_name)
5303 (general_symbol_info::demangled_name): Update.
5304
5305 2020-04-24 Tom Tromey <tom@tromey.com>
5306
5307 PR rust/25025:
5308 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5309
5310 2020-04-24 Tom Tromey <tom@tromey.com>
5311
5312 PR symtab/12707:
5313 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5314 exists.
5315 (new_symbol): Likewise.
5316 * compile/compile-object-load.c (get_out_value_type): Use
5317 symbol_matches_search_name.
5318
5319 2020-04-24 Tom Tromey <tom@tromey.com>
5320
5321 * dwarf2/read.c (add_partial_symbol): Do not call
5322 compute_and_set_names.
5323
5324 2020-04-24 Tom Tromey <tom@tromey.com>
5325
5326 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5327 overload.
5328
5329 2020-04-24 Tom Tromey <tom@tromey.com>
5330
5331 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5332 (add_psymbol_to_list): New overload. Make old overload call new
5333 one.
5334 * psympriv.h (add_psymbol_to_list): New overload.
5335
5336 2020-04-24 Tom Tromey <tom@tromey.com>
5337
5338 * dwarf2/read.c (partial_die_info::read) <case
5339 DW_AT_linkage_name>: Use value_as_string.
5340 (dwarf2_string_attr): Use value_as_string.
5341 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5342 method.
5343 * dwarf2/attribute.c (attribute::value_as_string): New method.
5344
5345 2020-04-24 Tom Tromey <tom@tromey.com>
5346
5347 * symtab.c (general_symbol_info::natural_name)
5348 (general_symbol_info::demangled_name): Check for language_rust.
5349
5350 2020-04-24 Tom Tromey <tom@tromey.com>
5351
5352 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5353 (dwarf2_physname): ... from here.
5354 (partial_die_info::read): Add Rust "{" hack.
5355
5356 2020-04-24 Tom Tromey <tom@tromey.com>
5357
5358 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5359 method.
5360 (symbol_set_demangled_name): Don't declare.
5361 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5362 symbol_set_demangled_name.
5363 (general_symbol_info::set_language)
5364 (general_symbol_info::compute_and_set_names): Update.
5365 * minsyms.c (minimal_symbol_reader::install): Update.
5366 * dwarf2/read.c (new_symbol): Update.
5367
5368 2020-04-24 Tom Tromey <tromey@adacore.com>
5369
5370 PR python/23662:
5371 * python/py-type.c (convert_field): Handle
5372 FIELD_LOC_KIND_DWARF_BLOCK.
5373 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5374 (typy_get_dynamic): Nw function.
5375 (type_object_getset): Add "dynamic".
5376 * NEWS: Add entry.
5377
5378 2020-04-24 Tom Tromey <tromey@adacore.com>
5379
5380 * ada-typeprint.c (print_choices, print_variant_part)
5381 (print_record_field_types_dynamic): New functions.
5382 (print_record_field_types): Use print_record_field_types_dynamic.
5383
5384 2020-04-24 Tom Tromey <tromey@adacore.com>
5385
5386 * dwarf2/read.c (handle_data_member_location): New overload.
5387 (dwarf2_add_field): Use it.
5388 (decode_locdesc): Add "computed" parameter. Update comment.
5389 * gdbtypes.c (is_dynamic_type_internal): Also look for
5390 FIELD_LOC_KIND_DWARF_BLOCK.
5391 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5392 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5393 virtual base classes.
5394 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5395 FIELD_LOC_KIND_DWARF_BLOCK.
5396
5397 2020-04-24 Tom Tromey <tromey@adacore.com>
5398
5399 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5400 * gdbtypes.c (is_dynamic_type_internal): Check
5401 TYPE_HAS_DYNAMIC_LENGTH.
5402 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5403 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5404 New macros.
5405 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5406 constant.
5407
5408 2020-04-24 Tom Tromey <tromey@adacore.com>
5409
5410 * dwarf2/read.c (struct variant_field): Rewrite.
5411 (struct variant_part_builder): New.
5412 (struct nextfield): Remove "variant" field. Add "offset".
5413 (struct field_info): Add "current_variant_part" and
5414 "variant_parts".
5415 (alloc_discriminant_info): Remove.
5416 (alloc_rust_variant): New function.
5417 (quirk_rust_enum): Update.
5418 (dwarf2_add_field): Set "offset" member. Don't handle
5419 DW_TAG_variant_part.
5420 (offset_map_type): New typedef.
5421 (convert_variant_range, create_one_variant)
5422 (create_one_variant_part, create_variant_parts)
5423 (add_variant_property): New functions.
5424 (dwarf2_attach_fields_to_type): Call add_variant_property.
5425 (read_structure_type): Don't handle DW_TAG_variant_part.
5426 (handle_variant_part, handle_variant): New functions.
5427 (handle_struct_member_die): Use them.
5428 (process_structure_scope): Don't handle variant parts.
5429 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5430 (struct discriminant_info): Remove.
5431 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5432 (struct main_type) <flag_discriminated_union>: Remove.
5433 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5434 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5435 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5436 Update.
5437 * valops.c (value_union_variant): Remove.
5438 * value.h (value_union_variant): Don't declare.
5439
5440 2020-04-24 Tom Tromey <tromey@adacore.com>
5441
5442 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5443 (ada_value_primitive_packed_val): Update.
5444 * ada-valprint.c (ada_value_print_1): Update.
5445 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5446 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5447 just an address. Use evaluate_for_locexpr_baton.
5448 (dwarf2_evaluate_property): Update.
5449 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5450 array_view.
5451 * findvar.c (default_read_var_value): Update.
5452 * gdbtypes.c (compute_variant_fields_inner)
5453 (resolve_dynamic_type_internal): Update.
5454 (resolve_dynamic_type): Change type of valaddr parameter.
5455 * gdbtypes.h (resolve_dynamic_type): Update.
5456 * valarith.c (value_subscripted_rvalue): Update.
5457 * value.c (value_from_contents_and_address): Update.
5458
5459 2020-04-24 Tom Tromey <tromey@adacore.com>
5460
5461 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5462 "push_initial_value" parameter.
5463 (dwarf2_evaluate_property): Likewise.
5464 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5465
5466 2020-04-24 Tom Tromey <tromey@adacore.com>
5467
5468 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5469 (variant::matches, compute_variant_fields_recurse)
5470 (compute_variant_fields_inner, compute_variant_fields): New
5471 functions.
5472 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5473 Use resolved_type after type is made.
5474 (operator==): Add new cases.
5475 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5476 (struct discriminant_range, struct variant, struct variant_part):
5477 New.
5478 (union dynamic_prop_data) <variant_parts, original_type>: New
5479 members.
5480 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5481 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5482 constants.
5483 * value.c (unpack_bits_as_long): Now public.
5484 * value.h (unpack_bits_as_long): Declare.
5485
5486 2020-04-24 Tom Tromey <tromey@adacore.com>
5487
5488 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5489 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5490
5491 2020-04-24 Hannes Domani <ssbssa@yahoo.de>
5492
5493 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5494
5495 2020-04-24 Kamil Rytarowski <n54@gmx.com>
5496
5497 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5498 (remove_fork_catchpoint, post_startup_inferior)
5499 (post_attach): Move...
5500 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5501 (remove_fork_catchpoint, post_startup_inferior)
5502 (post_attach): ...here.
5503 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5504 (remove_fork_catchpoint, post_startup_inferior)
5505 (post_attach): Move...
5506 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5507 (remove_fork_catchpoint, post_startup_inferior)
5508 (post_attach): ...here.
5509
5510 2020-04-24 Tom Tromey <tromey@adacore.com>
5511
5512 * nat/windows-nat.h (struct windows_thread_info)
5513 <pc_adjusted>: New member.
5514 * windows-nat.c (windows_fetch_one_register): Check
5515 pc_adjusted.
5516 (windows_nat_target::get_windows_debug_event)
5517 (windows_nat_target::wait): Set pc_adjusted.
5518
5519 2020-04-24 Tom de Vries <tdevries@suse.de>
5520
5521 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5522 Run gdb-add-index inside temp dir.
5523
5524 2020-04-23 Tom Tromey <tromey@adacore.com>
5525
5526 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5527 in loop.
5528
5529 2020-04-23 Luis Machado <luis.machado@linaro.org>
5530
5531 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5532 get_frame_register instead of gdbarch_unwind_pc.
5533
5534 2020-04-23 Tom de Vries <tdevries@suse.de>
5535
5536 * symtab.c (lookup_global_symbol): Prefer def over decl.
5537
5538 2020-04-23 Tom de Vries <tdevries@suse.de>
5539
5540 PR symtab/25807
5541 * block.c (best_symbol, better_symbol): Promote to external.
5542 * block.h (best_symbol, better_symbol): Declare.
5543 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5544 decl.
5545
5546 2020-04-23 Tom Tromey <tromey@adacore.com>
5547
5548 PR ada/25837:
5549 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5550 "const char *", not a "const std::string &".
5551 <name_and_matcher::operator==>: Update.
5552 * unittests/lookup_name_info-selftests.c: Change type of
5553 "result".
5554
5555 2020-04-23 Tom Tromey <tom@tromey.com>
5556
5557 * inferior.h (iterate_over_inferiors): Don't declare.
5558 * inferior.c (iterate_over_inferiors): Remove.
5559 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5560 Remove.
5561 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5562 use iterate_over_inferiors.
5563 (darwin_resume_inferior_it)
5564 (struct resume_inferior_threads_param)
5565 (darwin_resume_inferior_threads_it): Remove.
5566 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5567
5568 2020-04-23 Tom de Vries <tdevries@suse.de>
5569
5570 * blockframe.c (find_pc_partial_function): Use
5571 find_pc_sect_compunit_symtab rather than
5572 objfile->sf->qf->find_pc_sect_compunit_symtab.
5573
5574 2020-04-22 Tom de Vries <tdevries@suse.de>
5575
5576 PR symtab/25764
5577 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5578 in psymtabs.
5579
5580 2020-04-22 Tom de Vries <tdevries@suse.de>
5581
5582 PR symtab/25801
5583 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5584 symtabs.
5585
5586 2020-04-22 Tom de Vries <tdevries@suse.de>
5587
5588 PR symtab/25700
5589 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5590 CU if already created.
5591
5592 2020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5593
5594 * infrun.c (displaced_step_fixup): Switch to the event_thread
5595 before calling displaced_step_restore, not after.
5596
5597 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5598
5599 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5600 its inferior is not recorded by us.
5601 (record_btrace_target_open): Replace call to
5602 all_non_exited_threads () with call to current_inferior
5603 ()->non_exited_threads ().
5604 (record_btrace_target::stop_recording): Likewise.
5605 (record_btrace_target::close): Likewise.
5606 (record_btrace_target::wait): Likewise.
5607 (record_btrace_target::record_stop_replaying): Likewise.
5608
5609 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5610
5611 * btrace.c (btrace_enable): Throw an error on double enables and
5612 when enabling recording fails.
5613 (btrace_disable): Throw an error if the thread is not recorded.
5614
5615 2020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5616
5617 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5618 request if we do not have a thread_info.
5619
5620 2020-04-21 Tom de Vries <tdevries@suse.de>
5621
5622 PR gdb/25471
5623 * thread.c
5624 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5625 exception in get_frame_id.
5626
5627 2020-04-20 Tom Tromey <tromey@adacore.com>
5628
5629 * python/python.c (struct gdbpy_event): Mark move constructor as
5630 noexcept.
5631 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5632 constructor as noexcept.
5633 * completer.h (struct completion_result): Mark move constructor as
5634 noexcept.
5635 * completer.c (completion_result::completion_result): Use
5636 initialization style. Don't call reset_match_list.
5637
5638 2020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5639
5640 * MAINTAINERS (Write After Approval): Add myself.
5641
5642 2020-04-18 Tom Tromey <tom@tromey.com>
5643
5644 * windows-tdep.c (init_w32_command_list)
5645 (w32_prefix_command_valid): Restore.
5646 (_initialize_windows_tdep): Call init_w32_command_list.
5647
5648 2020-04-18 Tom Tromey <tom@tromey.com>
5649
5650 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5651 * value.c (value_fn_field): Update.
5652 * valops.c (find_function_in_inferior)
5653 (value_allocate_space_in_inferior): Update.
5654 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5655 Update.
5656 * tui/tui-source.c (tui_source_window::set_contents): Update.
5657 * symtab.c (lookup_global_or_static_symbol)
5658 (find_function_start_sal_1, skip_prologue_sal)
5659 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5660 * symmisc.c (dump_msymbols, dump_symtab_1)
5661 (maintenance_print_one_line_table): Update.
5662 * symfile.c (init_entry_point_info, section_is_mapped)
5663 (list_overlays_command, simple_read_overlay_table)
5664 (simple_overlay_update_1): Update.
5665 * stap-probe.c (handle_stap_probe): Update.
5666 * stabsread.c (dbx_init_float_type, define_symbol)
5667 (read_one_struct_field, read_enum_type, read_range_type): Update.
5668 * source.c (info_line_command): Update.
5669 * python/python.c (gdbpy_source_objfile_script)
5670 (gdbpy_execute_objfile_script): Update.
5671 * python/py-type.c (save_objfile_types): Update.
5672 * python/py-objfile.c (py_free_objfile): Update.
5673 * python/py-inferior.c (python_new_objfile): Update.
5674 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5675 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5676 (maintenance_check_psymtabs): Update.
5677 * printcmd.c (info_address_command): Update.
5678 * objfiles.h (struct objfile) <arch>: New method, from
5679 get_objfile_arch.
5680 (get_objfile_arch): Don't declare.
5681 * objfiles.c (get_objfile_arch): Remove.
5682 (filter_overlapping_sections): Update.
5683 * minsyms.c (msymbol_is_function): Update.
5684 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5685 (output_nondebug_symbol): Update.
5686 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5687 (mdebug_expand_psymtab): Update.
5688 * machoread.c (macho_add_oso_symfile): Update.
5689 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5690 Update.
5691 * linux-fork.c (checkpoint_command): Update.
5692 * linespec.c (convert_linespec_to_sals): Update.
5693 * jit.c (finalize_symtab): Update.
5694 * infrun.c (insert_exception_resume_from_probe): Update.
5695 * ia64-tdep.c (ia64_find_unwind_table): Update.
5696 * hppa-tdep.c (internalize_unwinds): Update.
5697 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5698 Update.
5699 * gcore.c (call_target_sbrk): Update.
5700 * elfread.c (record_minimal_symbol, elf_symtab_read)
5701 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5702 (elf_gnu_ifunc_resolve_by_got): Update.
5703 * dwarf2/read.c (create_addrmap_from_index)
5704 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5705 (read_debug_names_from_section)
5706 (process_psymtab_comp_unit_reader, add_partial_symbol)
5707 (add_partial_subprogram, process_full_comp_unit)
5708 (read_file_scope, read_func_scope, read_lexical_block_scope)
5709 (read_call_site_scope, dwarf2_ranges_read)
5710 (dwarf2_record_block_ranges, dwarf2_add_field)
5711 (mark_common_block_symbol_computed, read_tag_pointer_type)
5712 (read_tag_string_type, dwarf2_init_float_type)
5713 (dwarf2_init_complex_target_type, read_base_type)
5714 (partial_die_info::read, partial_die_info::read)
5715 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5716 (dwarf2_fetch_die_loc_sect_off): Update.
5717 * dwarf2/loc.c (dwarf2_find_location_expression)
5718 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5719 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5720 (dwarf2_loc_desc_get_symbol_read_needs)
5721 (locexpr_describe_location_piece, locexpr_describe_location_1)
5722 (loclist_describe_location): Update.
5723 * dwarf2/index-write.c (write_debug_names): Update.
5724 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5725 * dtrace-probe.c (dtrace_process_dof): Update.
5726 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5727 (process_one_symbol): Update.
5728 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5729 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5730 (coff_read_enum_type): Update.
5731 * cli/cli-cmds.c (edit_command, list_command): Update.
5732 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5733 * breakpoint.c (create_overlay_event_breakpoint)
5734 (create_longjmp_master_breakpoint)
5735 (create_std_terminate_master_breakpoint)
5736 (create_exception_master_breakpoint, get_sal_arch): Update.
5737 * block.c (block_gdbarch): Update.
5738 * annotate.c (annotate_source_line): Update.
5739
5740 2020-04-17 Tom Tromey <tromey@adacore.com>
5741
5742 * auto-load.c (show_auto_load_cmd): Remove.
5743 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5744 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5745 (maintenance_print_arc_command): Remove.
5746 * tui/tui-win.c (tui_command): Remove.
5747 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5748 * tui/tui-layout.c (tui_layout_command): Remove.
5749 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5750 * python/python.c (user_set_python, user_show_python): Remove.
5751 (_initialize_python): Use add_basic_prefix_cmd,
5752 add_show_prefix_cmd.
5753 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5754 (install_gdb_commands): Use add_basic_prefix_cmd,
5755 add_show_prefix_cmd.
5756 (info_guile_command): Remove.
5757 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5758 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5759 add_show_prefix_cmd.
5760 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5761 Remove do_set and do_show parameters.
5762 * cli/cli-style.c (set_style, show_style): Remove.
5763 (_initialize_cli_style): Use add_basic_prefix_cmd,
5764 add_show_prefix_cmd.
5765 (cli_style_option::add_setshow_commands): Remove do_set and
5766 do_show parameters.
5767 (cli_style_option::add_setshow_commands): Use
5768 add_basic_prefix_cmd, add_show_prefix_cmd.
5769 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5770 (set_style_name): Remove.
5771 * cli/cli-dump.c (dump_command, append_command): Remove.
5772 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5773 (tekhex_dump_command, binary_dump_command)
5774 (binary_append_command): Remove.
5775 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5776 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5777 (init_w32_command_list): Remove; move into ...
5778 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5779 * valprint.c (set_print, show_print, set_print_raw)
5780 (show_print_raw): Remove.
5781 (_initialize_valprint): Use add_basic_prefix_cmd,
5782 add_show_prefix_cmd.
5783 * typeprint.c (set_print_type, show_print_type): Remove.
5784 (_initialize_typeprint): Use add_basic_prefix_cmd,
5785 add_show_prefix_cmd.
5786 * record.c (set_record_command, show_record_command): Remove.
5787 (_initialize_record): Use add_basic_prefix_cmd,
5788 add_show_prefix_cmd.
5789 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5790 add_show_prefix_cmd.
5791 (info_command, show_command, set_debug, show_debug): Remove.
5792 * top.h (set_history, show_history): Don't declare.
5793 * top.c (set_history, show_history): Remove.
5794 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5795 (unset_tdesc_cmd): Remove.
5796 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5797 add_show_prefix_cmd.
5798 * symtab.c (info_module_command): Remove.
5799 (_initialize_symtab): Use add_basic_prefix_cmd.
5800 * symfile.c (overlay_command): Remove.
5801 (_initialize_symfile): Use add_basic_prefix_cmd.
5802 * sparc64-tdep.c (info_adi_command): Remove.
5803 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5804 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5805 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5806 add_show_prefix_cmd.
5807 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5808 (_initialize_serial): Use add_basic_prefix_cmd,
5809 add_show_prefix_cmd.
5810 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5811 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5812 add_show_prefix_cmd.
5813 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5814 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5815 add_show_prefix_cmd.
5816 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5817 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5818 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5819 add_show_prefix_cmd.
5820 * remote.c (remote_command, set_remote_cmd): Remove.
5821 (_initialize_remote): Use add_basic_prefix_cmd.
5822 * record-full.c (set_record_full_command)
5823 (show_record_full_command): Remove.
5824 (_initialize_record_full): Use add_basic_prefix_cmd,
5825 add_show_prefix_cmd.
5826 * record-btrace.c (cmd_set_record_btrace)
5827 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5828 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5829 (cmd_show_record_btrace_pt): Remove.
5830 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5831 add_show_prefix_cmd.
5832 * ravenscar-thread.c (set_ravenscar_command)
5833 (show_ravenscar_command): Remove.
5834 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5835 add_show_prefix_cmd.
5836 * mips-tdep.c (show_mips_command, set_mips_command)
5837 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5838 add_show_prefix_cmd.
5839 * maint.c (maintenance_command, maintenance_info_command)
5840 (maintenance_check_command, maintenance_print_command)
5841 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5842 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5843 add_show_prefix_cmd.
5844 (show_per_command_cmd): Remove.
5845 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5846 Remove.
5847 (maintenance_show_test_settings_cmd): Remove.
5848 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5849 add_show_prefix_cmd.
5850 * maint-test-options.c (maintenance_test_options_command):
5851 Remove.
5852 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5853 * macrocmd.c (macro_command): Remove
5854 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5855 * language.c (set_check, show_check): Remove.
5856 (_initialize_language): Use add_basic_prefix_cmd,
5857 add_show_prefix_cmd.
5858 * infcmd.c (unset_command): Remove.
5859 (_initialize_infcmd): Use add_basic_prefix_cmd.
5860 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5861 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5862 add_show_prefix_cmd.
5863 * go32-nat.c (go32_info_dos_command): Remove.
5864 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5865 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5866 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5867 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5868 (_initialize_frame): Use add_basic_prefix_cmd,
5869 add_show_prefix_cmd.
5870 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5871 (_initialize_dcache): Use add_basic_prefix_cmd,
5872 add_show_prefix_cmd.
5873 * cp-support.c (maint_cplus_command): Remove.
5874 (_initialize_cp_support): Use add_basic_prefix_cmd.
5875 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5876 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5877 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5878 add_basic_prefix_cmd, add_show_prefix_cmd.
5879 * breakpoint.c (save_command): Remove.
5880 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5881 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5882 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5883 add_show_prefix_cmd.
5884 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5885 (set_ada_command, show_ada_command): Remove.
5886 (_initialize_ada_language): Use add_basic_prefix_cmd,
5887 add_show_prefix_cmd.
5888 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5889
5890 2020-04-16 Kamil Rytarowski <n54@gmx.com>
5891
5892 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5893 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5894
5895 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5896
5897 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5898 warning messages.
5899
5900 2020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5901
5902 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5903 import table is not at beginning of .idata section.
5904
5905 2020-04-16 Pedro Alves <palves@redhat.com>
5906
5907 * inferior.c (delete_inferior): Use delete operator directly
5908 instead of delete_program_space.
5909 * progspace.c (add_program_space): New, factored out from
5910 program_space::program_space.
5911 (remove_program_space): New, factored out from
5912 delete_program_space.
5913 (program_space::program_space): Remove intro comment. Rewrite.
5914 (program_space::~program_space): Remove intro comment. Call
5915 remove_program_space.
5916 (delete_program_space): Delete.
5917 * progspace.h (program_space::program_space): Make explicit. Move
5918 intro comment here, adjusted.
5919 (program_space::~program_space): Move intro comment here,
5920 adjusted.
5921 (delete_program_space): Remove.
5922
5923 2020-04-16 Tom Tromey <tromey@adacore.com>
5924
5925 * windows-nat.c (windows_nat::handle_access_violation): New
5926 function.
5927 * nat/windows-nat.h (handle_access_violation): Declare.
5928 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5929 windows-nat.c. Call handle_access_violation.
5930
5931 2020-04-16 Tom de Vries <tdevries@suse.de>
5932
5933 PR symtab/25791
5934 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5935 CUs without psymtab.
5936
5937 2020-04-16 Kevin Buettner <kevinb@redhat.com>
5938
5939 * python/python.c (do_start_initialization): Don't call
5940 PyEval_InitThreads for Python 3.9 and beyond.
5941
5942 2020-04-15 Kamil Rytarowski <n54@gmx.com>
5943
5944 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5945 thread functions.
5946 (obsd_nat_target::wait): Likewise.
5947
5948 2020-04-15 Tom Tromey <tromey@adacore.com>
5949
5950 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5951 (DEBUG_EXCEPT): Use debug_printf.
5952
5953 2020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5954
5955 * completer.c (class completion_tracker::completion_hash_entry)
5956 <hash_name>: New member function.
5957 (completion_tracker::discard_completions): New callback to hash a
5958 completion_hash_entry, pass this to htab_create_alloc.
5959
5960 2016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5961
5962 * windows-nat.c (windows_make_so): Warn rather than stopping with
5963 an error if realpath() fails.
5964
5965 2020-04-14 Kamil Rytarowski <n54@gmx.com>
5966
5967 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5968 (nbsd_nat_target::info_proc): Add do_status.
5969
5970 2020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5971 Tom de Vries <tdevries@suse.de>
5972
5973 PR symtab/25718
5974 * psympriv.h (struct partial_symtab::read_symtab)
5975 (struct partial_symtab::expand_psymtab)
5976 (struct partial_symtab::read_dependencies): Update comments.
5977 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5978 read_symtab for includer.
5979 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5980 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5981 (struct dwarf2_include_psymtab::m_readin): Remove.
5982 (struct dwarf2_include_psymtab::includer): New member function.
5983 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5984
5985 2020-04-14 Tom de Vries <tdevries@suse.de>
5986
5987 PR symtab/25720
5988 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5989 with NULL symbol_matcher and lookup_name.
5990 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5991 and lookup_name.
5992 * dwarf2/read.c (dw2_expand_symtabs_matching)
5993 (dw2_debug_names_expand_symtabs_matching): Same.
5994 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5995 Make lookup_name a pointer. Update comment.
5996 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5997 lookup_name being a pointer.
5998 * symfile.c (expand_symtabs_matching): Same.
5999 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6000 * linespec.c (iterate_over_all_matching_symtabs): Same.
6001
6002 2020-04-13 Tom Tromey <tom@tromey.com>
6003
6004 * run-on-main-thread.c: Update include.
6005 * unittests/main-thread-selftests.c: Update include.
6006 * tui/tui-win.c: Update include.
6007 * tui/tui-io.c: Update include.
6008 * tui/tui-interp.c: Update include.
6009 * tui/tui-hooks.c: Update include.
6010 * top.h: Update include.
6011 * top.c: Update include.
6012 * ser-base.c: Update include.
6013 * remote.c: Update include.
6014 * remote-notif.c: Update include.
6015 * remote-fileio.c: Update include.
6016 * record-full.c: Update include.
6017 * record-btrace.c: Update include.
6018 * python/python.c: Update include.
6019 * posix-hdep.c: Update include.
6020 * mingw-hdep.c: Update include.
6021 * mi/mi-main.c: Update include.
6022 * mi/mi-interp.c: Update include.
6023 * main.c: Update include.
6024 * linux-nat.c: Update include.
6025 * interps.c: Update include.
6026 * infrun.c: Update include.
6027 * inf-loop.c: Update include.
6028 * event-top.c: Update include.
6029 * event-loop.c: Move to ../gdbsupport/.
6030 * event-loop.h: Move to ../gdbsupport/.
6031 * async-event.h: Update include.
6032 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6033
6034 2020-04-13 Tom Tromey <tom@tromey.com>
6035
6036 * tui/tui-win.c: Include async-event.h.
6037 * remote.c: Include async-event.h.
6038 * remote-notif.c: Include async-event.h.
6039 * record-full.c: Include async-event.h.
6040 * record-btrace.c: Include async-event.h.
6041 * infrun.c: Include async-event.h.
6042 * event-top.c: Include async-event.h.
6043 * event-loop.h: Move some declarations to async-event.h.
6044 * event-loop.c: Don't include ser-event.h or top.h. Move some
6045 code to async-event.c.
6046 * async-event.h: New file.
6047 * async-event.c: New file.
6048 * Makefile.in (COMMON_SFILES): Add async-event.c.
6049 (HFILES_NO_SRCDIR): Add async-event.h.
6050
6051 2020-04-13 Tom Tromey <tom@tromey.com>
6052
6053 * utils.c (flush_streams): New function.
6054 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6055
6056 2020-04-13 Tom Tromey <tom@tromey.com>
6057
6058 * event-loop.c (handle_file_event): Use warning, not
6059 printf_unfiltered.
6060
6061 2020-04-13 Tom Tromey <tom@tromey.com>
6062
6063 * event-loop.c: Include <chrono>.
6064
6065 2020-04-13 Tom Tromey <tom@tromey.com>
6066
6067 * gdb_select.h: Move to ../gdbsupport/.
6068 * event-loop.c: Update include path.
6069 * top.c: Update include path.
6070 * ser-base.c: Update include path.
6071 * ui-file.c: Update include path.
6072 * ser-tcp.c: Update include path.
6073 * guile/scm-ports.c: Update include path.
6074 * posix-hdep.c: Update include path.
6075 * ser-unix.c: Update include path.
6076 * gdb_usleep.c: Update include path.
6077 * mingw-hdep.c: Update include path.
6078 * inflow.c: Update include path.
6079 * infrun.c: Update include path.
6080 * event-top.c: Update include path.
6081
6082 2020-04-13 Tom Tromey <tom@tromey.com>
6083
6084 * configure: Rebuild.
6085 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6086
6087 2020-04-13 Tom Tromey <tom@tromey.com>
6088
6089 * event-loop.h (start_event_loop): Don't declare.
6090 * event-loop.c (start_event_loop): Move...
6091 * main.c (start_event_loop): ...here. Now static.
6092
6093 2020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6094
6095 * MAINTAINERS: Update my email address.
6096
6097 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6098
6099 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6100 IP_ALL.
6101
6102 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6103
6104 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
6105 (nbsd_nat_target::info_proc): Add do_cmdline.
6106
6107 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6108
6109 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
6110 (nbsd_nat_target::info_proc): Add do_cwd.
6111
6112 2020-04-12 Kamil Rytarowski <n54@gmx.com>
6113
6114 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6115
6116 2020-04-11 Kamil Rytarowski <n54@gmx.com>
6117
6118 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6119 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6120 (nbsd_nat_target::info_proc): New functions.
6121 * nbsd-nat.c (kinfo_get_vmmap): New function.
6122 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6123 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6124 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6125 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6126 functions.
6127 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6128 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6129 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6130 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6131 (KINFO_VME_FLAG_GROWS_DOWN): New.
6132
6133 2020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6134
6135 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6136 bit shift.
6137
6138 2020-04-10 Tom Tromey <tromey@adacore.com>
6139
6140 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6141
6142 2020-04-10 Tom Tromey <tromey@adacore.com>
6143
6144 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6145 separate debug files.
6146
6147 2020-04-10 Hannes Domani <ssbssa@yahoo.de>
6148
6149 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6150 Move to...
6151 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6152 ... here.
6153 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6154 Check for STATUS_WX86_BREAKPOINT.
6155 (windows_nat_target::wait): Same.
6156
6157 2020-04-10 Tom de Vries <tdevries@suse.de>
6158
6159 PR cli/25808
6160 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6161
6162 2020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6163
6164 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6165 (Write After Approval): Remove Tom de Vries.
6166
6167 2020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6168
6169 revert partially:
6170 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6171
6172 * buildsym.c (record_line): Fix undefined behavior and preserve
6173 lines at eof.
6174
6175 2020-04-09 Kamil Rytarowski <n54@gmx.com>
6176
6177 * auxv.h (svr4_auxv_parse): New.
6178 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6179 and generic_auxv_parse.
6180 (svr4_auxv_parse): Add.
6181 * obsd-tdep.c: Include "auxv.h".
6182 (obsd_auxv_parse): Remove.
6183 (obsd_init_abi): Remove comment.
6184 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6185 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6186 * nbsd-tdep.c: Include "auxv.h".
6187 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6188
6189 2020-04-08 Tom Tromey <tromey@adacore.com>
6190
6191 * nat/windows-nat.h (last_wait_event): Don't declare.
6192 (wait_for_debug_event): Update comment.
6193 * nat/windows-nat.c (last_wait_event): Now static.
6194
6195 2020-04-08 Tom Tromey <tromey@adacore.com>
6196
6197 * windows-nat.c (wait_for_debug_event): Move to
6198 nat/windows-nat.c.
6199 * nat/windows-nat.h (wait_for_debug_event): Declare.
6200 * nat/windows-nat.c (wait_for_debug_event): Move from
6201 windows-nat.c. No longer static.
6202
6203 2020-04-08 Tom Tromey <tromey@adacore.com>
6204
6205 * windows-nat.c (get_windows_debug_event): Use
6206 fetch_pending_stop.
6207 * nat/windows-nat.h (fetch_pending_stop): Declare.
6208 * nat/windows-nat.c (fetch_pending_stop): New function.
6209
6210 2020-04-08 Tom Tromey <tromey@adacore.com>
6211
6212 * windows-nat.c (windows_continue): Use matching_pending_stop and
6213 continue_last_debug_event.
6214 * nat/windows-nat.h (matching_pending_stop)
6215 (continue_last_debug_event): Declare.
6216 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6217 (matching_pending_stop, continue_last_debug_event): New
6218 functions.
6219
6220 2020-04-08 Tom Tromey <tromey@adacore.com>
6221
6222 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6223 (handle_exception_result): Move to nat/windows-nat.h.
6224 (DEBUG_EXCEPTION_SIMPLE): Remove.
6225 (windows_nat::handle_ms_vc_exception): New function.
6226 (handle_exception): Move to nat/windows-nat.c.
6227 (get_windows_debug_event): Update.
6228 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6229 nat/windows-nat.c.
6230 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6231 (handle_exception_result): Move from windows-nat.c.
6232 (handle_exception): Declare.
6233 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6234 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6235 windows-nat.c.
6236
6237 2020-04-08 Tom Tromey <tromey@adacore.com>
6238
6239 * windows-nat.c (exception_count, event_count): Remove.
6240 (handle_exception, get_windows_debug_event)
6241 (do_initial_windows_stuff): Update.
6242
6243 2020-04-08 Tom Tromey <tromey@adacore.com>
6244
6245 * windows-nat.c (windows_nat::handle_load_dll)
6246 (windows_nat::handle_unload_dll): Rename. No longer static.
6247 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6248 Declare.
6249
6250 2020-04-08 Tom Tromey <tromey@adacore.com>
6251
6252 * complaints.h (stop_whining): Declare at top-level.
6253 (complaint): Don't declare stop_whining.
6254
6255 2020-04-08 Tom Tromey <tromey@adacore.com>
6256
6257 * windows-nat.c (windows_nat::handle_output_debug_string):
6258 Rename. No longer static.
6259 * nat/windows-nat.h (handle_output_debug_string): Declare.
6260
6261 2020-04-08 Tom Tromey <tromey@adacore.com>
6262
6263 * windows-nat.c (current_process_handle, current_process_id)
6264 (main_thread_id, last_sig, current_event, last_wait_event)
6265 (current_windows_thread, desired_stop_thread_id, pending_stops)
6266 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6267 (display_selectors, fake_create_process)
6268 (get_windows_debug_event): Update.
6269 * nat/windows-nat.h (current_process_handle, current_process_id)
6270 (main_thread_id, last_sig, current_event, last_wait_event)
6271 (current_windows_thread, desired_stop_thread_id, pending_stops)
6272 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6273 * nat/windows-nat.c (current_process_handle, current_process_id)
6274 (main_thread_id, last_sig, current_event, last_wait_event)
6275 (current_windows_thread, desired_stop_thread_id, pending_stops)
6276 (siginfo_er): New globals. Move from windows-nat.c.
6277
6278 2020-04-08 Tom Tromey <tromey@adacore.com>
6279
6280 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6281 (handle_load_dll): Update.
6282 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6283
6284 2020-04-08 Tom Tromey <tromey@adacore.com>
6285
6286 * windows-nat.c (enum thread_disposition_type): Move to
6287 nat/windows-nat.h.
6288 (windows_nat::thread_rec): Rename from thread_rec. No longer
6289 static.
6290 (windows_add_thread, windows_nat_target::fetch_registers)
6291 (windows_nat_target::store_registers, handle_exception)
6292 (windows_nat_target::resume, get_windows_debug_event)
6293 (windows_nat_target::get_tib_address)
6294 (windows_nat_target::thread_name)
6295 (windows_nat_target::thread_alive): Update.
6296 * nat/windows-nat.h (enum thread_disposition_type): Move from
6297 windows-nat.c.
6298 (thread_rec): Declare.
6299
6300 2020-04-08 Tom Tromey <tromey@adacore.com>
6301
6302 * windows-nat.c: Add "using namespace".
6303 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6304 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6305
6306 2020-04-08 Tom Tromey <tromey@adacore.com>
6307
6308 * nat/windows-nat.h (struct windows_thread_info): Declare
6309 destructor.
6310 * nat/windows-nat.c (~windows_thread_info): New.
6311
6312 2020-04-08 Tom Tromey <tromey@adacore.com>
6313
6314 PR gdb/22992
6315 * windows-nat.c (current_event): Update comment.
6316 (last_wait_event, desired_stop_thread_id): New globals.
6317 (struct pending_stop): New.
6318 (pending_stops): New global.
6319 (windows_nat_target) <stopped_by_sw_breakpoint>
6320 <supports_stopped_by_sw_breakpoint>: New methods.
6321 (windows_fetch_one_register): Add assertions. Adjust PC.
6322 (windows_continue): Handle pending stops. Suspend other threads
6323 when stepping. Use last_wait_event
6324 (wait_for_debug_event): New function.
6325 (get_windows_debug_event): Use wait_for_debug_event. Handle
6326 pending stops. Queue spurious stops.
6327 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6328 (windows_nat_target::kill): Use wait_for_debug_event.
6329 * nat/windows-nat.h (struct windows_thread_info)
6330 <stopped_at_software_breakpoint>: New field.
6331 * nat/windows-nat.c (windows_thread_info::resume): Clear
6332 stopped_at_software_breakpoint.
6333
6334 2020-04-08 Tom Tromey <tromey@adacore.com>
6335
6336 * windows-nat.c (enum thread_disposition_type): New.
6337 (thread_rec): Replace "get_context" parameter with "disposition";
6338 change type.
6339 (windows_add_thread, windows_nat_target::fetch_registers)
6340 (windows_nat_target::store_registers, handle_exception)
6341 (windows_nat_target::resume, get_windows_debug_event)
6342 (windows_nat_target::get_tib_address)
6343 (windows_nat_target::thread_name)
6344 (windows_nat_target::thread_alive): Update.
6345
6346 2020-04-08 Tom Tromey <tromey@adacore.com>
6347
6348 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6349 (windows_continue): Use windows_continue::resume.
6350 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6351 resume>: Declare new methods.
6352 * nat/windows-nat.c: New file.
6353 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6354
6355 2020-04-08 Tom Tromey <tromey@adacore.com>
6356
6357 * windows-nat.c (windows_add_thread, windows_delete_thread)
6358 (windows_nat_target::fetch_registers)
6359 (windows_nat_target::store_registers, fake_create_process)
6360 (windows_nat_target::resume, windows_nat_target::resume)
6361 (get_windows_debug_event, windows_nat_target::wait)
6362 (windows_nat_target::pid_to_str)
6363 (windows_nat_target::get_tib_address)
6364 (windows_nat_target::get_ada_task_ptid)
6365 (windows_nat_target::thread_name)
6366 (windows_nat_target::thread_alive): Use lwp, not tid.
6367
6368 2020-04-08 Tom Tromey <tromey@adacore.com>
6369
6370 * windows-nat.c (handle_exception)
6371 (windows_nat_target::thread_name): Update.
6372 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6373 <name>: Now unique_xmalloc_ptr.
6374
6375 2020-04-08 Tom Tromey <tromey@adacore.com>
6376
6377 * windows-nat.c (thread_rec)
6378 (windows_nat_target::fetch_registers): Update.
6379 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6380 Update comment.
6381 <debug_registers_changed, reload_context>: Now bool.
6382
6383 2020-04-08 Tom Tromey <tromey@adacore.com>
6384
6385 * windows-nat.c (windows_add_thread): Use new.
6386 (windows_init_thread_list, windows_delete_thread): Use delete.
6387 (get_windows_debug_event): Update.
6388 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6389 destructor, and initializers.
6390
6391 2020-04-08 Tom Tromey <tromey@adacore.com>
6392
6393 * windows-nat.c (struct windows_thread_info): Remove.
6394 * nat/windows-nat.h: New file.
6395
6396 2020-04-08 Tom Tromey <tromey@adacore.com>
6397
6398 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6399 (thread_rec, windows_add_thread, windows_delete_thread)
6400 (windows_continue): Update.
6401
6402 2020-04-08 Tom Tromey <tromey@adacore.com>
6403
6404 * windows-nat.c (struct windows_thread_info): Remove typedef.
6405 (thread_head): Remove.
6406 (thread_list): New global.
6407 (thread_rec, windows_add_thread, windows_init_thread_list)
6408 (windows_delete_thread, windows_continue): Update.
6409
6410 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6411
6412 * windows-tdep.h (windows_init_abi): Add comment.
6413 (cygwin_init_abi): New declaration.
6414 * windows-tdep.c: Split signal enumeration in two, one for
6415 Windows and one for Cygwin.
6416 (windows_gdb_signal_to_target): Only deal with signal of the
6417 Windows OS ABI.
6418 (cygwin_gdb_signal_to_target): New function.
6419 (windows_init_abi): Rename to windows_init_abi_common, don't set
6420 gdb_signal_to_target gdbarch method. Add new new function with
6421 this name.
6422 (cygwin_init_abi): New function.
6423 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6424 comment. Don't call windows_init_abi.
6425 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6426 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6427 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6428 i386_windows_init_abi_common, don't call windows_init_abi. Add
6429 a new function of this name.
6430 (i386_cygwin_init_abi): New function.
6431 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6432 OS ABI Cygwin.
6433
6434 2020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6435
6436 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6437 parameter.c.
6438 (dwarf2_read_gdb_index): Update.
6439
6440 2020-04-07 Kamil Rytarowski <n54@gmx.com>
6441
6442 * nbsd-tdep.c: Include "objfiles.h".
6443 (nbsd_skip_solib_resolver): New.
6444 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6445
6446 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6447
6448 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6449 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6450 with DW_LLE_base_addressx are being emitted in DWARFv5.
6451 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6452 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6453 unsigned integer.
6454
6455 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6456
6457 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6458 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6459 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6460 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6461 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6462 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6463 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6464
6465
6466 2020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6467
6468 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6469 (read_loclist_index): New function definition.
6470 (lookup_loclist_base): New function definition.
6471 (read_loclist_header): New function definition.
6472 (dwarf2_cu): Add loclist_base and loclist_header field.
6473 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6474 (read_full_die_1): Read the value of DW_AT_loclists_base.
6475 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6476 (read_attribute_value): Handle DW_FORM_loclistx.
6477 (skip_one_die): Handle DW_FORM_loclistx.
6478 (loclist_header): New structure declaration.
6479 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6480
6481 2020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6482
6483 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6484 constructor. Remove `addr` parameter from other constructor and
6485 add `per_cu` parameter.
6486 * dwarf2/read.c (create_partial_symtab): Update.
6487
6488 2020-04-07 Tom de Vries <tdevries@suse.de>
6489
6490 PR symtab/25796
6491 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6492 (partial_die_info::fixup): Inherit has_const_value.
6493
6494 2020-04-07 Tom de Vries <tdevries@suse.de>
6495
6496 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6497 symbols without address.
6498
6499 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6500
6501 * nbsd-nat.h (struct thread_info): Add forward declaration.
6502 (nbsd_nat_target::thread_alive): Add.
6503 (nbsd_nat_target::thread_name): Likewise.
6504 (nbsd_nat_target::update_thread_list): Likewise.
6505 (update_thread_list::post_attach): Likewise.
6506 (post_attach::pid_to_str): Likewise.
6507 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6508 (nbsd_thread_lister): Add.
6509 (nbsd_nat_target::thread_alive): Likewise.
6510 (nbsd_nat_target::thread_name): Likewise.
6511 (nbsd_add_threads): Likewise.
6512 (update_thread_list::post_attach): Likewise.
6513 (nbsd_nat_target::update_thread_list): Likewise.
6514 (post_attach::pid_to_str): Likewise.
6515
6516 2020-04-06 Tom Tromey <tromey@adacore.com>
6517
6518 * ada-valprint.c (print_variant_part): Extract the variant field.
6519 (print_field_values): Use the field as the outer value when
6520 recursing.
6521
6522 2020-04-06 Tom Tromey <tromey@adacore.com>
6523
6524 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6525 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6526 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6527 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6528 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6529
6530 2020-04-06 Tom Tromey <tromey@adacore.com>
6531
6532 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6533 TYPE_CODE_ERROR.
6534
6535 2020-04-06 Kamil Rytarowski <n54@gmx.com>
6536
6537 * nbsd-tdep.c: Include "gdbarch.h".
6538 Define enum with NetBSD signal numbers.
6539 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6540 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6541 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6542 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6543 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6544 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6545 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6546 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6547 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6548 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6549 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6550 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6551
6552 2020-04-03 Hannes Domani <ssbssa@yahoo.de>
6553
6554 PR gdb/25325
6555 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6556
6557 2020-04-03 Tom Tromey <tromey@adacore.com>
6558
6559 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6560 Read constant block.
6561
6562 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6563
6564 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6565 (gdb_bfd_get_full_section_contents): New declaration.
6566 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6567 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6568 gdb_bfd_get_full_section_contents.
6569
6570 2020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6571
6572 * exec.c (build_section_table): Replace internal_error with
6573 gdb_assert.
6574 (section_table_xfer_memory_partial): Likewise.
6575 * mdebugread.c (parse_partial_symbols): Likewise.
6576 * psymtab.c (lookup_partial_symbol): Likewise.
6577 * utils.c (wrap_here): Likewise.
6578
6579 2020-04-02 Tom Tromey <tromey@adacore.com>
6580
6581 * f-lang.c (build_fortran_types): Use arch_type to initialize
6582 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6583
6584 2020-04-02 Tom Tromey <tromey@adacore.com>
6585
6586 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6587 of attributes.
6588
6589 2020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6590 Bernd Edlinger <bernd.edlinger@hotmail.de>
6591 Tom Tromey <tromey@adacore.com>
6592
6593 * buildsym.c (buildsym_compunit::record_line): Remove
6594 deduplication code.
6595
6596 2020-04-02 Tom de Vries <tdevries@suse.de>
6597
6598 PR ada/24671
6599 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6600
6601 2020-04-02 Tom de Vries <tdevries@suse.de>
6602
6603 * dwarf2/read.c (dwarf2_gdb_index_functions,
6604 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6605 NULL.
6606 * psymtab.c (psym_lookup_global_symbol_language): New function.
6607 (psym_functions): Init psym_lookup_global_symbol_language with
6608 psym_lookup_global_symbol_language.
6609 * symfile-debug.c (debug_sym_quick_functions): Init
6610 lookup_global_symbol_language with NULL.
6611 * symfile.c (set_initial_language): Remove fixme comment.
6612 * symfile.h (struct quick_symbol_functions): Add
6613 lookup_global_symbol_language.
6614 * symtab.c (find_quick_global_symbol_language): New function.
6615 (find_main_name): Use find_quick_global_symbol_language.
6616
6617 2020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6618
6619 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6620
6621 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6622
6623 * buildsym.c (record_line): Fix undefined behavior and preserve
6624 lines at eof.
6625
6626 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6627
6628 * buildsym.c (record_line): Fix the resizing condition.
6629
6630 2020-04-01 Tom Tromey <tom@tromey.com>
6631
6632 * value.h (value_literal_complex): Add comment.
6633 * valops.c (value_literal_complex): Refer to value.h.
6634
6635 2020-04-01 Tom Tromey <tom@tromey.com>
6636
6637 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6638 (scalar_type): New rule, from typebase.
6639 (typebase): Use scalar_type. Recognize complex types.
6640 (field_name): Handle FLOAT_KEYWORD.
6641 (ident_tokens): Add _Complex and __complex__.
6642
6643 2020-04-01 Tom Tromey <tom@tromey.com>
6644
6645 PR exp/25299:
6646 * valarith.c (promotion_type, complex_binop): New functions.
6647 (scalar_binop): Handle complex numbers. Use promotion_type.
6648 (value_pos, value_neg, value_complement): Handle complex numbers.
6649
6650 2020-04-01 Tom Tromey <tom@tromey.com>
6651
6652 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6653 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6654 (parse_number): Handle complex numbers.
6655
6656 2020-04-01 Tom Tromey <tom@tromey.com>
6657
6658 * c-valprint.c (c_decorations): Change complex suffix to "i".
6659
6660 2020-04-01 Tom Tromey <tom@tromey.com>
6661
6662 * valprint.c (generic_value_print_complex): Use accessors.
6663 * value.h (value_real_part, value_imaginary_part): Declare.
6664 * valops.c (value_real_part, value_imaginary_part): New
6665 functions.
6666 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6667
6668 2020-04-01 Tom Tromey <tom@tromey.com>
6669
6670 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6671 (read_range_type): Update.
6672 * mdebugread.c (basic_type): Update.
6673 * go-lang.c (build_go_types): Use init_complex_type.
6674 * gdbtypes.h (struct main_type) <complex_type>: New member.
6675 (init_complex_type): Update.
6676 (arch_complex_type): Don't declare.
6677 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6678 Make name if none given. Use alloc_type_copy. Look for cached
6679 complex type.
6680 (arch_complex_type): Remove.
6681 (gdbtypes_post_init): Use init_complex_type.
6682 * f-lang.c (build_fortran_types): Use init_complex_type.
6683 * dwarf2/read.c (read_base_type): Update.
6684 * d-lang.c (build_d_types): Use init_complex_type.
6685 * ctfread.c (read_base_type): Update.
6686
6687 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6688
6689 * infrun.c (stop_all_threads): Update assertion, plus when
6690 stopping threads, take into account that we might be trying
6691 to stop an all-stop target.
6692 (stop_waiting): Call 'stop_all_threads' if there exists a
6693 non-stop target.
6694
6695 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6696
6697 * target.h (exists_non_stop_target): New function declaration.
6698 * target.c (exists_non_stop_target): New function.
6699
6700 2020-04-01 Hannes Domani <ssbssa@yahoo.de>
6701
6702 PR gdb/24789
6703 * eval.c (is_integral_or_integral_reference): New function.
6704 (evaluate_subexp_standard): Allow integer references in
6705 pointer arithmetic.
6706
6707 2020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6708
6709 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6710 check for no ptid in the stop reply when the target is non-stop.
6711
6712 2020-04-01 Tom Tromey <tromey@adacore.com>
6713
6714 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6715 "name" parameter to rvalue reference. Initialize m_name_holder.
6716 <lookup_name_info>: New overloads.
6717 <name>: Return gdb::string_view.
6718 <c_str>: New method.
6719 <make_ignore_params>: Update.
6720 <search_name_hash>: Update.
6721 <language_lookup_name>: Return const char *.
6722 <m_name>: Change type.
6723 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6724 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6725 (lookup_name_info::match_any): Update.
6726 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6727 Update.
6728 * minsyms.c (linkage_name_str): Update.
6729 * language.c (default_symbol_name_matcher): Update.
6730 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6731 Update.
6732 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6733 (ada_lookup_name_info::ada_lookup_name_info): Update.
6734 (literal_symbol_name_matcher): Update.
6735
6736 2020-04-01 Tom Tromey <tromey@adacore.com>
6737
6738 * psymtab.c (psymtab_search_name): Remove function.
6739 (psym_lookup_symbol): Create search name and lookup name here.
6740 (lookup_partial_symbol): Remove "name" parameter; add
6741 lookup_name.
6742 (psym_expand_symtabs_for_function): Update.
6743
6744 2020-03-31 Joel Jones <joelkevinjones@gmail.com>
6745
6746 PR tui/25597:
6747 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6748
6749 2020-03-31 Tom Tromey <tromey@adacore.com>
6750
6751 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6752 memcpy.
6753
6754 2020-03-30 Nelson Chu <nelson.chu@sifive.com>
6755
6756 * features/riscv/32bit-csr.xml: Regenerated.
6757 * features/riscv/64bit-csr.xml: Regenerated.
6758
6759 2020-03-30 Tom Tromey <tromey@adacore.com>
6760
6761 * ada-valprint.c (print_variant_part): Update.
6762 * ada-lang.h (ada_which_variant_applies): Update.
6763 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6764 outer_valaddr parameters; replace with "outer" value parameter.
6765 (to_fixed_variant_branch_type): Update.
6766
6767 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6768
6769 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6770 <list>. Remove inclusion of observable.h.
6771 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6772 (struct arch_lwp_info): New struct.
6773 (class ppc_linux_dreg_interface): New class.
6774 (struct ppc_linux_process_info): New struct.
6775 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6776 <low_new_clone, low_forget_process, low_prepare_to_resume>
6777 <copy_thread_dreg_state, mark_thread_stale>
6778 <mark_debug_registers_changed, register_hw_breakpoint>
6779 <clear_hw_breakpoint, register_wp, clear_wp>
6780 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6781 <num_memory_accesses, get_trigger_type>
6782 <create_watchpoint_request, hwdebug_point_cmp>
6783 <init_arch_lwp_info, get_arch_lwp_info>
6784 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6785 methods.
6786 <struct ptid_hash>: New inner struct.
6787 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6788 members.
6789 (saved_dabr_value, hwdebug_info, max_slots_number)
6790 (struct hw_break_tuple, struct thread_points, ppc_threads)
6791 (have_ptrace_hwdebug_interface)
6792 (hwdebug_find_thread_points_by_tid)
6793 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6794 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6795 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6796 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6797 use m_dreg_interface.
6798 (hwdebug_point_cmp): Change to...
6799 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6800 reference arguments instead of pointers.
6801 (ppc_linux_nat_target::ranged_break_num_registers): Use
6802 m_dreg_interface.
6803 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6804 m_dreg_interface. Call register_hw_breakpoint.
6805 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6806 m_dreg_interface. Call clear_hw_breakpoint.
6807 (get_trigger_type): Change to...
6808 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6809 comment.
6810 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6811 use m_dreg_interface. Call register_hw_breakpoint.
6812 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6813 use m_dreg_interface. Call clear_hw_breakpoint.
6814 (can_use_watchpoint_cond_accel): Change to...
6815 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6816 method. Update comment, use m_dreg_interface and
6817 m_process_info.
6818 (calculate_dvc): Change to...
6819 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6820 m_dreg_interface.
6821 (num_memory_accesses): Change to...
6822 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6823 (check_condition): Change to...
6824 (ppc_linux_nat_target::check_condition): ...this method.
6825 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6826 comment, use m_dreg_interface.
6827 (create_watchpoint_request): Change to...
6828 (ppc_linux_nat_target::create_watchpoint_request): ...this
6829 method. Use m_dreg_interface.
6830 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6831 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6832 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6833 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6834 (ppc_linux_nat_target::low_forget_process)
6835 (ppc_linux_nat_target::low_new_fork)
6836 (ppc_linux_nat_target::low_new_clone)
6837 (ppc_linux_nat_target::low_delete_thread)
6838 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6839 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6840 only call mark_thread_stale.
6841 (ppc_linux_thread_exit): Remove.
6842 (ppc_linux_nat_target::stopped_data_address): Change to...
6843 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6844 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6845 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6846 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6847 comment. Call low_stopped_data_address.
6848 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6849 m_dreg_interface.
6850 (ppc_linux_nat_target::masked_watch_num_registers): Use
6851 m_dreg_interface.
6852 (ppc_linux_nat_target::copy_thread_dreg_state)
6853 (ppc_linux_nat_target::mark_thread_stale)
6854 (ppc_linux_nat_target::mark_debug_registers_changed)
6855 (ppc_linux_nat_target::register_hw_breakpoint)
6856 (ppc_linux_nat_target::clear_hw_breakpoint)
6857 (ppc_linux_nat_target::register_wp)
6858 (ppc_linux_nat_target::clear_wp)
6859 (ppc_linux_nat_target::init_arch_lwp_info)
6860 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6861 (_initialize_ppc_linux_nat): Remove observer callback.
6862
6863 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6864
6865 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6866 (ppc_linux_nat_target::auxv_parse)
6867 (ppc_linux_nat_target::read_description)
6868 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6869 Move up.
6870
6871 2020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6872
6873 * linux-nat.h (low_new_clone): New method.
6874 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6875
6876 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6877
6878 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6879 (dbx_expand_psymtab): ... this.
6880 (start_psymtab): Update.
6881 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6882 (mdebug_expand_psymtab): ... this.
6883 (parse_partial_symbols): Update.
6884 (new_psymtab): Update.
6885 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6886 (xcoff_expand_psymtab): ... this.
6887 (xcoff_start_psymtab): Update.
6888
6889 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6890
6891 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6892 <expand_dependencies>: ... this.
6893 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6894 (partial_symtab::expand_dependencies): ... this.
6895 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6896 Update.
6897 (dwarf2_psymtab::expand_psymtab): Update.
6898 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6899 * mdebugread.c (psymtab_to_symtab_1): Update.
6900 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6901
6902 2020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6903
6904 * psympriv.h (discard_psymtab): Remove.
6905 * dbxread.c (dbx_end_psymtab): Update.
6906 * xcoffread.c (xcoff_end_psymtab): Update.
6907
6908 2020-03-28 Tom Tromey <tom@tromey.com>
6909
6910 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6911 comment.
6912
6913 2020-03-28 Tom Tromey <tom@tromey.com>
6914
6915 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6916
6917 2020-03-27 Hannes Domani <ssbssa@yahoo.de>
6918
6919 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6920
6921 2020-03-26 John Baldwin <jhb@FreeBSD.org>
6922
6923 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6924
6925 2020-03-26 Tom Tromey <tom@tromey.com>
6926
6927 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6928 (mark_common_block_symbol_computed, read_tag_string_type)
6929 (attr_to_dynamic_prop, read_subrange_type): Update.
6930 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6931 to be methods on struct attribute.
6932 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6933 (read_call_site_scope, partial_die_info::read)
6934 (partial_die_info::read, lookup_die_type, follow_die_ref):
6935 Update.
6936 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6937 from dwarf2_get_ref_die_offset.
6938 (attribute::constant_value): New method, from
6939 dwarf2_get_attr_constant_value.
6940 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6941 Declare method.
6942 <constant_value>: New method.
6943
6944 2020-03-26 Tom Tromey <tom@tromey.com>
6945
6946 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6947 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6948 (dwarf_type_encoding_name): Move to stringify.c.
6949 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6950 * dwarf2/stringify.c: New file.
6951 * dwarf2/stringify.h: New file.
6952
6953 2020-03-26 Tom Tromey <tom@tromey.com>
6954
6955 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6956 Rewrite.
6957
6958 2020-03-26 Tom Tromey <tom@tromey.com>
6959
6960 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6961 methods.
6962 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6963 (lookup_ranges_base): Likewise.
6964 (read_cutu_die_from_dwo, read_full_die_1): Update.
6965
6966 2020-03-26 Tom Tromey <tom@tromey.com>
6967
6968 * dwarf2/read.c (read_import_statement, read_file_scope)
6969 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6970 (read_lexical_block_scope, read_call_site_scope)
6971 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6972 (handle_struct_member_die, process_structure_scope)
6973 (update_enumeration_type_from_children)
6974 (process_enumeration_scope, read_array_type, read_common_block)
6975 (read_namespace, read_module, read_subroutine_type): Update.
6976 (sibling_die): Remove.
6977
6978 2020-03-26 Tom Tromey <tom@tromey.com>
6979
6980 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6981 (build_type_psymtabs_reader, read_structure_type)
6982 (read_enumeration_type, read_full_die_1): Update.
6983 (dwarf2_attr_no_follow): Move to die.h.
6984 * dwarf2/die.h (struct die_info) <attr>: New method.
6985
6986 2020-03-26 Tom Tromey <tom@tromey.com>
6987
6988 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6989 <base_address>: Now an optional.
6990 (dwarf2_find_base_address, dwarf2_rnglists_process)
6991 (dwarf2_ranges_process, fill_in_loclist_baton)
6992 (dwarf2_symbol_mark_computed): Update.
6993
6994 2020-03-26 Tom Tromey <tom@tromey.com>
6995
6996 * dwarf2/read.c (struct die_info): Move to die.h.
6997 * dwarf2/die.h: New file.
6998
6999 2020-03-26 Tom Tromey <tom@tromey.com>
7000
7001 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7002 * dwarf2/read.c
7003 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7004 Move to line-header.c.
7005 (read_checked_initial_length_and_offset, read_formatted_entries):
7006 Likewise.
7007 (dwarf_decode_line_header): Split into two.
7008 * dwarf2/line-header.c
7009 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7010 Move from read.c.
7011 (read_checked_initial_length_and_offset, read_formatted_entries):
7012 Likewise.
7013 (dwarf_decode_line_header): New function, split from read.c.
7014
7015 2020-03-26 Tom Tromey <tom@tromey.com>
7016
7017 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7018 Declare method.
7019 * dwarf2/read.c (read_attribute_value): Update.
7020 (dwarf2_per_objfile::read_line_string): Rename from
7021 read_indirect_line_string.
7022 (read_formatted_entries): Update.
7023
7024 2020-03-26 Tom Tromey <tom@tromey.com>
7025
7026 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7027 variable.
7028
7029 2020-03-26 Tom Tromey <tom@tromey.com>
7030
7031 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7032 const.
7033 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7034 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7035 parameter const.
7036
7037 2020-03-26 Tom Tromey <tom@tromey.com>
7038
7039 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7040 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7041 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7042 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7043
7044 2020-03-26 Tom Tromey <tom@tromey.com>
7045
7046 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7047 file_names_size, file_full_name, file_file_name>: Use const.
7048 <file_name_at, file_names>: Add const overload.
7049 * dwarf2/line-header.c (line_header::file_file_name)
7050 (line_header::file_full_name): Update.
7051
7052 2020-03-26 Tom Tromey <tom@tromey.com>
7053
7054 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7055 (macro_start_file, consume_improper_spaces)
7056 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7057 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7058 (dwarf_decode_macros): Move to macro.c.
7059 * dwarf2/macro.c: New file.
7060 * dwarf2/macro.h: New file.
7061 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7062
7063 2020-03-26 Tom Tromey <tom@tromey.com>
7064
7065 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7066 method.
7067 * dwarf2/section.c: New method. From
7068 read_indirect_string_at_offset_from.
7069 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7070 (read_indirect_string_at_offset_from): Move to section.c.
7071 (read_indirect_string_at_offset): Rewrite.
7072 (read_indirect_line_string_at_offset): Remove.
7073 (read_indirect_string, read_indirect_line_string)
7074 (dwarf_decode_macro_bytes): Update.
7075
7076 2020-03-26 Tom Tromey <tom@tromey.com>
7077
7078 * dwarf2/section.h (struct dwarf2_section_info)
7079 <overload_complaint>: Declare.
7080 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7081 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7082 Rename from dwarf2_section_buffer_overflow_complaint.
7083 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7084 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7085
7086 2020-03-26 Tom Tromey <tom@tromey.com>
7087
7088 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7089 Declare.
7090 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7091 Move from read.c.
7092 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7093 to section.c.
7094
7095 2020-03-26 Tom Tromey <tom@tromey.com>
7096
7097 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7098
7099 2020-03-26 Tom Tromey <tom@tromey.com>
7100
7101 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7102 "builder".
7103 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7104 parameter.
7105 (dwarf_decode_macros): Update.
7106
7107 2020-03-26 Tom Tromey <tom@tromey.com>
7108
7109 * dwarf2/read.c (read_attribute_value): Update.
7110 (read_indirect_string_from_dwz): Move to dwz.c; change into
7111 method.
7112 (dwarf_decode_macro_bytes): Update.
7113 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7114 * dwarf2/dwz.c: New file.
7115 * Makefile.in (COMMON_SFILES): Add dwz.c.
7116
7117 2020-03-26 Tom Tromey <tom@tromey.com>
7118
7119 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7120 * dwarf2/read.c: Add include.
7121 * dwarf2/index-write.c: Add include.
7122 * dwarf2/index-cache.c: Add include.
7123 * dwarf2/dwz.h: New file.
7124
7125 2020-03-25 Tom Tromey <tom@tromey.com>
7126
7127 * compile/compile-object-load.c (get_out_value_type): Mention
7128 correct symbol name in error message.
7129
7130 2020-03-25 Hannes Domani <ssbssa@yahoo.de>
7131
7132 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7133
7134 2020-03-25 Tom de Vries <tdevries@suse.de>
7135
7136 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7137 * symmisc.c (dump_symtab_1): Print user and includes fields.
7138 (maintenance_info_symtabs): Same.
7139
7140 2020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7141
7142 PR gdb/25534
7143 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7144 (riscv_regcache_cooked_write): New function.
7145 (riscv_push_dummy_call): Use new function.
7146 (riscv_return_value): Likewise.
7147
7148 2020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7149
7150 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7151 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7152 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7153 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7154 * infrun.c (follow_fork): Likewise.
7155 (follow_fork_inferior): Likewise.
7156 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7157 * linux-nat.h (class linux_nat_target): Likewise.
7158 * remote.c (class remote_target) <follow_fork>: Likewise.
7159 (remote_target::follow_fork): Likewise.
7160 * target-delegates.c: Re-generate.
7161 * target.c (default_follow_fork): Likewise.
7162 (target_follow_fork): Likewise.
7163 * target.h (struct target_ops) <follow_fork>: Likewise.
7164 (target_follow_fork): Likewise.
7165
7166 2020-03-24 Tom de Vries <tdevries@suse.de>
7167
7168 * psymtab.c (maintenance_info_psymtabs): Print user field.
7169
7170 2020-03-20 Tom Tromey <tromey@adacore.com>
7171
7172 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7173 const.
7174 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7175 const.
7176
7177 2020-03-20 Simon Marchi <simon.marchi@efficios.com>
7178
7179 * ptrace.m4: Don't check for ptrace declaration.
7180 * config.in: Re-generate.
7181 * configure: Re-generate.
7182 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7183 not defined.
7184
7185 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7186
7187 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7188 `PTRACE_TYPE_RET'.
7189 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7190 * sparc-nat.c (gdb_ptrace): Likewise.
7191 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7192
7193 2020-03-20 Tom Tromey <tromey@adacore.com>
7194
7195 * c-exp.y (lex_one_token): Fix assert.
7196
7197 2020-03-20 Tom Tromey <tromey@adacore.com>
7198
7199 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7200 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7201 strncpy call.
7202
7203 2020-03-20 Tom Tromey <tromey@adacore.com>
7204
7205 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7206
7207 2020-03-20 Tom Tromey <tromey@adacore.com>
7208
7209 * ada-valprint.c (print_variant_part): Remove parameters; switch
7210 to value-based API.
7211 (print_field_values): Likewise.
7212 (ada_val_print_struct_union): Likewise.
7213 (ada_value_print_1): Update.
7214
7215 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7216
7217 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7218 nbsd_nat_target instead of inf_ptrace_target.
7219 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7220 nbsd_nat_target.
7221
7222 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7223
7224 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7225 it to the ptrace call.
7226 * (store_registers): Likewise.
7227
7228 2020-03-20 Kamil Rytarowski <n54@gmx.com>
7229
7230 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7231 it to the ptrace call.
7232 * (store_registers): Likewise.
7233
7234 2020-03-19 Luis Machado <luis.machado@linaro.org>
7235
7236 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7237 valid, fetch vg value from ptrace.
7238
7239 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7240 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7241 * inf-ptrace.c: Likewise.
7242 * (gdb_ptrace): Add.
7243 * (inf_ptrace_target::resume): Update.
7244 * (inf_ptrace_target::xfer_partial): Likewise.
7245 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7246 * (inf_ptrace_peek_poke): Update.
7247
7248 2020-03-19 Kamil Rytarowski <n54@gmx.com>
7249
7250 * x86-bsd-nat.c (gdb_ptrace): New.
7251 * (x86bsd_dr_set): Add new argument `ptid'.
7252 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7253 x86bsd_dr_set_addr): Update.
7254
7255 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7256
7257 * remote.c (remote_target::process_stop_reply): Handle events for
7258 all threads differently.
7259
7260 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7261
7262 * completer.c (completion_tracker::remove_completion): Define new
7263 function.
7264 * completer.h (completion_tracker::remove_completion): Declare new
7265 function.
7266 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7267 when adding a C++ function symbol.
7268
7269 2020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7270
7271 * completer.c (completion_tracker::completion_hash_entry): Define
7272 new class.
7273 (advance_to_filename_complete_word_point): Call
7274 recompute_lowest_common_denominator.
7275 (completion_tracker::completion_tracker): Call discard_completions
7276 to setup the hash table.
7277 (completion_tracker::discard_completions): Allow for being called
7278 from the constructor, pass new equal function, and element deleter
7279 when constructing the hash table. Initialise new class member
7280 variables.
7281 (completion_tracker::maybe_add_completion): Remove use of
7282 m_entries_vec, and store more information into m_entries_hash.
7283 (completion_tracker::recompute_lcd_visitor): New function, most
7284 content taken from...
7285 (completion_tracker::recompute_lowest_common_denominator):
7286 ...here, this now just visits each item in the hash calling the
7287 above visitor.
7288 (completion_tracker::build_completion_result): Remove use of
7289 m_entries_vec, call recompute_lowest_common_denominator.
7290 * completer.h (completion_tracker::have_completions): Remove use
7291 of m_entries_vec.
7292 (completion_tracker::completion_hash_entry): Declare new class.
7293 (completion_tracker::recompute_lowest_common_denominator): Change
7294 function signature.
7295 (completion_tracker::recompute_lcd_visitor): Declare new function.
7296 (completion_tracker::m_entries_vec): Delete.
7297 (completion_tracker::m_entries_hash): Initialize to NULL.
7298 (completion_tracker::m_lowest_common_denominator_valid): New
7299 member variable.
7300 (completion_tracker::m_lowest_common_denominator_max_length): New
7301 member variable.
7302
7303 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7304
7305 * regformats/regdef.h: Put reg in gdb namespace.
7306
7307 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7308
7309 * i386-bsd-nat.c (gdb_ptrace): New.
7310 * (i386bsd_fetch_inferior_registers,
7311 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7312 * (i386bsd_fetch_inferior_registers,
7313 i386bsd_store_inferior_registers) Use gdb_ptrace.
7314
7315 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7316
7317 * amd64-bsd-nat.c (gdb_ptrace): New.
7318 * (amd64bsd_fetch_inferior_registers,
7319 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7320 * (amd64bsd_fetch_inferior_registers,
7321 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7322
7323 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7324
7325 * user-regs.c (user_reg::read): Rename to...
7326 (user_reg::xread): ...this.
7327 * (append_user_reg): Rename argument `read' to `xread'.
7328 * (user_reg_add_builtin): Likewise.
7329 * (user_reg_add): Likewise.
7330 * (value_of_user_reg): Likewise.
7331
7332 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7333
7334 * sparc-nat.c (gdb_ptrace): New.
7335 * sparc-nat.c (sparc_fetch_inferior_registers)
7336 (sparc_store_inferior_registers) Remove obsolete comment.
7337 * sparc-nat.c (sparc_fetch_inferior_registers)
7338 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7339 * sparc-nat.c (sparc_fetch_inferior_registers)
7340 (sparc_store_inferior_registers) Use gdb_ptrace.
7341
7342 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7343
7344 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7345 it to the ptrace call.
7346 * sh-nbsd-nat.c (store_registers): Likewise.
7347
7348 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7349
7350 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7351 nbsd_nat_target instead of inf_ptrace_target.
7352 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7353 nbsd_nat_target.
7354
7355 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7356
7357 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7358
7359 2020-03-17 Kamil Rytarowski <n54@gmx.com>
7360
7361 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7362 <sys/sysctl.h>.
7363 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7364
7365 2020-03-17 Tom de Vries <tdevries@suse.de>
7366
7367 PR gdb/23710
7368 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7369 fields.
7370 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7371 fields.
7372 (process_imported_unit_die): Skip import of c++ CUs.
7373
7374 2020-03-16 Tom Tromey <tom@tromey.com>
7375
7376 * p-valprint.c (pascal_object_print_value): Initialize
7377 base_value.
7378
7379 2020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7380 Shahab Vahedi <shahab@synopsys.com>
7381
7382 * Makefile.in: Add arch/arc.o
7383 * configure.tgt: Likewise.
7384 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7385 (_initialize_arc_tdep): Don't initialize old target descriptions.
7386 (arc_read_description): New function to cache target descriptions.
7387 * arc-tdep.h (arc_read_description): Add proto type.
7388 * arch/arc.c: New file.
7389 * arch/arc.h: Likewise.
7390 * features/Makefile: Replace old target descriptions with new.
7391 * features/arc-arcompact.c: Remove.
7392 * features/arc-arcompact.xml: Likewise.
7393 * features/arc-v2.c: Likewise
7394 * features/arc-v2.xml: Likewise
7395 * features/arc/aux-arcompact.xml: New file.
7396 * features/arc/aux-v2.xml: Likewise.
7397 * features/arc/core-arcompact.xml: Likewise.
7398 * features/arc/core-v2.xml: Likewise.
7399 * features/arc/aux-arcompact.c: Generate.
7400 * features/arc/aux-v2.c: Likewise.
7401 * features/arc/core-arcompact.c: Likewise.
7402 * features/arc/core-v2.c: Likewise.
7403 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7404
7405 2020-03-16 Tom Tromey <tromey@adacore.com>
7406
7407 PR gdb/25663:
7408 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7409 putting value into bcache.
7410
7411 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7412
7413 PR gdb/21500
7414 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7415 to...
7416 (amd64_windows_init_abi_common): ... this. Don't set size of
7417 long type.
7418 (amd64_windows_init_abi): New function.
7419 (amd64_cygwin_init_abi): New function.
7420 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7421 the Cygwin OS ABI.
7422 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7423 comment.
7424
7425 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7426
7427 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7428 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7429 (pe_import_directory_entry): New struct type.
7430 (is_linked_with_cygwin_dll): New function.
7431 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7432 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7433 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7434
7435 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7436
7437 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7438 i386_cygwin_core_osabi_sniffer.
7439
7440 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7441
7442 * i386-cygwin-tdep.c: Rename to...
7443 * i386-windows-tdep.c: ... this.
7444 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7445 i386-windows-tdep.c.
7446 * configure.tgt: Likewise.
7447
7448 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7449
7450 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7451 * osabi.c (gdb_osabi_names): Add "Windows".
7452 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7453 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7454 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7455 i386_cygwin_osabi_sniffer.
7456 (_initialize_i386_cygwin_tdep): Register OS ABI
7457 GDB_OSABI_WINDOWS for i386.
7458 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7459 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7460 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7461 for x86-64.
7462 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7463 when the target matches '*-*-mingw*'.
7464
7465 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7466
7467 * defs.h (enum gdb_osabi): Move to...
7468 * osabi.h (enum gdb_osabi): ... here.
7469 * gdbarch.sh: Include osabi.h in gdbarch.h.
7470 * gdbarch.h: Re-generate.
7471
7472 2020-03-16 Simon Marchi <simon.marchi@efficios.com>
7473
7474 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7475 function.
7476 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7477
7478 2020-03-14 Tom Tromey <tom@tromey.com>
7479
7480 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7481 for C++.
7482 (c_type_print_modifier): Likewise. Add "language" parameter.
7483 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7484 (c_type_print_base_1): Update.
7485 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7486 constants.
7487 * type-stack.c (type_stack::insert): Handle tp_atomic and
7488 tp_restrict.
7489 (type_stack::follow_type_instance_flags): Likewise.
7490 (type_stack::follow_types): Likewise. Merge type-following code.
7491 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7492 (space_identifier, cv_with_space_id)
7493 (const_or_volatile_or_space_identifier_noopt)
7494 (const_or_volatile_or_space_identifier): Remove.
7495 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7496 rules.
7497 (ptr_operator, typebase): Update.
7498 (enum token_flag) <FLAG_C>: New constant.
7499 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7500 "_Atomic".
7501 (lex_one_token): Handle FLAG_C.
7502
7503 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7504
7505 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7506 it to the ptrace call.
7507 * m68k-bsd-nat.c (store_registers): Likewise.
7508
7509 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7510
7511 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7512 gdb_byte *.
7513 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7514 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7515 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7516
7517 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7518
7519 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7520 nbsd_nat_target instead of inf_ptrace_target.
7521 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7522 nbsd_nat_target.
7523
7524 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7525
7526 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7527 register_t.
7528
7529 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7530
7531 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7532 it to the ptrace call.
7533 * alpha-bsd-nat.c (store_registers): Likewise.
7534
7535 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7536
7537 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7538 includes.
7539 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7540 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7541 fill_fpregset): Likewise.
7542
7543 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7544
7545 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7546 nbsd_nat_target instead of inf_ptrace_target.
7547 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7548 nbsd_nat_target.
7549
7550 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7551
7552 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7553 register_t.
7554
7555 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7556
7557 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7558 it to the ptrace call.
7559 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7560 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7561 * arm-nbsd-nat.c (store_register): Likewise.
7562 * arm-nbsd-nat.c (store_regs): Likewise.
7563 * arm-nbsd-nat.c (store_fp_register): Likewise.
7564 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7565
7566 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7567
7568 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7569 nbsd_nat_target instead of inf_ptrace_target.
7570 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7571 nbsd_nat_target.
7572
7573 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7574
7575 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7576 it to the ptrace call.
7577 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7578
7579 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7580
7581 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7582 it to the ptrace call.
7583 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7584
7585 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7586
7587 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7588 gdb_byte *.
7589 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7590
7591 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7592
7593 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7594 instead of inf_ptrace_target.
7595 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7596 nbsd_nat_target.
7597
7598 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7599
7600 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7601 register_t.
7602
7603 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7604
7605 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7606 register_t.
7607
7608 2020-03-14 Kamil Rytarowski <n54@gmx.com>
7609
7610 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7611 register_t.
7612
7613 2020-03-13 Tom Tromey <tom@tromey.com>
7614
7615 * value.h (val_print): Don't declare.
7616 * valprint.h (val_print_array_elements)
7617 (val_print_scalar_formatted, generic_val_print): Don't declare.
7618 * valprint.c (generic_val_print_array): Take a struct value.
7619 (generic_val_print_ptr, generic_val_print_memberptr)
7620 (generic_val_print_bool, generic_val_print_int)
7621 (generic_val_print_char, generic_val_print_complex)
7622 (generic_val_print): Remove.
7623 (generic_value_print): Update.
7624 (do_val_print): Remove unused parameters. Don't call
7625 la_val_print.
7626 (val_print): Remove.
7627 (common_val_print): Update. Don't call value_check_printable.
7628 (val_print_scalar_formatted, val_print_array_elements): Remove.
7629 * rust-lang.c (rust_val_print): Remove.
7630 (rust_language_defn): Update.
7631 * p-valprint.c (pascal_val_print): Remove.
7632 (pascal_value_print_inner): Update.
7633 (pascal_object_print_val_fields, pascal_object_print_val):
7634 Remove.
7635 (pascal_object_print_static_field): Update.
7636 * p-lang.h (pascal_val_print): Don't declare.
7637 * p-lang.c (pascal_language_defn): Update.
7638 * opencl-lang.c (opencl_language_defn): Update.
7639 * objc-lang.c (objc_language_defn): Update.
7640 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7641 * m2-lang.h (m2_val_print): Don't declare.
7642 * m2-lang.c (m2_language_defn): Update.
7643 * language.h (struct language_defn) <la_val_print>: Remove.
7644 * language.c (unk_lang_value_print_inner): Rename. Change
7645 argument types.
7646 (unknown_language_defn, auto_language_defn): Update.
7647 * go-valprint.c (go_val_print): Remove.
7648 * go-lang.h (go_val_print): Don't declare.
7649 * go-lang.c (go_language_defn): Update.
7650 * f-valprint.c (f_val_print): Remove.
7651 * f-lang.h (f_value_print): Don't declare.
7652 * f-lang.c (f_language_defn): Update.
7653 * d-valprint.c (d_val_print): Remove.
7654 * d-lang.h (d_value_print): Don't declare.
7655 * d-lang.c (d_language_defn): Update.
7656 * cp-valprint.c (cp_print_value_fields)
7657 (cp_print_value_fields_rtti, cp_print_value): Remove.
7658 (cp_print_static_field): Update.
7659 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7660 (c_val_print_struct, c_val_print_union, c_val_print_int)
7661 (c_val_print_memberptr, c_val_print): Remove.
7662 * c-lang.h (c_val_print_array, cp_print_value_fields)
7663 (cp_print_value_fields_rtti): Don't declare.
7664 * c-lang.c (c_language_defn, cplus_language_defn)
7665 (asm_language_defn, minimal_language_defn): Update.
7666 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7667 (ada_val_print_enum): Take a struct value.
7668 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7669 (ada_val_print): Remove.
7670 (ada_value_print_1): Update.
7671 (printable_val_type): Remove.
7672 * ada-lang.h (ada_val_print): Don't declare.
7673 * ada-lang.c (ada_language_defn): Update.
7674
7675 2020-03-13 Tom Tromey <tom@tromey.com>
7676
7677 * valprint.c (do_val_print): Update.
7678 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7679 a struct value.
7680 (value_to_value_object_no_release): Declare.
7681 * python/py-value.c (value_to_value_object_no_release): New
7682 function.
7683 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7684 struct value.
7685 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7686 function.
7687 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7688 a struct value.
7689 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7690 Declare.
7691 (gdbscm_apply_val_pretty_printer): Take a struct value.
7692 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7693 value.
7694 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7695 value.
7696 * extension-priv.h (struct extension_language_ops)
7697 <apply_val_pretty_printer>: Take a struct value.
7698 * cp-valprint.c (cp_print_value): Create a struct value.
7699 (cp_print_value): Update.
7700
7701 2020-03-13 Tom Tromey <tom@tromey.com>
7702
7703 * ada-valprint.c (print_field_values): Call common_val_print.
7704
7705 2020-03-13 Tom Tromey <tom@tromey.com>
7706
7707 * ada-valprint.c (val_print_packed_array_elements): Remove
7708 bitoffset and val parameters. Call common_val_print.
7709 (ada_val_print_string): Remove offset, address, and original_value
7710 parameters.
7711 (ada_val_print_array): Update.
7712 (ada_value_print_array): New function.
7713 (ada_value_print_1): Call it.
7714
7715 2020-03-13 Tom Tromey <tom@tromey.com>
7716
7717 * ada-valprint.c (ada_value_print): Use common_val_print.
7718
7719 2020-03-13 Tom Tromey <tom@tromey.com>
7720
7721 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7722
7723 2020-03-13 Tom Tromey <tom@tromey.com>
7724
7725 * ada-valprint.c (ada_value_print_num): New function.
7726 (ada_value_print_1): Use it.
7727
7728 2020-03-13 Tom Tromey <tom@tromey.com>
7729
7730 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7731
7732 2020-03-13 Tom Tromey <tom@tromey.com>
7733
7734 * ada-valprint.c (ada_value_print_ptr): New function.
7735 (ada_value_print_1): Use it.
7736
7737 2020-03-13 Tom Tromey <tom@tromey.com>
7738
7739 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7740 call common_val_print.
7741 (ada_val_print_1): Update.
7742 (ada_value_print_1): New function.
7743 (ada_value_print_inner): Rewrite.
7744
7745 2020-03-13 Tom Tromey <tom@tromey.com>
7746
7747 * cp-valprint.c (cp_print_value_fields): Update.
7748 (cp_print_value): New function.
7749
7750 2020-03-13 Tom Tromey <tom@tromey.com>
7751
7752 * m2-valprint.c (m2_value_print_inner): Use
7753 cp_print_value_fields.
7754 * cp-valprint.c (cp_print_value_fields): New function.
7755 * c-valprint.c (c_value_print_struct): New function.
7756 (c_value_print_inner): Use c_value_print_struct.
7757 * c-lang.h (cp_print_value_fields): Declare.
7758
7759 2020-03-13 Tom Tromey <tom@tromey.com>
7760
7761 * c-valprint.c (c_value_print_array): New function.
7762 (c_value_print_inner): Use it.
7763
7764 2020-03-13 Tom Tromey <tom@tromey.com>
7765
7766 * c-valprint.c (c_value_print_memberptr): New function.
7767 (c_value_print_inner): Use it.
7768
7769 2020-03-13 Tom Tromey <tom@tromey.com>
7770
7771 * c-valprint.c (c_value_print_int): New function.
7772 (c_value_print_inner): Use it.
7773
7774 2020-03-13 Tom Tromey <tom@tromey.com>
7775
7776 * c-valprint.c (c_value_print_ptr): New function.
7777 (c_value_print_inner): Use it.
7778
7779 2020-03-13 Tom Tromey <tom@tromey.com>
7780
7781 * c-valprint.c (c_value_print_inner): Rewrite.
7782
7783 2020-03-13 Tom Tromey <tom@tromey.com>
7784
7785 * valprint.c (generic_value_print_complex): New function.
7786 (generic_value_print): Use it.
7787
7788 2020-03-13 Tom Tromey <tom@tromey.com>
7789
7790 * valprint.c (generic_val_print_float): Don't call
7791 val_print_scalar_formatted.
7792 (generic_val_print, generic_value_print): Update.
7793
7794 2020-03-13 Tom Tromey <tom@tromey.com>
7795
7796 * valprint.c (generic_value_print_char): New function
7797 (generic_value_print): Use it.
7798
7799 2020-03-13 Tom Tromey <tom@tromey.com>
7800
7801 * valprint.c (generic_value_print_int): New function.
7802 (generic_value_print): Use it.
7803
7804 2020-03-13 Tom Tromey <tom@tromey.com>
7805
7806 * valprint.c (generic_value_print_bool): New function.
7807 (generic_value_print): Use it.
7808
7809 2020-03-13 Tom Tromey <tom@tromey.com>
7810
7811 * valprint.c (generic_val_print_func): Simplify.
7812 (generic_val_print, generic_value_print): Update.
7813
7814 2020-03-13 Tom Tromey <tom@tromey.com>
7815
7816 * valprint.c (generic_val_print_flags): Remove.
7817 (generic_val_print, generic_value_print): Update.
7818 (val_print_type_code_flags): Add original_value parameter.
7819
7820 2020-03-13 Tom Tromey <tom@tromey.com>
7821
7822 * valprint.c (generic_val_print): Update.
7823 (generic_value_print): Update.
7824 * valprint.c (generic_val_print_enum): Don't call
7825 val_print_scalar_formatted.
7826
7827 2020-03-13 Tom Tromey <tom@tromey.com>
7828
7829 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7830 * valprint.c (generic_value_print_ptr): New function.
7831
7832 2020-03-13 Tom Tromey <tom@tromey.com>
7833
7834 * valprint.c (generic_value_print): Rewrite.
7835
7836 2020-03-13 Tom Tromey <tom@tromey.com>
7837
7838 * p-valprint.c (pascal_object_print_value_fields)
7839 (pascal_object_print_value): New functions.
7840
7841 2020-03-13 Tom Tromey <tom@tromey.com>
7842
7843 * p-valprint.c (pascal_value_print_inner): Rewrite.
7844
7845 2020-03-13 Tom Tromey <tom@tromey.com>
7846
7847 * f-valprint.c (f_value_print_innner): Rewrite.
7848
7849 2020-03-13 Tom Tromey <tom@tromey.com>
7850
7851 * m2-valprint.c (m2_print_unbounded_array): New overload.
7852 (m2_print_unbounded_array): Update.
7853 (m2_print_array_contents): Take a struct value.
7854 (m2_value_print_inner): Rewrite.
7855
7856 2020-03-13 Tom Tromey <tom@tromey.com>
7857
7858 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7859 (d_value_print_inner): New function.
7860 * d-lang.h (d_value_print_inner): Declare.
7861 * d-lang.c (d_language_defn): Use d_value_print_inner.
7862
7863 2020-03-13 Tom Tromey <tom@tromey.com>
7864
7865 * go-valprint.c (go_value_print_inner): New function.
7866 * go-lang.h (go_value_print_inner): Declare.
7867 * go-lang.c (go_language_defn): Use go_value_print_inner.
7868
7869 2020-03-13 Tom Tromey <tom@tromey.com>
7870
7871 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7872 API.
7873 (rust_val_print): Rewrite.
7874 (rust_value_print_inner): New function, from rust_val_print.
7875 (rust_language_defn): Use rust_value_print_inner.
7876
7877 2020-03-13 Tom Tromey <tom@tromey.com>
7878
7879 * ada-valprint.c (ada_value_print_inner): New function.
7880 * ada-lang.h (ada_value_print_inner): Declare.
7881 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7882
7883 2020-03-13 Tom Tromey <tom@tromey.com>
7884
7885 * f-valprint.c (f_value_print_innner): New function.
7886 * f-lang.h (f_value_print_innner): Declare.
7887 * f-lang.c (f_language_defn): Use f_value_print_innner.
7888
7889 2020-03-13 Tom Tromey <tom@tromey.com>
7890
7891 * p-valprint.c (pascal_value_print_inner): New function.
7892 * p-lang.h (pascal_value_print_inner): Declare.
7893 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7894
7895 2020-03-13 Tom Tromey <tom@tromey.com>
7896
7897 * m2-valprint.c (m2_value_print_inner): New function.
7898 * m2-lang.h (m2_value_print_inner): Declare.
7899 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7900
7901 2020-03-13 Tom Tromey <tom@tromey.com>
7902
7903 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7904 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7905 * c-valprint.c (c_value_print_inner): New function.
7906 * c-lang.h (c_value_print_inner): Declare.
7907 * c-lang.c (c_language_defn, cplus_language_defn)
7908 (asm_language_defn, minimal_language_defn): Use
7909 c_value_print_inner.
7910
7911 2020-03-13 Tom Tromey <tom@tromey.com>
7912
7913 * p-valprint.c (pascal_object_print_value_fields): Now static.
7914 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7915
7916 2020-03-13 Tom Tromey <tom@tromey.com>
7917
7918 * c-valprint.c (c_val_print_array): Simplify.
7919
7920 2020-03-13 Tom Tromey <tom@tromey.com>
7921
7922 * valprint.c (value_print_array_elements): New function.
7923 * valprint.h (value_print_array_elements): Declare.
7924
7925 2020-03-13 Tom Tromey <tom@tromey.com>
7926
7927 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7928 * mips-tdep.c (mips_print_register): Use
7929 value_print_scalar_formatted.
7930
7931 2020-03-13 Tom Tromey <tom@tromey.com>
7932
7933 * valprint.h (value_print_scalar_formatted): Declare.
7934 * valprint.c (value_print_scalar_formatted): New function.
7935
7936 2020-03-13 Tom Tromey <tom@tromey.com>
7937
7938 * valprint.h (generic_value_print): Declare.
7939 * valprint.c (generic_value_print): New function.
7940
7941 2020-03-13 Tom Tromey <tom@tromey.com>
7942
7943 * valprint.c (do_val_print): Call la_value_print_inner, if
7944 available.
7945 * rust-lang.c (rust_language_defn): Update.
7946 * p-lang.c (pascal_language_defn): Update.
7947 * opencl-lang.c (opencl_language_defn): Update.
7948 * objc-lang.c (objc_language_defn): Update.
7949 * m2-lang.c (m2_language_defn): Update.
7950 * language.h (struct language_defn) <la_value_print_inner>: New
7951 member.
7952 * language.c (unknown_language_defn, auto_language_defn): Update.
7953 * go-lang.c (go_language_defn): Update.
7954 * f-lang.c (f_language_defn): Update.
7955 * d-lang.c (d_language_defn): Update.
7956 * c-lang.c (c_language_defn, cplus_language_defn)
7957 (asm_language_defn, minimal_language_defn): Update.
7958 * ada-lang.c (ada_language_defn): Update.
7959
7960 2020-03-13 Tom Tromey <tom@tromey.com>
7961
7962 * c-valprint.c (c_value_print): Use common_val_print.
7963
7964 2020-03-13 Tom Tromey <tom@tromey.com>
7965
7966 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7967
7968 2020-03-13 Tom Tromey <tom@tromey.com>
7969
7970 * f-valprint.c (f77_print_array_1, f_val_print): Use
7971 common_val_print.
7972
7973 2020-03-13 Tom Tromey <tom@tromey.com>
7974
7975 * riscv-tdep.c (riscv_print_one_register_info): Use
7976 common_val_print.
7977
7978 2020-03-13 Tom Tromey <tom@tromey.com>
7979
7980 * mi/mi-main.c (output_register): Use common_val_print.
7981
7982 2020-03-13 Tom Tromey <tom@tromey.com>
7983
7984 * infcmd.c (default_print_one_register_info): Use
7985 common_val_print.
7986
7987 2020-03-13 Tom Tromey <tom@tromey.com>
7988
7989 * valprint.h (common_val_print_checked): Declare.
7990 * valprint.c (common_val_print_checked): New function.
7991 * stack.c (print_frame_arg): Use common_val_print_checked.
7992
7993 2020-03-13 Tom Tromey <tom@tromey.com>
7994
7995 * valprint.c (do_val_print): New function, from val_print.
7996 (val_print): Use do_val_print.
7997 (common_val_print): Use do_val_print.
7998
7999 2020-03-13 Tom Tromey <tom@tromey.com>
8000
8001 * valprint.c (value_print): Use scoped_value_mark.
8002
8003 2020-03-13 Tom de Vries <tdevries@suse.de>
8004
8005 PR symtab/25646
8006 * psymtab.c (partial_symtab::partial_symtab): Don't set
8007 globals_offset and statics_offset. Push element onto
8008 current_global_psymbols and current_static_psymbols stacks.
8009 (concat): New function.
8010 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8011 element from current_global_psymbols and current_static_psymbols
8012 stacks. Concat popped elements to global_psymbols and
8013 static_symbols.
8014 (add_psymbol_to_list): Use current_global_psymbols and
8015 current_static_psymbols stacks.
8016 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8017 current_static_psymbols fields.
8018
8019 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8020
8021 * corelow.c (sniff_core_bfd): Remove.
8022 (class core_target) <m_core_vec>: Remove.
8023 (core_target::core_target): Update.
8024 (core_file_fns): Remove.
8025 (deprecated_add_core_fns): Remove.
8026 (default_core_sniffer): Remove.
8027 (sniff_core_bfd): Remove.
8028 (default_check_format): Remove.
8029 (gdb_check_format): Remove.
8030 (core_target_open): Update.
8031 (core_target::get_core_register_section): Update.
8032 (get_core_registers_cb): Update.
8033 (core_target::fetch_registers): Update.
8034 * gdbcore.h (struct core_fns): Remove.
8035 (deprecated_add_core_fns): Remove.
8036 (default_core_sniffer): Remove.
8037 (default_check_format): Remove.
8038
8039 2020-03-12 Tom Tromey <tom@tromey.com>
8040
8041 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8042 CORE_ADDR.
8043 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8044
8045 2020-03-12 Tom Tromey <tom@tromey.com>
8046
8047 * remote.c (remote_target::download_tracepoint)
8048 (remote_target::enable_tracepoint)
8049 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8050 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8051 sprintf_vma.
8052
8053 2020-03-12 Tom Tromey <tom@tromey.com>
8054
8055 * symfile-mem.c: Update CORE_ADDR size assert.
8056
8057 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8058
8059 * selftest.m4: Move to gdbsupport/.
8060 * acinclude.m4: Update path to selftest.m4.
8061
8062 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8063
8064 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8065 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8066 gdbarch-selfselftests.c and selftest-arch.c.
8067 (SUBDIR_UNITTESTS_OBS): Rename to...
8068 (SELFTESTS_OBS): ... this.
8069 (COMMON_SFILES): Remove disasm-selftests.c and
8070 gdbarch-selftests.c.
8071 * configure.ac: Don't add selftest-arch.{c,o} to
8072 CONFIG_{SRCS,OBS}.
8073 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8074 preprocessor conditions.
8075
8076 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8077
8078 * configure.ac: Don't source bfd/development.sh.
8079 * selftest.m4: Modify comment.
8080 * configure: Re-generate.
8081
8082 2020-03-12 Simon Marchi <simon.marchi@efficios.com>
8083
8084 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8085 not "true" or "false".
8086 * configure: Re-generate.
8087
8088 2020-03-12 Christian Biesinger <cbiesinger@google.com>
8089
8090 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8091 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8092 renamed to arm_nbsd_supply_gregset.
8093 (fetch_register): Update to call arm_nbsd_supply_gregset.
8094 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8095 (arm_netbsd_nat_target::fetch_registers): Update.
8096 (fetch_elfcore_registers): Removed.
8097 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8098 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8099 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8100 not require NetBSD system headers.
8101 (arm_nbsd_regset): New struct.
8102 (arm_nbsd_iterate_over_regset_sections): New function.
8103 (arm_netbsd_init_abi_common): Updated to call
8104 set_gdbarch_iterate_over_regset_sections.
8105 * arm-nbsd-tdep.h: New file.
8106
8107 2020-03-11 Kevin Buettner <kevinb@redhat.com>
8108
8109 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8110 recursion.
8111
8112 2020-03-11 Simon Marchi <simon.marchi@efficios.com>
8113
8114 * configure: Re-generate.
8115
8116 2020-03-11 Tom Tromey <tromey@adacore.com>
8117
8118 * ada-typeprint.c (print_choices): Fix comment.
8119
8120 2020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8121
8122 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8123 previous item in the list, when the list has no items.
8124
8125 2020-03-11 Tom de Vries <tdevries@suse.de>
8126
8127 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8128 PROP_LOCLIST handling code.
8129
8130 2020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8131
8132 * buildsym-legacy.c (record_line): Pass extra parameter to
8133 record_line.
8134 * buildsym.c (buildsym_compunit::record_line): Take an extra
8135 parameter, reduce duplication in the line table, and record the
8136 is_stmt flag in the line table.
8137 * buildsym.h (buildsym_compunit::record_line): Add extra
8138 parameter.
8139 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8140 non-statement lines.
8141 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8142 this to the symtab builder.
8143 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8144 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8145 through to dwarf_record_line_1.
8146 * infrun.c (process_event_stop_test): When stepping, don't stop at
8147 a non-statement instruction, and only refresh the step info when
8148 we land in the middle of a line's range. Also add an extra
8149 comment.
8150 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8151 field.
8152 * record-btrace.c (btrace_find_line_range): Only record lines
8153 marked as is-statement.
8154 * stack.c (frame_show_address): Show the frame address if we are
8155 in a non-statement sal.
8156 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8157 (maintenance_print_one_line_table): Print a header for the is_stmt
8158 column, and include is_stmt information in the output.
8159 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8160 preference to non-statements.
8161 (find_pcs_for_symtab_line): Prefer is-statement entries.
8162 (find_line_common): Likewise.
8163 * symtab.h (struct linetable_entry): Add is_stmt field.
8164 (struct symtab_and_line): Likewise.
8165 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8166 arranging the line table.
8167
8168 2020-03-07 Tom de Vries <tdevries@suse.de>
8169
8170 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8171 DIE.
8172
8173 2020-03-07 Tom Tromey <tom@tromey.com>
8174
8175 * valops.c (value_literal_complex): Remove obsolete comment.
8176 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8177 comment.
8178
8179 2020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8180
8181 * infrun.h: Forward-declare thread_info.
8182 (set_step_info): Add thread_info parameter, add doc.
8183 * infrun.c (set_step_info): Add thread_info parameter, move doc
8184 to header.
8185 * infrun.c (process_event_stop_test): Pass thread to
8186 set_step_info call.
8187 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8188 set_step_info.
8189 (prepare_one_step): Add thread_info parameter, pass it to
8190 set_step_frame and prepare_one_step (recursive) call.
8191 (step_1): Pass thread to prepare_one_step call.
8192 (step_command_fsm::should_stop): Pass thread to
8193 prepare_one_step.
8194 (until_next_fsm): Pass thread to set_step_frame call.
8195 (finish_command): Pass thread to set_step_info call.
8196
8197 2020-03-06 Hannes Domani <ssbssa@yahoo.de>
8198
8199 * windows-tdep.c (windows_solib_create_inferior_hook):
8200 Check if inferior is running.
8201
8202 2020-03-06 Tom de Vries <tdevries@suse.de>
8203
8204 * NEWS: Fix "the the".
8205 * ctfread.c: Same.
8206
8207 2020-03-06 Tom de Vries <tdevries@suse.de>
8208
8209 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8210
8211 2020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8212
8213 * .dir-locals.el: Add a comment referencing the other copies of
8214 this file.
8215
8216 2020-03-05 John Baldwin <jhb@FreeBSD.org>
8217
8218 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8219 psargs.
8220
8221 2020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8222
8223 * .gitattributes: New file.
8224
8225 2020-03-04 Tom Tromey <tom@tromey.com>
8226
8227 * symmisc.c (print_symbol_bcache_statistics)
8228 (print_objfile_statistics): Update.
8229 * symfile.c (allocate_symtab): Use intern.
8230 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8231 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8232 macro_cache>: Remove.
8233 <string_cache>: New member.
8234 (struct objfile) <intern>: New methods.
8235 * elfread.c (elf_symtab_read): Use intern.
8236 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8237 (dwarf2_compute_name, dwarf2_physname)
8238 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8239 names.
8240 (guess_partial_die_structure_name): Update.
8241 (partial_die_info::fixup): Intern name.
8242 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8243 name.
8244 (dwarf2_name): Intern name. Update.
8245 * buildsym.c (buildsym_compunit::get_macro_table): Use
8246 string_cache.
8247
8248 2020-03-04 Tom Tromey <tom@tromey.com>
8249
8250 * jit.c (bfd_open_from_target_memory): Make "target" const.
8251 * corefile.c (gnutarget): Now const.
8252 * gdbcore.h (gnutarget): Now const.
8253
8254 2020-03-04 Hannes Domani <ssbssa@yahoo.de>
8255
8256 * NEWS: Mention support for WOW64 processes.
8257 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8258 (amd64_windows_segment_register_p): Remove static.
8259 (_initialize_amd64_windows_nat): Update.
8260 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8261 * i386-windows-nat.c (context_offset): Update.
8262 (i386_mappings): Rename and remove static.
8263 (i386_windows_segment_register_p): Remove static.
8264 (_initialize_i386_windows_nat): Update.
8265 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8266 (STATUS_WX86_SINGLE_STEP): New macro.
8267 (EnumProcessModulesEx): New macro.
8268 (Wow64SuspendThread): New macro.
8269 (Wow64GetThreadContext): New macro.
8270 (Wow64SetThreadContext): New macro.
8271 (Wow64GetThreadSelectorEntry): New macro.
8272 (windows_set_context_register_offsets): Add static.
8273 (windows_set_segment_register_p): Likewise.
8274 (windows_add_thread): Adapt for WOW64 processes.
8275 (windows_fetch_one_register): Likewise.
8276 (windows_nat_target::fetch_registers): Likewise.
8277 (windows_store_one_register): Likewise.
8278 (display_selector): Likewise.
8279 (display_selectors): Likewise.
8280 (handle_exception): Likewise.
8281 (windows_continue): Likewise.
8282 (windows_nat_target::resume): Likewise.
8283 (windows_add_all_dlls): Likewise.
8284 (do_initial_windows_stuff): Likewise.
8285 (windows_nat_target::attach): Likewise.
8286 (windows_get_exec_module_filename): Likewise.
8287 (windows_nat_target::create_inferior): Likewise.
8288 (windows_xfer_siginfo): Likewise.
8289 (_initialize_loadable): Initialize Wow64SuspendThread,
8290 Wow64GetThreadContext, Wow64SetThreadContext,
8291 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8292 * windows-nat.h (windows_set_context_register_offsets):
8293 Remove declaration.
8294 (windows_set_segment_register_p): Likewise.
8295 (i386_windows_segment_register_p): Add declaration.
8296 (amd64_windows_segment_register_p): Likewise.
8297
8298 2020-03-04 Luis Machado <luis.machado@linaro.org>
8299
8300 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8301 in "info registers" for AArch64/ARM.
8302
8303 The change caused "info registers" to not print GPR's.
8304
8305 gdb/ChangeLog:
8306
8307 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8308
8309 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8310 when reg->group is empty and reggroup is not.
8311
8312 2020-03-03 Tom Tromey <tromey@adacore.com>
8313
8314 * dwarf2/frame.c (struct dwarf2_frame_cache)
8315 <checked_tailcall_bottom, entry_cfa_sp_offset,
8316 entry_cfa_sp_offset_p>: Remove members.
8317 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8318 (dwarf2_frame_prev_register): Don't call
8319 dwarf2_tailcall_sniffer_first.
8320 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8321 * frame-unwind.c (add_unwinder): New fuction.
8322 (frame_unwind_init): Use it. Add tailcall unwinder.
8323
8324 2020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8325 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8326
8327 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8328 value should be printed as true.
8329
8330 2020-03-03 Hannes Domani <ssbssa@yahoo.de>
8331
8332 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8333 (windows_init_abi): Set and use windows_so_ops.
8334
8335 2020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8336
8337 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8338 when verifying if dealing with a convenience variable.
8339
8340 2020-03-03 Luis Machado <luis.machado@linaro.org>
8341
8342 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8343
8344 2020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8345
8346 * infrun.c (gdbarch_supports_displaced_stepping): New.
8347 (use_displaced_stepping): Break up conditions in smaller pieces.
8348 Use gdbarch_supports_displaced_stepping.
8349 (displaced_step_prepare_throw): Use
8350 gdbarch_supports_displaced_stepping.
8351
8352 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8353
8354 * NEWS: Mention new behaviour of the history filename.
8355 * top.c (write_history_p): Add comment.
8356 (show_write_history_p): Add header comment, give a different
8357 message when history writing is on, but the history filename is
8358 empty.
8359 (history_filename): Add comment.
8360 (history_filename_empty): New function.
8361 (show_history_filename): Add header comment, give a different
8362 message when the filename is empty.
8363 (init_history): Compare history_filename against nullptr, and only
8364 read history if the filename is not empty.
8365 (set_history_filename): Add header comment, and only make
8366 non-empty filenames absolute.
8367 (init_main): Make the filename argument to 'set history filename'
8368 optional.
8369
8370 2020-03-02 Christian Biesinger <cbiesinger@google.com>
8371
8372 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8373 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8374 (fetch_fp_register): Update.
8375 (fetch_fp_regs): Update.
8376 (store_fp_register): Update.
8377 (store_fp_regs): Update.
8378 (arm_netbsd_nat_target::read_description): New function.
8379 (fetch_elfcore_registers): Update.
8380
8381 2020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8382
8383 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8384 general_thread if the stop reply is missing a thread-id.
8385 (remote_target::process_stop_reply): Use the first non-exited
8386 thread if the target didn't pass a thread-id.
8387 * infrun.c (do_target_wait): Move call to
8388 switch_to_inferior_no_thread to ....
8389 (do_target_wait_1): ... here.
8390
8391 2020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8392
8393 * debuginfod-support.c: Include defs.h first.
8394
8395 2020-02-28 Tom de Vries <tdevries@suse.de>
8396
8397 * symfile.c (set_initial_language): Use default language for lookup.
8398
8399 2020-02-28 Simon Marchi <simon.marchi@efficios.com>
8400
8401 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8402 reader variable, pass `this` to read_cutu_die_from_dwo.
8403
8404 2020-02-27 Aaron Merey <amerey@redhat.com>
8405
8406 * source.c (open_source_file): Check for nullptr when computing
8407 srcpath.
8408
8409 2020-02-27 Tom Tromey <tromey@adacore.com>
8410
8411 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8412 member.
8413 (dwarf2_add_field): Don't update nfields.
8414 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8415
8416 2020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8417
8418 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8419 abs.
8420
8421 2020-02-26 Tom Tromey <tom@tromey.com>
8422
8423 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8424 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8425 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8426 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8427 per_cu_data.
8428
8429 2020-02-26 Tom Tromey <tom@tromey.com>
8430
8431 * dwarf2/index-write.c (psym_index_map): Change type.
8432 (add_address_entry_worker, write_one_signatured_type)
8433 (recursively_count_psymbols, recursively_write_psymbols)
8434 (class debug_names, psyms_seen_size, write_gdbindex)
8435 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8436
8437 2020-02-26 Aaron Merey <amerey@redhat.com>
8438
8439 * Makefile.in: Handle optional debuginfod support.
8440 * NEWS: Update.
8441 * README: Add --with-debuginfod summary.
8442 * config.in: Regenerate.
8443 * configure: Regenerate.
8444 * configure.ac: Handle optional debuginfod support.
8445 * debuginfod-support.c: debuginfod helper functions.
8446 * debuginfod-support.h: Ditto.
8447 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8448 summary.
8449 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8450 when a dwz file cannot be found.
8451 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8452 debuginfo file cannot be found.
8453 * source.c (open_source_file): Query debuginfod servers when a
8454 source file cannot be found.
8455 * top.c (print_gdb_configuration): Include
8456 --{with,without}-debuginfod in the output.
8457
8458 2020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8459
8460 * thread.c (thr_try_catch_cmd): Print thread name.
8461
8462 2020-02-26 Simon Marchi <simon.marchi@efficios.com>
8463
8464 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8465 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8466 dwarf2_fetch_die_type_sect_off): Move to...
8467 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8468 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8469 dwarf2_fetch_die_type_sect_off): ... here.
8470 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8471 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8472 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8473
8474 2020-02-26 Tom de Vries <tdevries@suse.de>
8475
8476 PR gdb/25603
8477 * symfile.c (set_initial_language): Exit-early if
8478 language_mode == language_mode_manual.
8479
8480 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8481
8482 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8483 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8484 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8485
8486 2020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8487
8488 * gdbtypes.c (create_array_type_with_stride): Handle negative
8489 array strides.
8490 * valarith.c (value_subscripted_rvalue): Likewise.
8491
8492 2020-02-25 Luis Machado <luis.machado@linaro.org>
8493
8494 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8495
8496 2020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8497
8498 * loc.h (dwarf2_get_die_type): Move to...
8499 * read.h (dwarf2_get_die_type): ... here.
8500 * read.c (dwarf2_get_die_type): Move doc to header.
8501
8502 2020-02-25 Joel Brobecker <brobecker@adacore.com>
8503
8504 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8505 'gnulib/Makefile.in' to the list.
8506
8507 2020-02-24 Tom Tromey <tom@tromey.com>
8508
8509 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8510 Remove.
8511 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8512 XOBNEWVEC.
8513
8514 2020-02-24 Tom Tromey <tom@tromey.com>
8515
8516 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8517 New method.
8518 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8519 (dw2_do_instantiate_symtab, dw2_get_file_names)
8520 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8521
8522 2020-02-24 Tom Tromey <tom@tromey.com>
8523
8524 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8525 make_scoped_restore.
8526 (dwarf2_psymtab::read_symtab): Don't clear
8527 reading_partial_symbols.
8528
8529 2020-02-24 Tom de Vries <tdevries@suse.de>
8530
8531 PR gdb/25592
8532 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8533
8534 2020-02-24 Tom de Vries <tdevries@suse.de>
8535
8536 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8537 commands layout next/prev/regs.
8538
8539 2020-02-22 Tom Tromey <tom@tromey.com>
8540
8541 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8542 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8543
8544 2020-02-22 Tom Tromey <tom@tromey.com>
8545
8546 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8547
8548 2020-02-22 Tom Tromey <tom@tromey.com>
8549
8550 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8551 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8552 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8553 * tui/tui.c (_initialize_tui): Add usage text.
8554
8555 2020-02-22 Tom Tromey <tom@tromey.com>
8556
8557 * tui/tui-win.c (tui_set_focus_command)
8558 (tui_set_win_height_command): Use error_no_arg.
8559 (_initialize_tui_win): Update help text.
8560 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8561
8562 2020-02-22 Tom Tromey <tom@tromey.com>
8563
8564 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8565 * tui/tui-disasm.h (struct tui_disasm_window)
8566 <display_start_addr>: Declare.
8567 * tui/tui-source.h (struct tui_source_window)
8568 <display_start_addr>: Declare.
8569 * tui/tui-winsource.h (struct tui_source_window_base)
8570 <show_source_line, display_start_addr>: New methods.
8571 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8572 Rename and move to protected section.
8573 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8574 (tui_source_window_base::do_erase_source_content): Update.
8575 (tui_source_window_base::show_source_line): Now a method.
8576 (tui_source_window_base::show_source_content)
8577 (tui_source_window_base::tui_source_window_base)
8578 (tui_source_window_base::rerender)
8579 (tui_source_window_base::refill)
8580 (tui_source_window_base::do_scroll_horizontal)
8581 (tui_source_window_base::set_is_exec_point_at)
8582 (tui_source_window_base::update_breakpoint_info)
8583 (tui_source_window_base::update_exec_info): Update.
8584 * tui/tui-source.c (tui_source_window::set_contents)
8585 (tui_source_window::showing_source_p)
8586 (tui_source_window::do_scroll_vertical)
8587 (tui_source_window::location_matches_p)
8588 (tui_source_window::line_is_displayed): Update.
8589 (tui_source_window::display_start_addr): New method.
8590 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8591 (tui_disasm_window::do_scroll_vertical)
8592 (tui_disasm_window::location_matches_p): Update.
8593 (tui_disasm_window::display_start_addr): New method.
8594
8595 2020-02-22 Tom Tromey <tom@tromey.com>
8596
8597 * NEWS: Add entry for gdb.register_window_type.
8598 * tui/tui-layout.h (window_factory): New typedef.
8599 (tui_register_window): Declare.
8600 * tui/tui-layout.c (saved_tui_windows): New global.
8601 (tui_apply_current_layout): Use it.
8602 (tui_register_window): New function.
8603 * python/python.c (do_start_initialization): Call
8604 gdbpy_initialize_tui.
8605 (python_GdbMethods): Add "register_window_type" function.
8606 * python/python-internal.h (gdbpy_register_tui_window)
8607 (gdbpy_initialize_tui): Declare.
8608 * python/py-tui.c: New file.
8609 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8610
8611 2020-02-22 Tom Tromey <tom@tromey.com>
8612
8613 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8614
8615 2020-02-22 Tom Tromey <tom@tromey.com>
8616
8617 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8618 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8619 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8620 (tui_set_win_focus_to): Move from tui-win.c.
8621
8622 2020-02-22 Tom Tromey <tom@tromey.com>
8623
8624 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8625 functions.
8626 (known_window_types): New global.
8627 (tui_get_window_by_name): Reimplement.
8628 (initialize_known_windows): New function.
8629 (validate_window_name): Rewrite.
8630 (_initialize_tui_layout): Call initialize_known_windows.
8631
8632 2020-02-22 Tom Tromey <tom@tromey.com>
8633
8634 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8635 Remove constants.
8636 * tui/tui-winsource.h (struct tui_source_window_base)
8637 <tui_source_window_base>: Remove parameter.
8638 * tui/tui-winsource.c
8639 (tui_source_window_base::tui_source_window_base): Remove
8640 parameter.
8641 (tui_source_window_base::refill): Update.
8642 * tui/tui-stack.h (struct tui_locator_window)
8643 <tui_locator_window>: Update.
8644 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8645 Default the constructor.
8646 * tui/tui-regs.h (struct tui_data_item_window)
8647 <tui_data_item_window>: Default the constructor.
8648 (struct tui_data_window) <tui_data_window>: Likewise.
8649 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8650 Default the constructor.
8651 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8652 Default the constructor.
8653 <type>: Remove.
8654 (struct tui_win_info) <tui_win_info>: Default the constructor.
8655 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8656 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8657 Default the constructor.
8658
8659 2020-02-22 Tom Tromey <tom@tromey.com>
8660
8661 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8662 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8663 * tui/tui-win.c (tui_resize_all): Don't call
8664 tui_delete_invisible_windows.
8665 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8666 done.
8667 (tui_set_layout): Update.
8668 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8669 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8670 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8671
8672 2020-02-22 Tom Tromey <tom@tromey.com>
8673
8674 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8675 correctly.
8676
8677 2020-02-22 Tom Tromey <tom@tromey.com>
8678
8679 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8680
8681 2020-02-22 Tom Tromey <tom@tromey.com>
8682
8683 * tui/tui-winsource.h (struct tui_source_window_iterator)
8684 <inner_iterator>: New etytypedef.
8685 <tui_source_window_iterator>: Take "end" parameter.
8686 <tui_source_window_iterator>: Take iterator.
8687 <operator*, advance>: Update.
8688 <m_iter>: Change type.
8689 <m_end>: New field.
8690 (struct tui_source_windows) <begin, end>: Update.
8691 * tui/tui-layout.c (tui_windows): New global.
8692 (tui_apply_current_layout): Clear tui_windows.
8693 (tui_layout_window::apply): Update tui_windows.
8694 * tui/tui-data.h (tui_windows): Declare.
8695 (all_tui_windows): Now inline function.
8696 (class tui_window_iterator, struct all_tui_windows): Remove.
8697
8698 2020-02-22 Tom Tromey <tom@tromey.com>
8699
8700 PR tui/17850:
8701 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8702 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8703 "height" argument.
8704 (class tui_layout_window) <get_sizes>: Likewise.
8705 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8706 argument.
8707 <get_sizes>: Add "height" argument.
8708 <m_vertical>: New field.
8709 * tui/tui-layout.c (tui_layout_split::clone): Update.
8710 (tui_layout_split::get_sizes): Add "height" argument.
8711 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8712 (tui_new_layout_command): Parse "-horizontal".
8713 (_initialize_tui_layout): Update help string.
8714 (tui_layout_split::specification): Add "-horizontal" when needed.
8715 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8716 argument.
8717 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8718 New methods.
8719
8720 2020-02-22 Tom Tromey <tom@tromey.com>
8721
8722 * tui/tui-layout.h (enum tui_adjust_result): New.
8723 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8724 (class tui_layout_window) <adjust_size>: Return
8725 tui_adjust_result. Rewrite.
8726 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8727 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8728
8729 2020-02-22 Tom Tromey <tom@tromey.com>
8730
8731 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8732 parameter and return types.
8733 (class tui_layout_base) <specification>: Add "depth".
8734 (class tui_layout_window) <specification>: Add "depth".
8735 (class tui_layout_split) <specification>: Add "depth".
8736 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8737 and return types.
8738 (tui_new_layout_command): Parse sub-layouts.
8739 (_initialize_tui_layout): Update help string.
8740 (tui_layout_window::specification): Add "depth".
8741 (add_layout_command): Update.
8742
8743 2020-02-22 Tom Tromey <tom@tromey.com>
8744
8745 * NEWS: Add "tui new-layout" item.
8746 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8747 Add new-layout command to help text.
8748 (validate_window_name): New function.
8749 (tui_new_layout_command): New function.
8750 (_initialize_tui_layout): Register "new-layout".
8751 (tui_layout_window::specification): New method.
8752 (tui_layout_window::specification): New method.
8753 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8754 method.
8755 (class tui_layout_window) <specification>: New method.
8756 (class tui_layout_split) <specification>: New method.
8757
8758 2020-02-22 Tom Tromey <tom@tromey.com>
8759
8760 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8761 * tui/tui-win.c (window_name_completer): Update comment.
8762 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8763 Declare method.
8764 (class tui_layout_window) <replace_window>: Likewise.
8765 (class tui_layout_split) <replace_window>: Likewise.
8766 (tui_set_layout): Don't declare.
8767 (tui_set_initial_layout): Declare function.
8768 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8769 (asm_regs_layout): New globals.
8770 (tui_current_layout, show_layout): Remove.
8771 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8772 (find_layout, tui_apply_layout): New function.
8773 (layout_completer): Remove.
8774 (tui_next_layout): Reimplement.
8775 (tui_next_layout_command): New function.
8776 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8777 (tui_regs_layout): Reimplement.
8778 (tui_regs_layout_command): New function.
8779 (extract_display_start_addr): Rewrite.
8780 (next_layout, prev_layout): Remove.
8781 (tui_layout_window::replace_window): New method.
8782 (tui_layout_split::replace_window): New method.
8783 (destroy_layout): New function.
8784 (layout_list): New global.
8785 (add_layout_command): New function.
8786 (initialize_layouts): Update.
8787 (tui_layout_command): New function.
8788 (_initialize_tui_layout): Install "layout" commands.
8789 * tui/tui-data.h (enum tui_layout_type): Remove.
8790 (tui_current_layout): Don't declare.
8791
8792 2020-02-22 Tom Tromey <tom@tromey.com>
8793
8794 * tui/tui-regs.c (tui_reg_layout): Remove.
8795 (tui_reg_command): Use tui_regs_layout.
8796 * tui/tui-layout.h (tui_reg_command): Declare.
8797 * tui/tui-layout.c (tui_reg_command): New function.
8798
8799 2020-02-22 Tom Tromey <tom@tromey.com>
8800
8801 * tui/tui.c (tui_rl_delete_other_windows): Call
8802 tui_remove_some_windows.
8803 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8804 Declare method.
8805 (class tui_layout_window) <remove_windows>: New method.
8806 (class tui_layout_split) <remove_windows>: Declare.
8807 (tui_remove_some_windows): Declare.
8808 * tui/tui-layout.c (tui_remove_some_windows): New function.
8809 (tui_layout_split::remove_windows): New method.
8810
8811 2020-02-22 Tom Tromey <tom@tromey.com>
8812
8813 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8814 * tui/tui-layout.h (tui_next_layout): Declare.
8815 * tui/tui-layout.c (tui_next_layout): New function.
8816
8817 2020-02-22 Tom Tromey <tom@tromey.com>
8818
8819 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8820 correct coordinates.
8821
8822 2020-02-22 Tom Tromey <tom@tromey.com>
8823
8824 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8825 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8826 DATA_WIN case.
8827
8828 2020-02-22 Tom Tromey <tom@tromey.com>
8829
8830 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8831 TUI_DISASM_WIN, not tui_win_list.
8832
8833 2020-02-22 Tom Tromey <tom@tromey.com>
8834
8835 * valprint.c (generic_val_print_enum_1)
8836 (val_print_type_code_flags): Style member names.
8837 * rust-lang.c (val_print_struct, rust_print_enum)
8838 (rust_print_struct_def, rust_internal_print_type): Style member
8839 names.
8840 * p-valprint.c (pascal_object_print_value_fields): Style member
8841 names. Only call fprintf_symbol_filtered for static members.
8842 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8843 * f-valprint.c (f_val_print): Style member names.
8844 * f-typeprint.c (f_type_print_base): Style member names.
8845 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8846 call fprintf_symbol_filtered for static members.
8847 (cp_print_class_member): Style member names.
8848 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8849 member names.
8850 * ada-valprint.c (ada_print_scalar): Style enum names.
8851 (ada_val_print_enum): Likewise.
8852 * ada-typeprint.c (print_enum_type): Style enum names.
8853
8854 2020-02-21 Tom Tromey <tom@tromey.com>
8855
8856 * psympriv.h (struct partial_symtab): Update comment.
8857
8858 2020-02-21 Tom Tromey <tromey@adacore.com>
8859
8860 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8861 type is CORE_ADDR.
8862
8863 2020-02-21 Tom de Vries <tdevries@suse.de>
8864
8865 PR gdb/25534
8866 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8867 if dependencies[i]->user != NULL.
8868
8869 2020-02-21 Ali Tamur <tamur@google.com>
8870
8871 * dwarf2/read.c (dwarf2_name): Add null check.
8872
8873 2020-02-20 Tom Tromey <tom@tromey.com>
8874
8875 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8876 ">=", in binary search.
8877 (dwarf2_find_containing_comp_unit): New overload.
8878 (run_test): New self-test.
8879 (_initialize_dwarf2_read): Register new test.
8880
8881 2020-02-20 Nelson Chu <nelson.chu@sifive.com>
8882
8883 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8884 * riscv-tdep.h: Likewise.
8885 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8886 rv32-only CSR.
8887 * features/riscv/64bit-csr.xml: Regenerated.
8888
8889 2020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8890 Tom Tromey <tom@tromey.com>
8891
8892 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8893 of 'fputc_unfiltered'.
8894 (putchar_unfiltered): Call 'fputc_unfiltered'.
8895 (fputc_unfiltered): Call 'fputs_unfiltered'.
8896
8897 2020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8898
8899 * config.in: Regenerate.
8900 * configure: Regenerate.
8901 * configure.ac: Add --with-python-libdir option.
8902 * main.c: Use WITH_PYTHON_LIBDIR.
8903
8904 2020-02-19 Tom Tromey <tom@tromey.com>
8905
8906 * symtab.c (general_symbol_info::compute_and_set_names): Use
8907 obstack_strndup. Simplify call to symbol_set_demangled_name.
8908
8909 2020-02-19 Simon Marchi <simon.marchi@efficios.com>
8910
8911 * dwarf2/read.c (allocate_signatured_type_table,
8912 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8913 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8914 Remove objfile parameter, update all callers.
8915
8916 2020-02-19 Doug Evans <dje@google.com>
8917
8918 PR rust/25535
8919 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8920 rust_enum_variant calculation.
8921
8922 2020-02-19 Tom Tromey <tromey@adacore.com>
8923
8924 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8925
8926 2020-02-19 Tom Tromey <tromey@adacore.com>
8927
8928 * ada-lang.c (cache_symbol): Use obstack_strdup.
8929
8930 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8931
8932 * configure: Regenerate.
8933
8934 2020-02-19 Tom Tromey <tromey@adacore.com>
8935
8936 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8937 NULL check.
8938
8939 2020-02-19 Maciej W. Rozycki <macro@wdc.com>
8940
8941 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8942
8943 2020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8944
8945 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8946 if GDBSERVER is not defined.
8947 (riscv_tdesc_cache): Likewise, also store const target_desc.
8948 (STATIC_IN_GDB): Define.
8949 (riscv_create_target_description): Update declaration with
8950 STATIC_IN_GDB.
8951 (riscv_lookup_target_description): New function, only define if
8952 GDBSERVER is not defined.
8953 * arch/riscv.h (riscv_create_target_description): Declare only
8954 when GDBSERVER is defined.
8955 (riscv_lookup_target_description): New declaration when GDBSERVER
8956 is not defined.
8957 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8958 (riscv_linux_read_features): ...this, and return
8959 riscv_gdbarch_features instead of target_desc.
8960 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8961 (riscv_linux_read_description): Rename to...
8962 (riscv_linux_read_features): ...this.
8963 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8964 Update to use riscv_gdbarch_features and
8965 riscv_lookup_target_description.
8966 * riscv-tdep.c (riscv_find_default_target_description): Use
8967 riscv_lookup_target_description instead of
8968 riscv_create_target_description.
8969
8970 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8971
8972 * valprint.c (generic_val_print_enum_1): When printing a flag
8973 enum with value 0 and there is no enumerator with value 0, print
8974 just "0" instead of "(unknown: 0x0)".
8975
8976 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8977
8978 * valprint.c (generic_val_print_enum_1): Print unknown part of
8979 flag enum in hex.
8980
8981 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8982
8983 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8984 flag enums to contain duplicate enumerators.
8985 * valprint.c (generic_val_print_enum_1): Update comment.
8986
8987 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
8988
8989 * dwarf2/read.c: Include "count-one-bits.h".
8990 (update_enumeration_type_from_children): If an enumerator has
8991 multiple bits set, don't treat the enumeration as a "flag enum".
8992 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8993 of flag enums have 0 or 1 bit set.
8994
8995 2020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8996
8997 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8998 conversion.
8999 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9000 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9001 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9002 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9003 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9004
9005 2020-02-18 Simon Marchi <simon.marchi@efficios.com>
9006
9007 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9008
9009 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9010
9011 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9012 displaced_step_closure_up.
9013 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9014 (struct displaced_step_closure_up):
9015 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9016 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9017 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9018 Likewise.
9019 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9020 * gdbarch.c, gdbarch.h: Re-generate.
9021 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9022 displaced_step_closure_up.
9023 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9024 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9025 * infrun.h (displaced_step_closure_up): New type alias.
9026 (struct displaced_step_inferior_state) <step_closure>: Change
9027 type to displaced_step_closure_up.
9028 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9029 displaced_step_closure_up.
9030 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9031
9032 2020-02-14 Tom Tromey <tom@tromey.com>
9033
9034 * minidebug.c (gnu_debug_key): New global.
9035 (find_separate_debug_file_in_section): Use it.
9036
9037 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9038
9039 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9040 std::unique_ptr.
9041 * gdbarch.c: Re-generate.
9042 * gdbarch.h: Re-generate.
9043 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9044 change.
9045 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9046 type to std::unique_ptr.
9047 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9048 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9049 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9050 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9051 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9052 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9053 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9054 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9055 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9056
9057 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9058
9059 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9060 std::unique_ptr.
9061 (displaced_step_clear): Rename to...
9062 (displaced_step_reset): ... this. Just call displaced->reset ().
9063 (displaced_step_clear_cleanup): Rename to...
9064 (displaced_step_reset_cleanup): ... this.
9065 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9066 (displaced_step_fixup): Likewise.
9067 (resume_1): Likewise.
9068 (handle_inferior_event): Restore child's memory before calling
9069 displaced_step_fixup on the parent.
9070 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9071 to std::unique_ptr.
9072 <step_closure>: Change type to std::unique_ptr.
9073
9074 2020-02-14 Simon Marchi <simon.marchi@efficios.com>
9075
9076 * arm-tdep.c: Include count-one-bits.h.
9077 (cleanup_block_store_pc): Use count_one_bits.
9078 (cleanup_block_load_pc): Use count_one_bits.
9079 (arm_copy_block_xfer): Use count_one_bits.
9080 (thumb2_copy_block_xfer): Use count_one_bits.
9081 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9082 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9083 (thumb_get_next_pcs_raw): Use count_one_bits.
9084 (arm_get_next_pcs_raw): Use count_one_bits_l.
9085 * arch/arm.c (bitcount): Remove.
9086 * arch/arm.h (bitcount): Remove.
9087
9088 2020-02-14 Tom Tromey <tromey@adacore.com>
9089
9090 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9091 Update.
9092 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9093 * dwarf2/loc.c (call_site_find_chain_1): Return
9094 unique_xmalloc_ptr.
9095 (call_site_find_chain): Likewise.
9096
9097 2020-02-14 Richard Biener <rguenther@suse.de>
9098
9099 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9100 on expression with division operators.
9101
9102 2020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9103
9104 * MAINTAINERS (Write After Approval): Adding myself.
9105
9106 2020-02-12 Tom Tromey <tom@tromey.com>
9107
9108 * event-loop.c (event_data, gdb_event, event_handler_func):
9109 Remove.
9110
9111 2020-02-12 Tom Tromey <tom@tromey.com>
9112
9113 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9114 (dwarf2_frame_objfile_data): Add comment.
9115 (find_comp_unit, set_comp_unit): New functions.
9116 (dwarf2_frame_find_fde): Use find_comp_unit.
9117 (dwarf2_build_frame_info): Use set_comp_unit.
9118
9119 2020-02-12 Tom Tromey <tom@tromey.com>
9120
9121 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9122 (comp_unit): Don't initialize objfile.
9123 (execute_cfa_program): Add text_offset parameter.
9124 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9125 (dwarf2_frame_cache): Update.
9126 (dwarf2_build_frame_info): Don't set "objfile" member.
9127
9128 2020-02-12 Tom Tromey <tom@tromey.com>
9129
9130 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9131 (decode_frame_entry): Likewise.
9132 (dwarf2_build_frame_info): Update.
9133
9134 2020-02-12 Tom Tromey <tom@tromey.com>
9135
9136 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9137 (decode_frame_entry_1): Use the comp_unit obstack.
9138
9139 2020-02-12 Tom Tromey <tom@tromey.com>
9140
9141 * dwarf2/frame.c (struct comp_unit): Add initializers and
9142 constructor.
9143 (dwarf2_frame_objfile_data): Store a comp_unit.
9144 (dwarf2_frame_find_fde): Update.
9145 (dwarf2_build_frame_info): Use "new".
9146
9147 2020-02-12 Tom Tromey <tom@tromey.com>
9148
9149 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9150 (dwarf2_fde_table): Typedef for std::vector.
9151 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9152 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9153 (decode_frame_entry): Update.
9154 (dwarf2_build_frame_info): Use "new".
9155
9156 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9157
9158 * arm-tdep.c (arm_gdbarch_init): Update.
9159 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9160 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9161 have_neon, is_m>: Change to bool.
9162
9163 2020-02-12 Christian Biesinger <cbiesinger@google.com>
9164
9165 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9166
9167 2020-02-12 Tom Tromey <tom@tromey.com>
9168
9169 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9170
9171 2020-02-12 Hannes Domani <ssbssa@yahoo.de>
9172
9173 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9174 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9175
9176 2020-02-11 Tom Tromey <tom@tromey.com>
9177
9178 * psymtab.h: Update comment.
9179
9180 2020-02-11 Tom Tromey <tom@tromey.com>
9181
9182 * gdb_obstack.h (struct auto_obstack): Use
9183 DISABLE_COPY_AND_ASSIGN.
9184
9185 2020-02-11 Tom Tromey <tom@tromey.com>
9186
9187 * dwarf2/frame.h (struct objfile): Don't forward declare.
9188
9189 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9190
9191 * cris-tdep.c (cris_supply_gregset): Change signature to match
9192 what struct regset expects.
9193 (cris_regset): New struct.
9194 (fetch_core_registers): Remove.
9195 (cris_iterate_over_regset_sections): New function.
9196 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9197 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9198
9199 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9200
9201 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9202 registers.
9203
9204 2020-02-11 Christian Biesinger <cbiesinger@google.com>
9205
9206 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9207
9208 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9209
9210 * configure: Re-generate.
9211
9212 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9213
9214 * configure: Re-generate.
9215
9216 2020-02-11 Simon Marchi <simon.marchi@efficios.com>
9217
9218 * acinclude: Update warning.m4 path.
9219 * warning.m4: Move to gdbsupport.
9220
9221 2020-02-11 Tom Tromey <tromey@adacore.com>
9222
9223 * remote.c (remote_console_output): Update.
9224 * printcmd.c (printf_command): Update.
9225 * event-loop.c (gdb_wait_for_event): Update.
9226 * linux-nat.c (sigchld_handler): Update.
9227 * remote-sim.c (gdb_os_write_stdout): Update.
9228 (gdb_os_flush_stdout): Update.
9229 (gdb_os_flush_stderr): Update.
9230 (gdb_os_write_stderr): Update.
9231 * exceptions.c (print_exception): Update.
9232 * remote-fileio.c (remote_fileio_func_read): Update.
9233 (remote_fileio_func_write): Update.
9234 * tui/tui.c (tui_enable): Update.
9235 * tui/tui-interp.c (tui_interp::init): Update.
9236 * utils.c (init_page_info): Update.
9237 (putchar_unfiltered, fputc_unfiltered): Update.
9238 (gdb_flush): Update.
9239 (emit_style_escape): Update.
9240 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9241 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9242 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9243 (stderr_file::write): Update.
9244 (stderr_file::puts): Update.
9245 * ui-file.h (ui_file_isatty, ui_file_write)
9246 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9247 (ui_file_puts): Don't declare.
9248
9249 2020-02-10 Tom de Vries <tdevries@suse.de>
9250
9251 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9252 sentinel to char *.
9253
9254 2020-02-09 Tom de Vries <tdevries@suse.de>
9255
9256 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9257 filename if it matches "<artificial>".
9258
9259 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9260
9261 * windows-tdep.c (struct enum_value_name): New struct.
9262 (create_enum): New function.
9263 (windows_get_siginfo_type): Create and use enum types.
9264
9265 2020-02-09 Hannes Domani <ssbssa@yahoo.de>
9266
9267 * NEWS: Mention $_siginfo support for Windows.
9268 * windows-nat.c (handle_exception): Set siginfo_er.
9269 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9270 (windows_xfer_siginfo): New function.
9271 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9272 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9273 (init_windows_gdbarch_data): New function.
9274 (get_windows_gdbarch_data): New function.
9275 (windows_get_siginfo_type): New function.
9276 (windows_init_abi): Register windows_get_siginfo_type.
9277 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9278
9279 2020-02-08 Tom Tromey <tom@tromey.com>
9280
9281 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9282 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9283 <keep>: Declare method.
9284 <m_keep>: Remove member.
9285 <~cutu_reader>: Remove.
9286 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9287 (cutu_reader::cutu_reader): Update.
9288 (cutu_reader::keep): Rename from ~cutu_reader.
9289 (process_psymtab_comp_unit, build_type_psymtabs_1)
9290 (process_skeletonless_type_unit, load_partial_comp_unit)
9291 (load_full_comp_unit, dwarf2_read_addr_index)
9292 (read_signatured_type): Update.
9293
9294 2020-02-08 Tom Tromey <tom@tromey.com>
9295
9296 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9297 "want_partial_unit" parameter.
9298 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9299 Inline check for DW_TAG_partial_unit.
9300 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9301
9302 2020-02-08 Tom Tromey <tom@tromey.com>
9303
9304 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9305 read.c.
9306 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9307 read.c.
9308
9309 2020-02-08 Tom Tromey <tom@tromey.com>
9310
9311 * dwarf2/read.c (read_address): Move to comp-unit.c.
9312 (dwarf2_rnglists_process, dwarf2_ranges_process)
9313 (read_attribute_value, dwarf_decode_lines_1)
9314 (var_decode_location, decode_locdesc): Update.
9315 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9316 read.c. Remove "cu" parameter.
9317 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9318 method.
9319
9320 2020-02-08 Tom Tromey <tom@tromey.com>
9321
9322 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9323 (read_indirect_line_string): Update.
9324 * dwarf2/comp-unit.c (read_offset): Remove.
9325 (read_comp_unit_head): Update.
9326 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9327 method.
9328 (read_offset): Don't declare.
9329
9330 2020-02-08 Tom Tromey <tom@tromey.com>
9331
9332 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9333 * dwarf2/read.c (struct comp_unit_head): Move to
9334 dwarf2/comp-unit.h.
9335 (enum class rcuh_kind): Move to comp-unit.h.
9336 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9337 (read_comp_unit_head, error_check_comp_unit_head)
9338 (read_and_check_comp_unit_head): Move to comp-unit.c.
9339 (read_offset, dwarf_unit_type_name): Likewise.
9340 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9341 (cutu_reader::cutu_reader, read_call_site_scope)
9342 (find_partial_die, follow_die_offset): Update.
9343 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9344
9345 2020-02-08 Tom Tromey <tom@tromey.com>
9346
9347 * dwarf2/read.c (read_offset_1): Move to leb.c.
9348 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9349 (dwarf_decode_macro_bytes): Update.
9350 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9351 * dwarf2/leb.h (read_offset): Declare.
9352
9353 2020-02-08 Tom Tromey <tom@tromey.com>
9354
9355 * dwarf2/read.c (dwarf2_section_size): Remove.
9356 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9357 Update.
9358 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9359
9360 2020-02-08 Tom Tromey <tom@tromey.com>
9361
9362 * dwarf2/read.c (read_initial_length): Move to leb.c.
9363 * dwarf2/leb.h (read_initial_length): Declare.
9364 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9365 handle_nonstd parameter.
9366 * dwarf2/frame.c (read_initial_length): Remove.
9367 (decode_frame_entry_1): Update.
9368
9369 2020-02-08 Tom Tromey <tom@tromey.com>
9370
9371 * dwarf2/loc.c (dwarf2_find_location_expression)
9372 (dwarf_evaluate_loc_desc::get_tls_address)
9373 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9374 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9375 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9376 (dwarf2_compile_property_to_c)
9377 (dwarf2_loc_desc_get_symbol_read_needs)
9378 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9379 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9380 (loclist_describe_location, loclist_tracepoint_var_ref)
9381 (loclist_generate_c_location): Update.
9382 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9383 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9384 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9385 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9386 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9387 (dwarf2_per_cu_data::addr_size)
9388 (dwarf2_per_cu_data::ref_addr_size)
9389 (dwarf2_per_cu_data::text_offset)
9390 (dwarf2_per_cu_data::addr_type): Now methods.
9391 (per_cu_header_read_in): Make per_cu "const".
9392 (dwarf2_version): Remove.
9393 (dwarf2_per_cu_data::int_type): Now a method.
9394 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9395 (set_die_type, read_array_type, read_subrange_index_type)
9396 (read_tag_string_type, read_subrange_type): Update.
9397 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9398 offset_size, ref_addr_size, text_offset, addr_type, version,
9399 objfile, int_type, addr_sized_int_type>: Declare methods.
9400
9401 2020-02-08 Tom Tromey <tom@tromey.com>
9402
9403 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9404 Move earlier.
9405
9406 2020-02-08 Tom Tromey <tom@tromey.com>
9407
9408 * dwarf2/read.h (dwarf_line_debug): Declare.
9409 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9410 * dwarf2/read.c: Move line_header code to new files.
9411 (dwarf_line_debug): No longer static.
9412 * dwarf2/line-header.c: New file.
9413 * dwarf2/line-header.h: New file.
9414
9415 2020-02-08 Tom Tromey <tom@tromey.com>
9416
9417 * dwarf2/read.c (struct line_header) <file_full_name,
9418 file_file_name>: Return unique_xmalloc_ptr.
9419 (line_header::file_file_name): Update.
9420 (line_header::file_full_name): Update.
9421 (dw2_get_file_names_reader): Update.
9422 (macro_start_file): Update.
9423
9424 2020-02-08 Tom Tromey <tom@tromey.com>
9425
9426 * dwarf2/read.c (struct line_header) <file_full_name,
9427 file_file_name>: Declare methods.
9428 (dw2_get_file_names_reader): Update.
9429 (file_file_name): Now a method.
9430 (file_full_name): Likewise.
9431 (macro_start_file): Update.
9432
9433 2020-02-08 Tom Tromey <tom@tromey.com>
9434
9435 * dwarf2/read.c (dwarf_always_disassemble)
9436 (show_dwarf_always_disassemble): Move to loc.c.
9437 (_initialize_dwarf2_read): Move "always-disassemble" registration
9438 to loc.c.
9439 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9440 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9441 static.
9442 (show_dwarf_always_disassemble): Move from read.c.
9443 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9444
9445 2020-02-08 Tom Tromey <tom@tromey.com>
9446
9447 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9448 (create_quick_file_names_table): Return htab_up.
9449 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9450 Update.
9451 * dwarf2/read.h (struct dwarf2_per_objfile)
9452 <quick_file_names_table>: Now htab_up.
9453
9454 2020-02-08 Tom Tromey <tom@tromey.com>
9455
9456 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9457
9458 2020-02-08 Tom Tromey <tom@tromey.com>
9459
9460 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9461 Rewrite.
9462 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9463 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9464 (abbrev_table::abbrev_table): No longer inline.
9465 (ABBREV_HASH_SIZE): Remove.
9466 (abbrev_table::m_abbrevs): Now an htab_up.
9467
9468 2020-02-08 Tom Tromey <tom@tromey.com>
9469
9470 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9471 (cutu_reader): Update.
9472 (build_type_psymtabs_1): Update.
9473 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9474 (abbrev_table::alloc_abbrev): Update.
9475 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9476 (abbrev_table::read): New static method, renamed from
9477 abbrev_table_read_table.
9478 (abbrev_table::alloc_abbrev)
9479 (abbrev_table::add_abbrev): Now private.
9480 (abbrev_table::abbrev_table): Now private.
9481 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9482
9483 2020-02-08 Tom Tromey <tom@tromey.com>
9484
9485 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9486 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9487 htab_up.
9488
9489 2020-02-08 Tom Tromey <tom@tromey.com>
9490
9491 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9492 htab_up.
9493 (lookup_dwo_unit_in_dwp): Update.
9494 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9495 on obstack.
9496
9497 2020-02-08 Tom Tromey <tom@tromey.com>
9498
9499 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9500 obstack.
9501
9502 2020-02-08 Tom Tromey <tom@tromey.com>
9503
9504 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9505 line_header_hash.
9506 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9507 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9508 Change type to htab_up.
9509
9510 2020-02-08 Tom Tromey <tom@tromey.com>
9511
9512 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9513 htab_up. Don't allocate on obstack.
9514 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9515 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9516 Change type to htab_up.
9517
9518 2020-02-08 Tom Tromey <tom@tromey.com>
9519
9520 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9521 Change type to htab_up.
9522 * dwarf2/read.c (create_signatured_type_table_from_index)
9523 (create_signatured_type_table_from_debug_names)
9524 (create_all_type_units, add_type_unit)
9525 (lookup_dwo_signatured_type, lookup_signatured_type)
9526 (process_skeletonless_type_unit): Update.
9527 (create_debug_type_hash_table, create_debug_types_hash_table):
9528 Change type of types_htab.
9529 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9530 htab_up. Don't allocate on obstack.
9531 (create_cus_hash_table): Change type of cus_htab parameter.
9532 (struct dwo_file) <cus, tus>: Now htab_up.
9533 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9534 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9535 (queue_and_load_all_dwo_tus): Update.
9536 * dwarf2/index-write.c (write_gdbindex): Update.
9537 (write_debug_names): Update.
9538
9539 2020-02-08 Tom Tromey <tom@tromey.com>
9540
9541 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9542 dwarf2/read.c. Remove "next" member. Add constructor ntad
9543 destructor.
9544 (struct dwarf2_per_objfile) <queue>: New member.
9545 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9546 dwarf2/read.h.
9547 (dwarf2_queue, dwarf2_queue_tail): Remove.
9548 (class dwarf2_queue_guard): Add parameter to constructor. Use
9549 DISABLE_COPY_AND_ASSIGN.
9550 <m_per_objfile>: New member.
9551 <~dwarf2_queue_guard>: Rewrite.
9552 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9553 Update.
9554 (~dwarf2_queue_item): New.
9555
9556 2020-02-08 Tom Tromey <tom@tromey.com>
9557
9558 * dwarf2/read.c (struct die_info) <has_children>: New member.
9559 (dw2_get_file_names_reader): Remove has_children.
9560 (dw2_get_file_names): Update.
9561 (read_cutu_die_from_dwo): Remove has_children.
9562 (cutu_reader::init_tu_and_read_dwo_dies)
9563 (cutu_reader::cutu_reader): Update.
9564 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9565 Remove has_children.
9566 (build_type_psymtabs_1, process_skeletonless_type_unit)
9567 (load_partial_comp_unit, load_full_comp_unit): Update.
9568 (create_dwo_cu_reader): Remove has_children.
9569 (create_cus_hash_table, read_die_and_children): Update.
9570 (read_full_die_1,read_full_die): Remove has_children.
9571 (read_signatured_type): Update.
9572 (class cutu_reader) <has_children>: Remove.
9573
9574 2020-02-08 Tom Tromey <tom@tromey.com>
9575
9576 * dwarf2/expr.c: Rename from dwarf2expr.c.
9577 * dwarf2/expr.h: Rename from dwarf2expr.h.
9578 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9579 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9580 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9581 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9582 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9583 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9584 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9585 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9586 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9587 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9588 * dwarf2/loc.c: Rename from dwarf2loc.c.
9589 * dwarf2/loc.h: Rename from dwarf2loc.h.
9590 * dwarf2/read.c: Rename from dwarf2read.c.
9591 * dwarf2/read.h: Rename from dwarf2read.h.
9592 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9593 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9594 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9595 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9596 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9597 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9598 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9599 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9600 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9601 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9602 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9603 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9604 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9605 Update.
9606 * Makefile.in (COMMON_SFILES): Update.
9607 (HFILES_NO_SRCDIR): Update.
9608
9609 2020-02-08 Tom Tromey <tom@tromey.com>
9610
9611 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9612 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9613
9614 2020-02-08 Tom Tromey <tom@tromey.com>
9615
9616 * dwarf2read.h (struct die_info): Don't declare.
9617
9618 2020-02-08 Tom Tromey <tom@tromey.com>
9619
9620 * dwarf2read.h (die_info_ptr): Remove typedef.
9621
9622 2020-02-08 Tom Tromey <tom@tromey.com>
9623
9624 * dwarf2read.c (read_call_site_scope)
9625 (handle_data_member_location, dwarf2_add_member_fn)
9626 (mark_common_block_symbol_computed, read_common_block)
9627 (attr_to_dynamic_prop, partial_die_info::read)
9628 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9629 (dwarf2_symbol_mark_computed, set_die_type): Update.
9630 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9631 method.
9632 (attr_form_is_block): Don't declare.
9633 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9634
9635 2020-02-08 Tom Tromey <tom@tromey.com>
9636
9637 * dwarf2read.c (dwarf2_find_base_address, )
9638 (read_call_site_scope, rust_containing_type)
9639 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9640 (handle_data_member_location, dwarf2_add_member_fn)
9641 (get_alignment, read_structure_type, process_structure_scope)
9642 (mark_common_block_symbol_computed, read_common_block)
9643 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9644 (partial_die_info::read, read_attribute_value, new_symbol)
9645 (lookup_die_type, dwarf2_get_ref_die_offset)
9646 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9647 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9648 (dwarf2_symbol_mark_computed): Update.
9649 * dwarf2/attribute.h (struct attribute) <value_as_address,
9650 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9651 methods.
9652 (value_as_address, attr_form_is_section_offset)
9653 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9654 * dwarf2/attribute.c (attribute::value_as_address)
9655 (attribute::form_is_section_offset, attribute::form_is_constant)
9656 (attribute::form_is_ref): Now methods.
9657
9658 2020-02-08 Tom Tromey <tom@tromey.com>
9659
9660 * dwarf2read.c (struct attribute, DW_STRING)
9661 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9662 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9663 (attr_form_is_block, attr_form_is_section_offset)
9664 (attr_form_is_constant, attr_form_is_ref): Move.
9665 * dwarf2/attribute.h: New file.
9666 * dwarf2/attribute.c: New file, from dwarf2read.c.
9667 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9668
9669 2020-02-08 Tom Tromey <tom@tromey.com>
9670
9671 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9672 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9673 Move.
9674 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9675 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9676 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9677 abbrev.c.
9678 * dwarf2/abbrev.h: New file.
9679 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9680 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9681
9682 2020-02-08 Tom Tromey <tom@tromey.com>
9683
9684 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9685 (dwarf2_section_size, dwarf2_get_section_info)
9686 (create_signatured_type_table_from_debug_names)
9687 (create_addrmap_from_aranges, read_debug_names_from_section)
9688 (get_gdb_index_contents_from_section, read_comp_unit_head)
9689 (error_check_comp_unit_head, read_abbrev_offset)
9690 (create_debug_type_hash_table, init_cu_die_reader)
9691 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9692 (read_comp_units_from_section, create_cus_hash_table)
9693 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9694 (create_dwp_v2_section, dwarf2_rnglists_process)
9695 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9696 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9697 (read_indirect_string_from_dwz, read_addr_index_1)
9698 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9699 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9700 (fill_in_loclist_baton): Update.
9701 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9702 get_containing_section, get_bfd_owner, get_bfd_section,
9703 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9704 (dwarf2_read_section, get_section_name, get_section_file_name)
9705 (get_containing_section, get_section_bfd_owner)
9706 (get_section_bfd_section, get_section_name, get_section_file_name)
9707 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9708 declare.
9709 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9710 (dwarf2_section_info::get_bfd_owner)
9711 (dwarf2_section_info::get_bfd_section)
9712 (dwarf2_section_info::get_name)
9713 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9714 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9715 (dwarf2_section_info::read): Now methods.
9716 * dwarf-index-write.c (class debug_names): Update.
9717
9718 2020-02-08 Tom Tromey <tom@tromey.com>
9719
9720 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9721 Move to dwarf2/section.h.
9722 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9723 (get_section_bfd_section, get_section_name)
9724 (get_section_file_name, get_section_id, get_section_flags)
9725 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9726 dwarf2/section.c.
9727 * dwarf2/section.h: New file.
9728 * dwarf2/section.c: New file, from dwarf2read.c.
9729 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9730
9731 2020-02-08 Tom Tromey <tom@tromey.com>
9732
9733 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9734 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9735 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9736 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9737 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9738 * dwarf2/leb.h: New file, from dwarf2read.c.
9739 * dwarf2/leb.c: New file, from dwarf2read.c.
9740 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9741 Remove.
9742 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9743 (COMMON_SFILES): Add dwarf2/leb.c.
9744
9745 2020-02-08 Joel Brobecker <brobecker@adacore.com>
9746
9747 GDB 9.1 released.
9748
9749 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9750
9751 PR gdb/25190:
9752 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9753 * gdb/remote.c (remote_console_output): Update.
9754 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9755 (ui_file_puts): ...this.
9756 * gdb/ui-file.h (ui_file_puts): Add declaration.
9757 * gdb/utils.c (emit_style_escape): Update.
9758 (flush_wrap_buffer): Update.
9759 (fputs_maybe_filtered): Update.
9760 (fputs_unfiltered): Add function.
9761
9762 2020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9763
9764 * gdb/event-loop.c (gdb_wait_for_event): Update.
9765 * gdb/printcmd.c (printf_command): Update.
9766 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9767 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9768 (gdb_os_flush_stderr): Update.
9769 * gdb/remote.c (remote_console_output): Update.
9770 * gdb/ui-file.c (gdb_flush): Rename to...
9771 (ui_file_flush): ...this.
9772 (stderr_file::write): Update.
9773 (stderr_file::puts): Update.
9774 * gdb/ui-file.h (gdb_flush): Rename to...
9775 (ui_file_flush): ...this.
9776 * gdb/utils.c (gdb_flush): Add function.
9777 * gdb/utils.h (gdb_flush): Add declaration.
9778
9779 2020-02-07 Tom Tromey <tromey@adacore.com>
9780
9781 PR breakpoints/24915:
9782 * source.c (find_and_open_source): Do not check basenames_may_differ.
9783
9784 2020-02-07 Tom Tromey <tom@tromey.com>
9785
9786 * README: Update gdbserver documentation.
9787 * gdbserver: Move to top level.
9788 * configure.tgt (build_gdbserver): Remove.
9789 * configure.ac: Remove --enable-gdbserver.
9790 * configure: Rebuild.
9791 * Makefile.in (distclean): Don't mention gdbserver.
9792
9793 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9794
9795 * source-cache.c (source_cache::ensure): Surround
9796 get_plain_source_lines with a try/catch.
9797 (source_cache::get_line_charpos): Get rid of try/catch
9798 and only check for the return value of "ensure".
9799 * tui/tui-source.c (tui_source_window::set_contents):
9800 Simplify "nlines" calculation.
9801
9802 2020-02-06 Shahab Vahedi <shahab@synopsys.com>
9803
9804 * MAINTAINERS (Write After Approval): Add myself.
9805
9806 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9807
9808 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9809 function call.
9810
9811 2020-02-05 Christian Biesinger <cbiesinger@google.com>
9812
9813 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9814
9815 2020-02-05 Maciej W. Rozycki <macro@wdc.com>
9816
9817 * nat/riscv-linux-tdesc.h: New file.
9818 * nat/riscv-linux-tdesc.c: New file, taking code from...
9819 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9820 ... here.
9821 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9822 NATDEPFILES.
9823
9824 2020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9825
9826 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9827 we don't set the fake simulator ptid to the null_ptid.
9828
9829 2020-02-03 Simon Marchi <simon.marchi@efficios.com>
9830
9831 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9832 * gdbthread.h (class thread_info) <resumed>: Likewise.
9833 * infrun.c (resume_1): Likewise.
9834 (proceed): Likewise.
9835 (infrun_thread_stop_requested): Likewise.
9836 (stop_all_threads): Likewise.
9837 (handle_inferior_event): Likewise.
9838 (restart_threads): Likewise.
9839 (finish_step_over): Likewise.
9840 (keep_going_stepped_thread): Likewise.
9841 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9842 (linux_handle_extended_wait): Likewise.
9843 * record-btrace.c (get_thread_current_frame_id): Likewise.
9844 * record-full.c (record_full_wait_1): Likewise.
9845 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9846 * target.c (target_resume): Likewise.
9847 * thread.c (set_running_thread): Likewise.
9848
9849 2020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9850
9851 * f-valprint.c (f77_print_array_1): Changed datatype of index
9852 variable to LONGEST from int to enable it to contain bound
9853 values correctly.
9854
9855 2020-02-03 Maciej W. Rozycki <macro@wdc.com>
9856
9857 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9858 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9859 offsets according to FLEN determined.
9860 (riscv_linux_nat_target::read_description): Determine FLEN
9861 dynamically.
9862 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9863 according to FLEN determined.
9864 (riscv_linux_nat_target::store_registers): Likewise.
9865
9866 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
9867
9868 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9869 when reg->group is empty and reggroup is not.
9870
9871 2020-01-31 Tom Tromey <tromey@adacore.com>
9872
9873 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9874 Call beneath target's mourn_inferior after unpushing.
9875
9876 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9877
9878 PR tui/9765
9879 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9880 have enough lines to fill the screen, still return the lowest
9881 address we found.
9882
9883 2020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9884
9885 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9886 '-', '<', and '>' commands.
9887
9888 2020-01-29 Pedro Alves <palves@redhat.com>
9889 Sergio Durigan Junior <sergiodj@redhat.com>
9890
9891 * infcmd.c (construct_inferior_arguments): Assert that
9892 'argc' is greater than 0.
9893
9894 2020-01-29 Luis Machado <luis.machado@linaro.org>
9895
9896 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9897 (BRK_INSN_MASK): Define to 0xd4200000.
9898 (aarch64_program_breakpoint_here_p): New function.
9899 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9900 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9901 breakpoint.c.
9902 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9903 breakpoint.h
9904 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9905 call gdbarch_program_breakpoint_here_p.
9906 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9907 default_program_breakpoint_here_p, changed return type to bool and
9908 simplified.
9909 * breakpoint.h (program_breakpoint_here): Moved prototype to
9910 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9911 return type to bool.
9912 * gdbarch.c: Regenerate.
9913 * gdbarch.h: Regenerate.
9914 * gdbarch.sh (program_breakpoint_here_p): New method.
9915 * infrun.c (handle_signal_stop): Call
9916 gdbarch_program_breakpoint_here_p.
9917
9918 2020-01-26 Tom Tromey <tom@tromey.com>
9919
9920 * ctfread.c (struct ctf_fp_info): Reindent.
9921 (_initialize_ctfread): Remove.
9922
9923 2020-01-26 Tom Tromey <tom@tromey.com>
9924
9925 * psymtab.c (partial_map_expand_apply)
9926 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9927 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9928 (psym_print_stats, psym_expand_symtabs_for_function)
9929 (psym_map_symbol_filenames, psym_map_matching_symbols)
9930 (psym_expand_symtabs_matching)
9931 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9932 (maintenance_check_psymtabs): Use new methods.
9933 * psympriv.h (struct partial_symtab) <readin_p,
9934 get_compunit_symtab>: New methods.
9935 <readin, compunit_symtab>: Remove members.
9936 (struct standard_psymtab): New.
9937 (struct legacy_psymtab): Derive from standard_psymtab.
9938 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9939 standard_psymtab.
9940 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9941
9942 2020-01-26 Tom Tromey <tom@tromey.com>
9943
9944 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9945 read_dependencies. Add assert.
9946 * psymtab.c (partial_symtab::read_dependencies): New method.
9947 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9948 method.
9949 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9950 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9951 read_dependencies.
9952 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9953 Add assert.
9954
9955 2020-01-26 Tom Tromey <tom@tromey.com>
9956
9957 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9958 Call expand_psymtab.
9959 (xcoff_read_symtab): Call expand_psymtab.
9960 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9961 legacy_expand_psymtab.
9962 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9963 method.
9964 (struct legacy_psymtab) <expand_psymtab>: Implement.
9965 <legacy_expand_psymtab>: New member.
9966 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9967 (parse_partial_symbols): Set legacy_expand_psymtab.
9968 (psymtab_to_symtab_1): Change argument order. Call
9969 expand_psymtab.
9970 (new_psymtab): Set legacy_expand_psymtab.
9971 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9972 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9973 expand_psymtab.
9974 (dwarf2_psymtab::expand_psymtab): Rename from
9975 psymtab_to_symtab_1. Call expand_psymtab.
9976 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9977 (dbx_end_psymtab): Likewise.
9978 (dbx_psymtab_to_symtab_1): Change argument order. Call
9979 expand_psymtab.
9980 (dbx_read_symtab): Call expand_psymtab.
9981 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9982 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9983 (ctf_psymtab::read_symtab): Call expand_psymtab.
9984
9985 2020-01-26 Tom Tromey <tom@tromey.com>
9986
9987 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9988 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9989 messages.
9990 * mdebugread.c (mdebug_read_symtab): Remove prints.
9991 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9992 assert.
9993 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9994
9995 2020-01-26 Tom Tromey <tom@tromey.com>
9996
9997 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9998 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9999 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10000 legacy_symtab.
10001 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10002 * psymtab.c (psymtab_to_symtab): Call method.
10003 (dump_psymtab): Update.
10004 * psympriv.h (struct partial_symtab): Add virtual destructor.
10005 <read_symtab>: New method.
10006 (struct legacy_symtab): New.
10007 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10008 (struct pst_map) <pst>: Now a legacy_psymtab.
10009 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10010 (new_psymtab): Use legacy_psymtab.
10011 * dwarf2read.h (struct dwarf2_psymtab): New.
10012 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10013 * dwarf2read.c (dwarf2_create_include_psymtab)
10014 (dwarf2_build_include_psymtabs, create_type_unit_group)
10015 (create_partial_symtab, process_psymtab_comp_unit_reader)
10016 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10017 (set_partial_user): Use dwarf2_psymtab.
10018 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10019 (psymtab_to_symtab_1, process_full_comp_unit)
10020 (process_full_type_unit, dwarf2_ranges_read)
10021 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10022 (dwarf_decode_lines): Use dwarf2_psymtab.
10023 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10024 (add_address_entry_worker, write_one_signatured_type)
10025 (recursively_count_psymbols, recursively_write_psymbols)
10026 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10027 (write_debug_names): Likewise.
10028 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10029 <pst>: Now a legacy_psymtab.
10030 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10031 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10032 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10033 * ctfread.c (struct ctf_psymtab): New.
10034 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10035 ctf_psymtab.
10036 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10037 (create_partial_symtab): Return a ctf_psymtab.
10038 (scan_partial_symbols): Update.
10039
10040 2020-01-26 Tom Tromey <tom@tromey.com>
10041
10042 * xcoffread.c (xcoff_start_psymtab): Use new.
10043 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10044 renamed from start_psymtab_common.
10045 * psympriv.h (struct partial_symtab): Add new constructor.
10046 (start_psymtab_common): Don't declare.
10047 * mdebugread.c (parse_partial_symbols): Use new.
10048 * dwarf2read.c (create_partial_symtab): Use new.
10049 * dbxread.c (start_psymtab): Use new.
10050 * ctfread.c (create_partial_symtab): Use new.
10051
10052 2020-01-26 Tom Tromey <tom@tromey.com>
10053
10054 * xcoffread.c (xcoff_end_psymtab): Use new.
10055 * psymtab.c (start_psymtab_common): Use new.
10056 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10057 Update.
10058 * psympriv.h (struct partial_symtab): Add parameters to
10059 constructor. Don't inline.
10060 (allocate_psymtab): Don't declare.
10061 * mdebugread.c (new_psymtab): Use new.
10062 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10063 * dbxread.c (dbx_end_psymtab): Use new.
10064
10065 2020-01-26 Tom Tromey <tom@tromey.com>
10066
10067 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10068 allocate_psymtab. Update documentation.
10069 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10070 allocate_psymtab. Do not use new.
10071 (allocate_psymtab): Use new. Update.
10072
10073 2020-01-26 Tom Tromey <tom@tromey.com>
10074
10075 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10076 * psymtab.c (psym_print_stats): Update.
10077 * psympriv.h (struct partial_symtab) <readin,
10078 psymtabs_addrmap_supported, anonymous>: Now bool.
10079 * mdebugread.c (psymtab_to_symtab_1): Update.
10080 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10081 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10082 (process_full_comp_unit, process_full_type_unit): Update.
10083 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10084 * ctfread.c (psymtab_to_symtab): Update.
10085
10086 2020-01-26 Tom Tromey <tom@tromey.com>
10087
10088 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10089 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10090 * psymtab.c (psymtab_storage): Delete psymtabs.
10091 (psymtab_storage::allocate_psymtab): Use new.
10092 (psymtab_storage::discard_psymtab): Use delete.
10093 * psympriv.h (struct partial_symtab): Add constructor and
10094 initializers.
10095
10096 2020-01-26 Tom Tromey <tom@tromey.com>
10097
10098 * machoread.c: Do not include psympriv.h.
10099
10100 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10101
10102 * NEWS: Mention the new option and the set/show commands.
10103
10104 2020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10105
10106 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10107 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10108 (validate_exec_file): New variables, enums, functions.
10109 (exec_file_locate_attach, print_section_info): Style the filenames.
10110 (_initialize_exec): Install show_exec_file_mismatch_command and
10111 set_exec_file_mismatch_command.
10112 * gdbcore.h (validate_exec_file): Declare.
10113 * infcmd.c (attach_command): Call validate_exec_file.
10114 * remote.c ( remote_target::remote_add_inferior): Likewise.
10115
10116 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10117
10118 * frame.c (find_frame_sal): Move call to get_next_frame into more
10119 inner scope.
10120 * inline-frame.c (inilne_state) <inline_state>: Update argument
10121 types.
10122 (inilne_state) <skipped_symbol>: Rename to...
10123 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10124 (skip_inline_frames): Build vector of skipped symbols and use this
10125 to reate the inline_state.
10126 (inline_skipped_symbol): Add a comment and some assertions, fetch
10127 skipped symbol from the list.
10128
10129 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10130
10131 * buildsym.c (lte_is_less_than): Delete.
10132 (buildsym_compunit::end_symtab_with_blockvector): Create local
10133 lambda function to sort line table entries, and use
10134 std::stable_sort instead of std::sort.
10135 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10136 markers when looking for a previous line.
10137
10138 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10139
10140 * dwarf2read.c (lnp_state_machine::record_line): Include
10141 end_sequence parameter in debug print out. Record the line if we
10142 are at an end_sequence marker even if it's not the start of a
10143 statement.
10144 * symmisc.c (maintenance_print_one_line_table): Print end of
10145 sequence markers with 'END' not '0'.
10146
10147 2020-01-24 Pedro Alves <palves@redhat.com>
10148
10149 PR gdb/25410
10150 * thread.c (scoped_restore_current_thread::restore): Use
10151 switch_to_inferior_no_thread.
10152 * exec.c: Include "progspace-and-thread.h".
10153 (add_target_sections, remove_target_sections):
10154 scoped_restore_current_pspace_and_thread instead of
10155 scoped_restore_current_thread.
10156 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10157 and aspace to the inferior before calling clone_program_space.
10158 Remove stale comment.
10159
10160 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10161
10162 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10163 (arm_netbsd_nat_target::fetch_registers): ...this.
10164 (arm_nbsd_nat_target::store_registers): Rename to...
10165 (arm_netbsd_nat_target::store_registers): ...this.
10166
10167 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10168
10169 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10170 register_t.
10171
10172 2020-01-24 Christian Biesinger <cbiesinger@google.com>
10173
10174 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10175 Update comment.
10176 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10177 Likewise.
10178 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10179 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10180 the correct replacement (iterate_over_regset_sections).
10181 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10182 Update comment.
10183
10184 2020-01-24 Graham Markall <graham.markall@embecosm.com>
10185
10186 PR gdb/23718
10187 * gdb/python/python.c (execute_gdb_command): Call
10188 async_enable_stdin in catch block.
10189
10190 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10191
10192 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10193 SWITCH_THRU_ALL_UIS.
10194
10195 2020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10196
10197 PR tui/9765
10198 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10199 comment, add extra parameter, and update to store previous symbol
10200 when appropriate.
10201 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10202 add extra parameter.
10203 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10204 remove unneeded parameter, add try/catch around gdb_print_insn,
10205 rewrite to add items to asm_lines vector.
10206 (tui_find_backward_disassembly_start_address): New function.
10207 (tui_find_disassembly_address): Updated throughout.
10208 (tui_disasm_window::set_contents): Update for changes to
10209 tui_disassemble.
10210 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10211 number of lines to scroll.
10212
10213 2020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10214
10215 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10216 (SECT_OFF_DATA): Likewise.
10217 (SECT_OFF_RODATA): Likewise.
10218 (SECT_OFF_TEXT): Likewise.
10219 (SECT_OFF_BSS): Likewise.
10220 (struct objfile) <text_section_offset, data_section_offset>: New
10221 methods.
10222 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10223 objfile::text_section_offset.
10224 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10225 * coffread.c (coff_symtab_read): Likewise.
10226 (enter_linenos): Likewise.
10227 (process_coff_symbol): Likewise.
10228 * ctfread.c (get_objfile_text_range): Likewise.
10229 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10230 Use objfile::data_section_offset.
10231 * dwarf2-frame.c (execute_cfa_program): Use
10232 objfile::text_section_offset.
10233 (dwarf2_frame_find_fde): Likewise.
10234 * dwarf2read.c (create_addrmap_from_index): Likewise.
10235 (create_addrmap_from_aranges): Likewise.
10236 (dw2_find_pc_sect_compunit_symtab): Likewise.
10237 (process_psymtab_comp_unit_reader): Likewise.
10238 (add_partial_symbol): Likewise.
10239 (add_partial_subprogram): Likewise.
10240 (process_full_comp_unit): Likewise.
10241 (read_file_scope): Likewise.
10242 (read_func_scope): Likewise.
10243 (read_lexical_block_scope): Likewise.
10244 (read_call_site_scope): Likewise.
10245 (dwarf2_rnglists_process): Likewise.
10246 (dwarf2_ranges_process): Likewise.
10247 (dwarf2_ranges_read): Likewise.
10248 (dwarf_decode_lines_1): Likewise.
10249 (new_symbol): Likewise.
10250 (dwarf2_fetch_die_loc_sect_off): Likewise.
10251 (dwarf2_per_cu_text_offset): Likewise.
10252 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10253 * hppa-tdep.c (read_unwind_info): Likewise.
10254 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10255 * psympriv.h (struct partial_symtab): Likewise.
10256 * psymtab.c (find_pc_sect_psymtab): Likewise.
10257 * solib-svr4.c (enable_break): Likewise.
10258 * stap-probe.c (relocate_address): Use
10259 objfile::data_section_offset.
10260 * xcoffread.c (enter_line_range): Use
10261 objfile::text_section_offset.
10262 (read_xcoff_symtab): Likewise.
10263
10264 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10265
10266 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10267 declaration to narrower scopes.
10268
10269 2020-01-23 Simon Marchi <simon.marchi@efficios.com>
10270
10271 * darwin-nat.h (struct darwin_exception_msg, enum
10272 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10273 Move up.
10274 (class darwin_nat_target) <wait_1, check_new_threads,
10275 decode_exception_message, decode_message, stop_inferior,
10276 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10277 * darwin-nat.c (darwin_check_new_threads): Rename to...
10278 (darwin_nat_target::check_new_threads): ... this.
10279 (darwin_suspend_inferior_it): Remove.
10280 (darwin_decode_exception_message): Rename to...
10281 (darwin_nat_target::decode_exception_message): ... this.
10282 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10283 (darwin_decode_message): Rename to...
10284 (darwin_nat_target::decode_message): ... this.
10285 (cancel_breakpoint): Rename to...
10286 (darwin_nat_target::cancel_breakpoint): ... this.
10287 (darwin_wait): Rename to...
10288 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10289 instead of iterate_over_inferiors.
10290 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10291 (darwin_stop_inferior): Rename to...
10292 (darwin_nat_target::stop_inferior): ... this.
10293 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10294 (darwin_init_thread_list): Rename to...
10295 (darwin_nat_target::init_thread_list): ... this.
10296 (darwin_ptrace_him): Rename to...
10297 (darwin_nat_target::ptrace_him): ... this.
10298 (darwin_nat_target::create_inferior): Pass lambda function to
10299 fork_inferior.
10300 (darwin_nat_target::detach): Call stop_inferior instead of
10301 darwin_stop_inferior.
10302 * fork-inferior.h (fork_inferior): Change init_trace_fun
10303 parameter to gdb::function_view.
10304 * fork-inferior.c (fork_inferior): Likewise.
10305
10306 2020-01-23 Hannes Domani <ssbssa@yahoo.de>
10307
10308 * i386-cygwin-tdep.c (core_process_module_section): Update.
10309 * windows-nat.c (struct lm_info_windows): Add text_offset.
10310 (windows_xfer_shared_libraries): Update.
10311 * windows-tdep.c (windows_xfer_shared_library):
10312 Add text_offset_cached argument.
10313 * windows-tdep.h (windows_xfer_shared_library): Update.
10314
10315 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10318
10319 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10322 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10323 replace with range-based for.
10324 (gdbsim_interrupt_inferior): Remove.
10325 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10326 with a range-based for. Inline code from
10327 gdbsim_interrupt_inferior.
10328
10329 2020-01-21 Simon Marchi <simon.marchi@efficios.com>
10330
10331 * infrun.c (proceed): Fix indentation.
10332
10333 2020-01-21 Tom Tromey <tromey@adacore.com>
10334
10335 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10336 * python/python.c (python_extension_ops): Update.
10337 (gdbpy_colorize): New function.
10338 * python/lib/gdb/__init__.py (colorize): New function.
10339 * extension.h (ext_lang_colorize): Declare.
10340 * extension.c (ext_lang_colorize): New function.
10341 * extension-priv.h (struct extension_language_ops) <colorize>: New
10342 member.
10343 * cli/cli-style.c (_initialize_cli_style): Update help text.
10344
10345 2020-01-21 Luis Machado <luis.machado@linaro.org>
10346
10347 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10348 <cond>: Change type to bool.
10349 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10350 (aarch64_displaced_step_cb): Likewise.
10351 (aarch64_displaced_step_tb): Likewise.
10352
10353 2020-01-21 Luis Machado <luis.machado@linaro.org>
10354
10355 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10356 output.
10357
10358 2020-01-21 Luis Machado <luis.machado@linaro.org>
10359
10360 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10361 <pc_adjust>: Adjust the documentation.
10362 (aarch64_displaced_step_fixup): Check if PC really moved before
10363 adjusting it.
10364
10365 2020-01-19 Tom Tromey <tom@tromey.com>
10366
10367 * disasm.c (~gdb_disassembler): New destructor.
10368 (gdb_buffered_insn_length): Call disassemble_free_target.
10369 * disasm.h (class gdb_disassembler): Declare destructor. Use
10370 DISABLE_COPY_AND_ASSIGN.
10371
10372 2020-01-19 Tom Tromey <tom@tromey.com>
10373
10374 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10375 (die_reader_func_ftype): Remove.
10376 (cutu_reader): New class.
10377 (dw2_get_file_names_reader): Remove "data" parameter.
10378 (dw2_get_file_names): Use cutu_reader.
10379 (create_debug_type_hash_table): Update.
10380 (read_cutu_die_from_dwo): Update comment.
10381 (lookup_dwo_unit): Add dwo_name parameter.
10382 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10383 die_reader_func_ftype and data parameters.
10384 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10385 Remove die_reader_func_ftype and data parameters.
10386 (~cutu_reader): New; from init_cutu_and_read_dies.
10387 (cutu_reader::cutu_reader): Rename from
10388 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10389 and data parameters.
10390 (init_cutu_and_read_dies_simple): Remove.
10391 (struct process_psymtab_comp_unit_data): Remove.
10392 (process_psymtab_comp_unit_reader): Remove data parameter; add
10393 want_partial_unit and pretend_language parameters.
10394 (process_psymtab_comp_unit): Use cutu_reader.
10395 (build_type_psymtabs_reader): Remove data parameter.
10396 (build_type_psymtabs_1): Use cutu_reader.
10397 (process_skeletonless_type_unit): Likewise.
10398 (load_partial_comp_unit_reader): Remove.
10399 (load_partial_comp_unit): Use cutu_reader.
10400 (load_full_comp_unit_reader): Remove.
10401 (load_full_comp_unit): Use cutu_reader.
10402 (struct create_dwo_cu_data): Remove.
10403 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10404 dwo_unit parameters.
10405 (create_cus_hash_table): Use cutu_reader.
10406 (struct dwarf2_read_addr_index_data): Remove.
10407 (dwarf2_read_addr_index_reader): Remove.
10408 (dwarf2_read_addr_index): Use cutu_reader.
10409 (read_signatured_type_reader): Remove.
10410 (read_signatured_type): Use cutu_reader.
10411
10412 2020-01-19 Tom Tromey <tom@tromey.com>
10413
10414 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10415 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10416 (tui_wrefresh): Declare.
10417 * tui/tui-wingeneral.c (suppress_output): New global.
10418 (tui_suppress_output, ~tui_suppress_output): New constructor and
10419 destructor.
10420 (tui_wrefresh): New function.
10421 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10422 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10423 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10424 method.
10425 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10426 tui_wrefresh.
10427 (tui_data_window::no_refresh): New method.
10428 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10429 (tui_reg_command): Use tui_suppress_output
10430 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10431 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10432 method.
10433 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10434
10435 2020-01-19 Tom Tromey <tom@tromey.com>
10436
10437 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10438 Handle case where symtab is null.
10439
10440 2020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10441
10442 * linux-fork.c (one_fork_p): Simplify.
10443
10444 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10445
10446 * top.c (struct qt_args): Remove.
10447 (kill_or_detach): Change return type to void, replace `void *`
10448 parameter with a proper one.
10449 (print_inferior_quit_action): Likewise.
10450 (quit_confirm): Use range-based for loop to iterate over inferiors.
10451 (quit_force): Likewise.
10452
10453 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10454
10455 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10456 `void *` parameter with proper parameters.
10457 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10458 (print_one_inferior): Change return type to void, replace `void *`
10459 parameter with proper parameters.
10460 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10461 inferiors.
10462 (get_other_inferior): Remove.
10463 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10464 inferiors.
10465
10466 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10467
10468 * mi/mi-interp.c (report_initial_inferior): Remove.
10469 (mi_interp::init): Use range-based for to iterate over inferiors.
10470
10471 2020-01-17 Simon Marchi <simon.marchi@efficios.com>
10472
10473 * python/py-inferior.c (build_inferior_list): Remove.
10474 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10475
10476 2020-01-16 Christian Biesinger <cbiesinger@google.com>
10477
10478 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10479 (btrace_stitch_trace): Likewise.
10480 * charset.c (intermediate_encoding): Likewise (vaild).
10481 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10482 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10483 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10484
10485 2020-01-16 Hannes Domani <ssbssa@yahoo.de>
10486
10487 * windows-tdep.c (windows_get_tlb_type):
10488 Add rtl_user_process_parameters type.
10489
10490 2020-01-16 Pedro Alves <palves@redhat.com>
10491 Norbert Lange <nolange79@gmail.com>
10492
10493 PR build/24805
10494 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10495 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10496 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10497 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10498 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10499 (ps_plog): Redeclare exported functions with default visibility.
10500
10501 2020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10502
10503 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10504 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10505
10506 2020-01-15 Simon Marchi <simon.marchi@efficios.com>
10507
10508 * infcmd.c (post_create_inferior): Use get_thread_regcache
10509 instead of get_current_regcache.
10510
10511 2020-01-14 Tom Tromey <tom@tromey.com>
10512
10513 PR symtab/12535:
10514 * python/python.c (gdbpy_decode_line): Treat empty string the same
10515 as no argument.
10516
10517 2020-01-14 Tom Tromey <tom@tromey.com>
10518
10519 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10520
10521 2020-01-14 Tom Tromey <tom@tromey.com>
10522
10523 * nat/linux-btrace.c: Don't include <config.h>.
10524 * nat/linux-ptrace.c: Don't include <config.h>.
10525 * nat/x86-linux-dregs.c: Don't include <config.h>.
10526
10527 2020-01-14 Tom Tromey <tom@tromey.com>
10528
10529 * configure: Rebuild.
10530 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10531
10532 2020-01-14 Tom Tromey <tom@tromey.com>
10533
10534 * nat/x86-linux-dregs.c: Include configh.h.
10535 * nat/linux-ptrace.c: Include configh.h.
10536 * nat/linux-btrace.c: Include configh.h.
10537 * defs.h: Include config.h, bfd.h.
10538 * configure.ac: Don't source common.host.
10539 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10540 * configure: Rebuild.
10541 * acinclude.m4: Update path.
10542 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10543 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10544 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10545 (CLIBS): Add LIBSUPPORT.
10546 (CDEPS): Likewise.
10547 (COMMON_SFILES): Remove gdbsupport files.
10548 (HFILES_NO_SRCDIR): Likewise.
10549 (stamp-version): Update path to create-version.sh.
10550 (ALLDEPFILES): Remove gdbsupport files.
10551
10552 2020-01-14 Tom Tromey <tom@tromey.com>
10553
10554 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10555 USE_WIN32API when needed.
10556 * configure.ac (USE_WIN32API): Don't define.
10557 (WIN32LIBS): Use WIN32APILIBS.
10558 * configure: Rebuild.
10559
10560 2020-01-14 Tom Tromey <tom@tromey.com>
10561
10562 * configure: Rebuild.
10563 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10564
10565 2020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10566
10567 * skip.c (skip_function_command): Make skip w/o arguments use the
10568 name of the inlined function if pc is inside any inlined function.
10569
10570 2020-01-14 Luis Machado <luis.machado@linaro.org>
10571
10572 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10573 * infrun.c (resume_1): Likewise.
10574 (handle_inferior_event): Remove stale comment.
10575 * linux-nat.c (linux_nat_target::resume): Update comments.
10576 (save_stop_reason): Likewise.
10577 (linux_nat_filter_event): Likewise.
10578 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10579
10580 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10581
10582 * elfread.c (record_minimal_symbol): Set section index to 0 for
10583 non-allocatable sections.
10584
10585
10586 2020-01-13 Ali Tamur <tamur@google.com>
10587
10588 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10589 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10590 to gdb::optional. Update comments.
10591 (dwo_file): Update comments.
10592 (read_attribute): Update API to take an additional out parameter,
10593 need_reprocess. This is used to mark attributes that need other
10594 attributes (e.g. str_offsets_base) for correct computation which may not
10595 have been read yet.
10596 (read_attribute_reprocess): New function declaration.
10597 (read_addr_index): Likewise.
10598 (read_dwo_str_index): Likewise.
10599 (read_stub_str_index): Likewise.
10600 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10601 (lookup_addr_base): New function definition.
10602 (lookup_ranges_base): Likewise.
10603 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10604 lookup_ranges_base.
10605 (init_cutu_and_read_dies): Update comments.
10606 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10607 unit. This is used to inherit parent's str_offsets_base and addr_base.
10608 Update comments.
10609 (init_cutu_and_read_dies_simple): Reflect API changes.
10610 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10611 (create_cus_hash_table): Change API to take parent compile unit.
10612 Reflect API changes.
10613 (open_and_init_dwo_file): Reflect API changes.
10614 (dwarf2_get_pc_bounds): Update comments.
10615 (dwarf2_record_block_ranges): Likewise.
10616 (read_full_die_1): Change implementation to reprocess attributes that
10617 need str_offsets_base and addr_base.
10618 (partial_die_info::read): Likewise.
10619 (read_attribute_reprocess): New function definition.
10620 (read_attribute_value): Change API to take an additional out parameter,
10621 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10622 when a non-dwo compile unit has index based attributes.
10623 (read_attribute): Reflect API changes.
10624 (read_addr_index_1): Reflect API changes. Update comments.
10625 (dwarf2_read_addr_index_data): Reflect API changes.
10626 (dwarf2_read_addr_index): Likewise.
10627 (read_str_index): Change API and implementation. This becomes a helper
10628 to be used by the new string index related methods. Update error
10629 message and comments.
10630 (read_dwo_str_index): New function definition.
10631 (read_stub_str_index): Likewise.
10632 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10633 * symfile.h (dwarf2_debug_sections): Likewise.
10634 * xcoffread.c (dwarf2_debug_sections): Likewise.
10635
10636 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10637
10638 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10639 core_reg_sect type to gdb_byte *.
10640 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10641 * cris-tdep.c (fetch_core_registers): Likewise.
10642 * corelow.c (core_target::get_core_register_section): Change
10643 type of `contents` to gdb::byte_vector.
10644
10645 2020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10646
10647 * tui/tui-wingeneral.c (box_win): Position the title in the center
10648 of the border.
10649
10650 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10651
10652 * corelow.c (core_target::get_core_register_section): Use
10653 std::vector instead of alloca.
10654
10655 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10656
10657 * warning.m4: Add -Wmissing-declarations to build_warnings.
10658 * configure: Re-generate.
10659
10660 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10661
10662 * python/python.c (init__gdb_module): Add declaration.
10663
10664 2020-01-13 Simon Marchi <simon.marchi@efficios.com>
10665
10666 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10667 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10668 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10669 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10670 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10671 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10672 * ada-exp.y (_initialize_ada_exp): Add declaration.
10673 * ada-lang.c (_initialize_ada_language): Add declaration.
10674 * ada-tasks.c (_initialize_tasks): Add declaration.
10675 * agent.c (_initialize_agent): Add declaration.
10676 * aix-thread.c (_initialize_aix_thread): Add declaration.
10677 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10678 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10679 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10680 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10681 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10682 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10683 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10684 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10685 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10686 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10687 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10688 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10689 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10690 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10691 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10692 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10693 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10694 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10695 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10696 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10697 * annotate.c (_initialize_annotate): Add declaration.
10698 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10699 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10700 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10701 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10702 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10703 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10704 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10705 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10706 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10707 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10708 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10709 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10710 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10711 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10712 * auto-load.c (_initialize_auto_load): Add declaration.
10713 * auxv.c (_initialize_auxv): Add declaration.
10714 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10715 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10716 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10717 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10718 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10719 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10720 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10721 * breakpoint.c (_initialize_breakpoint): Add declaration.
10722 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10723 * btrace.c (_initialize_btrace): Add declaration.
10724 * charset.c (_initialize_charset): Add declaration.
10725 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10726 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10727 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10728 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10729 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10730 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10731 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10732 * coffread.c (_initialize_coffread): Add declaration.
10733 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10734 * compile/compile.c (_initialize_compile): Add declaration.
10735 * complaints.c (_initialize_complaints): Add declaration.
10736 * completer.c (_initialize_completer): Add declaration.
10737 * copying.c (_initialize_copying): Add declaration.
10738 * corefile.c (_initialize_core): Add declaration.
10739 * corelow.c (_initialize_corelow): Add declaration.
10740 * cp-abi.c (_initialize_cp_abi): Add declaration.
10741 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10742 * cp-support.c (_initialize_cp_support): Add declaration.
10743 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10744 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10745 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10746 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10747 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10748 * ctfread.c (_initialize_ctfread): Add declaration.
10749 * d-lang.c (_initialize_d_language): Add declaration.
10750 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10751 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10752 * dbxread.c (_initialize_dbxread): Add declaration.
10753 * dcache.c (_initialize_dcache): Add declaration.
10754 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10755 * disasm.c (_initialize_disasm): Add declaration.
10756 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10757 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10758 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10759 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10760 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10761 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10762 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10763 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10764 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10765 * elfread.c (_initialize_elfread): Add declaration.
10766 * exec.c (_initialize_exec): Add declaration.
10767 * extension.c (_initialize_extension): Add declaration.
10768 * f-lang.c (_initialize_f_language): Add declaration.
10769 * f-valprint.c (_initialize_f_valprint): Add declaration.
10770 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10771 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10772 * filesystem.c (_initialize_filesystem): Add declaration.
10773 * findcmd.c (_initialize_mem_search): Add declaration.
10774 * findvar.c (_initialize_findvar): Add declaration.
10775 * fork-child.c (_initialize_fork_child): Add declaration.
10776 * frame-base.c (_initialize_frame_base): Add declaration.
10777 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10778 * frame.c (_initialize_frame): Add declaration.
10779 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10780 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10781 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10782 * gcore.c (_initialize_gcore): Add declaration.
10783 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10784 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10785 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10786 * gdbarch.c (_initialize_gdbarch): Add declaration.
10787 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10788 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10789 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10790 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10791 * go-lang.c (_initialize_go_language): Add declaration.
10792 * go32-nat.c (_initialize_go32_nat): Add declaration.
10793 * guile/guile.c (_initialize_guile): Add declaration.
10794 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10795 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10796 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10797 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10798 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10799 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10800 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10801 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10802 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10803 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10804 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10805 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10806 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10807 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10808 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10809 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10810 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10811 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10812 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10813 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10814 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10815 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10816 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10817 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10818 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10819 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10820 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10821 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10822 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10823 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10824 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10825 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10826 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10827 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10828 * infcall.c (_initialize_infcall): Add declaration.
10829 * infcmd.c (_initialize_infcmd): Add declaration.
10830 * inflow.c (_initialize_inflow): Add declaration.
10831 * infrun.c (_initialize_infrun): Add declaration.
10832 * interps.c (_initialize_interpreter): Add declaration.
10833 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10834 * jit.c (_initialize_jit): Add declaration.
10835 * language.c (_initialize_language): Add declaration.
10836 * linux-fork.c (_initialize_linux_fork): Add declaration.
10837 * linux-nat.c (_initialize_linux_nat): Add declaration.
10838 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10839 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10840 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10841 * m2-lang.c (_initialize_m2_language): Add declaration.
10842 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10843 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10844 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10845 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10846 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10847 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10848 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10849 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10850 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10851 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10852 * machoread.c (_initialize_machoread): Add declaration.
10853 * macrocmd.c (_initialize_macrocmd): Add declaration.
10854 * macroscope.c (_initialize_macroscope): Add declaration.
10855 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10856 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10857 * maint.c (_initialize_maint_cmds): Add declaration.
10858 * mdebugread.c (_initialize_mdebugread): Add declaration.
10859 * memattr.c (_initialize_mem): Add declaration.
10860 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10861 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10862 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10863 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10864 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10865 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10866 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10867 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10868 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10869 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10870 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10871 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10872 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10873 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10874 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10875 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10876 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10877 * mipsread.c (_initialize_mipsread): Add declaration.
10878 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10879 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10880 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10881 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10882 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10883 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10884 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10885 * nto-procfs.c (_initialize_procfs): Add declaration.
10886 * objc-lang.c (_initialize_objc_language): Add declaration.
10887 * observable.c (_initialize_observer): Add declaration.
10888 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10889 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10890 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10891 * osabi.c (_initialize_gdb_osabi): Add declaration.
10892 * osdata.c (_initialize_osdata): Add declaration.
10893 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10894 * parse.c (_initialize_parse): Add declaration.
10895 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10896 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10897 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10898 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10899 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10900 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10901 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10902 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10903 * printcmd.c (_initialize_printcmd): Add declaration.
10904 * probe.c (_initialize_probe): Add declaration.
10905 * proc-api.c (_initialize_proc_api): Add declaration.
10906 * proc-events.c (_initialize_proc_events): Add declaration.
10907 * proc-service.c (_initialize_proc_service): Add declaration.
10908 * procfs.c (_initialize_procfs): Add declaration.
10909 * producer.c (_initialize_producer): Add declaration.
10910 * psymtab.c (_initialize_psymtab): Add declaration.
10911 * python/python.c (_initialize_python): Add declaration.
10912 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10913 * record-btrace.c (_initialize_record_btrace): Add declaration.
10914 * record-full.c (_initialize_record_full): Add declaration.
10915 * record.c (_initialize_record): Add declaration.
10916 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10917 * regcache.c (_initialize_regcache): Add declaration.
10918 * reggroups.c (_initialize_reggroup): Add declaration.
10919 * remote-notif.c (_initialize_notif): Add declaration.
10920 * remote-sim.c (_initialize_remote_sim): Add declaration.
10921 * remote.c (_initialize_remote): Add declaration.
10922 * reverse.c (_initialize_reverse): Add declaration.
10923 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10924 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10925 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10926 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10927 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10928 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10929 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10930 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10931 Add declaration.
10932 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10933 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10934 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10935 * rust-exp.y (_initialize_rust_exp): Add declaration.
10936 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10937 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10938 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10939 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10940 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10941 * score-tdep.c (_initialize_score_tdep): Add declaration.
10942 * ser-go32.c (_initialize_ser_dos): Add declaration.
10943 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10944 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10945 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10946 * ser-uds.c (_initialize_ser_socket): Add declaration.
10947 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10948 * serial.c (_initialize_serial): Add declaration.
10949 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10950 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10951 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10952 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10953 * skip.c (_initialize_step_skip): Add declaration.
10954 * sol-thread.c (_initialize_sol_thread): Add declaration.
10955 * solib-aix.c (_initialize_solib_aix): Add declaration.
10956 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10957 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10958 * solib-frv.c (_initialize_frv_solib): Add declaration.
10959 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10960 * solib-target.c (_initialize_solib_target): Add declaration.
10961 * solib.c (_initialize_solib): Add declaration.
10962 * source-cache.c (_initialize_source_cache): Add declaration.
10963 * source.c (_initialize_source): Add declaration.
10964 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10965 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10966 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10967 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10968 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10969 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10970 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10971 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10972 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10973 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10974 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10975 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10976 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10977 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10978 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10979 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10980 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10981 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10982 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10983 * stabsread.c (_initialize_stabsread): Add declaration.
10984 * stack.c (_initialize_stack): Add declaration.
10985 * stap-probe.c (_initialize_stap_probe): Add declaration.
10986 * std-regs.c (_initialize_frame_reg): Add declaration.
10987 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10988 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10989 * symfile.c (_initialize_symfile): Add declaration.
10990 * symmisc.c (_initialize_symmisc): Add declaration.
10991 * symtab.c (_initialize_symtab): Add declaration.
10992 * target.c (_initialize_target): Add declaration.
10993 * target-connection.c (_initialize_target_connection): Add
10994 declaration.
10995 * target-dcache.c (_initialize_target_dcache): Add declaration.
10996 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10997 * thread.c (_initialize_thread): Add declaration.
10998 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10999 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11000 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11001 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11002 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11003 * tracectf.c (_initialize_ctf): Add declaration.
11004 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11005 * tracefile.c (_initialize_tracefile): Add declaration.
11006 * tracepoint.c (_initialize_tracepoint): Add declaration.
11007 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11008 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11009 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11010 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11011 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11012 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11013 * tui/tui.c (_initialize_tui): Add declaration.
11014 * typeprint.c (_initialize_typeprint): Add declaration.
11015 * ui-style.c (_initialize_ui_style): Add declaration.
11016 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11017 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11018 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11019 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11020 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11021 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11022 * unittests/filtered_iterator-selftests.c
11023 (_initialize_filtered_iterator_selftests): Add declaration.
11024 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11025 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11026 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11027 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11028 * unittests/main-thread-selftests.c
11029 (_initialize_main_thread_selftests): Add declaration.
11030 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11031 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11032 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11033 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11034 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11035 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11036 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11037 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11038 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11039 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11040 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11041 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11042 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11043 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11044 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11045 declaration.
11046 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11047 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11048 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11049 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11050 * user-regs.c (_initialize_user_regs): Add declaration.
11051 * utils.c (_initialize_utils): Add declaration.
11052 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11053 * valops.c (_initialize_valops): Add declaration.
11054 * valprint.c (_initialize_valprint): Add declaration.
11055 * value.c (_initialize_values): Add declaration.
11056 * varobj.c (_initialize_varobj): Add declaration.
11057 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11058 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11059 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11060 * windows-nat.c (_initialize_windows_nat): Add declaration.
11061 (_initialize_check_for_gdb_ini): Add declaration.
11062 (_initialize_loadable): Add declaration.
11063 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11064 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11065 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11066 * xcoffread.c (_initialize_xcoffread): Add declaration.
11067 * xml-support.c (_initialize_xml_support): Add declaration.
11068 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11069 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11070 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11071 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11072
11073 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11074
11075 * regformats/regdat.sh: Generate declaration for init function.
11076
11077 2020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11078
11079 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11080 up.
11081 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11082 close_one_inferior>: New methods.
11083 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11084 pass down target to find_inferior_pid.
11085 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11086 Pass down target to find_inferior_ptid.
11087 (gdbsim_target::create_inferior): Pass down target to
11088 add_thread_silent.
11089 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11090 target down to find_inferior_ptid and switch_to_thread.
11091 (gdbsim_target::close): Update to call close_one_inferior.
11092 (struct resume_data): Remove.
11093 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11094 directly, rather than through a void pointer.
11095 (gdbsim_target::resume): Update to call resume_one_inferior.
11096
11097 2020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11098
11099 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11100
11101 2020-01-12 Pedro Alves <palves@redhat.com>
11102
11103 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11104 directly for the current inferior instead of
11105 discard_all_inferiors.
11106 (discard_all_inferiors): Delete.
11107
11108 2020-01-11 Tom Tromey <tom@tromey.com>
11109
11110 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11111 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11112 deprecated_safe_get_selected_frame.
11113
11114 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11115
11116 * inferior.c (print_inferior): Switch inferior before printing it.
11117
11118 2020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11119 Pedro Alves <palves@redhat.com>
11120
11121 * progspace-and-thread.c (switch_to_program_space_and_thread):
11122 Assert there's an inferior for PSPACE. Use
11123 switch_to_inferior_no_thread to switch the inferior too.
11124 * progspace.c (program_space::~program_space): Call
11125 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11126 (program_space::free_all_objfiles): Don't call clear_symtab_users
11127 here.
11128 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11129
11130 2020-01-10 Pedro Alves <palves@redhat.com>
11131
11132 * NEWS: Mention multi-target debugging, "info connections", and
11133 "add-inferior -no-connection".
11134
11135 2020-01-10 Pedro Alves <palves@redhat.com>
11136
11137 * infrun.c: Include "target-connection.h".
11138 (check_multi_target_resumption): New.
11139 (proceed): Call it.
11140 * target-connection.c (make_target_connection_string): Make
11141 extern.
11142 * target-connection.h (make_target_connection_string): Declare.
11143
11144 2020-01-10 Pedro Alves <palves@redhat.com>
11145
11146 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11147 * inferior.c (uiout_field_connection): New function.
11148 (print_inferior): Add new "connection-id" column.
11149 (add_inferior_command): Show connection number/string of added
11150 inferior.
11151 * process-stratum-target.h
11152 (process_stratum_target::connection_string): New virtual method.
11153 (process_stratum_target::connection_number): New field.
11154 * remote.c (remote_target::connection_string): New override.
11155 * target-connection.c: New file.
11156 * target-connection.h: New file.
11157 * target.c (decref_target): Remove process_stratum targets from
11158 the connection list.
11159 (target_stack::push): Add process_stratum targets to the
11160 connection list.
11161
11162 2020-01-10 Pedro Alves <palves@redhat.com>
11163
11164 Revert:
11165 2016-04-12 Pedro Alves <palves@redhat.com>
11166 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11167 Remove references to name.
11168 * serial.h (struct serial) <name>: Delete.
11169
11170 2020-01-10 Pedro Alves <palves@redhat.com>
11171
11172 * gdbarch-selftests.c (register_to_value_test): Remove "target
11173 already pushed" check.
11174
11175 2020-01-10 Pedro Alves <palves@redhat.com>
11176 John Baldwin <jhb@FreeBSD.org>
11177
11178 * aarch64-linux-nat.c
11179 (aarch64_linux_nat_target::thread_architecture): Adjust.
11180 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11181 (task_command_1): Likewise.
11182 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11183 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11184 (aix_thread_target::store_registers)
11185 (aix_thread_target::thread_alive): Adjust.
11186 * amd64-fbsd-tdep.c: Include "inferior.h".
11187 (amd64fbsd_get_thread_local_address): Pass down target.
11188 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11189 thread's gdbarch instead of target_gdbarch.
11190 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11191 get_last_target_status.
11192 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11193 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11194 inferiors.
11195 (update_inserted_breakpoint_locations): Skip if inferiors with no
11196 execution.
11197 (update_global_location_list): When handling moribund locations,
11198 find representative inferior for location's pspace, and use thread
11199 count of its process_stratum target.
11200 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11201 * bsd-uthread.c (bsd_uthread_target::wait): Use
11202 as_process_stratum_target and adjust thread_change_ptid and
11203 add_thread calls.
11204 (bsd_uthread_target::update_thread_list): Use
11205 as_process_stratum_target and adjust find_thread_ptid,
11206 thread_change_ptid and add_thread calls.
11207 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11208 find_thread_ptid call.
11209 * corelow.c (add_to_thread_list): Adjust add_thread call.
11210 (core_target_open): Adjust add_thread_silent and thread_count
11211 calls.
11212 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11213 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11214 * event-top.c (async_disconnect): Pop targets from all inferiors.
11215 * exec.c (add_target_sections): Push exec target on all inferiors
11216 sharing the program space.
11217 (remove_target_sections): Remove the exec target from all
11218 inferiors sharing the program space.
11219 (exec_on_vfork): New.
11220 * exec.h (exec_on_vfork): Declare.
11221 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11222 Pass it down.
11223 (fbsd_nat_target::update_thread_list): Adjust.
11224 (fbsd_nat_target::resume): Adjust.
11225 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11226 down.
11227 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11228 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11229 get_thread_arch_regcache call.
11230 * fork-child.c (gdb_startup_inferior): Pass target down to
11231 startup_inferior and set_executing.
11232 * gdbthread.h (struct process_stratum_target): Forward declare.
11233 (add_thread, add_thread_silent, add_thread_with_info)
11234 (in_thread_list): Add process_stratum_target parameter.
11235 (find_thread_ptid(inferior*, ptid_t)): New overload.
11236 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11237 parameter.
11238 (all_threads()): Delete overload.
11239 (all_threads, all_non_exited_threads): Add process_stratum_target
11240 parameter.
11241 (all_threads_safe): Use brace initialization.
11242 (thread_count): Add process_stratum_target parameter.
11243 (set_resumed, set_running, set_stop_requested, set_executing)
11244 (threads_are_executing, finish_thread_state): Add
11245 process_stratum_target parameter.
11246 (switch_to_thread): Use is_current_thread.
11247 * i386-fbsd-tdep.c: Include "inferior.h".
11248 (i386fbsd_get_thread_local_address): Pass down target.
11249 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11250 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11251 have_inferiors check.
11252 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11253 (inf_ptrace_target::attach): Adjust.
11254 * infcall.c (run_inferior_call): Adjust.
11255 * infcmd.c (run_command_1): Pass target to
11256 scoped_finish_thread_state.
11257 (proceed_thread_callback): Skip inferiors with no execution.
11258 (continue_command): Rename 'all_threads' local to avoid hiding
11259 'all_threads' function. Adjust get_last_target_status call.
11260 (prepare_one_step): Adjust set_running call.
11261 (signal_command): Use user_visible_resume_target. Compare thread
11262 pointers instead of inferior_ptid.
11263 (info_program_command): Adjust to pass down target.
11264 (attach_command): Mark target's 'thread_executing' flag.
11265 (stop_current_target_threads_ns): New, factored out from ...
11266 (interrupt_target_1): ... this. Switch inferior before making
11267 target calls.
11268 * inferior-iter.h
11269 (struct all_inferiors_iterator, struct all_inferiors_range)
11270 (struct all_inferiors_safe_range)
11271 (struct all_non_exited_inferiors_range): Filter on
11272 process_stratum_target too. Remove explicit.
11273 * inferior.c (inferior::inferior): Push dummy target on target
11274 stack.
11275 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11276 Add process_stratum_target parameter, and pass it down.
11277 (have_live_inferiors): Adjust.
11278 (switch_to_inferior_and_push_target): New.
11279 (add_inferior_command, clone_inferior_command): Handle
11280 "-no-connection" parameter. Use
11281 switch_to_inferior_and_push_target.
11282 (_initialize_inferior): Mention "-no-connection" option in
11283 the help of "add-inferior" and "clone-inferior" commands.
11284 * inferior.h: Include "process-stratum-target.h".
11285 (interrupt_target_1): Use bool.
11286 (struct inferior) <push_target, unpush_target, target_is_pushed,
11287 find_target_beneath, top_target, process_target, target_at,
11288 m_stack>: New.
11289 (discard_all_inferiors): Delete.
11290 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11291 (all_inferiors, all_non_exited_inferiors): Add
11292 process_stratum_target parameter.
11293 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11294 (target_last_proc_target): New global.
11295 (follow_fork_inferior): Push target on new inferior. Pass target
11296 to add_thread_silent. Call exec_on_vfork. Handle target's
11297 reference count.
11298 (follow_fork): Adjust get_last_target_status call. Also consider
11299 target.
11300 (follow_exec): Push target on new inferior.
11301 (struct execution_control_state) <target>: New field.
11302 (user_visible_resume_target): New.
11303 (do_target_resume): Call target_async.
11304 (resume_1): Set target's threads_executing flag. Consider resume
11305 target.
11306 (commit_resume_all_targets): New.
11307 (proceed): Also consider resume target. Skip threads of inferiors
11308 with no execution. Commit resumtion in all targets.
11309 (start_remote): Pass current inferior to wait_for_inferior.
11310 (infrun_thread_stop_requested): Consider target as well. Pass
11311 thread_info pointer to clear_inline_frame_state instead of ptid.
11312 (infrun_thread_thread_exit): Consider target as well.
11313 (random_pending_event_thread): New inferior parameter. Use it.
11314 (do_target_wait): Rename to ...
11315 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11316 down.
11317 (threads_are_resumed_pending_p, do_target_wait): New.
11318 (prepare_for_detach): Adjust calls.
11319 (wait_for_inferior): New inferior parameter. Handle it. Use
11320 do_target_wait_1 instead of do_target_wait.
11321 (fetch_inferior_event): Adjust. Switch to representative
11322 inferior. Pass target down.
11323 (set_last_target_status): Add process_stratum_target parameter.
11324 Save target in global.
11325 (get_last_target_status): Add process_stratum_target parameter and
11326 handle it.
11327 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11328 (context_switch): Check inferior_ptid == null_ptid before calling
11329 inferior_thread().
11330 (get_inferior_stop_soon): Pass down target.
11331 (wait_one): Rename to ...
11332 (poll_one_curr_target): ... this.
11333 (struct wait_one_event): New.
11334 (wait_one): New.
11335 (stop_all_threads): Adjust.
11336 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11337 event's target.
11338 (switch_back_to_stepped_thread): Also consider target.
11339 (print_stop_event): Update.
11340 (normal_stop): Update. Also consider the resume target.
11341 * infrun.h (wait_for_inferior): Remove declaration.
11342 (user_visible_resume_target): New declaration.
11343 (get_last_target_status, set_last_target_status): New
11344 process_stratum_target parameter.
11345 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11346 process_stratum_target parameter, and use it.
11347 (clear_inline_frame_state (thread_info*)): New.
11348 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11349 process_stratum_target parameter.
11350 (clear_inline_frame_state (thread_info*)): Declare.
11351 * linux-fork.c (delete_checkpoint_command): Pass target down to
11352 find_thread_ptid.
11353 (checkpoint_command): Adjust.
11354 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11355 instead of just tweaking inferior_ptid.
11356 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11357 (exit_lwp): Pass target down to find_thread_ptid.
11358 (attach_proc_task_lwp_callback): Pass target down to
11359 add_thread/set_running/set_executing.
11360 (linux_nat_target::attach): Pass target down to
11361 thread_change_ptid.
11362 (get_detach_signal): Pass target down to find_thread_ptid.
11363 Consider last target status's target.
11364 (linux_resume_one_lwp_throw, resume_lwp)
11365 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11366 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11367 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11368 (linux_nat_target::async_wait_fd): New.
11369 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11370 target down.
11371 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11372 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11373 * linux-thread-db.c (struct thread_db_info::process_target): New
11374 field.
11375 (add_thread_db_info): Save target.
11376 (get_thread_db_info): New process_stratum_target parameter. Also
11377 match target.
11378 (delete_thread_db_info): New process_stratum_target parameter.
11379 Also match target.
11380 (thread_from_lwp): Adjust to pass down target.
11381 (thread_db_notice_clone): Pass down target.
11382 (check_thread_db_callback): Pass down target.
11383 (try_thread_db_load_1): Always push the thread_db target.
11384 (try_thread_db_load, record_thread): Pass target down.
11385 (thread_db_target::detach): Pass target down. Always unpush the
11386 thread_db target.
11387 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11388 target down. Always unpush the thread_db target.
11389 (find_new_threads_callback, thread_db_find_new_threads_2)
11390 (thread_db_target::update_thread_list): Pass target down.
11391 (thread_db_target::pid_to_str): Pass current inferior down.
11392 (thread_db_target::get_thread_local_address): Pass target down.
11393 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11394 target down.
11395 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11396 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11397 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11398 (procfs_init_inferior): Rename to ...
11399 (procfs_target::procfs_init_inferior): ... this and adjust.
11400 (procfs_target::create_inferior, procfs_notice_thread)
11401 (procfs_do_thread_registers): Adjust.
11402 * ppc-fbsd-tdep.c: Include "inferior.h".
11403 (ppcfbsd_get_thread_local_address): Pass down target.
11404 * proc-service.c (ps_xfer_memory): Switch current inferior and
11405 program space as well.
11406 (get_ps_regcache): Pass target down.
11407 * process-stratum-target.c
11408 (process_stratum_target::thread_address_space)
11409 (process_stratum_target::thread_architecture): Pass target down.
11410 * process-stratum-target.h
11411 (process_stratum_target::threads_executing): New field.
11412 (as_process_stratum_target): New.
11413 * ravenscar-thread.c
11414 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11415 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11416 down.
11417 * record-btrace.c (record_btrace_target::info_record): Adjust.
11418 (record_btrace_target::record_method)
11419 (record_btrace_target::record_is_replaying)
11420 (record_btrace_target::fetch_registers)
11421 (get_thread_current_frame_id, record_btrace_target::resume)
11422 (record_btrace_target::wait, record_btrace_target::stop): Pass
11423 target down.
11424 * record-full.c (record_full_wait_1): Switch to event thread.
11425 Pass target down.
11426 * regcache.c (regcache::regcache)
11427 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11428 process_stratum_target parameter and handle it.
11429 (current_thread_target): New global.
11430 (get_thread_regcache): Add process_stratum_target parameter and
11431 handle it. Switch inferior before calling target method.
11432 (get_thread_regcache): Pass target down.
11433 (get_thread_regcache_for_ptid): Pass target down.
11434 (registers_changed_ptid): Add process_stratum_target parameter and
11435 handle it.
11436 (registers_changed_thread, registers_changed): Pass target down.
11437 (test_get_thread_arch_aspace_regcache): New.
11438 (current_regcache_test): Define a couple local test_target_ops
11439 instances and use them for testing.
11440 (readwrite_regcache): Pass process_stratum_target parameter.
11441 (cooked_read_test, cooked_write_test): Pass mock_target down.
11442 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11443 (get_thread_arch_aspace_regcache): Add process_stratum_target
11444 parameter.
11445 (regcache::target): New method.
11446 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11447 (regcache::registers_changed_ptid): Add process_stratum_target
11448 parameter.
11449 (regcache::m_target): New field.
11450 (registers_changed_ptid): Add process_stratum_target parameter.
11451 * remote.c (remote_state::supports_vCont_probed): New field.
11452 (remote_target::async_wait_fd): New method.
11453 (remote_unpush_and_throw): Add remote_target parameter.
11454 (get_current_remote_target): Adjust.
11455 (remote_target::remote_add_inferior): Push target.
11456 (remote_target::remote_add_thread)
11457 (remote_target::remote_notice_new_inferior)
11458 (get_remote_thread_info): Pass target down.
11459 (remote_target::update_thread_list): Skip threads of inferiors
11460 bound to other targets. (remote_target::close): Don't discard
11461 inferiors. (remote_target::add_current_inferior_and_thread)
11462 (remote_target::process_initial_stop_replies)
11463 (remote_target::start_remote)
11464 (remote_target::remote_serial_quit_handler): Pass down target.
11465 (remote_target::remote_unpush_target): New remote_target
11466 parameter. Unpush the target from all inferiors.
11467 (remote_target::remote_unpush_and_throw): New remote_target
11468 parameter. Pass it down.
11469 (remote_target::open_1): Check whether the current inferior has
11470 execution instead of checking whether any inferior is live. Pass
11471 target down.
11472 (remote_target::remote_detach_1): Pass down target. Use
11473 remote_unpush_target.
11474 (extended_remote_target::attach): Pass down target.
11475 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11476 (remote_target::append_resumption): Pass down target.
11477 (remote_target::append_pending_thread_resumptions)
11478 (remote_target::remote_resume_with_hc, remote_target::resume)
11479 (remote_target::commit_resume): Pass down target.
11480 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11481 (remote_target::interrupt_query)
11482 (remote_target::remove_new_fork_children)
11483 (remote_target::check_pending_events_prevent_wildcard_vcont)
11484 (remote_target::remote_parse_stop_reply)
11485 (remote_target::process_stop_reply): Pass down target.
11486 (first_remote_resumed_thread): New remote_target parameter. Pass
11487 it down.
11488 (remote_target::wait_as): Pass down target.
11489 (unpush_and_perror): New remote_target parameter. Pass it down.
11490 (remote_target::readchar, remote_target::remote_serial_write)
11491 (remote_target::getpkt_or_notif_sane_1)
11492 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11493 down target.
11494 (remote_target::mourn_inferior): Pass down target. Use
11495 remote_unpush_target.
11496 (remote_target::core_of_thread)
11497 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11498 (remote_target::pid_to_exec_file)
11499 (remote_target::thread_handle_to_thread_info): Pass down target.
11500 (remote_target::async_wait_fd): New.
11501 * riscv-fbsd-tdep.c: Include "inferior.h".
11502 (riscv_fbsd_get_thread_local_address): Pass down target.
11503 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11504 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11505 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11506 Adjust.
11507 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11508 * solib-svr4.c (enable_break): Pass down target.
11509 * spu-multiarch.c (parse_spufs_run): Pass down target.
11510 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11511 * target-delegates.c: Regenerate.
11512 * target.c (g_target_stack): Delete.
11513 (current_top_target): Return the current inferior's top target.
11514 (target_has_execution_1): Refer to the passed-in inferior's top
11515 target.
11516 (target_supports_terminal_ours): Check whether the initial
11517 inferior was already created.
11518 (decref_target): New.
11519 (target_stack::push): Incref/decref the target.
11520 (push_target, push_target, unpush_target): Adjust.
11521 (target_stack::unpush): Defref target.
11522 (target_is_pushed): Return bool. Adjust to refer to the current
11523 inferior's target stack.
11524 (dispose_inferior): Delete, and inline parts ...
11525 (target_preopen): ... here. Only dispose of the current inferior.
11526 (target_detach): Hold strong target reference while detaching.
11527 Pass target down.
11528 (target_thread_name): Add assertion.
11529 (target_resume): Pass down target.
11530 (target_ops::beneath, find_target_at): Adjust to refer to the
11531 current inferior's target stack.
11532 (get_dummy_target): New.
11533 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11534 has a thread running.
11535 (initialize_targets): Rename to ...
11536 (_initialize_target): ... this.
11537 * target.h: Include "gdbsupport/refcounted-object.h".
11538 (struct target_ops): Inherit refcounted_object.
11539 (target_ops::shortname, target_ops::longname): Make const.
11540 (target_ops::async_wait_fd): New method.
11541 (decref_target): Declare.
11542 (struct target_ops_ref_policy): New.
11543 (target_ops_ref): New typedef.
11544 (get_dummy_target): Declare function.
11545 (target_is_pushed): Return bool.
11546 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11547 (all_matching_threads_iterator::all_matching_threads_iterator):
11548 Handle filter target.
11549 * thread-iter.h (struct all_matching_threads_iterator, struct
11550 all_matching_threads_range, class all_non_exited_threads_range):
11551 Filter by target too. Remove explicit.
11552 * thread.c (threads_executing): Delete.
11553 (inferior_thread): Pass down current inferior.
11554 (clear_thread_inferior_resources): Pass down thread pointer
11555 instead of ptid_t.
11556 (add_thread_silent, add_thread_with_info, add_thread): Add
11557 process_stratum_target parameter. Use it for thread and inferior
11558 searches.
11559 (is_current_thread): New.
11560 (thread_info::deletable): Use it.
11561 (find_thread_ptid, thread_count, in_thread_list)
11562 (thread_change_ptid, set_resumed, set_running): New
11563 process_stratum_target parameter. Pass it down.
11564 (set_executing): New process_stratum_target parameter. Pass it
11565 down. Adjust reference to 'threads_executing'.
11566 (threads_are_executing): New process_stratum_target parameter.
11567 Adjust reference to 'threads_executing'.
11568 (set_stop_requested, finish_thread_state): New
11569 process_stratum_target parameter. Pass it down.
11570 (switch_to_thread): Also match inferior.
11571 (switch_to_thread): New process_stratum_target parameter. Pass it
11572 down.
11573 (update_threads_executing): Reimplement.
11574 * top.c (quit_force): Pop targets from all inferior.
11575 (gdb_init): Don't call initialize_targets.
11576 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11577 Declare.
11578 (windows_add_thread, windows_delete_thread): Adjust.
11579 (get_windows_debug_event): Rename to ...
11580 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11581 * tracefile-tfile.c (tfile_target_open): Pass down target.
11582 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11583 Forward declare.
11584 (switch_to_thread): Add process_stratum_target parameter.
11585 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11586 parameter. Use it.
11587 (mi_on_resume): Pass target down.
11588 * nat/fork-inferior.c (startup_inferior): Add
11589 process_stratum_target parameter. Pass it down.
11590 * nat/fork-inferior.h (startup_inferior): Add
11591 process_stratum_target parameter.
11592 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11593
11594 2020-01-10 Pedro Alves <palves@redhat.com>
11595
11596 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11597 directly. Instead find the first thread in the thread list and
11598 use switch_to_thread.
11599
11600 2020-01-10 Pedro Alves <palves@redhat.com>
11601
11602 * remote.c (remote_target::remote_add_inferior): Don't bind a
11603 process to the current inferior if the current inferior is already
11604 bound to a process.
11605
11606 2020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11607 Pedro Alves <palves@redhat.com>
11608
11609 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11610 If no process is specified, return null_ptid instead of
11611 inferior_ptid.
11612 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11613 TARGET_WAITKIND_SIGNALLED with no pid.
11614
11615 2020-01-10 Pedro Alves <palves@redhat.com>
11616
11617 * remote.c (first_remote_resumed_thread): New.
11618 (remote_target::wait_as): Use it as default event_ptid instead of
11619 inferior_ptid.
11620
11621 2020-01-10 Pedro Alves <palves@redhat.com>
11622
11623 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11624
11625 2020-01-10 Pedro Alves <palves@redhat.com>
11626
11627 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11628 not -1.
11629
11630 2020-01-10 Pedro Alves <palves@redhat.com>
11631
11632 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11633 ptid to get_last_target_status.
11634 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11635 ptid to get_last_target_status.
11636 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11637 get_last_target_status.
11638 (info_program_command): Don't pass a target_waitstatus to
11639 get_last_target_status.
11640 * infrun.c (init_wait_for_inferior): Use
11641 nullify_last_target_wait_ptid.
11642 (get_last_target_status): Handle nullptr arguments.
11643 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11644 (print_stop_event): Don't pass a ptid to get_last_target_status.
11645 (normal_stop): Don't pass a ptid to get_last_target_status.
11646 * infrun.h (get_last_target_status, set_last_target_status): Move
11647 comments here and update.
11648 (nullify_last_target_wait_ptid): Declare.
11649 * linux-fork.c (fork_load_infrun_state): Remove local extern
11650 declaration of nullify_last_target_wait_ptid.
11651 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11652 to get_last_target_status.
11653
11654 2020-01-10 Pedro Alves <palves@redhat.com>
11655
11656 * gdbthread.h (scoped_restore_current_thread)
11657 <dont_restore, restore, m_dont_restore>: Declare.
11658 * thread.c (thread_alive): Add assertion. Return bool.
11659 (switch_to_thread_if_alive): New.
11660 (prune_threads): Switch inferior/thread.
11661 (print_thread_info_1): Switch thread before calling target methods.
11662 (scoped_restore_current_thread::restore): New, factored out from
11663 ...
11664 (scoped_restore_current_thread::~scoped_restore_current_thread):
11665 ... this.
11666 (scoped_restore_current_thread::scoped_restore_current_thread):
11667 Add assertion.
11668 (thread_apply_all_command, thread_select): Use
11669 switch_to_thread_if_alive.
11670 * infrun.c (proceed, restart_threads, handle_signal_stop)
11671 (switch_back_to_stepped_thread): Switch current thread before
11672 calling target methods.
11673
11674 2020-01-10 Pedro Alves <palves@redhat.com>
11675
11676 * inferior.c (switch_to_inferior_no_thread): New function,
11677 factored out from ...
11678 (inferior_command): ... here.
11679 * inferior.h (switch_to_inferior_no_thread): Declare.
11680 * mi/mi-main.c (run_one_inferior): Use
11681 switch_to_inferior_no_thread.
11682
11683 2020-01-10 Pedro Alves <palves@redhat.com>
11684
11685 * infcmd.c (kill_command): Remove dead code.
11686
11687 2020-01-10 Pedro Alves <palves@redhat.com>
11688
11689 * remote.c (remote_target::mourn_inferior): No longer check
11690 whether the target is running.
11691
11692 2020-01-10 Pedro Alves <palves@redhat.com>
11693
11694 * corelow.c (core_target::has_execution): Change parameter type to
11695 inferior pointer.
11696 * inferior.c (number_of_live_inferiors): Use
11697 inferior::has_execution instead of target_has_execution_1.
11698 * inferior.h (inferior::has_execution): New.
11699 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11700 inferior::has_execution instead of target_has_execution_1.
11701 * process-stratum-target.c
11702 (process_stratum_target::has_execution): Change parameter type to
11703 inferior pointer. Check the inferior's PID instead of
11704 inferior_ptid.
11705 * process-stratum-target.h
11706 (process_stratum_target::has_execution): Change parameter type to
11707 inferior pointer.
11708 * record-full.c (record_full_core_target::has_execution): Change
11709 parameter type to inferior pointer.
11710 * target.c (target_has_execution_1): Change parameter type to
11711 inferior pointer.
11712 (target_has_execution_current): Adjust.
11713 * target.h (target_ops::has_execution): Change parameter type to
11714 inferior pointer.
11715 (target_has_execution_1): Change parameter type to inferior
11716 pointer. Change return type to bool.
11717 * tracefile.h (tracefile_target::has_execution): Change parameter
11718 type to inferior pointer.
11719
11720 2020-01-10 Pedro Alves <palves@redhat.com>
11721
11722 * exceptions.c (print_flush): Remove current_top_target() check.
11723
11724 2020-01-10 Pedro Alves <palves@redhat.com>
11725
11726 * remote.c (show_remote_exec_file): Show the current inferior's
11727 exec-file instead of the command variable's value.
11728
11729 2020-01-10 Pedro Alves <palves@redhat.com>
11730
11731 * record-full.c (record_full_resume_ptid): New global.
11732 (record_full_target::resume): Set it.
11733 (record_full_wait_1): Use record_full_resume_ptid instead of
11734 inferior_ptid.
11735
11736 2020-01-10 Pedro Alves <palves@redhat.com>
11737
11738 * gdbthread.h (scoped_restore_current_thread)
11739 <dont_restore, restore, m_dont_restore>: Declare.
11740 * thread.c (thread_alive): Add assertion. Return bool.
11741 (switch_to_thread_if_alive): New.
11742 (prune_threads): Switch inferior/thread.
11743 (print_thread_info_1): Switch thread before calling target methods.
11744 (scoped_restore_current_thread::restore): New, factored out from
11745 ...
11746 (scoped_restore_current_thread::~scoped_restore_current_thread):
11747 ... this.
11748 (scoped_restore_current_thread::scoped_restore_current_thread):
11749 Add assertion.
11750 (thread_apply_all_command, thread_select): Use
11751 switch_to_thread_if_alive.
11752
11753 2020-01-10 George Barrett <bob@bob131.so>
11754
11755 * stap-probe.c (stap_modify_semaphore): Don't check for null
11756 semaphores.
11757 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11758 for null semaphores.
11759
11760 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11761
11762 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11763 all source windows, and maintain horizontal scroll status while
11764 doing so.
11765
11766 2020-01-09 Tom Tromey <tom@tromey.com>
11767
11768 PR tui/18932:
11769 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11770 update_source_window, not print_source_lines.
11771
11772 2020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11773
11774 * tui/tui.c (tui_enable): Register tui hooks after calling
11775 tui_display_main.
11776
11777 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11778
11779 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11780
11781 2020-01-08 Simon Marchi <simon.marchi@efficios.com>
11782
11783 * thread.c (print_thread_info_1): Fix indentation.
11784
11785 2020-01-09 Christian Biesinger <cbiesinger@google.com>
11786
11787 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11788 unique_xmalloc_ptr outside the if to always free the demangled name.
11789
11790 2020-01-08 Tom Tromey <tromey@adacore.com>
11791
11792 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11793 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11794 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11795 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11796 Remove.
11797 (section_offsets): New typedef.
11798 * symtab.c (fixup_section, get_msymbol_address): Update.
11799 * symmisc.c (dump_msymbols): Update.
11800 * symfile.h (relative_addr_info_to_section_offsets)
11801 (symfile_map_offsets_to_segments): Update.
11802 * symfile.c (build_section_addr_info_from_objfile)
11803 (init_objfile_sect_indices): Update.
11804 (struct place_section_arg): Change type of "offsets".
11805 (place_section): Update.
11806 (relative_addr_info_to_section_offsets): Change type of
11807 "section_offsets". Remove "num_sections" parameter.
11808 (default_symfile_offsets, syms_from_objfile_1)
11809 (set_objfile_default_section_offset): Update.
11810 (reread_symbols): No need to preserve section offsets by hand.
11811 (symfile_map_offsets_to_segments): Change type of "offsets".
11812 * stap-probe.c (relocate_address): Update.
11813 * stabsread.h (process_one_symbol): Update.
11814 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11815 (solib_target_relocate_section_addresses): Update.
11816 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11817 Update.
11818 * solib-frv.c (frv_relocate_main_executable): Update.
11819 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11820 * solib-aix.c (solib_aix_get_section_offsets): Change return
11821 type.
11822 (solib_aix_solib_create_inferior_hook): Update.
11823 * remote.c (remote_target::get_offsets): Update.
11824 * psymtab.c (find_pc_sect_psymtab): Update.
11825 * psympriv.h (struct partial_symbol) <address, text_low,
11826 text_high>: Update.
11827 * objfiles.h (obj_section_offset): Update.
11828 (struct objfile) <section_offsets>: Change type.
11829 <num_sections>: Remove.
11830 (objfile_relocate): Update.
11831 * objfiles.c (entry_point_address_query): Update
11832 (relocate_one_symbol): Change type of "section_offsets".
11833 (objfile_relocate1, objfile_relocate1): Change type of
11834 "new_offsets".
11835 (objfile_rebase1): Update.
11836 * mipsread.c (mipscoff_symfile_read): Update.
11837 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11838 parameter.
11839 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11840 (parse_external, psymtab_to_symtab_1): Update.
11841 * machoread.c (macho_symfile_offsets): Update.
11842 * ia64-tdep.c (ia64_find_unwind_table): Update.
11843 * hppa-tdep.c (read_unwind_info): Update.
11844 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11845 * dwarf2read.c (create_addrmap_from_index)
11846 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11847 (process_psymtab_comp_unit_reader, add_partial_symbol)
11848 (add_partial_subprogram, process_full_comp_unit)
11849 (read_file_scope, read_func_scope, read_lexical_block_scope)
11850 (read_call_site_scope, dwarf2_rnglists_process)
11851 (dwarf2_ranges_process, dwarf2_ranges_read)
11852 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11853 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11854 Update.
11855 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11856 Update.
11857 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11858 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11859 (process_one_symbol): Change type of "section_offsets".
11860 * ctfread.c (get_objfile_text_range): Update.
11861 * coffread.c (coff_symtab_read, enter_linenos)
11862 (process_coff_symbol): Update.
11863 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11864 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11865
11866 2020-01-08 Tom Tromey <tromey@adacore.com>
11867
11868 * dwarf2read.c (parse_macro_definition): Use std::string.
11869 (parse_macro_definition): Likewise.
11870
11871 2020-01-08 Tom Tromey <tromey@adacore.com>
11872
11873 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11874 (ATTR_ALLOC_CHUNK): Remove.
11875
11876 2020-01-08 Tom Tromey <tromey@adacore.com>
11877
11878 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11879
11880 2020-01-08 Tom Tromey <tromey@adacore.com>
11881
11882 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11883 (dwarf2_compute_name, open_dwo_file): Likewise.
11884 (process_enumeration_scope): Use std::vector.
11885 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11886 (partial_die_info::fixup, dwarf2_start_subfile)
11887 (guess_full_die_structure_name, dwarf2_name): Likewise.
11888 (determine_prefix): Update.
11889 (guess_full_die_structure_name): Make return type const.
11890 (partial_die_full_name): Return unique_xmalloc_ptr.
11891 (DW_FIELD_ALLOC_CHUNK): Remove.
11892
11893 2020-01-07 Tom Tromey <tromey@adacore.com>
11894
11895 PR build/24937:
11896 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11897
11898 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11899
11900 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11901
11902 2020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11903
11904 * stack.c (print_frame_info): Move disassemble_next_line code
11905 inside source_print block.
11906
11907 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11908
11909 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11910 gdb/signals.h, as we are now using native signal symbols.
11911
11912 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11913
11914 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11915 overflow by an early check of content vs threshold.
11916 * tui/tui-source.c (tui_source_window::line_is_displayed):
11917 Likewise.
11918
11919 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11920
11921 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11922
11923 2020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11924
11925 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11926 export table if no section contains it's RVA.
11927
11928 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11929
11930 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11931
11932 2020-01-06 Hannes Domani <ssbssa@yahoo.de>
11933
11934 * source.c (print_source_lines_base): Set last_line_listed.
11935
11936 2020-01-06 Shahab Vahedi <shahab@synopsys.com>
11937
11938 * tui/tui-disasm.c: Remove trailing spaces.
11939
11940 2020-01-06 Eli Zaretskii <eliz@gnu.org>
11941 Pedro Alves <palves@redhat.com>
11942
11943 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11944 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11945 (windows_gdb_signal_to_target): New function, uses the above
11946 enumeration to convert GDB internal signal codes to equivalent
11947 Windows codes.
11948 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11949 * windows-nat.c: Include "gdb_wait.h".
11950 (get_windows_debug_event): Extract the fatal exception from the
11951 exit status and convert to the equivalent Posix signal number.
11952 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11953 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11954 * gdbsupport/gdb_wait.c: New file, implements
11955 windows_status_to_termsig.
11956 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11957 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11958
11959 2020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11960
11961 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11962 show_layout.
11963
11964 2020-01-05 Luis Machado <luis.machado@linaro.org>
11965
11966 * aarch64-linux-nat.c
11967 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11968 and bfd_mach_aarch64.
11969
11970 2020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11971
11972 * ui-file.c (stdio_file::can_emit_style_escape)
11973 (tee_file::can_emit_style_escape): Ensure style is used also on
11974 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11975 to gdb_stdout.
11976 * main.c (set_gdb_data_directory): Use file style to output the
11977 warning that the given pathname is not a directory.
11978 * top.c (show_history_filename, gdb_safe_append_history)
11979 (show_gdb_datadir): Use file style.
11980
11981 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11982
11983 * solib-target.c (struct lm_info_target):
11984 Change offsets to be a unique_xmalloc_ptr.
11985 (solib_target_relocate_section_addresses): Update.
11986
11987 2020-01-03 Hannes Domani <ssbssa@yahoo.de>
11988
11989 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11990
11991 2020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11992
11993 * MAINTAINERS (Write After Approval): Add myself.
11994
11995 2020-01-02 Luis Machado <luis.machado@linaro.org>
11996
11997 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11998 Cell BE architecture.
11999 * target.h (struct target_ops) <thread_architecture>: Likewise.
12000
12001 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12002
12003 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12004
12005 2020-01-01 Hannes Domani <ssbssa@yahoo.de>
12006
12007 * MAINTAINERS (Write After Approval): Add myself.
12008
12009 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12010
12011 * gdbarch.sh: Update copyright year range of generated files.
12012
12013 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12014
12015 Update copyright year range in all GDB files.
12016
12017 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12018
12019 * copyright.py: Convert to Python 3.
12020
12021 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12022
12023 * copyright.py: Adapt after move of gnulib directory from gdb
12024 directory to toplevel directory.
12025
12026 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12027
12028 * copyright.py (main): Exit if run from the wrong directory.
12029
12030 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12031
12032 * top.c (print_gdb_version): Change copyright year to 2020.
12033
12034 2020-01-01 Joel Brobecker <brobecker@adacore.com>
12035
12036 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
12037
12038 For older changes see ChangeLog-2019.
12039 \f
12040 Local Variables:
12041 mode: change-log
12042 left-margin: 8
12043 fill-column: 74
12044 version-control: never
12045 coding: utf-8
12046 End:
This page took 0.275748 seconds and 5 git commands to generate.