]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use gdb::function_view in iterate_over_live_ada_tasks
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
78c02f21
TT
12020-08-07 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.h (ada_task_list_iterator_ftype): Now a
4 gdb::function_view.
5 (iterate_over_live_ada_tasks): Change type of argument.
6 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
7 of argument.
8
d5d833af
TT
92020-08-07 Tom Tromey <tromey@adacore.com>
10
11 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
12 Remove.
13 (ravenscar_thread_target::extra_thread_info): Remove.
14 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
15 defer to target beneath for non-Ravenscar threads.
16
a8ac85bb
TT
172020-08-07 Tom Tromey <tromey@adacore.com>
18
19 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
20 get_base_thread_from_ravenscar_task>: Now methods.
21 <m_cpu_map>: New member.
22 (ravenscar_thread_target::get_thread_base_cpu): Rename from
23 ravenscar_get_thread_base_cpu. Check m_cpu_map.
24 (ravenscar_thread_target::task_is_currently_active): Update.
25 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
26 Now a method.
27 (ravenscar_thread_target::add_active_thread): Put initial thread
28 into the m_cpu_map.
29
550ab58d
TT
302020-08-07 Tom Tromey <tromey@adacore.com>
31
32 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
33 event_ptid.
34
e9546579
TT
352020-08-07 Tom Tromey <tromey@adacore.com>
36
37 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
38 runtime_initialized.
39
3d4470e5
TT
402020-08-07 Tom Tromey <tromey@adacore.com>
41
42 * ravenscar-thread.c (ravenscar_thread_target): Don't call
43 add_active_thread.
44 (ravenscar_thread_target::add_active_thread): Now public.
45 (ravenscar_inferior_created): Call add_active_thread after pushing
46 the target.
47
888bdb2b
SM
482020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
49
50 * regcache.c (ptid_regcache_map): New type.
51 (target_ptid_regcache_map): New type.
52 (regcaches): Change type to target_ptid_regcache_map.
53 (get_thread_arch_aspace_regcache): Update to regcaches' new
54 type.
55 (regcache_thread_ptid_changed): Likewise.
56 (registers_changed_ptid): Likewise.
57 (regcaches_size): Likewise.
58 (regcaches_test): Update.
59 (regcache_thread_ptid_changed): Update.
60 * regcache.h (regcache_up): New type.
61 * gdbsupport/ptid.h (hash_ptid): New struct.
62
b161a60d
SM
632020-08-07 Simon Marchi <simon.marchi@efficios.com>
64
65 * observable.h (thread_ptid_changed): Add parameter
66 `process_stratum_target *`.
67 * infrun.c (infrun_thread_ptid_changed): Add parameter
68 `process_stratum_target *` and use it.
69 (selftests): New namespace.
70 (infrun_thread_ptid_changed): New function.
71 (_initialize_infrun): Register selftest.
72 * regcache.c (regcache_thread_ptid_changed): Add parameter
73 `process_stratum_target *` and use it.
74 (regcache_thread_ptid_changed): New function.
75 (_initialize_regcache): Register selftest.
76 * thread.c (thread_change_ptid): Pass target to
77 thread_ptid_changed observable.
78
d2854d8d
CT
792020-08-06 Caroline Tice <cmtice@google.com>
80
81 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
82 (struct dwp_sections): Update field comments. Add loclists and
83 rnglists fields.
84 (struct virtual_v2_dwo_sections): Rename struct to
85 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
86 size & offset fields for loclists and rnglists.
87 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
88 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
89 skipping dummy type units.
90 (create_dwp_hash_table): Update the large comment above the function to
91 discuss Version 5 DWP files as well, with references. Update all the
92 version checks in the function to check for version 5 as well. Add new
93 section at the end to create dwp hash table for version 5.
94 (create_dwp_v2_section): Rename function to
95 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
96 Add V5 to error message text.
97 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
98 into calls to create_dwp_v2_or_v5_section.
99 (create_dwo_unit_in_dwp_v5): New function.
100 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
101 check for version2; add else clause to handle version 5.
102 (open_and_init_dwo_file): Add code to check dwarf version & only call
103 create_debug_types_hash_table (with sections.types) if version is not 5;
104 else call create_debug_type_hash_table, with sections.info.
105 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
106 version 5.
107 (dwarf2_locate_v5_dwp_sections): New function.
108 (open_and_init_dwp_file): Add else-if clause for version 5 to call
109 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
110
159ed7d9
SM
1112020-08-06 Simon Marchi <simon.marchi@efficios.com>
112
113 * regcache.h (class regcache): Remove friend
114 registers_changed_ptid.
115 <regcache_thread_ptid_changed>: Remove.
116 <regcaches>: Remove.
117 * regcache.c (regcache::regcaches): Rename to...
118 (regcaches): ... this. Make static.
119 (get_thread_arch_aspace_regcache): Update.
120 (regcache::regcache_thread_ptid_changed): Rename to...
121 (regcache_thread_ptid_changed): ... this. Update.
122 (class regcache_access): Remove.
123 (regcaches_test): Update.
124 (_initialize_regcache): Update.
125 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
126 <forward_list>.
127
174981ae
SM
1282020-08-06 Simon Marchi <simon.marchi@efficios.com>
129
130 * regcache.h (class regcache) <current_regcache>: Rename to...
131 <regcaches>: ... this. Move doc here.
132 * regcache.c (regcache::current_regcache) Rename to...
133 (regcache::regcaches): ... this. Move doc to header.
134 (get_thread_arch_aspace_regcache): Update.
135 (regcache::regcache_thread_ptid_changed): Update.
136 (registers_changed_ptid): Update.
137 (class regcache_access) <current_regcache_size>: Rename to...
138 <regcaches_size>: ... this.
139 (current_regcache_test): Rename to...
140 (regcaches_test): ... this.
141 (_initialize_regcache): Update.
142
ed908db6
VC
1432020-08-06 Victor Collod <vcollod@nvidia.com>
144
145 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
146
b5582ab7
KB
1472020-08-05 Kevin Buettner <kevinb@redhat.com>
148
149 * corelow.c (core_target::build_file_mappings): Don't output
150 null pathname in warning.
151
ea946b86
SM
1522020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
153
154 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
155 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
156 gdb.dwarf2/dw2-single-line-discriminators.exp,
157 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
158
57d02173
TT
1592020-08-05 Tom Tromey <tromey@adacore.com>
160
161 PR rust/26197:
162 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
163 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
164 Fix off-by-one and type size errors in ordinary case.
165
5555c86d
TV
1662020-08-05 Tom de Vries <tdevries@suse.de>
167
168 * gdbtypes.c (type_not_allocated, type_not_associated): Use
169 "prop->const_val () == 0" instead of "prop->const_val () != 0".
170
97916bfe
SM
1712020-08-04 Simon Marchi <simon.marchi@efficios.com>
172
173 * frame.h (frame_id_p): Return bool.
174 (frame_id_artificial_p): Return bool.
175 (frame_id_eq): Return bool.
176 (has_stack_frames): Return bool.
177 (get_selected_frame): Fix typo in comment.
178 (get_frame_pc_if_available): Return bool.
179 (get_frame_address_in_block_if_available): Return bool.
180 (get_frame_func_if_available): Return bool.
181 (read_frame_register_unsigned): Return bool.
182 (get_frame_register_bytes): Return bool.
183 (safe_frame_unwind_memory): Return bool.
184 (deprecated_frame_register_read): Return bool.
185 (frame_unwinder_is): Return bool.
186 * frame.c (struct frame_info) <prev_arch::p>: Change type to
187 bool.
188 <this_id::p>: Likewise.
189 <prev_p>: Likewise.
190 (frame_stash_add): Return bool.
191 (get_frame_id): Use bool.
192 (frame_id_build_special) Use bool.
193 (frame_id_build_unavailable_stack): Use bool.
194 (frame_id_build): Use bool.
195 (frame_id_p): Return bool, use true/false instead of 1/0.
196 (frame_id_artificial_p): Likewise.
197 (frame_id_eq): Likewise.
198 (frame_id_inner): Likewise.
199 (get_frame_func_if_available): Likewise.
200 (read_frame_register_unsigned): Likewise.
201 (deprecated_frame_register_read): Likewise.
202 (get_frame_register_bytes): Likewise.
203 (has_stack_frames): Likewise.
204 (inside_main_func): Likewise.
205 (inside_entry_func): Likewise.
206 (get_frame_pc_if_available): Likewise.
207 (get_frame_address_in_block_if_available): Likewise.
208 (frame_unwinder_is): Likewise.
209 (safe_frame_unwind_memory): Likewise.
210 (frame_unwind_arch): Likewise.
211
fedfee88
SM
2122020-08-04 Simon Marchi <simon.marchi@efficios.com>
213
214 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
215 type to cached_copy_status.
216 (fprintf_frame): Adjust.
217 (get_frame_func_if_available): Adjust.
218 (frame_cleanup_after_sniffer): Adjust.
219
6cfa9b59
MW
2202020-08-04 Mark Wielaard <mark@klomp.org>
221
222 * MAINTAINERS (Write After Approval): Update email address.
223
66d6346b
SM
2242020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
227 dynamic_prop::const_val.
228
8a6d5e35
SM
2292020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
230
231 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
232 dynamic_prop::kind.
233
51d6067d
SM
2342020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
235
236 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
237
b26e2ae7
JM
2382020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
239
240 * configure.tgt: Set gdb_sim for bpf-*-* targets.
241
39791af2
JM
2422020-08-04 Weimin Pan <weimin.pan@oracle.com>
243 Jose E. Marchesi <jose.marchesi@oracle.com>
244
245 * configure.tgt: Add entry for bpf-*-*.
246 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
247 (ALLDEPFILES): Add bpf-tdep.c.
248 * bpf-tdep.c: New file.
249 * MAINTAINERS: Add bpf target and maintainer.
250 * NEWS: Mention the support for the new target.
251
521894aa
TV
2522020-08-04 Tom de Vries <tdevries@suse.de>
253
254 PR symtab/23270
255 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
256 Error.
257
5d6356e9
JB
2582020-08-03 John Baldwin <jhb@FreeBSD.org>
259
260 * syscalls/freebsd.xml: Regenerate.
261
0cf82b81
JB
2622020-08-03 John Baldwin <jhb@FreeBSD.org>
263
264 * syscalls/update-freebsd.sh: Fix usage and year range.
265
8f34b746
TV
2662020-08-03 Tom de Vries <tdevries@suse.de>
267
268 PR symtab/26333
269 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
270 DW_LNE_lo_user/DW_LNE_hi_user range.
271
5e500d33
SM
2722020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
273
274 PR ada/26318
275 * ada-lang.c (ada_modulus): Return 0 if property is not of const
276 kind.
277
78319c15
TBA
2782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
279
280 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
281
4c55e970
TBA
2822020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
283
284 * breakpoint.c (set_breakpoint_condition): Update the condition
285 expressions after checking that the input condition string parses
286 successfully and does not contain junk at the end.
287
1e620590
TBA
2882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
289
290 * breakpoint.c (set_breakpoint_condition): Update the
291 condition string after parsing the new condition successfully.
292
c8693053
RO
2932020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
294
295 * proc-api.c (_STRUCTURED_PROC): Don't define.
296 * proc-events.c: Likewise.
297 * proc-flags.c: Likewise.
298 * proc-why.c: Likewise.
299 * procfs.c: Likewise.
300
301 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
302 * configure, config.in: Regenerate.
303
5a99adb8
TV
3042020-07-30 Tom de Vries <tdevries@suse.de>
305
306 PR build/26320
307 * ui-style.h (struct ui_file_style::color): Wrap m_value and
308 m_red/m_green/m_blue in a union.
309
8ba83e91
TV
3102020-07-29 Tom de Vries <tdevries@suse.de>
311
312 PR tdep/26280
313 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
314
f75a0693
AB
3152020-07-28 Tom Tromey <tromey@adacore.com>
316
317 PR symtab/26270:
318 * symtab.h (find_pc_partial_function_sym): Declare.
319 * cli/cli-cmds.c (disassemble_command): Use
320 find_pc_partial_function_sym. Check asm_demangle.
321 * blockframe.c (cache_pc_function_sym): New global.
322 (cache_pc_function_name): Remove.
323 (clear_pc_function_cache): Update.
324 (find_pc_partial_function_sym): New function, from
325 find_pc_partial_function.
326 (find_pc_partial_function): Rewrite using
327 find_pc_partial_function_sym.
328
16f3242c
TT
3292020-07-28 Tom Tromey <tromey@adacore.com>
330
331 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
332 help. Add usage.
333
4888741a
TT
3342020-07-28 Tom Tromey <tromey@adacore.com>
335
336 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
337 <DW_OP_GNU_variable_value>: Cast to address type.
338
4d46f402
KR
3392020-07-28 Kamil Rytarowski <n54@gmx.com>
340
341 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
342 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
343 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
344 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
345 (nbsd_get_siginfo_type): New.
346 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
347 (_initialize_nbsd_tdep): New.
348
d70f978b
L
3492020-07-28 H.J. Lu <hongjiu.lu@intel.com>
350
351 PR binutils/26301
352 * configure: Regenerated.
353
377170fa
L
3542020-07-28 H.J. Lu <hongjiu.lu@intel.com>
355
356 PR binutils/26301
357 * configure: Regenerated.
358
43d5901d
AB
3592020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
360
361 * python/py-frame.c: Remove 'user-regs.h' include.
362 (frapy_read_register): Rewrite to make use of
363 gdbpy_parse_register_id.
364 * python/py-registers.c (gdbpy_parse_register_id): New function,
365 moved here from python/py-unwind.c. Updated the return type, and
366 also accepts register descriptor objects.
367 * python/py-unwind.c: Remove 'user-regs.h' include.
368 (pyuw_parse_register_id): Moved to python/py-registers.c.
369 (unwind_infopy_add_saved_register): Update to use
370 gdbpy_parse_register_id.
371 (pending_framepy_read_register): Likewise.
372 * python/python-internal.h (gdbpy_parse_register_id): Declare.
373
14fa8fb3
AB
3742020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * python/py-registers.c: Add 'user-regs.h' include.
377 (register_descriptor_iter_find): New function.
378 (register_descriptor_iterator_object_methods): New static global
379 methods array.
380 (register_descriptor_iterator_object_type): Add pointer to methods
381 array.
382
ddce1758
JB
3832020-07-27 John Baldwin <jhb@FreeBSD.org>
384
385 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
386 for all architectures on FreeBSD 11.3 and later.
387
a4089f52
TT
3882020-07-27 Tom Tromey <tromey@adacore.com>
389
390 * gcore.h (load_corefile): Don't declare.
391
95420d30
TV
3922020-07-27 Tom de Vries <tdevries@suse.de>
393
394 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
395 * config.in: Regenerate.
396 * configure: Regenerate.
397
05a6b8c2
EZ
3982020-07-26 Eli Zaretskii <eliz@gnu.org>
399
400 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
401 ws2tcpip.h. When checking whether socklen_t type is defined, use
402 ws2tcpip.h if it is available and sys/socket.h isn't.
403 * configure: Regenerate.
404 * config.in: Regenerate.
405
e79eb02f
AB
4062020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
407
408 PR fortran/23051
409 PR fortran/26139
410 * valops.c (value_ind): Pass address to
411 readjust_indirect_value_type.
412 * value.c (readjust_indirect_value_type): Make parameter
413 non-const, and add extra address parameter. Resolve original type
414 before using it.
415 * value.h (readjust_indirect_value_type): Update function
416 signature and comment.
417
876518dd
TV
4182020-07-25 Tom de Vries <tdevries@suse.de>
419
420 PR symtab/26243
421 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
422 entries.
423
f6720b1c
AM
4242020-07-24 Aaron Merey <amerey@redhat.com>
425
426 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
427 * configure: Rebuild.
428
513487e1
KB
4292020-07-23 Kevin Buettner <kevinb@redhat.com>
430
431 PR corefiles/26294
432 * corelow.c (_initialize_corelow): Add period to help text
433 for "maintenance print core-file-backed-mappings".
434
e7bc9db8
PA
4352020-07-23 Pedro Alves <pedro@palves.net>
436
437 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
438 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
439 meanwhile.
440 * frame.c (frame_cache_generation, get_frame_cache_generation):
441 New.
442 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
443 (get_prev_frame_if_no_cycle): On exception, don't touch
444 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
445 * frame.h (get_frame_cache_generation): Declare.
446
90fcc466
TV
4472020-07-23 Tom de Vries <tdevries@suse.de>
448
449 PR tui/26282
450 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
451 New default constructor.
452
78344df7
AB
4532020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
454
455 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
456 exclude non-statement entries.
457
b089853a
KB
4582020-07-22 Kevin Buettner <kevinb@redhat.com>
459
460 * NEWS (New commands): Mention new command
461 "maintenance print core-file-backed-mappings".
462
09c2f5d4
KB
4632020-07-22 Kevin Buettner <kevinb@redhat.com>
464
465 * corelow.c (gdbcmd.h): Include.
466 (core_target::info_proc_mappings): New method.
467 (get_current_core_target): New function.
468 (maintenance_print_core_file_backed_mappings): New function.
469 (_initialize_corelow): Add core-file-backed-mappings to
470 "maint print" commands.
471
9c5ec5c2
KB
4722020-07-22 Kevin Buettner <kevinb@redhat.com>
473
474 * linux-tdep.c (dump_note_entry_p): New function.
475 (linux_dump_mapping_p_ftype): New typedef.
476 (linux_find_memory_regions_full): Add new parameter,
477 should_dump_mapping_p.
478 (linux_find_memory_regions): Adjust call to
479 linux_find_memory_regions_full.
480 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
481 call to linux_find_memory_regions_full.
482
db082f59
KB
4832020-07-22 Kevin Buettner <kevinb@redhat.com>
484
485 * corelow.c (solist.h, unordered_map): Include.
486 (class core_target): Add field m_core_file_mappings and
487 method build_file_mappings.
488 (core_target::core_target): Call build_file_mappings.
489 (core_target::~core_target): Free memory associated with
490 m_core_file_mappings.
491 (core_target::build_file_mappings): New method.
492 (core_target::xfer_partial): Use m_core_file_mappings
493 for memory transfers.
494 * linux-tdep.c (linux_read_core_file_mappings): New
495 function.
496 (linux_core_info_proc_mappings): Rewrite to use
497 linux_read_core_file_mappings.
498 (linux_init_abi): Register linux_read_core_file_mappings.
499
7e183d27
KB
5002020-07-22 Kevin Buettner <kevinb@redhat.com>
501
502 * arch-utils.c (default_read_core_file_mappings): New function.
503 * arch-utils.c (default_read_core_file_mappings): Declare.
504 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
505 * gdbarch.h, gdbarch.c: Regenerate.
506
2735d421
KB
5072020-07-22 Kevin Buettner <kevinb@redhat.com>
508
509 PR corefiles/25631
510 * corelow.c (core_target:xfer_partial): Revise
511 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
512 case after first checking the stratum beneath the core
513 target.
514 (has_all_memory): Return true.
515 * target.c (raw_memory_xfer_partial): Revise comment
516 regarding use of has_all_memory.
517
e56cb451
KB
5182020-07-22 Kevin Buettner <kevinb@redhat.com>
519
520 * exec.h (section_table_xfer_memory): Revise declaration,
521 replacing section name parameter with an optional callback
522 predicate.
523 * exec.c (section_table_xfer_memory): Likewise.
524 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
525 of section_table_xfer_memory.
526
32fa152e
TT
5272020-07-22 Tom Tromey <tromey@adacore.com>
528
529 * mi/mi-cmd-stack.c (list_args_or_locals): Use
530 lookup_symbol_search_name.
531
a67a1c41
AB
5322020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
533
534 * python/py-registers.c (gdbpy_register_object_data_init): Remove
535 redundant local variable.
536 (gdbpy_get_register_descriptor): Extract descriptor vector as a
537 reference, not pointer, update code accordingly.
538
a7b4ff4f
SM
5392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
540 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
541
542 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
543 * jit.c (jit_breakpoint_re_set_internal): Use the
544 `skip_jit_symbol_lookup` field.
545
2340e834
SM
5462020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
547 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
548
549 * jit.c (jit_read_descriptor): Define the descriptor address once,
550 use twice.
551 (jit_breakpoint_deleted): Move the declaration of the loop variable
552 `iter` into the loop header.
553 (jit_breakpoint_re_set_internal): Move the declaration of the local
554 variable `objf_data` to the first point of definition.
555 (jit_event_handler): Move the declaration of local variables
556 `code_entry`, `entry_addr`, and `objf` to their first point of use.
557 Rename `objf` to `jited`.
558
c1072906
SM
5592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
560
561 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
562 Remove.
563 * jit.c (get_jiter_objfile_data): Update.
564
c8474dc3
TBA
5652020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
566 Simon Marchi <simon.marchi@polymtl.ca>
567
568 * jit.c (struct jit_program_space_data): Remove.
569 (jit_program_space_key): Remove.
570 (jiter_objfile_data::~jiter_objfile_data): Remove program space
571 stuff.
572 (get_jit_program_space_data): Remove.
573 (jit_breakpoint_deleted): Iterate on all of the program space's
574 objfiles.
575 (jit_inferior_init): Likewise.
576 (jit_breakpoint_re_set_internal): Likewise. Also change return
577 type to void.
578 (jit_breakpoint_re_set): Pass current_program_space to
579 jit_breakpoint_re_set_internal.
580
77208eb7
SM
5812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
582
583 * jit.h (struct jiter_objfile_data) <cached_code_address,
584 jit_breakpoint>: Move to here from ...
585 * jit.c (jit_program_space_data): ... here.
586 (jiter_objfile_data::~jiter_objfile_data): Update.
587 (jit_breakpoint_deleted): Update.
588 (jit_breakpoint_re_set_internal): Update.
589
8c1c720f
SM
5902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
591
592 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
593 checks.
594 (jit_read_descriptor): Remove NULL check.
595 (jit_event_handler): Add an assertion.
596
0e74a041
SM
5972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
598
599 * jit.h (struct jit_objfile_data): Split into...
600 (struct jiter_objfile_data): ... this ...
601 (struct jited_objfile_data): ... and this.
602 * objfiles.h (struct objfile) <jit_data>: Remove.
603 <jiter_data, jited_data>: New fields.
604 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
605 (jiter_objfile_data::~jiter_objfile_data): ... this.
606 (get_jit_objfile_data): Rename to ...
607 (get_jiter_objfile_data): ... this.
608 (add_objfile_entry): Update.
609 (jit_read_descriptor): Use get_jiter_objfile_data.
610 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
611 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
612 (jit_inferior_exit_hook): Use objfile's jited_data field.
613
238b5c9f
SM
6142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
615
616 * jit.h: Forward-declare `struct minimal_symbol`.
617 (struct jit_objfile_data): Migrate to here from jit.c; also add a
618 constructor, destructor, and an objfile* field.
619 * jit.c (jit_objfile_data): Remove.
620 (struct jit_objfile_data): Migrate from here to jit.h.
621 (jit_objfile_data::~jit_objfile_data): New destructor
622 implementation with code moved from free_objfile_data.
623 (free_objfile_data): Delete.
624 (get_jit_objfile_data): Update to use the jit_data field of objfile.
625 (jit_find_objf_with_entry_addr): Ditto.
626 (jit_inferior_exit_hook): Ditto.
627 (_initialize_jit): Remove the call to
628 register_objfile_data_with_cleanup.
629 * objfiles.h (struct objfile) <jit_data>: New field.
630
fe053b9e
TBA
6312020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
632
633 * jit.h: Forward-declare `struct objfile`.
634 (jit_event_handler): Add a second parameter, the JITer objfile.
635 * jit.c (jit_read_descriptor): Change the signature to take the
636 JITer objfile as an argument instead of the jit_program_space_data.
637 (jit_inferior_init): Update the call to jit_read_descriptor.
638 (jit_event_handler): Use the new JITer objfile argument when calling
639 jit_read_descriptor.
640 * breakpoint.c (handle_jit_event): Update the call to
641 jit_event_handler to pass the JITer objfile.
642
4cec0c66
JB
6432020-07-21 John Baldwin <jhb@FreeBSD.org>
644
645 * gdbarch.c: Regenerate.
646 * gdbarch.h: Regenerate.
647 * gdbarch.sh (handle_segmentation_fault): Remove method.
648 * infrun.c (handle_segmentation_fault): Remove.
649 (print_signal_received_reason): Remove call to
650 handle_segmentation_fault.
651
0e42f66a
JB
6522020-07-21 John Baldwin <jhb@FreeBSD.org>
653
654 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
655 Rename to sparc64_linux_report_signal_info and add siggnal
656 argument.
657 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
658 instead of sparc64_linux_handle_segmentation_fault.
659
77bdfeb2
JB
6602020-07-21 John Baldwin <jhb@FreeBSD.org>
661
662 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
663 i386_linux_report_signal_info instead of
664 i386_linux_handle_segmentation_fault.
665 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
666 to i386_linux_report_signal_info and add siggnal argument.
667 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
668 of i386_linux_handle_segmentation_fault.
669 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
670 to i386_linux_report_signal_info and add siggnal argument.
671
ad97bfc5
JB
6722020-07-21 John Baldwin <jhb@FreeBSD.org>
673
674 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
675 hook if present.
676
272bb05c
JB
6772020-07-21 John Baldwin <jhb@FreeBSD.org>
678
679 * gdbarch.c: Regenerate.
680 * gdbarch.h: Regenerate.
681 * gdbarch.sh (report_signal_info): New method.
682 * infrun.c (print_signal_received_reason): Invoke gdbarch
683 report_signal_info hook if present.
684
baf8791e
AB
6852020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
686
687 * python/py-registers.c : Add 'unordered_map' include.
688 (gdbpy_new_reggroup): Renamed to...
689 (gdbpy_get_reggroup): ...this. Update to only create register
690 group descriptors when needed.
691 (gdbpy_reggroup_iter_next): Update.
692
f7306dac
AB
6932020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
694
695 * python/py-registers.c (gdbpy_register_object_data): New static
696 global.
697 (gdbpy_register_object_data_init): New function.
698 (gdbpy_new_register_descriptor): Renamed to...
699 (gdbpy_get_register_descriptor): ...this, and update to reuse
700 existing register descriptors where possible.
701 (gdbpy_register_descriptor_iter_next): Update.
702 (gdbpy_initialize_registers): Register new gdbarch data.
703
05c309a8
SM
7042020-07-21 Simon Marchi <simon.marchi@efficios.com>
705
706 * linux-nat.c (stopped_pids): Make static.
707
d1fd641e
SM
7082020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
709
710 PR ada/26235
711 * gdbtypes.c (ada_discrete_type_low_bound,
712 ada_discrete_type_high_bound): Handle undefined bounds.
713
1de14d77
KR
7142020-07-21 Kamil Rytarowski <n54@gmx.com>
715
716 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
717 declaration.
718 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
719 function.
720
ed810cc7
JB
7212020-07-20 John Baldwin <jhb@FreeBSD.org>
722
723 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
724 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
725 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
726 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
727 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
728 method.
729
ae5369e7
LC
7302020-07-20 Ludovic Courtès <ludo@gnu.org>
731
732 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
733 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
734 which are deprecated in Guile 3.0.
735 * configure.ac (try_guile_versions): Add "guile-3.0".
736 * configure (try_guile_versions): Regenerate.
737 * NEWS: Update entry.
738
68cf161c
LC
7392020-07-20 Ludovic Courtès <ludo@gnu.org>
740 Doug Evans <dje@google.com>
741
742 PR gdb/21104
743 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
744 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
745 USING_GUILE_BEFORE_2_2.
746 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
747 Change type to 'scm_t_port_type *'.
748 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
749 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
750 parameter and honor it. Update callers.
751 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
752 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
753 functions.
754 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
755 USING_GUILE_BEFORE_2_2.
756 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
757 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
758 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
759 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
760 and 'SCM_PORT_TYPE'.
761 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
762 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
763 (gdbscm_memory_port_read, gdbscm_memory_port_write)
764 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
765 [!USING_GUILE_BEFORE_2_2]: New functions.
766 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
767 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
768 'gdbscm_memory_port_read'.
769 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
770 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
771 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
772 function.
773 (ioscm_init_memory_port): Remove.
774 (ioscm_init_memory_port_stream): New function
775 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
776 function.
777 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
778 Return scm_from_uint (0).
779 (gdbscm_set_memory_port_read_buffer_size_x)
780 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
781 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
782 Return scm_from_uint (0).
783 (gdbscm_set_memory_port_write_buffer_size_x)
784 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
785 * configure.ac (try_guile_versions): Add "guile-2.2".
786 * configure: Regenerate.
787 * NEWS: Add entry.
788
aee91db3
TT
7892020-07-18 Tom Tromey <tom@tromey.com>
790
791 * linux-nat.c (linux_multi_process): Remove.
792 (linux_nat_target::supports_multi_process): Return true.
793
0e267416
AB
7942020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * arch/riscv.c (riscv_tdesc_cache): Change map type.
797 (riscv_lookup_target_description): Return pointer out of
798 unique_ptr.
799 * target-descriptions.c (allocate_target_description): Add
800 comment.
801 (target_desc_deleter::operator()): Likewise.
802 * target-descriptions.h (struct target_desc_deleter): Moved to
803 gdbsupport/tdesc.h.
804 (target_desc_up): Likewise.
805
f80c8ec4
TT
8062020-07-17 Tom Tromey <tromey@adacore.com>
807
808 * linux-nat.c (linux_nat_target::supports_non_stop)
809 (linux_nat_target::always_non_stop_p): Use "true".
810 (linux_nat_target::supports_disable_randomization): Use "true" and
811 "false".
812
d0ce17d8
CT
8132020-07-16 Caroline Tice <cmtice@google.com>
814
815 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
816 (RNGLIST_HEADER_SIZE64): New constant definition.
817 (struct dwop_section_names): Add rnglists_dwo.
818 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
819 (struct loclist_header): Rename to 'loclists_rnglists_header'.
820 (struct dwo_sections): Add rnglists field.
821 (read_attribut_reprocess): Add tag parameter.
822 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
823 (cu_debug_rnglists_section): New function (decl & definition).
824 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
825 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
826 die whose range is being checked; get rnglist section from
827 cu_debug_rnglists_section, to get from either objfile or dwo file as
828 appropriate. Add cases for DW_RLE_base_addressx,
829 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
830 the base address to DW_RLE_offset_pairs (not to all ranges), moving
831 test inside if-condition and updating complaint message.
832 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
833 dwarf2_rnglists_process.
834 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
835 dwarf2_ranges_process.
836 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
837 need_ranges_base and update comment appropriately. Also pass die tag
838 to dwarf2_ranges_read.
839 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
840 need_ranges_base and update comment appropriately. Also pass die tag
841 to dwarf2_ranges_process.
842 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
843 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
844 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
845 need_ranges_base and update comment appropriately. Also pass die tag
846 to read_attribute_reprocess and dwarf2_ranges_read.
847 (read_loclist_header): Rename function to read_loclists_rnglists_header,
848 and update function comment appropriately.
849 (read_loclist_index): Call read_loclists_rnglists_header instead of
850 read_loclist_header.
851 (read_rnglist_index): New function.
852 (read_attribute_reprocess): Add tag parameter. Add code for
853 DW_FORM_rnglistx, passing tag to read_rnglist_index.
854 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
855
3dcc261c
AB
8562020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
857
858 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
859 being resolved.
860
ccb9eba6
AB
8612020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
862
863 * arch-utils.c (show_architecture): Update formatting of messages.
864
cf88be68
SM
8652020-07-12 Simon Marchi <simon.marchi@efficios.com>
866
867 * gdbtypes.h (struct type) <bounds>: Handle array and string
868 types.
869 * ada-lang.c (assign_aggregate): Use type::bounds on
870 array/string type.
871 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
872 * c-varobj.c (c_number_of_children): Likewise.
873 (c_describe_child): Likewise.
874 * eval.c (evaluate_subexp_for_sizeof): Likewise.
875 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
876 (f_type_print_base): Likewise.
877 * f-valprint.c (f77_array_offset_tbl): Likewise.
878 (f77_get_upperbound): Likewise.
879 (f77_print_array_1): Likewise.
880 * guile/scm-type.c (gdbscm_type_range): Likewise.
881 * m2-typeprint.c (m2_array): Likewise.
882 (m2_is_long_set_of_type): Likewise.
883 * m2-valprint.c (get_long_set_bounds): Likewise.
884 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
885 * python/py-type.c (typy_range): Likewise.
886 * rust-lang.c (rust_internal_print_type): Likewise.
887 * type-stack.c (type_stack::follow_types): Likewise.
888 * valarith.c (value_subscripted_rvalue): Likewise.
889 * valops.c (value_cast): Likewise.
890
509971ae
SM
8912020-07-12 Simon Marchi <simon.marchi@efficios.com>
892
893 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
894 callers to use the equivalent accessor methods.
895
107406b7
SM
8962020-07-12 Simon Marchi <simon.marchi@efficios.com>
897
898 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
899 (struct type) <bit_stride>: New method.
900 (TYPE_BIT_STRIDE): Remove.
901 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
902
bb789949
SM
9032020-07-12 Simon Marchi <simon.marchi@efficios.com>
904
905 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
906 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
907 callers to use the equivalent accessor methods instead.
908
39498edb
SM
9092020-07-12 Simon Marchi <simon.marchi@efficios.com>
910
911 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
912 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
913 callers to use the equivalent accessor methods instead.
914
3b606f38
SM
9152020-07-12 Simon Marchi <simon.marchi@efficios.com>
916
917 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
918 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
919 to use dynamic_prop::kind.
920
064d9cb9
SM
9212020-07-12 Simon Marchi <simon.marchi@efficios.com>
922
923 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
924 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
925 to get the bound property's kind and check against
926 PROP_UNDEFINED.
927
5537ddd0
SM
9282020-07-12 Simon Marchi <simon.marchi@efficios.com>
929
930 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
931 all callers to use type::range_bounds followed by
932 dynamic_prop::{low,high}.
933
8c2e4e06
SM
9342020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
935
936 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
937 const_val, set_const_val, baton, set_locexpr, set_loclist,
938 set_addr_offset, variant_parts, set_variant_parts,
939 original_type, set_original_type>: New methods.
940 <kind>: Rename to...
941 <m_kind>: ... this. Update all users to use the new methods
942 instead.
943 <data>: Rename to...
944 <m_data>: ... this. Update all users to use the new methods
945 instead.
946
7c6f2712
SM
9472020-07-12 Simon Marchi <simon.marchi@efficios.com>
948
949 * gdbtypes.c (get_discrete_bounds): Return failure if
950 the range type's bounds are not both defined and constant
951 values.
952 (get_array_bounds): Update comment. Remove undefined bound check.
953
599088e3
SM
9542020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
955
956 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
957 the type::bounds method directly.
958
c4dfcb36
SM
9592020-07-12 Simon Marchi <simon.marchi@efficios.com>
960
961 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
962 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
963 are used to set the range type's bounds to use set_bounds.
964
0a278aa7
PW
9652020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
966
967 * exec.c (_initialize_exec): Update exec-file-mismatch help.
968
cce20f10
PA
9692020-07-10 Pedro Alves <pedro@palves.net>
970
971 * gdbthread.h (inferior_ref): Define.
972 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
973 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
974 * thread.c
975 (scoped_restore_current_thread::restore):
976 Adjust to gdb::ref_ptr.
977 (scoped_restore_current_thread::~scoped_restore_current_thread):
978 Remove manual decref handling.
979 (scoped_restore_current_thread::scoped_restore_current_thread):
980 Adjust to use
981 inferior_ref::new_reference/thread_info_ref::new_reference.
982 Incref the thread before calling get_frame_id instead of after.
983 Let TARGET_CLOSE_ERROR propagate.
984
6d7aa592
PA
9852020-07-10 Pedro Alves <pedro@palves.net>
986
987 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
988 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
989 NOT_AVAILABLE_ERROR.
990 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
991 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
992
b3e3a4c1
SM
9932020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
994 Pedro Alves <pedro@palves.net>
995
996 PR gdb/26199
997 * infrun.c (threads_are_resumed_pending_p): Delete.
998 (do_target_wait): Remove threads_are_executing and
999 threads_are_resumed_pending_p checks from the inferior_matches
1000 lambda. Update comments.
1001
d6cc5d98
PA
10022020-07-10 Pedro Alves <pedro@palves.net>
1003
1004 PR gdb/26199
1005 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1006 executing threads.
1007
7d3badc6
PA
10082020-07-10 Pedro Alves <pedro@palves.net>
1009
1010 PR gdb/26199
1011 * infrun.c (handle_no_resumed): Handle multiple targets.
1012
42bd97a6
PA
10132020-07-10 Pedro Alves <pedro@palves.net>
1014
1015 PR gdb/26199
1016 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1017 target_is_async_p.
1018
43667cc6
PA
10192020-07-10 Pedro Alves <pedro@palves.net>
1020
1021 PR gdb/26199
1022 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1023 threads, not all threads.
1024
96118d11
PA
10252020-07-10 Pedro Alves <pedro@palves.net>
1026
1027 PR gdb/26199
1028 * remote.c (remote_target::open_1): Pass remote target pointer as
1029 data to create_async_event_handler.
1030 (remote_async_inferior_event_handler): Mark async event handler
1031 before returning if the remote target still has either pending
1032 events or unacknowledged notifications.
1033
54904d81
JB
10342020-07-10 John Baldwin <jhb@FreeBSD.org>
1035
1036 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1037 declaration.
1038 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1039 function.
1040
f37e5866
JB
10412020-07-09 John Baldwin <jhb@FreeBSD.org>
1042
1043 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1044 inferior_ptid.
1045
fc238d4a
JB
10462020-07-09 John Baldwin <jhb@FreeBSD.org>
1047
1048 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1049 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1050 AT_FREEBSD_PS_STRINGS.
1051
6e2469ff
HD
10522020-07-08 Hannes Domani <ssbssa@yahoo.de>
1053
1054 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1055 of debugfile path on Windows.
1056
d1076c41
JB
10572020-07-08 John Baldwin <jhb@FreeBSD.org>
1058
1059 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1060 argument to 'data'.
1061
15f3b077
TT
10622020-07-08 Tom Tromey <tromey@adacore.com>
1063
1064 * ada-lang.c (ada_exception_message_1): Use read_memory.
1065
9fc501fd
AB
10662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1067
1068 PR python/22748
1069 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1070 special handling for inline frames.
1071 * findvar.c (value_of_register_lazy): Skip inline frames when
1072 creating lazy register values.
1073 * frame.c (frame_id_computed_p): Delete definition.
1074 * frame.h (frame_id_computed_p): Delete declaration.
1075
64cb3757
AB
10762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * NEWS: Mention additions to Python API.
1079 * python/py-arch.c (archpy_register_groups): New function.
1080 (arch_object_methods): Add 'register_groups' method.
1081 * python/py-registers.c (reggroup_iterator_object): New struct.
1082 (reggroup_object): New struct.
1083 (gdbpy_new_reggroup): New function.
1084 (gdbpy_reggroup_to_string): New function.
1085 (gdbpy_reggroup_name): New function.
1086 (gdbpy_reggroup_iter): New function.
1087 (gdbpy_reggroup_iter_next): New function.
1088 (gdbpy_new_reggroup_iterator): New function
1089 (gdbpy_initialize_registers): Register new types.
1090 (reggroup_iterator_object_type): Define new Python type.
1091 (gdbpy_reggroup_getset): New static global.
1092 (reggroup_object_type): Define new Python type.
1093 * python/python-internal.h
1094
0f767f94
AB
10952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1096
1097 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1098 * python/py-arch.c (archpy_registers): New function.
1099 (arch_object_methods): Add 'registers' method.
1100 * python/py-registers.c: New file.
1101 * python/python-internal.h
1102 (gdbpy_new_register_descriptor_iterator): Declare.
1103 (gdbpy_initialize_registers): Declare.
1104 * python/python.c (do_start_initialization): Call
1105 gdbpy_initialize_registers.
1106 * NEWS: Mention additions to the Python API.
1107
87dbc774
AB
11082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1109
1110 * NEWS: Mention new Python API method.
1111 * python/py-unwind.c (pending_framepy_architecture): New function.
1112 (pending_frame_object_methods): Add architecture method.
1113
3bc98c0c
AB
11142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1115
1116 * gdbarch.c: Regenerate.
1117 * gdbarch.h: Regenerate.
1118 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1119 (gdbarch_data): Use internal_error for the case where
1120 deprecated_set_gdbarch_data was originally needed.
1121 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1122 and use passed in obstack.
1123 (libunwind_frame_set_descr): Should no longer get back NULL from
1124 gdbarch_data.
1125 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1126 type.
1127 * user-regs.c (user_regs_init): Update parameters, and use passed
1128 in obstack.
1129 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1130 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1131
d8cc8af6
TV
11322020-07-06 Tom de Vries <tdevries@suse.de>
1133
1134 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1135 End-Of-Sequence in lte_is_less_than.
1136 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1137 "gdb: Don't reorder line table entries too much when sorting".
1138
947f7597
TV
11392020-07-06 Tom de Vries <tdevries@suse.de>
1140
1141 PR tui/26205
1142 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1143
1e7c1b22
TV
11442020-07-05 Tom de Vries <tdevries@suse.de>
1145
1146 PR build/26187
1147 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1148 std::uncaught_exceptions instead of deprecated
1149 std::uncaught_exception.
1150
a36158ec
SM
11512020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1152
1153 * macroexp.h (macro_stringify): Return
1154 gdb::unique_xmalloc_ptr<char>.
1155 * macroexp.c (macro_stringify): Likewise.
1156 * macrotab.c (fixup_definition): Update.
1157
14d960c8
SM
11582020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1159
1160 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1161 (lex_one_token): Update.
1162 * macroexp.c (struct macro_buffer) <release>: Return
1163 gdb::unique_xmalloc_ptr<char>.
1164 (macro_stringify): Update.
1165 (macro_expand): Update.
1166 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1167 * macroexp.h (macro_expand_next): Likewise.
1168
211d5b1c
SM
11692020-07-02 Simon Marchi <simon.marchi@efficios.com>
1170
1171 * macroexp.h (macro_lookup_ftype): Remove.
1172 (macro_expand, macro_expand_once, macro_expand_next): Remove
1173 lookup function parameters, add scope parameter.
1174 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1175 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1176 * macroscope.h (standard_macro_lookup): Change parameter type
1177 to macro_scope.
1178 * macroscope.c (standard_macro_lookup): Likewise.
1179 * c-exp.y (lex_one_token): Update.
1180 * macrocmd.c (macro_expand_command): Likewise.
1181 (macro_expand_once_command): Likewise.
1182
b1a35af2
SM
11832020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1184
1185 * inf-loop.c (inferior_event_handler): Remove client_data param.
1186 * inf-loop.h (inferior_event_handler): Likewise.
1187 * infcmd.c (step_1): Adjust.
1188 * infrun.c (proceed): Adjust.
1189 (fetch_inferior_event): Remove client_data param.
1190 (infrun_async_inferior_event_handler): Adjust.
1191 * infrun.h (fetch_inferior_event): Remove `void *` param.
1192 * linux-nat.c (handle_target_event): Adjust.
1193 * record-btrace.c (record_btrace_handle_async_inferior_event):
1194 Adjust.
1195 * record-full.c (record_full_async_inferior_event_handler):
1196 Adjust.
1197 * remote.c (remote_async_inferior_event_handler): Adjust.
1198
1cdf9e33
TT
11992020-07-01 Tom Tromey <tom@tromey.com>
1200
1201 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1202 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1203
32c1e210
TT
12042020-07-01 Tom Tromey <tom@tromey.com>
1205
1206 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1207 tui_gen_win_info.
1208 (tui_win_info::make_window): Merge with
1209 tui_gen_win_info::make_window.
1210 (tui_win_info::make_visible): Move from tui_gen_win_info.
1211 * tui/tui-win.c (tui_win_info::max_width): Move from
1212 tui_gen_win_info.
1213 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1214 type.
1215 <window_factory>: Likewise.
1216 * tui/tui-layout.c (tui_win_info::resize): Move from
1217 tui_gen_win_info.
1218 (make_standard_window): Change return type.
1219 (get_locator_window, tui_get_window_by_name): Likewise.
1220 (tui_layout_window::apply): Remove a cast.
1221 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1222 (struct tui_win_info): Merge with tui_gen_win_info.
1223 (struct tui_gen_win_info): Remove.
1224
a30cb6da
TT
12252020-07-01 Tom Tromey <tom@tromey.com>
1226
1227 * tui/tui-stack.h (struct tui_locator_window): Derive from
1228 tui_win_info.
1229 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1230 <can_box>: New method.
1231
1eb2161f
TT
12322020-07-01 Tom Tromey <tom@tromey.com>
1233
1234 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1235
7134f2eb
TT
12362020-07-01 Tom Tromey <tom@tromey.com>
1237
1238 * tui/tui-regs.c (tui_data_window::display_registers_from)
1239 (tui_data_window::display_registers_from)
1240 (tui_data_window::first_data_item_displayed)
1241 (tui_data_window::delete_data_content_windows): Update.
1242 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1243 Remove.
1244 (tui_data_window::check_register_values): Update.
1245 (tui_data_item_window::rerender): Add parameters. Update.
1246 (tui_data_item_window::refresh_window): Remove.
1247 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1248 virtual.
1249 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1250 tui_gen_win_info.
1251 <refresh_window, max_height, min_height>: Remove.
1252 <rerender>: Add parameters.
1253 <x, y, visible>: New members.
1254 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1255 <m_item_width>: New member.
1256
22b7b041
TT
12572020-07-01 Tom Tromey <tom@tromey.com>
1258
1259 * tui/tui-regs.c (tui_data_window::show_register_group)
1260 (tui_data_window::check_register_values): Update.
1261 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1262 from item_no.
1263
c9753adb
TT
12642020-07-01 Tom Tromey <tom@tromey.com>
1265
1266 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1267 useless "if".
1268
9ab26b4a
TT
12692020-07-01 Tom Tromey <tom@tromey.com>
1270
1271 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1272 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1273
e555083f
TT
12742020-07-01 Tom Tromey <tom@tromey.com>
1275
1276 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1277 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1278 (struct tui_line_or_address): Move from tui-data.h.
1279 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1280 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1281 (tui_cmd_window, tui_source_window_base, tui_source_window)
1282 (tui_disasm_window): Don't declare.
1283 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1284 to tui-winsource.h.
1285 (SINGLE_KEY): Move to tui-stack.c.
1286
7a02bab7
TT
12872020-07-01 Tom Tromey <tom@tromey.com>
1288
1289 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1290 std::string.
1291 * tui/tui-regs.c (class tab_expansion_file): New.
1292 (tab_expansion_file::write): New method.
1293 (tui_register_format): Change return type. Use
1294 tab_expansion_file.
1295 (tui_get_register, tui_data_window::display_registers_from)
1296 (tui_data_item_window::rerender): Update.
1297 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1298 * tui/tui-io.c (tui_expand_tabs): Remove.
1299
ea68593b
TT
13002020-07-01 Tom Tromey <tom@tromey.com>
1301
1302 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1303
a8caed5d
FS
13042020-07-01 Fangrui Song <maskray@google.com>
1305
1306 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1307
9cdf9820
AKS
13082020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1309
1310 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1311 forms for DW_AT_associated and DW_AT_allocated attributes,
1312 which is already checked in function attr_to_dynamic_prop.
1313
a1520ad8
TT
13142020-06-30 Tom Tromey <tromey@adacore.com>
1315
1316 * dwarf2/read.c (quirk_rust_enum): Correctly call
1317 alloc_rust_variant for default-less enum.
1318
5ac58899
TT
13192020-06-30 Tom Tromey <tromey@adacore.com>
1320
1321 PR build/26183:
1322 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1323 gdb::to_string.
1324
19b187a9
SM
13252020-06-29 Simon Marchi <simon.marchi@efficios.com>
1326
1327 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1328 * gdbarch.h: Re-generate.
1329
cd4c4c07
TT
13302020-06-28 Tom Tromey <tom@tromey.com>
1331
1332 * command.h (cmd_types): Remove.
1333 (cmd_type): Don't declare.
1334 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1335 typedef.
1336 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1337 * cli/cli-decode.c (cmd_type): Remove.
1338
05779d57
PA
13392020-06-27 Pedro Alves <palves@redhat.com>
1340
1341 * fork-child.c (prefork_hook): Adjust.
1342 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1343 Delete.
1344 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1345 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1346 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1347 Remove declarations.
1348 (struct inferior) <set_tty, tty>: New methods.
1349 (struct inferior) <terminal>: Rename to ...
1350 (struct inferior) <m_terminal>: ... this and make private.
1351 * main.c (captured_main_1): Adjust.
1352 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1353 (mi_cmd_inferior_tty_show): Adjust.
1354 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1355 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1356
1776e3e5
NA
13572020-06-26 Nick Alcock <nick.alcock@oracle.com>
1358
1359 * configure.ac: Add --enable-libctf: handle --disable-static
1360 properly.
1361 * acinclude.m4: sinclude ../config/enable.m4.
1362 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1363 (LIBCTF): Substitute in.
1364 (CTF_DEPS): New, likewise.
1365 (CLIBS): libctf needs symbols from libbfd: move earlier.
1366 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1367 flags.
1368 * ctfread.c: Surround in ENABLE_LIBCTF.
1369 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1370 * configure: Regenerate.
1371 * config.in: Likewise.
1372
58373b80
SM
13732020-06-25 Simon Marchi <simon.marchi@efficios.com>
1374
1375 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1376
277474ee
SM
13772020-06-25 Simon Marchi <simon.marchi@efficios.com>
1378
1379 * inferior.h (struct inferior) <terminal>: Change type to
1380 gdb::unique_xmalloc_ptr<char>.
1381 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1382 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1383 field, adjust to unique pointer.
1384 (get_inferior_io_terminal): Adjust to unique pointer.
1385
6d74da72
AB
13862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1387
1388 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1389 registers, not just the known core set of registers.
1390
2e52d038
AB
13912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1392
1393 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1394 fflags, frm, and fcsr registers.
1395 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1396 restore groups.
1397 (riscv_tdesc_unknown_reg): New function.
1398 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1399 tdesc_use_registers.
1400 * riscv-tdep.h (struct gdbarch_tdep): Add
1401 unknown_csrs_first_regnum, unknown_csrs_count,
1402 duplicate_fflags_regnum, duplicate_frm_regnum, and
1403 duplicate_fcsr_regnum fields.
1404
be64fd07
AB
14052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1406
1407 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1408 callback, use the callback (when not null) to help number unknown
1409 registers.
1410 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1411 (tdesc_use_registers): Add extra parameter to declaration.
1412
3b9fce96
AB
14132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1414
1415 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1416 in the file.
1417 (class riscv_pending_register_alias): Likewise.
1418 (riscv_register_feature::register_info): Change 'required_p' field
1419 to 'required', and change its type. Add 'check' member function.
1420 (riscv_register_feature::register_info::check): Define new member
1421 function.
1422 (riscv_xreg_feature): Change initialisation of 'required' field.
1423 (riscv_freg_feature): Likewise.
1424 (riscv_virtual_feature): Likewise.
1425 (riscv_csr_feature): Likewise.
1426 (riscv_check_tdesc_feature): Take extra parameter, the csr
1427 tdesc_feature, rewrite the function to use the new
1428 riscv_register_feature::register_info::check function.
1429 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1430
865bad26
AB
14312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1432
1433 * features/Makefile: Remove all references to the deleted files
1434 below.
1435 * features/riscv/32bit-csr.c: Deleted.
1436 * features/riscv/32bit-csr.xml: Deleted.
1437 * features/riscv/64bit-csr.c: Deleted.
1438 * features/riscv/64bit-csr.xml: Deleted.
1439 * features/riscv/rebuild-csr-xml.sh: Deleted.
1440
ed69cbc8
AB
14412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1442
1443 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1444 whitespace error for declaration of names member variable.
1445 (struct riscv_register_feature): Add new prefer_first_name member
1446 variable, and fix whitespace error in declaration of registers.
1447 (riscv_xreg_feature): Initialize prefer_first_name field.
1448 (riscv_freg_feature): Likewise.
1449 (riscv_virtual_feature): Likewise.
1450 (riscv_csr_feature): Likewise.
1451 (riscv_register_name): Expand on comments. Remove register name
1452 modifications for CSR and virtual registers.
1453
4445e8f5
AB
14542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1455
1456 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1457 errors.
1458
767a879e
AB
14592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1462 riscv-opc.h.
1463 (class riscv_pending_register_alias): New class.
1464 (riscv_check_tdesc_feature): Take vector of pending aliases and
1465 populate it as appropriate.
1466 (riscv_setup_register_aliases): Delete.
1467 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1468 to riscv_check_tdesc_feature in all cases. Use the vector to
1469 create the register aliases.
1470
bb6e55f3
RO
14712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1472
1473 * sol2-tdep.c (sol2_static_transform_name): Remove.
1474 (sol2_init_abi): Don't register it.
1475 * gdbarch.sh (static_transform_name): Remove.
1476 * gdbarch.c, gdbarch.h: Regenerate.
1477
1478 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1479 gdbarch_static_transform_name.
1480 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1481 * stabsread.c (define_symbol) <'X'>: Remove.
1482 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1483 handling.
1484 <'V'>: Likewise.
1485 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1486 <'S'>: Remove call to gdbarch_static_transform_name.
1487
c6d36836
RO
14882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1489
1490 * procfs.c (procfs_pre_trace): New function.
1491 (procfs_target::create_inferior): Pass it to fork_inferior.
1492
a7e6196b
RO
14932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1494
1495 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1496 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1497 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1498 sol2-tdep.o, sparc-sol2-tdep.o.
1499 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1500 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1501 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1502 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1503
d412e696
RO
15042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1505
1506 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1507 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1508 Call sol2_init_abi.
1509 Remove calls to set_gdbarch_skip_solib_resolver,
1510 set_gdbarch_core_pid_to_str.
1511 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1512 (i386_sol2_static_transform_name): Remove.
1513 (i386_sol2_init_abi): Call sol2_init_abi.
1514 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1515 set_gdbarch_static_transform_name,
1516 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1517 Use sol2_sigtramp_p.
1518 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1519 (sol2_sigtramp_p): New function.
1520 (sol2_static_transform_name): New function.
1521 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1522 (sol2_init_abi): New function.
1523 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1524 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1525 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1526 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1527 (sparc_sol2_static_transform_name): Remove.
1528 (sparc32_sol2_init_abi): Call sol2_init_abi.
1529 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1530 set_gdbarch_static_transform_name,
1531 set_gdbarch_skip_solib_resolver,
1532 set_gdbarch_core_pid_to_str.
1533 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1534 (sparc_sol2_static_transform_name): Remove
1535 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1536 call sol2_sigtramp_p.
1537 (sparc64_sol2_init_abi): Call sol2_init_abi.
1538 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1539 set_gdbarch_static_transform_name,
1540 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1541
a8654e7d
PW
15422020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1543
1544 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1545 * exec.c (validate_exec_file): If from_tty, set both
1546 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1547 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1548 and from_tty, unconditionally ask a confirmation.
1549
caa7fd04
AB
15502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1551
1552 * target-descriptions.c (tdesc_architecture_name): Protect against
1553 NULL pointer dereference.
1554 (maint_print_xml_tdesc_cmd): New function.
1555 (_initialize_target_descriptions): Register new 'maint print
1556 xml-tdesc' command and give it the filename completer.
1557 * NEWS: Mention new 'maint print xml-tdesc' command.
1558
fbf42f4e
AB
15592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1560
1561 * target-descriptions.c (class tdesc_compatible_info): New class.
1562 (struct target_desc): Change type of compatible vector.
1563 (tdesc_compatible_p): Update for change in type of
1564 target_desc::compatible.
1565 (tdesc_compatible_info_list): New function.
1566 (tdesc_compatible_info_arch_name): New function.
1567 (tdesc_add_compatible): Update for change in type of
1568 target_desc::compatible.
1569 (print_c_tdesc::visit_pre): Likewise.
1570
20821f4e
AB
15712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1572
1573 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1574 whitespace to underscore.
1575 (maint_print_c_tdesc_cmd): Use fake filename for target
1576 descriptions that came from the target.
1577 (_initialize_target_descriptions): Add filename command completion
1578 for 'maint print c-tdesc'.
1579
1fb5ee62
SM
15802020-06-23 Simon Marchi <simon.marchi@efficios.com>
1581
1582 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1583 lines.
1584
fc3ecb3e
SM
15852020-06-23 Simon Marchi <simon.marchi@efficios.com>
1586
1587 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1588 lines.
1589 (dwarf2_find_location_expression): Likewise.
1590 (call_site_parameter_matches): Likewise.
1591 (dwarf2_compile_expr_to_ax): Likewise.
1592 (disassemble_dwarf_expression): Likewise.
1593 (loclist_describe_location): Likewise.
1594
236ef034
PA
15952020-06-23 Pedro Alves <palves@redhat.com>
1596
1597 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1598 progspace-and-thread.h. Include scoped-mock-context.h instead.
1599 (register_to_value_test): Use scoped_mock_context.
1600 * regcache.c: Include "scoped-mock-context.h".
1601 (cooked_read_test): Don't error out if a target is already pushed.
1602 Use scoped_mock_context. Adjust.
1603 * scoped-mock-context.h: New file.
1604
39e7ecca
AB
16052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1608 initializer.
1609 (ada_language::is_string_type_p): New member function.
1610 * c-lang.c (c_language_data): Delete la_is_string_type_p
1611 initializer.
1612 (cplus_language_data): Likewise.
1613 (asm_language_data): Likewise.
1614 (minimal_language_data): Likewise.
1615 * d-lang.c (d_language_data): Likewise.
1616 * f-lang.c (f_is_string_type_p): Delete function, implementation
1617 moved to f_language::is_string_type_p.
1618 (f_language_data): Delete la_is_string_type_p initializer.
1619 (f_language::is_string_type_p): New member function,
1620 implementation from f_is_string_type_p.
1621 * go-lang.c (go_is_string_type_p): Delete function, implementation
1622 moved to go_language::is_string_type_p.
1623 (go_language_data): Delete la_is_string_type_p initializer.
1624 (go_language::is_string_type_p): New member function,
1625 implementation from go_is_string_type_p.
1626 * language.c (language_defn::is_string_type_p): Define new member
1627 function.
1628 (default_is_string_type_p): Make static, add comment copied from
1629 header file.
1630 (unknown_language_data): Delete la_is_string_type_p initializer.
1631 (unknown_language::is_string_type_p): New member function.
1632 (auto_language_data): Delete la_is_string_type_p initializer.
1633 (auto_language::is_string_type_p): New member function.
1634 * language.h (language_data): Delete la_is_string_type_p field.
1635 (language_defn::is_string_type_p): Declare new function.
1636 (default_is_string_type_p): Delete desclaration, move comment to
1637 definition.
1638 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1639 moved to m2_language::is_string_type_p.
1640 (m2_language_data): Delete la_is_string_type_p initializer.
1641 (m2_language::is_string_type_p): New member function,
1642 implementation from m2_is_string_type_p.
1643 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1644 initializer.
1645 * opencl-lang.c (opencl_language_data): Likewise.
1646 * p-lang.c (pascal_is_string_type_p): Delete function,
1647 implementation moved to pascal_language::is_string_type_p.
1648 (pascal_language_data): Delete la_is_string_type_p initializer.
1649 (pascal_language::is_string_type_p): New member function,
1650 implementation from pascal_is_string_type_p.
1651 * rust-lang.c (rust_is_string_type_p): Delete function,
1652 implementation moved to rust_language::is_string_type_p.
1653 (rust_language_data): Delete la_is_string_type_p initializer.
1654 (rust_language::is_string_type_p): New member function,
1655 implementation from rust_is_string_type_p.
1656 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1657 is_string_type_p.
1658
4ffc13fb
AB
16592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1660
1661 * ada-lang.c (ada_language_data): Delete la_print_typedef
1662 initializer.
1663 (ada_language::print_typedef): New member function.
1664 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1665 (cplus_language_data): Likewise.
1666 (asm_language_data): Likewise.
1667 (minimal_language_data): Likewise.
1668 * d-lang.c (d_language_data): Likewise.
1669 * f-lang.c (f_language_data): Likewise.
1670 (f_language::print_typedef): New member function.
1671 * go-lang.c (go_language_data): Delete la_print_typedef
1672 initializer.
1673 * language.c (language_defn::print_typedef): Define member
1674 function.
1675 (unknown_language_data): Delete la_print_typedef initializer.
1676 (unknown_language::print_typedef): New member function.
1677 (auto_language_data): Delete la_print_typedef initializer.
1678 (auto_language::print_typedef): New member function.
1679 * language.h (language_data): Delete la_print_typedef field.
1680 (language_defn::print_typedef): Declare new member function.
1681 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1682 (default_print_typedef): Delete declaration.
1683 * m2-lang.c (m2_language_data): Delete la_print_typedef
1684 initializer.
1685 (m2_language::print_typedef): New member function.
1686 * objc-lang.c (objc_language_data): Delete la_print_typedef
1687 initializer.
1688 * opencl-lang.c (opencl_language_data): Likewise.
1689 * p-lang.c (pascal_language_data): Likewise.
1690 (pascal_language::print_typedef): New member function.
1691 * rust-lang.c (rust_print_typedef): Delete function,
1692 implementation moved to rust_language::print_typedef.
1693 (rust_language): Delete la_print_typedef initializer.
1694 (rust_language::print_typedef): New member function,
1695 implementation from rust_print_typedef.
1696 * typeprint.c (default_print_typedef): Delete.
1697
d711ee67
AB
16982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1699
1700 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1701 (ada_language::printstr): New member function.
1702 * c-lang.c (c_language_data): Delete la_printstr initializer.
1703 (cplus_language_data): Likewise.
1704 (asm_language_data): Likewise.
1705 (minimal_language_data): Likewise.
1706 * d-lang.c (d_language_data): Likewise.
1707 * f-lang.c (f_printstr): Rename to f_language::printstr.
1708 (f_language_data): Delete la_printstr initializer.
1709 (f_language::printstr): New member function, implementation from
1710 f_printstr.
1711 * go-lang.c (go_language_data): Delete la_printstr initializer.
1712 * language.c (language_defn::printstr): Define new member
1713 function.
1714 (unk_lang_printstr): Delete.
1715 (unknown_language_data): Delete la_printstr initializer.
1716 (unknown_language::printstr): New member function.
1717 (auto_language_data): Delete la_printstr initializer.
1718 (auto_language::printstr): New member function.
1719 * language.h (language_data): Delete la_printstr field.
1720 (language_defn::printstr): Declare new member function.
1721 (LA_PRINT_STRING): Update call to printstr.
1722 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1723 (m2_language_data): Delete la_printstr initializer.
1724 (m2_language::printstr): New member function, implementation from
1725 m2_printstr.
1726 * objc-lang.c (objc_language_data): Delete la_printstr
1727 initializer.
1728 * opencl-lang.c (opencl_language_data): Likewise.
1729 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1730 (pascal_language_data): Delete la_printstr initializer.
1731 (pascal_language::printstr): New member function, implementation
1732 from pascal_printstr.
1733 * p-lang.h (pascal_printstr): Delete declaration.
1734 * rust-lang.c (rust_printstr): Update header comment.
1735 (rust_language_data): Delete la_printstr initializer.
1736 (rust_language::printstr): New member function.
1737
52b50f2c
AB
17382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1739
1740 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1741 (ada_language::printchar): New member function.
1742 * c-lang.c (c_language_data): Delete la_printchar initializer.
1743 (cplus_language_data): Likewise.
1744 (asm_language_data): Likewise.
1745 (minimal_language_data): Likewise.
1746 * d-lang.c (d_language_data): Likewise.
1747 * f-lang.c (f_printchar): Rename to f_language::printchar.
1748 (f_language_data): Delete la_printchar initializer.
1749 (f_language::printchar): New member function, implementation from
1750 f_printchar.
1751 * go-lang.c (go_language_data): Delete la_printchar initializer.
1752 * language.c (unk_lang_printchar): Delete.
1753 (language_defn::printchar): Define new member function.
1754 (unknown_language_data): Delete la_printchar initializer.
1755 (unknown_language::printchar): New member function.
1756 (auto_language_data): Delete la_printchar initializer.
1757 (auto_language::printchar): New member function.
1758 * language.h (language_data): Delete la_printchar field.
1759 (language_defn::printchar): Declare new member function.
1760 (LA_PRINT_CHAR): Update call to printchar.
1761 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1762 (m2_language::printchar): New member function.
1763 * objc-lang.c (objc_language_data): Delete la_printchar
1764 initializer.
1765 * opencl-lang.c (opencl_language_data): Likewise.
1766 * p-lang.c (pascal_language_data): Delete la_printchar
1767 initializer.
1768 (pascal_language::printchar): New member function.
1769 * rust-lang.c (rust_printchar): Rename to
1770 rust_language::printchar.
1771 (rust_language_data): Delete la_printchar initializer.
1772 (rust_language::printchar): New member function, implementation
1773 from rust_printchar.
1774
ec8cec5b
AB
17752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1776
1777 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1778 (ada_language_data): Delete la_emitchar initializer.
1779 (ada_language::emitchar): New member function, implementation from
1780 emit_char.
1781 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1782 (cplus_language_data): Likewise.
1783 (asm_language_data): Likewise.
1784 (minimal_language_data): Likewise.
1785 * d-lang.c (d_language_data): Likewise.
1786 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1787 (f_language_data): Delete la_emitchar initializer.
1788 (f_language::emitchar): New member function, implementation from
1789 f_emit_char.
1790 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1791 * language.c (unk_lang_emit_char): Delete.
1792 (language_defn::emitchar): New member function definition.
1793 (unknown_language_data): Delete la_emitchar initializer.
1794 (unknown_language::emitchar): New member function.
1795 (auto_language_data): Delete la_emitchar initializer.
1796 (auto_language::emitchar): New member function.
1797 * language.h (language_data): Delete la_emitchar field.
1798 (language_defn::emitchar): New member field declaration.
1799 (LA_EMIT_CHAR): Update call to emitchar.
1800 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1801 (m2_language_data): Delete la_emitchar initializer.
1802 (m2_language::emitchar): New member function, implementation from
1803 m2_emit_char.
1804 * objc-lang.c (objc_language_data): Delete la_emitchar
1805 initializer.
1806 * opencl-lang.c (opencl_language_data): Likewise.
1807 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1808 (pascal_language_data): Delete la_emitchar initializer.
1809 (pascal_language::emitchar): New member function, implementation
1810 from pascal_emit_char.
1811 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1812 (rust_language_data): Delete la_emitchar initializer.
1813 (rust_language::emitchar): New member function, implementation
1814 from rust_emitchar.
1815
1bf9c363
AB
18162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1819 (ada_language_data): Delete la_post_parser initializer.
1820 (ada_language::post_parser): New member function.
1821 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1822 (cplus_language_data): Likewise.
1823 (asm_language_data): Likewise.
1824 (minimal_language_data): Likewise.
1825 * d-lang.c (d_language_data): Likewise.
1826 * f-lang.c (f_language_data): Likewise.
1827 * go-lang.c (go_language_data): Likewise.
1828 * language.c (unknown_language_data): Likewise.
1829 (auto_language_data): Likewise.
1830 * language.h (language_data): Delete la_post_parser field.
1831 (language_defn::post_parser): New member function.
1832 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1833 * objc-lang.c (objc_language_data): Likewise.
1834 * opencl-lang.c (opencl_language_data): Likewise.
1835 * p-lang.c (pascal_language_data): Likewise.
1836 * parse.c (parse_exp_in_context): Update call to post_parser.
1837 (null_post_parser): Delete definition.
1838 * parser-defs.h (null_post_parser): Delete declaration.
1839 * rust-lang.c (rust_language_data): Delete la_post_parser
1840 initializer.
1841
87afa652
AB
18422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1843
1844 * ada-lang.c (parse): Rename to ada_language::parser.
1845 (ada_language_data): Delete la_parser initializer.
1846 (ada_language::parser): New member function, implementation from
1847 parse.
1848 * c-lang.c (c_language_data): Delete la_parser initializer.
1849 (cplus_language_data): Likewise.
1850 (asm_language_data): Likewise.
1851 (minimal_language_data): Likewise.
1852 * d-lang.c (d_language_data): Likewise.
1853 (d_language::parser): New member function.
1854 * f-lang.c (f_language_data): Delete la_parser initializer.
1855 (f_language::parser): New member function.
1856 * go-lang.c (go_language_data): Delete la_parser initializer.
1857 (go_language::parser): New member function.
1858 * language.c (unk_lang_parser): Delete.
1859 (language_defn::parser): Define new member function.
1860 (unknown_language_data): Delete la_parser initializer.
1861 (unknown_language::parser): New member function.
1862 (auto_language_data): Delete la_parser initializer.
1863 (auto_language::parser): New member function.
1864 * language.h (language_data): Delete la_parser field.
1865 (language_defn::parser): Declare new member function.
1866 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1867 (m2_language::parser): New member function.
1868 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1869 * opencl-lang.c (opencl_language_data): Likewise.
1870 * p-lang.c (pascal_language_data): Likewise.
1871 (pascal_language::parser): New member function.
1872 * parse.c (parse_exp_in_context): Update call to parser.
1873 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1874 (rust_language::parser): New member function.
1875
37825800
AB
18762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1877
1878 * top.c (print_gdb_configuration): Print --with-python-libdir
1879 configuration value.
1880
5b860c93
PW
18812020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1882
1883 * NEWS: Mention change to the alias command.
1884
cf00cd6f
PW
18852020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1886
1887 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1888 (alias_command_completer)
1889 (make_alias_options_def_group): New functions.
1890 (alias_opts, alias_option_defs): New struct and array.
1891 (alias_usage_error): Update usage.
1892 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1893 Use option framework.
1894 (_initialize_cli_cmds): Update alias command help.
1895 Update aliases command help.
1896 (show_user):
1897 Add NULL for new default_args lookup_cmd argument.
1898 (valid_command_p): Rename to validate_aliased_command.
1899 Add NULL for new default_args lookup_cmd argument. Verify that the
1900 aliased_command has no default args.
1901 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1902 (lookup_cmd_1, lookup_cmd): New argument default_args.
1903 (add_alias_cmd):
1904 Add NULL for new default_args lookup_cmd argument.
1905 (print_help_for_command): Show default args under the layout
1906 alias some_alias = some_aliased_cmd some_alias_default_arg.
1907 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1908 xfree default_args in destructor.
1909 * cli/cli-script.c (process_next_line, do_define_command):
1910 Add NULL for new default_args lookup_cmd argument.
1911 * command.h: Declare new default_args argument in lookup_cmd
1912 and lookup_cmd_1.
1913 * completer.c (complete_line_internal_1):
1914 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1915 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1916 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1917 Likewise.
1918 * infcmd.c (_initialize_infcmd): Likewise.
1919 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1920 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1921 * python/py-param.c (add_setshow_generic): Likewise.
1922 * remote.c (_initialize_remote): Likewise.
1923 * top.c (execute_command): Prepend default_args if command has some.
1924 (set_verbose):
1925 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1926 * tracepoint.c (validate_actionline, encode_actions_1):
1927 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1928
bd920864
TBA
19292020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1930
1931 * jit.c (jit_read_descriptor): Use bool as the return type.
1932 (jit_breakpoint_re_set_internal): Use bool as the return type.
1933 Invert the return value logic; return true if the jit breakpoint
1934 has been successfully initialized.
1935 (jit_inferior_init): Update the call to
1936 jit_breakpoint_re_set_internal.
1937
f8098322
PA
19382020-06-22 Pedro Alves <palves@redhat.com>
1939
1940 PR gdb/25939
1941 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1942 Use the current inferior instead. Don't return
1943 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1944 wait again.
1945 * sol-thread.c (sol_thread_target::wait): Don't reference
1946 inferior_ptid.
1947 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1948 (sol_update_thread_list_callback): Use the current inferior's pid
1949 instead of inferior_ptid.
1950
196535a6
RO
19512020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1952
1953 * procfs.c: Cleanup many comments.
1954
1955 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1956 (AFTER_WATCHFLAG): Replace by value.
1957
1958 (MAIN_PROC_NAME_FORMAT): Inline ...
1959 (create_procinfo): ... here.
1960
1961 (procfs_debug_inferior): Remove SYS_exec handling.
1962 (syscall_is_exec): Likewise.
1963 (procfs_set_exec_trap): Likewise.
1964
1965 (syscall_is_lwp_exit): Inline in callers.
1966 (syscall_is_exit): Likewise.
1967 (syscall_is_exec): Likewise.
1968 (syscall_is_lwp_create): Likewise.
1969
1970 (invalidate_cache): Remove #if 0 code.
1971
1972 (make_signal_thread_runnable): Remove.
1973 (procfs_target::resume): Remove #if 0 code.
1974
cf6f3e86
RO
19752020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1976
1977 PR gdb/25939
1978 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1979 call ...
1980 (procfs_target::create_inferior): ... here.
1981
48e9cc84
PW
19822020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1983
1984 * exec.c (validate_exec_file): Ensure the build-id is up to
1985 date by calling reopen_exec_file (that checks file timestamp
1986 to decide to re-read the file).
1987
3922b302
PA
19882020-06-18 Pedro Alves <palves@redhat.com>
1989
1990 PR gdb/25412
1991 * gdbthread.h (delete_thread, delete_thread_silent)
1992 (find_thread_ptid): Update comments.
1993 * thread.c (current_thread_): New global.
1994 (is_current_thread): Move higher, and reimplement.
1995 (inferior_thread): Reimplement.
1996 (set_thread_exited): Use bool. Add assertions.
1997 (add_thread_silent): Simplify thread-reuse handling by always
1998 calling delete_thread.
1999 (delete_thread): Remove intro comment.
2000 (find_thread_ptid): Skip exited threads.
2001 (switch_to_thread_no_regs): Write to current_thread_.
2002 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2003 INFERIOR_PTID. Clear current_thread_.
2004
6dbdab44
PA
20052020-06-18 Pedro Alves <palves@redhat.com>
2006
2007 * aix-thread.c (pd_update): Use switch_to_thread.
2008
2da4b788
PA
20092020-06-18 Pedro Alves <palves@redhat.com>
2010
2011 * ravenscar-thread.c (ravenscar_thread_target): Update.
2012 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2013 (ravenscar_thread_target::add_active_thread): ... this. Don't
2014 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2015 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2016
50838d1b
PA
20172020-06-18 Pedro Alves <palves@redhat.com>
2018
2019 * nat/windows-nat.c (current_windows_thread): Remove.
2020 * nat/windows-nat.h (current_windows_thread): Remove.
2021 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2022 Adjust.
2023 (display_selectors): Adjust to fetch the current
2024 windows_thread_info based on inferior_ptid.
2025 (fake_create_process): No longer write to current_windows_thread.
2026 (windows_nat_target::get_windows_debug_event):
2027 Don't set inferior_ptid or current_windows_thread.
2028 (windows_nat_target::wait): Adjust to not rely on
2029 current_windows_thread.
2030 (do_initial_windows_stuff): Now a method of windows_nat_target.
2031 Switch to the last_ptid thread.
2032 (windows_nat_target::attach): Adjust.
2033 (windows_nat_target::detach): Use switch_to_no_thread instead of
2034 writing to inferior_ptid directly.
2035 (windows_nat_target::create_inferior): Adjust.
2036
31ce04e9
PA
20372020-06-18 Pedro Alves <palves@redhat.com>
2038
2039 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2040
1ee1a363
PA
20412020-06-18 Pedro Alves <palves@redhat.com>
2042
2043 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2044 after creating it, instead of writing to inferior_ptid. Don't
2045 write to inferior_ptid.
2046
6d350754
PA
20472020-06-18 Pedro Alves <palves@redhat.com>
2048
2049 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2050
5d971d48
PA
20512020-06-18 Pedro Alves <palves@redhat.com>
2052
2053 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2054 it, instead of writing to inferior_ptid.
2055
86e57d1b
PA
20562020-06-18 Pedro Alves <palves@redhat.com>
2057
2058 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2059 to inferior_ptid.
2060
f2e1c129
PA
20612020-06-18 Pedro Alves <palves@redhat.com>
2062
2063 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2064 instead of writing to inferior_ptid directly.
2065
60db1b85
PA
20662020-06-18 Pedro Alves <palves@redhat.com>
2067
2068 * corelow.c (core_target::close): Use switch_to_no_thread instead
2069 of writing to inferior_ptid directly.
2070 (add_to_thread_list, core_target_open): Use switch_to_thread
2071 instead of writing to inferior_ptid directly.
2072
fe7d6a8d
PA
20732020-06-18 Pedro Alves <palves@redhat.com>
2074
2075 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2076 inferior_ptid.
2077 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2078 inferior_ptid.
2079 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2080 inferior_ptid directly.
2081 (darwin_nat_target::init_thread_list): Switch to thread, instead
2082 of writing to inferior_ptid.
2083 (darwin_nat_target::attach): Don't write to inferior_ptid.
2084 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2085
975f8708
PA
20862020-06-18 Pedro Alves <palves@redhat.com>
2087
2088 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2089 thread.
2090 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2091 Instead use switch_to_thread.
2092 (gnu_nat_target::detach): Use switch_to_no_thread
2093 instead of writing to inferior_ptid directly. Used passed-in
2094 inferior instead of looking up the inferior by pid.
2095
1a204730
PA
20962020-06-18 Pedro Alves <palves@redhat.com>
2097
2098 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2099 inferior_ptid.
2100
ebe84f23
PA
21012020-06-18 Pedro Alves <palves@redhat.com>
2102
2103 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2104 inferior_ptid.
2105 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2106 thread.
2107 (nto_procfs_target::detach): Avoid referencing
2108 inferior_ptid. Use switch_to_no_thread instead of writing to
2109 inferior_ptid directly.
2110 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2111 instead of writing to inferior_ptid directly.
2112 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2113 to thread.
2114
191f02e5
PA
21152020-06-18 Pedro Alves <palves@redhat.com>
2116
2117 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2118 after creating it, instead of writing to inferior_ptid.
2119 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2120 to inferior_ptid directly.
2121 (gdbsim_target::wait): Don't write to inferior_ptid.
2122
0ac55310
PA
21232020-06-18 Pedro Alves <palves@redhat.com>
2124
2125 * remote.c (remote_target::remote_notice_new_inferior): Use
2126 switch_to_thread instead of writing to inferior_ptid directly.
2127 (remote_target::add_current_inferior_and_thread): Use
2128 switch_to_no_thread instead of writing to inferior_ptid directly.
2129 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2130 and switch_to_thread instead of using set_current_inferior or
2131 writing to inferior_ptid directly.
2132
5233f39b
PA
21332020-06-18 Pedro Alves <palves@redhat.com>
2134
2135 * tracectf.c (ctf_target_open): Switch to added thread instead of
2136 writing to inferior_ptid directly.
2137 (ctf_target::close): Use switch_to_no_thread instead of writing to
2138 inferior_ptid directly.
2139
087e161b
PA
21402020-06-18 Pedro Alves <palves@redhat.com>
2141
2142 * tracefile-tfile.c (tfile_target_open): Don't write to
2143 inferior_ptid directly, instead switch to added thread.
2144 (tfile_target::close): Use switch_to_no_thread instead of writing
2145 to inferior_ptid directly.
2146
7fb43e53
PA
21472020-06-18 Pedro Alves <palves@redhat.com>
2148
2149 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2150 (procfs_target::detach): Use switch_to_no_thread
2151 instead of writing to inferior_ptid directly.
2152 (do_attach): Change return type to void. Switch to the added
2153 thread.
2154 (procfs_target::create_inferior): Switch to the added thread.
2155 (procfs_do_thread_registers): Don't write to inferior_ptid.
2156
18493a00
PA
21572020-06-18 Pedro Alves <palves@redhat.com>
2158
2159 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2160 of writing to inferior_ptid.
2161 (scoped_restore_exited_inferior): Delete.
2162 (handle_vfork_child_exec_or_exit): Simplify using
2163 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2164 instead of writing to inferior_ptid.
2165 (THREAD_STOPPED_BY): Delete.
2166 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2167 (thread_stopped_by_hw_breakpoint): Delete.
2168 (save_waitstatus): Use
2169 scoped_restore_current_thread+switch_to_thread, and call
2170 target_stopped_by_watchpoint instead of
2171 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2172 instead of thread_stopped_by_sw_breakpoint, and
2173 target_stopped_by_hw_breakpoint instead of
2174 thread_stopped_by_hw_breakpoint.
2175 (handle_inferior_event)
2176 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2177 inferior_ptid directly, nor
2178 set_current_inferior/set_current_program_space. Use
2179 switch_to_thread / switch_to_inferior_no_thread instead.
2180
a0776b13
PA
21812020-06-18 Pedro Alves <palves@redhat.com>
2182
2183 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2184 instead of writing to inferior_ptid.
2185
6155c136
PA
21862020-06-18 Pedro Alves <palves@redhat.com>
2187
2188 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2189 added thread.
2190 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2191 to the added thread.
2192 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2193 instead of writing to inferior_ptid.
2194
c5316fc6
PA
21952020-06-18 Pedro Alves <palves@redhat.com>
2196
2197 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2198 (register_to_value_test): Mock a program_space too. Heap-allocate
2199 the address space. Don't write to inferior_ptid. Use
2200 switch_to_thread instead.
2201
8df01799
PA
22022020-06-18 Pedro Alves <palves@redhat.com>
2203
2204 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2205 Delete.
2206 (find_signalled_thread()): New, factored out from
2207 linux_make_corefile_notes and adjusted to handle exited threads.
2208 (linux_make_corefile_notes): Adjust to use the new
2209 find_signalled_thread.
2210
41792d68
PA
22112020-06-18 Pedro Alves <palves@redhat.com>
2212
2213 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2214 of saving/restoring inferior_ptid.
2215
612f258a
TT
22162020-06-17 Tom Tromey <tom@tromey.com>
2217
2218 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2219 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2220 declare.
2221 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2222
efb763a5
SM
22232020-06-15 Simon Marchi <simon.marchi@efficios.com>
2224
2225 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2226 of partial symtabs.
2227
2951f6c0
SM
22282020-06-17 Simon Marchi <simon.marchi@efficios.com>
2229
2230 * regformats/reg-arm.dat: Remove.
2231 * regformats/reg-bfin.dat: Remove.
2232 * regformats/reg-cris.dat: Remove.
2233 * regformats/reg-crisv32.dat: Remove.
2234 * regformats/reg-m32r.dat: Remove.
2235 * regformats/reg-tilegx.dat: Remove.
2236 * regformats/reg-tilegx32.dat: Remove.
2237
7d458ea5
SM
22382020-06-17 Simon Marchi <simon.marchi@efficios.com>
2239
2240 * features/Makefile (WHICH): Remove arm files.
2241 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2242 * regformats/arm/arm-with-neon.dat: Remove.
2243 * regformats/arm/arm-with-vfpv2.dat: Remove.
2244 * regformats/arm/arm-with-vfpv3.dat: Remove.
2245
3af96c0d
SM
22462020-06-17 Simon Marchi <simon.marchi@efficios.com>
2247
2248 * features/Makefile (XMLTOC): Remove rx.xml.
2249
b25e22fd
PA
22502020-06-17 Pedro Alves <palves@redhat.com>
2251
2252 * gdbthread.h (thread_control_state) <trap_expected> Update
2253 comments.
2254
a78a19b1
AB
22552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2256
2257 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2258 ada_language::lookup_symbol_nonlocal.
2259 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2260 (ada_language::lookup_symbol_nonlocal): New member function,
2261 implementation from ada_lookup_symbol_nonlocal.
2262 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2263 initializer.
2264 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2265 initializer.
2266 (cplus_language::lookup_symbol_nonlocal): New member function.
2267 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2268 (minimal_language_data) Likewise.
2269 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2270 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2271 initializer.
2272 (d_language::lookup_symbol_nonlocal): New member function.
2273 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2274 initializer.
2275 (f_language::lookup_symbol_nonlocal): New member function.
2276 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2277 initializer.
2278 * language.c (unknown_language_data): Likewise.
2279 (auto_language_data): Likewise.
2280 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2281 field.
2282 (language_defn::lookup_symbol_nonlocal): New member function.
2283 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2284 initializer.
2285 * objc-lang.c (objc_language_data): Likewise.
2286 * opencl-lang.c (opencl_language_data): Likewise.
2287 * p-lang.c (pascal_language_data): Likewise.
2288 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2289 rust_language::lookup_symbol_nonlocal.
2290 (rust_language_data): Delete la_lookup_symbol_nonlocal
2291 initializer.
2292 (rust_language::lookup_symbol_nonlocal): New member function,
2293 implementation from rust_lookup_symbol_nonlocal.
2294 * symtab.c (lookup_symbol_aux): Update call to
2295 lookup_symbol_nonlocal.
2296 (basic_lookup_symbol_nonlocal): Rename to...
2297 (language_defn::lookup_symbol_nonlocal): ...this, and update
2298 header comment. Remove language_defn parameter, and replace with
2299 uses of `this'.
2300 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2301
ebe2334e
AB
23022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2305 initializer.
2306 (ada_language::value_print_inner): New member function.
2307 * c-lang.c (c_language_data): Delete la_value_print_inner
2308 initializer.
2309 (cplus_language_data): Likewise.
2310 (asm_language_data): Likewise.
2311 (minimal_language_data): Likewise.
2312 * d-lang.c (d_language_data): Likewise.
2313 (d_language::value_print_inner): New member function.
2314 * f-lang.c (f_language_data): Delete la_value_print_inner
2315 initializer.
2316 (f_language::value_print_inner): New member function.
2317 * f-lang.h (f_value_print_innner): Rename to...
2318 (f_value_print_inner): ...this (note spelling of 'inner').
2319 * f-valprint.c (f_value_print_innner): Rename to...
2320 (f_value_print_inner): ...this (note spelling of 'inner').
2321 * go-lang.c (go_language_data): Delete la_value_print_inner
2322 initializer.
2323 (go_language::value_print_inner): New member function.
2324 * language.c (language_defn::value_print_inner): Define new member
2325 function.
2326 (unk_lang_value_print_inner): Delete.
2327 (unknown_language_data): Delete la_value_print_inner initializer.
2328 (unknown_language::value_print_inner): New member function.
2329 (auto_language_data): Delete la_value_print_inner initializer.
2330 (auto_language::value_print_inner): New member function.
2331 * language.h (language_data): Delete la_value_print_inner field.
2332 (language_defn::value_print_inner): Delcare new member function.
2333 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2334 initializer.
2335 (m2_language::value_print_inner): New member function.
2336 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2337 initializer.
2338 * opencl-lang.c (opencl_language_data): Likewise.
2339 * p-lang.c (pascal_language_data): Likewise.
2340 (pascal_language::value_print_inner): New member function.
2341 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2342 initializer.
2343 (rust_language::value_print_inner): New member function.
2344 * valprint.c (do_val_print): Update call to value_print_inner.
2345
a1d1fa3e
AB
23462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2347
2348 * ada-lang.c (ada_language_data): Delete la_value_print
2349 initializer.
2350 (ada_language::value_print): New member function.
2351 * c-lang.c (c_language_data): Delete la_value_print initializer.
2352 (cplus_language_data): Likewise.
2353 (asm_language_data): Likewise.
2354 (minimal_language_data): Likewise.
2355 * d-lang.c (d_language_data): Likewise.
2356 * f-lang.c (f_language_data): Likewise.
2357 * go-lang.c (go_language_data): Likewise.
2358 * language.c (unk_lang_value_print): Delete.
2359 (language_defn::value_print): Define new member function.
2360 (unknown_language_data): Delete la_value_print initializer.
2361 (unknown_language::value_print): New member function.
2362 (auto_language_data): Delete la_value_print initializer.
2363 (auto_language::value_print): New member function.
2364 * language.h (language_data): Delete la_value_print field.
2365 (language_defn::value_print): Declare new member function.
2366 (LA_VALUE_PRINT): Update call to value_print.
2367 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2368 * objc-lang.c (objc_language_data): Likewise.
2369 * opencl-lang.c (opencl_language_data): Likewise.
2370 * p-lang.c (pascal_language_data): Likewise.
2371 (pascal_language::value_print): New member function.
2372 * rust-lang.c (rust_language_data): Delete la_value_print
2373 initializer.
2374
f16a9f57
AB
23752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * ada-lang.c (ada_watch_location_expression): Rename to
2378 ada_language::watch_location_expression.
2379 (ada_language_data): Delete la_watch_location_expression
2380 initializer.
2381 (ada_language::watch_location_expression): New member function,
2382 implementation from ada_watch_location_expression.
2383 * breakpoint.c (watch_command_1): Update call to
2384 watch_location_expression.
2385 * c-lang.c (c_watch_location_expression): Rename to
2386 language_defn::watch_location_expression.
2387 (c_language_data): Delete la_watch_location_expression
2388 initializer.
2389 (cplus_language_data): Likewise.
2390 (asm_language_data): Likewise.
2391 (minimal_language_data): Likewise.
2392 * c-lang.h (c_watch_location_expression): Delete declaration.
2393 * d-lang.c (d_language_data): Delete la_watch_location_expression
2394 initializer.
2395 * f-lang.c (f_language_data): Likewise.
2396 * go-lang.c (go_language_data): Likewise.
2397 * language.c (language_defn::watch_location_expression): Member
2398 function implementation from c_watch_location_expression.
2399 (unknown_language_data): Delete la_watch_location_expression
2400 initializer.
2401 (auto_language_data): Likewise.
2402 * language.h (language_data): Delete la_watch_location_expression
2403 field.
2404 (language_defn::watch_location_expression): Declare new member
2405 function.
2406 * m2-lang.c (m2_language_data): Delete
2407 la_watch_location_expression initializer.
2408 * objc-lang.c (objc_language_data): Likewise.
2409 * opencl-lang.c (opencl_language_data): Likewise.
2410 * p-lang.c (pascal_language_data): Likewise.
2411 * rust-lang.c (rust_watch_location_expression): Rename to
2412 rust_language::watch_location_expression.
2413 (rust_language_data): Delete la_watch_location_expression
2414 initializer.
2415 (rust_language::watch_location_expression): New member function,
2416 implementation from rust_watch_location_expression.
2417
7e56227d
AB
24182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2419
2420 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2421 ada_language::collect_symbol_completion_matches.
2422 (ada_language_data): Delete la_collect_symbol_completion_matches
2423 initializer.
2424 (ada_language::collect_symbol_completion_matches): New member
2425 function, implementation from
2426 ada_collect_symbol_completion_matches.
2427 * c-lang.c (c_language_data): Delete
2428 la_collect_symbol_completion_matches initializer.
2429 (cplus_language_data): Likewise.
2430 (asm_language_data): Likewise.
2431 (minimal_language_data): Likewise.
2432 * d-lang.c (d_language_data): Likewise.
2433 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2434 f_language::collect_symbol_completion_matches.
2435 (f_language_data): Delete la_collect_symbol_completion_matches
2436 initializer.
2437 (f_language::collect_symbol_completion_matches) New member
2438 function, implementation from f_collect_symbol_completion_matches.
2439 * go-lang.c (go_language_data): Delete
2440 la_collect_symbol_completion_matches initializer.
2441 * language.c (unknown_language_data): Likewise.
2442 (auto_language_data): Likewise.
2443 * language.h (language_data): Delete
2444 la_collect_symbol_completion_matches field.
2445 (language_defn::collect_symbol_completion_matches): New member
2446 function.
2447 * m2-lang.c (m2_language_data): Delete
2448 la_collect_symbol_completion_matches initializer.
2449 * objc-lang.c (objc_language_data): Likewise.
2450 * opencl-lang.c (opencl_language_data): Likewise.
2451 * p-lang.c (pascal_language_data): Likewise.
2452 * rust-lang.c (rust_language_data): Likewise.
2453 * symtab.c (default_collect_symbol_completion_matches): Delete.
2454 (collect_symbol_completion_matches): Update call to
2455 collect_symbol_completion_matches.
2456 (collect_symbol_completion_matches_type): Likewise.
2457 * symtab.h (default_collect_symbol_completion_matches): Delete
2458 declaration.
2459
53fc67f8
AB
24602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2461
2462 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2463 (ada_language_data): Delete la_word_break_characters initializer.
2464 (ada_language::word_break_characters): New member function.
2465 * c-lang.c (c_language_data): Delete la_word_break_characters
2466 initializer.
2467 (cplus_language_data): Likewise.
2468 (asm_language_data): Likewise.
2469 (minimal_language_data): Likewise.
2470 * completer.c: Update global comment.
2471 (advance_to_expression_complete_word_point): Update call to
2472 word_break_characters.
2473 (complete_files_symbols): Likewise.
2474 (complete_line_internal_1): Likewise.
2475 (default_completer_handle_brkchars): Likewise.
2476 (skip_quoted_chars): Likewise.
2477 * d-lang.c (d_language_data): Delete la_word_break_characters
2478 initializer.
2479 * f-lang.c (f_word_break_characters): Delete.
2480 (f_language_data): Delete la_word_break_characters initializer.
2481 (f_language::word_break_characters): New member function.
2482 * go-lang.c (go_language_data): Delete la_word_break_characters
2483 initializer.
2484 * language.c (unknown_language_data): Likewise.
2485 (auto_language_data): Likewise.
2486 * language.h (default_word_break_characters): Move declaration to
2487 earlier in the file.
2488 (language_data): Delete la_word_break_characters field.
2489 (language_defn::word_break_characters): New member function.
2490 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2491 initializer.
2492 * objc-lang.c (objc_language_data): Likewise.
2493 * opencl-lang.c (opencl_language_data): Likewise.
2494 * p-lang.c (pascal_language_data): Likewise.
2495 * rust-lang.c (rust_language_data): Likewise.
2496
c9debfb9
AB
24972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2498
2499 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2500 (ada_language_data): Delete la_get_symbol_name_matcher
2501 initializer.
2502 (language_defn::get_symbol_name_matcher_inner): New member
2503 function.
2504 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2505 initializer.
2506 (cplus_language_data): Likewise.
2507 (cplus_language::get_symbol_name_matcher_inner): New member
2508 function.
2509 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2510 (minimal_language_data): Likewise.
2511 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2512 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2513 initializer.
2514 * dictionary.c (iter_match_first_hashed): Update call to
2515 get_symbol_name_matcher.
2516 (iter_match_next_hashed): Likewise.
2517 (iter_match_next_linear): Likewise.
2518 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2519 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2520 initializer.
2521 (f_language::get_symbol_name_matcher_inner): New member function.
2522 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2523 initializer.
2524 * language.c (default_symbol_name_matcher): Update header comment,
2525 make static.
2526 (language_defn::get_symbol_name_matcher): New definition.
2527 (language_defn::get_symbol_name_matcher_inner): Likewise.
2528 (get_symbol_name_matcher): Delete.
2529 (unknown_language_data): Delete la_get_symbol_name_matcher
2530 initializer.
2531 (auto_language_data): Likewise.
2532 * language.h (language_data): Delete la_get_symbol_name_matcher
2533 field.
2534 (language_defn::get_symbol_name_matcher): New member function.
2535 (language_defn::get_symbol_name_matcher_inner): Likewise.
2536 (default_symbol_name_matcher): Delete declaration.
2537 * linespec.c (find_methods): Update call to
2538 get_symbol_name_matcher.
2539 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2540 initializer.
2541 * minsyms.c (lookup_minimal_symbol): Update call to
2542 get_symbol_name_matcher.
2543 (iterate_over_minimal_symbols): Likewise.
2544 * objc-lang.c (objc_language_data): Delete
2545 la_get_symbol_name_matcher initializer.
2546 * opencl-lang.c (opencl_language_data): Likewise.
2547 * p-lang.c (pascal_language_data): Likewise.
2548 * psymtab.c (psymbol_name_matches): Update call to
2549 get_symbol_name_matcher.
2550 * rust-lang.c (rust_language_data): Delete
2551 la_get_symbol_name_matcher initializer.
2552 * symtab.c (symbol_matches_search_name): Update call to
2553 get_symbol_name_matcher.
2554 (compare_symbol_name): Likewise.
2555
9a49ad8c
AB
25562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2557
2558 * ada-lang.c (ada_language_data): Delete la_compute_program
2559 initializer.
2560 * c-lang.c (c_language_data): Likewise.
2561 (c_language::compute_program): New member function.
2562 (cplus_language_data): Delete la_compute_program initializer.
2563 (cplus_language::compute_program): New member function.
2564 (asm_language_data): Delete la_compute_program initializer.
2565 (minimal_language_data): Likewise.
2566 * c-lang.h (c_compute_program): Update comment.
2567 (cplus_compute_program): Likewise.
2568 * compile/compile-c-support.c (c_compute_program): Likewise.
2569 (cplus_compute_program): Likewise.
2570 * compile/compile.c (compile_to_object): Update call to
2571 la_compute_program.
2572 * d-lang.c (d_language_data): Delete la_compute_program
2573 initializer.
2574 * f-lang.c (f_language_data): Likewise.
2575 * go-lang.c (go_language_data): Likewise.
2576 * language.c (unknown_language_data): Likewise.
2577 (auto_language_data): Likewise.
2578 * language.h (language_data): Delete la_compute_program field.
2579 (language_defn::compute_program): New member function.
2580 * m2-lang.c (m2_language_data): Delete la_compute_program
2581 initializer.
2582 * objc-lang.c (objc_language_data): Likewise.
2583 * opencl-lang.c (opencl_language_data): Likewise.
2584 * p-lang.c (pascal_language_data): Likewise.
2585 * rust-lang.c (rust_language_data): Likewise.
2586
eff93b4d
AB
25872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2588
2589 * ada-lang.c (ada_language_data) Delete
2590 la_class_name_from_physname initializer.
2591 * c-lang.c (c_language_data): Likewise.
2592 (cplus_language_data): Likewise.
2593 (cplus_language::class_name_from_physname): New member function.
2594 (asm_language_data): Delete la_class_name_from_physname
2595 initializer.
2596 (minimal_language_data): Likewise.
2597 * d-lang.c (d_language_data): Likewise.
2598 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2599 method on language_defn class.
2600 (guess_full_die_structure_name): Likewise.
2601 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2602 initializer.
2603 * go-lang.c (go_language_data): Likewise.
2604 * language.c (language_class_name_from_physname): Delete.
2605 (unk_lang_class_name): Delete.
2606 (unknown_language_data): Delete la_class_name_from_physname
2607 initializer.
2608 (auto_language_data): Likewise.
2609 * language.h (language_data): Delete la_class_name_from_physname
2610 field.
2611 (language_defn::class_name_from_physname): New function.
2612 (language_class_name_from_physname): Delete declaration.
2613 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2614 initializer.
2615 * objc-lang.c (objc_language_data): Likewise.
2616 * opencl-lang.c (opencl_language_data): Likewise.
2617 * p-lang.c (pascal_language_data): Likewise.
2618 * rust-lang.c (rust_language_data): Likewise.
2619
de543742
TT
26202020-06-16 Tom Tromey <tom@tromey.com>
2621
2622 * tui/tui-data.h (STATUS_NAME): New macro.
2623 * tui/tui-layout.c (tui_remove_some_windows)
2624 (initialize_known_windows, tui_register_window)
2625 (tui_layout_split::remove_windows, initialize_layouts)
2626 (tui_new_layout_command): Don't use hard-coded window names.
2627
a350efd4
TT
26282020-06-16 Tom Tromey <tom@tromey.com>
2629
2630 PR tui/25348:
2631 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2632 tui_initialize_readline. Only run once. Call rl_initialize.
2633 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2634 tui_initialize_readline.
2635 * tui/tui-io.c (tui_setup_io): Call
2636 tui_ensure_readline_initialized.
2637 * tui/tui-interp.c (tui_interp::init): Update.
2638
39ec0490
TT
26392020-06-16 Tom Tromey <tom@tromey.com>
2640
2641 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2642 Also preserve the status window.
2643
d2d1ea20
TT
26442020-06-16 Tom Tromey <tom@tromey.com>
2645
2646 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2647 where m_window==nullptr.
2648
66920317
TT
26492020-06-15 Tom Tromey <tromey@adacore.com>
2650
2651 * windows-nat.c (windows_nat::handle_output_debug_string):
2652 Update.
2653 (windows_nat::handle_ms_vc_exception): Update.
2654 * target.h (target_read_string): Change API.
2655 * target.c (target_read_string): Change API.
2656 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2657 Update.
2658 * solib-frv.c (frv_current_sos): Update.
2659 * solib-dsbt.c (dsbt_current_sos): Update.
2660 * solib-darwin.c (darwin_current_sos): Update.
2661 * linux-thread-db.c (inferior_has_bug): Update.
2662 * expprint.c (print_subexp_standard): Update.
2663 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2664 (ada_exception_message_1): Update.
2665
a5d871dd
TT
26662020-06-15 Tom Tromey <tromey@adacore.com>
2667
2668 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2669
670e35fa
TT
26702020-06-15 Tom Tromey <tromey@adacore.com>
2671
2672 * valprint.c (read_string): Update comment.
2673 * target.c (MIN): Remove.
2674 (target_read_string): Rewrite.
2675
f5272a3b
TT
26762020-06-15 Tom Tromey <tromey@adacore.com>
2677
2678 * corefile.c (read_memory_string): Remove.
2679 * ada-valprint.c (ada_value_print_ptr): Update.
2680 * ada-lang.h (ada_tag_name): Change return type.
2681 * ada-lang.c (type_from_tag): Update.
2682 (ada_tag_name_from_tsd): Change return type. Use
2683 target_read_string.
2684 (ada_tag_name): Likewise.
2685 * gdbcore.h (read_memory_string): Don't declare.
2686
2c074f49
HD
26872020-06-14 Hannes Domani <ssbssa@yahoo.de>
2688
2689 * symtab.c (rbreak_command): Ignore Windows drive colon.
2690
6a17d503
SM
26912020-06-12 Simon Marchi <simon.marchi@efficios.com>
2692
2693 * NEWS: Mention removed GDBserver host support.
2694
453c733f
NC
26952020-06-12 Nelson Chu <nelson.chu@sifive.com>
2696
2697 * features/riscv/rebuild-csr-xml.sh: Updated.
2698
2b4e6a3f
TT
26992020-06-11 Tom Tromey <tom@tromey.com>
2700
2701 PR gdb/18318:
2702 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2703
4412332f
JG
27042020-06-09 Jonny Grant <jg@jguk.org>
27052020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2706
2707 * main.c (captured_main_1): Don't print new line after help.
2708 (print_gdb_help): add mailing list and IRC channel information
2709 to --help. Add new lines between items in the footer. Remove
2710 quotes around bug url.
2711
2f33032a
KS
27122020-06-11 Keith Seitz <keiths@redhat.com>
2713
2714 PR gdb/21356
2715 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2716 Resolve typedefs for type length calculations.
2717
7ab96794
TV
27182020-06-10 Tom de Vries <tdevries@suse.de>
2719
2720 PR ada/24713
2721 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2722 (write_psymbols): Enable .gdb_index for ada.
2723 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2724 ada.
2725
e5f3ece2
TV
27262020-06-10 Tom de Vries <tdevries@suse.de>
2727
2728 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2729 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2730 namei" instead of "const char *name" argument.
2731 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2732 dw2_symtab_iter_init.
2733
940da03e
SM
27342020-06-08 Simon Marchi <simon.marchi@efficios.com>
2735
2736 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2737 to use type::field and field::type instead.
2738
b6cdac4b
SM
27392020-06-08 Simon Marchi <simon.marchi@efficios.com>
2740
2741 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2742 to use field::type instead.
2743
5d14b6e5
SM
27442020-06-08 Simon Marchi <simon.marchi@efficios.com>
2745
2746 * gdbtypes.h (struct field) <type, set_type>: New methods.
2747 Rename `type` field to...
2748 <m_type>: ... this. Change references throughout to use type or
2749 set_type methods.
2750 (FIELD_TYPE): Use field::type. Change call sites that modify
2751 the field's type to use field::set_type instead.
2752
3d967001
SM
27532020-06-08 Simon Marchi <simon.marchi@efficios.com>
2754
2755 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2756 to use type::index_type instead.
2757
262abc0d
SM
27582020-06-08 Simon Marchi <simon.marchi@efficios.com>
2759
2760 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2761 methods.
2762 (TYPE_INDEX_TYPE): Use type::index_type.
2763 * gdbtypes.c (create_array_type_with_stride): Likewise.
2764
82836c92
TT
27652020-06-07 Tom Tromey <tom@tromey.com>
2766
2767 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2768 parameter.
2769 (generic_value_print): Update.
2770
940dace9
AB
27712020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2772
2773 Revert commit 982a38f60b0.
2774 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2775
982a38f6
AB
27762020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2777
2778 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2779 avoid use after free.
2780
82f06518
TV
27812020-06-05 Tom de Vries <tdevries@suse.de>
2782
2783 * NEWS: Fix typos.
2784
f8c41851
SM
27852020-06-04 Simon Marchi <simon.marchi@efficios.com>
2786
2787 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2788 the per_bfd object.
2789 (dwarf2_read_debug_names): Likewise.
2790 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2791 object when re-using a per_bfd object with an index.
2792
f9b5d5ea
TV
27932020-06-03 Tom de Vries <tdevries@suse.de>
2794
2795 PR symtab/26046
2796 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2797 children for C++.
2798 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2799 DW_TAG_subprogram.
2800
f6eee2d0
AB
28012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2802
2803 * ada-lang.c (ada_language_data): Delete skip_trampoline
2804 initializer.
2805 * c-lang.c (c_language_data): Likewise.
2806 (cplus_language_data): Likewise.
2807 (cplus_language::skip_trampoline): New member function.
2808 (asm_language_data): Delete skip_trampoline initializer.
2809 (minimal_language_data): Likewise.
2810 * d-lang.c (d_language_data): Likewise.
2811 * f-lang.c (f_language_data): Likewise.
2812 * go-lang.c (go_language_data): Likewise.
2813 * language.c (unk_lang_trampoline): Delete function.
2814 (skip_language_trampoline): Update.
2815 (unknown_language_data): Delete skip_trampoline initializer.
2816 (auto_language_data): Likewise.
2817 * language.h (language_data): Delete skip_trampoline field.
2818 (language_defn::skip_trampoline): New function.
2819 * m2-lang.c (m2_language_data): Delete skip_trampoline
2820 initializer.
2821 * objc-lang.c (objc_skip_trampoline): Delete function, move
2822 implementation to objc_language::skip_trampoline.
2823 (objc_language_data): Delete skip_trampoline initializer.
2824 (objc_language::skip_trampoline): New member function with
2825 implementation from objc_skip_trampoline.
2826 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2827 initializer.
2828 * p-lang.c (pascal_language_data): Likewise.
2829 * rust-lang.c (rust_language_data): Likewise.
2830
0a50df5d
AB
28312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2832
2833 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2834 (ada_language::demangle): New member function.
2835 * c-lang.c (c_language_data): Delete la_demangle initializer.
2836 (cplus_language_data): Delete la_demangle initializer.
2837 (cplus_language::demangle): New member function.
2838 (asm_language_data): Delete la_demangle initializer.
2839 (minimal_language_data): Delete la_demangle initializer.
2840 * d-lang.c (d_language_data): Delete la_demangle initializer.
2841 (d_language::demangle): New member function.
2842 * f-lang.c (f_language_data): Delete la_demangle initializer.
2843 (f_language::demangle): New member function.
2844 * go-lang.c (go_language_data): Delete la_demangle initializer.
2845 (go_language::demangle): New member function.
2846 * language.c (language_demangle): Update.
2847 (unk_lang_demangle): Delete.
2848 (unknown_language_data): Delete la_demangle initializer.
2849 (unknown_language::demangle): New member function.
2850 (auto_language_data): Delete la_demangle initializer.
2851 (auto_language::demangle): New member function.
2852 * language.h (language_data): Delete la_demangle field.
2853 (language_defn::demangle): New function.
2854 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2855 * objc-lang.c (objc_language_data): Delete la_demangle
2856 initializer.
2857 (objc_language::demangle): New member function.
2858 * opencl-lang.c (opencl_language_data): Delete la_demangle
2859 initializer.
2860 * p-lang.c (pascal_language_data): Likewise.
2861 * rust-lang.c (rust_language_data): Likewise.
2862 (rust_language::demangle): New member function.
2863
fbfb0a46
AB
28642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2865
2866 * ada-lang.c (ada_language_data): Delete la_print_type
2867 initializer.
2868 (ada_language::print_type): New member function.
2869 * c-lang.c (c_language_data): Delete la_print_type initializer.
2870 (c_language::print_type): New member function.
2871 (cplus_language_data): Delete la_print_type initializer.
2872 (cplus_language::print_type): New member function.
2873 (asm_language_data): Delete la_print_type initializer.
2874 (asm_language::print_type): New member function.
2875 (minimal_language_data): Delete la_print_type initializer.
2876 (minimal_language::print_type): New member function.
2877 * d-lang.c (d_language_data): Delete la_print_type initializer.
2878 (d_language::print_type): New member function.
2879 * f-lang.c (f_language_data): Delete la_print_type initializer.
2880 (f_language::print_type): New member function.
2881 * go-lang.c (go_language_data): Delete la_print_type initializer.
2882 (go_language::print_type): New member function.
2883 * language.c (unk_lang_print_type): Delete.
2884 (unknown_language_data): Delete la_print_type initializer.
2885 (unknown_language::print_type): New member function.
2886 (auto_language_data): Delete la_print_type initializer.
2887 (auto_language::print_type): New member function.
2888 * language.h (language_data): Delete la_print_type field.
2889 (language_defn::print_type): New function.
2890 (LA_PRINT_TYPE): Update.
2891 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2892 (m2_language::print_type): New member function.
2893 * objc-lang.c (objc_language_data): Delete la_print_type
2894 initializer.
2895 (objc_language::print_type): New member function.
2896 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2897 to opencl_language::print_type.
2898 (opencl_language_data): Delete la_print_type initializer.
2899 (opencl_language::print_type): New member function, implementation
2900 from opencl_print_type.
2901 * p-lang.c (pascal_language_data): Delete la_print_type
2902 initializer.
2903 (pascal_language::print_type): New member function.
2904 * rust-lang.c (rust_print_type): Delete, implementation moved to
2905 rust_language::print_type.
2906 (rust_language_data): Delete la_print_type initializer.
2907 (rust_language::print_type): New member function, implementation
2908 from rust_print_type.
2909
6f827019
AB
29102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2911
2912 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2913 implementation moves to...
2914 (ada_language::sniff_from_mangled_name): ...here. Update return
2915 type.
2916 (ada_language_data): Delete la_sniff_from_mangled_name
2917 initializer.
2918 * c-lang.c (c_language_data): Likewise.
2919 (cplus_language_data): Likewise.
2920 (cplus_language::sniff_from_mangled_name): New member function,
2921 implementation taken from gdb_sniff_from_mangled_name.
2922 (asm_language_data): Delete la_sniff_from_mangled_name
2923 initializer.
2924 (minimal_language_data): Likewise.
2925 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2926 implementation moves to cplus_language::sniff_from_mangled_name.
2927 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2928 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2929 moves to...
2930 (d_language::sniff_from_mangled_name): ...here.
2931 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2932 * f-lang.c (f_language_data): Likewise.
2933 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2934 moves to...
2935 (go_language::sniff_from_mangled_name): ...here.
2936 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2937 * language.c (language_sniff_from_mangled_name): Delete.
2938 (unknown_language_data): Delete la_sniff_from_mangled_name
2939 initializer.
2940 (auto_language_data): Likewise.
2941 * language.h (language_data): Delete la_sniff_from_mangled_name
2942 field.
2943 (language_defn::sniff_from_mangled_name): New function.
2944 (language_sniff_from_mangled_name): Delete declaration.
2945 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2946 field.
2947 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2948 implementation moves to...
2949 (objc_language::sniff_from_mangled_name): ...here.
2950 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2951 * opencl-lang.c (opencl_language_data): Likewise.
2952 * p-lang.c (pascal_language_data): Likewise.
2953 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2954 implementation moves to...
2955 (rust_language::sniff_from_mangled_name): ...here.
2956 (rust_language_data): Delete la_sniff_from_mangled_name
2957 initializer.
2958 * symtab.c (symbol_find_demangled_name): Call
2959 sniff_from_mangled_name member function.
2960
fb8006fd
AB
29612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2962
2963 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2964 initializer.
2965 * c-lang.c (c_language_data): Likewise.
2966 (cplus_language_data): Likewise.
2967 (cplus_language::search_name_hash): New member function.
2968 (asm_language_data): Delete la_search_name_hash initializer.
2969 (minimal_language_data): Likewise.
2970 * d-lang.c (d_language_data): Likewise.
2971 * dictionary.c (default_search_name_hash): Rename to...
2972 (language_defn::search_name_hash): ...this.
2973 * f-lang.c (f_language_data): Likewise.
2974 (f_language::search_name_hash): New member function.
2975 * go-lang.c (go_language_data): Delete la_search_name_hash
2976 initializer.
2977 * language.c (unknown_language_data): Likewise.
2978 (auto_language_data): Likewise.
2979 * language.h (struct language_data): Delete la_search_name_hash
2980 field.
2981 (language_defn::search_name_hash): Declare new member function.
2982 (default_search_name_hash): Delete declaration.
2983 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2984 initializer.
2985 * objc-lang.c (objc_language_data): Likewise.
2986 * opencl-lang.c (opencl_language_data): Likewise.
2987 * p-lang.c (pascal_language_data): Likewise.
2988 * rust-lang.c (rust_language_data): Likewise.
2989 * symtab.c (search_name_hash): Update call.
2990
8e25bafe
AB
29912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2992
2993 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
2994 initializer.
2995 * c-lang.c (class compile_instance): Declare.
2996 (c_language_data): Delete la_get_compile_instance initializer.
2997 (c_language::get_compile_instance): New member function.
2998 (cplus_language_data): Delete la_get_compile_instance initializer.
2999 (cplus_language::get_compile_instance): New member function.
3000 (asm_language_data): Delete la_get_compile_instance initializer.
3001 (minimal_language_data): Likewise.
3002 * c-lang.h (c_get_compile_context): Update comment.
3003 (cplus_get_compile_context): Update comment.
3004 * compile/compile.c (compile_to_object): Update calls, don't rely
3005 on function pointer being NULL.
3006 * d-lang.c (d_language_data): Delete la_get_compile_instance
3007 initializer.
3008 * f-lang.c (f_language_data): Likewise.
3009 * go-lang.c (go_language_data): Likewise.
3010 * language.c (unknown_language_data): Likewise.
3011 (auto_language_data): Likewise.
3012 * language.h (language_data): Delete la_get_compile_instance field.
3013 (language_defn::get_compile_instance): New member function.
3014 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3015 initializer.
3016 * objc-lang.c (objc_language_data): Likewise.
3017 * opencl-lang.c (opencl_language_data): Likewise.
3018 * p-lang.c (pascal_language_data): Likewise.
3019 * rust-lang.c (rust_language_data): Likewise.
3020
4009ee92
AB
30212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3022
3023 * ada-lang.c (ada_add_all_symbols): Update comment.
3024 (ada_iterate_over_symbols): Delete, move implementation to...
3025 (ada_language::iterate_over_symbols): ...here, a new member
3026 function, rewrite to use range based for loop.
3027 (ada_language_data): Delete la_iterate_over_symbols initializer.
3028 * c-lang.c (c_language_data): Likewise.
3029 (cplus_language_data): Likewise.
3030 (asm_language_data): Likewise.
3031 (minimal_language_data): Likewise.
3032 * d-lang.c (d_language_data): Likewise.
3033 * f-lang.c (f_language_data): Likewise.
3034 * go-lang.c (go_language_data): Likewise.
3035 * language.c (unknown_language_data): Likewise.
3036 (auto_language_data): Likewise.
3037 * language.h (language_data): Delete la_iterate_over_symbols field.
3038 (language_defn::iterate_over_symbols): New member function.
3039 (LA_ITERATE_OVER_SYMBOLS): Update.
3040 * linespec.c (iterate_over_all_matching_symtabs): Update.
3041 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3042 initializer.
3043 * objc-lang.c (objc_language_data): Likewise.
3044 * opencl-lang.c (opencl_language_data): Likewise.
3045 * p-lang.c (pascal_language_data): Likewise.
3046 * rust-lang.c (rust_language_data): Likewise.
3047
54f4ca46
AB
30482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3049
3050 * ada-lang.c (ada_language_data): Delete
3051 la_lookup_transparent_type initializer.
3052 * c-lang.c (c_language_data): Likewise.
3053 (cplus_language_data): Likewise.
3054 (cplus_language::lookup_transparent_type): New member function.
3055 (asm_language_data): Delete la_lookup_transparent_type
3056 initializer.
3057 (minimal_language_data): Likewise.
3058 * d-lang.c (d_language_data): Likewise.
3059 * f-lang.c (f_language_data): Likewise.
3060 * go-lang.c (go_language_data): Likewise.
3061 * language.c (unknown_language_data): Likewise.
3062 (auto_language_data): Likewise.
3063 * language.h (struct language_data): Delete
3064 la_lookup_transparent_type field.
3065 (language_defn::lookup_transparent_type): New member function.
3066 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3067 initializer.
3068 * objc-lang.c (objc_language_data): Likewise.
3069 * opencl-lang.c (opencl_language_data): Likewise.
3070 * p-lang.c (pascal_language_data): Likewise.
3071 * rust-lang.c (rust_language_data): Likewise.
3072 * symtab.c (symbol_matches_domain): Update call.
3073
1fb314aa
AB
30742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3075
3076 * ada-lang.c (ada_language_arch_info): Delete function, move
3077 implementation to...
3078 (ada_language::language_arch_info): ...here, a new member
3079 function.
3080 (ada_language_data): Delete la_language_arch_info.
3081 * c-lang.c (c_language_data): Likewise.
3082 (c_language::language_arch_info): New member function.
3083 (cplus_language_arch_info): Delete function, move
3084 implementation to...
3085 (cplus_language::language_arch_info): ...here, a new member
3086 function.
3087 (cplus_language_data): Delete la_language_arch_info.
3088 (asm_language_data): Likewise.
3089 (asm_language::language_arch_info): New member function.
3090 (minimal_language_data): Delete la_language_arch_info.
3091 (minimal_language::language_arch_info): New member function.
3092 * d-lang.c (d_language_arch_info): Delete function, move
3093 implementation to...
3094 (d_language::language_arch_info): ...here, a new member
3095 function.
3096 (d_language_data): Delete la_language_arch_info.
3097 * f-lang.c (f_language_arch_info): Delete function, move
3098 implementation to...
3099 (f_language::language_arch_info): ...here, a new member
3100 function.
3101 (f_language_data): Delete la_language_arch_info.
3102 * go-lang.c (go_language_arch_info): Delete function, move
3103 implementation to...
3104 (go_language::language_arch_info): ...here, a new member
3105 function.
3106 (go_language_data): Delete la_language_arch_info.
3107 * language.c (unknown_language_data): Likewise.
3108 (unknown_language::language_arch_info): New member function.
3109 (auto_language_data): Delete la_language_arch_info.
3110 (auto_language::language_arch_info): New member function.
3111 (language_gdbarch_post_init): Update call to
3112 la_language_arch_info.
3113 * language.h (language_data): Delete la_language_arch_info
3114 function pointer.
3115 (language_defn::language_arch_info): New function.
3116 * m2-lang.c (m2_language_arch_info): Delete function, move
3117 implementation to...
3118 (m2_language::language_arch_info): ...here, a new member
3119 function.
3120 (m2_language_data): Delete la_language_arch_info.
3121 * objc-lang.c (objc_language_arch_info): Delete function, move
3122 implementation to...
3123 (objc_language::language_arch_info): ...here, a new member
3124 function.
3125 (objc_language_data): Delete la_language_arch_info.
3126 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3127 implementation to...
3128 (opencl_language::language_arch_info): ...here, a new member
3129 function.
3130 (opencl_language_data): Delete la_language_arch_info.
3131 * p-lang.c (pascal_language_arch_info): Delete function, move
3132 implementation to...
3133 (pascal_language::language_arch_info): ...here, a new member
3134 function.
3135 (pascal_language_data): Delete la_language_arch_info.
3136 * rust-lang.c (rust_language_arch_info): Delete function, move
3137 implementation to...
3138 (rust_language::language_arch_info): ...here, a new member
3139 function.
3140 (rust_language_data): Delete la_language_arch_info.
3141
48448202
AB
31422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3143
3144 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3145 initializer.
3146 * c-lang.c (c_language_data): Likewise.
3147 (cplus_language_data): Likewise.
3148 (cplus_language::pass_by_reference_info): New method.
3149 (asm_language_data): Delete la_pass_by_reference initializer.
3150 (minimal_language_data): Likewise.
3151 * cp-abi.c (cp_pass_by_reference): Remove use of
3152 default_pass_by_reference.
3153 * d-lang.c (d_language_data): Likewise.
3154 * f-lang.c (f_language_data): Likewise.
3155 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3156 default_pass_by_reference.
3157 * go-lang.c (go_language_data): Likewise.
3158 * language.c (language_pass_by_reference): Update.
3159 (default_pass_by_reference): Delete.
3160 (unknown_language_data): Delete la_pass_by_reference
3161 initializer.
3162 (auto_language_data): Likewise.
3163 * language.h (struct language_data): Delete la_pass_by_reference
3164 field.
3165 (language_defn::pass_by_reference_info): New member function.
3166 (default_pass_by_reference): Delete declaration.
3167 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3168 initializer.
3169 * objc-lang.c (objc_language_data): Likewise.
3170 * opencl-lang.c (opencl_language_data): Likewise.
3171 * p-lang.c (pascal_language_data): Likewise.
3172 * rust-lang.c (rust_language_data): Likewise.
3173
15e5fd35
AB
31742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3175
3176 * ada-lang.c (ada_read_var_value): Delete function, move
3177 implementation to...
3178 (ada_language::read_var_value): ...here.
3179 (ada_language_data): Delete la_read_var_value initializer.
3180 * c-lang.c (c_language_data): Likewise.
3181 (cplus_language_data): Likewise.
3182 (minimal_language_data): Likewise.
3183 * d-lang.c (d_language_data): Likewise.
3184 * f-lang.c (f_language_data): Likewise.
3185 * findvar.c (default_read_var_value): Rename to...
3186 (language_defn::read_var_value): ...this.
3187 * findvar.c (read_var_value): Update header comment, and change to
3188 call member function instead of function pointer.
3189 * go-lang.c (go_language_data): Likewise.
3190 * language.c (unknown_language_data): Delete la_read_var_value
3191 initializer.
3192 (auto_language_data): Likewise.
3193 * language.h (struct language_data): Delete la_read_var_value
3194 field.
3195 (language_defn::read_var_value): New member function.
3196 (default_read_var_value): Delete declaration.
3197 * m2-lang.c (m2_language_data): Delete la_read_var_value
3198 initializer.
3199 * objc-lang.c (objc_language_data): Likewise.
3200 * opencl-lang.c (opencl_language_data): Likewise.
3201 * p-lang.c (pascal_language_data): Likewise.
3202 * rust-lang.c (rust_language_data): Likewise.
3203 * value.h (default_read_var_value): Delete declaration.
3204
5bd40f2a
AB
32052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3206
3207 * ada-lang.c (ada_print_array_index): Delete function, move
3208 implementation to...
3209 (ada_language::print_array_index): ...here.
3210 (ada_language_data): Delete la_print_array_index initializer.
3211 * c-lang.c (c_language_data): Likewise.
3212 (cplus_language_data): Likewise.
3213 (minimal_language_data): Likewise.
3214 * d-lang.c (d_language_data): Likewise.
3215 * f-lang.c (f_language_data): Likewise.
3216 * go-lang.c (go_language_data): Likewise.
3217 * language.c (default_print_array_index): Delete function, move
3218 implementation to...
3219 (language_defn::print_array_index): ...here.
3220 (unknown_language_data): Delete la_print_array_index initializer.
3221 (auto_language_data): Likewise.
3222 * language.h (struct language_data): Delete la_print_array_index
3223 field.
3224 (language_defn::print_array_index): New member function.
3225 (LA_PRINT_ARRAY_INDEX): Update.
3226 (default_print_array_index): Delete declaration.
3227 * m2-lang.c (m2_language_data): Delete la_print_array_index
3228 initializer.
3229 * objc-lang.c (objc_language_data): Likewise.
3230 * opencl-lang.c (opencl_language_data): Likewise.
3231 * p-lang.c (pascal_language_data): Likewise.
3232 * rust-lang.c (rust_language_data): Likewise.
3233
0874fd07
AB
32342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3235
3236 * gdb/ada-lang.c (ada_language_defn): Convert to...
3237 (ada_language_data): ...this.
3238 (class ada_language): New class.
3239 (ada_language_defn): New static global.
3240 * gdb/c-lang.c (c_language_defn): Convert to...
3241 (c_language_data): ...this.
3242 (class c_language): New class.
3243 (c_language_defn): New static global.
3244 (cplus_language_defn): Convert to...
3245 (cplus_language_data): ...this.
3246 (class cplus_language): New class.
3247 (cplus_language_defn): New static global.
3248 (asm_language_defn): Convert to...
3249 (asm_language_data): ...this.
3250 (class asm_language): New class.
3251 (asm_language_defn): New static global.
3252 (minimal_language_defn): Convert to...
3253 (minimal_language_data): ...this.
3254 (class minimal_language): New class.
3255 (minimal_language_defn): New static global.
3256 * gdb/d-lang.c (d_language_defn): Convert to...
3257 (d_language_data): ...this.
3258 (class d_language): New class.
3259 (d_language_defn): New static global.
3260 * gdb/f-lang.c (f_language_defn): Convert to...
3261 (f_language_data): ...this.
3262 (class f_language): New class.
3263 (f_language_defn): New static global.
3264 * gdb/go-lang.c (go_language_defn): Convert to...
3265 (go_language_data): ...this.
3266 (class go_language): New class.
3267 (go_language_defn): New static global.
3268 * gdb/language.c (unknown_language_defn): Remove declaration.
3269 (current_language): Initialize to nullptr, real initialization is
3270 moved to _initialize_language.
3271 (languages): Delete global.
3272 (language_defn::languages): Define.
3273 (set_language_command): Use language_defn::languages.
3274 (set_language): Likewise.
3275 (range_error): Likewise.
3276 (language_enum): Likewise.
3277 (language_def): Likewise.
3278 (add_set_language_command): Use language_def::languages for the
3279 language list, and language_def to lookup language pointers.
3280 (skip_language_trampoline): Use language_defn::languages.
3281 (unknown_language_defn): Convert to...
3282 (unknown_language_data): ...this.
3283 (class unknown_language): New class.
3284 (unknown_language_defn): New static global.
3285 (auto_language_defn): Convert to...
3286 (auto_language_data): ...this.
3287 (class auto_language): New class.
3288 (auto_language_defn): New static global.
3289 (language_gdbarch_post_init): Use language_defn::languages.
3290 (_initialize_language): Initialize current_language.
3291 * gdb/language.h (struct language_defn): Rename to...
3292 (struct language_data): ...this.
3293 (struct language_defn): New.
3294 (auto_language_defn): Delete.
3295 (unknown_language_defn): Delete.
3296 (minimal_language_defn): Delete.
3297 (ada_language_defn): Delete.
3298 (asm_language_defn): Delete.
3299 (c_language_defn): Delete.
3300 (cplus_language_defn): Delete.
3301 (d_language_defn): Delete.
3302 (f_language_defn): Delete.
3303 (go_language_defn): Delete.
3304 (m2_language_defn): Delete.
3305 (objc_language_defn): Delete.
3306 (opencl_language_defn): Delete.
3307 (pascal_language_defn): Delete.
3308 (rust_language_defn): Delete.
3309 * gdb/m2-lang.c (m2_language_defn): Convert to...
3310 (m2_language_data): ...this.
3311 (class m2_language): New class.
3312 (m2_language_defn): New static global.
3313 * gdb/objc-lang.c (objc_language_defn): Convert to...
3314 (objc_language_data): ...this.
3315 (class objc_language): New class.
3316 (objc_language_defn): New static global.
3317 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3318 (opencl_language_data): ...this.
3319 (class opencl_language): New class.
3320 (opencl_language_defn): New static global.
3321 * gdb/p-lang.c (pascal_language_defn): Convert to...
3322 (pascal_language_data): ...this.
3323 (class pascal_language): New class.
3324 (pascal_language_defn): New static global.
3325 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3326 language pointer, update comment format.
3327 * gdb/rust-lang.c (rust_language_defn): Convert to...
3328 (rust_language_data): ...this.
3329 (class rust_language): New class.
3330 (rust_language_defn): New static global.
3331
1313c56e
AB
33322020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3333
3334 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3335 member variable.
3336 <m_stmt_at_address>: New member variable.
3337 (lnp_state_machine::record_line): Don't record some lines, update
3338 tracking of is_stmt at the same address.
3339 (lnp_state_machine::lnp_state_machine): Initialise new member
3340 variables.
3341
b7ed9f3d
ST
33422020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3343
3344 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3345 "-include gnu-nat-mig.h".
3346 * gnu-nat-mig.h: New file.
3347 * gnu-nat.c: Include "gnu-nat-mig.h".
3348 (exc_server, msg_reply_server, notify_server,
3349 process_reply_server): Remove declarations.
3350
14a8ad62
ST
33512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3352
3353 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3354 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3355 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3356 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3357 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3358 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3359 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3360 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3361 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3362 to gnu_nat_target class.
3363 * gnu-nat.c: Likewise.
3364 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3365 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3366 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3367 object.
3368 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3369 instead of `gnu_target'.
3370
0af5e106
ST
33712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3372
3373 * i386-gnu-tdep.c: Include "gdbcore.h"
3374 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3375 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3376 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3377 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3378 i386_gnu_sigcontext_addr): New functions
3379 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3380 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3381 tdep.
3382
078f2fc9
ST
33832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3384
3385 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3386 before fork_inferior call. Avoid calling it if target_is_pushed returns
3387 true.
3388
53dff92c
ST
33892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3390
3391 * gnu-nat.h (gnu_target): New variable declaration.
3392 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3393 gnu_target.
3394 * gnu-nat.c (gnu_target): New variable.
3395 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3396 add_thread_silent, and add_thread calls.
3397 (gnu_nat_target::create_inferior): Pass gnu_target to
3398 add_thread_silent, thread_change_ptid call.
3399 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3400 call.
3401
5a8b8627
ST
34022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3403
3404 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3405 (gnu_nat_target::find_memory_regions): Remove unused
3406 `old_address' variable.
3407
366f550a
ST
34082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3409
3410 * gnu-nat.c: Include "gdbarch.h".
3411
f14871bf
ST
34122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3413
3414 * reply_mig_hack.awk (Error return): Cast function through
3415 void *, to bypass compiler function call check.
3416
c6887cfb
ST
34172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3418
3419 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3420 $(srcdir)/reply_mig_hack.awk.
3421
6930bffe
ST
34222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3423
3424 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3425
112c22ed
JG
34262020-05-30 Jonny Grant <jg@jguk.org>
3427
3428 * configure.ac (ACX_BUGURL): change bug URL to https.
3429
f68f85b5
PA
34302020-05-30 Pedro Alves <palves@redhat.com>
3431
3432 * cp-support.c (replace_typedefs_template): New.
3433 (replace_typedefs_qualified_name): Handle
3434 DEMANGLE_COMPONENT_TEMPLATE.
3435
976ca316
SM
34362020-05-29 Simon Marchi <simon.marchi@efficios.com>
3437
3438 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3439 dwarf2/index-cache.h, dwarf2/index-write.c,
3440 dwarf2/index-write.h, dwarf2/line-header.c,
3441 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3442 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3443 variables and fields from `dwarf2_per_objfile` to just
3444 `per_objfile` throughout.
3445
989ade05
SM
34462020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3447
3448 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3449 <push_dwarf_reg_entry_value>: Add comment.
3450
c47bae85
KB
34512020-05-28 Kevin Buettner <kevinb@redhat.com>
3452 Keith Seitz <keiths@redhat.com>
3453
3454 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3455 instead of PyEval_ReleaseLock.
3456 (class gdbpy_gil): Move to earlier in file.
3457 (finalize_python): Set gdb_python_initialized.
3458 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3459 when not initialized.
3460
44486dcf
SM
34612020-05-28 Simon Marchi <simon.marchi@efficios.com>
3462
3463 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3464 <push_dwarf_reg_entry_value>: Remove assert. Override
3465 per_objfile with caller_per_objfile.
3466
f030440d
TV
34672020-05-28 Tom de Vries <tdevries@suse.de>
3468
3469 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3470 PR gold/15646 workaround to symbol kind "type".
3471
f0fbb768
TT
34722020-05-27 Tom Tromey <tromey@adacore.com>
3473
3474 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3475
af0b2a3e
TT
34762020-05-27 Tom Tromey <tromey@adacore.com>
3477
3478 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3479 Use htab_find_with_hash.
3480 <add_abbrev>: Remove "abbrev_number" parameter.
3481 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3482 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3483 (hash_abbrev): Add comment.
3484 (abbrev_table::lookup_abbrev): Move to header file.
3485 (abbrev_table::read): Update.
3486
7d00ffec
TT
34872020-05-27 Tom Tromey <tromey@adacore.com>
3488
3489 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3490 method.
3491 <canonical_name>: New member.
3492 <raw_name>: Rename from "name".
3493 (partial_die_info): Initialize canonical_name.
3494 (scan_partial_symbols): Check raw_name.
3495 (partial_die_parent_scope, partial_die_full_name)
3496 (add_partial_symbol, add_partial_subprogram)
3497 (add_partial_enumeration, load_partial_dies): Use "name" method.
3498 (partial_die_info::name): New method.
3499 (partial_die_info::read, guess_partial_die_structure_name)
3500 (partial_die_info::fixup): Update.
3501
697bba18
TT
35022020-05-27 Tom Tromey <tromey@adacore.com>
3503
3504 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3505 <get_ref_die_offset>: Inline.
3506 <get_ref_die_offset_complaint>: New method.
3507 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3508 (attribute::get_ref_die_offset_complaint): Rename from
3509 get_ref_die_offset. Just issue complaint.
3510
c17ace43
HD
35112020-05-27 Hannes Domani <ssbssa@yahoo.de>
3512
3513 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3514
96445f0b
HD
35152020-05-27 Hannes Domani <ssbssa@yahoo.de>
3516
3517 * exec.c (exec_file_attach): Use errno value of first openp failure.
3518
ac637ec3
HD
35192020-05-27 Hannes Domani <ssbssa@yahoo.de>
3520
3521 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3522 Don't close thread handle.
3523
17ee85fc
TT
35242020-05-27 Tom Tromey <tom@tromey.com>
3525 Simon Marchi <simon.marchi@efficios.com>
3526
3527 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3528 shared_ptr.
3529 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3530 member.
3531 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3532 dwarf2_per_bfd_objfile_data_key>: New globals.
3533 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3534 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3535 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3536 shared.
3537 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3538 short-circuit when sharing.
3539 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3540 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3541
39b16f87
SM
35422020-05-27 Simon Marchi <simon.marchi@efficios.com>
3543
3544 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3545 to...
3546 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3547 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3548
fcf23d5b
SM
35492020-05-27 Simon Marchi <simon.marchi@efficios.com>
3550
3551 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3552 build_name_components, find_name_components_bounds>:
3553 Add per_objfile parameter.
3554 (struct mapped_index) <symbol_name_at>: Likewise.
3555 (struct mapped_debug_names): Remove constructor.
3556 <dwarf2_per_objfile>: Remove field.
3557 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3558 (mapped_index_base::find_name_components_bounds,
3559 mapped_index_base::build_name_components,
3560 dw2_expand_symtabs_matching_symbol): Likewise.
3561 (class mock_mapped_index) <symbol_name_at>: Likewise.
3562 (check_match): Likewise.
3563 (check_find_bounds_finds): Likewise.
3564 (test_mapped_index_find_name_component_bounds): Update.
3565 (CHECK_MATCH): Update.
3566 (dw2_expand_symtabs_matching): Update.
3567 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3568 per_objfile parameter.
3569 <find_vec_in_debug_names>: Likewise.
3570 <m_per_objfile>: New field.
3571 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3572 parameter.
3573 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3574 (dw2_debug_names_iterator::next): Update.
3575 (dw2_debug_names_lookup_symbol): Update.
3576 (dw2_debug_names_expand_symtabs_for_function): Update.
3577 (dw2_debug_names_map_matching_symbols): Update.
3578 (dw2_debug_names_expand_symtabs_matching): Update.
3579 (dwarf2_read_debug_names): Update.
3580
7188ed02
SM
35812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3582
3583 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3584 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3585 move to dwarf2_per_objfile.
3586 <read_in_chain>: Remove.
3587 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3588 remove_all_cus, age_comp_units>: New methods.
3589 <m_dwarf2_cus>: New member.
3590 (struct dwarf2_per_cu_data) <cu>: Remove.
3591 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3592 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3593 moved to methods of dwarf2_per_objfile.
3594 (dwarf2_clear_marks): Remove.
3595 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3596 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3597 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3598 (dwarf2_per_objfile::remove_all_cus): New.
3599 (class free_cached_comp_units) <~free_cached_comp_units>:
3600 Update.
3601 (load_cu): Update.
3602 (dw2_do_instantiate_symtab): Adjust.
3603 (fill_in_sig_entry_from_dwo_entry): Adjust.
3604 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3605 (cutu_reader::cutu_reader): Likewise.
3606 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3607 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3608 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3609 and dwarf2_per_objfile::age_comp_units.
3610 (load_partial_comp_unit): Update.
3611 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3612 (process_queue): Likewise.
3613 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3614 backlink.
3615 (dwarf2_read_addr_index): Likewise.
3616 (follow_die_offset): Likewise.
3617 (dwarf2_fetch_die_loc_sect_off): Likewise.
3618 (dwarf2_fetch_constant_bytes): Likewise.
3619 (dwarf2_fetch_die_type_sect_off): Likewise.
3620 (follow_die_sig_1): Likewise.
3621 (load_full_type_unit): Likewise.
3622 (read_signatured_type): Likewise.
3623 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3624 (dwarf2_cu::~dwarf2_cu): Remove.
3625 (dwarf2_per_objfile::get_cu): New.
3626 (dwarf2_per_objfile::set_cu): New.
3627 (age_cached_comp_units): Rename to...
3628 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3629 to std::unordered_map.
3630 (free_one_cached_comp_unit): Rename to...
3631 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3632 to std::unordered_map.
3633 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3634 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3635 a dwarf2_per_objfile in data.
3636 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3637 (dwarf2_clear_marks): Remove.
3638
2e671100
SM
36392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3640
3641 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3642 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3643 (init_tu_and_read_dwo_dies): Likewise.
3644 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3645 (cutu_reader::cutu_reader): Likewise.
3646 (load_partial_comp_unit): Likewise.
3647 (process_psymtab_comp_unit): Update.
3648 (build_type_psymtabs_1): Update.
3649 (process_skeletonless_type_unit): Update.
3650 (load_full_comp_unit): Update.
3651 (find_partial_die): Update.
3652 (dwarf2_read_addr_index): Update.
3653 (read_signatured_type): Update.
3654
2e6a9f79
SM
36552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3656
3657 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3658 m_header_read_in>: New fields.
3659 <get_header>: New method.
3660 * dwarf2/read.c (per_cu_header_read_in): Remove.
3661 (dwarf2_per_cu_data::get_header): New.
3662 (dwarf2_per_cu_data::addr_size): Update.
3663 (dwarf2_per_cu_data::offset_size): Update.
3664 (dwarf2_per_cu_data::ref_addr_size): Update.
3665
1b555f17
SM
36662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3667
3668 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3669 (dw2_do_instantiate_symtab): Update.
3670 (queue_and_load_all_dwo_tus): Change parameter from
3671 dwarf2_per_cu_data to dwarf2_cu.
3672 (dwarf2_fetch_die_loc_sect_off): Update.
3673 (dwarf2_fetch_constant_bytes): Update.
3674 (dwarf2_fetch_die_type_sect_off): Update.
3675
8fc0b21d
SM
36762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3677
3678 * dwarf2/read.c (process_full_comp_unit,
3679 process_full_type_unit): Remove per_cu, per_objfile paramters.
3680 Add dwarf2_cu parameter.
3681 (process_queue): Update.
3682
168c9250
SM
36832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3684
3685 * dwarf2/read.c (create_cu_from_index_list): Replace
3686 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3687 (create_cus_from_index_list): Likewise.
3688 (create_cus_from_index): Likewise.
3689 (create_signatured_type_table_from_index): Likewise.
3690 (create_cus_from_debug_names_list): Likewise.
3691 (create_cus_from_debug_names): Likewise.
3692 (dwarf2_read_gdb_index): Update.
3693 (dwarf2_read_debug_names): Update.
3694
e286671b
TT
36952020-05-27 Tom Tromey <tom@tromey.com>
3696 Simon Marchi <simon.marchi@efficios.com>
3697
3698 * dwarf2/read.h (struct dwarf2_per_objfile)
3699 <get_type_for_signatured_type, set_type_for_signatured_type>:
3700 New methods.
3701 <m_type_map>: New member.
3702 (struct signatured_type) <type>: Remove.
3703 * dwarf2/read.c
3704 (dwarf2_per_objfile::get_type_for_signatured_type,
3705 dwarf2_per_objfile::set_type_for_signatured_type): New.
3706 (get_signatured_type): Use new methods.
3707
8adb8487
TT
37082020-05-27 Tom Tromey <tom@tromey.com>
3709 Simon Marchi <simon.marchi@efficios.com>
3710
3711 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3712 (struct dwarf2_per_objfile) <type_units>: New member.
3713 <get_type_unit_group_unshareable>: New method.
3714 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3715 num_symtabs, symtabs>: Remove; move to
3716 type_unit_group_unshareable.
3717 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3718 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3719 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3720
127bbf4b
SM
37212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3722
3723 * dwarf2/read.h (struct dwarf2_per_cu_data):
3724 <dwarf2_per_objfile>: Remove.
3725 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3726 dwarf2_per_objfile.
3727 (create_signatured_type_table_from_index): Likewise.
3728 (create_signatured_type_table_from_debug_names): Likewise.
3729 (create_debug_type_hash_table): Likewise.
3730 (fill_in_sig_entry_from_dwo_entry): Likewise.
3731 (create_type_unit_group): Likewise.
3732 (read_comp_units_from_section): Likewise.
3733 (create_cus_hash_table): Likewise.
3734
f6e649dd
SM
37352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3736
3737 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3738 dwarf2_per_cu_data::dwarf2_per_objfile.
3739 (compute_compunit_symtab_includes): Likewise.
3740 (dwarf2_cu::start_symtab): Likewise.
3741
aa66c379
SM
37422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3743
3744 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3745 parameter.
3746 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3747 (read_namespace_alias): Update.
3748 (lookup_die_type): Update.
3749 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3750 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3751 Update.
3752 (disassemble_dwarf_expression): Update.
3753
120ce1b5
SM
37542020-05-27 Simon Marchi <simon.marchi@efficios.com>
3755
3756 * dwarf2/read.h (struct dwarf2_queue_item): Add
3757 dwarf2_per_objfile parameter, assign new parameter.
3758 <per_objfile>: New field.
3759 * dwarf2/read.c (free_one_cached_comp_unit): Add
3760 dwarf2_per_objfile parameter.
3761 (queue_comp_unit): Likewise.
3762 (dw2_do_instantiate_symtab): Update.
3763 (process_psymtab_comp_unit): Update.
3764 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3765 (process_imported_unit_die): Update.
3766 (queue_and_load_dwo_tu): Update.
3767 (follow_die_offset): Update.
3768 (follow_die_sig_1): Update.
3769
9f47c707
SM
37702020-05-27 Simon Marchi <simon.marchi@efficios.com>
3771
3772 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3773 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3774 (read_call_site_scope): Assign per_objfile.
3775 (dwarf2_per_cu_data::objfile): Remove.
3776 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3777 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3778 dwarf2_per_objfile parameter.
3779 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3780 dwarf2_per_objfile parameter.
3781 (dwarf_expr_reg_to_entry_parameter): Add output
3782 dwarf2_per_objfile parameter.
3783 (locexpr_get_frame_base): Update.
3784 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3785 <push_dwarf_reg_entry_value>: Update.
3786 <call_site_to_target_addr>: Update.
3787 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3788 parameter.
3789 (value_of_dwarf_reg_entry): Update.
3790 (rw_pieced_value): Update.
3791 (indirect_synthetic_pointer): Update.
3792 (dwarf2_evaluate_property): Update.
3793 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3794 parameter.
3795 (locexpr_read_variable): Update.
3796 (locexpr_get_symbol_read_needs): Update.
3797 (loclist_read_variable): Update.
3798
14095eb3
SM
37992020-05-27 Simon Marchi <simon.marchi@efficios.com>
3800
3801 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3802 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3803 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3804 parameter.
3805 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3806 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3807 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3808 parameter.
3809 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3810 sect_variable_value): Add dwarf2_per_objfile parameter.
3811 (class dwarf_evaluate_loc_desc) <dwarf_call,
3812 dwarf_variable_value>: Update.
3813 (fetch_const_value_from_synthetic_pointer): Add
3814 dwarf2_per_objfile parameter.
3815 (fetch_const_value_from_synthetic_pointer): Update.
3816 (coerced_pieced_ref): Update.
3817 (class symbol_needs_eval_context) <dwarf_call,
3818 dwarf_variable_value>: Update.
3819 (dwarf2_compile_expr_to_ax): Update.
3820
3c3cd3d4
SM
38212020-05-27 Simon Marchi <simon.marchi@efficios.com>
3822
3823 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3824 parameter.
3825 (dwarf2_evaluate_loc_desc_full): Update.
3826
82ca3f51
SM
38272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3828
3829 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3830 parameter.
3831 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3832 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3833 dwarf2_per_objfile parameter.
3834 (decode_debug_loc_dwo_addresses): Likewise.
3835 (dwarf2_find_location_expression): Update.
3836 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3837 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3838 parameter.
3839 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3840 parameter.
3841 (locexpr_describe_location_1): Likewise.
3842 (locexpr_describe_location): Update.
3843
4b167ea1
SM
38442020-05-27 Simon Marchi <simon.marchi@efficios.com>
3845
3846 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3847 Remove.
3848 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3849 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3850 (dwarf2_compile_property_to_c): Update.
3851 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3852 use text offset from objfile.
3853 (locexpr_tracepoint_var_ref): Update.
3854 (locexpr_generate_c_location): Update.
3855 (loclist_describe_location): Update.
3856 (loclist_tracepoint_var_ref): Update.
3857 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3858 dwarf2_per_objfile parameter.
3859 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3860 use text offset from objfile.
3861 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3862
89b07335
SM
38632020-05-27 Simon Marchi <simon.marchi@efficios.com>
3864
3865 * dwarf2/expr.h (struct dwarf_expr_context)
3866 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3867 <offset>: Remove.
3868 <per_objfile>: New member.
3869 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3870 dwarf2_per_objfile parameter. Don't set offset, set
3871 per_objfile.
3872 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3873 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3874 a dwarf2_per_objfile object instead of an offset.
3875 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3876 constructor.
3877 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3878 to dwarf2_expr_executor constructor. Don't set offset.
3879 (dwarf2_fetch_cfa_info): Update.
3880 (struct dwarf2_frame_cache) <text_offset>: Remove.
3881 <per_objfile>: New field.
3882 (dwarf2_frame_cache): Update.
3883 (dwarf2_frame_prev_register): Update.
3884 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3885 <dwarf_evaluate_loc_desc>: Add constructor.
3886 (dwarf2_evaluate_loc_desc_full): Update.
3887 (dwarf2_locexpr_baton_eval): Update.
3888 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3889 Add constructor.
3890 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3891
293e7e51
SM
38922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3893
3894 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3895 addr_sized_int_type>: Move to dwarf2_cu.
3896 <int_type>: Move to dwarf2_per_objfile.
3897 (struct dwarf2_per_objfile) <int_type>: Move here.
3898 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3899 addr_sized_int_type>: Move here.
3900 (read_func_scope): Update.
3901 (read_array_type): Update.
3902 (read_tag_string_type): Update.
3903 (attr_to_dynamic_prop): Update.
3904 (dwarf2_per_cu_data::int_type): Rename to...
3905 (dwarf2_per_objfile::int_type): ... this.
3906 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3907 (dwarf2_cu::addr_sized_int_type): ... this.
3908 (read_subrange_type): Update.
3909 (dwarf2_per_cu_data::addr_type): Rename to...
3910 (dwarf2_cu::addr_type): ... this.
3911 (set_die_type): Update.
3912
64874a40
SM
39132020-05-27 Simon Marchi <simon.marchi@efficios.com>
3914
3915 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3916 data through per_cu->cu.
3917
4ab09049
SM
39182020-05-27 Simon Marchi <simon.marchi@efficios.com>
3919
3920 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3921 dwarf2_per_cu_data parameter fo dwarf2_cu.
3922 (lookup_dwo_type_unit): Likewise.
3923 (read_cutu_die_from_dwo): Likewise.
3924 (lookup_dwo_unit): Likewise.
3925 (open_and_init_dwo_file): Likewise.
3926 (lookup_dwo_cutu): Likewise.
3927 (lookup_dwo_comp_unit): Likewise.
3928 (lookup_dwo_type_unit): Likewise.
3929 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3930 (cutu_reader::cutu_reader): Update.
3931
47b14e86
SM
39322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3933
3934 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3935 parameter.
3936 (process_full_type_unit): Likewise.
3937 (process_queue): Update.
3938
43182c09
SM
39392020-05-27 Simon Marchi <simon.marchi@efficios.com>
3940
3941 * dwarf2/read.c (recursively_compute_inclusions): Add
3942 dwarf2_per_objfile parameter.
3943 (compute_compunit_symtab_includes): Likewise.
3944 (process_cu_includes): Update.
3945
7aa104c4
SM
39462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3947
3948 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3949 parameter.
3950 (create_type_unit_group): Update.
3951 (process_psymtab_comp_unit_reader): Update.
3952 (build_type_psymtabs_reader): Update.
3953
e3beb21d
SM
39542020-05-27 Simon Marchi <simon.marchi@efficios.com>
3955
3956 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3957 object through m_this_cu->cu.
3958
d460f660
SM
39592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3960
3961 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3962 the info parameter.
3963 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3964
ab432490
SM
39652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3966
3967 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3968 per_objfile parameter.
3969 (load_full_type_unit): Add per_objfile parameter.
3970 (read_signatured_type): Likewise.
3971 (load_full_comp_unit): Likewise.
3972 (load_cu): Likewise.
3973 (dw2_do_instantiate_symtab): Likewise.
3974 (dw2_get_file_names): Likewise.
3975 (dw2_map_symtabs_matching_filename): Update.
3976 (dw_expand_symtabs_matching_file_matcher): Update.
3977 (dw2_map_symbol_filenames): Update.
3978 (process_psymtab_comp_unit): Add per_objfile parameter.
3979 (build_type_psymtabs_1): Update.
3980 (process_skeletonless_type_unit): Update.
3981 (dwarf2_build_psymtabs_hard): Update.
3982 (load_partial_comp_unit): Add per_objfile parameter.
3983 (scan_partial_symbols): Update.
3984 (load_full_comp_unit): Add per_objfile parameter.
3985 (process_imported_unit_die): Update.
3986 (create_cus_hash_table): Update.
3987 (find_partial_die): Update.
3988 (dwarf2_read_addr_index): Update.
3989 (follow_die_offset): Update.
3990 (dwarf2_fetch_die_loc_sect_off): Update.
3991 (dwarf2_fetch_constant_bytes): Update.
3992 (dwarf2_fetch_die_type_sect_off): Update.
3993 (follow_die_sig_1): Update.
3994 (load_full_type_unit): Add per_objfile parameter.
3995 (read_signatured_type): Likewise.
3996
313bad1b
SM
39972020-05-27 Simon Marchi <simon.marchi@efficios.com>
3998
3999 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4000 of objfile_name.
4001
c3699833
SM
40022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4003
4004 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4005 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4006 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4007 field.
4008 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4009 (create_cus_from_index): Update.
4010 (dwarf2_read_gdb_index): Update.
4011 (create_cus_from_debug_names): Update.
4012 (dwarf2_read_debug_names): Update.
4013 (get_abbrev_section_for_cu): Update.
4014 (create_all_comp_units): Update.
4015 (read_attribute_value): Update.
4016 (get_debug_line_section): Update.
4017 * dwarf2/index-cache.c (index_cache::store): Update.
4018 * dwarf2/index-write.c (save_gdb_index_command): Update.
4019 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4020
1859c670
SM
40212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4022
4023 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4024 member.
4025 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4026 dwarf2_per_cu_data::per_bfd.
4027 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4028 (create_type_unit_group): Likewise.
4029 (queue_comp_unit): Remove reference to
4030 per_cu->dwarf2_per_objfile.
4031 (maybe_queue_comp_unit): Likewise.
4032 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4033 (create_cus_hash_table): Assign new field.
4034
5e22e966
SM
40352020-05-27 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * dwarf2/read.c: Replace
4038 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4039 dwarf2_cu->per_objfile throughout.
4040
97a1449a
SM
40412020-05-27 Simon Marchi <simon.marchi@efficios.com>
4042
4043 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4044 parameter, don't use per_cu->dwarf2_per_objfile.
4045 (dw2_instantiate_symtab): Likewise.
4046 (dw2_find_last_source_symtab): Update.
4047 (dw2_map_expand_apply): Update.
4048 (dw2_lookup_symbol): Update.
4049 (dw2_expand_symtabs_for_function): Update.
4050 (dw2_expand_all_symtabs): Update.
4051 (dw2_expand_symtabs_with_fullname): Update.
4052 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4053 don't use per_cu->dwarf2_per_objfile.
4054 (dw2_expand_marked_cus): Update.
4055 (dw2_find_pc_sect_compunit_symtab): Update.
4056 (dw2_debug_names_lookup_symbol): Update.
4057 (dw2_debug_names_expand_symtabs_for_function): Update.
4058 (dw2_debug_names_map_matching_symbols): Update.
4059 (dwarf2_psymtab::expand_psymtab): Update.
4060
9e021579
SM
40612020-05-27 Simon Marchi <simon.marchi@efficios.com>
4062
4063 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4064 <per_objfile>: New member.
4065 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4066 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4067 call to dwarf2_cu.
4068 (cutu_reader::cutu_reader): Update.
4069 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4070
ae090bdb
SM
40712020-05-27 Simon Marchi <simon.marchi@efficios.com>
4072
4073 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4074 struct dwarf2_per_objfile.
4075 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4076 dwarf2_per_bfd.
4077 * dwarf2/read.c (set_die_type): Update.
4078 (get_die_type_at_offset): Update.
4079
af758d11
SM
40802020-05-27 Tom Tromey <tom@tromey.com>
4081 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4084 method.
4085 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4086 get_symtab, set_symtab>: New methods.
4087 <m_symtabs>: New field.
4088 (struct dwarf2_psymtab): Derive from partial_symtab.
4089 <readin_p, get_compunit_symtab>: Declare methods.
4090 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4091 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4092 New methods.
4093 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4094 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4095 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4096 (dw2_symtab_iter_next, dw2_print_stats)
4097 (dw2_expand_symtabs_with_fullname)
4098 (dw2_expand_symtabs_matching_one)
4099 (dw_expand_symtabs_matching_file_matcher)
4100 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4101 (dw2_debug_names_iterator::next)
4102 (dw2_debug_names_map_matching_symbols)
4103 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4104 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4105 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4106 New methods.
4107 (get_compunit_symtab, process_full_comp_unit)
4108 (process_full_type_unit): Update.
4109 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4110
5989a64e
SM
41112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4112
4113 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4114 then introduce a new dwarf2_per_objfile type.
4115 <read_line_string>: Move to the new dwarf2_per_objfile type.
4116 <objfile>: Likewise.
4117 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4118 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4119 dwarf2_per_objfile->per_bfd.
4120 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4121 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4122 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4123 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4124 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4125 (dwarf2_per_objfile::locate_sections): Rename to...
4126 (dwarf2_per_bfd::locate_sections): ... this.
4127 (dwarf2_per_objfile::get_cutu): Rename to...
4128 (dwarf2_per_bfd::get_cutu): ... this.
4129 (dwarf2_per_objfile::get_cu): Rename to...
4130 (dwarf2_per_bfd::get_cu): ... this.
4131 (dwarf2_per_objfile::get_tu): Rename to...
4132 (dwarf2_per_bfd::get_tu): ... this.
4133 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4134 (dwarf2_per_bfd::allocate_per_cu): ... this.
4135 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4136 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4137 (get_gdb_index_contents_ftype): Change parameter from
4138 dwarf2_per_objfile to dwarf2_per_bfd.
4139 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4140 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4141
a50264ba
TT
41422020-05-27 Tom Tromey <tom@tromey.com>
4143 Simon Marchi <simon.marchi@efficios.com>
4144
4145 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4146 (allocate_piece_closure): Set "per_objfile" member.
4147 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4148 (locexpr_describe_location, loclist_describe_location): Use new
4149 member.
4150 * dwarf2/read.c (read_call_site_scope)
4151 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4152 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4153 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4154 handle_data_member_location): Set per_objfile member.
4155 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4156 member.
4157 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4158
d3473f0c
TT
41592020-05-27 Tom Tromey <tom@tromey.com>
4160
4161 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4162 allocate_signatured_type>: Declare new methods.
4163 <m_num_psymtabs>: New member.
4164 (struct dwarf2_per_cu_data) <index>: New member.
4165 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4166 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4167 (create_cu_from_index_list): Use allocate_per_cu.
4168 (create_signatured_type_table_from_index)
4169 (create_signatured_type_table_from_debug_names)
4170 (create_debug_type_hash_table, add_type_unit)
4171 (read_comp_units_from_section): Use allocate_signatured_type.
4172
5717c425
TT
41732020-05-27 Tom Tromey <tom@tromey.com>
4174
4175 * psymtab.c (partial_map_expand_apply)
4176 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4177 (psym_lookup_global_symbol_language)
4178 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4179 (psym_print_stats, psym_expand_symtabs_for_function)
4180 (psym_map_symbol_filenames, psym_map_matching_symbols)
4181 (psym_expand_symtabs_matching)
4182 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4183 (maintenance_check_psymtabs): Update.
4184 * psympriv.h (struct partial_symtab) <readin_p,
4185 get_compunit_symtab>: Add objfile parameter.
4186 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4187 Likewise.
4188 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4189 get_compunit_symtab>: Likewise.
4190 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4191
45940949
TT
41922020-05-27 Tom Tromey <tom@tromey.com>
4193
4194 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4195 member.
4196 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4197 (create_cu_from_index_list)
4198 (create_signatured_type_table_from_index)
4199 (create_signatured_type_table_from_debug_names)
4200 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4201 (dwarf2_create_include_psymtab)
4202 (create_debug_type_hash_table, add_type_unit)
4203 (create_type_unit_group, read_comp_units_from_section)
4204 (dwarf2_compute_name, create_cus_hash_table)
4205 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4206 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4207 obstack.
4208 (dw2_get_real_path): Likewise. Change argument to
4209 dwarf2_per_objfile.
4210
f8c6d152
LM
42112020-05-27 Luis Machado <luis.machado@linaro.org>
4212
4213 PR tdep/26000
4214 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4215 for ldrd (immediate).
4216
e98d2e6d
PW
42172020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4218
4219 * command.h: Add comment giving the name of class_tui.
4220 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4221 create the fake command for the help for class_tui.
4222
53a47a3e
TT
42232020-05-26 Tom Tromey <tromey@adacore.com>
4224
4225 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4226 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4227 (val_atr): New function.
4228 (value_val_atr): Use it.
4229 * ada-valprint.c (print_optional_low_bound): Change low bound
4230 handling for enums.
4231 (val_print_packed_array_elements): Don't call discrete_position.
4232 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4233 discrete_position for enum types.
4234 * language.c (default_print_array_index): Change type.
4235 * language.h (struct language_defn) <la_print_array_index>: Add
4236 index_type parameter, change type of index_value.
4237 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4238 (default_print_array_index): Update.
4239 * valprint.c (maybe_print_array_index): Don't call
4240 value_from_longest. Update.
4241 (value_print_array_elements): Don't call discrete_position.
4242
0bc2354b
TT
42432020-05-26 Tom Tromey <tromey@adacore.com>
4244
4245 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4246 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4247
1218a4bf
CDA
42482020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4249
4250 PR gdb/13519
4251 * avr-tdep.c (avr_integer_to_address): Return data or code
4252 address accordingly to the second 'type' argument of the
4253 function.
4254
92651b1d
MW
42552020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4256
4257 * infcmd.c, inferior.h: (construct_inferior_arguments):
4258 Moved function from here to gdbsupport/common-inferior.{h,cc}
4259
0a4f5f8c
TT
42602020-05-23 Tom Tromey <tom@tromey.com>
4261
4262 Revert commit eca1f90c:
4263 * NEWS: Remove entry for completion styling.
4264 * completer.c (_rl_completion_prefix_display_length): Move
4265 declaration later.
4266 (gdb_fnprint): Revert.
4267 (gdb_display_match_list_1): Likewise.
4268 * cli/cli-style.c (completion_prefix_style)
4269 (completion_difference_style, completion_suffix_style): Remove.
4270 (_initialize_cli_style): Revert.
4271 * cli/cli-style.h (completion_prefix_style)
4272 (completion_difference_style, completion_suffix_style): Don't
4273 declare.
4274
e08bd6c5
PA
42752020-05-24 Pedro Alves <palves@redhat.com>
4276
4277 * symtab.c (completion_list_add_name): Return boolean indication
4278 of whether the symbol matched.
4279 (completion_list_add_symbol): Don't try to remove C++ aliases if
4280 the symbol didn't match in the first place.
4281 * symtab.h (completion_list_add_name): Return bool.
4282
ceacbf6e
SM
42832020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4284
4285 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4286 type::field.
4287
26f16254
JB
42882020-05-23 Joel Brobecker <brobecker@adacore.com>
4289
4290 GDB 9.2 released.
4291
eca1f90c
TT
42922020-05-23 Tom Tromey <tom@tromey.com>
4293
4294 * NEWS: Add entry for completion styling.
4295 * completer.c (_rl_completion_prefix_display_length): Move
4296 declaration earlier.
4297 (gdb_fnprint): Use completion_style.
4298 (gdb_display_match_list_1): Likewise.
4299 * cli/cli-style.c (completion_prefix_style)
4300 (completion_difference_style, completion_suffix_style): New
4301 globals.
4302 (_initialize_cli_style): Register new globals.
4303 * cli/cli-style.h (completion_prefix_style)
4304 (completion_difference_style, completion_suffix_style): Declare.
4305
51e2cfa2
PA
43062020-05-23 Pedro Alves <palves@redhat.com>
4307
4308 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4309 (parse_escape): Use ISDIGIT instead of isdigit.
4310 (puts_debug): Use gdb_isprint instead of isprint.
4311 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4312 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4313 ISSPACE instead of isspace.
4314 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4315 instead of isspace.
4316 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4317 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4318 instead of isxdigit and ISDIGIT instead of isdigit.
4319
80fc5e77
SM
43202020-05-22 Simon Marchi <simon.marchi@efficios.com>
4321
4322 * gdbtypes.h (struct type) <field>: New method.
4323 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4324 or type::field.
4325
3cabb6b0
SM
43262020-05-22 Simon Marchi <simon.marchi@efficios.com>
4327
4328 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4329 (TYPE_FIELDS): Use type::fields. Change all call sites that
4330 modify the propery to use type::set_fields instead.
4331
1f704f76
SM
43322020-05-22 Simon Marchi <simon.marchi@efficios.com>
4333
4334 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4335 type::num_fields instead.
4336
5e33d5f4
SM
43372020-05-22 Simon Marchi <simon.marchi@efficios.com>
4338
4339 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4340 methods.
4341 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4342 that modify the number of fields to use type::set_num_fields
4343 instead.
4344
9392ebb3
TT
43452020-05-22 Tom Tromey <tromey@adacore.com>
4346
4347 * compile/compile-object-load.h (munmap_list_free): Don't
4348 declare.
4349
7c13f4e8
AB
43502020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4351
4352 * annotate.c (annotate_source_line): Update return type, add call
4353 to update current symtab and line.
4354 * annotate.h (annotate_source_line): Update return type, and
4355 extend header comment.
4356 * source.c (info_line_command): Check annotation_level before
4357 calling annotate_source_line.
4358 * stack.c (print_frame_info): If calling annotate_source_line
4359 returns true, then don't print any other source line information.
4360
aa370940
SM
43612020-05-21 Simon Marchi <simon.marchi@efficios.com>
4362
4363 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4364
84d53fa9
SM
43652020-05-21 Simon Marchi <simon.marchi@efficios.com>
4366
4367 * coffread.c (patch_type): Remove NULL check before xfree.
4368 * corefile.c (set_gnutarget): Likewise.
4369 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4370 * exec.c (build_section_table): Likewise.
4371 * remote.c (remote_target::pass_signals): Likewise.
4372 * utils.c (n_spaces): Likewise.
4373 * cli/cli-script.c (document_command): Likewise.
4374 * i386-windows-tdep.c (core_process_module_section): Likewise.
4375 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4376
9d428aae
SM
43772020-05-20 Simon Marchi <simon.marchi@efficios.com>
4378
4379 * symfile.c (reread_symbols): Clear objfile's section_offsets
4380 vector and section indices, re-compute them by calling
4381 sym_offsets.
4382
250106a7
TT
43832020-05-20 Tom Tromey <tromey@adacore.com>
4384
4385 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4386 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4387
9a0bacfb
TV
43882020-05-20 Tom de Vries <tdevries@suse.de>
4389
4390 PR symtab/25833
4391 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4392
7b958a48
AM
43932020-05-20 Alan Modra <amodra@gmail.com>
4394
4395 PR 25993
4396 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4397 bfd_set_filename.
4398 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4399 passed to bfd_set_filename.
4400 * symfile-mem.c (add_vsyscall_page): Likewise for string
4401 passed to symbol_file_add_from_memory.
4402 (symbol_file_add_from_memory): Make name param a const char* and
4403 don't strdup.
4404
c7e97679
AM
44052020-05-20 Alan Modra <amodra@gmail.com>
4406
4407 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4408 rather than accessing bfd->filename directly.
4409 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4410 and use bfd_section_name.
4411 * dwarf2/frame.c (decode_frame_entry): Likewise.
4412 * exec.c (exec_set_section_address): Likewise.
4413 * solib-aix.c (solib_aix_bfd_open): Likewise.
4414 * stap-probe.c (get_stap_base_address): Likewise.
4415 * symfile.c (reread_symbols): Likewise.
4416
563c591b
TT
44172020-05-19 Tom Tromey <tromey@adacore.com>
4418
4419 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4420
f408d82c
SM
44212020-05-19 Simon Marchi <simon.marchi@efficios.com>
4422
4423 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4424
98c59b52
PA
44252020-05-19 Pedro Alves <palves@redhat.com>
4426
4427 * NEWS (set exec-file-mismatch): Adjust entry.
4428 * exec.c: Include "build-id.h".
4429 (validate_exec_file): Try to match build IDs instead of filenames.
4430 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4431 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4432 and pass down 'warn_if_slow'.
4433 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4434 gdb_bfd_open_closure to pass it down.
4435 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4436
4111f652
PA
44372020-05-19 Pedro Alves <palves@redhat.com>
4438
4439 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4440 * target.c (target_fileio_open_1): Rename to target_fileio_open
4441 and make extern. Use bool.
4442 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4443 (target_fileio_read_alloc_1): Adjust.
4444 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4445 (target_fileio_open_warn_if_slow): Delete declaration.
4446
ad80db5b
PA
44472020-05-19 Pedro Alves <palves@redhat.com>
4448
4449 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4450 Adjust all callers.
4451
1d6ce4d3
YS
44522020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4453
4454 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4455 whether disp is negative.
4456
9005fbbb
SM
44572020-05-19 Simon Marchi <simon.marchi@efficios.com>
4458
4459 * symfile.h (struct symfile_segment_data)
4460 <~symfile_segment_data>: Remove.
4461 <segment_info>: Change to std::vector.
4462 * symfile.c (default_symfile_segments): Update.
4463 * elfread.c (elf_symfile_segments): Update.
4464
68b888ff
SM
44652020-05-19 Simon Marchi <simon.marchi@efficios.com>
4466
4467 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4468 <segments>: New.
4469 <segment_bases, segment_sizes>: Remove.
4470 * symfile.c (default_symfile_segments): Update.
4471 * elfread.c (elf_symfile_segments): Update.
4472 * remote.c (remote_target::get_offsets): Update.
4473 * solib-target.c (solib_target_relocate_section_addresses):
4474 Update.
4475
62982abd
SM
44762020-05-19 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * symfile.h (struct symfile_segment_data): Initialize fields.
4479 <~symfile_segment_data>: Add.
4480 (symfile_segment_data_up): New.
4481 (struct sym_fns) <sym_segments>: Return a
4482 symfile_segment_data_up.
4483 (default_symfile_segments): Return a symfile_segment_data_up.
4484 (free_symfile_segment_data): Remove.
4485 (get_symfile_segment_data): Return a symfile_segment_data_up.
4486 * symfile.c (default_symfile_segments): Likewise.
4487 (get_symfile_segment_data): Likewise.
4488 (free_symfile_segment_data): Remove.
4489 (symfile_find_segment_sections): Update.
4490 * elfread.c (elf_symfile_segments): Return a
4491 symfile_segment_data_up.
4492 * remote.c (remote_target::get_offsets): Update.
4493 * solib-target.c (solib_target_relocate_section_addresses):
4494 Update.
4495 * symfile-debug.c (debug_sym_segments): Return a
4496 symfile_segment_data_up.
4497
7f204339
RO
44982020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4499
e52a0f1b
RO
4500 PR build/25981
4501 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4502 Hardcode register numbers.
4503
7f204339
RO
4504 PR build/25981
4505 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4506 procfs_find_LDT_entry): Remove.
4507 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4508 procfs_find_LDT_entry): Remove.
4509 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4510 Remove.
4511
7f32a4d5
PA
45122020-05-17 Pedro Alves <palves@redhat.com>
4513 Andrew Burgess <andrew.burgess@embecosm.com>
4514 Keno Fischer <keno@juliacomputing.com>
4515
4516 PR gdb/25741
4517 * breakpoint.c (build_target_condition_list): Update comments.
4518 (build_target_command_list): Update comments and skip matching
4519 locations.
4520 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4521 a separate function. Simplify "set breakpoint auto-hw off"
4522 handling.
4523 (insert_breakpoints): Update comment.
4524 (tracepoint_locations_match): New parameter. For breakpoints,
4525 compare location types too, if the caller wants to.
4526 (handle_automatic_hardware_breakpoints): New functions.
4527 (bp_location_is_less_than): Also sort by location type and
4528 hardware breakpoint length.
4529 (update_global_location_list): Handle "set breakpoint auto-hw on"
4530 here.
4531 (update_breakpoint_locations): Ask breakpoint_locations_match to
4532 ignore location types.
4533
7d93a1e0
SM
45342020-05-16 Simon Marchi <simon.marchi@efficios.com>
4535
4536 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4537 type::name instead.
4538
d0e39ea2
SM
45392020-05-16 Simon Marchi <simon.marchi@efficios.com>
4540
4541 * gdbtypes.h (struct type) <name, set_name>: New methods.
4542 (TYPE_CODE): Use type::name. Change all call sites used to set
4543 the name to use type::set_name instead.
4544
2dab0c7b
TT
45452020-05-16 Tom Tromey <tom@tromey.com>
4546
4547 * top.c (quit_force): Update.
4548 * infrun.c (handle_no_resumed): Update.
4549 * top.h (all_uis): New function.
4550 (ALL_UIS): Remove.
4551
59f7bd8d
SM
45522020-05-16 Simon Marchi <simon.marchi@efficios.com>
4553
4554 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4555
9bf058f0
PA
45562020-05-16 Pedro Alves <palves@redhat.com>
4557
4558 * ia64-linux-nat.c
4559 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4560 Declare method.
4561 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4562
8f86ae1a
SM
45632020-05-15 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4566 (sparc64_adi_info): Likewise.
4567
d6bc0792
TT
45682020-05-15 Tom Tromey <tom@tromey.com>
4569
4570 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4571 block_objfile.
4572 (lookup_objfile_from_block): Remove.
4573 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4574 (lookup_global_symbol): Use block_objfile.
4575 * symtab.h (lookup_objfile_from_block): Don't declare.
4576 * printcmd.c (clear_dangling_display_expressions): Use
4577 block_objfile.
4578 * parse.c (operator_check_standard): Use block_objfile.
4579
8c14c3a3
TT
45802020-05-15 Tom Tromey <tom@tromey.com>
4581
4582 * language.c (language_alloc_type_symbol): Set
4583 SYMBOL_SECTION.
4584 * symtab.c (initialize_objfile_symbol): Remove.
4585 (allocate_symbol): Remove.
4586 (allocate_template_symbol): Remove.
4587 * dwarf2/read.c (fixup_go_packaging): Use "new".
4588 (new_symbol): Use "new".
4589 (read_variable): Don't call initialize_objfile_symbol. Use
4590 "new".
4591 (read_func_scope): Use "new".
4592 * xcoffread.c (process_xcoff_symbol): Don't call
4593 initialize_objfile_symbol.
4594 (SYMBOL_DUP): Remove.
4595 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4596 "new".
4597 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4598 (allocate_template_symbol): Don't declare.
4599 (struct symbol): Add copy constructor. Change defaults.
4600 * jit.c (finalize_symtab): Use "new".
4601 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4602 Use "new".
4603 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4604 (common_block_end): Use "new".
4605 * mdebugread.c (parse_symbol): Use "new".
4606 (new_symbol): Likewise.
4607
5b4a1a8d
PW
46082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4609
4610 * NEWS: Mention changes to help and apropos.
4611
57b4f16e
PW
46122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4613
4614 * command.h (enum command_class): Improve comments, document
4615 that class_alias is for user-defined aliases, give the class
4616 name for each class, remove unused class_xdb.
4617 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4618 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4619 by a precise class.
4620 * infcmd.c (_initialize_infcmd): Likewise.
4621 * reverse.c (_initialize_reverse): Likewise.
4622 * stack.c (_initialize_stack): Likewise.
4623 * symfile.c (_initialize_symfile): Likewise.
4624 * tracepoint.c (_initialize_tracepoint): Likewise.
4625
7c05caf7
PW
46262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4627
4628 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4629 when their aliased command is traversed.
4630 (help_cmd): Add fput_command_names_styled call to
4631 output command name and aliases when command has an alias.
4632
3b3aaacb
PW
46332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4634
4635 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4636 * cli/cli-decode.c (help_cmd_list): Declare as static,
4637 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4638 a command together with the command.
4639 (fput_command_name_styled, fput_command_names_styled): New functions.
4640 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4641 fput_command_name_styled.
4642 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4643 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4644
7aa1b46f
PW
46452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4646
4647 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4648 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4649 * command.h (cmd_show_list): Likewise.
4650 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4651 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4652
89bcba74
PW
46532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4654
4655 * unittests/command-def-selftests.c (traverse_command_structure):
4656 Verify all commands of a list have the same prefix command and
4657 that only the top cmdlist commands have a null prefix.
4658
3f4d92eb
PW
46592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4660
4661 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4662 as prefix, not one of its aliases.
4663 (set_cmd_prefix): Remove.
4664 (do_add_cmd): Centralize the setting of the prefix of a command, when
4665 command is defined after its full chain of prefix commands.
4666 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4667 (add_setshow_cmd_full): Likewise.
4668 (update_prefix_field_of_prefixed_commands): New function.
4669 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4670 update_prefix_field_of_prefixed_commands.
4671 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4672 addresses of remote_set_cmdlist and remote_show_cmdlist given
4673 as argument, not the address of an argument.
4674 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4675 * gdb/remote.c (_initialize_remote): Likewise.
4676
0605465f
PW
46772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4678
4679 * cli/cli-cmds.c (alias_command): Check for an existing alias
4680 using lookup_cmd_composition, as valid_command_p is too strict
4681 and forbids aliases that are the prefix of an existing alias
4682 or command.
4683 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4684 command is properly recognised as a valid command.
4685
58e6ac70
PW
46862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4687
4688 * unittests/help-doc-selftests.c: Rename to
4689 unittests/command-def-selftests.c
4690 * unittests/command-def-selftests.c (help_doc_tests): Update some
4691 comments.
4692 (command_structure_tests, traverse_command_structure): New namespace
4693 and function.
4694 (command_structure_invariants_tests): New function.
4695 (_initialize_command_def_selftests) Renamed from
4696 _initialize_help_doc_selftests, register command_structure_invariants
4697 selftest.
4698
a7b9ceb8
PW
46992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4700
4701 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4702 an alias of 'show'.
4703
b2188a06
JB
47042020-05-15 Joel Brobecker <brobecker@adacore.com>
4705
4706 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4707 ada_is_fixed_point_type. Update all callers.
4708 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4709 all callers.
4710 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4711 Update all callers.
4712 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4713 print_fixed_point_type. Update all callers.
4714 * ada-valprint.c (ada_value_print_num): Replace call to
4715 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4716
a51951c2
KB
47172020-05-14 Kevin Buettner <kevinb@redhat.com>
4718
4719 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4720 processors.
4721 (cpu_supports_bts): Add CV_AMD case.
4722
29d6859f
LM
47232020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4724 Simon Marchi <simon.marchi@efficios.com>
4725
4726 * infrun.c (stop_all_threads): Collect multiple wait events at
4727 each pass.
4728
78134374
SM
47292020-05-14 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4732 type::code instead.
4733
67607e24
SM
47342020-05-14 Simon Marchi <simon.marchi@efficios.com>
4735
4736 * gdbtypes.h (struct type) <code, set_code>: New methods.
4737 (TYPE_CODE): Use type::code. Change all call sites used to set
4738 the code to use type::set_code instead.
4739
a05575d3
TBA
47402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4741 Tom de Vries <tdevries@suse.de>
4742 Pedro Alves <palves@redhat.com>
4743
4744 PR threads/25478
4745 * infrun.c (stop_all_threads): Do NOT ignore
4746 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4747 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4748 received.
4749 (handle_no_resumed): Remove code handling a live inferior with no
4750 threads.
4751 * remote.c (has_single_non_exited_thread): New.
4752 (remote_target::update_thread_list): Do not delete a thread if is
4753 the last thread of the process.
4754 * thread.c (thread_select): Call delete_exited_threads instead of
4755 prune_threads.
4756
6ad82919
TBA
47572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4758
4759 * infrun.c (stop_all_threads): Enable/disable thread events of all
4760 targets. Move a debug message denoting the end of the function
4761 into the SCOPED_EXIT block.
4762
d890404b
TBA
47632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4764
4765 * process-stratum-target.h: Include <set>.
4766 (all_non_exited_process_targets, switch_to_target_no_thread): New
4767 function declarations.
4768 * process-stratum-target.c (all_non_exited_process_targets)
4769 (switch_to_target_no_thread): New function implementations.
4770
293b3ebc
TBA
47712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4772
4773 * infrun.c (handle_inferior_event): Extract out a piece of code
4774 into...
4775 (mark_non_executing_threads): ...this new function.
4776
7ca9b62a
TBA
47772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4778
4779 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4780 use.
4781
fc75c28b
TBA
47822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4783
4784 * regcache.c (regcache_read_pc_protected): New function
4785 implementation that returns 0 if the PC cannot read via
4786 'regcache_read_pc'.
4787 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4788 instead of 'regcache_read_pc'.
4789 (keep_going_pass_signal): Ditto.
4790
a89febbd
TT
47912020-05-13 Tom Tromey <tromey@adacore.com>
4792
4793 * ada-lang.c (align_value): Remove.
4794 (ada_template_to_fixed_record_type_1): Use align_up.
4795
f7e23710
TBA
47962020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4797
4798 * async-event.c: Update the copyright year.
4799 * async-event.h: Update the copyright year.
4800
02ff80c2
SM
48012020-05-12 Simon Marchi <simon.marchi@efficios.com>
4802
4803 * objfiles.h (is_addr_in_objfile,
4804 shared_objfile_contains_address_p): Return bool.
4805 * objfile.c (is_addr_in_objfile,
4806 shared_objfile_contains_address_p): Return bool.
4807
4fd6c7e8
TT
48082020-05-11 Tom Tromey <tromey@adacore.com>
4809
4810 * cli/cli-cmds.c (info_command): Restore.
4811 (_initialize_cli_cmds): Use add_prefix_command for "info".
4812 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4813
5eb68a39
TT
48142020-05-11 Tom Tromey <tromey@adacore.com>
4815
4816 * ada-lang.c (ada_value_primitive_field): Now public.
4817 * ada-lang.h (ada_value_primitive_field): Declare.
4818 * ada-valprint.c (print_field_values): Use
4819 ada_value_primitive_field for wrapper fields.
4820
7666722f
TV
48212020-05-11 Tom de Vries <tdevries@suse.de>
4822
4823 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4824 MODULE_DOMAIN.
4825
3ee6bb11
TV
48262020-05-11 Tom de Vries <tdevries@suse.de>
4827
4828 PR symtab/25941
4829 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4830 with length 0, if not gdb-produced.
4831 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4832
43434996
TV
48332020-05-09 Tom de Vries <tdevries@suse.de>
4834
4835 PR gdb/25955
4836 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4837 calculation.
4838
2f78cffc
TT
48392020-05-09 Tom Tromey <tom@tromey.com>
4840
4841 * top.c (server_command): Now bool.
4842 * top.h (server_command): Now bool.
4843
4f7bc5ed
TT
48442020-05-08 Tom Tromey <tromey@adacore.com>
4845
4846 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4847 already being processed.
4848
8be4b118
TT
48492020-05-08 Tom Tromey <tom@tromey.com>
4850
4851 * printcmd.c (struct display) <next>: Remove.
4852 <display>: New constructor.
4853 <exp_string>: Now a std::string.
4854 <enabled_p>: Now a bool.
4855 (display_number): Move definition earlier.
4856 (displays): Rename from display_chain. Now a std::vector.
4857 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4858 (display_command): Update.
4859 (do_one_display, disable_display)
4860 (enable_disable_display_command, do_enable_disable_display):
4861 Update.
4862 (free_display): Remove.
4863 (clear_displays): Rewrite.
4864 (delete_display): Update.
4865 (map_display_numbers): Use function_view. Remove "data"
4866 parameter. Update.
4867 (do_delete_display): Remove.
4868 (undisplay_command): Update.
4869 (do_one_display, do_displays, disable_display)
4870 (info_display_command): Update.
4871 (do_enable_disable_display): Remove.
4872 (enable_disable_display_command)
4873 (clear_dangling_display_expressions): Update.
4874
94c93c35
TT
48752020-05-08 Tom Tromey <tom@tromey.com>
4876
4877 * symtab.c (set_symbol_cache_size)
4878 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4879 (maintenance_print_symbol_cache_statistics): Update.
4880 * symmisc.c (print_symbol_bcache_statistics)
4881 (print_objfile_statistics, maintenance_print_objfiles)
4882 (maintenance_info_symtabs, maintenance_check_symtabs)
4883 (maintenance_expand_symtabs, maintenance_info_line_tables):
4884 Update.
4885 * symfile-debug.c (set_debug_symfile): Update.
4886 * source.c (forget_cached_source_info): Update.
4887 * python/python.c (gdbpy_progspaces): Update.
4888 * psymtab.c (maintenance_info_psymtabs): Update.
4889 * probe.c (parse_probes): Update.
4890 * linespec.c (iterate_over_all_matching_symtabs)
4891 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4892 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4893 * exec.c (exec_target::close): Update.
4894 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4895 * breakpoint.c (print_one_breakpoint_location)
4896 (create_longjmp_master_breakpoint)
4897 (create_std_terminate_master_breakpoint): Update.
4898 * progspace.c (program_spaces): Now a std::vector.
4899 (maybe_new_address_space): Update.
4900 (add_program_space): Remove.
4901 (program_space::program_space): Update.
4902 (remove_program_space): Update.
4903 (number_of_program_spaces): Remove.
4904 (print_program_space, update_address_spaces): Update.
4905 * progspace.h (program_spaces): Change type.
4906 (ALL_PSPACES): Remove.
4907 (number_of_program_spaces): Don't declare.
4908 (struct program_space) <next>: Remove.
4909
a1fd1ac9
TT
49102020-05-08 Tom Tromey <tom@tromey.com>
4911
4912 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4913 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4914 (enable_break): Update.
4915 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4916 (frv_fdpic_find_canonical_descriptor): Update.
4917 (frv_fetch_objfile_link_map): Update.
4918 * progspace.c (program_space::free_all_objfiles): Update.
4919 (program_space::solibs): New method.
4920 * progspace.h (struct program_space) <solibs>: New method.
4921 * solist.h (master_so_list): Don't declare.
4922 (ALL_SO_LIBS): Remove.
4923 * solib.h (so_list_head): Remove.
4924 (update_solib_list): Update comment.
4925 * solib.c (master_so_list): Remove.
4926 (solib_used, update_solib_list, solib_add)
4927 (info_sharedlibrary_command, clear_solib)
4928 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4929
38eae084
TT
49302020-05-08 Tom Tromey <tom@tromey.com>
4931
4932 * extension.c (extension_languages): Now a std::array.
4933 (ALL_EXTENSION_LANGUAGES): Remove.
4934 (get_ext_lang_defn, get_ext_lang_of_file)
4935 (eval_ext_lang_from_control_command): Update.
4936 (finish_ext_lang_initialization)
4937 (auto_load_ext_lang_scripts_for_objfile)
4938 (ext_lang_type_printers::ext_lang_type_printers)
4939 (apply_ext_lang_type_printers)
4940 (ext_lang_type_printers::~ext_lang_type_printers)
4941 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4942 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4943 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4944 (get_matching_xmethod_workers, ext_lang_colorize)
4945 (ext_lang_before_prompt): Update.
4946 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4947
596dc4ad
TT
49482020-05-08 Tom Tromey <tom@tromey.com>
4949
4950 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4951 overload.
4952 <swap_string, m_string>: Remove.
4953 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4954 Update.
4955 * stabsread.c (define_symbol, read_type): Update.
4956 * linespec.c (find_linespec_symbols): Update.
4957 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4958 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4959 * dbxread.c (read_dbx_symtab): Update.
4960 * cp-support.h (cp_canonicalize_string_full)
4961 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4962 Return unique_xmalloc_ptr.
4963 * cp-support.c (inspect_type): Update.
4964 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4965 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4966 Likewise.
4967 * c-typeprint.c (print_name_maybe_canonical): Update.
4968 * break-catch-throw.c (check_status_exception_catchpoint):
4969 Update.
4970
bf4cb9be
TV
49712020-05-08 Tom de Vries <tdevries@suse.de>
4972
4973 * infrun.c (follow_fork): Copy current_line and current_symtab to
4974 child thread.
4975
a1b68f28
SM
49762020-05-07 Simon Marchi <simon.marchi@efficios.com>
4977
4978 * async-event.c (struct async_signal_handler, struct
4979 async_event_handler): Reformat, remove typedef.
4980
98d48915
SM
49812020-05-07 Simon Marchi <simon.marchi@efficios.com>
4982
4983 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4984 access thistype->main_type->dyn_prop_list directly.
4985
7aa91313
SM
49862020-05-07 Simon Marchi <simon.marchi@efficios.com>
4987
4988 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
4989 (remove_dyn_prop): Remove. Update all users to use
4990 type::remove_dyn_prop.
4991 * gdbtypes.c (remove_dyn_prop): Rename to...
4992 (type::remove_dyn_prop): ... this.
4993
5c54719c
SM
49942020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
4995
4996 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
4997 (add_dyn_prop): Remove. Update all users to use
4998 type::add_dyn_prop.
4999 * gdbtypes.c (add_dyn_prop): Rename to...
5000 (type::add_dyn_prop): ... this.
5001
24e99c6c
SM
50022020-05-07 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5005 (get_dyn_prop): Remove. Update all users to use
5006 type::dyn_prop.
5007 * gdbtypes.c (get_dyn_prop): Rename to...
5008 (type::dyn_prop): ... this.
5009
0d4bf016
SM
50102020-05-06 Simon Marchi <simon.marchi@efficios.com>
5011
5012 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5013
ac4a4f1c
SM
50142020-05-06 Simon Marchi <simon.marchi@efficios.com>
5015
5016 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5017 instruction, skip it if it's there.
5018
a3bbacc1
SM
50192020-05-05 Simon Marchi <simon.marchi@efficios.com>
5020
5021 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5022
c3236f84
SM
50232020-05-04 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5026 * gdbtypes.c (recursive_dump_type): Remove use of
5027 TYPE_INCOMPLETE.
5028
3b6acaee
TT
50292020-05-03 Tom Tromey <tom@tromey.com>
5030
5031 * breakpoint.c (catch_command, tcatch_command): Remove.
5032 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5033 add_show_prefix_cmd.
5034 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5035 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5036 Remove.
5037 (add_internal_problem_command): Use add_basic_prefix_cmd,
5038 add_show_prefix_cmd.
5039 * mips-tdep.c (set_mipsfpu_command): Remove.
5040 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5041 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5042 (_initialize_index_cache): Use add_basic_prefix_cmd.
5043 * memattr.c (dummy_cmd): Remove.
5044 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5045 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5046 (_initialize_tui_win): Use add_basic_prefix_cmd,
5047 add_show_prefix_cmd.
5048 * cli/cli-logging.c (set_logging_command): Remove.
5049 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5050 add_show_prefix_cmd.
5051 (show_logging_command): Remove.
5052 * target.c (target_command): Remove.
5053 (add_target): Use add_basic_prefix_cmd.
5054
a51119cd
HD
50552020-05-02 Hannes Domani <ssbssa@yahoo.de>
5056
5057 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5058
652fc23a 50592020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5060
652fc23a
PW
5061 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5062 info_command.
5063
117539e6
KR
50642020-04-30 Kamil Rytarowski <n54@gmx.com>
5065
5066 * nbsd-nat.c (nbsd_enable_proc_events)
5067 (nbsd_nat_target::post_startup_inferior): Add.
5068 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5069 (nbsd_nat_target::update_thread_list): Rewrite.
5070 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5071 "PTRACE_LWP_CREATE".
5072 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5073
102e38eb 50742020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5075
102e38eb
PW
5076 * stack.c (_initialize_stack): Remove duplicated creation
5077 of "frame" command and "f" alias.
5078
ee9d1e5f
HD
50792020-04-30 Hannes Domani <ssbssa@yahoo.de>
5080
5081 PR gdb/18706
5082 * gdbtypes.c (check_typedef): Calculate size of array of
5083 stubbed type.
5084
627c7fb8
HD
50852020-04-30 Hannes Domani <ssbssa@yahoo.de>
5086
5087 PR gdb/15559
5088 * i386-tdep.c (i386_push_dummy_call): Call
5089 i386_thiscall_push_dummy_call.
5090 (i386_thiscall_push_dummy_call): New function.
5091 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5092 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5093 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5094
ffc2844e
SM
50952020-04-29 Simon Marchi <simon.marchi@efficios.com>
5096
5097 * gdbarch.sh (do_read): Add shellcheck disable directive for
5098 warning SC2162.
5099
1207375d
SM
51002020-04-29 Simon Marchi <simon.marchi@efficios.com>
5101
5102 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5103 "referenced but not assigned" warning.
5104
9fdb2916
SM
51052020-04-29 Simon Marchi <simon.marchi@efficios.com>
5106
5107 * gdbarch.sh: Remove code that sets fallbackdefault.
5108
759cea5e
SM
51092020-04-29 Simon Marchi <simon.marchi@efficios.com>
5110
5111 * gdbarch.sh: Use shell operators && and || instead of
5112 -a and -o.
5113
cb02ab24
SM
51142020-04-29 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * gdbarch.sh: Use $(...) instead of `...`.
5117
a6fc5ffc
SM
51182020-04-29 Simon Marchi <simon.marchi@efficios.com>
5119
5120 * gdbarch.sh: Use double quotes around variables.
5121
8d113d13
SM
51222020-04-29 Simon Marchi <simon.marchi@efficios.com>
5123
5124 * gdbarch.sh: Use %s with printf, instead of variables in the
5125 format string.
5126
ed6acedd
TT
51272020-04-29 Tom Tromey <tromey@adacore.com>
5128
5129 PR ada/25875:
5130 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5131 type fields here.
5132 (read_enumeration_type): Call
5133 update_enumeration_type_from_children later. Update comments.
5134 (process_enumeration_scope): Don't create type fields.
5135
b68b1b58
KR
51362020-04-29 Kamil Rytarowski <n54@gmx.com>
5137
5138 * nbsd-tdep.c: Include "xml-syscall.h".
5139 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5140
f94b2e03
KR
51412020-04-29 Kamil Rytarowski <n54@gmx.com>
5142
5143 * nbsd-nat.c: Include "sys/wait.h".
5144 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5145 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5146 (nbsd_nat_target::remove_exec_catchpoint)
5147 (nbsd_nat_target::set_syscall_catchpoint): Add.
5148 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5149 (nbsd_nat_target::insert_exec_catchpoint)
5150 (nbsd_nat_target::remove_exec_catchpoint)
5151 (nbsd_nat_target::set_syscall_catchpoint): Add.
5152 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5153 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5154 `nbsd_get_syscall_number'.
5155
fc49bc72
TT
51562020-04-29 Tom Tromey <tom@tromey.com>
5157
5158 * stack.c (print_block_frame_labels): Remove.
5159
d642b692
HD
51602020-04-29 Hannes Domani <ssbssa@yahoo.de>
5161
5162 PR gdb/17320
5163 * ada-valprint.c (val_print_packed_array_elements): Move array
5164 end bracket to new line.
5165 (ada_val_print_string): Remove extra spaces before first array
5166 element.
5167 * c-valprint.c (c_value_print_array): Likewise.
5168 * m2-valprint.c (m2_print_array_contents): Likewise.
5169 (m2_value_print_inner): Likewise.
5170 * p-valprint.c (pascal_value_print_inner): Likewise.
5171 * valprint.c (generic_val_print_array): Likewise.
5172 (value_print_array_elements): Move first array element and array
5173 end bracket to new line.
5174
ea90f227
TV
51752020-04-29 Tom de Vries <tdevries@suse.de>
5176
5177 PR symtab/25889
5178 * linespec.c (find_method): Fix ix calculation.
5179
4498ef4f
KR
51802020-04-28 Kamil Rytarowski <n54@gmx.com>
5181
5182 * syscalls/update-netbsd.sh: New file.
5183 * syscalls/netbsd.xml: Regenerate.
5184 * data-directory/Makefile.in: Register `netbsd.xml' in
5185 `SYSCALLS_FILES'.
5186
a55e30b5
SM
51872020-04-28 Simon Marchi <simon.marchi@efficios.com>
5188
5189 * syscalls/update-freebsd.sh: Add double quotes.
5190
2b2fbab8
TT
51912020-04-28 Tom Tromey <tom@tromey.com>
5192
5193 * NEWS: Update.
5194 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5195 (cmdpy_init): Allow class_tui.
5196
a65189c9
TV
51972020-04-28 Mark Williams <mark@myosotissp.com>
5198
5199 PR gdb/24480
5200 * dwarf2read.c: Add missing assingments to list_in_scope when
5201 start_symtab was already called.
5202
1b95cdb7
SM
52032020-04-28 Simon Marchi <simon.marchi@efficios.com>
5204
5205 PR gdb/25881
5206 * dwarf2/read.c (offset_map_type): Use
5207 gdb:hash_enum<sect_offset> as hash function.
5208
15cd93d0
TV
52092020-04-28 Tom de Vries <tdevries@suse.de>
5210
5211 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5212 with DW_AT_signature.
5213
1eb39914
SM
52142020-04-27 Simon Marchi <simon.marchi@efficios.com>
5215
5216 * configure.ac: Remove check for fs_base/gs_base in
5217 user_regs_struct.
5218 * configure: Re-generate.
5219 * config.in: Re-generate.
5220 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5221 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5222 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5223
991a3e2e
LM
52242020-04-27 Luis Machado <luis.machado@linaro.org>
5225
5226 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5227 problematic inline frame unwinding situation.
5228 * frame.c (frame_id_computed_p): New function.
5229 * frame.h (frame_id_computed_p): New prototype.
5230
361ba0e8
TT
52312020-04-26 Tom Tromey <tom@tromey.com>
5232
5233 * command.h (enum command_class) <class_pseudo>: Remove.
5234
bc3609fd
PW
52352020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5236
5237 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5238 and whitespace.
5239
b9771db7
KR
52402020-04-25 Kamil Rytarowski <n54@gmx.com>
5241
ec16513e
SM
5242 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5243 `PT_GET_PROCESS_STATE' block.
b9771db7 5244
7151c1af
TT
52452020-04-24 Tom Tromey <tom@tromey.com>
5246
5247 * symtab.h (symbol_get_demangled_name): Don't declare.
5248 * symtab.c (symbol_get_demangled_name): Remove.
5249 (general_symbol_info::natural_name)
5250 (general_symbol_info::demangled_name): Update.
5251
906bb4c5
TT
52522020-04-24 Tom Tromey <tom@tromey.com>
5253
5254 PR rust/25025:
5255 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5256
bcfe6157
TT
52572020-04-24 Tom Tromey <tom@tromey.com>
5258
5259 PR symtab/12707:
5260 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5261 exists.
5262 (new_symbol): Likewise.
5263 * compile/compile-object-load.c (get_out_value_type): Use
5264 symbol_matches_search_name.
5265
f049a313
TT
52662020-04-24 Tom Tromey <tom@tromey.com>
5267
5268 * dwarf2/read.c (add_partial_symbol): Do not call
5269 compute_and_set_names.
5270
76e288d1
TT
52712020-04-24 Tom Tromey <tom@tromey.com>
5272
5273 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5274 overload.
5275
2467f4f6
TT
52762020-04-24 Tom Tromey <tom@tromey.com>
5277
5278 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5279 (add_psymbol_to_list): New overload. Make old overload call new
5280 one.
5281 * psympriv.h (add_psymbol_to_list): New overload.
5282
e61108c9
TT
52832020-04-24 Tom Tromey <tom@tromey.com>
5284
5285 * dwarf2/read.c (partial_die_info::read) <case
5286 DW_AT_linkage_name>: Use value_as_string.
5287 (dwarf2_string_attr): Use value_as_string.
5288 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5289 method.
5290 * dwarf2/attribute.c (attribute::value_as_string): New method.
5291
8c87a452
TT
52922020-04-24 Tom Tromey <tom@tromey.com>
5293
5294 * symtab.c (general_symbol_info::natural_name)
5295 (general_symbol_info::demangled_name): Check for language_rust.
5296
787de330
TT
52972020-04-24 Tom Tromey <tom@tromey.com>
5298
5299 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5300 (dwarf2_physname): ... from here.
5301 (partial_die_info::read): Add Rust "{" hack.
5302
ff985671
TT
53032020-04-24 Tom Tromey <tom@tromey.com>
5304
5305 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5306 method.
5307 (symbol_set_demangled_name): Don't declare.
5308 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5309 symbol_set_demangled_name.
5310 (general_symbol_info::set_language)
5311 (general_symbol_info::compute_and_set_names): Update.
5312 * minsyms.c (minimal_symbol_reader::install): Update.
5313 * dwarf2/read.c (new_symbol): Update.
5314
1acda803
TT
53152020-04-24 Tom Tromey <tromey@adacore.com>
5316
5317 PR python/23662:
5318 * python/py-type.c (convert_field): Handle
5319 FIELD_LOC_KIND_DWARF_BLOCK.
5320 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5321 (typy_get_dynamic): Nw function.
5322 (type_object_getset): Add "dynamic".
5323 * NEWS: Add entry.
5324
d656f129
TT
53252020-04-24 Tom Tromey <tromey@adacore.com>
5326
5327 * ada-typeprint.c (print_choices, print_variant_part)
5328 (print_record_field_types_dynamic): New functions.
5329 (print_record_field_types): Use print_record_field_types_dynamic.
5330
7d79de9a
TT
53312020-04-24 Tom Tromey <tromey@adacore.com>
5332
5333 * dwarf2/read.c (handle_data_member_location): New overload.
5334 (dwarf2_add_field): Use it.
5335 (decode_locdesc): Add "computed" parameter. Update comment.
5336 * gdbtypes.c (is_dynamic_type_internal): Also look for
5337 FIELD_LOC_KIND_DWARF_BLOCK.
5338 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5339 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5340 virtual base classes.
5341 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5342 FIELD_LOC_KIND_DWARF_BLOCK.
5343
f8e89861
TT
53442020-04-24 Tom Tromey <tromey@adacore.com>
5345
5346 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5347 * gdbtypes.c (is_dynamic_type_internal): Check
5348 TYPE_HAS_DYNAMIC_LENGTH.
5349 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5350 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5351 New macros.
5352 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5353 constant.
5354
9c6a1327
TT
53552020-04-24 Tom Tromey <tromey@adacore.com>
5356
5357 * dwarf2/read.c (struct variant_field): Rewrite.
5358 (struct variant_part_builder): New.
5359 (struct nextfield): Remove "variant" field. Add "offset".
5360 (struct field_info): Add "current_variant_part" and
5361 "variant_parts".
5362 (alloc_discriminant_info): Remove.
5363 (alloc_rust_variant): New function.
5364 (quirk_rust_enum): Update.
5365 (dwarf2_add_field): Set "offset" member. Don't handle
5366 DW_TAG_variant_part.
5367 (offset_map_type): New typedef.
5368 (convert_variant_range, create_one_variant)
5369 (create_one_variant_part, create_variant_parts)
5370 (add_variant_property): New functions.
5371 (dwarf2_attach_fields_to_type): Call add_variant_property.
5372 (read_structure_type): Don't handle DW_TAG_variant_part.
5373 (handle_variant_part, handle_variant): New functions.
5374 (handle_struct_member_die): Use them.
5375 (process_structure_scope): Don't handle variant parts.
5376 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5377 (struct discriminant_info): Remove.
5378 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5379 (struct main_type) <flag_discriminated_union>: Remove.
5380 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5381 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5382 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5383 Update.
5384 * valops.c (value_union_variant): Remove.
5385 * value.h (value_union_variant): Don't declare.
5386
b249d2c2
TT
53872020-04-24 Tom Tromey <tromey@adacore.com>
5388
5389 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5390 (ada_value_primitive_packed_val): Update.
5391 * ada-valprint.c (ada_value_print_1): Update.
5392 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5393 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5394 just an address. Use evaluate_for_locexpr_baton.
5395 (dwarf2_evaluate_property): Update.
5396 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5397 array_view.
5398 * findvar.c (default_read_var_value): Update.
5399 * gdbtypes.c (compute_variant_fields_inner)
5400 (resolve_dynamic_type_internal): Update.
5401 (resolve_dynamic_type): Change type of valaddr parameter.
5402 * gdbtypes.h (resolve_dynamic_type): Update.
5403 * valarith.c (value_subscripted_rvalue): Update.
5404 * value.c (value_from_contents_and_address): Update.
5405
61122aa9
TT
54062020-04-24 Tom Tromey <tromey@adacore.com>
5407
5408 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5409 "push_initial_value" parameter.
5410 (dwarf2_evaluate_property): Likewise.
5411 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5412
ef83a141
TT
54132020-04-24 Tom Tromey <tromey@adacore.com>
5414
5415 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5416 (variant::matches, compute_variant_fields_recurse)
5417 (compute_variant_fields_inner, compute_variant_fields): New
5418 functions.
5419 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5420 Use resolved_type after type is made.
5421 (operator==): Add new cases.
5422 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5423 (struct discriminant_range, struct variant, struct variant_part):
5424 New.
5425 (union dynamic_prop_data) <variant_parts, original_type>: New
5426 members.
5427 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5428 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5429 constants.
5430 * value.c (unpack_bits_as_long): Now public.
5431 * value.h (unpack_bits_as_long): Declare.
5432
675127ec
TT
54332020-04-24 Tom Tromey <tromey@adacore.com>
5434
5435 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5436 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5437
9852ceef
HD
54382020-04-24 Hannes Domani <ssbssa@yahoo.de>
5439
5440 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5441
7632c6ce
KR
54422020-04-24 Kamil Rytarowski <n54@gmx.com>
5443
5444 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5445 (remove_fork_catchpoint, post_startup_inferior)
5446 (post_attach): Move...
5447 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5448 (remove_fork_catchpoint, post_startup_inferior)
5449 (post_attach): ...here.
5450 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5451 (remove_fork_catchpoint, post_startup_inferior)
5452 (post_attach): Move...
5453 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5454 (remove_fork_catchpoint, post_startup_inferior)
5455 (post_attach): ...here.
5456
7be2bb4f
TT
54572020-04-24 Tom Tromey <tromey@adacore.com>
5458
5459 * nat/windows-nat.h (struct windows_thread_info)
5460 <pc_adjusted>: New member.
5461 * windows-nat.c (windows_fetch_one_register): Check
5462 pc_adjusted.
5463 (windows_nat_target::get_windows_debug_event)
5464 (windows_nat_target::wait): Set pc_adjusted.
5465
f80cb3b4
TV
54662020-04-24 Tom de Vries <tdevries@suse.de>
5467
5468 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5469 Run gdb-add-index inside temp dir.
5470
29514b87
TT
54712020-04-23 Tom Tromey <tromey@adacore.com>
5472
5473 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5474 in loop.
5475
5939967b
LM
54762020-04-23 Luis Machado <luis.machado@linaro.org>
5477
5478 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5479 get_frame_register instead of gdbarch_unwind_pc.
5480
70bc38f5
TV
54812020-04-23 Tom de Vries <tdevries@suse.de>
5482
5483 * symtab.c (lookup_global_symbol): Prefer def over decl.
5484
de82891c
TV
54852020-04-23 Tom de Vries <tdevries@suse.de>
5486
5487 PR symtab/25807
5488 * block.c (best_symbol, better_symbol): Promote to external.
5489 * block.h (best_symbol, better_symbol): Declare.
5490 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5491 decl.
5492
ecc6c606
TT
54932020-04-23 Tom Tromey <tromey@adacore.com>
5494
5495 PR ada/25837:
5496 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5497 "const char *", not a "const std::string &".
5498 <name_and_matcher::operator==>: Update.
5499 * unittests/lookup_name_info-selftests.c: Change type of
5500 "result".
5501
740480b8
TT
55022020-04-23 Tom Tromey <tom@tromey.com>
5503
5504 * inferior.h (iterate_over_inferiors): Don't declare.
5505 * inferior.c (iterate_over_inferiors): Remove.
5506 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5507 Remove.
5508 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5509 use iterate_over_inferiors.
5510 (darwin_resume_inferior_it)
5511 (struct resume_inferior_threads_param)
5512 (darwin_resume_inferior_threads_it): Remove.
5513 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5514
ae3ab1f0
TV
55152020-04-23 Tom de Vries <tdevries@suse.de>
5516
5517 * blockframe.c (find_pc_partial_function): Use
5518 find_pc_sect_compunit_symtab rather than
5519 objfile->sf->qf->find_pc_sect_compunit_symtab.
5520
317d2668
TV
55212020-04-22 Tom de Vries <tdevries@suse.de>
5522
5523 PR symtab/25764
5524 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5525 in psymtabs.
5526
eea9e357
TV
55272020-04-22 Tom de Vries <tdevries@suse.de>
5528
5529 PR symtab/25801
5530 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5531 symtabs.
5532
3d5afab3
TV
55332020-04-22 Tom de Vries <tdevries@suse.de>
5534
5535 PR symtab/25700
5536 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5537 CU if already created.
5538
d43b7a2d
TBA
55392020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5540
5541 * infrun.c (displaced_step_fixup): Switch to the event_thread
5542 before calling displaced_step_restore, not after.
5543
d89edf9b
MM
55442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5545
5546 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5547 its inferior is not recorded by us.
5548 (record_btrace_target_open): Replace call to
5549 all_non_exited_threads () with call to current_inferior
5550 ()->non_exited_threads ().
5551 (record_btrace_target::stop_recording): Likewise.
5552 (record_btrace_target::close): Likewise.
5553 (record_btrace_target::wait): Likewise.
5554 (record_btrace_target::record_stop_replaying): Likewise.
5555
5897fd49
MM
55562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5557
5558 * btrace.c (btrace_enable): Throw an error on double enables and
5559 when enabling recording fails.
5560 (btrace_disable): Throw an error if the thread is not recorded.
5561
1a476b6d
MM
55622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5563
5564 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5565 request if we do not have a thread_info.
5566
4778a5f8
TV
55672020-04-21 Tom de Vries <tdevries@suse.de>
5568
5569 PR gdb/25471
5570 * thread.c
5571 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5572 exception in get_frame_id.
5573
0fa7617d
TT
55742020-04-20 Tom Tromey <tromey@adacore.com>
5575
5576 * python/python.c (struct gdbpy_event): Mark move constructor as
5577 noexcept.
5578 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5579 constructor as noexcept.
5580 * completer.h (struct completion_result): Mark move constructor as
5581 noexcept.
5582 * completer.c (completion_result::completion_result): Use
5583 initialization style. Don't call reset_match_list.
5584
ad23bda0
MS
55852020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5586
5587 * MAINTAINERS (Write After Approval): Add myself.
5588
45e1f031
TT
55892020-04-18 Tom Tromey <tom@tromey.com>
5590
5591 * windows-tdep.c (init_w32_command_list)
5592 (w32_prefix_command_valid): Restore.
5593 (_initialize_windows_tdep): Call init_w32_command_list.
5594
08feed99
TT
55952020-04-18 Tom Tromey <tom@tromey.com>
5596
5597 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5598 * value.c (value_fn_field): Update.
5599 * valops.c (find_function_in_inferior)
5600 (value_allocate_space_in_inferior): Update.
5601 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5602 Update.
5603 * tui/tui-source.c (tui_source_window::set_contents): Update.
5604 * symtab.c (lookup_global_or_static_symbol)
5605 (find_function_start_sal_1, skip_prologue_sal)
5606 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5607 * symmisc.c (dump_msymbols, dump_symtab_1)
5608 (maintenance_print_one_line_table): Update.
5609 * symfile.c (init_entry_point_info, section_is_mapped)
5610 (list_overlays_command, simple_read_overlay_table)
5611 (simple_overlay_update_1): Update.
5612 * stap-probe.c (handle_stap_probe): Update.
5613 * stabsread.c (dbx_init_float_type, define_symbol)
5614 (read_one_struct_field, read_enum_type, read_range_type): Update.
5615 * source.c (info_line_command): Update.
5616 * python/python.c (gdbpy_source_objfile_script)
5617 (gdbpy_execute_objfile_script): Update.
5618 * python/py-type.c (save_objfile_types): Update.
5619 * python/py-objfile.c (py_free_objfile): Update.
5620 * python/py-inferior.c (python_new_objfile): Update.
5621 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5622 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5623 (maintenance_check_psymtabs): Update.
5624 * printcmd.c (info_address_command): Update.
5625 * objfiles.h (struct objfile) <arch>: New method, from
5626 get_objfile_arch.
5627 (get_objfile_arch): Don't declare.
5628 * objfiles.c (get_objfile_arch): Remove.
5629 (filter_overlapping_sections): Update.
5630 * minsyms.c (msymbol_is_function): Update.
5631 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5632 (output_nondebug_symbol): Update.
5633 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5634 (mdebug_expand_psymtab): Update.
5635 * machoread.c (macho_add_oso_symfile): Update.
5636 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5637 Update.
5638 * linux-fork.c (checkpoint_command): Update.
5639 * linespec.c (convert_linespec_to_sals): Update.
5640 * jit.c (finalize_symtab): Update.
5641 * infrun.c (insert_exception_resume_from_probe): Update.
5642 * ia64-tdep.c (ia64_find_unwind_table): Update.
5643 * hppa-tdep.c (internalize_unwinds): Update.
5644 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5645 Update.
5646 * gcore.c (call_target_sbrk): Update.
5647 * elfread.c (record_minimal_symbol, elf_symtab_read)
5648 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5649 (elf_gnu_ifunc_resolve_by_got): Update.
5650 * dwarf2/read.c (create_addrmap_from_index)
5651 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5652 (read_debug_names_from_section)
5653 (process_psymtab_comp_unit_reader, add_partial_symbol)
5654 (add_partial_subprogram, process_full_comp_unit)
5655 (read_file_scope, read_func_scope, read_lexical_block_scope)
5656 (read_call_site_scope, dwarf2_ranges_read)
5657 (dwarf2_record_block_ranges, dwarf2_add_field)
5658 (mark_common_block_symbol_computed, read_tag_pointer_type)
5659 (read_tag_string_type, dwarf2_init_float_type)
5660 (dwarf2_init_complex_target_type, read_base_type)
5661 (partial_die_info::read, partial_die_info::read)
5662 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5663 (dwarf2_fetch_die_loc_sect_off): Update.
5664 * dwarf2/loc.c (dwarf2_find_location_expression)
5665 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5666 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5667 (dwarf2_loc_desc_get_symbol_read_needs)
5668 (locexpr_describe_location_piece, locexpr_describe_location_1)
5669 (loclist_describe_location): Update.
5670 * dwarf2/index-write.c (write_debug_names): Update.
5671 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5672 * dtrace-probe.c (dtrace_process_dof): Update.
5673 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5674 (process_one_symbol): Update.
5675 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5676 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5677 (coff_read_enum_type): Update.
5678 * cli/cli-cmds.c (edit_command, list_command): Update.
5679 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5680 * breakpoint.c (create_overlay_event_breakpoint)
5681 (create_longjmp_master_breakpoint)
5682 (create_std_terminate_master_breakpoint)
5683 (create_exception_master_breakpoint, get_sal_arch): Update.
5684 * block.c (block_gdbarch): Update.
5685 * annotate.c (annotate_source_line): Update.
5686
0743fc83
TT
56872020-04-17 Tom Tromey <tromey@adacore.com>
5688
5689 * auto-load.c (show_auto_load_cmd): Remove.
5690 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5691 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5692 (maintenance_print_arc_command): Remove.
5693 * tui/tui-win.c (tui_command): Remove.
5694 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5695 * tui/tui-layout.c (tui_layout_command): Remove.
5696 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5697 * python/python.c (user_set_python, user_show_python): Remove.
5698 (_initialize_python): Use add_basic_prefix_cmd,
5699 add_show_prefix_cmd.
5700 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5701 (install_gdb_commands): Use add_basic_prefix_cmd,
5702 add_show_prefix_cmd.
5703 (info_guile_command): Remove.
5704 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5705 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5706 add_show_prefix_cmd.
5707 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5708 Remove do_set and do_show parameters.
5709 * cli/cli-style.c (set_style, show_style): Remove.
5710 (_initialize_cli_style): Use add_basic_prefix_cmd,
5711 add_show_prefix_cmd.
5712 (cli_style_option::add_setshow_commands): Remove do_set and
5713 do_show parameters.
5714 (cli_style_option::add_setshow_commands): Use
5715 add_basic_prefix_cmd, add_show_prefix_cmd.
5716 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5717 (set_style_name): Remove.
5718 * cli/cli-dump.c (dump_command, append_command): Remove.
5719 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5720 (tekhex_dump_command, binary_dump_command)
5721 (binary_append_command): Remove.
5722 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5723 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5724 (init_w32_command_list): Remove; move into ...
5725 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5726 * valprint.c (set_print, show_print, set_print_raw)
5727 (show_print_raw): Remove.
5728 (_initialize_valprint): Use add_basic_prefix_cmd,
5729 add_show_prefix_cmd.
5730 * typeprint.c (set_print_type, show_print_type): Remove.
5731 (_initialize_typeprint): Use add_basic_prefix_cmd,
5732 add_show_prefix_cmd.
5733 * record.c (set_record_command, show_record_command): Remove.
5734 (_initialize_record): Use add_basic_prefix_cmd,
5735 add_show_prefix_cmd.
5736 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5737 add_show_prefix_cmd.
5738 (info_command, show_command, set_debug, show_debug): Remove.
5739 * top.h (set_history, show_history): Don't declare.
5740 * top.c (set_history, show_history): Remove.
5741 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5742 (unset_tdesc_cmd): Remove.
5743 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5744 add_show_prefix_cmd.
5745 * symtab.c (info_module_command): Remove.
5746 (_initialize_symtab): Use add_basic_prefix_cmd.
5747 * symfile.c (overlay_command): Remove.
5748 (_initialize_symfile): Use add_basic_prefix_cmd.
5749 * sparc64-tdep.c (info_adi_command): Remove.
5750 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5751 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5752 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5753 add_show_prefix_cmd.
5754 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5755 (_initialize_serial): Use add_basic_prefix_cmd,
5756 add_show_prefix_cmd.
5757 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5758 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5759 add_show_prefix_cmd.
5760 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5761 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5762 add_show_prefix_cmd.
5763 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5764 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5765 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5766 add_show_prefix_cmd.
5767 * remote.c (remote_command, set_remote_cmd): Remove.
5768 (_initialize_remote): Use add_basic_prefix_cmd.
5769 * record-full.c (set_record_full_command)
5770 (show_record_full_command): Remove.
5771 (_initialize_record_full): Use add_basic_prefix_cmd,
5772 add_show_prefix_cmd.
5773 * record-btrace.c (cmd_set_record_btrace)
5774 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5775 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5776 (cmd_show_record_btrace_pt): Remove.
5777 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5778 add_show_prefix_cmd.
5779 * ravenscar-thread.c (set_ravenscar_command)
5780 (show_ravenscar_command): Remove.
5781 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5782 add_show_prefix_cmd.
5783 * mips-tdep.c (show_mips_command, set_mips_command)
5784 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5785 add_show_prefix_cmd.
5786 * maint.c (maintenance_command, maintenance_info_command)
5787 (maintenance_check_command, maintenance_print_command)
5788 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5789 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5790 add_show_prefix_cmd.
5791 (show_per_command_cmd): Remove.
5792 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5793 Remove.
5794 (maintenance_show_test_settings_cmd): Remove.
5795 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5796 add_show_prefix_cmd.
5797 * maint-test-options.c (maintenance_test_options_command):
5798 Remove.
5799 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5800 * macrocmd.c (macro_command): Remove
5801 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5802 * language.c (set_check, show_check): Remove.
5803 (_initialize_language): Use add_basic_prefix_cmd,
5804 add_show_prefix_cmd.
5805 * infcmd.c (unset_command): Remove.
5806 (_initialize_infcmd): Use add_basic_prefix_cmd.
5807 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5808 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5809 add_show_prefix_cmd.
5810 * go32-nat.c (go32_info_dos_command): Remove.
5811 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5812 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5813 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5814 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5815 (_initialize_frame): Use add_basic_prefix_cmd,
5816 add_show_prefix_cmd.
5817 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5818 (_initialize_dcache): Use add_basic_prefix_cmd,
5819 add_show_prefix_cmd.
5820 * cp-support.c (maint_cplus_command): Remove.
5821 (_initialize_cp_support): Use add_basic_prefix_cmd.
5822 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5823 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5824 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5825 add_basic_prefix_cmd, add_show_prefix_cmd.
5826 * breakpoint.c (save_command): Remove.
5827 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5828 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5829 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5830 add_show_prefix_cmd.
5831 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5832 (set_ada_command, show_ada_command): Remove.
5833 (_initialize_ada_language): Use add_basic_prefix_cmd,
5834 add_show_prefix_cmd.
5835 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5836
3557f442
KR
58372020-04-16 Kamil Rytarowski <n54@gmx.com>
5838
5839 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5840 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5841
16197208
SM
58422020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5843
5844 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5845 warning messages.
5846
00ac85d3
SM
58472020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5848
5849 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5850 import table is not at beginning of .idata section.
5851
381ce63f
PA
58522020-04-16 Pedro Alves <palves@redhat.com>
5853
5854 * inferior.c (delete_inferior): Use delete operator directly
5855 instead of delete_program_space.
5856 * progspace.c (add_program_space): New, factored out from
5857 program_space::program_space.
5858 (remove_program_space): New, factored out from
5859 delete_program_space.
5860 (program_space::program_space): Remove intro comment. Rewrite.
5861 (program_space::~program_space): Remove intro comment. Call
5862 remove_program_space.
5863 (delete_program_space): Delete.
5864 * progspace.h (program_space::program_space): Make explicit. Move
5865 intro comment here, adjusted.
5866 (program_space::~program_space): Move intro comment here,
5867 adjusted.
5868 (delete_program_space): Remove.
5869
a010605f
TT
58702020-04-16 Tom Tromey <tromey@adacore.com>
5871
5872 * windows-nat.c (windows_nat::handle_access_violation): New
5873 function.
5874 * nat/windows-nat.h (handle_access_violation): Declare.
5875 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5876 windows-nat.c. Call handle_access_violation.
5877
efba5c23
TV
58782020-04-16 Tom de Vries <tdevries@suse.de>
5879
5880 PR symtab/25791
5881 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5882 CUs without psymtab.
5883
97ed802d
KB
58842020-04-16 Kevin Buettner <kevinb@redhat.com>
5885
5886 * python/python.c (do_start_initialization): Don't call
5887 PyEval_InitThreads for Python 3.9 and beyond.
5888
c7d64809
KR
58892020-04-15 Kamil Rytarowski <n54@gmx.com>
5890
5891 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5892 thread functions.
5893 (obsd_nat_target::wait): Likewise.
5894
ce127a96
TT
58952020-04-15 Tom Tromey <tromey@adacore.com>
5896
5897 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5898 (DEBUG_EXCEPT): Use debug_printf.
5899
99f1bc6a
AB
59002020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5901
5902 * completer.c (class completion_tracker::completion_hash_entry)
5903 <hash_name>: New member function.
5904 (completion_tracker::discard_completions): New callback to hash a
5905 completion_hash_entry, pass this to htab_create_alloc.
5906
a0e9b532
JT
59072016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5908
5909 * windows-nat.c (windows_make_so): Warn rather than stopping with
5910 an error if realpath() fails.
5911
06ca5dd4
KR
59122020-04-14 Kamil Rytarowski <n54@gmx.com>
5913
5914 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5915 (nbsd_nat_target::info_proc): Add do_status.
5916
194d088f
TV
59172020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5918 Tom de Vries <tdevries@suse.de>
5919
5920 PR symtab/25718
5921 * psympriv.h (struct partial_symtab::read_symtab)
5922 (struct partial_symtab::expand_psymtab)
5923 (struct partial_symtab::read_dependencies): Update comments.
5924 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5925 read_symtab for includer.
5926 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5927 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5928 (struct dwarf2_include_psymtab::m_readin): Remove.
5929 (struct dwarf2_include_psymtab::includer): New member function.
5930 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5931
c1a66c06
TV
59322020-04-14 Tom de Vries <tdevries@suse.de>
5933
5934 PR symtab/25720
5935 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5936 with NULL symbol_matcher and lookup_name.
5937 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5938 and lookup_name.
5939 * dwarf2/read.c (dw2_expand_symtabs_matching)
5940 (dw2_debug_names_expand_symtabs_matching): Same.
5941 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5942 Make lookup_name a pointer. Update comment.
5943 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5944 lookup_name being a pointer.
5945 * symfile.c (expand_symtabs_matching): Same.
5946 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5947 * linespec.c (iterate_over_all_matching_symtabs): Same.
5948
400b5eca
TT
59492020-04-13 Tom Tromey <tom@tromey.com>
5950
5951 * run-on-main-thread.c: Update include.
5952 * unittests/main-thread-selftests.c: Update include.
5953 * tui/tui-win.c: Update include.
5954 * tui/tui-io.c: Update include.
5955 * tui/tui-interp.c: Update include.
5956 * tui/tui-hooks.c: Update include.
5957 * top.h: Update include.
5958 * top.c: Update include.
5959 * ser-base.c: Update include.
5960 * remote.c: Update include.
5961 * remote-notif.c: Update include.
5962 * remote-fileio.c: Update include.
5963 * record-full.c: Update include.
5964 * record-btrace.c: Update include.
5965 * python/python.c: Update include.
5966 * posix-hdep.c: Update include.
5967 * mingw-hdep.c: Update include.
5968 * mi/mi-main.c: Update include.
5969 * mi/mi-interp.c: Update include.
5970 * main.c: Update include.
5971 * linux-nat.c: Update include.
5972 * interps.c: Update include.
5973 * infrun.c: Update include.
5974 * inf-loop.c: Update include.
5975 * event-top.c: Update include.
5976 * event-loop.c: Move to ../gdbsupport/.
5977 * event-loop.h: Move to ../gdbsupport/.
5978 * async-event.h: Update include.
5979 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5980
93b54c8e
TT
59812020-04-13 Tom Tromey <tom@tromey.com>
5982
5983 * tui/tui-win.c: Include async-event.h.
5984 * remote.c: Include async-event.h.
5985 * remote-notif.c: Include async-event.h.
5986 * record-full.c: Include async-event.h.
5987 * record-btrace.c: Include async-event.h.
5988 * infrun.c: Include async-event.h.
5989 * event-top.c: Include async-event.h.
5990 * event-loop.h: Move some declarations to async-event.h.
5991 * event-loop.c: Don't include ser-event.h or top.h. Move some
5992 code to async-event.c.
5993 * async-event.h: New file.
5994 * async-event.c: New file.
5995 * Makefile.in (COMMON_SFILES): Add async-event.c.
5996 (HFILES_NO_SRCDIR): Add async-event.h.
5997
c1cd3163
TT
59982020-04-13 Tom Tromey <tom@tromey.com>
5999
6000 * utils.c (flush_streams): New function.
6001 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6002
29f2bf4f
TT
60032020-04-13 Tom Tromey <tom@tromey.com>
6004
6005 * event-loop.c (handle_file_event): Use warning, not
6006 printf_unfiltered.
6007
98029d02
TT
60082020-04-13 Tom Tromey <tom@tromey.com>
6009
6010 * event-loop.c: Include <chrono>.
6011
06cc9596
TT
60122020-04-13 Tom Tromey <tom@tromey.com>
6013
6014 * gdb_select.h: Move to ../gdbsupport/.
6015 * event-loop.c: Update include path.
6016 * top.c: Update include path.
6017 * ser-base.c: Update include path.
6018 * ui-file.c: Update include path.
6019 * ser-tcp.c: Update include path.
6020 * guile/scm-ports.c: Update include path.
6021 * posix-hdep.c: Update include path.
6022 * ser-unix.c: Update include path.
6023 * gdb_usleep.c: Update include path.
6024 * mingw-hdep.c: Update include path.
6025 * inflow.c: Update include path.
6026 * infrun.c: Update include path.
6027 * event-top.c: Update include path.
6028
8ae8e197
TT
60292020-04-13 Tom Tromey <tom@tromey.com>
6030
6031 * configure: Rebuild.
6032 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6033
58cf28e8
TT
60342020-04-13 Tom Tromey <tom@tromey.com>
6035
6036 * event-loop.h (start_event_loop): Don't declare.
6037 * event-loop.c (start_event_loop): Move...
6038 * main.c (start_event_loop): ...here. Now static.
6039
b7f999ae
SDJ
60402020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6041
6042 * MAINTAINERS: Update my email address.
6043
1085dfd4
KR
60442020-04-12 Kamil Rytarowski <n54@gmx.com>
6045
6046 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6047 IP_ALL.
6048
49d1d1f5
KR
60492020-04-12 Kamil Rytarowski <n54@gmx.com>
6050
6051 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6052 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6053
b4848d2a
KR
60542020-04-12 Kamil Rytarowski <n54@gmx.com>
6055
6056 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6057 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6058
51c133d5
KR
60592020-04-12 Kamil Rytarowski <n54@gmx.com>
6060
6061 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6062
54b8cbd0
KR
60632020-04-11 Kamil Rytarowski <n54@gmx.com>
6064
6065 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6066 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6067 (nbsd_nat_target::info_proc): New functions.
6068 * nbsd-nat.c (kinfo_get_vmmap): New function.
6069 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6070 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6071 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6072 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6073 functions.
6074 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6075 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6076 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6077 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6078 (KINFO_VME_FLAG_GROWS_DOWN): New.
6079
cf83625d
AS
60802020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6081
6082 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6083 bit shift.
6084
0c4311ab
TT
60852020-04-10 Tom Tromey <tromey@adacore.com>
6086
6087 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6088
3e65b3e9
TT
60892020-04-10 Tom Tromey <tromey@adacore.com>
6090
6091 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6092 separate debug files.
6093
13302e95
HD
60942020-04-10 Hannes Domani <ssbssa@yahoo.de>
6095
6096 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6097 Move to...
6098 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6099 ... here.
6100 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6101 Check for STATUS_WX86_BREAKPOINT.
6102 (windows_nat_target::wait): Same.
6103
bdfc1e8a
TV
61042020-04-10 Tom de Vries <tdevries@suse.de>
6105
6106 PR cli/25808
6107 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6108
f4460aec
SM
61092020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6110
6111 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6112 (Write After Approval): Remove Tom de Vries.
6113
a25198bb
BE
61142020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6115
6116 revert partially:
6117 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6118
aac66a4c
SM
6119 * buildsym.c (record_line): Fix undefined behavior and preserve
6120 lines at eof.
a25198bb 6121
206c98a6
KR
61222020-04-09 Kamil Rytarowski <n54@gmx.com>
6123
6124 * auxv.h (svr4_auxv_parse): New.
6125 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6126 and generic_auxv_parse.
6127 (svr4_auxv_parse): Add.
6128 * obsd-tdep.c: Include "auxv.h".
6129 (obsd_auxv_parse): Remove.
6130 (obsd_init_abi): Remove comment.
6131 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6132 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6133 * nbsd-tdep.c: Include "auxv.h".
6134 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6135
71fbdbaf
TT
61362020-04-08 Tom Tromey <tromey@adacore.com>
6137
6138 * nat/windows-nat.h (last_wait_event): Don't declare.
6139 (wait_for_debug_event): Update comment.
6140 * nat/windows-nat.c (last_wait_event): Now static.
6141
2c1d95e8
TT
61422020-04-08 Tom Tromey <tromey@adacore.com>
6143
6144 * windows-nat.c (wait_for_debug_event): Move to
6145 nat/windows-nat.c.
6146 * nat/windows-nat.h (wait_for_debug_event): Declare.
6147 * nat/windows-nat.c (wait_for_debug_event): Move from
6148 windows-nat.c. No longer static.
6149
d2977bc4
TT
61502020-04-08 Tom Tromey <tromey@adacore.com>
6151
6152 * windows-nat.c (get_windows_debug_event): Use
6153 fetch_pending_stop.
6154 * nat/windows-nat.h (fetch_pending_stop): Declare.
6155 * nat/windows-nat.c (fetch_pending_stop): New function.
6156
e758e19c
TT
61572020-04-08 Tom Tromey <tromey@adacore.com>
6158
6159 * windows-nat.c (windows_continue): Use matching_pending_stop and
6160 continue_last_debug_event.
6161 * nat/windows-nat.h (matching_pending_stop)
6162 (continue_last_debug_event): Declare.
6163 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6164 (matching_pending_stop, continue_last_debug_event): New
6165 functions.
6166
8d30e395
TT
61672020-04-08 Tom Tromey <tromey@adacore.com>
6168
6169 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6170 (handle_exception_result): Move to nat/windows-nat.h.
6171 (DEBUG_EXCEPTION_SIMPLE): Remove.
6172 (windows_nat::handle_ms_vc_exception): New function.
6173 (handle_exception): Move to nat/windows-nat.c.
6174 (get_windows_debug_event): Update.
6175 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6176 nat/windows-nat.c.
6177 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6178 (handle_exception_result): Move from windows-nat.c.
6179 (handle_exception): Declare.
6180 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6181 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6182 windows-nat.c.
6183
29de418d
TT
61842020-04-08 Tom Tromey <tromey@adacore.com>
6185
6186 * windows-nat.c (exception_count, event_count): Remove.
6187 (handle_exception, get_windows_debug_event)
6188 (do_initial_windows_stuff): Update.
6189
a816ba18
TT
61902020-04-08 Tom Tromey <tromey@adacore.com>
6191
6192 * windows-nat.c (windows_nat::handle_load_dll)
6193 (windows_nat::handle_unload_dll): Rename. No longer static.
6194 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6195 Declare.
6196
a00caa12
TT
61972020-04-08 Tom Tromey <tromey@adacore.com>
6198
6199 * complaints.h (stop_whining): Declare at top-level.
6200 (complaint): Don't declare stop_whining.
6201
d41b524f
TT
62022020-04-08 Tom Tromey <tromey@adacore.com>
6203
6204 * windows-nat.c (windows_nat::handle_output_debug_string):
6205 Rename. No longer static.
6206 * nat/windows-nat.h (handle_output_debug_string): Declare.
6207
3c76026d
TT
62082020-04-08 Tom Tromey <tromey@adacore.com>
6209
6210 * windows-nat.c (current_process_handle, current_process_id)
6211 (main_thread_id, last_sig, current_event, last_wait_event)
6212 (current_windows_thread, desired_stop_thread_id, pending_stops)
6213 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6214 (display_selectors, fake_create_process)
6215 (get_windows_debug_event): Update.
6216 * nat/windows-nat.h (current_process_handle, current_process_id)
6217 (main_thread_id, last_sig, current_event, last_wait_event)
6218 (current_windows_thread, desired_stop_thread_id, pending_stops)
6219 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6220 * nat/windows-nat.c (current_process_handle, current_process_id)
6221 (main_thread_id, last_sig, current_event, last_wait_event)
6222 (current_windows_thread, desired_stop_thread_id, pending_stops)
6223 (siginfo_er): New globals. Move from windows-nat.c.
6224
9d8679cc
TT
62252020-04-08 Tom Tromey <tromey@adacore.com>
6226
6227 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6228 (handle_load_dll): Update.
6229 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6230
28688adf
TT
62312020-04-08 Tom Tromey <tromey@adacore.com>
6232
6233 * windows-nat.c (enum thread_disposition_type): Move to
6234 nat/windows-nat.h.
6235 (windows_nat::thread_rec): Rename from thread_rec. No longer
6236 static.
6237 (windows_add_thread, windows_nat_target::fetch_registers)
6238 (windows_nat_target::store_registers, handle_exception)
6239 (windows_nat_target::resume, get_windows_debug_event)
6240 (windows_nat_target::get_tib_address)
6241 (windows_nat_target::thread_name)
6242 (windows_nat_target::thread_alive): Update.
6243 * nat/windows-nat.h (enum thread_disposition_type): Move from
6244 windows-nat.c.
6245 (thread_rec): Declare.
6246
4834dad0
TT
62472020-04-08 Tom Tromey <tromey@adacore.com>
6248
6249 * windows-nat.c: Add "using namespace".
6250 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6251 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6252
65bafd5b
TT
62532020-04-08 Tom Tromey <tromey@adacore.com>
6254
6255 * nat/windows-nat.h (struct windows_thread_info): Declare
6256 destructor.
6257 * nat/windows-nat.c (~windows_thread_info): New.
6258
0a4afda3
TT
62592020-04-08 Tom Tromey <tromey@adacore.com>
6260
6261 PR gdb/22992
6262 * windows-nat.c (current_event): Update comment.
6263 (last_wait_event, desired_stop_thread_id): New globals.
6264 (struct pending_stop): New.
6265 (pending_stops): New global.
6266 (windows_nat_target) <stopped_by_sw_breakpoint>
6267 <supports_stopped_by_sw_breakpoint>: New methods.
6268 (windows_fetch_one_register): Add assertions. Adjust PC.
6269 (windows_continue): Handle pending stops. Suspend other threads
6270 when stepping. Use last_wait_event
6271 (wait_for_debug_event): New function.
6272 (get_windows_debug_event): Use wait_for_debug_event. Handle
6273 pending stops. Queue spurious stops.
6274 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6275 (windows_nat_target::kill): Use wait_for_debug_event.
6276 * nat/windows-nat.h (struct windows_thread_info)
6277 <stopped_at_software_breakpoint>: New field.
6278 * nat/windows-nat.c (windows_thread_info::resume): Clear
6279 stopped_at_software_breakpoint.
6280
8e61ebec
TT
62812020-04-08 Tom Tromey <tromey@adacore.com>
6282
6283 * windows-nat.c (enum thread_disposition_type): New.
6284 (thread_rec): Replace "get_context" parameter with "disposition";
6285 change type.
6286 (windows_add_thread, windows_nat_target::fetch_registers)
6287 (windows_nat_target::store_registers, handle_exception)
6288 (windows_nat_target::resume, get_windows_debug_event)
6289 (windows_nat_target::get_tib_address)
6290 (windows_nat_target::thread_name)
6291 (windows_nat_target::thread_alive): Update.
6292
98a03287
TT
62932020-04-08 Tom Tromey <tromey@adacore.com>
6294
6295 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6296 (windows_continue): Use windows_continue::resume.
6297 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6298 resume>: Declare new methods.
6299 * nat/windows-nat.c: New file.
6300 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6301
7c7411bc
TT
63022020-04-08 Tom Tromey <tromey@adacore.com>
6303
6304 * windows-nat.c (windows_add_thread, windows_delete_thread)
6305 (windows_nat_target::fetch_registers)
6306 (windows_nat_target::store_registers, fake_create_process)
6307 (windows_nat_target::resume, windows_nat_target::resume)
6308 (get_windows_debug_event, windows_nat_target::wait)
6309 (windows_nat_target::pid_to_str)
6310 (windows_nat_target::get_tib_address)
6311 (windows_nat_target::get_ada_task_ptid)
6312 (windows_nat_target::thread_name)
6313 (windows_nat_target::thread_alive): Use lwp, not tid.
6314
2950fdf7
TT
63152020-04-08 Tom Tromey <tromey@adacore.com>
6316
6317 * windows-nat.c (handle_exception)
6318 (windows_nat_target::thread_name): Update.
6319 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6320 <name>: Now unique_xmalloc_ptr.
6321
62fe396b
TT
63222020-04-08 Tom Tromey <tromey@adacore.com>
6323
6324 * windows-nat.c (thread_rec)
6325 (windows_nat_target::fetch_registers): Update.
6326 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6327 Update comment.
6328 <debug_registers_changed, reload_context>: Now bool.
6329
e9534bd2
TT
63302020-04-08 Tom Tromey <tromey@adacore.com>
6331
6332 * windows-nat.c (windows_add_thread): Use new.
6333 (windows_init_thread_list, windows_delete_thread): Use delete.
6334 (get_windows_debug_event): Update.
6335 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6336 destructor, and initializers.
6337
ae1f8880
TT
63382020-04-08 Tom Tromey <tromey@adacore.com>
6339
6340 * windows-nat.c (struct windows_thread_info): Remove.
6341 * nat/windows-nat.h: New file.
6342
55a1e039
TT
63432020-04-08 Tom Tromey <tromey@adacore.com>
6344
6345 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6346 (thread_rec, windows_add_thread, windows_delete_thread)
6347 (windows_continue): Update.
6348
93366324
TT
63492020-04-08 Tom Tromey <tromey@adacore.com>
6350
6351 * windows-nat.c (struct windows_thread_info): Remove typedef.
6352 (thread_head): Remove.
6353 (thread_list): New global.
6354 (thread_rec, windows_add_thread, windows_init_thread_list)
6355 (windows_delete_thread, windows_continue): Update.
6356
0f2265e2
SM
63572020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6358
6359 * windows-tdep.h (windows_init_abi): Add comment.
6360 (cygwin_init_abi): New declaration.
6361 * windows-tdep.c: Split signal enumeration in two, one for
6362 Windows and one for Cygwin.
6363 (windows_gdb_signal_to_target): Only deal with signal of the
6364 Windows OS ABI.
6365 (cygwin_gdb_signal_to_target): New function.
6366 (windows_init_abi): Rename to windows_init_abi_common, don't set
6367 gdb_signal_to_target gdbarch method. Add new new function with
6368 this name.
6369 (cygwin_init_abi): New function.
6370 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6371 comment. Don't call windows_init_abi.
6372 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6373 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6374 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6375 i386_windows_init_abi_common, don't call windows_init_abi. Add
6376 a new function of this name.
6377 (i386_cygwin_init_abi): New function.
6378 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6379 OS ABI Cygwin.
6380
3810f182
SM
63812020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6382
6383 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6384 parameter.c.
6385 (dwarf2_read_gdb_index): Update.
6386
063f8e80
KR
63872020-04-07 Kamil Rytarowski <n54@gmx.com>
6388
6389 * nbsd-tdep.c: Include "objfiles.h".
6390 (nbsd_skip_solib_resolver): New.
6391 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6392
85a9510c 63932020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6394
6395 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6396 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6397 with DW_LLE_base_addressx are being emitted in DWARFv5.
6398 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6399 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6400 unsigned integer.
6401
9fc3eaae 64022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6403
6404 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6405 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6406 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6407 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6408 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6409 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6410 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6411
6412
41144253 64132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6414
6415 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6416 (read_loclist_index): New function definition.
6417 (lookup_loclist_base): New function definition.
6418 (read_loclist_header): New function definition.
6419 (dwarf2_cu): Add loclist_base and loclist_header field.
6420 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6421 (read_full_die_1): Read the value of DW_AT_loclists_base.
6422 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6423 (read_attribute_value): Handle DW_FORM_loclistx.
6424 (skip_one_die): Handle DW_FORM_loclistx.
6425 (loclist_header): New structure declaration.
6426 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6427
9f4e76a4
SM
64282020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6429
6430 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6431 constructor. Remove `addr` parameter from other constructor and
6432 add `per_cu` parameter.
6433 * dwarf2/read.c (create_partial_symtab): Update.
6434
25c11aca
TV
64352020-04-07 Tom de Vries <tdevries@suse.de>
6436
6437 PR symtab/25796
6438 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6439 (partial_die_info::fixup): Inherit has_const_value.
6440
5707e24b
TV
64412020-04-07 Tom de Vries <tdevries@suse.de>
6442
6443 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6444 symbols without address.
6445
05f00e22
KR
64462020-04-06 Kamil Rytarowski <n54@gmx.com>
6447
6448 * nbsd-nat.h (struct thread_info): Add forward declaration.
6449 (nbsd_nat_target::thread_alive): Add.
6450 (nbsd_nat_target::thread_name): Likewise.
6451 (nbsd_nat_target::update_thread_list): Likewise.
6452 (update_thread_list::post_attach): Likewise.
6453 (post_attach::pid_to_str): Likewise.
6454 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6455 (nbsd_thread_lister): Add.
6456 (nbsd_nat_target::thread_alive): Likewise.
6457 (nbsd_nat_target::thread_name): Likewise.
6458 (nbsd_add_threads): Likewise.
6459 (update_thread_list::post_attach): Likewise.
6460 (nbsd_nat_target::update_thread_list): Likewise.
6461 (post_attach::pid_to_str): Likewise.
6462
6ee448cc
TT
64632020-04-06 Tom Tromey <tromey@adacore.com>
6464
6465 * ada-valprint.c (print_variant_part): Extract the variant field.
6466 (print_field_values): Use the field as the outer value when
6467 recursing.
6468
dea34e8c
TT
64692020-04-06 Tom Tromey <tromey@adacore.com>
6470
6471 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6472 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6473 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6474 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6475 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6476
93689ce9
TT
64772020-04-06 Tom Tromey <tromey@adacore.com>
6478
6479 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6480 TYPE_CODE_ERROR.
6481
79743962
KR
64822020-04-06 Kamil Rytarowski <n54@gmx.com>
6483
6484 * nbsd-tdep.c: Include "gdbarch.h".
6485 Define enum with NetBSD signal numbers.
6486 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6487 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6488 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6489 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6490 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6491 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6492 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6493 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6494 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6495 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6496 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6497 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6498
9e7c9a03
HD
64992020-04-03 Hannes Domani <ssbssa@yahoo.de>
6500
6501 PR gdb/25325
6502 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6503
d9e49b61
TT
65042020-04-03 Tom Tromey <tromey@adacore.com>
6505
6506 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6507 Read constant block.
6508
e0fc5c3f
SM
65092020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6510
6511 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6512 (gdb_bfd_get_full_section_contents): New declaration.
6513 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6514 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6515 gdb_bfd_get_full_section_contents.
6516
e2ff18a0
SM
65172020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6518
6519 * exec.c (build_section_table): Replace internal_error with
6520 gdb_assert.
6521 (section_table_xfer_memory_partial): Likewise.
6522 * mdebugread.c (parse_partial_symbols): Likewise.
6523 * psymtab.c (lookup_partial_symbol): Likewise.
6524 * utils.c (wrap_here): Likewise.
6525
0830d301
TT
65262020-04-02 Tom Tromey <tromey@adacore.com>
6527
6528 * f-lang.c (build_fortran_types): Use arch_type to initialize
6529 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6530
e7da7f8f
TT
65312020-04-02 Tom Tromey <tromey@adacore.com>
6532
6533 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6534 of attributes.
6535
c90d28ac
AB
65362020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6537 Bernd Edlinger <bernd.edlinger@hotmail.de>
6538 Tom Tromey <tromey@adacore.com>
6539
6540 * buildsym.c (buildsym_compunit::record_line): Remove
6541 deduplication code.
6542
1aa98955
TV
65432020-04-02 Tom de Vries <tdevries@suse.de>
6544
6545 PR ada/24671
6546 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6547
d3214198
TV
65482020-04-02 Tom de Vries <tdevries@suse.de>
6549
6550 * dwarf2/read.c (dwarf2_gdb_index_functions,
6551 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6552 NULL.
6553 * psymtab.c (psym_lookup_global_symbol_language): New function.
6554 (psym_functions): Init psym_lookup_global_symbol_language with
6555 psym_lookup_global_symbol_language.
6556 * symfile-debug.c (debug_sym_quick_functions): Init
6557 lookup_global_symbol_language with NULL.
6558 * symfile.c (set_initial_language): Remove fixme comment.
6559 * symfile.h (struct quick_symbol_functions): Add
6560 lookup_global_symbol_language.
6561 * symtab.c (find_quick_global_symbol_language): New function.
6562 (find_main_name): Use find_quick_global_symbol_language.
6563
2836752f
SM
65642020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6565
6566 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6567
64dc2d4b
BE
65682020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6569
6570 * buildsym.c (record_line): Fix undefined behavior and preserve
6571 lines at eof.
6572
bbe3dc41
BE
65732020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6574
6575 * buildsym.c (record_line): Fix the resizing condition.
6576
6b4a335b
TT
65772020-04-01 Tom Tromey <tom@tromey.com>
6578
6579 * value.h (value_literal_complex): Add comment.
6580 * valops.c (value_literal_complex): Refer to value.h.
6581
3638a098
TT
65822020-04-01 Tom Tromey <tom@tromey.com>
6583
6584 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6585 (scalar_type): New rule, from typebase.
6586 (typebase): Use scalar_type. Recognize complex types.
6587 (field_name): Handle FLOAT_KEYWORD.
6588 (ident_tokens): Add _Complex and __complex__.
6589
c34e8714
TT
65902020-04-01 Tom Tromey <tom@tromey.com>
6591
6592 PR exp/25299:
6593 * valarith.c (promotion_type, complex_binop): New functions.
6594 (scalar_binop): Handle complex numbers. Use promotion_type.
6595 (value_pos, value_neg, value_complement): Handle complex numbers.
6596
fa649bb7
TT
65972020-04-01 Tom Tromey <tom@tromey.com>
6598
6599 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6600 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6601 (parse_number): Handle complex numbers.
6602
981c08ce
TT
66032020-04-01 Tom Tromey <tom@tromey.com>
6604
6605 * c-valprint.c (c_decorations): Change complex suffix to "i".
6606
4c99290d
TT
66072020-04-01 Tom Tromey <tom@tromey.com>
6608
6609 * valprint.c (generic_value_print_complex): Use accessors.
6610 * value.h (value_real_part, value_imaginary_part): Declare.
6611 * valops.c (value_real_part, value_imaginary_part): New
6612 functions.
6613 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6614
5b930b45
TT
66152020-04-01 Tom Tromey <tom@tromey.com>
6616
6617 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6618 (read_range_type): Update.
6619 * mdebugread.c (basic_type): Update.
6620 * go-lang.c (build_go_types): Use init_complex_type.
6621 * gdbtypes.h (struct main_type) <complex_type>: New member.
6622 (init_complex_type): Update.
6623 (arch_complex_type): Don't declare.
6624 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6625 Make name if none given. Use alloc_type_copy. Look for cached
6626 complex type.
6627 (arch_complex_type): Remove.
6628 (gdbtypes_post_init): Use init_complex_type.
6629 * f-lang.c (build_fortran_types): Use init_complex_type.
6630 * dwarf2/read.c (read_base_type): Update.
6631 * d-lang.c (build_d_types): Use init_complex_type.
6632 * ctfread.c (read_base_type): Update.
6633
53cccef1
TBA
66342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6635
6636 * infrun.c (stop_all_threads): Update assertion, plus when
6637 stopping threads, take into account that we might be trying
6638 to stop an all-stop target.
6639 (stop_waiting): Call 'stop_all_threads' if there exists a
6640 non-stop target.
6641
a0714d30
TBA
66422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6643
6644 * target.h (exists_non_stop_target): New function declaration.
6645 * target.c (exists_non_stop_target): New function.
6646
60e22c1e
HD
66472020-04-01 Hannes Domani <ssbssa@yahoo.de>
6648
6649 PR gdb/24789
6650 * eval.c (is_integral_or_integral_reference): New function.
6651 (evaluate_subexp_standard): Allow integer references in
6652 pointer arithmetic.
6653
e139a727
TBA
66542020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6655
6656 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6657 check for no ptid in the stop reply when the target is non-stop.
6658
e0802d59
TT
66592020-04-01 Tom Tromey <tromey@adacore.com>
6660
6661 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6662 "name" parameter to rvalue reference. Initialize m_name_holder.
6663 <lookup_name_info>: New overloads.
6664 <name>: Return gdb::string_view.
6665 <c_str>: New method.
6666 <make_ignore_params>: Update.
6667 <search_name_hash>: Update.
6668 <language_lookup_name>: Return const char *.
6669 <m_name>: Change type.
6670 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6671 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6672 (lookup_name_info::match_any): Update.
6673 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6674 Update.
6675 * minsyms.c (linkage_name_str): Update.
6676 * language.c (default_symbol_name_matcher): Update.
6677 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6678 Update.
6679 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6680 (ada_lookup_name_info::ada_lookup_name_info): Update.
6681 (literal_symbol_name_matcher): Update.
6682
8c072cb6
TT
66832020-04-01 Tom Tromey <tromey@adacore.com>
6684
6685 * psymtab.c (psymtab_search_name): Remove function.
6686 (psym_lookup_symbol): Create search name and lookup name here.
6687 (lookup_partial_symbol): Remove "name" parameter; add
6688 lookup_name.
6689 (psym_expand_symtabs_for_function): Update.
6690
6f29a534
TT
66912020-03-31 Joel Jones <joelkevinjones@gmail.com>
6692
6693 PR tui/25597:
6694 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6695
af62665e
TT
66962020-03-31 Tom Tromey <tromey@adacore.com>
6697
6698 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6699 memcpy.
6700
d1a89da5
NC
67012020-03-30 Nelson Chu <nelson.chu@sifive.com>
6702
6703 * features/riscv/32bit-csr.xml: Regenerated.
6704 * features/riscv/64bit-csr.xml: Regenerated.
6705
d8af9068
TT
67062020-03-30 Tom Tromey <tromey@adacore.com>
6707
6708 * ada-valprint.c (print_variant_part): Update.
6709 * ada-lang.h (ada_which_variant_applies): Update.
6710 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6711 outer_valaddr parameters; replace with "outer" value parameter.
6712 (to_fixed_variant_branch_type): Update.
6713
227c0bf4
PFC
67142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6715
6716 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6717 <list>. Remove inclusion of observable.h.
6718 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6719 (struct arch_lwp_info): New struct.
6720 (class ppc_linux_dreg_interface): New class.
6721 (struct ppc_linux_process_info): New struct.
6722 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6723 <low_new_clone, low_forget_process, low_prepare_to_resume>
6724 <copy_thread_dreg_state, mark_thread_stale>
6725 <mark_debug_registers_changed, register_hw_breakpoint>
6726 <clear_hw_breakpoint, register_wp, clear_wp>
6727 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6728 <num_memory_accesses, get_trigger_type>
6729 <create_watchpoint_request, hwdebug_point_cmp>
6730 <init_arch_lwp_info, get_arch_lwp_info>
6731 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6732 methods.
6733 <struct ptid_hash>: New inner struct.
6734 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6735 members.
6736 (saved_dabr_value, hwdebug_info, max_slots_number)
6737 (struct hw_break_tuple, struct thread_points, ppc_threads)
6738 (have_ptrace_hwdebug_interface)
6739 (hwdebug_find_thread_points_by_tid)
6740 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6741 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6742 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6743 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6744 use m_dreg_interface.
6745 (hwdebug_point_cmp): Change to...
6746 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6747 reference arguments instead of pointers.
6748 (ppc_linux_nat_target::ranged_break_num_registers): Use
6749 m_dreg_interface.
6750 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6751 m_dreg_interface. Call register_hw_breakpoint.
6752 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6753 m_dreg_interface. Call clear_hw_breakpoint.
6754 (get_trigger_type): Change to...
6755 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6756 comment.
6757 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6758 use m_dreg_interface. Call register_hw_breakpoint.
6759 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6760 use m_dreg_interface. Call clear_hw_breakpoint.
6761 (can_use_watchpoint_cond_accel): Change to...
6762 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6763 method. Update comment, use m_dreg_interface and
6764 m_process_info.
6765 (calculate_dvc): Change to...
6766 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6767 m_dreg_interface.
6768 (num_memory_accesses): Change to...
6769 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6770 (check_condition): Change to...
6771 (ppc_linux_nat_target::check_condition): ...this method.
6772 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6773 comment, use m_dreg_interface.
6774 (create_watchpoint_request): Change to...
6775 (ppc_linux_nat_target::create_watchpoint_request): ...this
6776 method. Use m_dreg_interface.
6777 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6778 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6779 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6780 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6781 (ppc_linux_nat_target::low_forget_process)
6782 (ppc_linux_nat_target::low_new_fork)
6783 (ppc_linux_nat_target::low_new_clone)
6784 (ppc_linux_nat_target::low_delete_thread)
6785 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6786 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6787 only call mark_thread_stale.
6788 (ppc_linux_thread_exit): Remove.
6789 (ppc_linux_nat_target::stopped_data_address): Change to...
6790 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6791 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6792 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6793 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6794 comment. Call low_stopped_data_address.
6795 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6796 m_dreg_interface.
6797 (ppc_linux_nat_target::masked_watch_num_registers): Use
6798 m_dreg_interface.
6799 (ppc_linux_nat_target::copy_thread_dreg_state)
6800 (ppc_linux_nat_target::mark_thread_stale)
6801 (ppc_linux_nat_target::mark_debug_registers_changed)
6802 (ppc_linux_nat_target::register_hw_breakpoint)
6803 (ppc_linux_nat_target::clear_hw_breakpoint)
6804 (ppc_linux_nat_target::register_wp)
6805 (ppc_linux_nat_target::clear_wp)
6806 (ppc_linux_nat_target::init_arch_lwp_info)
6807 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6808 (_initialize_ppc_linux_nat): Remove observer callback.
6809
4db10d8f
PFC
68102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6811
6812 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6813 (ppc_linux_nat_target::auxv_parse)
6814 (ppc_linux_nat_target::read_description)
6815 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6816 Move up.
6817
1310c1b0
PFC
68182020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6819
6820 * linux-nat.h (low_new_clone): New method.
6821 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6822
69b037c3
SM
68232020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6824
6825 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6826 (dbx_expand_psymtab): ... this.
6827 (start_psymtab): Update.
6828 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6829 (mdebug_expand_psymtab): ... this.
6830 (parse_partial_symbols): Update.
6831 (new_psymtab): Update.
6832 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6833 (xcoff_expand_psymtab): ... this.
6834 (xcoff_start_psymtab): Update.
6835
48993951
SM
68362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6837
6838 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6839 <expand_dependencies>: ... this.
6840 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6841 (partial_symtab::expand_dependencies): ... this.
6842 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6843 Update.
6844 (dwarf2_psymtab::expand_psymtab): Update.
6845 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6846 * mdebugread.c (psymtab_to_symtab_1): Update.
6847 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6848
3ad83046
SM
68492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6850
6851 * psympriv.h (discard_psymtab): Remove.
6852 * dbxread.c (dbx_end_psymtab): Update.
6853 * xcoffread.c (xcoff_end_psymtab): Update.
6854
4d1b9ab6
TT
68552020-03-28 Tom Tromey <tom@tromey.com>
6856
6857 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6858 comment.
6859
f1749218
TT
68602020-03-28 Tom Tromey <tom@tromey.com>
6861
6862 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6863
ebea7626
HD
68642020-03-27 Hannes Domani <ssbssa@yahoo.de>
6865
6866 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6867
a879b4d5
JB
68682020-03-26 John Baldwin <jhb@FreeBSD.org>
6869
6870 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6871
0826b30a
TT
68722020-03-26 Tom Tromey <tom@tromey.com>
6873
6874 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6875 (mark_common_block_symbol_computed, read_tag_string_type)
6876 (attr_to_dynamic_prop, read_subrange_type): Update.
6877 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6878 to be methods on struct attribute.
6879 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6880 (read_call_site_scope, partial_die_info::read)
6881 (partial_die_info::read, lookup_die_type, follow_die_ref):
6882 Update.
6883 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6884 from dwarf2_get_ref_die_offset.
6885 (attribute::constant_value): New method, from
6886 dwarf2_get_attr_constant_value.
6887 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6888 Declare method.
6889 <constant_value>: New method.
6890
2b2558bf
TT
68912020-03-26 Tom Tromey <tom@tromey.com>
6892
6893 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6894 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6895 (dwarf_type_encoding_name): Move to stringify.c.
6896 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6897 * dwarf2/stringify.c: New file.
6898 * dwarf2/stringify.h: New file.
6899
eeb64781
TT
69002020-03-26 Tom Tromey <tom@tromey.com>
6901
6902 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6903 Rewrite.
6904
a39fdb41
TT
69052020-03-26 Tom Tromey <tom@tromey.com>
6906
6907 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6908 methods.
6909 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6910 (lookup_ranges_base): Likewise.
6911 (read_cutu_die_from_dwo, read_full_die_1): Update.
6912
436c571c
TT
69132020-03-26 Tom Tromey <tom@tromey.com>
6914
6915 * dwarf2/read.c (read_import_statement, read_file_scope)
6916 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6917 (read_lexical_block_scope, read_call_site_scope)
6918 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6919 (handle_struct_member_die, process_structure_scope)
6920 (update_enumeration_type_from_children)
6921 (process_enumeration_scope, read_array_type, read_common_block)
6922 (read_namespace, read_module, read_subroutine_type): Update.
6923 (sibling_die): Remove.
6924
052c8bb8
TT
69252020-03-26 Tom Tromey <tom@tromey.com>
6926
6927 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6928 (build_type_psymtabs_reader, read_structure_type)
6929 (read_enumeration_type, read_full_die_1): Update.
6930 (dwarf2_attr_no_follow): Move to die.h.
6931 * dwarf2/die.h (struct die_info) <attr>: New method.
6932
2b24b6e4
TT
69332020-03-26 Tom Tromey <tom@tromey.com>
6934
6935 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6936 <base_address>: Now an optional.
6937 (dwarf2_find_base_address, dwarf2_rnglists_process)
6938 (dwarf2_ranges_process, fill_in_loclist_baton)
6939 (dwarf2_symbol_mark_computed): Update.
6940
c2d50fd0
TT
69412020-03-26 Tom Tromey <tom@tromey.com>
6942
6943 * dwarf2/read.c (struct die_info): Move to die.h.
6944 * dwarf2/die.h: New file.
6945
0df7ad3a
TT
69462020-03-26 Tom Tromey <tom@tromey.com>
6947
6948 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6949 * dwarf2/read.c
6950 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6951 Move to line-header.c.
6952 (read_checked_initial_length_and_offset, read_formatted_entries):
6953 Likewise.
6954 (dwarf_decode_line_header): Split into two.
6955 * dwarf2/line-header.c
6956 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6957 Move from read.c.
6958 (read_checked_initial_length_and_offset, read_formatted_entries):
6959 Likewise.
6960 (dwarf_decode_line_header): New function, split from read.c.
6961
86c0bb4c
TT
69622020-03-26 Tom Tromey <tom@tromey.com>
6963
6964 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6965 Declare method.
6966 * dwarf2/read.c (read_attribute_value): Update.
6967 (dwarf2_per_objfile::read_line_string): Rename from
6968 read_indirect_line_string.
6969 (read_formatted_entries): Update.
6970
2ef46c2f
TT
69712020-03-26 Tom Tromey <tom@tromey.com>
6972
6973 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6974 variable.
6975
4f9c1eda
TT
69762020-03-26 Tom Tromey <tom@tromey.com>
6977
6978 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6979 const.
6980 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6981 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6982 parameter const.
6983
5a0e026f
TT
69842020-03-26 Tom Tromey <tom@tromey.com>
6985
6986 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6987 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6988 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
6989 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
6990
8844c11b
TT
69912020-03-26 Tom Tromey <tom@tromey.com>
6992
6993 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
6994 file_names_size, file_full_name, file_file_name>: Use const.
6995 <file_name_at, file_names>: Add const overload.
6996 * dwarf2/line-header.c (line_header::file_file_name)
6997 (line_header::file_full_name): Update.
6998
c90ec28a
TT
69992020-03-26 Tom Tromey <tom@tromey.com>
7000
7001 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7002 (macro_start_file, consume_improper_spaces)
7003 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7004 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7005 (dwarf_decode_macros): Move to macro.c.
7006 * dwarf2/macro.c: New file.
7007 * dwarf2/macro.h: New file.
7008 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7009
4f44ae6c
TT
70102020-03-26 Tom Tromey <tom@tromey.com>
7011
7012 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7013 method.
7014 * dwarf2/section.c: New method. From
7015 read_indirect_string_at_offset_from.
7016 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7017 (read_indirect_string_at_offset_from): Move to section.c.
7018 (read_indirect_string_at_offset): Rewrite.
7019 (read_indirect_line_string_at_offset): Remove.
7020 (read_indirect_string, read_indirect_line_string)
7021 (dwarf_decode_macro_bytes): Update.
7022
a0194fa8
TT
70232020-03-26 Tom Tromey <tom@tromey.com>
7024
7025 * dwarf2/section.h (struct dwarf2_section_info)
7026 <overload_complaint>: Declare.
7027 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7028 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7029 Rename from dwarf2_section_buffer_overflow_complaint.
7030 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7031 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7032
3d27bbdb
TT
70332020-03-26 Tom Tromey <tom@tromey.com>
7034
7035 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7036 Declare.
7037 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7038 Move from read.c.
7039 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7040 to section.c.
7041
9eac9650
TT
70422020-03-26 Tom Tromey <tom@tromey.com>
7043
7044 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7045
bf80d710
TT
70462020-03-26 Tom Tromey <tom@tromey.com>
7047
7048 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7049 "builder".
7050 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7051 parameter.
7052 (dwarf_decode_macros): Update.
7053
0314b390
TT
70542020-03-26 Tom Tromey <tom@tromey.com>
7055
7056 * dwarf2/read.c (read_attribute_value): Update.
7057 (read_indirect_string_from_dwz): Move to dwz.c; change into
7058 method.
7059 (dwarf_decode_macro_bytes): Update.
7060 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7061 * dwarf2/dwz.c: New file.
7062 * Makefile.in (COMMON_SFILES): Add dwz.c.
7063
9fda78b6
TT
70642020-03-26 Tom Tromey <tom@tromey.com>
7065
7066 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7067 * dwarf2/read.c: Add include.
7068 * dwarf2/index-write.c: Add include.
7069 * dwarf2/index-cache.c: Add include.
7070 * dwarf2/dwz.h: New file.
7071
33aa3c10
TT
70722020-03-25 Tom Tromey <tom@tromey.com>
7073
7074 * compile/compile-object-load.c (get_out_value_type): Mention
7075 correct symbol name in error message.
7076
d503b685
HD
70772020-03-25 Hannes Domani <ssbssa@yahoo.de>
7078
7079 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7080
7b1eff95
TV
70812020-03-25 Tom de Vries <tdevries@suse.de>
7082
7083 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7084 * symmisc.c (dump_symtab_1): Print user and includes fields.
7085 (maintenance_info_symtabs): Same.
7086
dd895392
AB
70872020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7088
7089 PR gdb/25534
7090 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7091 (riscv_regcache_cooked_write): New function.
7092 (riscv_push_dummy_call): Use new function.
7093 (riscv_return_value): Likewise.
7094
5ab2fbf1
SM
70952020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7096
7097 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7098 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7099 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7100 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7101 * infrun.c (follow_fork): Likewise.
7102 (follow_fork_inferior): Likewise.
7103 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7104 * linux-nat.h (class linux_nat_target): Likewise.
7105 * remote.c (class remote_target) <follow_fork>: Likewise.
7106 (remote_target::follow_fork): Likewise.
7107 * target-delegates.c: Re-generate.
7108 * target.c (default_follow_fork): Likewise.
7109 (target_follow_fork): Likewise.
7110 * target.h (struct target_ops) <follow_fork>: Likewise.
7111 (target_follow_fork): Likewise.
7112
a64fafb5
TV
71132020-03-24 Tom de Vries <tdevries@suse.de>
7114
7115 * psymtab.c (maintenance_info_psymtabs): Print user field.
7116
fe26d3a3
TT
71172020-03-20 Tom Tromey <tromey@adacore.com>
7118
7119 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7120 const.
7121 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7122 const.
7123
c884cc46
SM
71242020-03-20 Simon Marchi <simon.marchi@efficios.com>
7125
7126 * ptrace.m4: Don't check for ptrace declaration.
7127 * config.in: Re-generate.
7128 * configure: Re-generate.
7129 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7130 not defined.
7131
1ff700c2
KR
71322020-03-20 Kamil Rytarowski <n54@gmx.com>
7133
7134 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7135 `PTRACE_TYPE_RET'.
7136 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7137 * sparc-nat.c (gdb_ptrace): Likewise.
7138 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7139
f7d4f0b1
TT
71402020-03-20 Tom Tromey <tromey@adacore.com>
7141
7142 * c-exp.y (lex_one_token): Fix assert.
7143
f67210ff
TT
71442020-03-20 Tom Tromey <tromey@adacore.com>
7145
7146 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7147 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7148 strncpy call.
7149
1773be9e
TT
71502020-03-20 Tom Tromey <tromey@adacore.com>
7151
7152 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7153
70304be9
TT
71542020-03-20 Tom Tromey <tromey@adacore.com>
7155
7156 * ada-valprint.c (print_variant_part): Remove parameters; switch
7157 to value-based API.
7158 (print_field_values): Likewise.
7159 (ada_val_print_struct_union): Likewise.
7160 (ada_value_print_1): Update.
7161
9faa006d
KR
71622020-03-20 Kamil Rytarowski <n54@gmx.com>
7163
7164 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7165 nbsd_nat_target instead of inf_ptrace_target.
7166 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7167 nbsd_nat_target.
7168
4a90f062
KR
71692020-03-20 Kamil Rytarowski <n54@gmx.com>
7170
7171 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7172 it to the ptrace call.
7173 * (store_registers): Likewise.
7174
71752020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7176
7177 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7178 it to the ptrace call.
7179 * (store_registers): Likewise.
7180
2d07da27
LM
71812020-03-19 Luis Machado <luis.machado@linaro.org>
7182
7183 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7184 valid, fetch vg value from ptrace.
7185
f09db380
KR
71862020-03-19 Kamil Rytarowski <n54@gmx.com>
7187 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7188 * inf-ptrace.c: Likewise.
7189 * (gdb_ptrace): Add.
7190 * (inf_ptrace_target::resume): Update.
7191 * (inf_ptrace_target::xfer_partial): Likewise.
7192 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7193 * (inf_ptrace_peek_poke): Update.
7194
fcc7376e
KR
71952020-03-19 Kamil Rytarowski <n54@gmx.com>
7196
7197 * x86-bsd-nat.c (gdb_ptrace): New.
7198 * (x86bsd_dr_set): Add new argument `ptid'.
7199 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7200 x86bsd_dr_set_addr): Update.
7201
cada5fc9
AB
72022020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7203
7204 * remote.c (remote_target::process_stop_reply): Handle events for
7205 all threads differently.
7206
19a2740f
AB
72072020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7208
7209 * completer.c (completion_tracker::remove_completion): Define new
7210 function.
7211 * completer.h (completion_tracker::remove_completion): Declare new
7212 function.
7213 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7214 when adding a C++ function symbol.
7215
724fd9ba
AB
72162020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7217
7218 * completer.c (completion_tracker::completion_hash_entry): Define
7219 new class.
7220 (advance_to_filename_complete_word_point): Call
7221 recompute_lowest_common_denominator.
7222 (completion_tracker::completion_tracker): Call discard_completions
7223 to setup the hash table.
7224 (completion_tracker::discard_completions): Allow for being called
7225 from the constructor, pass new equal function, and element deleter
7226 when constructing the hash table. Initialise new class member
7227 variables.
7228 (completion_tracker::maybe_add_completion): Remove use of
7229 m_entries_vec, and store more information into m_entries_hash.
7230 (completion_tracker::recompute_lcd_visitor): New function, most
7231 content taken from...
7232 (completion_tracker::recompute_lowest_common_denominator):
7233 ...here, this now just visits each item in the hash calling the
7234 above visitor.
7235 (completion_tracker::build_completion_result): Remove use of
7236 m_entries_vec, call recompute_lowest_common_denominator.
7237 * completer.h (completion_tracker::have_completions): Remove use
7238 of m_entries_vec.
7239 (completion_tracker::completion_hash_entry): Declare new class.
7240 (completion_tracker::recompute_lowest_common_denominator): Change
7241 function signature.
7242 (completion_tracker::recompute_lcd_visitor): Declare new function.
7243 (completion_tracker::m_entries_vec): Delete.
7244 (completion_tracker::m_entries_hash): Initialize to NULL.
7245 (completion_tracker::m_lowest_common_denominator_valid): New
7246 member variable.
7247 (completion_tracker::m_lowest_common_denominator_max_length): New
7248 member variable.
7249
5a82b8a1
KR
72502020-03-17 Kamil Rytarowski <n54@gmx.com>
7251
7252 * regformats/regdef.h: Put reg in gdb namespace.
7253
fb516a69
KR
72542020-03-17 Kamil Rytarowski <n54@gmx.com>
7255
7256 * i386-bsd-nat.c (gdb_ptrace): New.
7257 * (i386bsd_fetch_inferior_registers,
7258 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7259 * (i386bsd_fetch_inferior_registers,
7260 i386bsd_store_inferior_registers) Use gdb_ptrace.
7261
1c0aa1fb
KR
72622020-03-17 Kamil Rytarowski <n54@gmx.com>
7263
7264 * amd64-bsd-nat.c (gdb_ptrace): New.
7265 * (amd64bsd_fetch_inferior_registers,
7266 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7267 * (amd64bsd_fetch_inferior_registers,
7268 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7269
5ccd2fb7
KR
72702020-03-17 Kamil Rytarowski <n54@gmx.com>
7271
7272 * user-regs.c (user_reg::read): Rename to...
7273 (user_reg::xread): ...this.
7274 * (append_user_reg): Rename argument `read' to `xread'.
7275 * (user_reg_add_builtin): Likewise.
7276 * (user_reg_add): Likewise.
7277 * (value_of_user_reg): Likewise.
7278
2108a63a
KR
72792020-03-17 Kamil Rytarowski <n54@gmx.com>
7280
7281 * sparc-nat.c (gdb_ptrace): New.
7282 * sparc-nat.c (sparc_fetch_inferior_registers)
7283 (sparc_store_inferior_registers) Remove obsolete comment.
7284 * sparc-nat.c (sparc_fetch_inferior_registers)
7285 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7286 * sparc-nat.c (sparc_fetch_inferior_registers)
7287 (sparc_store_inferior_registers) Use gdb_ptrace.
7288
a225c9a8
KR
72892020-03-17 Kamil Rytarowski <n54@gmx.com>
7290
7291 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7292 it to the ptrace call.
7293 * sh-nbsd-nat.c (store_registers): Likewise.
7294
98097623
KR
72952020-03-17 Kamil Rytarowski <n54@gmx.com>
7296
7297 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7298 nbsd_nat_target instead of inf_ptrace_target.
7299 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7300 nbsd_nat_target.
7301
9e38d619
KR
73022020-03-17 Kamil Rytarowski <n54@gmx.com>
7303
7304 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7305
a2ecbe9f
KR
73062020-03-17 Kamil Rytarowski <n54@gmx.com>
7307
7308 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7309 <sys/sysctl.h>.
7310 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7311
58990295
TV
73122020-03-17 Tom de Vries <tdevries@suse.de>
7313
7314 PR gdb/23710
7315 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7316 fields.
7317 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7318 fields.
7319 (process_imported_unit_die): Skip import of c++ CUs.
7320
771dd3a8
TT
73212020-03-16 Tom Tromey <tom@tromey.com>
7322
7323 * p-valprint.c (pascal_object_print_value): Initialize
7324 base_value.
7325
817a7585
AK
73262020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7327 Shahab Vahedi <shahab@synopsys.com>
7328
7329 * Makefile.in: Add arch/arc.o
7330 * configure.tgt: Likewise.
7331 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7332 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7333 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7334 * arc-tdep.h (arc_read_description): Add proto type.
7335 * arch/arc.c: New file.
7336 * arch/arc.h: Likewise.
7337 * features/Makefile: Replace old target descriptions with new.
7338 * features/arc-arcompact.c: Remove.
7339 * features/arc-arcompact.xml: Likewise.
7340 * features/arc-v2.c: Likewise
7341 * features/arc-v2.xml: Likewise
7342 * features/arc/aux-arcompact.xml: New file.
7343 * features/arc/aux-v2.xml: Likewise.
7344 * features/arc/core-arcompact.xml: Likewise.
7345 * features/arc/core-v2.xml: Likewise.
7346 * features/arc/aux-arcompact.c: Generate.
7347 * features/arc/aux-v2.c: Likewise.
7348 * features/arc/core-arcompact.c: Likewise.
7349 * features/arc/core-v2.c: Likewise.
7350 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7351
67430cd0
TT
73522020-03-16 Tom Tromey <tromey@adacore.com>
7353
7354 PR gdb/25663:
7355 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7356 putting value into bcache.
7357
30efb6c7
SM
73582020-03-16 Simon Marchi <simon.marchi@efficios.com>
7359
7360 PR gdb/21500
7361 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7362 to...
7363 (amd64_windows_init_abi_common): ... this. Don't set size of
7364 long type.
7365 (amd64_windows_init_abi): New function.
7366 (amd64_cygwin_init_abi): New function.
7367 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7368 the Cygwin OS ABI.
7369 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7370 comment.
7371
8db52437
SM
73722020-03-16 Simon Marchi <simon.marchi@efficios.com>
7373
7374 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7375 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7376 (pe_import_directory_entry): New struct type.
7377 (is_linked_with_cygwin_dll): New function.
7378 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7379 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7380 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7381
5982a56a
SM
73822020-03-16 Simon Marchi <simon.marchi@efficios.com>
7383
7384 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7385 i386_cygwin_core_osabi_sniffer.
7386
7a1998df
SM
73872020-03-16 Simon Marchi <simon.marchi@efficios.com>
7388
7389 * i386-cygwin-tdep.c: Rename to...
7390 * i386-windows-tdep.c: ... this.
7391 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7392 i386-windows-tdep.c.
7393 * configure.tgt: Likewise.
7394
053205cc
SM
73952020-03-16 Simon Marchi <simon.marchi@efficios.com>
7396
7397 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7398 * osabi.c (gdb_osabi_names): Add "Windows".
7399 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7400 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7401 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7402 i386_cygwin_osabi_sniffer.
7403 (_initialize_i386_cygwin_tdep): Register OS ABI
7404 GDB_OSABI_WINDOWS for i386.
7405 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7406 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7407 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7408 for x86-64.
7409 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7410 when the target matches '*-*-mingw*'.
7411
fe4b2ee6
SM
74122020-03-16 Simon Marchi <simon.marchi@efficios.com>
7413
7414 * defs.h (enum gdb_osabi): Move to...
7415 * osabi.h (enum gdb_osabi): ... here.
7416 * gdbarch.sh: Include osabi.h in gdbarch.h.
7417 * gdbarch.h: Re-generate.
7418
cb9b645d
SM
74192020-03-16 Simon Marchi <simon.marchi@efficios.com>
7420
7421 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7422 function.
7423 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7424
3293bbaf
TT
74252020-03-14 Tom Tromey <tom@tromey.com>
7426
7427 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7428 for C++.
7429 (c_type_print_modifier): Likewise. Add "language" parameter.
7430 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7431 (c_type_print_base_1): Update.
7432 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7433 constants.
7434 * type-stack.c (type_stack::insert): Handle tp_atomic and
7435 tp_restrict.
7436 (type_stack::follow_type_instance_flags): Likewise.
7437 (type_stack::follow_types): Likewise. Merge type-following code.
7438 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7439 (space_identifier, cv_with_space_id)
7440 (const_or_volatile_or_space_identifier_noopt)
7441 (const_or_volatile_or_space_identifier): Remove.
7442 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7443 rules.
7444 (ptr_operator, typebase): Update.
7445 (enum token_flag) <FLAG_C>: New constant.
7446 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7447 "_Atomic".
7448 (lex_one_token): Handle FLAG_C.
7449
154151a6
KR
74502020-03-14 Kamil Rytarowski <n54@gmx.com>
7451
7452 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7453 it to the ptrace call.
7454 * m68k-bsd-nat.c (store_registers): Likewise.
7455
bc107784
KR
74562020-03-14 Kamil Rytarowski <n54@gmx.com>
7457
7458 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7459 gdb_byte *.
7460 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7461 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7462 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7463
01a80117
KR
74642020-03-14 Kamil Rytarowski <n54@gmx.com>
7465
7466 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7467 nbsd_nat_target instead of inf_ptrace_target.
7468 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7469 nbsd_nat_target.
7470
f90280ca
KR
74712020-03-14 Kamil Rytarowski <n54@gmx.com>
7472
7473 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7474 register_t.
7475
6def66f1
KR
74762020-03-14 Kamil Rytarowski <n54@gmx.com>
7477
7478 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7479 it to the ptrace call.
7480 * alpha-bsd-nat.c (store_registers): Likewise.
7481
66eaca97
KR
74822020-03-14 Kamil Rytarowski <n54@gmx.com>
7483
7484 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7485 includes.
7486 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7487 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7488 fill_fpregset): Likewise.
7489
4fed520b
KR
74902020-03-14 Kamil Rytarowski <n54@gmx.com>
7491
7492 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7493 nbsd_nat_target instead of inf_ptrace_target.
7494 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7495 nbsd_nat_target.
7496
2190cf06
KR
74972020-03-14 Kamil Rytarowski <n54@gmx.com>
7498
7499 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7500 register_t.
7501
75c56d3d
KR
75022020-03-14 Kamil Rytarowski <n54@gmx.com>
7503
7504 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7505 it to the ptrace call.
7506 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7507 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7508 * arm-nbsd-nat.c (store_register): Likewise.
7509 * arm-nbsd-nat.c (store_regs): Likewise.
7510 * arm-nbsd-nat.c (store_fp_register): Likewise.
7511 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7512
6018d381
KR
75132020-03-14 Kamil Rytarowski <n54@gmx.com>
7514
7515 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7516 nbsd_nat_target instead of inf_ptrace_target.
7517 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7518 nbsd_nat_target.
7519
013f99f0
KR
75202020-03-14 Kamil Rytarowski <n54@gmx.com>
7521
7522 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7523 it to the ptrace call.
7524 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7525
12753073
KR
75262020-03-14 Kamil Rytarowski <n54@gmx.com>
7527
6227b330
KR
7528 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7529 it to the ptrace call.
7530 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7531
75322020-03-14 Kamil Rytarowski <n54@gmx.com>
7533
7534 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7535 gdb_byte *.
12753073
KR
7536 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7537
d5be5fa4
KR
75382020-03-14 Kamil Rytarowski <n54@gmx.com>
7539
7540 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7541 instead of inf_ptrace_target.
7542 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7543 nbsd_nat_target.
7544
8110f842
KR
75452020-03-14 Kamil Rytarowski <n54@gmx.com>
7546
7547 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7548 register_t.
7549
52feded7
KR
75502020-03-14 Kamil Rytarowski <n54@gmx.com>
7551
7552 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7553 register_t.
7554
25567eee
KR
75552020-03-14 Kamil Rytarowski <n54@gmx.com>
7556
7557 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7558 register_t.
7559
426a9c18
TT
75602020-03-13 Tom Tromey <tom@tromey.com>
7561
7562 * value.h (val_print): Don't declare.
7563 * valprint.h (val_print_array_elements)
7564 (val_print_scalar_formatted, generic_val_print): Don't declare.
7565 * valprint.c (generic_val_print_array): Take a struct value.
7566 (generic_val_print_ptr, generic_val_print_memberptr)
7567 (generic_val_print_bool, generic_val_print_int)
7568 (generic_val_print_char, generic_val_print_complex)
7569 (generic_val_print): Remove.
7570 (generic_value_print): Update.
7571 (do_val_print): Remove unused parameters. Don't call
7572 la_val_print.
7573 (val_print): Remove.
7574 (common_val_print): Update. Don't call value_check_printable.
7575 (val_print_scalar_formatted, val_print_array_elements): Remove.
7576 * rust-lang.c (rust_val_print): Remove.
7577 (rust_language_defn): Update.
7578 * p-valprint.c (pascal_val_print): Remove.
7579 (pascal_value_print_inner): Update.
7580 (pascal_object_print_val_fields, pascal_object_print_val):
7581 Remove.
7582 (pascal_object_print_static_field): Update.
7583 * p-lang.h (pascal_val_print): Don't declare.
7584 * p-lang.c (pascal_language_defn): Update.
7585 * opencl-lang.c (opencl_language_defn): Update.
7586 * objc-lang.c (objc_language_defn): Update.
7587 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7588 * m2-lang.h (m2_val_print): Don't declare.
7589 * m2-lang.c (m2_language_defn): Update.
7590 * language.h (struct language_defn) <la_val_print>: Remove.
7591 * language.c (unk_lang_value_print_inner): Rename. Change
7592 argument types.
7593 (unknown_language_defn, auto_language_defn): Update.
7594 * go-valprint.c (go_val_print): Remove.
7595 * go-lang.h (go_val_print): Don't declare.
7596 * go-lang.c (go_language_defn): Update.
7597 * f-valprint.c (f_val_print): Remove.
7598 * f-lang.h (f_value_print): Don't declare.
7599 * f-lang.c (f_language_defn): Update.
7600 * d-valprint.c (d_val_print): Remove.
7601 * d-lang.h (d_value_print): Don't declare.
7602 * d-lang.c (d_language_defn): Update.
7603 * cp-valprint.c (cp_print_value_fields)
7604 (cp_print_value_fields_rtti, cp_print_value): Remove.
7605 (cp_print_static_field): Update.
7606 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7607 (c_val_print_struct, c_val_print_union, c_val_print_int)
7608 (c_val_print_memberptr, c_val_print): Remove.
7609 * c-lang.h (c_val_print_array, cp_print_value_fields)
7610 (cp_print_value_fields_rtti): Don't declare.
7611 * c-lang.c (c_language_defn, cplus_language_defn)
7612 (asm_language_defn, minimal_language_defn): Update.
7613 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7614 (ada_val_print_enum): Take a struct value.
7615 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7616 (ada_val_print): Remove.
7617 (ada_value_print_1): Update.
7618 (printable_val_type): Remove.
7619 * ada-lang.h (ada_val_print): Don't declare.
7620 * ada-lang.c (ada_language_defn): Update.
7621
42331a1e
TT
76222020-03-13 Tom Tromey <tom@tromey.com>
7623
7624 * valprint.c (do_val_print): Update.
7625 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7626 a struct value.
7627 (value_to_value_object_no_release): Declare.
7628 * python/py-value.c (value_to_value_object_no_release): New
7629 function.
7630 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7631 struct value.
7632 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7633 function.
7634 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7635 a struct value.
7636 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7637 Declare.
7638 (gdbscm_apply_val_pretty_printer): Take a struct value.
7639 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7640 value.
7641 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7642 value.
7643 * extension-priv.h (struct extension_language_ops)
7644 <apply_val_pretty_printer>: Take a struct value.
7645 * cp-valprint.c (cp_print_value): Create a struct value.
7646 (cp_print_value): Update.
7647
3a916a97
TT
76482020-03-13 Tom Tromey <tom@tromey.com>
7649
7650 * ada-valprint.c (print_field_values): Call common_val_print.
7651
b59eac37
TT
76522020-03-13 Tom Tromey <tom@tromey.com>
7653
7654 * ada-valprint.c (val_print_packed_array_elements): Remove
7655 bitoffset and val parameters. Call common_val_print.
7656 (ada_val_print_string): Remove offset, address, and original_value
7657 parameters.
7658 (ada_val_print_array): Update.
7659 (ada_value_print_array): New function.
7660 (ada_value_print_1): Call it.
7661
03371129
TT
76622020-03-13 Tom Tromey <tom@tromey.com>
7663
7664 * ada-valprint.c (ada_value_print): Use common_val_print.
7665
2e088f8b
TT
76662020-03-13 Tom Tromey <tom@tromey.com>
7667
7668 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7669
39ef85a8
TT
76702020-03-13 Tom Tromey <tom@tromey.com>
7671
7672 * ada-valprint.c (ada_value_print_num): New function.
7673 (ada_value_print_1): Use it.
7674
b9fa6e07
TT
76752020-03-13 Tom Tromey <tom@tromey.com>
7676
7677 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7678
416595d6
TT
76792020-03-13 Tom Tromey <tom@tromey.com>
7680
7681 * ada-valprint.c (ada_value_print_ptr): New function.
7682 (ada_value_print_1): Use it.
7683
5b5e15ec
TT
76842020-03-13 Tom Tromey <tom@tromey.com>
7685
7686 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7687 call common_val_print.
7688 (ada_val_print_1): Update.
7689 (ada_value_print_1): New function.
7690 (ada_value_print_inner): Rewrite.
7691
fbf54e75
TT
76922020-03-13 Tom Tromey <tom@tromey.com>
7693
7694 * cp-valprint.c (cp_print_value_fields): Update.
7695 (cp_print_value): New function.
7696
64b653ca
TT
76972020-03-13 Tom Tromey <tom@tromey.com>
7698
7699 * m2-valprint.c (m2_value_print_inner): Use
7700 cp_print_value_fields.
7701 * cp-valprint.c (cp_print_value_fields): New function.
7702 * c-valprint.c (c_value_print_struct): New function.
7703 (c_value_print_inner): Use c_value_print_struct.
7704 * c-lang.h (cp_print_value_fields): Declare.
7705
6999f067
TT
77062020-03-13 Tom Tromey <tom@tromey.com>
7707
7708 * c-valprint.c (c_value_print_array): New function.
7709 (c_value_print_inner): Use it.
7710
ce80b8bd
TT
77112020-03-13 Tom Tromey <tom@tromey.com>
7712
7713 * c-valprint.c (c_value_print_memberptr): New function.
7714 (c_value_print_inner): Use it.
7715
2faac269
TT
77162020-03-13 Tom Tromey <tom@tromey.com>
7717
7718 * c-valprint.c (c_value_print_int): New function.
7719 (c_value_print_inner): Use it.
7720
da3e2c29
TT
77212020-03-13 Tom Tromey <tom@tromey.com>
7722
7723 * c-valprint.c (c_value_print_ptr): New function.
7724 (c_value_print_inner): Use it.
7725
50836231
TT
77262020-03-13 Tom Tromey <tom@tromey.com>
7727
7728 * c-valprint.c (c_value_print_inner): Rewrite.
7729
4f412b6e
TT
77302020-03-13 Tom Tromey <tom@tromey.com>
7731
7732 * valprint.c (generic_value_print_complex): New function.
7733 (generic_value_print): Use it.
7734
f5354008
TT
77352020-03-13 Tom Tromey <tom@tromey.com>
7736
7737 * valprint.c (generic_val_print_float): Don't call
7738 val_print_scalar_formatted.
7739 (generic_val_print, generic_value_print): Update.
7740
3eec3b05
TT
77412020-03-13 Tom Tromey <tom@tromey.com>
7742
7743 * valprint.c (generic_value_print_char): New function
7744 (generic_value_print): Use it.
7745
fdddfccb
TT
77462020-03-13 Tom Tromey <tom@tromey.com>
7747
7748 * valprint.c (generic_value_print_int): New function.
7749 (generic_value_print): Use it.
7750
6dde7521
TT
77512020-03-13 Tom Tromey <tom@tromey.com>
7752
7753 * valprint.c (generic_value_print_bool): New function.
7754 (generic_value_print): Use it.
7755
4112d2e6
TT
77562020-03-13 Tom Tromey <tom@tromey.com>
7757
7758 * valprint.c (generic_val_print_func): Simplify.
7759 (generic_val_print, generic_value_print): Update.
7760
65786af6
TT
77612020-03-13 Tom Tromey <tom@tromey.com>
7762
7763 * valprint.c (generic_val_print_flags): Remove.
7764 (generic_val_print, generic_value_print): Update.
7765 (val_print_type_code_flags): Add original_value parameter.
7766
40f3ce18
TT
77672020-03-13 Tom Tromey <tom@tromey.com>
7768
7769 * valprint.c (generic_val_print): Update.
7770 (generic_value_print): Update.
7771 * valprint.c (generic_val_print_enum): Don't call
7772 val_print_scalar_formatted.
7773
2a5b130b
TT
77742020-03-13 Tom Tromey <tom@tromey.com>
7775
7776 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7777 * valprint.c (generic_value_print_ptr): New function.
7778
abc66ce9
TT
77792020-03-13 Tom Tromey <tom@tromey.com>
7780
7781 * valprint.c (generic_value_print): Rewrite.
7782
07a32858
TT
77832020-03-13 Tom Tromey <tom@tromey.com>
7784
7785 * p-valprint.c (pascal_object_print_value_fields)
7786 (pascal_object_print_value): New functions.
7787
64d64d3a
TT
77882020-03-13 Tom Tromey <tom@tromey.com>
7789
7790 * p-valprint.c (pascal_value_print_inner): Rewrite.
7791
6a95a1f5
TT
77922020-03-13 Tom Tromey <tom@tromey.com>
7793
7794 * f-valprint.c (f_value_print_innner): Rewrite.
7795
59fcdac6
TT
77962020-03-13 Tom Tromey <tom@tromey.com>
7797
7798 * m2-valprint.c (m2_print_unbounded_array): New overload.
7799 (m2_print_unbounded_array): Update.
7800 (m2_print_array_contents): Take a struct value.
7801 (m2_value_print_inner): Rewrite.
7802
d133c3e1
TT
78032020-03-13 Tom Tromey <tom@tromey.com>
7804
7805 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7806 (d_value_print_inner): New function.
7807 * d-lang.h (d_value_print_inner): Declare.
7808 * d-lang.c (d_language_defn): Use d_value_print_inner.
7809
23b0f06b
TT
78102020-03-13 Tom Tromey <tom@tromey.com>
7811
7812 * go-valprint.c (go_value_print_inner): New function.
7813 * go-lang.h (go_value_print_inner): Declare.
7814 * go-lang.c (go_language_defn): Use go_value_print_inner.
7815
5f56f7cb
TT
78162020-03-13 Tom Tromey <tom@tromey.com>
7817
7818 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7819 API.
7820 (rust_val_print): Rewrite.
7821 (rust_value_print_inner): New function, from rust_val_print.
7822 (rust_language_defn): Use rust_value_print_inner.
7823
26792ee0
TT
78242020-03-13 Tom Tromey <tom@tromey.com>
7825
7826 * ada-valprint.c (ada_value_print_inner): New function.
7827 * ada-lang.h (ada_value_print_inner): Declare.
7828 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7829
24051bbe
TT
78302020-03-13 Tom Tromey <tom@tromey.com>
7831
7832 * f-valprint.c (f_value_print_innner): New function.
7833 * f-lang.h (f_value_print_innner): Declare.
7834 * f-lang.c (f_language_defn): Use f_value_print_innner.
7835
c0941be6
TT
78362020-03-13 Tom Tromey <tom@tromey.com>
7837
7838 * p-valprint.c (pascal_value_print_inner): New function.
7839 * p-lang.h (pascal_value_print_inner): Declare.
7840 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7841
62c4663d
TT
78422020-03-13 Tom Tromey <tom@tromey.com>
7843
7844 * m2-valprint.c (m2_value_print_inner): New function.
7845 * m2-lang.h (m2_value_print_inner): Declare.
7846 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7847
62182190
TT
78482020-03-13 Tom Tromey <tom@tromey.com>
7849
7850 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7851 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7852 * c-valprint.c (c_value_print_inner): New function.
7853 * c-lang.h (c_value_print_inner): Declare.
7854 * c-lang.c (c_language_defn, cplus_language_defn)
7855 (asm_language_defn, minimal_language_defn): Use
7856 c_value_print_inner.
7857
1e592a8a
TT
78582020-03-13 Tom Tromey <tom@tromey.com>
7859
7860 * p-valprint.c (pascal_object_print_value_fields): Now static.
7861 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7862
7fe471e9
TT
78632020-03-13 Tom Tromey <tom@tromey.com>
7864
7865 * c-valprint.c (c_val_print_array): Simplify.
7866
d121c6ce
TT
78672020-03-13 Tom Tromey <tom@tromey.com>
7868
7869 * valprint.c (value_print_array_elements): New function.
7870 * valprint.h (value_print_array_elements): Declare.
7871
4dba70ee
TT
78722020-03-13 Tom Tromey <tom@tromey.com>
7873
7874 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7875 * mips-tdep.c (mips_print_register): Use
7876 value_print_scalar_formatted.
7877
4f9ae810
TT
78782020-03-13 Tom Tromey <tom@tromey.com>
7879
7880 * valprint.h (value_print_scalar_formatted): Declare.
7881 * valprint.c (value_print_scalar_formatted): New function.
7882
156bfec9
TT
78832020-03-13 Tom Tromey <tom@tromey.com>
7884
7885 * valprint.h (generic_value_print): Declare.
7886 * valprint.c (generic_value_print): New function.
7887
2b4e573d
TT
78882020-03-13 Tom Tromey <tom@tromey.com>
7889
7890 * valprint.c (do_val_print): Call la_value_print_inner, if
7891 available.
7892 * rust-lang.c (rust_language_defn): Update.
7893 * p-lang.c (pascal_language_defn): Update.
7894 * opencl-lang.c (opencl_language_defn): Update.
7895 * objc-lang.c (objc_language_defn): Update.
7896 * m2-lang.c (m2_language_defn): Update.
7897 * language.h (struct language_defn) <la_value_print_inner>: New
7898 member.
7899 * language.c (unknown_language_defn, auto_language_defn): Update.
7900 * go-lang.c (go_language_defn): Update.
7901 * f-lang.c (f_language_defn): Update.
7902 * d-lang.c (d_language_defn): Update.
7903 * c-lang.c (c_language_defn, cplus_language_defn)
7904 (asm_language_defn, minimal_language_defn): Update.
7905 * ada-lang.c (ada_language_defn): Update.
7906
a1f6a07c
TT
79072020-03-13 Tom Tromey <tom@tromey.com>
7908
7909 * c-valprint.c (c_value_print): Use common_val_print.
7910
410cf315
TT
79112020-03-13 Tom Tromey <tom@tromey.com>
7912
7913 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7914
72a45c93
TT
79152020-03-13 Tom Tromey <tom@tromey.com>
7916
7917 * f-valprint.c (f77_print_array_1, f_val_print): Use
7918 common_val_print.
7919
040f66bd
TT
79202020-03-13 Tom Tromey <tom@tromey.com>
7921
7922 * riscv-tdep.c (riscv_print_one_register_info): Use
7923 common_val_print.
7924
a6e05a6c
TT
79252020-03-13 Tom Tromey <tom@tromey.com>
7926
7927 * mi/mi-main.c (output_register): Use common_val_print.
7928
3444c526
TT
79292020-03-13 Tom Tromey <tom@tromey.com>
7930
7931 * infcmd.c (default_print_one_register_info): Use
7932 common_val_print.
7933
c2a44efe
TT
79342020-03-13 Tom Tromey <tom@tromey.com>
7935
7936 * valprint.h (common_val_print_checked): Declare.
7937 * valprint.c (common_val_print_checked): New function.
7938 * stack.c (print_frame_arg): Use common_val_print_checked.
7939
b0c26e99
TT
79402020-03-13 Tom Tromey <tom@tromey.com>
7941
7942 * valprint.c (do_val_print): New function, from val_print.
7943 (val_print): Use do_val_print.
7944 (common_val_print): Use do_val_print.
7945
ce3acbe9
TT
79462020-03-13 Tom Tromey <tom@tromey.com>
7947
7948 * valprint.c (value_print): Use scoped_value_mark.
7949
96c7f873
TV
79502020-03-13 Tom de Vries <tdevries@suse.de>
7951
7952 PR symtab/25646
7953 * psymtab.c (partial_symtab::partial_symtab): Don't set
7954 globals_offset and statics_offset. Push element onto
7955 current_global_psymbols and current_static_psymbols stacks.
7956 (concat): New function.
7957 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7958 element from current_global_psymbols and current_static_psymbols
7959 stacks. Concat popped elements to global_psymbols and
7960 static_symbols.
7961 (add_psymbol_to_list): Use current_global_psymbols and
7962 current_static_psymbols stacks.
7963 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7964 current_static_psymbols fields.
7965
6ba0a321
CB
79662020-03-12 Christian Biesinger <cbiesinger@google.com>
7967
7968 * corelow.c (sniff_core_bfd): Remove.
7969 (class core_target) <m_core_vec>: Remove.
7970 (core_target::core_target): Update.
7971 (core_file_fns): Remove.
7972 (deprecated_add_core_fns): Remove.
7973 (default_core_sniffer): Remove.
7974 (sniff_core_bfd): Remove.
7975 (default_check_format): Remove.
7976 (gdb_check_format): Remove.
7977 (core_target_open): Update.
7978 (core_target::get_core_register_section): Update.
7979 (get_core_registers_cb): Update.
7980 (core_target::fetch_registers): Update.
7981 * gdbcore.h (struct core_fns): Remove.
7982 (deprecated_add_core_fns): Remove.
7983 (default_core_sniffer): Remove.
7984 (default_check_format): Remove.
7985
227031b2
TT
79862020-03-12 Tom Tromey <tom@tromey.com>
7987
7988 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
7989 CORE_ADDR.
7990 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
7991
53807e9f
TT
79922020-03-12 Tom Tromey <tom@tromey.com>
7993
7994 * remote.c (remote_target::download_tracepoint)
7995 (remote_target::enable_tracepoint)
7996 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
7997 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
7998 sprintf_vma.
7999
64f25102
TT
80002020-03-12 Tom Tromey <tom@tromey.com>
8001
8002 * symfile-mem.c: Update CORE_ADDR size assert.
8003
272cd5a3
SM
80042020-03-12 Simon Marchi <simon.marchi@efficios.com>
8005
8006 * selftest.m4: Move to gdbsupport/.
8007 * acinclude.m4: Update path to selftest.m4.
8008
74cd3f9d
SM
80092020-03-12 Simon Marchi <simon.marchi@efficios.com>
8010
8011 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8012 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8013 gdbarch-selfselftests.c and selftest-arch.c.
8014 (SUBDIR_UNITTESTS_OBS): Rename to...
8015 (SELFTESTS_OBS): ... this.
8016 (COMMON_SFILES): Remove disasm-selftests.c and
8017 gdbarch-selftests.c.
8018 * configure.ac: Don't add selftest-arch.{c,o} to
8019 CONFIG_{SRCS,OBS}.
8020 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8021 preprocessor conditions.
8022
db6878ac
SM
80232020-03-12 Simon Marchi <simon.marchi@efficios.com>
8024
8025 * configure.ac: Don't source bfd/development.sh.
8026 * selftest.m4: Modify comment.
8027 * configure: Re-generate.
8028
4d696a5c
SM
80292020-03-12 Simon Marchi <simon.marchi@efficios.com>
8030
8031 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8032 not "true" or "false".
8033 * configure: Re-generate.
8034
8dd8e1c7
CB
80352020-03-12 Christian Biesinger <cbiesinger@google.com>
8036
8037 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8038 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8039 renamed to arm_nbsd_supply_gregset.
8040 (fetch_register): Update to call arm_nbsd_supply_gregset.
8041 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8042 (arm_netbsd_nat_target::fetch_registers): Update.
8043 (fetch_elfcore_registers): Removed.
8044 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8045 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8046 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8047 not require NetBSD system headers.
8048 (arm_nbsd_regset): New struct.
8049 (arm_nbsd_iterate_over_regset_sections): New function.
8050 (arm_netbsd_init_abi_common): Updated to call
8051 set_gdbarch_iterate_over_regset_sections.
8052 * arm-nbsd-tdep.h: New file.
8053
dd69bf7a
KB
80542020-03-11 Kevin Buettner <kevinb@redhat.com>
8055
8056 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8057 recursion.
8058
a0761e34
SM
80592020-03-11 Simon Marchi <simon.marchi@efficios.com>
8060
8061 * configure: Re-generate.
8062
e7a82140
TT
80632020-03-11 Tom Tromey <tromey@adacore.com>
8064
8065 * ada-typeprint.c (print_choices): Fix comment.
8066
dcc050c8
AB
80672020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8068
8069 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8070 previous item in the list, when the list has no items.
8071
1c33af77
TV
80722020-03-11 Tom de Vries <tdevries@suse.de>
8073
8074 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8075 PROP_LOCLIST handling code.
8076
8c95582d
AB
80772020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8078
8079 * buildsym-legacy.c (record_line): Pass extra parameter to
8080 record_line.
8081 * buildsym.c (buildsym_compunit::record_line): Take an extra
8082 parameter, reduce duplication in the line table, and record the
8083 is_stmt flag in the line table.
8084 * buildsym.h (buildsym_compunit::record_line): Add extra
8085 parameter.
8086 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8087 non-statement lines.
8088 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8089 this to the symtab builder.
8090 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8091 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8092 through to dwarf_record_line_1.
8093 * infrun.c (process_event_stop_test): When stepping, don't stop at
8094 a non-statement instruction, and only refresh the step info when
8095 we land in the middle of a line's range. Also add an extra
8096 comment.
8097 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8098 field.
8099 * record-btrace.c (btrace_find_line_range): Only record lines
8100 marked as is-statement.
8101 * stack.c (frame_show_address): Show the frame address if we are
8102 in a non-statement sal.
8103 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8104 (maintenance_print_one_line_table): Print a header for the is_stmt
8105 column, and include is_stmt information in the output.
8106 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8107 preference to non-statements.
8108 (find_pcs_for_symtab_line): Prefer is-statement entries.
8109 (find_line_common): Likewise.
8110 * symtab.h (struct linetable_entry): Add is_stmt field.
8111 (struct symtab_and_line): Likewise.
8112 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8113 arranging the line table.
8114
e4003a34
TV
81152020-03-07 Tom de Vries <tdevries@suse.de>
8116
8117 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8118 DIE.
8119
e8932576
TT
81202020-03-07 Tom Tromey <tom@tromey.com>
8121
8122 * valops.c (value_literal_complex): Remove obsolete comment.
8123 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8124 comment.
8125
29734269
SM
81262020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8127
8128 * infrun.h: Forward-declare thread_info.
8129 (set_step_info): Add thread_info parameter, add doc.
8130 * infrun.c (set_step_info): Add thread_info parameter, move doc
8131 to header.
8132 * infrun.c (process_event_stop_test): Pass thread to
8133 set_step_info call.
8134 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8135 set_step_info.
8136 (prepare_one_step): Add thread_info parameter, pass it to
8137 set_step_frame and prepare_one_step (recursive) call.
8138 (step_1): Pass thread to prepare_one_step call.
8139 (step_command_fsm::should_stop): Pass thread to
8140 prepare_one_step.
8141 (until_next_fsm): Pass thread to set_step_frame call.
8142 (finish_command): Pass thread to set_step_info call.
8143
b7d64b29
HD
81442020-03-06 Hannes Domani <ssbssa@yahoo.de>
8145
8146 * windows-tdep.c (windows_solib_create_inferior_hook):
8147 Check if inferior is running.
8148
09f2921c
TV
81492020-03-06 Tom de Vries <tdevries@suse.de>
8150
8151 * NEWS: Fix "the the".
8152 * ctfread.c: Same.
8153
fd760e79
TV
81542020-03-06 Tom de Vries <tdevries@suse.de>
8155
8156 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8157
20ea4a60
AB
81582020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8159
8160 * .dir-locals.el: Add a comment referencing the other copies of
8161 this file.
8162
0afbabf0
JB
81632020-03-05 John Baldwin <jhb@FreeBSD.org>
8164
8165 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8166 psargs.
8167
842806cb
TBA
81682020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8169
8170 * .gitattributes: New file.
8171
be1e3d3e
TT
81722020-03-04 Tom Tromey <tom@tromey.com>
8173
8174 * symmisc.c (print_symbol_bcache_statistics)
8175 (print_objfile_statistics): Update.
8176 * symfile.c (allocate_symtab): Use intern.
8177 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8178 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8179 macro_cache>: Remove.
8180 <string_cache>: New member.
8181 (struct objfile) <intern>: New methods.
8182 * elfread.c (elf_symtab_read): Use intern.
8183 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8184 (dwarf2_compute_name, dwarf2_physname)
8185 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8186 names.
8187 (guess_partial_die_structure_name): Update.
8188 (partial_die_info::fixup): Intern name.
8189 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8190 name.
8191 (dwarf2_name): Intern name. Update.
8192 * buildsym.c (buildsym_compunit::get_macro_table): Use
8193 string_cache.
8194
4e7625fd
TT
81952020-03-04 Tom Tromey <tom@tromey.com>
8196
8197 * jit.c (bfd_open_from_target_memory): Make "target" const.
8198 * corefile.c (gnutarget): Now const.
8199 * gdbcore.h (gnutarget): Now const.
8200
46f9f931
HD
82012020-03-04 Hannes Domani <ssbssa@yahoo.de>
8202
8203 * NEWS: Mention support for WOW64 processes.
8204 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8205 (amd64_windows_segment_register_p): Remove static.
8206 (_initialize_amd64_windows_nat): Update.
8207 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8208 * i386-windows-nat.c (context_offset): Update.
8209 (i386_mappings): Rename and remove static.
8210 (i386_windows_segment_register_p): Remove static.
8211 (_initialize_i386_windows_nat): Update.
8212 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8213 (STATUS_WX86_SINGLE_STEP): New macro.
8214 (EnumProcessModulesEx): New macro.
8215 (Wow64SuspendThread): New macro.
8216 (Wow64GetThreadContext): New macro.
8217 (Wow64SetThreadContext): New macro.
8218 (Wow64GetThreadSelectorEntry): New macro.
8219 (windows_set_context_register_offsets): Add static.
8220 (windows_set_segment_register_p): Likewise.
8221 (windows_add_thread): Adapt for WOW64 processes.
8222 (windows_fetch_one_register): Likewise.
8223 (windows_nat_target::fetch_registers): Likewise.
8224 (windows_store_one_register): Likewise.
8225 (display_selector): Likewise.
8226 (display_selectors): Likewise.
8227 (handle_exception): Likewise.
8228 (windows_continue): Likewise.
8229 (windows_nat_target::resume): Likewise.
8230 (windows_add_all_dlls): Likewise.
8231 (do_initial_windows_stuff): Likewise.
8232 (windows_nat_target::attach): Likewise.
8233 (windows_get_exec_module_filename): Likewise.
8234 (windows_nat_target::create_inferior): Likewise.
8235 (windows_xfer_siginfo): Likewise.
8236 (_initialize_loadable): Initialize Wow64SuspendThread,
8237 Wow64GetThreadContext, Wow64SetThreadContext,
8238 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8239 * windows-nat.h (windows_set_context_register_offsets):
8240 Remove declaration.
8241 (windows_set_segment_register_p): Likewise.
8242 (i386_windows_segment_register_p): Add declaration.
8243 (amd64_windows_segment_register_p): Likewise.
8244
440cf44e
LM
82452020-03-04 Luis Machado <luis.machado@linaro.org>
8246
8247 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8248 in "info registers" for AArch64/ARM.
8249
8250 The change caused "info registers" to not print GPR's.
8251
8252 gdb/ChangeLog:
8253
8254 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8255
8256 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8257 when reg->group is empty and reggroup is not.
8258
1009d92f
TT
82592020-03-03 Tom Tromey <tromey@adacore.com>
8260
8261 * dwarf2/frame.c (struct dwarf2_frame_cache)
8262 <checked_tailcall_bottom, entry_cfa_sp_offset,
8263 entry_cfa_sp_offset_p>: Remove members.
8264 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8265 (dwarf2_frame_prev_register): Don't call
8266 dwarf2_tailcall_sniffer_first.
8267 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8268 * frame-unwind.c (add_unwinder): New fuction.
8269 (frame_unwind_init): Use it. Add tailcall unwinder.
8270
5e5d66b6
AB
82712020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8272 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8273
8274 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8275 value should be printed as true.
8276
584cf46d
HD
82772020-03-03 Hannes Domani <ssbssa@yahoo.de>
8278
8279 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8280 (windows_init_abi): Set and use windows_so_ops.
8281
7b973adc
SDJ
82822020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8283
8284 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8285 when verifying if dealing with a convenience variable.
8286
bb7b70ab
LM
82872020-03-03 Luis Machado <luis.machado@linaro.org>
8288
8289 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8290
9822cb57
SM
82912020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8292
8293 * infrun.c (gdbarch_supports_displaced_stepping): New.
8294 (use_displaced_stepping): Break up conditions in smaller pieces.
8295 Use gdbarch_supports_displaced_stepping.
8296 (displaced_step_prepare_throw): Use
8297 gdbarch_supports_displaced_stepping.
8298
63e163f2
AB
82992020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8300
8301 * NEWS: Mention new behaviour of the history filename.
8302 * top.c (write_history_p): Add comment.
8303 (show_write_history_p): Add header comment, give a different
8304 message when history writing is on, but the history filename is
8305 empty.
8306 (history_filename): Add comment.
8307 (history_filename_empty): New function.
8308 (show_history_filename): Add header comment, give a different
8309 message when the filename is empty.
8310 (init_history): Compare history_filename against nullptr, and only
8311 read history if the filename is not empty.
8312 (set_history_filename): Add header comment, and only make
8313 non-empty filenames absolute.
8314 (init_main): Make the filename argument to 'set history filename'
8315 optional.
8316
81b86b97
CB
83172020-03-02 Christian Biesinger <cbiesinger@google.com>
8318
8319 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8320 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8321 (fetch_fp_register): Update.
8322 (fetch_fp_regs): Update.
8323 (store_fp_register): Update.
8324 (store_fp_regs): Update.
8325 (arm_netbsd_nat_target::read_description): New function.
8326 (fetch_elfcore_registers): Update.
8327
24ed6739
AB
83282020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8329
8330 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8331 general_thread if the stop reply is missing a thread-id.
8332 (remote_target::process_stop_reply): Use the first non-exited
8333 thread if the target didn't pass a thread-id.
8334 * infrun.c (do_target_wait): Move call to
8335 switch_to_inferior_no_thread to ....
8336 (do_target_wait_1): ... here.
8337
a84bb2a0
JT
83382020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8339
8340 * debuginfod-support.c: Include defs.h first.
8341
658dadf0
TV
83422020-02-28 Tom de Vries <tdevries@suse.de>
8343
8344 * symfile.c (set_initial_language): Use default language for lookup.
8345
4ebe4877
SM
83462020-02-28 Simon Marchi <simon.marchi@efficios.com>
8347
8348 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8349 reader variable, pass `this` to read_cutu_die_from_dwo.
8350
e5da1139
AM
83512020-02-27 Aaron Merey <amerey@redhat.com>
8352
8353 * source.c (open_source_file): Check for nullptr when computing
8354 srcpath.
8355
317f7127
TT
83562020-02-27 Tom Tromey <tromey@adacore.com>
8357
8358 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8359 member.
8360 (dwarf2_add_field): Don't update nfields.
8361 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8362
3104d9ee
AB
83632020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8364
8365 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8366 abs.
8367
b83470bf
TT
83682020-02-26 Tom Tromey <tom@tromey.com>
8369
8370 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8371 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8372 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8373 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8374 per_cu_data.
8375
edfe0a0c
TT
83762020-02-26 Tom Tromey <tom@tromey.com>
8377
8378 * dwarf2/index-write.c (psym_index_map): Change type.
8379 (add_address_entry_worker, write_one_signatured_type)
8380 (recursively_count_psymbols, recursively_write_psymbols)
8381 (class debug_names, psyms_seen_size, write_gdbindex)
8382 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8383
0d79cdc4
AM
83842020-02-26 Aaron Merey <amerey@redhat.com>
8385
8386 * Makefile.in: Handle optional debuginfod support.
8387 * NEWS: Update.
8388 * README: Add --with-debuginfod summary.
8389 * config.in: Regenerate.
8390 * configure: Regenerate.
8391 * configure.ac: Handle optional debuginfod support.
8392 * debuginfod-support.c: debuginfod helper functions.
8393 * debuginfod-support.h: Ditto.
8394 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8395 summary.
8396 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8397 when a dwz file cannot be found.
8398 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8399 debuginfo file cannot be found.
8400 * source.c (open_source_file): Query debuginfod servers when a
8401 source file cannot be found.
8402 * top.c (print_gdb_configuration): Include
8403 --{with,without}-debuginfod in the output.
8404
b65ce565
JG
84052020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8406
8407 * thread.c (thr_try_catch_cmd): Print thread name.
8408
d4c9a4f8
SM
84092020-02-26 Simon Marchi <simon.marchi@efficios.com>
8410
8411 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8412 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8413 dwarf2_fetch_die_type_sect_off): Move to...
8414 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8415 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8416 dwarf2_fetch_die_type_sect_off): ... here.
8417 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8418 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8419 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8420
0dce4280
TV
84212020-02-26 Tom de Vries <tdevries@suse.de>
8422
8423 PR gdb/25603
8424 * symfile.c (set_initial_language): Exit-early if
8425 language_mode == language_mode_manual.
8426
450a1bfc
SM
84272020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8428
8429 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8430 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8431 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8432
9e80cfa1
AB
84332020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8434
8435 * gdbtypes.c (create_array_type_with_stride): Handle negative
8436 array strides.
8437 * valarith.c (value_subscripted_rvalue): Likewise.
8438
09624f1f
LM
84392020-02-25 Luis Machado <luis.machado@linaro.org>
8440
8441 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8442
8cb5117c
SM
84432020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8444
8445 * loc.h (dwarf2_get_die_type): Move to...
8446 * read.h (dwarf2_get_die_type): ... here.
8447 * read.c (dwarf2_get_die_type): Move doc to header.
8448
c325c44e
JB
84492020-02-25 Joel Brobecker <brobecker@adacore.com>
8450
8451 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8452 'gnulib/Makefile.in' to the list.
8453
4ac93832
TT
84542020-02-24 Tom Tromey <tom@tromey.com>
8455
8456 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8457 Remove.
8458 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8459 XOBNEWVEC.
8460
197400e8
TT
84612020-02-24 Tom Tromey <tom@tromey.com>
8462
8463 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8464 New method.
8465 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8466 (dw2_do_instantiate_symtab, dw2_get_file_names)
8467 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8468
76935768
TT
84692020-02-24 Tom Tromey <tom@tromey.com>
8470
8471 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8472 make_scoped_restore.
8473 (dwarf2_psymtab::read_symtab): Don't clear
8474 reading_partial_symbols.
8475
a88ef40d
TV
84762020-02-24 Tom de Vries <tdevries@suse.de>
8477
8478 PR gdb/25592
8479 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8480
c9af6521
TV
84812020-02-24 Tom de Vries <tdevries@suse.de>
8482
8483 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8484 commands layout next/prev/regs.
8485
5707a07a
TT
84862020-02-22 Tom Tromey <tom@tromey.com>
8487
8488 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8489 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8490
3b0fb49e
TT
84912020-02-22 Tom Tromey <tom@tromey.com>
8492
8493 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8494
283be8bf
TT
84952020-02-22 Tom Tromey <tom@tromey.com>
8496
8497 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8498 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8499 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8500 * tui/tui.c (_initialize_tui): Add usage text.
8501
ca793b96
TT
85022020-02-22 Tom Tromey <tom@tromey.com>
8503
8504 * tui/tui-win.c (tui_set_focus_command)
8505 (tui_set_win_height_command): Use error_no_arg.
8506 (_initialize_tui_win): Update help text.
8507 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8508
432b5c40
TT
85092020-02-22 Tom Tromey <tom@tromey.com>
8510
8511 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8512 * tui/tui-disasm.h (struct tui_disasm_window)
8513 <display_start_addr>: Declare.
8514 * tui/tui-source.h (struct tui_source_window)
8515 <display_start_addr>: Declare.
8516 * tui/tui-winsource.h (struct tui_source_window_base)
8517 <show_source_line, display_start_addr>: New methods.
8518 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8519 Rename and move to protected section.
8520 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8521 (tui_source_window_base::do_erase_source_content): Update.
8522 (tui_source_window_base::show_source_line): Now a method.
8523 (tui_source_window_base::show_source_content)
8524 (tui_source_window_base::tui_source_window_base)
8525 (tui_source_window_base::rerender)
8526 (tui_source_window_base::refill)
8527 (tui_source_window_base::do_scroll_horizontal)
8528 (tui_source_window_base::set_is_exec_point_at)
8529 (tui_source_window_base::update_breakpoint_info)
8530 (tui_source_window_base::update_exec_info): Update.
8531 * tui/tui-source.c (tui_source_window::set_contents)
8532 (tui_source_window::showing_source_p)
8533 (tui_source_window::do_scroll_vertical)
8534 (tui_source_window::location_matches_p)
8535 (tui_source_window::line_is_displayed): Update.
8536 (tui_source_window::display_start_addr): New method.
8537 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8538 (tui_disasm_window::do_scroll_vertical)
8539 (tui_disasm_window::location_matches_p): Update.
8540 (tui_disasm_window::display_start_addr): New method.
8541
01b1af32
TT
85422020-02-22 Tom Tromey <tom@tromey.com>
8543
8544 * NEWS: Add entry for gdb.register_window_type.
8545 * tui/tui-layout.h (window_factory): New typedef.
8546 (tui_register_window): Declare.
8547 * tui/tui-layout.c (saved_tui_windows): New global.
8548 (tui_apply_current_layout): Use it.
8549 (tui_register_window): New function.
8550 * python/python.c (do_start_initialization): Call
8551 gdbpy_initialize_tui.
8552 (python_GdbMethods): Add "register_window_type" function.
8553 * python/python-internal.h (gdbpy_register_tui_window)
8554 (gdbpy_initialize_tui): Declare.
8555 * python/py-tui.c: New file.
8556 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8557
fc96d20b
TT
85582020-02-22 Tom Tromey <tom@tromey.com>
8559
8560 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8561
935c78c0
TT
85622020-02-22 Tom Tromey <tom@tromey.com>
8563
8564 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8565 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8566 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8567 (tui_set_win_focus_to): Move from tui-win.c.
8568
0240c8f1
TT
85692020-02-22 Tom Tromey <tom@tromey.com>
8570
8571 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8572 functions.
8573 (known_window_types): New global.
8574 (tui_get_window_by_name): Reimplement.
8575 (initialize_known_windows): New function.
8576 (validate_window_name): Rewrite.
8577 (_initialize_tui_layout): Call initialize_known_windows.
8578
fdb01f0c
TT
85792020-02-22 Tom Tromey <tom@tromey.com>
8580
8581 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8582 Remove constants.
8583 * tui/tui-winsource.h (struct tui_source_window_base)
8584 <tui_source_window_base>: Remove parameter.
8585 * tui/tui-winsource.c
8586 (tui_source_window_base::tui_source_window_base): Remove
8587 parameter.
8588 (tui_source_window_base::refill): Update.
8589 * tui/tui-stack.h (struct tui_locator_window)
8590 <tui_locator_window>: Update.
8591 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8592 Default the constructor.
8593 * tui/tui-regs.h (struct tui_data_item_window)
8594 <tui_data_item_window>: Default the constructor.
8595 (struct tui_data_window) <tui_data_window>: Likewise.
8596 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8597 Default the constructor.
8598 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8599 Default the constructor.
8600 <type>: Remove.
8601 (struct tui_win_info) <tui_win_info>: Default the constructor.
8602 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8603 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8604 Default the constructor.
8605
865a5aec
TT
86062020-02-22 Tom Tromey <tom@tromey.com>
8607
8608 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8609 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8610 * tui/tui-win.c (tui_resize_all): Don't call
8611 tui_delete_invisible_windows.
8612 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8613 done.
8614 (tui_set_layout): Update.
8615 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8616 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8617 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8618
e098d18c
TT
86192020-02-22 Tom Tromey <tom@tromey.com>
8620
8621 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8622 correctly.
8623
eb9c8874
TT
86242020-02-22 Tom Tromey <tom@tromey.com>
8625
8626 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8627
7eed1a8e
TT
86282020-02-22 Tom Tromey <tom@tromey.com>
8629
8630 * tui/tui-winsource.h (struct tui_source_window_iterator)
8631 <inner_iterator>: New etytypedef.
8632 <tui_source_window_iterator>: Take "end" parameter.
8633 <tui_source_window_iterator>: Take iterator.
8634 <operator*, advance>: Update.
8635 <m_iter>: Change type.
8636 <m_end>: New field.
8637 (struct tui_source_windows) <begin, end>: Update.
8638 * tui/tui-layout.c (tui_windows): New global.
8639 (tui_apply_current_layout): Clear tui_windows.
8640 (tui_layout_window::apply): Update tui_windows.
8641 * tui/tui-data.h (tui_windows): Declare.
8642 (all_tui_windows): Now inline function.
8643 (class tui_window_iterator, struct all_tui_windows): Remove.
8644
7c043ba6
TT
86452020-02-22 Tom Tromey <tom@tromey.com>
8646
8647 PR tui/17850:
8648 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8649 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8650 "height" argument.
8651 (class tui_layout_window) <get_sizes>: Likewise.
8652 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8653 argument.
8654 <get_sizes>: Add "height" argument.
8655 <m_vertical>: New field.
8656 * tui/tui-layout.c (tui_layout_split::clone): Update.
8657 (tui_layout_split::get_sizes): Add "height" argument.
8658 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8659 (tui_new_layout_command): Parse "-horizontal".
8660 (_initialize_tui_layout): Update help string.
8661 (tui_layout_split::specification): Add "-horizontal" when needed.
8662 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8663 argument.
8664 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8665 New methods.
8666
6bc56648
TT
86672020-02-22 Tom Tromey <tom@tromey.com>
8668
8669 * tui/tui-layout.h (enum tui_adjust_result): New.
8670 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8671 (class tui_layout_window) <adjust_size>: Return
8672 tui_adjust_result. Rewrite.
8673 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8674 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8675
c22fef7e
TT
86762020-02-22 Tom Tromey <tom@tromey.com>
8677
8678 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8679 parameter and return types.
8680 (class tui_layout_base) <specification>: Add "depth".
8681 (class tui_layout_window) <specification>: Add "depth".
8682 (class tui_layout_split) <specification>: Add "depth".
8683 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8684 and return types.
8685 (tui_new_layout_command): Parse sub-layouts.
8686 (_initialize_tui_layout): Update help string.
8687 (tui_layout_window::specification): Add "depth".
8688 (add_layout_command): Update.
8689
ee325b61
TT
86902020-02-22 Tom Tromey <tom@tromey.com>
8691
8692 * NEWS: Add "tui new-layout" item.
8693 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8694 Add new-layout command to help text.
8695 (validate_window_name): New function.
8696 (tui_new_layout_command): New function.
8697 (_initialize_tui_layout): Register "new-layout".
8698 (tui_layout_window::specification): New method.
8699 (tui_layout_window::specification): New method.
8700 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8701 method.
8702 (class tui_layout_window) <specification>: New method.
8703 (class tui_layout_split) <specification>: New method.
8704
416eb92d
TT
87052020-02-22 Tom Tromey <tom@tromey.com>
8706
8707 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8708 * tui/tui-win.c (window_name_completer): Update comment.
8709 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8710 Declare method.
8711 (class tui_layout_window) <replace_window>: Likewise.
8712 (class tui_layout_split) <replace_window>: Likewise.
8713 (tui_set_layout): Don't declare.
8714 (tui_set_initial_layout): Declare function.
8715 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8716 (asm_regs_layout): New globals.
8717 (tui_current_layout, show_layout): Remove.
8718 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8719 (find_layout, tui_apply_layout): New function.
8720 (layout_completer): Remove.
8721 (tui_next_layout): Reimplement.
8722 (tui_next_layout_command): New function.
8723 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8724 (tui_regs_layout): Reimplement.
8725 (tui_regs_layout_command): New function.
8726 (extract_display_start_addr): Rewrite.
8727 (next_layout, prev_layout): Remove.
8728 (tui_layout_window::replace_window): New method.
8729 (tui_layout_split::replace_window): New method.
8730 (destroy_layout): New function.
8731 (layout_list): New global.
8732 (add_layout_command): New function.
8733 (initialize_layouts): Update.
8734 (tui_layout_command): New function.
8735 (_initialize_tui_layout): Install "layout" commands.
8736 * tui/tui-data.h (enum tui_layout_type): Remove.
8737 (tui_current_layout): Don't declare.
8738
0dbc2fc7
TT
87392020-02-22 Tom Tromey <tom@tromey.com>
8740
8741 * tui/tui-regs.c (tui_reg_layout): Remove.
8742 (tui_reg_command): Use tui_regs_layout.
8743 * tui/tui-layout.h (tui_reg_command): Declare.
8744 * tui/tui-layout.c (tui_reg_command): New function.
8745
5afe342e
TT
87462020-02-22 Tom Tromey <tom@tromey.com>
8747
8748 * tui/tui.c (tui_rl_delete_other_windows): Call
8749 tui_remove_some_windows.
8750 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8751 Declare method.
8752 (class tui_layout_window) <remove_windows>: New method.
8753 (class tui_layout_split) <remove_windows>: Declare.
8754 (tui_remove_some_windows): Declare.
8755 * tui/tui-layout.c (tui_remove_some_windows): New function.
8756 (tui_layout_split::remove_windows): New method.
8757
427326a8
TT
87582020-02-22 Tom Tromey <tom@tromey.com>
8759
8760 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8761 * tui/tui-layout.h (tui_next_layout): Declare.
8762 * tui/tui-layout.c (tui_next_layout): New function.
8763
3fe12b6d
TT
87642020-02-22 Tom Tromey <tom@tromey.com>
8765
8766 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8767 correct coordinates.
8768
59b8b5d2
TT
87692020-02-22 Tom Tromey <tom@tromey.com>
8770
8771 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8772 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8773 DATA_WIN case.
8774
2a3d458b
TT
87752020-02-22 Tom Tromey <tom@tromey.com>
8776
8777 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8778 TUI_DISASM_WIN, not tui_win_list.
8779
3f0cbb04
TT
87802020-02-22 Tom Tromey <tom@tromey.com>
8781
8782 * valprint.c (generic_val_print_enum_1)
8783 (val_print_type_code_flags): Style member names.
8784 * rust-lang.c (val_print_struct, rust_print_enum)
8785 (rust_print_struct_def, rust_internal_print_type): Style member
8786 names.
8787 * p-valprint.c (pascal_object_print_value_fields): Style member
8788 names. Only call fprintf_symbol_filtered for static members.
8789 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8790 * f-valprint.c (f_val_print): Style member names.
8791 * f-typeprint.c (f_type_print_base): Style member names.
8792 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8793 call fprintf_symbol_filtered for static members.
8794 (cp_print_class_member): Style member names.
8795 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8796 member names.
8797 * ada-valprint.c (ada_print_scalar): Style enum names.
8798 (ada_val_print_enum): Likewise.
8799 * ada-typeprint.c (print_enum_type): Style enum names.
8800
d4d947ae
TT
88012020-02-21 Tom Tromey <tom@tromey.com>
8802
8803 * psympriv.h (struct partial_symtab): Update comment.
8804
e94e944b
TT
88052020-02-21 Tom Tromey <tromey@adacore.com>
8806
8807 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8808 type is CORE_ADDR.
8809
1eb73179
TV
88102020-02-21 Tom de Vries <tdevries@suse.de>
8811
8812 PR gdb/25534
8813 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8814 if dependencies[i]->user != NULL.
8815
4f180d53
AT
88162020-02-21 Ali Tamur <tamur@google.com>
8817
8818 * dwarf2/read.c (dwarf2_name): Add null check.
8819
22b6cd70
TT
88202020-02-20 Tom Tromey <tom@tromey.com>
8821
8822 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8823 ">=", in binary search.
8824 (dwarf2_find_containing_comp_unit): New overload.
8825 (run_test): New self-test.
8826 (_initialize_dwarf2_read): Register new test.
8827
bd0cf5a6
NC
88282020-02-20 Nelson Chu <nelson.chu@sifive.com>
8829
8830 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8831 * riscv-tdep.h: Likewise.
8832 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8833 rv32-only CSR.
8834 * features/riscv/64bit-csr.xml: Regenerated.
8835
3f702acd
SDJ
88362020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8837 Tom Tromey <tom@tromey.com>
8838
8839 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8840 of 'fputc_unfiltered'.
8841 (putchar_unfiltered): Call 'fputc_unfiltered'.
8842 (fputc_unfiltered): Call 'fputs_unfiltered'.
8843
d13c7322
AB
88442020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8845
8846 * config.in: Regenerate.
8847 * configure: Regenerate.
8848 * configure.ac: Add --with-python-libdir option.
8849 * main.c: Use WITH_PYTHON_LIBDIR.
8850
869d8950
TT
88512020-02-19 Tom Tromey <tom@tromey.com>
8852
8853 * symtab.c (general_symbol_info::compute_and_set_names): Use
8854 obstack_strndup. Simplify call to symbol_set_demangled_name.
8855
298e9637
SM
88562020-02-19 Simon Marchi <simon.marchi@efficios.com>
8857
8858 * dwarf2/read.c (allocate_signatured_type_table,
8859 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8860 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8861 Remove objfile parameter, update all callers.
8862
08410482
DE
88632020-02-19 Doug Evans <dje@google.com>
8864
8865 PR rust/25535
8866 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8867 rust_enum_variant calculation.
8868
dfdeeca1
TT
88692020-02-19 Tom Tromey <tromey@adacore.com>
8870
8871 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8872
2ef5453b
TT
88732020-02-19 Tom Tromey <tromey@adacore.com>
8874
8875 * ada-lang.c (cache_symbol): Use obstack_strdup.
8876
9f1528a1
AB
88772020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8878
8879 * configure: Regenerate.
8880
d3c22fa8
TT
88812020-02-19 Tom Tromey <tromey@adacore.com>
8882
8883 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8884 NULL check.
8885
bf84f706
MR
88862020-02-19 Maciej W. Rozycki <macro@wdc.com>
8887
8888 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8889
d1c9b20f
AB
88902020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8891
8892 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8893 if GDBSERVER is not defined.
8894 (riscv_tdesc_cache): Likewise, also store const target_desc.
8895 (STATIC_IN_GDB): Define.
8896 (riscv_create_target_description): Update declaration with
8897 STATIC_IN_GDB.
8898 (riscv_lookup_target_description): New function, only define if
8899 GDBSERVER is not defined.
8900 * arch/riscv.h (riscv_create_target_description): Declare only
8901 when GDBSERVER is defined.
8902 (riscv_lookup_target_description): New declaration when GDBSERVER
8903 is not defined.
8904 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8905 (riscv_linux_read_features): ...this, and return
8906 riscv_gdbarch_features instead of target_desc.
8907 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8908 (riscv_linux_read_description): Rename to...
8909 (riscv_linux_read_features): ...this.
8910 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8911 Update to use riscv_gdbarch_features and
8912 riscv_lookup_target_description.
8913 * riscv-tdep.c (riscv_find_default_target_description): Use
8914 riscv_lookup_target_description instead of
8915 riscv_create_target_description.
8916
373d7ac0
SM
89172020-02-18 Simon Marchi <simon.marchi@efficios.com>
8918
8919 * valprint.c (generic_val_print_enum_1): When printing a flag
8920 enum with value 0 and there is no enumerator with value 0, print
8921 just "0" instead of "(unknown: 0x0)".
8922
b29a2df0
SM
89232020-02-18 Simon Marchi <simon.marchi@efficios.com>
8924
8925 * valprint.c (generic_val_print_enum_1): Print unknown part of
8926 flag enum in hex.
8927
6740f0cc
SM
89282020-02-18 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8931 flag enums to contain duplicate enumerators.
8932 * valprint.c (generic_val_print_enum_1): Update comment.
8933
edd45eb0
SM
89342020-02-18 Simon Marchi <simon.marchi@efficios.com>
8935
8936 * dwarf2/read.c: Include "count-one-bits.h".
8937 (update_enumeration_type_from_children): If an enumerator has
8938 multiple bits set, don't treat the enumeration as a "flag enum".
8939 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8940 of flag enums have 0 or 1 bit set.
8941
6d0cf446
BE
89422020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8943
8944 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8945 conversion.
8946 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8947 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8948 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8949 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8950 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8951
7001c1b7
SM
89522020-02-18 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8955
fdb61c6c
SM
89562020-02-14 Simon Marchi <simon.marchi@efficios.com>
8957
8958 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8959 displaced_step_closure_up.
8960 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8961 (struct displaced_step_closure_up):
8962 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8963 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8964 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8965 Likewise.
8966 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8967 * gdbarch.c, gdbarch.h: Re-generate.
8968 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8969 displaced_step_closure_up.
8970 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8971 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8972 * infrun.h (displaced_step_closure_up): New type alias.
8973 (struct displaced_step_inferior_state) <step_closure>: Change
8974 type to displaced_step_closure_up.
8975 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8976 displaced_step_closure_up.
8977 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8978
a4a38eb4
TT
89792020-02-14 Tom Tromey <tom@tromey.com>
8980
8981 * minidebug.c (gnu_debug_key): New global.
8982 (find_separate_debug_file_in_section): Use it.
8983
e8217e61
SM
89842020-02-14 Simon Marchi <simon.marchi@efficios.com>
8985
8986 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8987 std::unique_ptr.
8988 * gdbarch.c: Re-generate.
8989 * gdbarch.h: Re-generate.
8990 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
8991 change.
8992 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
8993 type to std::unique_ptr.
8994 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8995 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8996 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8997 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8998 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
8999 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9000 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9001 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9002 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9003
d8d83535
SM
90042020-02-14 Simon Marchi <simon.marchi@efficios.com>
9005
9006 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9007 std::unique_ptr.
9008 (displaced_step_clear): Rename to...
9009 (displaced_step_reset): ... this. Just call displaced->reset ().
9010 (displaced_step_clear_cleanup): Rename to...
9011 (displaced_step_reset_cleanup): ... this.
9012 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9013 (displaced_step_fixup): Likewise.
9014 (resume_1): Likewise.
9015 (handle_inferior_event): Restore child's memory before calling
9016 displaced_step_fixup on the parent.
9017 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9018 to std::unique_ptr.
9019 <step_closure>: Change type to std::unique_ptr.
9020
5f661e03
SM
90212020-02-14 Simon Marchi <simon.marchi@efficios.com>
9022
9023 * arm-tdep.c: Include count-one-bits.h.
9024 (cleanup_block_store_pc): Use count_one_bits.
9025 (cleanup_block_load_pc): Use count_one_bits.
9026 (arm_copy_block_xfer): Use count_one_bits.
9027 (thumb2_copy_block_xfer): Use count_one_bits.
9028 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9029 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9030 (thumb_get_next_pcs_raw): Use count_one_bits.
9031 (arm_get_next_pcs_raw): Use count_one_bits_l.
9032 * arch/arm.c (bitcount): Remove.
9033 * arch/arm.h (bitcount): Remove.
9034
8084e579
TT
90352020-02-14 Tom Tromey <tromey@adacore.com>
9036
9037 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9038 Update.
9039 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9040 * dwarf2/loc.c (call_site_find_chain_1): Return
9041 unique_xmalloc_ptr.
9042 (call_site_find_chain): Likewise.
9043
258bf0ee
RB
90442020-02-14 Richard Biener <rguenther@suse.de>
9045
9046 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9047 on expression with division operators.
9048
f98a8458
AKS
90492020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9050
9051 * MAINTAINERS (Write After Approval): Adding myself.
9052
d1437c0e
TT
90532020-02-12 Tom Tromey <tom@tromey.com>
9054
9055 * event-loop.c (event_data, gdb_event, event_handler_func):
9056 Remove.
9057
3d4560f7
TT
90582020-02-12 Tom Tromey <tom@tromey.com>
9059
9060 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9061 (dwarf2_frame_objfile_data): Add comment.
9062 (find_comp_unit, set_comp_unit): New functions.
9063 (dwarf2_frame_find_fde): Use find_comp_unit.
9064 (dwarf2_build_frame_info): Use set_comp_unit.
9065
21982304
TT
90662020-02-12 Tom Tromey <tom@tromey.com>
9067
9068 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9069 (comp_unit): Don't initialize objfile.
9070 (execute_cfa_program): Add text_offset parameter.
9071 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9072 (dwarf2_frame_cache): Update.
9073 (dwarf2_build_frame_info): Don't set "objfile" member.
9074
4debb237
TT
90752020-02-12 Tom Tromey <tom@tromey.com>
9076
9077 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9078 (decode_frame_entry): Likewise.
9079 (dwarf2_build_frame_info): Update.
9080
0d404d44
TT
90812020-02-12 Tom Tromey <tom@tromey.com>
9082
9083 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9084 (decode_frame_entry_1): Use the comp_unit obstack.
9085
a7a3ae5c
TT
90862020-02-12 Tom Tromey <tom@tromey.com>
9087
9088 * dwarf2/frame.c (struct comp_unit): Add initializers and
9089 constructor.
9090 (dwarf2_frame_objfile_data): Store a comp_unit.
9091 (dwarf2_frame_find_fde): Update.
9092 (dwarf2_build_frame_info): Use "new".
9093
a9d65418
TT
90942020-02-12 Tom Tromey <tom@tromey.com>
9095
9096 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9097 (dwarf2_fde_table): Typedef for std::vector.
9098 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9099 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9100 (decode_frame_entry): Update.
9101 (dwarf2_build_frame_info): Use "new".
9102
7559c217
CB
91032020-02-12 Christian Biesinger <cbiesinger@google.com>
9104
9105 * arm-tdep.c (arm_gdbarch_init): Update.
9106 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9107 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9108 have_neon, is_m>: Change to bool.
9109
aeefc73c
CB
91102020-02-12 Christian Biesinger <cbiesinger@google.com>
9111
9112 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9113
d27b8e5f
TT
91142020-02-12 Tom Tromey <tom@tromey.com>
9115
9116 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9117
cd5900f3
HD
91182020-02-12 Hannes Domani <ssbssa@yahoo.de>
9119
9120 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9121 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9122
f056b22b
TT
91232020-02-11 Tom Tromey <tom@tromey.com>
9124
9125 * psymtab.h: Update comment.
9126
f92ff6b5
TT
91272020-02-11 Tom Tromey <tom@tromey.com>
9128
9129 * gdb_obstack.h (struct auto_obstack): Use
9130 DISABLE_COPY_AND_ASSIGN.
9131
3fd6912b
TT
91322020-02-11 Tom Tromey <tom@tromey.com>
9133
9134 * dwarf2/frame.h (struct objfile): Don't forward declare.
9135
69ed9b74
CB
91362020-02-11 Christian Biesinger <cbiesinger@google.com>
9137
9138 * cris-tdep.c (cris_supply_gregset): Change signature to match
9139 what struct regset expects.
9140 (cris_regset): New struct.
9141 (fetch_core_registers): Remove.
9142 (cris_iterate_over_regset_sections): New function.
9143 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9144 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9145
bda874f6
CB
91462020-02-11 Christian Biesinger <cbiesinger@google.com>
9147
9148 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9149 registers.
9150
754e1564
CB
91512020-02-11 Christian Biesinger <cbiesinger@google.com>
9152
9153 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9154
8ddd8e0e
SM
91552020-02-11 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * configure: Re-generate.
9158
898e7f60
SM
91592020-02-11 Simon Marchi <simon.marchi@efficios.com>
9160
9161 * configure: Re-generate.
9162
58df732b
SM
91632020-02-11 Simon Marchi <simon.marchi@efficios.com>
9164
9165 * acinclude: Update warning.m4 path.
9166 * warning.m4: Move to gdbsupport.
9167
da5bd37e
TT
91682020-02-11 Tom Tromey <tromey@adacore.com>
9169
9170 * remote.c (remote_console_output): Update.
9171 * printcmd.c (printf_command): Update.
9172 * event-loop.c (gdb_wait_for_event): Update.
9173 * linux-nat.c (sigchld_handler): Update.
9174 * remote-sim.c (gdb_os_write_stdout): Update.
9175 (gdb_os_flush_stdout): Update.
9176 (gdb_os_flush_stderr): Update.
9177 (gdb_os_write_stderr): Update.
9178 * exceptions.c (print_exception): Update.
9179 * remote-fileio.c (remote_fileio_func_read): Update.
9180 (remote_fileio_func_write): Update.
9181 * tui/tui.c (tui_enable): Update.
9182 * tui/tui-interp.c (tui_interp::init): Update.
9183 * utils.c (init_page_info): Update.
9184 (putchar_unfiltered, fputc_unfiltered): Update.
9185 (gdb_flush): Update.
9186 (emit_style_escape): Update.
9187 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9188 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9189 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9190 (stderr_file::write): Update.
9191 (stderr_file::puts): Update.
9192 * ui-file.h (ui_file_isatty, ui_file_write)
9193 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9194 (ui_file_puts): Don't declare.
9195
85f0dd3c
TV
91962020-02-10 Tom de Vries <tdevries@suse.de>
9197
9198 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9199 sentinel to char *.
9200
2e927613
TV
92012020-02-09 Tom de Vries <tdevries@suse.de>
9202
9203 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9204 filename if it matches "<artificial>".
9205
6bafc845
HD
92062020-02-09 Hannes Domani <ssbssa@yahoo.de>
9207
9208 * windows-tdep.c (struct enum_value_name): New struct.
9209 (create_enum): New function.
9210 (windows_get_siginfo_type): Create and use enum types.
9211
7928d571
HD
92122020-02-09 Hannes Domani <ssbssa@yahoo.de>
9213
9214 * NEWS: Mention $_siginfo support for Windows.
9215 * windows-nat.c (handle_exception): Set siginfo_er.
9216 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9217 (windows_xfer_siginfo): New function.
9218 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9219 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9220 (init_windows_gdbarch_data): New function.
9221 (get_windows_gdbarch_data): New function.
9222 (windows_get_siginfo_type): New function.
9223 (windows_init_abi): Register windows_get_siginfo_type.
9224 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9225
6751ebae
TT
92262020-02-08 Tom Tromey <tom@tromey.com>
9227
9228 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9229 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9230 <keep>: Declare method.
9231 <m_keep>: Remove member.
9232 <~cutu_reader>: Remove.
9233 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9234 (cutu_reader::cutu_reader): Update.
9235 (cutu_reader::keep): Rename from ~cutu_reader.
9236 (process_psymtab_comp_unit, build_type_psymtabs_1)
9237 (process_skeletonless_type_unit, load_partial_comp_unit)
9238 (load_full_comp_unit, dwarf2_read_addr_index)
9239 (read_signatured_type): Update.
9240
135f5437
TT
92412020-02-08 Tom Tromey <tom@tromey.com>
9242
9243 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9244 "want_partial_unit" parameter.
9245 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9246 Inline check for DW_TAG_partial_unit.
9247 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9248
9f66ff1c
TT
92492020-02-08 Tom Tromey <tom@tromey.com>
9250
9251 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9252 read.c.
9253 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9254 read.c.
9255
c8a7a66f
TT
92562020-02-08 Tom Tromey <tom@tromey.com>
9257
9258 * dwarf2/read.c (read_address): Move to comp-unit.c.
9259 (dwarf2_rnglists_process, dwarf2_ranges_process)
9260 (read_attribute_value, dwarf_decode_lines_1)
9261 (var_decode_location, decode_locdesc): Update.
9262 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9263 read.c. Remove "cu" parameter.
9264 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9265 method.
9266
8266302d
TT
92672020-02-08 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9270 (read_indirect_line_string): Update.
9271 * dwarf2/comp-unit.c (read_offset): Remove.
9272 (read_comp_unit_head): Update.
9273 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9274 method.
9275 (read_offset): Don't declare.
9276
4057dfde
TT
92772020-02-08 Tom Tromey <tom@tromey.com>
9278
9279 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9280 * dwarf2/read.c (struct comp_unit_head): Move to
9281 dwarf2/comp-unit.h.
9282 (enum class rcuh_kind): Move to comp-unit.h.
9283 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9284 (read_comp_unit_head, error_check_comp_unit_head)
9285 (read_and_check_comp_unit_head): Move to comp-unit.c.
9286 (read_offset, dwarf_unit_type_name): Likewise.
9287 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9288 (cutu_reader::cutu_reader, read_call_site_scope)
9289 (find_partial_die, follow_die_offset): Update.
9290 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9291
24aa364d
TT
92922020-02-08 Tom Tromey <tom@tromey.com>
9293
9294 * dwarf2/read.c (read_offset_1): Move to leb.c.
9295 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9296 (dwarf_decode_macro_bytes): Update.
9297 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9298 * dwarf2/leb.h (read_offset): Declare.
9299
2c7d5afc
TT
93002020-02-08 Tom Tromey <tom@tromey.com>
9301
9302 * dwarf2/read.c (dwarf2_section_size): Remove.
9303 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9304 Update.
9305 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9306
4075cb26
TT
93072020-02-08 Tom Tromey <tom@tromey.com>
9308
9309 * dwarf2/read.c (read_initial_length): Move to leb.c.
9310 * dwarf2/leb.h (read_initial_length): Declare.
9311 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9312 handle_nonstd parameter.
9313 * dwarf2/frame.c (read_initial_length): Remove.
9314 (decode_frame_entry_1): Update.
9315
09ba997f
TT
93162020-02-08 Tom Tromey <tom@tromey.com>
9317
9318 * dwarf2/loc.c (dwarf2_find_location_expression)
9319 (dwarf_evaluate_loc_desc::get_tls_address)
9320 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9321 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9322 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9323 (dwarf2_compile_property_to_c)
9324 (dwarf2_loc_desc_get_symbol_read_needs)
9325 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9326 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9327 (loclist_describe_location, loclist_tracepoint_var_ref)
9328 (loclist_generate_c_location): Update.
9329 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9330 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9331 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9332 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9333 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9334 (dwarf2_per_cu_data::addr_size)
9335 (dwarf2_per_cu_data::ref_addr_size)
9336 (dwarf2_per_cu_data::text_offset)
9337 (dwarf2_per_cu_data::addr_type): Now methods.
9338 (per_cu_header_read_in): Make per_cu "const".
9339 (dwarf2_version): Remove.
9340 (dwarf2_per_cu_data::int_type): Now a method.
9341 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9342 (set_die_type, read_array_type, read_subrange_index_type)
9343 (read_tag_string_type, read_subrange_type): Update.
9344 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9345 offset_size, ref_addr_size, text_offset, addr_type, version,
9346 objfile, int_type, addr_sized_int_type>: Declare methods.
9347
96c738c0
TT
93482020-02-08 Tom Tromey <tom@tromey.com>
9349
9350 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9351 Move earlier.
9352
8fdd972c
TT
93532020-02-08 Tom Tromey <tom@tromey.com>
9354
9355 * dwarf2/read.h (dwarf_line_debug): Declare.
9356 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9357 * dwarf2/read.c: Move line_header code to new files.
9358 (dwarf_line_debug): No longer static.
9359 * dwarf2/line-header.c: New file.
9360 * dwarf2/line-header.h: New file.
9361
03075812
TT
93622020-02-08 Tom Tromey <tom@tromey.com>
9363
9364 * dwarf2/read.c (struct line_header) <file_full_name,
9365 file_file_name>: Return unique_xmalloc_ptr.
9366 (line_header::file_file_name): Update.
9367 (line_header::file_full_name): Update.
9368 (dw2_get_file_names_reader): Update.
9369 (macro_start_file): Update.
9370
bb822404
TT
93712020-02-08 Tom Tromey <tom@tromey.com>
9372
9373 * dwarf2/read.c (struct line_header) <file_full_name,
9374 file_file_name>: Declare methods.
9375 (dw2_get_file_names_reader): Update.
9376 (file_file_name): Now a method.
9377 (file_full_name): Likewise.
9378 (macro_start_file): Update.
9379
009b64fc
TT
93802020-02-08 Tom Tromey <tom@tromey.com>
9381
9382 * dwarf2/read.c (dwarf_always_disassemble)
9383 (show_dwarf_always_disassemble): Move to loc.c.
9384 (_initialize_dwarf2_read): Move "always-disassemble" registration
9385 to loc.c.
9386 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9387 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9388 static.
9389 (show_dwarf_always_disassemble): Move from read.c.
9390 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9391
5895093f
TT
93922020-02-08 Tom Tromey <tom@tromey.com>
9393
9394 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9395 (create_quick_file_names_table): Return htab_up.
9396 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9397 Update.
9398 * dwarf2/read.h (struct dwarf2_per_objfile)
9399 <quick_file_names_table>: Now htab_up.
9400
b3b32279
TT
94012020-02-08 Tom Tromey <tom@tromey.com>
9402
9403 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9404
1d33d811
TT
94052020-02-08 Tom Tromey <tom@tromey.com>
9406
9407 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9408 Rewrite.
9409 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9410 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9411 (abbrev_table::abbrev_table): No longer inline.
9412 (ABBREV_HASH_SIZE): Remove.
9413 (abbrev_table::m_abbrevs): Now an htab_up.
9414
86de1d91
TT
94152020-02-08 Tom Tromey <tom@tromey.com>
9416
9417 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9418 (cutu_reader): Update.
9419 (build_type_psymtabs_1): Update.
9420 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9421 (abbrev_table::alloc_abbrev): Update.
9422 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9423 (abbrev_table::read): New static method, renamed from
9424 abbrev_table_read_table.
9425 (abbrev_table::alloc_abbrev)
9426 (abbrev_table::add_abbrev): Now private.
9427 (abbrev_table::abbrev_table): Now private.
9428 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9429
0335378b
TT
94302020-02-08 Tom Tromey <tom@tromey.com>
9431
9432 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9433 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9434 htab_up.
9435
48b490f2
TT
94362020-02-08 Tom Tromey <tom@tromey.com>
9437
9438 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9439 htab_up.
9440 (lookup_dwo_unit_in_dwp): Update.
9441 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9442 on obstack.
9443
bc68fb19
TT
94442020-02-08 Tom Tromey <tom@tromey.com>
9445
9446 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9447 obstack.
9448
d15acc42
TT
94492020-02-08 Tom Tromey <tom@tromey.com>
9450
9451 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9452 line_header_hash.
9453 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9454 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9455 Change type to htab_up.
9456
eaa5fa8b
TT
94572020-02-08 Tom Tromey <tom@tromey.com>
9458
9459 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9460 htab_up. Don't allocate on obstack.
9461 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9462 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9463 Change type to htab_up.
9464
b0b6a987
TT
94652020-02-08 Tom Tromey <tom@tromey.com>
9466
9467 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9468 Change type to htab_up.
9469 * dwarf2/read.c (create_signatured_type_table_from_index)
9470 (create_signatured_type_table_from_debug_names)
9471 (create_all_type_units, add_type_unit)
9472 (lookup_dwo_signatured_type, lookup_signatured_type)
9473 (process_skeletonless_type_unit): Update.
9474 (create_debug_type_hash_table, create_debug_types_hash_table):
9475 Change type of types_htab.
9476 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9477 htab_up. Don't allocate on obstack.
9478 (create_cus_hash_table): Change type of cus_htab parameter.
9479 (struct dwo_file) <cus, tus>: Now htab_up.
9480 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9481 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9482 (queue_and_load_all_dwo_tus): Update.
9483 * dwarf2/index-write.c (write_gdbindex): Update.
9484 (write_debug_names): Update.
9485
39856def
TT
94862020-02-08 Tom Tromey <tom@tromey.com>
9487
9488 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9489 dwarf2/read.c. Remove "next" member. Add constructor ntad
9490 destructor.
9491 (struct dwarf2_per_objfile) <queue>: New member.
9492 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9493 dwarf2/read.h.
9494 (dwarf2_queue, dwarf2_queue_tail): Remove.
9495 (class dwarf2_queue_guard): Add parameter to constructor. Use
9496 DISABLE_COPY_AND_ASSIGN.
9497 <m_per_objfile>: New member.
9498 <~dwarf2_queue_guard>: Rewrite.
9499 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9500 Update.
9501 (~dwarf2_queue_item): New.
9502
3e225074
TT
95032020-02-08 Tom Tromey <tom@tromey.com>
9504
9505 * dwarf2/read.c (struct die_info) <has_children>: New member.
9506 (dw2_get_file_names_reader): Remove has_children.
9507 (dw2_get_file_names): Update.
9508 (read_cutu_die_from_dwo): Remove has_children.
9509 (cutu_reader::init_tu_and_read_dwo_dies)
9510 (cutu_reader::cutu_reader): Update.
9511 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9512 Remove has_children.
9513 (build_type_psymtabs_1, process_skeletonless_type_unit)
9514 (load_partial_comp_unit, load_full_comp_unit): Update.
9515 (create_dwo_cu_reader): Remove has_children.
9516 (create_cus_hash_table, read_die_and_children): Update.
9517 (read_full_die_1,read_full_die): Remove has_children.
9518 (read_signatured_type): Update.
9519 (class cutu_reader) <has_children>: Remove.
9520
82ca8957
TT
95212020-02-08 Tom Tromey <tom@tromey.com>
9522
9523 * dwarf2/expr.c: Rename from dwarf2expr.c.
9524 * dwarf2/expr.h: Rename from dwarf2expr.h.
9525 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9526 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9527 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9528 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9529 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9530 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9531 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9532 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9533 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9534 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9535 * dwarf2/loc.c: Rename from dwarf2loc.c.
9536 * dwarf2/loc.h: Rename from dwarf2loc.h.
9537 * dwarf2/read.c: Rename from dwarf2read.c.
9538 * dwarf2/read.h: Rename from dwarf2read.h.
9539 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9540 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9541 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9542 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9543 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9544 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9545 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9546 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9547 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9548 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9549 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9550 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9551 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9552 Update.
9553 * Makefile.in (COMMON_SFILES): Update.
9554 (HFILES_NO_SRCDIR): Update.
9555
9e35d499
TT
95562020-02-08 Tom Tromey <tom@tromey.com>
9557
9558 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9559 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9560
1eba2311
TT
95612020-02-08 Tom Tromey <tom@tromey.com>
9562
9563 * dwarf2read.h (struct die_info): Don't declare.
9564
e41c2da2
TT
95652020-02-08 Tom Tromey <tom@tromey.com>
9566
9567 * dwarf2read.h (die_info_ptr): Remove typedef.
9568
4fc6c0d5
TT
95692020-02-08 Tom Tromey <tom@tromey.com>
9570
9571 * dwarf2read.c (read_call_site_scope)
9572 (handle_data_member_location, dwarf2_add_member_fn)
9573 (mark_common_block_symbol_computed, read_common_block)
9574 (attr_to_dynamic_prop, partial_die_info::read)
9575 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9576 (dwarf2_symbol_mark_computed, set_die_type): Update.
9577 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9578 method.
9579 (attr_form_is_block): Don't declare.
9580 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9581
cd6c91b4
TT
95822020-02-08 Tom Tromey <tom@tromey.com>
9583
9584 * dwarf2read.c (dwarf2_find_base_address, )
9585 (read_call_site_scope, rust_containing_type)
9586 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9587 (handle_data_member_location, dwarf2_add_member_fn)
9588 (get_alignment, read_structure_type, process_structure_scope)
9589 (mark_common_block_symbol_computed, read_common_block)
9590 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9591 (partial_die_info::read, read_attribute_value, new_symbol)
9592 (lookup_die_type, dwarf2_get_ref_die_offset)
9593 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9594 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9595 (dwarf2_symbol_mark_computed): Update.
9596 * dwarf2/attribute.h (struct attribute) <value_as_address,
9597 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9598 methods.
9599 (value_as_address, attr_form_is_section_offset)
9600 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9601 * dwarf2/attribute.c (attribute::value_as_address)
9602 (attribute::form_is_section_offset, attribute::form_is_constant)
9603 (attribute::form_is_ref): Now methods.
9604
162dce55
TT
96052020-02-08 Tom Tromey <tom@tromey.com>
9606
9607 * dwarf2read.c (struct attribute, DW_STRING)
9608 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9609 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9610 (attr_form_is_block, attr_form_is_section_offset)
9611 (attr_form_is_constant, attr_form_is_ref): Move.
9612 * dwarf2/attribute.h: New file.
9613 * dwarf2/attribute.c: New file, from dwarf2read.c.
9614 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9615
3054dd54
TT
96162020-02-08 Tom Tromey <tom@tromey.com>
9617
9618 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9619 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9620 Move.
9621 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9622 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9623 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9624 abbrev.c.
9625 * dwarf2/abbrev.h: New file.
9626 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9627 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9628
96b79293
TT
96292020-02-08 Tom Tromey <tom@tromey.com>
9630
9631 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9632 (dwarf2_section_size, dwarf2_get_section_info)
9633 (create_signatured_type_table_from_debug_names)
9634 (create_addrmap_from_aranges, read_debug_names_from_section)
9635 (get_gdb_index_contents_from_section, read_comp_unit_head)
9636 (error_check_comp_unit_head, read_abbrev_offset)
9637 (create_debug_type_hash_table, init_cu_die_reader)
9638 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9639 (read_comp_units_from_section, create_cus_hash_table)
9640 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9641 (create_dwp_v2_section, dwarf2_rnglists_process)
9642 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9643 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9644 (read_indirect_string_from_dwz, read_addr_index_1)
9645 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9646 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9647 (fill_in_loclist_baton): Update.
9648 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9649 get_containing_section, get_bfd_owner, get_bfd_section,
9650 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9651 (dwarf2_read_section, get_section_name, get_section_file_name)
9652 (get_containing_section, get_section_bfd_owner)
9653 (get_section_bfd_section, get_section_name, get_section_file_name)
9654 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9655 declare.
9656 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9657 (dwarf2_section_info::get_bfd_owner)
9658 (dwarf2_section_info::get_bfd_section)
9659 (dwarf2_section_info::get_name)
9660 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9661 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9662 (dwarf2_section_info::read): Now methods.
9663 * dwarf-index-write.c (class debug_names): Update.
9664
2c86cff9
TT
96652020-02-08 Tom Tromey <tom@tromey.com>
9666
9667 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9668 Move to dwarf2/section.h.
9669 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9670 (get_section_bfd_section, get_section_name)
9671 (get_section_file_name, get_section_id, get_section_flags)
9672 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9673 dwarf2/section.c.
9674 * dwarf2/section.h: New file.
9675 * dwarf2/section.c: New file, from dwarf2read.c.
9676 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9677
f4382c45
TT
96782020-02-08 Tom Tromey <tom@tromey.com>
9679
9680 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9681 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9682 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9683 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9684 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9685 * dwarf2/leb.h: New file, from dwarf2read.c.
9686 * dwarf2/leb.c: New file, from dwarf2read.c.
9687 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9688 Remove.
9689 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9690 (COMMON_SFILES): Add dwarf2/leb.c.
9691
01840b7a
JB
96922020-02-08 Joel Brobecker <brobecker@adacore.com>
9693
9694 GDB 9.1 released.
9695
dfcb27e4
IB
96962020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9697
9698 PR gdb/25190:
aac66a4c
SM
9699 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9700 * gdb/remote.c (remote_console_output): Update.
9701 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9702 (ui_file_puts): ...this.
9703 * gdb/ui-file.h (ui_file_puts): Add declaration.
9704 * gdb/utils.c (emit_style_escape): Update.
9705 (flush_wrap_buffer): Update.
9706 (fputs_maybe_filtered): Update.
9707 (fputs_unfiltered): Add function.
dfcb27e4 9708
faa17681
IB
97092020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9710
aac66a4c
SM
9711 * gdb/event-loop.c (gdb_wait_for_event): Update.
9712 * gdb/printcmd.c (printf_command): Update.
9713 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9714 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9715 (gdb_os_flush_stderr): Update.
9716 * gdb/remote.c (remote_console_output): Update.
9717 * gdb/ui-file.c (gdb_flush): Rename to...
9718 (ui_file_flush): ...this.
9719 (stderr_file::write): Update.
9720 (stderr_file::puts): Update.
9721 * gdb/ui-file.h (gdb_flush): Rename to...
9722 (ui_file_flush): ...this.
9723 * gdb/utils.c (gdb_flush): Add function.
9724 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9725
5abbbe1d
TT
97262020-02-07 Tom Tromey <tromey@adacore.com>
9727
9728 PR breakpoints/24915:
9729 * source.c (find_and_open_source): Do not check basenames_may_differ.
9730
919adfe8
TT
97312020-02-07 Tom Tromey <tom@tromey.com>
9732
9733 * README: Update gdbserver documentation.
9734 * gdbserver: Move to top level.
9735 * configure.tgt (build_gdbserver): Remove.
9736 * configure.ac: Remove --enable-gdbserver.
9737 * configure: Rebuild.
9738 * Makefile.in (distclean): Don't mention gdbserver.
9739
1d5d29e7
SV
97402020-02-06 Shahab Vahedi <shahab@synopsys.com>
9741
9742 * source-cache.c (source_cache::ensure): Surround
9743 get_plain_source_lines with a try/catch.
9744 (source_cache::get_line_charpos): Get rid of try/catch
9745 and only check for the return value of "ensure".
9746 * tui/tui-source.c (tui_source_window::set_contents):
9747 Simplify "nlines" calculation.
9748
6eb1129c
SV
97492020-02-06 Shahab Vahedi <shahab@synopsys.com>
9750
9751 * MAINTAINERS (Write After Approval): Add myself.
9752
c6a42d11
CB
97532020-02-05 Christian Biesinger <cbiesinger@google.com>
9754
9755 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9756 function call.
9757
c8ecdda6
CB
97582020-02-05 Christian Biesinger <cbiesinger@google.com>
9759
9760 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9761
f6480e70
MR
97622020-02-05 Maciej W. Rozycki <macro@wdc.com>
9763
9764 * nat/riscv-linux-tdesc.h: New file.
9765 * nat/riscv-linux-tdesc.c: New file, taking code from...
9766 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9767 ... here.
9768 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9769 NATDEPFILES.
9770
dcc9fbc6
AB
97712020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9772
9773 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9774 we don't set the fake simulator ptid to the null_ptid.
9775
719546c4
SM
97762020-02-03 Simon Marchi <simon.marchi@efficios.com>
9777
9778 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9779 * gdbthread.h (class thread_info) <resumed>: Likewise.
9780 * infrun.c (resume_1): Likewise.
9781 (proceed): Likewise.
9782 (infrun_thread_stop_requested): Likewise.
9783 (stop_all_threads): Likewise.
9784 (handle_inferior_event): Likewise.
9785 (restart_threads): Likewise.
9786 (finish_step_over): Likewise.
9787 (keep_going_stepped_thread): Likewise.
9788 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9789 (linux_handle_extended_wait): Likewise.
9790 * record-btrace.c (get_thread_current_frame_id): Likewise.
9791 * record-full.c (record_full_wait_1): Likewise.
9792 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9793 * target.c (target_resume): Likewise.
9794 * thread.c (set_running_thread): Likewise.
9795
e409c542
AKS
97962020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9797
9798 * f-valprint.c (f77_print_array_1): Changed datatype of index
9799 variable to LONGEST from int to enable it to contain bound
9800 values correctly.
9801
ee98c0da
MR
98022020-02-03 Maciej W. Rozycki <macro@wdc.com>
9803
9804 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9805 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9806 offsets according to FLEN determined.
9807 (riscv_linux_nat_target::read_description): Determine FLEN
9808 dynamically.
9809 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9810 according to FLEN determined.
9811 (riscv_linux_nat_target::store_registers): Likewise.
9812
aa66aac4
SV
98132020-02-01 Shahab Vahedi <shahab@synopsys.com>
9814
9815 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9816 when reg->group is empty and reggroup is not.
9817
fd9faca8
TT
98182020-01-31 Tom Tromey <tromey@adacore.com>
9819
9820 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9821 Call beneath target's mourn_inferior after unpushing.
9822
42330a68
AB
98232020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9824
9825 PR tui/9765
9826 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9827 have enough lines to fill the screen, still return the lowest
9828 address we found.
9829
7a27a45b
AB
98302020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9831
9832 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9833 '-', '<', and '>' commands.
9834
c47f70e2
PA
98352020-01-29 Pedro Alves <palves@redhat.com>
9836 Sergio Durigan Junior <sergiodj@redhat.com>
9837
9838 * infcmd.c (construct_inferior_arguments): Assert that
9839 'argc' is greater than 0.
9840
5133a315
LM
98412020-01-29 Luis Machado <luis.machado@linaro.org>
9842
9843 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9844 (BRK_INSN_MASK): Define to 0xd4200000.
9845 (aarch64_program_breakpoint_here_p): New function.
9846 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9847 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9848 breakpoint.c.
9849 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9850 breakpoint.h
9851 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9852 call gdbarch_program_breakpoint_here_p.
9853 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9854 default_program_breakpoint_here_p, changed return type to bool and
9855 simplified.
9856 * breakpoint.h (program_breakpoint_here): Moved prototype to
9857 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9858 return type to bool.
9859 * gdbarch.c: Regenerate.
9860 * gdbarch.h: Regenerate.
9861 * gdbarch.sh (program_breakpoint_here_p): New method.
9862 * infrun.c (handle_signal_stop): Call
9863 gdbarch_program_breakpoint_here_p.
9864
168f8c6b
TT
98652020-01-26 Tom Tromey <tom@tromey.com>
9866
9867 * ctfread.c (struct ctf_fp_info): Reindent.
9868 (_initialize_ctfread): Remove.
9869
128a391f
TT
98702020-01-26 Tom Tromey <tom@tromey.com>
9871
9872 * psymtab.c (partial_map_expand_apply)
9873 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9874 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9875 (psym_print_stats, psym_expand_symtabs_for_function)
9876 (psym_map_symbol_filenames, psym_map_matching_symbols)
9877 (psym_expand_symtabs_matching)
9878 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9879 (maintenance_check_psymtabs): Use new methods.
9880 * psympriv.h (struct partial_symtab) <readin_p,
9881 get_compunit_symtab>: New methods.
9882 <readin, compunit_symtab>: Remove members.
9883 (struct standard_psymtab): New.
9884 (struct legacy_psymtab): Derive from standard_psymtab.
9885 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9886 standard_psymtab.
9887 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9888
0494dbec
TT
98892020-01-26 Tom Tromey <tom@tromey.com>
9890
9891 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9892 read_dependencies. Add assert.
9893 * psymtab.c (partial_symtab::read_dependencies): New method.
9894 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9895 method.
9896 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9897 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9898 read_dependencies.
9899 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9900 Add assert.
9901
8566b89b
TT
99022020-01-26 Tom Tromey <tom@tromey.com>
9903
9904 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9905 Call expand_psymtab.
9906 (xcoff_read_symtab): Call expand_psymtab.
9907 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9908 legacy_expand_psymtab.
9909 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9910 method.
9911 (struct legacy_psymtab) <expand_psymtab>: Implement.
9912 <legacy_expand_psymtab>: New member.
9913 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9914 (parse_partial_symbols): Set legacy_expand_psymtab.
9915 (psymtab_to_symtab_1): Change argument order. Call
9916 expand_psymtab.
9917 (new_psymtab): Set legacy_expand_psymtab.
9918 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9919 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9920 expand_psymtab.
9921 (dwarf2_psymtab::expand_psymtab): Rename from
9922 psymtab_to_symtab_1. Call expand_psymtab.
9923 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9924 (dbx_end_psymtab): Likewise.
9925 (dbx_psymtab_to_symtab_1): Change argument order. Call
9926 expand_psymtab.
9927 (dbx_read_symtab): Call expand_psymtab.
9928 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9929 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9930 (ctf_psymtab::read_symtab): Call expand_psymtab.
9931
077cbab2
TT
99322020-01-26 Tom Tromey <tom@tromey.com>
9933
9934 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9935 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9936 messages.
9937 * mdebugread.c (mdebug_read_symtab): Remove prints.
9938 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9939 assert.
9940 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9941
891813be
TT
99422020-01-26 Tom Tromey <tom@tromey.com>
9943
9944 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9945 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9946 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9947 legacy_symtab.
9948 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9949 * psymtab.c (psymtab_to_symtab): Call method.
9950 (dump_psymtab): Update.
9951 * psympriv.h (struct partial_symtab): Add virtual destructor.
9952 <read_symtab>: New method.
9953 (struct legacy_symtab): New.
9954 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9955 (struct pst_map) <pst>: Now a legacy_psymtab.
9956 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9957 (new_psymtab): Use legacy_psymtab.
9958 * dwarf2read.h (struct dwarf2_psymtab): New.
9959 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9960 * dwarf2read.c (dwarf2_create_include_psymtab)
9961 (dwarf2_build_include_psymtabs, create_type_unit_group)
9962 (create_partial_symtab, process_psymtab_comp_unit_reader)
9963 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9964 (set_partial_user): Use dwarf2_psymtab.
9965 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9966 (psymtab_to_symtab_1, process_full_comp_unit)
9967 (process_full_type_unit, dwarf2_ranges_read)
9968 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9969 (dwarf_decode_lines): Use dwarf2_psymtab.
9970 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9971 (add_address_entry_worker, write_one_signatured_type)
9972 (recursively_count_psymbols, recursively_write_psymbols)
9973 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9974 (write_debug_names): Likewise.
9975 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9976 <pst>: Now a legacy_psymtab.
9977 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9978 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9979 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9980 * ctfread.c (struct ctf_psymtab): New.
9981 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9982 ctf_psymtab.
9983 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9984 (create_partial_symtab): Return a ctf_psymtab.
9985 (scan_partial_symbols): Update.
9986
c3693a1d
TT
99872020-01-26 Tom Tromey <tom@tromey.com>
9988
9989 * xcoffread.c (xcoff_start_psymtab): Use new.
9990 * psymtab.c (partial_symtab::partial_symtab): New constructor,
9991 renamed from start_psymtab_common.
9992 * psympriv.h (struct partial_symtab): Add new constructor.
9993 (start_psymtab_common): Don't declare.
9994 * mdebugread.c (parse_partial_symbols): Use new.
9995 * dwarf2read.c (create_partial_symtab): Use new.
9996 * dbxread.c (start_psymtab): Use new.
9997 * ctfread.c (create_partial_symtab): Use new.
9998
32caafd0
TT
99992020-01-26 Tom Tromey <tom@tromey.com>
10000
10001 * xcoffread.c (xcoff_end_psymtab): Use new.
10002 * psymtab.c (start_psymtab_common): Use new.
10003 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10004 Update.
10005 * psympriv.h (struct partial_symtab): Add parameters to
10006 constructor. Don't inline.
10007 (allocate_psymtab): Don't declare.
10008 * mdebugread.c (new_psymtab): Use new.
10009 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10010 * dbxread.c (dbx_end_psymtab): Use new.
10011
abaa2f23
TT
100122020-01-26 Tom Tromey <tom@tromey.com>
10013
10014 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10015 allocate_psymtab. Update documentation.
10016 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10017 allocate_psymtab. Do not use new.
10018 (allocate_psymtab): Use new. Update.
10019
6d94535f
TT
100202020-01-26 Tom Tromey <tom@tromey.com>
10021
10022 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10023 * psymtab.c (psym_print_stats): Update.
10024 * psympriv.h (struct partial_symtab) <readin,
10025 psymtabs_addrmap_supported, anonymous>: Now bool.
10026 * mdebugread.c (psymtab_to_symtab_1): Update.
10027 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10028 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10029 (process_full_comp_unit, process_full_type_unit): Update.
10030 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10031 * ctfread.c (psymtab_to_symtab): Update.
10032
6f17252b
TT
100332020-01-26 Tom Tromey <tom@tromey.com>
10034
10035 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10036 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10037 * psymtab.c (psymtab_storage): Delete psymtabs.
10038 (psymtab_storage::allocate_psymtab): Use new.
10039 (psymtab_storage::discard_psymtab): Use delete.
10040 * psympriv.h (struct partial_symtab): Add constructor and
10041 initializers.
10042
f6f1cebc
TT
100432020-01-26 Tom Tromey <tom@tromey.com>
10044
10045 * machoread.c: Do not include psympriv.h.
10046
e47e48f6
PW
100472020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10048
10049 * NEWS: Mention the new option and the set/show commands.
10050
a2fedca9
PW
100512020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10052
10053 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10054 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10055 (validate_exec_file): New variables, enums, functions.
10056 (exec_file_locate_attach, print_section_info): Style the filenames.
10057 (_initialize_exec): Install show_exec_file_mismatch_command and
10058 set_exec_file_mismatch_command.
10059 * gdbcore.h (validate_exec_file): Declare.
10060 * infcmd.c (attach_command): Call validate_exec_file.
10061 * remote.c ( remote_target::remote_add_inferior): Likewise.
10062
7ffa82e1
AB
100632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10064
10065 * frame.c (find_frame_sal): Move call to get_next_frame into more
10066 inner scope.
10067 * inline-frame.c (inilne_state) <inline_state>: Update argument
10068 types.
10069 (inilne_state) <skipped_symbol>: Rename to...
10070 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10071 (skip_inline_frames): Build vector of skipped symbols and use this
10072 to reate the inline_state.
10073 (inline_skipped_symbol): Add a comment and some assertions, fetch
10074 skipped symbol from the list.
10075
3d92a3e3
AB
100762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10077
10078 * buildsym.c (lte_is_less_than): Delete.
10079 (buildsym_compunit::end_symtab_with_blockvector): Create local
10080 lambda function to sort line table entries, and use
10081 std::stable_sort instead of std::sort.
10082 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10083 markers when looking for a previous line.
10084
94a72be7
AB
100852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10086
10087 * dwarf2read.c (lnp_state_machine::record_line): Include
10088 end_sequence parameter in debug print out. Record the line if we
10089 are at an end_sequence marker even if it's not the start of a
10090 statement.
10091 * symmisc.c (maintenance_print_one_line_table): Print end of
10092 sequence markers with 'END' not '0'.
10093
53af73bf
PA
100942020-01-24 Pedro Alves <palves@redhat.com>
10095
10096 PR gdb/25410
10097 * thread.c (scoped_restore_current_thread::restore): Use
10098 switch_to_inferior_no_thread.
10099 * exec.c: Include "progspace-and-thread.h".
10100 (add_target_sections, remove_target_sections):
10101 scoped_restore_current_pspace_and_thread instead of
10102 scoped_restore_current_thread.
10103 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10104 and aspace to the inferior before calling clone_program_space.
10105 Remove stale comment.
10106
3050c6f4
CB
101072020-01-24 Christian Biesinger <cbiesinger@google.com>
10108
10109 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10110 (arm_netbsd_nat_target::fetch_registers): ...this.
10111 (arm_nbsd_nat_target::store_registers): Rename to...
10112 (arm_netbsd_nat_target::store_registers): ...this.
10113
73685c7e
CB
101142020-01-24 Christian Biesinger <cbiesinger@google.com>
10115
10116 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10117 register_t.
10118
89203d40
CB
101192020-01-24 Christian Biesinger <cbiesinger@google.com>
10120
10121 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10122 Update comment.
10123 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10124 Likewise.
10125 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10126 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10127 the correct replacement (iterate_over_regset_sections).
10128 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10129 Update comment.
10130
1ba1ac88
AB
101312020-01-24 Graham Markall <graham.markall@embecosm.com>
10132
10133 PR gdb/23718
10134 * gdb/python/python.c (execute_gdb_command): Call
10135 async_enable_stdin in catch block.
10136
f3364a6d
AB
101372020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10138
10139 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10140 SWITCH_THRU_ALL_UIS.
10141
733d0a67
AB
101422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10143
10144 PR tui/9765
10145 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10146 comment, add extra parameter, and update to store previous symbol
10147 when appropriate.
10148 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10149 add extra parameter.
10150 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10151 remove unneeded parameter, add try/catch around gdb_print_insn,
10152 rewrite to add items to asm_lines vector.
10153 (tui_find_backward_disassembly_start_address): New function.
10154 (tui_find_disassembly_address): Updated throughout.
10155 (tui_disasm_window::set_contents): Update for changes to
10156 tui_disassemble.
10157 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10158 number of lines to scroll.
10159
b3b3bada
SM
101602020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10161
10162 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10163 (SECT_OFF_DATA): Likewise.
10164 (SECT_OFF_RODATA): Likewise.
10165 (SECT_OFF_TEXT): Likewise.
10166 (SECT_OFF_BSS): Likewise.
10167 (struct objfile) <text_section_offset, data_section_offset>: New
10168 methods.
10169 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10170 objfile::text_section_offset.
10171 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10172 * coffread.c (coff_symtab_read): Likewise.
10173 (enter_linenos): Likewise.
10174 (process_coff_symbol): Likewise.
10175 * ctfread.c (get_objfile_text_range): Likewise.
10176 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10177 Use objfile::data_section_offset.
10178 * dwarf2-frame.c (execute_cfa_program): Use
10179 objfile::text_section_offset.
10180 (dwarf2_frame_find_fde): Likewise.
10181 * dwarf2read.c (create_addrmap_from_index): Likewise.
10182 (create_addrmap_from_aranges): Likewise.
10183 (dw2_find_pc_sect_compunit_symtab): Likewise.
10184 (process_psymtab_comp_unit_reader): Likewise.
10185 (add_partial_symbol): Likewise.
10186 (add_partial_subprogram): Likewise.
10187 (process_full_comp_unit): Likewise.
10188 (read_file_scope): Likewise.
10189 (read_func_scope): Likewise.
10190 (read_lexical_block_scope): Likewise.
10191 (read_call_site_scope): Likewise.
10192 (dwarf2_rnglists_process): Likewise.
10193 (dwarf2_ranges_process): Likewise.
10194 (dwarf2_ranges_read): Likewise.
10195 (dwarf_decode_lines_1): Likewise.
10196 (new_symbol): Likewise.
10197 (dwarf2_fetch_die_loc_sect_off): Likewise.
10198 (dwarf2_per_cu_text_offset): Likewise.
10199 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10200 * hppa-tdep.c (read_unwind_info): Likewise.
10201 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10202 * psympriv.h (struct partial_symtab): Likewise.
10203 * psymtab.c (find_pc_sect_psymtab): Likewise.
10204 * solib-svr4.c (enable_break): Likewise.
10205 * stap-probe.c (relocate_address): Use
10206 objfile::data_section_offset.
10207 * xcoffread.c (enter_line_range): Use
10208 objfile::text_section_offset.
10209 (read_xcoff_symtab): Likewise.
10210
ab53f382
SM
102112020-01-23 Simon Marchi <simon.marchi@efficios.com>
10212
10213 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10214 declaration to narrower scopes.
10215
e7eee665
SM
102162020-01-23 Simon Marchi <simon.marchi@efficios.com>
10217
10218 * darwin-nat.h (struct darwin_exception_msg, enum
10219 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10220 Move up.
10221 (class darwin_nat_target) <wait_1, check_new_threads,
10222 decode_exception_message, decode_message, stop_inferior,
10223 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10224 * darwin-nat.c (darwin_check_new_threads): Rename to...
10225 (darwin_nat_target::check_new_threads): ... this.
10226 (darwin_suspend_inferior_it): Remove.
10227 (darwin_decode_exception_message): Rename to...
10228 (darwin_nat_target::decode_exception_message): ... this.
10229 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10230 (darwin_decode_message): Rename to...
10231 (darwin_nat_target::decode_message): ... this.
10232 (cancel_breakpoint): Rename to...
10233 (darwin_nat_target::cancel_breakpoint): ... this.
10234 (darwin_wait): Rename to...
10235 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10236 instead of iterate_over_inferiors.
10237 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10238 (darwin_stop_inferior): Rename to...
10239 (darwin_nat_target::stop_inferior): ... this.
10240 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10241 (darwin_init_thread_list): Rename to...
10242 (darwin_nat_target::init_thread_list): ... this.
10243 (darwin_ptrace_him): Rename to...
10244 (darwin_nat_target::ptrace_him): ... this.
10245 (darwin_nat_target::create_inferior): Pass lambda function to
10246 fork_inferior.
10247 (darwin_nat_target::detach): Call stop_inferior instead of
10248 darwin_stop_inferior.
10249 * fork-inferior.h (fork_inferior): Change init_trace_fun
10250 parameter to gdb::function_view.
10251 * fork-inferior.c (fork_inferior): Likewise.
10252
c162ed3e
HD
102532020-01-23 Hannes Domani <ssbssa@yahoo.de>
10254
10255 * i386-cygwin-tdep.c (core_process_module_section): Update.
10256 * windows-nat.c (struct lm_info_windows): Add text_offset.
10257 (windows_xfer_shared_libraries): Update.
10258 * windows-tdep.c (windows_xfer_shared_library):
10259 Add text_offset_cached argument.
10260 * windows-tdep.h (windows_xfer_shared_library): Update.
10261
a1237872
SM
102622020-01-21 Simon Marchi <simon.marchi@efficios.com>
10263
10264 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10265
b3ee6dd9
SM
102662020-01-21 Simon Marchi <simon.marchi@efficios.com>
10267
10268 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10269 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10270 replace with range-based for.
10271 (gdbsim_interrupt_inferior): Remove.
10272 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10273 with a range-based for. Inline code from
10274 gdbsim_interrupt_inferior.
10275
f9fac3c8
SM
102762020-01-21 Simon Marchi <simon.marchi@efficios.com>
10277
10278 * infrun.c (proceed): Fix indentation.
10279
f6474de9
TT
102802020-01-21 Tom Tromey <tromey@adacore.com>
10281
10282 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10283 * python/python.c (python_extension_ops): Update.
10284 (gdbpy_colorize): New function.
10285 * python/lib/gdb/__init__.py (colorize): New function.
10286 * extension.h (ext_lang_colorize): Declare.
10287 * extension.c (ext_lang_colorize): New function.
10288 * extension-priv.h (struct extension_language_ops) <colorize>: New
10289 member.
10290 * cli/cli-style.c (_initialize_cli_style): Update help text.
10291
f0c702d4
LM
102922020-01-21 Luis Machado <luis.machado@linaro.org>
10293
10294 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10295 <cond>: Change type to bool.
10296 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10297 (aarch64_displaced_step_cb): Likewise.
10298 (aarch64_displaced_step_tb): Likewise.
10299
1ab139e5
LM
103002020-01-21 Luis Machado <luis.machado@linaro.org>
10301
10302 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10303 output.
10304
0c271889
LM
103052020-01-21 Luis Machado <luis.machado@linaro.org>
10306
10307 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10308 <pc_adjust>: Adjust the documentation.
10309 (aarch64_displaced_step_fixup): Check if PC really moved before
10310 adjusting it.
10311
4d89c1c7
TT
103122020-01-19 Tom Tromey <tom@tromey.com>
10313
10314 * disasm.c (~gdb_disassembler): New destructor.
10315 (gdb_buffered_insn_length): Call disassemble_free_target.
10316 * disasm.h (class gdb_disassembler): Declare destructor. Use
10317 DISABLE_COPY_AND_ASSIGN.
10318
c0ab21c2
TT
103192020-01-19 Tom Tromey <tom@tromey.com>
10320
10321 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10322 (die_reader_func_ftype): Remove.
10323 (cutu_reader): New class.
10324 (dw2_get_file_names_reader): Remove "data" parameter.
10325 (dw2_get_file_names): Use cutu_reader.
10326 (create_debug_type_hash_table): Update.
10327 (read_cutu_die_from_dwo): Update comment.
10328 (lookup_dwo_unit): Add dwo_name parameter.
10329 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10330 die_reader_func_ftype and data parameters.
10331 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10332 Remove die_reader_func_ftype and data parameters.
10333 (~cutu_reader): New; from init_cutu_and_read_dies.
10334 (cutu_reader::cutu_reader): Rename from
10335 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10336 and data parameters.
10337 (init_cutu_and_read_dies_simple): Remove.
10338 (struct process_psymtab_comp_unit_data): Remove.
10339 (process_psymtab_comp_unit_reader): Remove data parameter; add
10340 want_partial_unit and pretend_language parameters.
10341 (process_psymtab_comp_unit): Use cutu_reader.
10342 (build_type_psymtabs_reader): Remove data parameter.
10343 (build_type_psymtabs_1): Use cutu_reader.
10344 (process_skeletonless_type_unit): Likewise.
10345 (load_partial_comp_unit_reader): Remove.
10346 (load_partial_comp_unit): Use cutu_reader.
10347 (load_full_comp_unit_reader): Remove.
10348 (load_full_comp_unit): Use cutu_reader.
10349 (struct create_dwo_cu_data): Remove.
10350 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10351 dwo_unit parameters.
10352 (create_cus_hash_table): Use cutu_reader.
10353 (struct dwarf2_read_addr_index_data): Remove.
10354 (dwarf2_read_addr_index_reader): Remove.
10355 (dwarf2_read_addr_index): Use cutu_reader.
10356 (read_signatured_type_reader): Remove.
10357 (read_signatured_type): Use cutu_reader.
10358
45bbae5c
TT
103592020-01-19 Tom Tromey <tom@tromey.com>
10360
10361 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10362 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10363 (tui_wrefresh): Declare.
10364 * tui/tui-wingeneral.c (suppress_output): New global.
10365 (tui_suppress_output, ~tui_suppress_output): New constructor and
10366 destructor.
10367 (tui_wrefresh): New function.
10368 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10369 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10370 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10371 method.
10372 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10373 tui_wrefresh.
10374 (tui_data_window::no_refresh): New method.
10375 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10376 (tui_reg_command): Use tui_suppress_output
10377 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10378 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10379 method.
10380 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10381
4f13c1c0
TT
103822020-01-19 Tom Tromey <tom@tromey.com>
10383
10384 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10385 Handle case where symtab is null.
10386
fa47e446
SM
103872020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10388
10389 * linux-fork.c (one_fork_p): Simplify.
10390
26f42329
SM
103912020-01-17 Simon Marchi <simon.marchi@efficios.com>
10392
10393 * top.c (struct qt_args): Remove.
10394 (kill_or_detach): Change return type to void, replace `void *`
10395 parameter with a proper one.
10396 (print_inferior_quit_action): Likewise.
10397 (quit_confirm): Use range-based for loop to iterate over inferiors.
10398 (quit_force): Likewise.
10399
a9ac81b1
SM
104002020-01-17 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10403 `void *` parameter with proper parameters.
10404 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10405 (print_one_inferior): Change return type to void, replace `void *`
10406 parameter with proper parameters.
10407 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10408 inferiors.
10409 (get_other_inferior): Remove.
10410 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10411 inferiors.
10412
788eca49
SM
104132020-01-17 Simon Marchi <simon.marchi@efficios.com>
10414
10415 * mi/mi-interp.c (report_initial_inferior): Remove.
10416 (mi_interp::init): Use range-based for to iterate over inferiors.
10417
d9bc85b6
SM
104182020-01-17 Simon Marchi <simon.marchi@efficios.com>
10419
10420 * python/py-inferior.c (build_inferior_list): Remove.
10421 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10422
40c94099
CB
104232020-01-16 Christian Biesinger <cbiesinger@google.com>
10424
10425 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10426 (btrace_stitch_trace): Likewise.
10427 * charset.c (intermediate_encoding): Likewise (vaild).
10428 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10429 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10430 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10431
e0cdfe3c
HD
104322020-01-16 Hannes Domani <ssbssa@yahoo.de>
10433
10434 * windows-tdep.c (windows_get_tlb_type):
10435 Add rtl_user_process_parameters type.
10436
790f1718 104372020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10438 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10439
10440 PR build/24805
10441 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10442 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10443 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10444 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10445 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10446 (ps_plog): Redeclare exported functions with default visibility.
10447
3112ed97
NA
104482020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10449
10450 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10451 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10452
8dc3273e
SM
104532020-01-15 Simon Marchi <simon.marchi@efficios.com>
10454
10455 * infcmd.c (post_create_inferior): Use get_thread_regcache
10456 instead of get_current_regcache.
10457
ff47f4f0
TT
104582020-01-14 Tom Tromey <tom@tromey.com>
10459
10460 PR symtab/12535:
10461 * python/python.c (gdbpy_decode_line): Treat empty string the same
10462 as no argument.
10463
975f45b7
TT
104642020-01-14 Tom Tromey <tom@tromey.com>
10465
10466 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10467
25e57356
TT
104682020-01-14 Tom Tromey <tom@tromey.com>
10469
10470 * nat/linux-btrace.c: Don't include <config.h>.
10471 * nat/linux-ptrace.c: Don't include <config.h>.
10472 * nat/x86-linux-dregs.c: Don't include <config.h>.
10473
05ea2a05
TT
104742020-01-14 Tom Tromey <tom@tromey.com>
10475
10476 * configure: Rebuild.
10477 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10478
01027315
TT
104792020-01-14 Tom Tromey <tom@tromey.com>
10480
10481 * nat/x86-linux-dregs.c: Include configh.h.
10482 * nat/linux-ptrace.c: Include configh.h.
10483 * nat/linux-btrace.c: Include configh.h.
10484 * defs.h: Include config.h, bfd.h.
10485 * configure.ac: Don't source common.host.
10486 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10487 * configure: Rebuild.
10488 * acinclude.m4: Update path.
10489 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10490 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10491 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10492 (CLIBS): Add LIBSUPPORT.
10493 (CDEPS): Likewise.
10494 (COMMON_SFILES): Remove gdbsupport files.
10495 (HFILES_NO_SRCDIR): Likewise.
10496 (stamp-version): Update path to create-version.sh.
10497 (ALLDEPFILES): Remove gdbsupport files.
10498
b2ceabe8
TT
104992020-01-14 Tom Tromey <tom@tromey.com>
10500
10501 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10502 USE_WIN32API when needed.
10503 * configure.ac (USE_WIN32API): Don't define.
10504 (WIN32LIBS): Use WIN32APILIBS.
10505 * configure: Rebuild.
10506
25c51f71
TT
105072020-01-14 Tom Tromey <tom@tromey.com>
10508
10509 * configure: Rebuild.
10510 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10511
717c684d
BE
105122020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10513
10514 * skip.c (skip_function_command): Make skip w/o arguments use the
10515 name of the inlined function if pc is inside any inlined function.
10516
7da6a5b9
LM
105172020-01-14 Luis Machado <luis.machado@linaro.org>
10518
10519 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10520 * infrun.c (resume_1): Likewise.
10521 (handle_inferior_event): Remove stale comment.
10522 * linux-nat.c (linux_nat_target::resume): Update comments.
10523 (save_stop_reason): Likewise.
10524 (linux_nat_filter_event): Likewise.
10525 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10526
44e4c775
AB
105272020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10528
10529 * elfread.c (record_minimal_symbol): Set section index to 0 for
10530 non-allocatable sections.
10531
18a8505e
AT
10532
105332020-01-13 Ali Tamur <tamur@google.com>
10534
10535 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10536 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10537 to gdb::optional. Update comments.
10538 (dwo_file): Update comments.
10539 (read_attribute): Update API to take an additional out parameter,
10540 need_reprocess. This is used to mark attributes that need other
10541 attributes (e.g. str_offsets_base) for correct computation which may not
10542 have been read yet.
10543 (read_attribute_reprocess): New function declaration.
10544 (read_addr_index): Likewise.
10545 (read_dwo_str_index): Likewise.
10546 (read_stub_str_index): Likewise.
10547 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10548 (lookup_addr_base): New function definition.
10549 (lookup_ranges_base): Likewise.
10550 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10551 lookup_ranges_base.
10552 (init_cutu_and_read_dies): Update comments.
10553 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10554 unit. This is used to inherit parent's str_offsets_base and addr_base.
10555 Update comments.
10556 (init_cutu_and_read_dies_simple): Reflect API changes.
10557 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10558 (create_cus_hash_table): Change API to take parent compile unit.
10559 Reflect API changes.
10560 (open_and_init_dwo_file): Reflect API changes.
10561 (dwarf2_get_pc_bounds): Update comments.
10562 (dwarf2_record_block_ranges): Likewise.
10563 (read_full_die_1): Change implementation to reprocess attributes that
10564 need str_offsets_base and addr_base.
10565 (partial_die_info::read): Likewise.
10566 (read_attribute_reprocess): New function definition.
10567 (read_attribute_value): Change API to take an additional out parameter,
10568 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10569 when a non-dwo compile unit has index based attributes.
10570 (read_attribute): Reflect API changes.
10571 (read_addr_index_1): Reflect API changes. Update comments.
10572 (dwarf2_read_addr_index_data): Reflect API changes.
10573 (dwarf2_read_addr_index): Likewise.
10574 (read_str_index): Change API and implementation. This becomes a helper
10575 to be used by the new string index related methods. Update error
10576 message and comments.
10577 (read_dwo_str_index): New function definition.
10578 (read_stub_str_index): Likewise.
10579 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10580 * symfile.h (dwarf2_debug_sections): Likewise.
10581 * xcoffread.c (dwarf2_debug_sections): Likewise.
10582
0cac9354
SM
105832020-01-13 Simon Marchi <simon.marchi@efficios.com>
10584
10585 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10586 core_reg_sect type to gdb_byte *.
10587 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10588 * cris-tdep.c (fetch_core_registers): Likewise.
10589 * corelow.c (core_target::get_core_register_section): Change
10590 type of `contents` to gdb::byte_vector.
10591
9a6d629c
AB
105922020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10593
10594 * tui/tui-wingeneral.c (box_win): Position the title in the center
10595 of the border.
10596
d8b2f9e3
SM
105972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10598
10599 * corelow.c (core_target::get_core_register_section): Use
10600 std::vector instead of alloca.
10601
bb564c58
SM
106022020-01-13 Simon Marchi <simon.marchi@efficios.com>
10603
10604 * warning.m4: Add -Wmissing-declarations to build_warnings.
10605 * configure: Re-generate.
10606
6b366111
SM
106072020-01-13 Simon Marchi <simon.marchi@efficios.com>
10608
10609 * python/python.c (init__gdb_module): Add declaration.
10610
6c265988
SM
106112020-01-13 Simon Marchi <simon.marchi@efficios.com>
10612
10613 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10614 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10615 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10616 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10617 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10618 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10619 * ada-exp.y (_initialize_ada_exp): Add declaration.
10620 * ada-lang.c (_initialize_ada_language): Add declaration.
10621 * ada-tasks.c (_initialize_tasks): Add declaration.
10622 * agent.c (_initialize_agent): Add declaration.
10623 * aix-thread.c (_initialize_aix_thread): Add declaration.
10624 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10625 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10626 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10627 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10628 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10629 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10630 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10631 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10632 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10633 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10634 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10635 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10636 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10637 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10638 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10639 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10640 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10641 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10642 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10643 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10644 * annotate.c (_initialize_annotate): Add declaration.
10645 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10646 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10647 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10648 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10649 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10650 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10651 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10652 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10653 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10654 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10655 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10656 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10657 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10658 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10659 * auto-load.c (_initialize_auto_load): Add declaration.
10660 * auxv.c (_initialize_auxv): Add declaration.
10661 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10662 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10663 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10664 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10665 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10666 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10667 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10668 * breakpoint.c (_initialize_breakpoint): Add declaration.
10669 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10670 * btrace.c (_initialize_btrace): Add declaration.
10671 * charset.c (_initialize_charset): Add declaration.
10672 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10673 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10674 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10675 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10676 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10677 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10678 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10679 * coffread.c (_initialize_coffread): Add declaration.
10680 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10681 * compile/compile.c (_initialize_compile): Add declaration.
10682 * complaints.c (_initialize_complaints): Add declaration.
10683 * completer.c (_initialize_completer): Add declaration.
10684 * copying.c (_initialize_copying): Add declaration.
10685 * corefile.c (_initialize_core): Add declaration.
10686 * corelow.c (_initialize_corelow): Add declaration.
10687 * cp-abi.c (_initialize_cp_abi): Add declaration.
10688 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10689 * cp-support.c (_initialize_cp_support): Add declaration.
10690 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10691 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10692 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10693 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10694 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10695 * ctfread.c (_initialize_ctfread): Add declaration.
10696 * d-lang.c (_initialize_d_language): Add declaration.
10697 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10698 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10699 * dbxread.c (_initialize_dbxread): Add declaration.
10700 * dcache.c (_initialize_dcache): Add declaration.
10701 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10702 * disasm.c (_initialize_disasm): Add declaration.
10703 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10704 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10705 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10706 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10707 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10708 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10709 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10710 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10711 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10712 * elfread.c (_initialize_elfread): Add declaration.
10713 * exec.c (_initialize_exec): Add declaration.
10714 * extension.c (_initialize_extension): Add declaration.
10715 * f-lang.c (_initialize_f_language): Add declaration.
10716 * f-valprint.c (_initialize_f_valprint): Add declaration.
10717 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10718 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10719 * filesystem.c (_initialize_filesystem): Add declaration.
10720 * findcmd.c (_initialize_mem_search): Add declaration.
10721 * findvar.c (_initialize_findvar): Add declaration.
10722 * fork-child.c (_initialize_fork_child): Add declaration.
10723 * frame-base.c (_initialize_frame_base): Add declaration.
10724 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10725 * frame.c (_initialize_frame): Add declaration.
10726 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10727 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10728 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10729 * gcore.c (_initialize_gcore): Add declaration.
10730 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10731 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10732 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10733 * gdbarch.c (_initialize_gdbarch): Add declaration.
10734 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10735 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10736 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10737 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10738 * go-lang.c (_initialize_go_language): Add declaration.
10739 * go32-nat.c (_initialize_go32_nat): Add declaration.
10740 * guile/guile.c (_initialize_guile): Add declaration.
10741 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10742 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10743 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10744 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10745 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10746 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10747 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10748 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10749 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10750 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10751 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10752 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10753 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10754 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10755 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10756 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10757 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10758 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10759 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10760 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10761 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10762 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10763 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10764 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10765 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10766 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10767 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10768 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10769 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10770 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10771 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10772 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10773 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10774 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10775 * infcall.c (_initialize_infcall): Add declaration.
10776 * infcmd.c (_initialize_infcmd): Add declaration.
10777 * inflow.c (_initialize_inflow): Add declaration.
10778 * infrun.c (_initialize_infrun): Add declaration.
10779 * interps.c (_initialize_interpreter): Add declaration.
10780 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10781 * jit.c (_initialize_jit): Add declaration.
10782 * language.c (_initialize_language): Add declaration.
10783 * linux-fork.c (_initialize_linux_fork): Add declaration.
10784 * linux-nat.c (_initialize_linux_nat): Add declaration.
10785 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10786 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10787 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10788 * m2-lang.c (_initialize_m2_language): Add declaration.
10789 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10790 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10791 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10792 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10793 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10794 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10795 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10796 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10797 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10798 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10799 * machoread.c (_initialize_machoread): Add declaration.
10800 * macrocmd.c (_initialize_macrocmd): Add declaration.
10801 * macroscope.c (_initialize_macroscope): Add declaration.
10802 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10803 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10804 * maint.c (_initialize_maint_cmds): Add declaration.
10805 * mdebugread.c (_initialize_mdebugread): Add declaration.
10806 * memattr.c (_initialize_mem): Add declaration.
10807 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10808 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10809 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10810 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10811 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10812 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10813 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10814 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10815 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10816 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10817 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10818 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10819 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10820 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10821 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10822 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10823 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10824 * mipsread.c (_initialize_mipsread): Add declaration.
10825 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10826 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10827 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10828 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10829 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10830 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10831 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10832 * nto-procfs.c (_initialize_procfs): Add declaration.
10833 * objc-lang.c (_initialize_objc_language): Add declaration.
10834 * observable.c (_initialize_observer): Add declaration.
10835 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10836 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10837 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10838 * osabi.c (_initialize_gdb_osabi): Add declaration.
10839 * osdata.c (_initialize_osdata): Add declaration.
10840 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10841 * parse.c (_initialize_parse): Add declaration.
10842 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10843 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10844 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10845 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10846 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10847 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10848 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10849 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10850 * printcmd.c (_initialize_printcmd): Add declaration.
10851 * probe.c (_initialize_probe): Add declaration.
10852 * proc-api.c (_initialize_proc_api): Add declaration.
10853 * proc-events.c (_initialize_proc_events): Add declaration.
10854 * proc-service.c (_initialize_proc_service): Add declaration.
10855 * procfs.c (_initialize_procfs): Add declaration.
10856 * producer.c (_initialize_producer): Add declaration.
10857 * psymtab.c (_initialize_psymtab): Add declaration.
10858 * python/python.c (_initialize_python): Add declaration.
10859 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10860 * record-btrace.c (_initialize_record_btrace): Add declaration.
10861 * record-full.c (_initialize_record_full): Add declaration.
10862 * record.c (_initialize_record): Add declaration.
10863 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10864 * regcache.c (_initialize_regcache): Add declaration.
10865 * reggroups.c (_initialize_reggroup): Add declaration.
10866 * remote-notif.c (_initialize_notif): Add declaration.
10867 * remote-sim.c (_initialize_remote_sim): Add declaration.
10868 * remote.c (_initialize_remote): Add declaration.
10869 * reverse.c (_initialize_reverse): Add declaration.
10870 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10871 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10872 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10873 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10874 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10875 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10876 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10877 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10878 Add declaration.
10879 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10880 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10881 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10882 * rust-exp.y (_initialize_rust_exp): Add declaration.
10883 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10884 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10885 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10886 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10887 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10888 * score-tdep.c (_initialize_score_tdep): Add declaration.
10889 * ser-go32.c (_initialize_ser_dos): Add declaration.
10890 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10891 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10892 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10893 * ser-uds.c (_initialize_ser_socket): Add declaration.
10894 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10895 * serial.c (_initialize_serial): Add declaration.
10896 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10897 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10898 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10899 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10900 * skip.c (_initialize_step_skip): Add declaration.
10901 * sol-thread.c (_initialize_sol_thread): Add declaration.
10902 * solib-aix.c (_initialize_solib_aix): Add declaration.
10903 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10904 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10905 * solib-frv.c (_initialize_frv_solib): Add declaration.
10906 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10907 * solib-target.c (_initialize_solib_target): Add declaration.
10908 * solib.c (_initialize_solib): Add declaration.
10909 * source-cache.c (_initialize_source_cache): Add declaration.
10910 * source.c (_initialize_source): Add declaration.
10911 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10912 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10913 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10914 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10915 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10916 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10917 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10918 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10919 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10920 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10921 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10922 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10923 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10924 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10925 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10926 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10927 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10928 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10929 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10930 * stabsread.c (_initialize_stabsread): Add declaration.
10931 * stack.c (_initialize_stack): Add declaration.
10932 * stap-probe.c (_initialize_stap_probe): Add declaration.
10933 * std-regs.c (_initialize_frame_reg): Add declaration.
10934 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10935 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10936 * symfile.c (_initialize_symfile): Add declaration.
10937 * symmisc.c (_initialize_symmisc): Add declaration.
10938 * symtab.c (_initialize_symtab): Add declaration.
10939 * target.c (_initialize_target): Add declaration.
10940 * target-connection.c (_initialize_target_connection): Add
10941 declaration.
10942 * target-dcache.c (_initialize_target_dcache): Add declaration.
10943 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10944 * thread.c (_initialize_thread): Add declaration.
10945 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10946 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10947 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10948 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10949 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10950 * tracectf.c (_initialize_ctf): Add declaration.
10951 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10952 * tracefile.c (_initialize_tracefile): Add declaration.
10953 * tracepoint.c (_initialize_tracepoint): Add declaration.
10954 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10955 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10956 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10957 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10958 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10959 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10960 * tui/tui.c (_initialize_tui): Add declaration.
10961 * typeprint.c (_initialize_typeprint): Add declaration.
10962 * ui-style.c (_initialize_ui_style): Add declaration.
10963 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10964 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10965 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10966 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10967 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10968 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10969 * unittests/filtered_iterator-selftests.c
10970 (_initialize_filtered_iterator_selftests): Add declaration.
10971 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10972 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10973 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10974 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10975 * unittests/main-thread-selftests.c
10976 (_initialize_main_thread_selftests): Add declaration.
10977 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10978 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10979 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10980 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10981 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10982 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10983 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10984 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10985 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10986 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10987 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10988 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
10989 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
10990 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
10991 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
10992 declaration.
10993 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
10994 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
10995 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
10996 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
10997 * user-regs.c (_initialize_user_regs): Add declaration.
10998 * utils.c (_initialize_utils): Add declaration.
10999 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11000 * valops.c (_initialize_valops): Add declaration.
11001 * valprint.c (_initialize_valprint): Add declaration.
11002 * value.c (_initialize_values): Add declaration.
11003 * varobj.c (_initialize_varobj): Add declaration.
11004 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11005 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11006 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11007 * windows-nat.c (_initialize_windows_nat): Add declaration.
11008 (_initialize_check_for_gdb_ini): Add declaration.
11009 (_initialize_loadable): Add declaration.
11010 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11011 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11012 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11013 * xcoffread.c (_initialize_xcoffread): Add declaration.
11014 * xml-support.c (_initialize_xml_support): Add declaration.
11015 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11016 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11017 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11018 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11019
e2de1eec
SM
110202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11021
11022 * regformats/regdat.sh: Generate declaration for init function.
11023
e0037b4c
SM
110242020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11025
11026 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11027 up.
11028 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11029 close_one_inferior>: New methods.
11030 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11031 pass down target to find_inferior_pid.
11032 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11033 Pass down target to find_inferior_ptid.
11034 (gdbsim_target::create_inferior): Pass down target to
11035 add_thread_silent.
11036 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11037 target down to find_inferior_ptid and switch_to_thread.
11038 (gdbsim_target::close): Update to call close_one_inferior.
11039 (struct resume_data): Remove.
11040 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11041 directly, rather than through a void pointer.
11042 (gdbsim_target::resume): Update to call resume_one_inferior.
11043
58920b5b
SM
110442020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11045
11046 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11047
4ec89149
PA
110482020-01-12 Pedro Alves <palves@redhat.com>
11049
11050 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11051 directly for the current inferior instead of
11052 discard_all_inferiors.
11053 (discard_all_inferiors): Delete.
11054
7c392d1d
TT
110552020-01-11 Tom Tromey <tom@tromey.com>
11056
11057 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11058 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11059 deprecated_safe_get_selected_frame.
11060
d9ebdab7
TBA
110612020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11062
11063 * inferior.c (print_inferior): Switch inferior before printing it.
11064
f3c469b9
PA
110652020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11066 Pedro Alves <palves@redhat.com>
11067
11068 * progspace-and-thread.c (switch_to_program_space_and_thread):
11069 Assert there's an inferior for PSPACE. Use
11070 switch_to_inferior_no_thread to switch the inferior too.
11071 * progspace.c (program_space::~program_space): Call
11072 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11073 (program_space::free_all_objfiles): Don't call clear_symtab_users
11074 here.
11075 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11076
65c574f6
PA
110772020-01-10 Pedro Alves <palves@redhat.com>
11078
11079 * NEWS: Mention multi-target debugging, "info connections", and
11080 "add-inferior -no-connection".
11081
2f4fcf00
PA
110822020-01-10 Pedro Alves <palves@redhat.com>
11083
11084 * infrun.c: Include "target-connection.h".
11085 (check_multi_target_resumption): New.
11086 (proceed): Call it.
11087 * target-connection.c (make_target_connection_string): Make
11088 extern.
11089 * target-connection.h (make_target_connection_string): Declare.
11090
121b3efd
PA
110912020-01-10 Pedro Alves <palves@redhat.com>
11092
11093 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11094 * inferior.c (uiout_field_connection): New function.
11095 (print_inferior): Add new "connection-id" column.
11096 (add_inferior_command): Show connection number/string of added
11097 inferior.
11098 * process-stratum-target.h
11099 (process_stratum_target::connection_string): New virtual method.
11100 (process_stratum_target::connection_number): New field.
11101 * remote.c (remote_target::connection_string): New override.
11102 * target-connection.c: New file.
11103 * target-connection.h: New file.
11104 * target.c (decref_target): Remove process_stratum targets from
11105 the connection list.
11106 (target_stack::push): Add process_stratum targets to the
11107 connection list.
11108
4f837581
PA
111092020-01-10 Pedro Alves <palves@redhat.com>
11110
11111 Revert:
11112 2016-04-12 Pedro Alves <palves@redhat.com>
11113 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11114 Remove references to name.
11115 * serial.h (struct serial) <name>: Delete.
11116
f4ec508e
PA
111172020-01-10 Pedro Alves <palves@redhat.com>
11118
11119 * gdbarch-selftests.c (register_to_value_test): Remove "target
11120 already pushed" check.
11121
5b6d1e4f
PA
111222020-01-10 Pedro Alves <palves@redhat.com>
11123 John Baldwin <jhb@FreeBSD.org>
11124
11125 * aarch64-linux-nat.c
11126 (aarch64_linux_nat_target::thread_architecture): Adjust.
11127 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11128 (task_command_1): Likewise.
11129 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11130 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11131 (aix_thread_target::store_registers)
11132 (aix_thread_target::thread_alive): Adjust.
11133 * amd64-fbsd-tdep.c: Include "inferior.h".
11134 (amd64fbsd_get_thread_local_address): Pass down target.
11135 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11136 thread's gdbarch instead of target_gdbarch.
11137 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11138 get_last_target_status.
11139 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11140 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11141 inferiors.
11142 (update_inserted_breakpoint_locations): Skip if inferiors with no
11143 execution.
11144 (update_global_location_list): When handling moribund locations,
11145 find representative inferior for location's pspace, and use thread
11146 count of its process_stratum target.
11147 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11148 * bsd-uthread.c (bsd_uthread_target::wait): Use
11149 as_process_stratum_target and adjust thread_change_ptid and
11150 add_thread calls.
11151 (bsd_uthread_target::update_thread_list): Use
11152 as_process_stratum_target and adjust find_thread_ptid,
11153 thread_change_ptid and add_thread calls.
11154 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11155 find_thread_ptid call.
11156 * corelow.c (add_to_thread_list): Adjust add_thread call.
11157 (core_target_open): Adjust add_thread_silent and thread_count
11158 calls.
11159 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11160 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11161 * event-top.c (async_disconnect): Pop targets from all inferiors.
11162 * exec.c (add_target_sections): Push exec target on all inferiors
11163 sharing the program space.
11164 (remove_target_sections): Remove the exec target from all
11165 inferiors sharing the program space.
11166 (exec_on_vfork): New.
11167 * exec.h (exec_on_vfork): Declare.
11168 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11169 Pass it down.
11170 (fbsd_nat_target::update_thread_list): Adjust.
11171 (fbsd_nat_target::resume): Adjust.
11172 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11173 down.
11174 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11175 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11176 get_thread_arch_regcache call.
11177 * fork-child.c (gdb_startup_inferior): Pass target down to
11178 startup_inferior and set_executing.
11179 * gdbthread.h (struct process_stratum_target): Forward declare.
11180 (add_thread, add_thread_silent, add_thread_with_info)
11181 (in_thread_list): Add process_stratum_target parameter.
11182 (find_thread_ptid(inferior*, ptid_t)): New overload.
11183 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11184 parameter.
11185 (all_threads()): Delete overload.
11186 (all_threads, all_non_exited_threads): Add process_stratum_target
11187 parameter.
11188 (all_threads_safe): Use brace initialization.
11189 (thread_count): Add process_stratum_target parameter.
11190 (set_resumed, set_running, set_stop_requested, set_executing)
11191 (threads_are_executing, finish_thread_state): Add
11192 process_stratum_target parameter.
11193 (switch_to_thread): Use is_current_thread.
11194 * i386-fbsd-tdep.c: Include "inferior.h".
11195 (i386fbsd_get_thread_local_address): Pass down target.
11196 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11197 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11198 have_inferiors check.
11199 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11200 (inf_ptrace_target::attach): Adjust.
11201 * infcall.c (run_inferior_call): Adjust.
11202 * infcmd.c (run_command_1): Pass target to
11203 scoped_finish_thread_state.
11204 (proceed_thread_callback): Skip inferiors with no execution.
11205 (continue_command): Rename 'all_threads' local to avoid hiding
11206 'all_threads' function. Adjust get_last_target_status call.
11207 (prepare_one_step): Adjust set_running call.
11208 (signal_command): Use user_visible_resume_target. Compare thread
11209 pointers instead of inferior_ptid.
11210 (info_program_command): Adjust to pass down target.
11211 (attach_command): Mark target's 'thread_executing' flag.
11212 (stop_current_target_threads_ns): New, factored out from ...
11213 (interrupt_target_1): ... this. Switch inferior before making
11214 target calls.
11215 * inferior-iter.h
11216 (struct all_inferiors_iterator, struct all_inferiors_range)
11217 (struct all_inferiors_safe_range)
11218 (struct all_non_exited_inferiors_range): Filter on
11219 process_stratum_target too. Remove explicit.
11220 * inferior.c (inferior::inferior): Push dummy target on target
11221 stack.
11222 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11223 Add process_stratum_target parameter, and pass it down.
11224 (have_live_inferiors): Adjust.
11225 (switch_to_inferior_and_push_target): New.
11226 (add_inferior_command, clone_inferior_command): Handle
11227 "-no-connection" parameter. Use
11228 switch_to_inferior_and_push_target.
11229 (_initialize_inferior): Mention "-no-connection" option in
11230 the help of "add-inferior" and "clone-inferior" commands.
11231 * inferior.h: Include "process-stratum-target.h".
11232 (interrupt_target_1): Use bool.
11233 (struct inferior) <push_target, unpush_target, target_is_pushed,
11234 find_target_beneath, top_target, process_target, target_at,
11235 m_stack>: New.
11236 (discard_all_inferiors): Delete.
11237 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11238 (all_inferiors, all_non_exited_inferiors): Add
11239 process_stratum_target parameter.
11240 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11241 (target_last_proc_target): New global.
11242 (follow_fork_inferior): Push target on new inferior. Pass target
11243 to add_thread_silent. Call exec_on_vfork. Handle target's
11244 reference count.
11245 (follow_fork): Adjust get_last_target_status call. Also consider
11246 target.
11247 (follow_exec): Push target on new inferior.
11248 (struct execution_control_state) <target>: New field.
11249 (user_visible_resume_target): New.
11250 (do_target_resume): Call target_async.
11251 (resume_1): Set target's threads_executing flag. Consider resume
11252 target.
11253 (commit_resume_all_targets): New.
11254 (proceed): Also consider resume target. Skip threads of inferiors
11255 with no execution. Commit resumtion in all targets.
11256 (start_remote): Pass current inferior to wait_for_inferior.
11257 (infrun_thread_stop_requested): Consider target as well. Pass
11258 thread_info pointer to clear_inline_frame_state instead of ptid.
11259 (infrun_thread_thread_exit): Consider target as well.
11260 (random_pending_event_thread): New inferior parameter. Use it.
11261 (do_target_wait): Rename to ...
11262 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11263 down.
11264 (threads_are_resumed_pending_p, do_target_wait): New.
11265 (prepare_for_detach): Adjust calls.
11266 (wait_for_inferior): New inferior parameter. Handle it. Use
11267 do_target_wait_1 instead of do_target_wait.
11268 (fetch_inferior_event): Adjust. Switch to representative
11269 inferior. Pass target down.
11270 (set_last_target_status): Add process_stratum_target parameter.
11271 Save target in global.
11272 (get_last_target_status): Add process_stratum_target parameter and
11273 handle it.
11274 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11275 (context_switch): Check inferior_ptid == null_ptid before calling
11276 inferior_thread().
11277 (get_inferior_stop_soon): Pass down target.
11278 (wait_one): Rename to ...
11279 (poll_one_curr_target): ... this.
11280 (struct wait_one_event): New.
11281 (wait_one): New.
11282 (stop_all_threads): Adjust.
11283 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11284 event's target.
11285 (switch_back_to_stepped_thread): Also consider target.
11286 (print_stop_event): Update.
11287 (normal_stop): Update. Also consider the resume target.
11288 * infrun.h (wait_for_inferior): Remove declaration.
11289 (user_visible_resume_target): New declaration.
11290 (get_last_target_status, set_last_target_status): New
11291 process_stratum_target parameter.
11292 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11293 process_stratum_target parameter, and use it.
11294 (clear_inline_frame_state (thread_info*)): New.
11295 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11296 process_stratum_target parameter.
11297 (clear_inline_frame_state (thread_info*)): Declare.
11298 * linux-fork.c (delete_checkpoint_command): Pass target down to
11299 find_thread_ptid.
11300 (checkpoint_command): Adjust.
11301 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11302 instead of just tweaking inferior_ptid.
11303 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11304 (exit_lwp): Pass target down to find_thread_ptid.
11305 (attach_proc_task_lwp_callback): Pass target down to
11306 add_thread/set_running/set_executing.
11307 (linux_nat_target::attach): Pass target down to
11308 thread_change_ptid.
11309 (get_detach_signal): Pass target down to find_thread_ptid.
11310 Consider last target status's target.
11311 (linux_resume_one_lwp_throw, resume_lwp)
11312 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11313 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11314 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11315 (linux_nat_target::async_wait_fd): New.
11316 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11317 target down.
11318 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11319 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11320 * linux-thread-db.c (struct thread_db_info::process_target): New
11321 field.
11322 (add_thread_db_info): Save target.
11323 (get_thread_db_info): New process_stratum_target parameter. Also
11324 match target.
11325 (delete_thread_db_info): New process_stratum_target parameter.
11326 Also match target.
11327 (thread_from_lwp): Adjust to pass down target.
11328 (thread_db_notice_clone): Pass down target.
11329 (check_thread_db_callback): Pass down target.
11330 (try_thread_db_load_1): Always push the thread_db target.
11331 (try_thread_db_load, record_thread): Pass target down.
11332 (thread_db_target::detach): Pass target down. Always unpush the
11333 thread_db target.
11334 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11335 target down. Always unpush the thread_db target.
11336 (find_new_threads_callback, thread_db_find_new_threads_2)
11337 (thread_db_target::update_thread_list): Pass target down.
11338 (thread_db_target::pid_to_str): Pass current inferior down.
11339 (thread_db_target::get_thread_local_address): Pass target down.
11340 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11341 target down.
11342 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11343 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11344 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11345 (procfs_init_inferior): Rename to ...
11346 (procfs_target::procfs_init_inferior): ... this and adjust.
11347 (procfs_target::create_inferior, procfs_notice_thread)
11348 (procfs_do_thread_registers): Adjust.
11349 * ppc-fbsd-tdep.c: Include "inferior.h".
11350 (ppcfbsd_get_thread_local_address): Pass down target.
11351 * proc-service.c (ps_xfer_memory): Switch current inferior and
11352 program space as well.
11353 (get_ps_regcache): Pass target down.
11354 * process-stratum-target.c
11355 (process_stratum_target::thread_address_space)
11356 (process_stratum_target::thread_architecture): Pass target down.
11357 * process-stratum-target.h
11358 (process_stratum_target::threads_executing): New field.
11359 (as_process_stratum_target): New.
11360 * ravenscar-thread.c
11361 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11362 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11363 down.
11364 * record-btrace.c (record_btrace_target::info_record): Adjust.
11365 (record_btrace_target::record_method)
11366 (record_btrace_target::record_is_replaying)
11367 (record_btrace_target::fetch_registers)
11368 (get_thread_current_frame_id, record_btrace_target::resume)
11369 (record_btrace_target::wait, record_btrace_target::stop): Pass
11370 target down.
11371 * record-full.c (record_full_wait_1): Switch to event thread.
11372 Pass target down.
11373 * regcache.c (regcache::regcache)
11374 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11375 process_stratum_target parameter and handle it.
11376 (current_thread_target): New global.
11377 (get_thread_regcache): Add process_stratum_target parameter and
11378 handle it. Switch inferior before calling target method.
11379 (get_thread_regcache): Pass target down.
11380 (get_thread_regcache_for_ptid): Pass target down.
11381 (registers_changed_ptid): Add process_stratum_target parameter and
11382 handle it.
11383 (registers_changed_thread, registers_changed): Pass target down.
11384 (test_get_thread_arch_aspace_regcache): New.
11385 (current_regcache_test): Define a couple local test_target_ops
11386 instances and use them for testing.
11387 (readwrite_regcache): Pass process_stratum_target parameter.
11388 (cooked_read_test, cooked_write_test): Pass mock_target down.
11389 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11390 (get_thread_arch_aspace_regcache): Add process_stratum_target
11391 parameter.
11392 (regcache::target): New method.
11393 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11394 (regcache::registers_changed_ptid): Add process_stratum_target
11395 parameter.
11396 (regcache::m_target): New field.
11397 (registers_changed_ptid): Add process_stratum_target parameter.
11398 * remote.c (remote_state::supports_vCont_probed): New field.
11399 (remote_target::async_wait_fd): New method.
11400 (remote_unpush_and_throw): Add remote_target parameter.
11401 (get_current_remote_target): Adjust.
11402 (remote_target::remote_add_inferior): Push target.
11403 (remote_target::remote_add_thread)
11404 (remote_target::remote_notice_new_inferior)
11405 (get_remote_thread_info): Pass target down.
11406 (remote_target::update_thread_list): Skip threads of inferiors
11407 bound to other targets. (remote_target::close): Don't discard
11408 inferiors. (remote_target::add_current_inferior_and_thread)
11409 (remote_target::process_initial_stop_replies)
11410 (remote_target::start_remote)
11411 (remote_target::remote_serial_quit_handler): Pass down target.
11412 (remote_target::remote_unpush_target): New remote_target
11413 parameter. Unpush the target from all inferiors.
11414 (remote_target::remote_unpush_and_throw): New remote_target
11415 parameter. Pass it down.
11416 (remote_target::open_1): Check whether the current inferior has
11417 execution instead of checking whether any inferior is live. Pass
11418 target down.
11419 (remote_target::remote_detach_1): Pass down target. Use
11420 remote_unpush_target.
11421 (extended_remote_target::attach): Pass down target.
11422 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11423 (remote_target::append_resumption): Pass down target.
11424 (remote_target::append_pending_thread_resumptions)
11425 (remote_target::remote_resume_with_hc, remote_target::resume)
11426 (remote_target::commit_resume): Pass down target.
11427 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11428 (remote_target::interrupt_query)
11429 (remote_target::remove_new_fork_children)
11430 (remote_target::check_pending_events_prevent_wildcard_vcont)
11431 (remote_target::remote_parse_stop_reply)
11432 (remote_target::process_stop_reply): Pass down target.
11433 (first_remote_resumed_thread): New remote_target parameter. Pass
11434 it down.
11435 (remote_target::wait_as): Pass down target.
11436 (unpush_and_perror): New remote_target parameter. Pass it down.
11437 (remote_target::readchar, remote_target::remote_serial_write)
11438 (remote_target::getpkt_or_notif_sane_1)
11439 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11440 down target.
11441 (remote_target::mourn_inferior): Pass down target. Use
11442 remote_unpush_target.
11443 (remote_target::core_of_thread)
11444 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11445 (remote_target::pid_to_exec_file)
11446 (remote_target::thread_handle_to_thread_info): Pass down target.
11447 (remote_target::async_wait_fd): New.
11448 * riscv-fbsd-tdep.c: Include "inferior.h".
11449 (riscv_fbsd_get_thread_local_address): Pass down target.
11450 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11451 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11452 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11453 Adjust.
11454 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11455 * solib-svr4.c (enable_break): Pass down target.
11456 * spu-multiarch.c (parse_spufs_run): Pass down target.
11457 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11458 * target-delegates.c: Regenerate.
11459 * target.c (g_target_stack): Delete.
11460 (current_top_target): Return the current inferior's top target.
11461 (target_has_execution_1): Refer to the passed-in inferior's top
11462 target.
11463 (target_supports_terminal_ours): Check whether the initial
11464 inferior was already created.
11465 (decref_target): New.
11466 (target_stack::push): Incref/decref the target.
11467 (push_target, push_target, unpush_target): Adjust.
11468 (target_stack::unpush): Defref target.
11469 (target_is_pushed): Return bool. Adjust to refer to the current
11470 inferior's target stack.
11471 (dispose_inferior): Delete, and inline parts ...
11472 (target_preopen): ... here. Only dispose of the current inferior.
11473 (target_detach): Hold strong target reference while detaching.
11474 Pass target down.
11475 (target_thread_name): Add assertion.
11476 (target_resume): Pass down target.
11477 (target_ops::beneath, find_target_at): Adjust to refer to the
11478 current inferior's target stack.
11479 (get_dummy_target): New.
11480 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11481 has a thread running.
11482 (initialize_targets): Rename to ...
11483 (_initialize_target): ... this.
11484 * target.h: Include "gdbsupport/refcounted-object.h".
11485 (struct target_ops): Inherit refcounted_object.
11486 (target_ops::shortname, target_ops::longname): Make const.
11487 (target_ops::async_wait_fd): New method.
11488 (decref_target): Declare.
11489 (struct target_ops_ref_policy): New.
11490 (target_ops_ref): New typedef.
11491 (get_dummy_target): Declare function.
11492 (target_is_pushed): Return bool.
11493 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11494 (all_matching_threads_iterator::all_matching_threads_iterator):
11495 Handle filter target.
11496 * thread-iter.h (struct all_matching_threads_iterator, struct
11497 all_matching_threads_range, class all_non_exited_threads_range):
11498 Filter by target too. Remove explicit.
11499 * thread.c (threads_executing): Delete.
11500 (inferior_thread): Pass down current inferior.
11501 (clear_thread_inferior_resources): Pass down thread pointer
11502 instead of ptid_t.
11503 (add_thread_silent, add_thread_with_info, add_thread): Add
11504 process_stratum_target parameter. Use it for thread and inferior
11505 searches.
11506 (is_current_thread): New.
11507 (thread_info::deletable): Use it.
11508 (find_thread_ptid, thread_count, in_thread_list)
11509 (thread_change_ptid, set_resumed, set_running): New
11510 process_stratum_target parameter. Pass it down.
11511 (set_executing): New process_stratum_target parameter. Pass it
11512 down. Adjust reference to 'threads_executing'.
11513 (threads_are_executing): New process_stratum_target parameter.
11514 Adjust reference to 'threads_executing'.
11515 (set_stop_requested, finish_thread_state): New
11516 process_stratum_target parameter. Pass it down.
11517 (switch_to_thread): Also match inferior.
11518 (switch_to_thread): New process_stratum_target parameter. Pass it
11519 down.
11520 (update_threads_executing): Reimplement.
11521 * top.c (quit_force): Pop targets from all inferior.
11522 (gdb_init): Don't call initialize_targets.
11523 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11524 Declare.
11525 (windows_add_thread, windows_delete_thread): Adjust.
11526 (get_windows_debug_event): Rename to ...
11527 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11528 * tracefile-tfile.c (tfile_target_open): Pass down target.
11529 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11530 Forward declare.
11531 (switch_to_thread): Add process_stratum_target parameter.
11532 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11533 parameter. Use it.
11534 (mi_on_resume): Pass target down.
11535 * nat/fork-inferior.c (startup_inferior): Add
11536 process_stratum_target parameter. Pass it down.
11537 * nat/fork-inferior.h (startup_inferior): Add
11538 process_stratum_target parameter.
11539 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11540
75c6c844
PA
115412020-01-10 Pedro Alves <palves@redhat.com>
11542
11543 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11544 directly. Instead find the first thread in the thread list and
11545 use switch_to_thread.
11546
78f2c40a
PA
115472020-01-10 Pedro Alves <palves@redhat.com>
11548
11549 * remote.c (remote_target::remote_add_inferior): Don't bind a
11550 process to the current inferior if the current inferior is already
11551 bound to a process.
11552
e7af6c70
TBA
115532020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11554 Pedro Alves <palves@redhat.com>
11555
11556 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11557 If no process is specified, return null_ptid instead of
11558 inferior_ptid.
11559 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11560 TARGET_WAITKIND_SIGNALLED with no pid.
11561
31ba933e
PA
115622020-01-10 Pedro Alves <palves@redhat.com>
11563
11564 * remote.c (first_remote_resumed_thread): New.
11565 (remote_target::wait_as): Use it as default event_ptid instead of
11566 inferior_ptid.
11567
735fc2ca
PA
115682020-01-10 Pedro Alves <palves@redhat.com>
11569
11570 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11571
c17e02e1
PA
115722020-01-10 Pedro Alves <palves@redhat.com>
11573
11574 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11575 not -1.
11576
ab1ddbcf
PA
115772020-01-10 Pedro Alves <palves@redhat.com>
11578
11579 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11580 ptid to get_last_target_status.
11581 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11582 ptid to get_last_target_status.
11583 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11584 get_last_target_status.
11585 (info_program_command): Don't pass a target_waitstatus to
11586 get_last_target_status.
11587 * infrun.c (init_wait_for_inferior): Use
11588 nullify_last_target_wait_ptid.
11589 (get_last_target_status): Handle nullptr arguments.
11590 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11591 (print_stop_event): Don't pass a ptid to get_last_target_status.
11592 (normal_stop): Don't pass a ptid to get_last_target_status.
11593 * infrun.h (get_last_target_status, set_last_target_status): Move
11594 comments here and update.
11595 (nullify_last_target_wait_ptid): Declare.
11596 * linux-fork.c (fork_load_infrun_state): Remove local extern
11597 declaration of nullify_last_target_wait_ptid.
11598 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11599 to get_last_target_status.
11600
f3f8ece4
PA
116012020-01-10 Pedro Alves <palves@redhat.com>
11602
11603 * gdbthread.h (scoped_restore_current_thread)
11604 <dont_restore, restore, m_dont_restore>: Declare.
11605 * thread.c (thread_alive): Add assertion. Return bool.
11606 (switch_to_thread_if_alive): New.
11607 (prune_threads): Switch inferior/thread.
11608 (print_thread_info_1): Switch thread before calling target methods.
11609 (scoped_restore_current_thread::restore): New, factored out from
11610 ...
11611 (scoped_restore_current_thread::~scoped_restore_current_thread):
11612 ... this.
11613 (scoped_restore_current_thread::scoped_restore_current_thread):
11614 Add assertion.
11615 (thread_apply_all_command, thread_select): Use
11616 switch_to_thread_if_alive.
11617 * infrun.c (proceed, restart_threads, handle_signal_stop)
11618 (switch_back_to_stepped_thread): Switch current thread before
11619 calling target methods.
11620
db2d40f7
PA
116212020-01-10 Pedro Alves <palves@redhat.com>
11622
11623 * inferior.c (switch_to_inferior_no_thread): New function,
11624 factored out from ...
11625 (inferior_command): ... here.
11626 * inferior.h (switch_to_inferior_no_thread): Declare.
11627 * mi/mi-main.c (run_one_inferior): Use
11628 switch_to_inferior_no_thread.
11629
bd420a2d
PA
116302020-01-10 Pedro Alves <palves@redhat.com>
11631
11632 * infcmd.c (kill_command): Remove dead code.
11633
ddf5db90
PA
116342020-01-10 Pedro Alves <palves@redhat.com>
11635
11636 * remote.c (remote_target::mourn_inferior): No longer check
11637 whether the target is running.
11638
5018ce90
PA
116392020-01-10 Pedro Alves <palves@redhat.com>
11640
11641 * corelow.c (core_target::has_execution): Change parameter type to
11642 inferior pointer.
11643 * inferior.c (number_of_live_inferiors): Use
11644 inferior::has_execution instead of target_has_execution_1.
11645 * inferior.h (inferior::has_execution): New.
11646 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11647 inferior::has_execution instead of target_has_execution_1.
11648 * process-stratum-target.c
11649 (process_stratum_target::has_execution): Change parameter type to
11650 inferior pointer. Check the inferior's PID instead of
11651 inferior_ptid.
11652 * process-stratum-target.h
11653 (process_stratum_target::has_execution): Change parameter type to
11654 inferior pointer.
11655 * record-full.c (record_full_core_target::has_execution): Change
11656 parameter type to inferior pointer.
11657 * target.c (target_has_execution_1): Change parameter type to
11658 inferior pointer.
11659 (target_has_execution_current): Adjust.
11660 * target.h (target_ops::has_execution): Change parameter type to
11661 inferior pointer.
11662 (target_has_execution_1): Change parameter type to inferior
11663 pointer. Change return type to bool.
11664 * tracefile.h (tracefile_target::has_execution): Change parameter
11665 type to inferior pointer.
11666
74375d18
PA
116672020-01-10 Pedro Alves <palves@redhat.com>
11668
11669 * exceptions.c (print_flush): Remove current_top_target() check.
11670
acdf84a6
PA
116712020-01-10 Pedro Alves <palves@redhat.com>
11672
11673 * remote.c (show_remote_exec_file): Show the current inferior's
11674 exec-file instead of the command variable's value.
11675
ec506636
PA
116762020-01-10 Pedro Alves <palves@redhat.com>
11677
11678 * record-full.c (record_full_resume_ptid): New global.
11679 (record_full_target::resume): Set it.
11680 (record_full_wait_1): Use record_full_resume_ptid instead of
11681 inferior_ptid.
11682
873657b9
PA
116832020-01-10 Pedro Alves <palves@redhat.com>
11684
11685 * gdbthread.h (scoped_restore_current_thread)
11686 <dont_restore, restore, m_dont_restore>: Declare.
11687 * thread.c (thread_alive): Add assertion. Return bool.
11688 (switch_to_thread_if_alive): New.
11689 (prune_threads): Switch inferior/thread.
11690 (print_thread_info_1): Switch thread before calling target methods.
11691 (scoped_restore_current_thread::restore): New, factored out from
11692 ...
11693 (scoped_restore_current_thread::~scoped_restore_current_thread):
11694 ... this.
11695 (scoped_restore_current_thread::scoped_restore_current_thread):
11696 Add assertion.
11697 (thread_apply_all_command, thread_select): Use
11698 switch_to_thread_if_alive.
11699
7f0ae84c
GB
117002020-01-10 George Barrett <bob@bob131.so>
11701
11702 * stap-probe.c (stap_modify_semaphore): Don't check for null
11703 semaphores.
11704 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11705 for null semaphores.
11706
f5a7c406
AB
117072020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11708
11709 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11710 all source windows, and maintain horizontal scroll status while
11711 doing so.
11712
9ae6bf64
TT
117132020-01-09 Tom Tromey <tom@tromey.com>
11714
11715 PR tui/18932:
11716 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11717 update_source_window, not print_source_lines.
11718
b2efe70c
AB
117192020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11720
11721 * tui/tui.c (tui_enable): Register tui hooks after calling
11722 tui_display_main.
11723
5f23a082
CB
117242020-01-09 Christian Biesinger <cbiesinger@google.com>
11725
11726 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11727
3061113b
SM
117282020-01-08 Simon Marchi <simon.marchi@efficios.com>
11729
11730 * thread.c (print_thread_info_1): Fix indentation.
11731
57d75002
CB
117322020-01-09 Christian Biesinger <cbiesinger@google.com>
11733
11734 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11735 unique_xmalloc_ptr outside the if to always free the demangled name.
11736
6a053cb1
TT
117372020-01-08 Tom Tromey <tromey@adacore.com>
11738
11739 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11740 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11741 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11742 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11743 Remove.
11744 (section_offsets): New typedef.
11745 * symtab.c (fixup_section, get_msymbol_address): Update.
11746 * symmisc.c (dump_msymbols): Update.
11747 * symfile.h (relative_addr_info_to_section_offsets)
11748 (symfile_map_offsets_to_segments): Update.
11749 * symfile.c (build_section_addr_info_from_objfile)
11750 (init_objfile_sect_indices): Update.
11751 (struct place_section_arg): Change type of "offsets".
11752 (place_section): Update.
11753 (relative_addr_info_to_section_offsets): Change type of
11754 "section_offsets". Remove "num_sections" parameter.
11755 (default_symfile_offsets, syms_from_objfile_1)
11756 (set_objfile_default_section_offset): Update.
11757 (reread_symbols): No need to preserve section offsets by hand.
11758 (symfile_map_offsets_to_segments): Change type of "offsets".
11759 * stap-probe.c (relocate_address): Update.
11760 * stabsread.h (process_one_symbol): Update.
11761 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11762 (solib_target_relocate_section_addresses): Update.
11763 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11764 Update.
11765 * solib-frv.c (frv_relocate_main_executable): Update.
11766 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11767 * solib-aix.c (solib_aix_get_section_offsets): Change return
11768 type.
11769 (solib_aix_solib_create_inferior_hook): Update.
11770 * remote.c (remote_target::get_offsets): Update.
11771 * psymtab.c (find_pc_sect_psymtab): Update.
11772 * psympriv.h (struct partial_symbol) <address, text_low,
11773 text_high>: Update.
11774 * objfiles.h (obj_section_offset): Update.
11775 (struct objfile) <section_offsets>: Change type.
11776 <num_sections>: Remove.
11777 (objfile_relocate): Update.
11778 * objfiles.c (entry_point_address_query): Update
11779 (relocate_one_symbol): Change type of "section_offsets".
11780 (objfile_relocate1, objfile_relocate1): Change type of
11781 "new_offsets".
11782 (objfile_rebase1): Update.
11783 * mipsread.c (mipscoff_symfile_read): Update.
11784 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11785 parameter.
11786 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11787 (parse_external, psymtab_to_symtab_1): Update.
11788 * machoread.c (macho_symfile_offsets): Update.
11789 * ia64-tdep.c (ia64_find_unwind_table): Update.
11790 * hppa-tdep.c (read_unwind_info): Update.
11791 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11792 * dwarf2read.c (create_addrmap_from_index)
11793 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11794 (process_psymtab_comp_unit_reader, add_partial_symbol)
11795 (add_partial_subprogram, process_full_comp_unit)
11796 (read_file_scope, read_func_scope, read_lexical_block_scope)
11797 (read_call_site_scope, dwarf2_rnglists_process)
11798 (dwarf2_ranges_process, dwarf2_ranges_read)
11799 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11800 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11801 Update.
11802 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11803 Update.
11804 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11805 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11806 (process_one_symbol): Change type of "section_offsets".
11807 * ctfread.c (get_objfile_text_range): Update.
11808 * coffread.c (coff_symtab_read, enter_linenos)
11809 (process_coff_symbol): Update.
11810 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11811 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11812
456e800a
TT
118132020-01-08 Tom Tromey <tromey@adacore.com>
11814
11815 * dwarf2read.c (parse_macro_definition): Use std::string.
11816 (parse_macro_definition): Likewise.
11817
6dfa2fc2
TT
118182020-01-08 Tom Tromey <tromey@adacore.com>
11819
11820 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11821 (ATTR_ALLOC_CHUNK): Remove.
11822
421d1616
TT
118232020-01-08 Tom Tromey <tromey@adacore.com>
11824
11825 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11826
43816ebc
TT
118272020-01-08 Tom Tromey <tromey@adacore.com>
11828
11829 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11830 (dwarf2_compute_name, open_dwo_file): Likewise.
11831 (process_enumeration_scope): Use std::vector.
11832 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11833 (partial_die_info::fixup, dwarf2_start_subfile)
11834 (guess_full_die_structure_name, dwarf2_name): Likewise.
11835 (determine_prefix): Update.
11836 (guess_full_die_structure_name): Make return type const.
11837 (partial_die_full_name): Return unique_xmalloc_ptr.
11838 (DW_FIELD_ALLOC_CHUNK): Remove.
11839
4212d509
TT
118402020-01-07 Tom Tromey <tromey@adacore.com>
11841
11842 PR build/24937:
11843 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11844
06a6207a
JT
118452020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11846
11847 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11848
153d79c4
AB
118492020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11850
11851 * stack.c (print_frame_info): Move disassemble_next_line code
11852 inside source_print block.
11853
66182876
EZ
118542020-01-06 Eli Zaretskii <eliz@gnu.org>
11855
11856 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11857 gdb/signals.h, as we are now using native signal symbols.
11858
cbfa8581
SV
118592020-01-06 Shahab Vahedi <shahab@synopsys.com>
11860
11861 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11862 overflow by an early check of content vs threshold.
aac66a4c 11863 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11864 Likewise.
11865
3f602821
EZ
118662020-01-06 Eli Zaretskii <eliz@gnu.org>
11867
11868 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11869
a08c904d
JT
118702020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11871
11872 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11873 export table if no section contains it's RVA.
11874
89a65580
EZ
118752020-01-06 Eli Zaretskii <eliz@gnu.org>
11876
11877 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11878
8b7fcda2
HD
118792020-01-06 Hannes Domani <ssbssa@yahoo.de>
11880
11881 * source.c (print_source_lines_base): Set last_line_listed.
11882
a61b4f69
SV
118832020-01-06 Shahab Vahedi <shahab@synopsys.com>
11884
11885 * tui/tui-disasm.c: Remove trailing spaces.
11886
559e7e50
EZ
118872020-01-06 Eli Zaretskii <eliz@gnu.org>
11888 Pedro Alves <palves@redhat.com>
11889
11890 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11891 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11892 (windows_gdb_signal_to_target): New function, uses the above
11893 enumeration to convert GDB internal signal codes to equivalent
11894 Windows codes.
11895 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11896 * windows-nat.c: Include "gdb_wait.h".
11897 (get_windows_debug_event): Extract the fatal exception from the
11898 exit status and convert to the equivalent Posix signal number.
11899 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11900 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11901 * gdbsupport/gdb_wait.c: New file, implements
11902 windows_status_to_termsig.
11903 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11904 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11905
f2302a34
AB
119062020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11907
11908 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11909 show_layout.
11910
6a5206eb
LM
119112020-01-05 Luis Machado <luis.machado@linaro.org>
11912
11913 * aarch64-linux-nat.c
11914 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11915 and bfd_mach_aarch64.
11916
6ec1d75e
PW
119172020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11918
11919 * ui-file.c (stdio_file::can_emit_style_escape)
11920 (tee_file::can_emit_style_escape): Ensure style is used also on
11921 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11922 to gdb_stdout.
11923 * main.c (set_gdb_data_directory): Use file style to output the
11924 warning that the given pathname is not a directory.
11925 * top.c (show_history_filename, gdb_safe_append_history)
11926 (show_gdb_datadir): Use file style.
11927
44f81a76
HD
119282020-01-03 Hannes Domani <ssbssa@yahoo.de>
11929
11930 * solib-target.c (struct lm_info_target):
11931 Change offsets to be a unique_xmalloc_ptr.
11932 (solib_target_relocate_section_addresses): Update.
11933
25057eb0
HD
119342020-01-03 Hannes Domani <ssbssa@yahoo.de>
11935
11936 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11937
6e2118f5
BE
119382020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11939
11940 * MAINTAINERS (Write After Approval): Add myself.
11941
8133c7dc
LM
119422020-01-02 Luis Machado <luis.machado@linaro.org>
11943
11944 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11945 Cell BE architecture.
11946 * target.h (struct target_ops) <thread_architecture>: Likewise.
11947
48189bec
HD
119482020-01-01 Hannes Domani <ssbssa@yahoo.de>
11949
11950 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11951
ead1063b
HD
119522020-01-01 Hannes Domani <ssbssa@yahoo.de>
11953
11954 * MAINTAINERS (Write After Approval): Add myself.
11955
e5d78223
JB
119562020-01-01 Joel Brobecker <brobecker@adacore.com>
11957
11958 * gdbarch.sh: Update copyright year range of generated files.
11959
b811d2c2
JB
119602020-01-01 Joel Brobecker <brobecker@adacore.com>
11961
11962 Update copyright year range in all GDB files.
11963
5f4def5c
JB
119642020-01-01 Joel Brobecker <brobecker@adacore.com>
11965
11966 * copyright.py: Convert to Python 3.
11967
51fd4002
JB
119682020-01-01 Joel Brobecker <brobecker@adacore.com>
11969
11970 * copyright.py: Adapt after move of gnulib directory from gdb
11971 directory to toplevel directory.
11972
5fb651f2
JB
119732020-01-01 Joel Brobecker <brobecker@adacore.com>
11974
11975 * copyright.py (main): Exit if run from the wrong directory.
11976
5dd8bf88
JB
119772020-01-01 Joel Brobecker <brobecker@adacore.com>
11978
11979 * top.c (print_gdb_version): Change copyright year to 2020.
11980
9f71dacb 119812020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11982
9f71dacb 11983 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11984
9f71dacb 11985For older changes see ChangeLog-2019.
c906108c
SS
11986\f
11987Local Variables:
11988mode: change-log
11989left-margin: 8
11990fill-column: 74
11991version-control: never
57da7796 11992coding: utf-8
c906108c 11993End: