]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Handle case where Ada task is current but not listed
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a8ac85bb
TT
12020-08-07 Tom Tromey <tromey@adacore.com>
2
3 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
4 get_base_thread_from_ravenscar_task>: Now methods.
5 <m_cpu_map>: New member.
6 (ravenscar_thread_target::get_thread_base_cpu): Rename from
7 ravenscar_get_thread_base_cpu. Check m_cpu_map.
8 (ravenscar_thread_target::task_is_currently_active): Update.
9 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
10 Now a method.
11 (ravenscar_thread_target::add_active_thread): Put initial thread
12 into the m_cpu_map.
13
550ab58d
TT
142020-08-07 Tom Tromey <tromey@adacore.com>
15
16 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
17 event_ptid.
18
e9546579
TT
192020-08-07 Tom Tromey <tromey@adacore.com>
20
21 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
22 runtime_initialized.
23
3d4470e5
TT
242020-08-07 Tom Tromey <tromey@adacore.com>
25
26 * ravenscar-thread.c (ravenscar_thread_target): Don't call
27 add_active_thread.
28 (ravenscar_thread_target::add_active_thread): Now public.
29 (ravenscar_inferior_created): Call add_active_thread after pushing
30 the target.
31
888bdb2b
SM
322020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
33
34 * regcache.c (ptid_regcache_map): New type.
35 (target_ptid_regcache_map): New type.
36 (regcaches): Change type to target_ptid_regcache_map.
37 (get_thread_arch_aspace_regcache): Update to regcaches' new
38 type.
39 (regcache_thread_ptid_changed): Likewise.
40 (registers_changed_ptid): Likewise.
41 (regcaches_size): Likewise.
42 (regcaches_test): Update.
43 (regcache_thread_ptid_changed): Update.
44 * regcache.h (regcache_up): New type.
45 * gdbsupport/ptid.h (hash_ptid): New struct.
46
b161a60d
SM
472020-08-07 Simon Marchi <simon.marchi@efficios.com>
48
49 * observable.h (thread_ptid_changed): Add parameter
50 `process_stratum_target *`.
51 * infrun.c (infrun_thread_ptid_changed): Add parameter
52 `process_stratum_target *` and use it.
53 (selftests): New namespace.
54 (infrun_thread_ptid_changed): New function.
55 (_initialize_infrun): Register selftest.
56 * regcache.c (regcache_thread_ptid_changed): Add parameter
57 `process_stratum_target *` and use it.
58 (regcache_thread_ptid_changed): New function.
59 (_initialize_regcache): Register selftest.
60 * thread.c (thread_change_ptid): Pass target to
61 thread_ptid_changed observable.
62
d2854d8d
CT
632020-08-06 Caroline Tice <cmtice@google.com>
64
65 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
66 (struct dwp_sections): Update field comments. Add loclists and
67 rnglists fields.
68 (struct virtual_v2_dwo_sections): Rename struct to
69 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
70 size & offset fields for loclists and rnglists.
71 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
72 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
73 skipping dummy type units.
74 (create_dwp_hash_table): Update the large comment above the function to
75 discuss Version 5 DWP files as well, with references. Update all the
76 version checks in the function to check for version 5 as well. Add new
77 section at the end to create dwp hash table for version 5.
78 (create_dwp_v2_section): Rename function to
79 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
80 Add V5 to error message text.
81 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
82 into calls to create_dwp_v2_or_v5_section.
83 (create_dwo_unit_in_dwp_v5): New function.
84 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
85 check for version2; add else clause to handle version 5.
86 (open_and_init_dwo_file): Add code to check dwarf version & only call
87 create_debug_types_hash_table (with sections.types) if version is not 5;
88 else call create_debug_type_hash_table, with sections.info.
89 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
90 version 5.
91 (dwarf2_locate_v5_dwp_sections): New function.
92 (open_and_init_dwp_file): Add else-if clause for version 5 to call
93 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
94
159ed7d9
SM
952020-08-06 Simon Marchi <simon.marchi@efficios.com>
96
97 * regcache.h (class regcache): Remove friend
98 registers_changed_ptid.
99 <regcache_thread_ptid_changed>: Remove.
100 <regcaches>: Remove.
101 * regcache.c (regcache::regcaches): Rename to...
102 (regcaches): ... this. Make static.
103 (get_thread_arch_aspace_regcache): Update.
104 (regcache::regcache_thread_ptid_changed): Rename to...
105 (regcache_thread_ptid_changed): ... this. Update.
106 (class regcache_access): Remove.
107 (regcaches_test): Update.
108 (_initialize_regcache): Update.
109 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
110 <forward_list>.
111
174981ae
SM
1122020-08-06 Simon Marchi <simon.marchi@efficios.com>
113
114 * regcache.h (class regcache) <current_regcache>: Rename to...
115 <regcaches>: ... this. Move doc here.
116 * regcache.c (regcache::current_regcache) Rename to...
117 (regcache::regcaches): ... this. Move doc to header.
118 (get_thread_arch_aspace_regcache): Update.
119 (regcache::regcache_thread_ptid_changed): Update.
120 (registers_changed_ptid): Update.
121 (class regcache_access) <current_regcache_size>: Rename to...
122 <regcaches_size>: ... this.
123 (current_regcache_test): Rename to...
124 (regcaches_test): ... this.
125 (_initialize_regcache): Update.
126
ed908db6
VC
1272020-08-06 Victor Collod <vcollod@nvidia.com>
128
129 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
130
b5582ab7
KB
1312020-08-05 Kevin Buettner <kevinb@redhat.com>
132
133 * corelow.c (core_target::build_file_mappings): Don't output
134 null pathname in warning.
135
ea946b86
SM
1362020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
137
138 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
139 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
140 gdb.dwarf2/dw2-single-line-discriminators.exp,
141 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
142
57d02173
TT
1432020-08-05 Tom Tromey <tromey@adacore.com>
144
145 PR rust/26197:
146 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
147 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
148 Fix off-by-one and type size errors in ordinary case.
149
5555c86d
TV
1502020-08-05 Tom de Vries <tdevries@suse.de>
151
152 * gdbtypes.c (type_not_allocated, type_not_associated): Use
153 "prop->const_val () == 0" instead of "prop->const_val () != 0".
154
97916bfe
SM
1552020-08-04 Simon Marchi <simon.marchi@efficios.com>
156
157 * frame.h (frame_id_p): Return bool.
158 (frame_id_artificial_p): Return bool.
159 (frame_id_eq): Return bool.
160 (has_stack_frames): Return bool.
161 (get_selected_frame): Fix typo in comment.
162 (get_frame_pc_if_available): Return bool.
163 (get_frame_address_in_block_if_available): Return bool.
164 (get_frame_func_if_available): Return bool.
165 (read_frame_register_unsigned): Return bool.
166 (get_frame_register_bytes): Return bool.
167 (safe_frame_unwind_memory): Return bool.
168 (deprecated_frame_register_read): Return bool.
169 (frame_unwinder_is): Return bool.
170 * frame.c (struct frame_info) <prev_arch::p>: Change type to
171 bool.
172 <this_id::p>: Likewise.
173 <prev_p>: Likewise.
174 (frame_stash_add): Return bool.
175 (get_frame_id): Use bool.
176 (frame_id_build_special) Use bool.
177 (frame_id_build_unavailable_stack): Use bool.
178 (frame_id_build): Use bool.
179 (frame_id_p): Return bool, use true/false instead of 1/0.
180 (frame_id_artificial_p): Likewise.
181 (frame_id_eq): Likewise.
182 (frame_id_inner): Likewise.
183 (get_frame_func_if_available): Likewise.
184 (read_frame_register_unsigned): Likewise.
185 (deprecated_frame_register_read): Likewise.
186 (get_frame_register_bytes): Likewise.
187 (has_stack_frames): Likewise.
188 (inside_main_func): Likewise.
189 (inside_entry_func): Likewise.
190 (get_frame_pc_if_available): Likewise.
191 (get_frame_address_in_block_if_available): Likewise.
192 (frame_unwinder_is): Likewise.
193 (safe_frame_unwind_memory): Likewise.
194 (frame_unwind_arch): Likewise.
195
fedfee88
SM
1962020-08-04 Simon Marchi <simon.marchi@efficios.com>
197
198 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
199 type to cached_copy_status.
200 (fprintf_frame): Adjust.
201 (get_frame_func_if_available): Adjust.
202 (frame_cleanup_after_sniffer): Adjust.
203
6cfa9b59
MW
2042020-08-04 Mark Wielaard <mark@klomp.org>
205
206 * MAINTAINERS (Write After Approval): Update email address.
207
66d6346b
SM
2082020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
209
210 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
211 dynamic_prop::const_val.
212
8a6d5e35
SM
2132020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
214
215 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
216 dynamic_prop::kind.
217
51d6067d
SM
2182020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
219
220 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
221
b26e2ae7
JM
2222020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
223
224 * configure.tgt: Set gdb_sim for bpf-*-* targets.
225
39791af2
JM
2262020-08-04 Weimin Pan <weimin.pan@oracle.com>
227 Jose E. Marchesi <jose.marchesi@oracle.com>
228
229 * configure.tgt: Add entry for bpf-*-*.
230 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
231 (ALLDEPFILES): Add bpf-tdep.c.
232 * bpf-tdep.c: New file.
233 * MAINTAINERS: Add bpf target and maintainer.
234 * NEWS: Mention the support for the new target.
235
521894aa
TV
2362020-08-04 Tom de Vries <tdevries@suse.de>
237
238 PR symtab/23270
239 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
240 Error.
241
5d6356e9
JB
2422020-08-03 John Baldwin <jhb@FreeBSD.org>
243
244 * syscalls/freebsd.xml: Regenerate.
245
0cf82b81
JB
2462020-08-03 John Baldwin <jhb@FreeBSD.org>
247
248 * syscalls/update-freebsd.sh: Fix usage and year range.
249
8f34b746
TV
2502020-08-03 Tom de Vries <tdevries@suse.de>
251
252 PR symtab/26333
253 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
254 DW_LNE_lo_user/DW_LNE_hi_user range.
255
5e500d33
SM
2562020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
257
258 PR ada/26318
259 * ada-lang.c (ada_modulus): Return 0 if property is not of const
260 kind.
261
78319c15
TBA
2622020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
263
264 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
265
4c55e970
TBA
2662020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
267
268 * breakpoint.c (set_breakpoint_condition): Update the condition
269 expressions after checking that the input condition string parses
270 successfully and does not contain junk at the end.
271
1e620590
TBA
2722020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
273
274 * breakpoint.c (set_breakpoint_condition): Update the
275 condition string after parsing the new condition successfully.
276
c8693053
RO
2772020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
278
279 * proc-api.c (_STRUCTURED_PROC): Don't define.
280 * proc-events.c: Likewise.
281 * proc-flags.c: Likewise.
282 * proc-why.c: Likewise.
283 * procfs.c: Likewise.
284
285 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
286 * configure, config.in: Regenerate.
287
5a99adb8
TV
2882020-07-30 Tom de Vries <tdevries@suse.de>
289
290 PR build/26320
291 * ui-style.h (struct ui_file_style::color): Wrap m_value and
292 m_red/m_green/m_blue in a union.
293
8ba83e91
TV
2942020-07-29 Tom de Vries <tdevries@suse.de>
295
296 PR tdep/26280
297 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
298
f75a0693
AB
2992020-07-28 Tom Tromey <tromey@adacore.com>
300
301 PR symtab/26270:
302 * symtab.h (find_pc_partial_function_sym): Declare.
303 * cli/cli-cmds.c (disassemble_command): Use
304 find_pc_partial_function_sym. Check asm_demangle.
305 * blockframe.c (cache_pc_function_sym): New global.
306 (cache_pc_function_name): Remove.
307 (clear_pc_function_cache): Update.
308 (find_pc_partial_function_sym): New function, from
309 find_pc_partial_function.
310 (find_pc_partial_function): Rewrite using
311 find_pc_partial_function_sym.
312
16f3242c
TT
3132020-07-28 Tom Tromey <tromey@adacore.com>
314
315 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
316 help. Add usage.
317
4888741a
TT
3182020-07-28 Tom Tromey <tromey@adacore.com>
319
320 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
321 <DW_OP_GNU_variable_value>: Cast to address type.
322
4d46f402
KR
3232020-07-28 Kamil Rytarowski <n54@gmx.com>
324
325 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
326 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
327 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
328 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
329 (nbsd_get_siginfo_type): New.
330 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
331 (_initialize_nbsd_tdep): New.
332
d70f978b
L
3332020-07-28 H.J. Lu <hongjiu.lu@intel.com>
334
335 PR binutils/26301
336 * configure: Regenerated.
337
377170fa
L
3382020-07-28 H.J. Lu <hongjiu.lu@intel.com>
339
340 PR binutils/26301
341 * configure: Regenerated.
342
43d5901d
AB
3432020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
344
345 * python/py-frame.c: Remove 'user-regs.h' include.
346 (frapy_read_register): Rewrite to make use of
347 gdbpy_parse_register_id.
348 * python/py-registers.c (gdbpy_parse_register_id): New function,
349 moved here from python/py-unwind.c. Updated the return type, and
350 also accepts register descriptor objects.
351 * python/py-unwind.c: Remove 'user-regs.h' include.
352 (pyuw_parse_register_id): Moved to python/py-registers.c.
353 (unwind_infopy_add_saved_register): Update to use
354 gdbpy_parse_register_id.
355 (pending_framepy_read_register): Likewise.
356 * python/python-internal.h (gdbpy_parse_register_id): Declare.
357
14fa8fb3
AB
3582020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
359
360 * python/py-registers.c: Add 'user-regs.h' include.
361 (register_descriptor_iter_find): New function.
362 (register_descriptor_iterator_object_methods): New static global
363 methods array.
364 (register_descriptor_iterator_object_type): Add pointer to methods
365 array.
366
ddce1758
JB
3672020-07-27 John Baldwin <jhb@FreeBSD.org>
368
369 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
370 for all architectures on FreeBSD 11.3 and later.
371
a4089f52
TT
3722020-07-27 Tom Tromey <tromey@adacore.com>
373
374 * gcore.h (load_corefile): Don't declare.
375
95420d30
TV
3762020-07-27 Tom de Vries <tdevries@suse.de>
377
378 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
379 * config.in: Regenerate.
380 * configure: Regenerate.
381
05a6b8c2
EZ
3822020-07-26 Eli Zaretskii <eliz@gnu.org>
383
384 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
385 ws2tcpip.h. When checking whether socklen_t type is defined, use
386 ws2tcpip.h if it is available and sys/socket.h isn't.
387 * configure: Regenerate.
388 * config.in: Regenerate.
389
e79eb02f
AB
3902020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
391
392 PR fortran/23051
393 PR fortran/26139
394 * valops.c (value_ind): Pass address to
395 readjust_indirect_value_type.
396 * value.c (readjust_indirect_value_type): Make parameter
397 non-const, and add extra address parameter. Resolve original type
398 before using it.
399 * value.h (readjust_indirect_value_type): Update function
400 signature and comment.
401
876518dd
TV
4022020-07-25 Tom de Vries <tdevries@suse.de>
403
404 PR symtab/26243
405 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
406 entries.
407
f6720b1c
AM
4082020-07-24 Aaron Merey <amerey@redhat.com>
409
410 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
411 * configure: Rebuild.
412
513487e1
KB
4132020-07-23 Kevin Buettner <kevinb@redhat.com>
414
415 PR corefiles/26294
416 * corelow.c (_initialize_corelow): Add period to help text
417 for "maintenance print core-file-backed-mappings".
418
e7bc9db8
PA
4192020-07-23 Pedro Alves <pedro@palves.net>
420
421 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
422 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
423 meanwhile.
424 * frame.c (frame_cache_generation, get_frame_cache_generation):
425 New.
426 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
427 (get_prev_frame_if_no_cycle): On exception, don't touch
428 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
429 * frame.h (get_frame_cache_generation): Declare.
430
90fcc466
TV
4312020-07-23 Tom de Vries <tdevries@suse.de>
432
433 PR tui/26282
434 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
435 New default constructor.
436
78344df7
AB
4372020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
438
439 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
440 exclude non-statement entries.
441
b089853a
KB
4422020-07-22 Kevin Buettner <kevinb@redhat.com>
443
444 * NEWS (New commands): Mention new command
445 "maintenance print core-file-backed-mappings".
446
09c2f5d4
KB
4472020-07-22 Kevin Buettner <kevinb@redhat.com>
448
449 * corelow.c (gdbcmd.h): Include.
450 (core_target::info_proc_mappings): New method.
451 (get_current_core_target): New function.
452 (maintenance_print_core_file_backed_mappings): New function.
453 (_initialize_corelow): Add core-file-backed-mappings to
454 "maint print" commands.
455
9c5ec5c2
KB
4562020-07-22 Kevin Buettner <kevinb@redhat.com>
457
458 * linux-tdep.c (dump_note_entry_p): New function.
459 (linux_dump_mapping_p_ftype): New typedef.
460 (linux_find_memory_regions_full): Add new parameter,
461 should_dump_mapping_p.
462 (linux_find_memory_regions): Adjust call to
463 linux_find_memory_regions_full.
464 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
465 call to linux_find_memory_regions_full.
466
db082f59
KB
4672020-07-22 Kevin Buettner <kevinb@redhat.com>
468
469 * corelow.c (solist.h, unordered_map): Include.
470 (class core_target): Add field m_core_file_mappings and
471 method build_file_mappings.
472 (core_target::core_target): Call build_file_mappings.
473 (core_target::~core_target): Free memory associated with
474 m_core_file_mappings.
475 (core_target::build_file_mappings): New method.
476 (core_target::xfer_partial): Use m_core_file_mappings
477 for memory transfers.
478 * linux-tdep.c (linux_read_core_file_mappings): New
479 function.
480 (linux_core_info_proc_mappings): Rewrite to use
481 linux_read_core_file_mappings.
482 (linux_init_abi): Register linux_read_core_file_mappings.
483
7e183d27
KB
4842020-07-22 Kevin Buettner <kevinb@redhat.com>
485
486 * arch-utils.c (default_read_core_file_mappings): New function.
487 * arch-utils.c (default_read_core_file_mappings): Declare.
488 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
489 * gdbarch.h, gdbarch.c: Regenerate.
490
2735d421
KB
4912020-07-22 Kevin Buettner <kevinb@redhat.com>
492
493 PR corefiles/25631
494 * corelow.c (core_target:xfer_partial): Revise
495 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
496 case after first checking the stratum beneath the core
497 target.
498 (has_all_memory): Return true.
499 * target.c (raw_memory_xfer_partial): Revise comment
500 regarding use of has_all_memory.
501
e56cb451
KB
5022020-07-22 Kevin Buettner <kevinb@redhat.com>
503
504 * exec.h (section_table_xfer_memory): Revise declaration,
505 replacing section name parameter with an optional callback
506 predicate.
507 * exec.c (section_table_xfer_memory): Likewise.
508 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
509 of section_table_xfer_memory.
510
32fa152e
TT
5112020-07-22 Tom Tromey <tromey@adacore.com>
512
513 * mi/mi-cmd-stack.c (list_args_or_locals): Use
514 lookup_symbol_search_name.
515
a67a1c41
AB
5162020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
517
518 * python/py-registers.c (gdbpy_register_object_data_init): Remove
519 redundant local variable.
520 (gdbpy_get_register_descriptor): Extract descriptor vector as a
521 reference, not pointer, update code accordingly.
522
a7b4ff4f
SM
5232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
524 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
525
526 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
527 * jit.c (jit_breakpoint_re_set_internal): Use the
528 `skip_jit_symbol_lookup` field.
529
2340e834
SM
5302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
531 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
532
533 * jit.c (jit_read_descriptor): Define the descriptor address once,
534 use twice.
535 (jit_breakpoint_deleted): Move the declaration of the loop variable
536 `iter` into the loop header.
537 (jit_breakpoint_re_set_internal): Move the declaration of the local
538 variable `objf_data` to the first point of definition.
539 (jit_event_handler): Move the declaration of local variables
540 `code_entry`, `entry_addr`, and `objf` to their first point of use.
541 Rename `objf` to `jited`.
542
c1072906
SM
5432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
544
545 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
546 Remove.
547 * jit.c (get_jiter_objfile_data): Update.
548
c8474dc3
TBA
5492020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
550 Simon Marchi <simon.marchi@polymtl.ca>
551
552 * jit.c (struct jit_program_space_data): Remove.
553 (jit_program_space_key): Remove.
554 (jiter_objfile_data::~jiter_objfile_data): Remove program space
555 stuff.
556 (get_jit_program_space_data): Remove.
557 (jit_breakpoint_deleted): Iterate on all of the program space's
558 objfiles.
559 (jit_inferior_init): Likewise.
560 (jit_breakpoint_re_set_internal): Likewise. Also change return
561 type to void.
562 (jit_breakpoint_re_set): Pass current_program_space to
563 jit_breakpoint_re_set_internal.
564
77208eb7
SM
5652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
566
567 * jit.h (struct jiter_objfile_data) <cached_code_address,
568 jit_breakpoint>: Move to here from ...
569 * jit.c (jit_program_space_data): ... here.
570 (jiter_objfile_data::~jiter_objfile_data): Update.
571 (jit_breakpoint_deleted): Update.
572 (jit_breakpoint_re_set_internal): Update.
573
8c1c720f
SM
5742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
575
576 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
577 checks.
578 (jit_read_descriptor): Remove NULL check.
579 (jit_event_handler): Add an assertion.
580
0e74a041
SM
5812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * jit.h (struct jit_objfile_data): Split into...
584 (struct jiter_objfile_data): ... this ...
585 (struct jited_objfile_data): ... and this.
586 * objfiles.h (struct objfile) <jit_data>: Remove.
587 <jiter_data, jited_data>: New fields.
588 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
589 (jiter_objfile_data::~jiter_objfile_data): ... this.
590 (get_jit_objfile_data): Rename to ...
591 (get_jiter_objfile_data): ... this.
592 (add_objfile_entry): Update.
593 (jit_read_descriptor): Use get_jiter_objfile_data.
594 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
595 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
596 (jit_inferior_exit_hook): Use objfile's jited_data field.
597
238b5c9f
SM
5982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
599
600 * jit.h: Forward-declare `struct minimal_symbol`.
601 (struct jit_objfile_data): Migrate to here from jit.c; also add a
602 constructor, destructor, and an objfile* field.
603 * jit.c (jit_objfile_data): Remove.
604 (struct jit_objfile_data): Migrate from here to jit.h.
605 (jit_objfile_data::~jit_objfile_data): New destructor
606 implementation with code moved from free_objfile_data.
607 (free_objfile_data): Delete.
608 (get_jit_objfile_data): Update to use the jit_data field of objfile.
609 (jit_find_objf_with_entry_addr): Ditto.
610 (jit_inferior_exit_hook): Ditto.
611 (_initialize_jit): Remove the call to
612 register_objfile_data_with_cleanup.
613 * objfiles.h (struct objfile) <jit_data>: New field.
614
fe053b9e
TBA
6152020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
616
617 * jit.h: Forward-declare `struct objfile`.
618 (jit_event_handler): Add a second parameter, the JITer objfile.
619 * jit.c (jit_read_descriptor): Change the signature to take the
620 JITer objfile as an argument instead of the jit_program_space_data.
621 (jit_inferior_init): Update the call to jit_read_descriptor.
622 (jit_event_handler): Use the new JITer objfile argument when calling
623 jit_read_descriptor.
624 * breakpoint.c (handle_jit_event): Update the call to
625 jit_event_handler to pass the JITer objfile.
626
4cec0c66
JB
6272020-07-21 John Baldwin <jhb@FreeBSD.org>
628
629 * gdbarch.c: Regenerate.
630 * gdbarch.h: Regenerate.
631 * gdbarch.sh (handle_segmentation_fault): Remove method.
632 * infrun.c (handle_segmentation_fault): Remove.
633 (print_signal_received_reason): Remove call to
634 handle_segmentation_fault.
635
0e42f66a
JB
6362020-07-21 John Baldwin <jhb@FreeBSD.org>
637
638 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
639 Rename to sparc64_linux_report_signal_info and add siggnal
640 argument.
641 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
642 instead of sparc64_linux_handle_segmentation_fault.
643
77bdfeb2
JB
6442020-07-21 John Baldwin <jhb@FreeBSD.org>
645
646 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
647 i386_linux_report_signal_info instead of
648 i386_linux_handle_segmentation_fault.
649 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
650 to i386_linux_report_signal_info and add siggnal argument.
651 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
652 of i386_linux_handle_segmentation_fault.
653 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
654 to i386_linux_report_signal_info and add siggnal argument.
655
ad97bfc5
JB
6562020-07-21 John Baldwin <jhb@FreeBSD.org>
657
658 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
659 hook if present.
660
272bb05c
JB
6612020-07-21 John Baldwin <jhb@FreeBSD.org>
662
663 * gdbarch.c: Regenerate.
664 * gdbarch.h: Regenerate.
665 * gdbarch.sh (report_signal_info): New method.
666 * infrun.c (print_signal_received_reason): Invoke gdbarch
667 report_signal_info hook if present.
668
baf8791e
AB
6692020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
670
671 * python/py-registers.c : Add 'unordered_map' include.
672 (gdbpy_new_reggroup): Renamed to...
673 (gdbpy_get_reggroup): ...this. Update to only create register
674 group descriptors when needed.
675 (gdbpy_reggroup_iter_next): Update.
676
f7306dac
AB
6772020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
678
679 * python/py-registers.c (gdbpy_register_object_data): New static
680 global.
681 (gdbpy_register_object_data_init): New function.
682 (gdbpy_new_register_descriptor): Renamed to...
683 (gdbpy_get_register_descriptor): ...this, and update to reuse
684 existing register descriptors where possible.
685 (gdbpy_register_descriptor_iter_next): Update.
686 (gdbpy_initialize_registers): Register new gdbarch data.
687
05c309a8
SM
6882020-07-21 Simon Marchi <simon.marchi@efficios.com>
689
690 * linux-nat.c (stopped_pids): Make static.
691
d1fd641e
SM
6922020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
693
694 PR ada/26235
695 * gdbtypes.c (ada_discrete_type_low_bound,
696 ada_discrete_type_high_bound): Handle undefined bounds.
697
1de14d77
KR
6982020-07-21 Kamil Rytarowski <n54@gmx.com>
699
700 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
701 declaration.
702 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
703 function.
704
ed810cc7
JB
7052020-07-20 John Baldwin <jhb@FreeBSD.org>
706
707 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
708 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
709 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
710 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
711 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
712 method.
713
ae5369e7
LC
7142020-07-20 Ludovic Courtès <ludo@gnu.org>
715
716 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
717 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
718 which are deprecated in Guile 3.0.
719 * configure.ac (try_guile_versions): Add "guile-3.0".
720 * configure (try_guile_versions): Regenerate.
721 * NEWS: Update entry.
722
68cf161c
LC
7232020-07-20 Ludovic Courtès <ludo@gnu.org>
724 Doug Evans <dje@google.com>
725
726 PR gdb/21104
727 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
728 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
729 USING_GUILE_BEFORE_2_2.
730 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
731 Change type to 'scm_t_port_type *'.
732 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
733 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
734 parameter and honor it. Update callers.
735 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
736 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
737 functions.
738 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
739 USING_GUILE_BEFORE_2_2.
740 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
741 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
742 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
743 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
744 and 'SCM_PORT_TYPE'.
745 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
746 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
747 (gdbscm_memory_port_read, gdbscm_memory_port_write)
748 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
749 [!USING_GUILE_BEFORE_2_2]: New functions.
750 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
751 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
752 'gdbscm_memory_port_read'.
753 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
754 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
755 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
756 function.
757 (ioscm_init_memory_port): Remove.
758 (ioscm_init_memory_port_stream): New function
759 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
760 function.
761 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
762 Return scm_from_uint (0).
763 (gdbscm_set_memory_port_read_buffer_size_x)
764 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
765 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
766 Return scm_from_uint (0).
767 (gdbscm_set_memory_port_write_buffer_size_x)
768 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
769 * configure.ac (try_guile_versions): Add "guile-2.2".
770 * configure: Regenerate.
771 * NEWS: Add entry.
772
aee91db3
TT
7732020-07-18 Tom Tromey <tom@tromey.com>
774
775 * linux-nat.c (linux_multi_process): Remove.
776 (linux_nat_target::supports_multi_process): Return true.
777
0e267416
AB
7782020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
779
780 * arch/riscv.c (riscv_tdesc_cache): Change map type.
781 (riscv_lookup_target_description): Return pointer out of
782 unique_ptr.
783 * target-descriptions.c (allocate_target_description): Add
784 comment.
785 (target_desc_deleter::operator()): Likewise.
786 * target-descriptions.h (struct target_desc_deleter): Moved to
787 gdbsupport/tdesc.h.
788 (target_desc_up): Likewise.
789
f80c8ec4
TT
7902020-07-17 Tom Tromey <tromey@adacore.com>
791
792 * linux-nat.c (linux_nat_target::supports_non_stop)
793 (linux_nat_target::always_non_stop_p): Use "true".
794 (linux_nat_target::supports_disable_randomization): Use "true" and
795 "false".
796
d0ce17d8
CT
7972020-07-16 Caroline Tice <cmtice@google.com>
798
799 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
800 (RNGLIST_HEADER_SIZE64): New constant definition.
801 (struct dwop_section_names): Add rnglists_dwo.
802 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
803 (struct loclist_header): Rename to 'loclists_rnglists_header'.
804 (struct dwo_sections): Add rnglists field.
805 (read_attribut_reprocess): Add tag parameter.
806 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
807 (cu_debug_rnglists_section): New function (decl & definition).
808 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
809 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
810 die whose range is being checked; get rnglist section from
811 cu_debug_rnglists_section, to get from either objfile or dwo file as
812 appropriate. Add cases for DW_RLE_base_addressx,
813 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
814 the base address to DW_RLE_offset_pairs (not to all ranges), moving
815 test inside if-condition and updating complaint message.
816 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
817 dwarf2_rnglists_process.
818 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
819 dwarf2_ranges_process.
820 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
821 need_ranges_base and update comment appropriately. Also pass die tag
822 to dwarf2_ranges_read.
823 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
824 need_ranges_base and update comment appropriately. Also pass die tag
825 to dwarf2_ranges_process.
826 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
827 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
828 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
829 need_ranges_base and update comment appropriately. Also pass die tag
830 to read_attribute_reprocess and dwarf2_ranges_read.
831 (read_loclist_header): Rename function to read_loclists_rnglists_header,
832 and update function comment appropriately.
833 (read_loclist_index): Call read_loclists_rnglists_header instead of
834 read_loclist_header.
835 (read_rnglist_index): New function.
836 (read_attribute_reprocess): Add tag parameter. Add code for
837 DW_FORM_rnglistx, passing tag to read_rnglist_index.
838 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
839
3dcc261c
AB
8402020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
841
842 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
843 being resolved.
844
ccb9eba6
AB
8452020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
846
847 * arch-utils.c (show_architecture): Update formatting of messages.
848
cf88be68
SM
8492020-07-12 Simon Marchi <simon.marchi@efficios.com>
850
851 * gdbtypes.h (struct type) <bounds>: Handle array and string
852 types.
853 * ada-lang.c (assign_aggregate): Use type::bounds on
854 array/string type.
855 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
856 * c-varobj.c (c_number_of_children): Likewise.
857 (c_describe_child): Likewise.
858 * eval.c (evaluate_subexp_for_sizeof): Likewise.
859 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
860 (f_type_print_base): Likewise.
861 * f-valprint.c (f77_array_offset_tbl): Likewise.
862 (f77_get_upperbound): Likewise.
863 (f77_print_array_1): Likewise.
864 * guile/scm-type.c (gdbscm_type_range): Likewise.
865 * m2-typeprint.c (m2_array): Likewise.
866 (m2_is_long_set_of_type): Likewise.
867 * m2-valprint.c (get_long_set_bounds): Likewise.
868 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
869 * python/py-type.c (typy_range): Likewise.
870 * rust-lang.c (rust_internal_print_type): Likewise.
871 * type-stack.c (type_stack::follow_types): Likewise.
872 * valarith.c (value_subscripted_rvalue): Likewise.
873 * valops.c (value_cast): Likewise.
874
509971ae
SM
8752020-07-12 Simon Marchi <simon.marchi@efficios.com>
876
877 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
878 callers to use the equivalent accessor methods.
879
107406b7
SM
8802020-07-12 Simon Marchi <simon.marchi@efficios.com>
881
882 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
883 (struct type) <bit_stride>: New method.
884 (TYPE_BIT_STRIDE): Remove.
885 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
886
bb789949
SM
8872020-07-12 Simon Marchi <simon.marchi@efficios.com>
888
889 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
890 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
891 callers to use the equivalent accessor methods instead.
892
39498edb
SM
8932020-07-12 Simon Marchi <simon.marchi@efficios.com>
894
895 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
896 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
897 callers to use the equivalent accessor methods instead.
898
3b606f38
SM
8992020-07-12 Simon Marchi <simon.marchi@efficios.com>
900
901 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
902 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
903 to use dynamic_prop::kind.
904
064d9cb9
SM
9052020-07-12 Simon Marchi <simon.marchi@efficios.com>
906
907 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
908 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
909 to get the bound property's kind and check against
910 PROP_UNDEFINED.
911
5537ddd0
SM
9122020-07-12 Simon Marchi <simon.marchi@efficios.com>
913
914 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
915 all callers to use type::range_bounds followed by
916 dynamic_prop::{low,high}.
917
8c2e4e06
SM
9182020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
919
920 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
921 const_val, set_const_val, baton, set_locexpr, set_loclist,
922 set_addr_offset, variant_parts, set_variant_parts,
923 original_type, set_original_type>: New methods.
924 <kind>: Rename to...
925 <m_kind>: ... this. Update all users to use the new methods
926 instead.
927 <data>: Rename to...
928 <m_data>: ... this. Update all users to use the new methods
929 instead.
930
7c6f2712
SM
9312020-07-12 Simon Marchi <simon.marchi@efficios.com>
932
933 * gdbtypes.c (get_discrete_bounds): Return failure if
934 the range type's bounds are not both defined and constant
935 values.
936 (get_array_bounds): Update comment. Remove undefined bound check.
937
599088e3
SM
9382020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
939
940 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
941 the type::bounds method directly.
942
c4dfcb36
SM
9432020-07-12 Simon Marchi <simon.marchi@efficios.com>
944
945 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
946 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
947 are used to set the range type's bounds to use set_bounds.
948
0a278aa7
PW
9492020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
950
951 * exec.c (_initialize_exec): Update exec-file-mismatch help.
952
cce20f10
PA
9532020-07-10 Pedro Alves <pedro@palves.net>
954
955 * gdbthread.h (inferior_ref): Define.
956 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
957 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
958 * thread.c
959 (scoped_restore_current_thread::restore):
960 Adjust to gdb::ref_ptr.
961 (scoped_restore_current_thread::~scoped_restore_current_thread):
962 Remove manual decref handling.
963 (scoped_restore_current_thread::scoped_restore_current_thread):
964 Adjust to use
965 inferior_ref::new_reference/thread_info_ref::new_reference.
966 Incref the thread before calling get_frame_id instead of after.
967 Let TARGET_CLOSE_ERROR propagate.
968
6d7aa592
PA
9692020-07-10 Pedro Alves <pedro@palves.net>
970
971 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
972 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
973 NOT_AVAILABLE_ERROR.
974 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
975 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
976
b3e3a4c1
SM
9772020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
978 Pedro Alves <pedro@palves.net>
979
980 PR gdb/26199
981 * infrun.c (threads_are_resumed_pending_p): Delete.
982 (do_target_wait): Remove threads_are_executing and
983 threads_are_resumed_pending_p checks from the inferior_matches
984 lambda. Update comments.
985
d6cc5d98
PA
9862020-07-10 Pedro Alves <pedro@palves.net>
987
988 PR gdb/26199
989 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
990 executing threads.
991
7d3badc6
PA
9922020-07-10 Pedro Alves <pedro@palves.net>
993
994 PR gdb/26199
995 * infrun.c (handle_no_resumed): Handle multiple targets.
996
42bd97a6
PA
9972020-07-10 Pedro Alves <pedro@palves.net>
998
999 PR gdb/26199
1000 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1001 target_is_async_p.
1002
43667cc6
PA
10032020-07-10 Pedro Alves <pedro@palves.net>
1004
1005 PR gdb/26199
1006 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1007 threads, not all threads.
1008
96118d11
PA
10092020-07-10 Pedro Alves <pedro@palves.net>
1010
1011 PR gdb/26199
1012 * remote.c (remote_target::open_1): Pass remote target pointer as
1013 data to create_async_event_handler.
1014 (remote_async_inferior_event_handler): Mark async event handler
1015 before returning if the remote target still has either pending
1016 events or unacknowledged notifications.
1017
54904d81
JB
10182020-07-10 John Baldwin <jhb@FreeBSD.org>
1019
1020 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1021 declaration.
1022 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1023 function.
1024
f37e5866
JB
10252020-07-09 John Baldwin <jhb@FreeBSD.org>
1026
1027 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1028 inferior_ptid.
1029
fc238d4a
JB
10302020-07-09 John Baldwin <jhb@FreeBSD.org>
1031
1032 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1033 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1034 AT_FREEBSD_PS_STRINGS.
1035
6e2469ff
HD
10362020-07-08 Hannes Domani <ssbssa@yahoo.de>
1037
1038 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1039 of debugfile path on Windows.
1040
d1076c41
JB
10412020-07-08 John Baldwin <jhb@FreeBSD.org>
1042
1043 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1044 argument to 'data'.
1045
15f3b077
TT
10462020-07-08 Tom Tromey <tromey@adacore.com>
1047
1048 * ada-lang.c (ada_exception_message_1): Use read_memory.
1049
9fc501fd
AB
10502020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1051
1052 PR python/22748
1053 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1054 special handling for inline frames.
1055 * findvar.c (value_of_register_lazy): Skip inline frames when
1056 creating lazy register values.
1057 * frame.c (frame_id_computed_p): Delete definition.
1058 * frame.h (frame_id_computed_p): Delete declaration.
1059
64cb3757
AB
10602020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1061
1062 * NEWS: Mention additions to Python API.
1063 * python/py-arch.c (archpy_register_groups): New function.
1064 (arch_object_methods): Add 'register_groups' method.
1065 * python/py-registers.c (reggroup_iterator_object): New struct.
1066 (reggroup_object): New struct.
1067 (gdbpy_new_reggroup): New function.
1068 (gdbpy_reggroup_to_string): New function.
1069 (gdbpy_reggroup_name): New function.
1070 (gdbpy_reggroup_iter): New function.
1071 (gdbpy_reggroup_iter_next): New function.
1072 (gdbpy_new_reggroup_iterator): New function
1073 (gdbpy_initialize_registers): Register new types.
1074 (reggroup_iterator_object_type): Define new Python type.
1075 (gdbpy_reggroup_getset): New static global.
1076 (reggroup_object_type): Define new Python type.
1077 * python/python-internal.h
1078
0f767f94
AB
10792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1080
1081 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1082 * python/py-arch.c (archpy_registers): New function.
1083 (arch_object_methods): Add 'registers' method.
1084 * python/py-registers.c: New file.
1085 * python/python-internal.h
1086 (gdbpy_new_register_descriptor_iterator): Declare.
1087 (gdbpy_initialize_registers): Declare.
1088 * python/python.c (do_start_initialization): Call
1089 gdbpy_initialize_registers.
1090 * NEWS: Mention additions to the Python API.
1091
87dbc774
AB
10922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1093
1094 * NEWS: Mention new Python API method.
1095 * python/py-unwind.c (pending_framepy_architecture): New function.
1096 (pending_frame_object_methods): Add architecture method.
1097
3bc98c0c
AB
10982020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1099
1100 * gdbarch.c: Regenerate.
1101 * gdbarch.h: Regenerate.
1102 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1103 (gdbarch_data): Use internal_error for the case where
1104 deprecated_set_gdbarch_data was originally needed.
1105 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1106 and use passed in obstack.
1107 (libunwind_frame_set_descr): Should no longer get back NULL from
1108 gdbarch_data.
1109 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1110 type.
1111 * user-regs.c (user_regs_init): Update parameters, and use passed
1112 in obstack.
1113 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1114 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1115
d8cc8af6
TV
11162020-07-06 Tom de Vries <tdevries@suse.de>
1117
1118 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1119 End-Of-Sequence in lte_is_less_than.
1120 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1121 "gdb: Don't reorder line table entries too much when sorting".
1122
947f7597
TV
11232020-07-06 Tom de Vries <tdevries@suse.de>
1124
1125 PR tui/26205
1126 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1127
1e7c1b22
TV
11282020-07-05 Tom de Vries <tdevries@suse.de>
1129
1130 PR build/26187
1131 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1132 std::uncaught_exceptions instead of deprecated
1133 std::uncaught_exception.
1134
a36158ec
SM
11352020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1136
1137 * macroexp.h (macro_stringify): Return
1138 gdb::unique_xmalloc_ptr<char>.
1139 * macroexp.c (macro_stringify): Likewise.
1140 * macrotab.c (fixup_definition): Update.
1141
14d960c8
SM
11422020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1143
1144 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1145 (lex_one_token): Update.
1146 * macroexp.c (struct macro_buffer) <release>: Return
1147 gdb::unique_xmalloc_ptr<char>.
1148 (macro_stringify): Update.
1149 (macro_expand): Update.
1150 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1151 * macroexp.h (macro_expand_next): Likewise.
1152
211d5b1c
SM
11532020-07-02 Simon Marchi <simon.marchi@efficios.com>
1154
1155 * macroexp.h (macro_lookup_ftype): Remove.
1156 (macro_expand, macro_expand_once, macro_expand_next): Remove
1157 lookup function parameters, add scope parameter.
1158 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1159 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1160 * macroscope.h (standard_macro_lookup): Change parameter type
1161 to macro_scope.
1162 * macroscope.c (standard_macro_lookup): Likewise.
1163 * c-exp.y (lex_one_token): Update.
1164 * macrocmd.c (macro_expand_command): Likewise.
1165 (macro_expand_once_command): Likewise.
1166
b1a35af2
SM
11672020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * inf-loop.c (inferior_event_handler): Remove client_data param.
1170 * inf-loop.h (inferior_event_handler): Likewise.
1171 * infcmd.c (step_1): Adjust.
1172 * infrun.c (proceed): Adjust.
1173 (fetch_inferior_event): Remove client_data param.
1174 (infrun_async_inferior_event_handler): Adjust.
1175 * infrun.h (fetch_inferior_event): Remove `void *` param.
1176 * linux-nat.c (handle_target_event): Adjust.
1177 * record-btrace.c (record_btrace_handle_async_inferior_event):
1178 Adjust.
1179 * record-full.c (record_full_async_inferior_event_handler):
1180 Adjust.
1181 * remote.c (remote_async_inferior_event_handler): Adjust.
1182
1cdf9e33
TT
11832020-07-01 Tom Tromey <tom@tromey.com>
1184
1185 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1186 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1187
32c1e210
TT
11882020-07-01 Tom Tromey <tom@tromey.com>
1189
1190 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1191 tui_gen_win_info.
1192 (tui_win_info::make_window): Merge with
1193 tui_gen_win_info::make_window.
1194 (tui_win_info::make_visible): Move from tui_gen_win_info.
1195 * tui/tui-win.c (tui_win_info::max_width): Move from
1196 tui_gen_win_info.
1197 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1198 type.
1199 <window_factory>: Likewise.
1200 * tui/tui-layout.c (tui_win_info::resize): Move from
1201 tui_gen_win_info.
1202 (make_standard_window): Change return type.
1203 (get_locator_window, tui_get_window_by_name): Likewise.
1204 (tui_layout_window::apply): Remove a cast.
1205 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1206 (struct tui_win_info): Merge with tui_gen_win_info.
1207 (struct tui_gen_win_info): Remove.
1208
a30cb6da
TT
12092020-07-01 Tom Tromey <tom@tromey.com>
1210
1211 * tui/tui-stack.h (struct tui_locator_window): Derive from
1212 tui_win_info.
1213 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1214 <can_box>: New method.
1215
1eb2161f
TT
12162020-07-01 Tom Tromey <tom@tromey.com>
1217
1218 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1219
7134f2eb
TT
12202020-07-01 Tom Tromey <tom@tromey.com>
1221
1222 * tui/tui-regs.c (tui_data_window::display_registers_from)
1223 (tui_data_window::display_registers_from)
1224 (tui_data_window::first_data_item_displayed)
1225 (tui_data_window::delete_data_content_windows): Update.
1226 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1227 Remove.
1228 (tui_data_window::check_register_values): Update.
1229 (tui_data_item_window::rerender): Add parameters. Update.
1230 (tui_data_item_window::refresh_window): Remove.
1231 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1232 virtual.
1233 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1234 tui_gen_win_info.
1235 <refresh_window, max_height, min_height>: Remove.
1236 <rerender>: Add parameters.
1237 <x, y, visible>: New members.
1238 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1239 <m_item_width>: New member.
1240
22b7b041
TT
12412020-07-01 Tom Tromey <tom@tromey.com>
1242
1243 * tui/tui-regs.c (tui_data_window::show_register_group)
1244 (tui_data_window::check_register_values): Update.
1245 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1246 from item_no.
1247
c9753adb
TT
12482020-07-01 Tom Tromey <tom@tromey.com>
1249
1250 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1251 useless "if".
1252
9ab26b4a
TT
12532020-07-01 Tom Tromey <tom@tromey.com>
1254
1255 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1256 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1257
e555083f
TT
12582020-07-01 Tom Tromey <tom@tromey.com>
1259
1260 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1261 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1262 (struct tui_line_or_address): Move from tui-data.h.
1263 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1264 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1265 (tui_cmd_window, tui_source_window_base, tui_source_window)
1266 (tui_disasm_window): Don't declare.
1267 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1268 to tui-winsource.h.
1269 (SINGLE_KEY): Move to tui-stack.c.
1270
7a02bab7
TT
12712020-07-01 Tom Tromey <tom@tromey.com>
1272
1273 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1274 std::string.
1275 * tui/tui-regs.c (class tab_expansion_file): New.
1276 (tab_expansion_file::write): New method.
1277 (tui_register_format): Change return type. Use
1278 tab_expansion_file.
1279 (tui_get_register, tui_data_window::display_registers_from)
1280 (tui_data_item_window::rerender): Update.
1281 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1282 * tui/tui-io.c (tui_expand_tabs): Remove.
1283
ea68593b
TT
12842020-07-01 Tom Tromey <tom@tromey.com>
1285
1286 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1287
a8caed5d
FS
12882020-07-01 Fangrui Song <maskray@google.com>
1289
1290 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1291
9cdf9820
AKS
12922020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1293
1294 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1295 forms for DW_AT_associated and DW_AT_allocated attributes,
1296 which is already checked in function attr_to_dynamic_prop.
1297
a1520ad8
TT
12982020-06-30 Tom Tromey <tromey@adacore.com>
1299
1300 * dwarf2/read.c (quirk_rust_enum): Correctly call
1301 alloc_rust_variant for default-less enum.
1302
5ac58899
TT
13032020-06-30 Tom Tromey <tromey@adacore.com>
1304
1305 PR build/26183:
1306 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1307 gdb::to_string.
1308
19b187a9
SM
13092020-06-29 Simon Marchi <simon.marchi@efficios.com>
1310
1311 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1312 * gdbarch.h: Re-generate.
1313
cd4c4c07
TT
13142020-06-28 Tom Tromey <tom@tromey.com>
1315
1316 * command.h (cmd_types): Remove.
1317 (cmd_type): Don't declare.
1318 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1319 typedef.
1320 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1321 * cli/cli-decode.c (cmd_type): Remove.
1322
05779d57
PA
13232020-06-27 Pedro Alves <palves@redhat.com>
1324
1325 * fork-child.c (prefork_hook): Adjust.
1326 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1327 Delete.
1328 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1329 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1330 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1331 Remove declarations.
1332 (struct inferior) <set_tty, tty>: New methods.
1333 (struct inferior) <terminal>: Rename to ...
1334 (struct inferior) <m_terminal>: ... this and make private.
1335 * main.c (captured_main_1): Adjust.
1336 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1337 (mi_cmd_inferior_tty_show): Adjust.
1338 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1339 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1340
1776e3e5
NA
13412020-06-26 Nick Alcock <nick.alcock@oracle.com>
1342
1343 * configure.ac: Add --enable-libctf: handle --disable-static
1344 properly.
1345 * acinclude.m4: sinclude ../config/enable.m4.
1346 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1347 (LIBCTF): Substitute in.
1348 (CTF_DEPS): New, likewise.
1349 (CLIBS): libctf needs symbols from libbfd: move earlier.
1350 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1351 flags.
1352 * ctfread.c: Surround in ENABLE_LIBCTF.
1353 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1354 * configure: Regenerate.
1355 * config.in: Likewise.
1356
58373b80
SM
13572020-06-25 Simon Marchi <simon.marchi@efficios.com>
1358
1359 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1360
277474ee
SM
13612020-06-25 Simon Marchi <simon.marchi@efficios.com>
1362
1363 * inferior.h (struct inferior) <terminal>: Change type to
1364 gdb::unique_xmalloc_ptr<char>.
1365 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1366 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1367 field, adjust to unique pointer.
1368 (get_inferior_io_terminal): Adjust to unique pointer.
1369
6d74da72
AB
13702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1373 registers, not just the known core set of registers.
1374
2e52d038
AB
13752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1376
1377 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1378 fflags, frm, and fcsr registers.
1379 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1380 restore groups.
1381 (riscv_tdesc_unknown_reg): New function.
1382 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1383 tdesc_use_registers.
1384 * riscv-tdep.h (struct gdbarch_tdep): Add
1385 unknown_csrs_first_regnum, unknown_csrs_count,
1386 duplicate_fflags_regnum, duplicate_frm_regnum, and
1387 duplicate_fcsr_regnum fields.
1388
be64fd07
AB
13892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1390
1391 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1392 callback, use the callback (when not null) to help number unknown
1393 registers.
1394 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1395 (tdesc_use_registers): Add extra parameter to declaration.
1396
3b9fce96
AB
13972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1398
1399 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1400 in the file.
1401 (class riscv_pending_register_alias): Likewise.
1402 (riscv_register_feature::register_info): Change 'required_p' field
1403 to 'required', and change its type. Add 'check' member function.
1404 (riscv_register_feature::register_info::check): Define new member
1405 function.
1406 (riscv_xreg_feature): Change initialisation of 'required' field.
1407 (riscv_freg_feature): Likewise.
1408 (riscv_virtual_feature): Likewise.
1409 (riscv_csr_feature): Likewise.
1410 (riscv_check_tdesc_feature): Take extra parameter, the csr
1411 tdesc_feature, rewrite the function to use the new
1412 riscv_register_feature::register_info::check function.
1413 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1414
865bad26
AB
14152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1416
1417 * features/Makefile: Remove all references to the deleted files
1418 below.
1419 * features/riscv/32bit-csr.c: Deleted.
1420 * features/riscv/32bit-csr.xml: Deleted.
1421 * features/riscv/64bit-csr.c: Deleted.
1422 * features/riscv/64bit-csr.xml: Deleted.
1423 * features/riscv/rebuild-csr-xml.sh: Deleted.
1424
ed69cbc8
AB
14252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1426
1427 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1428 whitespace error for declaration of names member variable.
1429 (struct riscv_register_feature): Add new prefer_first_name member
1430 variable, and fix whitespace error in declaration of registers.
1431 (riscv_xreg_feature): Initialize prefer_first_name field.
1432 (riscv_freg_feature): Likewise.
1433 (riscv_virtual_feature): Likewise.
1434 (riscv_csr_feature): Likewise.
1435 (riscv_register_name): Expand on comments. Remove register name
1436 modifications for CSR and virtual registers.
1437
4445e8f5
AB
14382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1439
1440 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1441 errors.
1442
767a879e
AB
14432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1444
1445 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1446 riscv-opc.h.
1447 (class riscv_pending_register_alias): New class.
1448 (riscv_check_tdesc_feature): Take vector of pending aliases and
1449 populate it as appropriate.
1450 (riscv_setup_register_aliases): Delete.
1451 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1452 to riscv_check_tdesc_feature in all cases. Use the vector to
1453 create the register aliases.
1454
bb6e55f3
RO
14552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1456
1457 * sol2-tdep.c (sol2_static_transform_name): Remove.
1458 (sol2_init_abi): Don't register it.
1459 * gdbarch.sh (static_transform_name): Remove.
1460 * gdbarch.c, gdbarch.h: Regenerate.
1461
1462 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1463 gdbarch_static_transform_name.
1464 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1465 * stabsread.c (define_symbol) <'X'>: Remove.
1466 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1467 handling.
1468 <'V'>: Likewise.
1469 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1470 <'S'>: Remove call to gdbarch_static_transform_name.
1471
c6d36836
RO
14722020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1473
1474 * procfs.c (procfs_pre_trace): New function.
1475 (procfs_target::create_inferior): Pass it to fork_inferior.
1476
a7e6196b
RO
14772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1478
1479 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1480 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1481 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1482 sol2-tdep.o, sparc-sol2-tdep.o.
1483 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1484 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1485 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1486 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1487
d412e696
RO
14882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1489
1490 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1491 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1492 Call sol2_init_abi.
1493 Remove calls to set_gdbarch_skip_solib_resolver,
1494 set_gdbarch_core_pid_to_str.
1495 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1496 (i386_sol2_static_transform_name): Remove.
1497 (i386_sol2_init_abi): Call sol2_init_abi.
1498 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1499 set_gdbarch_static_transform_name,
1500 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1501 Use sol2_sigtramp_p.
1502 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1503 (sol2_sigtramp_p): New function.
1504 (sol2_static_transform_name): New function.
1505 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1506 (sol2_init_abi): New function.
1507 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1508 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1509 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1510 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1511 (sparc_sol2_static_transform_name): Remove.
1512 (sparc32_sol2_init_abi): Call sol2_init_abi.
1513 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1514 set_gdbarch_static_transform_name,
1515 set_gdbarch_skip_solib_resolver,
1516 set_gdbarch_core_pid_to_str.
1517 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1518 (sparc_sol2_static_transform_name): Remove
1519 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1520 call sol2_sigtramp_p.
1521 (sparc64_sol2_init_abi): Call sol2_init_abi.
1522 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1523 set_gdbarch_static_transform_name,
1524 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1525
a8654e7d
PW
15262020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1527
1528 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1529 * exec.c (validate_exec_file): If from_tty, set both
1530 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1531 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1532 and from_tty, unconditionally ask a confirmation.
1533
caa7fd04
AB
15342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1535
1536 * target-descriptions.c (tdesc_architecture_name): Protect against
1537 NULL pointer dereference.
1538 (maint_print_xml_tdesc_cmd): New function.
1539 (_initialize_target_descriptions): Register new 'maint print
1540 xml-tdesc' command and give it the filename completer.
1541 * NEWS: Mention new 'maint print xml-tdesc' command.
1542
fbf42f4e
AB
15432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1544
1545 * target-descriptions.c (class tdesc_compatible_info): New class.
1546 (struct target_desc): Change type of compatible vector.
1547 (tdesc_compatible_p): Update for change in type of
1548 target_desc::compatible.
1549 (tdesc_compatible_info_list): New function.
1550 (tdesc_compatible_info_arch_name): New function.
1551 (tdesc_add_compatible): Update for change in type of
1552 target_desc::compatible.
1553 (print_c_tdesc::visit_pre): Likewise.
1554
20821f4e
AB
15552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1556
1557 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1558 whitespace to underscore.
1559 (maint_print_c_tdesc_cmd): Use fake filename for target
1560 descriptions that came from the target.
1561 (_initialize_target_descriptions): Add filename command completion
1562 for 'maint print c-tdesc'.
1563
1fb5ee62
SM
15642020-06-23 Simon Marchi <simon.marchi@efficios.com>
1565
1566 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1567 lines.
1568
fc3ecb3e
SM
15692020-06-23 Simon Marchi <simon.marchi@efficios.com>
1570
1571 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1572 lines.
1573 (dwarf2_find_location_expression): Likewise.
1574 (call_site_parameter_matches): Likewise.
1575 (dwarf2_compile_expr_to_ax): Likewise.
1576 (disassemble_dwarf_expression): Likewise.
1577 (loclist_describe_location): Likewise.
1578
236ef034
PA
15792020-06-23 Pedro Alves <palves@redhat.com>
1580
1581 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1582 progspace-and-thread.h. Include scoped-mock-context.h instead.
1583 (register_to_value_test): Use scoped_mock_context.
1584 * regcache.c: Include "scoped-mock-context.h".
1585 (cooked_read_test): Don't error out if a target is already pushed.
1586 Use scoped_mock_context. Adjust.
1587 * scoped-mock-context.h: New file.
1588
39e7ecca
AB
15892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1590
1591 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1592 initializer.
1593 (ada_language::is_string_type_p): New member function.
1594 * c-lang.c (c_language_data): Delete la_is_string_type_p
1595 initializer.
1596 (cplus_language_data): Likewise.
1597 (asm_language_data): Likewise.
1598 (minimal_language_data): Likewise.
1599 * d-lang.c (d_language_data): Likewise.
1600 * f-lang.c (f_is_string_type_p): Delete function, implementation
1601 moved to f_language::is_string_type_p.
1602 (f_language_data): Delete la_is_string_type_p initializer.
1603 (f_language::is_string_type_p): New member function,
1604 implementation from f_is_string_type_p.
1605 * go-lang.c (go_is_string_type_p): Delete function, implementation
1606 moved to go_language::is_string_type_p.
1607 (go_language_data): Delete la_is_string_type_p initializer.
1608 (go_language::is_string_type_p): New member function,
1609 implementation from go_is_string_type_p.
1610 * language.c (language_defn::is_string_type_p): Define new member
1611 function.
1612 (default_is_string_type_p): Make static, add comment copied from
1613 header file.
1614 (unknown_language_data): Delete la_is_string_type_p initializer.
1615 (unknown_language::is_string_type_p): New member function.
1616 (auto_language_data): Delete la_is_string_type_p initializer.
1617 (auto_language::is_string_type_p): New member function.
1618 * language.h (language_data): Delete la_is_string_type_p field.
1619 (language_defn::is_string_type_p): Declare new function.
1620 (default_is_string_type_p): Delete desclaration, move comment to
1621 definition.
1622 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1623 moved to m2_language::is_string_type_p.
1624 (m2_language_data): Delete la_is_string_type_p initializer.
1625 (m2_language::is_string_type_p): New member function,
1626 implementation from m2_is_string_type_p.
1627 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1628 initializer.
1629 * opencl-lang.c (opencl_language_data): Likewise.
1630 * p-lang.c (pascal_is_string_type_p): Delete function,
1631 implementation moved to pascal_language::is_string_type_p.
1632 (pascal_language_data): Delete la_is_string_type_p initializer.
1633 (pascal_language::is_string_type_p): New member function,
1634 implementation from pascal_is_string_type_p.
1635 * rust-lang.c (rust_is_string_type_p): Delete function,
1636 implementation moved to rust_language::is_string_type_p.
1637 (rust_language_data): Delete la_is_string_type_p initializer.
1638 (rust_language::is_string_type_p): New member function,
1639 implementation from rust_is_string_type_p.
1640 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1641 is_string_type_p.
1642
4ffc13fb
AB
16432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1644
1645 * ada-lang.c (ada_language_data): Delete la_print_typedef
1646 initializer.
1647 (ada_language::print_typedef): New member function.
1648 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1649 (cplus_language_data): Likewise.
1650 (asm_language_data): Likewise.
1651 (minimal_language_data): Likewise.
1652 * d-lang.c (d_language_data): Likewise.
1653 * f-lang.c (f_language_data): Likewise.
1654 (f_language::print_typedef): New member function.
1655 * go-lang.c (go_language_data): Delete la_print_typedef
1656 initializer.
1657 * language.c (language_defn::print_typedef): Define member
1658 function.
1659 (unknown_language_data): Delete la_print_typedef initializer.
1660 (unknown_language::print_typedef): New member function.
1661 (auto_language_data): Delete la_print_typedef initializer.
1662 (auto_language::print_typedef): New member function.
1663 * language.h (language_data): Delete la_print_typedef field.
1664 (language_defn::print_typedef): Declare new member function.
1665 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1666 (default_print_typedef): Delete declaration.
1667 * m2-lang.c (m2_language_data): Delete la_print_typedef
1668 initializer.
1669 (m2_language::print_typedef): New member function.
1670 * objc-lang.c (objc_language_data): Delete la_print_typedef
1671 initializer.
1672 * opencl-lang.c (opencl_language_data): Likewise.
1673 * p-lang.c (pascal_language_data): Likewise.
1674 (pascal_language::print_typedef): New member function.
1675 * rust-lang.c (rust_print_typedef): Delete function,
1676 implementation moved to rust_language::print_typedef.
1677 (rust_language): Delete la_print_typedef initializer.
1678 (rust_language::print_typedef): New member function,
1679 implementation from rust_print_typedef.
1680 * typeprint.c (default_print_typedef): Delete.
1681
d711ee67
AB
16822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1683
1684 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1685 (ada_language::printstr): New member function.
1686 * c-lang.c (c_language_data): Delete la_printstr initializer.
1687 (cplus_language_data): Likewise.
1688 (asm_language_data): Likewise.
1689 (minimal_language_data): Likewise.
1690 * d-lang.c (d_language_data): Likewise.
1691 * f-lang.c (f_printstr): Rename to f_language::printstr.
1692 (f_language_data): Delete la_printstr initializer.
1693 (f_language::printstr): New member function, implementation from
1694 f_printstr.
1695 * go-lang.c (go_language_data): Delete la_printstr initializer.
1696 * language.c (language_defn::printstr): Define new member
1697 function.
1698 (unk_lang_printstr): Delete.
1699 (unknown_language_data): Delete la_printstr initializer.
1700 (unknown_language::printstr): New member function.
1701 (auto_language_data): Delete la_printstr initializer.
1702 (auto_language::printstr): New member function.
1703 * language.h (language_data): Delete la_printstr field.
1704 (language_defn::printstr): Declare new member function.
1705 (LA_PRINT_STRING): Update call to printstr.
1706 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1707 (m2_language_data): Delete la_printstr initializer.
1708 (m2_language::printstr): New member function, implementation from
1709 m2_printstr.
1710 * objc-lang.c (objc_language_data): Delete la_printstr
1711 initializer.
1712 * opencl-lang.c (opencl_language_data): Likewise.
1713 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1714 (pascal_language_data): Delete la_printstr initializer.
1715 (pascal_language::printstr): New member function, implementation
1716 from pascal_printstr.
1717 * p-lang.h (pascal_printstr): Delete declaration.
1718 * rust-lang.c (rust_printstr): Update header comment.
1719 (rust_language_data): Delete la_printstr initializer.
1720 (rust_language::printstr): New member function.
1721
52b50f2c
AB
17222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1723
1724 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1725 (ada_language::printchar): New member function.
1726 * c-lang.c (c_language_data): Delete la_printchar initializer.
1727 (cplus_language_data): Likewise.
1728 (asm_language_data): Likewise.
1729 (minimal_language_data): Likewise.
1730 * d-lang.c (d_language_data): Likewise.
1731 * f-lang.c (f_printchar): Rename to f_language::printchar.
1732 (f_language_data): Delete la_printchar initializer.
1733 (f_language::printchar): New member function, implementation from
1734 f_printchar.
1735 * go-lang.c (go_language_data): Delete la_printchar initializer.
1736 * language.c (unk_lang_printchar): Delete.
1737 (language_defn::printchar): Define new member function.
1738 (unknown_language_data): Delete la_printchar initializer.
1739 (unknown_language::printchar): New member function.
1740 (auto_language_data): Delete la_printchar initializer.
1741 (auto_language::printchar): New member function.
1742 * language.h (language_data): Delete la_printchar field.
1743 (language_defn::printchar): Declare new member function.
1744 (LA_PRINT_CHAR): Update call to printchar.
1745 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1746 (m2_language::printchar): New member function.
1747 * objc-lang.c (objc_language_data): Delete la_printchar
1748 initializer.
1749 * opencl-lang.c (opencl_language_data): Likewise.
1750 * p-lang.c (pascal_language_data): Delete la_printchar
1751 initializer.
1752 (pascal_language::printchar): New member function.
1753 * rust-lang.c (rust_printchar): Rename to
1754 rust_language::printchar.
1755 (rust_language_data): Delete la_printchar initializer.
1756 (rust_language::printchar): New member function, implementation
1757 from rust_printchar.
1758
ec8cec5b
AB
17592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1760
1761 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1762 (ada_language_data): Delete la_emitchar initializer.
1763 (ada_language::emitchar): New member function, implementation from
1764 emit_char.
1765 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1766 (cplus_language_data): Likewise.
1767 (asm_language_data): Likewise.
1768 (minimal_language_data): Likewise.
1769 * d-lang.c (d_language_data): Likewise.
1770 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1771 (f_language_data): Delete la_emitchar initializer.
1772 (f_language::emitchar): New member function, implementation from
1773 f_emit_char.
1774 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1775 * language.c (unk_lang_emit_char): Delete.
1776 (language_defn::emitchar): New member function definition.
1777 (unknown_language_data): Delete la_emitchar initializer.
1778 (unknown_language::emitchar): New member function.
1779 (auto_language_data): Delete la_emitchar initializer.
1780 (auto_language::emitchar): New member function.
1781 * language.h (language_data): Delete la_emitchar field.
1782 (language_defn::emitchar): New member field declaration.
1783 (LA_EMIT_CHAR): Update call to emitchar.
1784 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1785 (m2_language_data): Delete la_emitchar initializer.
1786 (m2_language::emitchar): New member function, implementation from
1787 m2_emit_char.
1788 * objc-lang.c (objc_language_data): Delete la_emitchar
1789 initializer.
1790 * opencl-lang.c (opencl_language_data): Likewise.
1791 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1792 (pascal_language_data): Delete la_emitchar initializer.
1793 (pascal_language::emitchar): New member function, implementation
1794 from pascal_emit_char.
1795 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1796 (rust_language_data): Delete la_emitchar initializer.
1797 (rust_language::emitchar): New member function, implementation
1798 from rust_emitchar.
1799
1bf9c363
AB
18002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1801
1802 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1803 (ada_language_data): Delete la_post_parser initializer.
1804 (ada_language::post_parser): New member function.
1805 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1806 (cplus_language_data): Likewise.
1807 (asm_language_data): Likewise.
1808 (minimal_language_data): Likewise.
1809 * d-lang.c (d_language_data): Likewise.
1810 * f-lang.c (f_language_data): Likewise.
1811 * go-lang.c (go_language_data): Likewise.
1812 * language.c (unknown_language_data): Likewise.
1813 (auto_language_data): Likewise.
1814 * language.h (language_data): Delete la_post_parser field.
1815 (language_defn::post_parser): New member function.
1816 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1817 * objc-lang.c (objc_language_data): Likewise.
1818 * opencl-lang.c (opencl_language_data): Likewise.
1819 * p-lang.c (pascal_language_data): Likewise.
1820 * parse.c (parse_exp_in_context): Update call to post_parser.
1821 (null_post_parser): Delete definition.
1822 * parser-defs.h (null_post_parser): Delete declaration.
1823 * rust-lang.c (rust_language_data): Delete la_post_parser
1824 initializer.
1825
87afa652
AB
18262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1827
1828 * ada-lang.c (parse): Rename to ada_language::parser.
1829 (ada_language_data): Delete la_parser initializer.
1830 (ada_language::parser): New member function, implementation from
1831 parse.
1832 * c-lang.c (c_language_data): Delete la_parser initializer.
1833 (cplus_language_data): Likewise.
1834 (asm_language_data): Likewise.
1835 (minimal_language_data): Likewise.
1836 * d-lang.c (d_language_data): Likewise.
1837 (d_language::parser): New member function.
1838 * f-lang.c (f_language_data): Delete la_parser initializer.
1839 (f_language::parser): New member function.
1840 * go-lang.c (go_language_data): Delete la_parser initializer.
1841 (go_language::parser): New member function.
1842 * language.c (unk_lang_parser): Delete.
1843 (language_defn::parser): Define new member function.
1844 (unknown_language_data): Delete la_parser initializer.
1845 (unknown_language::parser): New member function.
1846 (auto_language_data): Delete la_parser initializer.
1847 (auto_language::parser): New member function.
1848 * language.h (language_data): Delete la_parser field.
1849 (language_defn::parser): Declare new member function.
1850 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1851 (m2_language::parser): New member function.
1852 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1853 * opencl-lang.c (opencl_language_data): Likewise.
1854 * p-lang.c (pascal_language_data): Likewise.
1855 (pascal_language::parser): New member function.
1856 * parse.c (parse_exp_in_context): Update call to parser.
1857 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1858 (rust_language::parser): New member function.
1859
37825800
AB
18602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1861
1862 * top.c (print_gdb_configuration): Print --with-python-libdir
1863 configuration value.
1864
5b860c93
PW
18652020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1866
1867 * NEWS: Mention change to the alias command.
1868
cf00cd6f
PW
18692020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1870
1871 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1872 (alias_command_completer)
1873 (make_alias_options_def_group): New functions.
1874 (alias_opts, alias_option_defs): New struct and array.
1875 (alias_usage_error): Update usage.
1876 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1877 Use option framework.
1878 (_initialize_cli_cmds): Update alias command help.
1879 Update aliases command help.
1880 (show_user):
1881 Add NULL for new default_args lookup_cmd argument.
1882 (valid_command_p): Rename to validate_aliased_command.
1883 Add NULL for new default_args lookup_cmd argument. Verify that the
1884 aliased_command has no default args.
1885 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1886 (lookup_cmd_1, lookup_cmd): New argument default_args.
1887 (add_alias_cmd):
1888 Add NULL for new default_args lookup_cmd argument.
1889 (print_help_for_command): Show default args under the layout
1890 alias some_alias = some_aliased_cmd some_alias_default_arg.
1891 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1892 xfree default_args in destructor.
1893 * cli/cli-script.c (process_next_line, do_define_command):
1894 Add NULL for new default_args lookup_cmd argument.
1895 * command.h: Declare new default_args argument in lookup_cmd
1896 and lookup_cmd_1.
1897 * completer.c (complete_line_internal_1):
1898 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1899 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1900 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1901 Likewise.
1902 * infcmd.c (_initialize_infcmd): Likewise.
1903 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1904 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1905 * python/py-param.c (add_setshow_generic): Likewise.
1906 * remote.c (_initialize_remote): Likewise.
1907 * top.c (execute_command): Prepend default_args if command has some.
1908 (set_verbose):
1909 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1910 * tracepoint.c (validate_actionline, encode_actions_1):
1911 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1912
bd920864
TBA
19132020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1914
1915 * jit.c (jit_read_descriptor): Use bool as the return type.
1916 (jit_breakpoint_re_set_internal): Use bool as the return type.
1917 Invert the return value logic; return true if the jit breakpoint
1918 has been successfully initialized.
1919 (jit_inferior_init): Update the call to
1920 jit_breakpoint_re_set_internal.
1921
f8098322
PA
19222020-06-22 Pedro Alves <palves@redhat.com>
1923
1924 PR gdb/25939
1925 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1926 Use the current inferior instead. Don't return
1927 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1928 wait again.
1929 * sol-thread.c (sol_thread_target::wait): Don't reference
1930 inferior_ptid.
1931 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1932 (sol_update_thread_list_callback): Use the current inferior's pid
1933 instead of inferior_ptid.
1934
196535a6
RO
19352020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1936
1937 * procfs.c: Cleanup many comments.
1938
1939 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1940 (AFTER_WATCHFLAG): Replace by value.
1941
1942 (MAIN_PROC_NAME_FORMAT): Inline ...
1943 (create_procinfo): ... here.
1944
1945 (procfs_debug_inferior): Remove SYS_exec handling.
1946 (syscall_is_exec): Likewise.
1947 (procfs_set_exec_trap): Likewise.
1948
1949 (syscall_is_lwp_exit): Inline in callers.
1950 (syscall_is_exit): Likewise.
1951 (syscall_is_exec): Likewise.
1952 (syscall_is_lwp_create): Likewise.
1953
1954 (invalidate_cache): Remove #if 0 code.
1955
1956 (make_signal_thread_runnable): Remove.
1957 (procfs_target::resume): Remove #if 0 code.
1958
cf6f3e86
RO
19592020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1960
1961 PR gdb/25939
1962 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1963 call ...
1964 (procfs_target::create_inferior): ... here.
1965
48e9cc84
PW
19662020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1967
1968 * exec.c (validate_exec_file): Ensure the build-id is up to
1969 date by calling reopen_exec_file (that checks file timestamp
1970 to decide to re-read the file).
1971
3922b302
PA
19722020-06-18 Pedro Alves <palves@redhat.com>
1973
1974 PR gdb/25412
1975 * gdbthread.h (delete_thread, delete_thread_silent)
1976 (find_thread_ptid): Update comments.
1977 * thread.c (current_thread_): New global.
1978 (is_current_thread): Move higher, and reimplement.
1979 (inferior_thread): Reimplement.
1980 (set_thread_exited): Use bool. Add assertions.
1981 (add_thread_silent): Simplify thread-reuse handling by always
1982 calling delete_thread.
1983 (delete_thread): Remove intro comment.
1984 (find_thread_ptid): Skip exited threads.
1985 (switch_to_thread_no_regs): Write to current_thread_.
1986 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
1987 INFERIOR_PTID. Clear current_thread_.
1988
6dbdab44
PA
19892020-06-18 Pedro Alves <palves@redhat.com>
1990
1991 * aix-thread.c (pd_update): Use switch_to_thread.
1992
2da4b788
PA
19932020-06-18 Pedro Alves <palves@redhat.com>
1994
1995 * ravenscar-thread.c (ravenscar_thread_target): Update.
1996 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
1997 (ravenscar_thread_target::add_active_thread): ... this. Don't
1998 set m_base_ptid here. Update to avoid referencing inferior_ptid.
1999 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2000
50838d1b
PA
20012020-06-18 Pedro Alves <palves@redhat.com>
2002
2003 * nat/windows-nat.c (current_windows_thread): Remove.
2004 * nat/windows-nat.h (current_windows_thread): Remove.
2005 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2006 Adjust.
2007 (display_selectors): Adjust to fetch the current
2008 windows_thread_info based on inferior_ptid.
2009 (fake_create_process): No longer write to current_windows_thread.
2010 (windows_nat_target::get_windows_debug_event):
2011 Don't set inferior_ptid or current_windows_thread.
2012 (windows_nat_target::wait): Adjust to not rely on
2013 current_windows_thread.
2014 (do_initial_windows_stuff): Now a method of windows_nat_target.
2015 Switch to the last_ptid thread.
2016 (windows_nat_target::attach): Adjust.
2017 (windows_nat_target::detach): Use switch_to_no_thread instead of
2018 writing to inferior_ptid directly.
2019 (windows_nat_target::create_inferior): Adjust.
2020
31ce04e9
PA
20212020-06-18 Pedro Alves <palves@redhat.com>
2022
2023 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2024
1ee1a363
PA
20252020-06-18 Pedro Alves <palves@redhat.com>
2026
2027 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2028 after creating it, instead of writing to inferior_ptid. Don't
2029 write to inferior_ptid.
2030
6d350754
PA
20312020-06-18 Pedro Alves <palves@redhat.com>
2032
2033 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2034
5d971d48
PA
20352020-06-18 Pedro Alves <palves@redhat.com>
2036
2037 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2038 it, instead of writing to inferior_ptid.
2039
86e57d1b
PA
20402020-06-18 Pedro Alves <palves@redhat.com>
2041
2042 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2043 to inferior_ptid.
2044
f2e1c129
PA
20452020-06-18 Pedro Alves <palves@redhat.com>
2046
2047 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2048 instead of writing to inferior_ptid directly.
2049
60db1b85
PA
20502020-06-18 Pedro Alves <palves@redhat.com>
2051
2052 * corelow.c (core_target::close): Use switch_to_no_thread instead
2053 of writing to inferior_ptid directly.
2054 (add_to_thread_list, core_target_open): Use switch_to_thread
2055 instead of writing to inferior_ptid directly.
2056
fe7d6a8d
PA
20572020-06-18 Pedro Alves <palves@redhat.com>
2058
2059 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2060 inferior_ptid.
2061 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2062 inferior_ptid.
2063 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2064 inferior_ptid directly.
2065 (darwin_nat_target::init_thread_list): Switch to thread, instead
2066 of writing to inferior_ptid.
2067 (darwin_nat_target::attach): Don't write to inferior_ptid.
2068 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2069
975f8708
PA
20702020-06-18 Pedro Alves <palves@redhat.com>
2071
2072 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2073 thread.
2074 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2075 Instead use switch_to_thread.
2076 (gnu_nat_target::detach): Use switch_to_no_thread
2077 instead of writing to inferior_ptid directly. Used passed-in
2078 inferior instead of looking up the inferior by pid.
2079
1a204730
PA
20802020-06-18 Pedro Alves <palves@redhat.com>
2081
2082 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2083 inferior_ptid.
2084
ebe84f23
PA
20852020-06-18 Pedro Alves <palves@redhat.com>
2086
2087 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2088 inferior_ptid.
2089 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2090 thread.
2091 (nto_procfs_target::detach): Avoid referencing
2092 inferior_ptid. Use switch_to_no_thread instead of writing to
2093 inferior_ptid directly.
2094 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2095 instead of writing to inferior_ptid directly.
2096 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2097 to thread.
2098
191f02e5
PA
20992020-06-18 Pedro Alves <palves@redhat.com>
2100
2101 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2102 after creating it, instead of writing to inferior_ptid.
2103 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2104 to inferior_ptid directly.
2105 (gdbsim_target::wait): Don't write to inferior_ptid.
2106
0ac55310
PA
21072020-06-18 Pedro Alves <palves@redhat.com>
2108
2109 * remote.c (remote_target::remote_notice_new_inferior): Use
2110 switch_to_thread instead of writing to inferior_ptid directly.
2111 (remote_target::add_current_inferior_and_thread): Use
2112 switch_to_no_thread instead of writing to inferior_ptid directly.
2113 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2114 and switch_to_thread instead of using set_current_inferior or
2115 writing to inferior_ptid directly.
2116
5233f39b
PA
21172020-06-18 Pedro Alves <palves@redhat.com>
2118
2119 * tracectf.c (ctf_target_open): Switch to added thread instead of
2120 writing to inferior_ptid directly.
2121 (ctf_target::close): Use switch_to_no_thread instead of writing to
2122 inferior_ptid directly.
2123
087e161b
PA
21242020-06-18 Pedro Alves <palves@redhat.com>
2125
2126 * tracefile-tfile.c (tfile_target_open): Don't write to
2127 inferior_ptid directly, instead switch to added thread.
2128 (tfile_target::close): Use switch_to_no_thread instead of writing
2129 to inferior_ptid directly.
2130
7fb43e53
PA
21312020-06-18 Pedro Alves <palves@redhat.com>
2132
2133 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2134 (procfs_target::detach): Use switch_to_no_thread
2135 instead of writing to inferior_ptid directly.
2136 (do_attach): Change return type to void. Switch to the added
2137 thread.
2138 (procfs_target::create_inferior): Switch to the added thread.
2139 (procfs_do_thread_registers): Don't write to inferior_ptid.
2140
18493a00
PA
21412020-06-18 Pedro Alves <palves@redhat.com>
2142
2143 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2144 of writing to inferior_ptid.
2145 (scoped_restore_exited_inferior): Delete.
2146 (handle_vfork_child_exec_or_exit): Simplify using
2147 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2148 instead of writing to inferior_ptid.
2149 (THREAD_STOPPED_BY): Delete.
2150 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2151 (thread_stopped_by_hw_breakpoint): Delete.
2152 (save_waitstatus): Use
2153 scoped_restore_current_thread+switch_to_thread, and call
2154 target_stopped_by_watchpoint instead of
2155 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2156 instead of thread_stopped_by_sw_breakpoint, and
2157 target_stopped_by_hw_breakpoint instead of
2158 thread_stopped_by_hw_breakpoint.
2159 (handle_inferior_event)
2160 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2161 inferior_ptid directly, nor
2162 set_current_inferior/set_current_program_space. Use
2163 switch_to_thread / switch_to_inferior_no_thread instead.
2164
a0776b13
PA
21652020-06-18 Pedro Alves <palves@redhat.com>
2166
2167 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2168 instead of writing to inferior_ptid.
2169
6155c136
PA
21702020-06-18 Pedro Alves <palves@redhat.com>
2171
2172 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2173 added thread.
2174 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2175 to the added thread.
2176 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2177 instead of writing to inferior_ptid.
2178
c5316fc6
PA
21792020-06-18 Pedro Alves <palves@redhat.com>
2180
2181 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2182 (register_to_value_test): Mock a program_space too. Heap-allocate
2183 the address space. Don't write to inferior_ptid. Use
2184 switch_to_thread instead.
2185
8df01799
PA
21862020-06-18 Pedro Alves <palves@redhat.com>
2187
2188 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2189 Delete.
2190 (find_signalled_thread()): New, factored out from
2191 linux_make_corefile_notes and adjusted to handle exited threads.
2192 (linux_make_corefile_notes): Adjust to use the new
2193 find_signalled_thread.
2194
41792d68
PA
21952020-06-18 Pedro Alves <palves@redhat.com>
2196
2197 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2198 of saving/restoring inferior_ptid.
2199
612f258a
TT
22002020-06-17 Tom Tromey <tom@tromey.com>
2201
2202 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2203 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2204 declare.
2205 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2206
efb763a5
SM
22072020-06-15 Simon Marchi <simon.marchi@efficios.com>
2208
2209 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2210 of partial symtabs.
2211
2951f6c0
SM
22122020-06-17 Simon Marchi <simon.marchi@efficios.com>
2213
2214 * regformats/reg-arm.dat: Remove.
2215 * regformats/reg-bfin.dat: Remove.
2216 * regformats/reg-cris.dat: Remove.
2217 * regformats/reg-crisv32.dat: Remove.
2218 * regformats/reg-m32r.dat: Remove.
2219 * regformats/reg-tilegx.dat: Remove.
2220 * regformats/reg-tilegx32.dat: Remove.
2221
7d458ea5
SM
22222020-06-17 Simon Marchi <simon.marchi@efficios.com>
2223
2224 * features/Makefile (WHICH): Remove arm files.
2225 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2226 * regformats/arm/arm-with-neon.dat: Remove.
2227 * regformats/arm/arm-with-vfpv2.dat: Remove.
2228 * regformats/arm/arm-with-vfpv3.dat: Remove.
2229
3af96c0d
SM
22302020-06-17 Simon Marchi <simon.marchi@efficios.com>
2231
2232 * features/Makefile (XMLTOC): Remove rx.xml.
2233
b25e22fd
PA
22342020-06-17 Pedro Alves <palves@redhat.com>
2235
2236 * gdbthread.h (thread_control_state) <trap_expected> Update
2237 comments.
2238
a78a19b1
AB
22392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2240
2241 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2242 ada_language::lookup_symbol_nonlocal.
2243 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2244 (ada_language::lookup_symbol_nonlocal): New member function,
2245 implementation from ada_lookup_symbol_nonlocal.
2246 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2247 initializer.
2248 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2249 initializer.
2250 (cplus_language::lookup_symbol_nonlocal): New member function.
2251 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2252 (minimal_language_data) Likewise.
2253 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2254 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2255 initializer.
2256 (d_language::lookup_symbol_nonlocal): New member function.
2257 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2258 initializer.
2259 (f_language::lookup_symbol_nonlocal): New member function.
2260 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2261 initializer.
2262 * language.c (unknown_language_data): Likewise.
2263 (auto_language_data): Likewise.
2264 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2265 field.
2266 (language_defn::lookup_symbol_nonlocal): New member function.
2267 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2268 initializer.
2269 * objc-lang.c (objc_language_data): Likewise.
2270 * opencl-lang.c (opencl_language_data): Likewise.
2271 * p-lang.c (pascal_language_data): Likewise.
2272 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2273 rust_language::lookup_symbol_nonlocal.
2274 (rust_language_data): Delete la_lookup_symbol_nonlocal
2275 initializer.
2276 (rust_language::lookup_symbol_nonlocal): New member function,
2277 implementation from rust_lookup_symbol_nonlocal.
2278 * symtab.c (lookup_symbol_aux): Update call to
2279 lookup_symbol_nonlocal.
2280 (basic_lookup_symbol_nonlocal): Rename to...
2281 (language_defn::lookup_symbol_nonlocal): ...this, and update
2282 header comment. Remove language_defn parameter, and replace with
2283 uses of `this'.
2284 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2285
ebe2334e
AB
22862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2287
2288 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2289 initializer.
2290 (ada_language::value_print_inner): New member function.
2291 * c-lang.c (c_language_data): Delete la_value_print_inner
2292 initializer.
2293 (cplus_language_data): Likewise.
2294 (asm_language_data): Likewise.
2295 (minimal_language_data): Likewise.
2296 * d-lang.c (d_language_data): Likewise.
2297 (d_language::value_print_inner): New member function.
2298 * f-lang.c (f_language_data): Delete la_value_print_inner
2299 initializer.
2300 (f_language::value_print_inner): New member function.
2301 * f-lang.h (f_value_print_innner): Rename to...
2302 (f_value_print_inner): ...this (note spelling of 'inner').
2303 * f-valprint.c (f_value_print_innner): Rename to...
2304 (f_value_print_inner): ...this (note spelling of 'inner').
2305 * go-lang.c (go_language_data): Delete la_value_print_inner
2306 initializer.
2307 (go_language::value_print_inner): New member function.
2308 * language.c (language_defn::value_print_inner): Define new member
2309 function.
2310 (unk_lang_value_print_inner): Delete.
2311 (unknown_language_data): Delete la_value_print_inner initializer.
2312 (unknown_language::value_print_inner): New member function.
2313 (auto_language_data): Delete la_value_print_inner initializer.
2314 (auto_language::value_print_inner): New member function.
2315 * language.h (language_data): Delete la_value_print_inner field.
2316 (language_defn::value_print_inner): Delcare new member function.
2317 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2318 initializer.
2319 (m2_language::value_print_inner): New member function.
2320 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2321 initializer.
2322 * opencl-lang.c (opencl_language_data): Likewise.
2323 * p-lang.c (pascal_language_data): Likewise.
2324 (pascal_language::value_print_inner): New member function.
2325 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2326 initializer.
2327 (rust_language::value_print_inner): New member function.
2328 * valprint.c (do_val_print): Update call to value_print_inner.
2329
a1d1fa3e
AB
23302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2331
2332 * ada-lang.c (ada_language_data): Delete la_value_print
2333 initializer.
2334 (ada_language::value_print): New member function.
2335 * c-lang.c (c_language_data): Delete la_value_print initializer.
2336 (cplus_language_data): Likewise.
2337 (asm_language_data): Likewise.
2338 (minimal_language_data): Likewise.
2339 * d-lang.c (d_language_data): Likewise.
2340 * f-lang.c (f_language_data): Likewise.
2341 * go-lang.c (go_language_data): Likewise.
2342 * language.c (unk_lang_value_print): Delete.
2343 (language_defn::value_print): Define new member function.
2344 (unknown_language_data): Delete la_value_print initializer.
2345 (unknown_language::value_print): New member function.
2346 (auto_language_data): Delete la_value_print initializer.
2347 (auto_language::value_print): New member function.
2348 * language.h (language_data): Delete la_value_print field.
2349 (language_defn::value_print): Declare new member function.
2350 (LA_VALUE_PRINT): Update call to value_print.
2351 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2352 * objc-lang.c (objc_language_data): Likewise.
2353 * opencl-lang.c (opencl_language_data): Likewise.
2354 * p-lang.c (pascal_language_data): Likewise.
2355 (pascal_language::value_print): New member function.
2356 * rust-lang.c (rust_language_data): Delete la_value_print
2357 initializer.
2358
f16a9f57
AB
23592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2360
2361 * ada-lang.c (ada_watch_location_expression): Rename to
2362 ada_language::watch_location_expression.
2363 (ada_language_data): Delete la_watch_location_expression
2364 initializer.
2365 (ada_language::watch_location_expression): New member function,
2366 implementation from ada_watch_location_expression.
2367 * breakpoint.c (watch_command_1): Update call to
2368 watch_location_expression.
2369 * c-lang.c (c_watch_location_expression): Rename to
2370 language_defn::watch_location_expression.
2371 (c_language_data): Delete la_watch_location_expression
2372 initializer.
2373 (cplus_language_data): Likewise.
2374 (asm_language_data): Likewise.
2375 (minimal_language_data): Likewise.
2376 * c-lang.h (c_watch_location_expression): Delete declaration.
2377 * d-lang.c (d_language_data): Delete la_watch_location_expression
2378 initializer.
2379 * f-lang.c (f_language_data): Likewise.
2380 * go-lang.c (go_language_data): Likewise.
2381 * language.c (language_defn::watch_location_expression): Member
2382 function implementation from c_watch_location_expression.
2383 (unknown_language_data): Delete la_watch_location_expression
2384 initializer.
2385 (auto_language_data): Likewise.
2386 * language.h (language_data): Delete la_watch_location_expression
2387 field.
2388 (language_defn::watch_location_expression): Declare new member
2389 function.
2390 * m2-lang.c (m2_language_data): Delete
2391 la_watch_location_expression initializer.
2392 * objc-lang.c (objc_language_data): Likewise.
2393 * opencl-lang.c (opencl_language_data): Likewise.
2394 * p-lang.c (pascal_language_data): Likewise.
2395 * rust-lang.c (rust_watch_location_expression): Rename to
2396 rust_language::watch_location_expression.
2397 (rust_language_data): Delete la_watch_location_expression
2398 initializer.
2399 (rust_language::watch_location_expression): New member function,
2400 implementation from rust_watch_location_expression.
2401
7e56227d
AB
24022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2403
2404 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2405 ada_language::collect_symbol_completion_matches.
2406 (ada_language_data): Delete la_collect_symbol_completion_matches
2407 initializer.
2408 (ada_language::collect_symbol_completion_matches): New member
2409 function, implementation from
2410 ada_collect_symbol_completion_matches.
2411 * c-lang.c (c_language_data): Delete
2412 la_collect_symbol_completion_matches initializer.
2413 (cplus_language_data): Likewise.
2414 (asm_language_data): Likewise.
2415 (minimal_language_data): Likewise.
2416 * d-lang.c (d_language_data): Likewise.
2417 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2418 f_language::collect_symbol_completion_matches.
2419 (f_language_data): Delete la_collect_symbol_completion_matches
2420 initializer.
2421 (f_language::collect_symbol_completion_matches) New member
2422 function, implementation from f_collect_symbol_completion_matches.
2423 * go-lang.c (go_language_data): Delete
2424 la_collect_symbol_completion_matches initializer.
2425 * language.c (unknown_language_data): Likewise.
2426 (auto_language_data): Likewise.
2427 * language.h (language_data): Delete
2428 la_collect_symbol_completion_matches field.
2429 (language_defn::collect_symbol_completion_matches): New member
2430 function.
2431 * m2-lang.c (m2_language_data): Delete
2432 la_collect_symbol_completion_matches initializer.
2433 * objc-lang.c (objc_language_data): Likewise.
2434 * opencl-lang.c (opencl_language_data): Likewise.
2435 * p-lang.c (pascal_language_data): Likewise.
2436 * rust-lang.c (rust_language_data): Likewise.
2437 * symtab.c (default_collect_symbol_completion_matches): Delete.
2438 (collect_symbol_completion_matches): Update call to
2439 collect_symbol_completion_matches.
2440 (collect_symbol_completion_matches_type): Likewise.
2441 * symtab.h (default_collect_symbol_completion_matches): Delete
2442 declaration.
2443
53fc67f8
AB
24442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2445
2446 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2447 (ada_language_data): Delete la_word_break_characters initializer.
2448 (ada_language::word_break_characters): New member function.
2449 * c-lang.c (c_language_data): Delete la_word_break_characters
2450 initializer.
2451 (cplus_language_data): Likewise.
2452 (asm_language_data): Likewise.
2453 (minimal_language_data): Likewise.
2454 * completer.c: Update global comment.
2455 (advance_to_expression_complete_word_point): Update call to
2456 word_break_characters.
2457 (complete_files_symbols): Likewise.
2458 (complete_line_internal_1): Likewise.
2459 (default_completer_handle_brkchars): Likewise.
2460 (skip_quoted_chars): Likewise.
2461 * d-lang.c (d_language_data): Delete la_word_break_characters
2462 initializer.
2463 * f-lang.c (f_word_break_characters): Delete.
2464 (f_language_data): Delete la_word_break_characters initializer.
2465 (f_language::word_break_characters): New member function.
2466 * go-lang.c (go_language_data): Delete la_word_break_characters
2467 initializer.
2468 * language.c (unknown_language_data): Likewise.
2469 (auto_language_data): Likewise.
2470 * language.h (default_word_break_characters): Move declaration to
2471 earlier in the file.
2472 (language_data): Delete la_word_break_characters field.
2473 (language_defn::word_break_characters): New member function.
2474 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2475 initializer.
2476 * objc-lang.c (objc_language_data): Likewise.
2477 * opencl-lang.c (opencl_language_data): Likewise.
2478 * p-lang.c (pascal_language_data): Likewise.
2479 * rust-lang.c (rust_language_data): Likewise.
2480
c9debfb9
AB
24812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2482
2483 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2484 (ada_language_data): Delete la_get_symbol_name_matcher
2485 initializer.
2486 (language_defn::get_symbol_name_matcher_inner): New member
2487 function.
2488 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2489 initializer.
2490 (cplus_language_data): Likewise.
2491 (cplus_language::get_symbol_name_matcher_inner): New member
2492 function.
2493 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2494 (minimal_language_data): Likewise.
2495 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2496 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2497 initializer.
2498 * dictionary.c (iter_match_first_hashed): Update call to
2499 get_symbol_name_matcher.
2500 (iter_match_next_hashed): Likewise.
2501 (iter_match_next_linear): Likewise.
2502 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2503 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2504 initializer.
2505 (f_language::get_symbol_name_matcher_inner): New member function.
2506 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2507 initializer.
2508 * language.c (default_symbol_name_matcher): Update header comment,
2509 make static.
2510 (language_defn::get_symbol_name_matcher): New definition.
2511 (language_defn::get_symbol_name_matcher_inner): Likewise.
2512 (get_symbol_name_matcher): Delete.
2513 (unknown_language_data): Delete la_get_symbol_name_matcher
2514 initializer.
2515 (auto_language_data): Likewise.
2516 * language.h (language_data): Delete la_get_symbol_name_matcher
2517 field.
2518 (language_defn::get_symbol_name_matcher): New member function.
2519 (language_defn::get_symbol_name_matcher_inner): Likewise.
2520 (default_symbol_name_matcher): Delete declaration.
2521 * linespec.c (find_methods): Update call to
2522 get_symbol_name_matcher.
2523 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2524 initializer.
2525 * minsyms.c (lookup_minimal_symbol): Update call to
2526 get_symbol_name_matcher.
2527 (iterate_over_minimal_symbols): Likewise.
2528 * objc-lang.c (objc_language_data): Delete
2529 la_get_symbol_name_matcher initializer.
2530 * opencl-lang.c (opencl_language_data): Likewise.
2531 * p-lang.c (pascal_language_data): Likewise.
2532 * psymtab.c (psymbol_name_matches): Update call to
2533 get_symbol_name_matcher.
2534 * rust-lang.c (rust_language_data): Delete
2535 la_get_symbol_name_matcher initializer.
2536 * symtab.c (symbol_matches_search_name): Update call to
2537 get_symbol_name_matcher.
2538 (compare_symbol_name): Likewise.
2539
9a49ad8c
AB
25402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2541
2542 * ada-lang.c (ada_language_data): Delete la_compute_program
2543 initializer.
2544 * c-lang.c (c_language_data): Likewise.
2545 (c_language::compute_program): New member function.
2546 (cplus_language_data): Delete la_compute_program initializer.
2547 (cplus_language::compute_program): New member function.
2548 (asm_language_data): Delete la_compute_program initializer.
2549 (minimal_language_data): Likewise.
2550 * c-lang.h (c_compute_program): Update comment.
2551 (cplus_compute_program): Likewise.
2552 * compile/compile-c-support.c (c_compute_program): Likewise.
2553 (cplus_compute_program): Likewise.
2554 * compile/compile.c (compile_to_object): Update call to
2555 la_compute_program.
2556 * d-lang.c (d_language_data): Delete la_compute_program
2557 initializer.
2558 * f-lang.c (f_language_data): Likewise.
2559 * go-lang.c (go_language_data): Likewise.
2560 * language.c (unknown_language_data): Likewise.
2561 (auto_language_data): Likewise.
2562 * language.h (language_data): Delete la_compute_program field.
2563 (language_defn::compute_program): New member function.
2564 * m2-lang.c (m2_language_data): Delete la_compute_program
2565 initializer.
2566 * objc-lang.c (objc_language_data): Likewise.
2567 * opencl-lang.c (opencl_language_data): Likewise.
2568 * p-lang.c (pascal_language_data): Likewise.
2569 * rust-lang.c (rust_language_data): Likewise.
2570
eff93b4d
AB
25712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2572
2573 * ada-lang.c (ada_language_data) Delete
2574 la_class_name_from_physname initializer.
2575 * c-lang.c (c_language_data): Likewise.
2576 (cplus_language_data): Likewise.
2577 (cplus_language::class_name_from_physname): New member function.
2578 (asm_language_data): Delete la_class_name_from_physname
2579 initializer.
2580 (minimal_language_data): Likewise.
2581 * d-lang.c (d_language_data): Likewise.
2582 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2583 method on language_defn class.
2584 (guess_full_die_structure_name): Likewise.
2585 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2586 initializer.
2587 * go-lang.c (go_language_data): Likewise.
2588 * language.c (language_class_name_from_physname): Delete.
2589 (unk_lang_class_name): Delete.
2590 (unknown_language_data): Delete la_class_name_from_physname
2591 initializer.
2592 (auto_language_data): Likewise.
2593 * language.h (language_data): Delete la_class_name_from_physname
2594 field.
2595 (language_defn::class_name_from_physname): New function.
2596 (language_class_name_from_physname): Delete declaration.
2597 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2598 initializer.
2599 * objc-lang.c (objc_language_data): Likewise.
2600 * opencl-lang.c (opencl_language_data): Likewise.
2601 * p-lang.c (pascal_language_data): Likewise.
2602 * rust-lang.c (rust_language_data): Likewise.
2603
de543742
TT
26042020-06-16 Tom Tromey <tom@tromey.com>
2605
2606 * tui/tui-data.h (STATUS_NAME): New macro.
2607 * tui/tui-layout.c (tui_remove_some_windows)
2608 (initialize_known_windows, tui_register_window)
2609 (tui_layout_split::remove_windows, initialize_layouts)
2610 (tui_new_layout_command): Don't use hard-coded window names.
2611
a350efd4
TT
26122020-06-16 Tom Tromey <tom@tromey.com>
2613
2614 PR tui/25348:
2615 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2616 tui_initialize_readline. Only run once. Call rl_initialize.
2617 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2618 tui_initialize_readline.
2619 * tui/tui-io.c (tui_setup_io): Call
2620 tui_ensure_readline_initialized.
2621 * tui/tui-interp.c (tui_interp::init): Update.
2622
39ec0490
TT
26232020-06-16 Tom Tromey <tom@tromey.com>
2624
2625 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2626 Also preserve the status window.
2627
d2d1ea20
TT
26282020-06-16 Tom Tromey <tom@tromey.com>
2629
2630 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2631 where m_window==nullptr.
2632
66920317
TT
26332020-06-15 Tom Tromey <tromey@adacore.com>
2634
2635 * windows-nat.c (windows_nat::handle_output_debug_string):
2636 Update.
2637 (windows_nat::handle_ms_vc_exception): Update.
2638 * target.h (target_read_string): Change API.
2639 * target.c (target_read_string): Change API.
2640 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2641 Update.
2642 * solib-frv.c (frv_current_sos): Update.
2643 * solib-dsbt.c (dsbt_current_sos): Update.
2644 * solib-darwin.c (darwin_current_sos): Update.
2645 * linux-thread-db.c (inferior_has_bug): Update.
2646 * expprint.c (print_subexp_standard): Update.
2647 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2648 (ada_exception_message_1): Update.
2649
a5d871dd
TT
26502020-06-15 Tom Tromey <tromey@adacore.com>
2651
2652 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2653
670e35fa
TT
26542020-06-15 Tom Tromey <tromey@adacore.com>
2655
2656 * valprint.c (read_string): Update comment.
2657 * target.c (MIN): Remove.
2658 (target_read_string): Rewrite.
2659
f5272a3b
TT
26602020-06-15 Tom Tromey <tromey@adacore.com>
2661
2662 * corefile.c (read_memory_string): Remove.
2663 * ada-valprint.c (ada_value_print_ptr): Update.
2664 * ada-lang.h (ada_tag_name): Change return type.
2665 * ada-lang.c (type_from_tag): Update.
2666 (ada_tag_name_from_tsd): Change return type. Use
2667 target_read_string.
2668 (ada_tag_name): Likewise.
2669 * gdbcore.h (read_memory_string): Don't declare.
2670
2c074f49
HD
26712020-06-14 Hannes Domani <ssbssa@yahoo.de>
2672
2673 * symtab.c (rbreak_command): Ignore Windows drive colon.
2674
6a17d503
SM
26752020-06-12 Simon Marchi <simon.marchi@efficios.com>
2676
2677 * NEWS: Mention removed GDBserver host support.
2678
453c733f
NC
26792020-06-12 Nelson Chu <nelson.chu@sifive.com>
2680
2681 * features/riscv/rebuild-csr-xml.sh: Updated.
2682
2b4e6a3f
TT
26832020-06-11 Tom Tromey <tom@tromey.com>
2684
2685 PR gdb/18318:
2686 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2687
4412332f
JG
26882020-06-09 Jonny Grant <jg@jguk.org>
26892020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2690
2691 * main.c (captured_main_1): Don't print new line after help.
2692 (print_gdb_help): add mailing list and IRC channel information
2693 to --help. Add new lines between items in the footer. Remove
2694 quotes around bug url.
2695
2f33032a
KS
26962020-06-11 Keith Seitz <keiths@redhat.com>
2697
2698 PR gdb/21356
2699 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2700 Resolve typedefs for type length calculations.
2701
7ab96794
TV
27022020-06-10 Tom de Vries <tdevries@suse.de>
2703
2704 PR ada/24713
2705 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2706 (write_psymbols): Enable .gdb_index for ada.
2707 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2708 ada.
2709
e5f3ece2
TV
27102020-06-10 Tom de Vries <tdevries@suse.de>
2711
2712 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2713 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2714 namei" instead of "const char *name" argument.
2715 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2716 dw2_symtab_iter_init.
2717
940da03e
SM
27182020-06-08 Simon Marchi <simon.marchi@efficios.com>
2719
2720 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2721 to use type::field and field::type instead.
2722
b6cdac4b
SM
27232020-06-08 Simon Marchi <simon.marchi@efficios.com>
2724
2725 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2726 to use field::type instead.
2727
5d14b6e5
SM
27282020-06-08 Simon Marchi <simon.marchi@efficios.com>
2729
2730 * gdbtypes.h (struct field) <type, set_type>: New methods.
2731 Rename `type` field to...
2732 <m_type>: ... this. Change references throughout to use type or
2733 set_type methods.
2734 (FIELD_TYPE): Use field::type. Change call sites that modify
2735 the field's type to use field::set_type instead.
2736
3d967001
SM
27372020-06-08 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2740 to use type::index_type instead.
2741
262abc0d
SM
27422020-06-08 Simon Marchi <simon.marchi@efficios.com>
2743
2744 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2745 methods.
2746 (TYPE_INDEX_TYPE): Use type::index_type.
2747 * gdbtypes.c (create_array_type_with_stride): Likewise.
2748
82836c92
TT
27492020-06-07 Tom Tromey <tom@tromey.com>
2750
2751 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2752 parameter.
2753 (generic_value_print): Update.
2754
940dace9
AB
27552020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2756
2757 Revert commit 982a38f60b0.
2758 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2759
982a38f6
AB
27602020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2761
2762 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2763 avoid use after free.
2764
82f06518
TV
27652020-06-05 Tom de Vries <tdevries@suse.de>
2766
2767 * NEWS: Fix typos.
2768
f8c41851
SM
27692020-06-04 Simon Marchi <simon.marchi@efficios.com>
2770
2771 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2772 the per_bfd object.
2773 (dwarf2_read_debug_names): Likewise.
2774 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2775 object when re-using a per_bfd object with an index.
2776
f9b5d5ea
TV
27772020-06-03 Tom de Vries <tdevries@suse.de>
2778
2779 PR symtab/26046
2780 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2781 children for C++.
2782 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2783 DW_TAG_subprogram.
2784
f6eee2d0
AB
27852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2786
2787 * ada-lang.c (ada_language_data): Delete skip_trampoline
2788 initializer.
2789 * c-lang.c (c_language_data): Likewise.
2790 (cplus_language_data): Likewise.
2791 (cplus_language::skip_trampoline): New member function.
2792 (asm_language_data): Delete skip_trampoline initializer.
2793 (minimal_language_data): Likewise.
2794 * d-lang.c (d_language_data): Likewise.
2795 * f-lang.c (f_language_data): Likewise.
2796 * go-lang.c (go_language_data): Likewise.
2797 * language.c (unk_lang_trampoline): Delete function.
2798 (skip_language_trampoline): Update.
2799 (unknown_language_data): Delete skip_trampoline initializer.
2800 (auto_language_data): Likewise.
2801 * language.h (language_data): Delete skip_trampoline field.
2802 (language_defn::skip_trampoline): New function.
2803 * m2-lang.c (m2_language_data): Delete skip_trampoline
2804 initializer.
2805 * objc-lang.c (objc_skip_trampoline): Delete function, move
2806 implementation to objc_language::skip_trampoline.
2807 (objc_language_data): Delete skip_trampoline initializer.
2808 (objc_language::skip_trampoline): New member function with
2809 implementation from objc_skip_trampoline.
2810 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2811 initializer.
2812 * p-lang.c (pascal_language_data): Likewise.
2813 * rust-lang.c (rust_language_data): Likewise.
2814
0a50df5d
AB
28152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2816
2817 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2818 (ada_language::demangle): New member function.
2819 * c-lang.c (c_language_data): Delete la_demangle initializer.
2820 (cplus_language_data): Delete la_demangle initializer.
2821 (cplus_language::demangle): New member function.
2822 (asm_language_data): Delete la_demangle initializer.
2823 (minimal_language_data): Delete la_demangle initializer.
2824 * d-lang.c (d_language_data): Delete la_demangle initializer.
2825 (d_language::demangle): New member function.
2826 * f-lang.c (f_language_data): Delete la_demangle initializer.
2827 (f_language::demangle): New member function.
2828 * go-lang.c (go_language_data): Delete la_demangle initializer.
2829 (go_language::demangle): New member function.
2830 * language.c (language_demangle): Update.
2831 (unk_lang_demangle): Delete.
2832 (unknown_language_data): Delete la_demangle initializer.
2833 (unknown_language::demangle): New member function.
2834 (auto_language_data): Delete la_demangle initializer.
2835 (auto_language::demangle): New member function.
2836 * language.h (language_data): Delete la_demangle field.
2837 (language_defn::demangle): New function.
2838 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2839 * objc-lang.c (objc_language_data): Delete la_demangle
2840 initializer.
2841 (objc_language::demangle): New member function.
2842 * opencl-lang.c (opencl_language_data): Delete la_demangle
2843 initializer.
2844 * p-lang.c (pascal_language_data): Likewise.
2845 * rust-lang.c (rust_language_data): Likewise.
2846 (rust_language::demangle): New member function.
2847
fbfb0a46
AB
28482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2849
2850 * ada-lang.c (ada_language_data): Delete la_print_type
2851 initializer.
2852 (ada_language::print_type): New member function.
2853 * c-lang.c (c_language_data): Delete la_print_type initializer.
2854 (c_language::print_type): New member function.
2855 (cplus_language_data): Delete la_print_type initializer.
2856 (cplus_language::print_type): New member function.
2857 (asm_language_data): Delete la_print_type initializer.
2858 (asm_language::print_type): New member function.
2859 (minimal_language_data): Delete la_print_type initializer.
2860 (minimal_language::print_type): New member function.
2861 * d-lang.c (d_language_data): Delete la_print_type initializer.
2862 (d_language::print_type): New member function.
2863 * f-lang.c (f_language_data): Delete la_print_type initializer.
2864 (f_language::print_type): New member function.
2865 * go-lang.c (go_language_data): Delete la_print_type initializer.
2866 (go_language::print_type): New member function.
2867 * language.c (unk_lang_print_type): Delete.
2868 (unknown_language_data): Delete la_print_type initializer.
2869 (unknown_language::print_type): New member function.
2870 (auto_language_data): Delete la_print_type initializer.
2871 (auto_language::print_type): New member function.
2872 * language.h (language_data): Delete la_print_type field.
2873 (language_defn::print_type): New function.
2874 (LA_PRINT_TYPE): Update.
2875 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2876 (m2_language::print_type): New member function.
2877 * objc-lang.c (objc_language_data): Delete la_print_type
2878 initializer.
2879 (objc_language::print_type): New member function.
2880 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2881 to opencl_language::print_type.
2882 (opencl_language_data): Delete la_print_type initializer.
2883 (opencl_language::print_type): New member function, implementation
2884 from opencl_print_type.
2885 * p-lang.c (pascal_language_data): Delete la_print_type
2886 initializer.
2887 (pascal_language::print_type): New member function.
2888 * rust-lang.c (rust_print_type): Delete, implementation moved to
2889 rust_language::print_type.
2890 (rust_language_data): Delete la_print_type initializer.
2891 (rust_language::print_type): New member function, implementation
2892 from rust_print_type.
2893
6f827019
AB
28942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2895
2896 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2897 implementation moves to...
2898 (ada_language::sniff_from_mangled_name): ...here. Update return
2899 type.
2900 (ada_language_data): Delete la_sniff_from_mangled_name
2901 initializer.
2902 * c-lang.c (c_language_data): Likewise.
2903 (cplus_language_data): Likewise.
2904 (cplus_language::sniff_from_mangled_name): New member function,
2905 implementation taken from gdb_sniff_from_mangled_name.
2906 (asm_language_data): Delete la_sniff_from_mangled_name
2907 initializer.
2908 (minimal_language_data): Likewise.
2909 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2910 implementation moves to cplus_language::sniff_from_mangled_name.
2911 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2912 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2913 moves to...
2914 (d_language::sniff_from_mangled_name): ...here.
2915 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2916 * f-lang.c (f_language_data): Likewise.
2917 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2918 moves to...
2919 (go_language::sniff_from_mangled_name): ...here.
2920 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2921 * language.c (language_sniff_from_mangled_name): Delete.
2922 (unknown_language_data): Delete la_sniff_from_mangled_name
2923 initializer.
2924 (auto_language_data): Likewise.
2925 * language.h (language_data): Delete la_sniff_from_mangled_name
2926 field.
2927 (language_defn::sniff_from_mangled_name): New function.
2928 (language_sniff_from_mangled_name): Delete declaration.
2929 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2930 field.
2931 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2932 implementation moves to...
2933 (objc_language::sniff_from_mangled_name): ...here.
2934 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2935 * opencl-lang.c (opencl_language_data): Likewise.
2936 * p-lang.c (pascal_language_data): Likewise.
2937 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2938 implementation moves to...
2939 (rust_language::sniff_from_mangled_name): ...here.
2940 (rust_language_data): Delete la_sniff_from_mangled_name
2941 initializer.
2942 * symtab.c (symbol_find_demangled_name): Call
2943 sniff_from_mangled_name member function.
2944
fb8006fd
AB
29452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2946
2947 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2948 initializer.
2949 * c-lang.c (c_language_data): Likewise.
2950 (cplus_language_data): Likewise.
2951 (cplus_language::search_name_hash): New member function.
2952 (asm_language_data): Delete la_search_name_hash initializer.
2953 (minimal_language_data): Likewise.
2954 * d-lang.c (d_language_data): Likewise.
2955 * dictionary.c (default_search_name_hash): Rename to...
2956 (language_defn::search_name_hash): ...this.
2957 * f-lang.c (f_language_data): Likewise.
2958 (f_language::search_name_hash): New member function.
2959 * go-lang.c (go_language_data): Delete la_search_name_hash
2960 initializer.
2961 * language.c (unknown_language_data): Likewise.
2962 (auto_language_data): Likewise.
2963 * language.h (struct language_data): Delete la_search_name_hash
2964 field.
2965 (language_defn::search_name_hash): Declare new member function.
2966 (default_search_name_hash): Delete declaration.
2967 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2968 initializer.
2969 * objc-lang.c (objc_language_data): Likewise.
2970 * opencl-lang.c (opencl_language_data): Likewise.
2971 * p-lang.c (pascal_language_data): Likewise.
2972 * rust-lang.c (rust_language_data): Likewise.
2973 * symtab.c (search_name_hash): Update call.
2974
8e25bafe
AB
29752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2976
2977 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2978 initializer.
2979 * c-lang.c (class compile_instance): Declare.
2980 (c_language_data): Delete la_get_compile_instance initializer.
2981 (c_language::get_compile_instance): New member function.
2982 (cplus_language_data): Delete la_get_compile_instance initializer.
2983 (cplus_language::get_compile_instance): New member function.
2984 (asm_language_data): Delete la_get_compile_instance initializer.
2985 (minimal_language_data): Likewise.
2986 * c-lang.h (c_get_compile_context): Update comment.
2987 (cplus_get_compile_context): Update comment.
2988 * compile/compile.c (compile_to_object): Update calls, don't rely
2989 on function pointer being NULL.
2990 * d-lang.c (d_language_data): Delete la_get_compile_instance
2991 initializer.
2992 * f-lang.c (f_language_data): Likewise.
2993 * go-lang.c (go_language_data): Likewise.
2994 * language.c (unknown_language_data): Likewise.
2995 (auto_language_data): Likewise.
2996 * language.h (language_data): Delete la_get_compile_instance field.
2997 (language_defn::get_compile_instance): New member function.
2998 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
2999 initializer.
3000 * objc-lang.c (objc_language_data): Likewise.
3001 * opencl-lang.c (opencl_language_data): Likewise.
3002 * p-lang.c (pascal_language_data): Likewise.
3003 * rust-lang.c (rust_language_data): Likewise.
3004
4009ee92
AB
30052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3006
3007 * ada-lang.c (ada_add_all_symbols): Update comment.
3008 (ada_iterate_over_symbols): Delete, move implementation to...
3009 (ada_language::iterate_over_symbols): ...here, a new member
3010 function, rewrite to use range based for loop.
3011 (ada_language_data): Delete la_iterate_over_symbols initializer.
3012 * c-lang.c (c_language_data): Likewise.
3013 (cplus_language_data): Likewise.
3014 (asm_language_data): Likewise.
3015 (minimal_language_data): Likewise.
3016 * d-lang.c (d_language_data): Likewise.
3017 * f-lang.c (f_language_data): Likewise.
3018 * go-lang.c (go_language_data): Likewise.
3019 * language.c (unknown_language_data): Likewise.
3020 (auto_language_data): Likewise.
3021 * language.h (language_data): Delete la_iterate_over_symbols field.
3022 (language_defn::iterate_over_symbols): New member function.
3023 (LA_ITERATE_OVER_SYMBOLS): Update.
3024 * linespec.c (iterate_over_all_matching_symtabs): Update.
3025 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3026 initializer.
3027 * objc-lang.c (objc_language_data): Likewise.
3028 * opencl-lang.c (opencl_language_data): Likewise.
3029 * p-lang.c (pascal_language_data): Likewise.
3030 * rust-lang.c (rust_language_data): Likewise.
3031
54f4ca46
AB
30322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * ada-lang.c (ada_language_data): Delete
3035 la_lookup_transparent_type initializer.
3036 * c-lang.c (c_language_data): Likewise.
3037 (cplus_language_data): Likewise.
3038 (cplus_language::lookup_transparent_type): New member function.
3039 (asm_language_data): Delete la_lookup_transparent_type
3040 initializer.
3041 (minimal_language_data): Likewise.
3042 * d-lang.c (d_language_data): Likewise.
3043 * f-lang.c (f_language_data): Likewise.
3044 * go-lang.c (go_language_data): Likewise.
3045 * language.c (unknown_language_data): Likewise.
3046 (auto_language_data): Likewise.
3047 * language.h (struct language_data): Delete
3048 la_lookup_transparent_type field.
3049 (language_defn::lookup_transparent_type): New member function.
3050 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3051 initializer.
3052 * objc-lang.c (objc_language_data): Likewise.
3053 * opencl-lang.c (opencl_language_data): Likewise.
3054 * p-lang.c (pascal_language_data): Likewise.
3055 * rust-lang.c (rust_language_data): Likewise.
3056 * symtab.c (symbol_matches_domain): Update call.
3057
1fb314aa
AB
30582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3059
3060 * ada-lang.c (ada_language_arch_info): Delete function, move
3061 implementation to...
3062 (ada_language::language_arch_info): ...here, a new member
3063 function.
3064 (ada_language_data): Delete la_language_arch_info.
3065 * c-lang.c (c_language_data): Likewise.
3066 (c_language::language_arch_info): New member function.
3067 (cplus_language_arch_info): Delete function, move
3068 implementation to...
3069 (cplus_language::language_arch_info): ...here, a new member
3070 function.
3071 (cplus_language_data): Delete la_language_arch_info.
3072 (asm_language_data): Likewise.
3073 (asm_language::language_arch_info): New member function.
3074 (minimal_language_data): Delete la_language_arch_info.
3075 (minimal_language::language_arch_info): New member function.
3076 * d-lang.c (d_language_arch_info): Delete function, move
3077 implementation to...
3078 (d_language::language_arch_info): ...here, a new member
3079 function.
3080 (d_language_data): Delete la_language_arch_info.
3081 * f-lang.c (f_language_arch_info): Delete function, move
3082 implementation to...
3083 (f_language::language_arch_info): ...here, a new member
3084 function.
3085 (f_language_data): Delete la_language_arch_info.
3086 * go-lang.c (go_language_arch_info): Delete function, move
3087 implementation to...
3088 (go_language::language_arch_info): ...here, a new member
3089 function.
3090 (go_language_data): Delete la_language_arch_info.
3091 * language.c (unknown_language_data): Likewise.
3092 (unknown_language::language_arch_info): New member function.
3093 (auto_language_data): Delete la_language_arch_info.
3094 (auto_language::language_arch_info): New member function.
3095 (language_gdbarch_post_init): Update call to
3096 la_language_arch_info.
3097 * language.h (language_data): Delete la_language_arch_info
3098 function pointer.
3099 (language_defn::language_arch_info): New function.
3100 * m2-lang.c (m2_language_arch_info): Delete function, move
3101 implementation to...
3102 (m2_language::language_arch_info): ...here, a new member
3103 function.
3104 (m2_language_data): Delete la_language_arch_info.
3105 * objc-lang.c (objc_language_arch_info): Delete function, move
3106 implementation to...
3107 (objc_language::language_arch_info): ...here, a new member
3108 function.
3109 (objc_language_data): Delete la_language_arch_info.
3110 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3111 implementation to...
3112 (opencl_language::language_arch_info): ...here, a new member
3113 function.
3114 (opencl_language_data): Delete la_language_arch_info.
3115 * p-lang.c (pascal_language_arch_info): Delete function, move
3116 implementation to...
3117 (pascal_language::language_arch_info): ...here, a new member
3118 function.
3119 (pascal_language_data): Delete la_language_arch_info.
3120 * rust-lang.c (rust_language_arch_info): Delete function, move
3121 implementation to...
3122 (rust_language::language_arch_info): ...here, a new member
3123 function.
3124 (rust_language_data): Delete la_language_arch_info.
3125
48448202
AB
31262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3127
3128 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3129 initializer.
3130 * c-lang.c (c_language_data): Likewise.
3131 (cplus_language_data): Likewise.
3132 (cplus_language::pass_by_reference_info): New method.
3133 (asm_language_data): Delete la_pass_by_reference initializer.
3134 (minimal_language_data): Likewise.
3135 * cp-abi.c (cp_pass_by_reference): Remove use of
3136 default_pass_by_reference.
3137 * d-lang.c (d_language_data): Likewise.
3138 * f-lang.c (f_language_data): Likewise.
3139 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3140 default_pass_by_reference.
3141 * go-lang.c (go_language_data): Likewise.
3142 * language.c (language_pass_by_reference): Update.
3143 (default_pass_by_reference): Delete.
3144 (unknown_language_data): Delete la_pass_by_reference
3145 initializer.
3146 (auto_language_data): Likewise.
3147 * language.h (struct language_data): Delete la_pass_by_reference
3148 field.
3149 (language_defn::pass_by_reference_info): New member function.
3150 (default_pass_by_reference): Delete declaration.
3151 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3152 initializer.
3153 * objc-lang.c (objc_language_data): Likewise.
3154 * opencl-lang.c (opencl_language_data): Likewise.
3155 * p-lang.c (pascal_language_data): Likewise.
3156 * rust-lang.c (rust_language_data): Likewise.
3157
15e5fd35
AB
31582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3159
3160 * ada-lang.c (ada_read_var_value): Delete function, move
3161 implementation to...
3162 (ada_language::read_var_value): ...here.
3163 (ada_language_data): Delete la_read_var_value initializer.
3164 * c-lang.c (c_language_data): Likewise.
3165 (cplus_language_data): Likewise.
3166 (minimal_language_data): Likewise.
3167 * d-lang.c (d_language_data): Likewise.
3168 * f-lang.c (f_language_data): Likewise.
3169 * findvar.c (default_read_var_value): Rename to...
3170 (language_defn::read_var_value): ...this.
3171 * findvar.c (read_var_value): Update header comment, and change to
3172 call member function instead of function pointer.
3173 * go-lang.c (go_language_data): Likewise.
3174 * language.c (unknown_language_data): Delete la_read_var_value
3175 initializer.
3176 (auto_language_data): Likewise.
3177 * language.h (struct language_data): Delete la_read_var_value
3178 field.
3179 (language_defn::read_var_value): New member function.
3180 (default_read_var_value): Delete declaration.
3181 * m2-lang.c (m2_language_data): Delete la_read_var_value
3182 initializer.
3183 * objc-lang.c (objc_language_data): Likewise.
3184 * opencl-lang.c (opencl_language_data): Likewise.
3185 * p-lang.c (pascal_language_data): Likewise.
3186 * rust-lang.c (rust_language_data): Likewise.
3187 * value.h (default_read_var_value): Delete declaration.
3188
5bd40f2a
AB
31892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3190
3191 * ada-lang.c (ada_print_array_index): Delete function, move
3192 implementation to...
3193 (ada_language::print_array_index): ...here.
3194 (ada_language_data): Delete la_print_array_index initializer.
3195 * c-lang.c (c_language_data): Likewise.
3196 (cplus_language_data): Likewise.
3197 (minimal_language_data): Likewise.
3198 * d-lang.c (d_language_data): Likewise.
3199 * f-lang.c (f_language_data): Likewise.
3200 * go-lang.c (go_language_data): Likewise.
3201 * language.c (default_print_array_index): Delete function, move
3202 implementation to...
3203 (language_defn::print_array_index): ...here.
3204 (unknown_language_data): Delete la_print_array_index initializer.
3205 (auto_language_data): Likewise.
3206 * language.h (struct language_data): Delete la_print_array_index
3207 field.
3208 (language_defn::print_array_index): New member function.
3209 (LA_PRINT_ARRAY_INDEX): Update.
3210 (default_print_array_index): Delete declaration.
3211 * m2-lang.c (m2_language_data): Delete la_print_array_index
3212 initializer.
3213 * objc-lang.c (objc_language_data): Likewise.
3214 * opencl-lang.c (opencl_language_data): Likewise.
3215 * p-lang.c (pascal_language_data): Likewise.
3216 * rust-lang.c (rust_language_data): Likewise.
3217
0874fd07
AB
32182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3219
3220 * gdb/ada-lang.c (ada_language_defn): Convert to...
3221 (ada_language_data): ...this.
3222 (class ada_language): New class.
3223 (ada_language_defn): New static global.
3224 * gdb/c-lang.c (c_language_defn): Convert to...
3225 (c_language_data): ...this.
3226 (class c_language): New class.
3227 (c_language_defn): New static global.
3228 (cplus_language_defn): Convert to...
3229 (cplus_language_data): ...this.
3230 (class cplus_language): New class.
3231 (cplus_language_defn): New static global.
3232 (asm_language_defn): Convert to...
3233 (asm_language_data): ...this.
3234 (class asm_language): New class.
3235 (asm_language_defn): New static global.
3236 (minimal_language_defn): Convert to...
3237 (minimal_language_data): ...this.
3238 (class minimal_language): New class.
3239 (minimal_language_defn): New static global.
3240 * gdb/d-lang.c (d_language_defn): Convert to...
3241 (d_language_data): ...this.
3242 (class d_language): New class.
3243 (d_language_defn): New static global.
3244 * gdb/f-lang.c (f_language_defn): Convert to...
3245 (f_language_data): ...this.
3246 (class f_language): New class.
3247 (f_language_defn): New static global.
3248 * gdb/go-lang.c (go_language_defn): Convert to...
3249 (go_language_data): ...this.
3250 (class go_language): New class.
3251 (go_language_defn): New static global.
3252 * gdb/language.c (unknown_language_defn): Remove declaration.
3253 (current_language): Initialize to nullptr, real initialization is
3254 moved to _initialize_language.
3255 (languages): Delete global.
3256 (language_defn::languages): Define.
3257 (set_language_command): Use language_defn::languages.
3258 (set_language): Likewise.
3259 (range_error): Likewise.
3260 (language_enum): Likewise.
3261 (language_def): Likewise.
3262 (add_set_language_command): Use language_def::languages for the
3263 language list, and language_def to lookup language pointers.
3264 (skip_language_trampoline): Use language_defn::languages.
3265 (unknown_language_defn): Convert to...
3266 (unknown_language_data): ...this.
3267 (class unknown_language): New class.
3268 (unknown_language_defn): New static global.
3269 (auto_language_defn): Convert to...
3270 (auto_language_data): ...this.
3271 (class auto_language): New class.
3272 (auto_language_defn): New static global.
3273 (language_gdbarch_post_init): Use language_defn::languages.
3274 (_initialize_language): Initialize current_language.
3275 * gdb/language.h (struct language_defn): Rename to...
3276 (struct language_data): ...this.
3277 (struct language_defn): New.
3278 (auto_language_defn): Delete.
3279 (unknown_language_defn): Delete.
3280 (minimal_language_defn): Delete.
3281 (ada_language_defn): Delete.
3282 (asm_language_defn): Delete.
3283 (c_language_defn): Delete.
3284 (cplus_language_defn): Delete.
3285 (d_language_defn): Delete.
3286 (f_language_defn): Delete.
3287 (go_language_defn): Delete.
3288 (m2_language_defn): Delete.
3289 (objc_language_defn): Delete.
3290 (opencl_language_defn): Delete.
3291 (pascal_language_defn): Delete.
3292 (rust_language_defn): Delete.
3293 * gdb/m2-lang.c (m2_language_defn): Convert to...
3294 (m2_language_data): ...this.
3295 (class m2_language): New class.
3296 (m2_language_defn): New static global.
3297 * gdb/objc-lang.c (objc_language_defn): Convert to...
3298 (objc_language_data): ...this.
3299 (class objc_language): New class.
3300 (objc_language_defn): New static global.
3301 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3302 (opencl_language_data): ...this.
3303 (class opencl_language): New class.
3304 (opencl_language_defn): New static global.
3305 * gdb/p-lang.c (pascal_language_defn): Convert to...
3306 (pascal_language_data): ...this.
3307 (class pascal_language): New class.
3308 (pascal_language_defn): New static global.
3309 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3310 language pointer, update comment format.
3311 * gdb/rust-lang.c (rust_language_defn): Convert to...
3312 (rust_language_data): ...this.
3313 (class rust_language): New class.
3314 (rust_language_defn): New static global.
3315
1313c56e
AB
33162020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3317
3318 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3319 member variable.
3320 <m_stmt_at_address>: New member variable.
3321 (lnp_state_machine::record_line): Don't record some lines, update
3322 tracking of is_stmt at the same address.
3323 (lnp_state_machine::lnp_state_machine): Initialise new member
3324 variables.
3325
b7ed9f3d
ST
33262020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3327
3328 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3329 "-include gnu-nat-mig.h".
3330 * gnu-nat-mig.h: New file.
3331 * gnu-nat.c: Include "gnu-nat-mig.h".
3332 (exc_server, msg_reply_server, notify_server,
3333 process_reply_server): Remove declarations.
3334
14a8ad62
ST
33352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3336
3337 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3338 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3339 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3340 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3341 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3342 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3343 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3344 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3345 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3346 to gnu_nat_target class.
3347 * gnu-nat.c: Likewise.
3348 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3349 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3350 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3351 object.
3352 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3353 instead of `gnu_target'.
3354
0af5e106
ST
33552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3356
3357 * i386-gnu-tdep.c: Include "gdbcore.h"
3358 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3359 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3360 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3361 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3362 i386_gnu_sigcontext_addr): New functions
3363 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3364 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3365 tdep.
3366
078f2fc9
ST
33672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3368
3369 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3370 before fork_inferior call. Avoid calling it if target_is_pushed returns
3371 true.
3372
53dff92c
ST
33732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3374
3375 * gnu-nat.h (gnu_target): New variable declaration.
3376 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3377 gnu_target.
3378 * gnu-nat.c (gnu_target): New variable.
3379 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3380 add_thread_silent, and add_thread calls.
3381 (gnu_nat_target::create_inferior): Pass gnu_target to
3382 add_thread_silent, thread_change_ptid call.
3383 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3384 call.
3385
5a8b8627
ST
33862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3387
3388 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3389 (gnu_nat_target::find_memory_regions): Remove unused
3390 `old_address' variable.
3391
366f550a
ST
33922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3393
3394 * gnu-nat.c: Include "gdbarch.h".
3395
f14871bf
ST
33962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3397
3398 * reply_mig_hack.awk (Error return): Cast function through
3399 void *, to bypass compiler function call check.
3400
c6887cfb
ST
34012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3402
3403 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3404 $(srcdir)/reply_mig_hack.awk.
3405
6930bffe
ST
34062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3407
3408 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3409
112c22ed
JG
34102020-05-30 Jonny Grant <jg@jguk.org>
3411
3412 * configure.ac (ACX_BUGURL): change bug URL to https.
3413
f68f85b5
PA
34142020-05-30 Pedro Alves <palves@redhat.com>
3415
3416 * cp-support.c (replace_typedefs_template): New.
3417 (replace_typedefs_qualified_name): Handle
3418 DEMANGLE_COMPONENT_TEMPLATE.
3419
976ca316
SM
34202020-05-29 Simon Marchi <simon.marchi@efficios.com>
3421
3422 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3423 dwarf2/index-cache.h, dwarf2/index-write.c,
3424 dwarf2/index-write.h, dwarf2/line-header.c,
3425 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3426 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3427 variables and fields from `dwarf2_per_objfile` to just
3428 `per_objfile` throughout.
3429
989ade05
SM
34302020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3431
3432 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3433 <push_dwarf_reg_entry_value>: Add comment.
3434
c47bae85
KB
34352020-05-28 Kevin Buettner <kevinb@redhat.com>
3436 Keith Seitz <keiths@redhat.com>
3437
3438 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3439 instead of PyEval_ReleaseLock.
3440 (class gdbpy_gil): Move to earlier in file.
3441 (finalize_python): Set gdb_python_initialized.
3442 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3443 when not initialized.
3444
44486dcf
SM
34452020-05-28 Simon Marchi <simon.marchi@efficios.com>
3446
3447 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3448 <push_dwarf_reg_entry_value>: Remove assert. Override
3449 per_objfile with caller_per_objfile.
3450
f030440d
TV
34512020-05-28 Tom de Vries <tdevries@suse.de>
3452
3453 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3454 PR gold/15646 workaround to symbol kind "type".
3455
f0fbb768
TT
34562020-05-27 Tom Tromey <tromey@adacore.com>
3457
3458 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3459
af0b2a3e
TT
34602020-05-27 Tom Tromey <tromey@adacore.com>
3461
3462 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3463 Use htab_find_with_hash.
3464 <add_abbrev>: Remove "abbrev_number" parameter.
3465 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3466 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3467 (hash_abbrev): Add comment.
3468 (abbrev_table::lookup_abbrev): Move to header file.
3469 (abbrev_table::read): Update.
3470
7d00ffec
TT
34712020-05-27 Tom Tromey <tromey@adacore.com>
3472
3473 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3474 method.
3475 <canonical_name>: New member.
3476 <raw_name>: Rename from "name".
3477 (partial_die_info): Initialize canonical_name.
3478 (scan_partial_symbols): Check raw_name.
3479 (partial_die_parent_scope, partial_die_full_name)
3480 (add_partial_symbol, add_partial_subprogram)
3481 (add_partial_enumeration, load_partial_dies): Use "name" method.
3482 (partial_die_info::name): New method.
3483 (partial_die_info::read, guess_partial_die_structure_name)
3484 (partial_die_info::fixup): Update.
3485
697bba18
TT
34862020-05-27 Tom Tromey <tromey@adacore.com>
3487
3488 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3489 <get_ref_die_offset>: Inline.
3490 <get_ref_die_offset_complaint>: New method.
3491 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3492 (attribute::get_ref_die_offset_complaint): Rename from
3493 get_ref_die_offset. Just issue complaint.
3494
c17ace43
HD
34952020-05-27 Hannes Domani <ssbssa@yahoo.de>
3496
3497 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3498
96445f0b
HD
34992020-05-27 Hannes Domani <ssbssa@yahoo.de>
3500
3501 * exec.c (exec_file_attach): Use errno value of first openp failure.
3502
ac637ec3
HD
35032020-05-27 Hannes Domani <ssbssa@yahoo.de>
3504
3505 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3506 Don't close thread handle.
3507
17ee85fc
TT
35082020-05-27 Tom Tromey <tom@tromey.com>
3509 Simon Marchi <simon.marchi@efficios.com>
3510
3511 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3512 shared_ptr.
3513 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3514 member.
3515 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3516 dwarf2_per_bfd_objfile_data_key>: New globals.
3517 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3518 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3519 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3520 shared.
3521 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3522 short-circuit when sharing.
3523 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3524 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3525
39b16f87
SM
35262020-05-27 Simon Marchi <simon.marchi@efficios.com>
3527
3528 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3529 to...
3530 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3531 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3532
fcf23d5b
SM
35332020-05-27 Simon Marchi <simon.marchi@efficios.com>
3534
3535 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3536 build_name_components, find_name_components_bounds>:
3537 Add per_objfile parameter.
3538 (struct mapped_index) <symbol_name_at>: Likewise.
3539 (struct mapped_debug_names): Remove constructor.
3540 <dwarf2_per_objfile>: Remove field.
3541 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3542 (mapped_index_base::find_name_components_bounds,
3543 mapped_index_base::build_name_components,
3544 dw2_expand_symtabs_matching_symbol): Likewise.
3545 (class mock_mapped_index) <symbol_name_at>: Likewise.
3546 (check_match): Likewise.
3547 (check_find_bounds_finds): Likewise.
3548 (test_mapped_index_find_name_component_bounds): Update.
3549 (CHECK_MATCH): Update.
3550 (dw2_expand_symtabs_matching): Update.
3551 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3552 per_objfile parameter.
3553 <find_vec_in_debug_names>: Likewise.
3554 <m_per_objfile>: New field.
3555 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3556 parameter.
3557 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3558 (dw2_debug_names_iterator::next): Update.
3559 (dw2_debug_names_lookup_symbol): Update.
3560 (dw2_debug_names_expand_symtabs_for_function): Update.
3561 (dw2_debug_names_map_matching_symbols): Update.
3562 (dw2_debug_names_expand_symtabs_matching): Update.
3563 (dwarf2_read_debug_names): Update.
3564
7188ed02
SM
35652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3566
3567 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3568 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3569 move to dwarf2_per_objfile.
3570 <read_in_chain>: Remove.
3571 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3572 remove_all_cus, age_comp_units>: New methods.
3573 <m_dwarf2_cus>: New member.
3574 (struct dwarf2_per_cu_data) <cu>: Remove.
3575 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3576 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3577 moved to methods of dwarf2_per_objfile.
3578 (dwarf2_clear_marks): Remove.
3579 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3580 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3581 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3582 (dwarf2_per_objfile::remove_all_cus): New.
3583 (class free_cached_comp_units) <~free_cached_comp_units>:
3584 Update.
3585 (load_cu): Update.
3586 (dw2_do_instantiate_symtab): Adjust.
3587 (fill_in_sig_entry_from_dwo_entry): Adjust.
3588 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3589 (cutu_reader::cutu_reader): Likewise.
3590 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3591 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3592 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3593 and dwarf2_per_objfile::age_comp_units.
3594 (load_partial_comp_unit): Update.
3595 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3596 (process_queue): Likewise.
3597 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3598 backlink.
3599 (dwarf2_read_addr_index): Likewise.
3600 (follow_die_offset): Likewise.
3601 (dwarf2_fetch_die_loc_sect_off): Likewise.
3602 (dwarf2_fetch_constant_bytes): Likewise.
3603 (dwarf2_fetch_die_type_sect_off): Likewise.
3604 (follow_die_sig_1): Likewise.
3605 (load_full_type_unit): Likewise.
3606 (read_signatured_type): Likewise.
3607 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3608 (dwarf2_cu::~dwarf2_cu): Remove.
3609 (dwarf2_per_objfile::get_cu): New.
3610 (dwarf2_per_objfile::set_cu): New.
3611 (age_cached_comp_units): Rename to...
3612 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3613 to std::unordered_map.
3614 (free_one_cached_comp_unit): Rename to...
3615 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3616 to std::unordered_map.
3617 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3618 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3619 a dwarf2_per_objfile in data.
3620 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3621 (dwarf2_clear_marks): Remove.
3622
2e671100
SM
36232020-05-27 Simon Marchi <simon.marchi@efficios.com>
3624
3625 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3626 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3627 (init_tu_and_read_dwo_dies): Likewise.
3628 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3629 (cutu_reader::cutu_reader): Likewise.
3630 (load_partial_comp_unit): Likewise.
3631 (process_psymtab_comp_unit): Update.
3632 (build_type_psymtabs_1): Update.
3633 (process_skeletonless_type_unit): Update.
3634 (load_full_comp_unit): Update.
3635 (find_partial_die): Update.
3636 (dwarf2_read_addr_index): Update.
3637 (read_signatured_type): Update.
3638
2e6a9f79
SM
36392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3640
3641 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3642 m_header_read_in>: New fields.
3643 <get_header>: New method.
3644 * dwarf2/read.c (per_cu_header_read_in): Remove.
3645 (dwarf2_per_cu_data::get_header): New.
3646 (dwarf2_per_cu_data::addr_size): Update.
3647 (dwarf2_per_cu_data::offset_size): Update.
3648 (dwarf2_per_cu_data::ref_addr_size): Update.
3649
1b555f17
SM
36502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3651
3652 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3653 (dw2_do_instantiate_symtab): Update.
3654 (queue_and_load_all_dwo_tus): Change parameter from
3655 dwarf2_per_cu_data to dwarf2_cu.
3656 (dwarf2_fetch_die_loc_sect_off): Update.
3657 (dwarf2_fetch_constant_bytes): Update.
3658 (dwarf2_fetch_die_type_sect_off): Update.
3659
8fc0b21d
SM
36602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3661
3662 * dwarf2/read.c (process_full_comp_unit,
3663 process_full_type_unit): Remove per_cu, per_objfile paramters.
3664 Add dwarf2_cu parameter.
3665 (process_queue): Update.
3666
168c9250
SM
36672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3668
3669 * dwarf2/read.c (create_cu_from_index_list): Replace
3670 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3671 (create_cus_from_index_list): Likewise.
3672 (create_cus_from_index): Likewise.
3673 (create_signatured_type_table_from_index): Likewise.
3674 (create_cus_from_debug_names_list): Likewise.
3675 (create_cus_from_debug_names): Likewise.
3676 (dwarf2_read_gdb_index): Update.
3677 (dwarf2_read_debug_names): Update.
3678
e286671b
TT
36792020-05-27 Tom Tromey <tom@tromey.com>
3680 Simon Marchi <simon.marchi@efficios.com>
3681
3682 * dwarf2/read.h (struct dwarf2_per_objfile)
3683 <get_type_for_signatured_type, set_type_for_signatured_type>:
3684 New methods.
3685 <m_type_map>: New member.
3686 (struct signatured_type) <type>: Remove.
3687 * dwarf2/read.c
3688 (dwarf2_per_objfile::get_type_for_signatured_type,
3689 dwarf2_per_objfile::set_type_for_signatured_type): New.
3690 (get_signatured_type): Use new methods.
3691
8adb8487
TT
36922020-05-27 Tom Tromey <tom@tromey.com>
3693 Simon Marchi <simon.marchi@efficios.com>
3694
3695 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3696 (struct dwarf2_per_objfile) <type_units>: New member.
3697 <get_type_unit_group_unshareable>: New method.
3698 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3699 num_symtabs, symtabs>: Remove; move to
3700 type_unit_group_unshareable.
3701 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3702 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3703 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3704
127bbf4b
SM
37052020-05-27 Simon Marchi <simon.marchi@efficios.com>
3706
3707 * dwarf2/read.h (struct dwarf2_per_cu_data):
3708 <dwarf2_per_objfile>: Remove.
3709 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3710 dwarf2_per_objfile.
3711 (create_signatured_type_table_from_index): Likewise.
3712 (create_signatured_type_table_from_debug_names): Likewise.
3713 (create_debug_type_hash_table): Likewise.
3714 (fill_in_sig_entry_from_dwo_entry): Likewise.
3715 (create_type_unit_group): Likewise.
3716 (read_comp_units_from_section): Likewise.
3717 (create_cus_hash_table): Likewise.
3718
f6e649dd
SM
37192020-05-27 Simon Marchi <simon.marchi@efficios.com>
3720
3721 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3722 dwarf2_per_cu_data::dwarf2_per_objfile.
3723 (compute_compunit_symtab_includes): Likewise.
3724 (dwarf2_cu::start_symtab): Likewise.
3725
aa66c379
SM
37262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3727
3728 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3729 parameter.
3730 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3731 (read_namespace_alias): Update.
3732 (lookup_die_type): Update.
3733 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3734 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3735 Update.
3736 (disassemble_dwarf_expression): Update.
3737
120ce1b5
SM
37382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3739
3740 * dwarf2/read.h (struct dwarf2_queue_item): Add
3741 dwarf2_per_objfile parameter, assign new parameter.
3742 <per_objfile>: New field.
3743 * dwarf2/read.c (free_one_cached_comp_unit): Add
3744 dwarf2_per_objfile parameter.
3745 (queue_comp_unit): Likewise.
3746 (dw2_do_instantiate_symtab): Update.
3747 (process_psymtab_comp_unit): Update.
3748 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3749 (process_imported_unit_die): Update.
3750 (queue_and_load_dwo_tu): Update.
3751 (follow_die_offset): Update.
3752 (follow_die_sig_1): Update.
3753
9f47c707
SM
37542020-05-27 Simon Marchi <simon.marchi@efficios.com>
3755
3756 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3757 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3758 (read_call_site_scope): Assign per_objfile.
3759 (dwarf2_per_cu_data::objfile): Remove.
3760 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3761 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3762 dwarf2_per_objfile parameter.
3763 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3764 dwarf2_per_objfile parameter.
3765 (dwarf_expr_reg_to_entry_parameter): Add output
3766 dwarf2_per_objfile parameter.
3767 (locexpr_get_frame_base): Update.
3768 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3769 <push_dwarf_reg_entry_value>: Update.
3770 <call_site_to_target_addr>: Update.
3771 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3772 parameter.
3773 (value_of_dwarf_reg_entry): Update.
3774 (rw_pieced_value): Update.
3775 (indirect_synthetic_pointer): Update.
3776 (dwarf2_evaluate_property): Update.
3777 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3778 parameter.
3779 (locexpr_read_variable): Update.
3780 (locexpr_get_symbol_read_needs): Update.
3781 (loclist_read_variable): Update.
3782
14095eb3
SM
37832020-05-27 Simon Marchi <simon.marchi@efficios.com>
3784
3785 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3786 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3787 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3788 parameter.
3789 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3790 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3791 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3792 parameter.
3793 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3794 sect_variable_value): Add dwarf2_per_objfile parameter.
3795 (class dwarf_evaluate_loc_desc) <dwarf_call,
3796 dwarf_variable_value>: Update.
3797 (fetch_const_value_from_synthetic_pointer): Add
3798 dwarf2_per_objfile parameter.
3799 (fetch_const_value_from_synthetic_pointer): Update.
3800 (coerced_pieced_ref): Update.
3801 (class symbol_needs_eval_context) <dwarf_call,
3802 dwarf_variable_value>: Update.
3803 (dwarf2_compile_expr_to_ax): Update.
3804
3c3cd3d4
SM
38052020-05-27 Simon Marchi <simon.marchi@efficios.com>
3806
3807 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3808 parameter.
3809 (dwarf2_evaluate_loc_desc_full): Update.
3810
82ca3f51
SM
38112020-05-27 Simon Marchi <simon.marchi@efficios.com>
3812
3813 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3814 parameter.
3815 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3816 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3817 dwarf2_per_objfile parameter.
3818 (decode_debug_loc_dwo_addresses): Likewise.
3819 (dwarf2_find_location_expression): Update.
3820 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3821 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3822 parameter.
3823 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3824 parameter.
3825 (locexpr_describe_location_1): Likewise.
3826 (locexpr_describe_location): Update.
3827
4b167ea1
SM
38282020-05-27 Simon Marchi <simon.marchi@efficios.com>
3829
3830 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3831 Remove.
3832 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3833 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3834 (dwarf2_compile_property_to_c): Update.
3835 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3836 use text offset from objfile.
3837 (locexpr_tracepoint_var_ref): Update.
3838 (locexpr_generate_c_location): Update.
3839 (loclist_describe_location): Update.
3840 (loclist_tracepoint_var_ref): Update.
3841 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3842 dwarf2_per_objfile parameter.
3843 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3844 use text offset from objfile.
3845 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3846
89b07335
SM
38472020-05-27 Simon Marchi <simon.marchi@efficios.com>
3848
3849 * dwarf2/expr.h (struct dwarf_expr_context)
3850 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3851 <offset>: Remove.
3852 <per_objfile>: New member.
3853 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3854 dwarf2_per_objfile parameter. Don't set offset, set
3855 per_objfile.
3856 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3857 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3858 a dwarf2_per_objfile object instead of an offset.
3859 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3860 constructor.
3861 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3862 to dwarf2_expr_executor constructor. Don't set offset.
3863 (dwarf2_fetch_cfa_info): Update.
3864 (struct dwarf2_frame_cache) <text_offset>: Remove.
3865 <per_objfile>: New field.
3866 (dwarf2_frame_cache): Update.
3867 (dwarf2_frame_prev_register): Update.
3868 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3869 <dwarf_evaluate_loc_desc>: Add constructor.
3870 (dwarf2_evaluate_loc_desc_full): Update.
3871 (dwarf2_locexpr_baton_eval): Update.
3872 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3873 Add constructor.
3874 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3875
293e7e51
SM
38762020-05-27 Simon Marchi <simon.marchi@efficios.com>
3877
3878 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3879 addr_sized_int_type>: Move to dwarf2_cu.
3880 <int_type>: Move to dwarf2_per_objfile.
3881 (struct dwarf2_per_objfile) <int_type>: Move here.
3882 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3883 addr_sized_int_type>: Move here.
3884 (read_func_scope): Update.
3885 (read_array_type): Update.
3886 (read_tag_string_type): Update.
3887 (attr_to_dynamic_prop): Update.
3888 (dwarf2_per_cu_data::int_type): Rename to...
3889 (dwarf2_per_objfile::int_type): ... this.
3890 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3891 (dwarf2_cu::addr_sized_int_type): ... this.
3892 (read_subrange_type): Update.
3893 (dwarf2_per_cu_data::addr_type): Rename to...
3894 (dwarf2_cu::addr_type): ... this.
3895 (set_die_type): Update.
3896
64874a40
SM
38972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3898
3899 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3900 data through per_cu->cu.
3901
4ab09049
SM
39022020-05-27 Simon Marchi <simon.marchi@efficios.com>
3903
3904 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3905 dwarf2_per_cu_data parameter fo dwarf2_cu.
3906 (lookup_dwo_type_unit): Likewise.
3907 (read_cutu_die_from_dwo): Likewise.
3908 (lookup_dwo_unit): Likewise.
3909 (open_and_init_dwo_file): Likewise.
3910 (lookup_dwo_cutu): Likewise.
3911 (lookup_dwo_comp_unit): Likewise.
3912 (lookup_dwo_type_unit): Likewise.
3913 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3914 (cutu_reader::cutu_reader): Update.
3915
47b14e86
SM
39162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3917
3918 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3919 parameter.
3920 (process_full_type_unit): Likewise.
3921 (process_queue): Update.
3922
43182c09
SM
39232020-05-27 Simon Marchi <simon.marchi@efficios.com>
3924
3925 * dwarf2/read.c (recursively_compute_inclusions): Add
3926 dwarf2_per_objfile parameter.
3927 (compute_compunit_symtab_includes): Likewise.
3928 (process_cu_includes): Update.
3929
7aa104c4
SM
39302020-05-27 Simon Marchi <simon.marchi@efficios.com>
3931
3932 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3933 parameter.
3934 (create_type_unit_group): Update.
3935 (process_psymtab_comp_unit_reader): Update.
3936 (build_type_psymtabs_reader): Update.
3937
e3beb21d
SM
39382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3941 object through m_this_cu->cu.
3942
d460f660
SM
39432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3944
3945 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3946 the info parameter.
3947 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3948
ab432490
SM
39492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3950
3951 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3952 per_objfile parameter.
3953 (load_full_type_unit): Add per_objfile parameter.
3954 (read_signatured_type): Likewise.
3955 (load_full_comp_unit): Likewise.
3956 (load_cu): Likewise.
3957 (dw2_do_instantiate_symtab): Likewise.
3958 (dw2_get_file_names): Likewise.
3959 (dw2_map_symtabs_matching_filename): Update.
3960 (dw_expand_symtabs_matching_file_matcher): Update.
3961 (dw2_map_symbol_filenames): Update.
3962 (process_psymtab_comp_unit): Add per_objfile parameter.
3963 (build_type_psymtabs_1): Update.
3964 (process_skeletonless_type_unit): Update.
3965 (dwarf2_build_psymtabs_hard): Update.
3966 (load_partial_comp_unit): Add per_objfile parameter.
3967 (scan_partial_symbols): Update.
3968 (load_full_comp_unit): Add per_objfile parameter.
3969 (process_imported_unit_die): Update.
3970 (create_cus_hash_table): Update.
3971 (find_partial_die): Update.
3972 (dwarf2_read_addr_index): Update.
3973 (follow_die_offset): Update.
3974 (dwarf2_fetch_die_loc_sect_off): Update.
3975 (dwarf2_fetch_constant_bytes): Update.
3976 (dwarf2_fetch_die_type_sect_off): Update.
3977 (follow_die_sig_1): Update.
3978 (load_full_type_unit): Add per_objfile parameter.
3979 (read_signatured_type): Likewise.
3980
313bad1b
SM
39812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3982
3983 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
3984 of objfile_name.
3985
c3699833
SM
39862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3987
3988 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
3989 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3990 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
3991 field.
3992 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
3993 (create_cus_from_index): Update.
3994 (dwarf2_read_gdb_index): Update.
3995 (create_cus_from_debug_names): Update.
3996 (dwarf2_read_debug_names): Update.
3997 (get_abbrev_section_for_cu): Update.
3998 (create_all_comp_units): Update.
3999 (read_attribute_value): Update.
4000 (get_debug_line_section): Update.
4001 * dwarf2/index-cache.c (index_cache::store): Update.
4002 * dwarf2/index-write.c (save_gdb_index_command): Update.
4003 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4004
1859c670
SM
40052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4006
4007 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4008 member.
4009 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4010 dwarf2_per_cu_data::per_bfd.
4011 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4012 (create_type_unit_group): Likewise.
4013 (queue_comp_unit): Remove reference to
4014 per_cu->dwarf2_per_objfile.
4015 (maybe_queue_comp_unit): Likewise.
4016 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4017 (create_cus_hash_table): Assign new field.
4018
5e22e966
SM
40192020-05-27 Simon Marchi <simon.marchi@efficios.com>
4020
4021 * dwarf2/read.c: Replace
4022 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4023 dwarf2_cu->per_objfile throughout.
4024
97a1449a
SM
40252020-05-27 Simon Marchi <simon.marchi@efficios.com>
4026
4027 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4028 parameter, don't use per_cu->dwarf2_per_objfile.
4029 (dw2_instantiate_symtab): Likewise.
4030 (dw2_find_last_source_symtab): Update.
4031 (dw2_map_expand_apply): Update.
4032 (dw2_lookup_symbol): Update.
4033 (dw2_expand_symtabs_for_function): Update.
4034 (dw2_expand_all_symtabs): Update.
4035 (dw2_expand_symtabs_with_fullname): Update.
4036 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4037 don't use per_cu->dwarf2_per_objfile.
4038 (dw2_expand_marked_cus): Update.
4039 (dw2_find_pc_sect_compunit_symtab): Update.
4040 (dw2_debug_names_lookup_symbol): Update.
4041 (dw2_debug_names_expand_symtabs_for_function): Update.
4042 (dw2_debug_names_map_matching_symbols): Update.
4043 (dwarf2_psymtab::expand_psymtab): Update.
4044
9e021579
SM
40452020-05-27 Simon Marchi <simon.marchi@efficios.com>
4046
4047 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4048 <per_objfile>: New member.
4049 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4050 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4051 call to dwarf2_cu.
4052 (cutu_reader::cutu_reader): Update.
4053 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4054
ae090bdb
SM
40552020-05-27 Simon Marchi <simon.marchi@efficios.com>
4056
4057 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4058 struct dwarf2_per_objfile.
4059 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4060 dwarf2_per_bfd.
4061 * dwarf2/read.c (set_die_type): Update.
4062 (get_die_type_at_offset): Update.
4063
af758d11
SM
40642020-05-27 Tom Tromey <tom@tromey.com>
4065 Simon Marchi <simon.marchi@efficios.com>
4066
4067 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4068 method.
4069 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4070 get_symtab, set_symtab>: New methods.
4071 <m_symtabs>: New field.
4072 (struct dwarf2_psymtab): Derive from partial_symtab.
4073 <readin_p, get_compunit_symtab>: Declare methods.
4074 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4075 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4076 New methods.
4077 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4078 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4079 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4080 (dw2_symtab_iter_next, dw2_print_stats)
4081 (dw2_expand_symtabs_with_fullname)
4082 (dw2_expand_symtabs_matching_one)
4083 (dw_expand_symtabs_matching_file_matcher)
4084 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4085 (dw2_debug_names_iterator::next)
4086 (dw2_debug_names_map_matching_symbols)
4087 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4088 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4089 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4090 New methods.
4091 (get_compunit_symtab, process_full_comp_unit)
4092 (process_full_type_unit): Update.
4093 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4094
5989a64e
SM
40952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4096
4097 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4098 then introduce a new dwarf2_per_objfile type.
4099 <read_line_string>: Move to the new dwarf2_per_objfile type.
4100 <objfile>: Likewise.
4101 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4102 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4103 dwarf2_per_objfile->per_bfd.
4104 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4105 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4106 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4107 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4108 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4109 (dwarf2_per_objfile::locate_sections): Rename to...
4110 (dwarf2_per_bfd::locate_sections): ... this.
4111 (dwarf2_per_objfile::get_cutu): Rename to...
4112 (dwarf2_per_bfd::get_cutu): ... this.
4113 (dwarf2_per_objfile::get_cu): Rename to...
4114 (dwarf2_per_bfd::get_cu): ... this.
4115 (dwarf2_per_objfile::get_tu): Rename to...
4116 (dwarf2_per_bfd::get_tu): ... this.
4117 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4118 (dwarf2_per_bfd::allocate_per_cu): ... this.
4119 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4120 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4121 (get_gdb_index_contents_ftype): Change parameter from
4122 dwarf2_per_objfile to dwarf2_per_bfd.
4123 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4124 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4125
a50264ba
TT
41262020-05-27 Tom Tromey <tom@tromey.com>
4127 Simon Marchi <simon.marchi@efficios.com>
4128
4129 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4130 (allocate_piece_closure): Set "per_objfile" member.
4131 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4132 (locexpr_describe_location, loclist_describe_location): Use new
4133 member.
4134 * dwarf2/read.c (read_call_site_scope)
4135 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4136 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4137 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4138 handle_data_member_location): Set per_objfile member.
4139 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4140 member.
4141 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4142
d3473f0c
TT
41432020-05-27 Tom Tromey <tom@tromey.com>
4144
4145 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4146 allocate_signatured_type>: Declare new methods.
4147 <m_num_psymtabs>: New member.
4148 (struct dwarf2_per_cu_data) <index>: New member.
4149 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4150 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4151 (create_cu_from_index_list): Use allocate_per_cu.
4152 (create_signatured_type_table_from_index)
4153 (create_signatured_type_table_from_debug_names)
4154 (create_debug_type_hash_table, add_type_unit)
4155 (read_comp_units_from_section): Use allocate_signatured_type.
4156
5717c425
TT
41572020-05-27 Tom Tromey <tom@tromey.com>
4158
4159 * psymtab.c (partial_map_expand_apply)
4160 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4161 (psym_lookup_global_symbol_language)
4162 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4163 (psym_print_stats, psym_expand_symtabs_for_function)
4164 (psym_map_symbol_filenames, psym_map_matching_symbols)
4165 (psym_expand_symtabs_matching)
4166 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4167 (maintenance_check_psymtabs): Update.
4168 * psympriv.h (struct partial_symtab) <readin_p,
4169 get_compunit_symtab>: Add objfile parameter.
4170 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4171 Likewise.
4172 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4173 get_compunit_symtab>: Likewise.
4174 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4175
45940949
TT
41762020-05-27 Tom Tromey <tom@tromey.com>
4177
4178 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4179 member.
4180 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4181 (create_cu_from_index_list)
4182 (create_signatured_type_table_from_index)
4183 (create_signatured_type_table_from_debug_names)
4184 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4185 (dwarf2_create_include_psymtab)
4186 (create_debug_type_hash_table, add_type_unit)
4187 (create_type_unit_group, read_comp_units_from_section)
4188 (dwarf2_compute_name, create_cus_hash_table)
4189 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4190 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4191 obstack.
4192 (dw2_get_real_path): Likewise. Change argument to
4193 dwarf2_per_objfile.
4194
f8c6d152
LM
41952020-05-27 Luis Machado <luis.machado@linaro.org>
4196
4197 PR tdep/26000
4198 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4199 for ldrd (immediate).
4200
e98d2e6d
PW
42012020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4202
4203 * command.h: Add comment giving the name of class_tui.
4204 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4205 create the fake command for the help for class_tui.
4206
53a47a3e
TT
42072020-05-26 Tom Tromey <tromey@adacore.com>
4208
4209 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4210 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4211 (val_atr): New function.
4212 (value_val_atr): Use it.
4213 * ada-valprint.c (print_optional_low_bound): Change low bound
4214 handling for enums.
4215 (val_print_packed_array_elements): Don't call discrete_position.
4216 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4217 discrete_position for enum types.
4218 * language.c (default_print_array_index): Change type.
4219 * language.h (struct language_defn) <la_print_array_index>: Add
4220 index_type parameter, change type of index_value.
4221 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4222 (default_print_array_index): Update.
4223 * valprint.c (maybe_print_array_index): Don't call
4224 value_from_longest. Update.
4225 (value_print_array_elements): Don't call discrete_position.
4226
0bc2354b
TT
42272020-05-26 Tom Tromey <tromey@adacore.com>
4228
4229 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4230 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4231
1218a4bf
CDA
42322020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4233
4234 PR gdb/13519
4235 * avr-tdep.c (avr_integer_to_address): Return data or code
4236 address accordingly to the second 'type' argument of the
4237 function.
4238
92651b1d
MW
42392020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4240
4241 * infcmd.c, inferior.h: (construct_inferior_arguments):
4242 Moved function from here to gdbsupport/common-inferior.{h,cc}
4243
0a4f5f8c
TT
42442020-05-23 Tom Tromey <tom@tromey.com>
4245
4246 Revert commit eca1f90c:
4247 * NEWS: Remove entry for completion styling.
4248 * completer.c (_rl_completion_prefix_display_length): Move
4249 declaration later.
4250 (gdb_fnprint): Revert.
4251 (gdb_display_match_list_1): Likewise.
4252 * cli/cli-style.c (completion_prefix_style)
4253 (completion_difference_style, completion_suffix_style): Remove.
4254 (_initialize_cli_style): Revert.
4255 * cli/cli-style.h (completion_prefix_style)
4256 (completion_difference_style, completion_suffix_style): Don't
4257 declare.
4258
e08bd6c5
PA
42592020-05-24 Pedro Alves <palves@redhat.com>
4260
4261 * symtab.c (completion_list_add_name): Return boolean indication
4262 of whether the symbol matched.
4263 (completion_list_add_symbol): Don't try to remove C++ aliases if
4264 the symbol didn't match in the first place.
4265 * symtab.h (completion_list_add_name): Return bool.
4266
ceacbf6e
SM
42672020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4268
4269 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4270 type::field.
4271
26f16254
JB
42722020-05-23 Joel Brobecker <brobecker@adacore.com>
4273
4274 GDB 9.2 released.
4275
eca1f90c
TT
42762020-05-23 Tom Tromey <tom@tromey.com>
4277
4278 * NEWS: Add entry for completion styling.
4279 * completer.c (_rl_completion_prefix_display_length): Move
4280 declaration earlier.
4281 (gdb_fnprint): Use completion_style.
4282 (gdb_display_match_list_1): Likewise.
4283 * cli/cli-style.c (completion_prefix_style)
4284 (completion_difference_style, completion_suffix_style): New
4285 globals.
4286 (_initialize_cli_style): Register new globals.
4287 * cli/cli-style.h (completion_prefix_style)
4288 (completion_difference_style, completion_suffix_style): Declare.
4289
51e2cfa2
PA
42902020-05-23 Pedro Alves <palves@redhat.com>
4291
4292 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4293 (parse_escape): Use ISDIGIT instead of isdigit.
4294 (puts_debug): Use gdb_isprint instead of isprint.
4295 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4296 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4297 ISSPACE instead of isspace.
4298 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4299 instead of isspace.
4300 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4301 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4302 instead of isxdigit and ISDIGIT instead of isdigit.
4303
80fc5e77
SM
43042020-05-22 Simon Marchi <simon.marchi@efficios.com>
4305
4306 * gdbtypes.h (struct type) <field>: New method.
4307 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4308 or type::field.
4309
3cabb6b0
SM
43102020-05-22 Simon Marchi <simon.marchi@efficios.com>
4311
4312 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4313 (TYPE_FIELDS): Use type::fields. Change all call sites that
4314 modify the propery to use type::set_fields instead.
4315
1f704f76
SM
43162020-05-22 Simon Marchi <simon.marchi@efficios.com>
4317
4318 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4319 type::num_fields instead.
4320
5e33d5f4
SM
43212020-05-22 Simon Marchi <simon.marchi@efficios.com>
4322
4323 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4324 methods.
4325 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4326 that modify the number of fields to use type::set_num_fields
4327 instead.
4328
9392ebb3
TT
43292020-05-22 Tom Tromey <tromey@adacore.com>
4330
4331 * compile/compile-object-load.h (munmap_list_free): Don't
4332 declare.
4333
7c13f4e8
AB
43342020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4335
4336 * annotate.c (annotate_source_line): Update return type, add call
4337 to update current symtab and line.
4338 * annotate.h (annotate_source_line): Update return type, and
4339 extend header comment.
4340 * source.c (info_line_command): Check annotation_level before
4341 calling annotate_source_line.
4342 * stack.c (print_frame_info): If calling annotate_source_line
4343 returns true, then don't print any other source line information.
4344
aa370940
SM
43452020-05-21 Simon Marchi <simon.marchi@efficios.com>
4346
4347 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4348
84d53fa9
SM
43492020-05-21 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * coffread.c (patch_type): Remove NULL check before xfree.
4352 * corefile.c (set_gnutarget): Likewise.
4353 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4354 * exec.c (build_section_table): Likewise.
4355 * remote.c (remote_target::pass_signals): Likewise.
4356 * utils.c (n_spaces): Likewise.
4357 * cli/cli-script.c (document_command): Likewise.
4358 * i386-windows-tdep.c (core_process_module_section): Likewise.
4359 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4360
9d428aae
SM
43612020-05-20 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * symfile.c (reread_symbols): Clear objfile's section_offsets
4364 vector and section indices, re-compute them by calling
4365 sym_offsets.
4366
250106a7
TT
43672020-05-20 Tom Tromey <tromey@adacore.com>
4368
4369 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4370 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4371
9a0bacfb
TV
43722020-05-20 Tom de Vries <tdevries@suse.de>
4373
4374 PR symtab/25833
4375 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4376
7b958a48
AM
43772020-05-20 Alan Modra <amodra@gmail.com>
4378
4379 PR 25993
4380 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4381 bfd_set_filename.
4382 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4383 passed to bfd_set_filename.
4384 * symfile-mem.c (add_vsyscall_page): Likewise for string
4385 passed to symbol_file_add_from_memory.
4386 (symbol_file_add_from_memory): Make name param a const char* and
4387 don't strdup.
4388
c7e97679
AM
43892020-05-20 Alan Modra <amodra@gmail.com>
4390
4391 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4392 rather than accessing bfd->filename directly.
4393 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4394 and use bfd_section_name.
4395 * dwarf2/frame.c (decode_frame_entry): Likewise.
4396 * exec.c (exec_set_section_address): Likewise.
4397 * solib-aix.c (solib_aix_bfd_open): Likewise.
4398 * stap-probe.c (get_stap_base_address): Likewise.
4399 * symfile.c (reread_symbols): Likewise.
4400
563c591b
TT
44012020-05-19 Tom Tromey <tromey@adacore.com>
4402
4403 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4404
f408d82c
SM
44052020-05-19 Simon Marchi <simon.marchi@efficios.com>
4406
4407 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4408
98c59b52
PA
44092020-05-19 Pedro Alves <palves@redhat.com>
4410
4411 * NEWS (set exec-file-mismatch): Adjust entry.
4412 * exec.c: Include "build-id.h".
4413 (validate_exec_file): Try to match build IDs instead of filenames.
4414 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4415 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4416 and pass down 'warn_if_slow'.
4417 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4418 gdb_bfd_open_closure to pass it down.
4419 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4420
4111f652
PA
44212020-05-19 Pedro Alves <palves@redhat.com>
4422
4423 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4424 * target.c (target_fileio_open_1): Rename to target_fileio_open
4425 and make extern. Use bool.
4426 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4427 (target_fileio_read_alloc_1): Adjust.
4428 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4429 (target_fileio_open_warn_if_slow): Delete declaration.
4430
ad80db5b
PA
44312020-05-19 Pedro Alves <palves@redhat.com>
4432
4433 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4434 Adjust all callers.
4435
1d6ce4d3
YS
44362020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4437
4438 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4439 whether disp is negative.
4440
9005fbbb
SM
44412020-05-19 Simon Marchi <simon.marchi@efficios.com>
4442
4443 * symfile.h (struct symfile_segment_data)
4444 <~symfile_segment_data>: Remove.
4445 <segment_info>: Change to std::vector.
4446 * symfile.c (default_symfile_segments): Update.
4447 * elfread.c (elf_symfile_segments): Update.
4448
68b888ff
SM
44492020-05-19 Simon Marchi <simon.marchi@efficios.com>
4450
4451 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4452 <segments>: New.
4453 <segment_bases, segment_sizes>: Remove.
4454 * symfile.c (default_symfile_segments): Update.
4455 * elfread.c (elf_symfile_segments): Update.
4456 * remote.c (remote_target::get_offsets): Update.
4457 * solib-target.c (solib_target_relocate_section_addresses):
4458 Update.
4459
62982abd
SM
44602020-05-19 Simon Marchi <simon.marchi@efficios.com>
4461
4462 * symfile.h (struct symfile_segment_data): Initialize fields.
4463 <~symfile_segment_data>: Add.
4464 (symfile_segment_data_up): New.
4465 (struct sym_fns) <sym_segments>: Return a
4466 symfile_segment_data_up.
4467 (default_symfile_segments): Return a symfile_segment_data_up.
4468 (free_symfile_segment_data): Remove.
4469 (get_symfile_segment_data): Return a symfile_segment_data_up.
4470 * symfile.c (default_symfile_segments): Likewise.
4471 (get_symfile_segment_data): Likewise.
4472 (free_symfile_segment_data): Remove.
4473 (symfile_find_segment_sections): Update.
4474 * elfread.c (elf_symfile_segments): Return a
4475 symfile_segment_data_up.
4476 * remote.c (remote_target::get_offsets): Update.
4477 * solib-target.c (solib_target_relocate_section_addresses):
4478 Update.
4479 * symfile-debug.c (debug_sym_segments): Return a
4480 symfile_segment_data_up.
4481
7f204339
RO
44822020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4483
e52a0f1b
RO
4484 PR build/25981
4485 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4486 Hardcode register numbers.
4487
7f204339
RO
4488 PR build/25981
4489 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4490 procfs_find_LDT_entry): Remove.
4491 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4492 procfs_find_LDT_entry): Remove.
4493 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4494 Remove.
4495
7f32a4d5
PA
44962020-05-17 Pedro Alves <palves@redhat.com>
4497 Andrew Burgess <andrew.burgess@embecosm.com>
4498 Keno Fischer <keno@juliacomputing.com>
4499
4500 PR gdb/25741
4501 * breakpoint.c (build_target_condition_list): Update comments.
4502 (build_target_command_list): Update comments and skip matching
4503 locations.
4504 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4505 a separate function. Simplify "set breakpoint auto-hw off"
4506 handling.
4507 (insert_breakpoints): Update comment.
4508 (tracepoint_locations_match): New parameter. For breakpoints,
4509 compare location types too, if the caller wants to.
4510 (handle_automatic_hardware_breakpoints): New functions.
4511 (bp_location_is_less_than): Also sort by location type and
4512 hardware breakpoint length.
4513 (update_global_location_list): Handle "set breakpoint auto-hw on"
4514 here.
4515 (update_breakpoint_locations): Ask breakpoint_locations_match to
4516 ignore location types.
4517
7d93a1e0
SM
45182020-05-16 Simon Marchi <simon.marchi@efficios.com>
4519
4520 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4521 type::name instead.
4522
d0e39ea2
SM
45232020-05-16 Simon Marchi <simon.marchi@efficios.com>
4524
4525 * gdbtypes.h (struct type) <name, set_name>: New methods.
4526 (TYPE_CODE): Use type::name. Change all call sites used to set
4527 the name to use type::set_name instead.
4528
2dab0c7b
TT
45292020-05-16 Tom Tromey <tom@tromey.com>
4530
4531 * top.c (quit_force): Update.
4532 * infrun.c (handle_no_resumed): Update.
4533 * top.h (all_uis): New function.
4534 (ALL_UIS): Remove.
4535
59f7bd8d
SM
45362020-05-16 Simon Marchi <simon.marchi@efficios.com>
4537
4538 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4539
9bf058f0
PA
45402020-05-16 Pedro Alves <palves@redhat.com>
4541
4542 * ia64-linux-nat.c
4543 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4544 Declare method.
4545 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4546
8f86ae1a
SM
45472020-05-15 Simon Marchi <simon.marchi@efficios.com>
4548
4549 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4550 (sparc64_adi_info): Likewise.
4551
d6bc0792
TT
45522020-05-15 Tom Tromey <tom@tromey.com>
4553
4554 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4555 block_objfile.
4556 (lookup_objfile_from_block): Remove.
4557 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4558 (lookup_global_symbol): Use block_objfile.
4559 * symtab.h (lookup_objfile_from_block): Don't declare.
4560 * printcmd.c (clear_dangling_display_expressions): Use
4561 block_objfile.
4562 * parse.c (operator_check_standard): Use block_objfile.
4563
8c14c3a3
TT
45642020-05-15 Tom Tromey <tom@tromey.com>
4565
4566 * language.c (language_alloc_type_symbol): Set
4567 SYMBOL_SECTION.
4568 * symtab.c (initialize_objfile_symbol): Remove.
4569 (allocate_symbol): Remove.
4570 (allocate_template_symbol): Remove.
4571 * dwarf2/read.c (fixup_go_packaging): Use "new".
4572 (new_symbol): Use "new".
4573 (read_variable): Don't call initialize_objfile_symbol. Use
4574 "new".
4575 (read_func_scope): Use "new".
4576 * xcoffread.c (process_xcoff_symbol): Don't call
4577 initialize_objfile_symbol.
4578 (SYMBOL_DUP): Remove.
4579 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4580 "new".
4581 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4582 (allocate_template_symbol): Don't declare.
4583 (struct symbol): Add copy constructor. Change defaults.
4584 * jit.c (finalize_symtab): Use "new".
4585 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4586 Use "new".
4587 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4588 (common_block_end): Use "new".
4589 * mdebugread.c (parse_symbol): Use "new".
4590 (new_symbol): Likewise.
4591
5b4a1a8d
PW
45922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4593
4594 * NEWS: Mention changes to help and apropos.
4595
57b4f16e
PW
45962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4597
4598 * command.h (enum command_class): Improve comments, document
4599 that class_alias is for user-defined aliases, give the class
4600 name for each class, remove unused class_xdb.
4601 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4602 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4603 by a precise class.
4604 * infcmd.c (_initialize_infcmd): Likewise.
4605 * reverse.c (_initialize_reverse): Likewise.
4606 * stack.c (_initialize_stack): Likewise.
4607 * symfile.c (_initialize_symfile): Likewise.
4608 * tracepoint.c (_initialize_tracepoint): Likewise.
4609
7c05caf7
PW
46102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4611
4612 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4613 when their aliased command is traversed.
4614 (help_cmd): Add fput_command_names_styled call to
4615 output command name and aliases when command has an alias.
4616
3b3aaacb
PW
46172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4618
4619 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4620 * cli/cli-decode.c (help_cmd_list): Declare as static,
4621 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4622 a command together with the command.
4623 (fput_command_name_styled, fput_command_names_styled): New functions.
4624 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4625 fput_command_name_styled.
4626 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4627 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4628
7aa1b46f
PW
46292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4630
4631 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4632 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4633 * command.h (cmd_show_list): Likewise.
4634 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4635 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4636
89bcba74
PW
46372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4638
4639 * unittests/command-def-selftests.c (traverse_command_structure):
4640 Verify all commands of a list have the same prefix command and
4641 that only the top cmdlist commands have a null prefix.
4642
3f4d92eb
PW
46432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4644
4645 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4646 as prefix, not one of its aliases.
4647 (set_cmd_prefix): Remove.
4648 (do_add_cmd): Centralize the setting of the prefix of a command, when
4649 command is defined after its full chain of prefix commands.
4650 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4651 (add_setshow_cmd_full): Likewise.
4652 (update_prefix_field_of_prefixed_commands): New function.
4653 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4654 update_prefix_field_of_prefixed_commands.
4655 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4656 addresses of remote_set_cmdlist and remote_show_cmdlist given
4657 as argument, not the address of an argument.
4658 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4659 * gdb/remote.c (_initialize_remote): Likewise.
4660
0605465f
PW
46612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4662
4663 * cli/cli-cmds.c (alias_command): Check for an existing alias
4664 using lookup_cmd_composition, as valid_command_p is too strict
4665 and forbids aliases that are the prefix of an existing alias
4666 or command.
4667 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4668 command is properly recognised as a valid command.
4669
58e6ac70
PW
46702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4671
4672 * unittests/help-doc-selftests.c: Rename to
4673 unittests/command-def-selftests.c
4674 * unittests/command-def-selftests.c (help_doc_tests): Update some
4675 comments.
4676 (command_structure_tests, traverse_command_structure): New namespace
4677 and function.
4678 (command_structure_invariants_tests): New function.
4679 (_initialize_command_def_selftests) Renamed from
4680 _initialize_help_doc_selftests, register command_structure_invariants
4681 selftest.
4682
a7b9ceb8
PW
46832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4684
4685 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4686 an alias of 'show'.
4687
b2188a06
JB
46882020-05-15 Joel Brobecker <brobecker@adacore.com>
4689
4690 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4691 ada_is_fixed_point_type. Update all callers.
4692 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4693 all callers.
4694 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4695 Update all callers.
4696 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4697 print_fixed_point_type. Update all callers.
4698 * ada-valprint.c (ada_value_print_num): Replace call to
4699 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4700
a51951c2
KB
47012020-05-14 Kevin Buettner <kevinb@redhat.com>
4702
4703 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4704 processors.
4705 (cpu_supports_bts): Add CV_AMD case.
4706
29d6859f
LM
47072020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4708 Simon Marchi <simon.marchi@efficios.com>
4709
4710 * infrun.c (stop_all_threads): Collect multiple wait events at
4711 each pass.
4712
78134374
SM
47132020-05-14 Simon Marchi <simon.marchi@efficios.com>
4714
4715 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4716 type::code instead.
4717
67607e24
SM
47182020-05-14 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbtypes.h (struct type) <code, set_code>: New methods.
4721 (TYPE_CODE): Use type::code. Change all call sites used to set
4722 the code to use type::set_code instead.
4723
a05575d3
TBA
47242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4725 Tom de Vries <tdevries@suse.de>
4726 Pedro Alves <palves@redhat.com>
4727
4728 PR threads/25478
4729 * infrun.c (stop_all_threads): Do NOT ignore
4730 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4731 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4732 received.
4733 (handle_no_resumed): Remove code handling a live inferior with no
4734 threads.
4735 * remote.c (has_single_non_exited_thread): New.
4736 (remote_target::update_thread_list): Do not delete a thread if is
4737 the last thread of the process.
4738 * thread.c (thread_select): Call delete_exited_threads instead of
4739 prune_threads.
4740
6ad82919
TBA
47412020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4742
4743 * infrun.c (stop_all_threads): Enable/disable thread events of all
4744 targets. Move a debug message denoting the end of the function
4745 into the SCOPED_EXIT block.
4746
d890404b
TBA
47472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4748
4749 * process-stratum-target.h: Include <set>.
4750 (all_non_exited_process_targets, switch_to_target_no_thread): New
4751 function declarations.
4752 * process-stratum-target.c (all_non_exited_process_targets)
4753 (switch_to_target_no_thread): New function implementations.
4754
293b3ebc
TBA
47552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4756
4757 * infrun.c (handle_inferior_event): Extract out a piece of code
4758 into...
4759 (mark_non_executing_threads): ...this new function.
4760
7ca9b62a
TBA
47612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4762
4763 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4764 use.
4765
fc75c28b
TBA
47662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4767
4768 * regcache.c (regcache_read_pc_protected): New function
4769 implementation that returns 0 if the PC cannot read via
4770 'regcache_read_pc'.
4771 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4772 instead of 'regcache_read_pc'.
4773 (keep_going_pass_signal): Ditto.
4774
a89febbd
TT
47752020-05-13 Tom Tromey <tromey@adacore.com>
4776
4777 * ada-lang.c (align_value): Remove.
4778 (ada_template_to_fixed_record_type_1): Use align_up.
4779
f7e23710
TBA
47802020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4781
4782 * async-event.c: Update the copyright year.
4783 * async-event.h: Update the copyright year.
4784
02ff80c2
SM
47852020-05-12 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * objfiles.h (is_addr_in_objfile,
4788 shared_objfile_contains_address_p): Return bool.
4789 * objfile.c (is_addr_in_objfile,
4790 shared_objfile_contains_address_p): Return bool.
4791
4fd6c7e8
TT
47922020-05-11 Tom Tromey <tromey@adacore.com>
4793
4794 * cli/cli-cmds.c (info_command): Restore.
4795 (_initialize_cli_cmds): Use add_prefix_command for "info".
4796 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4797
5eb68a39
TT
47982020-05-11 Tom Tromey <tromey@adacore.com>
4799
4800 * ada-lang.c (ada_value_primitive_field): Now public.
4801 * ada-lang.h (ada_value_primitive_field): Declare.
4802 * ada-valprint.c (print_field_values): Use
4803 ada_value_primitive_field for wrapper fields.
4804
7666722f
TV
48052020-05-11 Tom de Vries <tdevries@suse.de>
4806
4807 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4808 MODULE_DOMAIN.
4809
3ee6bb11
TV
48102020-05-11 Tom de Vries <tdevries@suse.de>
4811
4812 PR symtab/25941
4813 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4814 with length 0, if not gdb-produced.
4815 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4816
43434996
TV
48172020-05-09 Tom de Vries <tdevries@suse.de>
4818
4819 PR gdb/25955
4820 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4821 calculation.
4822
2f78cffc
TT
48232020-05-09 Tom Tromey <tom@tromey.com>
4824
4825 * top.c (server_command): Now bool.
4826 * top.h (server_command): Now bool.
4827
4f7bc5ed
TT
48282020-05-08 Tom Tromey <tromey@adacore.com>
4829
4830 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4831 already being processed.
4832
8be4b118
TT
48332020-05-08 Tom Tromey <tom@tromey.com>
4834
4835 * printcmd.c (struct display) <next>: Remove.
4836 <display>: New constructor.
4837 <exp_string>: Now a std::string.
4838 <enabled_p>: Now a bool.
4839 (display_number): Move definition earlier.
4840 (displays): Rename from display_chain. Now a std::vector.
4841 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4842 (display_command): Update.
4843 (do_one_display, disable_display)
4844 (enable_disable_display_command, do_enable_disable_display):
4845 Update.
4846 (free_display): Remove.
4847 (clear_displays): Rewrite.
4848 (delete_display): Update.
4849 (map_display_numbers): Use function_view. Remove "data"
4850 parameter. Update.
4851 (do_delete_display): Remove.
4852 (undisplay_command): Update.
4853 (do_one_display, do_displays, disable_display)
4854 (info_display_command): Update.
4855 (do_enable_disable_display): Remove.
4856 (enable_disable_display_command)
4857 (clear_dangling_display_expressions): Update.
4858
94c93c35
TT
48592020-05-08 Tom Tromey <tom@tromey.com>
4860
4861 * symtab.c (set_symbol_cache_size)
4862 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4863 (maintenance_print_symbol_cache_statistics): Update.
4864 * symmisc.c (print_symbol_bcache_statistics)
4865 (print_objfile_statistics, maintenance_print_objfiles)
4866 (maintenance_info_symtabs, maintenance_check_symtabs)
4867 (maintenance_expand_symtabs, maintenance_info_line_tables):
4868 Update.
4869 * symfile-debug.c (set_debug_symfile): Update.
4870 * source.c (forget_cached_source_info): Update.
4871 * python/python.c (gdbpy_progspaces): Update.
4872 * psymtab.c (maintenance_info_psymtabs): Update.
4873 * probe.c (parse_probes): Update.
4874 * linespec.c (iterate_over_all_matching_symtabs)
4875 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4876 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4877 * exec.c (exec_target::close): Update.
4878 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4879 * breakpoint.c (print_one_breakpoint_location)
4880 (create_longjmp_master_breakpoint)
4881 (create_std_terminate_master_breakpoint): Update.
4882 * progspace.c (program_spaces): Now a std::vector.
4883 (maybe_new_address_space): Update.
4884 (add_program_space): Remove.
4885 (program_space::program_space): Update.
4886 (remove_program_space): Update.
4887 (number_of_program_spaces): Remove.
4888 (print_program_space, update_address_spaces): Update.
4889 * progspace.h (program_spaces): Change type.
4890 (ALL_PSPACES): Remove.
4891 (number_of_program_spaces): Don't declare.
4892 (struct program_space) <next>: Remove.
4893
a1fd1ac9
TT
48942020-05-08 Tom Tromey <tom@tromey.com>
4895
4896 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4897 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4898 (enable_break): Update.
4899 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4900 (frv_fdpic_find_canonical_descriptor): Update.
4901 (frv_fetch_objfile_link_map): Update.
4902 * progspace.c (program_space::free_all_objfiles): Update.
4903 (program_space::solibs): New method.
4904 * progspace.h (struct program_space) <solibs>: New method.
4905 * solist.h (master_so_list): Don't declare.
4906 (ALL_SO_LIBS): Remove.
4907 * solib.h (so_list_head): Remove.
4908 (update_solib_list): Update comment.
4909 * solib.c (master_so_list): Remove.
4910 (solib_used, update_solib_list, solib_add)
4911 (info_sharedlibrary_command, clear_solib)
4912 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4913
38eae084
TT
49142020-05-08 Tom Tromey <tom@tromey.com>
4915
4916 * extension.c (extension_languages): Now a std::array.
4917 (ALL_EXTENSION_LANGUAGES): Remove.
4918 (get_ext_lang_defn, get_ext_lang_of_file)
4919 (eval_ext_lang_from_control_command): Update.
4920 (finish_ext_lang_initialization)
4921 (auto_load_ext_lang_scripts_for_objfile)
4922 (ext_lang_type_printers::ext_lang_type_printers)
4923 (apply_ext_lang_type_printers)
4924 (ext_lang_type_printers::~ext_lang_type_printers)
4925 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4926 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4927 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4928 (get_matching_xmethod_workers, ext_lang_colorize)
4929 (ext_lang_before_prompt): Update.
4930 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4931
596dc4ad
TT
49322020-05-08 Tom Tromey <tom@tromey.com>
4933
4934 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4935 overload.
4936 <swap_string, m_string>: Remove.
4937 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4938 Update.
4939 * stabsread.c (define_symbol, read_type): Update.
4940 * linespec.c (find_linespec_symbols): Update.
4941 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4942 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4943 * dbxread.c (read_dbx_symtab): Update.
4944 * cp-support.h (cp_canonicalize_string_full)
4945 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4946 Return unique_xmalloc_ptr.
4947 * cp-support.c (inspect_type): Update.
4948 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4949 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4950 Likewise.
4951 * c-typeprint.c (print_name_maybe_canonical): Update.
4952 * break-catch-throw.c (check_status_exception_catchpoint):
4953 Update.
4954
bf4cb9be
TV
49552020-05-08 Tom de Vries <tdevries@suse.de>
4956
4957 * infrun.c (follow_fork): Copy current_line and current_symtab to
4958 child thread.
4959
a1b68f28
SM
49602020-05-07 Simon Marchi <simon.marchi@efficios.com>
4961
4962 * async-event.c (struct async_signal_handler, struct
4963 async_event_handler): Reformat, remove typedef.
4964
98d48915
SM
49652020-05-07 Simon Marchi <simon.marchi@efficios.com>
4966
4967 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4968 access thistype->main_type->dyn_prop_list directly.
4969
7aa91313
SM
49702020-05-07 Simon Marchi <simon.marchi@efficios.com>
4971
4972 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4973 (remove_dyn_prop): Remove. Update all users to use
4974 type::remove_dyn_prop.
4975 * gdbtypes.c (remove_dyn_prop): Rename to...
4976 (type::remove_dyn_prop): ... this.
4977
5c54719c
SM
49782020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4979
4980 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4981 (add_dyn_prop): Remove. Update all users to use
4982 type::add_dyn_prop.
4983 * gdbtypes.c (add_dyn_prop): Rename to...
4984 (type::add_dyn_prop): ... this.
4985
24e99c6c
SM
49862020-05-07 Simon Marchi <simon.marchi@efficios.com>
4987
4988 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
4989 (get_dyn_prop): Remove. Update all users to use
4990 type::dyn_prop.
4991 * gdbtypes.c (get_dyn_prop): Rename to...
4992 (type::dyn_prop): ... this.
4993
0d4bf016
SM
49942020-05-06 Simon Marchi <simon.marchi@efficios.com>
4995
4996 * gdbtypes.h (struct main_type) <flag_static>: Remove.
4997
ac4a4f1c
SM
49982020-05-06 Simon Marchi <simon.marchi@efficios.com>
4999
5000 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5001 instruction, skip it if it's there.
5002
a3bbacc1
SM
50032020-05-05 Simon Marchi <simon.marchi@efficios.com>
5004
5005 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5006
c3236f84
SM
50072020-05-04 Simon Marchi <simon.marchi@efficios.com>
5008
5009 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5010 * gdbtypes.c (recursive_dump_type): Remove use of
5011 TYPE_INCOMPLETE.
5012
3b6acaee
TT
50132020-05-03 Tom Tromey <tom@tromey.com>
5014
5015 * breakpoint.c (catch_command, tcatch_command): Remove.
5016 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5017 add_show_prefix_cmd.
5018 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5019 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5020 Remove.
5021 (add_internal_problem_command): Use add_basic_prefix_cmd,
5022 add_show_prefix_cmd.
5023 * mips-tdep.c (set_mipsfpu_command): Remove.
5024 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5025 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5026 (_initialize_index_cache): Use add_basic_prefix_cmd.
5027 * memattr.c (dummy_cmd): Remove.
5028 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5029 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5030 (_initialize_tui_win): Use add_basic_prefix_cmd,
5031 add_show_prefix_cmd.
5032 * cli/cli-logging.c (set_logging_command): Remove.
5033 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5034 add_show_prefix_cmd.
5035 (show_logging_command): Remove.
5036 * target.c (target_command): Remove.
5037 (add_target): Use add_basic_prefix_cmd.
5038
a51119cd
HD
50392020-05-02 Hannes Domani <ssbssa@yahoo.de>
5040
5041 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5042
652fc23a 50432020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5044
652fc23a
PW
5045 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5046 info_command.
5047
117539e6
KR
50482020-04-30 Kamil Rytarowski <n54@gmx.com>
5049
5050 * nbsd-nat.c (nbsd_enable_proc_events)
5051 (nbsd_nat_target::post_startup_inferior): Add.
5052 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5053 (nbsd_nat_target::update_thread_list): Rewrite.
5054 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5055 "PTRACE_LWP_CREATE".
5056 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5057
102e38eb 50582020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5059
102e38eb
PW
5060 * stack.c (_initialize_stack): Remove duplicated creation
5061 of "frame" command and "f" alias.
5062
ee9d1e5f
HD
50632020-04-30 Hannes Domani <ssbssa@yahoo.de>
5064
5065 PR gdb/18706
5066 * gdbtypes.c (check_typedef): Calculate size of array of
5067 stubbed type.
5068
627c7fb8
HD
50692020-04-30 Hannes Domani <ssbssa@yahoo.de>
5070
5071 PR gdb/15559
5072 * i386-tdep.c (i386_push_dummy_call): Call
5073 i386_thiscall_push_dummy_call.
5074 (i386_thiscall_push_dummy_call): New function.
5075 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5076 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5077 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5078
ffc2844e
SM
50792020-04-29 Simon Marchi <simon.marchi@efficios.com>
5080
5081 * gdbarch.sh (do_read): Add shellcheck disable directive for
5082 warning SC2162.
5083
1207375d
SM
50842020-04-29 Simon Marchi <simon.marchi@efficios.com>
5085
5086 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5087 "referenced but not assigned" warning.
5088
9fdb2916
SM
50892020-04-29 Simon Marchi <simon.marchi@efficios.com>
5090
5091 * gdbarch.sh: Remove code that sets fallbackdefault.
5092
759cea5e
SM
50932020-04-29 Simon Marchi <simon.marchi@efficios.com>
5094
5095 * gdbarch.sh: Use shell operators && and || instead of
5096 -a and -o.
5097
cb02ab24
SM
50982020-04-29 Simon Marchi <simon.marchi@efficios.com>
5099
5100 * gdbarch.sh: Use $(...) instead of `...`.
5101
a6fc5ffc
SM
51022020-04-29 Simon Marchi <simon.marchi@efficios.com>
5103
5104 * gdbarch.sh: Use double quotes around variables.
5105
8d113d13
SM
51062020-04-29 Simon Marchi <simon.marchi@efficios.com>
5107
5108 * gdbarch.sh: Use %s with printf, instead of variables in the
5109 format string.
5110
ed6acedd
TT
51112020-04-29 Tom Tromey <tromey@adacore.com>
5112
5113 PR ada/25875:
5114 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5115 type fields here.
5116 (read_enumeration_type): Call
5117 update_enumeration_type_from_children later. Update comments.
5118 (process_enumeration_scope): Don't create type fields.
5119
b68b1b58
KR
51202020-04-29 Kamil Rytarowski <n54@gmx.com>
5121
5122 * nbsd-tdep.c: Include "xml-syscall.h".
5123 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5124
f94b2e03
KR
51252020-04-29 Kamil Rytarowski <n54@gmx.com>
5126
5127 * nbsd-nat.c: Include "sys/wait.h".
5128 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5129 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5130 (nbsd_nat_target::remove_exec_catchpoint)
5131 (nbsd_nat_target::set_syscall_catchpoint): Add.
5132 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5133 (nbsd_nat_target::insert_exec_catchpoint)
5134 (nbsd_nat_target::remove_exec_catchpoint)
5135 (nbsd_nat_target::set_syscall_catchpoint): Add.
5136 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5137 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5138 `nbsd_get_syscall_number'.
5139
fc49bc72
TT
51402020-04-29 Tom Tromey <tom@tromey.com>
5141
5142 * stack.c (print_block_frame_labels): Remove.
5143
d642b692
HD
51442020-04-29 Hannes Domani <ssbssa@yahoo.de>
5145
5146 PR gdb/17320
5147 * ada-valprint.c (val_print_packed_array_elements): Move array
5148 end bracket to new line.
5149 (ada_val_print_string): Remove extra spaces before first array
5150 element.
5151 * c-valprint.c (c_value_print_array): Likewise.
5152 * m2-valprint.c (m2_print_array_contents): Likewise.
5153 (m2_value_print_inner): Likewise.
5154 * p-valprint.c (pascal_value_print_inner): Likewise.
5155 * valprint.c (generic_val_print_array): Likewise.
5156 (value_print_array_elements): Move first array element and array
5157 end bracket to new line.
5158
ea90f227
TV
51592020-04-29 Tom de Vries <tdevries@suse.de>
5160
5161 PR symtab/25889
5162 * linespec.c (find_method): Fix ix calculation.
5163
4498ef4f
KR
51642020-04-28 Kamil Rytarowski <n54@gmx.com>
5165
5166 * syscalls/update-netbsd.sh: New file.
5167 * syscalls/netbsd.xml: Regenerate.
5168 * data-directory/Makefile.in: Register `netbsd.xml' in
5169 `SYSCALLS_FILES'.
5170
a55e30b5
SM
51712020-04-28 Simon Marchi <simon.marchi@efficios.com>
5172
5173 * syscalls/update-freebsd.sh: Add double quotes.
5174
2b2fbab8
TT
51752020-04-28 Tom Tromey <tom@tromey.com>
5176
5177 * NEWS: Update.
5178 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5179 (cmdpy_init): Allow class_tui.
5180
a65189c9
TV
51812020-04-28 Mark Williams <mark@myosotissp.com>
5182
5183 PR gdb/24480
5184 * dwarf2read.c: Add missing assingments to list_in_scope when
5185 start_symtab was already called.
5186
1b95cdb7
SM
51872020-04-28 Simon Marchi <simon.marchi@efficios.com>
5188
5189 PR gdb/25881
5190 * dwarf2/read.c (offset_map_type): Use
5191 gdb:hash_enum<sect_offset> as hash function.
5192
15cd93d0
TV
51932020-04-28 Tom de Vries <tdevries@suse.de>
5194
5195 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5196 with DW_AT_signature.
5197
1eb39914
SM
51982020-04-27 Simon Marchi <simon.marchi@efficios.com>
5199
5200 * configure.ac: Remove check for fs_base/gs_base in
5201 user_regs_struct.
5202 * configure: Re-generate.
5203 * config.in: Re-generate.
5204 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5205 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5206 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5207
991a3e2e
LM
52082020-04-27 Luis Machado <luis.machado@linaro.org>
5209
5210 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5211 problematic inline frame unwinding situation.
5212 * frame.c (frame_id_computed_p): New function.
5213 * frame.h (frame_id_computed_p): New prototype.
5214
361ba0e8
TT
52152020-04-26 Tom Tromey <tom@tromey.com>
5216
5217 * command.h (enum command_class) <class_pseudo>: Remove.
5218
bc3609fd
PW
52192020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5220
5221 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5222 and whitespace.
5223
b9771db7
KR
52242020-04-25 Kamil Rytarowski <n54@gmx.com>
5225
ec16513e
SM
5226 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5227 `PT_GET_PROCESS_STATE' block.
b9771db7 5228
7151c1af
TT
52292020-04-24 Tom Tromey <tom@tromey.com>
5230
5231 * symtab.h (symbol_get_demangled_name): Don't declare.
5232 * symtab.c (symbol_get_demangled_name): Remove.
5233 (general_symbol_info::natural_name)
5234 (general_symbol_info::demangled_name): Update.
5235
906bb4c5
TT
52362020-04-24 Tom Tromey <tom@tromey.com>
5237
5238 PR rust/25025:
5239 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5240
bcfe6157
TT
52412020-04-24 Tom Tromey <tom@tromey.com>
5242
5243 PR symtab/12707:
5244 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5245 exists.
5246 (new_symbol): Likewise.
5247 * compile/compile-object-load.c (get_out_value_type): Use
5248 symbol_matches_search_name.
5249
f049a313
TT
52502020-04-24 Tom Tromey <tom@tromey.com>
5251
5252 * dwarf2/read.c (add_partial_symbol): Do not call
5253 compute_and_set_names.
5254
76e288d1
TT
52552020-04-24 Tom Tromey <tom@tromey.com>
5256
5257 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5258 overload.
5259
2467f4f6
TT
52602020-04-24 Tom Tromey <tom@tromey.com>
5261
5262 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5263 (add_psymbol_to_list): New overload. Make old overload call new
5264 one.
5265 * psympriv.h (add_psymbol_to_list): New overload.
5266
e61108c9
TT
52672020-04-24 Tom Tromey <tom@tromey.com>
5268
5269 * dwarf2/read.c (partial_die_info::read) <case
5270 DW_AT_linkage_name>: Use value_as_string.
5271 (dwarf2_string_attr): Use value_as_string.
5272 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5273 method.
5274 * dwarf2/attribute.c (attribute::value_as_string): New method.
5275
8c87a452
TT
52762020-04-24 Tom Tromey <tom@tromey.com>
5277
5278 * symtab.c (general_symbol_info::natural_name)
5279 (general_symbol_info::demangled_name): Check for language_rust.
5280
787de330
TT
52812020-04-24 Tom Tromey <tom@tromey.com>
5282
5283 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5284 (dwarf2_physname): ... from here.
5285 (partial_die_info::read): Add Rust "{" hack.
5286
ff985671
TT
52872020-04-24 Tom Tromey <tom@tromey.com>
5288
5289 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5290 method.
5291 (symbol_set_demangled_name): Don't declare.
5292 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5293 symbol_set_demangled_name.
5294 (general_symbol_info::set_language)
5295 (general_symbol_info::compute_and_set_names): Update.
5296 * minsyms.c (minimal_symbol_reader::install): Update.
5297 * dwarf2/read.c (new_symbol): Update.
5298
1acda803
TT
52992020-04-24 Tom Tromey <tromey@adacore.com>
5300
5301 PR python/23662:
5302 * python/py-type.c (convert_field): Handle
5303 FIELD_LOC_KIND_DWARF_BLOCK.
5304 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5305 (typy_get_dynamic): Nw function.
5306 (type_object_getset): Add "dynamic".
5307 * NEWS: Add entry.
5308
d656f129
TT
53092020-04-24 Tom Tromey <tromey@adacore.com>
5310
5311 * ada-typeprint.c (print_choices, print_variant_part)
5312 (print_record_field_types_dynamic): New functions.
5313 (print_record_field_types): Use print_record_field_types_dynamic.
5314
7d79de9a
TT
53152020-04-24 Tom Tromey <tromey@adacore.com>
5316
5317 * dwarf2/read.c (handle_data_member_location): New overload.
5318 (dwarf2_add_field): Use it.
5319 (decode_locdesc): Add "computed" parameter. Update comment.
5320 * gdbtypes.c (is_dynamic_type_internal): Also look for
5321 FIELD_LOC_KIND_DWARF_BLOCK.
5322 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5323 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5324 virtual base classes.
5325 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5326 FIELD_LOC_KIND_DWARF_BLOCK.
5327
f8e89861
TT
53282020-04-24 Tom Tromey <tromey@adacore.com>
5329
5330 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5331 * gdbtypes.c (is_dynamic_type_internal): Check
5332 TYPE_HAS_DYNAMIC_LENGTH.
5333 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5334 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5335 New macros.
5336 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5337 constant.
5338
9c6a1327
TT
53392020-04-24 Tom Tromey <tromey@adacore.com>
5340
5341 * dwarf2/read.c (struct variant_field): Rewrite.
5342 (struct variant_part_builder): New.
5343 (struct nextfield): Remove "variant" field. Add "offset".
5344 (struct field_info): Add "current_variant_part" and
5345 "variant_parts".
5346 (alloc_discriminant_info): Remove.
5347 (alloc_rust_variant): New function.
5348 (quirk_rust_enum): Update.
5349 (dwarf2_add_field): Set "offset" member. Don't handle
5350 DW_TAG_variant_part.
5351 (offset_map_type): New typedef.
5352 (convert_variant_range, create_one_variant)
5353 (create_one_variant_part, create_variant_parts)
5354 (add_variant_property): New functions.
5355 (dwarf2_attach_fields_to_type): Call add_variant_property.
5356 (read_structure_type): Don't handle DW_TAG_variant_part.
5357 (handle_variant_part, handle_variant): New functions.
5358 (handle_struct_member_die): Use them.
5359 (process_structure_scope): Don't handle variant parts.
5360 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5361 (struct discriminant_info): Remove.
5362 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5363 (struct main_type) <flag_discriminated_union>: Remove.
5364 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5365 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5366 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5367 Update.
5368 * valops.c (value_union_variant): Remove.
5369 * value.h (value_union_variant): Don't declare.
5370
b249d2c2
TT
53712020-04-24 Tom Tromey <tromey@adacore.com>
5372
5373 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5374 (ada_value_primitive_packed_val): Update.
5375 * ada-valprint.c (ada_value_print_1): Update.
5376 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5377 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5378 just an address. Use evaluate_for_locexpr_baton.
5379 (dwarf2_evaluate_property): Update.
5380 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5381 array_view.
5382 * findvar.c (default_read_var_value): Update.
5383 * gdbtypes.c (compute_variant_fields_inner)
5384 (resolve_dynamic_type_internal): Update.
5385 (resolve_dynamic_type): Change type of valaddr parameter.
5386 * gdbtypes.h (resolve_dynamic_type): Update.
5387 * valarith.c (value_subscripted_rvalue): Update.
5388 * value.c (value_from_contents_and_address): Update.
5389
61122aa9
TT
53902020-04-24 Tom Tromey <tromey@adacore.com>
5391
5392 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5393 "push_initial_value" parameter.
5394 (dwarf2_evaluate_property): Likewise.
5395 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5396
ef83a141
TT
53972020-04-24 Tom Tromey <tromey@adacore.com>
5398
5399 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5400 (variant::matches, compute_variant_fields_recurse)
5401 (compute_variant_fields_inner, compute_variant_fields): New
5402 functions.
5403 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5404 Use resolved_type after type is made.
5405 (operator==): Add new cases.
5406 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5407 (struct discriminant_range, struct variant, struct variant_part):
5408 New.
5409 (union dynamic_prop_data) <variant_parts, original_type>: New
5410 members.
5411 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5412 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5413 constants.
5414 * value.c (unpack_bits_as_long): Now public.
5415 * value.h (unpack_bits_as_long): Declare.
5416
675127ec
TT
54172020-04-24 Tom Tromey <tromey@adacore.com>
5418
5419 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5420 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5421
9852ceef
HD
54222020-04-24 Hannes Domani <ssbssa@yahoo.de>
5423
5424 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5425
7632c6ce
KR
54262020-04-24 Kamil Rytarowski <n54@gmx.com>
5427
5428 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5429 (remove_fork_catchpoint, post_startup_inferior)
5430 (post_attach): Move...
5431 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5432 (remove_fork_catchpoint, post_startup_inferior)
5433 (post_attach): ...here.
5434 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5435 (remove_fork_catchpoint, post_startup_inferior)
5436 (post_attach): Move...
5437 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5438 (remove_fork_catchpoint, post_startup_inferior)
5439 (post_attach): ...here.
5440
7be2bb4f
TT
54412020-04-24 Tom Tromey <tromey@adacore.com>
5442
5443 * nat/windows-nat.h (struct windows_thread_info)
5444 <pc_adjusted>: New member.
5445 * windows-nat.c (windows_fetch_one_register): Check
5446 pc_adjusted.
5447 (windows_nat_target::get_windows_debug_event)
5448 (windows_nat_target::wait): Set pc_adjusted.
5449
f80cb3b4
TV
54502020-04-24 Tom de Vries <tdevries@suse.de>
5451
5452 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5453 Run gdb-add-index inside temp dir.
5454
29514b87
TT
54552020-04-23 Tom Tromey <tromey@adacore.com>
5456
5457 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5458 in loop.
5459
5939967b
LM
54602020-04-23 Luis Machado <luis.machado@linaro.org>
5461
5462 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5463 get_frame_register instead of gdbarch_unwind_pc.
5464
70bc38f5
TV
54652020-04-23 Tom de Vries <tdevries@suse.de>
5466
5467 * symtab.c (lookup_global_symbol): Prefer def over decl.
5468
de82891c
TV
54692020-04-23 Tom de Vries <tdevries@suse.de>
5470
5471 PR symtab/25807
5472 * block.c (best_symbol, better_symbol): Promote to external.
5473 * block.h (best_symbol, better_symbol): Declare.
5474 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5475 decl.
5476
ecc6c606
TT
54772020-04-23 Tom Tromey <tromey@adacore.com>
5478
5479 PR ada/25837:
5480 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5481 "const char *", not a "const std::string &".
5482 <name_and_matcher::operator==>: Update.
5483 * unittests/lookup_name_info-selftests.c: Change type of
5484 "result".
5485
740480b8
TT
54862020-04-23 Tom Tromey <tom@tromey.com>
5487
5488 * inferior.h (iterate_over_inferiors): Don't declare.
5489 * inferior.c (iterate_over_inferiors): Remove.
5490 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5491 Remove.
5492 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5493 use iterate_over_inferiors.
5494 (darwin_resume_inferior_it)
5495 (struct resume_inferior_threads_param)
5496 (darwin_resume_inferior_threads_it): Remove.
5497 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5498
ae3ab1f0
TV
54992020-04-23 Tom de Vries <tdevries@suse.de>
5500
5501 * blockframe.c (find_pc_partial_function): Use
5502 find_pc_sect_compunit_symtab rather than
5503 objfile->sf->qf->find_pc_sect_compunit_symtab.
5504
317d2668
TV
55052020-04-22 Tom de Vries <tdevries@suse.de>
5506
5507 PR symtab/25764
5508 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5509 in psymtabs.
5510
eea9e357
TV
55112020-04-22 Tom de Vries <tdevries@suse.de>
5512
5513 PR symtab/25801
5514 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5515 symtabs.
5516
3d5afab3
TV
55172020-04-22 Tom de Vries <tdevries@suse.de>
5518
5519 PR symtab/25700
5520 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5521 CU if already created.
5522
d43b7a2d
TBA
55232020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5524
5525 * infrun.c (displaced_step_fixup): Switch to the event_thread
5526 before calling displaced_step_restore, not after.
5527
d89edf9b
MM
55282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5529
5530 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5531 its inferior is not recorded by us.
5532 (record_btrace_target_open): Replace call to
5533 all_non_exited_threads () with call to current_inferior
5534 ()->non_exited_threads ().
5535 (record_btrace_target::stop_recording): Likewise.
5536 (record_btrace_target::close): Likewise.
5537 (record_btrace_target::wait): Likewise.
5538 (record_btrace_target::record_stop_replaying): Likewise.
5539
5897fd49
MM
55402020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5541
5542 * btrace.c (btrace_enable): Throw an error on double enables and
5543 when enabling recording fails.
5544 (btrace_disable): Throw an error if the thread is not recorded.
5545
1a476b6d
MM
55462020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5547
5548 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5549 request if we do not have a thread_info.
5550
4778a5f8
TV
55512020-04-21 Tom de Vries <tdevries@suse.de>
5552
5553 PR gdb/25471
5554 * thread.c
5555 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5556 exception in get_frame_id.
5557
0fa7617d
TT
55582020-04-20 Tom Tromey <tromey@adacore.com>
5559
5560 * python/python.c (struct gdbpy_event): Mark move constructor as
5561 noexcept.
5562 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5563 constructor as noexcept.
5564 * completer.h (struct completion_result): Mark move constructor as
5565 noexcept.
5566 * completer.c (completion_result::completion_result): Use
5567 initialization style. Don't call reset_match_list.
5568
ad23bda0
MS
55692020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5570
5571 * MAINTAINERS (Write After Approval): Add myself.
5572
45e1f031
TT
55732020-04-18 Tom Tromey <tom@tromey.com>
5574
5575 * windows-tdep.c (init_w32_command_list)
5576 (w32_prefix_command_valid): Restore.
5577 (_initialize_windows_tdep): Call init_w32_command_list.
5578
08feed99
TT
55792020-04-18 Tom Tromey <tom@tromey.com>
5580
5581 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5582 * value.c (value_fn_field): Update.
5583 * valops.c (find_function_in_inferior)
5584 (value_allocate_space_in_inferior): Update.
5585 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5586 Update.
5587 * tui/tui-source.c (tui_source_window::set_contents): Update.
5588 * symtab.c (lookup_global_or_static_symbol)
5589 (find_function_start_sal_1, skip_prologue_sal)
5590 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5591 * symmisc.c (dump_msymbols, dump_symtab_1)
5592 (maintenance_print_one_line_table): Update.
5593 * symfile.c (init_entry_point_info, section_is_mapped)
5594 (list_overlays_command, simple_read_overlay_table)
5595 (simple_overlay_update_1): Update.
5596 * stap-probe.c (handle_stap_probe): Update.
5597 * stabsread.c (dbx_init_float_type, define_symbol)
5598 (read_one_struct_field, read_enum_type, read_range_type): Update.
5599 * source.c (info_line_command): Update.
5600 * python/python.c (gdbpy_source_objfile_script)
5601 (gdbpy_execute_objfile_script): Update.
5602 * python/py-type.c (save_objfile_types): Update.
5603 * python/py-objfile.c (py_free_objfile): Update.
5604 * python/py-inferior.c (python_new_objfile): Update.
5605 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5606 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5607 (maintenance_check_psymtabs): Update.
5608 * printcmd.c (info_address_command): Update.
5609 * objfiles.h (struct objfile) <arch>: New method, from
5610 get_objfile_arch.
5611 (get_objfile_arch): Don't declare.
5612 * objfiles.c (get_objfile_arch): Remove.
5613 (filter_overlapping_sections): Update.
5614 * minsyms.c (msymbol_is_function): Update.
5615 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5616 (output_nondebug_symbol): Update.
5617 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5618 (mdebug_expand_psymtab): Update.
5619 * machoread.c (macho_add_oso_symfile): Update.
5620 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5621 Update.
5622 * linux-fork.c (checkpoint_command): Update.
5623 * linespec.c (convert_linespec_to_sals): Update.
5624 * jit.c (finalize_symtab): Update.
5625 * infrun.c (insert_exception_resume_from_probe): Update.
5626 * ia64-tdep.c (ia64_find_unwind_table): Update.
5627 * hppa-tdep.c (internalize_unwinds): Update.
5628 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5629 Update.
5630 * gcore.c (call_target_sbrk): Update.
5631 * elfread.c (record_minimal_symbol, elf_symtab_read)
5632 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5633 (elf_gnu_ifunc_resolve_by_got): Update.
5634 * dwarf2/read.c (create_addrmap_from_index)
5635 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5636 (read_debug_names_from_section)
5637 (process_psymtab_comp_unit_reader, add_partial_symbol)
5638 (add_partial_subprogram, process_full_comp_unit)
5639 (read_file_scope, read_func_scope, read_lexical_block_scope)
5640 (read_call_site_scope, dwarf2_ranges_read)
5641 (dwarf2_record_block_ranges, dwarf2_add_field)
5642 (mark_common_block_symbol_computed, read_tag_pointer_type)
5643 (read_tag_string_type, dwarf2_init_float_type)
5644 (dwarf2_init_complex_target_type, read_base_type)
5645 (partial_die_info::read, partial_die_info::read)
5646 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5647 (dwarf2_fetch_die_loc_sect_off): Update.
5648 * dwarf2/loc.c (dwarf2_find_location_expression)
5649 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5650 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5651 (dwarf2_loc_desc_get_symbol_read_needs)
5652 (locexpr_describe_location_piece, locexpr_describe_location_1)
5653 (loclist_describe_location): Update.
5654 * dwarf2/index-write.c (write_debug_names): Update.
5655 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5656 * dtrace-probe.c (dtrace_process_dof): Update.
5657 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5658 (process_one_symbol): Update.
5659 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5660 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5661 (coff_read_enum_type): Update.
5662 * cli/cli-cmds.c (edit_command, list_command): Update.
5663 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5664 * breakpoint.c (create_overlay_event_breakpoint)
5665 (create_longjmp_master_breakpoint)
5666 (create_std_terminate_master_breakpoint)
5667 (create_exception_master_breakpoint, get_sal_arch): Update.
5668 * block.c (block_gdbarch): Update.
5669 * annotate.c (annotate_source_line): Update.
5670
0743fc83
TT
56712020-04-17 Tom Tromey <tromey@adacore.com>
5672
5673 * auto-load.c (show_auto_load_cmd): Remove.
5674 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5675 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5676 (maintenance_print_arc_command): Remove.
5677 * tui/tui-win.c (tui_command): Remove.
5678 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5679 * tui/tui-layout.c (tui_layout_command): Remove.
5680 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5681 * python/python.c (user_set_python, user_show_python): Remove.
5682 (_initialize_python): Use add_basic_prefix_cmd,
5683 add_show_prefix_cmd.
5684 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5685 (install_gdb_commands): Use add_basic_prefix_cmd,
5686 add_show_prefix_cmd.
5687 (info_guile_command): Remove.
5688 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5689 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5690 add_show_prefix_cmd.
5691 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5692 Remove do_set and do_show parameters.
5693 * cli/cli-style.c (set_style, show_style): Remove.
5694 (_initialize_cli_style): Use add_basic_prefix_cmd,
5695 add_show_prefix_cmd.
5696 (cli_style_option::add_setshow_commands): Remove do_set and
5697 do_show parameters.
5698 (cli_style_option::add_setshow_commands): Use
5699 add_basic_prefix_cmd, add_show_prefix_cmd.
5700 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5701 (set_style_name): Remove.
5702 * cli/cli-dump.c (dump_command, append_command): Remove.
5703 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5704 (tekhex_dump_command, binary_dump_command)
5705 (binary_append_command): Remove.
5706 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5707 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5708 (init_w32_command_list): Remove; move into ...
5709 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5710 * valprint.c (set_print, show_print, set_print_raw)
5711 (show_print_raw): Remove.
5712 (_initialize_valprint): Use add_basic_prefix_cmd,
5713 add_show_prefix_cmd.
5714 * typeprint.c (set_print_type, show_print_type): Remove.
5715 (_initialize_typeprint): Use add_basic_prefix_cmd,
5716 add_show_prefix_cmd.
5717 * record.c (set_record_command, show_record_command): Remove.
5718 (_initialize_record): Use add_basic_prefix_cmd,
5719 add_show_prefix_cmd.
5720 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5721 add_show_prefix_cmd.
5722 (info_command, show_command, set_debug, show_debug): Remove.
5723 * top.h (set_history, show_history): Don't declare.
5724 * top.c (set_history, show_history): Remove.
5725 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5726 (unset_tdesc_cmd): Remove.
5727 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5728 add_show_prefix_cmd.
5729 * symtab.c (info_module_command): Remove.
5730 (_initialize_symtab): Use add_basic_prefix_cmd.
5731 * symfile.c (overlay_command): Remove.
5732 (_initialize_symfile): Use add_basic_prefix_cmd.
5733 * sparc64-tdep.c (info_adi_command): Remove.
5734 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5735 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5736 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5737 add_show_prefix_cmd.
5738 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5739 (_initialize_serial): Use add_basic_prefix_cmd,
5740 add_show_prefix_cmd.
5741 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5742 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5743 add_show_prefix_cmd.
5744 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5745 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5746 add_show_prefix_cmd.
5747 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5748 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5749 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5750 add_show_prefix_cmd.
5751 * remote.c (remote_command, set_remote_cmd): Remove.
5752 (_initialize_remote): Use add_basic_prefix_cmd.
5753 * record-full.c (set_record_full_command)
5754 (show_record_full_command): Remove.
5755 (_initialize_record_full): Use add_basic_prefix_cmd,
5756 add_show_prefix_cmd.
5757 * record-btrace.c (cmd_set_record_btrace)
5758 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5759 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5760 (cmd_show_record_btrace_pt): Remove.
5761 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5762 add_show_prefix_cmd.
5763 * ravenscar-thread.c (set_ravenscar_command)
5764 (show_ravenscar_command): Remove.
5765 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5766 add_show_prefix_cmd.
5767 * mips-tdep.c (show_mips_command, set_mips_command)
5768 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5769 add_show_prefix_cmd.
5770 * maint.c (maintenance_command, maintenance_info_command)
5771 (maintenance_check_command, maintenance_print_command)
5772 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5773 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5774 add_show_prefix_cmd.
5775 (show_per_command_cmd): Remove.
5776 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5777 Remove.
5778 (maintenance_show_test_settings_cmd): Remove.
5779 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5780 add_show_prefix_cmd.
5781 * maint-test-options.c (maintenance_test_options_command):
5782 Remove.
5783 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5784 * macrocmd.c (macro_command): Remove
5785 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5786 * language.c (set_check, show_check): Remove.
5787 (_initialize_language): Use add_basic_prefix_cmd,
5788 add_show_prefix_cmd.
5789 * infcmd.c (unset_command): Remove.
5790 (_initialize_infcmd): Use add_basic_prefix_cmd.
5791 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5792 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5793 add_show_prefix_cmd.
5794 * go32-nat.c (go32_info_dos_command): Remove.
5795 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5796 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5797 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5798 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5799 (_initialize_frame): Use add_basic_prefix_cmd,
5800 add_show_prefix_cmd.
5801 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5802 (_initialize_dcache): Use add_basic_prefix_cmd,
5803 add_show_prefix_cmd.
5804 * cp-support.c (maint_cplus_command): Remove.
5805 (_initialize_cp_support): Use add_basic_prefix_cmd.
5806 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5807 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5808 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5809 add_basic_prefix_cmd, add_show_prefix_cmd.
5810 * breakpoint.c (save_command): Remove.
5811 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5812 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5813 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5814 add_show_prefix_cmd.
5815 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5816 (set_ada_command, show_ada_command): Remove.
5817 (_initialize_ada_language): Use add_basic_prefix_cmd,
5818 add_show_prefix_cmd.
5819 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5820
3557f442
KR
58212020-04-16 Kamil Rytarowski <n54@gmx.com>
5822
5823 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5824 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5825
16197208
SM
58262020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5827
5828 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5829 warning messages.
5830
00ac85d3
SM
58312020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5832
5833 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5834 import table is not at beginning of .idata section.
5835
381ce63f
PA
58362020-04-16 Pedro Alves <palves@redhat.com>
5837
5838 * inferior.c (delete_inferior): Use delete operator directly
5839 instead of delete_program_space.
5840 * progspace.c (add_program_space): New, factored out from
5841 program_space::program_space.
5842 (remove_program_space): New, factored out from
5843 delete_program_space.
5844 (program_space::program_space): Remove intro comment. Rewrite.
5845 (program_space::~program_space): Remove intro comment. Call
5846 remove_program_space.
5847 (delete_program_space): Delete.
5848 * progspace.h (program_space::program_space): Make explicit. Move
5849 intro comment here, adjusted.
5850 (program_space::~program_space): Move intro comment here,
5851 adjusted.
5852 (delete_program_space): Remove.
5853
a010605f
TT
58542020-04-16 Tom Tromey <tromey@adacore.com>
5855
5856 * windows-nat.c (windows_nat::handle_access_violation): New
5857 function.
5858 * nat/windows-nat.h (handle_access_violation): Declare.
5859 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5860 windows-nat.c. Call handle_access_violation.
5861
efba5c23
TV
58622020-04-16 Tom de Vries <tdevries@suse.de>
5863
5864 PR symtab/25791
5865 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5866 CUs without psymtab.
5867
97ed802d
KB
58682020-04-16 Kevin Buettner <kevinb@redhat.com>
5869
5870 * python/python.c (do_start_initialization): Don't call
5871 PyEval_InitThreads for Python 3.9 and beyond.
5872
c7d64809
KR
58732020-04-15 Kamil Rytarowski <n54@gmx.com>
5874
5875 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5876 thread functions.
5877 (obsd_nat_target::wait): Likewise.
5878
ce127a96
TT
58792020-04-15 Tom Tromey <tromey@adacore.com>
5880
5881 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5882 (DEBUG_EXCEPT): Use debug_printf.
5883
99f1bc6a
AB
58842020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5885
5886 * completer.c (class completion_tracker::completion_hash_entry)
5887 <hash_name>: New member function.
5888 (completion_tracker::discard_completions): New callback to hash a
5889 completion_hash_entry, pass this to htab_create_alloc.
5890
a0e9b532
JT
58912016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5892
5893 * windows-nat.c (windows_make_so): Warn rather than stopping with
5894 an error if realpath() fails.
5895
06ca5dd4
KR
58962020-04-14 Kamil Rytarowski <n54@gmx.com>
5897
5898 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5899 (nbsd_nat_target::info_proc): Add do_status.
5900
194d088f
TV
59012020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5902 Tom de Vries <tdevries@suse.de>
5903
5904 PR symtab/25718
5905 * psympriv.h (struct partial_symtab::read_symtab)
5906 (struct partial_symtab::expand_psymtab)
5907 (struct partial_symtab::read_dependencies): Update comments.
5908 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5909 read_symtab for includer.
5910 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5911 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5912 (struct dwarf2_include_psymtab::m_readin): Remove.
5913 (struct dwarf2_include_psymtab::includer): New member function.
5914 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5915
c1a66c06
TV
59162020-04-14 Tom de Vries <tdevries@suse.de>
5917
5918 PR symtab/25720
5919 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5920 with NULL symbol_matcher and lookup_name.
5921 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5922 and lookup_name.
5923 * dwarf2/read.c (dw2_expand_symtabs_matching)
5924 (dw2_debug_names_expand_symtabs_matching): Same.
5925 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5926 Make lookup_name a pointer. Update comment.
5927 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5928 lookup_name being a pointer.
5929 * symfile.c (expand_symtabs_matching): Same.
5930 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5931 * linespec.c (iterate_over_all_matching_symtabs): Same.
5932
400b5eca
TT
59332020-04-13 Tom Tromey <tom@tromey.com>
5934
5935 * run-on-main-thread.c: Update include.
5936 * unittests/main-thread-selftests.c: Update include.
5937 * tui/tui-win.c: Update include.
5938 * tui/tui-io.c: Update include.
5939 * tui/tui-interp.c: Update include.
5940 * tui/tui-hooks.c: Update include.
5941 * top.h: Update include.
5942 * top.c: Update include.
5943 * ser-base.c: Update include.
5944 * remote.c: Update include.
5945 * remote-notif.c: Update include.
5946 * remote-fileio.c: Update include.
5947 * record-full.c: Update include.
5948 * record-btrace.c: Update include.
5949 * python/python.c: Update include.
5950 * posix-hdep.c: Update include.
5951 * mingw-hdep.c: Update include.
5952 * mi/mi-main.c: Update include.
5953 * mi/mi-interp.c: Update include.
5954 * main.c: Update include.
5955 * linux-nat.c: Update include.
5956 * interps.c: Update include.
5957 * infrun.c: Update include.
5958 * inf-loop.c: Update include.
5959 * event-top.c: Update include.
5960 * event-loop.c: Move to ../gdbsupport/.
5961 * event-loop.h: Move to ../gdbsupport/.
5962 * async-event.h: Update include.
5963 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5964
93b54c8e
TT
59652020-04-13 Tom Tromey <tom@tromey.com>
5966
5967 * tui/tui-win.c: Include async-event.h.
5968 * remote.c: Include async-event.h.
5969 * remote-notif.c: Include async-event.h.
5970 * record-full.c: Include async-event.h.
5971 * record-btrace.c: Include async-event.h.
5972 * infrun.c: Include async-event.h.
5973 * event-top.c: Include async-event.h.
5974 * event-loop.h: Move some declarations to async-event.h.
5975 * event-loop.c: Don't include ser-event.h or top.h. Move some
5976 code to async-event.c.
5977 * async-event.h: New file.
5978 * async-event.c: New file.
5979 * Makefile.in (COMMON_SFILES): Add async-event.c.
5980 (HFILES_NO_SRCDIR): Add async-event.h.
5981
c1cd3163
TT
59822020-04-13 Tom Tromey <tom@tromey.com>
5983
5984 * utils.c (flush_streams): New function.
5985 * event-loop.c (gdb_wait_for_event): Call flush_streams.
5986
29f2bf4f
TT
59872020-04-13 Tom Tromey <tom@tromey.com>
5988
5989 * event-loop.c (handle_file_event): Use warning, not
5990 printf_unfiltered.
5991
98029d02
TT
59922020-04-13 Tom Tromey <tom@tromey.com>
5993
5994 * event-loop.c: Include <chrono>.
5995
06cc9596
TT
59962020-04-13 Tom Tromey <tom@tromey.com>
5997
5998 * gdb_select.h: Move to ../gdbsupport/.
5999 * event-loop.c: Update include path.
6000 * top.c: Update include path.
6001 * ser-base.c: Update include path.
6002 * ui-file.c: Update include path.
6003 * ser-tcp.c: Update include path.
6004 * guile/scm-ports.c: Update include path.
6005 * posix-hdep.c: Update include path.
6006 * ser-unix.c: Update include path.
6007 * gdb_usleep.c: Update include path.
6008 * mingw-hdep.c: Update include path.
6009 * inflow.c: Update include path.
6010 * infrun.c: Update include path.
6011 * event-top.c: Update include path.
6012
8ae8e197
TT
60132020-04-13 Tom Tromey <tom@tromey.com>
6014
6015 * configure: Rebuild.
6016 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6017
58cf28e8
TT
60182020-04-13 Tom Tromey <tom@tromey.com>
6019
6020 * event-loop.h (start_event_loop): Don't declare.
6021 * event-loop.c (start_event_loop): Move...
6022 * main.c (start_event_loop): ...here. Now static.
6023
b7f999ae
SDJ
60242020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6025
6026 * MAINTAINERS: Update my email address.
6027
1085dfd4
KR
60282020-04-12 Kamil Rytarowski <n54@gmx.com>
6029
6030 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6031 IP_ALL.
6032
49d1d1f5
KR
60332020-04-12 Kamil Rytarowski <n54@gmx.com>
6034
6035 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6036 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6037
b4848d2a
KR
60382020-04-12 Kamil Rytarowski <n54@gmx.com>
6039
6040 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6041 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6042
51c133d5
KR
60432020-04-12 Kamil Rytarowski <n54@gmx.com>
6044
6045 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6046
54b8cbd0
KR
60472020-04-11 Kamil Rytarowski <n54@gmx.com>
6048
6049 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6050 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6051 (nbsd_nat_target::info_proc): New functions.
6052 * nbsd-nat.c (kinfo_get_vmmap): New function.
6053 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6054 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6055 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6056 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6057 functions.
6058 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6059 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6060 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6061 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6062 (KINFO_VME_FLAG_GROWS_DOWN): New.
6063
cf83625d
AS
60642020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6065
6066 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6067 bit shift.
6068
0c4311ab
TT
60692020-04-10 Tom Tromey <tromey@adacore.com>
6070
6071 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6072
3e65b3e9
TT
60732020-04-10 Tom Tromey <tromey@adacore.com>
6074
6075 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6076 separate debug files.
6077
13302e95
HD
60782020-04-10 Hannes Domani <ssbssa@yahoo.de>
6079
6080 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6081 Move to...
6082 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6083 ... here.
6084 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6085 Check for STATUS_WX86_BREAKPOINT.
6086 (windows_nat_target::wait): Same.
6087
bdfc1e8a
TV
60882020-04-10 Tom de Vries <tdevries@suse.de>
6089
6090 PR cli/25808
6091 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6092
f4460aec
SM
60932020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6094
6095 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6096 (Write After Approval): Remove Tom de Vries.
6097
a25198bb
BE
60982020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6099
6100 revert partially:
6101 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6102
aac66a4c
SM
6103 * buildsym.c (record_line): Fix undefined behavior and preserve
6104 lines at eof.
a25198bb 6105
206c98a6
KR
61062020-04-09 Kamil Rytarowski <n54@gmx.com>
6107
6108 * auxv.h (svr4_auxv_parse): New.
6109 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6110 and generic_auxv_parse.
6111 (svr4_auxv_parse): Add.
6112 * obsd-tdep.c: Include "auxv.h".
6113 (obsd_auxv_parse): Remove.
6114 (obsd_init_abi): Remove comment.
6115 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6116 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6117 * nbsd-tdep.c: Include "auxv.h".
6118 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6119
71fbdbaf
TT
61202020-04-08 Tom Tromey <tromey@adacore.com>
6121
6122 * nat/windows-nat.h (last_wait_event): Don't declare.
6123 (wait_for_debug_event): Update comment.
6124 * nat/windows-nat.c (last_wait_event): Now static.
6125
2c1d95e8
TT
61262020-04-08 Tom Tromey <tromey@adacore.com>
6127
6128 * windows-nat.c (wait_for_debug_event): Move to
6129 nat/windows-nat.c.
6130 * nat/windows-nat.h (wait_for_debug_event): Declare.
6131 * nat/windows-nat.c (wait_for_debug_event): Move from
6132 windows-nat.c. No longer static.
6133
d2977bc4
TT
61342020-04-08 Tom Tromey <tromey@adacore.com>
6135
6136 * windows-nat.c (get_windows_debug_event): Use
6137 fetch_pending_stop.
6138 * nat/windows-nat.h (fetch_pending_stop): Declare.
6139 * nat/windows-nat.c (fetch_pending_stop): New function.
6140
e758e19c
TT
61412020-04-08 Tom Tromey <tromey@adacore.com>
6142
6143 * windows-nat.c (windows_continue): Use matching_pending_stop and
6144 continue_last_debug_event.
6145 * nat/windows-nat.h (matching_pending_stop)
6146 (continue_last_debug_event): Declare.
6147 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6148 (matching_pending_stop, continue_last_debug_event): New
6149 functions.
6150
8d30e395
TT
61512020-04-08 Tom Tromey <tromey@adacore.com>
6152
6153 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6154 (handle_exception_result): Move to nat/windows-nat.h.
6155 (DEBUG_EXCEPTION_SIMPLE): Remove.
6156 (windows_nat::handle_ms_vc_exception): New function.
6157 (handle_exception): Move to nat/windows-nat.c.
6158 (get_windows_debug_event): Update.
6159 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6160 nat/windows-nat.c.
6161 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6162 (handle_exception_result): Move from windows-nat.c.
6163 (handle_exception): Declare.
6164 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6165 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6166 windows-nat.c.
6167
29de418d
TT
61682020-04-08 Tom Tromey <tromey@adacore.com>
6169
6170 * windows-nat.c (exception_count, event_count): Remove.
6171 (handle_exception, get_windows_debug_event)
6172 (do_initial_windows_stuff): Update.
6173
a816ba18
TT
61742020-04-08 Tom Tromey <tromey@adacore.com>
6175
6176 * windows-nat.c (windows_nat::handle_load_dll)
6177 (windows_nat::handle_unload_dll): Rename. No longer static.
6178 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6179 Declare.
6180
a00caa12
TT
61812020-04-08 Tom Tromey <tromey@adacore.com>
6182
6183 * complaints.h (stop_whining): Declare at top-level.
6184 (complaint): Don't declare stop_whining.
6185
d41b524f
TT
61862020-04-08 Tom Tromey <tromey@adacore.com>
6187
6188 * windows-nat.c (windows_nat::handle_output_debug_string):
6189 Rename. No longer static.
6190 * nat/windows-nat.h (handle_output_debug_string): Declare.
6191
3c76026d
TT
61922020-04-08 Tom Tromey <tromey@adacore.com>
6193
6194 * windows-nat.c (current_process_handle, current_process_id)
6195 (main_thread_id, last_sig, current_event, last_wait_event)
6196 (current_windows_thread, desired_stop_thread_id, pending_stops)
6197 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6198 (display_selectors, fake_create_process)
6199 (get_windows_debug_event): Update.
6200 * nat/windows-nat.h (current_process_handle, current_process_id)
6201 (main_thread_id, last_sig, current_event, last_wait_event)
6202 (current_windows_thread, desired_stop_thread_id, pending_stops)
6203 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6204 * nat/windows-nat.c (current_process_handle, current_process_id)
6205 (main_thread_id, last_sig, current_event, last_wait_event)
6206 (current_windows_thread, desired_stop_thread_id, pending_stops)
6207 (siginfo_er): New globals. Move from windows-nat.c.
6208
9d8679cc
TT
62092020-04-08 Tom Tromey <tromey@adacore.com>
6210
6211 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6212 (handle_load_dll): Update.
6213 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6214
28688adf
TT
62152020-04-08 Tom Tromey <tromey@adacore.com>
6216
6217 * windows-nat.c (enum thread_disposition_type): Move to
6218 nat/windows-nat.h.
6219 (windows_nat::thread_rec): Rename from thread_rec. No longer
6220 static.
6221 (windows_add_thread, windows_nat_target::fetch_registers)
6222 (windows_nat_target::store_registers, handle_exception)
6223 (windows_nat_target::resume, get_windows_debug_event)
6224 (windows_nat_target::get_tib_address)
6225 (windows_nat_target::thread_name)
6226 (windows_nat_target::thread_alive): Update.
6227 * nat/windows-nat.h (enum thread_disposition_type): Move from
6228 windows-nat.c.
6229 (thread_rec): Declare.
6230
4834dad0
TT
62312020-04-08 Tom Tromey <tromey@adacore.com>
6232
6233 * windows-nat.c: Add "using namespace".
6234 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6235 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6236
65bafd5b
TT
62372020-04-08 Tom Tromey <tromey@adacore.com>
6238
6239 * nat/windows-nat.h (struct windows_thread_info): Declare
6240 destructor.
6241 * nat/windows-nat.c (~windows_thread_info): New.
6242
0a4afda3
TT
62432020-04-08 Tom Tromey <tromey@adacore.com>
6244
6245 PR gdb/22992
6246 * windows-nat.c (current_event): Update comment.
6247 (last_wait_event, desired_stop_thread_id): New globals.
6248 (struct pending_stop): New.
6249 (pending_stops): New global.
6250 (windows_nat_target) <stopped_by_sw_breakpoint>
6251 <supports_stopped_by_sw_breakpoint>: New methods.
6252 (windows_fetch_one_register): Add assertions. Adjust PC.
6253 (windows_continue): Handle pending stops. Suspend other threads
6254 when stepping. Use last_wait_event
6255 (wait_for_debug_event): New function.
6256 (get_windows_debug_event): Use wait_for_debug_event. Handle
6257 pending stops. Queue spurious stops.
6258 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6259 (windows_nat_target::kill): Use wait_for_debug_event.
6260 * nat/windows-nat.h (struct windows_thread_info)
6261 <stopped_at_software_breakpoint>: New field.
6262 * nat/windows-nat.c (windows_thread_info::resume): Clear
6263 stopped_at_software_breakpoint.
6264
8e61ebec
TT
62652020-04-08 Tom Tromey <tromey@adacore.com>
6266
6267 * windows-nat.c (enum thread_disposition_type): New.
6268 (thread_rec): Replace "get_context" parameter with "disposition";
6269 change type.
6270 (windows_add_thread, windows_nat_target::fetch_registers)
6271 (windows_nat_target::store_registers, handle_exception)
6272 (windows_nat_target::resume, get_windows_debug_event)
6273 (windows_nat_target::get_tib_address)
6274 (windows_nat_target::thread_name)
6275 (windows_nat_target::thread_alive): Update.
6276
98a03287
TT
62772020-04-08 Tom Tromey <tromey@adacore.com>
6278
6279 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6280 (windows_continue): Use windows_continue::resume.
6281 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6282 resume>: Declare new methods.
6283 * nat/windows-nat.c: New file.
6284 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6285
7c7411bc
TT
62862020-04-08 Tom Tromey <tromey@adacore.com>
6287
6288 * windows-nat.c (windows_add_thread, windows_delete_thread)
6289 (windows_nat_target::fetch_registers)
6290 (windows_nat_target::store_registers, fake_create_process)
6291 (windows_nat_target::resume, windows_nat_target::resume)
6292 (get_windows_debug_event, windows_nat_target::wait)
6293 (windows_nat_target::pid_to_str)
6294 (windows_nat_target::get_tib_address)
6295 (windows_nat_target::get_ada_task_ptid)
6296 (windows_nat_target::thread_name)
6297 (windows_nat_target::thread_alive): Use lwp, not tid.
6298
2950fdf7
TT
62992020-04-08 Tom Tromey <tromey@adacore.com>
6300
6301 * windows-nat.c (handle_exception)
6302 (windows_nat_target::thread_name): Update.
6303 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6304 <name>: Now unique_xmalloc_ptr.
6305
62fe396b
TT
63062020-04-08 Tom Tromey <tromey@adacore.com>
6307
6308 * windows-nat.c (thread_rec)
6309 (windows_nat_target::fetch_registers): Update.
6310 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6311 Update comment.
6312 <debug_registers_changed, reload_context>: Now bool.
6313
e9534bd2
TT
63142020-04-08 Tom Tromey <tromey@adacore.com>
6315
6316 * windows-nat.c (windows_add_thread): Use new.
6317 (windows_init_thread_list, windows_delete_thread): Use delete.
6318 (get_windows_debug_event): Update.
6319 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6320 destructor, and initializers.
6321
ae1f8880
TT
63222020-04-08 Tom Tromey <tromey@adacore.com>
6323
6324 * windows-nat.c (struct windows_thread_info): Remove.
6325 * nat/windows-nat.h: New file.
6326
55a1e039
TT
63272020-04-08 Tom Tromey <tromey@adacore.com>
6328
6329 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6330 (thread_rec, windows_add_thread, windows_delete_thread)
6331 (windows_continue): Update.
6332
93366324
TT
63332020-04-08 Tom Tromey <tromey@adacore.com>
6334
6335 * windows-nat.c (struct windows_thread_info): Remove typedef.
6336 (thread_head): Remove.
6337 (thread_list): New global.
6338 (thread_rec, windows_add_thread, windows_init_thread_list)
6339 (windows_delete_thread, windows_continue): Update.
6340
0f2265e2
SM
63412020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6342
6343 * windows-tdep.h (windows_init_abi): Add comment.
6344 (cygwin_init_abi): New declaration.
6345 * windows-tdep.c: Split signal enumeration in two, one for
6346 Windows and one for Cygwin.
6347 (windows_gdb_signal_to_target): Only deal with signal of the
6348 Windows OS ABI.
6349 (cygwin_gdb_signal_to_target): New function.
6350 (windows_init_abi): Rename to windows_init_abi_common, don't set
6351 gdb_signal_to_target gdbarch method. Add new new function with
6352 this name.
6353 (cygwin_init_abi): New function.
6354 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6355 comment. Don't call windows_init_abi.
6356 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6357 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6358 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6359 i386_windows_init_abi_common, don't call windows_init_abi. Add
6360 a new function of this name.
6361 (i386_cygwin_init_abi): New function.
6362 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6363 OS ABI Cygwin.
6364
3810f182
SM
63652020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6366
6367 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6368 parameter.c.
6369 (dwarf2_read_gdb_index): Update.
6370
063f8e80
KR
63712020-04-07 Kamil Rytarowski <n54@gmx.com>
6372
6373 * nbsd-tdep.c: Include "objfiles.h".
6374 (nbsd_skip_solib_resolver): New.
6375 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6376
85a9510c 63772020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6378
6379 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6380 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6381 with DW_LLE_base_addressx are being emitted in DWARFv5.
6382 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6383 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6384 unsigned integer.
6385
9fc3eaae 63862020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6387
6388 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6389 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6390 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6391 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6392 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6393 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6394 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6395
6396
41144253 63972020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6398
6399 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6400 (read_loclist_index): New function definition.
6401 (lookup_loclist_base): New function definition.
6402 (read_loclist_header): New function definition.
6403 (dwarf2_cu): Add loclist_base and loclist_header field.
6404 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6405 (read_full_die_1): Read the value of DW_AT_loclists_base.
6406 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6407 (read_attribute_value): Handle DW_FORM_loclistx.
6408 (skip_one_die): Handle DW_FORM_loclistx.
6409 (loclist_header): New structure declaration.
6410 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6411
9f4e76a4
SM
64122020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6413
6414 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6415 constructor. Remove `addr` parameter from other constructor and
6416 add `per_cu` parameter.
6417 * dwarf2/read.c (create_partial_symtab): Update.
6418
25c11aca
TV
64192020-04-07 Tom de Vries <tdevries@suse.de>
6420
6421 PR symtab/25796
6422 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6423 (partial_die_info::fixup): Inherit has_const_value.
6424
5707e24b
TV
64252020-04-07 Tom de Vries <tdevries@suse.de>
6426
6427 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6428 symbols without address.
6429
05f00e22
KR
64302020-04-06 Kamil Rytarowski <n54@gmx.com>
6431
6432 * nbsd-nat.h (struct thread_info): Add forward declaration.
6433 (nbsd_nat_target::thread_alive): Add.
6434 (nbsd_nat_target::thread_name): Likewise.
6435 (nbsd_nat_target::update_thread_list): Likewise.
6436 (update_thread_list::post_attach): Likewise.
6437 (post_attach::pid_to_str): Likewise.
6438 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6439 (nbsd_thread_lister): Add.
6440 (nbsd_nat_target::thread_alive): Likewise.
6441 (nbsd_nat_target::thread_name): Likewise.
6442 (nbsd_add_threads): Likewise.
6443 (update_thread_list::post_attach): Likewise.
6444 (nbsd_nat_target::update_thread_list): Likewise.
6445 (post_attach::pid_to_str): Likewise.
6446
6ee448cc
TT
64472020-04-06 Tom Tromey <tromey@adacore.com>
6448
6449 * ada-valprint.c (print_variant_part): Extract the variant field.
6450 (print_field_values): Use the field as the outer value when
6451 recursing.
6452
dea34e8c
TT
64532020-04-06 Tom Tromey <tromey@adacore.com>
6454
6455 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6456 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6457 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6458 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6459 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6460
93689ce9
TT
64612020-04-06 Tom Tromey <tromey@adacore.com>
6462
6463 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6464 TYPE_CODE_ERROR.
6465
79743962
KR
64662020-04-06 Kamil Rytarowski <n54@gmx.com>
6467
6468 * nbsd-tdep.c: Include "gdbarch.h".
6469 Define enum with NetBSD signal numbers.
6470 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6471 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6472 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6473 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6474 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6475 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6476 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6477 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6478 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6479 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6480 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6481 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6482
9e7c9a03
HD
64832020-04-03 Hannes Domani <ssbssa@yahoo.de>
6484
6485 PR gdb/25325
6486 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6487
d9e49b61
TT
64882020-04-03 Tom Tromey <tromey@adacore.com>
6489
6490 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6491 Read constant block.
6492
e0fc5c3f
SM
64932020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6494
6495 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6496 (gdb_bfd_get_full_section_contents): New declaration.
6497 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6498 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6499 gdb_bfd_get_full_section_contents.
6500
e2ff18a0
SM
65012020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6502
6503 * exec.c (build_section_table): Replace internal_error with
6504 gdb_assert.
6505 (section_table_xfer_memory_partial): Likewise.
6506 * mdebugread.c (parse_partial_symbols): Likewise.
6507 * psymtab.c (lookup_partial_symbol): Likewise.
6508 * utils.c (wrap_here): Likewise.
6509
0830d301
TT
65102020-04-02 Tom Tromey <tromey@adacore.com>
6511
6512 * f-lang.c (build_fortran_types): Use arch_type to initialize
6513 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6514
e7da7f8f
TT
65152020-04-02 Tom Tromey <tromey@adacore.com>
6516
6517 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6518 of attributes.
6519
c90d28ac
AB
65202020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6521 Bernd Edlinger <bernd.edlinger@hotmail.de>
6522 Tom Tromey <tromey@adacore.com>
6523
6524 * buildsym.c (buildsym_compunit::record_line): Remove
6525 deduplication code.
6526
1aa98955
TV
65272020-04-02 Tom de Vries <tdevries@suse.de>
6528
6529 PR ada/24671
6530 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6531
d3214198
TV
65322020-04-02 Tom de Vries <tdevries@suse.de>
6533
6534 * dwarf2/read.c (dwarf2_gdb_index_functions,
6535 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6536 NULL.
6537 * psymtab.c (psym_lookup_global_symbol_language): New function.
6538 (psym_functions): Init psym_lookup_global_symbol_language with
6539 psym_lookup_global_symbol_language.
6540 * symfile-debug.c (debug_sym_quick_functions): Init
6541 lookup_global_symbol_language with NULL.
6542 * symfile.c (set_initial_language): Remove fixme comment.
6543 * symfile.h (struct quick_symbol_functions): Add
6544 lookup_global_symbol_language.
6545 * symtab.c (find_quick_global_symbol_language): New function.
6546 (find_main_name): Use find_quick_global_symbol_language.
6547
2836752f
SM
65482020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6549
6550 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6551
64dc2d4b
BE
65522020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6553
6554 * buildsym.c (record_line): Fix undefined behavior and preserve
6555 lines at eof.
6556
bbe3dc41
BE
65572020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6558
6559 * buildsym.c (record_line): Fix the resizing condition.
6560
6b4a335b
TT
65612020-04-01 Tom Tromey <tom@tromey.com>
6562
6563 * value.h (value_literal_complex): Add comment.
6564 * valops.c (value_literal_complex): Refer to value.h.
6565
3638a098
TT
65662020-04-01 Tom Tromey <tom@tromey.com>
6567
6568 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6569 (scalar_type): New rule, from typebase.
6570 (typebase): Use scalar_type. Recognize complex types.
6571 (field_name): Handle FLOAT_KEYWORD.
6572 (ident_tokens): Add _Complex and __complex__.
6573
c34e8714
TT
65742020-04-01 Tom Tromey <tom@tromey.com>
6575
6576 PR exp/25299:
6577 * valarith.c (promotion_type, complex_binop): New functions.
6578 (scalar_binop): Handle complex numbers. Use promotion_type.
6579 (value_pos, value_neg, value_complement): Handle complex numbers.
6580
fa649bb7
TT
65812020-04-01 Tom Tromey <tom@tromey.com>
6582
6583 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6584 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6585 (parse_number): Handle complex numbers.
6586
981c08ce
TT
65872020-04-01 Tom Tromey <tom@tromey.com>
6588
6589 * c-valprint.c (c_decorations): Change complex suffix to "i".
6590
4c99290d
TT
65912020-04-01 Tom Tromey <tom@tromey.com>
6592
6593 * valprint.c (generic_value_print_complex): Use accessors.
6594 * value.h (value_real_part, value_imaginary_part): Declare.
6595 * valops.c (value_real_part, value_imaginary_part): New
6596 functions.
6597 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6598
5b930b45
TT
65992020-04-01 Tom Tromey <tom@tromey.com>
6600
6601 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6602 (read_range_type): Update.
6603 * mdebugread.c (basic_type): Update.
6604 * go-lang.c (build_go_types): Use init_complex_type.
6605 * gdbtypes.h (struct main_type) <complex_type>: New member.
6606 (init_complex_type): Update.
6607 (arch_complex_type): Don't declare.
6608 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6609 Make name if none given. Use alloc_type_copy. Look for cached
6610 complex type.
6611 (arch_complex_type): Remove.
6612 (gdbtypes_post_init): Use init_complex_type.
6613 * f-lang.c (build_fortran_types): Use init_complex_type.
6614 * dwarf2/read.c (read_base_type): Update.
6615 * d-lang.c (build_d_types): Use init_complex_type.
6616 * ctfread.c (read_base_type): Update.
6617
53cccef1
TBA
66182020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6619
6620 * infrun.c (stop_all_threads): Update assertion, plus when
6621 stopping threads, take into account that we might be trying
6622 to stop an all-stop target.
6623 (stop_waiting): Call 'stop_all_threads' if there exists a
6624 non-stop target.
6625
a0714d30
TBA
66262020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6627
6628 * target.h (exists_non_stop_target): New function declaration.
6629 * target.c (exists_non_stop_target): New function.
6630
60e22c1e
HD
66312020-04-01 Hannes Domani <ssbssa@yahoo.de>
6632
6633 PR gdb/24789
6634 * eval.c (is_integral_or_integral_reference): New function.
6635 (evaluate_subexp_standard): Allow integer references in
6636 pointer arithmetic.
6637
e139a727
TBA
66382020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6639
6640 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6641 check for no ptid in the stop reply when the target is non-stop.
6642
e0802d59
TT
66432020-04-01 Tom Tromey <tromey@adacore.com>
6644
6645 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6646 "name" parameter to rvalue reference. Initialize m_name_holder.
6647 <lookup_name_info>: New overloads.
6648 <name>: Return gdb::string_view.
6649 <c_str>: New method.
6650 <make_ignore_params>: Update.
6651 <search_name_hash>: Update.
6652 <language_lookup_name>: Return const char *.
6653 <m_name>: Change type.
6654 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6655 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6656 (lookup_name_info::match_any): Update.
6657 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6658 Update.
6659 * minsyms.c (linkage_name_str): Update.
6660 * language.c (default_symbol_name_matcher): Update.
6661 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6662 Update.
6663 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6664 (ada_lookup_name_info::ada_lookup_name_info): Update.
6665 (literal_symbol_name_matcher): Update.
6666
8c072cb6
TT
66672020-04-01 Tom Tromey <tromey@adacore.com>
6668
6669 * psymtab.c (psymtab_search_name): Remove function.
6670 (psym_lookup_symbol): Create search name and lookup name here.
6671 (lookup_partial_symbol): Remove "name" parameter; add
6672 lookup_name.
6673 (psym_expand_symtabs_for_function): Update.
6674
6f29a534
TT
66752020-03-31 Joel Jones <joelkevinjones@gmail.com>
6676
6677 PR tui/25597:
6678 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6679
af62665e
TT
66802020-03-31 Tom Tromey <tromey@adacore.com>
6681
6682 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6683 memcpy.
6684
d1a89da5
NC
66852020-03-30 Nelson Chu <nelson.chu@sifive.com>
6686
6687 * features/riscv/32bit-csr.xml: Regenerated.
6688 * features/riscv/64bit-csr.xml: Regenerated.
6689
d8af9068
TT
66902020-03-30 Tom Tromey <tromey@adacore.com>
6691
6692 * ada-valprint.c (print_variant_part): Update.
6693 * ada-lang.h (ada_which_variant_applies): Update.
6694 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6695 outer_valaddr parameters; replace with "outer" value parameter.
6696 (to_fixed_variant_branch_type): Update.
6697
227c0bf4
PFC
66982020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6699
6700 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6701 <list>. Remove inclusion of observable.h.
6702 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6703 (struct arch_lwp_info): New struct.
6704 (class ppc_linux_dreg_interface): New class.
6705 (struct ppc_linux_process_info): New struct.
6706 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6707 <low_new_clone, low_forget_process, low_prepare_to_resume>
6708 <copy_thread_dreg_state, mark_thread_stale>
6709 <mark_debug_registers_changed, register_hw_breakpoint>
6710 <clear_hw_breakpoint, register_wp, clear_wp>
6711 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6712 <num_memory_accesses, get_trigger_type>
6713 <create_watchpoint_request, hwdebug_point_cmp>
6714 <init_arch_lwp_info, get_arch_lwp_info>
6715 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6716 methods.
6717 <struct ptid_hash>: New inner struct.
6718 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6719 members.
6720 (saved_dabr_value, hwdebug_info, max_slots_number)
6721 (struct hw_break_tuple, struct thread_points, ppc_threads)
6722 (have_ptrace_hwdebug_interface)
6723 (hwdebug_find_thread_points_by_tid)
6724 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6725 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6726 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6727 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6728 use m_dreg_interface.
6729 (hwdebug_point_cmp): Change to...
6730 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6731 reference arguments instead of pointers.
6732 (ppc_linux_nat_target::ranged_break_num_registers): Use
6733 m_dreg_interface.
6734 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6735 m_dreg_interface. Call register_hw_breakpoint.
6736 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6737 m_dreg_interface. Call clear_hw_breakpoint.
6738 (get_trigger_type): Change to...
6739 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6740 comment.
6741 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6742 use m_dreg_interface. Call register_hw_breakpoint.
6743 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6744 use m_dreg_interface. Call clear_hw_breakpoint.
6745 (can_use_watchpoint_cond_accel): Change to...
6746 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6747 method. Update comment, use m_dreg_interface and
6748 m_process_info.
6749 (calculate_dvc): Change to...
6750 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6751 m_dreg_interface.
6752 (num_memory_accesses): Change to...
6753 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6754 (check_condition): Change to...
6755 (ppc_linux_nat_target::check_condition): ...this method.
6756 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6757 comment, use m_dreg_interface.
6758 (create_watchpoint_request): Change to...
6759 (ppc_linux_nat_target::create_watchpoint_request): ...this
6760 method. Use m_dreg_interface.
6761 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6762 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6763 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6764 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6765 (ppc_linux_nat_target::low_forget_process)
6766 (ppc_linux_nat_target::low_new_fork)
6767 (ppc_linux_nat_target::low_new_clone)
6768 (ppc_linux_nat_target::low_delete_thread)
6769 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6770 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6771 only call mark_thread_stale.
6772 (ppc_linux_thread_exit): Remove.
6773 (ppc_linux_nat_target::stopped_data_address): Change to...
6774 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6775 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6776 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6777 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6778 comment. Call low_stopped_data_address.
6779 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6780 m_dreg_interface.
6781 (ppc_linux_nat_target::masked_watch_num_registers): Use
6782 m_dreg_interface.
6783 (ppc_linux_nat_target::copy_thread_dreg_state)
6784 (ppc_linux_nat_target::mark_thread_stale)
6785 (ppc_linux_nat_target::mark_debug_registers_changed)
6786 (ppc_linux_nat_target::register_hw_breakpoint)
6787 (ppc_linux_nat_target::clear_hw_breakpoint)
6788 (ppc_linux_nat_target::register_wp)
6789 (ppc_linux_nat_target::clear_wp)
6790 (ppc_linux_nat_target::init_arch_lwp_info)
6791 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6792 (_initialize_ppc_linux_nat): Remove observer callback.
6793
4db10d8f
PFC
67942020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6795
6796 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6797 (ppc_linux_nat_target::auxv_parse)
6798 (ppc_linux_nat_target::read_description)
6799 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6800 Move up.
6801
1310c1b0
PFC
68022020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6803
6804 * linux-nat.h (low_new_clone): New method.
6805 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6806
69b037c3
SM
68072020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6808
6809 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6810 (dbx_expand_psymtab): ... this.
6811 (start_psymtab): Update.
6812 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6813 (mdebug_expand_psymtab): ... this.
6814 (parse_partial_symbols): Update.
6815 (new_psymtab): Update.
6816 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6817 (xcoff_expand_psymtab): ... this.
6818 (xcoff_start_psymtab): Update.
6819
48993951
SM
68202020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6821
6822 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6823 <expand_dependencies>: ... this.
6824 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6825 (partial_symtab::expand_dependencies): ... this.
6826 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6827 Update.
6828 (dwarf2_psymtab::expand_psymtab): Update.
6829 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6830 * mdebugread.c (psymtab_to_symtab_1): Update.
6831 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6832
3ad83046
SM
68332020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6834
6835 * psympriv.h (discard_psymtab): Remove.
6836 * dbxread.c (dbx_end_psymtab): Update.
6837 * xcoffread.c (xcoff_end_psymtab): Update.
6838
4d1b9ab6
TT
68392020-03-28 Tom Tromey <tom@tromey.com>
6840
6841 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6842 comment.
6843
f1749218
TT
68442020-03-28 Tom Tromey <tom@tromey.com>
6845
6846 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6847
ebea7626
HD
68482020-03-27 Hannes Domani <ssbssa@yahoo.de>
6849
6850 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6851
a879b4d5
JB
68522020-03-26 John Baldwin <jhb@FreeBSD.org>
6853
6854 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6855
0826b30a
TT
68562020-03-26 Tom Tromey <tom@tromey.com>
6857
6858 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6859 (mark_common_block_symbol_computed, read_tag_string_type)
6860 (attr_to_dynamic_prop, read_subrange_type): Update.
6861 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6862 to be methods on struct attribute.
6863 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6864 (read_call_site_scope, partial_die_info::read)
6865 (partial_die_info::read, lookup_die_type, follow_die_ref):
6866 Update.
6867 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6868 from dwarf2_get_ref_die_offset.
6869 (attribute::constant_value): New method, from
6870 dwarf2_get_attr_constant_value.
6871 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6872 Declare method.
6873 <constant_value>: New method.
6874
2b2558bf
TT
68752020-03-26 Tom Tromey <tom@tromey.com>
6876
6877 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6878 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6879 (dwarf_type_encoding_name): Move to stringify.c.
6880 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6881 * dwarf2/stringify.c: New file.
6882 * dwarf2/stringify.h: New file.
6883
eeb64781
TT
68842020-03-26 Tom Tromey <tom@tromey.com>
6885
6886 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6887 Rewrite.
6888
a39fdb41
TT
68892020-03-26 Tom Tromey <tom@tromey.com>
6890
6891 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6892 methods.
6893 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6894 (lookup_ranges_base): Likewise.
6895 (read_cutu_die_from_dwo, read_full_die_1): Update.
6896
436c571c
TT
68972020-03-26 Tom Tromey <tom@tromey.com>
6898
6899 * dwarf2/read.c (read_import_statement, read_file_scope)
6900 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6901 (read_lexical_block_scope, read_call_site_scope)
6902 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6903 (handle_struct_member_die, process_structure_scope)
6904 (update_enumeration_type_from_children)
6905 (process_enumeration_scope, read_array_type, read_common_block)
6906 (read_namespace, read_module, read_subroutine_type): Update.
6907 (sibling_die): Remove.
6908
052c8bb8
TT
69092020-03-26 Tom Tromey <tom@tromey.com>
6910
6911 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6912 (build_type_psymtabs_reader, read_structure_type)
6913 (read_enumeration_type, read_full_die_1): Update.
6914 (dwarf2_attr_no_follow): Move to die.h.
6915 * dwarf2/die.h (struct die_info) <attr>: New method.
6916
2b24b6e4
TT
69172020-03-26 Tom Tromey <tom@tromey.com>
6918
6919 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6920 <base_address>: Now an optional.
6921 (dwarf2_find_base_address, dwarf2_rnglists_process)
6922 (dwarf2_ranges_process, fill_in_loclist_baton)
6923 (dwarf2_symbol_mark_computed): Update.
6924
c2d50fd0
TT
69252020-03-26 Tom Tromey <tom@tromey.com>
6926
6927 * dwarf2/read.c (struct die_info): Move to die.h.
6928 * dwarf2/die.h: New file.
6929
0df7ad3a
TT
69302020-03-26 Tom Tromey <tom@tromey.com>
6931
6932 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6933 * dwarf2/read.c
6934 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6935 Move to line-header.c.
6936 (read_checked_initial_length_and_offset, read_formatted_entries):
6937 Likewise.
6938 (dwarf_decode_line_header): Split into two.
6939 * dwarf2/line-header.c
6940 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6941 Move from read.c.
6942 (read_checked_initial_length_and_offset, read_formatted_entries):
6943 Likewise.
6944 (dwarf_decode_line_header): New function, split from read.c.
6945
86c0bb4c
TT
69462020-03-26 Tom Tromey <tom@tromey.com>
6947
6948 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6949 Declare method.
6950 * dwarf2/read.c (read_attribute_value): Update.
6951 (dwarf2_per_objfile::read_line_string): Rename from
6952 read_indirect_line_string.
6953 (read_formatted_entries): Update.
6954
2ef46c2f
TT
69552020-03-26 Tom Tromey <tom@tromey.com>
6956
6957 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6958 variable.
6959
4f9c1eda
TT
69602020-03-26 Tom Tromey <tom@tromey.com>
6961
6962 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6963 const.
6964 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6965 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6966 parameter const.
6967
5a0e026f
TT
69682020-03-26 Tom Tromey <tom@tromey.com>
6969
6970 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6971 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6972 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6973 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6974
8844c11b
TT
69752020-03-26 Tom Tromey <tom@tromey.com>
6976
6977 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6978 file_names_size, file_full_name, file_file_name>: Use const.
6979 <file_name_at, file_names>: Add const overload.
6980 * dwarf2/line-header.c (line_header::file_file_name)
6981 (line_header::file_full_name): Update.
6982
c90ec28a
TT
69832020-03-26 Tom Tromey <tom@tromey.com>
6984
6985 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
6986 (macro_start_file, consume_improper_spaces)
6987 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
6988 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
6989 (dwarf_decode_macros): Move to macro.c.
6990 * dwarf2/macro.c: New file.
6991 * dwarf2/macro.h: New file.
6992 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
6993
4f44ae6c
TT
69942020-03-26 Tom Tromey <tom@tromey.com>
6995
6996 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
6997 method.
6998 * dwarf2/section.c: New method. From
6999 read_indirect_string_at_offset_from.
7000 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7001 (read_indirect_string_at_offset_from): Move to section.c.
7002 (read_indirect_string_at_offset): Rewrite.
7003 (read_indirect_line_string_at_offset): Remove.
7004 (read_indirect_string, read_indirect_line_string)
7005 (dwarf_decode_macro_bytes): Update.
7006
a0194fa8
TT
70072020-03-26 Tom Tromey <tom@tromey.com>
7008
7009 * dwarf2/section.h (struct dwarf2_section_info)
7010 <overload_complaint>: Declare.
7011 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7012 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7013 Rename from dwarf2_section_buffer_overflow_complaint.
7014 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7015 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7016
3d27bbdb
TT
70172020-03-26 Tom Tromey <tom@tromey.com>
7018
7019 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7020 Declare.
7021 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7022 Move from read.c.
7023 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7024 to section.c.
7025
9eac9650
TT
70262020-03-26 Tom Tromey <tom@tromey.com>
7027
7028 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7029
bf80d710
TT
70302020-03-26 Tom Tromey <tom@tromey.com>
7031
7032 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7033 "builder".
7034 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7035 parameter.
7036 (dwarf_decode_macros): Update.
7037
0314b390
TT
70382020-03-26 Tom Tromey <tom@tromey.com>
7039
7040 * dwarf2/read.c (read_attribute_value): Update.
7041 (read_indirect_string_from_dwz): Move to dwz.c; change into
7042 method.
7043 (dwarf_decode_macro_bytes): Update.
7044 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7045 * dwarf2/dwz.c: New file.
7046 * Makefile.in (COMMON_SFILES): Add dwz.c.
7047
9fda78b6
TT
70482020-03-26 Tom Tromey <tom@tromey.com>
7049
7050 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7051 * dwarf2/read.c: Add include.
7052 * dwarf2/index-write.c: Add include.
7053 * dwarf2/index-cache.c: Add include.
7054 * dwarf2/dwz.h: New file.
7055
33aa3c10
TT
70562020-03-25 Tom Tromey <tom@tromey.com>
7057
7058 * compile/compile-object-load.c (get_out_value_type): Mention
7059 correct symbol name in error message.
7060
d503b685
HD
70612020-03-25 Hannes Domani <ssbssa@yahoo.de>
7062
7063 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7064
7b1eff95
TV
70652020-03-25 Tom de Vries <tdevries@suse.de>
7066
7067 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7068 * symmisc.c (dump_symtab_1): Print user and includes fields.
7069 (maintenance_info_symtabs): Same.
7070
dd895392
AB
70712020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 PR gdb/25534
7074 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7075 (riscv_regcache_cooked_write): New function.
7076 (riscv_push_dummy_call): Use new function.
7077 (riscv_return_value): Likewise.
7078
5ab2fbf1
SM
70792020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7080
7081 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7082 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7083 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7084 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7085 * infrun.c (follow_fork): Likewise.
7086 (follow_fork_inferior): Likewise.
7087 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7088 * linux-nat.h (class linux_nat_target): Likewise.
7089 * remote.c (class remote_target) <follow_fork>: Likewise.
7090 (remote_target::follow_fork): Likewise.
7091 * target-delegates.c: Re-generate.
7092 * target.c (default_follow_fork): Likewise.
7093 (target_follow_fork): Likewise.
7094 * target.h (struct target_ops) <follow_fork>: Likewise.
7095 (target_follow_fork): Likewise.
7096
a64fafb5
TV
70972020-03-24 Tom de Vries <tdevries@suse.de>
7098
7099 * psymtab.c (maintenance_info_psymtabs): Print user field.
7100
fe26d3a3
TT
71012020-03-20 Tom Tromey <tromey@adacore.com>
7102
7103 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7104 const.
7105 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7106 const.
7107
c884cc46
SM
71082020-03-20 Simon Marchi <simon.marchi@efficios.com>
7109
7110 * ptrace.m4: Don't check for ptrace declaration.
7111 * config.in: Re-generate.
7112 * configure: Re-generate.
7113 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7114 not defined.
7115
1ff700c2
KR
71162020-03-20 Kamil Rytarowski <n54@gmx.com>
7117
7118 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7119 `PTRACE_TYPE_RET'.
7120 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7121 * sparc-nat.c (gdb_ptrace): Likewise.
7122 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7123
f7d4f0b1
TT
71242020-03-20 Tom Tromey <tromey@adacore.com>
7125
7126 * c-exp.y (lex_one_token): Fix assert.
7127
f67210ff
TT
71282020-03-20 Tom Tromey <tromey@adacore.com>
7129
7130 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7131 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7132 strncpy call.
7133
1773be9e
TT
71342020-03-20 Tom Tromey <tromey@adacore.com>
7135
7136 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7137
70304be9
TT
71382020-03-20 Tom Tromey <tromey@adacore.com>
7139
7140 * ada-valprint.c (print_variant_part): Remove parameters; switch
7141 to value-based API.
7142 (print_field_values): Likewise.
7143 (ada_val_print_struct_union): Likewise.
7144 (ada_value_print_1): Update.
7145
9faa006d
KR
71462020-03-20 Kamil Rytarowski <n54@gmx.com>
7147
7148 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7149 nbsd_nat_target instead of inf_ptrace_target.
7150 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7151 nbsd_nat_target.
7152
4a90f062
KR
71532020-03-20 Kamil Rytarowski <n54@gmx.com>
7154
7155 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7156 it to the ptrace call.
7157 * (store_registers): Likewise.
7158
71592020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7160
7161 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7162 it to the ptrace call.
7163 * (store_registers): Likewise.
7164
2d07da27
LM
71652020-03-19 Luis Machado <luis.machado@linaro.org>
7166
7167 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7168 valid, fetch vg value from ptrace.
7169
f09db380
KR
71702020-03-19 Kamil Rytarowski <n54@gmx.com>
7171 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7172 * inf-ptrace.c: Likewise.
7173 * (gdb_ptrace): Add.
7174 * (inf_ptrace_target::resume): Update.
7175 * (inf_ptrace_target::xfer_partial): Likewise.
7176 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7177 * (inf_ptrace_peek_poke): Update.
7178
fcc7376e
KR
71792020-03-19 Kamil Rytarowski <n54@gmx.com>
7180
7181 * x86-bsd-nat.c (gdb_ptrace): New.
7182 * (x86bsd_dr_set): Add new argument `ptid'.
7183 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7184 x86bsd_dr_set_addr): Update.
7185
cada5fc9
AB
71862020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7187
7188 * remote.c (remote_target::process_stop_reply): Handle events for
7189 all threads differently.
7190
19a2740f
AB
71912020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7192
7193 * completer.c (completion_tracker::remove_completion): Define new
7194 function.
7195 * completer.h (completion_tracker::remove_completion): Declare new
7196 function.
7197 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7198 when adding a C++ function symbol.
7199
724fd9ba
AB
72002020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7201
7202 * completer.c (completion_tracker::completion_hash_entry): Define
7203 new class.
7204 (advance_to_filename_complete_word_point): Call
7205 recompute_lowest_common_denominator.
7206 (completion_tracker::completion_tracker): Call discard_completions
7207 to setup the hash table.
7208 (completion_tracker::discard_completions): Allow for being called
7209 from the constructor, pass new equal function, and element deleter
7210 when constructing the hash table. Initialise new class member
7211 variables.
7212 (completion_tracker::maybe_add_completion): Remove use of
7213 m_entries_vec, and store more information into m_entries_hash.
7214 (completion_tracker::recompute_lcd_visitor): New function, most
7215 content taken from...
7216 (completion_tracker::recompute_lowest_common_denominator):
7217 ...here, this now just visits each item in the hash calling the
7218 above visitor.
7219 (completion_tracker::build_completion_result): Remove use of
7220 m_entries_vec, call recompute_lowest_common_denominator.
7221 * completer.h (completion_tracker::have_completions): Remove use
7222 of m_entries_vec.
7223 (completion_tracker::completion_hash_entry): Declare new class.
7224 (completion_tracker::recompute_lowest_common_denominator): Change
7225 function signature.
7226 (completion_tracker::recompute_lcd_visitor): Declare new function.
7227 (completion_tracker::m_entries_vec): Delete.
7228 (completion_tracker::m_entries_hash): Initialize to NULL.
7229 (completion_tracker::m_lowest_common_denominator_valid): New
7230 member variable.
7231 (completion_tracker::m_lowest_common_denominator_max_length): New
7232 member variable.
7233
5a82b8a1
KR
72342020-03-17 Kamil Rytarowski <n54@gmx.com>
7235
7236 * regformats/regdef.h: Put reg in gdb namespace.
7237
fb516a69
KR
72382020-03-17 Kamil Rytarowski <n54@gmx.com>
7239
7240 * i386-bsd-nat.c (gdb_ptrace): New.
7241 * (i386bsd_fetch_inferior_registers,
7242 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7243 * (i386bsd_fetch_inferior_registers,
7244 i386bsd_store_inferior_registers) Use gdb_ptrace.
7245
1c0aa1fb
KR
72462020-03-17 Kamil Rytarowski <n54@gmx.com>
7247
7248 * amd64-bsd-nat.c (gdb_ptrace): New.
7249 * (amd64bsd_fetch_inferior_registers,
7250 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7251 * (amd64bsd_fetch_inferior_registers,
7252 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7253
5ccd2fb7
KR
72542020-03-17 Kamil Rytarowski <n54@gmx.com>
7255
7256 * user-regs.c (user_reg::read): Rename to...
7257 (user_reg::xread): ...this.
7258 * (append_user_reg): Rename argument `read' to `xread'.
7259 * (user_reg_add_builtin): Likewise.
7260 * (user_reg_add): Likewise.
7261 * (value_of_user_reg): Likewise.
7262
2108a63a
KR
72632020-03-17 Kamil Rytarowski <n54@gmx.com>
7264
7265 * sparc-nat.c (gdb_ptrace): New.
7266 * sparc-nat.c (sparc_fetch_inferior_registers)
7267 (sparc_store_inferior_registers) Remove obsolete comment.
7268 * sparc-nat.c (sparc_fetch_inferior_registers)
7269 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7270 * sparc-nat.c (sparc_fetch_inferior_registers)
7271 (sparc_store_inferior_registers) Use gdb_ptrace.
7272
a225c9a8
KR
72732020-03-17 Kamil Rytarowski <n54@gmx.com>
7274
7275 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7276 it to the ptrace call.
7277 * sh-nbsd-nat.c (store_registers): Likewise.
7278
98097623
KR
72792020-03-17 Kamil Rytarowski <n54@gmx.com>
7280
7281 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7282 nbsd_nat_target instead of inf_ptrace_target.
7283 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7284 nbsd_nat_target.
7285
9e38d619
KR
72862020-03-17 Kamil Rytarowski <n54@gmx.com>
7287
7288 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7289
a2ecbe9f
KR
72902020-03-17 Kamil Rytarowski <n54@gmx.com>
7291
7292 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7293 <sys/sysctl.h>.
7294 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7295
58990295
TV
72962020-03-17 Tom de Vries <tdevries@suse.de>
7297
7298 PR gdb/23710
7299 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7300 fields.
7301 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7302 fields.
7303 (process_imported_unit_die): Skip import of c++ CUs.
7304
771dd3a8
TT
73052020-03-16 Tom Tromey <tom@tromey.com>
7306
7307 * p-valprint.c (pascal_object_print_value): Initialize
7308 base_value.
7309
817a7585
AK
73102020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7311 Shahab Vahedi <shahab@synopsys.com>
7312
7313 * Makefile.in: Add arch/arc.o
7314 * configure.tgt: Likewise.
7315 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7316 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7317 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7318 * arc-tdep.h (arc_read_description): Add proto type.
7319 * arch/arc.c: New file.
7320 * arch/arc.h: Likewise.
7321 * features/Makefile: Replace old target descriptions with new.
7322 * features/arc-arcompact.c: Remove.
7323 * features/arc-arcompact.xml: Likewise.
7324 * features/arc-v2.c: Likewise
7325 * features/arc-v2.xml: Likewise
7326 * features/arc/aux-arcompact.xml: New file.
7327 * features/arc/aux-v2.xml: Likewise.
7328 * features/arc/core-arcompact.xml: Likewise.
7329 * features/arc/core-v2.xml: Likewise.
7330 * features/arc/aux-arcompact.c: Generate.
7331 * features/arc/aux-v2.c: Likewise.
7332 * features/arc/core-arcompact.c: Likewise.
7333 * features/arc/core-v2.c: Likewise.
7334 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7335
67430cd0
TT
73362020-03-16 Tom Tromey <tromey@adacore.com>
7337
7338 PR gdb/25663:
7339 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7340 putting value into bcache.
7341
30efb6c7
SM
73422020-03-16 Simon Marchi <simon.marchi@efficios.com>
7343
7344 PR gdb/21500
7345 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7346 to...
7347 (amd64_windows_init_abi_common): ... this. Don't set size of
7348 long type.
7349 (amd64_windows_init_abi): New function.
7350 (amd64_cygwin_init_abi): New function.
7351 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7352 the Cygwin OS ABI.
7353 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7354 comment.
7355
8db52437
SM
73562020-03-16 Simon Marchi <simon.marchi@efficios.com>
7357
7358 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7359 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7360 (pe_import_directory_entry): New struct type.
7361 (is_linked_with_cygwin_dll): New function.
7362 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7363 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7364 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7365
5982a56a
SM
73662020-03-16 Simon Marchi <simon.marchi@efficios.com>
7367
7368 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7369 i386_cygwin_core_osabi_sniffer.
7370
7a1998df
SM
73712020-03-16 Simon Marchi <simon.marchi@efficios.com>
7372
7373 * i386-cygwin-tdep.c: Rename to...
7374 * i386-windows-tdep.c: ... this.
7375 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7376 i386-windows-tdep.c.
7377 * configure.tgt: Likewise.
7378
053205cc
SM
73792020-03-16 Simon Marchi <simon.marchi@efficios.com>
7380
7381 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7382 * osabi.c (gdb_osabi_names): Add "Windows".
7383 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7384 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7385 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7386 i386_cygwin_osabi_sniffer.
7387 (_initialize_i386_cygwin_tdep): Register OS ABI
7388 GDB_OSABI_WINDOWS for i386.
7389 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7390 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7391 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7392 for x86-64.
7393 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7394 when the target matches '*-*-mingw*'.
7395
fe4b2ee6
SM
73962020-03-16 Simon Marchi <simon.marchi@efficios.com>
7397
7398 * defs.h (enum gdb_osabi): Move to...
7399 * osabi.h (enum gdb_osabi): ... here.
7400 * gdbarch.sh: Include osabi.h in gdbarch.h.
7401 * gdbarch.h: Re-generate.
7402
cb9b645d
SM
74032020-03-16 Simon Marchi <simon.marchi@efficios.com>
7404
7405 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7406 function.
7407 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7408
3293bbaf
TT
74092020-03-14 Tom Tromey <tom@tromey.com>
7410
7411 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7412 for C++.
7413 (c_type_print_modifier): Likewise. Add "language" parameter.
7414 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7415 (c_type_print_base_1): Update.
7416 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7417 constants.
7418 * type-stack.c (type_stack::insert): Handle tp_atomic and
7419 tp_restrict.
7420 (type_stack::follow_type_instance_flags): Likewise.
7421 (type_stack::follow_types): Likewise. Merge type-following code.
7422 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7423 (space_identifier, cv_with_space_id)
7424 (const_or_volatile_or_space_identifier_noopt)
7425 (const_or_volatile_or_space_identifier): Remove.
7426 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7427 rules.
7428 (ptr_operator, typebase): Update.
7429 (enum token_flag) <FLAG_C>: New constant.
7430 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7431 "_Atomic".
7432 (lex_one_token): Handle FLAG_C.
7433
154151a6
KR
74342020-03-14 Kamil Rytarowski <n54@gmx.com>
7435
7436 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7437 it to the ptrace call.
7438 * m68k-bsd-nat.c (store_registers): Likewise.
7439
bc107784
KR
74402020-03-14 Kamil Rytarowski <n54@gmx.com>
7441
7442 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7443 gdb_byte *.
7444 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7445 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7446 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7447
01a80117
KR
74482020-03-14 Kamil Rytarowski <n54@gmx.com>
7449
7450 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7451 nbsd_nat_target instead of inf_ptrace_target.
7452 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7453 nbsd_nat_target.
7454
f90280ca
KR
74552020-03-14 Kamil Rytarowski <n54@gmx.com>
7456
7457 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7458 register_t.
7459
6def66f1
KR
74602020-03-14 Kamil Rytarowski <n54@gmx.com>
7461
7462 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7463 it to the ptrace call.
7464 * alpha-bsd-nat.c (store_registers): Likewise.
7465
66eaca97
KR
74662020-03-14 Kamil Rytarowski <n54@gmx.com>
7467
7468 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7469 includes.
7470 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7471 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7472 fill_fpregset): Likewise.
7473
4fed520b
KR
74742020-03-14 Kamil Rytarowski <n54@gmx.com>
7475
7476 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7477 nbsd_nat_target instead of inf_ptrace_target.
7478 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7479 nbsd_nat_target.
7480
2190cf06
KR
74812020-03-14 Kamil Rytarowski <n54@gmx.com>
7482
7483 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7484 register_t.
7485
75c56d3d
KR
74862020-03-14 Kamil Rytarowski <n54@gmx.com>
7487
7488 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7489 it to the ptrace call.
7490 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7491 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7492 * arm-nbsd-nat.c (store_register): Likewise.
7493 * arm-nbsd-nat.c (store_regs): Likewise.
7494 * arm-nbsd-nat.c (store_fp_register): Likewise.
7495 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7496
6018d381
KR
74972020-03-14 Kamil Rytarowski <n54@gmx.com>
7498
7499 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7500 nbsd_nat_target instead of inf_ptrace_target.
7501 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7502 nbsd_nat_target.
7503
013f99f0
KR
75042020-03-14 Kamil Rytarowski <n54@gmx.com>
7505
7506 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7507 it to the ptrace call.
7508 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7509
12753073
KR
75102020-03-14 Kamil Rytarowski <n54@gmx.com>
7511
6227b330
KR
7512 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7513 it to the ptrace call.
7514 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7515
75162020-03-14 Kamil Rytarowski <n54@gmx.com>
7517
7518 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7519 gdb_byte *.
12753073
KR
7520 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7521
d5be5fa4
KR
75222020-03-14 Kamil Rytarowski <n54@gmx.com>
7523
7524 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7525 instead of inf_ptrace_target.
7526 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7527 nbsd_nat_target.
7528
8110f842
KR
75292020-03-14 Kamil Rytarowski <n54@gmx.com>
7530
7531 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7532 register_t.
7533
52feded7
KR
75342020-03-14 Kamil Rytarowski <n54@gmx.com>
7535
7536 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7537 register_t.
7538
25567eee
KR
75392020-03-14 Kamil Rytarowski <n54@gmx.com>
7540
7541 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7542 register_t.
7543
426a9c18
TT
75442020-03-13 Tom Tromey <tom@tromey.com>
7545
7546 * value.h (val_print): Don't declare.
7547 * valprint.h (val_print_array_elements)
7548 (val_print_scalar_formatted, generic_val_print): Don't declare.
7549 * valprint.c (generic_val_print_array): Take a struct value.
7550 (generic_val_print_ptr, generic_val_print_memberptr)
7551 (generic_val_print_bool, generic_val_print_int)
7552 (generic_val_print_char, generic_val_print_complex)
7553 (generic_val_print): Remove.
7554 (generic_value_print): Update.
7555 (do_val_print): Remove unused parameters. Don't call
7556 la_val_print.
7557 (val_print): Remove.
7558 (common_val_print): Update. Don't call value_check_printable.
7559 (val_print_scalar_formatted, val_print_array_elements): Remove.
7560 * rust-lang.c (rust_val_print): Remove.
7561 (rust_language_defn): Update.
7562 * p-valprint.c (pascal_val_print): Remove.
7563 (pascal_value_print_inner): Update.
7564 (pascal_object_print_val_fields, pascal_object_print_val):
7565 Remove.
7566 (pascal_object_print_static_field): Update.
7567 * p-lang.h (pascal_val_print): Don't declare.
7568 * p-lang.c (pascal_language_defn): Update.
7569 * opencl-lang.c (opencl_language_defn): Update.
7570 * objc-lang.c (objc_language_defn): Update.
7571 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7572 * m2-lang.h (m2_val_print): Don't declare.
7573 * m2-lang.c (m2_language_defn): Update.
7574 * language.h (struct language_defn) <la_val_print>: Remove.
7575 * language.c (unk_lang_value_print_inner): Rename. Change
7576 argument types.
7577 (unknown_language_defn, auto_language_defn): Update.
7578 * go-valprint.c (go_val_print): Remove.
7579 * go-lang.h (go_val_print): Don't declare.
7580 * go-lang.c (go_language_defn): Update.
7581 * f-valprint.c (f_val_print): Remove.
7582 * f-lang.h (f_value_print): Don't declare.
7583 * f-lang.c (f_language_defn): Update.
7584 * d-valprint.c (d_val_print): Remove.
7585 * d-lang.h (d_value_print): Don't declare.
7586 * d-lang.c (d_language_defn): Update.
7587 * cp-valprint.c (cp_print_value_fields)
7588 (cp_print_value_fields_rtti, cp_print_value): Remove.
7589 (cp_print_static_field): Update.
7590 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7591 (c_val_print_struct, c_val_print_union, c_val_print_int)
7592 (c_val_print_memberptr, c_val_print): Remove.
7593 * c-lang.h (c_val_print_array, cp_print_value_fields)
7594 (cp_print_value_fields_rtti): Don't declare.
7595 * c-lang.c (c_language_defn, cplus_language_defn)
7596 (asm_language_defn, minimal_language_defn): Update.
7597 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7598 (ada_val_print_enum): Take a struct value.
7599 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7600 (ada_val_print): Remove.
7601 (ada_value_print_1): Update.
7602 (printable_val_type): Remove.
7603 * ada-lang.h (ada_val_print): Don't declare.
7604 * ada-lang.c (ada_language_defn): Update.
7605
42331a1e
TT
76062020-03-13 Tom Tromey <tom@tromey.com>
7607
7608 * valprint.c (do_val_print): Update.
7609 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7610 a struct value.
7611 (value_to_value_object_no_release): Declare.
7612 * python/py-value.c (value_to_value_object_no_release): New
7613 function.
7614 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7615 struct value.
7616 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7617 function.
7618 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7619 a struct value.
7620 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7621 Declare.
7622 (gdbscm_apply_val_pretty_printer): Take a struct value.
7623 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7624 value.
7625 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7626 value.
7627 * extension-priv.h (struct extension_language_ops)
7628 <apply_val_pretty_printer>: Take a struct value.
7629 * cp-valprint.c (cp_print_value): Create a struct value.
7630 (cp_print_value): Update.
7631
3a916a97
TT
76322020-03-13 Tom Tromey <tom@tromey.com>
7633
7634 * ada-valprint.c (print_field_values): Call common_val_print.
7635
b59eac37
TT
76362020-03-13 Tom Tromey <tom@tromey.com>
7637
7638 * ada-valprint.c (val_print_packed_array_elements): Remove
7639 bitoffset and val parameters. Call common_val_print.
7640 (ada_val_print_string): Remove offset, address, and original_value
7641 parameters.
7642 (ada_val_print_array): Update.
7643 (ada_value_print_array): New function.
7644 (ada_value_print_1): Call it.
7645
03371129
TT
76462020-03-13 Tom Tromey <tom@tromey.com>
7647
7648 * ada-valprint.c (ada_value_print): Use common_val_print.
7649
2e088f8b
TT
76502020-03-13 Tom Tromey <tom@tromey.com>
7651
7652 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7653
39ef85a8
TT
76542020-03-13 Tom Tromey <tom@tromey.com>
7655
7656 * ada-valprint.c (ada_value_print_num): New function.
7657 (ada_value_print_1): Use it.
7658
b9fa6e07
TT
76592020-03-13 Tom Tromey <tom@tromey.com>
7660
7661 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7662
416595d6
TT
76632020-03-13 Tom Tromey <tom@tromey.com>
7664
7665 * ada-valprint.c (ada_value_print_ptr): New function.
7666 (ada_value_print_1): Use it.
7667
5b5e15ec
TT
76682020-03-13 Tom Tromey <tom@tromey.com>
7669
7670 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7671 call common_val_print.
7672 (ada_val_print_1): Update.
7673 (ada_value_print_1): New function.
7674 (ada_value_print_inner): Rewrite.
7675
fbf54e75
TT
76762020-03-13 Tom Tromey <tom@tromey.com>
7677
7678 * cp-valprint.c (cp_print_value_fields): Update.
7679 (cp_print_value): New function.
7680
64b653ca
TT
76812020-03-13 Tom Tromey <tom@tromey.com>
7682
7683 * m2-valprint.c (m2_value_print_inner): Use
7684 cp_print_value_fields.
7685 * cp-valprint.c (cp_print_value_fields): New function.
7686 * c-valprint.c (c_value_print_struct): New function.
7687 (c_value_print_inner): Use c_value_print_struct.
7688 * c-lang.h (cp_print_value_fields): Declare.
7689
6999f067
TT
76902020-03-13 Tom Tromey <tom@tromey.com>
7691
7692 * c-valprint.c (c_value_print_array): New function.
7693 (c_value_print_inner): Use it.
7694
ce80b8bd
TT
76952020-03-13 Tom Tromey <tom@tromey.com>
7696
7697 * c-valprint.c (c_value_print_memberptr): New function.
7698 (c_value_print_inner): Use it.
7699
2faac269
TT
77002020-03-13 Tom Tromey <tom@tromey.com>
7701
7702 * c-valprint.c (c_value_print_int): New function.
7703 (c_value_print_inner): Use it.
7704
da3e2c29
TT
77052020-03-13 Tom Tromey <tom@tromey.com>
7706
7707 * c-valprint.c (c_value_print_ptr): New function.
7708 (c_value_print_inner): Use it.
7709
50836231
TT
77102020-03-13 Tom Tromey <tom@tromey.com>
7711
7712 * c-valprint.c (c_value_print_inner): Rewrite.
7713
4f412b6e
TT
77142020-03-13 Tom Tromey <tom@tromey.com>
7715
7716 * valprint.c (generic_value_print_complex): New function.
7717 (generic_value_print): Use it.
7718
f5354008
TT
77192020-03-13 Tom Tromey <tom@tromey.com>
7720
7721 * valprint.c (generic_val_print_float): Don't call
7722 val_print_scalar_formatted.
7723 (generic_val_print, generic_value_print): Update.
7724
3eec3b05
TT
77252020-03-13 Tom Tromey <tom@tromey.com>
7726
7727 * valprint.c (generic_value_print_char): New function
7728 (generic_value_print): Use it.
7729
fdddfccb
TT
77302020-03-13 Tom Tromey <tom@tromey.com>
7731
7732 * valprint.c (generic_value_print_int): New function.
7733 (generic_value_print): Use it.
7734
6dde7521
TT
77352020-03-13 Tom Tromey <tom@tromey.com>
7736
7737 * valprint.c (generic_value_print_bool): New function.
7738 (generic_value_print): Use it.
7739
4112d2e6
TT
77402020-03-13 Tom Tromey <tom@tromey.com>
7741
7742 * valprint.c (generic_val_print_func): Simplify.
7743 (generic_val_print, generic_value_print): Update.
7744
65786af6
TT
77452020-03-13 Tom Tromey <tom@tromey.com>
7746
7747 * valprint.c (generic_val_print_flags): Remove.
7748 (generic_val_print, generic_value_print): Update.
7749 (val_print_type_code_flags): Add original_value parameter.
7750
40f3ce18
TT
77512020-03-13 Tom Tromey <tom@tromey.com>
7752
7753 * valprint.c (generic_val_print): Update.
7754 (generic_value_print): Update.
7755 * valprint.c (generic_val_print_enum): Don't call
7756 val_print_scalar_formatted.
7757
2a5b130b
TT
77582020-03-13 Tom Tromey <tom@tromey.com>
7759
7760 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7761 * valprint.c (generic_value_print_ptr): New function.
7762
abc66ce9
TT
77632020-03-13 Tom Tromey <tom@tromey.com>
7764
7765 * valprint.c (generic_value_print): Rewrite.
7766
07a32858
TT
77672020-03-13 Tom Tromey <tom@tromey.com>
7768
7769 * p-valprint.c (pascal_object_print_value_fields)
7770 (pascal_object_print_value): New functions.
7771
64d64d3a
TT
77722020-03-13 Tom Tromey <tom@tromey.com>
7773
7774 * p-valprint.c (pascal_value_print_inner): Rewrite.
7775
6a95a1f5
TT
77762020-03-13 Tom Tromey <tom@tromey.com>
7777
7778 * f-valprint.c (f_value_print_innner): Rewrite.
7779
59fcdac6
TT
77802020-03-13 Tom Tromey <tom@tromey.com>
7781
7782 * m2-valprint.c (m2_print_unbounded_array): New overload.
7783 (m2_print_unbounded_array): Update.
7784 (m2_print_array_contents): Take a struct value.
7785 (m2_value_print_inner): Rewrite.
7786
d133c3e1
TT
77872020-03-13 Tom Tromey <tom@tromey.com>
7788
7789 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7790 (d_value_print_inner): New function.
7791 * d-lang.h (d_value_print_inner): Declare.
7792 * d-lang.c (d_language_defn): Use d_value_print_inner.
7793
23b0f06b
TT
77942020-03-13 Tom Tromey <tom@tromey.com>
7795
7796 * go-valprint.c (go_value_print_inner): New function.
7797 * go-lang.h (go_value_print_inner): Declare.
7798 * go-lang.c (go_language_defn): Use go_value_print_inner.
7799
5f56f7cb
TT
78002020-03-13 Tom Tromey <tom@tromey.com>
7801
7802 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7803 API.
7804 (rust_val_print): Rewrite.
7805 (rust_value_print_inner): New function, from rust_val_print.
7806 (rust_language_defn): Use rust_value_print_inner.
7807
26792ee0
TT
78082020-03-13 Tom Tromey <tom@tromey.com>
7809
7810 * ada-valprint.c (ada_value_print_inner): New function.
7811 * ada-lang.h (ada_value_print_inner): Declare.
7812 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7813
24051bbe
TT
78142020-03-13 Tom Tromey <tom@tromey.com>
7815
7816 * f-valprint.c (f_value_print_innner): New function.
7817 * f-lang.h (f_value_print_innner): Declare.
7818 * f-lang.c (f_language_defn): Use f_value_print_innner.
7819
c0941be6
TT
78202020-03-13 Tom Tromey <tom@tromey.com>
7821
7822 * p-valprint.c (pascal_value_print_inner): New function.
7823 * p-lang.h (pascal_value_print_inner): Declare.
7824 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7825
62c4663d
TT
78262020-03-13 Tom Tromey <tom@tromey.com>
7827
7828 * m2-valprint.c (m2_value_print_inner): New function.
7829 * m2-lang.h (m2_value_print_inner): Declare.
7830 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7831
62182190
TT
78322020-03-13 Tom Tromey <tom@tromey.com>
7833
7834 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7835 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7836 * c-valprint.c (c_value_print_inner): New function.
7837 * c-lang.h (c_value_print_inner): Declare.
7838 * c-lang.c (c_language_defn, cplus_language_defn)
7839 (asm_language_defn, minimal_language_defn): Use
7840 c_value_print_inner.
7841
1e592a8a
TT
78422020-03-13 Tom Tromey <tom@tromey.com>
7843
7844 * p-valprint.c (pascal_object_print_value_fields): Now static.
7845 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7846
7fe471e9
TT
78472020-03-13 Tom Tromey <tom@tromey.com>
7848
7849 * c-valprint.c (c_val_print_array): Simplify.
7850
d121c6ce
TT
78512020-03-13 Tom Tromey <tom@tromey.com>
7852
7853 * valprint.c (value_print_array_elements): New function.
7854 * valprint.h (value_print_array_elements): Declare.
7855
4dba70ee
TT
78562020-03-13 Tom Tromey <tom@tromey.com>
7857
7858 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7859 * mips-tdep.c (mips_print_register): Use
7860 value_print_scalar_formatted.
7861
4f9ae810
TT
78622020-03-13 Tom Tromey <tom@tromey.com>
7863
7864 * valprint.h (value_print_scalar_formatted): Declare.
7865 * valprint.c (value_print_scalar_formatted): New function.
7866
156bfec9
TT
78672020-03-13 Tom Tromey <tom@tromey.com>
7868
7869 * valprint.h (generic_value_print): Declare.
7870 * valprint.c (generic_value_print): New function.
7871
2b4e573d
TT
78722020-03-13 Tom Tromey <tom@tromey.com>
7873
7874 * valprint.c (do_val_print): Call la_value_print_inner, if
7875 available.
7876 * rust-lang.c (rust_language_defn): Update.
7877 * p-lang.c (pascal_language_defn): Update.
7878 * opencl-lang.c (opencl_language_defn): Update.
7879 * objc-lang.c (objc_language_defn): Update.
7880 * m2-lang.c (m2_language_defn): Update.
7881 * language.h (struct language_defn) <la_value_print_inner>: New
7882 member.
7883 * language.c (unknown_language_defn, auto_language_defn): Update.
7884 * go-lang.c (go_language_defn): Update.
7885 * f-lang.c (f_language_defn): Update.
7886 * d-lang.c (d_language_defn): Update.
7887 * c-lang.c (c_language_defn, cplus_language_defn)
7888 (asm_language_defn, minimal_language_defn): Update.
7889 * ada-lang.c (ada_language_defn): Update.
7890
a1f6a07c
TT
78912020-03-13 Tom Tromey <tom@tromey.com>
7892
7893 * c-valprint.c (c_value_print): Use common_val_print.
7894
410cf315
TT
78952020-03-13 Tom Tromey <tom@tromey.com>
7896
7897 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7898
72a45c93
TT
78992020-03-13 Tom Tromey <tom@tromey.com>
7900
7901 * f-valprint.c (f77_print_array_1, f_val_print): Use
7902 common_val_print.
7903
040f66bd
TT
79042020-03-13 Tom Tromey <tom@tromey.com>
7905
7906 * riscv-tdep.c (riscv_print_one_register_info): Use
7907 common_val_print.
7908
a6e05a6c
TT
79092020-03-13 Tom Tromey <tom@tromey.com>
7910
7911 * mi/mi-main.c (output_register): Use common_val_print.
7912
3444c526
TT
79132020-03-13 Tom Tromey <tom@tromey.com>
7914
7915 * infcmd.c (default_print_one_register_info): Use
7916 common_val_print.
7917
c2a44efe
TT
79182020-03-13 Tom Tromey <tom@tromey.com>
7919
7920 * valprint.h (common_val_print_checked): Declare.
7921 * valprint.c (common_val_print_checked): New function.
7922 * stack.c (print_frame_arg): Use common_val_print_checked.
7923
b0c26e99
TT
79242020-03-13 Tom Tromey <tom@tromey.com>
7925
7926 * valprint.c (do_val_print): New function, from val_print.
7927 (val_print): Use do_val_print.
7928 (common_val_print): Use do_val_print.
7929
ce3acbe9
TT
79302020-03-13 Tom Tromey <tom@tromey.com>
7931
7932 * valprint.c (value_print): Use scoped_value_mark.
7933
96c7f873
TV
79342020-03-13 Tom de Vries <tdevries@suse.de>
7935
7936 PR symtab/25646
7937 * psymtab.c (partial_symtab::partial_symtab): Don't set
7938 globals_offset and statics_offset. Push element onto
7939 current_global_psymbols and current_static_psymbols stacks.
7940 (concat): New function.
7941 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7942 element from current_global_psymbols and current_static_psymbols
7943 stacks. Concat popped elements to global_psymbols and
7944 static_symbols.
7945 (add_psymbol_to_list): Use current_global_psymbols and
7946 current_static_psymbols stacks.
7947 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7948 current_static_psymbols fields.
7949
6ba0a321
CB
79502020-03-12 Christian Biesinger <cbiesinger@google.com>
7951
7952 * corelow.c (sniff_core_bfd): Remove.
7953 (class core_target) <m_core_vec>: Remove.
7954 (core_target::core_target): Update.
7955 (core_file_fns): Remove.
7956 (deprecated_add_core_fns): Remove.
7957 (default_core_sniffer): Remove.
7958 (sniff_core_bfd): Remove.
7959 (default_check_format): Remove.
7960 (gdb_check_format): Remove.
7961 (core_target_open): Update.
7962 (core_target::get_core_register_section): Update.
7963 (get_core_registers_cb): Update.
7964 (core_target::fetch_registers): Update.
7965 * gdbcore.h (struct core_fns): Remove.
7966 (deprecated_add_core_fns): Remove.
7967 (default_core_sniffer): Remove.
7968 (default_check_format): Remove.
7969
227031b2
TT
79702020-03-12 Tom Tromey <tom@tromey.com>
7971
7972 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7973 CORE_ADDR.
7974 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7975
53807e9f
TT
79762020-03-12 Tom Tromey <tom@tromey.com>
7977
7978 * remote.c (remote_target::download_tracepoint)
7979 (remote_target::enable_tracepoint)
7980 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7981 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7982 sprintf_vma.
7983
64f25102
TT
79842020-03-12 Tom Tromey <tom@tromey.com>
7985
7986 * symfile-mem.c: Update CORE_ADDR size assert.
7987
272cd5a3
SM
79882020-03-12 Simon Marchi <simon.marchi@efficios.com>
7989
7990 * selftest.m4: Move to gdbsupport/.
7991 * acinclude.m4: Update path to selftest.m4.
7992
74cd3f9d
SM
79932020-03-12 Simon Marchi <simon.marchi@efficios.com>
7994
7995 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
7996 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
7997 gdbarch-selfselftests.c and selftest-arch.c.
7998 (SUBDIR_UNITTESTS_OBS): Rename to...
7999 (SELFTESTS_OBS): ... this.
8000 (COMMON_SFILES): Remove disasm-selftests.c and
8001 gdbarch-selftests.c.
8002 * configure.ac: Don't add selftest-arch.{c,o} to
8003 CONFIG_{SRCS,OBS}.
8004 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8005 preprocessor conditions.
8006
db6878ac
SM
80072020-03-12 Simon Marchi <simon.marchi@efficios.com>
8008
8009 * configure.ac: Don't source bfd/development.sh.
8010 * selftest.m4: Modify comment.
8011 * configure: Re-generate.
8012
4d696a5c
SM
80132020-03-12 Simon Marchi <simon.marchi@efficios.com>
8014
8015 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8016 not "true" or "false".
8017 * configure: Re-generate.
8018
8dd8e1c7
CB
80192020-03-12 Christian Biesinger <cbiesinger@google.com>
8020
8021 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8022 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8023 renamed to arm_nbsd_supply_gregset.
8024 (fetch_register): Update to call arm_nbsd_supply_gregset.
8025 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8026 (arm_netbsd_nat_target::fetch_registers): Update.
8027 (fetch_elfcore_registers): Removed.
8028 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8029 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8030 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8031 not require NetBSD system headers.
8032 (arm_nbsd_regset): New struct.
8033 (arm_nbsd_iterate_over_regset_sections): New function.
8034 (arm_netbsd_init_abi_common): Updated to call
8035 set_gdbarch_iterate_over_regset_sections.
8036 * arm-nbsd-tdep.h: New file.
8037
dd69bf7a
KB
80382020-03-11 Kevin Buettner <kevinb@redhat.com>
8039
8040 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8041 recursion.
8042
a0761e34
SM
80432020-03-11 Simon Marchi <simon.marchi@efficios.com>
8044
8045 * configure: Re-generate.
8046
e7a82140
TT
80472020-03-11 Tom Tromey <tromey@adacore.com>
8048
8049 * ada-typeprint.c (print_choices): Fix comment.
8050
dcc050c8
AB
80512020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8052
8053 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8054 previous item in the list, when the list has no items.
8055
1c33af77
TV
80562020-03-11 Tom de Vries <tdevries@suse.de>
8057
8058 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8059 PROP_LOCLIST handling code.
8060
8c95582d
AB
80612020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8062
8063 * buildsym-legacy.c (record_line): Pass extra parameter to
8064 record_line.
8065 * buildsym.c (buildsym_compunit::record_line): Take an extra
8066 parameter, reduce duplication in the line table, and record the
8067 is_stmt flag in the line table.
8068 * buildsym.h (buildsym_compunit::record_line): Add extra
8069 parameter.
8070 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8071 non-statement lines.
8072 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8073 this to the symtab builder.
8074 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8075 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8076 through to dwarf_record_line_1.
8077 * infrun.c (process_event_stop_test): When stepping, don't stop at
8078 a non-statement instruction, and only refresh the step info when
8079 we land in the middle of a line's range. Also add an extra
8080 comment.
8081 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8082 field.
8083 * record-btrace.c (btrace_find_line_range): Only record lines
8084 marked as is-statement.
8085 * stack.c (frame_show_address): Show the frame address if we are
8086 in a non-statement sal.
8087 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8088 (maintenance_print_one_line_table): Print a header for the is_stmt
8089 column, and include is_stmt information in the output.
8090 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8091 preference to non-statements.
8092 (find_pcs_for_symtab_line): Prefer is-statement entries.
8093 (find_line_common): Likewise.
8094 * symtab.h (struct linetable_entry): Add is_stmt field.
8095 (struct symtab_and_line): Likewise.
8096 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8097 arranging the line table.
8098
e4003a34
TV
80992020-03-07 Tom de Vries <tdevries@suse.de>
8100
8101 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8102 DIE.
8103
e8932576
TT
81042020-03-07 Tom Tromey <tom@tromey.com>
8105
8106 * valops.c (value_literal_complex): Remove obsolete comment.
8107 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8108 comment.
8109
29734269
SM
81102020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8111
8112 * infrun.h: Forward-declare thread_info.
8113 (set_step_info): Add thread_info parameter, add doc.
8114 * infrun.c (set_step_info): Add thread_info parameter, move doc
8115 to header.
8116 * infrun.c (process_event_stop_test): Pass thread to
8117 set_step_info call.
8118 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8119 set_step_info.
8120 (prepare_one_step): Add thread_info parameter, pass it to
8121 set_step_frame and prepare_one_step (recursive) call.
8122 (step_1): Pass thread to prepare_one_step call.
8123 (step_command_fsm::should_stop): Pass thread to
8124 prepare_one_step.
8125 (until_next_fsm): Pass thread to set_step_frame call.
8126 (finish_command): Pass thread to set_step_info call.
8127
b7d64b29
HD
81282020-03-06 Hannes Domani <ssbssa@yahoo.de>
8129
8130 * windows-tdep.c (windows_solib_create_inferior_hook):
8131 Check if inferior is running.
8132
09f2921c
TV
81332020-03-06 Tom de Vries <tdevries@suse.de>
8134
8135 * NEWS: Fix "the the".
8136 * ctfread.c: Same.
8137
fd760e79
TV
81382020-03-06 Tom de Vries <tdevries@suse.de>
8139
8140 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8141
20ea4a60
AB
81422020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8143
8144 * .dir-locals.el: Add a comment referencing the other copies of
8145 this file.
8146
0afbabf0
JB
81472020-03-05 John Baldwin <jhb@FreeBSD.org>
8148
8149 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8150 psargs.
8151
842806cb
TBA
81522020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8153
8154 * .gitattributes: New file.
8155
be1e3d3e
TT
81562020-03-04 Tom Tromey <tom@tromey.com>
8157
8158 * symmisc.c (print_symbol_bcache_statistics)
8159 (print_objfile_statistics): Update.
8160 * symfile.c (allocate_symtab): Use intern.
8161 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8162 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8163 macro_cache>: Remove.
8164 <string_cache>: New member.
8165 (struct objfile) <intern>: New methods.
8166 * elfread.c (elf_symtab_read): Use intern.
8167 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8168 (dwarf2_compute_name, dwarf2_physname)
8169 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8170 names.
8171 (guess_partial_die_structure_name): Update.
8172 (partial_die_info::fixup): Intern name.
8173 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8174 name.
8175 (dwarf2_name): Intern name. Update.
8176 * buildsym.c (buildsym_compunit::get_macro_table): Use
8177 string_cache.
8178
4e7625fd
TT
81792020-03-04 Tom Tromey <tom@tromey.com>
8180
8181 * jit.c (bfd_open_from_target_memory): Make "target" const.
8182 * corefile.c (gnutarget): Now const.
8183 * gdbcore.h (gnutarget): Now const.
8184
46f9f931
HD
81852020-03-04 Hannes Domani <ssbssa@yahoo.de>
8186
8187 * NEWS: Mention support for WOW64 processes.
8188 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8189 (amd64_windows_segment_register_p): Remove static.
8190 (_initialize_amd64_windows_nat): Update.
8191 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8192 * i386-windows-nat.c (context_offset): Update.
8193 (i386_mappings): Rename and remove static.
8194 (i386_windows_segment_register_p): Remove static.
8195 (_initialize_i386_windows_nat): Update.
8196 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8197 (STATUS_WX86_SINGLE_STEP): New macro.
8198 (EnumProcessModulesEx): New macro.
8199 (Wow64SuspendThread): New macro.
8200 (Wow64GetThreadContext): New macro.
8201 (Wow64SetThreadContext): New macro.
8202 (Wow64GetThreadSelectorEntry): New macro.
8203 (windows_set_context_register_offsets): Add static.
8204 (windows_set_segment_register_p): Likewise.
8205 (windows_add_thread): Adapt for WOW64 processes.
8206 (windows_fetch_one_register): Likewise.
8207 (windows_nat_target::fetch_registers): Likewise.
8208 (windows_store_one_register): Likewise.
8209 (display_selector): Likewise.
8210 (display_selectors): Likewise.
8211 (handle_exception): Likewise.
8212 (windows_continue): Likewise.
8213 (windows_nat_target::resume): Likewise.
8214 (windows_add_all_dlls): Likewise.
8215 (do_initial_windows_stuff): Likewise.
8216 (windows_nat_target::attach): Likewise.
8217 (windows_get_exec_module_filename): Likewise.
8218 (windows_nat_target::create_inferior): Likewise.
8219 (windows_xfer_siginfo): Likewise.
8220 (_initialize_loadable): Initialize Wow64SuspendThread,
8221 Wow64GetThreadContext, Wow64SetThreadContext,
8222 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8223 * windows-nat.h (windows_set_context_register_offsets):
8224 Remove declaration.
8225 (windows_set_segment_register_p): Likewise.
8226 (i386_windows_segment_register_p): Add declaration.
8227 (amd64_windows_segment_register_p): Likewise.
8228
440cf44e
LM
82292020-03-04 Luis Machado <luis.machado@linaro.org>
8230
8231 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8232 in "info registers" for AArch64/ARM.
8233
8234 The change caused "info registers" to not print GPR's.
8235
8236 gdb/ChangeLog:
8237
8238 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8239
8240 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8241 when reg->group is empty and reggroup is not.
8242
1009d92f
TT
82432020-03-03 Tom Tromey <tromey@adacore.com>
8244
8245 * dwarf2/frame.c (struct dwarf2_frame_cache)
8246 <checked_tailcall_bottom, entry_cfa_sp_offset,
8247 entry_cfa_sp_offset_p>: Remove members.
8248 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8249 (dwarf2_frame_prev_register): Don't call
8250 dwarf2_tailcall_sniffer_first.
8251 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8252 * frame-unwind.c (add_unwinder): New fuction.
8253 (frame_unwind_init): Use it. Add tailcall unwinder.
8254
5e5d66b6
AB
82552020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8256 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8257
8258 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8259 value should be printed as true.
8260
584cf46d
HD
82612020-03-03 Hannes Domani <ssbssa@yahoo.de>
8262
8263 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8264 (windows_init_abi): Set and use windows_so_ops.
8265
7b973adc
SDJ
82662020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8267
8268 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8269 when verifying if dealing with a convenience variable.
8270
bb7b70ab
LM
82712020-03-03 Luis Machado <luis.machado@linaro.org>
8272
8273 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8274
9822cb57
SM
82752020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8276
8277 * infrun.c (gdbarch_supports_displaced_stepping): New.
8278 (use_displaced_stepping): Break up conditions in smaller pieces.
8279 Use gdbarch_supports_displaced_stepping.
8280 (displaced_step_prepare_throw): Use
8281 gdbarch_supports_displaced_stepping.
8282
63e163f2
AB
82832020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8284
8285 * NEWS: Mention new behaviour of the history filename.
8286 * top.c (write_history_p): Add comment.
8287 (show_write_history_p): Add header comment, give a different
8288 message when history writing is on, but the history filename is
8289 empty.
8290 (history_filename): Add comment.
8291 (history_filename_empty): New function.
8292 (show_history_filename): Add header comment, give a different
8293 message when the filename is empty.
8294 (init_history): Compare history_filename against nullptr, and only
8295 read history if the filename is not empty.
8296 (set_history_filename): Add header comment, and only make
8297 non-empty filenames absolute.
8298 (init_main): Make the filename argument to 'set history filename'
8299 optional.
8300
81b86b97
CB
83012020-03-02 Christian Biesinger <cbiesinger@google.com>
8302
8303 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8304 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8305 (fetch_fp_register): Update.
8306 (fetch_fp_regs): Update.
8307 (store_fp_register): Update.
8308 (store_fp_regs): Update.
8309 (arm_netbsd_nat_target::read_description): New function.
8310 (fetch_elfcore_registers): Update.
8311
24ed6739
AB
83122020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8313
8314 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8315 general_thread if the stop reply is missing a thread-id.
8316 (remote_target::process_stop_reply): Use the first non-exited
8317 thread if the target didn't pass a thread-id.
8318 * infrun.c (do_target_wait): Move call to
8319 switch_to_inferior_no_thread to ....
8320 (do_target_wait_1): ... here.
8321
a84bb2a0
JT
83222020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8323
8324 * debuginfod-support.c: Include defs.h first.
8325
658dadf0
TV
83262020-02-28 Tom de Vries <tdevries@suse.de>
8327
8328 * symfile.c (set_initial_language): Use default language for lookup.
8329
4ebe4877
SM
83302020-02-28 Simon Marchi <simon.marchi@efficios.com>
8331
8332 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8333 reader variable, pass `this` to read_cutu_die_from_dwo.
8334
e5da1139
AM
83352020-02-27 Aaron Merey <amerey@redhat.com>
8336
8337 * source.c (open_source_file): Check for nullptr when computing
8338 srcpath.
8339
317f7127
TT
83402020-02-27 Tom Tromey <tromey@adacore.com>
8341
8342 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8343 member.
8344 (dwarf2_add_field): Don't update nfields.
8345 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8346
3104d9ee
AB
83472020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8348
8349 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8350 abs.
8351
b83470bf
TT
83522020-02-26 Tom Tromey <tom@tromey.com>
8353
8354 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8355 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8356 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8357 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8358 per_cu_data.
8359
edfe0a0c
TT
83602020-02-26 Tom Tromey <tom@tromey.com>
8361
8362 * dwarf2/index-write.c (psym_index_map): Change type.
8363 (add_address_entry_worker, write_one_signatured_type)
8364 (recursively_count_psymbols, recursively_write_psymbols)
8365 (class debug_names, psyms_seen_size, write_gdbindex)
8366 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8367
0d79cdc4
AM
83682020-02-26 Aaron Merey <amerey@redhat.com>
8369
8370 * Makefile.in: Handle optional debuginfod support.
8371 * NEWS: Update.
8372 * README: Add --with-debuginfod summary.
8373 * config.in: Regenerate.
8374 * configure: Regenerate.
8375 * configure.ac: Handle optional debuginfod support.
8376 * debuginfod-support.c: debuginfod helper functions.
8377 * debuginfod-support.h: Ditto.
8378 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8379 summary.
8380 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8381 when a dwz file cannot be found.
8382 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8383 debuginfo file cannot be found.
8384 * source.c (open_source_file): Query debuginfod servers when a
8385 source file cannot be found.
8386 * top.c (print_gdb_configuration): Include
8387 --{with,without}-debuginfod in the output.
8388
b65ce565
JG
83892020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8390
8391 * thread.c (thr_try_catch_cmd): Print thread name.
8392
d4c9a4f8
SM
83932020-02-26 Simon Marchi <simon.marchi@efficios.com>
8394
8395 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8396 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8397 dwarf2_fetch_die_type_sect_off): Move to...
8398 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8399 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8400 dwarf2_fetch_die_type_sect_off): ... here.
8401 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8402 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8403 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8404
0dce4280
TV
84052020-02-26 Tom de Vries <tdevries@suse.de>
8406
8407 PR gdb/25603
8408 * symfile.c (set_initial_language): Exit-early if
8409 language_mode == language_mode_manual.
8410
450a1bfc
SM
84112020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8412
8413 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8414 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8415 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8416
9e80cfa1
AB
84172020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8418
8419 * gdbtypes.c (create_array_type_with_stride): Handle negative
8420 array strides.
8421 * valarith.c (value_subscripted_rvalue): Likewise.
8422
09624f1f
LM
84232020-02-25 Luis Machado <luis.machado@linaro.org>
8424
8425 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8426
8cb5117c
SM
84272020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8428
8429 * loc.h (dwarf2_get_die_type): Move to...
8430 * read.h (dwarf2_get_die_type): ... here.
8431 * read.c (dwarf2_get_die_type): Move doc to header.
8432
c325c44e
JB
84332020-02-25 Joel Brobecker <brobecker@adacore.com>
8434
8435 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8436 'gnulib/Makefile.in' to the list.
8437
4ac93832
TT
84382020-02-24 Tom Tromey <tom@tromey.com>
8439
8440 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8441 Remove.
8442 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8443 XOBNEWVEC.
8444
197400e8
TT
84452020-02-24 Tom Tromey <tom@tromey.com>
8446
8447 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8448 New method.
8449 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8450 (dw2_do_instantiate_symtab, dw2_get_file_names)
8451 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8452
76935768
TT
84532020-02-24 Tom Tromey <tom@tromey.com>
8454
8455 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8456 make_scoped_restore.
8457 (dwarf2_psymtab::read_symtab): Don't clear
8458 reading_partial_symbols.
8459
a88ef40d
TV
84602020-02-24 Tom de Vries <tdevries@suse.de>
8461
8462 PR gdb/25592
8463 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8464
c9af6521
TV
84652020-02-24 Tom de Vries <tdevries@suse.de>
8466
8467 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8468 commands layout next/prev/regs.
8469
5707a07a
TT
84702020-02-22 Tom Tromey <tom@tromey.com>
8471
8472 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8473 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8474
3b0fb49e
TT
84752020-02-22 Tom Tromey <tom@tromey.com>
8476
8477 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8478
283be8bf
TT
84792020-02-22 Tom Tromey <tom@tromey.com>
8480
8481 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8482 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8483 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8484 * tui/tui.c (_initialize_tui): Add usage text.
8485
ca793b96
TT
84862020-02-22 Tom Tromey <tom@tromey.com>
8487
8488 * tui/tui-win.c (tui_set_focus_command)
8489 (tui_set_win_height_command): Use error_no_arg.
8490 (_initialize_tui_win): Update help text.
8491 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8492
432b5c40
TT
84932020-02-22 Tom Tromey <tom@tromey.com>
8494
8495 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8496 * tui/tui-disasm.h (struct tui_disasm_window)
8497 <display_start_addr>: Declare.
8498 * tui/tui-source.h (struct tui_source_window)
8499 <display_start_addr>: Declare.
8500 * tui/tui-winsource.h (struct tui_source_window_base)
8501 <show_source_line, display_start_addr>: New methods.
8502 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8503 Rename and move to protected section.
8504 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8505 (tui_source_window_base::do_erase_source_content): Update.
8506 (tui_source_window_base::show_source_line): Now a method.
8507 (tui_source_window_base::show_source_content)
8508 (tui_source_window_base::tui_source_window_base)
8509 (tui_source_window_base::rerender)
8510 (tui_source_window_base::refill)
8511 (tui_source_window_base::do_scroll_horizontal)
8512 (tui_source_window_base::set_is_exec_point_at)
8513 (tui_source_window_base::update_breakpoint_info)
8514 (tui_source_window_base::update_exec_info): Update.
8515 * tui/tui-source.c (tui_source_window::set_contents)
8516 (tui_source_window::showing_source_p)
8517 (tui_source_window::do_scroll_vertical)
8518 (tui_source_window::location_matches_p)
8519 (tui_source_window::line_is_displayed): Update.
8520 (tui_source_window::display_start_addr): New method.
8521 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8522 (tui_disasm_window::do_scroll_vertical)
8523 (tui_disasm_window::location_matches_p): Update.
8524 (tui_disasm_window::display_start_addr): New method.
8525
01b1af32
TT
85262020-02-22 Tom Tromey <tom@tromey.com>
8527
8528 * NEWS: Add entry for gdb.register_window_type.
8529 * tui/tui-layout.h (window_factory): New typedef.
8530 (tui_register_window): Declare.
8531 * tui/tui-layout.c (saved_tui_windows): New global.
8532 (tui_apply_current_layout): Use it.
8533 (tui_register_window): New function.
8534 * python/python.c (do_start_initialization): Call
8535 gdbpy_initialize_tui.
8536 (python_GdbMethods): Add "register_window_type" function.
8537 * python/python-internal.h (gdbpy_register_tui_window)
8538 (gdbpy_initialize_tui): Declare.
8539 * python/py-tui.c: New file.
8540 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8541
fc96d20b
TT
85422020-02-22 Tom Tromey <tom@tromey.com>
8543
8544 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8545
935c78c0
TT
85462020-02-22 Tom Tromey <tom@tromey.com>
8547
8548 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8549 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8550 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8551 (tui_set_win_focus_to): Move from tui-win.c.
8552
0240c8f1
TT
85532020-02-22 Tom Tromey <tom@tromey.com>
8554
8555 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8556 functions.
8557 (known_window_types): New global.
8558 (tui_get_window_by_name): Reimplement.
8559 (initialize_known_windows): New function.
8560 (validate_window_name): Rewrite.
8561 (_initialize_tui_layout): Call initialize_known_windows.
8562
fdb01f0c
TT
85632020-02-22 Tom Tromey <tom@tromey.com>
8564
8565 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8566 Remove constants.
8567 * tui/tui-winsource.h (struct tui_source_window_base)
8568 <tui_source_window_base>: Remove parameter.
8569 * tui/tui-winsource.c
8570 (tui_source_window_base::tui_source_window_base): Remove
8571 parameter.
8572 (tui_source_window_base::refill): Update.
8573 * tui/tui-stack.h (struct tui_locator_window)
8574 <tui_locator_window>: Update.
8575 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8576 Default the constructor.
8577 * tui/tui-regs.h (struct tui_data_item_window)
8578 <tui_data_item_window>: Default the constructor.
8579 (struct tui_data_window) <tui_data_window>: Likewise.
8580 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8581 Default the constructor.
8582 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8583 Default the constructor.
8584 <type>: Remove.
8585 (struct tui_win_info) <tui_win_info>: Default the constructor.
8586 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8587 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8588 Default the constructor.
8589
865a5aec
TT
85902020-02-22 Tom Tromey <tom@tromey.com>
8591
8592 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8593 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8594 * tui/tui-win.c (tui_resize_all): Don't call
8595 tui_delete_invisible_windows.
8596 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8597 done.
8598 (tui_set_layout): Update.
8599 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8600 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8601 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8602
e098d18c
TT
86032020-02-22 Tom Tromey <tom@tromey.com>
8604
8605 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8606 correctly.
8607
eb9c8874
TT
86082020-02-22 Tom Tromey <tom@tromey.com>
8609
8610 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8611
7eed1a8e
TT
86122020-02-22 Tom Tromey <tom@tromey.com>
8613
8614 * tui/tui-winsource.h (struct tui_source_window_iterator)
8615 <inner_iterator>: New etytypedef.
8616 <tui_source_window_iterator>: Take "end" parameter.
8617 <tui_source_window_iterator>: Take iterator.
8618 <operator*, advance>: Update.
8619 <m_iter>: Change type.
8620 <m_end>: New field.
8621 (struct tui_source_windows) <begin, end>: Update.
8622 * tui/tui-layout.c (tui_windows): New global.
8623 (tui_apply_current_layout): Clear tui_windows.
8624 (tui_layout_window::apply): Update tui_windows.
8625 * tui/tui-data.h (tui_windows): Declare.
8626 (all_tui_windows): Now inline function.
8627 (class tui_window_iterator, struct all_tui_windows): Remove.
8628
7c043ba6
TT
86292020-02-22 Tom Tromey <tom@tromey.com>
8630
8631 PR tui/17850:
8632 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8633 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8634 "height" argument.
8635 (class tui_layout_window) <get_sizes>: Likewise.
8636 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8637 argument.
8638 <get_sizes>: Add "height" argument.
8639 <m_vertical>: New field.
8640 * tui/tui-layout.c (tui_layout_split::clone): Update.
8641 (tui_layout_split::get_sizes): Add "height" argument.
8642 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8643 (tui_new_layout_command): Parse "-horizontal".
8644 (_initialize_tui_layout): Update help string.
8645 (tui_layout_split::specification): Add "-horizontal" when needed.
8646 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8647 argument.
8648 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8649 New methods.
8650
6bc56648
TT
86512020-02-22 Tom Tromey <tom@tromey.com>
8652
8653 * tui/tui-layout.h (enum tui_adjust_result): New.
8654 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8655 (class tui_layout_window) <adjust_size>: Return
8656 tui_adjust_result. Rewrite.
8657 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8658 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8659
c22fef7e
TT
86602020-02-22 Tom Tromey <tom@tromey.com>
8661
8662 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8663 parameter and return types.
8664 (class tui_layout_base) <specification>: Add "depth".
8665 (class tui_layout_window) <specification>: Add "depth".
8666 (class tui_layout_split) <specification>: Add "depth".
8667 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8668 and return types.
8669 (tui_new_layout_command): Parse sub-layouts.
8670 (_initialize_tui_layout): Update help string.
8671 (tui_layout_window::specification): Add "depth".
8672 (add_layout_command): Update.
8673
ee325b61
TT
86742020-02-22 Tom Tromey <tom@tromey.com>
8675
8676 * NEWS: Add "tui new-layout" item.
8677 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8678 Add new-layout command to help text.
8679 (validate_window_name): New function.
8680 (tui_new_layout_command): New function.
8681 (_initialize_tui_layout): Register "new-layout".
8682 (tui_layout_window::specification): New method.
8683 (tui_layout_window::specification): New method.
8684 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8685 method.
8686 (class tui_layout_window) <specification>: New method.
8687 (class tui_layout_split) <specification>: New method.
8688
416eb92d
TT
86892020-02-22 Tom Tromey <tom@tromey.com>
8690
8691 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8692 * tui/tui-win.c (window_name_completer): Update comment.
8693 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8694 Declare method.
8695 (class tui_layout_window) <replace_window>: Likewise.
8696 (class tui_layout_split) <replace_window>: Likewise.
8697 (tui_set_layout): Don't declare.
8698 (tui_set_initial_layout): Declare function.
8699 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8700 (asm_regs_layout): New globals.
8701 (tui_current_layout, show_layout): Remove.
8702 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8703 (find_layout, tui_apply_layout): New function.
8704 (layout_completer): Remove.
8705 (tui_next_layout): Reimplement.
8706 (tui_next_layout_command): New function.
8707 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8708 (tui_regs_layout): Reimplement.
8709 (tui_regs_layout_command): New function.
8710 (extract_display_start_addr): Rewrite.
8711 (next_layout, prev_layout): Remove.
8712 (tui_layout_window::replace_window): New method.
8713 (tui_layout_split::replace_window): New method.
8714 (destroy_layout): New function.
8715 (layout_list): New global.
8716 (add_layout_command): New function.
8717 (initialize_layouts): Update.
8718 (tui_layout_command): New function.
8719 (_initialize_tui_layout): Install "layout" commands.
8720 * tui/tui-data.h (enum tui_layout_type): Remove.
8721 (tui_current_layout): Don't declare.
8722
0dbc2fc7
TT
87232020-02-22 Tom Tromey <tom@tromey.com>
8724
8725 * tui/tui-regs.c (tui_reg_layout): Remove.
8726 (tui_reg_command): Use tui_regs_layout.
8727 * tui/tui-layout.h (tui_reg_command): Declare.
8728 * tui/tui-layout.c (tui_reg_command): New function.
8729
5afe342e
TT
87302020-02-22 Tom Tromey <tom@tromey.com>
8731
8732 * tui/tui.c (tui_rl_delete_other_windows): Call
8733 tui_remove_some_windows.
8734 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8735 Declare method.
8736 (class tui_layout_window) <remove_windows>: New method.
8737 (class tui_layout_split) <remove_windows>: Declare.
8738 (tui_remove_some_windows): Declare.
8739 * tui/tui-layout.c (tui_remove_some_windows): New function.
8740 (tui_layout_split::remove_windows): New method.
8741
427326a8
TT
87422020-02-22 Tom Tromey <tom@tromey.com>
8743
8744 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8745 * tui/tui-layout.h (tui_next_layout): Declare.
8746 * tui/tui-layout.c (tui_next_layout): New function.
8747
3fe12b6d
TT
87482020-02-22 Tom Tromey <tom@tromey.com>
8749
8750 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8751 correct coordinates.
8752
59b8b5d2
TT
87532020-02-22 Tom Tromey <tom@tromey.com>
8754
8755 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8756 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8757 DATA_WIN case.
8758
2a3d458b
TT
87592020-02-22 Tom Tromey <tom@tromey.com>
8760
8761 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8762 TUI_DISASM_WIN, not tui_win_list.
8763
3f0cbb04
TT
87642020-02-22 Tom Tromey <tom@tromey.com>
8765
8766 * valprint.c (generic_val_print_enum_1)
8767 (val_print_type_code_flags): Style member names.
8768 * rust-lang.c (val_print_struct, rust_print_enum)
8769 (rust_print_struct_def, rust_internal_print_type): Style member
8770 names.
8771 * p-valprint.c (pascal_object_print_value_fields): Style member
8772 names. Only call fprintf_symbol_filtered for static members.
8773 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8774 * f-valprint.c (f_val_print): Style member names.
8775 * f-typeprint.c (f_type_print_base): Style member names.
8776 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8777 call fprintf_symbol_filtered for static members.
8778 (cp_print_class_member): Style member names.
8779 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8780 member names.
8781 * ada-valprint.c (ada_print_scalar): Style enum names.
8782 (ada_val_print_enum): Likewise.
8783 * ada-typeprint.c (print_enum_type): Style enum names.
8784
d4d947ae
TT
87852020-02-21 Tom Tromey <tom@tromey.com>
8786
8787 * psympriv.h (struct partial_symtab): Update comment.
8788
e94e944b
TT
87892020-02-21 Tom Tromey <tromey@adacore.com>
8790
8791 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8792 type is CORE_ADDR.
8793
1eb73179
TV
87942020-02-21 Tom de Vries <tdevries@suse.de>
8795
8796 PR gdb/25534
8797 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8798 if dependencies[i]->user != NULL.
8799
4f180d53
AT
88002020-02-21 Ali Tamur <tamur@google.com>
8801
8802 * dwarf2/read.c (dwarf2_name): Add null check.
8803
22b6cd70
TT
88042020-02-20 Tom Tromey <tom@tromey.com>
8805
8806 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8807 ">=", in binary search.
8808 (dwarf2_find_containing_comp_unit): New overload.
8809 (run_test): New self-test.
8810 (_initialize_dwarf2_read): Register new test.
8811
bd0cf5a6
NC
88122020-02-20 Nelson Chu <nelson.chu@sifive.com>
8813
8814 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8815 * riscv-tdep.h: Likewise.
8816 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8817 rv32-only CSR.
8818 * features/riscv/64bit-csr.xml: Regenerated.
8819
3f702acd
SDJ
88202020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8821 Tom Tromey <tom@tromey.com>
8822
8823 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8824 of 'fputc_unfiltered'.
8825 (putchar_unfiltered): Call 'fputc_unfiltered'.
8826 (fputc_unfiltered): Call 'fputs_unfiltered'.
8827
d13c7322
AB
88282020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8829
8830 * config.in: Regenerate.
8831 * configure: Regenerate.
8832 * configure.ac: Add --with-python-libdir option.
8833 * main.c: Use WITH_PYTHON_LIBDIR.
8834
869d8950
TT
88352020-02-19 Tom Tromey <tom@tromey.com>
8836
8837 * symtab.c (general_symbol_info::compute_and_set_names): Use
8838 obstack_strndup. Simplify call to symbol_set_demangled_name.
8839
298e9637
SM
88402020-02-19 Simon Marchi <simon.marchi@efficios.com>
8841
8842 * dwarf2/read.c (allocate_signatured_type_table,
8843 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8844 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8845 Remove objfile parameter, update all callers.
8846
08410482
DE
88472020-02-19 Doug Evans <dje@google.com>
8848
8849 PR rust/25535
8850 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8851 rust_enum_variant calculation.
8852
dfdeeca1
TT
88532020-02-19 Tom Tromey <tromey@adacore.com>
8854
8855 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8856
2ef5453b
TT
88572020-02-19 Tom Tromey <tromey@adacore.com>
8858
8859 * ada-lang.c (cache_symbol): Use obstack_strdup.
8860
9f1528a1
AB
88612020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8862
8863 * configure: Regenerate.
8864
d3c22fa8
TT
88652020-02-19 Tom Tromey <tromey@adacore.com>
8866
8867 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8868 NULL check.
8869
bf84f706
MR
88702020-02-19 Maciej W. Rozycki <macro@wdc.com>
8871
8872 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8873
d1c9b20f
AB
88742020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8875
8876 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8877 if GDBSERVER is not defined.
8878 (riscv_tdesc_cache): Likewise, also store const target_desc.
8879 (STATIC_IN_GDB): Define.
8880 (riscv_create_target_description): Update declaration with
8881 STATIC_IN_GDB.
8882 (riscv_lookup_target_description): New function, only define if
8883 GDBSERVER is not defined.
8884 * arch/riscv.h (riscv_create_target_description): Declare only
8885 when GDBSERVER is defined.
8886 (riscv_lookup_target_description): New declaration when GDBSERVER
8887 is not defined.
8888 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8889 (riscv_linux_read_features): ...this, and return
8890 riscv_gdbarch_features instead of target_desc.
8891 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8892 (riscv_linux_read_description): Rename to...
8893 (riscv_linux_read_features): ...this.
8894 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8895 Update to use riscv_gdbarch_features and
8896 riscv_lookup_target_description.
8897 * riscv-tdep.c (riscv_find_default_target_description): Use
8898 riscv_lookup_target_description instead of
8899 riscv_create_target_description.
8900
373d7ac0
SM
89012020-02-18 Simon Marchi <simon.marchi@efficios.com>
8902
8903 * valprint.c (generic_val_print_enum_1): When printing a flag
8904 enum with value 0 and there is no enumerator with value 0, print
8905 just "0" instead of "(unknown: 0x0)".
8906
b29a2df0
SM
89072020-02-18 Simon Marchi <simon.marchi@efficios.com>
8908
8909 * valprint.c (generic_val_print_enum_1): Print unknown part of
8910 flag enum in hex.
8911
6740f0cc
SM
89122020-02-18 Simon Marchi <simon.marchi@efficios.com>
8913
8914 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8915 flag enums to contain duplicate enumerators.
8916 * valprint.c (generic_val_print_enum_1): Update comment.
8917
edd45eb0
SM
89182020-02-18 Simon Marchi <simon.marchi@efficios.com>
8919
8920 * dwarf2/read.c: Include "count-one-bits.h".
8921 (update_enumeration_type_from_children): If an enumerator has
8922 multiple bits set, don't treat the enumeration as a "flag enum".
8923 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8924 of flag enums have 0 or 1 bit set.
8925
6d0cf446
BE
89262020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8927
8928 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8929 conversion.
8930 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8931 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8932 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8933 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8934 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8935
7001c1b7
SM
89362020-02-18 Simon Marchi <simon.marchi@efficios.com>
8937
8938 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8939
fdb61c6c
SM
89402020-02-14 Simon Marchi <simon.marchi@efficios.com>
8941
8942 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8943 displaced_step_closure_up.
8944 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8945 (struct displaced_step_closure_up):
8946 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8947 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8948 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8949 Likewise.
8950 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8951 * gdbarch.c, gdbarch.h: Re-generate.
8952 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8953 displaced_step_closure_up.
8954 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8955 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8956 * infrun.h (displaced_step_closure_up): New type alias.
8957 (struct displaced_step_inferior_state) <step_closure>: Change
8958 type to displaced_step_closure_up.
8959 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8960 displaced_step_closure_up.
8961 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8962
a4a38eb4
TT
89632020-02-14 Tom Tromey <tom@tromey.com>
8964
8965 * minidebug.c (gnu_debug_key): New global.
8966 (find_separate_debug_file_in_section): Use it.
8967
e8217e61
SM
89682020-02-14 Simon Marchi <simon.marchi@efficios.com>
8969
8970 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8971 std::unique_ptr.
8972 * gdbarch.c: Re-generate.
8973 * gdbarch.h: Re-generate.
8974 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8975 change.
8976 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8977 type to std::unique_ptr.
8978 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8979 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8980 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8981 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8982 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8983 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8984 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8985 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8986 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8987
d8d83535
SM
89882020-02-14 Simon Marchi <simon.marchi@efficios.com>
8989
8990 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
8991 std::unique_ptr.
8992 (displaced_step_clear): Rename to...
8993 (displaced_step_reset): ... this. Just call displaced->reset ().
8994 (displaced_step_clear_cleanup): Rename to...
8995 (displaced_step_reset_cleanup): ... this.
8996 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
8997 (displaced_step_fixup): Likewise.
8998 (resume_1): Likewise.
8999 (handle_inferior_event): Restore child's memory before calling
9000 displaced_step_fixup on the parent.
9001 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9002 to std::unique_ptr.
9003 <step_closure>: Change type to std::unique_ptr.
9004
5f661e03
SM
90052020-02-14 Simon Marchi <simon.marchi@efficios.com>
9006
9007 * arm-tdep.c: Include count-one-bits.h.
9008 (cleanup_block_store_pc): Use count_one_bits.
9009 (cleanup_block_load_pc): Use count_one_bits.
9010 (arm_copy_block_xfer): Use count_one_bits.
9011 (thumb2_copy_block_xfer): Use count_one_bits.
9012 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9013 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9014 (thumb_get_next_pcs_raw): Use count_one_bits.
9015 (arm_get_next_pcs_raw): Use count_one_bits_l.
9016 * arch/arm.c (bitcount): Remove.
9017 * arch/arm.h (bitcount): Remove.
9018
8084e579
TT
90192020-02-14 Tom Tromey <tromey@adacore.com>
9020
9021 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9022 Update.
9023 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9024 * dwarf2/loc.c (call_site_find_chain_1): Return
9025 unique_xmalloc_ptr.
9026 (call_site_find_chain): Likewise.
9027
258bf0ee
RB
90282020-02-14 Richard Biener <rguenther@suse.de>
9029
9030 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9031 on expression with division operators.
9032
f98a8458
AKS
90332020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9034
9035 * MAINTAINERS (Write After Approval): Adding myself.
9036
d1437c0e
TT
90372020-02-12 Tom Tromey <tom@tromey.com>
9038
9039 * event-loop.c (event_data, gdb_event, event_handler_func):
9040 Remove.
9041
3d4560f7
TT
90422020-02-12 Tom Tromey <tom@tromey.com>
9043
9044 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9045 (dwarf2_frame_objfile_data): Add comment.
9046 (find_comp_unit, set_comp_unit): New functions.
9047 (dwarf2_frame_find_fde): Use find_comp_unit.
9048 (dwarf2_build_frame_info): Use set_comp_unit.
9049
21982304
TT
90502020-02-12 Tom Tromey <tom@tromey.com>
9051
9052 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9053 (comp_unit): Don't initialize objfile.
9054 (execute_cfa_program): Add text_offset parameter.
9055 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9056 (dwarf2_frame_cache): Update.
9057 (dwarf2_build_frame_info): Don't set "objfile" member.
9058
4debb237
TT
90592020-02-12 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9062 (decode_frame_entry): Likewise.
9063 (dwarf2_build_frame_info): Update.
9064
0d404d44
TT
90652020-02-12 Tom Tromey <tom@tromey.com>
9066
9067 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9068 (decode_frame_entry_1): Use the comp_unit obstack.
9069
a7a3ae5c
TT
90702020-02-12 Tom Tromey <tom@tromey.com>
9071
9072 * dwarf2/frame.c (struct comp_unit): Add initializers and
9073 constructor.
9074 (dwarf2_frame_objfile_data): Store a comp_unit.
9075 (dwarf2_frame_find_fde): Update.
9076 (dwarf2_build_frame_info): Use "new".
9077
a9d65418
TT
90782020-02-12 Tom Tromey <tom@tromey.com>
9079
9080 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9081 (dwarf2_fde_table): Typedef for std::vector.
9082 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9083 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9084 (decode_frame_entry): Update.
9085 (dwarf2_build_frame_info): Use "new".
9086
7559c217
CB
90872020-02-12 Christian Biesinger <cbiesinger@google.com>
9088
9089 * arm-tdep.c (arm_gdbarch_init): Update.
9090 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9091 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9092 have_neon, is_m>: Change to bool.
9093
aeefc73c
CB
90942020-02-12 Christian Biesinger <cbiesinger@google.com>
9095
9096 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9097
d27b8e5f
TT
90982020-02-12 Tom Tromey <tom@tromey.com>
9099
9100 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9101
cd5900f3
HD
91022020-02-12 Hannes Domani <ssbssa@yahoo.de>
9103
9104 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9105 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9106
f056b22b
TT
91072020-02-11 Tom Tromey <tom@tromey.com>
9108
9109 * psymtab.h: Update comment.
9110
f92ff6b5
TT
91112020-02-11 Tom Tromey <tom@tromey.com>
9112
9113 * gdb_obstack.h (struct auto_obstack): Use
9114 DISABLE_COPY_AND_ASSIGN.
9115
3fd6912b
TT
91162020-02-11 Tom Tromey <tom@tromey.com>
9117
9118 * dwarf2/frame.h (struct objfile): Don't forward declare.
9119
69ed9b74
CB
91202020-02-11 Christian Biesinger <cbiesinger@google.com>
9121
9122 * cris-tdep.c (cris_supply_gregset): Change signature to match
9123 what struct regset expects.
9124 (cris_regset): New struct.
9125 (fetch_core_registers): Remove.
9126 (cris_iterate_over_regset_sections): New function.
9127 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9128 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9129
bda874f6
CB
91302020-02-11 Christian Biesinger <cbiesinger@google.com>
9131
9132 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9133 registers.
9134
754e1564
CB
91352020-02-11 Christian Biesinger <cbiesinger@google.com>
9136
9137 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9138
8ddd8e0e
SM
91392020-02-11 Simon Marchi <simon.marchi@efficios.com>
9140
9141 * configure: Re-generate.
9142
898e7f60
SM
91432020-02-11 Simon Marchi <simon.marchi@efficios.com>
9144
9145 * configure: Re-generate.
9146
58df732b
SM
91472020-02-11 Simon Marchi <simon.marchi@efficios.com>
9148
9149 * acinclude: Update warning.m4 path.
9150 * warning.m4: Move to gdbsupport.
9151
da5bd37e
TT
91522020-02-11 Tom Tromey <tromey@adacore.com>
9153
9154 * remote.c (remote_console_output): Update.
9155 * printcmd.c (printf_command): Update.
9156 * event-loop.c (gdb_wait_for_event): Update.
9157 * linux-nat.c (sigchld_handler): Update.
9158 * remote-sim.c (gdb_os_write_stdout): Update.
9159 (gdb_os_flush_stdout): Update.
9160 (gdb_os_flush_stderr): Update.
9161 (gdb_os_write_stderr): Update.
9162 * exceptions.c (print_exception): Update.
9163 * remote-fileio.c (remote_fileio_func_read): Update.
9164 (remote_fileio_func_write): Update.
9165 * tui/tui.c (tui_enable): Update.
9166 * tui/tui-interp.c (tui_interp::init): Update.
9167 * utils.c (init_page_info): Update.
9168 (putchar_unfiltered, fputc_unfiltered): Update.
9169 (gdb_flush): Update.
9170 (emit_style_escape): Update.
9171 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9172 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9173 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9174 (stderr_file::write): Update.
9175 (stderr_file::puts): Update.
9176 * ui-file.h (ui_file_isatty, ui_file_write)
9177 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9178 (ui_file_puts): Don't declare.
9179
85f0dd3c
TV
91802020-02-10 Tom de Vries <tdevries@suse.de>
9181
9182 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9183 sentinel to char *.
9184
2e927613
TV
91852020-02-09 Tom de Vries <tdevries@suse.de>
9186
9187 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9188 filename if it matches "<artificial>".
9189
6bafc845
HD
91902020-02-09 Hannes Domani <ssbssa@yahoo.de>
9191
9192 * windows-tdep.c (struct enum_value_name): New struct.
9193 (create_enum): New function.
9194 (windows_get_siginfo_type): Create and use enum types.
9195
7928d571
HD
91962020-02-09 Hannes Domani <ssbssa@yahoo.de>
9197
9198 * NEWS: Mention $_siginfo support for Windows.
9199 * windows-nat.c (handle_exception): Set siginfo_er.
9200 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9201 (windows_xfer_siginfo): New function.
9202 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9203 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9204 (init_windows_gdbarch_data): New function.
9205 (get_windows_gdbarch_data): New function.
9206 (windows_get_siginfo_type): New function.
9207 (windows_init_abi): Register windows_get_siginfo_type.
9208 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9209
6751ebae
TT
92102020-02-08 Tom Tromey <tom@tromey.com>
9211
9212 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9213 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9214 <keep>: Declare method.
9215 <m_keep>: Remove member.
9216 <~cutu_reader>: Remove.
9217 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9218 (cutu_reader::cutu_reader): Update.
9219 (cutu_reader::keep): Rename from ~cutu_reader.
9220 (process_psymtab_comp_unit, build_type_psymtabs_1)
9221 (process_skeletonless_type_unit, load_partial_comp_unit)
9222 (load_full_comp_unit, dwarf2_read_addr_index)
9223 (read_signatured_type): Update.
9224
135f5437
TT
92252020-02-08 Tom Tromey <tom@tromey.com>
9226
9227 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9228 "want_partial_unit" parameter.
9229 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9230 Inline check for DW_TAG_partial_unit.
9231 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9232
9f66ff1c
TT
92332020-02-08 Tom Tromey <tom@tromey.com>
9234
9235 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9236 read.c.
9237 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9238 read.c.
9239
c8a7a66f
TT
92402020-02-08 Tom Tromey <tom@tromey.com>
9241
9242 * dwarf2/read.c (read_address): Move to comp-unit.c.
9243 (dwarf2_rnglists_process, dwarf2_ranges_process)
9244 (read_attribute_value, dwarf_decode_lines_1)
9245 (var_decode_location, decode_locdesc): Update.
9246 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9247 read.c. Remove "cu" parameter.
9248 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9249 method.
9250
8266302d
TT
92512020-02-08 Tom Tromey <tom@tromey.com>
9252
9253 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9254 (read_indirect_line_string): Update.
9255 * dwarf2/comp-unit.c (read_offset): Remove.
9256 (read_comp_unit_head): Update.
9257 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9258 method.
9259 (read_offset): Don't declare.
9260
4057dfde
TT
92612020-02-08 Tom Tromey <tom@tromey.com>
9262
9263 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9264 * dwarf2/read.c (struct comp_unit_head): Move to
9265 dwarf2/comp-unit.h.
9266 (enum class rcuh_kind): Move to comp-unit.h.
9267 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9268 (read_comp_unit_head, error_check_comp_unit_head)
9269 (read_and_check_comp_unit_head): Move to comp-unit.c.
9270 (read_offset, dwarf_unit_type_name): Likewise.
9271 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9272 (cutu_reader::cutu_reader, read_call_site_scope)
9273 (find_partial_die, follow_die_offset): Update.
9274 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9275
24aa364d
TT
92762020-02-08 Tom Tromey <tom@tromey.com>
9277
9278 * dwarf2/read.c (read_offset_1): Move to leb.c.
9279 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9280 (dwarf_decode_macro_bytes): Update.
9281 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9282 * dwarf2/leb.h (read_offset): Declare.
9283
2c7d5afc
TT
92842020-02-08 Tom Tromey <tom@tromey.com>
9285
9286 * dwarf2/read.c (dwarf2_section_size): Remove.
9287 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9288 Update.
9289 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9290
4075cb26
TT
92912020-02-08 Tom Tromey <tom@tromey.com>
9292
9293 * dwarf2/read.c (read_initial_length): Move to leb.c.
9294 * dwarf2/leb.h (read_initial_length): Declare.
9295 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9296 handle_nonstd parameter.
9297 * dwarf2/frame.c (read_initial_length): Remove.
9298 (decode_frame_entry_1): Update.
9299
09ba997f
TT
93002020-02-08 Tom Tromey <tom@tromey.com>
9301
9302 * dwarf2/loc.c (dwarf2_find_location_expression)
9303 (dwarf_evaluate_loc_desc::get_tls_address)
9304 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9305 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9306 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9307 (dwarf2_compile_property_to_c)
9308 (dwarf2_loc_desc_get_symbol_read_needs)
9309 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9310 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9311 (loclist_describe_location, loclist_tracepoint_var_ref)
9312 (loclist_generate_c_location): Update.
9313 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9314 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9315 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9316 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9317 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9318 (dwarf2_per_cu_data::addr_size)
9319 (dwarf2_per_cu_data::ref_addr_size)
9320 (dwarf2_per_cu_data::text_offset)
9321 (dwarf2_per_cu_data::addr_type): Now methods.
9322 (per_cu_header_read_in): Make per_cu "const".
9323 (dwarf2_version): Remove.
9324 (dwarf2_per_cu_data::int_type): Now a method.
9325 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9326 (set_die_type, read_array_type, read_subrange_index_type)
9327 (read_tag_string_type, read_subrange_type): Update.
9328 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9329 offset_size, ref_addr_size, text_offset, addr_type, version,
9330 objfile, int_type, addr_sized_int_type>: Declare methods.
9331
96c738c0
TT
93322020-02-08 Tom Tromey <tom@tromey.com>
9333
9334 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9335 Move earlier.
9336
8fdd972c
TT
93372020-02-08 Tom Tromey <tom@tromey.com>
9338
9339 * dwarf2/read.h (dwarf_line_debug): Declare.
9340 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9341 * dwarf2/read.c: Move line_header code to new files.
9342 (dwarf_line_debug): No longer static.
9343 * dwarf2/line-header.c: New file.
9344 * dwarf2/line-header.h: New file.
9345
03075812
TT
93462020-02-08 Tom Tromey <tom@tromey.com>
9347
9348 * dwarf2/read.c (struct line_header) <file_full_name,
9349 file_file_name>: Return unique_xmalloc_ptr.
9350 (line_header::file_file_name): Update.
9351 (line_header::file_full_name): Update.
9352 (dw2_get_file_names_reader): Update.
9353 (macro_start_file): Update.
9354
bb822404
TT
93552020-02-08 Tom Tromey <tom@tromey.com>
9356
9357 * dwarf2/read.c (struct line_header) <file_full_name,
9358 file_file_name>: Declare methods.
9359 (dw2_get_file_names_reader): Update.
9360 (file_file_name): Now a method.
9361 (file_full_name): Likewise.
9362 (macro_start_file): Update.
9363
009b64fc
TT
93642020-02-08 Tom Tromey <tom@tromey.com>
9365
9366 * dwarf2/read.c (dwarf_always_disassemble)
9367 (show_dwarf_always_disassemble): Move to loc.c.
9368 (_initialize_dwarf2_read): Move "always-disassemble" registration
9369 to loc.c.
9370 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9371 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9372 static.
9373 (show_dwarf_always_disassemble): Move from read.c.
9374 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9375
5895093f
TT
93762020-02-08 Tom Tromey <tom@tromey.com>
9377
9378 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9379 (create_quick_file_names_table): Return htab_up.
9380 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9381 Update.
9382 * dwarf2/read.h (struct dwarf2_per_objfile)
9383 <quick_file_names_table>: Now htab_up.
9384
b3b32279
TT
93852020-02-08 Tom Tromey <tom@tromey.com>
9386
9387 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9388
1d33d811
TT
93892020-02-08 Tom Tromey <tom@tromey.com>
9390
9391 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9392 Rewrite.
9393 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9394 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9395 (abbrev_table::abbrev_table): No longer inline.
9396 (ABBREV_HASH_SIZE): Remove.
9397 (abbrev_table::m_abbrevs): Now an htab_up.
9398
86de1d91
TT
93992020-02-08 Tom Tromey <tom@tromey.com>
9400
9401 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9402 (cutu_reader): Update.
9403 (build_type_psymtabs_1): Update.
9404 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9405 (abbrev_table::alloc_abbrev): Update.
9406 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9407 (abbrev_table::read): New static method, renamed from
9408 abbrev_table_read_table.
9409 (abbrev_table::alloc_abbrev)
9410 (abbrev_table::add_abbrev): Now private.
9411 (abbrev_table::abbrev_table): Now private.
9412 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9413
0335378b
TT
94142020-02-08 Tom Tromey <tom@tromey.com>
9415
9416 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9417 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9418 htab_up.
9419
48b490f2
TT
94202020-02-08 Tom Tromey <tom@tromey.com>
9421
9422 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9423 htab_up.
9424 (lookup_dwo_unit_in_dwp): Update.
9425 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9426 on obstack.
9427
bc68fb19
TT
94282020-02-08 Tom Tromey <tom@tromey.com>
9429
9430 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9431 obstack.
9432
d15acc42
TT
94332020-02-08 Tom Tromey <tom@tromey.com>
9434
9435 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9436 line_header_hash.
9437 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9438 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9439 Change type to htab_up.
9440
eaa5fa8b
TT
94412020-02-08 Tom Tromey <tom@tromey.com>
9442
9443 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9444 htab_up. Don't allocate on obstack.
9445 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9446 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9447 Change type to htab_up.
9448
b0b6a987
TT
94492020-02-08 Tom Tromey <tom@tromey.com>
9450
9451 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9452 Change type to htab_up.
9453 * dwarf2/read.c (create_signatured_type_table_from_index)
9454 (create_signatured_type_table_from_debug_names)
9455 (create_all_type_units, add_type_unit)
9456 (lookup_dwo_signatured_type, lookup_signatured_type)
9457 (process_skeletonless_type_unit): Update.
9458 (create_debug_type_hash_table, create_debug_types_hash_table):
9459 Change type of types_htab.
9460 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9461 htab_up. Don't allocate on obstack.
9462 (create_cus_hash_table): Change type of cus_htab parameter.
9463 (struct dwo_file) <cus, tus>: Now htab_up.
9464 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9465 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9466 (queue_and_load_all_dwo_tus): Update.
9467 * dwarf2/index-write.c (write_gdbindex): Update.
9468 (write_debug_names): Update.
9469
39856def
TT
94702020-02-08 Tom Tromey <tom@tromey.com>
9471
9472 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9473 dwarf2/read.c. Remove "next" member. Add constructor ntad
9474 destructor.
9475 (struct dwarf2_per_objfile) <queue>: New member.
9476 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9477 dwarf2/read.h.
9478 (dwarf2_queue, dwarf2_queue_tail): Remove.
9479 (class dwarf2_queue_guard): Add parameter to constructor. Use
9480 DISABLE_COPY_AND_ASSIGN.
9481 <m_per_objfile>: New member.
9482 <~dwarf2_queue_guard>: Rewrite.
9483 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9484 Update.
9485 (~dwarf2_queue_item): New.
9486
3e225074
TT
94872020-02-08 Tom Tromey <tom@tromey.com>
9488
9489 * dwarf2/read.c (struct die_info) <has_children>: New member.
9490 (dw2_get_file_names_reader): Remove has_children.
9491 (dw2_get_file_names): Update.
9492 (read_cutu_die_from_dwo): Remove has_children.
9493 (cutu_reader::init_tu_and_read_dwo_dies)
9494 (cutu_reader::cutu_reader): Update.
9495 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9496 Remove has_children.
9497 (build_type_psymtabs_1, process_skeletonless_type_unit)
9498 (load_partial_comp_unit, load_full_comp_unit): Update.
9499 (create_dwo_cu_reader): Remove has_children.
9500 (create_cus_hash_table, read_die_and_children): Update.
9501 (read_full_die_1,read_full_die): Remove has_children.
9502 (read_signatured_type): Update.
9503 (class cutu_reader) <has_children>: Remove.
9504
82ca8957
TT
95052020-02-08 Tom Tromey <tom@tromey.com>
9506
9507 * dwarf2/expr.c: Rename from dwarf2expr.c.
9508 * dwarf2/expr.h: Rename from dwarf2expr.h.
9509 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9510 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9511 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9512 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9513 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9514 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9515 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9516 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9517 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9518 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9519 * dwarf2/loc.c: Rename from dwarf2loc.c.
9520 * dwarf2/loc.h: Rename from dwarf2loc.h.
9521 * dwarf2/read.c: Rename from dwarf2read.c.
9522 * dwarf2/read.h: Rename from dwarf2read.h.
9523 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9524 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9525 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9526 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9527 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9528 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9529 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9530 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9531 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9532 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9533 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9534 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9535 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9536 Update.
9537 * Makefile.in (COMMON_SFILES): Update.
9538 (HFILES_NO_SRCDIR): Update.
9539
9e35d499
TT
95402020-02-08 Tom Tromey <tom@tromey.com>
9541
9542 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9543 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9544
1eba2311
TT
95452020-02-08 Tom Tromey <tom@tromey.com>
9546
9547 * dwarf2read.h (struct die_info): Don't declare.
9548
e41c2da2
TT
95492020-02-08 Tom Tromey <tom@tromey.com>
9550
9551 * dwarf2read.h (die_info_ptr): Remove typedef.
9552
4fc6c0d5
TT
95532020-02-08 Tom Tromey <tom@tromey.com>
9554
9555 * dwarf2read.c (read_call_site_scope)
9556 (handle_data_member_location, dwarf2_add_member_fn)
9557 (mark_common_block_symbol_computed, read_common_block)
9558 (attr_to_dynamic_prop, partial_die_info::read)
9559 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9560 (dwarf2_symbol_mark_computed, set_die_type): Update.
9561 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9562 method.
9563 (attr_form_is_block): Don't declare.
9564 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9565
cd6c91b4
TT
95662020-02-08 Tom Tromey <tom@tromey.com>
9567
9568 * dwarf2read.c (dwarf2_find_base_address, )
9569 (read_call_site_scope, rust_containing_type)
9570 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9571 (handle_data_member_location, dwarf2_add_member_fn)
9572 (get_alignment, read_structure_type, process_structure_scope)
9573 (mark_common_block_symbol_computed, read_common_block)
9574 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9575 (partial_die_info::read, read_attribute_value, new_symbol)
9576 (lookup_die_type, dwarf2_get_ref_die_offset)
9577 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9578 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9579 (dwarf2_symbol_mark_computed): Update.
9580 * dwarf2/attribute.h (struct attribute) <value_as_address,
9581 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9582 methods.
9583 (value_as_address, attr_form_is_section_offset)
9584 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9585 * dwarf2/attribute.c (attribute::value_as_address)
9586 (attribute::form_is_section_offset, attribute::form_is_constant)
9587 (attribute::form_is_ref): Now methods.
9588
162dce55
TT
95892020-02-08 Tom Tromey <tom@tromey.com>
9590
9591 * dwarf2read.c (struct attribute, DW_STRING)
9592 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9593 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9594 (attr_form_is_block, attr_form_is_section_offset)
9595 (attr_form_is_constant, attr_form_is_ref): Move.
9596 * dwarf2/attribute.h: New file.
9597 * dwarf2/attribute.c: New file, from dwarf2read.c.
9598 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9599
3054dd54
TT
96002020-02-08 Tom Tromey <tom@tromey.com>
9601
9602 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9603 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9604 Move.
9605 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9606 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9607 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9608 abbrev.c.
9609 * dwarf2/abbrev.h: New file.
9610 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9611 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9612
96b79293
TT
96132020-02-08 Tom Tromey <tom@tromey.com>
9614
9615 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9616 (dwarf2_section_size, dwarf2_get_section_info)
9617 (create_signatured_type_table_from_debug_names)
9618 (create_addrmap_from_aranges, read_debug_names_from_section)
9619 (get_gdb_index_contents_from_section, read_comp_unit_head)
9620 (error_check_comp_unit_head, read_abbrev_offset)
9621 (create_debug_type_hash_table, init_cu_die_reader)
9622 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9623 (read_comp_units_from_section, create_cus_hash_table)
9624 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9625 (create_dwp_v2_section, dwarf2_rnglists_process)
9626 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9627 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9628 (read_indirect_string_from_dwz, read_addr_index_1)
9629 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9630 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9631 (fill_in_loclist_baton): Update.
9632 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9633 get_containing_section, get_bfd_owner, get_bfd_section,
9634 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9635 (dwarf2_read_section, get_section_name, get_section_file_name)
9636 (get_containing_section, get_section_bfd_owner)
9637 (get_section_bfd_section, get_section_name, get_section_file_name)
9638 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9639 declare.
9640 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9641 (dwarf2_section_info::get_bfd_owner)
9642 (dwarf2_section_info::get_bfd_section)
9643 (dwarf2_section_info::get_name)
9644 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9645 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9646 (dwarf2_section_info::read): Now methods.
9647 * dwarf-index-write.c (class debug_names): Update.
9648
2c86cff9
TT
96492020-02-08 Tom Tromey <tom@tromey.com>
9650
9651 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9652 Move to dwarf2/section.h.
9653 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9654 (get_section_bfd_section, get_section_name)
9655 (get_section_file_name, get_section_id, get_section_flags)
9656 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9657 dwarf2/section.c.
9658 * dwarf2/section.h: New file.
9659 * dwarf2/section.c: New file, from dwarf2read.c.
9660 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9661
f4382c45
TT
96622020-02-08 Tom Tromey <tom@tromey.com>
9663
9664 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9665 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9666 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9667 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9668 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9669 * dwarf2/leb.h: New file, from dwarf2read.c.
9670 * dwarf2/leb.c: New file, from dwarf2read.c.
9671 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9672 Remove.
9673 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9674 (COMMON_SFILES): Add dwarf2/leb.c.
9675
01840b7a
JB
96762020-02-08 Joel Brobecker <brobecker@adacore.com>
9677
9678 GDB 9.1 released.
9679
dfcb27e4
IB
96802020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9681
9682 PR gdb/25190:
aac66a4c
SM
9683 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9684 * gdb/remote.c (remote_console_output): Update.
9685 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9686 (ui_file_puts): ...this.
9687 * gdb/ui-file.h (ui_file_puts): Add declaration.
9688 * gdb/utils.c (emit_style_escape): Update.
9689 (flush_wrap_buffer): Update.
9690 (fputs_maybe_filtered): Update.
9691 (fputs_unfiltered): Add function.
dfcb27e4 9692
faa17681
IB
96932020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9694
aac66a4c
SM
9695 * gdb/event-loop.c (gdb_wait_for_event): Update.
9696 * gdb/printcmd.c (printf_command): Update.
9697 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9698 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9699 (gdb_os_flush_stderr): Update.
9700 * gdb/remote.c (remote_console_output): Update.
9701 * gdb/ui-file.c (gdb_flush): Rename to...
9702 (ui_file_flush): ...this.
9703 (stderr_file::write): Update.
9704 (stderr_file::puts): Update.
9705 * gdb/ui-file.h (gdb_flush): Rename to...
9706 (ui_file_flush): ...this.
9707 * gdb/utils.c (gdb_flush): Add function.
9708 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9709
5abbbe1d
TT
97102020-02-07 Tom Tromey <tromey@adacore.com>
9711
9712 PR breakpoints/24915:
9713 * source.c (find_and_open_source): Do not check basenames_may_differ.
9714
919adfe8
TT
97152020-02-07 Tom Tromey <tom@tromey.com>
9716
9717 * README: Update gdbserver documentation.
9718 * gdbserver: Move to top level.
9719 * configure.tgt (build_gdbserver): Remove.
9720 * configure.ac: Remove --enable-gdbserver.
9721 * configure: Rebuild.
9722 * Makefile.in (distclean): Don't mention gdbserver.
9723
1d5d29e7
SV
97242020-02-06 Shahab Vahedi <shahab@synopsys.com>
9725
9726 * source-cache.c (source_cache::ensure): Surround
9727 get_plain_source_lines with a try/catch.
9728 (source_cache::get_line_charpos): Get rid of try/catch
9729 and only check for the return value of "ensure".
9730 * tui/tui-source.c (tui_source_window::set_contents):
9731 Simplify "nlines" calculation.
9732
6eb1129c
SV
97332020-02-06 Shahab Vahedi <shahab@synopsys.com>
9734
9735 * MAINTAINERS (Write After Approval): Add myself.
9736
c6a42d11
CB
97372020-02-05 Christian Biesinger <cbiesinger@google.com>
9738
9739 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9740 function call.
9741
c8ecdda6
CB
97422020-02-05 Christian Biesinger <cbiesinger@google.com>
9743
9744 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9745
f6480e70
MR
97462020-02-05 Maciej W. Rozycki <macro@wdc.com>
9747
9748 * nat/riscv-linux-tdesc.h: New file.
9749 * nat/riscv-linux-tdesc.c: New file, taking code from...
9750 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9751 ... here.
9752 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9753 NATDEPFILES.
9754
dcc9fbc6
AB
97552020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9756
9757 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9758 we don't set the fake simulator ptid to the null_ptid.
9759
719546c4
SM
97602020-02-03 Simon Marchi <simon.marchi@efficios.com>
9761
9762 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9763 * gdbthread.h (class thread_info) <resumed>: Likewise.
9764 * infrun.c (resume_1): Likewise.
9765 (proceed): Likewise.
9766 (infrun_thread_stop_requested): Likewise.
9767 (stop_all_threads): Likewise.
9768 (handle_inferior_event): Likewise.
9769 (restart_threads): Likewise.
9770 (finish_step_over): Likewise.
9771 (keep_going_stepped_thread): Likewise.
9772 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9773 (linux_handle_extended_wait): Likewise.
9774 * record-btrace.c (get_thread_current_frame_id): Likewise.
9775 * record-full.c (record_full_wait_1): Likewise.
9776 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9777 * target.c (target_resume): Likewise.
9778 * thread.c (set_running_thread): Likewise.
9779
e409c542
AKS
97802020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9781
9782 * f-valprint.c (f77_print_array_1): Changed datatype of index
9783 variable to LONGEST from int to enable it to contain bound
9784 values correctly.
9785
ee98c0da
MR
97862020-02-03 Maciej W. Rozycki <macro@wdc.com>
9787
9788 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9789 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9790 offsets according to FLEN determined.
9791 (riscv_linux_nat_target::read_description): Determine FLEN
9792 dynamically.
9793 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9794 according to FLEN determined.
9795 (riscv_linux_nat_target::store_registers): Likewise.
9796
aa66aac4
SV
97972020-02-01 Shahab Vahedi <shahab@synopsys.com>
9798
9799 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9800 when reg->group is empty and reggroup is not.
9801
fd9faca8
TT
98022020-01-31 Tom Tromey <tromey@adacore.com>
9803
9804 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9805 Call beneath target's mourn_inferior after unpushing.
9806
42330a68
AB
98072020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9808
9809 PR tui/9765
9810 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9811 have enough lines to fill the screen, still return the lowest
9812 address we found.
9813
7a27a45b
AB
98142020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9815
9816 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9817 '-', '<', and '>' commands.
9818
c47f70e2
PA
98192020-01-29 Pedro Alves <palves@redhat.com>
9820 Sergio Durigan Junior <sergiodj@redhat.com>
9821
9822 * infcmd.c (construct_inferior_arguments): Assert that
9823 'argc' is greater than 0.
9824
5133a315
LM
98252020-01-29 Luis Machado <luis.machado@linaro.org>
9826
9827 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9828 (BRK_INSN_MASK): Define to 0xd4200000.
9829 (aarch64_program_breakpoint_here_p): New function.
9830 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9831 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9832 breakpoint.c.
9833 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9834 breakpoint.h
9835 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9836 call gdbarch_program_breakpoint_here_p.
9837 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9838 default_program_breakpoint_here_p, changed return type to bool and
9839 simplified.
9840 * breakpoint.h (program_breakpoint_here): Moved prototype to
9841 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9842 return type to bool.
9843 * gdbarch.c: Regenerate.
9844 * gdbarch.h: Regenerate.
9845 * gdbarch.sh (program_breakpoint_here_p): New method.
9846 * infrun.c (handle_signal_stop): Call
9847 gdbarch_program_breakpoint_here_p.
9848
168f8c6b
TT
98492020-01-26 Tom Tromey <tom@tromey.com>
9850
9851 * ctfread.c (struct ctf_fp_info): Reindent.
9852 (_initialize_ctfread): Remove.
9853
128a391f
TT
98542020-01-26 Tom Tromey <tom@tromey.com>
9855
9856 * psymtab.c (partial_map_expand_apply)
9857 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9858 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9859 (psym_print_stats, psym_expand_symtabs_for_function)
9860 (psym_map_symbol_filenames, psym_map_matching_symbols)
9861 (psym_expand_symtabs_matching)
9862 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9863 (maintenance_check_psymtabs): Use new methods.
9864 * psympriv.h (struct partial_symtab) <readin_p,
9865 get_compunit_symtab>: New methods.
9866 <readin, compunit_symtab>: Remove members.
9867 (struct standard_psymtab): New.
9868 (struct legacy_psymtab): Derive from standard_psymtab.
9869 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9870 standard_psymtab.
9871 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9872
0494dbec
TT
98732020-01-26 Tom Tromey <tom@tromey.com>
9874
9875 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9876 read_dependencies. Add assert.
9877 * psymtab.c (partial_symtab::read_dependencies): New method.
9878 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9879 method.
9880 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9881 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9882 read_dependencies.
9883 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9884 Add assert.
9885
8566b89b
TT
98862020-01-26 Tom Tromey <tom@tromey.com>
9887
9888 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9889 Call expand_psymtab.
9890 (xcoff_read_symtab): Call expand_psymtab.
9891 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9892 legacy_expand_psymtab.
9893 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9894 method.
9895 (struct legacy_psymtab) <expand_psymtab>: Implement.
9896 <legacy_expand_psymtab>: New member.
9897 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9898 (parse_partial_symbols): Set legacy_expand_psymtab.
9899 (psymtab_to_symtab_1): Change argument order. Call
9900 expand_psymtab.
9901 (new_psymtab): Set legacy_expand_psymtab.
9902 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9903 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9904 expand_psymtab.
9905 (dwarf2_psymtab::expand_psymtab): Rename from
9906 psymtab_to_symtab_1. Call expand_psymtab.
9907 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9908 (dbx_end_psymtab): Likewise.
9909 (dbx_psymtab_to_symtab_1): Change argument order. Call
9910 expand_psymtab.
9911 (dbx_read_symtab): Call expand_psymtab.
9912 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9913 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9914 (ctf_psymtab::read_symtab): Call expand_psymtab.
9915
077cbab2
TT
99162020-01-26 Tom Tromey <tom@tromey.com>
9917
9918 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9919 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9920 messages.
9921 * mdebugread.c (mdebug_read_symtab): Remove prints.
9922 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9923 assert.
9924 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9925
891813be
TT
99262020-01-26 Tom Tromey <tom@tromey.com>
9927
9928 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9929 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9930 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9931 legacy_symtab.
9932 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9933 * psymtab.c (psymtab_to_symtab): Call method.
9934 (dump_psymtab): Update.
9935 * psympriv.h (struct partial_symtab): Add virtual destructor.
9936 <read_symtab>: New method.
9937 (struct legacy_symtab): New.
9938 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9939 (struct pst_map) <pst>: Now a legacy_psymtab.
9940 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9941 (new_psymtab): Use legacy_psymtab.
9942 * dwarf2read.h (struct dwarf2_psymtab): New.
9943 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9944 * dwarf2read.c (dwarf2_create_include_psymtab)
9945 (dwarf2_build_include_psymtabs, create_type_unit_group)
9946 (create_partial_symtab, process_psymtab_comp_unit_reader)
9947 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9948 (set_partial_user): Use dwarf2_psymtab.
9949 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9950 (psymtab_to_symtab_1, process_full_comp_unit)
9951 (process_full_type_unit, dwarf2_ranges_read)
9952 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9953 (dwarf_decode_lines): Use dwarf2_psymtab.
9954 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9955 (add_address_entry_worker, write_one_signatured_type)
9956 (recursively_count_psymbols, recursively_write_psymbols)
9957 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9958 (write_debug_names): Likewise.
9959 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9960 <pst>: Now a legacy_psymtab.
9961 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9962 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9963 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9964 * ctfread.c (struct ctf_psymtab): New.
9965 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9966 ctf_psymtab.
9967 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9968 (create_partial_symtab): Return a ctf_psymtab.
9969 (scan_partial_symbols): Update.
9970
c3693a1d
TT
99712020-01-26 Tom Tromey <tom@tromey.com>
9972
9973 * xcoffread.c (xcoff_start_psymtab): Use new.
9974 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9975 renamed from start_psymtab_common.
9976 * psympriv.h (struct partial_symtab): Add new constructor.
9977 (start_psymtab_common): Don't declare.
9978 * mdebugread.c (parse_partial_symbols): Use new.
9979 * dwarf2read.c (create_partial_symtab): Use new.
9980 * dbxread.c (start_psymtab): Use new.
9981 * ctfread.c (create_partial_symtab): Use new.
9982
32caafd0
TT
99832020-01-26 Tom Tromey <tom@tromey.com>
9984
9985 * xcoffread.c (xcoff_end_psymtab): Use new.
9986 * psymtab.c (start_psymtab_common): Use new.
9987 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
9988 Update.
9989 * psympriv.h (struct partial_symtab): Add parameters to
9990 constructor. Don't inline.
9991 (allocate_psymtab): Don't declare.
9992 * mdebugread.c (new_psymtab): Use new.
9993 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
9994 * dbxread.c (dbx_end_psymtab): Use new.
9995
abaa2f23
TT
99962020-01-26 Tom Tromey <tom@tromey.com>
9997
9998 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
9999 allocate_psymtab. Update documentation.
10000 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10001 allocate_psymtab. Do not use new.
10002 (allocate_psymtab): Use new. Update.
10003
6d94535f
TT
100042020-01-26 Tom Tromey <tom@tromey.com>
10005
10006 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10007 * psymtab.c (psym_print_stats): Update.
10008 * psympriv.h (struct partial_symtab) <readin,
10009 psymtabs_addrmap_supported, anonymous>: Now bool.
10010 * mdebugread.c (psymtab_to_symtab_1): Update.
10011 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10012 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10013 (process_full_comp_unit, process_full_type_unit): Update.
10014 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10015 * ctfread.c (psymtab_to_symtab): Update.
10016
6f17252b
TT
100172020-01-26 Tom Tromey <tom@tromey.com>
10018
10019 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10020 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10021 * psymtab.c (psymtab_storage): Delete psymtabs.
10022 (psymtab_storage::allocate_psymtab): Use new.
10023 (psymtab_storage::discard_psymtab): Use delete.
10024 * psympriv.h (struct partial_symtab): Add constructor and
10025 initializers.
10026
f6f1cebc
TT
100272020-01-26 Tom Tromey <tom@tromey.com>
10028
10029 * machoread.c: Do not include psympriv.h.
10030
e47e48f6
PW
100312020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10032
10033 * NEWS: Mention the new option and the set/show commands.
10034
a2fedca9
PW
100352020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10036
10037 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10038 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10039 (validate_exec_file): New variables, enums, functions.
10040 (exec_file_locate_attach, print_section_info): Style the filenames.
10041 (_initialize_exec): Install show_exec_file_mismatch_command and
10042 set_exec_file_mismatch_command.
10043 * gdbcore.h (validate_exec_file): Declare.
10044 * infcmd.c (attach_command): Call validate_exec_file.
10045 * remote.c ( remote_target::remote_add_inferior): Likewise.
10046
7ffa82e1
AB
100472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10048
10049 * frame.c (find_frame_sal): Move call to get_next_frame into more
10050 inner scope.
10051 * inline-frame.c (inilne_state) <inline_state>: Update argument
10052 types.
10053 (inilne_state) <skipped_symbol>: Rename to...
10054 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10055 (skip_inline_frames): Build vector of skipped symbols and use this
10056 to reate the inline_state.
10057 (inline_skipped_symbol): Add a comment and some assertions, fetch
10058 skipped symbol from the list.
10059
3d92a3e3
AB
100602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10061
10062 * buildsym.c (lte_is_less_than): Delete.
10063 (buildsym_compunit::end_symtab_with_blockvector): Create local
10064 lambda function to sort line table entries, and use
10065 std::stable_sort instead of std::sort.
10066 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10067 markers when looking for a previous line.
10068
94a72be7
AB
100692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10070
10071 * dwarf2read.c (lnp_state_machine::record_line): Include
10072 end_sequence parameter in debug print out. Record the line if we
10073 are at an end_sequence marker even if it's not the start of a
10074 statement.
10075 * symmisc.c (maintenance_print_one_line_table): Print end of
10076 sequence markers with 'END' not '0'.
10077
53af73bf
PA
100782020-01-24 Pedro Alves <palves@redhat.com>
10079
10080 PR gdb/25410
10081 * thread.c (scoped_restore_current_thread::restore): Use
10082 switch_to_inferior_no_thread.
10083 * exec.c: Include "progspace-and-thread.h".
10084 (add_target_sections, remove_target_sections):
10085 scoped_restore_current_pspace_and_thread instead of
10086 scoped_restore_current_thread.
10087 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10088 and aspace to the inferior before calling clone_program_space.
10089 Remove stale comment.
10090
3050c6f4
CB
100912020-01-24 Christian Biesinger <cbiesinger@google.com>
10092
10093 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10094 (arm_netbsd_nat_target::fetch_registers): ...this.
10095 (arm_nbsd_nat_target::store_registers): Rename to...
10096 (arm_netbsd_nat_target::store_registers): ...this.
10097
73685c7e
CB
100982020-01-24 Christian Biesinger <cbiesinger@google.com>
10099
10100 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10101 register_t.
10102
89203d40
CB
101032020-01-24 Christian Biesinger <cbiesinger@google.com>
10104
10105 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10106 Update comment.
10107 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10108 Likewise.
10109 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10110 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10111 the correct replacement (iterate_over_regset_sections).
10112 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10113 Update comment.
10114
1ba1ac88
AB
101152020-01-24 Graham Markall <graham.markall@embecosm.com>
10116
10117 PR gdb/23718
10118 * gdb/python/python.c (execute_gdb_command): Call
10119 async_enable_stdin in catch block.
10120
f3364a6d
AB
101212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10122
10123 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10124 SWITCH_THRU_ALL_UIS.
10125
733d0a67
AB
101262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10127
10128 PR tui/9765
10129 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10130 comment, add extra parameter, and update to store previous symbol
10131 when appropriate.
10132 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10133 add extra parameter.
10134 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10135 remove unneeded parameter, add try/catch around gdb_print_insn,
10136 rewrite to add items to asm_lines vector.
10137 (tui_find_backward_disassembly_start_address): New function.
10138 (tui_find_disassembly_address): Updated throughout.
10139 (tui_disasm_window::set_contents): Update for changes to
10140 tui_disassemble.
10141 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10142 number of lines to scroll.
10143
b3b3bada
SM
101442020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10145
10146 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10147 (SECT_OFF_DATA): Likewise.
10148 (SECT_OFF_RODATA): Likewise.
10149 (SECT_OFF_TEXT): Likewise.
10150 (SECT_OFF_BSS): Likewise.
10151 (struct objfile) <text_section_offset, data_section_offset>: New
10152 methods.
10153 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10154 objfile::text_section_offset.
10155 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10156 * coffread.c (coff_symtab_read): Likewise.
10157 (enter_linenos): Likewise.
10158 (process_coff_symbol): Likewise.
10159 * ctfread.c (get_objfile_text_range): Likewise.
10160 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10161 Use objfile::data_section_offset.
10162 * dwarf2-frame.c (execute_cfa_program): Use
10163 objfile::text_section_offset.
10164 (dwarf2_frame_find_fde): Likewise.
10165 * dwarf2read.c (create_addrmap_from_index): Likewise.
10166 (create_addrmap_from_aranges): Likewise.
10167 (dw2_find_pc_sect_compunit_symtab): Likewise.
10168 (process_psymtab_comp_unit_reader): Likewise.
10169 (add_partial_symbol): Likewise.
10170 (add_partial_subprogram): Likewise.
10171 (process_full_comp_unit): Likewise.
10172 (read_file_scope): Likewise.
10173 (read_func_scope): Likewise.
10174 (read_lexical_block_scope): Likewise.
10175 (read_call_site_scope): Likewise.
10176 (dwarf2_rnglists_process): Likewise.
10177 (dwarf2_ranges_process): Likewise.
10178 (dwarf2_ranges_read): Likewise.
10179 (dwarf_decode_lines_1): Likewise.
10180 (new_symbol): Likewise.
10181 (dwarf2_fetch_die_loc_sect_off): Likewise.
10182 (dwarf2_per_cu_text_offset): Likewise.
10183 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10184 * hppa-tdep.c (read_unwind_info): Likewise.
10185 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10186 * psympriv.h (struct partial_symtab): Likewise.
10187 * psymtab.c (find_pc_sect_psymtab): Likewise.
10188 * solib-svr4.c (enable_break): Likewise.
10189 * stap-probe.c (relocate_address): Use
10190 objfile::data_section_offset.
10191 * xcoffread.c (enter_line_range): Use
10192 objfile::text_section_offset.
10193 (read_xcoff_symtab): Likewise.
10194
ab53f382
SM
101952020-01-23 Simon Marchi <simon.marchi@efficios.com>
10196
10197 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10198 declaration to narrower scopes.
10199
e7eee665
SM
102002020-01-23 Simon Marchi <simon.marchi@efficios.com>
10201
10202 * darwin-nat.h (struct darwin_exception_msg, enum
10203 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10204 Move up.
10205 (class darwin_nat_target) <wait_1, check_new_threads,
10206 decode_exception_message, decode_message, stop_inferior,
10207 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10208 * darwin-nat.c (darwin_check_new_threads): Rename to...
10209 (darwin_nat_target::check_new_threads): ... this.
10210 (darwin_suspend_inferior_it): Remove.
10211 (darwin_decode_exception_message): Rename to...
10212 (darwin_nat_target::decode_exception_message): ... this.
10213 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10214 (darwin_decode_message): Rename to...
10215 (darwin_nat_target::decode_message): ... this.
10216 (cancel_breakpoint): Rename to...
10217 (darwin_nat_target::cancel_breakpoint): ... this.
10218 (darwin_wait): Rename to...
10219 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10220 instead of iterate_over_inferiors.
10221 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10222 (darwin_stop_inferior): Rename to...
10223 (darwin_nat_target::stop_inferior): ... this.
10224 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10225 (darwin_init_thread_list): Rename to...
10226 (darwin_nat_target::init_thread_list): ... this.
10227 (darwin_ptrace_him): Rename to...
10228 (darwin_nat_target::ptrace_him): ... this.
10229 (darwin_nat_target::create_inferior): Pass lambda function to
10230 fork_inferior.
10231 (darwin_nat_target::detach): Call stop_inferior instead of
10232 darwin_stop_inferior.
10233 * fork-inferior.h (fork_inferior): Change init_trace_fun
10234 parameter to gdb::function_view.
10235 * fork-inferior.c (fork_inferior): Likewise.
10236
c162ed3e
HD
102372020-01-23 Hannes Domani <ssbssa@yahoo.de>
10238
10239 * i386-cygwin-tdep.c (core_process_module_section): Update.
10240 * windows-nat.c (struct lm_info_windows): Add text_offset.
10241 (windows_xfer_shared_libraries): Update.
10242 * windows-tdep.c (windows_xfer_shared_library):
10243 Add text_offset_cached argument.
10244 * windows-tdep.h (windows_xfer_shared_library): Update.
10245
a1237872
SM
102462020-01-21 Simon Marchi <simon.marchi@efficios.com>
10247
10248 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10249
b3ee6dd9
SM
102502020-01-21 Simon Marchi <simon.marchi@efficios.com>
10251
10252 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10253 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10254 replace with range-based for.
10255 (gdbsim_interrupt_inferior): Remove.
10256 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10257 with a range-based for. Inline code from
10258 gdbsim_interrupt_inferior.
10259
f9fac3c8
SM
102602020-01-21 Simon Marchi <simon.marchi@efficios.com>
10261
10262 * infrun.c (proceed): Fix indentation.
10263
f6474de9
TT
102642020-01-21 Tom Tromey <tromey@adacore.com>
10265
10266 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10267 * python/python.c (python_extension_ops): Update.
10268 (gdbpy_colorize): New function.
10269 * python/lib/gdb/__init__.py (colorize): New function.
10270 * extension.h (ext_lang_colorize): Declare.
10271 * extension.c (ext_lang_colorize): New function.
10272 * extension-priv.h (struct extension_language_ops) <colorize>: New
10273 member.
10274 * cli/cli-style.c (_initialize_cli_style): Update help text.
10275
f0c702d4
LM
102762020-01-21 Luis Machado <luis.machado@linaro.org>
10277
10278 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10279 <cond>: Change type to bool.
10280 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10281 (aarch64_displaced_step_cb): Likewise.
10282 (aarch64_displaced_step_tb): Likewise.
10283
1ab139e5
LM
102842020-01-21 Luis Machado <luis.machado@linaro.org>
10285
10286 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10287 output.
10288
0c271889
LM
102892020-01-21 Luis Machado <luis.machado@linaro.org>
10290
10291 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10292 <pc_adjust>: Adjust the documentation.
10293 (aarch64_displaced_step_fixup): Check if PC really moved before
10294 adjusting it.
10295
4d89c1c7
TT
102962020-01-19 Tom Tromey <tom@tromey.com>
10297
10298 * disasm.c (~gdb_disassembler): New destructor.
10299 (gdb_buffered_insn_length): Call disassemble_free_target.
10300 * disasm.h (class gdb_disassembler): Declare destructor. Use
10301 DISABLE_COPY_AND_ASSIGN.
10302
c0ab21c2
TT
103032020-01-19 Tom Tromey <tom@tromey.com>
10304
10305 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10306 (die_reader_func_ftype): Remove.
10307 (cutu_reader): New class.
10308 (dw2_get_file_names_reader): Remove "data" parameter.
10309 (dw2_get_file_names): Use cutu_reader.
10310 (create_debug_type_hash_table): Update.
10311 (read_cutu_die_from_dwo): Update comment.
10312 (lookup_dwo_unit): Add dwo_name parameter.
10313 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10314 die_reader_func_ftype and data parameters.
10315 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10316 Remove die_reader_func_ftype and data parameters.
10317 (~cutu_reader): New; from init_cutu_and_read_dies.
10318 (cutu_reader::cutu_reader): Rename from
10319 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10320 and data parameters.
10321 (init_cutu_and_read_dies_simple): Remove.
10322 (struct process_psymtab_comp_unit_data): Remove.
10323 (process_psymtab_comp_unit_reader): Remove data parameter; add
10324 want_partial_unit and pretend_language parameters.
10325 (process_psymtab_comp_unit): Use cutu_reader.
10326 (build_type_psymtabs_reader): Remove data parameter.
10327 (build_type_psymtabs_1): Use cutu_reader.
10328 (process_skeletonless_type_unit): Likewise.
10329 (load_partial_comp_unit_reader): Remove.
10330 (load_partial_comp_unit): Use cutu_reader.
10331 (load_full_comp_unit_reader): Remove.
10332 (load_full_comp_unit): Use cutu_reader.
10333 (struct create_dwo_cu_data): Remove.
10334 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10335 dwo_unit parameters.
10336 (create_cus_hash_table): Use cutu_reader.
10337 (struct dwarf2_read_addr_index_data): Remove.
10338 (dwarf2_read_addr_index_reader): Remove.
10339 (dwarf2_read_addr_index): Use cutu_reader.
10340 (read_signatured_type_reader): Remove.
10341 (read_signatured_type): Use cutu_reader.
10342
45bbae5c
TT
103432020-01-19 Tom Tromey <tom@tromey.com>
10344
10345 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10346 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10347 (tui_wrefresh): Declare.
10348 * tui/tui-wingeneral.c (suppress_output): New global.
10349 (tui_suppress_output, ~tui_suppress_output): New constructor and
10350 destructor.
10351 (tui_wrefresh): New function.
10352 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10353 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10354 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10355 method.
10356 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10357 tui_wrefresh.
10358 (tui_data_window::no_refresh): New method.
10359 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10360 (tui_reg_command): Use tui_suppress_output
10361 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10362 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10363 method.
10364 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10365
4f13c1c0
TT
103662020-01-19 Tom Tromey <tom@tromey.com>
10367
10368 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10369 Handle case where symtab is null.
10370
fa47e446
SM
103712020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10372
10373 * linux-fork.c (one_fork_p): Simplify.
10374
26f42329
SM
103752020-01-17 Simon Marchi <simon.marchi@efficios.com>
10376
10377 * top.c (struct qt_args): Remove.
10378 (kill_or_detach): Change return type to void, replace `void *`
10379 parameter with a proper one.
10380 (print_inferior_quit_action): Likewise.
10381 (quit_confirm): Use range-based for loop to iterate over inferiors.
10382 (quit_force): Likewise.
10383
a9ac81b1
SM
103842020-01-17 Simon Marchi <simon.marchi@efficios.com>
10385
10386 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10387 `void *` parameter with proper parameters.
10388 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10389 (print_one_inferior): Change return type to void, replace `void *`
10390 parameter with proper parameters.
10391 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10392 inferiors.
10393 (get_other_inferior): Remove.
10394 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10395 inferiors.
10396
788eca49
SM
103972020-01-17 Simon Marchi <simon.marchi@efficios.com>
10398
10399 * mi/mi-interp.c (report_initial_inferior): Remove.
10400 (mi_interp::init): Use range-based for to iterate over inferiors.
10401
d9bc85b6
SM
104022020-01-17 Simon Marchi <simon.marchi@efficios.com>
10403
10404 * python/py-inferior.c (build_inferior_list): Remove.
10405 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10406
40c94099
CB
104072020-01-16 Christian Biesinger <cbiesinger@google.com>
10408
10409 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10410 (btrace_stitch_trace): Likewise.
10411 * charset.c (intermediate_encoding): Likewise (vaild).
10412 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10413 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10414 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10415
e0cdfe3c
HD
104162020-01-16 Hannes Domani <ssbssa@yahoo.de>
10417
10418 * windows-tdep.c (windows_get_tlb_type):
10419 Add rtl_user_process_parameters type.
10420
790f1718 104212020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10422 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10423
10424 PR build/24805
10425 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10426 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10427 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10428 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10429 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10430 (ps_plog): Redeclare exported functions with default visibility.
10431
3112ed97
NA
104322020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10433
10434 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10435 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10436
8dc3273e
SM
104372020-01-15 Simon Marchi <simon.marchi@efficios.com>
10438
10439 * infcmd.c (post_create_inferior): Use get_thread_regcache
10440 instead of get_current_regcache.
10441
ff47f4f0
TT
104422020-01-14 Tom Tromey <tom@tromey.com>
10443
10444 PR symtab/12535:
10445 * python/python.c (gdbpy_decode_line): Treat empty string the same
10446 as no argument.
10447
975f45b7
TT
104482020-01-14 Tom Tromey <tom@tromey.com>
10449
10450 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10451
25e57356
TT
104522020-01-14 Tom Tromey <tom@tromey.com>
10453
10454 * nat/linux-btrace.c: Don't include <config.h>.
10455 * nat/linux-ptrace.c: Don't include <config.h>.
10456 * nat/x86-linux-dregs.c: Don't include <config.h>.
10457
05ea2a05
TT
104582020-01-14 Tom Tromey <tom@tromey.com>
10459
10460 * configure: Rebuild.
10461 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10462
01027315
TT
104632020-01-14 Tom Tromey <tom@tromey.com>
10464
10465 * nat/x86-linux-dregs.c: Include configh.h.
10466 * nat/linux-ptrace.c: Include configh.h.
10467 * nat/linux-btrace.c: Include configh.h.
10468 * defs.h: Include config.h, bfd.h.
10469 * configure.ac: Don't source common.host.
10470 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10471 * configure: Rebuild.
10472 * acinclude.m4: Update path.
10473 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10474 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10475 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10476 (CLIBS): Add LIBSUPPORT.
10477 (CDEPS): Likewise.
10478 (COMMON_SFILES): Remove gdbsupport files.
10479 (HFILES_NO_SRCDIR): Likewise.
10480 (stamp-version): Update path to create-version.sh.
10481 (ALLDEPFILES): Remove gdbsupport files.
10482
b2ceabe8
TT
104832020-01-14 Tom Tromey <tom@tromey.com>
10484
10485 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10486 USE_WIN32API when needed.
10487 * configure.ac (USE_WIN32API): Don't define.
10488 (WIN32LIBS): Use WIN32APILIBS.
10489 * configure: Rebuild.
10490
25c51f71
TT
104912020-01-14 Tom Tromey <tom@tromey.com>
10492
10493 * configure: Rebuild.
10494 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10495
717c684d
BE
104962020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10497
10498 * skip.c (skip_function_command): Make skip w/o arguments use the
10499 name of the inlined function if pc is inside any inlined function.
10500
7da6a5b9
LM
105012020-01-14 Luis Machado <luis.machado@linaro.org>
10502
10503 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10504 * infrun.c (resume_1): Likewise.
10505 (handle_inferior_event): Remove stale comment.
10506 * linux-nat.c (linux_nat_target::resume): Update comments.
10507 (save_stop_reason): Likewise.
10508 (linux_nat_filter_event): Likewise.
10509 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10510
44e4c775
AB
105112020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10512
10513 * elfread.c (record_minimal_symbol): Set section index to 0 for
10514 non-allocatable sections.
10515
18a8505e
AT
10516
105172020-01-13 Ali Tamur <tamur@google.com>
10518
10519 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10520 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10521 to gdb::optional. Update comments.
10522 (dwo_file): Update comments.
10523 (read_attribute): Update API to take an additional out parameter,
10524 need_reprocess. This is used to mark attributes that need other
10525 attributes (e.g. str_offsets_base) for correct computation which may not
10526 have been read yet.
10527 (read_attribute_reprocess): New function declaration.
10528 (read_addr_index): Likewise.
10529 (read_dwo_str_index): Likewise.
10530 (read_stub_str_index): Likewise.
10531 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10532 (lookup_addr_base): New function definition.
10533 (lookup_ranges_base): Likewise.
10534 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10535 lookup_ranges_base.
10536 (init_cutu_and_read_dies): Update comments.
10537 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10538 unit. This is used to inherit parent's str_offsets_base and addr_base.
10539 Update comments.
10540 (init_cutu_and_read_dies_simple): Reflect API changes.
10541 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10542 (create_cus_hash_table): Change API to take parent compile unit.
10543 Reflect API changes.
10544 (open_and_init_dwo_file): Reflect API changes.
10545 (dwarf2_get_pc_bounds): Update comments.
10546 (dwarf2_record_block_ranges): Likewise.
10547 (read_full_die_1): Change implementation to reprocess attributes that
10548 need str_offsets_base and addr_base.
10549 (partial_die_info::read): Likewise.
10550 (read_attribute_reprocess): New function definition.
10551 (read_attribute_value): Change API to take an additional out parameter,
10552 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10553 when a non-dwo compile unit has index based attributes.
10554 (read_attribute): Reflect API changes.
10555 (read_addr_index_1): Reflect API changes. Update comments.
10556 (dwarf2_read_addr_index_data): Reflect API changes.
10557 (dwarf2_read_addr_index): Likewise.
10558 (read_str_index): Change API and implementation. This becomes a helper
10559 to be used by the new string index related methods. Update error
10560 message and comments.
10561 (read_dwo_str_index): New function definition.
10562 (read_stub_str_index): Likewise.
10563 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10564 * symfile.h (dwarf2_debug_sections): Likewise.
10565 * xcoffread.c (dwarf2_debug_sections): Likewise.
10566
0cac9354
SM
105672020-01-13 Simon Marchi <simon.marchi@efficios.com>
10568
10569 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10570 core_reg_sect type to gdb_byte *.
10571 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10572 * cris-tdep.c (fetch_core_registers): Likewise.
10573 * corelow.c (core_target::get_core_register_section): Change
10574 type of `contents` to gdb::byte_vector.
10575
9a6d629c
AB
105762020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10577
10578 * tui/tui-wingeneral.c (box_win): Position the title in the center
10579 of the border.
10580
d8b2f9e3
SM
105812020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10582
10583 * corelow.c (core_target::get_core_register_section): Use
10584 std::vector instead of alloca.
10585
bb564c58
SM
105862020-01-13 Simon Marchi <simon.marchi@efficios.com>
10587
10588 * warning.m4: Add -Wmissing-declarations to build_warnings.
10589 * configure: Re-generate.
10590
6b366111
SM
105912020-01-13 Simon Marchi <simon.marchi@efficios.com>
10592
10593 * python/python.c (init__gdb_module): Add declaration.
10594
6c265988
SM
105952020-01-13 Simon Marchi <simon.marchi@efficios.com>
10596
10597 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10598 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10599 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10600 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10601 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10602 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10603 * ada-exp.y (_initialize_ada_exp): Add declaration.
10604 * ada-lang.c (_initialize_ada_language): Add declaration.
10605 * ada-tasks.c (_initialize_tasks): Add declaration.
10606 * agent.c (_initialize_agent): Add declaration.
10607 * aix-thread.c (_initialize_aix_thread): Add declaration.
10608 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10609 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10610 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10611 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10612 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10613 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10614 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10615 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10616 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10617 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10618 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10619 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10620 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10621 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10622 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10623 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10624 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10625 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10626 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10627 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10628 * annotate.c (_initialize_annotate): Add declaration.
10629 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10630 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10631 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10632 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10633 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10634 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10635 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10636 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10637 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10638 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10639 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10640 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10641 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10642 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10643 * auto-load.c (_initialize_auto_load): Add declaration.
10644 * auxv.c (_initialize_auxv): Add declaration.
10645 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10646 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10647 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10648 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10649 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10650 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10651 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10652 * breakpoint.c (_initialize_breakpoint): Add declaration.
10653 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10654 * btrace.c (_initialize_btrace): Add declaration.
10655 * charset.c (_initialize_charset): Add declaration.
10656 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10657 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10658 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10659 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10660 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10661 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10662 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10663 * coffread.c (_initialize_coffread): Add declaration.
10664 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10665 * compile/compile.c (_initialize_compile): Add declaration.
10666 * complaints.c (_initialize_complaints): Add declaration.
10667 * completer.c (_initialize_completer): Add declaration.
10668 * copying.c (_initialize_copying): Add declaration.
10669 * corefile.c (_initialize_core): Add declaration.
10670 * corelow.c (_initialize_corelow): Add declaration.
10671 * cp-abi.c (_initialize_cp_abi): Add declaration.
10672 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10673 * cp-support.c (_initialize_cp_support): Add declaration.
10674 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10675 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10676 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10677 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10678 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10679 * ctfread.c (_initialize_ctfread): Add declaration.
10680 * d-lang.c (_initialize_d_language): Add declaration.
10681 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10682 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10683 * dbxread.c (_initialize_dbxread): Add declaration.
10684 * dcache.c (_initialize_dcache): Add declaration.
10685 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10686 * disasm.c (_initialize_disasm): Add declaration.
10687 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10688 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10689 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10690 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10691 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10692 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10693 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10694 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10695 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10696 * elfread.c (_initialize_elfread): Add declaration.
10697 * exec.c (_initialize_exec): Add declaration.
10698 * extension.c (_initialize_extension): Add declaration.
10699 * f-lang.c (_initialize_f_language): Add declaration.
10700 * f-valprint.c (_initialize_f_valprint): Add declaration.
10701 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10702 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10703 * filesystem.c (_initialize_filesystem): Add declaration.
10704 * findcmd.c (_initialize_mem_search): Add declaration.
10705 * findvar.c (_initialize_findvar): Add declaration.
10706 * fork-child.c (_initialize_fork_child): Add declaration.
10707 * frame-base.c (_initialize_frame_base): Add declaration.
10708 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10709 * frame.c (_initialize_frame): Add declaration.
10710 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10711 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10712 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10713 * gcore.c (_initialize_gcore): Add declaration.
10714 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10715 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10716 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10717 * gdbarch.c (_initialize_gdbarch): Add declaration.
10718 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10719 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10720 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10721 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10722 * go-lang.c (_initialize_go_language): Add declaration.
10723 * go32-nat.c (_initialize_go32_nat): Add declaration.
10724 * guile/guile.c (_initialize_guile): Add declaration.
10725 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10726 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10727 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10728 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10729 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10730 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10731 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10732 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10733 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10734 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10735 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10736 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10737 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10738 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10739 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10740 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10741 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10742 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10743 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10744 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10745 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10746 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10747 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10748 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10749 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10750 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10751 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10752 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10753 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10754 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10755 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10756 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10757 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10758 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10759 * infcall.c (_initialize_infcall): Add declaration.
10760 * infcmd.c (_initialize_infcmd): Add declaration.
10761 * inflow.c (_initialize_inflow): Add declaration.
10762 * infrun.c (_initialize_infrun): Add declaration.
10763 * interps.c (_initialize_interpreter): Add declaration.
10764 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10765 * jit.c (_initialize_jit): Add declaration.
10766 * language.c (_initialize_language): Add declaration.
10767 * linux-fork.c (_initialize_linux_fork): Add declaration.
10768 * linux-nat.c (_initialize_linux_nat): Add declaration.
10769 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10770 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10771 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10772 * m2-lang.c (_initialize_m2_language): Add declaration.
10773 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10774 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10775 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10776 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10777 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10778 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10779 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10780 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10781 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10782 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10783 * machoread.c (_initialize_machoread): Add declaration.
10784 * macrocmd.c (_initialize_macrocmd): Add declaration.
10785 * macroscope.c (_initialize_macroscope): Add declaration.
10786 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10787 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10788 * maint.c (_initialize_maint_cmds): Add declaration.
10789 * mdebugread.c (_initialize_mdebugread): Add declaration.
10790 * memattr.c (_initialize_mem): Add declaration.
10791 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10792 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10793 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10794 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10795 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10796 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10797 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10798 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10799 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10800 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10801 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10802 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10803 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10804 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10805 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10806 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10807 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10808 * mipsread.c (_initialize_mipsread): Add declaration.
10809 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10810 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10811 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10812 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10813 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10814 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10815 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10816 * nto-procfs.c (_initialize_procfs): Add declaration.
10817 * objc-lang.c (_initialize_objc_language): Add declaration.
10818 * observable.c (_initialize_observer): Add declaration.
10819 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10820 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10821 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10822 * osabi.c (_initialize_gdb_osabi): Add declaration.
10823 * osdata.c (_initialize_osdata): Add declaration.
10824 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10825 * parse.c (_initialize_parse): Add declaration.
10826 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10827 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10828 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10829 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10830 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10831 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10832 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10833 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10834 * printcmd.c (_initialize_printcmd): Add declaration.
10835 * probe.c (_initialize_probe): Add declaration.
10836 * proc-api.c (_initialize_proc_api): Add declaration.
10837 * proc-events.c (_initialize_proc_events): Add declaration.
10838 * proc-service.c (_initialize_proc_service): Add declaration.
10839 * procfs.c (_initialize_procfs): Add declaration.
10840 * producer.c (_initialize_producer): Add declaration.
10841 * psymtab.c (_initialize_psymtab): Add declaration.
10842 * python/python.c (_initialize_python): Add declaration.
10843 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10844 * record-btrace.c (_initialize_record_btrace): Add declaration.
10845 * record-full.c (_initialize_record_full): Add declaration.
10846 * record.c (_initialize_record): Add declaration.
10847 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10848 * regcache.c (_initialize_regcache): Add declaration.
10849 * reggroups.c (_initialize_reggroup): Add declaration.
10850 * remote-notif.c (_initialize_notif): Add declaration.
10851 * remote-sim.c (_initialize_remote_sim): Add declaration.
10852 * remote.c (_initialize_remote): Add declaration.
10853 * reverse.c (_initialize_reverse): Add declaration.
10854 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10855 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10856 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10857 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10858 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10859 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10860 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10861 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10862 Add declaration.
10863 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10864 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10865 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10866 * rust-exp.y (_initialize_rust_exp): Add declaration.
10867 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10868 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10869 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10870 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10871 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10872 * score-tdep.c (_initialize_score_tdep): Add declaration.
10873 * ser-go32.c (_initialize_ser_dos): Add declaration.
10874 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10875 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10876 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10877 * ser-uds.c (_initialize_ser_socket): Add declaration.
10878 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10879 * serial.c (_initialize_serial): Add declaration.
10880 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10881 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10882 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10883 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10884 * skip.c (_initialize_step_skip): Add declaration.
10885 * sol-thread.c (_initialize_sol_thread): Add declaration.
10886 * solib-aix.c (_initialize_solib_aix): Add declaration.
10887 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10888 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10889 * solib-frv.c (_initialize_frv_solib): Add declaration.
10890 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10891 * solib-target.c (_initialize_solib_target): Add declaration.
10892 * solib.c (_initialize_solib): Add declaration.
10893 * source-cache.c (_initialize_source_cache): Add declaration.
10894 * source.c (_initialize_source): Add declaration.
10895 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10896 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10897 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10898 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10899 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10900 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10901 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10902 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10903 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10904 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10905 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10906 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10907 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10908 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10909 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10910 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10911 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10912 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10913 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10914 * stabsread.c (_initialize_stabsread): Add declaration.
10915 * stack.c (_initialize_stack): Add declaration.
10916 * stap-probe.c (_initialize_stap_probe): Add declaration.
10917 * std-regs.c (_initialize_frame_reg): Add declaration.
10918 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10919 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10920 * symfile.c (_initialize_symfile): Add declaration.
10921 * symmisc.c (_initialize_symmisc): Add declaration.
10922 * symtab.c (_initialize_symtab): Add declaration.
10923 * target.c (_initialize_target): Add declaration.
10924 * target-connection.c (_initialize_target_connection): Add
10925 declaration.
10926 * target-dcache.c (_initialize_target_dcache): Add declaration.
10927 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10928 * thread.c (_initialize_thread): Add declaration.
10929 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10930 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10931 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10932 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10933 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10934 * tracectf.c (_initialize_ctf): Add declaration.
10935 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10936 * tracefile.c (_initialize_tracefile): Add declaration.
10937 * tracepoint.c (_initialize_tracepoint): Add declaration.
10938 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10939 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10940 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10941 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10942 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10943 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10944 * tui/tui.c (_initialize_tui): Add declaration.
10945 * typeprint.c (_initialize_typeprint): Add declaration.
10946 * ui-style.c (_initialize_ui_style): Add declaration.
10947 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10948 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10949 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10950 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10951 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10952 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10953 * unittests/filtered_iterator-selftests.c
10954 (_initialize_filtered_iterator_selftests): Add declaration.
10955 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10956 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10957 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10958 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10959 * unittests/main-thread-selftests.c
10960 (_initialize_main_thread_selftests): Add declaration.
10961 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10962 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10963 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10964 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10965 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10966 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10967 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10968 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10969 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10970 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10971 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10972 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10973 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10974 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10975 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10976 declaration.
10977 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10978 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10979 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10980 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10981 * user-regs.c (_initialize_user_regs): Add declaration.
10982 * utils.c (_initialize_utils): Add declaration.
10983 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
10984 * valops.c (_initialize_valops): Add declaration.
10985 * valprint.c (_initialize_valprint): Add declaration.
10986 * value.c (_initialize_values): Add declaration.
10987 * varobj.c (_initialize_varobj): Add declaration.
10988 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
10989 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
10990 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
10991 * windows-nat.c (_initialize_windows_nat): Add declaration.
10992 (_initialize_check_for_gdb_ini): Add declaration.
10993 (_initialize_loadable): Add declaration.
10994 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
10995 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
10996 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
10997 * xcoffread.c (_initialize_xcoffread): Add declaration.
10998 * xml-support.c (_initialize_xml_support): Add declaration.
10999 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11000 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11001 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11002 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11003
e2de1eec
SM
110042020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11005
11006 * regformats/regdat.sh: Generate declaration for init function.
11007
e0037b4c
SM
110082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11009
11010 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11011 up.
11012 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11013 close_one_inferior>: New methods.
11014 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11015 pass down target to find_inferior_pid.
11016 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11017 Pass down target to find_inferior_ptid.
11018 (gdbsim_target::create_inferior): Pass down target to
11019 add_thread_silent.
11020 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11021 target down to find_inferior_ptid and switch_to_thread.
11022 (gdbsim_target::close): Update to call close_one_inferior.
11023 (struct resume_data): Remove.
11024 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11025 directly, rather than through a void pointer.
11026 (gdbsim_target::resume): Update to call resume_one_inferior.
11027
58920b5b
SM
110282020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11029
11030 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11031
4ec89149
PA
110322020-01-12 Pedro Alves <palves@redhat.com>
11033
11034 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11035 directly for the current inferior instead of
11036 discard_all_inferiors.
11037 (discard_all_inferiors): Delete.
11038
7c392d1d
TT
110392020-01-11 Tom Tromey <tom@tromey.com>
11040
11041 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11042 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11043 deprecated_safe_get_selected_frame.
11044
d9ebdab7
TBA
110452020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11046
11047 * inferior.c (print_inferior): Switch inferior before printing it.
11048
f3c469b9
PA
110492020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11050 Pedro Alves <palves@redhat.com>
11051
11052 * progspace-and-thread.c (switch_to_program_space_and_thread):
11053 Assert there's an inferior for PSPACE. Use
11054 switch_to_inferior_no_thread to switch the inferior too.
11055 * progspace.c (program_space::~program_space): Call
11056 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11057 (program_space::free_all_objfiles): Don't call clear_symtab_users
11058 here.
11059 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11060
65c574f6
PA
110612020-01-10 Pedro Alves <palves@redhat.com>
11062
11063 * NEWS: Mention multi-target debugging, "info connections", and
11064 "add-inferior -no-connection".
11065
2f4fcf00
PA
110662020-01-10 Pedro Alves <palves@redhat.com>
11067
11068 * infrun.c: Include "target-connection.h".
11069 (check_multi_target_resumption): New.
11070 (proceed): Call it.
11071 * target-connection.c (make_target_connection_string): Make
11072 extern.
11073 * target-connection.h (make_target_connection_string): Declare.
11074
121b3efd
PA
110752020-01-10 Pedro Alves <palves@redhat.com>
11076
11077 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11078 * inferior.c (uiout_field_connection): New function.
11079 (print_inferior): Add new "connection-id" column.
11080 (add_inferior_command): Show connection number/string of added
11081 inferior.
11082 * process-stratum-target.h
11083 (process_stratum_target::connection_string): New virtual method.
11084 (process_stratum_target::connection_number): New field.
11085 * remote.c (remote_target::connection_string): New override.
11086 * target-connection.c: New file.
11087 * target-connection.h: New file.
11088 * target.c (decref_target): Remove process_stratum targets from
11089 the connection list.
11090 (target_stack::push): Add process_stratum targets to the
11091 connection list.
11092
4f837581
PA
110932020-01-10 Pedro Alves <palves@redhat.com>
11094
11095 Revert:
11096 2016-04-12 Pedro Alves <palves@redhat.com>
11097 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11098 Remove references to name.
11099 * serial.h (struct serial) <name>: Delete.
11100
f4ec508e
PA
111012020-01-10 Pedro Alves <palves@redhat.com>
11102
11103 * gdbarch-selftests.c (register_to_value_test): Remove "target
11104 already pushed" check.
11105
5b6d1e4f
PA
111062020-01-10 Pedro Alves <palves@redhat.com>
11107 John Baldwin <jhb@FreeBSD.org>
11108
11109 * aarch64-linux-nat.c
11110 (aarch64_linux_nat_target::thread_architecture): Adjust.
11111 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11112 (task_command_1): Likewise.
11113 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11114 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11115 (aix_thread_target::store_registers)
11116 (aix_thread_target::thread_alive): Adjust.
11117 * amd64-fbsd-tdep.c: Include "inferior.h".
11118 (amd64fbsd_get_thread_local_address): Pass down target.
11119 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11120 thread's gdbarch instead of target_gdbarch.
11121 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11122 get_last_target_status.
11123 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11124 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11125 inferiors.
11126 (update_inserted_breakpoint_locations): Skip if inferiors with no
11127 execution.
11128 (update_global_location_list): When handling moribund locations,
11129 find representative inferior for location's pspace, and use thread
11130 count of its process_stratum target.
11131 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11132 * bsd-uthread.c (bsd_uthread_target::wait): Use
11133 as_process_stratum_target and adjust thread_change_ptid and
11134 add_thread calls.
11135 (bsd_uthread_target::update_thread_list): Use
11136 as_process_stratum_target and adjust find_thread_ptid,
11137 thread_change_ptid and add_thread calls.
11138 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11139 find_thread_ptid call.
11140 * corelow.c (add_to_thread_list): Adjust add_thread call.
11141 (core_target_open): Adjust add_thread_silent and thread_count
11142 calls.
11143 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11144 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11145 * event-top.c (async_disconnect): Pop targets from all inferiors.
11146 * exec.c (add_target_sections): Push exec target on all inferiors
11147 sharing the program space.
11148 (remove_target_sections): Remove the exec target from all
11149 inferiors sharing the program space.
11150 (exec_on_vfork): New.
11151 * exec.h (exec_on_vfork): Declare.
11152 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11153 Pass it down.
11154 (fbsd_nat_target::update_thread_list): Adjust.
11155 (fbsd_nat_target::resume): Adjust.
11156 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11157 down.
11158 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11159 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11160 get_thread_arch_regcache call.
11161 * fork-child.c (gdb_startup_inferior): Pass target down to
11162 startup_inferior and set_executing.
11163 * gdbthread.h (struct process_stratum_target): Forward declare.
11164 (add_thread, add_thread_silent, add_thread_with_info)
11165 (in_thread_list): Add process_stratum_target parameter.
11166 (find_thread_ptid(inferior*, ptid_t)): New overload.
11167 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11168 parameter.
11169 (all_threads()): Delete overload.
11170 (all_threads, all_non_exited_threads): Add process_stratum_target
11171 parameter.
11172 (all_threads_safe): Use brace initialization.
11173 (thread_count): Add process_stratum_target parameter.
11174 (set_resumed, set_running, set_stop_requested, set_executing)
11175 (threads_are_executing, finish_thread_state): Add
11176 process_stratum_target parameter.
11177 (switch_to_thread): Use is_current_thread.
11178 * i386-fbsd-tdep.c: Include "inferior.h".
11179 (i386fbsd_get_thread_local_address): Pass down target.
11180 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11181 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11182 have_inferiors check.
11183 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11184 (inf_ptrace_target::attach): Adjust.
11185 * infcall.c (run_inferior_call): Adjust.
11186 * infcmd.c (run_command_1): Pass target to
11187 scoped_finish_thread_state.
11188 (proceed_thread_callback): Skip inferiors with no execution.
11189 (continue_command): Rename 'all_threads' local to avoid hiding
11190 'all_threads' function. Adjust get_last_target_status call.
11191 (prepare_one_step): Adjust set_running call.
11192 (signal_command): Use user_visible_resume_target. Compare thread
11193 pointers instead of inferior_ptid.
11194 (info_program_command): Adjust to pass down target.
11195 (attach_command): Mark target's 'thread_executing' flag.
11196 (stop_current_target_threads_ns): New, factored out from ...
11197 (interrupt_target_1): ... this. Switch inferior before making
11198 target calls.
11199 * inferior-iter.h
11200 (struct all_inferiors_iterator, struct all_inferiors_range)
11201 (struct all_inferiors_safe_range)
11202 (struct all_non_exited_inferiors_range): Filter on
11203 process_stratum_target too. Remove explicit.
11204 * inferior.c (inferior::inferior): Push dummy target on target
11205 stack.
11206 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11207 Add process_stratum_target parameter, and pass it down.
11208 (have_live_inferiors): Adjust.
11209 (switch_to_inferior_and_push_target): New.
11210 (add_inferior_command, clone_inferior_command): Handle
11211 "-no-connection" parameter. Use
11212 switch_to_inferior_and_push_target.
11213 (_initialize_inferior): Mention "-no-connection" option in
11214 the help of "add-inferior" and "clone-inferior" commands.
11215 * inferior.h: Include "process-stratum-target.h".
11216 (interrupt_target_1): Use bool.
11217 (struct inferior) <push_target, unpush_target, target_is_pushed,
11218 find_target_beneath, top_target, process_target, target_at,
11219 m_stack>: New.
11220 (discard_all_inferiors): Delete.
11221 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11222 (all_inferiors, all_non_exited_inferiors): Add
11223 process_stratum_target parameter.
11224 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11225 (target_last_proc_target): New global.
11226 (follow_fork_inferior): Push target on new inferior. Pass target
11227 to add_thread_silent. Call exec_on_vfork. Handle target's
11228 reference count.
11229 (follow_fork): Adjust get_last_target_status call. Also consider
11230 target.
11231 (follow_exec): Push target on new inferior.
11232 (struct execution_control_state) <target>: New field.
11233 (user_visible_resume_target): New.
11234 (do_target_resume): Call target_async.
11235 (resume_1): Set target's threads_executing flag. Consider resume
11236 target.
11237 (commit_resume_all_targets): New.
11238 (proceed): Also consider resume target. Skip threads of inferiors
11239 with no execution. Commit resumtion in all targets.
11240 (start_remote): Pass current inferior to wait_for_inferior.
11241 (infrun_thread_stop_requested): Consider target as well. Pass
11242 thread_info pointer to clear_inline_frame_state instead of ptid.
11243 (infrun_thread_thread_exit): Consider target as well.
11244 (random_pending_event_thread): New inferior parameter. Use it.
11245 (do_target_wait): Rename to ...
11246 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11247 down.
11248 (threads_are_resumed_pending_p, do_target_wait): New.
11249 (prepare_for_detach): Adjust calls.
11250 (wait_for_inferior): New inferior parameter. Handle it. Use
11251 do_target_wait_1 instead of do_target_wait.
11252 (fetch_inferior_event): Adjust. Switch to representative
11253 inferior. Pass target down.
11254 (set_last_target_status): Add process_stratum_target parameter.
11255 Save target in global.
11256 (get_last_target_status): Add process_stratum_target parameter and
11257 handle it.
11258 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11259 (context_switch): Check inferior_ptid == null_ptid before calling
11260 inferior_thread().
11261 (get_inferior_stop_soon): Pass down target.
11262 (wait_one): Rename to ...
11263 (poll_one_curr_target): ... this.
11264 (struct wait_one_event): New.
11265 (wait_one): New.
11266 (stop_all_threads): Adjust.
11267 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11268 event's target.
11269 (switch_back_to_stepped_thread): Also consider target.
11270 (print_stop_event): Update.
11271 (normal_stop): Update. Also consider the resume target.
11272 * infrun.h (wait_for_inferior): Remove declaration.
11273 (user_visible_resume_target): New declaration.
11274 (get_last_target_status, set_last_target_status): New
11275 process_stratum_target parameter.
11276 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11277 process_stratum_target parameter, and use it.
11278 (clear_inline_frame_state (thread_info*)): New.
11279 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11280 process_stratum_target parameter.
11281 (clear_inline_frame_state (thread_info*)): Declare.
11282 * linux-fork.c (delete_checkpoint_command): Pass target down to
11283 find_thread_ptid.
11284 (checkpoint_command): Adjust.
11285 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11286 instead of just tweaking inferior_ptid.
11287 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11288 (exit_lwp): Pass target down to find_thread_ptid.
11289 (attach_proc_task_lwp_callback): Pass target down to
11290 add_thread/set_running/set_executing.
11291 (linux_nat_target::attach): Pass target down to
11292 thread_change_ptid.
11293 (get_detach_signal): Pass target down to find_thread_ptid.
11294 Consider last target status's target.
11295 (linux_resume_one_lwp_throw, resume_lwp)
11296 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11297 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11298 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11299 (linux_nat_target::async_wait_fd): New.
11300 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11301 target down.
11302 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11303 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11304 * linux-thread-db.c (struct thread_db_info::process_target): New
11305 field.
11306 (add_thread_db_info): Save target.
11307 (get_thread_db_info): New process_stratum_target parameter. Also
11308 match target.
11309 (delete_thread_db_info): New process_stratum_target parameter.
11310 Also match target.
11311 (thread_from_lwp): Adjust to pass down target.
11312 (thread_db_notice_clone): Pass down target.
11313 (check_thread_db_callback): Pass down target.
11314 (try_thread_db_load_1): Always push the thread_db target.
11315 (try_thread_db_load, record_thread): Pass target down.
11316 (thread_db_target::detach): Pass target down. Always unpush the
11317 thread_db target.
11318 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11319 target down. Always unpush the thread_db target.
11320 (find_new_threads_callback, thread_db_find_new_threads_2)
11321 (thread_db_target::update_thread_list): Pass target down.
11322 (thread_db_target::pid_to_str): Pass current inferior down.
11323 (thread_db_target::get_thread_local_address): Pass target down.
11324 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11325 target down.
11326 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11327 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11328 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11329 (procfs_init_inferior): Rename to ...
11330 (procfs_target::procfs_init_inferior): ... this and adjust.
11331 (procfs_target::create_inferior, procfs_notice_thread)
11332 (procfs_do_thread_registers): Adjust.
11333 * ppc-fbsd-tdep.c: Include "inferior.h".
11334 (ppcfbsd_get_thread_local_address): Pass down target.
11335 * proc-service.c (ps_xfer_memory): Switch current inferior and
11336 program space as well.
11337 (get_ps_regcache): Pass target down.
11338 * process-stratum-target.c
11339 (process_stratum_target::thread_address_space)
11340 (process_stratum_target::thread_architecture): Pass target down.
11341 * process-stratum-target.h
11342 (process_stratum_target::threads_executing): New field.
11343 (as_process_stratum_target): New.
11344 * ravenscar-thread.c
11345 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11346 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11347 down.
11348 * record-btrace.c (record_btrace_target::info_record): Adjust.
11349 (record_btrace_target::record_method)
11350 (record_btrace_target::record_is_replaying)
11351 (record_btrace_target::fetch_registers)
11352 (get_thread_current_frame_id, record_btrace_target::resume)
11353 (record_btrace_target::wait, record_btrace_target::stop): Pass
11354 target down.
11355 * record-full.c (record_full_wait_1): Switch to event thread.
11356 Pass target down.
11357 * regcache.c (regcache::regcache)
11358 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11359 process_stratum_target parameter and handle it.
11360 (current_thread_target): New global.
11361 (get_thread_regcache): Add process_stratum_target parameter and
11362 handle it. Switch inferior before calling target method.
11363 (get_thread_regcache): Pass target down.
11364 (get_thread_regcache_for_ptid): Pass target down.
11365 (registers_changed_ptid): Add process_stratum_target parameter and
11366 handle it.
11367 (registers_changed_thread, registers_changed): Pass target down.
11368 (test_get_thread_arch_aspace_regcache): New.
11369 (current_regcache_test): Define a couple local test_target_ops
11370 instances and use them for testing.
11371 (readwrite_regcache): Pass process_stratum_target parameter.
11372 (cooked_read_test, cooked_write_test): Pass mock_target down.
11373 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11374 (get_thread_arch_aspace_regcache): Add process_stratum_target
11375 parameter.
11376 (regcache::target): New method.
11377 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11378 (regcache::registers_changed_ptid): Add process_stratum_target
11379 parameter.
11380 (regcache::m_target): New field.
11381 (registers_changed_ptid): Add process_stratum_target parameter.
11382 * remote.c (remote_state::supports_vCont_probed): New field.
11383 (remote_target::async_wait_fd): New method.
11384 (remote_unpush_and_throw): Add remote_target parameter.
11385 (get_current_remote_target): Adjust.
11386 (remote_target::remote_add_inferior): Push target.
11387 (remote_target::remote_add_thread)
11388 (remote_target::remote_notice_new_inferior)
11389 (get_remote_thread_info): Pass target down.
11390 (remote_target::update_thread_list): Skip threads of inferiors
11391 bound to other targets. (remote_target::close): Don't discard
11392 inferiors. (remote_target::add_current_inferior_and_thread)
11393 (remote_target::process_initial_stop_replies)
11394 (remote_target::start_remote)
11395 (remote_target::remote_serial_quit_handler): Pass down target.
11396 (remote_target::remote_unpush_target): New remote_target
11397 parameter. Unpush the target from all inferiors.
11398 (remote_target::remote_unpush_and_throw): New remote_target
11399 parameter. Pass it down.
11400 (remote_target::open_1): Check whether the current inferior has
11401 execution instead of checking whether any inferior is live. Pass
11402 target down.
11403 (remote_target::remote_detach_1): Pass down target. Use
11404 remote_unpush_target.
11405 (extended_remote_target::attach): Pass down target.
11406 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11407 (remote_target::append_resumption): Pass down target.
11408 (remote_target::append_pending_thread_resumptions)
11409 (remote_target::remote_resume_with_hc, remote_target::resume)
11410 (remote_target::commit_resume): Pass down target.
11411 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11412 (remote_target::interrupt_query)
11413 (remote_target::remove_new_fork_children)
11414 (remote_target::check_pending_events_prevent_wildcard_vcont)
11415 (remote_target::remote_parse_stop_reply)
11416 (remote_target::process_stop_reply): Pass down target.
11417 (first_remote_resumed_thread): New remote_target parameter. Pass
11418 it down.
11419 (remote_target::wait_as): Pass down target.
11420 (unpush_and_perror): New remote_target parameter. Pass it down.
11421 (remote_target::readchar, remote_target::remote_serial_write)
11422 (remote_target::getpkt_or_notif_sane_1)
11423 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11424 down target.
11425 (remote_target::mourn_inferior): Pass down target. Use
11426 remote_unpush_target.
11427 (remote_target::core_of_thread)
11428 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11429 (remote_target::pid_to_exec_file)
11430 (remote_target::thread_handle_to_thread_info): Pass down target.
11431 (remote_target::async_wait_fd): New.
11432 * riscv-fbsd-tdep.c: Include "inferior.h".
11433 (riscv_fbsd_get_thread_local_address): Pass down target.
11434 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11435 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11436 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11437 Adjust.
11438 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11439 * solib-svr4.c (enable_break): Pass down target.
11440 * spu-multiarch.c (parse_spufs_run): Pass down target.
11441 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11442 * target-delegates.c: Regenerate.
11443 * target.c (g_target_stack): Delete.
11444 (current_top_target): Return the current inferior's top target.
11445 (target_has_execution_1): Refer to the passed-in inferior's top
11446 target.
11447 (target_supports_terminal_ours): Check whether the initial
11448 inferior was already created.
11449 (decref_target): New.
11450 (target_stack::push): Incref/decref the target.
11451 (push_target, push_target, unpush_target): Adjust.
11452 (target_stack::unpush): Defref target.
11453 (target_is_pushed): Return bool. Adjust to refer to the current
11454 inferior's target stack.
11455 (dispose_inferior): Delete, and inline parts ...
11456 (target_preopen): ... here. Only dispose of the current inferior.
11457 (target_detach): Hold strong target reference while detaching.
11458 Pass target down.
11459 (target_thread_name): Add assertion.
11460 (target_resume): Pass down target.
11461 (target_ops::beneath, find_target_at): Adjust to refer to the
11462 current inferior's target stack.
11463 (get_dummy_target): New.
11464 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11465 has a thread running.
11466 (initialize_targets): Rename to ...
11467 (_initialize_target): ... this.
11468 * target.h: Include "gdbsupport/refcounted-object.h".
11469 (struct target_ops): Inherit refcounted_object.
11470 (target_ops::shortname, target_ops::longname): Make const.
11471 (target_ops::async_wait_fd): New method.
11472 (decref_target): Declare.
11473 (struct target_ops_ref_policy): New.
11474 (target_ops_ref): New typedef.
11475 (get_dummy_target): Declare function.
11476 (target_is_pushed): Return bool.
11477 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11478 (all_matching_threads_iterator::all_matching_threads_iterator):
11479 Handle filter target.
11480 * thread-iter.h (struct all_matching_threads_iterator, struct
11481 all_matching_threads_range, class all_non_exited_threads_range):
11482 Filter by target too. Remove explicit.
11483 * thread.c (threads_executing): Delete.
11484 (inferior_thread): Pass down current inferior.
11485 (clear_thread_inferior_resources): Pass down thread pointer
11486 instead of ptid_t.
11487 (add_thread_silent, add_thread_with_info, add_thread): Add
11488 process_stratum_target parameter. Use it for thread and inferior
11489 searches.
11490 (is_current_thread): New.
11491 (thread_info::deletable): Use it.
11492 (find_thread_ptid, thread_count, in_thread_list)
11493 (thread_change_ptid, set_resumed, set_running): New
11494 process_stratum_target parameter. Pass it down.
11495 (set_executing): New process_stratum_target parameter. Pass it
11496 down. Adjust reference to 'threads_executing'.
11497 (threads_are_executing): New process_stratum_target parameter.
11498 Adjust reference to 'threads_executing'.
11499 (set_stop_requested, finish_thread_state): New
11500 process_stratum_target parameter. Pass it down.
11501 (switch_to_thread): Also match inferior.
11502 (switch_to_thread): New process_stratum_target parameter. Pass it
11503 down.
11504 (update_threads_executing): Reimplement.
11505 * top.c (quit_force): Pop targets from all inferior.
11506 (gdb_init): Don't call initialize_targets.
11507 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11508 Declare.
11509 (windows_add_thread, windows_delete_thread): Adjust.
11510 (get_windows_debug_event): Rename to ...
11511 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11512 * tracefile-tfile.c (tfile_target_open): Pass down target.
11513 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11514 Forward declare.
11515 (switch_to_thread): Add process_stratum_target parameter.
11516 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11517 parameter. Use it.
11518 (mi_on_resume): Pass target down.
11519 * nat/fork-inferior.c (startup_inferior): Add
11520 process_stratum_target parameter. Pass it down.
11521 * nat/fork-inferior.h (startup_inferior): Add
11522 process_stratum_target parameter.
11523 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11524
75c6c844
PA
115252020-01-10 Pedro Alves <palves@redhat.com>
11526
11527 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11528 directly. Instead find the first thread in the thread list and
11529 use switch_to_thread.
11530
78f2c40a
PA
115312020-01-10 Pedro Alves <palves@redhat.com>
11532
11533 * remote.c (remote_target::remote_add_inferior): Don't bind a
11534 process to the current inferior if the current inferior is already
11535 bound to a process.
11536
e7af6c70
TBA
115372020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11538 Pedro Alves <palves@redhat.com>
11539
11540 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11541 If no process is specified, return null_ptid instead of
11542 inferior_ptid.
11543 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11544 TARGET_WAITKIND_SIGNALLED with no pid.
11545
31ba933e
PA
115462020-01-10 Pedro Alves <palves@redhat.com>
11547
11548 * remote.c (first_remote_resumed_thread): New.
11549 (remote_target::wait_as): Use it as default event_ptid instead of
11550 inferior_ptid.
11551
735fc2ca
PA
115522020-01-10 Pedro Alves <palves@redhat.com>
11553
11554 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11555
c17e02e1
PA
115562020-01-10 Pedro Alves <palves@redhat.com>
11557
11558 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11559 not -1.
11560
ab1ddbcf
PA
115612020-01-10 Pedro Alves <palves@redhat.com>
11562
11563 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11564 ptid to get_last_target_status.
11565 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11566 ptid to get_last_target_status.
11567 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11568 get_last_target_status.
11569 (info_program_command): Don't pass a target_waitstatus to
11570 get_last_target_status.
11571 * infrun.c (init_wait_for_inferior): Use
11572 nullify_last_target_wait_ptid.
11573 (get_last_target_status): Handle nullptr arguments.
11574 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11575 (print_stop_event): Don't pass a ptid to get_last_target_status.
11576 (normal_stop): Don't pass a ptid to get_last_target_status.
11577 * infrun.h (get_last_target_status, set_last_target_status): Move
11578 comments here and update.
11579 (nullify_last_target_wait_ptid): Declare.
11580 * linux-fork.c (fork_load_infrun_state): Remove local extern
11581 declaration of nullify_last_target_wait_ptid.
11582 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11583 to get_last_target_status.
11584
f3f8ece4
PA
115852020-01-10 Pedro Alves <palves@redhat.com>
11586
11587 * gdbthread.h (scoped_restore_current_thread)
11588 <dont_restore, restore, m_dont_restore>: Declare.
11589 * thread.c (thread_alive): Add assertion. Return bool.
11590 (switch_to_thread_if_alive): New.
11591 (prune_threads): Switch inferior/thread.
11592 (print_thread_info_1): Switch thread before calling target methods.
11593 (scoped_restore_current_thread::restore): New, factored out from
11594 ...
11595 (scoped_restore_current_thread::~scoped_restore_current_thread):
11596 ... this.
11597 (scoped_restore_current_thread::scoped_restore_current_thread):
11598 Add assertion.
11599 (thread_apply_all_command, thread_select): Use
11600 switch_to_thread_if_alive.
11601 * infrun.c (proceed, restart_threads, handle_signal_stop)
11602 (switch_back_to_stepped_thread): Switch current thread before
11603 calling target methods.
11604
db2d40f7
PA
116052020-01-10 Pedro Alves <palves@redhat.com>
11606
11607 * inferior.c (switch_to_inferior_no_thread): New function,
11608 factored out from ...
11609 (inferior_command): ... here.
11610 * inferior.h (switch_to_inferior_no_thread): Declare.
11611 * mi/mi-main.c (run_one_inferior): Use
11612 switch_to_inferior_no_thread.
11613
bd420a2d
PA
116142020-01-10 Pedro Alves <palves@redhat.com>
11615
11616 * infcmd.c (kill_command): Remove dead code.
11617
ddf5db90
PA
116182020-01-10 Pedro Alves <palves@redhat.com>
11619
11620 * remote.c (remote_target::mourn_inferior): No longer check
11621 whether the target is running.
11622
5018ce90
PA
116232020-01-10 Pedro Alves <palves@redhat.com>
11624
11625 * corelow.c (core_target::has_execution): Change parameter type to
11626 inferior pointer.
11627 * inferior.c (number_of_live_inferiors): Use
11628 inferior::has_execution instead of target_has_execution_1.
11629 * inferior.h (inferior::has_execution): New.
11630 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11631 inferior::has_execution instead of target_has_execution_1.
11632 * process-stratum-target.c
11633 (process_stratum_target::has_execution): Change parameter type to
11634 inferior pointer. Check the inferior's PID instead of
11635 inferior_ptid.
11636 * process-stratum-target.h
11637 (process_stratum_target::has_execution): Change parameter type to
11638 inferior pointer.
11639 * record-full.c (record_full_core_target::has_execution): Change
11640 parameter type to inferior pointer.
11641 * target.c (target_has_execution_1): Change parameter type to
11642 inferior pointer.
11643 (target_has_execution_current): Adjust.
11644 * target.h (target_ops::has_execution): Change parameter type to
11645 inferior pointer.
11646 (target_has_execution_1): Change parameter type to inferior
11647 pointer. Change return type to bool.
11648 * tracefile.h (tracefile_target::has_execution): Change parameter
11649 type to inferior pointer.
11650
74375d18
PA
116512020-01-10 Pedro Alves <palves@redhat.com>
11652
11653 * exceptions.c (print_flush): Remove current_top_target() check.
11654
acdf84a6
PA
116552020-01-10 Pedro Alves <palves@redhat.com>
11656
11657 * remote.c (show_remote_exec_file): Show the current inferior's
11658 exec-file instead of the command variable's value.
11659
ec506636
PA
116602020-01-10 Pedro Alves <palves@redhat.com>
11661
11662 * record-full.c (record_full_resume_ptid): New global.
11663 (record_full_target::resume): Set it.
11664 (record_full_wait_1): Use record_full_resume_ptid instead of
11665 inferior_ptid.
11666
873657b9
PA
116672020-01-10 Pedro Alves <palves@redhat.com>
11668
11669 * gdbthread.h (scoped_restore_current_thread)
11670 <dont_restore, restore, m_dont_restore>: Declare.
11671 * thread.c (thread_alive): Add assertion. Return bool.
11672 (switch_to_thread_if_alive): New.
11673 (prune_threads): Switch inferior/thread.
11674 (print_thread_info_1): Switch thread before calling target methods.
11675 (scoped_restore_current_thread::restore): New, factored out from
11676 ...
11677 (scoped_restore_current_thread::~scoped_restore_current_thread):
11678 ... this.
11679 (scoped_restore_current_thread::scoped_restore_current_thread):
11680 Add assertion.
11681 (thread_apply_all_command, thread_select): Use
11682 switch_to_thread_if_alive.
11683
7f0ae84c
GB
116842020-01-10 George Barrett <bob@bob131.so>
11685
11686 * stap-probe.c (stap_modify_semaphore): Don't check for null
11687 semaphores.
11688 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11689 for null semaphores.
11690
f5a7c406
AB
116912020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11692
11693 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11694 all source windows, and maintain horizontal scroll status while
11695 doing so.
11696
9ae6bf64
TT
116972020-01-09 Tom Tromey <tom@tromey.com>
11698
11699 PR tui/18932:
11700 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11701 update_source_window, not print_source_lines.
11702
b2efe70c
AB
117032020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11704
11705 * tui/tui.c (tui_enable): Register tui hooks after calling
11706 tui_display_main.
11707
5f23a082
CB
117082020-01-09 Christian Biesinger <cbiesinger@google.com>
11709
11710 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11711
3061113b
SM
117122020-01-08 Simon Marchi <simon.marchi@efficios.com>
11713
11714 * thread.c (print_thread_info_1): Fix indentation.
11715
57d75002
CB
117162020-01-09 Christian Biesinger <cbiesinger@google.com>
11717
11718 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11719 unique_xmalloc_ptr outside the if to always free the demangled name.
11720
6a053cb1
TT
117212020-01-08 Tom Tromey <tromey@adacore.com>
11722
11723 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11724 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11725 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11726 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11727 Remove.
11728 (section_offsets): New typedef.
11729 * symtab.c (fixup_section, get_msymbol_address): Update.
11730 * symmisc.c (dump_msymbols): Update.
11731 * symfile.h (relative_addr_info_to_section_offsets)
11732 (symfile_map_offsets_to_segments): Update.
11733 * symfile.c (build_section_addr_info_from_objfile)
11734 (init_objfile_sect_indices): Update.
11735 (struct place_section_arg): Change type of "offsets".
11736 (place_section): Update.
11737 (relative_addr_info_to_section_offsets): Change type of
11738 "section_offsets". Remove "num_sections" parameter.
11739 (default_symfile_offsets, syms_from_objfile_1)
11740 (set_objfile_default_section_offset): Update.
11741 (reread_symbols): No need to preserve section offsets by hand.
11742 (symfile_map_offsets_to_segments): Change type of "offsets".
11743 * stap-probe.c (relocate_address): Update.
11744 * stabsread.h (process_one_symbol): Update.
11745 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11746 (solib_target_relocate_section_addresses): Update.
11747 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11748 Update.
11749 * solib-frv.c (frv_relocate_main_executable): Update.
11750 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11751 * solib-aix.c (solib_aix_get_section_offsets): Change return
11752 type.
11753 (solib_aix_solib_create_inferior_hook): Update.
11754 * remote.c (remote_target::get_offsets): Update.
11755 * psymtab.c (find_pc_sect_psymtab): Update.
11756 * psympriv.h (struct partial_symbol) <address, text_low,
11757 text_high>: Update.
11758 * objfiles.h (obj_section_offset): Update.
11759 (struct objfile) <section_offsets>: Change type.
11760 <num_sections>: Remove.
11761 (objfile_relocate): Update.
11762 * objfiles.c (entry_point_address_query): Update
11763 (relocate_one_symbol): Change type of "section_offsets".
11764 (objfile_relocate1, objfile_relocate1): Change type of
11765 "new_offsets".
11766 (objfile_rebase1): Update.
11767 * mipsread.c (mipscoff_symfile_read): Update.
11768 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11769 parameter.
11770 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11771 (parse_external, psymtab_to_symtab_1): Update.
11772 * machoread.c (macho_symfile_offsets): Update.
11773 * ia64-tdep.c (ia64_find_unwind_table): Update.
11774 * hppa-tdep.c (read_unwind_info): Update.
11775 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11776 * dwarf2read.c (create_addrmap_from_index)
11777 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11778 (process_psymtab_comp_unit_reader, add_partial_symbol)
11779 (add_partial_subprogram, process_full_comp_unit)
11780 (read_file_scope, read_func_scope, read_lexical_block_scope)
11781 (read_call_site_scope, dwarf2_rnglists_process)
11782 (dwarf2_ranges_process, dwarf2_ranges_read)
11783 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11784 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11785 Update.
11786 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11787 Update.
11788 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11789 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11790 (process_one_symbol): Change type of "section_offsets".
11791 * ctfread.c (get_objfile_text_range): Update.
11792 * coffread.c (coff_symtab_read, enter_linenos)
11793 (process_coff_symbol): Update.
11794 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11795 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11796
456e800a
TT
117972020-01-08 Tom Tromey <tromey@adacore.com>
11798
11799 * dwarf2read.c (parse_macro_definition): Use std::string.
11800 (parse_macro_definition): Likewise.
11801
6dfa2fc2
TT
118022020-01-08 Tom Tromey <tromey@adacore.com>
11803
11804 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11805 (ATTR_ALLOC_CHUNK): Remove.
11806
421d1616
TT
118072020-01-08 Tom Tromey <tromey@adacore.com>
11808
11809 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11810
43816ebc
TT
118112020-01-08 Tom Tromey <tromey@adacore.com>
11812
11813 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11814 (dwarf2_compute_name, open_dwo_file): Likewise.
11815 (process_enumeration_scope): Use std::vector.
11816 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11817 (partial_die_info::fixup, dwarf2_start_subfile)
11818 (guess_full_die_structure_name, dwarf2_name): Likewise.
11819 (determine_prefix): Update.
11820 (guess_full_die_structure_name): Make return type const.
11821 (partial_die_full_name): Return unique_xmalloc_ptr.
11822 (DW_FIELD_ALLOC_CHUNK): Remove.
11823
4212d509
TT
118242020-01-07 Tom Tromey <tromey@adacore.com>
11825
11826 PR build/24937:
11827 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11828
06a6207a
JT
118292020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11830
11831 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11832
153d79c4
AB
118332020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11834
11835 * stack.c (print_frame_info): Move disassemble_next_line code
11836 inside source_print block.
11837
66182876
EZ
118382020-01-06 Eli Zaretskii <eliz@gnu.org>
11839
11840 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11841 gdb/signals.h, as we are now using native signal symbols.
11842
cbfa8581
SV
118432020-01-06 Shahab Vahedi <shahab@synopsys.com>
11844
11845 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11846 overflow by an early check of content vs threshold.
aac66a4c 11847 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11848 Likewise.
11849
3f602821
EZ
118502020-01-06 Eli Zaretskii <eliz@gnu.org>
11851
11852 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11853
a08c904d
JT
118542020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11855
11856 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11857 export table if no section contains it's RVA.
11858
89a65580
EZ
118592020-01-06 Eli Zaretskii <eliz@gnu.org>
11860
11861 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11862
8b7fcda2
HD
118632020-01-06 Hannes Domani <ssbssa@yahoo.de>
11864
11865 * source.c (print_source_lines_base): Set last_line_listed.
11866
a61b4f69
SV
118672020-01-06 Shahab Vahedi <shahab@synopsys.com>
11868
11869 * tui/tui-disasm.c: Remove trailing spaces.
11870
559e7e50
EZ
118712020-01-06 Eli Zaretskii <eliz@gnu.org>
11872 Pedro Alves <palves@redhat.com>
11873
11874 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11875 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11876 (windows_gdb_signal_to_target): New function, uses the above
11877 enumeration to convert GDB internal signal codes to equivalent
11878 Windows codes.
11879 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11880 * windows-nat.c: Include "gdb_wait.h".
11881 (get_windows_debug_event): Extract the fatal exception from the
11882 exit status and convert to the equivalent Posix signal number.
11883 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11884 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11885 * gdbsupport/gdb_wait.c: New file, implements
11886 windows_status_to_termsig.
11887 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11888 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11889
f2302a34
AB
118902020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11891
11892 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11893 show_layout.
11894
6a5206eb
LM
118952020-01-05 Luis Machado <luis.machado@linaro.org>
11896
11897 * aarch64-linux-nat.c
11898 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11899 and bfd_mach_aarch64.
11900
6ec1d75e
PW
119012020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11902
11903 * ui-file.c (stdio_file::can_emit_style_escape)
11904 (tee_file::can_emit_style_escape): Ensure style is used also on
11905 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11906 to gdb_stdout.
11907 * main.c (set_gdb_data_directory): Use file style to output the
11908 warning that the given pathname is not a directory.
11909 * top.c (show_history_filename, gdb_safe_append_history)
11910 (show_gdb_datadir): Use file style.
11911
44f81a76
HD
119122020-01-03 Hannes Domani <ssbssa@yahoo.de>
11913
11914 * solib-target.c (struct lm_info_target):
11915 Change offsets to be a unique_xmalloc_ptr.
11916 (solib_target_relocate_section_addresses): Update.
11917
25057eb0
HD
119182020-01-03 Hannes Domani <ssbssa@yahoo.de>
11919
11920 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11921
6e2118f5
BE
119222020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11923
11924 * MAINTAINERS (Write After Approval): Add myself.
11925
8133c7dc
LM
119262020-01-02 Luis Machado <luis.machado@linaro.org>
11927
11928 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11929 Cell BE architecture.
11930 * target.h (struct target_ops) <thread_architecture>: Likewise.
11931
48189bec
HD
119322020-01-01 Hannes Domani <ssbssa@yahoo.de>
11933
11934 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11935
ead1063b
HD
119362020-01-01 Hannes Domani <ssbssa@yahoo.de>
11937
11938 * MAINTAINERS (Write After Approval): Add myself.
11939
e5d78223
JB
119402020-01-01 Joel Brobecker <brobecker@adacore.com>
11941
11942 * gdbarch.sh: Update copyright year range of generated files.
11943
b811d2c2
JB
119442020-01-01 Joel Brobecker <brobecker@adacore.com>
11945
11946 Update copyright year range in all GDB files.
11947
5f4def5c
JB
119482020-01-01 Joel Brobecker <brobecker@adacore.com>
11949
11950 * copyright.py: Convert to Python 3.
11951
51fd4002
JB
119522020-01-01 Joel Brobecker <brobecker@adacore.com>
11953
11954 * copyright.py: Adapt after move of gnulib directory from gdb
11955 directory to toplevel directory.
11956
5fb651f2
JB
119572020-01-01 Joel Brobecker <brobecker@adacore.com>
11958
11959 * copyright.py (main): Exit if run from the wrong directory.
11960
5dd8bf88
JB
119612020-01-01 Joel Brobecker <brobecker@adacore.com>
11962
11963 * top.c (print_gdb_version): Change copyright year to 2020.
11964
9f71dacb 119652020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11966
9f71dacb 11967 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11968
9f71dacb 11969For older changes see ChangeLog-2019.
c906108c
SS
11970\f
11971Local Variables:
11972mode: change-log
11973left-margin: 8
11974fill-column: 74
11975version-control: never
57da7796 11976coding: utf-8
c906108c 11977End: