]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Update Ravenscar documentation
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2080266b
TT
12020-08-07 Tom Tromey <tromey@adacore.com>
2
3 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
4 New methods.
5 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
6 first.
7 (ravenscar_thread_target::add_thread): Rename from
8 ravenscar_add_thread.
9 (ravenscar_thread_target::update_thread_list): Use a lambda.
10 (ravenscar_thread_target::xfer_partial): New method.
11
78c02f21
TT
122020-08-07 Tom Tromey <tromey@adacore.com>
13
14 * ada-lang.h (ada_task_list_iterator_ftype): Now a
15 gdb::function_view.
16 (iterate_over_live_ada_tasks): Change type of argument.
17 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
18 of argument.
19
d5d833af
TT
202020-08-07 Tom Tromey <tromey@adacore.com>
21
22 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
23 Remove.
24 (ravenscar_thread_target::extra_thread_info): Remove.
25 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
26 defer to target beneath for non-Ravenscar threads.
27
a8ac85bb
TT
282020-08-07 Tom Tromey <tromey@adacore.com>
29
30 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
31 get_base_thread_from_ravenscar_task>: Now methods.
32 <m_cpu_map>: New member.
33 (ravenscar_thread_target::get_thread_base_cpu): Rename from
34 ravenscar_get_thread_base_cpu. Check m_cpu_map.
35 (ravenscar_thread_target::task_is_currently_active): Update.
36 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
37 Now a method.
38 (ravenscar_thread_target::add_active_thread): Put initial thread
39 into the m_cpu_map.
40
550ab58d
TT
412020-08-07 Tom Tromey <tromey@adacore.com>
42
43 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
44 event_ptid.
45
e9546579
TT
462020-08-07 Tom Tromey <tromey@adacore.com>
47
48 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
49 runtime_initialized.
50
3d4470e5
TT
512020-08-07 Tom Tromey <tromey@adacore.com>
52
53 * ravenscar-thread.c (ravenscar_thread_target): Don't call
54 add_active_thread.
55 (ravenscar_thread_target::add_active_thread): Now public.
56 (ravenscar_inferior_created): Call add_active_thread after pushing
57 the target.
58
888bdb2b
SM
592020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
60
61 * regcache.c (ptid_regcache_map): New type.
62 (target_ptid_regcache_map): New type.
63 (regcaches): Change type to target_ptid_regcache_map.
64 (get_thread_arch_aspace_regcache): Update to regcaches' new
65 type.
66 (regcache_thread_ptid_changed): Likewise.
67 (registers_changed_ptid): Likewise.
68 (regcaches_size): Likewise.
69 (regcaches_test): Update.
70 (regcache_thread_ptid_changed): Update.
71 * regcache.h (regcache_up): New type.
72 * gdbsupport/ptid.h (hash_ptid): New struct.
73
b161a60d
SM
742020-08-07 Simon Marchi <simon.marchi@efficios.com>
75
76 * observable.h (thread_ptid_changed): Add parameter
77 `process_stratum_target *`.
78 * infrun.c (infrun_thread_ptid_changed): Add parameter
79 `process_stratum_target *` and use it.
80 (selftests): New namespace.
81 (infrun_thread_ptid_changed): New function.
82 (_initialize_infrun): Register selftest.
83 * regcache.c (regcache_thread_ptid_changed): Add parameter
84 `process_stratum_target *` and use it.
85 (regcache_thread_ptid_changed): New function.
86 (_initialize_regcache): Register selftest.
87 * thread.c (thread_change_ptid): Pass target to
88 thread_ptid_changed observable.
89
d2854d8d
CT
902020-08-06 Caroline Tice <cmtice@google.com>
91
92 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
93 (struct dwp_sections): Update field comments. Add loclists and
94 rnglists fields.
95 (struct virtual_v2_dwo_sections): Rename struct to
96 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
97 size & offset fields for loclists and rnglists.
98 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
99 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
100 skipping dummy type units.
101 (create_dwp_hash_table): Update the large comment above the function to
102 discuss Version 5 DWP files as well, with references. Update all the
103 version checks in the function to check for version 5 as well. Add new
104 section at the end to create dwp hash table for version 5.
105 (create_dwp_v2_section): Rename function to
106 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
107 Add V5 to error message text.
108 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
109 into calls to create_dwp_v2_or_v5_section.
110 (create_dwo_unit_in_dwp_v5): New function.
111 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
112 check for version2; add else clause to handle version 5.
113 (open_and_init_dwo_file): Add code to check dwarf version & only call
114 create_debug_types_hash_table (with sections.types) if version is not 5;
115 else call create_debug_type_hash_table, with sections.info.
116 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
117 version 5.
118 (dwarf2_locate_v5_dwp_sections): New function.
119 (open_and_init_dwp_file): Add else-if clause for version 5 to call
120 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
121
159ed7d9
SM
1222020-08-06 Simon Marchi <simon.marchi@efficios.com>
123
124 * regcache.h (class regcache): Remove friend
125 registers_changed_ptid.
126 <regcache_thread_ptid_changed>: Remove.
127 <regcaches>: Remove.
128 * regcache.c (regcache::regcaches): Rename to...
129 (regcaches): ... this. Make static.
130 (get_thread_arch_aspace_regcache): Update.
131 (regcache::regcache_thread_ptid_changed): Rename to...
132 (regcache_thread_ptid_changed): ... this. Update.
133 (class regcache_access): Remove.
134 (regcaches_test): Update.
135 (_initialize_regcache): Update.
136 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
137 <forward_list>.
138
174981ae
SM
1392020-08-06 Simon Marchi <simon.marchi@efficios.com>
140
141 * regcache.h (class regcache) <current_regcache>: Rename to...
142 <regcaches>: ... this. Move doc here.
143 * regcache.c (regcache::current_regcache) Rename to...
144 (regcache::regcaches): ... this. Move doc to header.
145 (get_thread_arch_aspace_regcache): Update.
146 (regcache::regcache_thread_ptid_changed): Update.
147 (registers_changed_ptid): Update.
148 (class regcache_access) <current_regcache_size>: Rename to...
149 <regcaches_size>: ... this.
150 (current_regcache_test): Rename to...
151 (regcaches_test): ... this.
152 (_initialize_regcache): Update.
153
ed908db6
VC
1542020-08-06 Victor Collod <vcollod@nvidia.com>
155
156 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
157
b5582ab7
KB
1582020-08-05 Kevin Buettner <kevinb@redhat.com>
159
160 * corelow.c (core_target::build_file_mappings): Don't output
161 null pathname in warning.
162
ea946b86
SM
1632020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
164
165 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
166 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
167 gdb.dwarf2/dw2-single-line-discriminators.exp,
168 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
169
57d02173
TT
1702020-08-05 Tom Tromey <tromey@adacore.com>
171
172 PR rust/26197:
173 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
174 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
175 Fix off-by-one and type size errors in ordinary case.
176
5555c86d
TV
1772020-08-05 Tom de Vries <tdevries@suse.de>
178
179 * gdbtypes.c (type_not_allocated, type_not_associated): Use
180 "prop->const_val () == 0" instead of "prop->const_val () != 0".
181
97916bfe
SM
1822020-08-04 Simon Marchi <simon.marchi@efficios.com>
183
184 * frame.h (frame_id_p): Return bool.
185 (frame_id_artificial_p): Return bool.
186 (frame_id_eq): Return bool.
187 (has_stack_frames): Return bool.
188 (get_selected_frame): Fix typo in comment.
189 (get_frame_pc_if_available): Return bool.
190 (get_frame_address_in_block_if_available): Return bool.
191 (get_frame_func_if_available): Return bool.
192 (read_frame_register_unsigned): Return bool.
193 (get_frame_register_bytes): Return bool.
194 (safe_frame_unwind_memory): Return bool.
195 (deprecated_frame_register_read): Return bool.
196 (frame_unwinder_is): Return bool.
197 * frame.c (struct frame_info) <prev_arch::p>: Change type to
198 bool.
199 <this_id::p>: Likewise.
200 <prev_p>: Likewise.
201 (frame_stash_add): Return bool.
202 (get_frame_id): Use bool.
203 (frame_id_build_special) Use bool.
204 (frame_id_build_unavailable_stack): Use bool.
205 (frame_id_build): Use bool.
206 (frame_id_p): Return bool, use true/false instead of 1/0.
207 (frame_id_artificial_p): Likewise.
208 (frame_id_eq): Likewise.
209 (frame_id_inner): Likewise.
210 (get_frame_func_if_available): Likewise.
211 (read_frame_register_unsigned): Likewise.
212 (deprecated_frame_register_read): Likewise.
213 (get_frame_register_bytes): Likewise.
214 (has_stack_frames): Likewise.
215 (inside_main_func): Likewise.
216 (inside_entry_func): Likewise.
217 (get_frame_pc_if_available): Likewise.
218 (get_frame_address_in_block_if_available): Likewise.
219 (frame_unwinder_is): Likewise.
220 (safe_frame_unwind_memory): Likewise.
221 (frame_unwind_arch): Likewise.
222
fedfee88
SM
2232020-08-04 Simon Marchi <simon.marchi@efficios.com>
224
225 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
226 type to cached_copy_status.
227 (fprintf_frame): Adjust.
228 (get_frame_func_if_available): Adjust.
229 (frame_cleanup_after_sniffer): Adjust.
230
6cfa9b59
MW
2312020-08-04 Mark Wielaard <mark@klomp.org>
232
233 * MAINTAINERS (Write After Approval): Update email address.
234
66d6346b
SM
2352020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
236
237 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
238 dynamic_prop::const_val.
239
8a6d5e35
SM
2402020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
241
242 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
243 dynamic_prop::kind.
244
51d6067d
SM
2452020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
246
247 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
248
b26e2ae7
JM
2492020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
250
251 * configure.tgt: Set gdb_sim for bpf-*-* targets.
252
39791af2
JM
2532020-08-04 Weimin Pan <weimin.pan@oracle.com>
254 Jose E. Marchesi <jose.marchesi@oracle.com>
255
256 * configure.tgt: Add entry for bpf-*-*.
257 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
258 (ALLDEPFILES): Add bpf-tdep.c.
259 * bpf-tdep.c: New file.
260 * MAINTAINERS: Add bpf target and maintainer.
261 * NEWS: Mention the support for the new target.
262
521894aa
TV
2632020-08-04 Tom de Vries <tdevries@suse.de>
264
265 PR symtab/23270
266 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
267 Error.
268
5d6356e9
JB
2692020-08-03 John Baldwin <jhb@FreeBSD.org>
270
271 * syscalls/freebsd.xml: Regenerate.
272
0cf82b81
JB
2732020-08-03 John Baldwin <jhb@FreeBSD.org>
274
275 * syscalls/update-freebsd.sh: Fix usage and year range.
276
8f34b746
TV
2772020-08-03 Tom de Vries <tdevries@suse.de>
278
279 PR symtab/26333
280 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
281 DW_LNE_lo_user/DW_LNE_hi_user range.
282
5e500d33
SM
2832020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
284
285 PR ada/26318
286 * ada-lang.c (ada_modulus): Return 0 if property is not of const
287 kind.
288
78319c15
TBA
2892020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
290
291 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
292
4c55e970
TBA
2932020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
294
295 * breakpoint.c (set_breakpoint_condition): Update the condition
296 expressions after checking that the input condition string parses
297 successfully and does not contain junk at the end.
298
1e620590
TBA
2992020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
300
301 * breakpoint.c (set_breakpoint_condition): Update the
302 condition string after parsing the new condition successfully.
303
c8693053
RO
3042020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
305
306 * proc-api.c (_STRUCTURED_PROC): Don't define.
307 * proc-events.c: Likewise.
308 * proc-flags.c: Likewise.
309 * proc-why.c: Likewise.
310 * procfs.c: Likewise.
311
312 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
313 * configure, config.in: Regenerate.
314
5a99adb8
TV
3152020-07-30 Tom de Vries <tdevries@suse.de>
316
317 PR build/26320
318 * ui-style.h (struct ui_file_style::color): Wrap m_value and
319 m_red/m_green/m_blue in a union.
320
8ba83e91
TV
3212020-07-29 Tom de Vries <tdevries@suse.de>
322
323 PR tdep/26280
324 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
325
f75a0693
AB
3262020-07-28 Tom Tromey <tromey@adacore.com>
327
328 PR symtab/26270:
329 * symtab.h (find_pc_partial_function_sym): Declare.
330 * cli/cli-cmds.c (disassemble_command): Use
331 find_pc_partial_function_sym. Check asm_demangle.
332 * blockframe.c (cache_pc_function_sym): New global.
333 (cache_pc_function_name): Remove.
334 (clear_pc_function_cache): Update.
335 (find_pc_partial_function_sym): New function, from
336 find_pc_partial_function.
337 (find_pc_partial_function): Rewrite using
338 find_pc_partial_function_sym.
339
16f3242c
TT
3402020-07-28 Tom Tromey <tromey@adacore.com>
341
342 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
343 help. Add usage.
344
4888741a
TT
3452020-07-28 Tom Tromey <tromey@adacore.com>
346
347 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
348 <DW_OP_GNU_variable_value>: Cast to address type.
349
4d46f402
KR
3502020-07-28 Kamil Rytarowski <n54@gmx.com>
351
352 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
353 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
354 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
355 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
356 (nbsd_get_siginfo_type): New.
357 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
358 (_initialize_nbsd_tdep): New.
359
d70f978b
L
3602020-07-28 H.J. Lu <hongjiu.lu@intel.com>
361
362 PR binutils/26301
363 * configure: Regenerated.
364
377170fa
L
3652020-07-28 H.J. Lu <hongjiu.lu@intel.com>
366
367 PR binutils/26301
368 * configure: Regenerated.
369
43d5901d
AB
3702020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
371
372 * python/py-frame.c: Remove 'user-regs.h' include.
373 (frapy_read_register): Rewrite to make use of
374 gdbpy_parse_register_id.
375 * python/py-registers.c (gdbpy_parse_register_id): New function,
376 moved here from python/py-unwind.c. Updated the return type, and
377 also accepts register descriptor objects.
378 * python/py-unwind.c: Remove 'user-regs.h' include.
379 (pyuw_parse_register_id): Moved to python/py-registers.c.
380 (unwind_infopy_add_saved_register): Update to use
381 gdbpy_parse_register_id.
382 (pending_framepy_read_register): Likewise.
383 * python/python-internal.h (gdbpy_parse_register_id): Declare.
384
14fa8fb3
AB
3852020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
386
387 * python/py-registers.c: Add 'user-regs.h' include.
388 (register_descriptor_iter_find): New function.
389 (register_descriptor_iterator_object_methods): New static global
390 methods array.
391 (register_descriptor_iterator_object_type): Add pointer to methods
392 array.
393
ddce1758
JB
3942020-07-27 John Baldwin <jhb@FreeBSD.org>
395
396 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
397 for all architectures on FreeBSD 11.3 and later.
398
a4089f52
TT
3992020-07-27 Tom Tromey <tromey@adacore.com>
400
401 * gcore.h (load_corefile): Don't declare.
402
95420d30
TV
4032020-07-27 Tom de Vries <tdevries@suse.de>
404
405 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
406 * config.in: Regenerate.
407 * configure: Regenerate.
408
05a6b8c2
EZ
4092020-07-26 Eli Zaretskii <eliz@gnu.org>
410
411 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
412 ws2tcpip.h. When checking whether socklen_t type is defined, use
413 ws2tcpip.h if it is available and sys/socket.h isn't.
414 * configure: Regenerate.
415 * config.in: Regenerate.
416
e79eb02f
AB
4172020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
418
419 PR fortran/23051
420 PR fortran/26139
421 * valops.c (value_ind): Pass address to
422 readjust_indirect_value_type.
423 * value.c (readjust_indirect_value_type): Make parameter
424 non-const, and add extra address parameter. Resolve original type
425 before using it.
426 * value.h (readjust_indirect_value_type): Update function
427 signature and comment.
428
876518dd
TV
4292020-07-25 Tom de Vries <tdevries@suse.de>
430
431 PR symtab/26243
432 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
433 entries.
434
f6720b1c
AM
4352020-07-24 Aaron Merey <amerey@redhat.com>
436
437 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
438 * configure: Rebuild.
439
513487e1
KB
4402020-07-23 Kevin Buettner <kevinb@redhat.com>
441
442 PR corefiles/26294
443 * corelow.c (_initialize_corelow): Add period to help text
444 for "maintenance print core-file-backed-mappings".
445
e7bc9db8
PA
4462020-07-23 Pedro Alves <pedro@palves.net>
447
448 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
449 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
450 meanwhile.
451 * frame.c (frame_cache_generation, get_frame_cache_generation):
452 New.
453 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
454 (get_prev_frame_if_no_cycle): On exception, don't touch
455 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
456 * frame.h (get_frame_cache_generation): Declare.
457
90fcc466
TV
4582020-07-23 Tom de Vries <tdevries@suse.de>
459
460 PR tui/26282
461 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
462 New default constructor.
463
78344df7
AB
4642020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
465
466 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
467 exclude non-statement entries.
468
b089853a
KB
4692020-07-22 Kevin Buettner <kevinb@redhat.com>
470
471 * NEWS (New commands): Mention new command
472 "maintenance print core-file-backed-mappings".
473
09c2f5d4
KB
4742020-07-22 Kevin Buettner <kevinb@redhat.com>
475
476 * corelow.c (gdbcmd.h): Include.
477 (core_target::info_proc_mappings): New method.
478 (get_current_core_target): New function.
479 (maintenance_print_core_file_backed_mappings): New function.
480 (_initialize_corelow): Add core-file-backed-mappings to
481 "maint print" commands.
482
9c5ec5c2
KB
4832020-07-22 Kevin Buettner <kevinb@redhat.com>
484
485 * linux-tdep.c (dump_note_entry_p): New function.
486 (linux_dump_mapping_p_ftype): New typedef.
487 (linux_find_memory_regions_full): Add new parameter,
488 should_dump_mapping_p.
489 (linux_find_memory_regions): Adjust call to
490 linux_find_memory_regions_full.
491 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
492 call to linux_find_memory_regions_full.
493
db082f59
KB
4942020-07-22 Kevin Buettner <kevinb@redhat.com>
495
496 * corelow.c (solist.h, unordered_map): Include.
497 (class core_target): Add field m_core_file_mappings and
498 method build_file_mappings.
499 (core_target::core_target): Call build_file_mappings.
500 (core_target::~core_target): Free memory associated with
501 m_core_file_mappings.
502 (core_target::build_file_mappings): New method.
503 (core_target::xfer_partial): Use m_core_file_mappings
504 for memory transfers.
505 * linux-tdep.c (linux_read_core_file_mappings): New
506 function.
507 (linux_core_info_proc_mappings): Rewrite to use
508 linux_read_core_file_mappings.
509 (linux_init_abi): Register linux_read_core_file_mappings.
510
7e183d27
KB
5112020-07-22 Kevin Buettner <kevinb@redhat.com>
512
513 * arch-utils.c (default_read_core_file_mappings): New function.
514 * arch-utils.c (default_read_core_file_mappings): Declare.
515 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
516 * gdbarch.h, gdbarch.c: Regenerate.
517
2735d421
KB
5182020-07-22 Kevin Buettner <kevinb@redhat.com>
519
520 PR corefiles/25631
521 * corelow.c (core_target:xfer_partial): Revise
522 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
523 case after first checking the stratum beneath the core
524 target.
525 (has_all_memory): Return true.
526 * target.c (raw_memory_xfer_partial): Revise comment
527 regarding use of has_all_memory.
528
e56cb451
KB
5292020-07-22 Kevin Buettner <kevinb@redhat.com>
530
531 * exec.h (section_table_xfer_memory): Revise declaration,
532 replacing section name parameter with an optional callback
533 predicate.
534 * exec.c (section_table_xfer_memory): Likewise.
535 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
536 of section_table_xfer_memory.
537
32fa152e
TT
5382020-07-22 Tom Tromey <tromey@adacore.com>
539
540 * mi/mi-cmd-stack.c (list_args_or_locals): Use
541 lookup_symbol_search_name.
542
a67a1c41
AB
5432020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * python/py-registers.c (gdbpy_register_object_data_init): Remove
546 redundant local variable.
547 (gdbpy_get_register_descriptor): Extract descriptor vector as a
548 reference, not pointer, update code accordingly.
549
a7b4ff4f
SM
5502020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
551 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
552
553 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
554 * jit.c (jit_breakpoint_re_set_internal): Use the
555 `skip_jit_symbol_lookup` field.
556
2340e834
SM
5572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
558 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
559
560 * jit.c (jit_read_descriptor): Define the descriptor address once,
561 use twice.
562 (jit_breakpoint_deleted): Move the declaration of the loop variable
563 `iter` into the loop header.
564 (jit_breakpoint_re_set_internal): Move the declaration of the local
565 variable `objf_data` to the first point of definition.
566 (jit_event_handler): Move the declaration of local variables
567 `code_entry`, `entry_addr`, and `objf` to their first point of use.
568 Rename `objf` to `jited`.
569
c1072906
SM
5702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
571
572 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
573 Remove.
574 * jit.c (get_jiter_objfile_data): Update.
575
c8474dc3
TBA
5762020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
577 Simon Marchi <simon.marchi@polymtl.ca>
578
579 * jit.c (struct jit_program_space_data): Remove.
580 (jit_program_space_key): Remove.
581 (jiter_objfile_data::~jiter_objfile_data): Remove program space
582 stuff.
583 (get_jit_program_space_data): Remove.
584 (jit_breakpoint_deleted): Iterate on all of the program space's
585 objfiles.
586 (jit_inferior_init): Likewise.
587 (jit_breakpoint_re_set_internal): Likewise. Also change return
588 type to void.
589 (jit_breakpoint_re_set): Pass current_program_space to
590 jit_breakpoint_re_set_internal.
591
77208eb7
SM
5922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
593
594 * jit.h (struct jiter_objfile_data) <cached_code_address,
595 jit_breakpoint>: Move to here from ...
596 * jit.c (jit_program_space_data): ... here.
597 (jiter_objfile_data::~jiter_objfile_data): Update.
598 (jit_breakpoint_deleted): Update.
599 (jit_breakpoint_re_set_internal): Update.
600
8c1c720f
SM
6012020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
602
603 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
604 checks.
605 (jit_read_descriptor): Remove NULL check.
606 (jit_event_handler): Add an assertion.
607
0e74a041
SM
6082020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
609
610 * jit.h (struct jit_objfile_data): Split into...
611 (struct jiter_objfile_data): ... this ...
612 (struct jited_objfile_data): ... and this.
613 * objfiles.h (struct objfile) <jit_data>: Remove.
614 <jiter_data, jited_data>: New fields.
615 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
616 (jiter_objfile_data::~jiter_objfile_data): ... this.
617 (get_jit_objfile_data): Rename to ...
618 (get_jiter_objfile_data): ... this.
619 (add_objfile_entry): Update.
620 (jit_read_descriptor): Use get_jiter_objfile_data.
621 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
622 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
623 (jit_inferior_exit_hook): Use objfile's jited_data field.
624
238b5c9f
SM
6252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
626
627 * jit.h: Forward-declare `struct minimal_symbol`.
628 (struct jit_objfile_data): Migrate to here from jit.c; also add a
629 constructor, destructor, and an objfile* field.
630 * jit.c (jit_objfile_data): Remove.
631 (struct jit_objfile_data): Migrate from here to jit.h.
632 (jit_objfile_data::~jit_objfile_data): New destructor
633 implementation with code moved from free_objfile_data.
634 (free_objfile_data): Delete.
635 (get_jit_objfile_data): Update to use the jit_data field of objfile.
636 (jit_find_objf_with_entry_addr): Ditto.
637 (jit_inferior_exit_hook): Ditto.
638 (_initialize_jit): Remove the call to
639 register_objfile_data_with_cleanup.
640 * objfiles.h (struct objfile) <jit_data>: New field.
641
fe053b9e
TBA
6422020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
643
644 * jit.h: Forward-declare `struct objfile`.
645 (jit_event_handler): Add a second parameter, the JITer objfile.
646 * jit.c (jit_read_descriptor): Change the signature to take the
647 JITer objfile as an argument instead of the jit_program_space_data.
648 (jit_inferior_init): Update the call to jit_read_descriptor.
649 (jit_event_handler): Use the new JITer objfile argument when calling
650 jit_read_descriptor.
651 * breakpoint.c (handle_jit_event): Update the call to
652 jit_event_handler to pass the JITer objfile.
653
4cec0c66
JB
6542020-07-21 John Baldwin <jhb@FreeBSD.org>
655
656 * gdbarch.c: Regenerate.
657 * gdbarch.h: Regenerate.
658 * gdbarch.sh (handle_segmentation_fault): Remove method.
659 * infrun.c (handle_segmentation_fault): Remove.
660 (print_signal_received_reason): Remove call to
661 handle_segmentation_fault.
662
0e42f66a
JB
6632020-07-21 John Baldwin <jhb@FreeBSD.org>
664
665 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
666 Rename to sparc64_linux_report_signal_info and add siggnal
667 argument.
668 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
669 instead of sparc64_linux_handle_segmentation_fault.
670
77bdfeb2
JB
6712020-07-21 John Baldwin <jhb@FreeBSD.org>
672
673 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
674 i386_linux_report_signal_info instead of
675 i386_linux_handle_segmentation_fault.
676 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
677 to i386_linux_report_signal_info and add siggnal argument.
678 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
679 of i386_linux_handle_segmentation_fault.
680 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
681 to i386_linux_report_signal_info and add siggnal argument.
682
ad97bfc5
JB
6832020-07-21 John Baldwin <jhb@FreeBSD.org>
684
685 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
686 hook if present.
687
272bb05c
JB
6882020-07-21 John Baldwin <jhb@FreeBSD.org>
689
690 * gdbarch.c: Regenerate.
691 * gdbarch.h: Regenerate.
692 * gdbarch.sh (report_signal_info): New method.
693 * infrun.c (print_signal_received_reason): Invoke gdbarch
694 report_signal_info hook if present.
695
baf8791e
AB
6962020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
697
698 * python/py-registers.c : Add 'unordered_map' include.
699 (gdbpy_new_reggroup): Renamed to...
700 (gdbpy_get_reggroup): ...this. Update to only create register
701 group descriptors when needed.
702 (gdbpy_reggroup_iter_next): Update.
703
f7306dac
AB
7042020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
705
706 * python/py-registers.c (gdbpy_register_object_data): New static
707 global.
708 (gdbpy_register_object_data_init): New function.
709 (gdbpy_new_register_descriptor): Renamed to...
710 (gdbpy_get_register_descriptor): ...this, and update to reuse
711 existing register descriptors where possible.
712 (gdbpy_register_descriptor_iter_next): Update.
713 (gdbpy_initialize_registers): Register new gdbarch data.
714
05c309a8
SM
7152020-07-21 Simon Marchi <simon.marchi@efficios.com>
716
717 * linux-nat.c (stopped_pids): Make static.
718
d1fd641e
SM
7192020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
720
721 PR ada/26235
722 * gdbtypes.c (ada_discrete_type_low_bound,
723 ada_discrete_type_high_bound): Handle undefined bounds.
724
1de14d77
KR
7252020-07-21 Kamil Rytarowski <n54@gmx.com>
726
727 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
728 declaration.
729 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
730 function.
731
ed810cc7
JB
7322020-07-20 John Baldwin <jhb@FreeBSD.org>
733
734 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
735 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
736 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
737 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
738 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
739 method.
740
ae5369e7
LC
7412020-07-20 Ludovic Courtès <ludo@gnu.org>
742
743 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
744 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
745 which are deprecated in Guile 3.0.
746 * configure.ac (try_guile_versions): Add "guile-3.0".
747 * configure (try_guile_versions): Regenerate.
748 * NEWS: Update entry.
749
68cf161c
LC
7502020-07-20 Ludovic Courtès <ludo@gnu.org>
751 Doug Evans <dje@google.com>
752
753 PR gdb/21104
754 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
755 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
756 USING_GUILE_BEFORE_2_2.
757 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
758 Change type to 'scm_t_port_type *'.
759 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
760 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
761 parameter and honor it. Update callers.
762 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
763 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
764 functions.
765 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
766 USING_GUILE_BEFORE_2_2.
767 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
768 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
769 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
770 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
771 and 'SCM_PORT_TYPE'.
772 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
773 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
774 (gdbscm_memory_port_read, gdbscm_memory_port_write)
775 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
776 [!USING_GUILE_BEFORE_2_2]: New functions.
777 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
778 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
779 'gdbscm_memory_port_read'.
780 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
781 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
782 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
783 function.
784 (ioscm_init_memory_port): Remove.
785 (ioscm_init_memory_port_stream): New function
786 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
787 function.
788 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
789 Return scm_from_uint (0).
790 (gdbscm_set_memory_port_read_buffer_size_x)
791 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
792 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
793 Return scm_from_uint (0).
794 (gdbscm_set_memory_port_write_buffer_size_x)
795 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
796 * configure.ac (try_guile_versions): Add "guile-2.2".
797 * configure: Regenerate.
798 * NEWS: Add entry.
799
aee91db3
TT
8002020-07-18 Tom Tromey <tom@tromey.com>
801
802 * linux-nat.c (linux_multi_process): Remove.
803 (linux_nat_target::supports_multi_process): Return true.
804
0e267416
AB
8052020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
806
807 * arch/riscv.c (riscv_tdesc_cache): Change map type.
808 (riscv_lookup_target_description): Return pointer out of
809 unique_ptr.
810 * target-descriptions.c (allocate_target_description): Add
811 comment.
812 (target_desc_deleter::operator()): Likewise.
813 * target-descriptions.h (struct target_desc_deleter): Moved to
814 gdbsupport/tdesc.h.
815 (target_desc_up): Likewise.
816
f80c8ec4
TT
8172020-07-17 Tom Tromey <tromey@adacore.com>
818
819 * linux-nat.c (linux_nat_target::supports_non_stop)
820 (linux_nat_target::always_non_stop_p): Use "true".
821 (linux_nat_target::supports_disable_randomization): Use "true" and
822 "false".
823
d0ce17d8
CT
8242020-07-16 Caroline Tice <cmtice@google.com>
825
826 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
827 (RNGLIST_HEADER_SIZE64): New constant definition.
828 (struct dwop_section_names): Add rnglists_dwo.
829 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
830 (struct loclist_header): Rename to 'loclists_rnglists_header'.
831 (struct dwo_sections): Add rnglists field.
832 (read_attribut_reprocess): Add tag parameter.
833 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
834 (cu_debug_rnglists_section): New function (decl & definition).
835 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
836 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
837 die whose range is being checked; get rnglist section from
838 cu_debug_rnglists_section, to get from either objfile or dwo file as
839 appropriate. Add cases for DW_RLE_base_addressx,
840 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
841 the base address to DW_RLE_offset_pairs (not to all ranges), moving
842 test inside if-condition and updating complaint message.
843 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
844 dwarf2_rnglists_process.
845 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
846 dwarf2_ranges_process.
847 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
848 need_ranges_base and update comment appropriately. Also pass die tag
849 to dwarf2_ranges_read.
850 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
851 need_ranges_base and update comment appropriately. Also pass die tag
852 to dwarf2_ranges_process.
853 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
854 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
855 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
856 need_ranges_base and update comment appropriately. Also pass die tag
857 to read_attribute_reprocess and dwarf2_ranges_read.
858 (read_loclist_header): Rename function to read_loclists_rnglists_header,
859 and update function comment appropriately.
860 (read_loclist_index): Call read_loclists_rnglists_header instead of
861 read_loclist_header.
862 (read_rnglist_index): New function.
863 (read_attribute_reprocess): Add tag parameter. Add code for
864 DW_FORM_rnglistx, passing tag to read_rnglist_index.
865 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
866
3dcc261c
AB
8672020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
868
869 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
870 being resolved.
871
ccb9eba6
AB
8722020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
873
874 * arch-utils.c (show_architecture): Update formatting of messages.
875
cf88be68
SM
8762020-07-12 Simon Marchi <simon.marchi@efficios.com>
877
878 * gdbtypes.h (struct type) <bounds>: Handle array and string
879 types.
880 * ada-lang.c (assign_aggregate): Use type::bounds on
881 array/string type.
882 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
883 * c-varobj.c (c_number_of_children): Likewise.
884 (c_describe_child): Likewise.
885 * eval.c (evaluate_subexp_for_sizeof): Likewise.
886 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
887 (f_type_print_base): Likewise.
888 * f-valprint.c (f77_array_offset_tbl): Likewise.
889 (f77_get_upperbound): Likewise.
890 (f77_print_array_1): Likewise.
891 * guile/scm-type.c (gdbscm_type_range): Likewise.
892 * m2-typeprint.c (m2_array): Likewise.
893 (m2_is_long_set_of_type): Likewise.
894 * m2-valprint.c (get_long_set_bounds): Likewise.
895 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
896 * python/py-type.c (typy_range): Likewise.
897 * rust-lang.c (rust_internal_print_type): Likewise.
898 * type-stack.c (type_stack::follow_types): Likewise.
899 * valarith.c (value_subscripted_rvalue): Likewise.
900 * valops.c (value_cast): Likewise.
901
509971ae
SM
9022020-07-12 Simon Marchi <simon.marchi@efficios.com>
903
904 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
905 callers to use the equivalent accessor methods.
906
107406b7
SM
9072020-07-12 Simon Marchi <simon.marchi@efficios.com>
908
909 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
910 (struct type) <bit_stride>: New method.
911 (TYPE_BIT_STRIDE): Remove.
912 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
913
bb789949
SM
9142020-07-12 Simon Marchi <simon.marchi@efficios.com>
915
916 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
917 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
918 callers to use the equivalent accessor methods instead.
919
39498edb
SM
9202020-07-12 Simon Marchi <simon.marchi@efficios.com>
921
922 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
923 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
924 callers to use the equivalent accessor methods instead.
925
3b606f38
SM
9262020-07-12 Simon Marchi <simon.marchi@efficios.com>
927
928 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
929 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
930 to use dynamic_prop::kind.
931
064d9cb9
SM
9322020-07-12 Simon Marchi <simon.marchi@efficios.com>
933
934 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
935 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
936 to get the bound property's kind and check against
937 PROP_UNDEFINED.
938
5537ddd0
SM
9392020-07-12 Simon Marchi <simon.marchi@efficios.com>
940
941 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
942 all callers to use type::range_bounds followed by
943 dynamic_prop::{low,high}.
944
8c2e4e06
SM
9452020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
946
947 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
948 const_val, set_const_val, baton, set_locexpr, set_loclist,
949 set_addr_offset, variant_parts, set_variant_parts,
950 original_type, set_original_type>: New methods.
951 <kind>: Rename to...
952 <m_kind>: ... this. Update all users to use the new methods
953 instead.
954 <data>: Rename to...
955 <m_data>: ... this. Update all users to use the new methods
956 instead.
957
7c6f2712
SM
9582020-07-12 Simon Marchi <simon.marchi@efficios.com>
959
960 * gdbtypes.c (get_discrete_bounds): Return failure if
961 the range type's bounds are not both defined and constant
962 values.
963 (get_array_bounds): Update comment. Remove undefined bound check.
964
599088e3
SM
9652020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
966
967 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
968 the type::bounds method directly.
969
c4dfcb36
SM
9702020-07-12 Simon Marchi <simon.marchi@efficios.com>
971
972 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
973 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
974 are used to set the range type's bounds to use set_bounds.
975
0a278aa7
PW
9762020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
977
978 * exec.c (_initialize_exec): Update exec-file-mismatch help.
979
cce20f10
PA
9802020-07-10 Pedro Alves <pedro@palves.net>
981
982 * gdbthread.h (inferior_ref): Define.
983 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
984 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
985 * thread.c
986 (scoped_restore_current_thread::restore):
987 Adjust to gdb::ref_ptr.
988 (scoped_restore_current_thread::~scoped_restore_current_thread):
989 Remove manual decref handling.
990 (scoped_restore_current_thread::scoped_restore_current_thread):
991 Adjust to use
992 inferior_ref::new_reference/thread_info_ref::new_reference.
993 Incref the thread before calling get_frame_id instead of after.
994 Let TARGET_CLOSE_ERROR propagate.
995
6d7aa592
PA
9962020-07-10 Pedro Alves <pedro@palves.net>
997
998 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
999 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1000 NOT_AVAILABLE_ERROR.
1001 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1002 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1003
b3e3a4c1
SM
10042020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1005 Pedro Alves <pedro@palves.net>
1006
1007 PR gdb/26199
1008 * infrun.c (threads_are_resumed_pending_p): Delete.
1009 (do_target_wait): Remove threads_are_executing and
1010 threads_are_resumed_pending_p checks from the inferior_matches
1011 lambda. Update comments.
1012
d6cc5d98
PA
10132020-07-10 Pedro Alves <pedro@palves.net>
1014
1015 PR gdb/26199
1016 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1017 executing threads.
1018
7d3badc6
PA
10192020-07-10 Pedro Alves <pedro@palves.net>
1020
1021 PR gdb/26199
1022 * infrun.c (handle_no_resumed): Handle multiple targets.
1023
42bd97a6
PA
10242020-07-10 Pedro Alves <pedro@palves.net>
1025
1026 PR gdb/26199
1027 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1028 target_is_async_p.
1029
43667cc6
PA
10302020-07-10 Pedro Alves <pedro@palves.net>
1031
1032 PR gdb/26199
1033 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1034 threads, not all threads.
1035
96118d11
PA
10362020-07-10 Pedro Alves <pedro@palves.net>
1037
1038 PR gdb/26199
1039 * remote.c (remote_target::open_1): Pass remote target pointer as
1040 data to create_async_event_handler.
1041 (remote_async_inferior_event_handler): Mark async event handler
1042 before returning if the remote target still has either pending
1043 events or unacknowledged notifications.
1044
54904d81
JB
10452020-07-10 John Baldwin <jhb@FreeBSD.org>
1046
1047 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1048 declaration.
1049 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1050 function.
1051
f37e5866
JB
10522020-07-09 John Baldwin <jhb@FreeBSD.org>
1053
1054 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1055 inferior_ptid.
1056
fc238d4a
JB
10572020-07-09 John Baldwin <jhb@FreeBSD.org>
1058
1059 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1060 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1061 AT_FREEBSD_PS_STRINGS.
1062
6e2469ff
HD
10632020-07-08 Hannes Domani <ssbssa@yahoo.de>
1064
1065 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1066 of debugfile path on Windows.
1067
d1076c41
JB
10682020-07-08 John Baldwin <jhb@FreeBSD.org>
1069
1070 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1071 argument to 'data'.
1072
15f3b077
TT
10732020-07-08 Tom Tromey <tromey@adacore.com>
1074
1075 * ada-lang.c (ada_exception_message_1): Use read_memory.
1076
9fc501fd
AB
10772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1078
1079 PR python/22748
1080 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1081 special handling for inline frames.
1082 * findvar.c (value_of_register_lazy): Skip inline frames when
1083 creating lazy register values.
1084 * frame.c (frame_id_computed_p): Delete definition.
1085 * frame.h (frame_id_computed_p): Delete declaration.
1086
64cb3757
AB
10872020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1088
1089 * NEWS: Mention additions to Python API.
1090 * python/py-arch.c (archpy_register_groups): New function.
1091 (arch_object_methods): Add 'register_groups' method.
1092 * python/py-registers.c (reggroup_iterator_object): New struct.
1093 (reggroup_object): New struct.
1094 (gdbpy_new_reggroup): New function.
1095 (gdbpy_reggroup_to_string): New function.
1096 (gdbpy_reggroup_name): New function.
1097 (gdbpy_reggroup_iter): New function.
1098 (gdbpy_reggroup_iter_next): New function.
1099 (gdbpy_new_reggroup_iterator): New function
1100 (gdbpy_initialize_registers): Register new types.
1101 (reggroup_iterator_object_type): Define new Python type.
1102 (gdbpy_reggroup_getset): New static global.
1103 (reggroup_object_type): Define new Python type.
1104 * python/python-internal.h
1105
0f767f94
AB
11062020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1109 * python/py-arch.c (archpy_registers): New function.
1110 (arch_object_methods): Add 'registers' method.
1111 * python/py-registers.c: New file.
1112 * python/python-internal.h
1113 (gdbpy_new_register_descriptor_iterator): Declare.
1114 (gdbpy_initialize_registers): Declare.
1115 * python/python.c (do_start_initialization): Call
1116 gdbpy_initialize_registers.
1117 * NEWS: Mention additions to the Python API.
1118
87dbc774
AB
11192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1120
1121 * NEWS: Mention new Python API method.
1122 * python/py-unwind.c (pending_framepy_architecture): New function.
1123 (pending_frame_object_methods): Add architecture method.
1124
3bc98c0c
AB
11252020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * gdbarch.c: Regenerate.
1128 * gdbarch.h: Regenerate.
1129 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1130 (gdbarch_data): Use internal_error for the case where
1131 deprecated_set_gdbarch_data was originally needed.
1132 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1133 and use passed in obstack.
1134 (libunwind_frame_set_descr): Should no longer get back NULL from
1135 gdbarch_data.
1136 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1137 type.
1138 * user-regs.c (user_regs_init): Update parameters, and use passed
1139 in obstack.
1140 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1141 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1142
d8cc8af6
TV
11432020-07-06 Tom de Vries <tdevries@suse.de>
1144
1145 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1146 End-Of-Sequence in lte_is_less_than.
1147 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1148 "gdb: Don't reorder line table entries too much when sorting".
1149
947f7597
TV
11502020-07-06 Tom de Vries <tdevries@suse.de>
1151
1152 PR tui/26205
1153 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1154
1e7c1b22
TV
11552020-07-05 Tom de Vries <tdevries@suse.de>
1156
1157 PR build/26187
1158 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1159 std::uncaught_exceptions instead of deprecated
1160 std::uncaught_exception.
1161
a36158ec
SM
11622020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1163
1164 * macroexp.h (macro_stringify): Return
1165 gdb::unique_xmalloc_ptr<char>.
1166 * macroexp.c (macro_stringify): Likewise.
1167 * macrotab.c (fixup_definition): Update.
1168
14d960c8
SM
11692020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1170
1171 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1172 (lex_one_token): Update.
1173 * macroexp.c (struct macro_buffer) <release>: Return
1174 gdb::unique_xmalloc_ptr<char>.
1175 (macro_stringify): Update.
1176 (macro_expand): Update.
1177 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1178 * macroexp.h (macro_expand_next): Likewise.
1179
211d5b1c
SM
11802020-07-02 Simon Marchi <simon.marchi@efficios.com>
1181
1182 * macroexp.h (macro_lookup_ftype): Remove.
1183 (macro_expand, macro_expand_once, macro_expand_next): Remove
1184 lookup function parameters, add scope parameter.
1185 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1186 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1187 * macroscope.h (standard_macro_lookup): Change parameter type
1188 to macro_scope.
1189 * macroscope.c (standard_macro_lookup): Likewise.
1190 * c-exp.y (lex_one_token): Update.
1191 * macrocmd.c (macro_expand_command): Likewise.
1192 (macro_expand_once_command): Likewise.
1193
b1a35af2
SM
11942020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1195
1196 * inf-loop.c (inferior_event_handler): Remove client_data param.
1197 * inf-loop.h (inferior_event_handler): Likewise.
1198 * infcmd.c (step_1): Adjust.
1199 * infrun.c (proceed): Adjust.
1200 (fetch_inferior_event): Remove client_data param.
1201 (infrun_async_inferior_event_handler): Adjust.
1202 * infrun.h (fetch_inferior_event): Remove `void *` param.
1203 * linux-nat.c (handle_target_event): Adjust.
1204 * record-btrace.c (record_btrace_handle_async_inferior_event):
1205 Adjust.
1206 * record-full.c (record_full_async_inferior_event_handler):
1207 Adjust.
1208 * remote.c (remote_async_inferior_event_handler): Adjust.
1209
1cdf9e33
TT
12102020-07-01 Tom Tromey <tom@tromey.com>
1211
1212 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1213 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1214
32c1e210
TT
12152020-07-01 Tom Tromey <tom@tromey.com>
1216
1217 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1218 tui_gen_win_info.
1219 (tui_win_info::make_window): Merge with
1220 tui_gen_win_info::make_window.
1221 (tui_win_info::make_visible): Move from tui_gen_win_info.
1222 * tui/tui-win.c (tui_win_info::max_width): Move from
1223 tui_gen_win_info.
1224 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1225 type.
1226 <window_factory>: Likewise.
1227 * tui/tui-layout.c (tui_win_info::resize): Move from
1228 tui_gen_win_info.
1229 (make_standard_window): Change return type.
1230 (get_locator_window, tui_get_window_by_name): Likewise.
1231 (tui_layout_window::apply): Remove a cast.
1232 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1233 (struct tui_win_info): Merge with tui_gen_win_info.
1234 (struct tui_gen_win_info): Remove.
1235
a30cb6da
TT
12362020-07-01 Tom Tromey <tom@tromey.com>
1237
1238 * tui/tui-stack.h (struct tui_locator_window): Derive from
1239 tui_win_info.
1240 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1241 <can_box>: New method.
1242
1eb2161f
TT
12432020-07-01 Tom Tromey <tom@tromey.com>
1244
1245 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1246
7134f2eb
TT
12472020-07-01 Tom Tromey <tom@tromey.com>
1248
1249 * tui/tui-regs.c (tui_data_window::display_registers_from)
1250 (tui_data_window::display_registers_from)
1251 (tui_data_window::first_data_item_displayed)
1252 (tui_data_window::delete_data_content_windows): Update.
1253 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1254 Remove.
1255 (tui_data_window::check_register_values): Update.
1256 (tui_data_item_window::rerender): Add parameters. Update.
1257 (tui_data_item_window::refresh_window): Remove.
1258 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1259 virtual.
1260 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1261 tui_gen_win_info.
1262 <refresh_window, max_height, min_height>: Remove.
1263 <rerender>: Add parameters.
1264 <x, y, visible>: New members.
1265 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1266 <m_item_width>: New member.
1267
22b7b041
TT
12682020-07-01 Tom Tromey <tom@tromey.com>
1269
1270 * tui/tui-regs.c (tui_data_window::show_register_group)
1271 (tui_data_window::check_register_values): Update.
1272 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1273 from item_no.
1274
c9753adb
TT
12752020-07-01 Tom Tromey <tom@tromey.com>
1276
1277 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1278 useless "if".
1279
9ab26b4a
TT
12802020-07-01 Tom Tromey <tom@tromey.com>
1281
1282 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1283 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1284
e555083f
TT
12852020-07-01 Tom Tromey <tom@tromey.com>
1286
1287 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1288 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1289 (struct tui_line_or_address): Move from tui-data.h.
1290 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1291 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1292 (tui_cmd_window, tui_source_window_base, tui_source_window)
1293 (tui_disasm_window): Don't declare.
1294 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1295 to tui-winsource.h.
1296 (SINGLE_KEY): Move to tui-stack.c.
1297
7a02bab7
TT
12982020-07-01 Tom Tromey <tom@tromey.com>
1299
1300 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1301 std::string.
1302 * tui/tui-regs.c (class tab_expansion_file): New.
1303 (tab_expansion_file::write): New method.
1304 (tui_register_format): Change return type. Use
1305 tab_expansion_file.
1306 (tui_get_register, tui_data_window::display_registers_from)
1307 (tui_data_item_window::rerender): Update.
1308 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1309 * tui/tui-io.c (tui_expand_tabs): Remove.
1310
ea68593b
TT
13112020-07-01 Tom Tromey <tom@tromey.com>
1312
1313 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1314
a8caed5d
FS
13152020-07-01 Fangrui Song <maskray@google.com>
1316
1317 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1318
9cdf9820
AKS
13192020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1320
1321 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1322 forms for DW_AT_associated and DW_AT_allocated attributes,
1323 which is already checked in function attr_to_dynamic_prop.
1324
a1520ad8
TT
13252020-06-30 Tom Tromey <tromey@adacore.com>
1326
1327 * dwarf2/read.c (quirk_rust_enum): Correctly call
1328 alloc_rust_variant for default-less enum.
1329
5ac58899
TT
13302020-06-30 Tom Tromey <tromey@adacore.com>
1331
1332 PR build/26183:
1333 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1334 gdb::to_string.
1335
19b187a9
SM
13362020-06-29 Simon Marchi <simon.marchi@efficios.com>
1337
1338 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1339 * gdbarch.h: Re-generate.
1340
cd4c4c07
TT
13412020-06-28 Tom Tromey <tom@tromey.com>
1342
1343 * command.h (cmd_types): Remove.
1344 (cmd_type): Don't declare.
1345 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1346 typedef.
1347 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1348 * cli/cli-decode.c (cmd_type): Remove.
1349
05779d57
PA
13502020-06-27 Pedro Alves <palves@redhat.com>
1351
1352 * fork-child.c (prefork_hook): Adjust.
1353 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1354 Delete.
1355 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1356 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1357 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1358 Remove declarations.
1359 (struct inferior) <set_tty, tty>: New methods.
1360 (struct inferior) <terminal>: Rename to ...
1361 (struct inferior) <m_terminal>: ... this and make private.
1362 * main.c (captured_main_1): Adjust.
1363 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1364 (mi_cmd_inferior_tty_show): Adjust.
1365 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1366 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1367
1776e3e5
NA
13682020-06-26 Nick Alcock <nick.alcock@oracle.com>
1369
1370 * configure.ac: Add --enable-libctf: handle --disable-static
1371 properly.
1372 * acinclude.m4: sinclude ../config/enable.m4.
1373 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1374 (LIBCTF): Substitute in.
1375 (CTF_DEPS): New, likewise.
1376 (CLIBS): libctf needs symbols from libbfd: move earlier.
1377 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1378 flags.
1379 * ctfread.c: Surround in ENABLE_LIBCTF.
1380 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1381 * configure: Regenerate.
1382 * config.in: Likewise.
1383
58373b80
SM
13842020-06-25 Simon Marchi <simon.marchi@efficios.com>
1385
1386 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1387
277474ee
SM
13882020-06-25 Simon Marchi <simon.marchi@efficios.com>
1389
1390 * inferior.h (struct inferior) <terminal>: Change type to
1391 gdb::unique_xmalloc_ptr<char>.
1392 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1393 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1394 field, adjust to unique pointer.
1395 (get_inferior_io_terminal): Adjust to unique pointer.
1396
6d74da72
AB
13972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1398
1399 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1400 registers, not just the known core set of registers.
1401
2e52d038
AB
14022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1403
1404 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1405 fflags, frm, and fcsr registers.
1406 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1407 restore groups.
1408 (riscv_tdesc_unknown_reg): New function.
1409 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1410 tdesc_use_registers.
1411 * riscv-tdep.h (struct gdbarch_tdep): Add
1412 unknown_csrs_first_regnum, unknown_csrs_count,
1413 duplicate_fflags_regnum, duplicate_frm_regnum, and
1414 duplicate_fcsr_regnum fields.
1415
be64fd07
AB
14162020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1419 callback, use the callback (when not null) to help number unknown
1420 registers.
1421 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1422 (tdesc_use_registers): Add extra parameter to declaration.
1423
3b9fce96
AB
14242020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1427 in the file.
1428 (class riscv_pending_register_alias): Likewise.
1429 (riscv_register_feature::register_info): Change 'required_p' field
1430 to 'required', and change its type. Add 'check' member function.
1431 (riscv_register_feature::register_info::check): Define new member
1432 function.
1433 (riscv_xreg_feature): Change initialisation of 'required' field.
1434 (riscv_freg_feature): Likewise.
1435 (riscv_virtual_feature): Likewise.
1436 (riscv_csr_feature): Likewise.
1437 (riscv_check_tdesc_feature): Take extra parameter, the csr
1438 tdesc_feature, rewrite the function to use the new
1439 riscv_register_feature::register_info::check function.
1440 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1441
865bad26
AB
14422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1443
1444 * features/Makefile: Remove all references to the deleted files
1445 below.
1446 * features/riscv/32bit-csr.c: Deleted.
1447 * features/riscv/32bit-csr.xml: Deleted.
1448 * features/riscv/64bit-csr.c: Deleted.
1449 * features/riscv/64bit-csr.xml: Deleted.
1450 * features/riscv/rebuild-csr-xml.sh: Deleted.
1451
ed69cbc8
AB
14522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1453
1454 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1455 whitespace error for declaration of names member variable.
1456 (struct riscv_register_feature): Add new prefer_first_name member
1457 variable, and fix whitespace error in declaration of registers.
1458 (riscv_xreg_feature): Initialize prefer_first_name field.
1459 (riscv_freg_feature): Likewise.
1460 (riscv_virtual_feature): Likewise.
1461 (riscv_csr_feature): Likewise.
1462 (riscv_register_name): Expand on comments. Remove register name
1463 modifications for CSR and virtual registers.
1464
4445e8f5
AB
14652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1466
1467 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1468 errors.
1469
767a879e
AB
14702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1471
1472 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1473 riscv-opc.h.
1474 (class riscv_pending_register_alias): New class.
1475 (riscv_check_tdesc_feature): Take vector of pending aliases and
1476 populate it as appropriate.
1477 (riscv_setup_register_aliases): Delete.
1478 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1479 to riscv_check_tdesc_feature in all cases. Use the vector to
1480 create the register aliases.
1481
bb6e55f3
RO
14822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1483
1484 * sol2-tdep.c (sol2_static_transform_name): Remove.
1485 (sol2_init_abi): Don't register it.
1486 * gdbarch.sh (static_transform_name): Remove.
1487 * gdbarch.c, gdbarch.h: Regenerate.
1488
1489 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1490 gdbarch_static_transform_name.
1491 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1492 * stabsread.c (define_symbol) <'X'>: Remove.
1493 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1494 handling.
1495 <'V'>: Likewise.
1496 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1497 <'S'>: Remove call to gdbarch_static_transform_name.
1498
c6d36836
RO
14992020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1500
1501 * procfs.c (procfs_pre_trace): New function.
1502 (procfs_target::create_inferior): Pass it to fork_inferior.
1503
a7e6196b
RO
15042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1505
1506 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1507 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1508 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1509 sol2-tdep.o, sparc-sol2-tdep.o.
1510 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1511 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1512 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1513 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1514
d412e696
RO
15152020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1516
1517 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1518 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1519 Call sol2_init_abi.
1520 Remove calls to set_gdbarch_skip_solib_resolver,
1521 set_gdbarch_core_pid_to_str.
1522 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1523 (i386_sol2_static_transform_name): Remove.
1524 (i386_sol2_init_abi): Call sol2_init_abi.
1525 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1526 set_gdbarch_static_transform_name,
1527 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1528 Use sol2_sigtramp_p.
1529 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1530 (sol2_sigtramp_p): New function.
1531 (sol2_static_transform_name): New function.
1532 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1533 (sol2_init_abi): New function.
1534 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1535 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1536 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1537 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1538 (sparc_sol2_static_transform_name): Remove.
1539 (sparc32_sol2_init_abi): Call sol2_init_abi.
1540 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1541 set_gdbarch_static_transform_name,
1542 set_gdbarch_skip_solib_resolver,
1543 set_gdbarch_core_pid_to_str.
1544 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1545 (sparc_sol2_static_transform_name): Remove
1546 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1547 call sol2_sigtramp_p.
1548 (sparc64_sol2_init_abi): Call sol2_init_abi.
1549 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1550 set_gdbarch_static_transform_name,
1551 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1552
a8654e7d
PW
15532020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1554
1555 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1556 * exec.c (validate_exec_file): If from_tty, set both
1557 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1558 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1559 and from_tty, unconditionally ask a confirmation.
1560
caa7fd04
AB
15612020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1562
1563 * target-descriptions.c (tdesc_architecture_name): Protect against
1564 NULL pointer dereference.
1565 (maint_print_xml_tdesc_cmd): New function.
1566 (_initialize_target_descriptions): Register new 'maint print
1567 xml-tdesc' command and give it the filename completer.
1568 * NEWS: Mention new 'maint print xml-tdesc' command.
1569
fbf42f4e
AB
15702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1571
1572 * target-descriptions.c (class tdesc_compatible_info): New class.
1573 (struct target_desc): Change type of compatible vector.
1574 (tdesc_compatible_p): Update for change in type of
1575 target_desc::compatible.
1576 (tdesc_compatible_info_list): New function.
1577 (tdesc_compatible_info_arch_name): New function.
1578 (tdesc_add_compatible): Update for change in type of
1579 target_desc::compatible.
1580 (print_c_tdesc::visit_pre): Likewise.
1581
20821f4e
AB
15822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1583
1584 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1585 whitespace to underscore.
1586 (maint_print_c_tdesc_cmd): Use fake filename for target
1587 descriptions that came from the target.
1588 (_initialize_target_descriptions): Add filename command completion
1589 for 'maint print c-tdesc'.
1590
1fb5ee62
SM
15912020-06-23 Simon Marchi <simon.marchi@efficios.com>
1592
1593 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1594 lines.
1595
fc3ecb3e
SM
15962020-06-23 Simon Marchi <simon.marchi@efficios.com>
1597
1598 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1599 lines.
1600 (dwarf2_find_location_expression): Likewise.
1601 (call_site_parameter_matches): Likewise.
1602 (dwarf2_compile_expr_to_ax): Likewise.
1603 (disassemble_dwarf_expression): Likewise.
1604 (loclist_describe_location): Likewise.
1605
236ef034
PA
16062020-06-23 Pedro Alves <palves@redhat.com>
1607
1608 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1609 progspace-and-thread.h. Include scoped-mock-context.h instead.
1610 (register_to_value_test): Use scoped_mock_context.
1611 * regcache.c: Include "scoped-mock-context.h".
1612 (cooked_read_test): Don't error out if a target is already pushed.
1613 Use scoped_mock_context. Adjust.
1614 * scoped-mock-context.h: New file.
1615
39e7ecca
AB
16162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1617
1618 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1619 initializer.
1620 (ada_language::is_string_type_p): New member function.
1621 * c-lang.c (c_language_data): Delete la_is_string_type_p
1622 initializer.
1623 (cplus_language_data): Likewise.
1624 (asm_language_data): Likewise.
1625 (minimal_language_data): Likewise.
1626 * d-lang.c (d_language_data): Likewise.
1627 * f-lang.c (f_is_string_type_p): Delete function, implementation
1628 moved to f_language::is_string_type_p.
1629 (f_language_data): Delete la_is_string_type_p initializer.
1630 (f_language::is_string_type_p): New member function,
1631 implementation from f_is_string_type_p.
1632 * go-lang.c (go_is_string_type_p): Delete function, implementation
1633 moved to go_language::is_string_type_p.
1634 (go_language_data): Delete la_is_string_type_p initializer.
1635 (go_language::is_string_type_p): New member function,
1636 implementation from go_is_string_type_p.
1637 * language.c (language_defn::is_string_type_p): Define new member
1638 function.
1639 (default_is_string_type_p): Make static, add comment copied from
1640 header file.
1641 (unknown_language_data): Delete la_is_string_type_p initializer.
1642 (unknown_language::is_string_type_p): New member function.
1643 (auto_language_data): Delete la_is_string_type_p initializer.
1644 (auto_language::is_string_type_p): New member function.
1645 * language.h (language_data): Delete la_is_string_type_p field.
1646 (language_defn::is_string_type_p): Declare new function.
1647 (default_is_string_type_p): Delete desclaration, move comment to
1648 definition.
1649 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1650 moved to m2_language::is_string_type_p.
1651 (m2_language_data): Delete la_is_string_type_p initializer.
1652 (m2_language::is_string_type_p): New member function,
1653 implementation from m2_is_string_type_p.
1654 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1655 initializer.
1656 * opencl-lang.c (opencl_language_data): Likewise.
1657 * p-lang.c (pascal_is_string_type_p): Delete function,
1658 implementation moved to pascal_language::is_string_type_p.
1659 (pascal_language_data): Delete la_is_string_type_p initializer.
1660 (pascal_language::is_string_type_p): New member function,
1661 implementation from pascal_is_string_type_p.
1662 * rust-lang.c (rust_is_string_type_p): Delete function,
1663 implementation moved to rust_language::is_string_type_p.
1664 (rust_language_data): Delete la_is_string_type_p initializer.
1665 (rust_language::is_string_type_p): New member function,
1666 implementation from rust_is_string_type_p.
1667 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1668 is_string_type_p.
1669
4ffc13fb
AB
16702020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1671
1672 * ada-lang.c (ada_language_data): Delete la_print_typedef
1673 initializer.
1674 (ada_language::print_typedef): New member function.
1675 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1676 (cplus_language_data): Likewise.
1677 (asm_language_data): Likewise.
1678 (minimal_language_data): Likewise.
1679 * d-lang.c (d_language_data): Likewise.
1680 * f-lang.c (f_language_data): Likewise.
1681 (f_language::print_typedef): New member function.
1682 * go-lang.c (go_language_data): Delete la_print_typedef
1683 initializer.
1684 * language.c (language_defn::print_typedef): Define member
1685 function.
1686 (unknown_language_data): Delete la_print_typedef initializer.
1687 (unknown_language::print_typedef): New member function.
1688 (auto_language_data): Delete la_print_typedef initializer.
1689 (auto_language::print_typedef): New member function.
1690 * language.h (language_data): Delete la_print_typedef field.
1691 (language_defn::print_typedef): Declare new member function.
1692 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1693 (default_print_typedef): Delete declaration.
1694 * m2-lang.c (m2_language_data): Delete la_print_typedef
1695 initializer.
1696 (m2_language::print_typedef): New member function.
1697 * objc-lang.c (objc_language_data): Delete la_print_typedef
1698 initializer.
1699 * opencl-lang.c (opencl_language_data): Likewise.
1700 * p-lang.c (pascal_language_data): Likewise.
1701 (pascal_language::print_typedef): New member function.
1702 * rust-lang.c (rust_print_typedef): Delete function,
1703 implementation moved to rust_language::print_typedef.
1704 (rust_language): Delete la_print_typedef initializer.
1705 (rust_language::print_typedef): New member function,
1706 implementation from rust_print_typedef.
1707 * typeprint.c (default_print_typedef): Delete.
1708
d711ee67
AB
17092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1710
1711 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1712 (ada_language::printstr): New member function.
1713 * c-lang.c (c_language_data): Delete la_printstr initializer.
1714 (cplus_language_data): Likewise.
1715 (asm_language_data): Likewise.
1716 (minimal_language_data): Likewise.
1717 * d-lang.c (d_language_data): Likewise.
1718 * f-lang.c (f_printstr): Rename to f_language::printstr.
1719 (f_language_data): Delete la_printstr initializer.
1720 (f_language::printstr): New member function, implementation from
1721 f_printstr.
1722 * go-lang.c (go_language_data): Delete la_printstr initializer.
1723 * language.c (language_defn::printstr): Define new member
1724 function.
1725 (unk_lang_printstr): Delete.
1726 (unknown_language_data): Delete la_printstr initializer.
1727 (unknown_language::printstr): New member function.
1728 (auto_language_data): Delete la_printstr initializer.
1729 (auto_language::printstr): New member function.
1730 * language.h (language_data): Delete la_printstr field.
1731 (language_defn::printstr): Declare new member function.
1732 (LA_PRINT_STRING): Update call to printstr.
1733 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1734 (m2_language_data): Delete la_printstr initializer.
1735 (m2_language::printstr): New member function, implementation from
1736 m2_printstr.
1737 * objc-lang.c (objc_language_data): Delete la_printstr
1738 initializer.
1739 * opencl-lang.c (opencl_language_data): Likewise.
1740 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1741 (pascal_language_data): Delete la_printstr initializer.
1742 (pascal_language::printstr): New member function, implementation
1743 from pascal_printstr.
1744 * p-lang.h (pascal_printstr): Delete declaration.
1745 * rust-lang.c (rust_printstr): Update header comment.
1746 (rust_language_data): Delete la_printstr initializer.
1747 (rust_language::printstr): New member function.
1748
52b50f2c
AB
17492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1750
1751 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1752 (ada_language::printchar): New member function.
1753 * c-lang.c (c_language_data): Delete la_printchar initializer.
1754 (cplus_language_data): Likewise.
1755 (asm_language_data): Likewise.
1756 (minimal_language_data): Likewise.
1757 * d-lang.c (d_language_data): Likewise.
1758 * f-lang.c (f_printchar): Rename to f_language::printchar.
1759 (f_language_data): Delete la_printchar initializer.
1760 (f_language::printchar): New member function, implementation from
1761 f_printchar.
1762 * go-lang.c (go_language_data): Delete la_printchar initializer.
1763 * language.c (unk_lang_printchar): Delete.
1764 (language_defn::printchar): Define new member function.
1765 (unknown_language_data): Delete la_printchar initializer.
1766 (unknown_language::printchar): New member function.
1767 (auto_language_data): Delete la_printchar initializer.
1768 (auto_language::printchar): New member function.
1769 * language.h (language_data): Delete la_printchar field.
1770 (language_defn::printchar): Declare new member function.
1771 (LA_PRINT_CHAR): Update call to printchar.
1772 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1773 (m2_language::printchar): New member function.
1774 * objc-lang.c (objc_language_data): Delete la_printchar
1775 initializer.
1776 * opencl-lang.c (opencl_language_data): Likewise.
1777 * p-lang.c (pascal_language_data): Delete la_printchar
1778 initializer.
1779 (pascal_language::printchar): New member function.
1780 * rust-lang.c (rust_printchar): Rename to
1781 rust_language::printchar.
1782 (rust_language_data): Delete la_printchar initializer.
1783 (rust_language::printchar): New member function, implementation
1784 from rust_printchar.
1785
ec8cec5b
AB
17862020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1787
1788 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1789 (ada_language_data): Delete la_emitchar initializer.
1790 (ada_language::emitchar): New member function, implementation from
1791 emit_char.
1792 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1793 (cplus_language_data): Likewise.
1794 (asm_language_data): Likewise.
1795 (minimal_language_data): Likewise.
1796 * d-lang.c (d_language_data): Likewise.
1797 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1798 (f_language_data): Delete la_emitchar initializer.
1799 (f_language::emitchar): New member function, implementation from
1800 f_emit_char.
1801 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1802 * language.c (unk_lang_emit_char): Delete.
1803 (language_defn::emitchar): New member function definition.
1804 (unknown_language_data): Delete la_emitchar initializer.
1805 (unknown_language::emitchar): New member function.
1806 (auto_language_data): Delete la_emitchar initializer.
1807 (auto_language::emitchar): New member function.
1808 * language.h (language_data): Delete la_emitchar field.
1809 (language_defn::emitchar): New member field declaration.
1810 (LA_EMIT_CHAR): Update call to emitchar.
1811 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1812 (m2_language_data): Delete la_emitchar initializer.
1813 (m2_language::emitchar): New member function, implementation from
1814 m2_emit_char.
1815 * objc-lang.c (objc_language_data): Delete la_emitchar
1816 initializer.
1817 * opencl-lang.c (opencl_language_data): Likewise.
1818 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1819 (pascal_language_data): Delete la_emitchar initializer.
1820 (pascal_language::emitchar): New member function, implementation
1821 from pascal_emit_char.
1822 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1823 (rust_language_data): Delete la_emitchar initializer.
1824 (rust_language::emitchar): New member function, implementation
1825 from rust_emitchar.
1826
1bf9c363
AB
18272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1828
1829 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1830 (ada_language_data): Delete la_post_parser initializer.
1831 (ada_language::post_parser): New member function.
1832 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1833 (cplus_language_data): Likewise.
1834 (asm_language_data): Likewise.
1835 (minimal_language_data): Likewise.
1836 * d-lang.c (d_language_data): Likewise.
1837 * f-lang.c (f_language_data): Likewise.
1838 * go-lang.c (go_language_data): Likewise.
1839 * language.c (unknown_language_data): Likewise.
1840 (auto_language_data): Likewise.
1841 * language.h (language_data): Delete la_post_parser field.
1842 (language_defn::post_parser): New member function.
1843 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1844 * objc-lang.c (objc_language_data): Likewise.
1845 * opencl-lang.c (opencl_language_data): Likewise.
1846 * p-lang.c (pascal_language_data): Likewise.
1847 * parse.c (parse_exp_in_context): Update call to post_parser.
1848 (null_post_parser): Delete definition.
1849 * parser-defs.h (null_post_parser): Delete declaration.
1850 * rust-lang.c (rust_language_data): Delete la_post_parser
1851 initializer.
1852
87afa652
AB
18532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1854
1855 * ada-lang.c (parse): Rename to ada_language::parser.
1856 (ada_language_data): Delete la_parser initializer.
1857 (ada_language::parser): New member function, implementation from
1858 parse.
1859 * c-lang.c (c_language_data): Delete la_parser initializer.
1860 (cplus_language_data): Likewise.
1861 (asm_language_data): Likewise.
1862 (minimal_language_data): Likewise.
1863 * d-lang.c (d_language_data): Likewise.
1864 (d_language::parser): New member function.
1865 * f-lang.c (f_language_data): Delete la_parser initializer.
1866 (f_language::parser): New member function.
1867 * go-lang.c (go_language_data): Delete la_parser initializer.
1868 (go_language::parser): New member function.
1869 * language.c (unk_lang_parser): Delete.
1870 (language_defn::parser): Define new member function.
1871 (unknown_language_data): Delete la_parser initializer.
1872 (unknown_language::parser): New member function.
1873 (auto_language_data): Delete la_parser initializer.
1874 (auto_language::parser): New member function.
1875 * language.h (language_data): Delete la_parser field.
1876 (language_defn::parser): Declare new member function.
1877 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1878 (m2_language::parser): New member function.
1879 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1880 * opencl-lang.c (opencl_language_data): Likewise.
1881 * p-lang.c (pascal_language_data): Likewise.
1882 (pascal_language::parser): New member function.
1883 * parse.c (parse_exp_in_context): Update call to parser.
1884 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1885 (rust_language::parser): New member function.
1886
37825800
AB
18872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * top.c (print_gdb_configuration): Print --with-python-libdir
1890 configuration value.
1891
5b860c93
PW
18922020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1893
1894 * NEWS: Mention change to the alias command.
1895
cf00cd6f
PW
18962020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1897
1898 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1899 (alias_command_completer)
1900 (make_alias_options_def_group): New functions.
1901 (alias_opts, alias_option_defs): New struct and array.
1902 (alias_usage_error): Update usage.
1903 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1904 Use option framework.
1905 (_initialize_cli_cmds): Update alias command help.
1906 Update aliases command help.
1907 (show_user):
1908 Add NULL for new default_args lookup_cmd argument.
1909 (valid_command_p): Rename to validate_aliased_command.
1910 Add NULL for new default_args lookup_cmd argument. Verify that the
1911 aliased_command has no default args.
1912 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1913 (lookup_cmd_1, lookup_cmd): New argument default_args.
1914 (add_alias_cmd):
1915 Add NULL for new default_args lookup_cmd argument.
1916 (print_help_for_command): Show default args under the layout
1917 alias some_alias = some_aliased_cmd some_alias_default_arg.
1918 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1919 xfree default_args in destructor.
1920 * cli/cli-script.c (process_next_line, do_define_command):
1921 Add NULL for new default_args lookup_cmd argument.
1922 * command.h: Declare new default_args argument in lookup_cmd
1923 and lookup_cmd_1.
1924 * completer.c (complete_line_internal_1):
1925 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1926 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1927 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1928 Likewise.
1929 * infcmd.c (_initialize_infcmd): Likewise.
1930 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1931 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1932 * python/py-param.c (add_setshow_generic): Likewise.
1933 * remote.c (_initialize_remote): Likewise.
1934 * top.c (execute_command): Prepend default_args if command has some.
1935 (set_verbose):
1936 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1937 * tracepoint.c (validate_actionline, encode_actions_1):
1938 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1939
bd920864
TBA
19402020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1941
1942 * jit.c (jit_read_descriptor): Use bool as the return type.
1943 (jit_breakpoint_re_set_internal): Use bool as the return type.
1944 Invert the return value logic; return true if the jit breakpoint
1945 has been successfully initialized.
1946 (jit_inferior_init): Update the call to
1947 jit_breakpoint_re_set_internal.
1948
f8098322
PA
19492020-06-22 Pedro Alves <palves@redhat.com>
1950
1951 PR gdb/25939
1952 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1953 Use the current inferior instead. Don't return
1954 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1955 wait again.
1956 * sol-thread.c (sol_thread_target::wait): Don't reference
1957 inferior_ptid.
1958 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1959 (sol_update_thread_list_callback): Use the current inferior's pid
1960 instead of inferior_ptid.
1961
196535a6
RO
19622020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1963
1964 * procfs.c: Cleanup many comments.
1965
1966 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
1967 (AFTER_WATCHFLAG): Replace by value.
1968
1969 (MAIN_PROC_NAME_FORMAT): Inline ...
1970 (create_procinfo): ... here.
1971
1972 (procfs_debug_inferior): Remove SYS_exec handling.
1973 (syscall_is_exec): Likewise.
1974 (procfs_set_exec_trap): Likewise.
1975
1976 (syscall_is_lwp_exit): Inline in callers.
1977 (syscall_is_exit): Likewise.
1978 (syscall_is_exec): Likewise.
1979 (syscall_is_lwp_create): Likewise.
1980
1981 (invalidate_cache): Remove #if 0 code.
1982
1983 (make_signal_thread_runnable): Remove.
1984 (procfs_target::resume): Remove #if 0 code.
1985
cf6f3e86
RO
19862020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1987
1988 PR gdb/25939
1989 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
1990 call ...
1991 (procfs_target::create_inferior): ... here.
1992
48e9cc84
PW
19932020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1994
1995 * exec.c (validate_exec_file): Ensure the build-id is up to
1996 date by calling reopen_exec_file (that checks file timestamp
1997 to decide to re-read the file).
1998
3922b302
PA
19992020-06-18 Pedro Alves <palves@redhat.com>
2000
2001 PR gdb/25412
2002 * gdbthread.h (delete_thread, delete_thread_silent)
2003 (find_thread_ptid): Update comments.
2004 * thread.c (current_thread_): New global.
2005 (is_current_thread): Move higher, and reimplement.
2006 (inferior_thread): Reimplement.
2007 (set_thread_exited): Use bool. Add assertions.
2008 (add_thread_silent): Simplify thread-reuse handling by always
2009 calling delete_thread.
2010 (delete_thread): Remove intro comment.
2011 (find_thread_ptid): Skip exited threads.
2012 (switch_to_thread_no_regs): Write to current_thread_.
2013 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2014 INFERIOR_PTID. Clear current_thread_.
2015
6dbdab44
PA
20162020-06-18 Pedro Alves <palves@redhat.com>
2017
2018 * aix-thread.c (pd_update): Use switch_to_thread.
2019
2da4b788
PA
20202020-06-18 Pedro Alves <palves@redhat.com>
2021
2022 * ravenscar-thread.c (ravenscar_thread_target): Update.
2023 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2024 (ravenscar_thread_target::add_active_thread): ... this. Don't
2025 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2026 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2027
50838d1b
PA
20282020-06-18 Pedro Alves <palves@redhat.com>
2029
2030 * nat/windows-nat.c (current_windows_thread): Remove.
2031 * nat/windows-nat.h (current_windows_thread): Remove.
2032 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2033 Adjust.
2034 (display_selectors): Adjust to fetch the current
2035 windows_thread_info based on inferior_ptid.
2036 (fake_create_process): No longer write to current_windows_thread.
2037 (windows_nat_target::get_windows_debug_event):
2038 Don't set inferior_ptid or current_windows_thread.
2039 (windows_nat_target::wait): Adjust to not rely on
2040 current_windows_thread.
2041 (do_initial_windows_stuff): Now a method of windows_nat_target.
2042 Switch to the last_ptid thread.
2043 (windows_nat_target::attach): Adjust.
2044 (windows_nat_target::detach): Use switch_to_no_thread instead of
2045 writing to inferior_ptid directly.
2046 (windows_nat_target::create_inferior): Adjust.
2047
31ce04e9
PA
20482020-06-18 Pedro Alves <palves@redhat.com>
2049
2050 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2051
1ee1a363
PA
20522020-06-18 Pedro Alves <palves@redhat.com>
2053
2054 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2055 after creating it, instead of writing to inferior_ptid. Don't
2056 write to inferior_ptid.
2057
6d350754
PA
20582020-06-18 Pedro Alves <palves@redhat.com>
2059
2060 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2061
5d971d48
PA
20622020-06-18 Pedro Alves <palves@redhat.com>
2063
2064 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2065 it, instead of writing to inferior_ptid.
2066
86e57d1b
PA
20672020-06-18 Pedro Alves <palves@redhat.com>
2068
2069 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2070 to inferior_ptid.
2071
f2e1c129
PA
20722020-06-18 Pedro Alves <palves@redhat.com>
2073
2074 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2075 instead of writing to inferior_ptid directly.
2076
60db1b85
PA
20772020-06-18 Pedro Alves <palves@redhat.com>
2078
2079 * corelow.c (core_target::close): Use switch_to_no_thread instead
2080 of writing to inferior_ptid directly.
2081 (add_to_thread_list, core_target_open): Use switch_to_thread
2082 instead of writing to inferior_ptid directly.
2083
fe7d6a8d
PA
20842020-06-18 Pedro Alves <palves@redhat.com>
2085
2086 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2087 inferior_ptid.
2088 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2089 inferior_ptid.
2090 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2091 inferior_ptid directly.
2092 (darwin_nat_target::init_thread_list): Switch to thread, instead
2093 of writing to inferior_ptid.
2094 (darwin_nat_target::attach): Don't write to inferior_ptid.
2095 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2096
975f8708
PA
20972020-06-18 Pedro Alves <palves@redhat.com>
2098
2099 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2100 thread.
2101 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2102 Instead use switch_to_thread.
2103 (gnu_nat_target::detach): Use switch_to_no_thread
2104 instead of writing to inferior_ptid directly. Used passed-in
2105 inferior instead of looking up the inferior by pid.
2106
1a204730
PA
21072020-06-18 Pedro Alves <palves@redhat.com>
2108
2109 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2110 inferior_ptid.
2111
ebe84f23
PA
21122020-06-18 Pedro Alves <palves@redhat.com>
2113
2114 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2115 inferior_ptid.
2116 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2117 thread.
2118 (nto_procfs_target::detach): Avoid referencing
2119 inferior_ptid. Use switch_to_no_thread instead of writing to
2120 inferior_ptid directly.
2121 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2122 instead of writing to inferior_ptid directly.
2123 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2124 to thread.
2125
191f02e5
PA
21262020-06-18 Pedro Alves <palves@redhat.com>
2127
2128 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2129 after creating it, instead of writing to inferior_ptid.
2130 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2131 to inferior_ptid directly.
2132 (gdbsim_target::wait): Don't write to inferior_ptid.
2133
0ac55310
PA
21342020-06-18 Pedro Alves <palves@redhat.com>
2135
2136 * remote.c (remote_target::remote_notice_new_inferior): Use
2137 switch_to_thread instead of writing to inferior_ptid directly.
2138 (remote_target::add_current_inferior_and_thread): Use
2139 switch_to_no_thread instead of writing to inferior_ptid directly.
2140 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2141 and switch_to_thread instead of using set_current_inferior or
2142 writing to inferior_ptid directly.
2143
5233f39b
PA
21442020-06-18 Pedro Alves <palves@redhat.com>
2145
2146 * tracectf.c (ctf_target_open): Switch to added thread instead of
2147 writing to inferior_ptid directly.
2148 (ctf_target::close): Use switch_to_no_thread instead of writing to
2149 inferior_ptid directly.
2150
087e161b
PA
21512020-06-18 Pedro Alves <palves@redhat.com>
2152
2153 * tracefile-tfile.c (tfile_target_open): Don't write to
2154 inferior_ptid directly, instead switch to added thread.
2155 (tfile_target::close): Use switch_to_no_thread instead of writing
2156 to inferior_ptid directly.
2157
7fb43e53
PA
21582020-06-18 Pedro Alves <palves@redhat.com>
2159
2160 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2161 (procfs_target::detach): Use switch_to_no_thread
2162 instead of writing to inferior_ptid directly.
2163 (do_attach): Change return type to void. Switch to the added
2164 thread.
2165 (procfs_target::create_inferior): Switch to the added thread.
2166 (procfs_do_thread_registers): Don't write to inferior_ptid.
2167
18493a00
PA
21682020-06-18 Pedro Alves <palves@redhat.com>
2169
2170 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2171 of writing to inferior_ptid.
2172 (scoped_restore_exited_inferior): Delete.
2173 (handle_vfork_child_exec_or_exit): Simplify using
2174 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2175 instead of writing to inferior_ptid.
2176 (THREAD_STOPPED_BY): Delete.
2177 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2178 (thread_stopped_by_hw_breakpoint): Delete.
2179 (save_waitstatus): Use
2180 scoped_restore_current_thread+switch_to_thread, and call
2181 target_stopped_by_watchpoint instead of
2182 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2183 instead of thread_stopped_by_sw_breakpoint, and
2184 target_stopped_by_hw_breakpoint instead of
2185 thread_stopped_by_hw_breakpoint.
2186 (handle_inferior_event)
2187 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2188 inferior_ptid directly, nor
2189 set_current_inferior/set_current_program_space. Use
2190 switch_to_thread / switch_to_inferior_no_thread instead.
2191
a0776b13
PA
21922020-06-18 Pedro Alves <palves@redhat.com>
2193
2194 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2195 instead of writing to inferior_ptid.
2196
6155c136
PA
21972020-06-18 Pedro Alves <palves@redhat.com>
2198
2199 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2200 added thread.
2201 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2202 to the added thread.
2203 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2204 instead of writing to inferior_ptid.
2205
c5316fc6
PA
22062020-06-18 Pedro Alves <palves@redhat.com>
2207
2208 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2209 (register_to_value_test): Mock a program_space too. Heap-allocate
2210 the address space. Don't write to inferior_ptid. Use
2211 switch_to_thread instead.
2212
8df01799
PA
22132020-06-18 Pedro Alves <palves@redhat.com>
2214
2215 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2216 Delete.
2217 (find_signalled_thread()): New, factored out from
2218 linux_make_corefile_notes and adjusted to handle exited threads.
2219 (linux_make_corefile_notes): Adjust to use the new
2220 find_signalled_thread.
2221
41792d68
PA
22222020-06-18 Pedro Alves <palves@redhat.com>
2223
2224 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2225 of saving/restoring inferior_ptid.
2226
612f258a
TT
22272020-06-17 Tom Tromey <tom@tromey.com>
2228
2229 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2230 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2231 declare.
2232 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2233
efb763a5
SM
22342020-06-15 Simon Marchi <simon.marchi@efficios.com>
2235
2236 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2237 of partial symtabs.
2238
2951f6c0
SM
22392020-06-17 Simon Marchi <simon.marchi@efficios.com>
2240
2241 * regformats/reg-arm.dat: Remove.
2242 * regformats/reg-bfin.dat: Remove.
2243 * regformats/reg-cris.dat: Remove.
2244 * regformats/reg-crisv32.dat: Remove.
2245 * regformats/reg-m32r.dat: Remove.
2246 * regformats/reg-tilegx.dat: Remove.
2247 * regformats/reg-tilegx32.dat: Remove.
2248
7d458ea5
SM
22492020-06-17 Simon Marchi <simon.marchi@efficios.com>
2250
2251 * features/Makefile (WHICH): Remove arm files.
2252 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2253 * regformats/arm/arm-with-neon.dat: Remove.
2254 * regformats/arm/arm-with-vfpv2.dat: Remove.
2255 * regformats/arm/arm-with-vfpv3.dat: Remove.
2256
3af96c0d
SM
22572020-06-17 Simon Marchi <simon.marchi@efficios.com>
2258
2259 * features/Makefile (XMLTOC): Remove rx.xml.
2260
b25e22fd
PA
22612020-06-17 Pedro Alves <palves@redhat.com>
2262
2263 * gdbthread.h (thread_control_state) <trap_expected> Update
2264 comments.
2265
a78a19b1
AB
22662020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2267
2268 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2269 ada_language::lookup_symbol_nonlocal.
2270 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2271 (ada_language::lookup_symbol_nonlocal): New member function,
2272 implementation from ada_lookup_symbol_nonlocal.
2273 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2274 initializer.
2275 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2276 initializer.
2277 (cplus_language::lookup_symbol_nonlocal): New member function.
2278 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2279 (minimal_language_data) Likewise.
2280 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2281 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2282 initializer.
2283 (d_language::lookup_symbol_nonlocal): New member function.
2284 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2285 initializer.
2286 (f_language::lookup_symbol_nonlocal): New member function.
2287 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2288 initializer.
2289 * language.c (unknown_language_data): Likewise.
2290 (auto_language_data): Likewise.
2291 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2292 field.
2293 (language_defn::lookup_symbol_nonlocal): New member function.
2294 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2295 initializer.
2296 * objc-lang.c (objc_language_data): Likewise.
2297 * opencl-lang.c (opencl_language_data): Likewise.
2298 * p-lang.c (pascal_language_data): Likewise.
2299 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2300 rust_language::lookup_symbol_nonlocal.
2301 (rust_language_data): Delete la_lookup_symbol_nonlocal
2302 initializer.
2303 (rust_language::lookup_symbol_nonlocal): New member function,
2304 implementation from rust_lookup_symbol_nonlocal.
2305 * symtab.c (lookup_symbol_aux): Update call to
2306 lookup_symbol_nonlocal.
2307 (basic_lookup_symbol_nonlocal): Rename to...
2308 (language_defn::lookup_symbol_nonlocal): ...this, and update
2309 header comment. Remove language_defn parameter, and replace with
2310 uses of `this'.
2311 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2312
ebe2334e
AB
23132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2314
2315 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2316 initializer.
2317 (ada_language::value_print_inner): New member function.
2318 * c-lang.c (c_language_data): Delete la_value_print_inner
2319 initializer.
2320 (cplus_language_data): Likewise.
2321 (asm_language_data): Likewise.
2322 (minimal_language_data): Likewise.
2323 * d-lang.c (d_language_data): Likewise.
2324 (d_language::value_print_inner): New member function.
2325 * f-lang.c (f_language_data): Delete la_value_print_inner
2326 initializer.
2327 (f_language::value_print_inner): New member function.
2328 * f-lang.h (f_value_print_innner): Rename to...
2329 (f_value_print_inner): ...this (note spelling of 'inner').
2330 * f-valprint.c (f_value_print_innner): Rename to...
2331 (f_value_print_inner): ...this (note spelling of 'inner').
2332 * go-lang.c (go_language_data): Delete la_value_print_inner
2333 initializer.
2334 (go_language::value_print_inner): New member function.
2335 * language.c (language_defn::value_print_inner): Define new member
2336 function.
2337 (unk_lang_value_print_inner): Delete.
2338 (unknown_language_data): Delete la_value_print_inner initializer.
2339 (unknown_language::value_print_inner): New member function.
2340 (auto_language_data): Delete la_value_print_inner initializer.
2341 (auto_language::value_print_inner): New member function.
2342 * language.h (language_data): Delete la_value_print_inner field.
2343 (language_defn::value_print_inner): Delcare new member function.
2344 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2345 initializer.
2346 (m2_language::value_print_inner): New member function.
2347 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2348 initializer.
2349 * opencl-lang.c (opencl_language_data): Likewise.
2350 * p-lang.c (pascal_language_data): Likewise.
2351 (pascal_language::value_print_inner): New member function.
2352 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2353 initializer.
2354 (rust_language::value_print_inner): New member function.
2355 * valprint.c (do_val_print): Update call to value_print_inner.
2356
a1d1fa3e
AB
23572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2358
2359 * ada-lang.c (ada_language_data): Delete la_value_print
2360 initializer.
2361 (ada_language::value_print): New member function.
2362 * c-lang.c (c_language_data): Delete la_value_print initializer.
2363 (cplus_language_data): Likewise.
2364 (asm_language_data): Likewise.
2365 (minimal_language_data): Likewise.
2366 * d-lang.c (d_language_data): Likewise.
2367 * f-lang.c (f_language_data): Likewise.
2368 * go-lang.c (go_language_data): Likewise.
2369 * language.c (unk_lang_value_print): Delete.
2370 (language_defn::value_print): Define new member function.
2371 (unknown_language_data): Delete la_value_print initializer.
2372 (unknown_language::value_print): New member function.
2373 (auto_language_data): Delete la_value_print initializer.
2374 (auto_language::value_print): New member function.
2375 * language.h (language_data): Delete la_value_print field.
2376 (language_defn::value_print): Declare new member function.
2377 (LA_VALUE_PRINT): Update call to value_print.
2378 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2379 * objc-lang.c (objc_language_data): Likewise.
2380 * opencl-lang.c (opencl_language_data): Likewise.
2381 * p-lang.c (pascal_language_data): Likewise.
2382 (pascal_language::value_print): New member function.
2383 * rust-lang.c (rust_language_data): Delete la_value_print
2384 initializer.
2385
f16a9f57
AB
23862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * ada-lang.c (ada_watch_location_expression): Rename to
2389 ada_language::watch_location_expression.
2390 (ada_language_data): Delete la_watch_location_expression
2391 initializer.
2392 (ada_language::watch_location_expression): New member function,
2393 implementation from ada_watch_location_expression.
2394 * breakpoint.c (watch_command_1): Update call to
2395 watch_location_expression.
2396 * c-lang.c (c_watch_location_expression): Rename to
2397 language_defn::watch_location_expression.
2398 (c_language_data): Delete la_watch_location_expression
2399 initializer.
2400 (cplus_language_data): Likewise.
2401 (asm_language_data): Likewise.
2402 (minimal_language_data): Likewise.
2403 * c-lang.h (c_watch_location_expression): Delete declaration.
2404 * d-lang.c (d_language_data): Delete la_watch_location_expression
2405 initializer.
2406 * f-lang.c (f_language_data): Likewise.
2407 * go-lang.c (go_language_data): Likewise.
2408 * language.c (language_defn::watch_location_expression): Member
2409 function implementation from c_watch_location_expression.
2410 (unknown_language_data): Delete la_watch_location_expression
2411 initializer.
2412 (auto_language_data): Likewise.
2413 * language.h (language_data): Delete la_watch_location_expression
2414 field.
2415 (language_defn::watch_location_expression): Declare new member
2416 function.
2417 * m2-lang.c (m2_language_data): Delete
2418 la_watch_location_expression initializer.
2419 * objc-lang.c (objc_language_data): Likewise.
2420 * opencl-lang.c (opencl_language_data): Likewise.
2421 * p-lang.c (pascal_language_data): Likewise.
2422 * rust-lang.c (rust_watch_location_expression): Rename to
2423 rust_language::watch_location_expression.
2424 (rust_language_data): Delete la_watch_location_expression
2425 initializer.
2426 (rust_language::watch_location_expression): New member function,
2427 implementation from rust_watch_location_expression.
2428
7e56227d
AB
24292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2430
2431 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2432 ada_language::collect_symbol_completion_matches.
2433 (ada_language_data): Delete la_collect_symbol_completion_matches
2434 initializer.
2435 (ada_language::collect_symbol_completion_matches): New member
2436 function, implementation from
2437 ada_collect_symbol_completion_matches.
2438 * c-lang.c (c_language_data): Delete
2439 la_collect_symbol_completion_matches initializer.
2440 (cplus_language_data): Likewise.
2441 (asm_language_data): Likewise.
2442 (minimal_language_data): Likewise.
2443 * d-lang.c (d_language_data): Likewise.
2444 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2445 f_language::collect_symbol_completion_matches.
2446 (f_language_data): Delete la_collect_symbol_completion_matches
2447 initializer.
2448 (f_language::collect_symbol_completion_matches) New member
2449 function, implementation from f_collect_symbol_completion_matches.
2450 * go-lang.c (go_language_data): Delete
2451 la_collect_symbol_completion_matches initializer.
2452 * language.c (unknown_language_data): Likewise.
2453 (auto_language_data): Likewise.
2454 * language.h (language_data): Delete
2455 la_collect_symbol_completion_matches field.
2456 (language_defn::collect_symbol_completion_matches): New member
2457 function.
2458 * m2-lang.c (m2_language_data): Delete
2459 la_collect_symbol_completion_matches initializer.
2460 * objc-lang.c (objc_language_data): Likewise.
2461 * opencl-lang.c (opencl_language_data): Likewise.
2462 * p-lang.c (pascal_language_data): Likewise.
2463 * rust-lang.c (rust_language_data): Likewise.
2464 * symtab.c (default_collect_symbol_completion_matches): Delete.
2465 (collect_symbol_completion_matches): Update call to
2466 collect_symbol_completion_matches.
2467 (collect_symbol_completion_matches_type): Likewise.
2468 * symtab.h (default_collect_symbol_completion_matches): Delete
2469 declaration.
2470
53fc67f8
AB
24712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2474 (ada_language_data): Delete la_word_break_characters initializer.
2475 (ada_language::word_break_characters): New member function.
2476 * c-lang.c (c_language_data): Delete la_word_break_characters
2477 initializer.
2478 (cplus_language_data): Likewise.
2479 (asm_language_data): Likewise.
2480 (minimal_language_data): Likewise.
2481 * completer.c: Update global comment.
2482 (advance_to_expression_complete_word_point): Update call to
2483 word_break_characters.
2484 (complete_files_symbols): Likewise.
2485 (complete_line_internal_1): Likewise.
2486 (default_completer_handle_brkchars): Likewise.
2487 (skip_quoted_chars): Likewise.
2488 * d-lang.c (d_language_data): Delete la_word_break_characters
2489 initializer.
2490 * f-lang.c (f_word_break_characters): Delete.
2491 (f_language_data): Delete la_word_break_characters initializer.
2492 (f_language::word_break_characters): New member function.
2493 * go-lang.c (go_language_data): Delete la_word_break_characters
2494 initializer.
2495 * language.c (unknown_language_data): Likewise.
2496 (auto_language_data): Likewise.
2497 * language.h (default_word_break_characters): Move declaration to
2498 earlier in the file.
2499 (language_data): Delete la_word_break_characters field.
2500 (language_defn::word_break_characters): New member function.
2501 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2502 initializer.
2503 * objc-lang.c (objc_language_data): Likewise.
2504 * opencl-lang.c (opencl_language_data): Likewise.
2505 * p-lang.c (pascal_language_data): Likewise.
2506 * rust-lang.c (rust_language_data): Likewise.
2507
c9debfb9
AB
25082020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2509
2510 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2511 (ada_language_data): Delete la_get_symbol_name_matcher
2512 initializer.
2513 (language_defn::get_symbol_name_matcher_inner): New member
2514 function.
2515 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2516 initializer.
2517 (cplus_language_data): Likewise.
2518 (cplus_language::get_symbol_name_matcher_inner): New member
2519 function.
2520 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2521 (minimal_language_data): Likewise.
2522 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2523 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2524 initializer.
2525 * dictionary.c (iter_match_first_hashed): Update call to
2526 get_symbol_name_matcher.
2527 (iter_match_next_hashed): Likewise.
2528 (iter_match_next_linear): Likewise.
2529 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2530 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2531 initializer.
2532 (f_language::get_symbol_name_matcher_inner): New member function.
2533 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2534 initializer.
2535 * language.c (default_symbol_name_matcher): Update header comment,
2536 make static.
2537 (language_defn::get_symbol_name_matcher): New definition.
2538 (language_defn::get_symbol_name_matcher_inner): Likewise.
2539 (get_symbol_name_matcher): Delete.
2540 (unknown_language_data): Delete la_get_symbol_name_matcher
2541 initializer.
2542 (auto_language_data): Likewise.
2543 * language.h (language_data): Delete la_get_symbol_name_matcher
2544 field.
2545 (language_defn::get_symbol_name_matcher): New member function.
2546 (language_defn::get_symbol_name_matcher_inner): Likewise.
2547 (default_symbol_name_matcher): Delete declaration.
2548 * linespec.c (find_methods): Update call to
2549 get_symbol_name_matcher.
2550 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2551 initializer.
2552 * minsyms.c (lookup_minimal_symbol): Update call to
2553 get_symbol_name_matcher.
2554 (iterate_over_minimal_symbols): Likewise.
2555 * objc-lang.c (objc_language_data): Delete
2556 la_get_symbol_name_matcher initializer.
2557 * opencl-lang.c (opencl_language_data): Likewise.
2558 * p-lang.c (pascal_language_data): Likewise.
2559 * psymtab.c (psymbol_name_matches): Update call to
2560 get_symbol_name_matcher.
2561 * rust-lang.c (rust_language_data): Delete
2562 la_get_symbol_name_matcher initializer.
2563 * symtab.c (symbol_matches_search_name): Update call to
2564 get_symbol_name_matcher.
2565 (compare_symbol_name): Likewise.
2566
9a49ad8c
AB
25672020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * ada-lang.c (ada_language_data): Delete la_compute_program
2570 initializer.
2571 * c-lang.c (c_language_data): Likewise.
2572 (c_language::compute_program): New member function.
2573 (cplus_language_data): Delete la_compute_program initializer.
2574 (cplus_language::compute_program): New member function.
2575 (asm_language_data): Delete la_compute_program initializer.
2576 (minimal_language_data): Likewise.
2577 * c-lang.h (c_compute_program): Update comment.
2578 (cplus_compute_program): Likewise.
2579 * compile/compile-c-support.c (c_compute_program): Likewise.
2580 (cplus_compute_program): Likewise.
2581 * compile/compile.c (compile_to_object): Update call to
2582 la_compute_program.
2583 * d-lang.c (d_language_data): Delete la_compute_program
2584 initializer.
2585 * f-lang.c (f_language_data): Likewise.
2586 * go-lang.c (go_language_data): Likewise.
2587 * language.c (unknown_language_data): Likewise.
2588 (auto_language_data): Likewise.
2589 * language.h (language_data): Delete la_compute_program field.
2590 (language_defn::compute_program): New member function.
2591 * m2-lang.c (m2_language_data): Delete la_compute_program
2592 initializer.
2593 * objc-lang.c (objc_language_data): Likewise.
2594 * opencl-lang.c (opencl_language_data): Likewise.
2595 * p-lang.c (pascal_language_data): Likewise.
2596 * rust-lang.c (rust_language_data): Likewise.
2597
eff93b4d
AB
25982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * ada-lang.c (ada_language_data) Delete
2601 la_class_name_from_physname initializer.
2602 * c-lang.c (c_language_data): Likewise.
2603 (cplus_language_data): Likewise.
2604 (cplus_language::class_name_from_physname): New member function.
2605 (asm_language_data): Delete la_class_name_from_physname
2606 initializer.
2607 (minimal_language_data): Likewise.
2608 * d-lang.c (d_language_data): Likewise.
2609 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2610 method on language_defn class.
2611 (guess_full_die_structure_name): Likewise.
2612 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2613 initializer.
2614 * go-lang.c (go_language_data): Likewise.
2615 * language.c (language_class_name_from_physname): Delete.
2616 (unk_lang_class_name): Delete.
2617 (unknown_language_data): Delete la_class_name_from_physname
2618 initializer.
2619 (auto_language_data): Likewise.
2620 * language.h (language_data): Delete la_class_name_from_physname
2621 field.
2622 (language_defn::class_name_from_physname): New function.
2623 (language_class_name_from_physname): Delete declaration.
2624 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2625 initializer.
2626 * objc-lang.c (objc_language_data): Likewise.
2627 * opencl-lang.c (opencl_language_data): Likewise.
2628 * p-lang.c (pascal_language_data): Likewise.
2629 * rust-lang.c (rust_language_data): Likewise.
2630
de543742
TT
26312020-06-16 Tom Tromey <tom@tromey.com>
2632
2633 * tui/tui-data.h (STATUS_NAME): New macro.
2634 * tui/tui-layout.c (tui_remove_some_windows)
2635 (initialize_known_windows, tui_register_window)
2636 (tui_layout_split::remove_windows, initialize_layouts)
2637 (tui_new_layout_command): Don't use hard-coded window names.
2638
a350efd4
TT
26392020-06-16 Tom Tromey <tom@tromey.com>
2640
2641 PR tui/25348:
2642 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2643 tui_initialize_readline. Only run once. Call rl_initialize.
2644 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2645 tui_initialize_readline.
2646 * tui/tui-io.c (tui_setup_io): Call
2647 tui_ensure_readline_initialized.
2648 * tui/tui-interp.c (tui_interp::init): Update.
2649
39ec0490
TT
26502020-06-16 Tom Tromey <tom@tromey.com>
2651
2652 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2653 Also preserve the status window.
2654
d2d1ea20
TT
26552020-06-16 Tom Tromey <tom@tromey.com>
2656
2657 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2658 where m_window==nullptr.
2659
66920317
TT
26602020-06-15 Tom Tromey <tromey@adacore.com>
2661
2662 * windows-nat.c (windows_nat::handle_output_debug_string):
2663 Update.
2664 (windows_nat::handle_ms_vc_exception): Update.
2665 * target.h (target_read_string): Change API.
2666 * target.c (target_read_string): Change API.
2667 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2668 Update.
2669 * solib-frv.c (frv_current_sos): Update.
2670 * solib-dsbt.c (dsbt_current_sos): Update.
2671 * solib-darwin.c (darwin_current_sos): Update.
2672 * linux-thread-db.c (inferior_has_bug): Update.
2673 * expprint.c (print_subexp_standard): Update.
2674 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2675 (ada_exception_message_1): Update.
2676
a5d871dd
TT
26772020-06-15 Tom Tromey <tromey@adacore.com>
2678
2679 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2680
670e35fa
TT
26812020-06-15 Tom Tromey <tromey@adacore.com>
2682
2683 * valprint.c (read_string): Update comment.
2684 * target.c (MIN): Remove.
2685 (target_read_string): Rewrite.
2686
f5272a3b
TT
26872020-06-15 Tom Tromey <tromey@adacore.com>
2688
2689 * corefile.c (read_memory_string): Remove.
2690 * ada-valprint.c (ada_value_print_ptr): Update.
2691 * ada-lang.h (ada_tag_name): Change return type.
2692 * ada-lang.c (type_from_tag): Update.
2693 (ada_tag_name_from_tsd): Change return type. Use
2694 target_read_string.
2695 (ada_tag_name): Likewise.
2696 * gdbcore.h (read_memory_string): Don't declare.
2697
2c074f49
HD
26982020-06-14 Hannes Domani <ssbssa@yahoo.de>
2699
2700 * symtab.c (rbreak_command): Ignore Windows drive colon.
2701
6a17d503
SM
27022020-06-12 Simon Marchi <simon.marchi@efficios.com>
2703
2704 * NEWS: Mention removed GDBserver host support.
2705
453c733f
NC
27062020-06-12 Nelson Chu <nelson.chu@sifive.com>
2707
2708 * features/riscv/rebuild-csr-xml.sh: Updated.
2709
2b4e6a3f
TT
27102020-06-11 Tom Tromey <tom@tromey.com>
2711
2712 PR gdb/18318:
2713 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2714
4412332f
JG
27152020-06-09 Jonny Grant <jg@jguk.org>
27162020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * main.c (captured_main_1): Don't print new line after help.
2719 (print_gdb_help): add mailing list and IRC channel information
2720 to --help. Add new lines between items in the footer. Remove
2721 quotes around bug url.
2722
2f33032a
KS
27232020-06-11 Keith Seitz <keiths@redhat.com>
2724
2725 PR gdb/21356
2726 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2727 Resolve typedefs for type length calculations.
2728
7ab96794
TV
27292020-06-10 Tom de Vries <tdevries@suse.de>
2730
2731 PR ada/24713
2732 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2733 (write_psymbols): Enable .gdb_index for ada.
2734 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2735 ada.
2736
e5f3ece2
TV
27372020-06-10 Tom de Vries <tdevries@suse.de>
2738
2739 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2740 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2741 namei" instead of "const char *name" argument.
2742 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2743 dw2_symtab_iter_init.
2744
940da03e
SM
27452020-06-08 Simon Marchi <simon.marchi@efficios.com>
2746
2747 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2748 to use type::field and field::type instead.
2749
b6cdac4b
SM
27502020-06-08 Simon Marchi <simon.marchi@efficios.com>
2751
2752 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2753 to use field::type instead.
2754
5d14b6e5
SM
27552020-06-08 Simon Marchi <simon.marchi@efficios.com>
2756
2757 * gdbtypes.h (struct field) <type, set_type>: New methods.
2758 Rename `type` field to...
2759 <m_type>: ... this. Change references throughout to use type or
2760 set_type methods.
2761 (FIELD_TYPE): Use field::type. Change call sites that modify
2762 the field's type to use field::set_type instead.
2763
3d967001
SM
27642020-06-08 Simon Marchi <simon.marchi@efficios.com>
2765
2766 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2767 to use type::index_type instead.
2768
262abc0d
SM
27692020-06-08 Simon Marchi <simon.marchi@efficios.com>
2770
2771 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2772 methods.
2773 (TYPE_INDEX_TYPE): Use type::index_type.
2774 * gdbtypes.c (create_array_type_with_stride): Likewise.
2775
82836c92
TT
27762020-06-07 Tom Tromey <tom@tromey.com>
2777
2778 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2779 parameter.
2780 (generic_value_print): Update.
2781
940dace9
AB
27822020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2783
2784 Revert commit 982a38f60b0.
2785 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2786
982a38f6
AB
27872020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2788
2789 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2790 avoid use after free.
2791
82f06518
TV
27922020-06-05 Tom de Vries <tdevries@suse.de>
2793
2794 * NEWS: Fix typos.
2795
f8c41851
SM
27962020-06-04 Simon Marchi <simon.marchi@efficios.com>
2797
2798 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2799 the per_bfd object.
2800 (dwarf2_read_debug_names): Likewise.
2801 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2802 object when re-using a per_bfd object with an index.
2803
f9b5d5ea
TV
28042020-06-03 Tom de Vries <tdevries@suse.de>
2805
2806 PR symtab/26046
2807 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2808 children for C++.
2809 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2810 DW_TAG_subprogram.
2811
f6eee2d0
AB
28122020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2813
2814 * ada-lang.c (ada_language_data): Delete skip_trampoline
2815 initializer.
2816 * c-lang.c (c_language_data): Likewise.
2817 (cplus_language_data): Likewise.
2818 (cplus_language::skip_trampoline): New member function.
2819 (asm_language_data): Delete skip_trampoline initializer.
2820 (minimal_language_data): Likewise.
2821 * d-lang.c (d_language_data): Likewise.
2822 * f-lang.c (f_language_data): Likewise.
2823 * go-lang.c (go_language_data): Likewise.
2824 * language.c (unk_lang_trampoline): Delete function.
2825 (skip_language_trampoline): Update.
2826 (unknown_language_data): Delete skip_trampoline initializer.
2827 (auto_language_data): Likewise.
2828 * language.h (language_data): Delete skip_trampoline field.
2829 (language_defn::skip_trampoline): New function.
2830 * m2-lang.c (m2_language_data): Delete skip_trampoline
2831 initializer.
2832 * objc-lang.c (objc_skip_trampoline): Delete function, move
2833 implementation to objc_language::skip_trampoline.
2834 (objc_language_data): Delete skip_trampoline initializer.
2835 (objc_language::skip_trampoline): New member function with
2836 implementation from objc_skip_trampoline.
2837 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2838 initializer.
2839 * p-lang.c (pascal_language_data): Likewise.
2840 * rust-lang.c (rust_language_data): Likewise.
2841
0a50df5d
AB
28422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2843
2844 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2845 (ada_language::demangle): New member function.
2846 * c-lang.c (c_language_data): Delete la_demangle initializer.
2847 (cplus_language_data): Delete la_demangle initializer.
2848 (cplus_language::demangle): New member function.
2849 (asm_language_data): Delete la_demangle initializer.
2850 (minimal_language_data): Delete la_demangle initializer.
2851 * d-lang.c (d_language_data): Delete la_demangle initializer.
2852 (d_language::demangle): New member function.
2853 * f-lang.c (f_language_data): Delete la_demangle initializer.
2854 (f_language::demangle): New member function.
2855 * go-lang.c (go_language_data): Delete la_demangle initializer.
2856 (go_language::demangle): New member function.
2857 * language.c (language_demangle): Update.
2858 (unk_lang_demangle): Delete.
2859 (unknown_language_data): Delete la_demangle initializer.
2860 (unknown_language::demangle): New member function.
2861 (auto_language_data): Delete la_demangle initializer.
2862 (auto_language::demangle): New member function.
2863 * language.h (language_data): Delete la_demangle field.
2864 (language_defn::demangle): New function.
2865 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2866 * objc-lang.c (objc_language_data): Delete la_demangle
2867 initializer.
2868 (objc_language::demangle): New member function.
2869 * opencl-lang.c (opencl_language_data): Delete la_demangle
2870 initializer.
2871 * p-lang.c (pascal_language_data): Likewise.
2872 * rust-lang.c (rust_language_data): Likewise.
2873 (rust_language::demangle): New member function.
2874
fbfb0a46
AB
28752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2876
2877 * ada-lang.c (ada_language_data): Delete la_print_type
2878 initializer.
2879 (ada_language::print_type): New member function.
2880 * c-lang.c (c_language_data): Delete la_print_type initializer.
2881 (c_language::print_type): New member function.
2882 (cplus_language_data): Delete la_print_type initializer.
2883 (cplus_language::print_type): New member function.
2884 (asm_language_data): Delete la_print_type initializer.
2885 (asm_language::print_type): New member function.
2886 (minimal_language_data): Delete la_print_type initializer.
2887 (minimal_language::print_type): New member function.
2888 * d-lang.c (d_language_data): Delete la_print_type initializer.
2889 (d_language::print_type): New member function.
2890 * f-lang.c (f_language_data): Delete la_print_type initializer.
2891 (f_language::print_type): New member function.
2892 * go-lang.c (go_language_data): Delete la_print_type initializer.
2893 (go_language::print_type): New member function.
2894 * language.c (unk_lang_print_type): Delete.
2895 (unknown_language_data): Delete la_print_type initializer.
2896 (unknown_language::print_type): New member function.
2897 (auto_language_data): Delete la_print_type initializer.
2898 (auto_language::print_type): New member function.
2899 * language.h (language_data): Delete la_print_type field.
2900 (language_defn::print_type): New function.
2901 (LA_PRINT_TYPE): Update.
2902 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2903 (m2_language::print_type): New member function.
2904 * objc-lang.c (objc_language_data): Delete la_print_type
2905 initializer.
2906 (objc_language::print_type): New member function.
2907 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2908 to opencl_language::print_type.
2909 (opencl_language_data): Delete la_print_type initializer.
2910 (opencl_language::print_type): New member function, implementation
2911 from opencl_print_type.
2912 * p-lang.c (pascal_language_data): Delete la_print_type
2913 initializer.
2914 (pascal_language::print_type): New member function.
2915 * rust-lang.c (rust_print_type): Delete, implementation moved to
2916 rust_language::print_type.
2917 (rust_language_data): Delete la_print_type initializer.
2918 (rust_language::print_type): New member function, implementation
2919 from rust_print_type.
2920
6f827019
AB
29212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2922
2923 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2924 implementation moves to...
2925 (ada_language::sniff_from_mangled_name): ...here. Update return
2926 type.
2927 (ada_language_data): Delete la_sniff_from_mangled_name
2928 initializer.
2929 * c-lang.c (c_language_data): Likewise.
2930 (cplus_language_data): Likewise.
2931 (cplus_language::sniff_from_mangled_name): New member function,
2932 implementation taken from gdb_sniff_from_mangled_name.
2933 (asm_language_data): Delete la_sniff_from_mangled_name
2934 initializer.
2935 (minimal_language_data): Likewise.
2936 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2937 implementation moves to cplus_language::sniff_from_mangled_name.
2938 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2939 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2940 moves to...
2941 (d_language::sniff_from_mangled_name): ...here.
2942 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2943 * f-lang.c (f_language_data): Likewise.
2944 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2945 moves to...
2946 (go_language::sniff_from_mangled_name): ...here.
2947 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2948 * language.c (language_sniff_from_mangled_name): Delete.
2949 (unknown_language_data): Delete la_sniff_from_mangled_name
2950 initializer.
2951 (auto_language_data): Likewise.
2952 * language.h (language_data): Delete la_sniff_from_mangled_name
2953 field.
2954 (language_defn::sniff_from_mangled_name): New function.
2955 (language_sniff_from_mangled_name): Delete declaration.
2956 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2957 field.
2958 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2959 implementation moves to...
2960 (objc_language::sniff_from_mangled_name): ...here.
2961 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2962 * opencl-lang.c (opencl_language_data): Likewise.
2963 * p-lang.c (pascal_language_data): Likewise.
2964 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
2965 implementation moves to...
2966 (rust_language::sniff_from_mangled_name): ...here.
2967 (rust_language_data): Delete la_sniff_from_mangled_name
2968 initializer.
2969 * symtab.c (symbol_find_demangled_name): Call
2970 sniff_from_mangled_name member function.
2971
fb8006fd
AB
29722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2973
2974 * ada-lang.c (ada_language_data): Delete la_search_name_hash
2975 initializer.
2976 * c-lang.c (c_language_data): Likewise.
2977 (cplus_language_data): Likewise.
2978 (cplus_language::search_name_hash): New member function.
2979 (asm_language_data): Delete la_search_name_hash initializer.
2980 (minimal_language_data): Likewise.
2981 * d-lang.c (d_language_data): Likewise.
2982 * dictionary.c (default_search_name_hash): Rename to...
2983 (language_defn::search_name_hash): ...this.
2984 * f-lang.c (f_language_data): Likewise.
2985 (f_language::search_name_hash): New member function.
2986 * go-lang.c (go_language_data): Delete la_search_name_hash
2987 initializer.
2988 * language.c (unknown_language_data): Likewise.
2989 (auto_language_data): Likewise.
2990 * language.h (struct language_data): Delete la_search_name_hash
2991 field.
2992 (language_defn::search_name_hash): Declare new member function.
2993 (default_search_name_hash): Delete declaration.
2994 * m2-lang.c (m2_language_data): Delete la_search_name_hash
2995 initializer.
2996 * objc-lang.c (objc_language_data): Likewise.
2997 * opencl-lang.c (opencl_language_data): Likewise.
2998 * p-lang.c (pascal_language_data): Likewise.
2999 * rust-lang.c (rust_language_data): Likewise.
3000 * symtab.c (search_name_hash): Update call.
3001
8e25bafe
AB
30022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3003
3004 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3005 initializer.
3006 * c-lang.c (class compile_instance): Declare.
3007 (c_language_data): Delete la_get_compile_instance initializer.
3008 (c_language::get_compile_instance): New member function.
3009 (cplus_language_data): Delete la_get_compile_instance initializer.
3010 (cplus_language::get_compile_instance): New member function.
3011 (asm_language_data): Delete la_get_compile_instance initializer.
3012 (minimal_language_data): Likewise.
3013 * c-lang.h (c_get_compile_context): Update comment.
3014 (cplus_get_compile_context): Update comment.
3015 * compile/compile.c (compile_to_object): Update calls, don't rely
3016 on function pointer being NULL.
3017 * d-lang.c (d_language_data): Delete la_get_compile_instance
3018 initializer.
3019 * f-lang.c (f_language_data): Likewise.
3020 * go-lang.c (go_language_data): Likewise.
3021 * language.c (unknown_language_data): Likewise.
3022 (auto_language_data): Likewise.
3023 * language.h (language_data): Delete la_get_compile_instance field.
3024 (language_defn::get_compile_instance): New member function.
3025 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3026 initializer.
3027 * objc-lang.c (objc_language_data): Likewise.
3028 * opencl-lang.c (opencl_language_data): Likewise.
3029 * p-lang.c (pascal_language_data): Likewise.
3030 * rust-lang.c (rust_language_data): Likewise.
3031
4009ee92
AB
30322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3033
3034 * ada-lang.c (ada_add_all_symbols): Update comment.
3035 (ada_iterate_over_symbols): Delete, move implementation to...
3036 (ada_language::iterate_over_symbols): ...here, a new member
3037 function, rewrite to use range based for loop.
3038 (ada_language_data): Delete la_iterate_over_symbols initializer.
3039 * c-lang.c (c_language_data): Likewise.
3040 (cplus_language_data): Likewise.
3041 (asm_language_data): Likewise.
3042 (minimal_language_data): Likewise.
3043 * d-lang.c (d_language_data): Likewise.
3044 * f-lang.c (f_language_data): Likewise.
3045 * go-lang.c (go_language_data): Likewise.
3046 * language.c (unknown_language_data): Likewise.
3047 (auto_language_data): Likewise.
3048 * language.h (language_data): Delete la_iterate_over_symbols field.
3049 (language_defn::iterate_over_symbols): New member function.
3050 (LA_ITERATE_OVER_SYMBOLS): Update.
3051 * linespec.c (iterate_over_all_matching_symtabs): Update.
3052 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3053 initializer.
3054 * objc-lang.c (objc_language_data): Likewise.
3055 * opencl-lang.c (opencl_language_data): Likewise.
3056 * p-lang.c (pascal_language_data): Likewise.
3057 * rust-lang.c (rust_language_data): Likewise.
3058
54f4ca46
AB
30592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3060
3061 * ada-lang.c (ada_language_data): Delete
3062 la_lookup_transparent_type initializer.
3063 * c-lang.c (c_language_data): Likewise.
3064 (cplus_language_data): Likewise.
3065 (cplus_language::lookup_transparent_type): New member function.
3066 (asm_language_data): Delete la_lookup_transparent_type
3067 initializer.
3068 (minimal_language_data): Likewise.
3069 * d-lang.c (d_language_data): Likewise.
3070 * f-lang.c (f_language_data): Likewise.
3071 * go-lang.c (go_language_data): Likewise.
3072 * language.c (unknown_language_data): Likewise.
3073 (auto_language_data): Likewise.
3074 * language.h (struct language_data): Delete
3075 la_lookup_transparent_type field.
3076 (language_defn::lookup_transparent_type): New member function.
3077 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3078 initializer.
3079 * objc-lang.c (objc_language_data): Likewise.
3080 * opencl-lang.c (opencl_language_data): Likewise.
3081 * p-lang.c (pascal_language_data): Likewise.
3082 * rust-lang.c (rust_language_data): Likewise.
3083 * symtab.c (symbol_matches_domain): Update call.
3084
1fb314aa
AB
30852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3086
3087 * ada-lang.c (ada_language_arch_info): Delete function, move
3088 implementation to...
3089 (ada_language::language_arch_info): ...here, a new member
3090 function.
3091 (ada_language_data): Delete la_language_arch_info.
3092 * c-lang.c (c_language_data): Likewise.
3093 (c_language::language_arch_info): New member function.
3094 (cplus_language_arch_info): Delete function, move
3095 implementation to...
3096 (cplus_language::language_arch_info): ...here, a new member
3097 function.
3098 (cplus_language_data): Delete la_language_arch_info.
3099 (asm_language_data): Likewise.
3100 (asm_language::language_arch_info): New member function.
3101 (minimal_language_data): Delete la_language_arch_info.
3102 (minimal_language::language_arch_info): New member function.
3103 * d-lang.c (d_language_arch_info): Delete function, move
3104 implementation to...
3105 (d_language::language_arch_info): ...here, a new member
3106 function.
3107 (d_language_data): Delete la_language_arch_info.
3108 * f-lang.c (f_language_arch_info): Delete function, move
3109 implementation to...
3110 (f_language::language_arch_info): ...here, a new member
3111 function.
3112 (f_language_data): Delete la_language_arch_info.
3113 * go-lang.c (go_language_arch_info): Delete function, move
3114 implementation to...
3115 (go_language::language_arch_info): ...here, a new member
3116 function.
3117 (go_language_data): Delete la_language_arch_info.
3118 * language.c (unknown_language_data): Likewise.
3119 (unknown_language::language_arch_info): New member function.
3120 (auto_language_data): Delete la_language_arch_info.
3121 (auto_language::language_arch_info): New member function.
3122 (language_gdbarch_post_init): Update call to
3123 la_language_arch_info.
3124 * language.h (language_data): Delete la_language_arch_info
3125 function pointer.
3126 (language_defn::language_arch_info): New function.
3127 * m2-lang.c (m2_language_arch_info): Delete function, move
3128 implementation to...
3129 (m2_language::language_arch_info): ...here, a new member
3130 function.
3131 (m2_language_data): Delete la_language_arch_info.
3132 * objc-lang.c (objc_language_arch_info): Delete function, move
3133 implementation to...
3134 (objc_language::language_arch_info): ...here, a new member
3135 function.
3136 (objc_language_data): Delete la_language_arch_info.
3137 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3138 implementation to...
3139 (opencl_language::language_arch_info): ...here, a new member
3140 function.
3141 (opencl_language_data): Delete la_language_arch_info.
3142 * p-lang.c (pascal_language_arch_info): Delete function, move
3143 implementation to...
3144 (pascal_language::language_arch_info): ...here, a new member
3145 function.
3146 (pascal_language_data): Delete la_language_arch_info.
3147 * rust-lang.c (rust_language_arch_info): Delete function, move
3148 implementation to...
3149 (rust_language::language_arch_info): ...here, a new member
3150 function.
3151 (rust_language_data): Delete la_language_arch_info.
3152
48448202
AB
31532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3154
3155 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3156 initializer.
3157 * c-lang.c (c_language_data): Likewise.
3158 (cplus_language_data): Likewise.
3159 (cplus_language::pass_by_reference_info): New method.
3160 (asm_language_data): Delete la_pass_by_reference initializer.
3161 (minimal_language_data): Likewise.
3162 * cp-abi.c (cp_pass_by_reference): Remove use of
3163 default_pass_by_reference.
3164 * d-lang.c (d_language_data): Likewise.
3165 * f-lang.c (f_language_data): Likewise.
3166 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3167 default_pass_by_reference.
3168 * go-lang.c (go_language_data): Likewise.
3169 * language.c (language_pass_by_reference): Update.
3170 (default_pass_by_reference): Delete.
3171 (unknown_language_data): Delete la_pass_by_reference
3172 initializer.
3173 (auto_language_data): Likewise.
3174 * language.h (struct language_data): Delete la_pass_by_reference
3175 field.
3176 (language_defn::pass_by_reference_info): New member function.
3177 (default_pass_by_reference): Delete declaration.
3178 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3179 initializer.
3180 * objc-lang.c (objc_language_data): Likewise.
3181 * opencl-lang.c (opencl_language_data): Likewise.
3182 * p-lang.c (pascal_language_data): Likewise.
3183 * rust-lang.c (rust_language_data): Likewise.
3184
15e5fd35
AB
31852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3186
3187 * ada-lang.c (ada_read_var_value): Delete function, move
3188 implementation to...
3189 (ada_language::read_var_value): ...here.
3190 (ada_language_data): Delete la_read_var_value initializer.
3191 * c-lang.c (c_language_data): Likewise.
3192 (cplus_language_data): Likewise.
3193 (minimal_language_data): Likewise.
3194 * d-lang.c (d_language_data): Likewise.
3195 * f-lang.c (f_language_data): Likewise.
3196 * findvar.c (default_read_var_value): Rename to...
3197 (language_defn::read_var_value): ...this.
3198 * findvar.c (read_var_value): Update header comment, and change to
3199 call member function instead of function pointer.
3200 * go-lang.c (go_language_data): Likewise.
3201 * language.c (unknown_language_data): Delete la_read_var_value
3202 initializer.
3203 (auto_language_data): Likewise.
3204 * language.h (struct language_data): Delete la_read_var_value
3205 field.
3206 (language_defn::read_var_value): New member function.
3207 (default_read_var_value): Delete declaration.
3208 * m2-lang.c (m2_language_data): Delete la_read_var_value
3209 initializer.
3210 * objc-lang.c (objc_language_data): Likewise.
3211 * opencl-lang.c (opencl_language_data): Likewise.
3212 * p-lang.c (pascal_language_data): Likewise.
3213 * rust-lang.c (rust_language_data): Likewise.
3214 * value.h (default_read_var_value): Delete declaration.
3215
5bd40f2a
AB
32162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 * ada-lang.c (ada_print_array_index): Delete function, move
3219 implementation to...
3220 (ada_language::print_array_index): ...here.
3221 (ada_language_data): Delete la_print_array_index initializer.
3222 * c-lang.c (c_language_data): Likewise.
3223 (cplus_language_data): Likewise.
3224 (minimal_language_data): Likewise.
3225 * d-lang.c (d_language_data): Likewise.
3226 * f-lang.c (f_language_data): Likewise.
3227 * go-lang.c (go_language_data): Likewise.
3228 * language.c (default_print_array_index): Delete function, move
3229 implementation to...
3230 (language_defn::print_array_index): ...here.
3231 (unknown_language_data): Delete la_print_array_index initializer.
3232 (auto_language_data): Likewise.
3233 * language.h (struct language_data): Delete la_print_array_index
3234 field.
3235 (language_defn::print_array_index): New member function.
3236 (LA_PRINT_ARRAY_INDEX): Update.
3237 (default_print_array_index): Delete declaration.
3238 * m2-lang.c (m2_language_data): Delete la_print_array_index
3239 initializer.
3240 * objc-lang.c (objc_language_data): Likewise.
3241 * opencl-lang.c (opencl_language_data): Likewise.
3242 * p-lang.c (pascal_language_data): Likewise.
3243 * rust-lang.c (rust_language_data): Likewise.
3244
0874fd07
AB
32452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3246
3247 * gdb/ada-lang.c (ada_language_defn): Convert to...
3248 (ada_language_data): ...this.
3249 (class ada_language): New class.
3250 (ada_language_defn): New static global.
3251 * gdb/c-lang.c (c_language_defn): Convert to...
3252 (c_language_data): ...this.
3253 (class c_language): New class.
3254 (c_language_defn): New static global.
3255 (cplus_language_defn): Convert to...
3256 (cplus_language_data): ...this.
3257 (class cplus_language): New class.
3258 (cplus_language_defn): New static global.
3259 (asm_language_defn): Convert to...
3260 (asm_language_data): ...this.
3261 (class asm_language): New class.
3262 (asm_language_defn): New static global.
3263 (minimal_language_defn): Convert to...
3264 (minimal_language_data): ...this.
3265 (class minimal_language): New class.
3266 (minimal_language_defn): New static global.
3267 * gdb/d-lang.c (d_language_defn): Convert to...
3268 (d_language_data): ...this.
3269 (class d_language): New class.
3270 (d_language_defn): New static global.
3271 * gdb/f-lang.c (f_language_defn): Convert to...
3272 (f_language_data): ...this.
3273 (class f_language): New class.
3274 (f_language_defn): New static global.
3275 * gdb/go-lang.c (go_language_defn): Convert to...
3276 (go_language_data): ...this.
3277 (class go_language): New class.
3278 (go_language_defn): New static global.
3279 * gdb/language.c (unknown_language_defn): Remove declaration.
3280 (current_language): Initialize to nullptr, real initialization is
3281 moved to _initialize_language.
3282 (languages): Delete global.
3283 (language_defn::languages): Define.
3284 (set_language_command): Use language_defn::languages.
3285 (set_language): Likewise.
3286 (range_error): Likewise.
3287 (language_enum): Likewise.
3288 (language_def): Likewise.
3289 (add_set_language_command): Use language_def::languages for the
3290 language list, and language_def to lookup language pointers.
3291 (skip_language_trampoline): Use language_defn::languages.
3292 (unknown_language_defn): Convert to...
3293 (unknown_language_data): ...this.
3294 (class unknown_language): New class.
3295 (unknown_language_defn): New static global.
3296 (auto_language_defn): Convert to...
3297 (auto_language_data): ...this.
3298 (class auto_language): New class.
3299 (auto_language_defn): New static global.
3300 (language_gdbarch_post_init): Use language_defn::languages.
3301 (_initialize_language): Initialize current_language.
3302 * gdb/language.h (struct language_defn): Rename to...
3303 (struct language_data): ...this.
3304 (struct language_defn): New.
3305 (auto_language_defn): Delete.
3306 (unknown_language_defn): Delete.
3307 (minimal_language_defn): Delete.
3308 (ada_language_defn): Delete.
3309 (asm_language_defn): Delete.
3310 (c_language_defn): Delete.
3311 (cplus_language_defn): Delete.
3312 (d_language_defn): Delete.
3313 (f_language_defn): Delete.
3314 (go_language_defn): Delete.
3315 (m2_language_defn): Delete.
3316 (objc_language_defn): Delete.
3317 (opencl_language_defn): Delete.
3318 (pascal_language_defn): Delete.
3319 (rust_language_defn): Delete.
3320 * gdb/m2-lang.c (m2_language_defn): Convert to...
3321 (m2_language_data): ...this.
3322 (class m2_language): New class.
3323 (m2_language_defn): New static global.
3324 * gdb/objc-lang.c (objc_language_defn): Convert to...
3325 (objc_language_data): ...this.
3326 (class objc_language): New class.
3327 (objc_language_defn): New static global.
3328 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3329 (opencl_language_data): ...this.
3330 (class opencl_language): New class.
3331 (opencl_language_defn): New static global.
3332 * gdb/p-lang.c (pascal_language_defn): Convert to...
3333 (pascal_language_data): ...this.
3334 (class pascal_language): New class.
3335 (pascal_language_defn): New static global.
3336 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3337 language pointer, update comment format.
3338 * gdb/rust-lang.c (rust_language_defn): Convert to...
3339 (rust_language_data): ...this.
3340 (class rust_language): New class.
3341 (rust_language_defn): New static global.
3342
1313c56e
AB
33432020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3344
3345 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3346 member variable.
3347 <m_stmt_at_address>: New member variable.
3348 (lnp_state_machine::record_line): Don't record some lines, update
3349 tracking of is_stmt at the same address.
3350 (lnp_state_machine::lnp_state_machine): Initialise new member
3351 variables.
3352
b7ed9f3d
ST
33532020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3354
3355 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3356 "-include gnu-nat-mig.h".
3357 * gnu-nat-mig.h: New file.
3358 * gnu-nat.c: Include "gnu-nat-mig.h".
3359 (exc_server, msg_reply_server, notify_server,
3360 process_reply_server): Remove declarations.
3361
14a8ad62
ST
33622020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3363
3364 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3365 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3366 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3367 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3368 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3369 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3370 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3371 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3372 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3373 to gnu_nat_target class.
3374 * gnu-nat.c: Likewise.
3375 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3376 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3377 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3378 object.
3379 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3380 instead of `gnu_target'.
3381
0af5e106
ST
33822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3383
3384 * i386-gnu-tdep.c: Include "gdbcore.h"
3385 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3386 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3387 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3388 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3389 i386_gnu_sigcontext_addr): New functions
3390 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3391 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3392 tdep.
3393
078f2fc9
ST
33942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3395
3396 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3397 before fork_inferior call. Avoid calling it if target_is_pushed returns
3398 true.
3399
53dff92c
ST
34002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3401
3402 * gnu-nat.h (gnu_target): New variable declaration.
3403 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3404 gnu_target.
3405 * gnu-nat.c (gnu_target): New variable.
3406 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3407 add_thread_silent, and add_thread calls.
3408 (gnu_nat_target::create_inferior): Pass gnu_target to
3409 add_thread_silent, thread_change_ptid call.
3410 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3411 call.
3412
5a8b8627
ST
34132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3414
3415 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3416 (gnu_nat_target::find_memory_regions): Remove unused
3417 `old_address' variable.
3418
366f550a
ST
34192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3420
3421 * gnu-nat.c: Include "gdbarch.h".
3422
f14871bf
ST
34232020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3424
3425 * reply_mig_hack.awk (Error return): Cast function through
3426 void *, to bypass compiler function call check.
3427
c6887cfb
ST
34282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3429
3430 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3431 $(srcdir)/reply_mig_hack.awk.
3432
6930bffe
ST
34332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3434
3435 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3436
112c22ed
JG
34372020-05-30 Jonny Grant <jg@jguk.org>
3438
3439 * configure.ac (ACX_BUGURL): change bug URL to https.
3440
f68f85b5
PA
34412020-05-30 Pedro Alves <palves@redhat.com>
3442
3443 * cp-support.c (replace_typedefs_template): New.
3444 (replace_typedefs_qualified_name): Handle
3445 DEMANGLE_COMPONENT_TEMPLATE.
3446
976ca316
SM
34472020-05-29 Simon Marchi <simon.marchi@efficios.com>
3448
3449 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3450 dwarf2/index-cache.h, dwarf2/index-write.c,
3451 dwarf2/index-write.h, dwarf2/line-header.c,
3452 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3453 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3454 variables and fields from `dwarf2_per_objfile` to just
3455 `per_objfile` throughout.
3456
989ade05
SM
34572020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3458
3459 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3460 <push_dwarf_reg_entry_value>: Add comment.
3461
c47bae85
KB
34622020-05-28 Kevin Buettner <kevinb@redhat.com>
3463 Keith Seitz <keiths@redhat.com>
3464
3465 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3466 instead of PyEval_ReleaseLock.
3467 (class gdbpy_gil): Move to earlier in file.
3468 (finalize_python): Set gdb_python_initialized.
3469 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3470 when not initialized.
3471
44486dcf
SM
34722020-05-28 Simon Marchi <simon.marchi@efficios.com>
3473
3474 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3475 <push_dwarf_reg_entry_value>: Remove assert. Override
3476 per_objfile with caller_per_objfile.
3477
f030440d
TV
34782020-05-28 Tom de Vries <tdevries@suse.de>
3479
3480 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3481 PR gold/15646 workaround to symbol kind "type".
3482
f0fbb768
TT
34832020-05-27 Tom Tromey <tromey@adacore.com>
3484
3485 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3486
af0b2a3e
TT
34872020-05-27 Tom Tromey <tromey@adacore.com>
3488
3489 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3490 Use htab_find_with_hash.
3491 <add_abbrev>: Remove "abbrev_number" parameter.
3492 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3493 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3494 (hash_abbrev): Add comment.
3495 (abbrev_table::lookup_abbrev): Move to header file.
3496 (abbrev_table::read): Update.
3497
7d00ffec
TT
34982020-05-27 Tom Tromey <tromey@adacore.com>
3499
3500 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3501 method.
3502 <canonical_name>: New member.
3503 <raw_name>: Rename from "name".
3504 (partial_die_info): Initialize canonical_name.
3505 (scan_partial_symbols): Check raw_name.
3506 (partial_die_parent_scope, partial_die_full_name)
3507 (add_partial_symbol, add_partial_subprogram)
3508 (add_partial_enumeration, load_partial_dies): Use "name" method.
3509 (partial_die_info::name): New method.
3510 (partial_die_info::read, guess_partial_die_structure_name)
3511 (partial_die_info::fixup): Update.
3512
697bba18
TT
35132020-05-27 Tom Tromey <tromey@adacore.com>
3514
3515 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3516 <get_ref_die_offset>: Inline.
3517 <get_ref_die_offset_complaint>: New method.
3518 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3519 (attribute::get_ref_die_offset_complaint): Rename from
3520 get_ref_die_offset. Just issue complaint.
3521
c17ace43
HD
35222020-05-27 Hannes Domani <ssbssa@yahoo.de>
3523
3524 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3525
96445f0b
HD
35262020-05-27 Hannes Domani <ssbssa@yahoo.de>
3527
3528 * exec.c (exec_file_attach): Use errno value of first openp failure.
3529
ac637ec3
HD
35302020-05-27 Hannes Domani <ssbssa@yahoo.de>
3531
3532 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3533 Don't close thread handle.
3534
17ee85fc
TT
35352020-05-27 Tom Tromey <tom@tromey.com>
3536 Simon Marchi <simon.marchi@efficios.com>
3537
3538 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3539 shared_ptr.
3540 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3541 member.
3542 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3543 dwarf2_per_bfd_objfile_data_key>: New globals.
3544 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3545 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3546 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3547 shared.
3548 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3549 short-circuit when sharing.
3550 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3551 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3552
39b16f87
SM
35532020-05-27 Simon Marchi <simon.marchi@efficios.com>
3554
3555 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3556 to...
3557 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3558 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3559
fcf23d5b
SM
35602020-05-27 Simon Marchi <simon.marchi@efficios.com>
3561
3562 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3563 build_name_components, find_name_components_bounds>:
3564 Add per_objfile parameter.
3565 (struct mapped_index) <symbol_name_at>: Likewise.
3566 (struct mapped_debug_names): Remove constructor.
3567 <dwarf2_per_objfile>: Remove field.
3568 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3569 (mapped_index_base::find_name_components_bounds,
3570 mapped_index_base::build_name_components,
3571 dw2_expand_symtabs_matching_symbol): Likewise.
3572 (class mock_mapped_index) <symbol_name_at>: Likewise.
3573 (check_match): Likewise.
3574 (check_find_bounds_finds): Likewise.
3575 (test_mapped_index_find_name_component_bounds): Update.
3576 (CHECK_MATCH): Update.
3577 (dw2_expand_symtabs_matching): Update.
3578 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3579 per_objfile parameter.
3580 <find_vec_in_debug_names>: Likewise.
3581 <m_per_objfile>: New field.
3582 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3583 parameter.
3584 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3585 (dw2_debug_names_iterator::next): Update.
3586 (dw2_debug_names_lookup_symbol): Update.
3587 (dw2_debug_names_expand_symtabs_for_function): Update.
3588 (dw2_debug_names_map_matching_symbols): Update.
3589 (dw2_debug_names_expand_symtabs_matching): Update.
3590 (dwarf2_read_debug_names): Update.
3591
7188ed02
SM
35922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3593
3594 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3595 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3596 move to dwarf2_per_objfile.
3597 <read_in_chain>: Remove.
3598 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3599 remove_all_cus, age_comp_units>: New methods.
3600 <m_dwarf2_cus>: New member.
3601 (struct dwarf2_per_cu_data) <cu>: Remove.
3602 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3603 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3604 moved to methods of dwarf2_per_objfile.
3605 (dwarf2_clear_marks): Remove.
3606 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3607 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3608 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3609 (dwarf2_per_objfile::remove_all_cus): New.
3610 (class free_cached_comp_units) <~free_cached_comp_units>:
3611 Update.
3612 (load_cu): Update.
3613 (dw2_do_instantiate_symtab): Adjust.
3614 (fill_in_sig_entry_from_dwo_entry): Adjust.
3615 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3616 (cutu_reader::cutu_reader): Likewise.
3617 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3618 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3619 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3620 and dwarf2_per_objfile::age_comp_units.
3621 (load_partial_comp_unit): Update.
3622 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3623 (process_queue): Likewise.
3624 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3625 backlink.
3626 (dwarf2_read_addr_index): Likewise.
3627 (follow_die_offset): Likewise.
3628 (dwarf2_fetch_die_loc_sect_off): Likewise.
3629 (dwarf2_fetch_constant_bytes): Likewise.
3630 (dwarf2_fetch_die_type_sect_off): Likewise.
3631 (follow_die_sig_1): Likewise.
3632 (load_full_type_unit): Likewise.
3633 (read_signatured_type): Likewise.
3634 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3635 (dwarf2_cu::~dwarf2_cu): Remove.
3636 (dwarf2_per_objfile::get_cu): New.
3637 (dwarf2_per_objfile::set_cu): New.
3638 (age_cached_comp_units): Rename to...
3639 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3640 to std::unordered_map.
3641 (free_one_cached_comp_unit): Rename to...
3642 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3643 to std::unordered_map.
3644 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3645 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3646 a dwarf2_per_objfile in data.
3647 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3648 (dwarf2_clear_marks): Remove.
3649
2e671100
SM
36502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3651
3652 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3653 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3654 (init_tu_and_read_dwo_dies): Likewise.
3655 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3656 (cutu_reader::cutu_reader): Likewise.
3657 (load_partial_comp_unit): Likewise.
3658 (process_psymtab_comp_unit): Update.
3659 (build_type_psymtabs_1): Update.
3660 (process_skeletonless_type_unit): Update.
3661 (load_full_comp_unit): Update.
3662 (find_partial_die): Update.
3663 (dwarf2_read_addr_index): Update.
3664 (read_signatured_type): Update.
3665
2e6a9f79
SM
36662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3667
3668 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3669 m_header_read_in>: New fields.
3670 <get_header>: New method.
3671 * dwarf2/read.c (per_cu_header_read_in): Remove.
3672 (dwarf2_per_cu_data::get_header): New.
3673 (dwarf2_per_cu_data::addr_size): Update.
3674 (dwarf2_per_cu_data::offset_size): Update.
3675 (dwarf2_per_cu_data::ref_addr_size): Update.
3676
1b555f17
SM
36772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3678
3679 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3680 (dw2_do_instantiate_symtab): Update.
3681 (queue_and_load_all_dwo_tus): Change parameter from
3682 dwarf2_per_cu_data to dwarf2_cu.
3683 (dwarf2_fetch_die_loc_sect_off): Update.
3684 (dwarf2_fetch_constant_bytes): Update.
3685 (dwarf2_fetch_die_type_sect_off): Update.
3686
8fc0b21d
SM
36872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3688
3689 * dwarf2/read.c (process_full_comp_unit,
3690 process_full_type_unit): Remove per_cu, per_objfile paramters.
3691 Add dwarf2_cu parameter.
3692 (process_queue): Update.
3693
168c9250
SM
36942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3695
3696 * dwarf2/read.c (create_cu_from_index_list): Replace
3697 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3698 (create_cus_from_index_list): Likewise.
3699 (create_cus_from_index): Likewise.
3700 (create_signatured_type_table_from_index): Likewise.
3701 (create_cus_from_debug_names_list): Likewise.
3702 (create_cus_from_debug_names): Likewise.
3703 (dwarf2_read_gdb_index): Update.
3704 (dwarf2_read_debug_names): Update.
3705
e286671b
TT
37062020-05-27 Tom Tromey <tom@tromey.com>
3707 Simon Marchi <simon.marchi@efficios.com>
3708
3709 * dwarf2/read.h (struct dwarf2_per_objfile)
3710 <get_type_for_signatured_type, set_type_for_signatured_type>:
3711 New methods.
3712 <m_type_map>: New member.
3713 (struct signatured_type) <type>: Remove.
3714 * dwarf2/read.c
3715 (dwarf2_per_objfile::get_type_for_signatured_type,
3716 dwarf2_per_objfile::set_type_for_signatured_type): New.
3717 (get_signatured_type): Use new methods.
3718
8adb8487
TT
37192020-05-27 Tom Tromey <tom@tromey.com>
3720 Simon Marchi <simon.marchi@efficios.com>
3721
3722 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3723 (struct dwarf2_per_objfile) <type_units>: New member.
3724 <get_type_unit_group_unshareable>: New method.
3725 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3726 num_symtabs, symtabs>: Remove; move to
3727 type_unit_group_unshareable.
3728 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3729 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3730 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3731
127bbf4b
SM
37322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3733
3734 * dwarf2/read.h (struct dwarf2_per_cu_data):
3735 <dwarf2_per_objfile>: Remove.
3736 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3737 dwarf2_per_objfile.
3738 (create_signatured_type_table_from_index): Likewise.
3739 (create_signatured_type_table_from_debug_names): Likewise.
3740 (create_debug_type_hash_table): Likewise.
3741 (fill_in_sig_entry_from_dwo_entry): Likewise.
3742 (create_type_unit_group): Likewise.
3743 (read_comp_units_from_section): Likewise.
3744 (create_cus_hash_table): Likewise.
3745
f6e649dd
SM
37462020-05-27 Simon Marchi <simon.marchi@efficios.com>
3747
3748 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3749 dwarf2_per_cu_data::dwarf2_per_objfile.
3750 (compute_compunit_symtab_includes): Likewise.
3751 (dwarf2_cu::start_symtab): Likewise.
3752
aa66c379
SM
37532020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3754
3755 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3756 parameter.
3757 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3758 (read_namespace_alias): Update.
3759 (lookup_die_type): Update.
3760 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3761 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3762 Update.
3763 (disassemble_dwarf_expression): Update.
3764
120ce1b5
SM
37652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3766
3767 * dwarf2/read.h (struct dwarf2_queue_item): Add
3768 dwarf2_per_objfile parameter, assign new parameter.
3769 <per_objfile>: New field.
3770 * dwarf2/read.c (free_one_cached_comp_unit): Add
3771 dwarf2_per_objfile parameter.
3772 (queue_comp_unit): Likewise.
3773 (dw2_do_instantiate_symtab): Update.
3774 (process_psymtab_comp_unit): Update.
3775 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3776 (process_imported_unit_die): Update.
3777 (queue_and_load_dwo_tu): Update.
3778 (follow_die_offset): Update.
3779 (follow_die_sig_1): Update.
3780
9f47c707
SM
37812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3784 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3785 (read_call_site_scope): Assign per_objfile.
3786 (dwarf2_per_cu_data::objfile): Remove.
3787 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3788 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3789 dwarf2_per_objfile parameter.
3790 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3791 dwarf2_per_objfile parameter.
3792 (dwarf_expr_reg_to_entry_parameter): Add output
3793 dwarf2_per_objfile parameter.
3794 (locexpr_get_frame_base): Update.
3795 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3796 <push_dwarf_reg_entry_value>: Update.
3797 <call_site_to_target_addr>: Update.
3798 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3799 parameter.
3800 (value_of_dwarf_reg_entry): Update.
3801 (rw_pieced_value): Update.
3802 (indirect_synthetic_pointer): Update.
3803 (dwarf2_evaluate_property): Update.
3804 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3805 parameter.
3806 (locexpr_read_variable): Update.
3807 (locexpr_get_symbol_read_needs): Update.
3808 (loclist_read_variable): Update.
3809
14095eb3
SM
38102020-05-27 Simon Marchi <simon.marchi@efficios.com>
3811
3812 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3813 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3814 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3815 parameter.
3816 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3817 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3818 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3819 parameter.
3820 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3821 sect_variable_value): Add dwarf2_per_objfile parameter.
3822 (class dwarf_evaluate_loc_desc) <dwarf_call,
3823 dwarf_variable_value>: Update.
3824 (fetch_const_value_from_synthetic_pointer): Add
3825 dwarf2_per_objfile parameter.
3826 (fetch_const_value_from_synthetic_pointer): Update.
3827 (coerced_pieced_ref): Update.
3828 (class symbol_needs_eval_context) <dwarf_call,
3829 dwarf_variable_value>: Update.
3830 (dwarf2_compile_expr_to_ax): Update.
3831
3c3cd3d4
SM
38322020-05-27 Simon Marchi <simon.marchi@efficios.com>
3833
3834 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3835 parameter.
3836 (dwarf2_evaluate_loc_desc_full): Update.
3837
82ca3f51
SM
38382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3839
3840 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3841 parameter.
3842 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3843 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3844 dwarf2_per_objfile parameter.
3845 (decode_debug_loc_dwo_addresses): Likewise.
3846 (dwarf2_find_location_expression): Update.
3847 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3848 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3849 parameter.
3850 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3851 parameter.
3852 (locexpr_describe_location_1): Likewise.
3853 (locexpr_describe_location): Update.
3854
4b167ea1
SM
38552020-05-27 Simon Marchi <simon.marchi@efficios.com>
3856
3857 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3858 Remove.
3859 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3860 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3861 (dwarf2_compile_property_to_c): Update.
3862 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3863 use text offset from objfile.
3864 (locexpr_tracepoint_var_ref): Update.
3865 (locexpr_generate_c_location): Update.
3866 (loclist_describe_location): Update.
3867 (loclist_tracepoint_var_ref): Update.
3868 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3869 dwarf2_per_objfile parameter.
3870 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3871 use text offset from objfile.
3872 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3873
89b07335
SM
38742020-05-27 Simon Marchi <simon.marchi@efficios.com>
3875
3876 * dwarf2/expr.h (struct dwarf_expr_context)
3877 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3878 <offset>: Remove.
3879 <per_objfile>: New member.
3880 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3881 dwarf2_per_objfile parameter. Don't set offset, set
3882 per_objfile.
3883 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3884 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3885 a dwarf2_per_objfile object instead of an offset.
3886 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3887 constructor.
3888 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3889 to dwarf2_expr_executor constructor. Don't set offset.
3890 (dwarf2_fetch_cfa_info): Update.
3891 (struct dwarf2_frame_cache) <text_offset>: Remove.
3892 <per_objfile>: New field.
3893 (dwarf2_frame_cache): Update.
3894 (dwarf2_frame_prev_register): Update.
3895 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3896 <dwarf_evaluate_loc_desc>: Add constructor.
3897 (dwarf2_evaluate_loc_desc_full): Update.
3898 (dwarf2_locexpr_baton_eval): Update.
3899 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3900 Add constructor.
3901 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3902
293e7e51
SM
39032020-05-27 Simon Marchi <simon.marchi@efficios.com>
3904
3905 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3906 addr_sized_int_type>: Move to dwarf2_cu.
3907 <int_type>: Move to dwarf2_per_objfile.
3908 (struct dwarf2_per_objfile) <int_type>: Move here.
3909 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3910 addr_sized_int_type>: Move here.
3911 (read_func_scope): Update.
3912 (read_array_type): Update.
3913 (read_tag_string_type): Update.
3914 (attr_to_dynamic_prop): Update.
3915 (dwarf2_per_cu_data::int_type): Rename to...
3916 (dwarf2_per_objfile::int_type): ... this.
3917 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3918 (dwarf2_cu::addr_sized_int_type): ... this.
3919 (read_subrange_type): Update.
3920 (dwarf2_per_cu_data::addr_type): Rename to...
3921 (dwarf2_cu::addr_type): ... this.
3922 (set_die_type): Update.
3923
64874a40
SM
39242020-05-27 Simon Marchi <simon.marchi@efficios.com>
3925
3926 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3927 data through per_cu->cu.
3928
4ab09049
SM
39292020-05-27 Simon Marchi <simon.marchi@efficios.com>
3930
3931 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3932 dwarf2_per_cu_data parameter fo dwarf2_cu.
3933 (lookup_dwo_type_unit): Likewise.
3934 (read_cutu_die_from_dwo): Likewise.
3935 (lookup_dwo_unit): Likewise.
3936 (open_and_init_dwo_file): Likewise.
3937 (lookup_dwo_cutu): Likewise.
3938 (lookup_dwo_comp_unit): Likewise.
3939 (lookup_dwo_type_unit): Likewise.
3940 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3941 (cutu_reader::cutu_reader): Update.
3942
47b14e86
SM
39432020-05-27 Simon Marchi <simon.marchi@efficios.com>
3944
3945 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3946 parameter.
3947 (process_full_type_unit): Likewise.
3948 (process_queue): Update.
3949
43182c09
SM
39502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3951
3952 * dwarf2/read.c (recursively_compute_inclusions): Add
3953 dwarf2_per_objfile parameter.
3954 (compute_compunit_symtab_includes): Likewise.
3955 (process_cu_includes): Update.
3956
7aa104c4
SM
39572020-05-27 Simon Marchi <simon.marchi@efficios.com>
3958
3959 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3960 parameter.
3961 (create_type_unit_group): Update.
3962 (process_psymtab_comp_unit_reader): Update.
3963 (build_type_psymtabs_reader): Update.
3964
e3beb21d
SM
39652020-05-27 Simon Marchi <simon.marchi@efficios.com>
3966
3967 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
3968 object through m_this_cu->cu.
3969
d460f660
SM
39702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3971
3972 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
3973 the info parameter.
3974 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
3975
ab432490
SM
39762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3977
3978 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
3979 per_objfile parameter.
3980 (load_full_type_unit): Add per_objfile parameter.
3981 (read_signatured_type): Likewise.
3982 (load_full_comp_unit): Likewise.
3983 (load_cu): Likewise.
3984 (dw2_do_instantiate_symtab): Likewise.
3985 (dw2_get_file_names): Likewise.
3986 (dw2_map_symtabs_matching_filename): Update.
3987 (dw_expand_symtabs_matching_file_matcher): Update.
3988 (dw2_map_symbol_filenames): Update.
3989 (process_psymtab_comp_unit): Add per_objfile parameter.
3990 (build_type_psymtabs_1): Update.
3991 (process_skeletonless_type_unit): Update.
3992 (dwarf2_build_psymtabs_hard): Update.
3993 (load_partial_comp_unit): Add per_objfile parameter.
3994 (scan_partial_symbols): Update.
3995 (load_full_comp_unit): Add per_objfile parameter.
3996 (process_imported_unit_die): Update.
3997 (create_cus_hash_table): Update.
3998 (find_partial_die): Update.
3999 (dwarf2_read_addr_index): Update.
4000 (follow_die_offset): Update.
4001 (dwarf2_fetch_die_loc_sect_off): Update.
4002 (dwarf2_fetch_constant_bytes): Update.
4003 (dwarf2_fetch_die_type_sect_off): Update.
4004 (follow_die_sig_1): Update.
4005 (load_full_type_unit): Add per_objfile parameter.
4006 (read_signatured_type): Likewise.
4007
313bad1b
SM
40082020-05-27 Simon Marchi <simon.marchi@efficios.com>
4009
4010 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4011 of objfile_name.
4012
c3699833
SM
40132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4014
4015 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4016 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4017 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4018 field.
4019 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4020 (create_cus_from_index): Update.
4021 (dwarf2_read_gdb_index): Update.
4022 (create_cus_from_debug_names): Update.
4023 (dwarf2_read_debug_names): Update.
4024 (get_abbrev_section_for_cu): Update.
4025 (create_all_comp_units): Update.
4026 (read_attribute_value): Update.
4027 (get_debug_line_section): Update.
4028 * dwarf2/index-cache.c (index_cache::store): Update.
4029 * dwarf2/index-write.c (save_gdb_index_command): Update.
4030 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4031
1859c670
SM
40322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4033
4034 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4035 member.
4036 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4037 dwarf2_per_cu_data::per_bfd.
4038 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4039 (create_type_unit_group): Likewise.
4040 (queue_comp_unit): Remove reference to
4041 per_cu->dwarf2_per_objfile.
4042 (maybe_queue_comp_unit): Likewise.
4043 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4044 (create_cus_hash_table): Assign new field.
4045
5e22e966
SM
40462020-05-27 Simon Marchi <simon.marchi@efficios.com>
4047
4048 * dwarf2/read.c: Replace
4049 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4050 dwarf2_cu->per_objfile throughout.
4051
97a1449a
SM
40522020-05-27 Simon Marchi <simon.marchi@efficios.com>
4053
4054 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4055 parameter, don't use per_cu->dwarf2_per_objfile.
4056 (dw2_instantiate_symtab): Likewise.
4057 (dw2_find_last_source_symtab): Update.
4058 (dw2_map_expand_apply): Update.
4059 (dw2_lookup_symbol): Update.
4060 (dw2_expand_symtabs_for_function): Update.
4061 (dw2_expand_all_symtabs): Update.
4062 (dw2_expand_symtabs_with_fullname): Update.
4063 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4064 don't use per_cu->dwarf2_per_objfile.
4065 (dw2_expand_marked_cus): Update.
4066 (dw2_find_pc_sect_compunit_symtab): Update.
4067 (dw2_debug_names_lookup_symbol): Update.
4068 (dw2_debug_names_expand_symtabs_for_function): Update.
4069 (dw2_debug_names_map_matching_symbols): Update.
4070 (dwarf2_psymtab::expand_psymtab): Update.
4071
9e021579
SM
40722020-05-27 Simon Marchi <simon.marchi@efficios.com>
4073
4074 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4075 <per_objfile>: New member.
4076 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4077 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4078 call to dwarf2_cu.
4079 (cutu_reader::cutu_reader): Update.
4080 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4081
ae090bdb
SM
40822020-05-27 Simon Marchi <simon.marchi@efficios.com>
4083
4084 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4085 struct dwarf2_per_objfile.
4086 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4087 dwarf2_per_bfd.
4088 * dwarf2/read.c (set_die_type): Update.
4089 (get_die_type_at_offset): Update.
4090
af758d11
SM
40912020-05-27 Tom Tromey <tom@tromey.com>
4092 Simon Marchi <simon.marchi@efficios.com>
4093
4094 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4095 method.
4096 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4097 get_symtab, set_symtab>: New methods.
4098 <m_symtabs>: New field.
4099 (struct dwarf2_psymtab): Derive from partial_symtab.
4100 <readin_p, get_compunit_symtab>: Declare methods.
4101 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4102 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4103 New methods.
4104 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4105 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4106 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4107 (dw2_symtab_iter_next, dw2_print_stats)
4108 (dw2_expand_symtabs_with_fullname)
4109 (dw2_expand_symtabs_matching_one)
4110 (dw_expand_symtabs_matching_file_matcher)
4111 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4112 (dw2_debug_names_iterator::next)
4113 (dw2_debug_names_map_matching_symbols)
4114 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4115 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4116 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4117 New methods.
4118 (get_compunit_symtab, process_full_comp_unit)
4119 (process_full_type_unit): Update.
4120 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4121
5989a64e
SM
41222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4123
4124 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4125 then introduce a new dwarf2_per_objfile type.
4126 <read_line_string>: Move to the new dwarf2_per_objfile type.
4127 <objfile>: Likewise.
4128 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4129 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4130 dwarf2_per_objfile->per_bfd.
4131 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4132 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4133 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4134 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4135 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4136 (dwarf2_per_objfile::locate_sections): Rename to...
4137 (dwarf2_per_bfd::locate_sections): ... this.
4138 (dwarf2_per_objfile::get_cutu): Rename to...
4139 (dwarf2_per_bfd::get_cutu): ... this.
4140 (dwarf2_per_objfile::get_cu): Rename to...
4141 (dwarf2_per_bfd::get_cu): ... this.
4142 (dwarf2_per_objfile::get_tu): Rename to...
4143 (dwarf2_per_bfd::get_tu): ... this.
4144 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4145 (dwarf2_per_bfd::allocate_per_cu): ... this.
4146 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4147 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4148 (get_gdb_index_contents_ftype): Change parameter from
4149 dwarf2_per_objfile to dwarf2_per_bfd.
4150 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4151 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4152
a50264ba
TT
41532020-05-27 Tom Tromey <tom@tromey.com>
4154 Simon Marchi <simon.marchi@efficios.com>
4155
4156 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4157 (allocate_piece_closure): Set "per_objfile" member.
4158 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4159 (locexpr_describe_location, loclist_describe_location): Use new
4160 member.
4161 * dwarf2/read.c (read_call_site_scope)
4162 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4163 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4164 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4165 handle_data_member_location): Set per_objfile member.
4166 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4167 member.
4168 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4169
d3473f0c
TT
41702020-05-27 Tom Tromey <tom@tromey.com>
4171
4172 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4173 allocate_signatured_type>: Declare new methods.
4174 <m_num_psymtabs>: New member.
4175 (struct dwarf2_per_cu_data) <index>: New member.
4176 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4177 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4178 (create_cu_from_index_list): Use allocate_per_cu.
4179 (create_signatured_type_table_from_index)
4180 (create_signatured_type_table_from_debug_names)
4181 (create_debug_type_hash_table, add_type_unit)
4182 (read_comp_units_from_section): Use allocate_signatured_type.
4183
5717c425
TT
41842020-05-27 Tom Tromey <tom@tromey.com>
4185
4186 * psymtab.c (partial_map_expand_apply)
4187 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4188 (psym_lookup_global_symbol_language)
4189 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4190 (psym_print_stats, psym_expand_symtabs_for_function)
4191 (psym_map_symbol_filenames, psym_map_matching_symbols)
4192 (psym_expand_symtabs_matching)
4193 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4194 (maintenance_check_psymtabs): Update.
4195 * psympriv.h (struct partial_symtab) <readin_p,
4196 get_compunit_symtab>: Add objfile parameter.
4197 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4198 Likewise.
4199 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4200 get_compunit_symtab>: Likewise.
4201 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4202
45940949
TT
42032020-05-27 Tom Tromey <tom@tromey.com>
4204
4205 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4206 member.
4207 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4208 (create_cu_from_index_list)
4209 (create_signatured_type_table_from_index)
4210 (create_signatured_type_table_from_debug_names)
4211 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4212 (dwarf2_create_include_psymtab)
4213 (create_debug_type_hash_table, add_type_unit)
4214 (create_type_unit_group, read_comp_units_from_section)
4215 (dwarf2_compute_name, create_cus_hash_table)
4216 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4217 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4218 obstack.
4219 (dw2_get_real_path): Likewise. Change argument to
4220 dwarf2_per_objfile.
4221
f8c6d152
LM
42222020-05-27 Luis Machado <luis.machado@linaro.org>
4223
4224 PR tdep/26000
4225 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4226 for ldrd (immediate).
4227
e98d2e6d
PW
42282020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4229
4230 * command.h: Add comment giving the name of class_tui.
4231 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4232 create the fake command for the help for class_tui.
4233
53a47a3e
TT
42342020-05-26 Tom Tromey <tromey@adacore.com>
4235
4236 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4237 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4238 (val_atr): New function.
4239 (value_val_atr): Use it.
4240 * ada-valprint.c (print_optional_low_bound): Change low bound
4241 handling for enums.
4242 (val_print_packed_array_elements): Don't call discrete_position.
4243 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4244 discrete_position for enum types.
4245 * language.c (default_print_array_index): Change type.
4246 * language.h (struct language_defn) <la_print_array_index>: Add
4247 index_type parameter, change type of index_value.
4248 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4249 (default_print_array_index): Update.
4250 * valprint.c (maybe_print_array_index): Don't call
4251 value_from_longest. Update.
4252 (value_print_array_elements): Don't call discrete_position.
4253
0bc2354b
TT
42542020-05-26 Tom Tromey <tromey@adacore.com>
4255
4256 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4257 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4258
1218a4bf
CDA
42592020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4260
4261 PR gdb/13519
4262 * avr-tdep.c (avr_integer_to_address): Return data or code
4263 address accordingly to the second 'type' argument of the
4264 function.
4265
92651b1d
MW
42662020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4267
4268 * infcmd.c, inferior.h: (construct_inferior_arguments):
4269 Moved function from here to gdbsupport/common-inferior.{h,cc}
4270
0a4f5f8c
TT
42712020-05-23 Tom Tromey <tom@tromey.com>
4272
4273 Revert commit eca1f90c:
4274 * NEWS: Remove entry for completion styling.
4275 * completer.c (_rl_completion_prefix_display_length): Move
4276 declaration later.
4277 (gdb_fnprint): Revert.
4278 (gdb_display_match_list_1): Likewise.
4279 * cli/cli-style.c (completion_prefix_style)
4280 (completion_difference_style, completion_suffix_style): Remove.
4281 (_initialize_cli_style): Revert.
4282 * cli/cli-style.h (completion_prefix_style)
4283 (completion_difference_style, completion_suffix_style): Don't
4284 declare.
4285
e08bd6c5
PA
42862020-05-24 Pedro Alves <palves@redhat.com>
4287
4288 * symtab.c (completion_list_add_name): Return boolean indication
4289 of whether the symbol matched.
4290 (completion_list_add_symbol): Don't try to remove C++ aliases if
4291 the symbol didn't match in the first place.
4292 * symtab.h (completion_list_add_name): Return bool.
4293
ceacbf6e
SM
42942020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4295
4296 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4297 type::field.
4298
26f16254
JB
42992020-05-23 Joel Brobecker <brobecker@adacore.com>
4300
4301 GDB 9.2 released.
4302
eca1f90c
TT
43032020-05-23 Tom Tromey <tom@tromey.com>
4304
4305 * NEWS: Add entry for completion styling.
4306 * completer.c (_rl_completion_prefix_display_length): Move
4307 declaration earlier.
4308 (gdb_fnprint): Use completion_style.
4309 (gdb_display_match_list_1): Likewise.
4310 * cli/cli-style.c (completion_prefix_style)
4311 (completion_difference_style, completion_suffix_style): New
4312 globals.
4313 (_initialize_cli_style): Register new globals.
4314 * cli/cli-style.h (completion_prefix_style)
4315 (completion_difference_style, completion_suffix_style): Declare.
4316
51e2cfa2
PA
43172020-05-23 Pedro Alves <palves@redhat.com>
4318
4319 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4320 (parse_escape): Use ISDIGIT instead of isdigit.
4321 (puts_debug): Use gdb_isprint instead of isprint.
4322 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4323 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4324 ISSPACE instead of isspace.
4325 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4326 instead of isspace.
4327 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4328 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4329 instead of isxdigit and ISDIGIT instead of isdigit.
4330
80fc5e77
SM
43312020-05-22 Simon Marchi <simon.marchi@efficios.com>
4332
4333 * gdbtypes.h (struct type) <field>: New method.
4334 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4335 or type::field.
4336
3cabb6b0
SM
43372020-05-22 Simon Marchi <simon.marchi@efficios.com>
4338
4339 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4340 (TYPE_FIELDS): Use type::fields. Change all call sites that
4341 modify the propery to use type::set_fields instead.
4342
1f704f76
SM
43432020-05-22 Simon Marchi <simon.marchi@efficios.com>
4344
4345 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4346 type::num_fields instead.
4347
5e33d5f4
SM
43482020-05-22 Simon Marchi <simon.marchi@efficios.com>
4349
4350 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4351 methods.
4352 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4353 that modify the number of fields to use type::set_num_fields
4354 instead.
4355
9392ebb3
TT
43562020-05-22 Tom Tromey <tromey@adacore.com>
4357
4358 * compile/compile-object-load.h (munmap_list_free): Don't
4359 declare.
4360
7c13f4e8
AB
43612020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4362
4363 * annotate.c (annotate_source_line): Update return type, add call
4364 to update current symtab and line.
4365 * annotate.h (annotate_source_line): Update return type, and
4366 extend header comment.
4367 * source.c (info_line_command): Check annotation_level before
4368 calling annotate_source_line.
4369 * stack.c (print_frame_info): If calling annotate_source_line
4370 returns true, then don't print any other source line information.
4371
aa370940
SM
43722020-05-21 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4375
84d53fa9
SM
43762020-05-21 Simon Marchi <simon.marchi@efficios.com>
4377
4378 * coffread.c (patch_type): Remove NULL check before xfree.
4379 * corefile.c (set_gnutarget): Likewise.
4380 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4381 * exec.c (build_section_table): Likewise.
4382 * remote.c (remote_target::pass_signals): Likewise.
4383 * utils.c (n_spaces): Likewise.
4384 * cli/cli-script.c (document_command): Likewise.
4385 * i386-windows-tdep.c (core_process_module_section): Likewise.
4386 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4387
9d428aae
SM
43882020-05-20 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * symfile.c (reread_symbols): Clear objfile's section_offsets
4391 vector and section indices, re-compute them by calling
4392 sym_offsets.
4393
250106a7
TT
43942020-05-20 Tom Tromey <tromey@adacore.com>
4395
4396 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4397 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4398
9a0bacfb
TV
43992020-05-20 Tom de Vries <tdevries@suse.de>
4400
4401 PR symtab/25833
4402 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4403
7b958a48
AM
44042020-05-20 Alan Modra <amodra@gmail.com>
4405
4406 PR 25993
4407 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4408 bfd_set_filename.
4409 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4410 passed to bfd_set_filename.
4411 * symfile-mem.c (add_vsyscall_page): Likewise for string
4412 passed to symbol_file_add_from_memory.
4413 (symbol_file_add_from_memory): Make name param a const char* and
4414 don't strdup.
4415
c7e97679
AM
44162020-05-20 Alan Modra <amodra@gmail.com>
4417
4418 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4419 rather than accessing bfd->filename directly.
4420 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4421 and use bfd_section_name.
4422 * dwarf2/frame.c (decode_frame_entry): Likewise.
4423 * exec.c (exec_set_section_address): Likewise.
4424 * solib-aix.c (solib_aix_bfd_open): Likewise.
4425 * stap-probe.c (get_stap_base_address): Likewise.
4426 * symfile.c (reread_symbols): Likewise.
4427
563c591b
TT
44282020-05-19 Tom Tromey <tromey@adacore.com>
4429
4430 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4431
f408d82c
SM
44322020-05-19 Simon Marchi <simon.marchi@efficios.com>
4433
4434 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4435
98c59b52
PA
44362020-05-19 Pedro Alves <palves@redhat.com>
4437
4438 * NEWS (set exec-file-mismatch): Adjust entry.
4439 * exec.c: Include "build-id.h".
4440 (validate_exec_file): Try to match build IDs instead of filenames.
4441 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4442 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4443 and pass down 'warn_if_slow'.
4444 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4445 gdb_bfd_open_closure to pass it down.
4446 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4447
4111f652
PA
44482020-05-19 Pedro Alves <palves@redhat.com>
4449
4450 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4451 * target.c (target_fileio_open_1): Rename to target_fileio_open
4452 and make extern. Use bool.
4453 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4454 (target_fileio_read_alloc_1): Adjust.
4455 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4456 (target_fileio_open_warn_if_slow): Delete declaration.
4457
ad80db5b
PA
44582020-05-19 Pedro Alves <palves@redhat.com>
4459
4460 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4461 Adjust all callers.
4462
1d6ce4d3
YS
44632020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4464
4465 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4466 whether disp is negative.
4467
9005fbbb
SM
44682020-05-19 Simon Marchi <simon.marchi@efficios.com>
4469
4470 * symfile.h (struct symfile_segment_data)
4471 <~symfile_segment_data>: Remove.
4472 <segment_info>: Change to std::vector.
4473 * symfile.c (default_symfile_segments): Update.
4474 * elfread.c (elf_symfile_segments): Update.
4475
68b888ff
SM
44762020-05-19 Simon Marchi <simon.marchi@efficios.com>
4477
4478 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4479 <segments>: New.
4480 <segment_bases, segment_sizes>: Remove.
4481 * symfile.c (default_symfile_segments): Update.
4482 * elfread.c (elf_symfile_segments): Update.
4483 * remote.c (remote_target::get_offsets): Update.
4484 * solib-target.c (solib_target_relocate_section_addresses):
4485 Update.
4486
62982abd
SM
44872020-05-19 Simon Marchi <simon.marchi@efficios.com>
4488
4489 * symfile.h (struct symfile_segment_data): Initialize fields.
4490 <~symfile_segment_data>: Add.
4491 (symfile_segment_data_up): New.
4492 (struct sym_fns) <sym_segments>: Return a
4493 symfile_segment_data_up.
4494 (default_symfile_segments): Return a symfile_segment_data_up.
4495 (free_symfile_segment_data): Remove.
4496 (get_symfile_segment_data): Return a symfile_segment_data_up.
4497 * symfile.c (default_symfile_segments): Likewise.
4498 (get_symfile_segment_data): Likewise.
4499 (free_symfile_segment_data): Remove.
4500 (symfile_find_segment_sections): Update.
4501 * elfread.c (elf_symfile_segments): Return a
4502 symfile_segment_data_up.
4503 * remote.c (remote_target::get_offsets): Update.
4504 * solib-target.c (solib_target_relocate_section_addresses):
4505 Update.
4506 * symfile-debug.c (debug_sym_segments): Return a
4507 symfile_segment_data_up.
4508
7f204339
RO
45092020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4510
e52a0f1b
RO
4511 PR build/25981
4512 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4513 Hardcode register numbers.
4514
7f204339
RO
4515 PR build/25981
4516 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4517 procfs_find_LDT_entry): Remove.
4518 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4519 procfs_find_LDT_entry): Remove.
4520 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4521 Remove.
4522
7f32a4d5
PA
45232020-05-17 Pedro Alves <palves@redhat.com>
4524 Andrew Burgess <andrew.burgess@embecosm.com>
4525 Keno Fischer <keno@juliacomputing.com>
4526
4527 PR gdb/25741
4528 * breakpoint.c (build_target_condition_list): Update comments.
4529 (build_target_command_list): Update comments and skip matching
4530 locations.
4531 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4532 a separate function. Simplify "set breakpoint auto-hw off"
4533 handling.
4534 (insert_breakpoints): Update comment.
4535 (tracepoint_locations_match): New parameter. For breakpoints,
4536 compare location types too, if the caller wants to.
4537 (handle_automatic_hardware_breakpoints): New functions.
4538 (bp_location_is_less_than): Also sort by location type and
4539 hardware breakpoint length.
4540 (update_global_location_list): Handle "set breakpoint auto-hw on"
4541 here.
4542 (update_breakpoint_locations): Ask breakpoint_locations_match to
4543 ignore location types.
4544
7d93a1e0
SM
45452020-05-16 Simon Marchi <simon.marchi@efficios.com>
4546
4547 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4548 type::name instead.
4549
d0e39ea2
SM
45502020-05-16 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * gdbtypes.h (struct type) <name, set_name>: New methods.
4553 (TYPE_CODE): Use type::name. Change all call sites used to set
4554 the name to use type::set_name instead.
4555
2dab0c7b
TT
45562020-05-16 Tom Tromey <tom@tromey.com>
4557
4558 * top.c (quit_force): Update.
4559 * infrun.c (handle_no_resumed): Update.
4560 * top.h (all_uis): New function.
4561 (ALL_UIS): Remove.
4562
59f7bd8d
SM
45632020-05-16 Simon Marchi <simon.marchi@efficios.com>
4564
4565 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4566
9bf058f0
PA
45672020-05-16 Pedro Alves <palves@redhat.com>
4568
4569 * ia64-linux-nat.c
4570 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4571 Declare method.
4572 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4573
8f86ae1a
SM
45742020-05-15 Simon Marchi <simon.marchi@efficios.com>
4575
4576 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4577 (sparc64_adi_info): Likewise.
4578
d6bc0792
TT
45792020-05-15 Tom Tromey <tom@tromey.com>
4580
4581 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4582 block_objfile.
4583 (lookup_objfile_from_block): Remove.
4584 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4585 (lookup_global_symbol): Use block_objfile.
4586 * symtab.h (lookup_objfile_from_block): Don't declare.
4587 * printcmd.c (clear_dangling_display_expressions): Use
4588 block_objfile.
4589 * parse.c (operator_check_standard): Use block_objfile.
4590
8c14c3a3
TT
45912020-05-15 Tom Tromey <tom@tromey.com>
4592
4593 * language.c (language_alloc_type_symbol): Set
4594 SYMBOL_SECTION.
4595 * symtab.c (initialize_objfile_symbol): Remove.
4596 (allocate_symbol): Remove.
4597 (allocate_template_symbol): Remove.
4598 * dwarf2/read.c (fixup_go_packaging): Use "new".
4599 (new_symbol): Use "new".
4600 (read_variable): Don't call initialize_objfile_symbol. Use
4601 "new".
4602 (read_func_scope): Use "new".
4603 * xcoffread.c (process_xcoff_symbol): Don't call
4604 initialize_objfile_symbol.
4605 (SYMBOL_DUP): Remove.
4606 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4607 "new".
4608 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4609 (allocate_template_symbol): Don't declare.
4610 (struct symbol): Add copy constructor. Change defaults.
4611 * jit.c (finalize_symtab): Use "new".
4612 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4613 Use "new".
4614 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4615 (common_block_end): Use "new".
4616 * mdebugread.c (parse_symbol): Use "new".
4617 (new_symbol): Likewise.
4618
5b4a1a8d
PW
46192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4620
4621 * NEWS: Mention changes to help and apropos.
4622
57b4f16e
PW
46232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4624
4625 * command.h (enum command_class): Improve comments, document
4626 that class_alias is for user-defined aliases, give the class
4627 name for each class, remove unused class_xdb.
4628 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4629 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4630 by a precise class.
4631 * infcmd.c (_initialize_infcmd): Likewise.
4632 * reverse.c (_initialize_reverse): Likewise.
4633 * stack.c (_initialize_stack): Likewise.
4634 * symfile.c (_initialize_symfile): Likewise.
4635 * tracepoint.c (_initialize_tracepoint): Likewise.
4636
7c05caf7
PW
46372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4638
4639 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4640 when their aliased command is traversed.
4641 (help_cmd): Add fput_command_names_styled call to
4642 output command name and aliases when command has an alias.
4643
3b3aaacb
PW
46442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4645
4646 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4647 * cli/cli-decode.c (help_cmd_list): Declare as static,
4648 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4649 a command together with the command.
4650 (fput_command_name_styled, fput_command_names_styled): New functions.
4651 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4652 fput_command_name_styled.
4653 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4654 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4655
7aa1b46f
PW
46562020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4657
4658 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4659 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4660 * command.h (cmd_show_list): Likewise.
4661 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4662 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4663
89bcba74
PW
46642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4665
4666 * unittests/command-def-selftests.c (traverse_command_structure):
4667 Verify all commands of a list have the same prefix command and
4668 that only the top cmdlist commands have a null prefix.
4669
3f4d92eb
PW
46702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4671
4672 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4673 as prefix, not one of its aliases.
4674 (set_cmd_prefix): Remove.
4675 (do_add_cmd): Centralize the setting of the prefix of a command, when
4676 command is defined after its full chain of prefix commands.
4677 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4678 (add_setshow_cmd_full): Likewise.
4679 (update_prefix_field_of_prefixed_commands): New function.
4680 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4681 update_prefix_field_of_prefixed_commands.
4682 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4683 addresses of remote_set_cmdlist and remote_show_cmdlist given
4684 as argument, not the address of an argument.
4685 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4686 * gdb/remote.c (_initialize_remote): Likewise.
4687
0605465f
PW
46882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4689
4690 * cli/cli-cmds.c (alias_command): Check for an existing alias
4691 using lookup_cmd_composition, as valid_command_p is too strict
4692 and forbids aliases that are the prefix of an existing alias
4693 or command.
4694 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4695 command is properly recognised as a valid command.
4696
58e6ac70
PW
46972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4698
4699 * unittests/help-doc-selftests.c: Rename to
4700 unittests/command-def-selftests.c
4701 * unittests/command-def-selftests.c (help_doc_tests): Update some
4702 comments.
4703 (command_structure_tests, traverse_command_structure): New namespace
4704 and function.
4705 (command_structure_invariants_tests): New function.
4706 (_initialize_command_def_selftests) Renamed from
4707 _initialize_help_doc_selftests, register command_structure_invariants
4708 selftest.
4709
a7b9ceb8
PW
47102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4711
4712 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4713 an alias of 'show'.
4714
b2188a06
JB
47152020-05-15 Joel Brobecker <brobecker@adacore.com>
4716
4717 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4718 ada_is_fixed_point_type. Update all callers.
4719 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4720 all callers.
4721 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4722 Update all callers.
4723 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4724 print_fixed_point_type. Update all callers.
4725 * ada-valprint.c (ada_value_print_num): Replace call to
4726 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4727
a51951c2
KB
47282020-05-14 Kevin Buettner <kevinb@redhat.com>
4729
4730 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4731 processors.
4732 (cpu_supports_bts): Add CV_AMD case.
4733
29d6859f
LM
47342020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4735 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * infrun.c (stop_all_threads): Collect multiple wait events at
4738 each pass.
4739
78134374
SM
47402020-05-14 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4743 type::code instead.
4744
67607e24
SM
47452020-05-14 Simon Marchi <simon.marchi@efficios.com>
4746
4747 * gdbtypes.h (struct type) <code, set_code>: New methods.
4748 (TYPE_CODE): Use type::code. Change all call sites used to set
4749 the code to use type::set_code instead.
4750
a05575d3
TBA
47512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4752 Tom de Vries <tdevries@suse.de>
4753 Pedro Alves <palves@redhat.com>
4754
4755 PR threads/25478
4756 * infrun.c (stop_all_threads): Do NOT ignore
4757 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4758 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4759 received.
4760 (handle_no_resumed): Remove code handling a live inferior with no
4761 threads.
4762 * remote.c (has_single_non_exited_thread): New.
4763 (remote_target::update_thread_list): Do not delete a thread if is
4764 the last thread of the process.
4765 * thread.c (thread_select): Call delete_exited_threads instead of
4766 prune_threads.
4767
6ad82919
TBA
47682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4769
4770 * infrun.c (stop_all_threads): Enable/disable thread events of all
4771 targets. Move a debug message denoting the end of the function
4772 into the SCOPED_EXIT block.
4773
d890404b
TBA
47742020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4775
4776 * process-stratum-target.h: Include <set>.
4777 (all_non_exited_process_targets, switch_to_target_no_thread): New
4778 function declarations.
4779 * process-stratum-target.c (all_non_exited_process_targets)
4780 (switch_to_target_no_thread): New function implementations.
4781
293b3ebc
TBA
47822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4783
4784 * infrun.c (handle_inferior_event): Extract out a piece of code
4785 into...
4786 (mark_non_executing_threads): ...this new function.
4787
7ca9b62a
TBA
47882020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4789
4790 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4791 use.
4792
fc75c28b
TBA
47932020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4794
4795 * regcache.c (regcache_read_pc_protected): New function
4796 implementation that returns 0 if the PC cannot read via
4797 'regcache_read_pc'.
4798 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4799 instead of 'regcache_read_pc'.
4800 (keep_going_pass_signal): Ditto.
4801
a89febbd
TT
48022020-05-13 Tom Tromey <tromey@adacore.com>
4803
4804 * ada-lang.c (align_value): Remove.
4805 (ada_template_to_fixed_record_type_1): Use align_up.
4806
f7e23710
TBA
48072020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4808
4809 * async-event.c: Update the copyright year.
4810 * async-event.h: Update the copyright year.
4811
02ff80c2
SM
48122020-05-12 Simon Marchi <simon.marchi@efficios.com>
4813
4814 * objfiles.h (is_addr_in_objfile,
4815 shared_objfile_contains_address_p): Return bool.
4816 * objfile.c (is_addr_in_objfile,
4817 shared_objfile_contains_address_p): Return bool.
4818
4fd6c7e8
TT
48192020-05-11 Tom Tromey <tromey@adacore.com>
4820
4821 * cli/cli-cmds.c (info_command): Restore.
4822 (_initialize_cli_cmds): Use add_prefix_command for "info".
4823 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4824
5eb68a39
TT
48252020-05-11 Tom Tromey <tromey@adacore.com>
4826
4827 * ada-lang.c (ada_value_primitive_field): Now public.
4828 * ada-lang.h (ada_value_primitive_field): Declare.
4829 * ada-valprint.c (print_field_values): Use
4830 ada_value_primitive_field for wrapper fields.
4831
7666722f
TV
48322020-05-11 Tom de Vries <tdevries@suse.de>
4833
4834 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4835 MODULE_DOMAIN.
4836
3ee6bb11
TV
48372020-05-11 Tom de Vries <tdevries@suse.de>
4838
4839 PR symtab/25941
4840 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4841 with length 0, if not gdb-produced.
4842 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4843
43434996
TV
48442020-05-09 Tom de Vries <tdevries@suse.de>
4845
4846 PR gdb/25955
4847 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4848 calculation.
4849
2f78cffc
TT
48502020-05-09 Tom Tromey <tom@tromey.com>
4851
4852 * top.c (server_command): Now bool.
4853 * top.h (server_command): Now bool.
4854
4f7bc5ed
TT
48552020-05-08 Tom Tromey <tromey@adacore.com>
4856
4857 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4858 already being processed.
4859
8be4b118
TT
48602020-05-08 Tom Tromey <tom@tromey.com>
4861
4862 * printcmd.c (struct display) <next>: Remove.
4863 <display>: New constructor.
4864 <exp_string>: Now a std::string.
4865 <enabled_p>: Now a bool.
4866 (display_number): Move definition earlier.
4867 (displays): Rename from display_chain. Now a std::vector.
4868 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4869 (display_command): Update.
4870 (do_one_display, disable_display)
4871 (enable_disable_display_command, do_enable_disable_display):
4872 Update.
4873 (free_display): Remove.
4874 (clear_displays): Rewrite.
4875 (delete_display): Update.
4876 (map_display_numbers): Use function_view. Remove "data"
4877 parameter. Update.
4878 (do_delete_display): Remove.
4879 (undisplay_command): Update.
4880 (do_one_display, do_displays, disable_display)
4881 (info_display_command): Update.
4882 (do_enable_disable_display): Remove.
4883 (enable_disable_display_command)
4884 (clear_dangling_display_expressions): Update.
4885
94c93c35
TT
48862020-05-08 Tom Tromey <tom@tromey.com>
4887
4888 * symtab.c (set_symbol_cache_size)
4889 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4890 (maintenance_print_symbol_cache_statistics): Update.
4891 * symmisc.c (print_symbol_bcache_statistics)
4892 (print_objfile_statistics, maintenance_print_objfiles)
4893 (maintenance_info_symtabs, maintenance_check_symtabs)
4894 (maintenance_expand_symtabs, maintenance_info_line_tables):
4895 Update.
4896 * symfile-debug.c (set_debug_symfile): Update.
4897 * source.c (forget_cached_source_info): Update.
4898 * python/python.c (gdbpy_progspaces): Update.
4899 * psymtab.c (maintenance_info_psymtabs): Update.
4900 * probe.c (parse_probes): Update.
4901 * linespec.c (iterate_over_all_matching_symtabs)
4902 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4903 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4904 * exec.c (exec_target::close): Update.
4905 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4906 * breakpoint.c (print_one_breakpoint_location)
4907 (create_longjmp_master_breakpoint)
4908 (create_std_terminate_master_breakpoint): Update.
4909 * progspace.c (program_spaces): Now a std::vector.
4910 (maybe_new_address_space): Update.
4911 (add_program_space): Remove.
4912 (program_space::program_space): Update.
4913 (remove_program_space): Update.
4914 (number_of_program_spaces): Remove.
4915 (print_program_space, update_address_spaces): Update.
4916 * progspace.h (program_spaces): Change type.
4917 (ALL_PSPACES): Remove.
4918 (number_of_program_spaces): Don't declare.
4919 (struct program_space) <next>: Remove.
4920
a1fd1ac9
TT
49212020-05-08 Tom Tromey <tom@tromey.com>
4922
4923 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4924 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4925 (enable_break): Update.
4926 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4927 (frv_fdpic_find_canonical_descriptor): Update.
4928 (frv_fetch_objfile_link_map): Update.
4929 * progspace.c (program_space::free_all_objfiles): Update.
4930 (program_space::solibs): New method.
4931 * progspace.h (struct program_space) <solibs>: New method.
4932 * solist.h (master_so_list): Don't declare.
4933 (ALL_SO_LIBS): Remove.
4934 * solib.h (so_list_head): Remove.
4935 (update_solib_list): Update comment.
4936 * solib.c (master_so_list): Remove.
4937 (solib_used, update_solib_list, solib_add)
4938 (info_sharedlibrary_command, clear_solib)
4939 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4940
38eae084
TT
49412020-05-08 Tom Tromey <tom@tromey.com>
4942
4943 * extension.c (extension_languages): Now a std::array.
4944 (ALL_EXTENSION_LANGUAGES): Remove.
4945 (get_ext_lang_defn, get_ext_lang_of_file)
4946 (eval_ext_lang_from_control_command): Update.
4947 (finish_ext_lang_initialization)
4948 (auto_load_ext_lang_scripts_for_objfile)
4949 (ext_lang_type_printers::ext_lang_type_printers)
4950 (apply_ext_lang_type_printers)
4951 (ext_lang_type_printers::~ext_lang_type_printers)
4952 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4953 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4954 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4955 (get_matching_xmethod_workers, ext_lang_colorize)
4956 (ext_lang_before_prompt): Update.
4957 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4958
596dc4ad
TT
49592020-05-08 Tom Tromey <tom@tromey.com>
4960
4961 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4962 overload.
4963 <swap_string, m_string>: Remove.
4964 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
4965 Update.
4966 * stabsread.c (define_symbol, read_type): Update.
4967 * linespec.c (find_linespec_symbols): Update.
4968 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
4969 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
4970 * dbxread.c (read_dbx_symtab): Update.
4971 * cp-support.h (cp_canonicalize_string_full)
4972 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
4973 Return unique_xmalloc_ptr.
4974 * cp-support.c (inspect_type): Update.
4975 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
4976 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
4977 Likewise.
4978 * c-typeprint.c (print_name_maybe_canonical): Update.
4979 * break-catch-throw.c (check_status_exception_catchpoint):
4980 Update.
4981
bf4cb9be
TV
49822020-05-08 Tom de Vries <tdevries@suse.de>
4983
4984 * infrun.c (follow_fork): Copy current_line and current_symtab to
4985 child thread.
4986
a1b68f28
SM
49872020-05-07 Simon Marchi <simon.marchi@efficios.com>
4988
4989 * async-event.c (struct async_signal_handler, struct
4990 async_event_handler): Reformat, remove typedef.
4991
98d48915
SM
49922020-05-07 Simon Marchi <simon.marchi@efficios.com>
4993
4994 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
4995 access thistype->main_type->dyn_prop_list directly.
4996
7aa91313
SM
49972020-05-07 Simon Marchi <simon.marchi@efficios.com>
4998
4999 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5000 (remove_dyn_prop): Remove. Update all users to use
5001 type::remove_dyn_prop.
5002 * gdbtypes.c (remove_dyn_prop): Rename to...
5003 (type::remove_dyn_prop): ... this.
5004
5c54719c
SM
50052020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5006
5007 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5008 (add_dyn_prop): Remove. Update all users to use
5009 type::add_dyn_prop.
5010 * gdbtypes.c (add_dyn_prop): Rename to...
5011 (type::add_dyn_prop): ... this.
5012
24e99c6c
SM
50132020-05-07 Simon Marchi <simon.marchi@efficios.com>
5014
5015 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5016 (get_dyn_prop): Remove. Update all users to use
5017 type::dyn_prop.
5018 * gdbtypes.c (get_dyn_prop): Rename to...
5019 (type::dyn_prop): ... this.
5020
0d4bf016
SM
50212020-05-06 Simon Marchi <simon.marchi@efficios.com>
5022
5023 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5024
ac4a4f1c
SM
50252020-05-06 Simon Marchi <simon.marchi@efficios.com>
5026
5027 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5028 instruction, skip it if it's there.
5029
a3bbacc1
SM
50302020-05-05 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5033
c3236f84
SM
50342020-05-04 Simon Marchi <simon.marchi@efficios.com>
5035
5036 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5037 * gdbtypes.c (recursive_dump_type): Remove use of
5038 TYPE_INCOMPLETE.
5039
3b6acaee
TT
50402020-05-03 Tom Tromey <tom@tromey.com>
5041
5042 * breakpoint.c (catch_command, tcatch_command): Remove.
5043 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5044 add_show_prefix_cmd.
5045 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5046 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5047 Remove.
5048 (add_internal_problem_command): Use add_basic_prefix_cmd,
5049 add_show_prefix_cmd.
5050 * mips-tdep.c (set_mipsfpu_command): Remove.
5051 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5052 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5053 (_initialize_index_cache): Use add_basic_prefix_cmd.
5054 * memattr.c (dummy_cmd): Remove.
5055 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5056 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5057 (_initialize_tui_win): Use add_basic_prefix_cmd,
5058 add_show_prefix_cmd.
5059 * cli/cli-logging.c (set_logging_command): Remove.
5060 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5061 add_show_prefix_cmd.
5062 (show_logging_command): Remove.
5063 * target.c (target_command): Remove.
5064 (add_target): Use add_basic_prefix_cmd.
5065
a51119cd
HD
50662020-05-02 Hannes Domani <ssbssa@yahoo.de>
5067
5068 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5069
652fc23a 50702020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5071
652fc23a
PW
5072 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5073 info_command.
5074
117539e6
KR
50752020-04-30 Kamil Rytarowski <n54@gmx.com>
5076
5077 * nbsd-nat.c (nbsd_enable_proc_events)
5078 (nbsd_nat_target::post_startup_inferior): Add.
5079 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5080 (nbsd_nat_target::update_thread_list): Rewrite.
5081 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5082 "PTRACE_LWP_CREATE".
5083 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5084
102e38eb 50852020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5086
102e38eb
PW
5087 * stack.c (_initialize_stack): Remove duplicated creation
5088 of "frame" command and "f" alias.
5089
ee9d1e5f
HD
50902020-04-30 Hannes Domani <ssbssa@yahoo.de>
5091
5092 PR gdb/18706
5093 * gdbtypes.c (check_typedef): Calculate size of array of
5094 stubbed type.
5095
627c7fb8
HD
50962020-04-30 Hannes Domani <ssbssa@yahoo.de>
5097
5098 PR gdb/15559
5099 * i386-tdep.c (i386_push_dummy_call): Call
5100 i386_thiscall_push_dummy_call.
5101 (i386_thiscall_push_dummy_call): New function.
5102 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5103 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5104 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5105
ffc2844e
SM
51062020-04-29 Simon Marchi <simon.marchi@efficios.com>
5107
5108 * gdbarch.sh (do_read): Add shellcheck disable directive for
5109 warning SC2162.
5110
1207375d
SM
51112020-04-29 Simon Marchi <simon.marchi@efficios.com>
5112
5113 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5114 "referenced but not assigned" warning.
5115
9fdb2916
SM
51162020-04-29 Simon Marchi <simon.marchi@efficios.com>
5117
5118 * gdbarch.sh: Remove code that sets fallbackdefault.
5119
759cea5e
SM
51202020-04-29 Simon Marchi <simon.marchi@efficios.com>
5121
5122 * gdbarch.sh: Use shell operators && and || instead of
5123 -a and -o.
5124
cb02ab24
SM
51252020-04-29 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * gdbarch.sh: Use $(...) instead of `...`.
5128
a6fc5ffc
SM
51292020-04-29 Simon Marchi <simon.marchi@efficios.com>
5130
5131 * gdbarch.sh: Use double quotes around variables.
5132
8d113d13
SM
51332020-04-29 Simon Marchi <simon.marchi@efficios.com>
5134
5135 * gdbarch.sh: Use %s with printf, instead of variables in the
5136 format string.
5137
ed6acedd
TT
51382020-04-29 Tom Tromey <tromey@adacore.com>
5139
5140 PR ada/25875:
5141 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5142 type fields here.
5143 (read_enumeration_type): Call
5144 update_enumeration_type_from_children later. Update comments.
5145 (process_enumeration_scope): Don't create type fields.
5146
b68b1b58
KR
51472020-04-29 Kamil Rytarowski <n54@gmx.com>
5148
5149 * nbsd-tdep.c: Include "xml-syscall.h".
5150 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5151
f94b2e03
KR
51522020-04-29 Kamil Rytarowski <n54@gmx.com>
5153
5154 * nbsd-nat.c: Include "sys/wait.h".
5155 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5156 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5157 (nbsd_nat_target::remove_exec_catchpoint)
5158 (nbsd_nat_target::set_syscall_catchpoint): Add.
5159 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5160 (nbsd_nat_target::insert_exec_catchpoint)
5161 (nbsd_nat_target::remove_exec_catchpoint)
5162 (nbsd_nat_target::set_syscall_catchpoint): Add.
5163 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5164 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5165 `nbsd_get_syscall_number'.
5166
fc49bc72
TT
51672020-04-29 Tom Tromey <tom@tromey.com>
5168
5169 * stack.c (print_block_frame_labels): Remove.
5170
d642b692
HD
51712020-04-29 Hannes Domani <ssbssa@yahoo.de>
5172
5173 PR gdb/17320
5174 * ada-valprint.c (val_print_packed_array_elements): Move array
5175 end bracket to new line.
5176 (ada_val_print_string): Remove extra spaces before first array
5177 element.
5178 * c-valprint.c (c_value_print_array): Likewise.
5179 * m2-valprint.c (m2_print_array_contents): Likewise.
5180 (m2_value_print_inner): Likewise.
5181 * p-valprint.c (pascal_value_print_inner): Likewise.
5182 * valprint.c (generic_val_print_array): Likewise.
5183 (value_print_array_elements): Move first array element and array
5184 end bracket to new line.
5185
ea90f227
TV
51862020-04-29 Tom de Vries <tdevries@suse.de>
5187
5188 PR symtab/25889
5189 * linespec.c (find_method): Fix ix calculation.
5190
4498ef4f
KR
51912020-04-28 Kamil Rytarowski <n54@gmx.com>
5192
5193 * syscalls/update-netbsd.sh: New file.
5194 * syscalls/netbsd.xml: Regenerate.
5195 * data-directory/Makefile.in: Register `netbsd.xml' in
5196 `SYSCALLS_FILES'.
5197
a55e30b5
SM
51982020-04-28 Simon Marchi <simon.marchi@efficios.com>
5199
5200 * syscalls/update-freebsd.sh: Add double quotes.
5201
2b2fbab8
TT
52022020-04-28 Tom Tromey <tom@tromey.com>
5203
5204 * NEWS: Update.
5205 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5206 (cmdpy_init): Allow class_tui.
5207
a65189c9
TV
52082020-04-28 Mark Williams <mark@myosotissp.com>
5209
5210 PR gdb/24480
5211 * dwarf2read.c: Add missing assingments to list_in_scope when
5212 start_symtab was already called.
5213
1b95cdb7
SM
52142020-04-28 Simon Marchi <simon.marchi@efficios.com>
5215
5216 PR gdb/25881
5217 * dwarf2/read.c (offset_map_type): Use
5218 gdb:hash_enum<sect_offset> as hash function.
5219
15cd93d0
TV
52202020-04-28 Tom de Vries <tdevries@suse.de>
5221
5222 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5223 with DW_AT_signature.
5224
1eb39914
SM
52252020-04-27 Simon Marchi <simon.marchi@efficios.com>
5226
5227 * configure.ac: Remove check for fs_base/gs_base in
5228 user_regs_struct.
5229 * configure: Re-generate.
5230 * config.in: Re-generate.
5231 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5232 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5233 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5234
991a3e2e
LM
52352020-04-27 Luis Machado <luis.machado@linaro.org>
5236
5237 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5238 problematic inline frame unwinding situation.
5239 * frame.c (frame_id_computed_p): New function.
5240 * frame.h (frame_id_computed_p): New prototype.
5241
361ba0e8
TT
52422020-04-26 Tom Tromey <tom@tromey.com>
5243
5244 * command.h (enum command_class) <class_pseudo>: Remove.
5245
bc3609fd
PW
52462020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5247
5248 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5249 and whitespace.
5250
b9771db7
KR
52512020-04-25 Kamil Rytarowski <n54@gmx.com>
5252
ec16513e
SM
5253 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5254 `PT_GET_PROCESS_STATE' block.
b9771db7 5255
7151c1af
TT
52562020-04-24 Tom Tromey <tom@tromey.com>
5257
5258 * symtab.h (symbol_get_demangled_name): Don't declare.
5259 * symtab.c (symbol_get_demangled_name): Remove.
5260 (general_symbol_info::natural_name)
5261 (general_symbol_info::demangled_name): Update.
5262
906bb4c5
TT
52632020-04-24 Tom Tromey <tom@tromey.com>
5264
5265 PR rust/25025:
5266 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5267
bcfe6157
TT
52682020-04-24 Tom Tromey <tom@tromey.com>
5269
5270 PR symtab/12707:
5271 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5272 exists.
5273 (new_symbol): Likewise.
5274 * compile/compile-object-load.c (get_out_value_type): Use
5275 symbol_matches_search_name.
5276
f049a313
TT
52772020-04-24 Tom Tromey <tom@tromey.com>
5278
5279 * dwarf2/read.c (add_partial_symbol): Do not call
5280 compute_and_set_names.
5281
76e288d1
TT
52822020-04-24 Tom Tromey <tom@tromey.com>
5283
5284 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5285 overload.
5286
2467f4f6
TT
52872020-04-24 Tom Tromey <tom@tromey.com>
5288
5289 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5290 (add_psymbol_to_list): New overload. Make old overload call new
5291 one.
5292 * psympriv.h (add_psymbol_to_list): New overload.
5293
e61108c9
TT
52942020-04-24 Tom Tromey <tom@tromey.com>
5295
5296 * dwarf2/read.c (partial_die_info::read) <case
5297 DW_AT_linkage_name>: Use value_as_string.
5298 (dwarf2_string_attr): Use value_as_string.
5299 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5300 method.
5301 * dwarf2/attribute.c (attribute::value_as_string): New method.
5302
8c87a452
TT
53032020-04-24 Tom Tromey <tom@tromey.com>
5304
5305 * symtab.c (general_symbol_info::natural_name)
5306 (general_symbol_info::demangled_name): Check for language_rust.
5307
787de330
TT
53082020-04-24 Tom Tromey <tom@tromey.com>
5309
5310 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5311 (dwarf2_physname): ... from here.
5312 (partial_die_info::read): Add Rust "{" hack.
5313
ff985671
TT
53142020-04-24 Tom Tromey <tom@tromey.com>
5315
5316 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5317 method.
5318 (symbol_set_demangled_name): Don't declare.
5319 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5320 symbol_set_demangled_name.
5321 (general_symbol_info::set_language)
5322 (general_symbol_info::compute_and_set_names): Update.
5323 * minsyms.c (minimal_symbol_reader::install): Update.
5324 * dwarf2/read.c (new_symbol): Update.
5325
1acda803
TT
53262020-04-24 Tom Tromey <tromey@adacore.com>
5327
5328 PR python/23662:
5329 * python/py-type.c (convert_field): Handle
5330 FIELD_LOC_KIND_DWARF_BLOCK.
5331 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5332 (typy_get_dynamic): Nw function.
5333 (type_object_getset): Add "dynamic".
5334 * NEWS: Add entry.
5335
d656f129
TT
53362020-04-24 Tom Tromey <tromey@adacore.com>
5337
5338 * ada-typeprint.c (print_choices, print_variant_part)
5339 (print_record_field_types_dynamic): New functions.
5340 (print_record_field_types): Use print_record_field_types_dynamic.
5341
7d79de9a
TT
53422020-04-24 Tom Tromey <tromey@adacore.com>
5343
5344 * dwarf2/read.c (handle_data_member_location): New overload.
5345 (dwarf2_add_field): Use it.
5346 (decode_locdesc): Add "computed" parameter. Update comment.
5347 * gdbtypes.c (is_dynamic_type_internal): Also look for
5348 FIELD_LOC_KIND_DWARF_BLOCK.
5349 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5350 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5351 virtual base classes.
5352 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5353 FIELD_LOC_KIND_DWARF_BLOCK.
5354
f8e89861
TT
53552020-04-24 Tom Tromey <tromey@adacore.com>
5356
5357 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5358 * gdbtypes.c (is_dynamic_type_internal): Check
5359 TYPE_HAS_DYNAMIC_LENGTH.
5360 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5361 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5362 New macros.
5363 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5364 constant.
5365
9c6a1327
TT
53662020-04-24 Tom Tromey <tromey@adacore.com>
5367
5368 * dwarf2/read.c (struct variant_field): Rewrite.
5369 (struct variant_part_builder): New.
5370 (struct nextfield): Remove "variant" field. Add "offset".
5371 (struct field_info): Add "current_variant_part" and
5372 "variant_parts".
5373 (alloc_discriminant_info): Remove.
5374 (alloc_rust_variant): New function.
5375 (quirk_rust_enum): Update.
5376 (dwarf2_add_field): Set "offset" member. Don't handle
5377 DW_TAG_variant_part.
5378 (offset_map_type): New typedef.
5379 (convert_variant_range, create_one_variant)
5380 (create_one_variant_part, create_variant_parts)
5381 (add_variant_property): New functions.
5382 (dwarf2_attach_fields_to_type): Call add_variant_property.
5383 (read_structure_type): Don't handle DW_TAG_variant_part.
5384 (handle_variant_part, handle_variant): New functions.
5385 (handle_struct_member_die): Use them.
5386 (process_structure_scope): Don't handle variant parts.
5387 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5388 (struct discriminant_info): Remove.
5389 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5390 (struct main_type) <flag_discriminated_union>: Remove.
5391 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5392 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5393 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5394 Update.
5395 * valops.c (value_union_variant): Remove.
5396 * value.h (value_union_variant): Don't declare.
5397
b249d2c2
TT
53982020-04-24 Tom Tromey <tromey@adacore.com>
5399
5400 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5401 (ada_value_primitive_packed_val): Update.
5402 * ada-valprint.c (ada_value_print_1): Update.
5403 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5404 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5405 just an address. Use evaluate_for_locexpr_baton.
5406 (dwarf2_evaluate_property): Update.
5407 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5408 array_view.
5409 * findvar.c (default_read_var_value): Update.
5410 * gdbtypes.c (compute_variant_fields_inner)
5411 (resolve_dynamic_type_internal): Update.
5412 (resolve_dynamic_type): Change type of valaddr parameter.
5413 * gdbtypes.h (resolve_dynamic_type): Update.
5414 * valarith.c (value_subscripted_rvalue): Update.
5415 * value.c (value_from_contents_and_address): Update.
5416
61122aa9
TT
54172020-04-24 Tom Tromey <tromey@adacore.com>
5418
5419 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5420 "push_initial_value" parameter.
5421 (dwarf2_evaluate_property): Likewise.
5422 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5423
ef83a141
TT
54242020-04-24 Tom Tromey <tromey@adacore.com>
5425
5426 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5427 (variant::matches, compute_variant_fields_recurse)
5428 (compute_variant_fields_inner, compute_variant_fields): New
5429 functions.
5430 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5431 Use resolved_type after type is made.
5432 (operator==): Add new cases.
5433 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5434 (struct discriminant_range, struct variant, struct variant_part):
5435 New.
5436 (union dynamic_prop_data) <variant_parts, original_type>: New
5437 members.
5438 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5439 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5440 constants.
5441 * value.c (unpack_bits_as_long): Now public.
5442 * value.h (unpack_bits_as_long): Declare.
5443
675127ec
TT
54442020-04-24 Tom Tromey <tromey@adacore.com>
5445
5446 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5447 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5448
9852ceef
HD
54492020-04-24 Hannes Domani <ssbssa@yahoo.de>
5450
5451 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5452
7632c6ce
KR
54532020-04-24 Kamil Rytarowski <n54@gmx.com>
5454
5455 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5456 (remove_fork_catchpoint, post_startup_inferior)
5457 (post_attach): Move...
5458 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5459 (remove_fork_catchpoint, post_startup_inferior)
5460 (post_attach): ...here.
5461 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5462 (remove_fork_catchpoint, post_startup_inferior)
5463 (post_attach): Move...
5464 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5465 (remove_fork_catchpoint, post_startup_inferior)
5466 (post_attach): ...here.
5467
7be2bb4f
TT
54682020-04-24 Tom Tromey <tromey@adacore.com>
5469
5470 * nat/windows-nat.h (struct windows_thread_info)
5471 <pc_adjusted>: New member.
5472 * windows-nat.c (windows_fetch_one_register): Check
5473 pc_adjusted.
5474 (windows_nat_target::get_windows_debug_event)
5475 (windows_nat_target::wait): Set pc_adjusted.
5476
f80cb3b4
TV
54772020-04-24 Tom de Vries <tdevries@suse.de>
5478
5479 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5480 Run gdb-add-index inside temp dir.
5481
29514b87
TT
54822020-04-23 Tom Tromey <tromey@adacore.com>
5483
5484 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5485 in loop.
5486
5939967b
LM
54872020-04-23 Luis Machado <luis.machado@linaro.org>
5488
5489 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5490 get_frame_register instead of gdbarch_unwind_pc.
5491
70bc38f5
TV
54922020-04-23 Tom de Vries <tdevries@suse.de>
5493
5494 * symtab.c (lookup_global_symbol): Prefer def over decl.
5495
de82891c
TV
54962020-04-23 Tom de Vries <tdevries@suse.de>
5497
5498 PR symtab/25807
5499 * block.c (best_symbol, better_symbol): Promote to external.
5500 * block.h (best_symbol, better_symbol): Declare.
5501 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5502 decl.
5503
ecc6c606
TT
55042020-04-23 Tom Tromey <tromey@adacore.com>
5505
5506 PR ada/25837:
5507 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5508 "const char *", not a "const std::string &".
5509 <name_and_matcher::operator==>: Update.
5510 * unittests/lookup_name_info-selftests.c: Change type of
5511 "result".
5512
740480b8
TT
55132020-04-23 Tom Tromey <tom@tromey.com>
5514
5515 * inferior.h (iterate_over_inferiors): Don't declare.
5516 * inferior.c (iterate_over_inferiors): Remove.
5517 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5518 Remove.
5519 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5520 use iterate_over_inferiors.
5521 (darwin_resume_inferior_it)
5522 (struct resume_inferior_threads_param)
5523 (darwin_resume_inferior_threads_it): Remove.
5524 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5525
ae3ab1f0
TV
55262020-04-23 Tom de Vries <tdevries@suse.de>
5527
5528 * blockframe.c (find_pc_partial_function): Use
5529 find_pc_sect_compunit_symtab rather than
5530 objfile->sf->qf->find_pc_sect_compunit_symtab.
5531
317d2668
TV
55322020-04-22 Tom de Vries <tdevries@suse.de>
5533
5534 PR symtab/25764
5535 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5536 in psymtabs.
5537
eea9e357
TV
55382020-04-22 Tom de Vries <tdevries@suse.de>
5539
5540 PR symtab/25801
5541 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5542 symtabs.
5543
3d5afab3
TV
55442020-04-22 Tom de Vries <tdevries@suse.de>
5545
5546 PR symtab/25700
5547 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5548 CU if already created.
5549
d43b7a2d
TBA
55502020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5551
5552 * infrun.c (displaced_step_fixup): Switch to the event_thread
5553 before calling displaced_step_restore, not after.
5554
d89edf9b
MM
55552020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5556
5557 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5558 its inferior is not recorded by us.
5559 (record_btrace_target_open): Replace call to
5560 all_non_exited_threads () with call to current_inferior
5561 ()->non_exited_threads ().
5562 (record_btrace_target::stop_recording): Likewise.
5563 (record_btrace_target::close): Likewise.
5564 (record_btrace_target::wait): Likewise.
5565 (record_btrace_target::record_stop_replaying): Likewise.
5566
5897fd49
MM
55672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5568
5569 * btrace.c (btrace_enable): Throw an error on double enables and
5570 when enabling recording fails.
5571 (btrace_disable): Throw an error if the thread is not recorded.
5572
1a476b6d
MM
55732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5574
5575 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5576 request if we do not have a thread_info.
5577
4778a5f8
TV
55782020-04-21 Tom de Vries <tdevries@suse.de>
5579
5580 PR gdb/25471
5581 * thread.c
5582 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5583 exception in get_frame_id.
5584
0fa7617d
TT
55852020-04-20 Tom Tromey <tromey@adacore.com>
5586
5587 * python/python.c (struct gdbpy_event): Mark move constructor as
5588 noexcept.
5589 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5590 constructor as noexcept.
5591 * completer.h (struct completion_result): Mark move constructor as
5592 noexcept.
5593 * completer.c (completion_result::completion_result): Use
5594 initialization style. Don't call reset_match_list.
5595
ad23bda0
MS
55962020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5597
5598 * MAINTAINERS (Write After Approval): Add myself.
5599
45e1f031
TT
56002020-04-18 Tom Tromey <tom@tromey.com>
5601
5602 * windows-tdep.c (init_w32_command_list)
5603 (w32_prefix_command_valid): Restore.
5604 (_initialize_windows_tdep): Call init_w32_command_list.
5605
08feed99
TT
56062020-04-18 Tom Tromey <tom@tromey.com>
5607
5608 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5609 * value.c (value_fn_field): Update.
5610 * valops.c (find_function_in_inferior)
5611 (value_allocate_space_in_inferior): Update.
5612 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5613 Update.
5614 * tui/tui-source.c (tui_source_window::set_contents): Update.
5615 * symtab.c (lookup_global_or_static_symbol)
5616 (find_function_start_sal_1, skip_prologue_sal)
5617 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5618 * symmisc.c (dump_msymbols, dump_symtab_1)
5619 (maintenance_print_one_line_table): Update.
5620 * symfile.c (init_entry_point_info, section_is_mapped)
5621 (list_overlays_command, simple_read_overlay_table)
5622 (simple_overlay_update_1): Update.
5623 * stap-probe.c (handle_stap_probe): Update.
5624 * stabsread.c (dbx_init_float_type, define_symbol)
5625 (read_one_struct_field, read_enum_type, read_range_type): Update.
5626 * source.c (info_line_command): Update.
5627 * python/python.c (gdbpy_source_objfile_script)
5628 (gdbpy_execute_objfile_script): Update.
5629 * python/py-type.c (save_objfile_types): Update.
5630 * python/py-objfile.c (py_free_objfile): Update.
5631 * python/py-inferior.c (python_new_objfile): Update.
5632 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5633 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5634 (maintenance_check_psymtabs): Update.
5635 * printcmd.c (info_address_command): Update.
5636 * objfiles.h (struct objfile) <arch>: New method, from
5637 get_objfile_arch.
5638 (get_objfile_arch): Don't declare.
5639 * objfiles.c (get_objfile_arch): Remove.
5640 (filter_overlapping_sections): Update.
5641 * minsyms.c (msymbol_is_function): Update.
5642 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5643 (output_nondebug_symbol): Update.
5644 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5645 (mdebug_expand_psymtab): Update.
5646 * machoread.c (macho_add_oso_symfile): Update.
5647 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5648 Update.
5649 * linux-fork.c (checkpoint_command): Update.
5650 * linespec.c (convert_linespec_to_sals): Update.
5651 * jit.c (finalize_symtab): Update.
5652 * infrun.c (insert_exception_resume_from_probe): Update.
5653 * ia64-tdep.c (ia64_find_unwind_table): Update.
5654 * hppa-tdep.c (internalize_unwinds): Update.
5655 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5656 Update.
5657 * gcore.c (call_target_sbrk): Update.
5658 * elfread.c (record_minimal_symbol, elf_symtab_read)
5659 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5660 (elf_gnu_ifunc_resolve_by_got): Update.
5661 * dwarf2/read.c (create_addrmap_from_index)
5662 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5663 (read_debug_names_from_section)
5664 (process_psymtab_comp_unit_reader, add_partial_symbol)
5665 (add_partial_subprogram, process_full_comp_unit)
5666 (read_file_scope, read_func_scope, read_lexical_block_scope)
5667 (read_call_site_scope, dwarf2_ranges_read)
5668 (dwarf2_record_block_ranges, dwarf2_add_field)
5669 (mark_common_block_symbol_computed, read_tag_pointer_type)
5670 (read_tag_string_type, dwarf2_init_float_type)
5671 (dwarf2_init_complex_target_type, read_base_type)
5672 (partial_die_info::read, partial_die_info::read)
5673 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5674 (dwarf2_fetch_die_loc_sect_off): Update.
5675 * dwarf2/loc.c (dwarf2_find_location_expression)
5676 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5677 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5678 (dwarf2_loc_desc_get_symbol_read_needs)
5679 (locexpr_describe_location_piece, locexpr_describe_location_1)
5680 (loclist_describe_location): Update.
5681 * dwarf2/index-write.c (write_debug_names): Update.
5682 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5683 * dtrace-probe.c (dtrace_process_dof): Update.
5684 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5685 (process_one_symbol): Update.
5686 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5687 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5688 (coff_read_enum_type): Update.
5689 * cli/cli-cmds.c (edit_command, list_command): Update.
5690 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5691 * breakpoint.c (create_overlay_event_breakpoint)
5692 (create_longjmp_master_breakpoint)
5693 (create_std_terminate_master_breakpoint)
5694 (create_exception_master_breakpoint, get_sal_arch): Update.
5695 * block.c (block_gdbarch): Update.
5696 * annotate.c (annotate_source_line): Update.
5697
0743fc83
TT
56982020-04-17 Tom Tromey <tromey@adacore.com>
5699
5700 * auto-load.c (show_auto_load_cmd): Remove.
5701 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5702 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5703 (maintenance_print_arc_command): Remove.
5704 * tui/tui-win.c (tui_command): Remove.
5705 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5706 * tui/tui-layout.c (tui_layout_command): Remove.
5707 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5708 * python/python.c (user_set_python, user_show_python): Remove.
5709 (_initialize_python): Use add_basic_prefix_cmd,
5710 add_show_prefix_cmd.
5711 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5712 (install_gdb_commands): Use add_basic_prefix_cmd,
5713 add_show_prefix_cmd.
5714 (info_guile_command): Remove.
5715 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5716 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5717 add_show_prefix_cmd.
5718 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5719 Remove do_set and do_show parameters.
5720 * cli/cli-style.c (set_style, show_style): Remove.
5721 (_initialize_cli_style): Use add_basic_prefix_cmd,
5722 add_show_prefix_cmd.
5723 (cli_style_option::add_setshow_commands): Remove do_set and
5724 do_show parameters.
5725 (cli_style_option::add_setshow_commands): Use
5726 add_basic_prefix_cmd, add_show_prefix_cmd.
5727 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5728 (set_style_name): Remove.
5729 * cli/cli-dump.c (dump_command, append_command): Remove.
5730 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5731 (tekhex_dump_command, binary_dump_command)
5732 (binary_append_command): Remove.
5733 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5734 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5735 (init_w32_command_list): Remove; move into ...
5736 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5737 * valprint.c (set_print, show_print, set_print_raw)
5738 (show_print_raw): Remove.
5739 (_initialize_valprint): Use add_basic_prefix_cmd,
5740 add_show_prefix_cmd.
5741 * typeprint.c (set_print_type, show_print_type): Remove.
5742 (_initialize_typeprint): Use add_basic_prefix_cmd,
5743 add_show_prefix_cmd.
5744 * record.c (set_record_command, show_record_command): Remove.
5745 (_initialize_record): Use add_basic_prefix_cmd,
5746 add_show_prefix_cmd.
5747 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5748 add_show_prefix_cmd.
5749 (info_command, show_command, set_debug, show_debug): Remove.
5750 * top.h (set_history, show_history): Don't declare.
5751 * top.c (set_history, show_history): Remove.
5752 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5753 (unset_tdesc_cmd): Remove.
5754 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5755 add_show_prefix_cmd.
5756 * symtab.c (info_module_command): Remove.
5757 (_initialize_symtab): Use add_basic_prefix_cmd.
5758 * symfile.c (overlay_command): Remove.
5759 (_initialize_symfile): Use add_basic_prefix_cmd.
5760 * sparc64-tdep.c (info_adi_command): Remove.
5761 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5762 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5763 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5764 add_show_prefix_cmd.
5765 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5766 (_initialize_serial): Use add_basic_prefix_cmd,
5767 add_show_prefix_cmd.
5768 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5769 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5770 add_show_prefix_cmd.
5771 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5772 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5773 add_show_prefix_cmd.
5774 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5775 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5776 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5777 add_show_prefix_cmd.
5778 * remote.c (remote_command, set_remote_cmd): Remove.
5779 (_initialize_remote): Use add_basic_prefix_cmd.
5780 * record-full.c (set_record_full_command)
5781 (show_record_full_command): Remove.
5782 (_initialize_record_full): Use add_basic_prefix_cmd,
5783 add_show_prefix_cmd.
5784 * record-btrace.c (cmd_set_record_btrace)
5785 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5786 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5787 (cmd_show_record_btrace_pt): Remove.
5788 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5789 add_show_prefix_cmd.
5790 * ravenscar-thread.c (set_ravenscar_command)
5791 (show_ravenscar_command): Remove.
5792 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5793 add_show_prefix_cmd.
5794 * mips-tdep.c (show_mips_command, set_mips_command)
5795 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5796 add_show_prefix_cmd.
5797 * maint.c (maintenance_command, maintenance_info_command)
5798 (maintenance_check_command, maintenance_print_command)
5799 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5800 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5801 add_show_prefix_cmd.
5802 (show_per_command_cmd): Remove.
5803 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5804 Remove.
5805 (maintenance_show_test_settings_cmd): Remove.
5806 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5807 add_show_prefix_cmd.
5808 * maint-test-options.c (maintenance_test_options_command):
5809 Remove.
5810 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5811 * macrocmd.c (macro_command): Remove
5812 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5813 * language.c (set_check, show_check): Remove.
5814 (_initialize_language): Use add_basic_prefix_cmd,
5815 add_show_prefix_cmd.
5816 * infcmd.c (unset_command): Remove.
5817 (_initialize_infcmd): Use add_basic_prefix_cmd.
5818 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5819 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5820 add_show_prefix_cmd.
5821 * go32-nat.c (go32_info_dos_command): Remove.
5822 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5823 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5824 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5825 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5826 (_initialize_frame): Use add_basic_prefix_cmd,
5827 add_show_prefix_cmd.
5828 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5829 (_initialize_dcache): Use add_basic_prefix_cmd,
5830 add_show_prefix_cmd.
5831 * cp-support.c (maint_cplus_command): Remove.
5832 (_initialize_cp_support): Use add_basic_prefix_cmd.
5833 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5834 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5835 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5836 add_basic_prefix_cmd, add_show_prefix_cmd.
5837 * breakpoint.c (save_command): Remove.
5838 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5839 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5840 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5841 add_show_prefix_cmd.
5842 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5843 (set_ada_command, show_ada_command): Remove.
5844 (_initialize_ada_language): Use add_basic_prefix_cmd,
5845 add_show_prefix_cmd.
5846 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5847
3557f442
KR
58482020-04-16 Kamil Rytarowski <n54@gmx.com>
5849
5850 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5851 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5852
16197208
SM
58532020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5854
5855 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5856 warning messages.
5857
00ac85d3
SM
58582020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5859
5860 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5861 import table is not at beginning of .idata section.
5862
381ce63f
PA
58632020-04-16 Pedro Alves <palves@redhat.com>
5864
5865 * inferior.c (delete_inferior): Use delete operator directly
5866 instead of delete_program_space.
5867 * progspace.c (add_program_space): New, factored out from
5868 program_space::program_space.
5869 (remove_program_space): New, factored out from
5870 delete_program_space.
5871 (program_space::program_space): Remove intro comment. Rewrite.
5872 (program_space::~program_space): Remove intro comment. Call
5873 remove_program_space.
5874 (delete_program_space): Delete.
5875 * progspace.h (program_space::program_space): Make explicit. Move
5876 intro comment here, adjusted.
5877 (program_space::~program_space): Move intro comment here,
5878 adjusted.
5879 (delete_program_space): Remove.
5880
a010605f
TT
58812020-04-16 Tom Tromey <tromey@adacore.com>
5882
5883 * windows-nat.c (windows_nat::handle_access_violation): New
5884 function.
5885 * nat/windows-nat.h (handle_access_violation): Declare.
5886 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5887 windows-nat.c. Call handle_access_violation.
5888
efba5c23
TV
58892020-04-16 Tom de Vries <tdevries@suse.de>
5890
5891 PR symtab/25791
5892 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5893 CUs without psymtab.
5894
97ed802d
KB
58952020-04-16 Kevin Buettner <kevinb@redhat.com>
5896
5897 * python/python.c (do_start_initialization): Don't call
5898 PyEval_InitThreads for Python 3.9 and beyond.
5899
c7d64809
KR
59002020-04-15 Kamil Rytarowski <n54@gmx.com>
5901
5902 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5903 thread functions.
5904 (obsd_nat_target::wait): Likewise.
5905
ce127a96
TT
59062020-04-15 Tom Tromey <tromey@adacore.com>
5907
5908 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5909 (DEBUG_EXCEPT): Use debug_printf.
5910
99f1bc6a
AB
59112020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5912
5913 * completer.c (class completion_tracker::completion_hash_entry)
5914 <hash_name>: New member function.
5915 (completion_tracker::discard_completions): New callback to hash a
5916 completion_hash_entry, pass this to htab_create_alloc.
5917
a0e9b532
JT
59182016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5919
5920 * windows-nat.c (windows_make_so): Warn rather than stopping with
5921 an error if realpath() fails.
5922
06ca5dd4
KR
59232020-04-14 Kamil Rytarowski <n54@gmx.com>
5924
5925 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5926 (nbsd_nat_target::info_proc): Add do_status.
5927
194d088f
TV
59282020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5929 Tom de Vries <tdevries@suse.de>
5930
5931 PR symtab/25718
5932 * psympriv.h (struct partial_symtab::read_symtab)
5933 (struct partial_symtab::expand_psymtab)
5934 (struct partial_symtab::read_dependencies): Update comments.
5935 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5936 read_symtab for includer.
5937 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5938 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5939 (struct dwarf2_include_psymtab::m_readin): Remove.
5940 (struct dwarf2_include_psymtab::includer): New member function.
5941 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5942
c1a66c06
TV
59432020-04-14 Tom de Vries <tdevries@suse.de>
5944
5945 PR symtab/25720
5946 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5947 with NULL symbol_matcher and lookup_name.
5948 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5949 and lookup_name.
5950 * dwarf2/read.c (dw2_expand_symtabs_matching)
5951 (dw2_debug_names_expand_symtabs_matching): Same.
5952 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5953 Make lookup_name a pointer. Update comment.
5954 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5955 lookup_name being a pointer.
5956 * symfile.c (expand_symtabs_matching): Same.
5957 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5958 * linespec.c (iterate_over_all_matching_symtabs): Same.
5959
400b5eca
TT
59602020-04-13 Tom Tromey <tom@tromey.com>
5961
5962 * run-on-main-thread.c: Update include.
5963 * unittests/main-thread-selftests.c: Update include.
5964 * tui/tui-win.c: Update include.
5965 * tui/tui-io.c: Update include.
5966 * tui/tui-interp.c: Update include.
5967 * tui/tui-hooks.c: Update include.
5968 * top.h: Update include.
5969 * top.c: Update include.
5970 * ser-base.c: Update include.
5971 * remote.c: Update include.
5972 * remote-notif.c: Update include.
5973 * remote-fileio.c: Update include.
5974 * record-full.c: Update include.
5975 * record-btrace.c: Update include.
5976 * python/python.c: Update include.
5977 * posix-hdep.c: Update include.
5978 * mingw-hdep.c: Update include.
5979 * mi/mi-main.c: Update include.
5980 * mi/mi-interp.c: Update include.
5981 * main.c: Update include.
5982 * linux-nat.c: Update include.
5983 * interps.c: Update include.
5984 * infrun.c: Update include.
5985 * inf-loop.c: Update include.
5986 * event-top.c: Update include.
5987 * event-loop.c: Move to ../gdbsupport/.
5988 * event-loop.h: Move to ../gdbsupport/.
5989 * async-event.h: Update include.
5990 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
5991
93b54c8e
TT
59922020-04-13 Tom Tromey <tom@tromey.com>
5993
5994 * tui/tui-win.c: Include async-event.h.
5995 * remote.c: Include async-event.h.
5996 * remote-notif.c: Include async-event.h.
5997 * record-full.c: Include async-event.h.
5998 * record-btrace.c: Include async-event.h.
5999 * infrun.c: Include async-event.h.
6000 * event-top.c: Include async-event.h.
6001 * event-loop.h: Move some declarations to async-event.h.
6002 * event-loop.c: Don't include ser-event.h or top.h. Move some
6003 code to async-event.c.
6004 * async-event.h: New file.
6005 * async-event.c: New file.
6006 * Makefile.in (COMMON_SFILES): Add async-event.c.
6007 (HFILES_NO_SRCDIR): Add async-event.h.
6008
c1cd3163
TT
60092020-04-13 Tom Tromey <tom@tromey.com>
6010
6011 * utils.c (flush_streams): New function.
6012 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6013
29f2bf4f
TT
60142020-04-13 Tom Tromey <tom@tromey.com>
6015
6016 * event-loop.c (handle_file_event): Use warning, not
6017 printf_unfiltered.
6018
98029d02
TT
60192020-04-13 Tom Tromey <tom@tromey.com>
6020
6021 * event-loop.c: Include <chrono>.
6022
06cc9596
TT
60232020-04-13 Tom Tromey <tom@tromey.com>
6024
6025 * gdb_select.h: Move to ../gdbsupport/.
6026 * event-loop.c: Update include path.
6027 * top.c: Update include path.
6028 * ser-base.c: Update include path.
6029 * ui-file.c: Update include path.
6030 * ser-tcp.c: Update include path.
6031 * guile/scm-ports.c: Update include path.
6032 * posix-hdep.c: Update include path.
6033 * ser-unix.c: Update include path.
6034 * gdb_usleep.c: Update include path.
6035 * mingw-hdep.c: Update include path.
6036 * inflow.c: Update include path.
6037 * infrun.c: Update include path.
6038 * event-top.c: Update include path.
6039
8ae8e197
TT
60402020-04-13 Tom Tromey <tom@tromey.com>
6041
6042 * configure: Rebuild.
6043 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6044
58cf28e8
TT
60452020-04-13 Tom Tromey <tom@tromey.com>
6046
6047 * event-loop.h (start_event_loop): Don't declare.
6048 * event-loop.c (start_event_loop): Move...
6049 * main.c (start_event_loop): ...here. Now static.
6050
b7f999ae
SDJ
60512020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6052
6053 * MAINTAINERS: Update my email address.
6054
1085dfd4
KR
60552020-04-12 Kamil Rytarowski <n54@gmx.com>
6056
6057 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6058 IP_ALL.
6059
49d1d1f5
KR
60602020-04-12 Kamil Rytarowski <n54@gmx.com>
6061
6062 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6063 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6064
b4848d2a
KR
60652020-04-12 Kamil Rytarowski <n54@gmx.com>
6066
6067 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6068 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6069
51c133d5
KR
60702020-04-12 Kamil Rytarowski <n54@gmx.com>
6071
6072 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6073
54b8cbd0
KR
60742020-04-11 Kamil Rytarowski <n54@gmx.com>
6075
6076 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6077 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6078 (nbsd_nat_target::info_proc): New functions.
6079 * nbsd-nat.c (kinfo_get_vmmap): New function.
6080 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6081 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6082 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6083 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6084 functions.
6085 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6086 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6087 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6088 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6089 (KINFO_VME_FLAG_GROWS_DOWN): New.
6090
cf83625d
AS
60912020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6092
6093 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6094 bit shift.
6095
0c4311ab
TT
60962020-04-10 Tom Tromey <tromey@adacore.com>
6097
6098 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6099
3e65b3e9
TT
61002020-04-10 Tom Tromey <tromey@adacore.com>
6101
6102 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6103 separate debug files.
6104
13302e95
HD
61052020-04-10 Hannes Domani <ssbssa@yahoo.de>
6106
6107 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6108 Move to...
6109 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6110 ... here.
6111 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6112 Check for STATUS_WX86_BREAKPOINT.
6113 (windows_nat_target::wait): Same.
6114
bdfc1e8a
TV
61152020-04-10 Tom de Vries <tdevries@suse.de>
6116
6117 PR cli/25808
6118 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6119
f4460aec
SM
61202020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6121
6122 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6123 (Write After Approval): Remove Tom de Vries.
6124
a25198bb
BE
61252020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6126
6127 revert partially:
6128 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6129
aac66a4c
SM
6130 * buildsym.c (record_line): Fix undefined behavior and preserve
6131 lines at eof.
a25198bb 6132
206c98a6
KR
61332020-04-09 Kamil Rytarowski <n54@gmx.com>
6134
6135 * auxv.h (svr4_auxv_parse): New.
6136 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6137 and generic_auxv_parse.
6138 (svr4_auxv_parse): Add.
6139 * obsd-tdep.c: Include "auxv.h".
6140 (obsd_auxv_parse): Remove.
6141 (obsd_init_abi): Remove comment.
6142 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6143 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6144 * nbsd-tdep.c: Include "auxv.h".
6145 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6146
71fbdbaf
TT
61472020-04-08 Tom Tromey <tromey@adacore.com>
6148
6149 * nat/windows-nat.h (last_wait_event): Don't declare.
6150 (wait_for_debug_event): Update comment.
6151 * nat/windows-nat.c (last_wait_event): Now static.
6152
2c1d95e8
TT
61532020-04-08 Tom Tromey <tromey@adacore.com>
6154
6155 * windows-nat.c (wait_for_debug_event): Move to
6156 nat/windows-nat.c.
6157 * nat/windows-nat.h (wait_for_debug_event): Declare.
6158 * nat/windows-nat.c (wait_for_debug_event): Move from
6159 windows-nat.c. No longer static.
6160
d2977bc4
TT
61612020-04-08 Tom Tromey <tromey@adacore.com>
6162
6163 * windows-nat.c (get_windows_debug_event): Use
6164 fetch_pending_stop.
6165 * nat/windows-nat.h (fetch_pending_stop): Declare.
6166 * nat/windows-nat.c (fetch_pending_stop): New function.
6167
e758e19c
TT
61682020-04-08 Tom Tromey <tromey@adacore.com>
6169
6170 * windows-nat.c (windows_continue): Use matching_pending_stop and
6171 continue_last_debug_event.
6172 * nat/windows-nat.h (matching_pending_stop)
6173 (continue_last_debug_event): Declare.
6174 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6175 (matching_pending_stop, continue_last_debug_event): New
6176 functions.
6177
8d30e395
TT
61782020-04-08 Tom Tromey <tromey@adacore.com>
6179
6180 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6181 (handle_exception_result): Move to nat/windows-nat.h.
6182 (DEBUG_EXCEPTION_SIMPLE): Remove.
6183 (windows_nat::handle_ms_vc_exception): New function.
6184 (handle_exception): Move to nat/windows-nat.c.
6185 (get_windows_debug_event): Update.
6186 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6187 nat/windows-nat.c.
6188 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6189 (handle_exception_result): Move from windows-nat.c.
6190 (handle_exception): Declare.
6191 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6192 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6193 windows-nat.c.
6194
29de418d
TT
61952020-04-08 Tom Tromey <tromey@adacore.com>
6196
6197 * windows-nat.c (exception_count, event_count): Remove.
6198 (handle_exception, get_windows_debug_event)
6199 (do_initial_windows_stuff): Update.
6200
a816ba18
TT
62012020-04-08 Tom Tromey <tromey@adacore.com>
6202
6203 * windows-nat.c (windows_nat::handle_load_dll)
6204 (windows_nat::handle_unload_dll): Rename. No longer static.
6205 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6206 Declare.
6207
a00caa12
TT
62082020-04-08 Tom Tromey <tromey@adacore.com>
6209
6210 * complaints.h (stop_whining): Declare at top-level.
6211 (complaint): Don't declare stop_whining.
6212
d41b524f
TT
62132020-04-08 Tom Tromey <tromey@adacore.com>
6214
6215 * windows-nat.c (windows_nat::handle_output_debug_string):
6216 Rename. No longer static.
6217 * nat/windows-nat.h (handle_output_debug_string): Declare.
6218
3c76026d
TT
62192020-04-08 Tom Tromey <tromey@adacore.com>
6220
6221 * windows-nat.c (current_process_handle, current_process_id)
6222 (main_thread_id, last_sig, current_event, last_wait_event)
6223 (current_windows_thread, desired_stop_thread_id, pending_stops)
6224 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6225 (display_selectors, fake_create_process)
6226 (get_windows_debug_event): Update.
6227 * nat/windows-nat.h (current_process_handle, current_process_id)
6228 (main_thread_id, last_sig, current_event, last_wait_event)
6229 (current_windows_thread, desired_stop_thread_id, pending_stops)
6230 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6231 * nat/windows-nat.c (current_process_handle, current_process_id)
6232 (main_thread_id, last_sig, current_event, last_wait_event)
6233 (current_windows_thread, desired_stop_thread_id, pending_stops)
6234 (siginfo_er): New globals. Move from windows-nat.c.
6235
9d8679cc
TT
62362020-04-08 Tom Tromey <tromey@adacore.com>
6237
6238 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6239 (handle_load_dll): Update.
6240 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6241
28688adf
TT
62422020-04-08 Tom Tromey <tromey@adacore.com>
6243
6244 * windows-nat.c (enum thread_disposition_type): Move to
6245 nat/windows-nat.h.
6246 (windows_nat::thread_rec): Rename from thread_rec. No longer
6247 static.
6248 (windows_add_thread, windows_nat_target::fetch_registers)
6249 (windows_nat_target::store_registers, handle_exception)
6250 (windows_nat_target::resume, get_windows_debug_event)
6251 (windows_nat_target::get_tib_address)
6252 (windows_nat_target::thread_name)
6253 (windows_nat_target::thread_alive): Update.
6254 * nat/windows-nat.h (enum thread_disposition_type): Move from
6255 windows-nat.c.
6256 (thread_rec): Declare.
6257
4834dad0
TT
62582020-04-08 Tom Tromey <tromey@adacore.com>
6259
6260 * windows-nat.c: Add "using namespace".
6261 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6262 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6263
65bafd5b
TT
62642020-04-08 Tom Tromey <tromey@adacore.com>
6265
6266 * nat/windows-nat.h (struct windows_thread_info): Declare
6267 destructor.
6268 * nat/windows-nat.c (~windows_thread_info): New.
6269
0a4afda3
TT
62702020-04-08 Tom Tromey <tromey@adacore.com>
6271
6272 PR gdb/22992
6273 * windows-nat.c (current_event): Update comment.
6274 (last_wait_event, desired_stop_thread_id): New globals.
6275 (struct pending_stop): New.
6276 (pending_stops): New global.
6277 (windows_nat_target) <stopped_by_sw_breakpoint>
6278 <supports_stopped_by_sw_breakpoint>: New methods.
6279 (windows_fetch_one_register): Add assertions. Adjust PC.
6280 (windows_continue): Handle pending stops. Suspend other threads
6281 when stepping. Use last_wait_event
6282 (wait_for_debug_event): New function.
6283 (get_windows_debug_event): Use wait_for_debug_event. Handle
6284 pending stops. Queue spurious stops.
6285 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6286 (windows_nat_target::kill): Use wait_for_debug_event.
6287 * nat/windows-nat.h (struct windows_thread_info)
6288 <stopped_at_software_breakpoint>: New field.
6289 * nat/windows-nat.c (windows_thread_info::resume): Clear
6290 stopped_at_software_breakpoint.
6291
8e61ebec
TT
62922020-04-08 Tom Tromey <tromey@adacore.com>
6293
6294 * windows-nat.c (enum thread_disposition_type): New.
6295 (thread_rec): Replace "get_context" parameter with "disposition";
6296 change type.
6297 (windows_add_thread, windows_nat_target::fetch_registers)
6298 (windows_nat_target::store_registers, handle_exception)
6299 (windows_nat_target::resume, get_windows_debug_event)
6300 (windows_nat_target::get_tib_address)
6301 (windows_nat_target::thread_name)
6302 (windows_nat_target::thread_alive): Update.
6303
98a03287
TT
63042020-04-08 Tom Tromey <tromey@adacore.com>
6305
6306 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6307 (windows_continue): Use windows_continue::resume.
6308 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6309 resume>: Declare new methods.
6310 * nat/windows-nat.c: New file.
6311 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6312
7c7411bc
TT
63132020-04-08 Tom Tromey <tromey@adacore.com>
6314
6315 * windows-nat.c (windows_add_thread, windows_delete_thread)
6316 (windows_nat_target::fetch_registers)
6317 (windows_nat_target::store_registers, fake_create_process)
6318 (windows_nat_target::resume, windows_nat_target::resume)
6319 (get_windows_debug_event, windows_nat_target::wait)
6320 (windows_nat_target::pid_to_str)
6321 (windows_nat_target::get_tib_address)
6322 (windows_nat_target::get_ada_task_ptid)
6323 (windows_nat_target::thread_name)
6324 (windows_nat_target::thread_alive): Use lwp, not tid.
6325
2950fdf7
TT
63262020-04-08 Tom Tromey <tromey@adacore.com>
6327
6328 * windows-nat.c (handle_exception)
6329 (windows_nat_target::thread_name): Update.
6330 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6331 <name>: Now unique_xmalloc_ptr.
6332
62fe396b
TT
63332020-04-08 Tom Tromey <tromey@adacore.com>
6334
6335 * windows-nat.c (thread_rec)
6336 (windows_nat_target::fetch_registers): Update.
6337 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6338 Update comment.
6339 <debug_registers_changed, reload_context>: Now bool.
6340
e9534bd2
TT
63412020-04-08 Tom Tromey <tromey@adacore.com>
6342
6343 * windows-nat.c (windows_add_thread): Use new.
6344 (windows_init_thread_list, windows_delete_thread): Use delete.
6345 (get_windows_debug_event): Update.
6346 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6347 destructor, and initializers.
6348
ae1f8880
TT
63492020-04-08 Tom Tromey <tromey@adacore.com>
6350
6351 * windows-nat.c (struct windows_thread_info): Remove.
6352 * nat/windows-nat.h: New file.
6353
55a1e039
TT
63542020-04-08 Tom Tromey <tromey@adacore.com>
6355
6356 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6357 (thread_rec, windows_add_thread, windows_delete_thread)
6358 (windows_continue): Update.
6359
93366324
TT
63602020-04-08 Tom Tromey <tromey@adacore.com>
6361
6362 * windows-nat.c (struct windows_thread_info): Remove typedef.
6363 (thread_head): Remove.
6364 (thread_list): New global.
6365 (thread_rec, windows_add_thread, windows_init_thread_list)
6366 (windows_delete_thread, windows_continue): Update.
6367
0f2265e2
SM
63682020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6369
6370 * windows-tdep.h (windows_init_abi): Add comment.
6371 (cygwin_init_abi): New declaration.
6372 * windows-tdep.c: Split signal enumeration in two, one for
6373 Windows and one for Cygwin.
6374 (windows_gdb_signal_to_target): Only deal with signal of the
6375 Windows OS ABI.
6376 (cygwin_gdb_signal_to_target): New function.
6377 (windows_init_abi): Rename to windows_init_abi_common, don't set
6378 gdb_signal_to_target gdbarch method. Add new new function with
6379 this name.
6380 (cygwin_init_abi): New function.
6381 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6382 comment. Don't call windows_init_abi.
6383 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6384 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6385 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6386 i386_windows_init_abi_common, don't call windows_init_abi. Add
6387 a new function of this name.
6388 (i386_cygwin_init_abi): New function.
6389 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6390 OS ABI Cygwin.
6391
3810f182
SM
63922020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6393
6394 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6395 parameter.c.
6396 (dwarf2_read_gdb_index): Update.
6397
063f8e80
KR
63982020-04-07 Kamil Rytarowski <n54@gmx.com>
6399
6400 * nbsd-tdep.c: Include "objfiles.h".
6401 (nbsd_skip_solib_resolver): New.
6402 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6403
85a9510c 64042020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6405
6406 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6407 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6408 with DW_LLE_base_addressx are being emitted in DWARFv5.
6409 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6410 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6411 unsigned integer.
6412
9fc3eaae 64132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6414
6415 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6416 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6417 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6418 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6419 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6420 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6421 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6422
6423
41144253 64242020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6425
6426 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6427 (read_loclist_index): New function definition.
6428 (lookup_loclist_base): New function definition.
6429 (read_loclist_header): New function definition.
6430 (dwarf2_cu): Add loclist_base and loclist_header field.
6431 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6432 (read_full_die_1): Read the value of DW_AT_loclists_base.
6433 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6434 (read_attribute_value): Handle DW_FORM_loclistx.
6435 (skip_one_die): Handle DW_FORM_loclistx.
6436 (loclist_header): New structure declaration.
6437 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6438
9f4e76a4
SM
64392020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6440
6441 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6442 constructor. Remove `addr` parameter from other constructor and
6443 add `per_cu` parameter.
6444 * dwarf2/read.c (create_partial_symtab): Update.
6445
25c11aca
TV
64462020-04-07 Tom de Vries <tdevries@suse.de>
6447
6448 PR symtab/25796
6449 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6450 (partial_die_info::fixup): Inherit has_const_value.
6451
5707e24b
TV
64522020-04-07 Tom de Vries <tdevries@suse.de>
6453
6454 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6455 symbols without address.
6456
05f00e22
KR
64572020-04-06 Kamil Rytarowski <n54@gmx.com>
6458
6459 * nbsd-nat.h (struct thread_info): Add forward declaration.
6460 (nbsd_nat_target::thread_alive): Add.
6461 (nbsd_nat_target::thread_name): Likewise.
6462 (nbsd_nat_target::update_thread_list): Likewise.
6463 (update_thread_list::post_attach): Likewise.
6464 (post_attach::pid_to_str): Likewise.
6465 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6466 (nbsd_thread_lister): Add.
6467 (nbsd_nat_target::thread_alive): Likewise.
6468 (nbsd_nat_target::thread_name): Likewise.
6469 (nbsd_add_threads): Likewise.
6470 (update_thread_list::post_attach): Likewise.
6471 (nbsd_nat_target::update_thread_list): Likewise.
6472 (post_attach::pid_to_str): Likewise.
6473
6ee448cc
TT
64742020-04-06 Tom Tromey <tromey@adacore.com>
6475
6476 * ada-valprint.c (print_variant_part): Extract the variant field.
6477 (print_field_values): Use the field as the outer value when
6478 recursing.
6479
dea34e8c
TT
64802020-04-06 Tom Tromey <tromey@adacore.com>
6481
6482 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6483 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6484 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6485 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6486 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6487
93689ce9
TT
64882020-04-06 Tom Tromey <tromey@adacore.com>
6489
6490 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6491 TYPE_CODE_ERROR.
6492
79743962
KR
64932020-04-06 Kamil Rytarowski <n54@gmx.com>
6494
6495 * nbsd-tdep.c: Include "gdbarch.h".
6496 Define enum with NetBSD signal numbers.
6497 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6498 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6499 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6500 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6501 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6502 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6503 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6504 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6505 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6506 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6507 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6508 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6509
9e7c9a03
HD
65102020-04-03 Hannes Domani <ssbssa@yahoo.de>
6511
6512 PR gdb/25325
6513 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6514
d9e49b61
TT
65152020-04-03 Tom Tromey <tromey@adacore.com>
6516
6517 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6518 Read constant block.
6519
e0fc5c3f
SM
65202020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6521
6522 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6523 (gdb_bfd_get_full_section_contents): New declaration.
6524 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6525 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6526 gdb_bfd_get_full_section_contents.
6527
e2ff18a0
SM
65282020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6529
6530 * exec.c (build_section_table): Replace internal_error with
6531 gdb_assert.
6532 (section_table_xfer_memory_partial): Likewise.
6533 * mdebugread.c (parse_partial_symbols): Likewise.
6534 * psymtab.c (lookup_partial_symbol): Likewise.
6535 * utils.c (wrap_here): Likewise.
6536
0830d301
TT
65372020-04-02 Tom Tromey <tromey@adacore.com>
6538
6539 * f-lang.c (build_fortran_types): Use arch_type to initialize
6540 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6541
e7da7f8f
TT
65422020-04-02 Tom Tromey <tromey@adacore.com>
6543
6544 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6545 of attributes.
6546
c90d28ac
AB
65472020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6548 Bernd Edlinger <bernd.edlinger@hotmail.de>
6549 Tom Tromey <tromey@adacore.com>
6550
6551 * buildsym.c (buildsym_compunit::record_line): Remove
6552 deduplication code.
6553
1aa98955
TV
65542020-04-02 Tom de Vries <tdevries@suse.de>
6555
6556 PR ada/24671
6557 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6558
d3214198
TV
65592020-04-02 Tom de Vries <tdevries@suse.de>
6560
6561 * dwarf2/read.c (dwarf2_gdb_index_functions,
6562 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6563 NULL.
6564 * psymtab.c (psym_lookup_global_symbol_language): New function.
6565 (psym_functions): Init psym_lookup_global_symbol_language with
6566 psym_lookup_global_symbol_language.
6567 * symfile-debug.c (debug_sym_quick_functions): Init
6568 lookup_global_symbol_language with NULL.
6569 * symfile.c (set_initial_language): Remove fixme comment.
6570 * symfile.h (struct quick_symbol_functions): Add
6571 lookup_global_symbol_language.
6572 * symtab.c (find_quick_global_symbol_language): New function.
6573 (find_main_name): Use find_quick_global_symbol_language.
6574
2836752f
SM
65752020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6576
6577 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6578
64dc2d4b
BE
65792020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6580
6581 * buildsym.c (record_line): Fix undefined behavior and preserve
6582 lines at eof.
6583
bbe3dc41
BE
65842020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6585
6586 * buildsym.c (record_line): Fix the resizing condition.
6587
6b4a335b
TT
65882020-04-01 Tom Tromey <tom@tromey.com>
6589
6590 * value.h (value_literal_complex): Add comment.
6591 * valops.c (value_literal_complex): Refer to value.h.
6592
3638a098
TT
65932020-04-01 Tom Tromey <tom@tromey.com>
6594
6595 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6596 (scalar_type): New rule, from typebase.
6597 (typebase): Use scalar_type. Recognize complex types.
6598 (field_name): Handle FLOAT_KEYWORD.
6599 (ident_tokens): Add _Complex and __complex__.
6600
c34e8714
TT
66012020-04-01 Tom Tromey <tom@tromey.com>
6602
6603 PR exp/25299:
6604 * valarith.c (promotion_type, complex_binop): New functions.
6605 (scalar_binop): Handle complex numbers. Use promotion_type.
6606 (value_pos, value_neg, value_complement): Handle complex numbers.
6607
fa649bb7
TT
66082020-04-01 Tom Tromey <tom@tromey.com>
6609
6610 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6611 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6612 (parse_number): Handle complex numbers.
6613
981c08ce
TT
66142020-04-01 Tom Tromey <tom@tromey.com>
6615
6616 * c-valprint.c (c_decorations): Change complex suffix to "i".
6617
4c99290d
TT
66182020-04-01 Tom Tromey <tom@tromey.com>
6619
6620 * valprint.c (generic_value_print_complex): Use accessors.
6621 * value.h (value_real_part, value_imaginary_part): Declare.
6622 * valops.c (value_real_part, value_imaginary_part): New
6623 functions.
6624 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6625
5b930b45
TT
66262020-04-01 Tom Tromey <tom@tromey.com>
6627
6628 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6629 (read_range_type): Update.
6630 * mdebugread.c (basic_type): Update.
6631 * go-lang.c (build_go_types): Use init_complex_type.
6632 * gdbtypes.h (struct main_type) <complex_type>: New member.
6633 (init_complex_type): Update.
6634 (arch_complex_type): Don't declare.
6635 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6636 Make name if none given. Use alloc_type_copy. Look for cached
6637 complex type.
6638 (arch_complex_type): Remove.
6639 (gdbtypes_post_init): Use init_complex_type.
6640 * f-lang.c (build_fortran_types): Use init_complex_type.
6641 * dwarf2/read.c (read_base_type): Update.
6642 * d-lang.c (build_d_types): Use init_complex_type.
6643 * ctfread.c (read_base_type): Update.
6644
53cccef1
TBA
66452020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6646
6647 * infrun.c (stop_all_threads): Update assertion, plus when
6648 stopping threads, take into account that we might be trying
6649 to stop an all-stop target.
6650 (stop_waiting): Call 'stop_all_threads' if there exists a
6651 non-stop target.
6652
a0714d30
TBA
66532020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6654
6655 * target.h (exists_non_stop_target): New function declaration.
6656 * target.c (exists_non_stop_target): New function.
6657
60e22c1e
HD
66582020-04-01 Hannes Domani <ssbssa@yahoo.de>
6659
6660 PR gdb/24789
6661 * eval.c (is_integral_or_integral_reference): New function.
6662 (evaluate_subexp_standard): Allow integer references in
6663 pointer arithmetic.
6664
e139a727
TBA
66652020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6666
6667 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6668 check for no ptid in the stop reply when the target is non-stop.
6669
e0802d59
TT
66702020-04-01 Tom Tromey <tromey@adacore.com>
6671
6672 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6673 "name" parameter to rvalue reference. Initialize m_name_holder.
6674 <lookup_name_info>: New overloads.
6675 <name>: Return gdb::string_view.
6676 <c_str>: New method.
6677 <make_ignore_params>: Update.
6678 <search_name_hash>: Update.
6679 <language_lookup_name>: Return const char *.
6680 <m_name>: Change type.
6681 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6682 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6683 (lookup_name_info::match_any): Update.
6684 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6685 Update.
6686 * minsyms.c (linkage_name_str): Update.
6687 * language.c (default_symbol_name_matcher): Update.
6688 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6689 Update.
6690 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6691 (ada_lookup_name_info::ada_lookup_name_info): Update.
6692 (literal_symbol_name_matcher): Update.
6693
8c072cb6
TT
66942020-04-01 Tom Tromey <tromey@adacore.com>
6695
6696 * psymtab.c (psymtab_search_name): Remove function.
6697 (psym_lookup_symbol): Create search name and lookup name here.
6698 (lookup_partial_symbol): Remove "name" parameter; add
6699 lookup_name.
6700 (psym_expand_symtabs_for_function): Update.
6701
6f29a534
TT
67022020-03-31 Joel Jones <joelkevinjones@gmail.com>
6703
6704 PR tui/25597:
6705 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6706
af62665e
TT
67072020-03-31 Tom Tromey <tromey@adacore.com>
6708
6709 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6710 memcpy.
6711
d1a89da5
NC
67122020-03-30 Nelson Chu <nelson.chu@sifive.com>
6713
6714 * features/riscv/32bit-csr.xml: Regenerated.
6715 * features/riscv/64bit-csr.xml: Regenerated.
6716
d8af9068
TT
67172020-03-30 Tom Tromey <tromey@adacore.com>
6718
6719 * ada-valprint.c (print_variant_part): Update.
6720 * ada-lang.h (ada_which_variant_applies): Update.
6721 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6722 outer_valaddr parameters; replace with "outer" value parameter.
6723 (to_fixed_variant_branch_type): Update.
6724
227c0bf4
PFC
67252020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6726
6727 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6728 <list>. Remove inclusion of observable.h.
6729 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6730 (struct arch_lwp_info): New struct.
6731 (class ppc_linux_dreg_interface): New class.
6732 (struct ppc_linux_process_info): New struct.
6733 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6734 <low_new_clone, low_forget_process, low_prepare_to_resume>
6735 <copy_thread_dreg_state, mark_thread_stale>
6736 <mark_debug_registers_changed, register_hw_breakpoint>
6737 <clear_hw_breakpoint, register_wp, clear_wp>
6738 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6739 <num_memory_accesses, get_trigger_type>
6740 <create_watchpoint_request, hwdebug_point_cmp>
6741 <init_arch_lwp_info, get_arch_lwp_info>
6742 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6743 methods.
6744 <struct ptid_hash>: New inner struct.
6745 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6746 members.
6747 (saved_dabr_value, hwdebug_info, max_slots_number)
6748 (struct hw_break_tuple, struct thread_points, ppc_threads)
6749 (have_ptrace_hwdebug_interface)
6750 (hwdebug_find_thread_points_by_tid)
6751 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6752 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6753 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6754 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6755 use m_dreg_interface.
6756 (hwdebug_point_cmp): Change to...
6757 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6758 reference arguments instead of pointers.
6759 (ppc_linux_nat_target::ranged_break_num_registers): Use
6760 m_dreg_interface.
6761 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6762 m_dreg_interface. Call register_hw_breakpoint.
6763 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6764 m_dreg_interface. Call clear_hw_breakpoint.
6765 (get_trigger_type): Change to...
6766 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6767 comment.
6768 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6769 use m_dreg_interface. Call register_hw_breakpoint.
6770 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6771 use m_dreg_interface. Call clear_hw_breakpoint.
6772 (can_use_watchpoint_cond_accel): Change to...
6773 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6774 method. Update comment, use m_dreg_interface and
6775 m_process_info.
6776 (calculate_dvc): Change to...
6777 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6778 m_dreg_interface.
6779 (num_memory_accesses): Change to...
6780 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6781 (check_condition): Change to...
6782 (ppc_linux_nat_target::check_condition): ...this method.
6783 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6784 comment, use m_dreg_interface.
6785 (create_watchpoint_request): Change to...
6786 (ppc_linux_nat_target::create_watchpoint_request): ...this
6787 method. Use m_dreg_interface.
6788 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6789 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6790 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6791 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6792 (ppc_linux_nat_target::low_forget_process)
6793 (ppc_linux_nat_target::low_new_fork)
6794 (ppc_linux_nat_target::low_new_clone)
6795 (ppc_linux_nat_target::low_delete_thread)
6796 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6797 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6798 only call mark_thread_stale.
6799 (ppc_linux_thread_exit): Remove.
6800 (ppc_linux_nat_target::stopped_data_address): Change to...
6801 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6802 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6803 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6804 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6805 comment. Call low_stopped_data_address.
6806 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6807 m_dreg_interface.
6808 (ppc_linux_nat_target::masked_watch_num_registers): Use
6809 m_dreg_interface.
6810 (ppc_linux_nat_target::copy_thread_dreg_state)
6811 (ppc_linux_nat_target::mark_thread_stale)
6812 (ppc_linux_nat_target::mark_debug_registers_changed)
6813 (ppc_linux_nat_target::register_hw_breakpoint)
6814 (ppc_linux_nat_target::clear_hw_breakpoint)
6815 (ppc_linux_nat_target::register_wp)
6816 (ppc_linux_nat_target::clear_wp)
6817 (ppc_linux_nat_target::init_arch_lwp_info)
6818 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6819 (_initialize_ppc_linux_nat): Remove observer callback.
6820
4db10d8f
PFC
68212020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6822
6823 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6824 (ppc_linux_nat_target::auxv_parse)
6825 (ppc_linux_nat_target::read_description)
6826 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6827 Move up.
6828
1310c1b0
PFC
68292020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6830
6831 * linux-nat.h (low_new_clone): New method.
6832 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6833
69b037c3
SM
68342020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6835
6836 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6837 (dbx_expand_psymtab): ... this.
6838 (start_psymtab): Update.
6839 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6840 (mdebug_expand_psymtab): ... this.
6841 (parse_partial_symbols): Update.
6842 (new_psymtab): Update.
6843 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6844 (xcoff_expand_psymtab): ... this.
6845 (xcoff_start_psymtab): Update.
6846
48993951
SM
68472020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6848
6849 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6850 <expand_dependencies>: ... this.
6851 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6852 (partial_symtab::expand_dependencies): ... this.
6853 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6854 Update.
6855 (dwarf2_psymtab::expand_psymtab): Update.
6856 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6857 * mdebugread.c (psymtab_to_symtab_1): Update.
6858 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6859
3ad83046
SM
68602020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6861
6862 * psympriv.h (discard_psymtab): Remove.
6863 * dbxread.c (dbx_end_psymtab): Update.
6864 * xcoffread.c (xcoff_end_psymtab): Update.
6865
4d1b9ab6
TT
68662020-03-28 Tom Tromey <tom@tromey.com>
6867
6868 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6869 comment.
6870
f1749218
TT
68712020-03-28 Tom Tromey <tom@tromey.com>
6872
6873 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6874
ebea7626
HD
68752020-03-27 Hannes Domani <ssbssa@yahoo.de>
6876
6877 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6878
a879b4d5
JB
68792020-03-26 John Baldwin <jhb@FreeBSD.org>
6880
6881 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6882
0826b30a
TT
68832020-03-26 Tom Tromey <tom@tromey.com>
6884
6885 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6886 (mark_common_block_symbol_computed, read_tag_string_type)
6887 (attr_to_dynamic_prop, read_subrange_type): Update.
6888 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6889 to be methods on struct attribute.
6890 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6891 (read_call_site_scope, partial_die_info::read)
6892 (partial_die_info::read, lookup_die_type, follow_die_ref):
6893 Update.
6894 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6895 from dwarf2_get_ref_die_offset.
6896 (attribute::constant_value): New method, from
6897 dwarf2_get_attr_constant_value.
6898 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6899 Declare method.
6900 <constant_value>: New method.
6901
2b2558bf
TT
69022020-03-26 Tom Tromey <tom@tromey.com>
6903
6904 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6905 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6906 (dwarf_type_encoding_name): Move to stringify.c.
6907 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6908 * dwarf2/stringify.c: New file.
6909 * dwarf2/stringify.h: New file.
6910
eeb64781
TT
69112020-03-26 Tom Tromey <tom@tromey.com>
6912
6913 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6914 Rewrite.
6915
a39fdb41
TT
69162020-03-26 Tom Tromey <tom@tromey.com>
6917
6918 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6919 methods.
6920 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6921 (lookup_ranges_base): Likewise.
6922 (read_cutu_die_from_dwo, read_full_die_1): Update.
6923
436c571c
TT
69242020-03-26 Tom Tromey <tom@tromey.com>
6925
6926 * dwarf2/read.c (read_import_statement, read_file_scope)
6927 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6928 (read_lexical_block_scope, read_call_site_scope)
6929 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6930 (handle_struct_member_die, process_structure_scope)
6931 (update_enumeration_type_from_children)
6932 (process_enumeration_scope, read_array_type, read_common_block)
6933 (read_namespace, read_module, read_subroutine_type): Update.
6934 (sibling_die): Remove.
6935
052c8bb8
TT
69362020-03-26 Tom Tromey <tom@tromey.com>
6937
6938 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6939 (build_type_psymtabs_reader, read_structure_type)
6940 (read_enumeration_type, read_full_die_1): Update.
6941 (dwarf2_attr_no_follow): Move to die.h.
6942 * dwarf2/die.h (struct die_info) <attr>: New method.
6943
2b24b6e4
TT
69442020-03-26 Tom Tromey <tom@tromey.com>
6945
6946 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6947 <base_address>: Now an optional.
6948 (dwarf2_find_base_address, dwarf2_rnglists_process)
6949 (dwarf2_ranges_process, fill_in_loclist_baton)
6950 (dwarf2_symbol_mark_computed): Update.
6951
c2d50fd0
TT
69522020-03-26 Tom Tromey <tom@tromey.com>
6953
6954 * dwarf2/read.c (struct die_info): Move to die.h.
6955 * dwarf2/die.h: New file.
6956
0df7ad3a
TT
69572020-03-26 Tom Tromey <tom@tromey.com>
6958
6959 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6960 * dwarf2/read.c
6961 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6962 Move to line-header.c.
6963 (read_checked_initial_length_and_offset, read_formatted_entries):
6964 Likewise.
6965 (dwarf_decode_line_header): Split into two.
6966 * dwarf2/line-header.c
6967 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6968 Move from read.c.
6969 (read_checked_initial_length_and_offset, read_formatted_entries):
6970 Likewise.
6971 (dwarf_decode_line_header): New function, split from read.c.
6972
86c0bb4c
TT
69732020-03-26 Tom Tromey <tom@tromey.com>
6974
6975 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
6976 Declare method.
6977 * dwarf2/read.c (read_attribute_value): Update.
6978 (dwarf2_per_objfile::read_line_string): Rename from
6979 read_indirect_line_string.
6980 (read_formatted_entries): Update.
6981
2ef46c2f
TT
69822020-03-26 Tom Tromey <tom@tromey.com>
6983
6984 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
6985 variable.
6986
4f9c1eda
TT
69872020-03-26 Tom Tromey <tom@tromey.com>
6988
6989 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
6990 const.
6991 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
6992 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
6993 parameter const.
6994
5a0e026f
TT
69952020-03-26 Tom Tromey <tom@tromey.com>
6996
6997 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
6998 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
6999 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7000 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7001
8844c11b
TT
70022020-03-26 Tom Tromey <tom@tromey.com>
7003
7004 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7005 file_names_size, file_full_name, file_file_name>: Use const.
7006 <file_name_at, file_names>: Add const overload.
7007 * dwarf2/line-header.c (line_header::file_file_name)
7008 (line_header::file_full_name): Update.
7009
c90ec28a
TT
70102020-03-26 Tom Tromey <tom@tromey.com>
7011
7012 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7013 (macro_start_file, consume_improper_spaces)
7014 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7015 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7016 (dwarf_decode_macros): Move to macro.c.
7017 * dwarf2/macro.c: New file.
7018 * dwarf2/macro.h: New file.
7019 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7020
4f44ae6c
TT
70212020-03-26 Tom Tromey <tom@tromey.com>
7022
7023 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7024 method.
7025 * dwarf2/section.c: New method. From
7026 read_indirect_string_at_offset_from.
7027 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7028 (read_indirect_string_at_offset_from): Move to section.c.
7029 (read_indirect_string_at_offset): Rewrite.
7030 (read_indirect_line_string_at_offset): Remove.
7031 (read_indirect_string, read_indirect_line_string)
7032 (dwarf_decode_macro_bytes): Update.
7033
a0194fa8
TT
70342020-03-26 Tom Tromey <tom@tromey.com>
7035
7036 * dwarf2/section.h (struct dwarf2_section_info)
7037 <overload_complaint>: Declare.
7038 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7039 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7040 Rename from dwarf2_section_buffer_overflow_complaint.
7041 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7042 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7043
3d27bbdb
TT
70442020-03-26 Tom Tromey <tom@tromey.com>
7045
7046 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7047 Declare.
7048 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7049 Move from read.c.
7050 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7051 to section.c.
7052
9eac9650
TT
70532020-03-26 Tom Tromey <tom@tromey.com>
7054
7055 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7056
bf80d710
TT
70572020-03-26 Tom Tromey <tom@tromey.com>
7058
7059 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7060 "builder".
7061 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7062 parameter.
7063 (dwarf_decode_macros): Update.
7064
0314b390
TT
70652020-03-26 Tom Tromey <tom@tromey.com>
7066
7067 * dwarf2/read.c (read_attribute_value): Update.
7068 (read_indirect_string_from_dwz): Move to dwz.c; change into
7069 method.
7070 (dwarf_decode_macro_bytes): Update.
7071 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7072 * dwarf2/dwz.c: New file.
7073 * Makefile.in (COMMON_SFILES): Add dwz.c.
7074
9fda78b6
TT
70752020-03-26 Tom Tromey <tom@tromey.com>
7076
7077 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7078 * dwarf2/read.c: Add include.
7079 * dwarf2/index-write.c: Add include.
7080 * dwarf2/index-cache.c: Add include.
7081 * dwarf2/dwz.h: New file.
7082
33aa3c10
TT
70832020-03-25 Tom Tromey <tom@tromey.com>
7084
7085 * compile/compile-object-load.c (get_out_value_type): Mention
7086 correct symbol name in error message.
7087
d503b685
HD
70882020-03-25 Hannes Domani <ssbssa@yahoo.de>
7089
7090 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7091
7b1eff95
TV
70922020-03-25 Tom de Vries <tdevries@suse.de>
7093
7094 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7095 * symmisc.c (dump_symtab_1): Print user and includes fields.
7096 (maintenance_info_symtabs): Same.
7097
dd895392
AB
70982020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7099
7100 PR gdb/25534
7101 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7102 (riscv_regcache_cooked_write): New function.
7103 (riscv_push_dummy_call): Use new function.
7104 (riscv_return_value): Likewise.
7105
5ab2fbf1
SM
71062020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7107
7108 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7109 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7110 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7111 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7112 * infrun.c (follow_fork): Likewise.
7113 (follow_fork_inferior): Likewise.
7114 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7115 * linux-nat.h (class linux_nat_target): Likewise.
7116 * remote.c (class remote_target) <follow_fork>: Likewise.
7117 (remote_target::follow_fork): Likewise.
7118 * target-delegates.c: Re-generate.
7119 * target.c (default_follow_fork): Likewise.
7120 (target_follow_fork): Likewise.
7121 * target.h (struct target_ops) <follow_fork>: Likewise.
7122 (target_follow_fork): Likewise.
7123
a64fafb5
TV
71242020-03-24 Tom de Vries <tdevries@suse.de>
7125
7126 * psymtab.c (maintenance_info_psymtabs): Print user field.
7127
fe26d3a3
TT
71282020-03-20 Tom Tromey <tromey@adacore.com>
7129
7130 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7131 const.
7132 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7133 const.
7134
c884cc46
SM
71352020-03-20 Simon Marchi <simon.marchi@efficios.com>
7136
7137 * ptrace.m4: Don't check for ptrace declaration.
7138 * config.in: Re-generate.
7139 * configure: Re-generate.
7140 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7141 not defined.
7142
1ff700c2
KR
71432020-03-20 Kamil Rytarowski <n54@gmx.com>
7144
7145 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7146 `PTRACE_TYPE_RET'.
7147 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7148 * sparc-nat.c (gdb_ptrace): Likewise.
7149 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7150
f7d4f0b1
TT
71512020-03-20 Tom Tromey <tromey@adacore.com>
7152
7153 * c-exp.y (lex_one_token): Fix assert.
7154
f67210ff
TT
71552020-03-20 Tom Tromey <tromey@adacore.com>
7156
7157 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7158 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7159 strncpy call.
7160
1773be9e
TT
71612020-03-20 Tom Tromey <tromey@adacore.com>
7162
7163 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7164
70304be9
TT
71652020-03-20 Tom Tromey <tromey@adacore.com>
7166
7167 * ada-valprint.c (print_variant_part): Remove parameters; switch
7168 to value-based API.
7169 (print_field_values): Likewise.
7170 (ada_val_print_struct_union): Likewise.
7171 (ada_value_print_1): Update.
7172
9faa006d
KR
71732020-03-20 Kamil Rytarowski <n54@gmx.com>
7174
7175 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7176 nbsd_nat_target instead of inf_ptrace_target.
7177 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7178 nbsd_nat_target.
7179
4a90f062
KR
71802020-03-20 Kamil Rytarowski <n54@gmx.com>
7181
7182 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7183 it to the ptrace call.
7184 * (store_registers): Likewise.
7185
71862020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7187
7188 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7189 it to the ptrace call.
7190 * (store_registers): Likewise.
7191
2d07da27
LM
71922020-03-19 Luis Machado <luis.machado@linaro.org>
7193
7194 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7195 valid, fetch vg value from ptrace.
7196
f09db380
KR
71972020-03-19 Kamil Rytarowski <n54@gmx.com>
7198 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7199 * inf-ptrace.c: Likewise.
7200 * (gdb_ptrace): Add.
7201 * (inf_ptrace_target::resume): Update.
7202 * (inf_ptrace_target::xfer_partial): Likewise.
7203 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7204 * (inf_ptrace_peek_poke): Update.
7205
fcc7376e
KR
72062020-03-19 Kamil Rytarowski <n54@gmx.com>
7207
7208 * x86-bsd-nat.c (gdb_ptrace): New.
7209 * (x86bsd_dr_set): Add new argument `ptid'.
7210 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7211 x86bsd_dr_set_addr): Update.
7212
cada5fc9
AB
72132020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7214
7215 * remote.c (remote_target::process_stop_reply): Handle events for
7216 all threads differently.
7217
19a2740f
AB
72182020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7219
7220 * completer.c (completion_tracker::remove_completion): Define new
7221 function.
7222 * completer.h (completion_tracker::remove_completion): Declare new
7223 function.
7224 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7225 when adding a C++ function symbol.
7226
724fd9ba
AB
72272020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7228
7229 * completer.c (completion_tracker::completion_hash_entry): Define
7230 new class.
7231 (advance_to_filename_complete_word_point): Call
7232 recompute_lowest_common_denominator.
7233 (completion_tracker::completion_tracker): Call discard_completions
7234 to setup the hash table.
7235 (completion_tracker::discard_completions): Allow for being called
7236 from the constructor, pass new equal function, and element deleter
7237 when constructing the hash table. Initialise new class member
7238 variables.
7239 (completion_tracker::maybe_add_completion): Remove use of
7240 m_entries_vec, and store more information into m_entries_hash.
7241 (completion_tracker::recompute_lcd_visitor): New function, most
7242 content taken from...
7243 (completion_tracker::recompute_lowest_common_denominator):
7244 ...here, this now just visits each item in the hash calling the
7245 above visitor.
7246 (completion_tracker::build_completion_result): Remove use of
7247 m_entries_vec, call recompute_lowest_common_denominator.
7248 * completer.h (completion_tracker::have_completions): Remove use
7249 of m_entries_vec.
7250 (completion_tracker::completion_hash_entry): Declare new class.
7251 (completion_tracker::recompute_lowest_common_denominator): Change
7252 function signature.
7253 (completion_tracker::recompute_lcd_visitor): Declare new function.
7254 (completion_tracker::m_entries_vec): Delete.
7255 (completion_tracker::m_entries_hash): Initialize to NULL.
7256 (completion_tracker::m_lowest_common_denominator_valid): New
7257 member variable.
7258 (completion_tracker::m_lowest_common_denominator_max_length): New
7259 member variable.
7260
5a82b8a1
KR
72612020-03-17 Kamil Rytarowski <n54@gmx.com>
7262
7263 * regformats/regdef.h: Put reg in gdb namespace.
7264
fb516a69
KR
72652020-03-17 Kamil Rytarowski <n54@gmx.com>
7266
7267 * i386-bsd-nat.c (gdb_ptrace): New.
7268 * (i386bsd_fetch_inferior_registers,
7269 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7270 * (i386bsd_fetch_inferior_registers,
7271 i386bsd_store_inferior_registers) Use gdb_ptrace.
7272
1c0aa1fb
KR
72732020-03-17 Kamil Rytarowski <n54@gmx.com>
7274
7275 * amd64-bsd-nat.c (gdb_ptrace): New.
7276 * (amd64bsd_fetch_inferior_registers,
7277 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7278 * (amd64bsd_fetch_inferior_registers,
7279 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7280
5ccd2fb7
KR
72812020-03-17 Kamil Rytarowski <n54@gmx.com>
7282
7283 * user-regs.c (user_reg::read): Rename to...
7284 (user_reg::xread): ...this.
7285 * (append_user_reg): Rename argument `read' to `xread'.
7286 * (user_reg_add_builtin): Likewise.
7287 * (user_reg_add): Likewise.
7288 * (value_of_user_reg): Likewise.
7289
2108a63a
KR
72902020-03-17 Kamil Rytarowski <n54@gmx.com>
7291
7292 * sparc-nat.c (gdb_ptrace): New.
7293 * sparc-nat.c (sparc_fetch_inferior_registers)
7294 (sparc_store_inferior_registers) Remove obsolete comment.
7295 * sparc-nat.c (sparc_fetch_inferior_registers)
7296 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7297 * sparc-nat.c (sparc_fetch_inferior_registers)
7298 (sparc_store_inferior_registers) Use gdb_ptrace.
7299
a225c9a8
KR
73002020-03-17 Kamil Rytarowski <n54@gmx.com>
7301
7302 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7303 it to the ptrace call.
7304 * sh-nbsd-nat.c (store_registers): Likewise.
7305
98097623
KR
73062020-03-17 Kamil Rytarowski <n54@gmx.com>
7307
7308 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7309 nbsd_nat_target instead of inf_ptrace_target.
7310 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7311 nbsd_nat_target.
7312
9e38d619
KR
73132020-03-17 Kamil Rytarowski <n54@gmx.com>
7314
7315 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7316
a2ecbe9f
KR
73172020-03-17 Kamil Rytarowski <n54@gmx.com>
7318
7319 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7320 <sys/sysctl.h>.
7321 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7322
58990295
TV
73232020-03-17 Tom de Vries <tdevries@suse.de>
7324
7325 PR gdb/23710
7326 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7327 fields.
7328 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7329 fields.
7330 (process_imported_unit_die): Skip import of c++ CUs.
7331
771dd3a8
TT
73322020-03-16 Tom Tromey <tom@tromey.com>
7333
7334 * p-valprint.c (pascal_object_print_value): Initialize
7335 base_value.
7336
817a7585
AK
73372020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7338 Shahab Vahedi <shahab@synopsys.com>
7339
7340 * Makefile.in: Add arch/arc.o
7341 * configure.tgt: Likewise.
7342 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7343 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7344 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7345 * arc-tdep.h (arc_read_description): Add proto type.
7346 * arch/arc.c: New file.
7347 * arch/arc.h: Likewise.
7348 * features/Makefile: Replace old target descriptions with new.
7349 * features/arc-arcompact.c: Remove.
7350 * features/arc-arcompact.xml: Likewise.
7351 * features/arc-v2.c: Likewise
7352 * features/arc-v2.xml: Likewise
7353 * features/arc/aux-arcompact.xml: New file.
7354 * features/arc/aux-v2.xml: Likewise.
7355 * features/arc/core-arcompact.xml: Likewise.
7356 * features/arc/core-v2.xml: Likewise.
7357 * features/arc/aux-arcompact.c: Generate.
7358 * features/arc/aux-v2.c: Likewise.
7359 * features/arc/core-arcompact.c: Likewise.
7360 * features/arc/core-v2.c: Likewise.
7361 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7362
67430cd0
TT
73632020-03-16 Tom Tromey <tromey@adacore.com>
7364
7365 PR gdb/25663:
7366 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7367 putting value into bcache.
7368
30efb6c7
SM
73692020-03-16 Simon Marchi <simon.marchi@efficios.com>
7370
7371 PR gdb/21500
7372 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7373 to...
7374 (amd64_windows_init_abi_common): ... this. Don't set size of
7375 long type.
7376 (amd64_windows_init_abi): New function.
7377 (amd64_cygwin_init_abi): New function.
7378 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7379 the Cygwin OS ABI.
7380 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7381 comment.
7382
8db52437
SM
73832020-03-16 Simon Marchi <simon.marchi@efficios.com>
7384
7385 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7386 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7387 (pe_import_directory_entry): New struct type.
7388 (is_linked_with_cygwin_dll): New function.
7389 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7390 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7391 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7392
5982a56a
SM
73932020-03-16 Simon Marchi <simon.marchi@efficios.com>
7394
7395 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7396 i386_cygwin_core_osabi_sniffer.
7397
7a1998df
SM
73982020-03-16 Simon Marchi <simon.marchi@efficios.com>
7399
7400 * i386-cygwin-tdep.c: Rename to...
7401 * i386-windows-tdep.c: ... this.
7402 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7403 i386-windows-tdep.c.
7404 * configure.tgt: Likewise.
7405
053205cc
SM
74062020-03-16 Simon Marchi <simon.marchi@efficios.com>
7407
7408 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7409 * osabi.c (gdb_osabi_names): Add "Windows".
7410 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7411 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7412 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7413 i386_cygwin_osabi_sniffer.
7414 (_initialize_i386_cygwin_tdep): Register OS ABI
7415 GDB_OSABI_WINDOWS for i386.
7416 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7417 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7418 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7419 for x86-64.
7420 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7421 when the target matches '*-*-mingw*'.
7422
fe4b2ee6
SM
74232020-03-16 Simon Marchi <simon.marchi@efficios.com>
7424
7425 * defs.h (enum gdb_osabi): Move to...
7426 * osabi.h (enum gdb_osabi): ... here.
7427 * gdbarch.sh: Include osabi.h in gdbarch.h.
7428 * gdbarch.h: Re-generate.
7429
cb9b645d
SM
74302020-03-16 Simon Marchi <simon.marchi@efficios.com>
7431
7432 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7433 function.
7434 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7435
3293bbaf
TT
74362020-03-14 Tom Tromey <tom@tromey.com>
7437
7438 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7439 for C++.
7440 (c_type_print_modifier): Likewise. Add "language" parameter.
7441 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7442 (c_type_print_base_1): Update.
7443 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7444 constants.
7445 * type-stack.c (type_stack::insert): Handle tp_atomic and
7446 tp_restrict.
7447 (type_stack::follow_type_instance_flags): Likewise.
7448 (type_stack::follow_types): Likewise. Merge type-following code.
7449 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7450 (space_identifier, cv_with_space_id)
7451 (const_or_volatile_or_space_identifier_noopt)
7452 (const_or_volatile_or_space_identifier): Remove.
7453 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7454 rules.
7455 (ptr_operator, typebase): Update.
7456 (enum token_flag) <FLAG_C>: New constant.
7457 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7458 "_Atomic".
7459 (lex_one_token): Handle FLAG_C.
7460
154151a6
KR
74612020-03-14 Kamil Rytarowski <n54@gmx.com>
7462
7463 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7464 it to the ptrace call.
7465 * m68k-bsd-nat.c (store_registers): Likewise.
7466
bc107784
KR
74672020-03-14 Kamil Rytarowski <n54@gmx.com>
7468
7469 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7470 gdb_byte *.
7471 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7472 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7473 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7474
01a80117
KR
74752020-03-14 Kamil Rytarowski <n54@gmx.com>
7476
7477 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7478 nbsd_nat_target instead of inf_ptrace_target.
7479 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7480 nbsd_nat_target.
7481
f90280ca
KR
74822020-03-14 Kamil Rytarowski <n54@gmx.com>
7483
7484 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7485 register_t.
7486
6def66f1
KR
74872020-03-14 Kamil Rytarowski <n54@gmx.com>
7488
7489 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7490 it to the ptrace call.
7491 * alpha-bsd-nat.c (store_registers): Likewise.
7492
66eaca97
KR
74932020-03-14 Kamil Rytarowski <n54@gmx.com>
7494
7495 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7496 includes.
7497 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7498 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7499 fill_fpregset): Likewise.
7500
4fed520b
KR
75012020-03-14 Kamil Rytarowski <n54@gmx.com>
7502
7503 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7504 nbsd_nat_target instead of inf_ptrace_target.
7505 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7506 nbsd_nat_target.
7507
2190cf06
KR
75082020-03-14 Kamil Rytarowski <n54@gmx.com>
7509
7510 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7511 register_t.
7512
75c56d3d
KR
75132020-03-14 Kamil Rytarowski <n54@gmx.com>
7514
7515 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7516 it to the ptrace call.
7517 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7518 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7519 * arm-nbsd-nat.c (store_register): Likewise.
7520 * arm-nbsd-nat.c (store_regs): Likewise.
7521 * arm-nbsd-nat.c (store_fp_register): Likewise.
7522 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7523
6018d381
KR
75242020-03-14 Kamil Rytarowski <n54@gmx.com>
7525
7526 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7527 nbsd_nat_target instead of inf_ptrace_target.
7528 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7529 nbsd_nat_target.
7530
013f99f0
KR
75312020-03-14 Kamil Rytarowski <n54@gmx.com>
7532
7533 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7534 it to the ptrace call.
7535 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7536
12753073
KR
75372020-03-14 Kamil Rytarowski <n54@gmx.com>
7538
6227b330
KR
7539 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7540 it to the ptrace call.
7541 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7542
75432020-03-14 Kamil Rytarowski <n54@gmx.com>
7544
7545 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7546 gdb_byte *.
12753073
KR
7547 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7548
d5be5fa4
KR
75492020-03-14 Kamil Rytarowski <n54@gmx.com>
7550
7551 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7552 instead of inf_ptrace_target.
7553 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7554 nbsd_nat_target.
7555
8110f842
KR
75562020-03-14 Kamil Rytarowski <n54@gmx.com>
7557
7558 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7559 register_t.
7560
52feded7
KR
75612020-03-14 Kamil Rytarowski <n54@gmx.com>
7562
7563 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7564 register_t.
7565
25567eee
KR
75662020-03-14 Kamil Rytarowski <n54@gmx.com>
7567
7568 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7569 register_t.
7570
426a9c18
TT
75712020-03-13 Tom Tromey <tom@tromey.com>
7572
7573 * value.h (val_print): Don't declare.
7574 * valprint.h (val_print_array_elements)
7575 (val_print_scalar_formatted, generic_val_print): Don't declare.
7576 * valprint.c (generic_val_print_array): Take a struct value.
7577 (generic_val_print_ptr, generic_val_print_memberptr)
7578 (generic_val_print_bool, generic_val_print_int)
7579 (generic_val_print_char, generic_val_print_complex)
7580 (generic_val_print): Remove.
7581 (generic_value_print): Update.
7582 (do_val_print): Remove unused parameters. Don't call
7583 la_val_print.
7584 (val_print): Remove.
7585 (common_val_print): Update. Don't call value_check_printable.
7586 (val_print_scalar_formatted, val_print_array_elements): Remove.
7587 * rust-lang.c (rust_val_print): Remove.
7588 (rust_language_defn): Update.
7589 * p-valprint.c (pascal_val_print): Remove.
7590 (pascal_value_print_inner): Update.
7591 (pascal_object_print_val_fields, pascal_object_print_val):
7592 Remove.
7593 (pascal_object_print_static_field): Update.
7594 * p-lang.h (pascal_val_print): Don't declare.
7595 * p-lang.c (pascal_language_defn): Update.
7596 * opencl-lang.c (opencl_language_defn): Update.
7597 * objc-lang.c (objc_language_defn): Update.
7598 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7599 * m2-lang.h (m2_val_print): Don't declare.
7600 * m2-lang.c (m2_language_defn): Update.
7601 * language.h (struct language_defn) <la_val_print>: Remove.
7602 * language.c (unk_lang_value_print_inner): Rename. Change
7603 argument types.
7604 (unknown_language_defn, auto_language_defn): Update.
7605 * go-valprint.c (go_val_print): Remove.
7606 * go-lang.h (go_val_print): Don't declare.
7607 * go-lang.c (go_language_defn): Update.
7608 * f-valprint.c (f_val_print): Remove.
7609 * f-lang.h (f_value_print): Don't declare.
7610 * f-lang.c (f_language_defn): Update.
7611 * d-valprint.c (d_val_print): Remove.
7612 * d-lang.h (d_value_print): Don't declare.
7613 * d-lang.c (d_language_defn): Update.
7614 * cp-valprint.c (cp_print_value_fields)
7615 (cp_print_value_fields_rtti, cp_print_value): Remove.
7616 (cp_print_static_field): Update.
7617 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7618 (c_val_print_struct, c_val_print_union, c_val_print_int)
7619 (c_val_print_memberptr, c_val_print): Remove.
7620 * c-lang.h (c_val_print_array, cp_print_value_fields)
7621 (cp_print_value_fields_rtti): Don't declare.
7622 * c-lang.c (c_language_defn, cplus_language_defn)
7623 (asm_language_defn, minimal_language_defn): Update.
7624 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7625 (ada_val_print_enum): Take a struct value.
7626 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7627 (ada_val_print): Remove.
7628 (ada_value_print_1): Update.
7629 (printable_val_type): Remove.
7630 * ada-lang.h (ada_val_print): Don't declare.
7631 * ada-lang.c (ada_language_defn): Update.
7632
42331a1e
TT
76332020-03-13 Tom Tromey <tom@tromey.com>
7634
7635 * valprint.c (do_val_print): Update.
7636 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7637 a struct value.
7638 (value_to_value_object_no_release): Declare.
7639 * python/py-value.c (value_to_value_object_no_release): New
7640 function.
7641 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7642 struct value.
7643 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7644 function.
7645 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7646 a struct value.
7647 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7648 Declare.
7649 (gdbscm_apply_val_pretty_printer): Take a struct value.
7650 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7651 value.
7652 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7653 value.
7654 * extension-priv.h (struct extension_language_ops)
7655 <apply_val_pretty_printer>: Take a struct value.
7656 * cp-valprint.c (cp_print_value): Create a struct value.
7657 (cp_print_value): Update.
7658
3a916a97
TT
76592020-03-13 Tom Tromey <tom@tromey.com>
7660
7661 * ada-valprint.c (print_field_values): Call common_val_print.
7662
b59eac37
TT
76632020-03-13 Tom Tromey <tom@tromey.com>
7664
7665 * ada-valprint.c (val_print_packed_array_elements): Remove
7666 bitoffset and val parameters. Call common_val_print.
7667 (ada_val_print_string): Remove offset, address, and original_value
7668 parameters.
7669 (ada_val_print_array): Update.
7670 (ada_value_print_array): New function.
7671 (ada_value_print_1): Call it.
7672
03371129
TT
76732020-03-13 Tom Tromey <tom@tromey.com>
7674
7675 * ada-valprint.c (ada_value_print): Use common_val_print.
7676
2e088f8b
TT
76772020-03-13 Tom Tromey <tom@tromey.com>
7678
7679 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7680
39ef85a8
TT
76812020-03-13 Tom Tromey <tom@tromey.com>
7682
7683 * ada-valprint.c (ada_value_print_num): New function.
7684 (ada_value_print_1): Use it.
7685
b9fa6e07
TT
76862020-03-13 Tom Tromey <tom@tromey.com>
7687
7688 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7689
416595d6
TT
76902020-03-13 Tom Tromey <tom@tromey.com>
7691
7692 * ada-valprint.c (ada_value_print_ptr): New function.
7693 (ada_value_print_1): Use it.
7694
5b5e15ec
TT
76952020-03-13 Tom Tromey <tom@tromey.com>
7696
7697 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7698 call common_val_print.
7699 (ada_val_print_1): Update.
7700 (ada_value_print_1): New function.
7701 (ada_value_print_inner): Rewrite.
7702
fbf54e75
TT
77032020-03-13 Tom Tromey <tom@tromey.com>
7704
7705 * cp-valprint.c (cp_print_value_fields): Update.
7706 (cp_print_value): New function.
7707
64b653ca
TT
77082020-03-13 Tom Tromey <tom@tromey.com>
7709
7710 * m2-valprint.c (m2_value_print_inner): Use
7711 cp_print_value_fields.
7712 * cp-valprint.c (cp_print_value_fields): New function.
7713 * c-valprint.c (c_value_print_struct): New function.
7714 (c_value_print_inner): Use c_value_print_struct.
7715 * c-lang.h (cp_print_value_fields): Declare.
7716
6999f067
TT
77172020-03-13 Tom Tromey <tom@tromey.com>
7718
7719 * c-valprint.c (c_value_print_array): New function.
7720 (c_value_print_inner): Use it.
7721
ce80b8bd
TT
77222020-03-13 Tom Tromey <tom@tromey.com>
7723
7724 * c-valprint.c (c_value_print_memberptr): New function.
7725 (c_value_print_inner): Use it.
7726
2faac269
TT
77272020-03-13 Tom Tromey <tom@tromey.com>
7728
7729 * c-valprint.c (c_value_print_int): New function.
7730 (c_value_print_inner): Use it.
7731
da3e2c29
TT
77322020-03-13 Tom Tromey <tom@tromey.com>
7733
7734 * c-valprint.c (c_value_print_ptr): New function.
7735 (c_value_print_inner): Use it.
7736
50836231
TT
77372020-03-13 Tom Tromey <tom@tromey.com>
7738
7739 * c-valprint.c (c_value_print_inner): Rewrite.
7740
4f412b6e
TT
77412020-03-13 Tom Tromey <tom@tromey.com>
7742
7743 * valprint.c (generic_value_print_complex): New function.
7744 (generic_value_print): Use it.
7745
f5354008
TT
77462020-03-13 Tom Tromey <tom@tromey.com>
7747
7748 * valprint.c (generic_val_print_float): Don't call
7749 val_print_scalar_formatted.
7750 (generic_val_print, generic_value_print): Update.
7751
3eec3b05
TT
77522020-03-13 Tom Tromey <tom@tromey.com>
7753
7754 * valprint.c (generic_value_print_char): New function
7755 (generic_value_print): Use it.
7756
fdddfccb
TT
77572020-03-13 Tom Tromey <tom@tromey.com>
7758
7759 * valprint.c (generic_value_print_int): New function.
7760 (generic_value_print): Use it.
7761
6dde7521
TT
77622020-03-13 Tom Tromey <tom@tromey.com>
7763
7764 * valprint.c (generic_value_print_bool): New function.
7765 (generic_value_print): Use it.
7766
4112d2e6
TT
77672020-03-13 Tom Tromey <tom@tromey.com>
7768
7769 * valprint.c (generic_val_print_func): Simplify.
7770 (generic_val_print, generic_value_print): Update.
7771
65786af6
TT
77722020-03-13 Tom Tromey <tom@tromey.com>
7773
7774 * valprint.c (generic_val_print_flags): Remove.
7775 (generic_val_print, generic_value_print): Update.
7776 (val_print_type_code_flags): Add original_value parameter.
7777
40f3ce18
TT
77782020-03-13 Tom Tromey <tom@tromey.com>
7779
7780 * valprint.c (generic_val_print): Update.
7781 (generic_value_print): Update.
7782 * valprint.c (generic_val_print_enum): Don't call
7783 val_print_scalar_formatted.
7784
2a5b130b
TT
77852020-03-13 Tom Tromey <tom@tromey.com>
7786
7787 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7788 * valprint.c (generic_value_print_ptr): New function.
7789
abc66ce9
TT
77902020-03-13 Tom Tromey <tom@tromey.com>
7791
7792 * valprint.c (generic_value_print): Rewrite.
7793
07a32858
TT
77942020-03-13 Tom Tromey <tom@tromey.com>
7795
7796 * p-valprint.c (pascal_object_print_value_fields)
7797 (pascal_object_print_value): New functions.
7798
64d64d3a
TT
77992020-03-13 Tom Tromey <tom@tromey.com>
7800
7801 * p-valprint.c (pascal_value_print_inner): Rewrite.
7802
6a95a1f5
TT
78032020-03-13 Tom Tromey <tom@tromey.com>
7804
7805 * f-valprint.c (f_value_print_innner): Rewrite.
7806
59fcdac6
TT
78072020-03-13 Tom Tromey <tom@tromey.com>
7808
7809 * m2-valprint.c (m2_print_unbounded_array): New overload.
7810 (m2_print_unbounded_array): Update.
7811 (m2_print_array_contents): Take a struct value.
7812 (m2_value_print_inner): Rewrite.
7813
d133c3e1
TT
78142020-03-13 Tom Tromey <tom@tromey.com>
7815
7816 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7817 (d_value_print_inner): New function.
7818 * d-lang.h (d_value_print_inner): Declare.
7819 * d-lang.c (d_language_defn): Use d_value_print_inner.
7820
23b0f06b
TT
78212020-03-13 Tom Tromey <tom@tromey.com>
7822
7823 * go-valprint.c (go_value_print_inner): New function.
7824 * go-lang.h (go_value_print_inner): Declare.
7825 * go-lang.c (go_language_defn): Use go_value_print_inner.
7826
5f56f7cb
TT
78272020-03-13 Tom Tromey <tom@tromey.com>
7828
7829 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7830 API.
7831 (rust_val_print): Rewrite.
7832 (rust_value_print_inner): New function, from rust_val_print.
7833 (rust_language_defn): Use rust_value_print_inner.
7834
26792ee0
TT
78352020-03-13 Tom Tromey <tom@tromey.com>
7836
7837 * ada-valprint.c (ada_value_print_inner): New function.
7838 * ada-lang.h (ada_value_print_inner): Declare.
7839 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7840
24051bbe
TT
78412020-03-13 Tom Tromey <tom@tromey.com>
7842
7843 * f-valprint.c (f_value_print_innner): New function.
7844 * f-lang.h (f_value_print_innner): Declare.
7845 * f-lang.c (f_language_defn): Use f_value_print_innner.
7846
c0941be6
TT
78472020-03-13 Tom Tromey <tom@tromey.com>
7848
7849 * p-valprint.c (pascal_value_print_inner): New function.
7850 * p-lang.h (pascal_value_print_inner): Declare.
7851 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7852
62c4663d
TT
78532020-03-13 Tom Tromey <tom@tromey.com>
7854
7855 * m2-valprint.c (m2_value_print_inner): New function.
7856 * m2-lang.h (m2_value_print_inner): Declare.
7857 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7858
62182190
TT
78592020-03-13 Tom Tromey <tom@tromey.com>
7860
7861 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7862 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7863 * c-valprint.c (c_value_print_inner): New function.
7864 * c-lang.h (c_value_print_inner): Declare.
7865 * c-lang.c (c_language_defn, cplus_language_defn)
7866 (asm_language_defn, minimal_language_defn): Use
7867 c_value_print_inner.
7868
1e592a8a
TT
78692020-03-13 Tom Tromey <tom@tromey.com>
7870
7871 * p-valprint.c (pascal_object_print_value_fields): Now static.
7872 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7873
7fe471e9
TT
78742020-03-13 Tom Tromey <tom@tromey.com>
7875
7876 * c-valprint.c (c_val_print_array): Simplify.
7877
d121c6ce
TT
78782020-03-13 Tom Tromey <tom@tromey.com>
7879
7880 * valprint.c (value_print_array_elements): New function.
7881 * valprint.h (value_print_array_elements): Declare.
7882
4dba70ee
TT
78832020-03-13 Tom Tromey <tom@tromey.com>
7884
7885 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7886 * mips-tdep.c (mips_print_register): Use
7887 value_print_scalar_formatted.
7888
4f9ae810
TT
78892020-03-13 Tom Tromey <tom@tromey.com>
7890
7891 * valprint.h (value_print_scalar_formatted): Declare.
7892 * valprint.c (value_print_scalar_formatted): New function.
7893
156bfec9
TT
78942020-03-13 Tom Tromey <tom@tromey.com>
7895
7896 * valprint.h (generic_value_print): Declare.
7897 * valprint.c (generic_value_print): New function.
7898
2b4e573d
TT
78992020-03-13 Tom Tromey <tom@tromey.com>
7900
7901 * valprint.c (do_val_print): Call la_value_print_inner, if
7902 available.
7903 * rust-lang.c (rust_language_defn): Update.
7904 * p-lang.c (pascal_language_defn): Update.
7905 * opencl-lang.c (opencl_language_defn): Update.
7906 * objc-lang.c (objc_language_defn): Update.
7907 * m2-lang.c (m2_language_defn): Update.
7908 * language.h (struct language_defn) <la_value_print_inner>: New
7909 member.
7910 * language.c (unknown_language_defn, auto_language_defn): Update.
7911 * go-lang.c (go_language_defn): Update.
7912 * f-lang.c (f_language_defn): Update.
7913 * d-lang.c (d_language_defn): Update.
7914 * c-lang.c (c_language_defn, cplus_language_defn)
7915 (asm_language_defn, minimal_language_defn): Update.
7916 * ada-lang.c (ada_language_defn): Update.
7917
a1f6a07c
TT
79182020-03-13 Tom Tromey <tom@tromey.com>
7919
7920 * c-valprint.c (c_value_print): Use common_val_print.
7921
410cf315
TT
79222020-03-13 Tom Tromey <tom@tromey.com>
7923
7924 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7925
72a45c93
TT
79262020-03-13 Tom Tromey <tom@tromey.com>
7927
7928 * f-valprint.c (f77_print_array_1, f_val_print): Use
7929 common_val_print.
7930
040f66bd
TT
79312020-03-13 Tom Tromey <tom@tromey.com>
7932
7933 * riscv-tdep.c (riscv_print_one_register_info): Use
7934 common_val_print.
7935
a6e05a6c
TT
79362020-03-13 Tom Tromey <tom@tromey.com>
7937
7938 * mi/mi-main.c (output_register): Use common_val_print.
7939
3444c526
TT
79402020-03-13 Tom Tromey <tom@tromey.com>
7941
7942 * infcmd.c (default_print_one_register_info): Use
7943 common_val_print.
7944
c2a44efe
TT
79452020-03-13 Tom Tromey <tom@tromey.com>
7946
7947 * valprint.h (common_val_print_checked): Declare.
7948 * valprint.c (common_val_print_checked): New function.
7949 * stack.c (print_frame_arg): Use common_val_print_checked.
7950
b0c26e99
TT
79512020-03-13 Tom Tromey <tom@tromey.com>
7952
7953 * valprint.c (do_val_print): New function, from val_print.
7954 (val_print): Use do_val_print.
7955 (common_val_print): Use do_val_print.
7956
ce3acbe9
TT
79572020-03-13 Tom Tromey <tom@tromey.com>
7958
7959 * valprint.c (value_print): Use scoped_value_mark.
7960
96c7f873
TV
79612020-03-13 Tom de Vries <tdevries@suse.de>
7962
7963 PR symtab/25646
7964 * psymtab.c (partial_symtab::partial_symtab): Don't set
7965 globals_offset and statics_offset. Push element onto
7966 current_global_psymbols and current_static_psymbols stacks.
7967 (concat): New function.
7968 (end_psymtab_common): Set globals_offset and statics_offset. Pop
7969 element from current_global_psymbols and current_static_psymbols
7970 stacks. Concat popped elements to global_psymbols and
7971 static_symbols.
7972 (add_psymbol_to_list): Use current_global_psymbols and
7973 current_static_psymbols stacks.
7974 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
7975 current_static_psymbols fields.
7976
6ba0a321
CB
79772020-03-12 Christian Biesinger <cbiesinger@google.com>
7978
7979 * corelow.c (sniff_core_bfd): Remove.
7980 (class core_target) <m_core_vec>: Remove.
7981 (core_target::core_target): Update.
7982 (core_file_fns): Remove.
7983 (deprecated_add_core_fns): Remove.
7984 (default_core_sniffer): Remove.
7985 (sniff_core_bfd): Remove.
7986 (default_check_format): Remove.
7987 (gdb_check_format): Remove.
7988 (core_target_open): Update.
7989 (core_target::get_core_register_section): Update.
7990 (get_core_registers_cb): Update.
7991 (core_target::fetch_registers): Update.
7992 * gdbcore.h (struct core_fns): Remove.
7993 (deprecated_add_core_fns): Remove.
7994 (default_core_sniffer): Remove.
7995 (default_check_format): Remove.
7996
227031b2
TT
79972020-03-12 Tom Tromey <tom@tromey.com>
7998
7999 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8000 CORE_ADDR.
8001 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8002
53807e9f
TT
80032020-03-12 Tom Tromey <tom@tromey.com>
8004
8005 * remote.c (remote_target::download_tracepoint)
8006 (remote_target::enable_tracepoint)
8007 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8008 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8009 sprintf_vma.
8010
64f25102
TT
80112020-03-12 Tom Tromey <tom@tromey.com>
8012
8013 * symfile-mem.c: Update CORE_ADDR size assert.
8014
272cd5a3
SM
80152020-03-12 Simon Marchi <simon.marchi@efficios.com>
8016
8017 * selftest.m4: Move to gdbsupport/.
8018 * acinclude.m4: Update path to selftest.m4.
8019
74cd3f9d
SM
80202020-03-12 Simon Marchi <simon.marchi@efficios.com>
8021
8022 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8023 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8024 gdbarch-selfselftests.c and selftest-arch.c.
8025 (SUBDIR_UNITTESTS_OBS): Rename to...
8026 (SELFTESTS_OBS): ... this.
8027 (COMMON_SFILES): Remove disasm-selftests.c and
8028 gdbarch-selftests.c.
8029 * configure.ac: Don't add selftest-arch.{c,o} to
8030 CONFIG_{SRCS,OBS}.
8031 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8032 preprocessor conditions.
8033
db6878ac
SM
80342020-03-12 Simon Marchi <simon.marchi@efficios.com>
8035
8036 * configure.ac: Don't source bfd/development.sh.
8037 * selftest.m4: Modify comment.
8038 * configure: Re-generate.
8039
4d696a5c
SM
80402020-03-12 Simon Marchi <simon.marchi@efficios.com>
8041
8042 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8043 not "true" or "false".
8044 * configure: Re-generate.
8045
8dd8e1c7
CB
80462020-03-12 Christian Biesinger <cbiesinger@google.com>
8047
8048 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8049 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8050 renamed to arm_nbsd_supply_gregset.
8051 (fetch_register): Update to call arm_nbsd_supply_gregset.
8052 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8053 (arm_netbsd_nat_target::fetch_registers): Update.
8054 (fetch_elfcore_registers): Removed.
8055 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8056 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8057 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8058 not require NetBSD system headers.
8059 (arm_nbsd_regset): New struct.
8060 (arm_nbsd_iterate_over_regset_sections): New function.
8061 (arm_netbsd_init_abi_common): Updated to call
8062 set_gdbarch_iterate_over_regset_sections.
8063 * arm-nbsd-tdep.h: New file.
8064
dd69bf7a
KB
80652020-03-11 Kevin Buettner <kevinb@redhat.com>
8066
8067 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8068 recursion.
8069
a0761e34
SM
80702020-03-11 Simon Marchi <simon.marchi@efficios.com>
8071
8072 * configure: Re-generate.
8073
e7a82140
TT
80742020-03-11 Tom Tromey <tromey@adacore.com>
8075
8076 * ada-typeprint.c (print_choices): Fix comment.
8077
dcc050c8
AB
80782020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8079
8080 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8081 previous item in the list, when the list has no items.
8082
1c33af77
TV
80832020-03-11 Tom de Vries <tdevries@suse.de>
8084
8085 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8086 PROP_LOCLIST handling code.
8087
8c95582d
AB
80882020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8089
8090 * buildsym-legacy.c (record_line): Pass extra parameter to
8091 record_line.
8092 * buildsym.c (buildsym_compunit::record_line): Take an extra
8093 parameter, reduce duplication in the line table, and record the
8094 is_stmt flag in the line table.
8095 * buildsym.h (buildsym_compunit::record_line): Add extra
8096 parameter.
8097 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8098 non-statement lines.
8099 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8100 this to the symtab builder.
8101 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8102 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8103 through to dwarf_record_line_1.
8104 * infrun.c (process_event_stop_test): When stepping, don't stop at
8105 a non-statement instruction, and only refresh the step info when
8106 we land in the middle of a line's range. Also add an extra
8107 comment.
8108 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8109 field.
8110 * record-btrace.c (btrace_find_line_range): Only record lines
8111 marked as is-statement.
8112 * stack.c (frame_show_address): Show the frame address if we are
8113 in a non-statement sal.
8114 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8115 (maintenance_print_one_line_table): Print a header for the is_stmt
8116 column, and include is_stmt information in the output.
8117 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8118 preference to non-statements.
8119 (find_pcs_for_symtab_line): Prefer is-statement entries.
8120 (find_line_common): Likewise.
8121 * symtab.h (struct linetable_entry): Add is_stmt field.
8122 (struct symtab_and_line): Likewise.
8123 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8124 arranging the line table.
8125
e4003a34
TV
81262020-03-07 Tom de Vries <tdevries@suse.de>
8127
8128 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8129 DIE.
8130
e8932576
TT
81312020-03-07 Tom Tromey <tom@tromey.com>
8132
8133 * valops.c (value_literal_complex): Remove obsolete comment.
8134 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8135 comment.
8136
29734269
SM
81372020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8138
8139 * infrun.h: Forward-declare thread_info.
8140 (set_step_info): Add thread_info parameter, add doc.
8141 * infrun.c (set_step_info): Add thread_info parameter, move doc
8142 to header.
8143 * infrun.c (process_event_stop_test): Pass thread to
8144 set_step_info call.
8145 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8146 set_step_info.
8147 (prepare_one_step): Add thread_info parameter, pass it to
8148 set_step_frame and prepare_one_step (recursive) call.
8149 (step_1): Pass thread to prepare_one_step call.
8150 (step_command_fsm::should_stop): Pass thread to
8151 prepare_one_step.
8152 (until_next_fsm): Pass thread to set_step_frame call.
8153 (finish_command): Pass thread to set_step_info call.
8154
b7d64b29
HD
81552020-03-06 Hannes Domani <ssbssa@yahoo.de>
8156
8157 * windows-tdep.c (windows_solib_create_inferior_hook):
8158 Check if inferior is running.
8159
09f2921c
TV
81602020-03-06 Tom de Vries <tdevries@suse.de>
8161
8162 * NEWS: Fix "the the".
8163 * ctfread.c: Same.
8164
fd760e79
TV
81652020-03-06 Tom de Vries <tdevries@suse.de>
8166
8167 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8168
20ea4a60
AB
81692020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8170
8171 * .dir-locals.el: Add a comment referencing the other copies of
8172 this file.
8173
0afbabf0
JB
81742020-03-05 John Baldwin <jhb@FreeBSD.org>
8175
8176 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8177 psargs.
8178
842806cb
TBA
81792020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8180
8181 * .gitattributes: New file.
8182
be1e3d3e
TT
81832020-03-04 Tom Tromey <tom@tromey.com>
8184
8185 * symmisc.c (print_symbol_bcache_statistics)
8186 (print_objfile_statistics): Update.
8187 * symfile.c (allocate_symtab): Use intern.
8188 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8189 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8190 macro_cache>: Remove.
8191 <string_cache>: New member.
8192 (struct objfile) <intern>: New methods.
8193 * elfread.c (elf_symtab_read): Use intern.
8194 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8195 (dwarf2_compute_name, dwarf2_physname)
8196 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8197 names.
8198 (guess_partial_die_structure_name): Update.
8199 (partial_die_info::fixup): Intern name.
8200 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8201 name.
8202 (dwarf2_name): Intern name. Update.
8203 * buildsym.c (buildsym_compunit::get_macro_table): Use
8204 string_cache.
8205
4e7625fd
TT
82062020-03-04 Tom Tromey <tom@tromey.com>
8207
8208 * jit.c (bfd_open_from_target_memory): Make "target" const.
8209 * corefile.c (gnutarget): Now const.
8210 * gdbcore.h (gnutarget): Now const.
8211
46f9f931
HD
82122020-03-04 Hannes Domani <ssbssa@yahoo.de>
8213
8214 * NEWS: Mention support for WOW64 processes.
8215 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8216 (amd64_windows_segment_register_p): Remove static.
8217 (_initialize_amd64_windows_nat): Update.
8218 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8219 * i386-windows-nat.c (context_offset): Update.
8220 (i386_mappings): Rename and remove static.
8221 (i386_windows_segment_register_p): Remove static.
8222 (_initialize_i386_windows_nat): Update.
8223 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8224 (STATUS_WX86_SINGLE_STEP): New macro.
8225 (EnumProcessModulesEx): New macro.
8226 (Wow64SuspendThread): New macro.
8227 (Wow64GetThreadContext): New macro.
8228 (Wow64SetThreadContext): New macro.
8229 (Wow64GetThreadSelectorEntry): New macro.
8230 (windows_set_context_register_offsets): Add static.
8231 (windows_set_segment_register_p): Likewise.
8232 (windows_add_thread): Adapt for WOW64 processes.
8233 (windows_fetch_one_register): Likewise.
8234 (windows_nat_target::fetch_registers): Likewise.
8235 (windows_store_one_register): Likewise.
8236 (display_selector): Likewise.
8237 (display_selectors): Likewise.
8238 (handle_exception): Likewise.
8239 (windows_continue): Likewise.
8240 (windows_nat_target::resume): Likewise.
8241 (windows_add_all_dlls): Likewise.
8242 (do_initial_windows_stuff): Likewise.
8243 (windows_nat_target::attach): Likewise.
8244 (windows_get_exec_module_filename): Likewise.
8245 (windows_nat_target::create_inferior): Likewise.
8246 (windows_xfer_siginfo): Likewise.
8247 (_initialize_loadable): Initialize Wow64SuspendThread,
8248 Wow64GetThreadContext, Wow64SetThreadContext,
8249 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8250 * windows-nat.h (windows_set_context_register_offsets):
8251 Remove declaration.
8252 (windows_set_segment_register_p): Likewise.
8253 (i386_windows_segment_register_p): Add declaration.
8254 (amd64_windows_segment_register_p): Likewise.
8255
440cf44e
LM
82562020-03-04 Luis Machado <luis.machado@linaro.org>
8257
8258 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8259 in "info registers" for AArch64/ARM.
8260
8261 The change caused "info registers" to not print GPR's.
8262
8263 gdb/ChangeLog:
8264
8265 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8266
8267 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8268 when reg->group is empty and reggroup is not.
8269
1009d92f
TT
82702020-03-03 Tom Tromey <tromey@adacore.com>
8271
8272 * dwarf2/frame.c (struct dwarf2_frame_cache)
8273 <checked_tailcall_bottom, entry_cfa_sp_offset,
8274 entry_cfa_sp_offset_p>: Remove members.
8275 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8276 (dwarf2_frame_prev_register): Don't call
8277 dwarf2_tailcall_sniffer_first.
8278 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8279 * frame-unwind.c (add_unwinder): New fuction.
8280 (frame_unwind_init): Use it. Add tailcall unwinder.
8281
5e5d66b6
AB
82822020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8283 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8284
8285 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8286 value should be printed as true.
8287
584cf46d
HD
82882020-03-03 Hannes Domani <ssbssa@yahoo.de>
8289
8290 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8291 (windows_init_abi): Set and use windows_so_ops.
8292
7b973adc
SDJ
82932020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8294
8295 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8296 when verifying if dealing with a convenience variable.
8297
bb7b70ab
LM
82982020-03-03 Luis Machado <luis.machado@linaro.org>
8299
8300 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8301
9822cb57
SM
83022020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8303
8304 * infrun.c (gdbarch_supports_displaced_stepping): New.
8305 (use_displaced_stepping): Break up conditions in smaller pieces.
8306 Use gdbarch_supports_displaced_stepping.
8307 (displaced_step_prepare_throw): Use
8308 gdbarch_supports_displaced_stepping.
8309
63e163f2
AB
83102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8311
8312 * NEWS: Mention new behaviour of the history filename.
8313 * top.c (write_history_p): Add comment.
8314 (show_write_history_p): Add header comment, give a different
8315 message when history writing is on, but the history filename is
8316 empty.
8317 (history_filename): Add comment.
8318 (history_filename_empty): New function.
8319 (show_history_filename): Add header comment, give a different
8320 message when the filename is empty.
8321 (init_history): Compare history_filename against nullptr, and only
8322 read history if the filename is not empty.
8323 (set_history_filename): Add header comment, and only make
8324 non-empty filenames absolute.
8325 (init_main): Make the filename argument to 'set history filename'
8326 optional.
8327
81b86b97
CB
83282020-03-02 Christian Biesinger <cbiesinger@google.com>
8329
8330 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8331 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8332 (fetch_fp_register): Update.
8333 (fetch_fp_regs): Update.
8334 (store_fp_register): Update.
8335 (store_fp_regs): Update.
8336 (arm_netbsd_nat_target::read_description): New function.
8337 (fetch_elfcore_registers): Update.
8338
24ed6739
AB
83392020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8340
8341 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8342 general_thread if the stop reply is missing a thread-id.
8343 (remote_target::process_stop_reply): Use the first non-exited
8344 thread if the target didn't pass a thread-id.
8345 * infrun.c (do_target_wait): Move call to
8346 switch_to_inferior_no_thread to ....
8347 (do_target_wait_1): ... here.
8348
a84bb2a0
JT
83492020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8350
8351 * debuginfod-support.c: Include defs.h first.
8352
658dadf0
TV
83532020-02-28 Tom de Vries <tdevries@suse.de>
8354
8355 * symfile.c (set_initial_language): Use default language for lookup.
8356
4ebe4877
SM
83572020-02-28 Simon Marchi <simon.marchi@efficios.com>
8358
8359 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8360 reader variable, pass `this` to read_cutu_die_from_dwo.
8361
e5da1139
AM
83622020-02-27 Aaron Merey <amerey@redhat.com>
8363
8364 * source.c (open_source_file): Check for nullptr when computing
8365 srcpath.
8366
317f7127
TT
83672020-02-27 Tom Tromey <tromey@adacore.com>
8368
8369 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8370 member.
8371 (dwarf2_add_field): Don't update nfields.
8372 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8373
3104d9ee
AB
83742020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8375
8376 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8377 abs.
8378
b83470bf
TT
83792020-02-26 Tom Tromey <tom@tromey.com>
8380
8381 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8382 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8383 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8384 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8385 per_cu_data.
8386
edfe0a0c
TT
83872020-02-26 Tom Tromey <tom@tromey.com>
8388
8389 * dwarf2/index-write.c (psym_index_map): Change type.
8390 (add_address_entry_worker, write_one_signatured_type)
8391 (recursively_count_psymbols, recursively_write_psymbols)
8392 (class debug_names, psyms_seen_size, write_gdbindex)
8393 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8394
0d79cdc4
AM
83952020-02-26 Aaron Merey <amerey@redhat.com>
8396
8397 * Makefile.in: Handle optional debuginfod support.
8398 * NEWS: Update.
8399 * README: Add --with-debuginfod summary.
8400 * config.in: Regenerate.
8401 * configure: Regenerate.
8402 * configure.ac: Handle optional debuginfod support.
8403 * debuginfod-support.c: debuginfod helper functions.
8404 * debuginfod-support.h: Ditto.
8405 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8406 summary.
8407 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8408 when a dwz file cannot be found.
8409 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8410 debuginfo file cannot be found.
8411 * source.c (open_source_file): Query debuginfod servers when a
8412 source file cannot be found.
8413 * top.c (print_gdb_configuration): Include
8414 --{with,without}-debuginfod in the output.
8415
b65ce565
JG
84162020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8417
8418 * thread.c (thr_try_catch_cmd): Print thread name.
8419
d4c9a4f8
SM
84202020-02-26 Simon Marchi <simon.marchi@efficios.com>
8421
8422 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8423 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8424 dwarf2_fetch_die_type_sect_off): Move to...
8425 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8426 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8427 dwarf2_fetch_die_type_sect_off): ... here.
8428 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8429 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8430 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8431
0dce4280
TV
84322020-02-26 Tom de Vries <tdevries@suse.de>
8433
8434 PR gdb/25603
8435 * symfile.c (set_initial_language): Exit-early if
8436 language_mode == language_mode_manual.
8437
450a1bfc
SM
84382020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8439
8440 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8441 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8442 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8443
9e80cfa1
AB
84442020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8445
8446 * gdbtypes.c (create_array_type_with_stride): Handle negative
8447 array strides.
8448 * valarith.c (value_subscripted_rvalue): Likewise.
8449
09624f1f
LM
84502020-02-25 Luis Machado <luis.machado@linaro.org>
8451
8452 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8453
8cb5117c
SM
84542020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8455
8456 * loc.h (dwarf2_get_die_type): Move to...
8457 * read.h (dwarf2_get_die_type): ... here.
8458 * read.c (dwarf2_get_die_type): Move doc to header.
8459
c325c44e
JB
84602020-02-25 Joel Brobecker <brobecker@adacore.com>
8461
8462 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8463 'gnulib/Makefile.in' to the list.
8464
4ac93832
TT
84652020-02-24 Tom Tromey <tom@tromey.com>
8466
8467 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8468 Remove.
8469 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8470 XOBNEWVEC.
8471
197400e8
TT
84722020-02-24 Tom Tromey <tom@tromey.com>
8473
8474 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8475 New method.
8476 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8477 (dw2_do_instantiate_symtab, dw2_get_file_names)
8478 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8479
76935768
TT
84802020-02-24 Tom Tromey <tom@tromey.com>
8481
8482 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8483 make_scoped_restore.
8484 (dwarf2_psymtab::read_symtab): Don't clear
8485 reading_partial_symbols.
8486
a88ef40d
TV
84872020-02-24 Tom de Vries <tdevries@suse.de>
8488
8489 PR gdb/25592
8490 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8491
c9af6521
TV
84922020-02-24 Tom de Vries <tdevries@suse.de>
8493
8494 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8495 commands layout next/prev/regs.
8496
5707a07a
TT
84972020-02-22 Tom Tromey <tom@tromey.com>
8498
8499 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8500 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8501
3b0fb49e
TT
85022020-02-22 Tom Tromey <tom@tromey.com>
8503
8504 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8505
283be8bf
TT
85062020-02-22 Tom Tromey <tom@tromey.com>
8507
8508 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8509 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8510 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8511 * tui/tui.c (_initialize_tui): Add usage text.
8512
ca793b96
TT
85132020-02-22 Tom Tromey <tom@tromey.com>
8514
8515 * tui/tui-win.c (tui_set_focus_command)
8516 (tui_set_win_height_command): Use error_no_arg.
8517 (_initialize_tui_win): Update help text.
8518 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8519
432b5c40
TT
85202020-02-22 Tom Tromey <tom@tromey.com>
8521
8522 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8523 * tui/tui-disasm.h (struct tui_disasm_window)
8524 <display_start_addr>: Declare.
8525 * tui/tui-source.h (struct tui_source_window)
8526 <display_start_addr>: Declare.
8527 * tui/tui-winsource.h (struct tui_source_window_base)
8528 <show_source_line, display_start_addr>: New methods.
8529 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8530 Rename and move to protected section.
8531 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8532 (tui_source_window_base::do_erase_source_content): Update.
8533 (tui_source_window_base::show_source_line): Now a method.
8534 (tui_source_window_base::show_source_content)
8535 (tui_source_window_base::tui_source_window_base)
8536 (tui_source_window_base::rerender)
8537 (tui_source_window_base::refill)
8538 (tui_source_window_base::do_scroll_horizontal)
8539 (tui_source_window_base::set_is_exec_point_at)
8540 (tui_source_window_base::update_breakpoint_info)
8541 (tui_source_window_base::update_exec_info): Update.
8542 * tui/tui-source.c (tui_source_window::set_contents)
8543 (tui_source_window::showing_source_p)
8544 (tui_source_window::do_scroll_vertical)
8545 (tui_source_window::location_matches_p)
8546 (tui_source_window::line_is_displayed): Update.
8547 (tui_source_window::display_start_addr): New method.
8548 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8549 (tui_disasm_window::do_scroll_vertical)
8550 (tui_disasm_window::location_matches_p): Update.
8551 (tui_disasm_window::display_start_addr): New method.
8552
01b1af32
TT
85532020-02-22 Tom Tromey <tom@tromey.com>
8554
8555 * NEWS: Add entry for gdb.register_window_type.
8556 * tui/tui-layout.h (window_factory): New typedef.
8557 (tui_register_window): Declare.
8558 * tui/tui-layout.c (saved_tui_windows): New global.
8559 (tui_apply_current_layout): Use it.
8560 (tui_register_window): New function.
8561 * python/python.c (do_start_initialization): Call
8562 gdbpy_initialize_tui.
8563 (python_GdbMethods): Add "register_window_type" function.
8564 * python/python-internal.h (gdbpy_register_tui_window)
8565 (gdbpy_initialize_tui): Declare.
8566 * python/py-tui.c: New file.
8567 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8568
fc96d20b
TT
85692020-02-22 Tom Tromey <tom@tromey.com>
8570
8571 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8572
935c78c0
TT
85732020-02-22 Tom Tromey <tom@tromey.com>
8574
8575 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8576 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8577 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8578 (tui_set_win_focus_to): Move from tui-win.c.
8579
0240c8f1
TT
85802020-02-22 Tom Tromey <tom@tromey.com>
8581
8582 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8583 functions.
8584 (known_window_types): New global.
8585 (tui_get_window_by_name): Reimplement.
8586 (initialize_known_windows): New function.
8587 (validate_window_name): Rewrite.
8588 (_initialize_tui_layout): Call initialize_known_windows.
8589
fdb01f0c
TT
85902020-02-22 Tom Tromey <tom@tromey.com>
8591
8592 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8593 Remove constants.
8594 * tui/tui-winsource.h (struct tui_source_window_base)
8595 <tui_source_window_base>: Remove parameter.
8596 * tui/tui-winsource.c
8597 (tui_source_window_base::tui_source_window_base): Remove
8598 parameter.
8599 (tui_source_window_base::refill): Update.
8600 * tui/tui-stack.h (struct tui_locator_window)
8601 <tui_locator_window>: Update.
8602 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8603 Default the constructor.
8604 * tui/tui-regs.h (struct tui_data_item_window)
8605 <tui_data_item_window>: Default the constructor.
8606 (struct tui_data_window) <tui_data_window>: Likewise.
8607 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8608 Default the constructor.
8609 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8610 Default the constructor.
8611 <type>: Remove.
8612 (struct tui_win_info) <tui_win_info>: Default the constructor.
8613 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8614 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8615 Default the constructor.
8616
865a5aec
TT
86172020-02-22 Tom Tromey <tom@tromey.com>
8618
8619 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8620 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8621 * tui/tui-win.c (tui_resize_all): Don't call
8622 tui_delete_invisible_windows.
8623 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8624 done.
8625 (tui_set_layout): Update.
8626 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8627 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8628 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8629
e098d18c
TT
86302020-02-22 Tom Tromey <tom@tromey.com>
8631
8632 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8633 correctly.
8634
eb9c8874
TT
86352020-02-22 Tom Tromey <tom@tromey.com>
8636
8637 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8638
7eed1a8e
TT
86392020-02-22 Tom Tromey <tom@tromey.com>
8640
8641 * tui/tui-winsource.h (struct tui_source_window_iterator)
8642 <inner_iterator>: New etytypedef.
8643 <tui_source_window_iterator>: Take "end" parameter.
8644 <tui_source_window_iterator>: Take iterator.
8645 <operator*, advance>: Update.
8646 <m_iter>: Change type.
8647 <m_end>: New field.
8648 (struct tui_source_windows) <begin, end>: Update.
8649 * tui/tui-layout.c (tui_windows): New global.
8650 (tui_apply_current_layout): Clear tui_windows.
8651 (tui_layout_window::apply): Update tui_windows.
8652 * tui/tui-data.h (tui_windows): Declare.
8653 (all_tui_windows): Now inline function.
8654 (class tui_window_iterator, struct all_tui_windows): Remove.
8655
7c043ba6
TT
86562020-02-22 Tom Tromey <tom@tromey.com>
8657
8658 PR tui/17850:
8659 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8660 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8661 "height" argument.
8662 (class tui_layout_window) <get_sizes>: Likewise.
8663 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8664 argument.
8665 <get_sizes>: Add "height" argument.
8666 <m_vertical>: New field.
8667 * tui/tui-layout.c (tui_layout_split::clone): Update.
8668 (tui_layout_split::get_sizes): Add "height" argument.
8669 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8670 (tui_new_layout_command): Parse "-horizontal".
8671 (_initialize_tui_layout): Update help string.
8672 (tui_layout_split::specification): Add "-horizontal" when needed.
8673 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8674 argument.
8675 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8676 New methods.
8677
6bc56648
TT
86782020-02-22 Tom Tromey <tom@tromey.com>
8679
8680 * tui/tui-layout.h (enum tui_adjust_result): New.
8681 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8682 (class tui_layout_window) <adjust_size>: Return
8683 tui_adjust_result. Rewrite.
8684 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8685 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8686
c22fef7e
TT
86872020-02-22 Tom Tromey <tom@tromey.com>
8688
8689 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8690 parameter and return types.
8691 (class tui_layout_base) <specification>: Add "depth".
8692 (class tui_layout_window) <specification>: Add "depth".
8693 (class tui_layout_split) <specification>: Add "depth".
8694 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8695 and return types.
8696 (tui_new_layout_command): Parse sub-layouts.
8697 (_initialize_tui_layout): Update help string.
8698 (tui_layout_window::specification): Add "depth".
8699 (add_layout_command): Update.
8700
ee325b61
TT
87012020-02-22 Tom Tromey <tom@tromey.com>
8702
8703 * NEWS: Add "tui new-layout" item.
8704 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8705 Add new-layout command to help text.
8706 (validate_window_name): New function.
8707 (tui_new_layout_command): New function.
8708 (_initialize_tui_layout): Register "new-layout".
8709 (tui_layout_window::specification): New method.
8710 (tui_layout_window::specification): New method.
8711 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8712 method.
8713 (class tui_layout_window) <specification>: New method.
8714 (class tui_layout_split) <specification>: New method.
8715
416eb92d
TT
87162020-02-22 Tom Tromey <tom@tromey.com>
8717
8718 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8719 * tui/tui-win.c (window_name_completer): Update comment.
8720 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8721 Declare method.
8722 (class tui_layout_window) <replace_window>: Likewise.
8723 (class tui_layout_split) <replace_window>: Likewise.
8724 (tui_set_layout): Don't declare.
8725 (tui_set_initial_layout): Declare function.
8726 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8727 (asm_regs_layout): New globals.
8728 (tui_current_layout, show_layout): Remove.
8729 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8730 (find_layout, tui_apply_layout): New function.
8731 (layout_completer): Remove.
8732 (tui_next_layout): Reimplement.
8733 (tui_next_layout_command): New function.
8734 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8735 (tui_regs_layout): Reimplement.
8736 (tui_regs_layout_command): New function.
8737 (extract_display_start_addr): Rewrite.
8738 (next_layout, prev_layout): Remove.
8739 (tui_layout_window::replace_window): New method.
8740 (tui_layout_split::replace_window): New method.
8741 (destroy_layout): New function.
8742 (layout_list): New global.
8743 (add_layout_command): New function.
8744 (initialize_layouts): Update.
8745 (tui_layout_command): New function.
8746 (_initialize_tui_layout): Install "layout" commands.
8747 * tui/tui-data.h (enum tui_layout_type): Remove.
8748 (tui_current_layout): Don't declare.
8749
0dbc2fc7
TT
87502020-02-22 Tom Tromey <tom@tromey.com>
8751
8752 * tui/tui-regs.c (tui_reg_layout): Remove.
8753 (tui_reg_command): Use tui_regs_layout.
8754 * tui/tui-layout.h (tui_reg_command): Declare.
8755 * tui/tui-layout.c (tui_reg_command): New function.
8756
5afe342e
TT
87572020-02-22 Tom Tromey <tom@tromey.com>
8758
8759 * tui/tui.c (tui_rl_delete_other_windows): Call
8760 tui_remove_some_windows.
8761 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8762 Declare method.
8763 (class tui_layout_window) <remove_windows>: New method.
8764 (class tui_layout_split) <remove_windows>: Declare.
8765 (tui_remove_some_windows): Declare.
8766 * tui/tui-layout.c (tui_remove_some_windows): New function.
8767 (tui_layout_split::remove_windows): New method.
8768
427326a8
TT
87692020-02-22 Tom Tromey <tom@tromey.com>
8770
8771 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8772 * tui/tui-layout.h (tui_next_layout): Declare.
8773 * tui/tui-layout.c (tui_next_layout): New function.
8774
3fe12b6d
TT
87752020-02-22 Tom Tromey <tom@tromey.com>
8776
8777 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8778 correct coordinates.
8779
59b8b5d2
TT
87802020-02-22 Tom Tromey <tom@tromey.com>
8781
8782 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8783 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8784 DATA_WIN case.
8785
2a3d458b
TT
87862020-02-22 Tom Tromey <tom@tromey.com>
8787
8788 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8789 TUI_DISASM_WIN, not tui_win_list.
8790
3f0cbb04
TT
87912020-02-22 Tom Tromey <tom@tromey.com>
8792
8793 * valprint.c (generic_val_print_enum_1)
8794 (val_print_type_code_flags): Style member names.
8795 * rust-lang.c (val_print_struct, rust_print_enum)
8796 (rust_print_struct_def, rust_internal_print_type): Style member
8797 names.
8798 * p-valprint.c (pascal_object_print_value_fields): Style member
8799 names. Only call fprintf_symbol_filtered for static members.
8800 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8801 * f-valprint.c (f_val_print): Style member names.
8802 * f-typeprint.c (f_type_print_base): Style member names.
8803 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8804 call fprintf_symbol_filtered for static members.
8805 (cp_print_class_member): Style member names.
8806 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8807 member names.
8808 * ada-valprint.c (ada_print_scalar): Style enum names.
8809 (ada_val_print_enum): Likewise.
8810 * ada-typeprint.c (print_enum_type): Style enum names.
8811
d4d947ae
TT
88122020-02-21 Tom Tromey <tom@tromey.com>
8813
8814 * psympriv.h (struct partial_symtab): Update comment.
8815
e94e944b
TT
88162020-02-21 Tom Tromey <tromey@adacore.com>
8817
8818 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8819 type is CORE_ADDR.
8820
1eb73179
TV
88212020-02-21 Tom de Vries <tdevries@suse.de>
8822
8823 PR gdb/25534
8824 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8825 if dependencies[i]->user != NULL.
8826
4f180d53
AT
88272020-02-21 Ali Tamur <tamur@google.com>
8828
8829 * dwarf2/read.c (dwarf2_name): Add null check.
8830
22b6cd70
TT
88312020-02-20 Tom Tromey <tom@tromey.com>
8832
8833 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8834 ">=", in binary search.
8835 (dwarf2_find_containing_comp_unit): New overload.
8836 (run_test): New self-test.
8837 (_initialize_dwarf2_read): Register new test.
8838
bd0cf5a6
NC
88392020-02-20 Nelson Chu <nelson.chu@sifive.com>
8840
8841 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8842 * riscv-tdep.h: Likewise.
8843 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8844 rv32-only CSR.
8845 * features/riscv/64bit-csr.xml: Regenerated.
8846
3f702acd
SDJ
88472020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8848 Tom Tromey <tom@tromey.com>
8849
8850 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8851 of 'fputc_unfiltered'.
8852 (putchar_unfiltered): Call 'fputc_unfiltered'.
8853 (fputc_unfiltered): Call 'fputs_unfiltered'.
8854
d13c7322
AB
88552020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8856
8857 * config.in: Regenerate.
8858 * configure: Regenerate.
8859 * configure.ac: Add --with-python-libdir option.
8860 * main.c: Use WITH_PYTHON_LIBDIR.
8861
869d8950
TT
88622020-02-19 Tom Tromey <tom@tromey.com>
8863
8864 * symtab.c (general_symbol_info::compute_and_set_names): Use
8865 obstack_strndup. Simplify call to symbol_set_demangled_name.
8866
298e9637
SM
88672020-02-19 Simon Marchi <simon.marchi@efficios.com>
8868
8869 * dwarf2/read.c (allocate_signatured_type_table,
8870 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8871 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8872 Remove objfile parameter, update all callers.
8873
08410482
DE
88742020-02-19 Doug Evans <dje@google.com>
8875
8876 PR rust/25535
8877 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8878 rust_enum_variant calculation.
8879
dfdeeca1
TT
88802020-02-19 Tom Tromey <tromey@adacore.com>
8881
8882 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8883
2ef5453b
TT
88842020-02-19 Tom Tromey <tromey@adacore.com>
8885
8886 * ada-lang.c (cache_symbol): Use obstack_strdup.
8887
9f1528a1
AB
88882020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8889
8890 * configure: Regenerate.
8891
d3c22fa8
TT
88922020-02-19 Tom Tromey <tromey@adacore.com>
8893
8894 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8895 NULL check.
8896
bf84f706
MR
88972020-02-19 Maciej W. Rozycki <macro@wdc.com>
8898
8899 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8900
d1c9b20f
AB
89012020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8902
8903 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8904 if GDBSERVER is not defined.
8905 (riscv_tdesc_cache): Likewise, also store const target_desc.
8906 (STATIC_IN_GDB): Define.
8907 (riscv_create_target_description): Update declaration with
8908 STATIC_IN_GDB.
8909 (riscv_lookup_target_description): New function, only define if
8910 GDBSERVER is not defined.
8911 * arch/riscv.h (riscv_create_target_description): Declare only
8912 when GDBSERVER is defined.
8913 (riscv_lookup_target_description): New declaration when GDBSERVER
8914 is not defined.
8915 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8916 (riscv_linux_read_features): ...this, and return
8917 riscv_gdbarch_features instead of target_desc.
8918 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8919 (riscv_linux_read_description): Rename to...
8920 (riscv_linux_read_features): ...this.
8921 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8922 Update to use riscv_gdbarch_features and
8923 riscv_lookup_target_description.
8924 * riscv-tdep.c (riscv_find_default_target_description): Use
8925 riscv_lookup_target_description instead of
8926 riscv_create_target_description.
8927
373d7ac0
SM
89282020-02-18 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * valprint.c (generic_val_print_enum_1): When printing a flag
8931 enum with value 0 and there is no enumerator with value 0, print
8932 just "0" instead of "(unknown: 0x0)".
8933
b29a2df0
SM
89342020-02-18 Simon Marchi <simon.marchi@efficios.com>
8935
8936 * valprint.c (generic_val_print_enum_1): Print unknown part of
8937 flag enum in hex.
8938
6740f0cc
SM
89392020-02-18 Simon Marchi <simon.marchi@efficios.com>
8940
8941 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8942 flag enums to contain duplicate enumerators.
8943 * valprint.c (generic_val_print_enum_1): Update comment.
8944
edd45eb0
SM
89452020-02-18 Simon Marchi <simon.marchi@efficios.com>
8946
8947 * dwarf2/read.c: Include "count-one-bits.h".
8948 (update_enumeration_type_from_children): If an enumerator has
8949 multiple bits set, don't treat the enumeration as a "flag enum".
8950 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8951 of flag enums have 0 or 1 bit set.
8952
6d0cf446
BE
89532020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8954
8955 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8956 conversion.
8957 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8958 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8959 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8960 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8961 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8962
7001c1b7
SM
89632020-02-18 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
8966
fdb61c6c
SM
89672020-02-14 Simon Marchi <simon.marchi@efficios.com>
8968
8969 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
8970 displaced_step_closure_up.
8971 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
8972 (struct displaced_step_closure_up):
8973 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8974 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
8975 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
8976 Likewise.
8977 * gdbarch.sh (displaced_step_copy_insn): Likewise.
8978 * gdbarch.c, gdbarch.h: Re-generate.
8979 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
8980 displaced_step_closure_up.
8981 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8982 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
8983 * infrun.h (displaced_step_closure_up): New type alias.
8984 (struct displaced_step_inferior_state) <step_closure>: Change
8985 type to displaced_step_closure_up.
8986 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
8987 displaced_step_closure_up.
8988 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8989
a4a38eb4
TT
89902020-02-14 Tom Tromey <tom@tromey.com>
8991
8992 * minidebug.c (gnu_debug_key): New global.
8993 (find_separate_debug_file_in_section): Use it.
8994
e8217e61
SM
89952020-02-14 Simon Marchi <simon.marchi@efficios.com>
8996
8997 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
8998 std::unique_ptr.
8999 * gdbarch.c: Re-generate.
9000 * gdbarch.h: Re-generate.
9001 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9002 change.
9003 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9004 type to std::unique_ptr.
9005 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9006 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9007 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9008 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9009 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9010 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9011 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9012 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9013 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9014
d8d83535
SM
90152020-02-14 Simon Marchi <simon.marchi@efficios.com>
9016
9017 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9018 std::unique_ptr.
9019 (displaced_step_clear): Rename to...
9020 (displaced_step_reset): ... this. Just call displaced->reset ().
9021 (displaced_step_clear_cleanup): Rename to...
9022 (displaced_step_reset_cleanup): ... this.
9023 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9024 (displaced_step_fixup): Likewise.
9025 (resume_1): Likewise.
9026 (handle_inferior_event): Restore child's memory before calling
9027 displaced_step_fixup on the parent.
9028 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9029 to std::unique_ptr.
9030 <step_closure>: Change type to std::unique_ptr.
9031
5f661e03
SM
90322020-02-14 Simon Marchi <simon.marchi@efficios.com>
9033
9034 * arm-tdep.c: Include count-one-bits.h.
9035 (cleanup_block_store_pc): Use count_one_bits.
9036 (cleanup_block_load_pc): Use count_one_bits.
9037 (arm_copy_block_xfer): Use count_one_bits.
9038 (thumb2_copy_block_xfer): Use count_one_bits.
9039 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9040 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9041 (thumb_get_next_pcs_raw): Use count_one_bits.
9042 (arm_get_next_pcs_raw): Use count_one_bits_l.
9043 * arch/arm.c (bitcount): Remove.
9044 * arch/arm.h (bitcount): Remove.
9045
8084e579
TT
90462020-02-14 Tom Tromey <tromey@adacore.com>
9047
9048 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9049 Update.
9050 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9051 * dwarf2/loc.c (call_site_find_chain_1): Return
9052 unique_xmalloc_ptr.
9053 (call_site_find_chain): Likewise.
9054
258bf0ee
RB
90552020-02-14 Richard Biener <rguenther@suse.de>
9056
9057 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9058 on expression with division operators.
9059
f98a8458
AKS
90602020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9061
9062 * MAINTAINERS (Write After Approval): Adding myself.
9063
d1437c0e
TT
90642020-02-12 Tom Tromey <tom@tromey.com>
9065
9066 * event-loop.c (event_data, gdb_event, event_handler_func):
9067 Remove.
9068
3d4560f7
TT
90692020-02-12 Tom Tromey <tom@tromey.com>
9070
9071 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9072 (dwarf2_frame_objfile_data): Add comment.
9073 (find_comp_unit, set_comp_unit): New functions.
9074 (dwarf2_frame_find_fde): Use find_comp_unit.
9075 (dwarf2_build_frame_info): Use set_comp_unit.
9076
21982304
TT
90772020-02-12 Tom Tromey <tom@tromey.com>
9078
9079 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9080 (comp_unit): Don't initialize objfile.
9081 (execute_cfa_program): Add text_offset parameter.
9082 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9083 (dwarf2_frame_cache): Update.
9084 (dwarf2_build_frame_info): Don't set "objfile" member.
9085
4debb237
TT
90862020-02-12 Tom Tromey <tom@tromey.com>
9087
9088 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9089 (decode_frame_entry): Likewise.
9090 (dwarf2_build_frame_info): Update.
9091
0d404d44
TT
90922020-02-12 Tom Tromey <tom@tromey.com>
9093
9094 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9095 (decode_frame_entry_1): Use the comp_unit obstack.
9096
a7a3ae5c
TT
90972020-02-12 Tom Tromey <tom@tromey.com>
9098
9099 * dwarf2/frame.c (struct comp_unit): Add initializers and
9100 constructor.
9101 (dwarf2_frame_objfile_data): Store a comp_unit.
9102 (dwarf2_frame_find_fde): Update.
9103 (dwarf2_build_frame_info): Use "new".
9104
a9d65418
TT
91052020-02-12 Tom Tromey <tom@tromey.com>
9106
9107 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9108 (dwarf2_fde_table): Typedef for std::vector.
9109 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9110 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9111 (decode_frame_entry): Update.
9112 (dwarf2_build_frame_info): Use "new".
9113
7559c217
CB
91142020-02-12 Christian Biesinger <cbiesinger@google.com>
9115
9116 * arm-tdep.c (arm_gdbarch_init): Update.
9117 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9118 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9119 have_neon, is_m>: Change to bool.
9120
aeefc73c
CB
91212020-02-12 Christian Biesinger <cbiesinger@google.com>
9122
9123 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9124
d27b8e5f
TT
91252020-02-12 Tom Tromey <tom@tromey.com>
9126
9127 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9128
cd5900f3
HD
91292020-02-12 Hannes Domani <ssbssa@yahoo.de>
9130
9131 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9132 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9133
f056b22b
TT
91342020-02-11 Tom Tromey <tom@tromey.com>
9135
9136 * psymtab.h: Update comment.
9137
f92ff6b5
TT
91382020-02-11 Tom Tromey <tom@tromey.com>
9139
9140 * gdb_obstack.h (struct auto_obstack): Use
9141 DISABLE_COPY_AND_ASSIGN.
9142
3fd6912b
TT
91432020-02-11 Tom Tromey <tom@tromey.com>
9144
9145 * dwarf2/frame.h (struct objfile): Don't forward declare.
9146
69ed9b74
CB
91472020-02-11 Christian Biesinger <cbiesinger@google.com>
9148
9149 * cris-tdep.c (cris_supply_gregset): Change signature to match
9150 what struct regset expects.
9151 (cris_regset): New struct.
9152 (fetch_core_registers): Remove.
9153 (cris_iterate_over_regset_sections): New function.
9154 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9155 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9156
bda874f6
CB
91572020-02-11 Christian Biesinger <cbiesinger@google.com>
9158
9159 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9160 registers.
9161
754e1564
CB
91622020-02-11 Christian Biesinger <cbiesinger@google.com>
9163
9164 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9165
8ddd8e0e
SM
91662020-02-11 Simon Marchi <simon.marchi@efficios.com>
9167
9168 * configure: Re-generate.
9169
898e7f60
SM
91702020-02-11 Simon Marchi <simon.marchi@efficios.com>
9171
9172 * configure: Re-generate.
9173
58df732b
SM
91742020-02-11 Simon Marchi <simon.marchi@efficios.com>
9175
9176 * acinclude: Update warning.m4 path.
9177 * warning.m4: Move to gdbsupport.
9178
da5bd37e
TT
91792020-02-11 Tom Tromey <tromey@adacore.com>
9180
9181 * remote.c (remote_console_output): Update.
9182 * printcmd.c (printf_command): Update.
9183 * event-loop.c (gdb_wait_for_event): Update.
9184 * linux-nat.c (sigchld_handler): Update.
9185 * remote-sim.c (gdb_os_write_stdout): Update.
9186 (gdb_os_flush_stdout): Update.
9187 (gdb_os_flush_stderr): Update.
9188 (gdb_os_write_stderr): Update.
9189 * exceptions.c (print_exception): Update.
9190 * remote-fileio.c (remote_fileio_func_read): Update.
9191 (remote_fileio_func_write): Update.
9192 * tui/tui.c (tui_enable): Update.
9193 * tui/tui-interp.c (tui_interp::init): Update.
9194 * utils.c (init_page_info): Update.
9195 (putchar_unfiltered, fputc_unfiltered): Update.
9196 (gdb_flush): Update.
9197 (emit_style_escape): Update.
9198 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9199 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9200 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9201 (stderr_file::write): Update.
9202 (stderr_file::puts): Update.
9203 * ui-file.h (ui_file_isatty, ui_file_write)
9204 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9205 (ui_file_puts): Don't declare.
9206
85f0dd3c
TV
92072020-02-10 Tom de Vries <tdevries@suse.de>
9208
9209 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9210 sentinel to char *.
9211
2e927613
TV
92122020-02-09 Tom de Vries <tdevries@suse.de>
9213
9214 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9215 filename if it matches "<artificial>".
9216
6bafc845
HD
92172020-02-09 Hannes Domani <ssbssa@yahoo.de>
9218
9219 * windows-tdep.c (struct enum_value_name): New struct.
9220 (create_enum): New function.
9221 (windows_get_siginfo_type): Create and use enum types.
9222
7928d571
HD
92232020-02-09 Hannes Domani <ssbssa@yahoo.de>
9224
9225 * NEWS: Mention $_siginfo support for Windows.
9226 * windows-nat.c (handle_exception): Set siginfo_er.
9227 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9228 (windows_xfer_siginfo): New function.
9229 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9230 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9231 (init_windows_gdbarch_data): New function.
9232 (get_windows_gdbarch_data): New function.
9233 (windows_get_siginfo_type): New function.
9234 (windows_init_abi): Register windows_get_siginfo_type.
9235 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9236
6751ebae
TT
92372020-02-08 Tom Tromey <tom@tromey.com>
9238
9239 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9240 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9241 <keep>: Declare method.
9242 <m_keep>: Remove member.
9243 <~cutu_reader>: Remove.
9244 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9245 (cutu_reader::cutu_reader): Update.
9246 (cutu_reader::keep): Rename from ~cutu_reader.
9247 (process_psymtab_comp_unit, build_type_psymtabs_1)
9248 (process_skeletonless_type_unit, load_partial_comp_unit)
9249 (load_full_comp_unit, dwarf2_read_addr_index)
9250 (read_signatured_type): Update.
9251
135f5437
TT
92522020-02-08 Tom Tromey <tom@tromey.com>
9253
9254 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9255 "want_partial_unit" parameter.
9256 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9257 Inline check for DW_TAG_partial_unit.
9258 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9259
9f66ff1c
TT
92602020-02-08 Tom Tromey <tom@tromey.com>
9261
9262 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9263 read.c.
9264 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9265 read.c.
9266
c8a7a66f
TT
92672020-02-08 Tom Tromey <tom@tromey.com>
9268
9269 * dwarf2/read.c (read_address): Move to comp-unit.c.
9270 (dwarf2_rnglists_process, dwarf2_ranges_process)
9271 (read_attribute_value, dwarf_decode_lines_1)
9272 (var_decode_location, decode_locdesc): Update.
9273 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9274 read.c. Remove "cu" parameter.
9275 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9276 method.
9277
8266302d
TT
92782020-02-08 Tom Tromey <tom@tromey.com>
9279
9280 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9281 (read_indirect_line_string): Update.
9282 * dwarf2/comp-unit.c (read_offset): Remove.
9283 (read_comp_unit_head): Update.
9284 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9285 method.
9286 (read_offset): Don't declare.
9287
4057dfde
TT
92882020-02-08 Tom Tromey <tom@tromey.com>
9289
9290 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9291 * dwarf2/read.c (struct comp_unit_head): Move to
9292 dwarf2/comp-unit.h.
9293 (enum class rcuh_kind): Move to comp-unit.h.
9294 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9295 (read_comp_unit_head, error_check_comp_unit_head)
9296 (read_and_check_comp_unit_head): Move to comp-unit.c.
9297 (read_offset, dwarf_unit_type_name): Likewise.
9298 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9299 (cutu_reader::cutu_reader, read_call_site_scope)
9300 (find_partial_die, follow_die_offset): Update.
9301 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9302
24aa364d
TT
93032020-02-08 Tom Tromey <tom@tromey.com>
9304
9305 * dwarf2/read.c (read_offset_1): Move to leb.c.
9306 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9307 (dwarf_decode_macro_bytes): Update.
9308 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9309 * dwarf2/leb.h (read_offset): Declare.
9310
2c7d5afc
TT
93112020-02-08 Tom Tromey <tom@tromey.com>
9312
9313 * dwarf2/read.c (dwarf2_section_size): Remove.
9314 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9315 Update.
9316 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9317
4075cb26
TT
93182020-02-08 Tom Tromey <tom@tromey.com>
9319
9320 * dwarf2/read.c (read_initial_length): Move to leb.c.
9321 * dwarf2/leb.h (read_initial_length): Declare.
9322 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9323 handle_nonstd parameter.
9324 * dwarf2/frame.c (read_initial_length): Remove.
9325 (decode_frame_entry_1): Update.
9326
09ba997f
TT
93272020-02-08 Tom Tromey <tom@tromey.com>
9328
9329 * dwarf2/loc.c (dwarf2_find_location_expression)
9330 (dwarf_evaluate_loc_desc::get_tls_address)
9331 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9332 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9333 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9334 (dwarf2_compile_property_to_c)
9335 (dwarf2_loc_desc_get_symbol_read_needs)
9336 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9337 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9338 (loclist_describe_location, loclist_tracepoint_var_ref)
9339 (loclist_generate_c_location): Update.
9340 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9341 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9342 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9343 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9344 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9345 (dwarf2_per_cu_data::addr_size)
9346 (dwarf2_per_cu_data::ref_addr_size)
9347 (dwarf2_per_cu_data::text_offset)
9348 (dwarf2_per_cu_data::addr_type): Now methods.
9349 (per_cu_header_read_in): Make per_cu "const".
9350 (dwarf2_version): Remove.
9351 (dwarf2_per_cu_data::int_type): Now a method.
9352 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9353 (set_die_type, read_array_type, read_subrange_index_type)
9354 (read_tag_string_type, read_subrange_type): Update.
9355 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9356 offset_size, ref_addr_size, text_offset, addr_type, version,
9357 objfile, int_type, addr_sized_int_type>: Declare methods.
9358
96c738c0
TT
93592020-02-08 Tom Tromey <tom@tromey.com>
9360
9361 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9362 Move earlier.
9363
8fdd972c
TT
93642020-02-08 Tom Tromey <tom@tromey.com>
9365
9366 * dwarf2/read.h (dwarf_line_debug): Declare.
9367 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9368 * dwarf2/read.c: Move line_header code to new files.
9369 (dwarf_line_debug): No longer static.
9370 * dwarf2/line-header.c: New file.
9371 * dwarf2/line-header.h: New file.
9372
03075812
TT
93732020-02-08 Tom Tromey <tom@tromey.com>
9374
9375 * dwarf2/read.c (struct line_header) <file_full_name,
9376 file_file_name>: Return unique_xmalloc_ptr.
9377 (line_header::file_file_name): Update.
9378 (line_header::file_full_name): Update.
9379 (dw2_get_file_names_reader): Update.
9380 (macro_start_file): Update.
9381
bb822404
TT
93822020-02-08 Tom Tromey <tom@tromey.com>
9383
9384 * dwarf2/read.c (struct line_header) <file_full_name,
9385 file_file_name>: Declare methods.
9386 (dw2_get_file_names_reader): Update.
9387 (file_file_name): Now a method.
9388 (file_full_name): Likewise.
9389 (macro_start_file): Update.
9390
009b64fc
TT
93912020-02-08 Tom Tromey <tom@tromey.com>
9392
9393 * dwarf2/read.c (dwarf_always_disassemble)
9394 (show_dwarf_always_disassemble): Move to loc.c.
9395 (_initialize_dwarf2_read): Move "always-disassemble" registration
9396 to loc.c.
9397 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9398 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9399 static.
9400 (show_dwarf_always_disassemble): Move from read.c.
9401 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9402
5895093f
TT
94032020-02-08 Tom Tromey <tom@tromey.com>
9404
9405 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9406 (create_quick_file_names_table): Return htab_up.
9407 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9408 Update.
9409 * dwarf2/read.h (struct dwarf2_per_objfile)
9410 <quick_file_names_table>: Now htab_up.
9411
b3b32279
TT
94122020-02-08 Tom Tromey <tom@tromey.com>
9413
9414 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9415
1d33d811
TT
94162020-02-08 Tom Tromey <tom@tromey.com>
9417
9418 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9419 Rewrite.
9420 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9421 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9422 (abbrev_table::abbrev_table): No longer inline.
9423 (ABBREV_HASH_SIZE): Remove.
9424 (abbrev_table::m_abbrevs): Now an htab_up.
9425
86de1d91
TT
94262020-02-08 Tom Tromey <tom@tromey.com>
9427
9428 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9429 (cutu_reader): Update.
9430 (build_type_psymtabs_1): Update.
9431 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9432 (abbrev_table::alloc_abbrev): Update.
9433 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9434 (abbrev_table::read): New static method, renamed from
9435 abbrev_table_read_table.
9436 (abbrev_table::alloc_abbrev)
9437 (abbrev_table::add_abbrev): Now private.
9438 (abbrev_table::abbrev_table): Now private.
9439 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9440
0335378b
TT
94412020-02-08 Tom Tromey <tom@tromey.com>
9442
9443 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9444 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9445 htab_up.
9446
48b490f2
TT
94472020-02-08 Tom Tromey <tom@tromey.com>
9448
9449 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9450 htab_up.
9451 (lookup_dwo_unit_in_dwp): Update.
9452 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9453 on obstack.
9454
bc68fb19
TT
94552020-02-08 Tom Tromey <tom@tromey.com>
9456
9457 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9458 obstack.
9459
d15acc42
TT
94602020-02-08 Tom Tromey <tom@tromey.com>
9461
9462 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9463 line_header_hash.
9464 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9465 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9466 Change type to htab_up.
9467
eaa5fa8b
TT
94682020-02-08 Tom Tromey <tom@tromey.com>
9469
9470 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9471 htab_up. Don't allocate on obstack.
9472 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9473 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9474 Change type to htab_up.
9475
b0b6a987
TT
94762020-02-08 Tom Tromey <tom@tromey.com>
9477
9478 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9479 Change type to htab_up.
9480 * dwarf2/read.c (create_signatured_type_table_from_index)
9481 (create_signatured_type_table_from_debug_names)
9482 (create_all_type_units, add_type_unit)
9483 (lookup_dwo_signatured_type, lookup_signatured_type)
9484 (process_skeletonless_type_unit): Update.
9485 (create_debug_type_hash_table, create_debug_types_hash_table):
9486 Change type of types_htab.
9487 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9488 htab_up. Don't allocate on obstack.
9489 (create_cus_hash_table): Change type of cus_htab parameter.
9490 (struct dwo_file) <cus, tus>: Now htab_up.
9491 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9492 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9493 (queue_and_load_all_dwo_tus): Update.
9494 * dwarf2/index-write.c (write_gdbindex): Update.
9495 (write_debug_names): Update.
9496
39856def
TT
94972020-02-08 Tom Tromey <tom@tromey.com>
9498
9499 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9500 dwarf2/read.c. Remove "next" member. Add constructor ntad
9501 destructor.
9502 (struct dwarf2_per_objfile) <queue>: New member.
9503 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9504 dwarf2/read.h.
9505 (dwarf2_queue, dwarf2_queue_tail): Remove.
9506 (class dwarf2_queue_guard): Add parameter to constructor. Use
9507 DISABLE_COPY_AND_ASSIGN.
9508 <m_per_objfile>: New member.
9509 <~dwarf2_queue_guard>: Rewrite.
9510 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9511 Update.
9512 (~dwarf2_queue_item): New.
9513
3e225074
TT
95142020-02-08 Tom Tromey <tom@tromey.com>
9515
9516 * dwarf2/read.c (struct die_info) <has_children>: New member.
9517 (dw2_get_file_names_reader): Remove has_children.
9518 (dw2_get_file_names): Update.
9519 (read_cutu_die_from_dwo): Remove has_children.
9520 (cutu_reader::init_tu_and_read_dwo_dies)
9521 (cutu_reader::cutu_reader): Update.
9522 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9523 Remove has_children.
9524 (build_type_psymtabs_1, process_skeletonless_type_unit)
9525 (load_partial_comp_unit, load_full_comp_unit): Update.
9526 (create_dwo_cu_reader): Remove has_children.
9527 (create_cus_hash_table, read_die_and_children): Update.
9528 (read_full_die_1,read_full_die): Remove has_children.
9529 (read_signatured_type): Update.
9530 (class cutu_reader) <has_children>: Remove.
9531
82ca8957
TT
95322020-02-08 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/expr.c: Rename from dwarf2expr.c.
9535 * dwarf2/expr.h: Rename from dwarf2expr.h.
9536 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9537 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9538 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9539 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9540 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9541 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9542 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9543 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9544 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9545 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9546 * dwarf2/loc.c: Rename from dwarf2loc.c.
9547 * dwarf2/loc.h: Rename from dwarf2loc.h.
9548 * dwarf2/read.c: Rename from dwarf2read.c.
9549 * dwarf2/read.h: Rename from dwarf2read.h.
9550 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9551 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9552 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9553 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9554 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9555 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9556 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9557 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9558 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9559 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9560 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9561 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9562 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9563 Update.
9564 * Makefile.in (COMMON_SFILES): Update.
9565 (HFILES_NO_SRCDIR): Update.
9566
9e35d499
TT
95672020-02-08 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9570 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9571
1eba2311
TT
95722020-02-08 Tom Tromey <tom@tromey.com>
9573
9574 * dwarf2read.h (struct die_info): Don't declare.
9575
e41c2da2
TT
95762020-02-08 Tom Tromey <tom@tromey.com>
9577
9578 * dwarf2read.h (die_info_ptr): Remove typedef.
9579
4fc6c0d5
TT
95802020-02-08 Tom Tromey <tom@tromey.com>
9581
9582 * dwarf2read.c (read_call_site_scope)
9583 (handle_data_member_location, dwarf2_add_member_fn)
9584 (mark_common_block_symbol_computed, read_common_block)
9585 (attr_to_dynamic_prop, partial_die_info::read)
9586 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9587 (dwarf2_symbol_mark_computed, set_die_type): Update.
9588 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9589 method.
9590 (attr_form_is_block): Don't declare.
9591 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9592
cd6c91b4
TT
95932020-02-08 Tom Tromey <tom@tromey.com>
9594
9595 * dwarf2read.c (dwarf2_find_base_address, )
9596 (read_call_site_scope, rust_containing_type)
9597 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9598 (handle_data_member_location, dwarf2_add_member_fn)
9599 (get_alignment, read_structure_type, process_structure_scope)
9600 (mark_common_block_symbol_computed, read_common_block)
9601 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9602 (partial_die_info::read, read_attribute_value, new_symbol)
9603 (lookup_die_type, dwarf2_get_ref_die_offset)
9604 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9605 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9606 (dwarf2_symbol_mark_computed): Update.
9607 * dwarf2/attribute.h (struct attribute) <value_as_address,
9608 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9609 methods.
9610 (value_as_address, attr_form_is_section_offset)
9611 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9612 * dwarf2/attribute.c (attribute::value_as_address)
9613 (attribute::form_is_section_offset, attribute::form_is_constant)
9614 (attribute::form_is_ref): Now methods.
9615
162dce55
TT
96162020-02-08 Tom Tromey <tom@tromey.com>
9617
9618 * dwarf2read.c (struct attribute, DW_STRING)
9619 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9620 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9621 (attr_form_is_block, attr_form_is_section_offset)
9622 (attr_form_is_constant, attr_form_is_ref): Move.
9623 * dwarf2/attribute.h: New file.
9624 * dwarf2/attribute.c: New file, from dwarf2read.c.
9625 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9626
3054dd54
TT
96272020-02-08 Tom Tromey <tom@tromey.com>
9628
9629 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9630 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9631 Move.
9632 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9633 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9634 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9635 abbrev.c.
9636 * dwarf2/abbrev.h: New file.
9637 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9638 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9639
96b79293
TT
96402020-02-08 Tom Tromey <tom@tromey.com>
9641
9642 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9643 (dwarf2_section_size, dwarf2_get_section_info)
9644 (create_signatured_type_table_from_debug_names)
9645 (create_addrmap_from_aranges, read_debug_names_from_section)
9646 (get_gdb_index_contents_from_section, read_comp_unit_head)
9647 (error_check_comp_unit_head, read_abbrev_offset)
9648 (create_debug_type_hash_table, init_cu_die_reader)
9649 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9650 (read_comp_units_from_section, create_cus_hash_table)
9651 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9652 (create_dwp_v2_section, dwarf2_rnglists_process)
9653 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9654 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9655 (read_indirect_string_from_dwz, read_addr_index_1)
9656 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9657 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9658 (fill_in_loclist_baton): Update.
9659 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9660 get_containing_section, get_bfd_owner, get_bfd_section,
9661 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9662 (dwarf2_read_section, get_section_name, get_section_file_name)
9663 (get_containing_section, get_section_bfd_owner)
9664 (get_section_bfd_section, get_section_name, get_section_file_name)
9665 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9666 declare.
9667 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9668 (dwarf2_section_info::get_bfd_owner)
9669 (dwarf2_section_info::get_bfd_section)
9670 (dwarf2_section_info::get_name)
9671 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9672 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9673 (dwarf2_section_info::read): Now methods.
9674 * dwarf-index-write.c (class debug_names): Update.
9675
2c86cff9
TT
96762020-02-08 Tom Tromey <tom@tromey.com>
9677
9678 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9679 Move to dwarf2/section.h.
9680 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9681 (get_section_bfd_section, get_section_name)
9682 (get_section_file_name, get_section_id, get_section_flags)
9683 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9684 dwarf2/section.c.
9685 * dwarf2/section.h: New file.
9686 * dwarf2/section.c: New file, from dwarf2read.c.
9687 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9688
f4382c45
TT
96892020-02-08 Tom Tromey <tom@tromey.com>
9690
9691 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9692 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9693 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9694 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9695 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9696 * dwarf2/leb.h: New file, from dwarf2read.c.
9697 * dwarf2/leb.c: New file, from dwarf2read.c.
9698 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9699 Remove.
9700 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9701 (COMMON_SFILES): Add dwarf2/leb.c.
9702
01840b7a
JB
97032020-02-08 Joel Brobecker <brobecker@adacore.com>
9704
9705 GDB 9.1 released.
9706
dfcb27e4
IB
97072020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9708
9709 PR gdb/25190:
aac66a4c
SM
9710 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9711 * gdb/remote.c (remote_console_output): Update.
9712 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9713 (ui_file_puts): ...this.
9714 * gdb/ui-file.h (ui_file_puts): Add declaration.
9715 * gdb/utils.c (emit_style_escape): Update.
9716 (flush_wrap_buffer): Update.
9717 (fputs_maybe_filtered): Update.
9718 (fputs_unfiltered): Add function.
dfcb27e4 9719
faa17681
IB
97202020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9721
aac66a4c
SM
9722 * gdb/event-loop.c (gdb_wait_for_event): Update.
9723 * gdb/printcmd.c (printf_command): Update.
9724 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9725 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9726 (gdb_os_flush_stderr): Update.
9727 * gdb/remote.c (remote_console_output): Update.
9728 * gdb/ui-file.c (gdb_flush): Rename to...
9729 (ui_file_flush): ...this.
9730 (stderr_file::write): Update.
9731 (stderr_file::puts): Update.
9732 * gdb/ui-file.h (gdb_flush): Rename to...
9733 (ui_file_flush): ...this.
9734 * gdb/utils.c (gdb_flush): Add function.
9735 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9736
5abbbe1d
TT
97372020-02-07 Tom Tromey <tromey@adacore.com>
9738
9739 PR breakpoints/24915:
9740 * source.c (find_and_open_source): Do not check basenames_may_differ.
9741
919adfe8
TT
97422020-02-07 Tom Tromey <tom@tromey.com>
9743
9744 * README: Update gdbserver documentation.
9745 * gdbserver: Move to top level.
9746 * configure.tgt (build_gdbserver): Remove.
9747 * configure.ac: Remove --enable-gdbserver.
9748 * configure: Rebuild.
9749 * Makefile.in (distclean): Don't mention gdbserver.
9750
1d5d29e7
SV
97512020-02-06 Shahab Vahedi <shahab@synopsys.com>
9752
9753 * source-cache.c (source_cache::ensure): Surround
9754 get_plain_source_lines with a try/catch.
9755 (source_cache::get_line_charpos): Get rid of try/catch
9756 and only check for the return value of "ensure".
9757 * tui/tui-source.c (tui_source_window::set_contents):
9758 Simplify "nlines" calculation.
9759
6eb1129c
SV
97602020-02-06 Shahab Vahedi <shahab@synopsys.com>
9761
9762 * MAINTAINERS (Write After Approval): Add myself.
9763
c6a42d11
CB
97642020-02-05 Christian Biesinger <cbiesinger@google.com>
9765
9766 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9767 function call.
9768
c8ecdda6
CB
97692020-02-05 Christian Biesinger <cbiesinger@google.com>
9770
9771 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9772
f6480e70
MR
97732020-02-05 Maciej W. Rozycki <macro@wdc.com>
9774
9775 * nat/riscv-linux-tdesc.h: New file.
9776 * nat/riscv-linux-tdesc.c: New file, taking code from...
9777 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9778 ... here.
9779 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9780 NATDEPFILES.
9781
dcc9fbc6
AB
97822020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9783
9784 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9785 we don't set the fake simulator ptid to the null_ptid.
9786
719546c4
SM
97872020-02-03 Simon Marchi <simon.marchi@efficios.com>
9788
9789 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9790 * gdbthread.h (class thread_info) <resumed>: Likewise.
9791 * infrun.c (resume_1): Likewise.
9792 (proceed): Likewise.
9793 (infrun_thread_stop_requested): Likewise.
9794 (stop_all_threads): Likewise.
9795 (handle_inferior_event): Likewise.
9796 (restart_threads): Likewise.
9797 (finish_step_over): Likewise.
9798 (keep_going_stepped_thread): Likewise.
9799 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9800 (linux_handle_extended_wait): Likewise.
9801 * record-btrace.c (get_thread_current_frame_id): Likewise.
9802 * record-full.c (record_full_wait_1): Likewise.
9803 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9804 * target.c (target_resume): Likewise.
9805 * thread.c (set_running_thread): Likewise.
9806
e409c542
AKS
98072020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9808
9809 * f-valprint.c (f77_print_array_1): Changed datatype of index
9810 variable to LONGEST from int to enable it to contain bound
9811 values correctly.
9812
ee98c0da
MR
98132020-02-03 Maciej W. Rozycki <macro@wdc.com>
9814
9815 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9816 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9817 offsets according to FLEN determined.
9818 (riscv_linux_nat_target::read_description): Determine FLEN
9819 dynamically.
9820 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9821 according to FLEN determined.
9822 (riscv_linux_nat_target::store_registers): Likewise.
9823
aa66aac4
SV
98242020-02-01 Shahab Vahedi <shahab@synopsys.com>
9825
9826 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9827 when reg->group is empty and reggroup is not.
9828
fd9faca8
TT
98292020-01-31 Tom Tromey <tromey@adacore.com>
9830
9831 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9832 Call beneath target's mourn_inferior after unpushing.
9833
42330a68
AB
98342020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9835
9836 PR tui/9765
9837 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9838 have enough lines to fill the screen, still return the lowest
9839 address we found.
9840
7a27a45b
AB
98412020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9842
9843 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9844 '-', '<', and '>' commands.
9845
c47f70e2
PA
98462020-01-29 Pedro Alves <palves@redhat.com>
9847 Sergio Durigan Junior <sergiodj@redhat.com>
9848
9849 * infcmd.c (construct_inferior_arguments): Assert that
9850 'argc' is greater than 0.
9851
5133a315
LM
98522020-01-29 Luis Machado <luis.machado@linaro.org>
9853
9854 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9855 (BRK_INSN_MASK): Define to 0xd4200000.
9856 (aarch64_program_breakpoint_here_p): New function.
9857 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9858 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9859 breakpoint.c.
9860 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9861 breakpoint.h
9862 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9863 call gdbarch_program_breakpoint_here_p.
9864 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9865 default_program_breakpoint_here_p, changed return type to bool and
9866 simplified.
9867 * breakpoint.h (program_breakpoint_here): Moved prototype to
9868 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9869 return type to bool.
9870 * gdbarch.c: Regenerate.
9871 * gdbarch.h: Regenerate.
9872 * gdbarch.sh (program_breakpoint_here_p): New method.
9873 * infrun.c (handle_signal_stop): Call
9874 gdbarch_program_breakpoint_here_p.
9875
168f8c6b
TT
98762020-01-26 Tom Tromey <tom@tromey.com>
9877
9878 * ctfread.c (struct ctf_fp_info): Reindent.
9879 (_initialize_ctfread): Remove.
9880
128a391f
TT
98812020-01-26 Tom Tromey <tom@tromey.com>
9882
9883 * psymtab.c (partial_map_expand_apply)
9884 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9885 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9886 (psym_print_stats, psym_expand_symtabs_for_function)
9887 (psym_map_symbol_filenames, psym_map_matching_symbols)
9888 (psym_expand_symtabs_matching)
9889 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9890 (maintenance_check_psymtabs): Use new methods.
9891 * psympriv.h (struct partial_symtab) <readin_p,
9892 get_compunit_symtab>: New methods.
9893 <readin, compunit_symtab>: Remove members.
9894 (struct standard_psymtab): New.
9895 (struct legacy_psymtab): Derive from standard_psymtab.
9896 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9897 standard_psymtab.
9898 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9899
0494dbec
TT
99002020-01-26 Tom Tromey <tom@tromey.com>
9901
9902 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9903 read_dependencies. Add assert.
9904 * psymtab.c (partial_symtab::read_dependencies): New method.
9905 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9906 method.
9907 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9908 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9909 read_dependencies.
9910 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9911 Add assert.
9912
8566b89b
TT
99132020-01-26 Tom Tromey <tom@tromey.com>
9914
9915 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9916 Call expand_psymtab.
9917 (xcoff_read_symtab): Call expand_psymtab.
9918 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9919 legacy_expand_psymtab.
9920 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9921 method.
9922 (struct legacy_psymtab) <expand_psymtab>: Implement.
9923 <legacy_expand_psymtab>: New member.
9924 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9925 (parse_partial_symbols): Set legacy_expand_psymtab.
9926 (psymtab_to_symtab_1): Change argument order. Call
9927 expand_psymtab.
9928 (new_psymtab): Set legacy_expand_psymtab.
9929 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9930 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9931 expand_psymtab.
9932 (dwarf2_psymtab::expand_psymtab): Rename from
9933 psymtab_to_symtab_1. Call expand_psymtab.
9934 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9935 (dbx_end_psymtab): Likewise.
9936 (dbx_psymtab_to_symtab_1): Change argument order. Call
9937 expand_psymtab.
9938 (dbx_read_symtab): Call expand_psymtab.
9939 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9940 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9941 (ctf_psymtab::read_symtab): Call expand_psymtab.
9942
077cbab2
TT
99432020-01-26 Tom Tromey <tom@tromey.com>
9944
9945 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9946 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9947 messages.
9948 * mdebugread.c (mdebug_read_symtab): Remove prints.
9949 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9950 assert.
9951 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9952
891813be
TT
99532020-01-26 Tom Tromey <tom@tromey.com>
9954
9955 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9956 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9957 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9958 legacy_symtab.
9959 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9960 * psymtab.c (psymtab_to_symtab): Call method.
9961 (dump_psymtab): Update.
9962 * psympriv.h (struct partial_symtab): Add virtual destructor.
9963 <read_symtab>: New method.
9964 (struct legacy_symtab): New.
9965 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
9966 (struct pst_map) <pst>: Now a legacy_psymtab.
9967 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
9968 (new_psymtab): Use legacy_psymtab.
9969 * dwarf2read.h (struct dwarf2_psymtab): New.
9970 (struct dwarf2_per_cu_data) <psymtab>: Use it.
9971 * dwarf2read.c (dwarf2_create_include_psymtab)
9972 (dwarf2_build_include_psymtabs, create_type_unit_group)
9973 (create_partial_symtab, process_psymtab_comp_unit_reader)
9974 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
9975 (set_partial_user): Use dwarf2_psymtab.
9976 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
9977 (psymtab_to_symtab_1, process_full_comp_unit)
9978 (process_full_type_unit, dwarf2_ranges_read)
9979 (dwarf2_get_pc_bounds, psymtab_include_file_name)
9980 (dwarf_decode_lines): Use dwarf2_psymtab.
9981 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
9982 (add_address_entry_worker, write_one_signatured_type)
9983 (recursively_count_psymbols, recursively_write_psymbols)
9984 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
9985 (write_debug_names): Likewise.
9986 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
9987 <pst>: Now a legacy_psymtab.
9988 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
9989 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
9990 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
9991 * ctfread.c (struct ctf_psymtab): New.
9992 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
9993 ctf_psymtab.
9994 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
9995 (create_partial_symtab): Return a ctf_psymtab.
9996 (scan_partial_symbols): Update.
9997
c3693a1d
TT
99982020-01-26 Tom Tromey <tom@tromey.com>
9999
10000 * xcoffread.c (xcoff_start_psymtab): Use new.
10001 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10002 renamed from start_psymtab_common.
10003 * psympriv.h (struct partial_symtab): Add new constructor.
10004 (start_psymtab_common): Don't declare.
10005 * mdebugread.c (parse_partial_symbols): Use new.
10006 * dwarf2read.c (create_partial_symtab): Use new.
10007 * dbxread.c (start_psymtab): Use new.
10008 * ctfread.c (create_partial_symtab): Use new.
10009
32caafd0
TT
100102020-01-26 Tom Tromey <tom@tromey.com>
10011
10012 * xcoffread.c (xcoff_end_psymtab): Use new.
10013 * psymtab.c (start_psymtab_common): Use new.
10014 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10015 Update.
10016 * psympriv.h (struct partial_symtab): Add parameters to
10017 constructor. Don't inline.
10018 (allocate_psymtab): Don't declare.
10019 * mdebugread.c (new_psymtab): Use new.
10020 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10021 * dbxread.c (dbx_end_psymtab): Use new.
10022
abaa2f23
TT
100232020-01-26 Tom Tromey <tom@tromey.com>
10024
10025 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10026 allocate_psymtab. Update documentation.
10027 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10028 allocate_psymtab. Do not use new.
10029 (allocate_psymtab): Use new. Update.
10030
6d94535f
TT
100312020-01-26 Tom Tromey <tom@tromey.com>
10032
10033 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10034 * psymtab.c (psym_print_stats): Update.
10035 * psympriv.h (struct partial_symtab) <readin,
10036 psymtabs_addrmap_supported, anonymous>: Now bool.
10037 * mdebugread.c (psymtab_to_symtab_1): Update.
10038 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10039 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10040 (process_full_comp_unit, process_full_type_unit): Update.
10041 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10042 * ctfread.c (psymtab_to_symtab): Update.
10043
6f17252b
TT
100442020-01-26 Tom Tromey <tom@tromey.com>
10045
10046 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10047 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10048 * psymtab.c (psymtab_storage): Delete psymtabs.
10049 (psymtab_storage::allocate_psymtab): Use new.
10050 (psymtab_storage::discard_psymtab): Use delete.
10051 * psympriv.h (struct partial_symtab): Add constructor and
10052 initializers.
10053
f6f1cebc
TT
100542020-01-26 Tom Tromey <tom@tromey.com>
10055
10056 * machoread.c: Do not include psympriv.h.
10057
e47e48f6
PW
100582020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10059
10060 * NEWS: Mention the new option and the set/show commands.
10061
a2fedca9
PW
100622020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10063
10064 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10065 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10066 (validate_exec_file): New variables, enums, functions.
10067 (exec_file_locate_attach, print_section_info): Style the filenames.
10068 (_initialize_exec): Install show_exec_file_mismatch_command and
10069 set_exec_file_mismatch_command.
10070 * gdbcore.h (validate_exec_file): Declare.
10071 * infcmd.c (attach_command): Call validate_exec_file.
10072 * remote.c ( remote_target::remote_add_inferior): Likewise.
10073
7ffa82e1
AB
100742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10075
10076 * frame.c (find_frame_sal): Move call to get_next_frame into more
10077 inner scope.
10078 * inline-frame.c (inilne_state) <inline_state>: Update argument
10079 types.
10080 (inilne_state) <skipped_symbol>: Rename to...
10081 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10082 (skip_inline_frames): Build vector of skipped symbols and use this
10083 to reate the inline_state.
10084 (inline_skipped_symbol): Add a comment and some assertions, fetch
10085 skipped symbol from the list.
10086
3d92a3e3
AB
100872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10088
10089 * buildsym.c (lte_is_less_than): Delete.
10090 (buildsym_compunit::end_symtab_with_blockvector): Create local
10091 lambda function to sort line table entries, and use
10092 std::stable_sort instead of std::sort.
10093 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10094 markers when looking for a previous line.
10095
94a72be7
AB
100962020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10097
10098 * dwarf2read.c (lnp_state_machine::record_line): Include
10099 end_sequence parameter in debug print out. Record the line if we
10100 are at an end_sequence marker even if it's not the start of a
10101 statement.
10102 * symmisc.c (maintenance_print_one_line_table): Print end of
10103 sequence markers with 'END' not '0'.
10104
53af73bf
PA
101052020-01-24 Pedro Alves <palves@redhat.com>
10106
10107 PR gdb/25410
10108 * thread.c (scoped_restore_current_thread::restore): Use
10109 switch_to_inferior_no_thread.
10110 * exec.c: Include "progspace-and-thread.h".
10111 (add_target_sections, remove_target_sections):
10112 scoped_restore_current_pspace_and_thread instead of
10113 scoped_restore_current_thread.
10114 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10115 and aspace to the inferior before calling clone_program_space.
10116 Remove stale comment.
10117
3050c6f4
CB
101182020-01-24 Christian Biesinger <cbiesinger@google.com>
10119
10120 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10121 (arm_netbsd_nat_target::fetch_registers): ...this.
10122 (arm_nbsd_nat_target::store_registers): Rename to...
10123 (arm_netbsd_nat_target::store_registers): ...this.
10124
73685c7e
CB
101252020-01-24 Christian Biesinger <cbiesinger@google.com>
10126
10127 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10128 register_t.
10129
89203d40
CB
101302020-01-24 Christian Biesinger <cbiesinger@google.com>
10131
10132 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10133 Update comment.
10134 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10135 Likewise.
10136 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10137 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10138 the correct replacement (iterate_over_regset_sections).
10139 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10140 Update comment.
10141
1ba1ac88
AB
101422020-01-24 Graham Markall <graham.markall@embecosm.com>
10143
10144 PR gdb/23718
10145 * gdb/python/python.c (execute_gdb_command): Call
10146 async_enable_stdin in catch block.
10147
f3364a6d
AB
101482020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10149
10150 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10151 SWITCH_THRU_ALL_UIS.
10152
733d0a67
AB
101532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10154
10155 PR tui/9765
10156 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10157 comment, add extra parameter, and update to store previous symbol
10158 when appropriate.
10159 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10160 add extra parameter.
10161 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10162 remove unneeded parameter, add try/catch around gdb_print_insn,
10163 rewrite to add items to asm_lines vector.
10164 (tui_find_backward_disassembly_start_address): New function.
10165 (tui_find_disassembly_address): Updated throughout.
10166 (tui_disasm_window::set_contents): Update for changes to
10167 tui_disassemble.
10168 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10169 number of lines to scroll.
10170
b3b3bada
SM
101712020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10172
10173 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10174 (SECT_OFF_DATA): Likewise.
10175 (SECT_OFF_RODATA): Likewise.
10176 (SECT_OFF_TEXT): Likewise.
10177 (SECT_OFF_BSS): Likewise.
10178 (struct objfile) <text_section_offset, data_section_offset>: New
10179 methods.
10180 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10181 objfile::text_section_offset.
10182 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10183 * coffread.c (coff_symtab_read): Likewise.
10184 (enter_linenos): Likewise.
10185 (process_coff_symbol): Likewise.
10186 * ctfread.c (get_objfile_text_range): Likewise.
10187 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10188 Use objfile::data_section_offset.
10189 * dwarf2-frame.c (execute_cfa_program): Use
10190 objfile::text_section_offset.
10191 (dwarf2_frame_find_fde): Likewise.
10192 * dwarf2read.c (create_addrmap_from_index): Likewise.
10193 (create_addrmap_from_aranges): Likewise.
10194 (dw2_find_pc_sect_compunit_symtab): Likewise.
10195 (process_psymtab_comp_unit_reader): Likewise.
10196 (add_partial_symbol): Likewise.
10197 (add_partial_subprogram): Likewise.
10198 (process_full_comp_unit): Likewise.
10199 (read_file_scope): Likewise.
10200 (read_func_scope): Likewise.
10201 (read_lexical_block_scope): Likewise.
10202 (read_call_site_scope): Likewise.
10203 (dwarf2_rnglists_process): Likewise.
10204 (dwarf2_ranges_process): Likewise.
10205 (dwarf2_ranges_read): Likewise.
10206 (dwarf_decode_lines_1): Likewise.
10207 (new_symbol): Likewise.
10208 (dwarf2_fetch_die_loc_sect_off): Likewise.
10209 (dwarf2_per_cu_text_offset): Likewise.
10210 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10211 * hppa-tdep.c (read_unwind_info): Likewise.
10212 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10213 * psympriv.h (struct partial_symtab): Likewise.
10214 * psymtab.c (find_pc_sect_psymtab): Likewise.
10215 * solib-svr4.c (enable_break): Likewise.
10216 * stap-probe.c (relocate_address): Use
10217 objfile::data_section_offset.
10218 * xcoffread.c (enter_line_range): Use
10219 objfile::text_section_offset.
10220 (read_xcoff_symtab): Likewise.
10221
ab53f382
SM
102222020-01-23 Simon Marchi <simon.marchi@efficios.com>
10223
10224 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10225 declaration to narrower scopes.
10226
e7eee665
SM
102272020-01-23 Simon Marchi <simon.marchi@efficios.com>
10228
10229 * darwin-nat.h (struct darwin_exception_msg, enum
10230 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10231 Move up.
10232 (class darwin_nat_target) <wait_1, check_new_threads,
10233 decode_exception_message, decode_message, stop_inferior,
10234 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10235 * darwin-nat.c (darwin_check_new_threads): Rename to...
10236 (darwin_nat_target::check_new_threads): ... this.
10237 (darwin_suspend_inferior_it): Remove.
10238 (darwin_decode_exception_message): Rename to...
10239 (darwin_nat_target::decode_exception_message): ... this.
10240 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10241 (darwin_decode_message): Rename to...
10242 (darwin_nat_target::decode_message): ... this.
10243 (cancel_breakpoint): Rename to...
10244 (darwin_nat_target::cancel_breakpoint): ... this.
10245 (darwin_wait): Rename to...
10246 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10247 instead of iterate_over_inferiors.
10248 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10249 (darwin_stop_inferior): Rename to...
10250 (darwin_nat_target::stop_inferior): ... this.
10251 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10252 (darwin_init_thread_list): Rename to...
10253 (darwin_nat_target::init_thread_list): ... this.
10254 (darwin_ptrace_him): Rename to...
10255 (darwin_nat_target::ptrace_him): ... this.
10256 (darwin_nat_target::create_inferior): Pass lambda function to
10257 fork_inferior.
10258 (darwin_nat_target::detach): Call stop_inferior instead of
10259 darwin_stop_inferior.
10260 * fork-inferior.h (fork_inferior): Change init_trace_fun
10261 parameter to gdb::function_view.
10262 * fork-inferior.c (fork_inferior): Likewise.
10263
c162ed3e
HD
102642020-01-23 Hannes Domani <ssbssa@yahoo.de>
10265
10266 * i386-cygwin-tdep.c (core_process_module_section): Update.
10267 * windows-nat.c (struct lm_info_windows): Add text_offset.
10268 (windows_xfer_shared_libraries): Update.
10269 * windows-tdep.c (windows_xfer_shared_library):
10270 Add text_offset_cached argument.
10271 * windows-tdep.h (windows_xfer_shared_library): Update.
10272
a1237872
SM
102732020-01-21 Simon Marchi <simon.marchi@efficios.com>
10274
10275 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10276
b3ee6dd9
SM
102772020-01-21 Simon Marchi <simon.marchi@efficios.com>
10278
10279 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10280 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10281 replace with range-based for.
10282 (gdbsim_interrupt_inferior): Remove.
10283 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10284 with a range-based for. Inline code from
10285 gdbsim_interrupt_inferior.
10286
f9fac3c8
SM
102872020-01-21 Simon Marchi <simon.marchi@efficios.com>
10288
10289 * infrun.c (proceed): Fix indentation.
10290
f6474de9
TT
102912020-01-21 Tom Tromey <tromey@adacore.com>
10292
10293 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10294 * python/python.c (python_extension_ops): Update.
10295 (gdbpy_colorize): New function.
10296 * python/lib/gdb/__init__.py (colorize): New function.
10297 * extension.h (ext_lang_colorize): Declare.
10298 * extension.c (ext_lang_colorize): New function.
10299 * extension-priv.h (struct extension_language_ops) <colorize>: New
10300 member.
10301 * cli/cli-style.c (_initialize_cli_style): Update help text.
10302
f0c702d4
LM
103032020-01-21 Luis Machado <luis.machado@linaro.org>
10304
10305 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10306 <cond>: Change type to bool.
10307 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10308 (aarch64_displaced_step_cb): Likewise.
10309 (aarch64_displaced_step_tb): Likewise.
10310
1ab139e5
LM
103112020-01-21 Luis Machado <luis.machado@linaro.org>
10312
10313 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10314 output.
10315
0c271889
LM
103162020-01-21 Luis Machado <luis.machado@linaro.org>
10317
10318 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10319 <pc_adjust>: Adjust the documentation.
10320 (aarch64_displaced_step_fixup): Check if PC really moved before
10321 adjusting it.
10322
4d89c1c7
TT
103232020-01-19 Tom Tromey <tom@tromey.com>
10324
10325 * disasm.c (~gdb_disassembler): New destructor.
10326 (gdb_buffered_insn_length): Call disassemble_free_target.
10327 * disasm.h (class gdb_disassembler): Declare destructor. Use
10328 DISABLE_COPY_AND_ASSIGN.
10329
c0ab21c2
TT
103302020-01-19 Tom Tromey <tom@tromey.com>
10331
10332 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10333 (die_reader_func_ftype): Remove.
10334 (cutu_reader): New class.
10335 (dw2_get_file_names_reader): Remove "data" parameter.
10336 (dw2_get_file_names): Use cutu_reader.
10337 (create_debug_type_hash_table): Update.
10338 (read_cutu_die_from_dwo): Update comment.
10339 (lookup_dwo_unit): Add dwo_name parameter.
10340 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10341 die_reader_func_ftype and data parameters.
10342 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10343 Remove die_reader_func_ftype and data parameters.
10344 (~cutu_reader): New; from init_cutu_and_read_dies.
10345 (cutu_reader::cutu_reader): Rename from
10346 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10347 and data parameters.
10348 (init_cutu_and_read_dies_simple): Remove.
10349 (struct process_psymtab_comp_unit_data): Remove.
10350 (process_psymtab_comp_unit_reader): Remove data parameter; add
10351 want_partial_unit and pretend_language parameters.
10352 (process_psymtab_comp_unit): Use cutu_reader.
10353 (build_type_psymtabs_reader): Remove data parameter.
10354 (build_type_psymtabs_1): Use cutu_reader.
10355 (process_skeletonless_type_unit): Likewise.
10356 (load_partial_comp_unit_reader): Remove.
10357 (load_partial_comp_unit): Use cutu_reader.
10358 (load_full_comp_unit_reader): Remove.
10359 (load_full_comp_unit): Use cutu_reader.
10360 (struct create_dwo_cu_data): Remove.
10361 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10362 dwo_unit parameters.
10363 (create_cus_hash_table): Use cutu_reader.
10364 (struct dwarf2_read_addr_index_data): Remove.
10365 (dwarf2_read_addr_index_reader): Remove.
10366 (dwarf2_read_addr_index): Use cutu_reader.
10367 (read_signatured_type_reader): Remove.
10368 (read_signatured_type): Use cutu_reader.
10369
45bbae5c
TT
103702020-01-19 Tom Tromey <tom@tromey.com>
10371
10372 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10373 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10374 (tui_wrefresh): Declare.
10375 * tui/tui-wingeneral.c (suppress_output): New global.
10376 (tui_suppress_output, ~tui_suppress_output): New constructor and
10377 destructor.
10378 (tui_wrefresh): New function.
10379 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10380 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10381 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10382 method.
10383 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10384 tui_wrefresh.
10385 (tui_data_window::no_refresh): New method.
10386 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10387 (tui_reg_command): Use tui_suppress_output
10388 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10389 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10390 method.
10391 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10392
4f13c1c0
TT
103932020-01-19 Tom Tromey <tom@tromey.com>
10394
10395 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10396 Handle case where symtab is null.
10397
fa47e446
SM
103982020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10399
10400 * linux-fork.c (one_fork_p): Simplify.
10401
26f42329
SM
104022020-01-17 Simon Marchi <simon.marchi@efficios.com>
10403
10404 * top.c (struct qt_args): Remove.
10405 (kill_or_detach): Change return type to void, replace `void *`
10406 parameter with a proper one.
10407 (print_inferior_quit_action): Likewise.
10408 (quit_confirm): Use range-based for loop to iterate over inferiors.
10409 (quit_force): Likewise.
10410
a9ac81b1
SM
104112020-01-17 Simon Marchi <simon.marchi@efficios.com>
10412
10413 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10414 `void *` parameter with proper parameters.
10415 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10416 (print_one_inferior): Change return type to void, replace `void *`
10417 parameter with proper parameters.
10418 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10419 inferiors.
10420 (get_other_inferior): Remove.
10421 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10422 inferiors.
10423
788eca49
SM
104242020-01-17 Simon Marchi <simon.marchi@efficios.com>
10425
10426 * mi/mi-interp.c (report_initial_inferior): Remove.
10427 (mi_interp::init): Use range-based for to iterate over inferiors.
10428
d9bc85b6
SM
104292020-01-17 Simon Marchi <simon.marchi@efficios.com>
10430
10431 * python/py-inferior.c (build_inferior_list): Remove.
10432 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10433
40c94099
CB
104342020-01-16 Christian Biesinger <cbiesinger@google.com>
10435
10436 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10437 (btrace_stitch_trace): Likewise.
10438 * charset.c (intermediate_encoding): Likewise (vaild).
10439 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10440 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10441 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10442
e0cdfe3c
HD
104432020-01-16 Hannes Domani <ssbssa@yahoo.de>
10444
10445 * windows-tdep.c (windows_get_tlb_type):
10446 Add rtl_user_process_parameters type.
10447
790f1718 104482020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10449 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10450
10451 PR build/24805
10452 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10453 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10454 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10455 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10456 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10457 (ps_plog): Redeclare exported functions with default visibility.
10458
3112ed97
NA
104592020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10460
10461 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10462 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10463
8dc3273e
SM
104642020-01-15 Simon Marchi <simon.marchi@efficios.com>
10465
10466 * infcmd.c (post_create_inferior): Use get_thread_regcache
10467 instead of get_current_regcache.
10468
ff47f4f0
TT
104692020-01-14 Tom Tromey <tom@tromey.com>
10470
10471 PR symtab/12535:
10472 * python/python.c (gdbpy_decode_line): Treat empty string the same
10473 as no argument.
10474
975f45b7
TT
104752020-01-14 Tom Tromey <tom@tromey.com>
10476
10477 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10478
25e57356
TT
104792020-01-14 Tom Tromey <tom@tromey.com>
10480
10481 * nat/linux-btrace.c: Don't include <config.h>.
10482 * nat/linux-ptrace.c: Don't include <config.h>.
10483 * nat/x86-linux-dregs.c: Don't include <config.h>.
10484
05ea2a05
TT
104852020-01-14 Tom Tromey <tom@tromey.com>
10486
10487 * configure: Rebuild.
10488 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10489
01027315
TT
104902020-01-14 Tom Tromey <tom@tromey.com>
10491
10492 * nat/x86-linux-dregs.c: Include configh.h.
10493 * nat/linux-ptrace.c: Include configh.h.
10494 * nat/linux-btrace.c: Include configh.h.
10495 * defs.h: Include config.h, bfd.h.
10496 * configure.ac: Don't source common.host.
10497 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10498 * configure: Rebuild.
10499 * acinclude.m4: Update path.
10500 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10501 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10502 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10503 (CLIBS): Add LIBSUPPORT.
10504 (CDEPS): Likewise.
10505 (COMMON_SFILES): Remove gdbsupport files.
10506 (HFILES_NO_SRCDIR): Likewise.
10507 (stamp-version): Update path to create-version.sh.
10508 (ALLDEPFILES): Remove gdbsupport files.
10509
b2ceabe8
TT
105102020-01-14 Tom Tromey <tom@tromey.com>
10511
10512 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10513 USE_WIN32API when needed.
10514 * configure.ac (USE_WIN32API): Don't define.
10515 (WIN32LIBS): Use WIN32APILIBS.
10516 * configure: Rebuild.
10517
25c51f71
TT
105182020-01-14 Tom Tromey <tom@tromey.com>
10519
10520 * configure: Rebuild.
10521 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10522
717c684d
BE
105232020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10524
10525 * skip.c (skip_function_command): Make skip w/o arguments use the
10526 name of the inlined function if pc is inside any inlined function.
10527
7da6a5b9
LM
105282020-01-14 Luis Machado <luis.machado@linaro.org>
10529
10530 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10531 * infrun.c (resume_1): Likewise.
10532 (handle_inferior_event): Remove stale comment.
10533 * linux-nat.c (linux_nat_target::resume): Update comments.
10534 (save_stop_reason): Likewise.
10535 (linux_nat_filter_event): Likewise.
10536 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10537
44e4c775
AB
105382020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10539
10540 * elfread.c (record_minimal_symbol): Set section index to 0 for
10541 non-allocatable sections.
10542
18a8505e
AT
10543
105442020-01-13 Ali Tamur <tamur@google.com>
10545
10546 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10547 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10548 to gdb::optional. Update comments.
10549 (dwo_file): Update comments.
10550 (read_attribute): Update API to take an additional out parameter,
10551 need_reprocess. This is used to mark attributes that need other
10552 attributes (e.g. str_offsets_base) for correct computation which may not
10553 have been read yet.
10554 (read_attribute_reprocess): New function declaration.
10555 (read_addr_index): Likewise.
10556 (read_dwo_str_index): Likewise.
10557 (read_stub_str_index): Likewise.
10558 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10559 (lookup_addr_base): New function definition.
10560 (lookup_ranges_base): Likewise.
10561 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10562 lookup_ranges_base.
10563 (init_cutu_and_read_dies): Update comments.
10564 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10565 unit. This is used to inherit parent's str_offsets_base and addr_base.
10566 Update comments.
10567 (init_cutu_and_read_dies_simple): Reflect API changes.
10568 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10569 (create_cus_hash_table): Change API to take parent compile unit.
10570 Reflect API changes.
10571 (open_and_init_dwo_file): Reflect API changes.
10572 (dwarf2_get_pc_bounds): Update comments.
10573 (dwarf2_record_block_ranges): Likewise.
10574 (read_full_die_1): Change implementation to reprocess attributes that
10575 need str_offsets_base and addr_base.
10576 (partial_die_info::read): Likewise.
10577 (read_attribute_reprocess): New function definition.
10578 (read_attribute_value): Change API to take an additional out parameter,
10579 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10580 when a non-dwo compile unit has index based attributes.
10581 (read_attribute): Reflect API changes.
10582 (read_addr_index_1): Reflect API changes. Update comments.
10583 (dwarf2_read_addr_index_data): Reflect API changes.
10584 (dwarf2_read_addr_index): Likewise.
10585 (read_str_index): Change API and implementation. This becomes a helper
10586 to be used by the new string index related methods. Update error
10587 message and comments.
10588 (read_dwo_str_index): New function definition.
10589 (read_stub_str_index): Likewise.
10590 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10591 * symfile.h (dwarf2_debug_sections): Likewise.
10592 * xcoffread.c (dwarf2_debug_sections): Likewise.
10593
0cac9354
SM
105942020-01-13 Simon Marchi <simon.marchi@efficios.com>
10595
10596 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10597 core_reg_sect type to gdb_byte *.
10598 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10599 * cris-tdep.c (fetch_core_registers): Likewise.
10600 * corelow.c (core_target::get_core_register_section): Change
10601 type of `contents` to gdb::byte_vector.
10602
9a6d629c
AB
106032020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10604
10605 * tui/tui-wingeneral.c (box_win): Position the title in the center
10606 of the border.
10607
d8b2f9e3
SM
106082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10609
10610 * corelow.c (core_target::get_core_register_section): Use
10611 std::vector instead of alloca.
10612
bb564c58
SM
106132020-01-13 Simon Marchi <simon.marchi@efficios.com>
10614
10615 * warning.m4: Add -Wmissing-declarations to build_warnings.
10616 * configure: Re-generate.
10617
6b366111
SM
106182020-01-13 Simon Marchi <simon.marchi@efficios.com>
10619
10620 * python/python.c (init__gdb_module): Add declaration.
10621
6c265988
SM
106222020-01-13 Simon Marchi <simon.marchi@efficios.com>
10623
10624 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10625 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10626 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10627 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10628 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10629 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10630 * ada-exp.y (_initialize_ada_exp): Add declaration.
10631 * ada-lang.c (_initialize_ada_language): Add declaration.
10632 * ada-tasks.c (_initialize_tasks): Add declaration.
10633 * agent.c (_initialize_agent): Add declaration.
10634 * aix-thread.c (_initialize_aix_thread): Add declaration.
10635 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10636 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10637 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10638 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10639 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10640 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10641 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10642 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10643 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10644 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10645 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10646 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10647 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10648 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10649 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10650 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10651 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10652 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10653 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10654 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10655 * annotate.c (_initialize_annotate): Add declaration.
10656 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10657 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10658 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10659 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10660 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10661 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10662 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10663 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10664 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10665 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10666 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10667 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10668 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10669 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10670 * auto-load.c (_initialize_auto_load): Add declaration.
10671 * auxv.c (_initialize_auxv): Add declaration.
10672 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10673 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10674 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10675 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10676 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10677 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10678 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10679 * breakpoint.c (_initialize_breakpoint): Add declaration.
10680 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10681 * btrace.c (_initialize_btrace): Add declaration.
10682 * charset.c (_initialize_charset): Add declaration.
10683 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10684 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10685 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10686 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10687 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10688 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10689 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10690 * coffread.c (_initialize_coffread): Add declaration.
10691 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10692 * compile/compile.c (_initialize_compile): Add declaration.
10693 * complaints.c (_initialize_complaints): Add declaration.
10694 * completer.c (_initialize_completer): Add declaration.
10695 * copying.c (_initialize_copying): Add declaration.
10696 * corefile.c (_initialize_core): Add declaration.
10697 * corelow.c (_initialize_corelow): Add declaration.
10698 * cp-abi.c (_initialize_cp_abi): Add declaration.
10699 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10700 * cp-support.c (_initialize_cp_support): Add declaration.
10701 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10702 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10703 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10704 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10705 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10706 * ctfread.c (_initialize_ctfread): Add declaration.
10707 * d-lang.c (_initialize_d_language): Add declaration.
10708 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10709 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10710 * dbxread.c (_initialize_dbxread): Add declaration.
10711 * dcache.c (_initialize_dcache): Add declaration.
10712 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10713 * disasm.c (_initialize_disasm): Add declaration.
10714 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10715 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10716 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10717 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10718 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10719 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10720 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10721 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10722 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10723 * elfread.c (_initialize_elfread): Add declaration.
10724 * exec.c (_initialize_exec): Add declaration.
10725 * extension.c (_initialize_extension): Add declaration.
10726 * f-lang.c (_initialize_f_language): Add declaration.
10727 * f-valprint.c (_initialize_f_valprint): Add declaration.
10728 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10729 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10730 * filesystem.c (_initialize_filesystem): Add declaration.
10731 * findcmd.c (_initialize_mem_search): Add declaration.
10732 * findvar.c (_initialize_findvar): Add declaration.
10733 * fork-child.c (_initialize_fork_child): Add declaration.
10734 * frame-base.c (_initialize_frame_base): Add declaration.
10735 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10736 * frame.c (_initialize_frame): Add declaration.
10737 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10738 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10739 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10740 * gcore.c (_initialize_gcore): Add declaration.
10741 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10742 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10743 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10744 * gdbarch.c (_initialize_gdbarch): Add declaration.
10745 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10746 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10747 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10748 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10749 * go-lang.c (_initialize_go_language): Add declaration.
10750 * go32-nat.c (_initialize_go32_nat): Add declaration.
10751 * guile/guile.c (_initialize_guile): Add declaration.
10752 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10753 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10754 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10755 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10756 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10757 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10758 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10759 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10760 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10761 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10762 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10763 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10764 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10765 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10766 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10767 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10768 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10769 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10770 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10771 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10772 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10773 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10774 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10775 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10776 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10777 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10778 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10779 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10780 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10781 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10782 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10783 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10784 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10785 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10786 * infcall.c (_initialize_infcall): Add declaration.
10787 * infcmd.c (_initialize_infcmd): Add declaration.
10788 * inflow.c (_initialize_inflow): Add declaration.
10789 * infrun.c (_initialize_infrun): Add declaration.
10790 * interps.c (_initialize_interpreter): Add declaration.
10791 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10792 * jit.c (_initialize_jit): Add declaration.
10793 * language.c (_initialize_language): Add declaration.
10794 * linux-fork.c (_initialize_linux_fork): Add declaration.
10795 * linux-nat.c (_initialize_linux_nat): Add declaration.
10796 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10797 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10798 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10799 * m2-lang.c (_initialize_m2_language): Add declaration.
10800 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10801 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10802 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10803 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10804 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10805 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10806 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10807 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10808 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10809 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10810 * machoread.c (_initialize_machoread): Add declaration.
10811 * macrocmd.c (_initialize_macrocmd): Add declaration.
10812 * macroscope.c (_initialize_macroscope): Add declaration.
10813 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10814 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10815 * maint.c (_initialize_maint_cmds): Add declaration.
10816 * mdebugread.c (_initialize_mdebugread): Add declaration.
10817 * memattr.c (_initialize_mem): Add declaration.
10818 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10819 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10820 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10821 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10822 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10823 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10824 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10825 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10826 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10827 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10828 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10829 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10830 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10831 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10832 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10833 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10834 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10835 * mipsread.c (_initialize_mipsread): Add declaration.
10836 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10837 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10838 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10839 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10840 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10841 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10842 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10843 * nto-procfs.c (_initialize_procfs): Add declaration.
10844 * objc-lang.c (_initialize_objc_language): Add declaration.
10845 * observable.c (_initialize_observer): Add declaration.
10846 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10847 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10848 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10849 * osabi.c (_initialize_gdb_osabi): Add declaration.
10850 * osdata.c (_initialize_osdata): Add declaration.
10851 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10852 * parse.c (_initialize_parse): Add declaration.
10853 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10854 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10855 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10856 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10857 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10858 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10859 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10860 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10861 * printcmd.c (_initialize_printcmd): Add declaration.
10862 * probe.c (_initialize_probe): Add declaration.
10863 * proc-api.c (_initialize_proc_api): Add declaration.
10864 * proc-events.c (_initialize_proc_events): Add declaration.
10865 * proc-service.c (_initialize_proc_service): Add declaration.
10866 * procfs.c (_initialize_procfs): Add declaration.
10867 * producer.c (_initialize_producer): Add declaration.
10868 * psymtab.c (_initialize_psymtab): Add declaration.
10869 * python/python.c (_initialize_python): Add declaration.
10870 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10871 * record-btrace.c (_initialize_record_btrace): Add declaration.
10872 * record-full.c (_initialize_record_full): Add declaration.
10873 * record.c (_initialize_record): Add declaration.
10874 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10875 * regcache.c (_initialize_regcache): Add declaration.
10876 * reggroups.c (_initialize_reggroup): Add declaration.
10877 * remote-notif.c (_initialize_notif): Add declaration.
10878 * remote-sim.c (_initialize_remote_sim): Add declaration.
10879 * remote.c (_initialize_remote): Add declaration.
10880 * reverse.c (_initialize_reverse): Add declaration.
10881 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10882 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10883 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10884 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10885 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10886 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10887 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10888 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10889 Add declaration.
10890 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10891 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10892 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10893 * rust-exp.y (_initialize_rust_exp): Add declaration.
10894 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10895 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10896 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10897 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10898 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10899 * score-tdep.c (_initialize_score_tdep): Add declaration.
10900 * ser-go32.c (_initialize_ser_dos): Add declaration.
10901 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10902 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10903 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10904 * ser-uds.c (_initialize_ser_socket): Add declaration.
10905 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10906 * serial.c (_initialize_serial): Add declaration.
10907 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10908 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10909 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10910 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10911 * skip.c (_initialize_step_skip): Add declaration.
10912 * sol-thread.c (_initialize_sol_thread): Add declaration.
10913 * solib-aix.c (_initialize_solib_aix): Add declaration.
10914 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10915 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10916 * solib-frv.c (_initialize_frv_solib): Add declaration.
10917 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10918 * solib-target.c (_initialize_solib_target): Add declaration.
10919 * solib.c (_initialize_solib): Add declaration.
10920 * source-cache.c (_initialize_source_cache): Add declaration.
10921 * source.c (_initialize_source): Add declaration.
10922 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10923 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10924 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10925 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10926 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10927 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10928 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10929 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10930 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10931 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10932 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10933 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10934 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10935 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10936 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10937 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10938 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10939 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10940 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10941 * stabsread.c (_initialize_stabsread): Add declaration.
10942 * stack.c (_initialize_stack): Add declaration.
10943 * stap-probe.c (_initialize_stap_probe): Add declaration.
10944 * std-regs.c (_initialize_frame_reg): Add declaration.
10945 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10946 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10947 * symfile.c (_initialize_symfile): Add declaration.
10948 * symmisc.c (_initialize_symmisc): Add declaration.
10949 * symtab.c (_initialize_symtab): Add declaration.
10950 * target.c (_initialize_target): Add declaration.
10951 * target-connection.c (_initialize_target_connection): Add
10952 declaration.
10953 * target-dcache.c (_initialize_target_dcache): Add declaration.
10954 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10955 * thread.c (_initialize_thread): Add declaration.
10956 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10957 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10958 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10959 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10960 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10961 * tracectf.c (_initialize_ctf): Add declaration.
10962 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10963 * tracefile.c (_initialize_tracefile): Add declaration.
10964 * tracepoint.c (_initialize_tracepoint): Add declaration.
10965 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
10966 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
10967 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
10968 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
10969 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
10970 * tui/tui-win.c (_initialize_tui_win): Add declaration.
10971 * tui/tui.c (_initialize_tui): Add declaration.
10972 * typeprint.c (_initialize_typeprint): Add declaration.
10973 * ui-style.c (_initialize_ui_style): Add declaration.
10974 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
10975 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
10976 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
10977 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
10978 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
10979 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
10980 * unittests/filtered_iterator-selftests.c
10981 (_initialize_filtered_iterator_selftests): Add declaration.
10982 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
10983 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
10984 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
10985 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
10986 * unittests/main-thread-selftests.c
10987 (_initialize_main_thread_selftests): Add declaration.
10988 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
10989 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
10990 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
10991 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
10992 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
10993 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
10994 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
10995 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
10996 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
10997 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
10998 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
10999 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11000 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11001 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11002 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11003 declaration.
11004 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11005 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11006 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11007 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11008 * user-regs.c (_initialize_user_regs): Add declaration.
11009 * utils.c (_initialize_utils): Add declaration.
11010 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11011 * valops.c (_initialize_valops): Add declaration.
11012 * valprint.c (_initialize_valprint): Add declaration.
11013 * value.c (_initialize_values): Add declaration.
11014 * varobj.c (_initialize_varobj): Add declaration.
11015 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11016 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11017 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11018 * windows-nat.c (_initialize_windows_nat): Add declaration.
11019 (_initialize_check_for_gdb_ini): Add declaration.
11020 (_initialize_loadable): Add declaration.
11021 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11022 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11023 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11024 * xcoffread.c (_initialize_xcoffread): Add declaration.
11025 * xml-support.c (_initialize_xml_support): Add declaration.
11026 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11027 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11028 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11029 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11030
e2de1eec
SM
110312020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11032
11033 * regformats/regdat.sh: Generate declaration for init function.
11034
e0037b4c
SM
110352020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11036
11037 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11038 up.
11039 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11040 close_one_inferior>: New methods.
11041 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11042 pass down target to find_inferior_pid.
11043 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11044 Pass down target to find_inferior_ptid.
11045 (gdbsim_target::create_inferior): Pass down target to
11046 add_thread_silent.
11047 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11048 target down to find_inferior_ptid and switch_to_thread.
11049 (gdbsim_target::close): Update to call close_one_inferior.
11050 (struct resume_data): Remove.
11051 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11052 directly, rather than through a void pointer.
11053 (gdbsim_target::resume): Update to call resume_one_inferior.
11054
58920b5b
SM
110552020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11056
11057 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11058
4ec89149
PA
110592020-01-12 Pedro Alves <palves@redhat.com>
11060
11061 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11062 directly for the current inferior instead of
11063 discard_all_inferiors.
11064 (discard_all_inferiors): Delete.
11065
7c392d1d
TT
110662020-01-11 Tom Tromey <tom@tromey.com>
11067
11068 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11069 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11070 deprecated_safe_get_selected_frame.
11071
d9ebdab7
TBA
110722020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11073
11074 * inferior.c (print_inferior): Switch inferior before printing it.
11075
f3c469b9
PA
110762020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11077 Pedro Alves <palves@redhat.com>
11078
11079 * progspace-and-thread.c (switch_to_program_space_and_thread):
11080 Assert there's an inferior for PSPACE. Use
11081 switch_to_inferior_no_thread to switch the inferior too.
11082 * progspace.c (program_space::~program_space): Call
11083 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11084 (program_space::free_all_objfiles): Don't call clear_symtab_users
11085 here.
11086 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11087
65c574f6
PA
110882020-01-10 Pedro Alves <palves@redhat.com>
11089
11090 * NEWS: Mention multi-target debugging, "info connections", and
11091 "add-inferior -no-connection".
11092
2f4fcf00
PA
110932020-01-10 Pedro Alves <palves@redhat.com>
11094
11095 * infrun.c: Include "target-connection.h".
11096 (check_multi_target_resumption): New.
11097 (proceed): Call it.
11098 * target-connection.c (make_target_connection_string): Make
11099 extern.
11100 * target-connection.h (make_target_connection_string): Declare.
11101
121b3efd
PA
111022020-01-10 Pedro Alves <palves@redhat.com>
11103
11104 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11105 * inferior.c (uiout_field_connection): New function.
11106 (print_inferior): Add new "connection-id" column.
11107 (add_inferior_command): Show connection number/string of added
11108 inferior.
11109 * process-stratum-target.h
11110 (process_stratum_target::connection_string): New virtual method.
11111 (process_stratum_target::connection_number): New field.
11112 * remote.c (remote_target::connection_string): New override.
11113 * target-connection.c: New file.
11114 * target-connection.h: New file.
11115 * target.c (decref_target): Remove process_stratum targets from
11116 the connection list.
11117 (target_stack::push): Add process_stratum targets to the
11118 connection list.
11119
4f837581
PA
111202020-01-10 Pedro Alves <palves@redhat.com>
11121
11122 Revert:
11123 2016-04-12 Pedro Alves <palves@redhat.com>
11124 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11125 Remove references to name.
11126 * serial.h (struct serial) <name>: Delete.
11127
f4ec508e
PA
111282020-01-10 Pedro Alves <palves@redhat.com>
11129
11130 * gdbarch-selftests.c (register_to_value_test): Remove "target
11131 already pushed" check.
11132
5b6d1e4f
PA
111332020-01-10 Pedro Alves <palves@redhat.com>
11134 John Baldwin <jhb@FreeBSD.org>
11135
11136 * aarch64-linux-nat.c
11137 (aarch64_linux_nat_target::thread_architecture): Adjust.
11138 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11139 (task_command_1): Likewise.
11140 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11141 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11142 (aix_thread_target::store_registers)
11143 (aix_thread_target::thread_alive): Adjust.
11144 * amd64-fbsd-tdep.c: Include "inferior.h".
11145 (amd64fbsd_get_thread_local_address): Pass down target.
11146 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11147 thread's gdbarch instead of target_gdbarch.
11148 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11149 get_last_target_status.
11150 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11151 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11152 inferiors.
11153 (update_inserted_breakpoint_locations): Skip if inferiors with no
11154 execution.
11155 (update_global_location_list): When handling moribund locations,
11156 find representative inferior for location's pspace, and use thread
11157 count of its process_stratum target.
11158 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11159 * bsd-uthread.c (bsd_uthread_target::wait): Use
11160 as_process_stratum_target and adjust thread_change_ptid and
11161 add_thread calls.
11162 (bsd_uthread_target::update_thread_list): Use
11163 as_process_stratum_target and adjust find_thread_ptid,
11164 thread_change_ptid and add_thread calls.
11165 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11166 find_thread_ptid call.
11167 * corelow.c (add_to_thread_list): Adjust add_thread call.
11168 (core_target_open): Adjust add_thread_silent and thread_count
11169 calls.
11170 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11171 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11172 * event-top.c (async_disconnect): Pop targets from all inferiors.
11173 * exec.c (add_target_sections): Push exec target on all inferiors
11174 sharing the program space.
11175 (remove_target_sections): Remove the exec target from all
11176 inferiors sharing the program space.
11177 (exec_on_vfork): New.
11178 * exec.h (exec_on_vfork): Declare.
11179 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11180 Pass it down.
11181 (fbsd_nat_target::update_thread_list): Adjust.
11182 (fbsd_nat_target::resume): Adjust.
11183 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11184 down.
11185 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11186 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11187 get_thread_arch_regcache call.
11188 * fork-child.c (gdb_startup_inferior): Pass target down to
11189 startup_inferior and set_executing.
11190 * gdbthread.h (struct process_stratum_target): Forward declare.
11191 (add_thread, add_thread_silent, add_thread_with_info)
11192 (in_thread_list): Add process_stratum_target parameter.
11193 (find_thread_ptid(inferior*, ptid_t)): New overload.
11194 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11195 parameter.
11196 (all_threads()): Delete overload.
11197 (all_threads, all_non_exited_threads): Add process_stratum_target
11198 parameter.
11199 (all_threads_safe): Use brace initialization.
11200 (thread_count): Add process_stratum_target parameter.
11201 (set_resumed, set_running, set_stop_requested, set_executing)
11202 (threads_are_executing, finish_thread_state): Add
11203 process_stratum_target parameter.
11204 (switch_to_thread): Use is_current_thread.
11205 * i386-fbsd-tdep.c: Include "inferior.h".
11206 (i386fbsd_get_thread_local_address): Pass down target.
11207 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11208 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11209 have_inferiors check.
11210 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11211 (inf_ptrace_target::attach): Adjust.
11212 * infcall.c (run_inferior_call): Adjust.
11213 * infcmd.c (run_command_1): Pass target to
11214 scoped_finish_thread_state.
11215 (proceed_thread_callback): Skip inferiors with no execution.
11216 (continue_command): Rename 'all_threads' local to avoid hiding
11217 'all_threads' function. Adjust get_last_target_status call.
11218 (prepare_one_step): Adjust set_running call.
11219 (signal_command): Use user_visible_resume_target. Compare thread
11220 pointers instead of inferior_ptid.
11221 (info_program_command): Adjust to pass down target.
11222 (attach_command): Mark target's 'thread_executing' flag.
11223 (stop_current_target_threads_ns): New, factored out from ...
11224 (interrupt_target_1): ... this. Switch inferior before making
11225 target calls.
11226 * inferior-iter.h
11227 (struct all_inferiors_iterator, struct all_inferiors_range)
11228 (struct all_inferiors_safe_range)
11229 (struct all_non_exited_inferiors_range): Filter on
11230 process_stratum_target too. Remove explicit.
11231 * inferior.c (inferior::inferior): Push dummy target on target
11232 stack.
11233 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11234 Add process_stratum_target parameter, and pass it down.
11235 (have_live_inferiors): Adjust.
11236 (switch_to_inferior_and_push_target): New.
11237 (add_inferior_command, clone_inferior_command): Handle
11238 "-no-connection" parameter. Use
11239 switch_to_inferior_and_push_target.
11240 (_initialize_inferior): Mention "-no-connection" option in
11241 the help of "add-inferior" and "clone-inferior" commands.
11242 * inferior.h: Include "process-stratum-target.h".
11243 (interrupt_target_1): Use bool.
11244 (struct inferior) <push_target, unpush_target, target_is_pushed,
11245 find_target_beneath, top_target, process_target, target_at,
11246 m_stack>: New.
11247 (discard_all_inferiors): Delete.
11248 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11249 (all_inferiors, all_non_exited_inferiors): Add
11250 process_stratum_target parameter.
11251 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11252 (target_last_proc_target): New global.
11253 (follow_fork_inferior): Push target on new inferior. Pass target
11254 to add_thread_silent. Call exec_on_vfork. Handle target's
11255 reference count.
11256 (follow_fork): Adjust get_last_target_status call. Also consider
11257 target.
11258 (follow_exec): Push target on new inferior.
11259 (struct execution_control_state) <target>: New field.
11260 (user_visible_resume_target): New.
11261 (do_target_resume): Call target_async.
11262 (resume_1): Set target's threads_executing flag. Consider resume
11263 target.
11264 (commit_resume_all_targets): New.
11265 (proceed): Also consider resume target. Skip threads of inferiors
11266 with no execution. Commit resumtion in all targets.
11267 (start_remote): Pass current inferior to wait_for_inferior.
11268 (infrun_thread_stop_requested): Consider target as well. Pass
11269 thread_info pointer to clear_inline_frame_state instead of ptid.
11270 (infrun_thread_thread_exit): Consider target as well.
11271 (random_pending_event_thread): New inferior parameter. Use it.
11272 (do_target_wait): Rename to ...
11273 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11274 down.
11275 (threads_are_resumed_pending_p, do_target_wait): New.
11276 (prepare_for_detach): Adjust calls.
11277 (wait_for_inferior): New inferior parameter. Handle it. Use
11278 do_target_wait_1 instead of do_target_wait.
11279 (fetch_inferior_event): Adjust. Switch to representative
11280 inferior. Pass target down.
11281 (set_last_target_status): Add process_stratum_target parameter.
11282 Save target in global.
11283 (get_last_target_status): Add process_stratum_target parameter and
11284 handle it.
11285 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11286 (context_switch): Check inferior_ptid == null_ptid before calling
11287 inferior_thread().
11288 (get_inferior_stop_soon): Pass down target.
11289 (wait_one): Rename to ...
11290 (poll_one_curr_target): ... this.
11291 (struct wait_one_event): New.
11292 (wait_one): New.
11293 (stop_all_threads): Adjust.
11294 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11295 event's target.
11296 (switch_back_to_stepped_thread): Also consider target.
11297 (print_stop_event): Update.
11298 (normal_stop): Update. Also consider the resume target.
11299 * infrun.h (wait_for_inferior): Remove declaration.
11300 (user_visible_resume_target): New declaration.
11301 (get_last_target_status, set_last_target_status): New
11302 process_stratum_target parameter.
11303 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11304 process_stratum_target parameter, and use it.
11305 (clear_inline_frame_state (thread_info*)): New.
11306 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11307 process_stratum_target parameter.
11308 (clear_inline_frame_state (thread_info*)): Declare.
11309 * linux-fork.c (delete_checkpoint_command): Pass target down to
11310 find_thread_ptid.
11311 (checkpoint_command): Adjust.
11312 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11313 instead of just tweaking inferior_ptid.
11314 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11315 (exit_lwp): Pass target down to find_thread_ptid.
11316 (attach_proc_task_lwp_callback): Pass target down to
11317 add_thread/set_running/set_executing.
11318 (linux_nat_target::attach): Pass target down to
11319 thread_change_ptid.
11320 (get_detach_signal): Pass target down to find_thread_ptid.
11321 Consider last target status's target.
11322 (linux_resume_one_lwp_throw, resume_lwp)
11323 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11324 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11325 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11326 (linux_nat_target::async_wait_fd): New.
11327 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11328 target down.
11329 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11330 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11331 * linux-thread-db.c (struct thread_db_info::process_target): New
11332 field.
11333 (add_thread_db_info): Save target.
11334 (get_thread_db_info): New process_stratum_target parameter. Also
11335 match target.
11336 (delete_thread_db_info): New process_stratum_target parameter.
11337 Also match target.
11338 (thread_from_lwp): Adjust to pass down target.
11339 (thread_db_notice_clone): Pass down target.
11340 (check_thread_db_callback): Pass down target.
11341 (try_thread_db_load_1): Always push the thread_db target.
11342 (try_thread_db_load, record_thread): Pass target down.
11343 (thread_db_target::detach): Pass target down. Always unpush the
11344 thread_db target.
11345 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11346 target down. Always unpush the thread_db target.
11347 (find_new_threads_callback, thread_db_find_new_threads_2)
11348 (thread_db_target::update_thread_list): Pass target down.
11349 (thread_db_target::pid_to_str): Pass current inferior down.
11350 (thread_db_target::get_thread_local_address): Pass target down.
11351 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11352 target down.
11353 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11354 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11355 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11356 (procfs_init_inferior): Rename to ...
11357 (procfs_target::procfs_init_inferior): ... this and adjust.
11358 (procfs_target::create_inferior, procfs_notice_thread)
11359 (procfs_do_thread_registers): Adjust.
11360 * ppc-fbsd-tdep.c: Include "inferior.h".
11361 (ppcfbsd_get_thread_local_address): Pass down target.
11362 * proc-service.c (ps_xfer_memory): Switch current inferior and
11363 program space as well.
11364 (get_ps_regcache): Pass target down.
11365 * process-stratum-target.c
11366 (process_stratum_target::thread_address_space)
11367 (process_stratum_target::thread_architecture): Pass target down.
11368 * process-stratum-target.h
11369 (process_stratum_target::threads_executing): New field.
11370 (as_process_stratum_target): New.
11371 * ravenscar-thread.c
11372 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11373 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11374 down.
11375 * record-btrace.c (record_btrace_target::info_record): Adjust.
11376 (record_btrace_target::record_method)
11377 (record_btrace_target::record_is_replaying)
11378 (record_btrace_target::fetch_registers)
11379 (get_thread_current_frame_id, record_btrace_target::resume)
11380 (record_btrace_target::wait, record_btrace_target::stop): Pass
11381 target down.
11382 * record-full.c (record_full_wait_1): Switch to event thread.
11383 Pass target down.
11384 * regcache.c (regcache::regcache)
11385 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11386 process_stratum_target parameter and handle it.
11387 (current_thread_target): New global.
11388 (get_thread_regcache): Add process_stratum_target parameter and
11389 handle it. Switch inferior before calling target method.
11390 (get_thread_regcache): Pass target down.
11391 (get_thread_regcache_for_ptid): Pass target down.
11392 (registers_changed_ptid): Add process_stratum_target parameter and
11393 handle it.
11394 (registers_changed_thread, registers_changed): Pass target down.
11395 (test_get_thread_arch_aspace_regcache): New.
11396 (current_regcache_test): Define a couple local test_target_ops
11397 instances and use them for testing.
11398 (readwrite_regcache): Pass process_stratum_target parameter.
11399 (cooked_read_test, cooked_write_test): Pass mock_target down.
11400 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11401 (get_thread_arch_aspace_regcache): Add process_stratum_target
11402 parameter.
11403 (regcache::target): New method.
11404 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11405 (regcache::registers_changed_ptid): Add process_stratum_target
11406 parameter.
11407 (regcache::m_target): New field.
11408 (registers_changed_ptid): Add process_stratum_target parameter.
11409 * remote.c (remote_state::supports_vCont_probed): New field.
11410 (remote_target::async_wait_fd): New method.
11411 (remote_unpush_and_throw): Add remote_target parameter.
11412 (get_current_remote_target): Adjust.
11413 (remote_target::remote_add_inferior): Push target.
11414 (remote_target::remote_add_thread)
11415 (remote_target::remote_notice_new_inferior)
11416 (get_remote_thread_info): Pass target down.
11417 (remote_target::update_thread_list): Skip threads of inferiors
11418 bound to other targets. (remote_target::close): Don't discard
11419 inferiors. (remote_target::add_current_inferior_and_thread)
11420 (remote_target::process_initial_stop_replies)
11421 (remote_target::start_remote)
11422 (remote_target::remote_serial_quit_handler): Pass down target.
11423 (remote_target::remote_unpush_target): New remote_target
11424 parameter. Unpush the target from all inferiors.
11425 (remote_target::remote_unpush_and_throw): New remote_target
11426 parameter. Pass it down.
11427 (remote_target::open_1): Check whether the current inferior has
11428 execution instead of checking whether any inferior is live. Pass
11429 target down.
11430 (remote_target::remote_detach_1): Pass down target. Use
11431 remote_unpush_target.
11432 (extended_remote_target::attach): Pass down target.
11433 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11434 (remote_target::append_resumption): Pass down target.
11435 (remote_target::append_pending_thread_resumptions)
11436 (remote_target::remote_resume_with_hc, remote_target::resume)
11437 (remote_target::commit_resume): Pass down target.
11438 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11439 (remote_target::interrupt_query)
11440 (remote_target::remove_new_fork_children)
11441 (remote_target::check_pending_events_prevent_wildcard_vcont)
11442 (remote_target::remote_parse_stop_reply)
11443 (remote_target::process_stop_reply): Pass down target.
11444 (first_remote_resumed_thread): New remote_target parameter. Pass
11445 it down.
11446 (remote_target::wait_as): Pass down target.
11447 (unpush_and_perror): New remote_target parameter. Pass it down.
11448 (remote_target::readchar, remote_target::remote_serial_write)
11449 (remote_target::getpkt_or_notif_sane_1)
11450 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11451 down target.
11452 (remote_target::mourn_inferior): Pass down target. Use
11453 remote_unpush_target.
11454 (remote_target::core_of_thread)
11455 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11456 (remote_target::pid_to_exec_file)
11457 (remote_target::thread_handle_to_thread_info): Pass down target.
11458 (remote_target::async_wait_fd): New.
11459 * riscv-fbsd-tdep.c: Include "inferior.h".
11460 (riscv_fbsd_get_thread_local_address): Pass down target.
11461 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11462 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11463 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11464 Adjust.
11465 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11466 * solib-svr4.c (enable_break): Pass down target.
11467 * spu-multiarch.c (parse_spufs_run): Pass down target.
11468 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11469 * target-delegates.c: Regenerate.
11470 * target.c (g_target_stack): Delete.
11471 (current_top_target): Return the current inferior's top target.
11472 (target_has_execution_1): Refer to the passed-in inferior's top
11473 target.
11474 (target_supports_terminal_ours): Check whether the initial
11475 inferior was already created.
11476 (decref_target): New.
11477 (target_stack::push): Incref/decref the target.
11478 (push_target, push_target, unpush_target): Adjust.
11479 (target_stack::unpush): Defref target.
11480 (target_is_pushed): Return bool. Adjust to refer to the current
11481 inferior's target stack.
11482 (dispose_inferior): Delete, and inline parts ...
11483 (target_preopen): ... here. Only dispose of the current inferior.
11484 (target_detach): Hold strong target reference while detaching.
11485 Pass target down.
11486 (target_thread_name): Add assertion.
11487 (target_resume): Pass down target.
11488 (target_ops::beneath, find_target_at): Adjust to refer to the
11489 current inferior's target stack.
11490 (get_dummy_target): New.
11491 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11492 has a thread running.
11493 (initialize_targets): Rename to ...
11494 (_initialize_target): ... this.
11495 * target.h: Include "gdbsupport/refcounted-object.h".
11496 (struct target_ops): Inherit refcounted_object.
11497 (target_ops::shortname, target_ops::longname): Make const.
11498 (target_ops::async_wait_fd): New method.
11499 (decref_target): Declare.
11500 (struct target_ops_ref_policy): New.
11501 (target_ops_ref): New typedef.
11502 (get_dummy_target): Declare function.
11503 (target_is_pushed): Return bool.
11504 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11505 (all_matching_threads_iterator::all_matching_threads_iterator):
11506 Handle filter target.
11507 * thread-iter.h (struct all_matching_threads_iterator, struct
11508 all_matching_threads_range, class all_non_exited_threads_range):
11509 Filter by target too. Remove explicit.
11510 * thread.c (threads_executing): Delete.
11511 (inferior_thread): Pass down current inferior.
11512 (clear_thread_inferior_resources): Pass down thread pointer
11513 instead of ptid_t.
11514 (add_thread_silent, add_thread_with_info, add_thread): Add
11515 process_stratum_target parameter. Use it for thread and inferior
11516 searches.
11517 (is_current_thread): New.
11518 (thread_info::deletable): Use it.
11519 (find_thread_ptid, thread_count, in_thread_list)
11520 (thread_change_ptid, set_resumed, set_running): New
11521 process_stratum_target parameter. Pass it down.
11522 (set_executing): New process_stratum_target parameter. Pass it
11523 down. Adjust reference to 'threads_executing'.
11524 (threads_are_executing): New process_stratum_target parameter.
11525 Adjust reference to 'threads_executing'.
11526 (set_stop_requested, finish_thread_state): New
11527 process_stratum_target parameter. Pass it down.
11528 (switch_to_thread): Also match inferior.
11529 (switch_to_thread): New process_stratum_target parameter. Pass it
11530 down.
11531 (update_threads_executing): Reimplement.
11532 * top.c (quit_force): Pop targets from all inferior.
11533 (gdb_init): Don't call initialize_targets.
11534 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11535 Declare.
11536 (windows_add_thread, windows_delete_thread): Adjust.
11537 (get_windows_debug_event): Rename to ...
11538 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11539 * tracefile-tfile.c (tfile_target_open): Pass down target.
11540 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11541 Forward declare.
11542 (switch_to_thread): Add process_stratum_target parameter.
11543 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11544 parameter. Use it.
11545 (mi_on_resume): Pass target down.
11546 * nat/fork-inferior.c (startup_inferior): Add
11547 process_stratum_target parameter. Pass it down.
11548 * nat/fork-inferior.h (startup_inferior): Add
11549 process_stratum_target parameter.
11550 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11551
75c6c844
PA
115522020-01-10 Pedro Alves <palves@redhat.com>
11553
11554 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11555 directly. Instead find the first thread in the thread list and
11556 use switch_to_thread.
11557
78f2c40a
PA
115582020-01-10 Pedro Alves <palves@redhat.com>
11559
11560 * remote.c (remote_target::remote_add_inferior): Don't bind a
11561 process to the current inferior if the current inferior is already
11562 bound to a process.
11563
e7af6c70
TBA
115642020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11565 Pedro Alves <palves@redhat.com>
11566
11567 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11568 If no process is specified, return null_ptid instead of
11569 inferior_ptid.
11570 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11571 TARGET_WAITKIND_SIGNALLED with no pid.
11572
31ba933e
PA
115732020-01-10 Pedro Alves <palves@redhat.com>
11574
11575 * remote.c (first_remote_resumed_thread): New.
11576 (remote_target::wait_as): Use it as default event_ptid instead of
11577 inferior_ptid.
11578
735fc2ca
PA
115792020-01-10 Pedro Alves <palves@redhat.com>
11580
11581 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11582
c17e02e1
PA
115832020-01-10 Pedro Alves <palves@redhat.com>
11584
11585 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11586 not -1.
11587
ab1ddbcf
PA
115882020-01-10 Pedro Alves <palves@redhat.com>
11589
11590 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11591 ptid to get_last_target_status.
11592 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11593 ptid to get_last_target_status.
11594 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11595 get_last_target_status.
11596 (info_program_command): Don't pass a target_waitstatus to
11597 get_last_target_status.
11598 * infrun.c (init_wait_for_inferior): Use
11599 nullify_last_target_wait_ptid.
11600 (get_last_target_status): Handle nullptr arguments.
11601 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11602 (print_stop_event): Don't pass a ptid to get_last_target_status.
11603 (normal_stop): Don't pass a ptid to get_last_target_status.
11604 * infrun.h (get_last_target_status, set_last_target_status): Move
11605 comments here and update.
11606 (nullify_last_target_wait_ptid): Declare.
11607 * linux-fork.c (fork_load_infrun_state): Remove local extern
11608 declaration of nullify_last_target_wait_ptid.
11609 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11610 to get_last_target_status.
11611
f3f8ece4
PA
116122020-01-10 Pedro Alves <palves@redhat.com>
11613
11614 * gdbthread.h (scoped_restore_current_thread)
11615 <dont_restore, restore, m_dont_restore>: Declare.
11616 * thread.c (thread_alive): Add assertion. Return bool.
11617 (switch_to_thread_if_alive): New.
11618 (prune_threads): Switch inferior/thread.
11619 (print_thread_info_1): Switch thread before calling target methods.
11620 (scoped_restore_current_thread::restore): New, factored out from
11621 ...
11622 (scoped_restore_current_thread::~scoped_restore_current_thread):
11623 ... this.
11624 (scoped_restore_current_thread::scoped_restore_current_thread):
11625 Add assertion.
11626 (thread_apply_all_command, thread_select): Use
11627 switch_to_thread_if_alive.
11628 * infrun.c (proceed, restart_threads, handle_signal_stop)
11629 (switch_back_to_stepped_thread): Switch current thread before
11630 calling target methods.
11631
db2d40f7
PA
116322020-01-10 Pedro Alves <palves@redhat.com>
11633
11634 * inferior.c (switch_to_inferior_no_thread): New function,
11635 factored out from ...
11636 (inferior_command): ... here.
11637 * inferior.h (switch_to_inferior_no_thread): Declare.
11638 * mi/mi-main.c (run_one_inferior): Use
11639 switch_to_inferior_no_thread.
11640
bd420a2d
PA
116412020-01-10 Pedro Alves <palves@redhat.com>
11642
11643 * infcmd.c (kill_command): Remove dead code.
11644
ddf5db90
PA
116452020-01-10 Pedro Alves <palves@redhat.com>
11646
11647 * remote.c (remote_target::mourn_inferior): No longer check
11648 whether the target is running.
11649
5018ce90
PA
116502020-01-10 Pedro Alves <palves@redhat.com>
11651
11652 * corelow.c (core_target::has_execution): Change parameter type to
11653 inferior pointer.
11654 * inferior.c (number_of_live_inferiors): Use
11655 inferior::has_execution instead of target_has_execution_1.
11656 * inferior.h (inferior::has_execution): New.
11657 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11658 inferior::has_execution instead of target_has_execution_1.
11659 * process-stratum-target.c
11660 (process_stratum_target::has_execution): Change parameter type to
11661 inferior pointer. Check the inferior's PID instead of
11662 inferior_ptid.
11663 * process-stratum-target.h
11664 (process_stratum_target::has_execution): Change parameter type to
11665 inferior pointer.
11666 * record-full.c (record_full_core_target::has_execution): Change
11667 parameter type to inferior pointer.
11668 * target.c (target_has_execution_1): Change parameter type to
11669 inferior pointer.
11670 (target_has_execution_current): Adjust.
11671 * target.h (target_ops::has_execution): Change parameter type to
11672 inferior pointer.
11673 (target_has_execution_1): Change parameter type to inferior
11674 pointer. Change return type to bool.
11675 * tracefile.h (tracefile_target::has_execution): Change parameter
11676 type to inferior pointer.
11677
74375d18
PA
116782020-01-10 Pedro Alves <palves@redhat.com>
11679
11680 * exceptions.c (print_flush): Remove current_top_target() check.
11681
acdf84a6
PA
116822020-01-10 Pedro Alves <palves@redhat.com>
11683
11684 * remote.c (show_remote_exec_file): Show the current inferior's
11685 exec-file instead of the command variable's value.
11686
ec506636
PA
116872020-01-10 Pedro Alves <palves@redhat.com>
11688
11689 * record-full.c (record_full_resume_ptid): New global.
11690 (record_full_target::resume): Set it.
11691 (record_full_wait_1): Use record_full_resume_ptid instead of
11692 inferior_ptid.
11693
873657b9
PA
116942020-01-10 Pedro Alves <palves@redhat.com>
11695
11696 * gdbthread.h (scoped_restore_current_thread)
11697 <dont_restore, restore, m_dont_restore>: Declare.
11698 * thread.c (thread_alive): Add assertion. Return bool.
11699 (switch_to_thread_if_alive): New.
11700 (prune_threads): Switch inferior/thread.
11701 (print_thread_info_1): Switch thread before calling target methods.
11702 (scoped_restore_current_thread::restore): New, factored out from
11703 ...
11704 (scoped_restore_current_thread::~scoped_restore_current_thread):
11705 ... this.
11706 (scoped_restore_current_thread::scoped_restore_current_thread):
11707 Add assertion.
11708 (thread_apply_all_command, thread_select): Use
11709 switch_to_thread_if_alive.
11710
7f0ae84c
GB
117112020-01-10 George Barrett <bob@bob131.so>
11712
11713 * stap-probe.c (stap_modify_semaphore): Don't check for null
11714 semaphores.
11715 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11716 for null semaphores.
11717
f5a7c406
AB
117182020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11719
11720 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11721 all source windows, and maintain horizontal scroll status while
11722 doing so.
11723
9ae6bf64
TT
117242020-01-09 Tom Tromey <tom@tromey.com>
11725
11726 PR tui/18932:
11727 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11728 update_source_window, not print_source_lines.
11729
b2efe70c
AB
117302020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11731
11732 * tui/tui.c (tui_enable): Register tui hooks after calling
11733 tui_display_main.
11734
5f23a082
CB
117352020-01-09 Christian Biesinger <cbiesinger@google.com>
11736
11737 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11738
3061113b
SM
117392020-01-08 Simon Marchi <simon.marchi@efficios.com>
11740
11741 * thread.c (print_thread_info_1): Fix indentation.
11742
57d75002
CB
117432020-01-09 Christian Biesinger <cbiesinger@google.com>
11744
11745 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11746 unique_xmalloc_ptr outside the if to always free the demangled name.
11747
6a053cb1
TT
117482020-01-08 Tom Tromey <tromey@adacore.com>
11749
11750 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11751 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11752 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11753 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11754 Remove.
11755 (section_offsets): New typedef.
11756 * symtab.c (fixup_section, get_msymbol_address): Update.
11757 * symmisc.c (dump_msymbols): Update.
11758 * symfile.h (relative_addr_info_to_section_offsets)
11759 (symfile_map_offsets_to_segments): Update.
11760 * symfile.c (build_section_addr_info_from_objfile)
11761 (init_objfile_sect_indices): Update.
11762 (struct place_section_arg): Change type of "offsets".
11763 (place_section): Update.
11764 (relative_addr_info_to_section_offsets): Change type of
11765 "section_offsets". Remove "num_sections" parameter.
11766 (default_symfile_offsets, syms_from_objfile_1)
11767 (set_objfile_default_section_offset): Update.
11768 (reread_symbols): No need to preserve section offsets by hand.
11769 (symfile_map_offsets_to_segments): Change type of "offsets".
11770 * stap-probe.c (relocate_address): Update.
11771 * stabsread.h (process_one_symbol): Update.
11772 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11773 (solib_target_relocate_section_addresses): Update.
11774 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11775 Update.
11776 * solib-frv.c (frv_relocate_main_executable): Update.
11777 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11778 * solib-aix.c (solib_aix_get_section_offsets): Change return
11779 type.
11780 (solib_aix_solib_create_inferior_hook): Update.
11781 * remote.c (remote_target::get_offsets): Update.
11782 * psymtab.c (find_pc_sect_psymtab): Update.
11783 * psympriv.h (struct partial_symbol) <address, text_low,
11784 text_high>: Update.
11785 * objfiles.h (obj_section_offset): Update.
11786 (struct objfile) <section_offsets>: Change type.
11787 <num_sections>: Remove.
11788 (objfile_relocate): Update.
11789 * objfiles.c (entry_point_address_query): Update
11790 (relocate_one_symbol): Change type of "section_offsets".
11791 (objfile_relocate1, objfile_relocate1): Change type of
11792 "new_offsets".
11793 (objfile_rebase1): Update.
11794 * mipsread.c (mipscoff_symfile_read): Update.
11795 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11796 parameter.
11797 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11798 (parse_external, psymtab_to_symtab_1): Update.
11799 * machoread.c (macho_symfile_offsets): Update.
11800 * ia64-tdep.c (ia64_find_unwind_table): Update.
11801 * hppa-tdep.c (read_unwind_info): Update.
11802 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11803 * dwarf2read.c (create_addrmap_from_index)
11804 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11805 (process_psymtab_comp_unit_reader, add_partial_symbol)
11806 (add_partial_subprogram, process_full_comp_unit)
11807 (read_file_scope, read_func_scope, read_lexical_block_scope)
11808 (read_call_site_scope, dwarf2_rnglists_process)
11809 (dwarf2_ranges_process, dwarf2_ranges_read)
11810 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11811 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11812 Update.
11813 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11814 Update.
11815 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11816 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11817 (process_one_symbol): Change type of "section_offsets".
11818 * ctfread.c (get_objfile_text_range): Update.
11819 * coffread.c (coff_symtab_read, enter_linenos)
11820 (process_coff_symbol): Update.
11821 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11822 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11823
456e800a
TT
118242020-01-08 Tom Tromey <tromey@adacore.com>
11825
11826 * dwarf2read.c (parse_macro_definition): Use std::string.
11827 (parse_macro_definition): Likewise.
11828
6dfa2fc2
TT
118292020-01-08 Tom Tromey <tromey@adacore.com>
11830
11831 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11832 (ATTR_ALLOC_CHUNK): Remove.
11833
421d1616
TT
118342020-01-08 Tom Tromey <tromey@adacore.com>
11835
11836 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11837
43816ebc
TT
118382020-01-08 Tom Tromey <tromey@adacore.com>
11839
11840 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11841 (dwarf2_compute_name, open_dwo_file): Likewise.
11842 (process_enumeration_scope): Use std::vector.
11843 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11844 (partial_die_info::fixup, dwarf2_start_subfile)
11845 (guess_full_die_structure_name, dwarf2_name): Likewise.
11846 (determine_prefix): Update.
11847 (guess_full_die_structure_name): Make return type const.
11848 (partial_die_full_name): Return unique_xmalloc_ptr.
11849 (DW_FIELD_ALLOC_CHUNK): Remove.
11850
4212d509
TT
118512020-01-07 Tom Tromey <tromey@adacore.com>
11852
11853 PR build/24937:
11854 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11855
06a6207a
JT
118562020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11857
11858 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11859
153d79c4
AB
118602020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11861
11862 * stack.c (print_frame_info): Move disassemble_next_line code
11863 inside source_print block.
11864
66182876
EZ
118652020-01-06 Eli Zaretskii <eliz@gnu.org>
11866
11867 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11868 gdb/signals.h, as we are now using native signal symbols.
11869
cbfa8581
SV
118702020-01-06 Shahab Vahedi <shahab@synopsys.com>
11871
11872 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11873 overflow by an early check of content vs threshold.
aac66a4c 11874 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11875 Likewise.
11876
3f602821
EZ
118772020-01-06 Eli Zaretskii <eliz@gnu.org>
11878
11879 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11880
a08c904d
JT
118812020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11882
11883 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11884 export table if no section contains it's RVA.
11885
89a65580
EZ
118862020-01-06 Eli Zaretskii <eliz@gnu.org>
11887
11888 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11889
8b7fcda2
HD
118902020-01-06 Hannes Domani <ssbssa@yahoo.de>
11891
11892 * source.c (print_source_lines_base): Set last_line_listed.
11893
a61b4f69
SV
118942020-01-06 Shahab Vahedi <shahab@synopsys.com>
11895
11896 * tui/tui-disasm.c: Remove trailing spaces.
11897
559e7e50
EZ
118982020-01-06 Eli Zaretskii <eliz@gnu.org>
11899 Pedro Alves <palves@redhat.com>
11900
11901 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11902 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11903 (windows_gdb_signal_to_target): New function, uses the above
11904 enumeration to convert GDB internal signal codes to equivalent
11905 Windows codes.
11906 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11907 * windows-nat.c: Include "gdb_wait.h".
11908 (get_windows_debug_event): Extract the fatal exception from the
11909 exit status and convert to the equivalent Posix signal number.
11910 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11911 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11912 * gdbsupport/gdb_wait.c: New file, implements
11913 windows_status_to_termsig.
11914 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11915 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11916
f2302a34
AB
119172020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11918
11919 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11920 show_layout.
11921
6a5206eb
LM
119222020-01-05 Luis Machado <luis.machado@linaro.org>
11923
11924 * aarch64-linux-nat.c
11925 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11926 and bfd_mach_aarch64.
11927
6ec1d75e
PW
119282020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11929
11930 * ui-file.c (stdio_file::can_emit_style_escape)
11931 (tee_file::can_emit_style_escape): Ensure style is used also on
11932 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11933 to gdb_stdout.
11934 * main.c (set_gdb_data_directory): Use file style to output the
11935 warning that the given pathname is not a directory.
11936 * top.c (show_history_filename, gdb_safe_append_history)
11937 (show_gdb_datadir): Use file style.
11938
44f81a76
HD
119392020-01-03 Hannes Domani <ssbssa@yahoo.de>
11940
11941 * solib-target.c (struct lm_info_target):
11942 Change offsets to be a unique_xmalloc_ptr.
11943 (solib_target_relocate_section_addresses): Update.
11944
25057eb0
HD
119452020-01-03 Hannes Domani <ssbssa@yahoo.de>
11946
11947 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11948
6e2118f5
BE
119492020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11950
11951 * MAINTAINERS (Write After Approval): Add myself.
11952
8133c7dc
LM
119532020-01-02 Luis Machado <luis.machado@linaro.org>
11954
11955 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11956 Cell BE architecture.
11957 * target.h (struct target_ops) <thread_architecture>: Likewise.
11958
48189bec
HD
119592020-01-01 Hannes Domani <ssbssa@yahoo.de>
11960
11961 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11962
ead1063b
HD
119632020-01-01 Hannes Domani <ssbssa@yahoo.de>
11964
11965 * MAINTAINERS (Write After Approval): Add myself.
11966
e5d78223
JB
119672020-01-01 Joel Brobecker <brobecker@adacore.com>
11968
11969 * gdbarch.sh: Update copyright year range of generated files.
11970
b811d2c2
JB
119712020-01-01 Joel Brobecker <brobecker@adacore.com>
11972
11973 Update copyright year range in all GDB files.
11974
5f4def5c
JB
119752020-01-01 Joel Brobecker <brobecker@adacore.com>
11976
11977 * copyright.py: Convert to Python 3.
11978
51fd4002
JB
119792020-01-01 Joel Brobecker <brobecker@adacore.com>
11980
11981 * copyright.py: Adapt after move of gnulib directory from gdb
11982 directory to toplevel directory.
11983
5fb651f2
JB
119842020-01-01 Joel Brobecker <brobecker@adacore.com>
11985
11986 * copyright.py (main): Exit if run from the wrong directory.
11987
5dd8bf88
JB
119882020-01-01 Joel Brobecker <brobecker@adacore.com>
11989
11990 * top.c (print_gdb_version): Change copyright year to 2020.
11991
9f71dacb 119922020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 11993
9f71dacb 11994 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 11995
9f71dacb 11996For older changes see ChangeLog-2019.
c906108c
SS
11997\f
11998Local Variables:
11999mode: change-log
12000left-margin: 8
12001fill-column: 74
12002version-control: never
57da7796 12003coding: utf-8
c906108c 12004End: