]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Fix remaining Ravenscar regressions
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a52b3ae2
TT
12020-08-07 Tom Tromey <tromey@adacore.com>
2
3 * ravenscar-thread.c
4 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5 New method.
6 (ravenscar_thread_target::wait): Check
7 runtime_initialized.
8 (ravenscar_thread_target::prepare_to_store)
9 (ravenscar_thread_target::stopped_by_sw_breakpoint)
10 (ravenscar_thread_target::stopped_by_hw_breakpoint)
11 (ravenscar_thread_target::stopped_by_watchpoint)
12 (ravenscar_thread_target::stopped_data_address)
13 (ravenscar_thread_target::core_of_thread): Use
14 scoped_restore_current_thread and
15 set_base_thread_from_ravenscar_task.
16
0e29517d
TT
172020-08-07 Tom Tromey <tromey@adacore.com>
18
19 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
20
592f9bd7
TT
212020-08-07 Tom Tromey <tromey@adacore.com>
22
23 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
24 update_inferior_ptid before update_thread_list.
25 (temporarily_change_regcache_ptid): New class.
26 (ravenscar_thread_target::fetch_registers)
27 (ravenscar_thread_target::store_registers)
28 (ravenscar_thread_target::prepare_to_store): Use base thread when
29 forwarding operation.
30
39e2018a
TT
312020-08-07 Tom Tromey <tromey@adacore.com>
32
33 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
34 "is_pid" case.
35
2080266b
TT
362020-08-07 Tom Tromey <tromey@adacore.com>
37
38 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
39 New methods.
40 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
41 first.
42 (ravenscar_thread_target::add_thread): Rename from
43 ravenscar_add_thread.
44 (ravenscar_thread_target::update_thread_list): Use a lambda.
45 (ravenscar_thread_target::xfer_partial): New method.
46
78c02f21
TT
472020-08-07 Tom Tromey <tromey@adacore.com>
48
49 * ada-lang.h (ada_task_list_iterator_ftype): Now a
50 gdb::function_view.
51 (iterate_over_live_ada_tasks): Change type of argument.
52 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
53 of argument.
54
d5d833af
TT
552020-08-07 Tom Tromey <tromey@adacore.com>
56
57 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
58 Remove.
59 (ravenscar_thread_target::extra_thread_info): Remove.
60 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
61 defer to target beneath for non-Ravenscar threads.
62
a8ac85bb
TT
632020-08-07 Tom Tromey <tromey@adacore.com>
64
65 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
66 get_base_thread_from_ravenscar_task>: Now methods.
67 <m_cpu_map>: New member.
68 (ravenscar_thread_target::get_thread_base_cpu): Rename from
69 ravenscar_get_thread_base_cpu. Check m_cpu_map.
70 (ravenscar_thread_target::task_is_currently_active): Update.
71 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
72 Now a method.
73 (ravenscar_thread_target::add_active_thread): Put initial thread
74 into the m_cpu_map.
75
550ab58d
TT
762020-08-07 Tom Tromey <tromey@adacore.com>
77
78 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
79 event_ptid.
80
e9546579
TT
812020-08-07 Tom Tromey <tromey@adacore.com>
82
83 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
84 runtime_initialized.
85
3d4470e5
TT
862020-08-07 Tom Tromey <tromey@adacore.com>
87
88 * ravenscar-thread.c (ravenscar_thread_target): Don't call
89 add_active_thread.
90 (ravenscar_thread_target::add_active_thread): Now public.
91 (ravenscar_inferior_created): Call add_active_thread after pushing
92 the target.
93
888bdb2b
SM
942020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
95
96 * regcache.c (ptid_regcache_map): New type.
97 (target_ptid_regcache_map): New type.
98 (regcaches): Change type to target_ptid_regcache_map.
99 (get_thread_arch_aspace_regcache): Update to regcaches' new
100 type.
101 (regcache_thread_ptid_changed): Likewise.
102 (registers_changed_ptid): Likewise.
103 (regcaches_size): Likewise.
104 (regcaches_test): Update.
105 (regcache_thread_ptid_changed): Update.
106 * regcache.h (regcache_up): New type.
107 * gdbsupport/ptid.h (hash_ptid): New struct.
108
b161a60d
SM
1092020-08-07 Simon Marchi <simon.marchi@efficios.com>
110
111 * observable.h (thread_ptid_changed): Add parameter
112 `process_stratum_target *`.
113 * infrun.c (infrun_thread_ptid_changed): Add parameter
114 `process_stratum_target *` and use it.
115 (selftests): New namespace.
116 (infrun_thread_ptid_changed): New function.
117 (_initialize_infrun): Register selftest.
118 * regcache.c (regcache_thread_ptid_changed): Add parameter
119 `process_stratum_target *` and use it.
120 (regcache_thread_ptid_changed): New function.
121 (_initialize_regcache): Register selftest.
122 * thread.c (thread_change_ptid): Pass target to
123 thread_ptid_changed observable.
124
d2854d8d
CT
1252020-08-06 Caroline Tice <cmtice@google.com>
126
127 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
128 (struct dwp_sections): Update field comments. Add loclists and
129 rnglists fields.
130 (struct virtual_v2_dwo_sections): Rename struct to
131 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
132 size & offset fields for loclists and rnglists.
133 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
134 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
135 skipping dummy type units.
136 (create_dwp_hash_table): Update the large comment above the function to
137 discuss Version 5 DWP files as well, with references. Update all the
138 version checks in the function to check for version 5 as well. Add new
139 section at the end to create dwp hash table for version 5.
140 (create_dwp_v2_section): Rename function to
141 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
142 Add V5 to error message text.
143 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
144 into calls to create_dwp_v2_or_v5_section.
145 (create_dwo_unit_in_dwp_v5): New function.
146 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
147 check for version2; add else clause to handle version 5.
148 (open_and_init_dwo_file): Add code to check dwarf version & only call
149 create_debug_types_hash_table (with sections.types) if version is not 5;
150 else call create_debug_type_hash_table, with sections.info.
151 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
152 version 5.
153 (dwarf2_locate_v5_dwp_sections): New function.
154 (open_and_init_dwp_file): Add else-if clause for version 5 to call
155 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
156
159ed7d9
SM
1572020-08-06 Simon Marchi <simon.marchi@efficios.com>
158
159 * regcache.h (class regcache): Remove friend
160 registers_changed_ptid.
161 <regcache_thread_ptid_changed>: Remove.
162 <regcaches>: Remove.
163 * regcache.c (regcache::regcaches): Rename to...
164 (regcaches): ... this. Make static.
165 (get_thread_arch_aspace_regcache): Update.
166 (regcache::regcache_thread_ptid_changed): Rename to...
167 (regcache_thread_ptid_changed): ... this. Update.
168 (class regcache_access): Remove.
169 (regcaches_test): Update.
170 (_initialize_regcache): Update.
171 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
172 <forward_list>.
173
174981ae
SM
1742020-08-06 Simon Marchi <simon.marchi@efficios.com>
175
176 * regcache.h (class regcache) <current_regcache>: Rename to...
177 <regcaches>: ... this. Move doc here.
178 * regcache.c (regcache::current_regcache) Rename to...
179 (regcache::regcaches): ... this. Move doc to header.
180 (get_thread_arch_aspace_regcache): Update.
181 (regcache::regcache_thread_ptid_changed): Update.
182 (registers_changed_ptid): Update.
183 (class regcache_access) <current_regcache_size>: Rename to...
184 <regcaches_size>: ... this.
185 (current_regcache_test): Rename to...
186 (regcaches_test): ... this.
187 (_initialize_regcache): Update.
188
ed908db6
VC
1892020-08-06 Victor Collod <vcollod@nvidia.com>
190
191 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
192
b5582ab7
KB
1932020-08-05 Kevin Buettner <kevinb@redhat.com>
194
195 * corelow.c (core_target::build_file_mappings): Don't output
196 null pathname in warning.
197
ea946b86
SM
1982020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
199
200 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
201 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
202 gdb.dwarf2/dw2-single-line-discriminators.exp,
203 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
204
57d02173
TT
2052020-08-05 Tom Tromey <tromey@adacore.com>
206
207 PR rust/26197:
208 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
209 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
210 Fix off-by-one and type size errors in ordinary case.
211
5555c86d
TV
2122020-08-05 Tom de Vries <tdevries@suse.de>
213
214 * gdbtypes.c (type_not_allocated, type_not_associated): Use
215 "prop->const_val () == 0" instead of "prop->const_val () != 0".
216
97916bfe
SM
2172020-08-04 Simon Marchi <simon.marchi@efficios.com>
218
219 * frame.h (frame_id_p): Return bool.
220 (frame_id_artificial_p): Return bool.
221 (frame_id_eq): Return bool.
222 (has_stack_frames): Return bool.
223 (get_selected_frame): Fix typo in comment.
224 (get_frame_pc_if_available): Return bool.
225 (get_frame_address_in_block_if_available): Return bool.
226 (get_frame_func_if_available): Return bool.
227 (read_frame_register_unsigned): Return bool.
228 (get_frame_register_bytes): Return bool.
229 (safe_frame_unwind_memory): Return bool.
230 (deprecated_frame_register_read): Return bool.
231 (frame_unwinder_is): Return bool.
232 * frame.c (struct frame_info) <prev_arch::p>: Change type to
233 bool.
234 <this_id::p>: Likewise.
235 <prev_p>: Likewise.
236 (frame_stash_add): Return bool.
237 (get_frame_id): Use bool.
238 (frame_id_build_special) Use bool.
239 (frame_id_build_unavailable_stack): Use bool.
240 (frame_id_build): Use bool.
241 (frame_id_p): Return bool, use true/false instead of 1/0.
242 (frame_id_artificial_p): Likewise.
243 (frame_id_eq): Likewise.
244 (frame_id_inner): Likewise.
245 (get_frame_func_if_available): Likewise.
246 (read_frame_register_unsigned): Likewise.
247 (deprecated_frame_register_read): Likewise.
248 (get_frame_register_bytes): Likewise.
249 (has_stack_frames): Likewise.
250 (inside_main_func): Likewise.
251 (inside_entry_func): Likewise.
252 (get_frame_pc_if_available): Likewise.
253 (get_frame_address_in_block_if_available): Likewise.
254 (frame_unwinder_is): Likewise.
255 (safe_frame_unwind_memory): Likewise.
256 (frame_unwind_arch): Likewise.
257
fedfee88
SM
2582020-08-04 Simon Marchi <simon.marchi@efficios.com>
259
260 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
261 type to cached_copy_status.
262 (fprintf_frame): Adjust.
263 (get_frame_func_if_available): Adjust.
264 (frame_cleanup_after_sniffer): Adjust.
265
6cfa9b59
MW
2662020-08-04 Mark Wielaard <mark@klomp.org>
267
268 * MAINTAINERS (Write After Approval): Update email address.
269
66d6346b
SM
2702020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
271
272 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
273 dynamic_prop::const_val.
274
8a6d5e35
SM
2752020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
276
277 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
278 dynamic_prop::kind.
279
51d6067d
SM
2802020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
281
282 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
283
b26e2ae7
JM
2842020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
285
286 * configure.tgt: Set gdb_sim for bpf-*-* targets.
287
39791af2
JM
2882020-08-04 Weimin Pan <weimin.pan@oracle.com>
289 Jose E. Marchesi <jose.marchesi@oracle.com>
290
291 * configure.tgt: Add entry for bpf-*-*.
292 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
293 (ALLDEPFILES): Add bpf-tdep.c.
294 * bpf-tdep.c: New file.
295 * MAINTAINERS: Add bpf target and maintainer.
296 * NEWS: Mention the support for the new target.
297
521894aa
TV
2982020-08-04 Tom de Vries <tdevries@suse.de>
299
300 PR symtab/23270
301 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
302 Error.
303
5d6356e9
JB
3042020-08-03 John Baldwin <jhb@FreeBSD.org>
305
306 * syscalls/freebsd.xml: Regenerate.
307
0cf82b81
JB
3082020-08-03 John Baldwin <jhb@FreeBSD.org>
309
310 * syscalls/update-freebsd.sh: Fix usage and year range.
311
8f34b746
TV
3122020-08-03 Tom de Vries <tdevries@suse.de>
313
314 PR symtab/26333
315 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
316 DW_LNE_lo_user/DW_LNE_hi_user range.
317
5e500d33
SM
3182020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
319
320 PR ada/26318
321 * ada-lang.c (ada_modulus): Return 0 if property is not of const
322 kind.
323
78319c15
TBA
3242020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
325
326 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
327
4c55e970
TBA
3282020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
329
330 * breakpoint.c (set_breakpoint_condition): Update the condition
331 expressions after checking that the input condition string parses
332 successfully and does not contain junk at the end.
333
1e620590
TBA
3342020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
335
336 * breakpoint.c (set_breakpoint_condition): Update the
337 condition string after parsing the new condition successfully.
338
c8693053
RO
3392020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
340
341 * proc-api.c (_STRUCTURED_PROC): Don't define.
342 * proc-events.c: Likewise.
343 * proc-flags.c: Likewise.
344 * proc-why.c: Likewise.
345 * procfs.c: Likewise.
346
347 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
348 * configure, config.in: Regenerate.
349
5a99adb8
TV
3502020-07-30 Tom de Vries <tdevries@suse.de>
351
352 PR build/26320
353 * ui-style.h (struct ui_file_style::color): Wrap m_value and
354 m_red/m_green/m_blue in a union.
355
8ba83e91
TV
3562020-07-29 Tom de Vries <tdevries@suse.de>
357
358 PR tdep/26280
359 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
360
f75a0693
AB
3612020-07-28 Tom Tromey <tromey@adacore.com>
362
363 PR symtab/26270:
364 * symtab.h (find_pc_partial_function_sym): Declare.
365 * cli/cli-cmds.c (disassemble_command): Use
366 find_pc_partial_function_sym. Check asm_demangle.
367 * blockframe.c (cache_pc_function_sym): New global.
368 (cache_pc_function_name): Remove.
369 (clear_pc_function_cache): Update.
370 (find_pc_partial_function_sym): New function, from
371 find_pc_partial_function.
372 (find_pc_partial_function): Rewrite using
373 find_pc_partial_function_sym.
374
16f3242c
TT
3752020-07-28 Tom Tromey <tromey@adacore.com>
376
377 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
378 help. Add usage.
379
4888741a
TT
3802020-07-28 Tom Tromey <tromey@adacore.com>
381
382 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
383 <DW_OP_GNU_variable_value>: Cast to address type.
384
4d46f402
KR
3852020-07-28 Kamil Rytarowski <n54@gmx.com>
386
387 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
388 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
389 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
390 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
391 (nbsd_get_siginfo_type): New.
392 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
393 (_initialize_nbsd_tdep): New.
394
d70f978b
L
3952020-07-28 H.J. Lu <hongjiu.lu@intel.com>
396
397 PR binutils/26301
398 * configure: Regenerated.
399
377170fa
L
4002020-07-28 H.J. Lu <hongjiu.lu@intel.com>
401
402 PR binutils/26301
403 * configure: Regenerated.
404
43d5901d
AB
4052020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
406
407 * python/py-frame.c: Remove 'user-regs.h' include.
408 (frapy_read_register): Rewrite to make use of
409 gdbpy_parse_register_id.
410 * python/py-registers.c (gdbpy_parse_register_id): New function,
411 moved here from python/py-unwind.c. Updated the return type, and
412 also accepts register descriptor objects.
413 * python/py-unwind.c: Remove 'user-regs.h' include.
414 (pyuw_parse_register_id): Moved to python/py-registers.c.
415 (unwind_infopy_add_saved_register): Update to use
416 gdbpy_parse_register_id.
417 (pending_framepy_read_register): Likewise.
418 * python/python-internal.h (gdbpy_parse_register_id): Declare.
419
14fa8fb3
AB
4202020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
421
422 * python/py-registers.c: Add 'user-regs.h' include.
423 (register_descriptor_iter_find): New function.
424 (register_descriptor_iterator_object_methods): New static global
425 methods array.
426 (register_descriptor_iterator_object_type): Add pointer to methods
427 array.
428
ddce1758
JB
4292020-07-27 John Baldwin <jhb@FreeBSD.org>
430
431 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
432 for all architectures on FreeBSD 11.3 and later.
433
a4089f52
TT
4342020-07-27 Tom Tromey <tromey@adacore.com>
435
436 * gcore.h (load_corefile): Don't declare.
437
95420d30
TV
4382020-07-27 Tom de Vries <tdevries@suse.de>
439
440 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
441 * config.in: Regenerate.
442 * configure: Regenerate.
443
05a6b8c2
EZ
4442020-07-26 Eli Zaretskii <eliz@gnu.org>
445
446 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
447 ws2tcpip.h. When checking whether socklen_t type is defined, use
448 ws2tcpip.h if it is available and sys/socket.h isn't.
449 * configure: Regenerate.
450 * config.in: Regenerate.
451
e79eb02f
AB
4522020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
453
454 PR fortran/23051
455 PR fortran/26139
456 * valops.c (value_ind): Pass address to
457 readjust_indirect_value_type.
458 * value.c (readjust_indirect_value_type): Make parameter
459 non-const, and add extra address parameter. Resolve original type
460 before using it.
461 * value.h (readjust_indirect_value_type): Update function
462 signature and comment.
463
876518dd
TV
4642020-07-25 Tom de Vries <tdevries@suse.de>
465
466 PR symtab/26243
467 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
468 entries.
469
f6720b1c
AM
4702020-07-24 Aaron Merey <amerey@redhat.com>
471
472 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
473 * configure: Rebuild.
474
513487e1
KB
4752020-07-23 Kevin Buettner <kevinb@redhat.com>
476
477 PR corefiles/26294
478 * corelow.c (_initialize_corelow): Add period to help text
479 for "maintenance print core-file-backed-mappings".
480
e7bc9db8
PA
4812020-07-23 Pedro Alves <pedro@palves.net>
482
483 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
484 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
485 meanwhile.
486 * frame.c (frame_cache_generation, get_frame_cache_generation):
487 New.
488 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
489 (get_prev_frame_if_no_cycle): On exception, don't touch
490 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
491 * frame.h (get_frame_cache_generation): Declare.
492
90fcc466
TV
4932020-07-23 Tom de Vries <tdevries@suse.de>
494
495 PR tui/26282
496 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
497 New default constructor.
498
78344df7
AB
4992020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
500
501 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
502 exclude non-statement entries.
503
b089853a
KB
5042020-07-22 Kevin Buettner <kevinb@redhat.com>
505
506 * NEWS (New commands): Mention new command
507 "maintenance print core-file-backed-mappings".
508
09c2f5d4
KB
5092020-07-22 Kevin Buettner <kevinb@redhat.com>
510
511 * corelow.c (gdbcmd.h): Include.
512 (core_target::info_proc_mappings): New method.
513 (get_current_core_target): New function.
514 (maintenance_print_core_file_backed_mappings): New function.
515 (_initialize_corelow): Add core-file-backed-mappings to
516 "maint print" commands.
517
9c5ec5c2
KB
5182020-07-22 Kevin Buettner <kevinb@redhat.com>
519
520 * linux-tdep.c (dump_note_entry_p): New function.
521 (linux_dump_mapping_p_ftype): New typedef.
522 (linux_find_memory_regions_full): Add new parameter,
523 should_dump_mapping_p.
524 (linux_find_memory_regions): Adjust call to
525 linux_find_memory_regions_full.
526 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
527 call to linux_find_memory_regions_full.
528
db082f59
KB
5292020-07-22 Kevin Buettner <kevinb@redhat.com>
530
531 * corelow.c (solist.h, unordered_map): Include.
532 (class core_target): Add field m_core_file_mappings and
533 method build_file_mappings.
534 (core_target::core_target): Call build_file_mappings.
535 (core_target::~core_target): Free memory associated with
536 m_core_file_mappings.
537 (core_target::build_file_mappings): New method.
538 (core_target::xfer_partial): Use m_core_file_mappings
539 for memory transfers.
540 * linux-tdep.c (linux_read_core_file_mappings): New
541 function.
542 (linux_core_info_proc_mappings): Rewrite to use
543 linux_read_core_file_mappings.
544 (linux_init_abi): Register linux_read_core_file_mappings.
545
7e183d27
KB
5462020-07-22 Kevin Buettner <kevinb@redhat.com>
547
548 * arch-utils.c (default_read_core_file_mappings): New function.
549 * arch-utils.c (default_read_core_file_mappings): Declare.
550 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
551 * gdbarch.h, gdbarch.c: Regenerate.
552
2735d421
KB
5532020-07-22 Kevin Buettner <kevinb@redhat.com>
554
555 PR corefiles/25631
556 * corelow.c (core_target:xfer_partial): Revise
557 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
558 case after first checking the stratum beneath the core
559 target.
560 (has_all_memory): Return true.
561 * target.c (raw_memory_xfer_partial): Revise comment
562 regarding use of has_all_memory.
563
e56cb451
KB
5642020-07-22 Kevin Buettner <kevinb@redhat.com>
565
566 * exec.h (section_table_xfer_memory): Revise declaration,
567 replacing section name parameter with an optional callback
568 predicate.
569 * exec.c (section_table_xfer_memory): Likewise.
570 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
571 of section_table_xfer_memory.
572
32fa152e
TT
5732020-07-22 Tom Tromey <tromey@adacore.com>
574
575 * mi/mi-cmd-stack.c (list_args_or_locals): Use
576 lookup_symbol_search_name.
577
a67a1c41
AB
5782020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
579
580 * python/py-registers.c (gdbpy_register_object_data_init): Remove
581 redundant local variable.
582 (gdbpy_get_register_descriptor): Extract descriptor vector as a
583 reference, not pointer, update code accordingly.
584
a7b4ff4f
SM
5852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
586 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
587
588 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
589 * jit.c (jit_breakpoint_re_set_internal): Use the
590 `skip_jit_symbol_lookup` field.
591
2340e834
SM
5922020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
593 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
594
595 * jit.c (jit_read_descriptor): Define the descriptor address once,
596 use twice.
597 (jit_breakpoint_deleted): Move the declaration of the loop variable
598 `iter` into the loop header.
599 (jit_breakpoint_re_set_internal): Move the declaration of the local
600 variable `objf_data` to the first point of definition.
601 (jit_event_handler): Move the declaration of local variables
602 `code_entry`, `entry_addr`, and `objf` to their first point of use.
603 Rename `objf` to `jited`.
604
c1072906
SM
6052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
606
607 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
608 Remove.
609 * jit.c (get_jiter_objfile_data): Update.
610
c8474dc3
TBA
6112020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
612 Simon Marchi <simon.marchi@polymtl.ca>
613
614 * jit.c (struct jit_program_space_data): Remove.
615 (jit_program_space_key): Remove.
616 (jiter_objfile_data::~jiter_objfile_data): Remove program space
617 stuff.
618 (get_jit_program_space_data): Remove.
619 (jit_breakpoint_deleted): Iterate on all of the program space's
620 objfiles.
621 (jit_inferior_init): Likewise.
622 (jit_breakpoint_re_set_internal): Likewise. Also change return
623 type to void.
624 (jit_breakpoint_re_set): Pass current_program_space to
625 jit_breakpoint_re_set_internal.
626
77208eb7
SM
6272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
628
629 * jit.h (struct jiter_objfile_data) <cached_code_address,
630 jit_breakpoint>: Move to here from ...
631 * jit.c (jit_program_space_data): ... here.
632 (jiter_objfile_data::~jiter_objfile_data): Update.
633 (jit_breakpoint_deleted): Update.
634 (jit_breakpoint_re_set_internal): Update.
635
8c1c720f
SM
6362020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
637
638 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
639 checks.
640 (jit_read_descriptor): Remove NULL check.
641 (jit_event_handler): Add an assertion.
642
0e74a041
SM
6432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
644
645 * jit.h (struct jit_objfile_data): Split into...
646 (struct jiter_objfile_data): ... this ...
647 (struct jited_objfile_data): ... and this.
648 * objfiles.h (struct objfile) <jit_data>: Remove.
649 <jiter_data, jited_data>: New fields.
650 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
651 (jiter_objfile_data::~jiter_objfile_data): ... this.
652 (get_jit_objfile_data): Rename to ...
653 (get_jiter_objfile_data): ... this.
654 (add_objfile_entry): Update.
655 (jit_read_descriptor): Use get_jiter_objfile_data.
656 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
657 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
658 (jit_inferior_exit_hook): Use objfile's jited_data field.
659
238b5c9f
SM
6602020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
661
662 * jit.h: Forward-declare `struct minimal_symbol`.
663 (struct jit_objfile_data): Migrate to here from jit.c; also add a
664 constructor, destructor, and an objfile* field.
665 * jit.c (jit_objfile_data): Remove.
666 (struct jit_objfile_data): Migrate from here to jit.h.
667 (jit_objfile_data::~jit_objfile_data): New destructor
668 implementation with code moved from free_objfile_data.
669 (free_objfile_data): Delete.
670 (get_jit_objfile_data): Update to use the jit_data field of objfile.
671 (jit_find_objf_with_entry_addr): Ditto.
672 (jit_inferior_exit_hook): Ditto.
673 (_initialize_jit): Remove the call to
674 register_objfile_data_with_cleanup.
675 * objfiles.h (struct objfile) <jit_data>: New field.
676
fe053b9e
TBA
6772020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
678
679 * jit.h: Forward-declare `struct objfile`.
680 (jit_event_handler): Add a second parameter, the JITer objfile.
681 * jit.c (jit_read_descriptor): Change the signature to take the
682 JITer objfile as an argument instead of the jit_program_space_data.
683 (jit_inferior_init): Update the call to jit_read_descriptor.
684 (jit_event_handler): Use the new JITer objfile argument when calling
685 jit_read_descriptor.
686 * breakpoint.c (handle_jit_event): Update the call to
687 jit_event_handler to pass the JITer objfile.
688
4cec0c66
JB
6892020-07-21 John Baldwin <jhb@FreeBSD.org>
690
691 * gdbarch.c: Regenerate.
692 * gdbarch.h: Regenerate.
693 * gdbarch.sh (handle_segmentation_fault): Remove method.
694 * infrun.c (handle_segmentation_fault): Remove.
695 (print_signal_received_reason): Remove call to
696 handle_segmentation_fault.
697
0e42f66a
JB
6982020-07-21 John Baldwin <jhb@FreeBSD.org>
699
700 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
701 Rename to sparc64_linux_report_signal_info and add siggnal
702 argument.
703 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
704 instead of sparc64_linux_handle_segmentation_fault.
705
77bdfeb2
JB
7062020-07-21 John Baldwin <jhb@FreeBSD.org>
707
708 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
709 i386_linux_report_signal_info instead of
710 i386_linux_handle_segmentation_fault.
711 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
712 to i386_linux_report_signal_info and add siggnal argument.
713 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
714 of i386_linux_handle_segmentation_fault.
715 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
716 to i386_linux_report_signal_info and add siggnal argument.
717
ad97bfc5
JB
7182020-07-21 John Baldwin <jhb@FreeBSD.org>
719
720 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
721 hook if present.
722
272bb05c
JB
7232020-07-21 John Baldwin <jhb@FreeBSD.org>
724
725 * gdbarch.c: Regenerate.
726 * gdbarch.h: Regenerate.
727 * gdbarch.sh (report_signal_info): New method.
728 * infrun.c (print_signal_received_reason): Invoke gdbarch
729 report_signal_info hook if present.
730
baf8791e
AB
7312020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
732
733 * python/py-registers.c : Add 'unordered_map' include.
734 (gdbpy_new_reggroup): Renamed to...
735 (gdbpy_get_reggroup): ...this. Update to only create register
736 group descriptors when needed.
737 (gdbpy_reggroup_iter_next): Update.
738
f7306dac
AB
7392020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
740
741 * python/py-registers.c (gdbpy_register_object_data): New static
742 global.
743 (gdbpy_register_object_data_init): New function.
744 (gdbpy_new_register_descriptor): Renamed to...
745 (gdbpy_get_register_descriptor): ...this, and update to reuse
746 existing register descriptors where possible.
747 (gdbpy_register_descriptor_iter_next): Update.
748 (gdbpy_initialize_registers): Register new gdbarch data.
749
05c309a8
SM
7502020-07-21 Simon Marchi <simon.marchi@efficios.com>
751
752 * linux-nat.c (stopped_pids): Make static.
753
d1fd641e
SM
7542020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
755
756 PR ada/26235
757 * gdbtypes.c (ada_discrete_type_low_bound,
758 ada_discrete_type_high_bound): Handle undefined bounds.
759
1de14d77
KR
7602020-07-21 Kamil Rytarowski <n54@gmx.com>
761
762 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
763 declaration.
764 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
765 function.
766
ed810cc7
JB
7672020-07-20 John Baldwin <jhb@FreeBSD.org>
768
769 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
770 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
771 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
772 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
773 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
774 method.
775
ae5369e7
LC
7762020-07-20 Ludovic Courtès <ludo@gnu.org>
777
778 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
779 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
780 which are deprecated in Guile 3.0.
781 * configure.ac (try_guile_versions): Add "guile-3.0".
782 * configure (try_guile_versions): Regenerate.
783 * NEWS: Update entry.
784
68cf161c
LC
7852020-07-20 Ludovic Courtès <ludo@gnu.org>
786 Doug Evans <dje@google.com>
787
788 PR gdb/21104
789 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
790 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
791 USING_GUILE_BEFORE_2_2.
792 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
793 Change type to 'scm_t_port_type *'.
794 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
795 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
796 parameter and honor it. Update callers.
797 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
798 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
799 functions.
800 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
801 USING_GUILE_BEFORE_2_2.
802 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
803 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
804 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
805 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
806 and 'SCM_PORT_TYPE'.
807 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
808 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
809 (gdbscm_memory_port_read, gdbscm_memory_port_write)
810 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
811 [!USING_GUILE_BEFORE_2_2]: New functions.
812 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
813 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
814 'gdbscm_memory_port_read'.
815 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
816 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
817 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
818 function.
819 (ioscm_init_memory_port): Remove.
820 (ioscm_init_memory_port_stream): New function
821 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
822 function.
823 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
824 Return scm_from_uint (0).
825 (gdbscm_set_memory_port_read_buffer_size_x)
826 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
827 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
828 Return scm_from_uint (0).
829 (gdbscm_set_memory_port_write_buffer_size_x)
830 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
831 * configure.ac (try_guile_versions): Add "guile-2.2".
832 * configure: Regenerate.
833 * NEWS: Add entry.
834
aee91db3
TT
8352020-07-18 Tom Tromey <tom@tromey.com>
836
837 * linux-nat.c (linux_multi_process): Remove.
838 (linux_nat_target::supports_multi_process): Return true.
839
0e267416
AB
8402020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
841
842 * arch/riscv.c (riscv_tdesc_cache): Change map type.
843 (riscv_lookup_target_description): Return pointer out of
844 unique_ptr.
845 * target-descriptions.c (allocate_target_description): Add
846 comment.
847 (target_desc_deleter::operator()): Likewise.
848 * target-descriptions.h (struct target_desc_deleter): Moved to
849 gdbsupport/tdesc.h.
850 (target_desc_up): Likewise.
851
f80c8ec4
TT
8522020-07-17 Tom Tromey <tromey@adacore.com>
853
854 * linux-nat.c (linux_nat_target::supports_non_stop)
855 (linux_nat_target::always_non_stop_p): Use "true".
856 (linux_nat_target::supports_disable_randomization): Use "true" and
857 "false".
858
d0ce17d8
CT
8592020-07-16 Caroline Tice <cmtice@google.com>
860
861 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
862 (RNGLIST_HEADER_SIZE64): New constant definition.
863 (struct dwop_section_names): Add rnglists_dwo.
864 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
865 (struct loclist_header): Rename to 'loclists_rnglists_header'.
866 (struct dwo_sections): Add rnglists field.
867 (read_attribut_reprocess): Add tag parameter.
868 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
869 (cu_debug_rnglists_section): New function (decl & definition).
870 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
871 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
872 die whose range is being checked; get rnglist section from
873 cu_debug_rnglists_section, to get from either objfile or dwo file as
874 appropriate. Add cases for DW_RLE_base_addressx,
875 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
876 the base address to DW_RLE_offset_pairs (not to all ranges), moving
877 test inside if-condition and updating complaint message.
878 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
879 dwarf2_rnglists_process.
880 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
881 dwarf2_ranges_process.
882 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
883 need_ranges_base and update comment appropriately. Also pass die tag
884 to dwarf2_ranges_read.
885 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
886 need_ranges_base and update comment appropriately. Also pass die tag
887 to dwarf2_ranges_process.
888 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
889 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
890 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
891 need_ranges_base and update comment appropriately. Also pass die tag
892 to read_attribute_reprocess and dwarf2_ranges_read.
893 (read_loclist_header): Rename function to read_loclists_rnglists_header,
894 and update function comment appropriately.
895 (read_loclist_index): Call read_loclists_rnglists_header instead of
896 read_loclist_header.
897 (read_rnglist_index): New function.
898 (read_attribute_reprocess): Add tag parameter. Add code for
899 DW_FORM_rnglistx, passing tag to read_rnglist_index.
900 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
901
3dcc261c
AB
9022020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
903
904 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
905 being resolved.
906
ccb9eba6
AB
9072020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
908
909 * arch-utils.c (show_architecture): Update formatting of messages.
910
cf88be68
SM
9112020-07-12 Simon Marchi <simon.marchi@efficios.com>
912
913 * gdbtypes.h (struct type) <bounds>: Handle array and string
914 types.
915 * ada-lang.c (assign_aggregate): Use type::bounds on
916 array/string type.
917 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
918 * c-varobj.c (c_number_of_children): Likewise.
919 (c_describe_child): Likewise.
920 * eval.c (evaluate_subexp_for_sizeof): Likewise.
921 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
922 (f_type_print_base): Likewise.
923 * f-valprint.c (f77_array_offset_tbl): Likewise.
924 (f77_get_upperbound): Likewise.
925 (f77_print_array_1): Likewise.
926 * guile/scm-type.c (gdbscm_type_range): Likewise.
927 * m2-typeprint.c (m2_array): Likewise.
928 (m2_is_long_set_of_type): Likewise.
929 * m2-valprint.c (get_long_set_bounds): Likewise.
930 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
931 * python/py-type.c (typy_range): Likewise.
932 * rust-lang.c (rust_internal_print_type): Likewise.
933 * type-stack.c (type_stack::follow_types): Likewise.
934 * valarith.c (value_subscripted_rvalue): Likewise.
935 * valops.c (value_cast): Likewise.
936
509971ae
SM
9372020-07-12 Simon Marchi <simon.marchi@efficios.com>
938
939 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
940 callers to use the equivalent accessor methods.
941
107406b7
SM
9422020-07-12 Simon Marchi <simon.marchi@efficios.com>
943
944 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
945 (struct type) <bit_stride>: New method.
946 (TYPE_BIT_STRIDE): Remove.
947 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
948
bb789949
SM
9492020-07-12 Simon Marchi <simon.marchi@efficios.com>
950
951 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
952 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
953 callers to use the equivalent accessor methods instead.
954
39498edb
SM
9552020-07-12 Simon Marchi <simon.marchi@efficios.com>
956
957 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
958 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
959 callers to use the equivalent accessor methods instead.
960
3b606f38
SM
9612020-07-12 Simon Marchi <simon.marchi@efficios.com>
962
963 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
964 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
965 to use dynamic_prop::kind.
966
064d9cb9
SM
9672020-07-12 Simon Marchi <simon.marchi@efficios.com>
968
969 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
970 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
971 to get the bound property's kind and check against
972 PROP_UNDEFINED.
973
5537ddd0
SM
9742020-07-12 Simon Marchi <simon.marchi@efficios.com>
975
976 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
977 all callers to use type::range_bounds followed by
978 dynamic_prop::{low,high}.
979
8c2e4e06
SM
9802020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
981
982 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
983 const_val, set_const_val, baton, set_locexpr, set_loclist,
984 set_addr_offset, variant_parts, set_variant_parts,
985 original_type, set_original_type>: New methods.
986 <kind>: Rename to...
987 <m_kind>: ... this. Update all users to use the new methods
988 instead.
989 <data>: Rename to...
990 <m_data>: ... this. Update all users to use the new methods
991 instead.
992
7c6f2712
SM
9932020-07-12 Simon Marchi <simon.marchi@efficios.com>
994
995 * gdbtypes.c (get_discrete_bounds): Return failure if
996 the range type's bounds are not both defined and constant
997 values.
998 (get_array_bounds): Update comment. Remove undefined bound check.
999
599088e3
SM
10002020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1001
1002 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1003 the type::bounds method directly.
1004
c4dfcb36
SM
10052020-07-12 Simon Marchi <simon.marchi@efficios.com>
1006
1007 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1008 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1009 are used to set the range type's bounds to use set_bounds.
1010
0a278aa7
PW
10112020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1012
1013 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1014
cce20f10
PA
10152020-07-10 Pedro Alves <pedro@palves.net>
1016
1017 * gdbthread.h (inferior_ref): Define.
1018 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1019 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1020 * thread.c
1021 (scoped_restore_current_thread::restore):
1022 Adjust to gdb::ref_ptr.
1023 (scoped_restore_current_thread::~scoped_restore_current_thread):
1024 Remove manual decref handling.
1025 (scoped_restore_current_thread::scoped_restore_current_thread):
1026 Adjust to use
1027 inferior_ref::new_reference/thread_info_ref::new_reference.
1028 Incref the thread before calling get_frame_id instead of after.
1029 Let TARGET_CLOSE_ERROR propagate.
1030
6d7aa592
PA
10312020-07-10 Pedro Alves <pedro@palves.net>
1032
1033 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1034 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1035 NOT_AVAILABLE_ERROR.
1036 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1037 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1038
b3e3a4c1
SM
10392020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1040 Pedro Alves <pedro@palves.net>
1041
1042 PR gdb/26199
1043 * infrun.c (threads_are_resumed_pending_p): Delete.
1044 (do_target_wait): Remove threads_are_executing and
1045 threads_are_resumed_pending_p checks from the inferior_matches
1046 lambda. Update comments.
1047
d6cc5d98
PA
10482020-07-10 Pedro Alves <pedro@palves.net>
1049
1050 PR gdb/26199
1051 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1052 executing threads.
1053
7d3badc6
PA
10542020-07-10 Pedro Alves <pedro@palves.net>
1055
1056 PR gdb/26199
1057 * infrun.c (handle_no_resumed): Handle multiple targets.
1058
42bd97a6
PA
10592020-07-10 Pedro Alves <pedro@palves.net>
1060
1061 PR gdb/26199
1062 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1063 target_is_async_p.
1064
43667cc6
PA
10652020-07-10 Pedro Alves <pedro@palves.net>
1066
1067 PR gdb/26199
1068 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1069 threads, not all threads.
1070
96118d11
PA
10712020-07-10 Pedro Alves <pedro@palves.net>
1072
1073 PR gdb/26199
1074 * remote.c (remote_target::open_1): Pass remote target pointer as
1075 data to create_async_event_handler.
1076 (remote_async_inferior_event_handler): Mark async event handler
1077 before returning if the remote target still has either pending
1078 events or unacknowledged notifications.
1079
54904d81
JB
10802020-07-10 John Baldwin <jhb@FreeBSD.org>
1081
1082 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1083 declaration.
1084 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1085 function.
1086
f37e5866
JB
10872020-07-09 John Baldwin <jhb@FreeBSD.org>
1088
1089 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1090 inferior_ptid.
1091
fc238d4a
JB
10922020-07-09 John Baldwin <jhb@FreeBSD.org>
1093
1094 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1095 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1096 AT_FREEBSD_PS_STRINGS.
1097
6e2469ff
HD
10982020-07-08 Hannes Domani <ssbssa@yahoo.de>
1099
1100 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1101 of debugfile path on Windows.
1102
d1076c41
JB
11032020-07-08 John Baldwin <jhb@FreeBSD.org>
1104
1105 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1106 argument to 'data'.
1107
15f3b077
TT
11082020-07-08 Tom Tromey <tromey@adacore.com>
1109
1110 * ada-lang.c (ada_exception_message_1): Use read_memory.
1111
9fc501fd
AB
11122020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1113
1114 PR python/22748
1115 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1116 special handling for inline frames.
1117 * findvar.c (value_of_register_lazy): Skip inline frames when
1118 creating lazy register values.
1119 * frame.c (frame_id_computed_p): Delete definition.
1120 * frame.h (frame_id_computed_p): Delete declaration.
1121
64cb3757
AB
11222020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1123
1124 * NEWS: Mention additions to Python API.
1125 * python/py-arch.c (archpy_register_groups): New function.
1126 (arch_object_methods): Add 'register_groups' method.
1127 * python/py-registers.c (reggroup_iterator_object): New struct.
1128 (reggroup_object): New struct.
1129 (gdbpy_new_reggroup): New function.
1130 (gdbpy_reggroup_to_string): New function.
1131 (gdbpy_reggroup_name): New function.
1132 (gdbpy_reggroup_iter): New function.
1133 (gdbpy_reggroup_iter_next): New function.
1134 (gdbpy_new_reggroup_iterator): New function
1135 (gdbpy_initialize_registers): Register new types.
1136 (reggroup_iterator_object_type): Define new Python type.
1137 (gdbpy_reggroup_getset): New static global.
1138 (reggroup_object_type): Define new Python type.
1139 * python/python-internal.h
1140
0f767f94
AB
11412020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1144 * python/py-arch.c (archpy_registers): New function.
1145 (arch_object_methods): Add 'registers' method.
1146 * python/py-registers.c: New file.
1147 * python/python-internal.h
1148 (gdbpy_new_register_descriptor_iterator): Declare.
1149 (gdbpy_initialize_registers): Declare.
1150 * python/python.c (do_start_initialization): Call
1151 gdbpy_initialize_registers.
1152 * NEWS: Mention additions to the Python API.
1153
87dbc774
AB
11542020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1155
1156 * NEWS: Mention new Python API method.
1157 * python/py-unwind.c (pending_framepy_architecture): New function.
1158 (pending_frame_object_methods): Add architecture method.
1159
3bc98c0c
AB
11602020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1161
1162 * gdbarch.c: Regenerate.
1163 * gdbarch.h: Regenerate.
1164 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1165 (gdbarch_data): Use internal_error for the case where
1166 deprecated_set_gdbarch_data was originally needed.
1167 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1168 and use passed in obstack.
1169 (libunwind_frame_set_descr): Should no longer get back NULL from
1170 gdbarch_data.
1171 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1172 type.
1173 * user-regs.c (user_regs_init): Update parameters, and use passed
1174 in obstack.
1175 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1176 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1177
d8cc8af6
TV
11782020-07-06 Tom de Vries <tdevries@suse.de>
1179
1180 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1181 End-Of-Sequence in lte_is_less_than.
1182 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1183 "gdb: Don't reorder line table entries too much when sorting".
1184
947f7597
TV
11852020-07-06 Tom de Vries <tdevries@suse.de>
1186
1187 PR tui/26205
1188 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1189
1e7c1b22
TV
11902020-07-05 Tom de Vries <tdevries@suse.de>
1191
1192 PR build/26187
1193 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1194 std::uncaught_exceptions instead of deprecated
1195 std::uncaught_exception.
1196
a36158ec
SM
11972020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1198
1199 * macroexp.h (macro_stringify): Return
1200 gdb::unique_xmalloc_ptr<char>.
1201 * macroexp.c (macro_stringify): Likewise.
1202 * macrotab.c (fixup_definition): Update.
1203
14d960c8
SM
12042020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1205
1206 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1207 (lex_one_token): Update.
1208 * macroexp.c (struct macro_buffer) <release>: Return
1209 gdb::unique_xmalloc_ptr<char>.
1210 (macro_stringify): Update.
1211 (macro_expand): Update.
1212 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1213 * macroexp.h (macro_expand_next): Likewise.
1214
211d5b1c
SM
12152020-07-02 Simon Marchi <simon.marchi@efficios.com>
1216
1217 * macroexp.h (macro_lookup_ftype): Remove.
1218 (macro_expand, macro_expand_once, macro_expand_next): Remove
1219 lookup function parameters, add scope parameter.
1220 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1221 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1222 * macroscope.h (standard_macro_lookup): Change parameter type
1223 to macro_scope.
1224 * macroscope.c (standard_macro_lookup): Likewise.
1225 * c-exp.y (lex_one_token): Update.
1226 * macrocmd.c (macro_expand_command): Likewise.
1227 (macro_expand_once_command): Likewise.
1228
b1a35af2
SM
12292020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1230
1231 * inf-loop.c (inferior_event_handler): Remove client_data param.
1232 * inf-loop.h (inferior_event_handler): Likewise.
1233 * infcmd.c (step_1): Adjust.
1234 * infrun.c (proceed): Adjust.
1235 (fetch_inferior_event): Remove client_data param.
1236 (infrun_async_inferior_event_handler): Adjust.
1237 * infrun.h (fetch_inferior_event): Remove `void *` param.
1238 * linux-nat.c (handle_target_event): Adjust.
1239 * record-btrace.c (record_btrace_handle_async_inferior_event):
1240 Adjust.
1241 * record-full.c (record_full_async_inferior_event_handler):
1242 Adjust.
1243 * remote.c (remote_async_inferior_event_handler): Adjust.
1244
1cdf9e33
TT
12452020-07-01 Tom Tromey <tom@tromey.com>
1246
1247 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1248 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1249
32c1e210
TT
12502020-07-01 Tom Tromey <tom@tromey.com>
1251
1252 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1253 tui_gen_win_info.
1254 (tui_win_info::make_window): Merge with
1255 tui_gen_win_info::make_window.
1256 (tui_win_info::make_visible): Move from tui_gen_win_info.
1257 * tui/tui-win.c (tui_win_info::max_width): Move from
1258 tui_gen_win_info.
1259 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1260 type.
1261 <window_factory>: Likewise.
1262 * tui/tui-layout.c (tui_win_info::resize): Move from
1263 tui_gen_win_info.
1264 (make_standard_window): Change return type.
1265 (get_locator_window, tui_get_window_by_name): Likewise.
1266 (tui_layout_window::apply): Remove a cast.
1267 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1268 (struct tui_win_info): Merge with tui_gen_win_info.
1269 (struct tui_gen_win_info): Remove.
1270
a30cb6da
TT
12712020-07-01 Tom Tromey <tom@tromey.com>
1272
1273 * tui/tui-stack.h (struct tui_locator_window): Derive from
1274 tui_win_info.
1275 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1276 <can_box>: New method.
1277
1eb2161f
TT
12782020-07-01 Tom Tromey <tom@tromey.com>
1279
1280 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1281
7134f2eb
TT
12822020-07-01 Tom Tromey <tom@tromey.com>
1283
1284 * tui/tui-regs.c (tui_data_window::display_registers_from)
1285 (tui_data_window::display_registers_from)
1286 (tui_data_window::first_data_item_displayed)
1287 (tui_data_window::delete_data_content_windows): Update.
1288 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1289 Remove.
1290 (tui_data_window::check_register_values): Update.
1291 (tui_data_item_window::rerender): Add parameters. Update.
1292 (tui_data_item_window::refresh_window): Remove.
1293 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1294 virtual.
1295 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1296 tui_gen_win_info.
1297 <refresh_window, max_height, min_height>: Remove.
1298 <rerender>: Add parameters.
1299 <x, y, visible>: New members.
1300 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1301 <m_item_width>: New member.
1302
22b7b041
TT
13032020-07-01 Tom Tromey <tom@tromey.com>
1304
1305 * tui/tui-regs.c (tui_data_window::show_register_group)
1306 (tui_data_window::check_register_values): Update.
1307 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1308 from item_no.
1309
c9753adb
TT
13102020-07-01 Tom Tromey <tom@tromey.com>
1311
1312 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1313 useless "if".
1314
9ab26b4a
TT
13152020-07-01 Tom Tromey <tom@tromey.com>
1316
1317 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1318 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1319
e555083f
TT
13202020-07-01 Tom Tromey <tom@tromey.com>
1321
1322 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1323 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1324 (struct tui_line_or_address): Move from tui-data.h.
1325 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1326 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1327 (tui_cmd_window, tui_source_window_base, tui_source_window)
1328 (tui_disasm_window): Don't declare.
1329 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1330 to tui-winsource.h.
1331 (SINGLE_KEY): Move to tui-stack.c.
1332
7a02bab7
TT
13332020-07-01 Tom Tromey <tom@tromey.com>
1334
1335 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1336 std::string.
1337 * tui/tui-regs.c (class tab_expansion_file): New.
1338 (tab_expansion_file::write): New method.
1339 (tui_register_format): Change return type. Use
1340 tab_expansion_file.
1341 (tui_get_register, tui_data_window::display_registers_from)
1342 (tui_data_item_window::rerender): Update.
1343 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1344 * tui/tui-io.c (tui_expand_tabs): Remove.
1345
ea68593b
TT
13462020-07-01 Tom Tromey <tom@tromey.com>
1347
1348 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1349
a8caed5d
FS
13502020-07-01 Fangrui Song <maskray@google.com>
1351
1352 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1353
9cdf9820
AKS
13542020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1355
1356 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1357 forms for DW_AT_associated and DW_AT_allocated attributes,
1358 which is already checked in function attr_to_dynamic_prop.
1359
a1520ad8
TT
13602020-06-30 Tom Tromey <tromey@adacore.com>
1361
1362 * dwarf2/read.c (quirk_rust_enum): Correctly call
1363 alloc_rust_variant for default-less enum.
1364
5ac58899
TT
13652020-06-30 Tom Tromey <tromey@adacore.com>
1366
1367 PR build/26183:
1368 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1369 gdb::to_string.
1370
19b187a9
SM
13712020-06-29 Simon Marchi <simon.marchi@efficios.com>
1372
1373 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1374 * gdbarch.h: Re-generate.
1375
cd4c4c07
TT
13762020-06-28 Tom Tromey <tom@tromey.com>
1377
1378 * command.h (cmd_types): Remove.
1379 (cmd_type): Don't declare.
1380 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1381 typedef.
1382 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1383 * cli/cli-decode.c (cmd_type): Remove.
1384
05779d57
PA
13852020-06-27 Pedro Alves <palves@redhat.com>
1386
1387 * fork-child.c (prefork_hook): Adjust.
1388 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1389 Delete.
1390 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1391 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1392 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1393 Remove declarations.
1394 (struct inferior) <set_tty, tty>: New methods.
1395 (struct inferior) <terminal>: Rename to ...
1396 (struct inferior) <m_terminal>: ... this and make private.
1397 * main.c (captured_main_1): Adjust.
1398 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1399 (mi_cmd_inferior_tty_show): Adjust.
1400 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1401 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1402
1776e3e5
NA
14032020-06-26 Nick Alcock <nick.alcock@oracle.com>
1404
1405 * configure.ac: Add --enable-libctf: handle --disable-static
1406 properly.
1407 * acinclude.m4: sinclude ../config/enable.m4.
1408 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1409 (LIBCTF): Substitute in.
1410 (CTF_DEPS): New, likewise.
1411 (CLIBS): libctf needs symbols from libbfd: move earlier.
1412 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1413 flags.
1414 * ctfread.c: Surround in ENABLE_LIBCTF.
1415 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1416 * configure: Regenerate.
1417 * config.in: Likewise.
1418
58373b80
SM
14192020-06-25 Simon Marchi <simon.marchi@efficios.com>
1420
1421 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1422
277474ee
SM
14232020-06-25 Simon Marchi <simon.marchi@efficios.com>
1424
1425 * inferior.h (struct inferior) <terminal>: Change type to
1426 gdb::unique_xmalloc_ptr<char>.
1427 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1428 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1429 field, adjust to unique pointer.
1430 (get_inferior_io_terminal): Adjust to unique pointer.
1431
6d74da72
AB
14322020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1433
1434 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1435 registers, not just the known core set of registers.
1436
2e52d038
AB
14372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1438
1439 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1440 fflags, frm, and fcsr registers.
1441 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1442 restore groups.
1443 (riscv_tdesc_unknown_reg): New function.
1444 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1445 tdesc_use_registers.
1446 * riscv-tdep.h (struct gdbarch_tdep): Add
1447 unknown_csrs_first_regnum, unknown_csrs_count,
1448 duplicate_fflags_regnum, duplicate_frm_regnum, and
1449 duplicate_fcsr_regnum fields.
1450
be64fd07
AB
14512020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1452
1453 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1454 callback, use the callback (when not null) to help number unknown
1455 registers.
1456 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1457 (tdesc_use_registers): Add extra parameter to declaration.
1458
3b9fce96
AB
14592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1460
1461 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1462 in the file.
1463 (class riscv_pending_register_alias): Likewise.
1464 (riscv_register_feature::register_info): Change 'required_p' field
1465 to 'required', and change its type. Add 'check' member function.
1466 (riscv_register_feature::register_info::check): Define new member
1467 function.
1468 (riscv_xreg_feature): Change initialisation of 'required' field.
1469 (riscv_freg_feature): Likewise.
1470 (riscv_virtual_feature): Likewise.
1471 (riscv_csr_feature): Likewise.
1472 (riscv_check_tdesc_feature): Take extra parameter, the csr
1473 tdesc_feature, rewrite the function to use the new
1474 riscv_register_feature::register_info::check function.
1475 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1476
865bad26
AB
14772020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1478
1479 * features/Makefile: Remove all references to the deleted files
1480 below.
1481 * features/riscv/32bit-csr.c: Deleted.
1482 * features/riscv/32bit-csr.xml: Deleted.
1483 * features/riscv/64bit-csr.c: Deleted.
1484 * features/riscv/64bit-csr.xml: Deleted.
1485 * features/riscv/rebuild-csr-xml.sh: Deleted.
1486
ed69cbc8
AB
14872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1490 whitespace error for declaration of names member variable.
1491 (struct riscv_register_feature): Add new prefer_first_name member
1492 variable, and fix whitespace error in declaration of registers.
1493 (riscv_xreg_feature): Initialize prefer_first_name field.
1494 (riscv_freg_feature): Likewise.
1495 (riscv_virtual_feature): Likewise.
1496 (riscv_csr_feature): Likewise.
1497 (riscv_register_name): Expand on comments. Remove register name
1498 modifications for CSR and virtual registers.
1499
4445e8f5
AB
15002020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1501
1502 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1503 errors.
1504
767a879e
AB
15052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1506
1507 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1508 riscv-opc.h.
1509 (class riscv_pending_register_alias): New class.
1510 (riscv_check_tdesc_feature): Take vector of pending aliases and
1511 populate it as appropriate.
1512 (riscv_setup_register_aliases): Delete.
1513 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1514 to riscv_check_tdesc_feature in all cases. Use the vector to
1515 create the register aliases.
1516
bb6e55f3
RO
15172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1518
1519 * sol2-tdep.c (sol2_static_transform_name): Remove.
1520 (sol2_init_abi): Don't register it.
1521 * gdbarch.sh (static_transform_name): Remove.
1522 * gdbarch.c, gdbarch.h: Regenerate.
1523
1524 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1525 gdbarch_static_transform_name.
1526 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1527 * stabsread.c (define_symbol) <'X'>: Remove.
1528 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1529 handling.
1530 <'V'>: Likewise.
1531 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1532 <'S'>: Remove call to gdbarch_static_transform_name.
1533
c6d36836
RO
15342020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1535
1536 * procfs.c (procfs_pre_trace): New function.
1537 (procfs_target::create_inferior): Pass it to fork_inferior.
1538
a7e6196b
RO
15392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1540
1541 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1542 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1543 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1544 sol2-tdep.o, sparc-sol2-tdep.o.
1545 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1546 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1547 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1548 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1549
d412e696
RO
15502020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1551
1552 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1553 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1554 Call sol2_init_abi.
1555 Remove calls to set_gdbarch_skip_solib_resolver,
1556 set_gdbarch_core_pid_to_str.
1557 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1558 (i386_sol2_static_transform_name): Remove.
1559 (i386_sol2_init_abi): Call sol2_init_abi.
1560 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1561 set_gdbarch_static_transform_name,
1562 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1563 Use sol2_sigtramp_p.
1564 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1565 (sol2_sigtramp_p): New function.
1566 (sol2_static_transform_name): New function.
1567 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1568 (sol2_init_abi): New function.
1569 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1570 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1571 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1572 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1573 (sparc_sol2_static_transform_name): Remove.
1574 (sparc32_sol2_init_abi): Call sol2_init_abi.
1575 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1576 set_gdbarch_static_transform_name,
1577 set_gdbarch_skip_solib_resolver,
1578 set_gdbarch_core_pid_to_str.
1579 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1580 (sparc_sol2_static_transform_name): Remove
1581 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1582 call sol2_sigtramp_p.
1583 (sparc64_sol2_init_abi): Call sol2_init_abi.
1584 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1585 set_gdbarch_static_transform_name,
1586 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1587
a8654e7d
PW
15882020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1589
1590 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1591 * exec.c (validate_exec_file): If from_tty, set both
1592 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1593 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1594 and from_tty, unconditionally ask a confirmation.
1595
caa7fd04
AB
15962020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * target-descriptions.c (tdesc_architecture_name): Protect against
1599 NULL pointer dereference.
1600 (maint_print_xml_tdesc_cmd): New function.
1601 (_initialize_target_descriptions): Register new 'maint print
1602 xml-tdesc' command and give it the filename completer.
1603 * NEWS: Mention new 'maint print xml-tdesc' command.
1604
fbf42f4e
AB
16052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1606
1607 * target-descriptions.c (class tdesc_compatible_info): New class.
1608 (struct target_desc): Change type of compatible vector.
1609 (tdesc_compatible_p): Update for change in type of
1610 target_desc::compatible.
1611 (tdesc_compatible_info_list): New function.
1612 (tdesc_compatible_info_arch_name): New function.
1613 (tdesc_add_compatible): Update for change in type of
1614 target_desc::compatible.
1615 (print_c_tdesc::visit_pre): Likewise.
1616
20821f4e
AB
16172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1618
1619 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1620 whitespace to underscore.
1621 (maint_print_c_tdesc_cmd): Use fake filename for target
1622 descriptions that came from the target.
1623 (_initialize_target_descriptions): Add filename command completion
1624 for 'maint print c-tdesc'.
1625
1fb5ee62
SM
16262020-06-23 Simon Marchi <simon.marchi@efficios.com>
1627
1628 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1629 lines.
1630
fc3ecb3e
SM
16312020-06-23 Simon Marchi <simon.marchi@efficios.com>
1632
1633 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1634 lines.
1635 (dwarf2_find_location_expression): Likewise.
1636 (call_site_parameter_matches): Likewise.
1637 (dwarf2_compile_expr_to_ax): Likewise.
1638 (disassemble_dwarf_expression): Likewise.
1639 (loclist_describe_location): Likewise.
1640
236ef034
PA
16412020-06-23 Pedro Alves <palves@redhat.com>
1642
1643 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1644 progspace-and-thread.h. Include scoped-mock-context.h instead.
1645 (register_to_value_test): Use scoped_mock_context.
1646 * regcache.c: Include "scoped-mock-context.h".
1647 (cooked_read_test): Don't error out if a target is already pushed.
1648 Use scoped_mock_context. Adjust.
1649 * scoped-mock-context.h: New file.
1650
39e7ecca
AB
16512020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1652
1653 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1654 initializer.
1655 (ada_language::is_string_type_p): New member function.
1656 * c-lang.c (c_language_data): Delete la_is_string_type_p
1657 initializer.
1658 (cplus_language_data): Likewise.
1659 (asm_language_data): Likewise.
1660 (minimal_language_data): Likewise.
1661 * d-lang.c (d_language_data): Likewise.
1662 * f-lang.c (f_is_string_type_p): Delete function, implementation
1663 moved to f_language::is_string_type_p.
1664 (f_language_data): Delete la_is_string_type_p initializer.
1665 (f_language::is_string_type_p): New member function,
1666 implementation from f_is_string_type_p.
1667 * go-lang.c (go_is_string_type_p): Delete function, implementation
1668 moved to go_language::is_string_type_p.
1669 (go_language_data): Delete la_is_string_type_p initializer.
1670 (go_language::is_string_type_p): New member function,
1671 implementation from go_is_string_type_p.
1672 * language.c (language_defn::is_string_type_p): Define new member
1673 function.
1674 (default_is_string_type_p): Make static, add comment copied from
1675 header file.
1676 (unknown_language_data): Delete la_is_string_type_p initializer.
1677 (unknown_language::is_string_type_p): New member function.
1678 (auto_language_data): Delete la_is_string_type_p initializer.
1679 (auto_language::is_string_type_p): New member function.
1680 * language.h (language_data): Delete la_is_string_type_p field.
1681 (language_defn::is_string_type_p): Declare new function.
1682 (default_is_string_type_p): Delete desclaration, move comment to
1683 definition.
1684 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1685 moved to m2_language::is_string_type_p.
1686 (m2_language_data): Delete la_is_string_type_p initializer.
1687 (m2_language::is_string_type_p): New member function,
1688 implementation from m2_is_string_type_p.
1689 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1690 initializer.
1691 * opencl-lang.c (opencl_language_data): Likewise.
1692 * p-lang.c (pascal_is_string_type_p): Delete function,
1693 implementation moved to pascal_language::is_string_type_p.
1694 (pascal_language_data): Delete la_is_string_type_p initializer.
1695 (pascal_language::is_string_type_p): New member function,
1696 implementation from pascal_is_string_type_p.
1697 * rust-lang.c (rust_is_string_type_p): Delete function,
1698 implementation moved to rust_language::is_string_type_p.
1699 (rust_language_data): Delete la_is_string_type_p initializer.
1700 (rust_language::is_string_type_p): New member function,
1701 implementation from rust_is_string_type_p.
1702 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1703 is_string_type_p.
1704
4ffc13fb
AB
17052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1706
1707 * ada-lang.c (ada_language_data): Delete la_print_typedef
1708 initializer.
1709 (ada_language::print_typedef): New member function.
1710 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1711 (cplus_language_data): Likewise.
1712 (asm_language_data): Likewise.
1713 (minimal_language_data): Likewise.
1714 * d-lang.c (d_language_data): Likewise.
1715 * f-lang.c (f_language_data): Likewise.
1716 (f_language::print_typedef): New member function.
1717 * go-lang.c (go_language_data): Delete la_print_typedef
1718 initializer.
1719 * language.c (language_defn::print_typedef): Define member
1720 function.
1721 (unknown_language_data): Delete la_print_typedef initializer.
1722 (unknown_language::print_typedef): New member function.
1723 (auto_language_data): Delete la_print_typedef initializer.
1724 (auto_language::print_typedef): New member function.
1725 * language.h (language_data): Delete la_print_typedef field.
1726 (language_defn::print_typedef): Declare new member function.
1727 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1728 (default_print_typedef): Delete declaration.
1729 * m2-lang.c (m2_language_data): Delete la_print_typedef
1730 initializer.
1731 (m2_language::print_typedef): New member function.
1732 * objc-lang.c (objc_language_data): Delete la_print_typedef
1733 initializer.
1734 * opencl-lang.c (opencl_language_data): Likewise.
1735 * p-lang.c (pascal_language_data): Likewise.
1736 (pascal_language::print_typedef): New member function.
1737 * rust-lang.c (rust_print_typedef): Delete function,
1738 implementation moved to rust_language::print_typedef.
1739 (rust_language): Delete la_print_typedef initializer.
1740 (rust_language::print_typedef): New member function,
1741 implementation from rust_print_typedef.
1742 * typeprint.c (default_print_typedef): Delete.
1743
d711ee67
AB
17442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1747 (ada_language::printstr): New member function.
1748 * c-lang.c (c_language_data): Delete la_printstr initializer.
1749 (cplus_language_data): Likewise.
1750 (asm_language_data): Likewise.
1751 (minimal_language_data): Likewise.
1752 * d-lang.c (d_language_data): Likewise.
1753 * f-lang.c (f_printstr): Rename to f_language::printstr.
1754 (f_language_data): Delete la_printstr initializer.
1755 (f_language::printstr): New member function, implementation from
1756 f_printstr.
1757 * go-lang.c (go_language_data): Delete la_printstr initializer.
1758 * language.c (language_defn::printstr): Define new member
1759 function.
1760 (unk_lang_printstr): Delete.
1761 (unknown_language_data): Delete la_printstr initializer.
1762 (unknown_language::printstr): New member function.
1763 (auto_language_data): Delete la_printstr initializer.
1764 (auto_language::printstr): New member function.
1765 * language.h (language_data): Delete la_printstr field.
1766 (language_defn::printstr): Declare new member function.
1767 (LA_PRINT_STRING): Update call to printstr.
1768 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1769 (m2_language_data): Delete la_printstr initializer.
1770 (m2_language::printstr): New member function, implementation from
1771 m2_printstr.
1772 * objc-lang.c (objc_language_data): Delete la_printstr
1773 initializer.
1774 * opencl-lang.c (opencl_language_data): Likewise.
1775 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1776 (pascal_language_data): Delete la_printstr initializer.
1777 (pascal_language::printstr): New member function, implementation
1778 from pascal_printstr.
1779 * p-lang.h (pascal_printstr): Delete declaration.
1780 * rust-lang.c (rust_printstr): Update header comment.
1781 (rust_language_data): Delete la_printstr initializer.
1782 (rust_language::printstr): New member function.
1783
52b50f2c
AB
17842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1787 (ada_language::printchar): New member function.
1788 * c-lang.c (c_language_data): Delete la_printchar initializer.
1789 (cplus_language_data): Likewise.
1790 (asm_language_data): Likewise.
1791 (minimal_language_data): Likewise.
1792 * d-lang.c (d_language_data): Likewise.
1793 * f-lang.c (f_printchar): Rename to f_language::printchar.
1794 (f_language_data): Delete la_printchar initializer.
1795 (f_language::printchar): New member function, implementation from
1796 f_printchar.
1797 * go-lang.c (go_language_data): Delete la_printchar initializer.
1798 * language.c (unk_lang_printchar): Delete.
1799 (language_defn::printchar): Define new member function.
1800 (unknown_language_data): Delete la_printchar initializer.
1801 (unknown_language::printchar): New member function.
1802 (auto_language_data): Delete la_printchar initializer.
1803 (auto_language::printchar): New member function.
1804 * language.h (language_data): Delete la_printchar field.
1805 (language_defn::printchar): Declare new member function.
1806 (LA_PRINT_CHAR): Update call to printchar.
1807 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1808 (m2_language::printchar): New member function.
1809 * objc-lang.c (objc_language_data): Delete la_printchar
1810 initializer.
1811 * opencl-lang.c (opencl_language_data): Likewise.
1812 * p-lang.c (pascal_language_data): Delete la_printchar
1813 initializer.
1814 (pascal_language::printchar): New member function.
1815 * rust-lang.c (rust_printchar): Rename to
1816 rust_language::printchar.
1817 (rust_language_data): Delete la_printchar initializer.
1818 (rust_language::printchar): New member function, implementation
1819 from rust_printchar.
1820
ec8cec5b
AB
18212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1822
1823 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1824 (ada_language_data): Delete la_emitchar initializer.
1825 (ada_language::emitchar): New member function, implementation from
1826 emit_char.
1827 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1828 (cplus_language_data): Likewise.
1829 (asm_language_data): Likewise.
1830 (minimal_language_data): Likewise.
1831 * d-lang.c (d_language_data): Likewise.
1832 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1833 (f_language_data): Delete la_emitchar initializer.
1834 (f_language::emitchar): New member function, implementation from
1835 f_emit_char.
1836 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1837 * language.c (unk_lang_emit_char): Delete.
1838 (language_defn::emitchar): New member function definition.
1839 (unknown_language_data): Delete la_emitchar initializer.
1840 (unknown_language::emitchar): New member function.
1841 (auto_language_data): Delete la_emitchar initializer.
1842 (auto_language::emitchar): New member function.
1843 * language.h (language_data): Delete la_emitchar field.
1844 (language_defn::emitchar): New member field declaration.
1845 (LA_EMIT_CHAR): Update call to emitchar.
1846 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1847 (m2_language_data): Delete la_emitchar initializer.
1848 (m2_language::emitchar): New member function, implementation from
1849 m2_emit_char.
1850 * objc-lang.c (objc_language_data): Delete la_emitchar
1851 initializer.
1852 * opencl-lang.c (opencl_language_data): Likewise.
1853 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1854 (pascal_language_data): Delete la_emitchar initializer.
1855 (pascal_language::emitchar): New member function, implementation
1856 from pascal_emit_char.
1857 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1858 (rust_language_data): Delete la_emitchar initializer.
1859 (rust_language::emitchar): New member function, implementation
1860 from rust_emitchar.
1861
1bf9c363
AB
18622020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1863
1864 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1865 (ada_language_data): Delete la_post_parser initializer.
1866 (ada_language::post_parser): New member function.
1867 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1868 (cplus_language_data): Likewise.
1869 (asm_language_data): Likewise.
1870 (minimal_language_data): Likewise.
1871 * d-lang.c (d_language_data): Likewise.
1872 * f-lang.c (f_language_data): Likewise.
1873 * go-lang.c (go_language_data): Likewise.
1874 * language.c (unknown_language_data): Likewise.
1875 (auto_language_data): Likewise.
1876 * language.h (language_data): Delete la_post_parser field.
1877 (language_defn::post_parser): New member function.
1878 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1879 * objc-lang.c (objc_language_data): Likewise.
1880 * opencl-lang.c (opencl_language_data): Likewise.
1881 * p-lang.c (pascal_language_data): Likewise.
1882 * parse.c (parse_exp_in_context): Update call to post_parser.
1883 (null_post_parser): Delete definition.
1884 * parser-defs.h (null_post_parser): Delete declaration.
1885 * rust-lang.c (rust_language_data): Delete la_post_parser
1886 initializer.
1887
87afa652
AB
18882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1889
1890 * ada-lang.c (parse): Rename to ada_language::parser.
1891 (ada_language_data): Delete la_parser initializer.
1892 (ada_language::parser): New member function, implementation from
1893 parse.
1894 * c-lang.c (c_language_data): Delete la_parser initializer.
1895 (cplus_language_data): Likewise.
1896 (asm_language_data): Likewise.
1897 (minimal_language_data): Likewise.
1898 * d-lang.c (d_language_data): Likewise.
1899 (d_language::parser): New member function.
1900 * f-lang.c (f_language_data): Delete la_parser initializer.
1901 (f_language::parser): New member function.
1902 * go-lang.c (go_language_data): Delete la_parser initializer.
1903 (go_language::parser): New member function.
1904 * language.c (unk_lang_parser): Delete.
1905 (language_defn::parser): Define new member function.
1906 (unknown_language_data): Delete la_parser initializer.
1907 (unknown_language::parser): New member function.
1908 (auto_language_data): Delete la_parser initializer.
1909 (auto_language::parser): New member function.
1910 * language.h (language_data): Delete la_parser field.
1911 (language_defn::parser): Declare new member function.
1912 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1913 (m2_language::parser): New member function.
1914 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1915 * opencl-lang.c (opencl_language_data): Likewise.
1916 * p-lang.c (pascal_language_data): Likewise.
1917 (pascal_language::parser): New member function.
1918 * parse.c (parse_exp_in_context): Update call to parser.
1919 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1920 (rust_language::parser): New member function.
1921
37825800
AB
19222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1923
1924 * top.c (print_gdb_configuration): Print --with-python-libdir
1925 configuration value.
1926
5b860c93
PW
19272020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1928
1929 * NEWS: Mention change to the alias command.
1930
cf00cd6f
PW
19312020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1932
1933 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1934 (alias_command_completer)
1935 (make_alias_options_def_group): New functions.
1936 (alias_opts, alias_option_defs): New struct and array.
1937 (alias_usage_error): Update usage.
1938 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1939 Use option framework.
1940 (_initialize_cli_cmds): Update alias command help.
1941 Update aliases command help.
1942 (show_user):
1943 Add NULL for new default_args lookup_cmd argument.
1944 (valid_command_p): Rename to validate_aliased_command.
1945 Add NULL for new default_args lookup_cmd argument. Verify that the
1946 aliased_command has no default args.
1947 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1948 (lookup_cmd_1, lookup_cmd): New argument default_args.
1949 (add_alias_cmd):
1950 Add NULL for new default_args lookup_cmd argument.
1951 (print_help_for_command): Show default args under the layout
1952 alias some_alias = some_aliased_cmd some_alias_default_arg.
1953 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
1954 xfree default_args in destructor.
1955 * cli/cli-script.c (process_next_line, do_define_command):
1956 Add NULL for new default_args lookup_cmd argument.
1957 * command.h: Declare new default_args argument in lookup_cmd
1958 and lookup_cmd_1.
1959 * completer.c (complete_line_internal_1):
1960 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1961 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1962 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
1963 Likewise.
1964 * infcmd.c (_initialize_infcmd): Likewise.
1965 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
1966 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1967 * python/py-param.c (add_setshow_generic): Likewise.
1968 * remote.c (_initialize_remote): Likewise.
1969 * top.c (execute_command): Prepend default_args if command has some.
1970 (set_verbose):
1971 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1972 * tracepoint.c (validate_actionline, encode_actions_1):
1973 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
1974
bd920864
TBA
19752020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1976
1977 * jit.c (jit_read_descriptor): Use bool as the return type.
1978 (jit_breakpoint_re_set_internal): Use bool as the return type.
1979 Invert the return value logic; return true if the jit breakpoint
1980 has been successfully initialized.
1981 (jit_inferior_init): Update the call to
1982 jit_breakpoint_re_set_internal.
1983
f8098322
PA
19842020-06-22 Pedro Alves <palves@redhat.com>
1985
1986 PR gdb/25939
1987 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
1988 Use the current inferior instead. Don't return
1989 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
1990 wait again.
1991 * sol-thread.c (sol_thread_target::wait): Don't reference
1992 inferior_ptid.
1993 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
1994 (sol_update_thread_list_callback): Use the current inferior's pid
1995 instead of inferior_ptid.
1996
196535a6
RO
19972020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1998
1999 * procfs.c: Cleanup many comments.
2000
2001 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2002 (AFTER_WATCHFLAG): Replace by value.
2003
2004 (MAIN_PROC_NAME_FORMAT): Inline ...
2005 (create_procinfo): ... here.
2006
2007 (procfs_debug_inferior): Remove SYS_exec handling.
2008 (syscall_is_exec): Likewise.
2009 (procfs_set_exec_trap): Likewise.
2010
2011 (syscall_is_lwp_exit): Inline in callers.
2012 (syscall_is_exit): Likewise.
2013 (syscall_is_exec): Likewise.
2014 (syscall_is_lwp_create): Likewise.
2015
2016 (invalidate_cache): Remove #if 0 code.
2017
2018 (make_signal_thread_runnable): Remove.
2019 (procfs_target::resume): Remove #if 0 code.
2020
cf6f3e86
RO
20212020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2022
2023 PR gdb/25939
2024 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2025 call ...
2026 (procfs_target::create_inferior): ... here.
2027
48e9cc84
PW
20282020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2029
2030 * exec.c (validate_exec_file): Ensure the build-id is up to
2031 date by calling reopen_exec_file (that checks file timestamp
2032 to decide to re-read the file).
2033
3922b302
PA
20342020-06-18 Pedro Alves <palves@redhat.com>
2035
2036 PR gdb/25412
2037 * gdbthread.h (delete_thread, delete_thread_silent)
2038 (find_thread_ptid): Update comments.
2039 * thread.c (current_thread_): New global.
2040 (is_current_thread): Move higher, and reimplement.
2041 (inferior_thread): Reimplement.
2042 (set_thread_exited): Use bool. Add assertions.
2043 (add_thread_silent): Simplify thread-reuse handling by always
2044 calling delete_thread.
2045 (delete_thread): Remove intro comment.
2046 (find_thread_ptid): Skip exited threads.
2047 (switch_to_thread_no_regs): Write to current_thread_.
2048 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2049 INFERIOR_PTID. Clear current_thread_.
2050
6dbdab44
PA
20512020-06-18 Pedro Alves <palves@redhat.com>
2052
2053 * aix-thread.c (pd_update): Use switch_to_thread.
2054
2da4b788
PA
20552020-06-18 Pedro Alves <palves@redhat.com>
2056
2057 * ravenscar-thread.c (ravenscar_thread_target): Update.
2058 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2059 (ravenscar_thread_target::add_active_thread): ... this. Don't
2060 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2061 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2062
50838d1b
PA
20632020-06-18 Pedro Alves <palves@redhat.com>
2064
2065 * nat/windows-nat.c (current_windows_thread): Remove.
2066 * nat/windows-nat.h (current_windows_thread): Remove.
2067 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2068 Adjust.
2069 (display_selectors): Adjust to fetch the current
2070 windows_thread_info based on inferior_ptid.
2071 (fake_create_process): No longer write to current_windows_thread.
2072 (windows_nat_target::get_windows_debug_event):
2073 Don't set inferior_ptid or current_windows_thread.
2074 (windows_nat_target::wait): Adjust to not rely on
2075 current_windows_thread.
2076 (do_initial_windows_stuff): Now a method of windows_nat_target.
2077 Switch to the last_ptid thread.
2078 (windows_nat_target::attach): Adjust.
2079 (windows_nat_target::detach): Use switch_to_no_thread instead of
2080 writing to inferior_ptid directly.
2081 (windows_nat_target::create_inferior): Adjust.
2082
31ce04e9
PA
20832020-06-18 Pedro Alves <palves@redhat.com>
2084
2085 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2086
1ee1a363
PA
20872020-06-18 Pedro Alves <palves@redhat.com>
2088
2089 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2090 after creating it, instead of writing to inferior_ptid. Don't
2091 write to inferior_ptid.
2092
6d350754
PA
20932020-06-18 Pedro Alves <palves@redhat.com>
2094
2095 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2096
5d971d48
PA
20972020-06-18 Pedro Alves <palves@redhat.com>
2098
2099 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2100 it, instead of writing to inferior_ptid.
2101
86e57d1b
PA
21022020-06-18 Pedro Alves <palves@redhat.com>
2103
2104 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2105 to inferior_ptid.
2106
f2e1c129
PA
21072020-06-18 Pedro Alves <palves@redhat.com>
2108
2109 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2110 instead of writing to inferior_ptid directly.
2111
60db1b85
PA
21122020-06-18 Pedro Alves <palves@redhat.com>
2113
2114 * corelow.c (core_target::close): Use switch_to_no_thread instead
2115 of writing to inferior_ptid directly.
2116 (add_to_thread_list, core_target_open): Use switch_to_thread
2117 instead of writing to inferior_ptid directly.
2118
fe7d6a8d
PA
21192020-06-18 Pedro Alves <palves@redhat.com>
2120
2121 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2122 inferior_ptid.
2123 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2124 inferior_ptid.
2125 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2126 inferior_ptid directly.
2127 (darwin_nat_target::init_thread_list): Switch to thread, instead
2128 of writing to inferior_ptid.
2129 (darwin_nat_target::attach): Don't write to inferior_ptid.
2130 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2131
975f8708
PA
21322020-06-18 Pedro Alves <palves@redhat.com>
2133
2134 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2135 thread.
2136 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2137 Instead use switch_to_thread.
2138 (gnu_nat_target::detach): Use switch_to_no_thread
2139 instead of writing to inferior_ptid directly. Used passed-in
2140 inferior instead of looking up the inferior by pid.
2141
1a204730
PA
21422020-06-18 Pedro Alves <palves@redhat.com>
2143
2144 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2145 inferior_ptid.
2146
ebe84f23
PA
21472020-06-18 Pedro Alves <palves@redhat.com>
2148
2149 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2150 inferior_ptid.
2151 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2152 thread.
2153 (nto_procfs_target::detach): Avoid referencing
2154 inferior_ptid. Use switch_to_no_thread instead of writing to
2155 inferior_ptid directly.
2156 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2157 instead of writing to inferior_ptid directly.
2158 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2159 to thread.
2160
191f02e5
PA
21612020-06-18 Pedro Alves <palves@redhat.com>
2162
2163 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2164 after creating it, instead of writing to inferior_ptid.
2165 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2166 to inferior_ptid directly.
2167 (gdbsim_target::wait): Don't write to inferior_ptid.
2168
0ac55310
PA
21692020-06-18 Pedro Alves <palves@redhat.com>
2170
2171 * remote.c (remote_target::remote_notice_new_inferior): Use
2172 switch_to_thread instead of writing to inferior_ptid directly.
2173 (remote_target::add_current_inferior_and_thread): Use
2174 switch_to_no_thread instead of writing to inferior_ptid directly.
2175 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2176 and switch_to_thread instead of using set_current_inferior or
2177 writing to inferior_ptid directly.
2178
5233f39b
PA
21792020-06-18 Pedro Alves <palves@redhat.com>
2180
2181 * tracectf.c (ctf_target_open): Switch to added thread instead of
2182 writing to inferior_ptid directly.
2183 (ctf_target::close): Use switch_to_no_thread instead of writing to
2184 inferior_ptid directly.
2185
087e161b
PA
21862020-06-18 Pedro Alves <palves@redhat.com>
2187
2188 * tracefile-tfile.c (tfile_target_open): Don't write to
2189 inferior_ptid directly, instead switch to added thread.
2190 (tfile_target::close): Use switch_to_no_thread instead of writing
2191 to inferior_ptid directly.
2192
7fb43e53
PA
21932020-06-18 Pedro Alves <palves@redhat.com>
2194
2195 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2196 (procfs_target::detach): Use switch_to_no_thread
2197 instead of writing to inferior_ptid directly.
2198 (do_attach): Change return type to void. Switch to the added
2199 thread.
2200 (procfs_target::create_inferior): Switch to the added thread.
2201 (procfs_do_thread_registers): Don't write to inferior_ptid.
2202
18493a00
PA
22032020-06-18 Pedro Alves <palves@redhat.com>
2204
2205 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2206 of writing to inferior_ptid.
2207 (scoped_restore_exited_inferior): Delete.
2208 (handle_vfork_child_exec_or_exit): Simplify using
2209 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2210 instead of writing to inferior_ptid.
2211 (THREAD_STOPPED_BY): Delete.
2212 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2213 (thread_stopped_by_hw_breakpoint): Delete.
2214 (save_waitstatus): Use
2215 scoped_restore_current_thread+switch_to_thread, and call
2216 target_stopped_by_watchpoint instead of
2217 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2218 instead of thread_stopped_by_sw_breakpoint, and
2219 target_stopped_by_hw_breakpoint instead of
2220 thread_stopped_by_hw_breakpoint.
2221 (handle_inferior_event)
2222 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2223 inferior_ptid directly, nor
2224 set_current_inferior/set_current_program_space. Use
2225 switch_to_thread / switch_to_inferior_no_thread instead.
2226
a0776b13
PA
22272020-06-18 Pedro Alves <palves@redhat.com>
2228
2229 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2230 instead of writing to inferior_ptid.
2231
6155c136
PA
22322020-06-18 Pedro Alves <palves@redhat.com>
2233
2234 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2235 added thread.
2236 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2237 to the added thread.
2238 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2239 instead of writing to inferior_ptid.
2240
c5316fc6
PA
22412020-06-18 Pedro Alves <palves@redhat.com>
2242
2243 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2244 (register_to_value_test): Mock a program_space too. Heap-allocate
2245 the address space. Don't write to inferior_ptid. Use
2246 switch_to_thread instead.
2247
8df01799
PA
22482020-06-18 Pedro Alves <palves@redhat.com>
2249
2250 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2251 Delete.
2252 (find_signalled_thread()): New, factored out from
2253 linux_make_corefile_notes and adjusted to handle exited threads.
2254 (linux_make_corefile_notes): Adjust to use the new
2255 find_signalled_thread.
2256
41792d68
PA
22572020-06-18 Pedro Alves <palves@redhat.com>
2258
2259 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2260 of saving/restoring inferior_ptid.
2261
612f258a
TT
22622020-06-17 Tom Tromey <tom@tromey.com>
2263
2264 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2265 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2266 declare.
2267 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2268
efb763a5
SM
22692020-06-15 Simon Marchi <simon.marchi@efficios.com>
2270
2271 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2272 of partial symtabs.
2273
2951f6c0
SM
22742020-06-17 Simon Marchi <simon.marchi@efficios.com>
2275
2276 * regformats/reg-arm.dat: Remove.
2277 * regformats/reg-bfin.dat: Remove.
2278 * regformats/reg-cris.dat: Remove.
2279 * regformats/reg-crisv32.dat: Remove.
2280 * regformats/reg-m32r.dat: Remove.
2281 * regformats/reg-tilegx.dat: Remove.
2282 * regformats/reg-tilegx32.dat: Remove.
2283
7d458ea5
SM
22842020-06-17 Simon Marchi <simon.marchi@efficios.com>
2285
2286 * features/Makefile (WHICH): Remove arm files.
2287 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2288 * regformats/arm/arm-with-neon.dat: Remove.
2289 * regformats/arm/arm-with-vfpv2.dat: Remove.
2290 * regformats/arm/arm-with-vfpv3.dat: Remove.
2291
3af96c0d
SM
22922020-06-17 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * features/Makefile (XMLTOC): Remove rx.xml.
2295
b25e22fd
PA
22962020-06-17 Pedro Alves <palves@redhat.com>
2297
2298 * gdbthread.h (thread_control_state) <trap_expected> Update
2299 comments.
2300
a78a19b1
AB
23012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2302
2303 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2304 ada_language::lookup_symbol_nonlocal.
2305 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2306 (ada_language::lookup_symbol_nonlocal): New member function,
2307 implementation from ada_lookup_symbol_nonlocal.
2308 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2309 initializer.
2310 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2311 initializer.
2312 (cplus_language::lookup_symbol_nonlocal): New member function.
2313 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2314 (minimal_language_data) Likewise.
2315 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2316 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2317 initializer.
2318 (d_language::lookup_symbol_nonlocal): New member function.
2319 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2320 initializer.
2321 (f_language::lookup_symbol_nonlocal): New member function.
2322 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2323 initializer.
2324 * language.c (unknown_language_data): Likewise.
2325 (auto_language_data): Likewise.
2326 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2327 field.
2328 (language_defn::lookup_symbol_nonlocal): New member function.
2329 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2330 initializer.
2331 * objc-lang.c (objc_language_data): Likewise.
2332 * opencl-lang.c (opencl_language_data): Likewise.
2333 * p-lang.c (pascal_language_data): Likewise.
2334 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2335 rust_language::lookup_symbol_nonlocal.
2336 (rust_language_data): Delete la_lookup_symbol_nonlocal
2337 initializer.
2338 (rust_language::lookup_symbol_nonlocal): New member function,
2339 implementation from rust_lookup_symbol_nonlocal.
2340 * symtab.c (lookup_symbol_aux): Update call to
2341 lookup_symbol_nonlocal.
2342 (basic_lookup_symbol_nonlocal): Rename to...
2343 (language_defn::lookup_symbol_nonlocal): ...this, and update
2344 header comment. Remove language_defn parameter, and replace with
2345 uses of `this'.
2346 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2347
ebe2334e
AB
23482020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2351 initializer.
2352 (ada_language::value_print_inner): New member function.
2353 * c-lang.c (c_language_data): Delete la_value_print_inner
2354 initializer.
2355 (cplus_language_data): Likewise.
2356 (asm_language_data): Likewise.
2357 (minimal_language_data): Likewise.
2358 * d-lang.c (d_language_data): Likewise.
2359 (d_language::value_print_inner): New member function.
2360 * f-lang.c (f_language_data): Delete la_value_print_inner
2361 initializer.
2362 (f_language::value_print_inner): New member function.
2363 * f-lang.h (f_value_print_innner): Rename to...
2364 (f_value_print_inner): ...this (note spelling of 'inner').
2365 * f-valprint.c (f_value_print_innner): Rename to...
2366 (f_value_print_inner): ...this (note spelling of 'inner').
2367 * go-lang.c (go_language_data): Delete la_value_print_inner
2368 initializer.
2369 (go_language::value_print_inner): New member function.
2370 * language.c (language_defn::value_print_inner): Define new member
2371 function.
2372 (unk_lang_value_print_inner): Delete.
2373 (unknown_language_data): Delete la_value_print_inner initializer.
2374 (unknown_language::value_print_inner): New member function.
2375 (auto_language_data): Delete la_value_print_inner initializer.
2376 (auto_language::value_print_inner): New member function.
2377 * language.h (language_data): Delete la_value_print_inner field.
2378 (language_defn::value_print_inner): Delcare new member function.
2379 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2380 initializer.
2381 (m2_language::value_print_inner): New member function.
2382 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2383 initializer.
2384 * opencl-lang.c (opencl_language_data): Likewise.
2385 * p-lang.c (pascal_language_data): Likewise.
2386 (pascal_language::value_print_inner): New member function.
2387 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2388 initializer.
2389 (rust_language::value_print_inner): New member function.
2390 * valprint.c (do_val_print): Update call to value_print_inner.
2391
a1d1fa3e
AB
23922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * ada-lang.c (ada_language_data): Delete la_value_print
2395 initializer.
2396 (ada_language::value_print): New member function.
2397 * c-lang.c (c_language_data): Delete la_value_print initializer.
2398 (cplus_language_data): Likewise.
2399 (asm_language_data): Likewise.
2400 (minimal_language_data): Likewise.
2401 * d-lang.c (d_language_data): Likewise.
2402 * f-lang.c (f_language_data): Likewise.
2403 * go-lang.c (go_language_data): Likewise.
2404 * language.c (unk_lang_value_print): Delete.
2405 (language_defn::value_print): Define new member function.
2406 (unknown_language_data): Delete la_value_print initializer.
2407 (unknown_language::value_print): New member function.
2408 (auto_language_data): Delete la_value_print initializer.
2409 (auto_language::value_print): New member function.
2410 * language.h (language_data): Delete la_value_print field.
2411 (language_defn::value_print): Declare new member function.
2412 (LA_VALUE_PRINT): Update call to value_print.
2413 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2414 * objc-lang.c (objc_language_data): Likewise.
2415 * opencl-lang.c (opencl_language_data): Likewise.
2416 * p-lang.c (pascal_language_data): Likewise.
2417 (pascal_language::value_print): New member function.
2418 * rust-lang.c (rust_language_data): Delete la_value_print
2419 initializer.
2420
f16a9f57
AB
24212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2422
2423 * ada-lang.c (ada_watch_location_expression): Rename to
2424 ada_language::watch_location_expression.
2425 (ada_language_data): Delete la_watch_location_expression
2426 initializer.
2427 (ada_language::watch_location_expression): New member function,
2428 implementation from ada_watch_location_expression.
2429 * breakpoint.c (watch_command_1): Update call to
2430 watch_location_expression.
2431 * c-lang.c (c_watch_location_expression): Rename to
2432 language_defn::watch_location_expression.
2433 (c_language_data): Delete la_watch_location_expression
2434 initializer.
2435 (cplus_language_data): Likewise.
2436 (asm_language_data): Likewise.
2437 (minimal_language_data): Likewise.
2438 * c-lang.h (c_watch_location_expression): Delete declaration.
2439 * d-lang.c (d_language_data): Delete la_watch_location_expression
2440 initializer.
2441 * f-lang.c (f_language_data): Likewise.
2442 * go-lang.c (go_language_data): Likewise.
2443 * language.c (language_defn::watch_location_expression): Member
2444 function implementation from c_watch_location_expression.
2445 (unknown_language_data): Delete la_watch_location_expression
2446 initializer.
2447 (auto_language_data): Likewise.
2448 * language.h (language_data): Delete la_watch_location_expression
2449 field.
2450 (language_defn::watch_location_expression): Declare new member
2451 function.
2452 * m2-lang.c (m2_language_data): Delete
2453 la_watch_location_expression initializer.
2454 * objc-lang.c (objc_language_data): Likewise.
2455 * opencl-lang.c (opencl_language_data): Likewise.
2456 * p-lang.c (pascal_language_data): Likewise.
2457 * rust-lang.c (rust_watch_location_expression): Rename to
2458 rust_language::watch_location_expression.
2459 (rust_language_data): Delete la_watch_location_expression
2460 initializer.
2461 (rust_language::watch_location_expression): New member function,
2462 implementation from rust_watch_location_expression.
2463
7e56227d
AB
24642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2467 ada_language::collect_symbol_completion_matches.
2468 (ada_language_data): Delete la_collect_symbol_completion_matches
2469 initializer.
2470 (ada_language::collect_symbol_completion_matches): New member
2471 function, implementation from
2472 ada_collect_symbol_completion_matches.
2473 * c-lang.c (c_language_data): Delete
2474 la_collect_symbol_completion_matches initializer.
2475 (cplus_language_data): Likewise.
2476 (asm_language_data): Likewise.
2477 (minimal_language_data): Likewise.
2478 * d-lang.c (d_language_data): Likewise.
2479 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2480 f_language::collect_symbol_completion_matches.
2481 (f_language_data): Delete la_collect_symbol_completion_matches
2482 initializer.
2483 (f_language::collect_symbol_completion_matches) New member
2484 function, implementation from f_collect_symbol_completion_matches.
2485 * go-lang.c (go_language_data): Delete
2486 la_collect_symbol_completion_matches initializer.
2487 * language.c (unknown_language_data): Likewise.
2488 (auto_language_data): Likewise.
2489 * language.h (language_data): Delete
2490 la_collect_symbol_completion_matches field.
2491 (language_defn::collect_symbol_completion_matches): New member
2492 function.
2493 * m2-lang.c (m2_language_data): Delete
2494 la_collect_symbol_completion_matches initializer.
2495 * objc-lang.c (objc_language_data): Likewise.
2496 * opencl-lang.c (opencl_language_data): Likewise.
2497 * p-lang.c (pascal_language_data): Likewise.
2498 * rust-lang.c (rust_language_data): Likewise.
2499 * symtab.c (default_collect_symbol_completion_matches): Delete.
2500 (collect_symbol_completion_matches): Update call to
2501 collect_symbol_completion_matches.
2502 (collect_symbol_completion_matches_type): Likewise.
2503 * symtab.h (default_collect_symbol_completion_matches): Delete
2504 declaration.
2505
53fc67f8
AB
25062020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2507
2508 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2509 (ada_language_data): Delete la_word_break_characters initializer.
2510 (ada_language::word_break_characters): New member function.
2511 * c-lang.c (c_language_data): Delete la_word_break_characters
2512 initializer.
2513 (cplus_language_data): Likewise.
2514 (asm_language_data): Likewise.
2515 (minimal_language_data): Likewise.
2516 * completer.c: Update global comment.
2517 (advance_to_expression_complete_word_point): Update call to
2518 word_break_characters.
2519 (complete_files_symbols): Likewise.
2520 (complete_line_internal_1): Likewise.
2521 (default_completer_handle_brkchars): Likewise.
2522 (skip_quoted_chars): Likewise.
2523 * d-lang.c (d_language_data): Delete la_word_break_characters
2524 initializer.
2525 * f-lang.c (f_word_break_characters): Delete.
2526 (f_language_data): Delete la_word_break_characters initializer.
2527 (f_language::word_break_characters): New member function.
2528 * go-lang.c (go_language_data): Delete la_word_break_characters
2529 initializer.
2530 * language.c (unknown_language_data): Likewise.
2531 (auto_language_data): Likewise.
2532 * language.h (default_word_break_characters): Move declaration to
2533 earlier in the file.
2534 (language_data): Delete la_word_break_characters field.
2535 (language_defn::word_break_characters): New member function.
2536 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2537 initializer.
2538 * objc-lang.c (objc_language_data): Likewise.
2539 * opencl-lang.c (opencl_language_data): Likewise.
2540 * p-lang.c (pascal_language_data): Likewise.
2541 * rust-lang.c (rust_language_data): Likewise.
2542
c9debfb9
AB
25432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2546 (ada_language_data): Delete la_get_symbol_name_matcher
2547 initializer.
2548 (language_defn::get_symbol_name_matcher_inner): New member
2549 function.
2550 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2551 initializer.
2552 (cplus_language_data): Likewise.
2553 (cplus_language::get_symbol_name_matcher_inner): New member
2554 function.
2555 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2556 (minimal_language_data): Likewise.
2557 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2558 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2559 initializer.
2560 * dictionary.c (iter_match_first_hashed): Update call to
2561 get_symbol_name_matcher.
2562 (iter_match_next_hashed): Likewise.
2563 (iter_match_next_linear): Likewise.
2564 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2565 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2566 initializer.
2567 (f_language::get_symbol_name_matcher_inner): New member function.
2568 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2569 initializer.
2570 * language.c (default_symbol_name_matcher): Update header comment,
2571 make static.
2572 (language_defn::get_symbol_name_matcher): New definition.
2573 (language_defn::get_symbol_name_matcher_inner): Likewise.
2574 (get_symbol_name_matcher): Delete.
2575 (unknown_language_data): Delete la_get_symbol_name_matcher
2576 initializer.
2577 (auto_language_data): Likewise.
2578 * language.h (language_data): Delete la_get_symbol_name_matcher
2579 field.
2580 (language_defn::get_symbol_name_matcher): New member function.
2581 (language_defn::get_symbol_name_matcher_inner): Likewise.
2582 (default_symbol_name_matcher): Delete declaration.
2583 * linespec.c (find_methods): Update call to
2584 get_symbol_name_matcher.
2585 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2586 initializer.
2587 * minsyms.c (lookup_minimal_symbol): Update call to
2588 get_symbol_name_matcher.
2589 (iterate_over_minimal_symbols): Likewise.
2590 * objc-lang.c (objc_language_data): Delete
2591 la_get_symbol_name_matcher initializer.
2592 * opencl-lang.c (opencl_language_data): Likewise.
2593 * p-lang.c (pascal_language_data): Likewise.
2594 * psymtab.c (psymbol_name_matches): Update call to
2595 get_symbol_name_matcher.
2596 * rust-lang.c (rust_language_data): Delete
2597 la_get_symbol_name_matcher initializer.
2598 * symtab.c (symbol_matches_search_name): Update call to
2599 get_symbol_name_matcher.
2600 (compare_symbol_name): Likewise.
2601
9a49ad8c
AB
26022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2603
2604 * ada-lang.c (ada_language_data): Delete la_compute_program
2605 initializer.
2606 * c-lang.c (c_language_data): Likewise.
2607 (c_language::compute_program): New member function.
2608 (cplus_language_data): Delete la_compute_program initializer.
2609 (cplus_language::compute_program): New member function.
2610 (asm_language_data): Delete la_compute_program initializer.
2611 (minimal_language_data): Likewise.
2612 * c-lang.h (c_compute_program): Update comment.
2613 (cplus_compute_program): Likewise.
2614 * compile/compile-c-support.c (c_compute_program): Likewise.
2615 (cplus_compute_program): Likewise.
2616 * compile/compile.c (compile_to_object): Update call to
2617 la_compute_program.
2618 * d-lang.c (d_language_data): Delete la_compute_program
2619 initializer.
2620 * f-lang.c (f_language_data): Likewise.
2621 * go-lang.c (go_language_data): Likewise.
2622 * language.c (unknown_language_data): Likewise.
2623 (auto_language_data): Likewise.
2624 * language.h (language_data): Delete la_compute_program field.
2625 (language_defn::compute_program): New member function.
2626 * m2-lang.c (m2_language_data): Delete la_compute_program
2627 initializer.
2628 * objc-lang.c (objc_language_data): Likewise.
2629 * opencl-lang.c (opencl_language_data): Likewise.
2630 * p-lang.c (pascal_language_data): Likewise.
2631 * rust-lang.c (rust_language_data): Likewise.
2632
eff93b4d
AB
26332020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2634
2635 * ada-lang.c (ada_language_data) Delete
2636 la_class_name_from_physname initializer.
2637 * c-lang.c (c_language_data): Likewise.
2638 (cplus_language_data): Likewise.
2639 (cplus_language::class_name_from_physname): New member function.
2640 (asm_language_data): Delete la_class_name_from_physname
2641 initializer.
2642 (minimal_language_data): Likewise.
2643 * d-lang.c (d_language_data): Likewise.
2644 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2645 method on language_defn class.
2646 (guess_full_die_structure_name): Likewise.
2647 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2648 initializer.
2649 * go-lang.c (go_language_data): Likewise.
2650 * language.c (language_class_name_from_physname): Delete.
2651 (unk_lang_class_name): Delete.
2652 (unknown_language_data): Delete la_class_name_from_physname
2653 initializer.
2654 (auto_language_data): Likewise.
2655 * language.h (language_data): Delete la_class_name_from_physname
2656 field.
2657 (language_defn::class_name_from_physname): New function.
2658 (language_class_name_from_physname): Delete declaration.
2659 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2660 initializer.
2661 * objc-lang.c (objc_language_data): Likewise.
2662 * opencl-lang.c (opencl_language_data): Likewise.
2663 * p-lang.c (pascal_language_data): Likewise.
2664 * rust-lang.c (rust_language_data): Likewise.
2665
de543742
TT
26662020-06-16 Tom Tromey <tom@tromey.com>
2667
2668 * tui/tui-data.h (STATUS_NAME): New macro.
2669 * tui/tui-layout.c (tui_remove_some_windows)
2670 (initialize_known_windows, tui_register_window)
2671 (tui_layout_split::remove_windows, initialize_layouts)
2672 (tui_new_layout_command): Don't use hard-coded window names.
2673
a350efd4
TT
26742020-06-16 Tom Tromey <tom@tromey.com>
2675
2676 PR tui/25348:
2677 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2678 tui_initialize_readline. Only run once. Call rl_initialize.
2679 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2680 tui_initialize_readline.
2681 * tui/tui-io.c (tui_setup_io): Call
2682 tui_ensure_readline_initialized.
2683 * tui/tui-interp.c (tui_interp::init): Update.
2684
39ec0490
TT
26852020-06-16 Tom Tromey <tom@tromey.com>
2686
2687 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2688 Also preserve the status window.
2689
d2d1ea20
TT
26902020-06-16 Tom Tromey <tom@tromey.com>
2691
2692 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2693 where m_window==nullptr.
2694
66920317
TT
26952020-06-15 Tom Tromey <tromey@adacore.com>
2696
2697 * windows-nat.c (windows_nat::handle_output_debug_string):
2698 Update.
2699 (windows_nat::handle_ms_vc_exception): Update.
2700 * target.h (target_read_string): Change API.
2701 * target.c (target_read_string): Change API.
2702 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2703 Update.
2704 * solib-frv.c (frv_current_sos): Update.
2705 * solib-dsbt.c (dsbt_current_sos): Update.
2706 * solib-darwin.c (darwin_current_sos): Update.
2707 * linux-thread-db.c (inferior_has_bug): Update.
2708 * expprint.c (print_subexp_standard): Update.
2709 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2710 (ada_exception_message_1): Update.
2711
a5d871dd
TT
27122020-06-15 Tom Tromey <tromey@adacore.com>
2713
2714 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2715
670e35fa
TT
27162020-06-15 Tom Tromey <tromey@adacore.com>
2717
2718 * valprint.c (read_string): Update comment.
2719 * target.c (MIN): Remove.
2720 (target_read_string): Rewrite.
2721
f5272a3b
TT
27222020-06-15 Tom Tromey <tromey@adacore.com>
2723
2724 * corefile.c (read_memory_string): Remove.
2725 * ada-valprint.c (ada_value_print_ptr): Update.
2726 * ada-lang.h (ada_tag_name): Change return type.
2727 * ada-lang.c (type_from_tag): Update.
2728 (ada_tag_name_from_tsd): Change return type. Use
2729 target_read_string.
2730 (ada_tag_name): Likewise.
2731 * gdbcore.h (read_memory_string): Don't declare.
2732
2c074f49
HD
27332020-06-14 Hannes Domani <ssbssa@yahoo.de>
2734
2735 * symtab.c (rbreak_command): Ignore Windows drive colon.
2736
6a17d503
SM
27372020-06-12 Simon Marchi <simon.marchi@efficios.com>
2738
2739 * NEWS: Mention removed GDBserver host support.
2740
453c733f
NC
27412020-06-12 Nelson Chu <nelson.chu@sifive.com>
2742
2743 * features/riscv/rebuild-csr-xml.sh: Updated.
2744
2b4e6a3f
TT
27452020-06-11 Tom Tromey <tom@tromey.com>
2746
2747 PR gdb/18318:
2748 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2749
4412332f
JG
27502020-06-09 Jonny Grant <jg@jguk.org>
27512020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2752
2753 * main.c (captured_main_1): Don't print new line after help.
2754 (print_gdb_help): add mailing list and IRC channel information
2755 to --help. Add new lines between items in the footer. Remove
2756 quotes around bug url.
2757
2f33032a
KS
27582020-06-11 Keith Seitz <keiths@redhat.com>
2759
2760 PR gdb/21356
2761 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2762 Resolve typedefs for type length calculations.
2763
7ab96794
TV
27642020-06-10 Tom de Vries <tdevries@suse.de>
2765
2766 PR ada/24713
2767 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2768 (write_psymbols): Enable .gdb_index for ada.
2769 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2770 ada.
2771
e5f3ece2
TV
27722020-06-10 Tom de Vries <tdevries@suse.de>
2773
2774 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2775 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2776 namei" instead of "const char *name" argument.
2777 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2778 dw2_symtab_iter_init.
2779
940da03e
SM
27802020-06-08 Simon Marchi <simon.marchi@efficios.com>
2781
2782 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2783 to use type::field and field::type instead.
2784
b6cdac4b
SM
27852020-06-08 Simon Marchi <simon.marchi@efficios.com>
2786
2787 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2788 to use field::type instead.
2789
5d14b6e5
SM
27902020-06-08 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * gdbtypes.h (struct field) <type, set_type>: New methods.
2793 Rename `type` field to...
2794 <m_type>: ... this. Change references throughout to use type or
2795 set_type methods.
2796 (FIELD_TYPE): Use field::type. Change call sites that modify
2797 the field's type to use field::set_type instead.
2798
3d967001
SM
27992020-06-08 Simon Marchi <simon.marchi@efficios.com>
2800
2801 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2802 to use type::index_type instead.
2803
262abc0d
SM
28042020-06-08 Simon Marchi <simon.marchi@efficios.com>
2805
2806 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2807 methods.
2808 (TYPE_INDEX_TYPE): Use type::index_type.
2809 * gdbtypes.c (create_array_type_with_stride): Likewise.
2810
82836c92
TT
28112020-06-07 Tom Tromey <tom@tromey.com>
2812
2813 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2814 parameter.
2815 (generic_value_print): Update.
2816
940dace9
AB
28172020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2818
2819 Revert commit 982a38f60b0.
2820 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2821
982a38f6
AB
28222020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2823
2824 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2825 avoid use after free.
2826
82f06518
TV
28272020-06-05 Tom de Vries <tdevries@suse.de>
2828
2829 * NEWS: Fix typos.
2830
f8c41851
SM
28312020-06-04 Simon Marchi <simon.marchi@efficios.com>
2832
2833 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2834 the per_bfd object.
2835 (dwarf2_read_debug_names): Likewise.
2836 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2837 object when re-using a per_bfd object with an index.
2838
f9b5d5ea
TV
28392020-06-03 Tom de Vries <tdevries@suse.de>
2840
2841 PR symtab/26046
2842 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2843 children for C++.
2844 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2845 DW_TAG_subprogram.
2846
f6eee2d0
AB
28472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2848
2849 * ada-lang.c (ada_language_data): Delete skip_trampoline
2850 initializer.
2851 * c-lang.c (c_language_data): Likewise.
2852 (cplus_language_data): Likewise.
2853 (cplus_language::skip_trampoline): New member function.
2854 (asm_language_data): Delete skip_trampoline initializer.
2855 (minimal_language_data): Likewise.
2856 * d-lang.c (d_language_data): Likewise.
2857 * f-lang.c (f_language_data): Likewise.
2858 * go-lang.c (go_language_data): Likewise.
2859 * language.c (unk_lang_trampoline): Delete function.
2860 (skip_language_trampoline): Update.
2861 (unknown_language_data): Delete skip_trampoline initializer.
2862 (auto_language_data): Likewise.
2863 * language.h (language_data): Delete skip_trampoline field.
2864 (language_defn::skip_trampoline): New function.
2865 * m2-lang.c (m2_language_data): Delete skip_trampoline
2866 initializer.
2867 * objc-lang.c (objc_skip_trampoline): Delete function, move
2868 implementation to objc_language::skip_trampoline.
2869 (objc_language_data): Delete skip_trampoline initializer.
2870 (objc_language::skip_trampoline): New member function with
2871 implementation from objc_skip_trampoline.
2872 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2873 initializer.
2874 * p-lang.c (pascal_language_data): Likewise.
2875 * rust-lang.c (rust_language_data): Likewise.
2876
0a50df5d
AB
28772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2880 (ada_language::demangle): New member function.
2881 * c-lang.c (c_language_data): Delete la_demangle initializer.
2882 (cplus_language_data): Delete la_demangle initializer.
2883 (cplus_language::demangle): New member function.
2884 (asm_language_data): Delete la_demangle initializer.
2885 (minimal_language_data): Delete la_demangle initializer.
2886 * d-lang.c (d_language_data): Delete la_demangle initializer.
2887 (d_language::demangle): New member function.
2888 * f-lang.c (f_language_data): Delete la_demangle initializer.
2889 (f_language::demangle): New member function.
2890 * go-lang.c (go_language_data): Delete la_demangle initializer.
2891 (go_language::demangle): New member function.
2892 * language.c (language_demangle): Update.
2893 (unk_lang_demangle): Delete.
2894 (unknown_language_data): Delete la_demangle initializer.
2895 (unknown_language::demangle): New member function.
2896 (auto_language_data): Delete la_demangle initializer.
2897 (auto_language::demangle): New member function.
2898 * language.h (language_data): Delete la_demangle field.
2899 (language_defn::demangle): New function.
2900 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2901 * objc-lang.c (objc_language_data): Delete la_demangle
2902 initializer.
2903 (objc_language::demangle): New member function.
2904 * opencl-lang.c (opencl_language_data): Delete la_demangle
2905 initializer.
2906 * p-lang.c (pascal_language_data): Likewise.
2907 * rust-lang.c (rust_language_data): Likewise.
2908 (rust_language::demangle): New member function.
2909
fbfb0a46
AB
29102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2911
2912 * ada-lang.c (ada_language_data): Delete la_print_type
2913 initializer.
2914 (ada_language::print_type): New member function.
2915 * c-lang.c (c_language_data): Delete la_print_type initializer.
2916 (c_language::print_type): New member function.
2917 (cplus_language_data): Delete la_print_type initializer.
2918 (cplus_language::print_type): New member function.
2919 (asm_language_data): Delete la_print_type initializer.
2920 (asm_language::print_type): New member function.
2921 (minimal_language_data): Delete la_print_type initializer.
2922 (minimal_language::print_type): New member function.
2923 * d-lang.c (d_language_data): Delete la_print_type initializer.
2924 (d_language::print_type): New member function.
2925 * f-lang.c (f_language_data): Delete la_print_type initializer.
2926 (f_language::print_type): New member function.
2927 * go-lang.c (go_language_data): Delete la_print_type initializer.
2928 (go_language::print_type): New member function.
2929 * language.c (unk_lang_print_type): Delete.
2930 (unknown_language_data): Delete la_print_type initializer.
2931 (unknown_language::print_type): New member function.
2932 (auto_language_data): Delete la_print_type initializer.
2933 (auto_language::print_type): New member function.
2934 * language.h (language_data): Delete la_print_type field.
2935 (language_defn::print_type): New function.
2936 (LA_PRINT_TYPE): Update.
2937 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2938 (m2_language::print_type): New member function.
2939 * objc-lang.c (objc_language_data): Delete la_print_type
2940 initializer.
2941 (objc_language::print_type): New member function.
2942 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2943 to opencl_language::print_type.
2944 (opencl_language_data): Delete la_print_type initializer.
2945 (opencl_language::print_type): New member function, implementation
2946 from opencl_print_type.
2947 * p-lang.c (pascal_language_data): Delete la_print_type
2948 initializer.
2949 (pascal_language::print_type): New member function.
2950 * rust-lang.c (rust_print_type): Delete, implementation moved to
2951 rust_language::print_type.
2952 (rust_language_data): Delete la_print_type initializer.
2953 (rust_language::print_type): New member function, implementation
2954 from rust_print_type.
2955
6f827019
AB
29562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2957
2958 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
2959 implementation moves to...
2960 (ada_language::sniff_from_mangled_name): ...here. Update return
2961 type.
2962 (ada_language_data): Delete la_sniff_from_mangled_name
2963 initializer.
2964 * c-lang.c (c_language_data): Likewise.
2965 (cplus_language_data): Likewise.
2966 (cplus_language::sniff_from_mangled_name): New member function,
2967 implementation taken from gdb_sniff_from_mangled_name.
2968 (asm_language_data): Delete la_sniff_from_mangled_name
2969 initializer.
2970 (minimal_language_data): Likewise.
2971 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
2972 implementation moves to cplus_language::sniff_from_mangled_name.
2973 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
2974 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
2975 moves to...
2976 (d_language::sniff_from_mangled_name): ...here.
2977 (d_language_data): Delete la_sniff_from_mangled_name initializer.
2978 * f-lang.c (f_language_data): Likewise.
2979 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
2980 moves to...
2981 (go_language::sniff_from_mangled_name): ...here.
2982 (go_language_data): Delete la_sniff_from_mangled_name initializer.
2983 * language.c (language_sniff_from_mangled_name): Delete.
2984 (unknown_language_data): Delete la_sniff_from_mangled_name
2985 initializer.
2986 (auto_language_data): Likewise.
2987 * language.h (language_data): Delete la_sniff_from_mangled_name
2988 field.
2989 (language_defn::sniff_from_mangled_name): New function.
2990 (language_sniff_from_mangled_name): Delete declaration.
2991 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
2992 field.
2993 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
2994 implementation moves to...
2995 (objc_language::sniff_from_mangled_name): ...here.
2996 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
2997 * opencl-lang.c (opencl_language_data): Likewise.
2998 * p-lang.c (pascal_language_data): Likewise.
2999 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3000 implementation moves to...
3001 (rust_language::sniff_from_mangled_name): ...here.
3002 (rust_language_data): Delete la_sniff_from_mangled_name
3003 initializer.
3004 * symtab.c (symbol_find_demangled_name): Call
3005 sniff_from_mangled_name member function.
3006
fb8006fd
AB
30072020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3008
3009 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3010 initializer.
3011 * c-lang.c (c_language_data): Likewise.
3012 (cplus_language_data): Likewise.
3013 (cplus_language::search_name_hash): New member function.
3014 (asm_language_data): Delete la_search_name_hash initializer.
3015 (minimal_language_data): Likewise.
3016 * d-lang.c (d_language_data): Likewise.
3017 * dictionary.c (default_search_name_hash): Rename to...
3018 (language_defn::search_name_hash): ...this.
3019 * f-lang.c (f_language_data): Likewise.
3020 (f_language::search_name_hash): New member function.
3021 * go-lang.c (go_language_data): Delete la_search_name_hash
3022 initializer.
3023 * language.c (unknown_language_data): Likewise.
3024 (auto_language_data): Likewise.
3025 * language.h (struct language_data): Delete la_search_name_hash
3026 field.
3027 (language_defn::search_name_hash): Declare new member function.
3028 (default_search_name_hash): Delete declaration.
3029 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3030 initializer.
3031 * objc-lang.c (objc_language_data): Likewise.
3032 * opencl-lang.c (opencl_language_data): Likewise.
3033 * p-lang.c (pascal_language_data): Likewise.
3034 * rust-lang.c (rust_language_data): Likewise.
3035 * symtab.c (search_name_hash): Update call.
3036
8e25bafe
AB
30372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3038
3039 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3040 initializer.
3041 * c-lang.c (class compile_instance): Declare.
3042 (c_language_data): Delete la_get_compile_instance initializer.
3043 (c_language::get_compile_instance): New member function.
3044 (cplus_language_data): Delete la_get_compile_instance initializer.
3045 (cplus_language::get_compile_instance): New member function.
3046 (asm_language_data): Delete la_get_compile_instance initializer.
3047 (minimal_language_data): Likewise.
3048 * c-lang.h (c_get_compile_context): Update comment.
3049 (cplus_get_compile_context): Update comment.
3050 * compile/compile.c (compile_to_object): Update calls, don't rely
3051 on function pointer being NULL.
3052 * d-lang.c (d_language_data): Delete la_get_compile_instance
3053 initializer.
3054 * f-lang.c (f_language_data): Likewise.
3055 * go-lang.c (go_language_data): Likewise.
3056 * language.c (unknown_language_data): Likewise.
3057 (auto_language_data): Likewise.
3058 * language.h (language_data): Delete la_get_compile_instance field.
3059 (language_defn::get_compile_instance): New member function.
3060 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3061 initializer.
3062 * objc-lang.c (objc_language_data): Likewise.
3063 * opencl-lang.c (opencl_language_data): Likewise.
3064 * p-lang.c (pascal_language_data): Likewise.
3065 * rust-lang.c (rust_language_data): Likewise.
3066
4009ee92
AB
30672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3068
3069 * ada-lang.c (ada_add_all_symbols): Update comment.
3070 (ada_iterate_over_symbols): Delete, move implementation to...
3071 (ada_language::iterate_over_symbols): ...here, a new member
3072 function, rewrite to use range based for loop.
3073 (ada_language_data): Delete la_iterate_over_symbols initializer.
3074 * c-lang.c (c_language_data): Likewise.
3075 (cplus_language_data): Likewise.
3076 (asm_language_data): Likewise.
3077 (minimal_language_data): Likewise.
3078 * d-lang.c (d_language_data): Likewise.
3079 * f-lang.c (f_language_data): Likewise.
3080 * go-lang.c (go_language_data): Likewise.
3081 * language.c (unknown_language_data): Likewise.
3082 (auto_language_data): Likewise.
3083 * language.h (language_data): Delete la_iterate_over_symbols field.
3084 (language_defn::iterate_over_symbols): New member function.
3085 (LA_ITERATE_OVER_SYMBOLS): Update.
3086 * linespec.c (iterate_over_all_matching_symtabs): Update.
3087 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3088 initializer.
3089 * objc-lang.c (objc_language_data): Likewise.
3090 * opencl-lang.c (opencl_language_data): Likewise.
3091 * p-lang.c (pascal_language_data): Likewise.
3092 * rust-lang.c (rust_language_data): Likewise.
3093
54f4ca46
AB
30942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3095
3096 * ada-lang.c (ada_language_data): Delete
3097 la_lookup_transparent_type initializer.
3098 * c-lang.c (c_language_data): Likewise.
3099 (cplus_language_data): Likewise.
3100 (cplus_language::lookup_transparent_type): New member function.
3101 (asm_language_data): Delete la_lookup_transparent_type
3102 initializer.
3103 (minimal_language_data): Likewise.
3104 * d-lang.c (d_language_data): Likewise.
3105 * f-lang.c (f_language_data): Likewise.
3106 * go-lang.c (go_language_data): Likewise.
3107 * language.c (unknown_language_data): Likewise.
3108 (auto_language_data): Likewise.
3109 * language.h (struct language_data): Delete
3110 la_lookup_transparent_type field.
3111 (language_defn::lookup_transparent_type): New member function.
3112 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3113 initializer.
3114 * objc-lang.c (objc_language_data): Likewise.
3115 * opencl-lang.c (opencl_language_data): Likewise.
3116 * p-lang.c (pascal_language_data): Likewise.
3117 * rust-lang.c (rust_language_data): Likewise.
3118 * symtab.c (symbol_matches_domain): Update call.
3119
1fb314aa
AB
31202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3121
3122 * ada-lang.c (ada_language_arch_info): Delete function, move
3123 implementation to...
3124 (ada_language::language_arch_info): ...here, a new member
3125 function.
3126 (ada_language_data): Delete la_language_arch_info.
3127 * c-lang.c (c_language_data): Likewise.
3128 (c_language::language_arch_info): New member function.
3129 (cplus_language_arch_info): Delete function, move
3130 implementation to...
3131 (cplus_language::language_arch_info): ...here, a new member
3132 function.
3133 (cplus_language_data): Delete la_language_arch_info.
3134 (asm_language_data): Likewise.
3135 (asm_language::language_arch_info): New member function.
3136 (minimal_language_data): Delete la_language_arch_info.
3137 (minimal_language::language_arch_info): New member function.
3138 * d-lang.c (d_language_arch_info): Delete function, move
3139 implementation to...
3140 (d_language::language_arch_info): ...here, a new member
3141 function.
3142 (d_language_data): Delete la_language_arch_info.
3143 * f-lang.c (f_language_arch_info): Delete function, move
3144 implementation to...
3145 (f_language::language_arch_info): ...here, a new member
3146 function.
3147 (f_language_data): Delete la_language_arch_info.
3148 * go-lang.c (go_language_arch_info): Delete function, move
3149 implementation to...
3150 (go_language::language_arch_info): ...here, a new member
3151 function.
3152 (go_language_data): Delete la_language_arch_info.
3153 * language.c (unknown_language_data): Likewise.
3154 (unknown_language::language_arch_info): New member function.
3155 (auto_language_data): Delete la_language_arch_info.
3156 (auto_language::language_arch_info): New member function.
3157 (language_gdbarch_post_init): Update call to
3158 la_language_arch_info.
3159 * language.h (language_data): Delete la_language_arch_info
3160 function pointer.
3161 (language_defn::language_arch_info): New function.
3162 * m2-lang.c (m2_language_arch_info): Delete function, move
3163 implementation to...
3164 (m2_language::language_arch_info): ...here, a new member
3165 function.
3166 (m2_language_data): Delete la_language_arch_info.
3167 * objc-lang.c (objc_language_arch_info): Delete function, move
3168 implementation to...
3169 (objc_language::language_arch_info): ...here, a new member
3170 function.
3171 (objc_language_data): Delete la_language_arch_info.
3172 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3173 implementation to...
3174 (opencl_language::language_arch_info): ...here, a new member
3175 function.
3176 (opencl_language_data): Delete la_language_arch_info.
3177 * p-lang.c (pascal_language_arch_info): Delete function, move
3178 implementation to...
3179 (pascal_language::language_arch_info): ...here, a new member
3180 function.
3181 (pascal_language_data): Delete la_language_arch_info.
3182 * rust-lang.c (rust_language_arch_info): Delete function, move
3183 implementation to...
3184 (rust_language::language_arch_info): ...here, a new member
3185 function.
3186 (rust_language_data): Delete la_language_arch_info.
3187
48448202
AB
31882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3189
3190 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3191 initializer.
3192 * c-lang.c (c_language_data): Likewise.
3193 (cplus_language_data): Likewise.
3194 (cplus_language::pass_by_reference_info): New method.
3195 (asm_language_data): Delete la_pass_by_reference initializer.
3196 (minimal_language_data): Likewise.
3197 * cp-abi.c (cp_pass_by_reference): Remove use of
3198 default_pass_by_reference.
3199 * d-lang.c (d_language_data): Likewise.
3200 * f-lang.c (f_language_data): Likewise.
3201 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3202 default_pass_by_reference.
3203 * go-lang.c (go_language_data): Likewise.
3204 * language.c (language_pass_by_reference): Update.
3205 (default_pass_by_reference): Delete.
3206 (unknown_language_data): Delete la_pass_by_reference
3207 initializer.
3208 (auto_language_data): Likewise.
3209 * language.h (struct language_data): Delete la_pass_by_reference
3210 field.
3211 (language_defn::pass_by_reference_info): New member function.
3212 (default_pass_by_reference): Delete declaration.
3213 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3214 initializer.
3215 * objc-lang.c (objc_language_data): Likewise.
3216 * opencl-lang.c (opencl_language_data): Likewise.
3217 * p-lang.c (pascal_language_data): Likewise.
3218 * rust-lang.c (rust_language_data): Likewise.
3219
15e5fd35
AB
32202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3221
3222 * ada-lang.c (ada_read_var_value): Delete function, move
3223 implementation to...
3224 (ada_language::read_var_value): ...here.
3225 (ada_language_data): Delete la_read_var_value initializer.
3226 * c-lang.c (c_language_data): Likewise.
3227 (cplus_language_data): Likewise.
3228 (minimal_language_data): Likewise.
3229 * d-lang.c (d_language_data): Likewise.
3230 * f-lang.c (f_language_data): Likewise.
3231 * findvar.c (default_read_var_value): Rename to...
3232 (language_defn::read_var_value): ...this.
3233 * findvar.c (read_var_value): Update header comment, and change to
3234 call member function instead of function pointer.
3235 * go-lang.c (go_language_data): Likewise.
3236 * language.c (unknown_language_data): Delete la_read_var_value
3237 initializer.
3238 (auto_language_data): Likewise.
3239 * language.h (struct language_data): Delete la_read_var_value
3240 field.
3241 (language_defn::read_var_value): New member function.
3242 (default_read_var_value): Delete declaration.
3243 * m2-lang.c (m2_language_data): Delete la_read_var_value
3244 initializer.
3245 * objc-lang.c (objc_language_data): Likewise.
3246 * opencl-lang.c (opencl_language_data): Likewise.
3247 * p-lang.c (pascal_language_data): Likewise.
3248 * rust-lang.c (rust_language_data): Likewise.
3249 * value.h (default_read_var_value): Delete declaration.
3250
5bd40f2a
AB
32512020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3252
3253 * ada-lang.c (ada_print_array_index): Delete function, move
3254 implementation to...
3255 (ada_language::print_array_index): ...here.
3256 (ada_language_data): Delete la_print_array_index initializer.
3257 * c-lang.c (c_language_data): Likewise.
3258 (cplus_language_data): Likewise.
3259 (minimal_language_data): Likewise.
3260 * d-lang.c (d_language_data): Likewise.
3261 * f-lang.c (f_language_data): Likewise.
3262 * go-lang.c (go_language_data): Likewise.
3263 * language.c (default_print_array_index): Delete function, move
3264 implementation to...
3265 (language_defn::print_array_index): ...here.
3266 (unknown_language_data): Delete la_print_array_index initializer.
3267 (auto_language_data): Likewise.
3268 * language.h (struct language_data): Delete la_print_array_index
3269 field.
3270 (language_defn::print_array_index): New member function.
3271 (LA_PRINT_ARRAY_INDEX): Update.
3272 (default_print_array_index): Delete declaration.
3273 * m2-lang.c (m2_language_data): Delete la_print_array_index
3274 initializer.
3275 * objc-lang.c (objc_language_data): Likewise.
3276 * opencl-lang.c (opencl_language_data): Likewise.
3277 * p-lang.c (pascal_language_data): Likewise.
3278 * rust-lang.c (rust_language_data): Likewise.
3279
0874fd07
AB
32802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * gdb/ada-lang.c (ada_language_defn): Convert to...
3283 (ada_language_data): ...this.
3284 (class ada_language): New class.
3285 (ada_language_defn): New static global.
3286 * gdb/c-lang.c (c_language_defn): Convert to...
3287 (c_language_data): ...this.
3288 (class c_language): New class.
3289 (c_language_defn): New static global.
3290 (cplus_language_defn): Convert to...
3291 (cplus_language_data): ...this.
3292 (class cplus_language): New class.
3293 (cplus_language_defn): New static global.
3294 (asm_language_defn): Convert to...
3295 (asm_language_data): ...this.
3296 (class asm_language): New class.
3297 (asm_language_defn): New static global.
3298 (minimal_language_defn): Convert to...
3299 (minimal_language_data): ...this.
3300 (class minimal_language): New class.
3301 (minimal_language_defn): New static global.
3302 * gdb/d-lang.c (d_language_defn): Convert to...
3303 (d_language_data): ...this.
3304 (class d_language): New class.
3305 (d_language_defn): New static global.
3306 * gdb/f-lang.c (f_language_defn): Convert to...
3307 (f_language_data): ...this.
3308 (class f_language): New class.
3309 (f_language_defn): New static global.
3310 * gdb/go-lang.c (go_language_defn): Convert to...
3311 (go_language_data): ...this.
3312 (class go_language): New class.
3313 (go_language_defn): New static global.
3314 * gdb/language.c (unknown_language_defn): Remove declaration.
3315 (current_language): Initialize to nullptr, real initialization is
3316 moved to _initialize_language.
3317 (languages): Delete global.
3318 (language_defn::languages): Define.
3319 (set_language_command): Use language_defn::languages.
3320 (set_language): Likewise.
3321 (range_error): Likewise.
3322 (language_enum): Likewise.
3323 (language_def): Likewise.
3324 (add_set_language_command): Use language_def::languages for the
3325 language list, and language_def to lookup language pointers.
3326 (skip_language_trampoline): Use language_defn::languages.
3327 (unknown_language_defn): Convert to...
3328 (unknown_language_data): ...this.
3329 (class unknown_language): New class.
3330 (unknown_language_defn): New static global.
3331 (auto_language_defn): Convert to...
3332 (auto_language_data): ...this.
3333 (class auto_language): New class.
3334 (auto_language_defn): New static global.
3335 (language_gdbarch_post_init): Use language_defn::languages.
3336 (_initialize_language): Initialize current_language.
3337 * gdb/language.h (struct language_defn): Rename to...
3338 (struct language_data): ...this.
3339 (struct language_defn): New.
3340 (auto_language_defn): Delete.
3341 (unknown_language_defn): Delete.
3342 (minimal_language_defn): Delete.
3343 (ada_language_defn): Delete.
3344 (asm_language_defn): Delete.
3345 (c_language_defn): Delete.
3346 (cplus_language_defn): Delete.
3347 (d_language_defn): Delete.
3348 (f_language_defn): Delete.
3349 (go_language_defn): Delete.
3350 (m2_language_defn): Delete.
3351 (objc_language_defn): Delete.
3352 (opencl_language_defn): Delete.
3353 (pascal_language_defn): Delete.
3354 (rust_language_defn): Delete.
3355 * gdb/m2-lang.c (m2_language_defn): Convert to...
3356 (m2_language_data): ...this.
3357 (class m2_language): New class.
3358 (m2_language_defn): New static global.
3359 * gdb/objc-lang.c (objc_language_defn): Convert to...
3360 (objc_language_data): ...this.
3361 (class objc_language): New class.
3362 (objc_language_defn): New static global.
3363 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3364 (opencl_language_data): ...this.
3365 (class opencl_language): New class.
3366 (opencl_language_defn): New static global.
3367 * gdb/p-lang.c (pascal_language_defn): Convert to...
3368 (pascal_language_data): ...this.
3369 (class pascal_language): New class.
3370 (pascal_language_defn): New static global.
3371 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3372 language pointer, update comment format.
3373 * gdb/rust-lang.c (rust_language_defn): Convert to...
3374 (rust_language_data): ...this.
3375 (class rust_language): New class.
3376 (rust_language_defn): New static global.
3377
1313c56e
AB
33782020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3379
3380 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3381 member variable.
3382 <m_stmt_at_address>: New member variable.
3383 (lnp_state_machine::record_line): Don't record some lines, update
3384 tracking of is_stmt at the same address.
3385 (lnp_state_machine::lnp_state_machine): Initialise new member
3386 variables.
3387
b7ed9f3d
ST
33882020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3389
3390 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3391 "-include gnu-nat-mig.h".
3392 * gnu-nat-mig.h: New file.
3393 * gnu-nat.c: Include "gnu-nat-mig.h".
3394 (exc_server, msg_reply_server, notify_server,
3395 process_reply_server): Remove declarations.
3396
14a8ad62
ST
33972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3398
3399 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3400 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3401 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3402 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3403 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3404 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3405 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3406 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3407 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3408 to gnu_nat_target class.
3409 * gnu-nat.c: Likewise.
3410 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3411 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3412 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3413 object.
3414 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3415 instead of `gnu_target'.
3416
0af5e106
ST
34172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3418
3419 * i386-gnu-tdep.c: Include "gdbcore.h"
3420 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3421 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3422 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3423 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3424 i386_gnu_sigcontext_addr): New functions
3425 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3426 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3427 tdep.
3428
078f2fc9
ST
34292020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3430
3431 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3432 before fork_inferior call. Avoid calling it if target_is_pushed returns
3433 true.
3434
53dff92c
ST
34352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3436
3437 * gnu-nat.h (gnu_target): New variable declaration.
3438 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3439 gnu_target.
3440 * gnu-nat.c (gnu_target): New variable.
3441 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3442 add_thread_silent, and add_thread calls.
3443 (gnu_nat_target::create_inferior): Pass gnu_target to
3444 add_thread_silent, thread_change_ptid call.
3445 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3446 call.
3447
5a8b8627
ST
34482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3449
3450 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3451 (gnu_nat_target::find_memory_regions): Remove unused
3452 `old_address' variable.
3453
366f550a
ST
34542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3455
3456 * gnu-nat.c: Include "gdbarch.h".
3457
f14871bf
ST
34582020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3459
3460 * reply_mig_hack.awk (Error return): Cast function through
3461 void *, to bypass compiler function call check.
3462
c6887cfb
ST
34632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3464
3465 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3466 $(srcdir)/reply_mig_hack.awk.
3467
6930bffe
ST
34682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3469
3470 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3471
112c22ed
JG
34722020-05-30 Jonny Grant <jg@jguk.org>
3473
3474 * configure.ac (ACX_BUGURL): change bug URL to https.
3475
f68f85b5
PA
34762020-05-30 Pedro Alves <palves@redhat.com>
3477
3478 * cp-support.c (replace_typedefs_template): New.
3479 (replace_typedefs_qualified_name): Handle
3480 DEMANGLE_COMPONENT_TEMPLATE.
3481
976ca316
SM
34822020-05-29 Simon Marchi <simon.marchi@efficios.com>
3483
3484 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3485 dwarf2/index-cache.h, dwarf2/index-write.c,
3486 dwarf2/index-write.h, dwarf2/line-header.c,
3487 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3488 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3489 variables and fields from `dwarf2_per_objfile` to just
3490 `per_objfile` throughout.
3491
989ade05
SM
34922020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3493
3494 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3495 <push_dwarf_reg_entry_value>: Add comment.
3496
c47bae85
KB
34972020-05-28 Kevin Buettner <kevinb@redhat.com>
3498 Keith Seitz <keiths@redhat.com>
3499
3500 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3501 instead of PyEval_ReleaseLock.
3502 (class gdbpy_gil): Move to earlier in file.
3503 (finalize_python): Set gdb_python_initialized.
3504 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3505 when not initialized.
3506
44486dcf
SM
35072020-05-28 Simon Marchi <simon.marchi@efficios.com>
3508
3509 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3510 <push_dwarf_reg_entry_value>: Remove assert. Override
3511 per_objfile with caller_per_objfile.
3512
f030440d
TV
35132020-05-28 Tom de Vries <tdevries@suse.de>
3514
3515 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3516 PR gold/15646 workaround to symbol kind "type".
3517
f0fbb768
TT
35182020-05-27 Tom Tromey <tromey@adacore.com>
3519
3520 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3521
af0b2a3e
TT
35222020-05-27 Tom Tromey <tromey@adacore.com>
3523
3524 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3525 Use htab_find_with_hash.
3526 <add_abbrev>: Remove "abbrev_number" parameter.
3527 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3528 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3529 (hash_abbrev): Add comment.
3530 (abbrev_table::lookup_abbrev): Move to header file.
3531 (abbrev_table::read): Update.
3532
7d00ffec
TT
35332020-05-27 Tom Tromey <tromey@adacore.com>
3534
3535 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3536 method.
3537 <canonical_name>: New member.
3538 <raw_name>: Rename from "name".
3539 (partial_die_info): Initialize canonical_name.
3540 (scan_partial_symbols): Check raw_name.
3541 (partial_die_parent_scope, partial_die_full_name)
3542 (add_partial_symbol, add_partial_subprogram)
3543 (add_partial_enumeration, load_partial_dies): Use "name" method.
3544 (partial_die_info::name): New method.
3545 (partial_die_info::read, guess_partial_die_structure_name)
3546 (partial_die_info::fixup): Update.
3547
697bba18
TT
35482020-05-27 Tom Tromey <tromey@adacore.com>
3549
3550 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3551 <get_ref_die_offset>: Inline.
3552 <get_ref_die_offset_complaint>: New method.
3553 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3554 (attribute::get_ref_die_offset_complaint): Rename from
3555 get_ref_die_offset. Just issue complaint.
3556
c17ace43
HD
35572020-05-27 Hannes Domani <ssbssa@yahoo.de>
3558
3559 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3560
96445f0b
HD
35612020-05-27 Hannes Domani <ssbssa@yahoo.de>
3562
3563 * exec.c (exec_file_attach): Use errno value of first openp failure.
3564
ac637ec3
HD
35652020-05-27 Hannes Domani <ssbssa@yahoo.de>
3566
3567 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3568 Don't close thread handle.
3569
17ee85fc
TT
35702020-05-27 Tom Tromey <tom@tromey.com>
3571 Simon Marchi <simon.marchi@efficios.com>
3572
3573 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3574 shared_ptr.
3575 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3576 member.
3577 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3578 dwarf2_per_bfd_objfile_data_key>: New globals.
3579 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3580 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3581 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3582 shared.
3583 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3584 short-circuit when sharing.
3585 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3586 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3587
39b16f87
SM
35882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3589
3590 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3591 to...
3592 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3593 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3594
fcf23d5b
SM
35952020-05-27 Simon Marchi <simon.marchi@efficios.com>
3596
3597 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3598 build_name_components, find_name_components_bounds>:
3599 Add per_objfile parameter.
3600 (struct mapped_index) <symbol_name_at>: Likewise.
3601 (struct mapped_debug_names): Remove constructor.
3602 <dwarf2_per_objfile>: Remove field.
3603 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3604 (mapped_index_base::find_name_components_bounds,
3605 mapped_index_base::build_name_components,
3606 dw2_expand_symtabs_matching_symbol): Likewise.
3607 (class mock_mapped_index) <symbol_name_at>: Likewise.
3608 (check_match): Likewise.
3609 (check_find_bounds_finds): Likewise.
3610 (test_mapped_index_find_name_component_bounds): Update.
3611 (CHECK_MATCH): Update.
3612 (dw2_expand_symtabs_matching): Update.
3613 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3614 per_objfile parameter.
3615 <find_vec_in_debug_names>: Likewise.
3616 <m_per_objfile>: New field.
3617 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3618 parameter.
3619 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3620 (dw2_debug_names_iterator::next): Update.
3621 (dw2_debug_names_lookup_symbol): Update.
3622 (dw2_debug_names_expand_symtabs_for_function): Update.
3623 (dw2_debug_names_map_matching_symbols): Update.
3624 (dw2_debug_names_expand_symtabs_matching): Update.
3625 (dwarf2_read_debug_names): Update.
3626
7188ed02
SM
36272020-05-27 Simon Marchi <simon.marchi@efficios.com>
3628
3629 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3630 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3631 move to dwarf2_per_objfile.
3632 <read_in_chain>: Remove.
3633 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3634 remove_all_cus, age_comp_units>: New methods.
3635 <m_dwarf2_cus>: New member.
3636 (struct dwarf2_per_cu_data) <cu>: Remove.
3637 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3638 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3639 moved to methods of dwarf2_per_objfile.
3640 (dwarf2_clear_marks): Remove.
3641 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3642 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3643 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3644 (dwarf2_per_objfile::remove_all_cus): New.
3645 (class free_cached_comp_units) <~free_cached_comp_units>:
3646 Update.
3647 (load_cu): Update.
3648 (dw2_do_instantiate_symtab): Adjust.
3649 (fill_in_sig_entry_from_dwo_entry): Adjust.
3650 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3651 (cutu_reader::cutu_reader): Likewise.
3652 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3653 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3654 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3655 and dwarf2_per_objfile::age_comp_units.
3656 (load_partial_comp_unit): Update.
3657 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3658 (process_queue): Likewise.
3659 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3660 backlink.
3661 (dwarf2_read_addr_index): Likewise.
3662 (follow_die_offset): Likewise.
3663 (dwarf2_fetch_die_loc_sect_off): Likewise.
3664 (dwarf2_fetch_constant_bytes): Likewise.
3665 (dwarf2_fetch_die_type_sect_off): Likewise.
3666 (follow_die_sig_1): Likewise.
3667 (load_full_type_unit): Likewise.
3668 (read_signatured_type): Likewise.
3669 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3670 (dwarf2_cu::~dwarf2_cu): Remove.
3671 (dwarf2_per_objfile::get_cu): New.
3672 (dwarf2_per_objfile::set_cu): New.
3673 (age_cached_comp_units): Rename to...
3674 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3675 to std::unordered_map.
3676 (free_one_cached_comp_unit): Rename to...
3677 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3678 to std::unordered_map.
3679 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3680 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3681 a dwarf2_per_objfile in data.
3682 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3683 (dwarf2_clear_marks): Remove.
3684
2e671100
SM
36852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3686
3687 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3688 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3689 (init_tu_and_read_dwo_dies): Likewise.
3690 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3691 (cutu_reader::cutu_reader): Likewise.
3692 (load_partial_comp_unit): Likewise.
3693 (process_psymtab_comp_unit): Update.
3694 (build_type_psymtabs_1): Update.
3695 (process_skeletonless_type_unit): Update.
3696 (load_full_comp_unit): Update.
3697 (find_partial_die): Update.
3698 (dwarf2_read_addr_index): Update.
3699 (read_signatured_type): Update.
3700
2e6a9f79
SM
37012020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3702
3703 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3704 m_header_read_in>: New fields.
3705 <get_header>: New method.
3706 * dwarf2/read.c (per_cu_header_read_in): Remove.
3707 (dwarf2_per_cu_data::get_header): New.
3708 (dwarf2_per_cu_data::addr_size): Update.
3709 (dwarf2_per_cu_data::offset_size): Update.
3710 (dwarf2_per_cu_data::ref_addr_size): Update.
3711
1b555f17
SM
37122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3713
3714 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3715 (dw2_do_instantiate_symtab): Update.
3716 (queue_and_load_all_dwo_tus): Change parameter from
3717 dwarf2_per_cu_data to dwarf2_cu.
3718 (dwarf2_fetch_die_loc_sect_off): Update.
3719 (dwarf2_fetch_constant_bytes): Update.
3720 (dwarf2_fetch_die_type_sect_off): Update.
3721
8fc0b21d
SM
37222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3723
3724 * dwarf2/read.c (process_full_comp_unit,
3725 process_full_type_unit): Remove per_cu, per_objfile paramters.
3726 Add dwarf2_cu parameter.
3727 (process_queue): Update.
3728
168c9250
SM
37292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3730
3731 * dwarf2/read.c (create_cu_from_index_list): Replace
3732 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3733 (create_cus_from_index_list): Likewise.
3734 (create_cus_from_index): Likewise.
3735 (create_signatured_type_table_from_index): Likewise.
3736 (create_cus_from_debug_names_list): Likewise.
3737 (create_cus_from_debug_names): Likewise.
3738 (dwarf2_read_gdb_index): Update.
3739 (dwarf2_read_debug_names): Update.
3740
e286671b
TT
37412020-05-27 Tom Tromey <tom@tromey.com>
3742 Simon Marchi <simon.marchi@efficios.com>
3743
3744 * dwarf2/read.h (struct dwarf2_per_objfile)
3745 <get_type_for_signatured_type, set_type_for_signatured_type>:
3746 New methods.
3747 <m_type_map>: New member.
3748 (struct signatured_type) <type>: Remove.
3749 * dwarf2/read.c
3750 (dwarf2_per_objfile::get_type_for_signatured_type,
3751 dwarf2_per_objfile::set_type_for_signatured_type): New.
3752 (get_signatured_type): Use new methods.
3753
8adb8487
TT
37542020-05-27 Tom Tromey <tom@tromey.com>
3755 Simon Marchi <simon.marchi@efficios.com>
3756
3757 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3758 (struct dwarf2_per_objfile) <type_units>: New member.
3759 <get_type_unit_group_unshareable>: New method.
3760 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3761 num_symtabs, symtabs>: Remove; move to
3762 type_unit_group_unshareable.
3763 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3764 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3765 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3766
127bbf4b
SM
37672020-05-27 Simon Marchi <simon.marchi@efficios.com>
3768
3769 * dwarf2/read.h (struct dwarf2_per_cu_data):
3770 <dwarf2_per_objfile>: Remove.
3771 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3772 dwarf2_per_objfile.
3773 (create_signatured_type_table_from_index): Likewise.
3774 (create_signatured_type_table_from_debug_names): Likewise.
3775 (create_debug_type_hash_table): Likewise.
3776 (fill_in_sig_entry_from_dwo_entry): Likewise.
3777 (create_type_unit_group): Likewise.
3778 (read_comp_units_from_section): Likewise.
3779 (create_cus_hash_table): Likewise.
3780
f6e649dd
SM
37812020-05-27 Simon Marchi <simon.marchi@efficios.com>
3782
3783 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3784 dwarf2_per_cu_data::dwarf2_per_objfile.
3785 (compute_compunit_symtab_includes): Likewise.
3786 (dwarf2_cu::start_symtab): Likewise.
3787
aa66c379
SM
37882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3789
3790 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3791 parameter.
3792 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3793 (read_namespace_alias): Update.
3794 (lookup_die_type): Update.
3795 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3796 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3797 Update.
3798 (disassemble_dwarf_expression): Update.
3799
120ce1b5
SM
38002020-05-27 Simon Marchi <simon.marchi@efficios.com>
3801
3802 * dwarf2/read.h (struct dwarf2_queue_item): Add
3803 dwarf2_per_objfile parameter, assign new parameter.
3804 <per_objfile>: New field.
3805 * dwarf2/read.c (free_one_cached_comp_unit): Add
3806 dwarf2_per_objfile parameter.
3807 (queue_comp_unit): Likewise.
3808 (dw2_do_instantiate_symtab): Update.
3809 (process_psymtab_comp_unit): Update.
3810 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3811 (process_imported_unit_die): Update.
3812 (queue_and_load_dwo_tu): Update.
3813 (follow_die_offset): Update.
3814 (follow_die_sig_1): Update.
3815
9f47c707
SM
38162020-05-27 Simon Marchi <simon.marchi@efficios.com>
3817
3818 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3819 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3820 (read_call_site_scope): Assign per_objfile.
3821 (dwarf2_per_cu_data::objfile): Remove.
3822 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3823 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3824 dwarf2_per_objfile parameter.
3825 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3826 dwarf2_per_objfile parameter.
3827 (dwarf_expr_reg_to_entry_parameter): Add output
3828 dwarf2_per_objfile parameter.
3829 (locexpr_get_frame_base): Update.
3830 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3831 <push_dwarf_reg_entry_value>: Update.
3832 <call_site_to_target_addr>: Update.
3833 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3834 parameter.
3835 (value_of_dwarf_reg_entry): Update.
3836 (rw_pieced_value): Update.
3837 (indirect_synthetic_pointer): Update.
3838 (dwarf2_evaluate_property): Update.
3839 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3840 parameter.
3841 (locexpr_read_variable): Update.
3842 (locexpr_get_symbol_read_needs): Update.
3843 (loclist_read_variable): Update.
3844
14095eb3
SM
38452020-05-27 Simon Marchi <simon.marchi@efficios.com>
3846
3847 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3848 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3849 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3850 parameter.
3851 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3852 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3853 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3854 parameter.
3855 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3856 sect_variable_value): Add dwarf2_per_objfile parameter.
3857 (class dwarf_evaluate_loc_desc) <dwarf_call,
3858 dwarf_variable_value>: Update.
3859 (fetch_const_value_from_synthetic_pointer): Add
3860 dwarf2_per_objfile parameter.
3861 (fetch_const_value_from_synthetic_pointer): Update.
3862 (coerced_pieced_ref): Update.
3863 (class symbol_needs_eval_context) <dwarf_call,
3864 dwarf_variable_value>: Update.
3865 (dwarf2_compile_expr_to_ax): Update.
3866
3c3cd3d4
SM
38672020-05-27 Simon Marchi <simon.marchi@efficios.com>
3868
3869 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3870 parameter.
3871 (dwarf2_evaluate_loc_desc_full): Update.
3872
82ca3f51
SM
38732020-05-27 Simon Marchi <simon.marchi@efficios.com>
3874
3875 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3876 parameter.
3877 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3878 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3879 dwarf2_per_objfile parameter.
3880 (decode_debug_loc_dwo_addresses): Likewise.
3881 (dwarf2_find_location_expression): Update.
3882 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3883 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3884 parameter.
3885 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3886 parameter.
3887 (locexpr_describe_location_1): Likewise.
3888 (locexpr_describe_location): Update.
3889
4b167ea1
SM
38902020-05-27 Simon Marchi <simon.marchi@efficios.com>
3891
3892 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3893 Remove.
3894 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3895 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3896 (dwarf2_compile_property_to_c): Update.
3897 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3898 use text offset from objfile.
3899 (locexpr_tracepoint_var_ref): Update.
3900 (locexpr_generate_c_location): Update.
3901 (loclist_describe_location): Update.
3902 (loclist_tracepoint_var_ref): Update.
3903 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3904 dwarf2_per_objfile parameter.
3905 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3906 use text offset from objfile.
3907 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3908
89b07335
SM
39092020-05-27 Simon Marchi <simon.marchi@efficios.com>
3910
3911 * dwarf2/expr.h (struct dwarf_expr_context)
3912 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3913 <offset>: Remove.
3914 <per_objfile>: New member.
3915 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3916 dwarf2_per_objfile parameter. Don't set offset, set
3917 per_objfile.
3918 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3919 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3920 a dwarf2_per_objfile object instead of an offset.
3921 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3922 constructor.
3923 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3924 to dwarf2_expr_executor constructor. Don't set offset.
3925 (dwarf2_fetch_cfa_info): Update.
3926 (struct dwarf2_frame_cache) <text_offset>: Remove.
3927 <per_objfile>: New field.
3928 (dwarf2_frame_cache): Update.
3929 (dwarf2_frame_prev_register): Update.
3930 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3931 <dwarf_evaluate_loc_desc>: Add constructor.
3932 (dwarf2_evaluate_loc_desc_full): Update.
3933 (dwarf2_locexpr_baton_eval): Update.
3934 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3935 Add constructor.
3936 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3937
293e7e51
SM
39382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3939
3940 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3941 addr_sized_int_type>: Move to dwarf2_cu.
3942 <int_type>: Move to dwarf2_per_objfile.
3943 (struct dwarf2_per_objfile) <int_type>: Move here.
3944 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3945 addr_sized_int_type>: Move here.
3946 (read_func_scope): Update.
3947 (read_array_type): Update.
3948 (read_tag_string_type): Update.
3949 (attr_to_dynamic_prop): Update.
3950 (dwarf2_per_cu_data::int_type): Rename to...
3951 (dwarf2_per_objfile::int_type): ... this.
3952 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
3953 (dwarf2_cu::addr_sized_int_type): ... this.
3954 (read_subrange_type): Update.
3955 (dwarf2_per_cu_data::addr_type): Rename to...
3956 (dwarf2_cu::addr_type): ... this.
3957 (set_die_type): Update.
3958
64874a40
SM
39592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
3962 data through per_cu->cu.
3963
4ab09049
SM
39642020-05-27 Simon Marchi <simon.marchi@efficios.com>
3965
3966 * dwarf2/read.c (lookup_dwo_comp_unit): Change
3967 dwarf2_per_cu_data parameter fo dwarf2_cu.
3968 (lookup_dwo_type_unit): Likewise.
3969 (read_cutu_die_from_dwo): Likewise.
3970 (lookup_dwo_unit): Likewise.
3971 (open_and_init_dwo_file): Likewise.
3972 (lookup_dwo_cutu): Likewise.
3973 (lookup_dwo_comp_unit): Likewise.
3974 (lookup_dwo_type_unit): Likewise.
3975 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3976 (cutu_reader::cutu_reader): Update.
3977
47b14e86
SM
39782020-05-27 Simon Marchi <simon.marchi@efficios.com>
3979
3980 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
3981 parameter.
3982 (process_full_type_unit): Likewise.
3983 (process_queue): Update.
3984
43182c09
SM
39852020-05-27 Simon Marchi <simon.marchi@efficios.com>
3986
3987 * dwarf2/read.c (recursively_compute_inclusions): Add
3988 dwarf2_per_objfile parameter.
3989 (compute_compunit_symtab_includes): Likewise.
3990 (process_cu_includes): Update.
3991
7aa104c4
SM
39922020-05-27 Simon Marchi <simon.marchi@efficios.com>
3993
3994 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
3995 parameter.
3996 (create_type_unit_group): Update.
3997 (process_psymtab_comp_unit_reader): Update.
3998 (build_type_psymtabs_reader): Update.
3999
e3beb21d
SM
40002020-05-27 Simon Marchi <simon.marchi@efficios.com>
4001
4002 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4003 object through m_this_cu->cu.
4004
d460f660
SM
40052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4006
4007 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4008 the info parameter.
4009 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4010
ab432490
SM
40112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4012
4013 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4014 per_objfile parameter.
4015 (load_full_type_unit): Add per_objfile parameter.
4016 (read_signatured_type): Likewise.
4017 (load_full_comp_unit): Likewise.
4018 (load_cu): Likewise.
4019 (dw2_do_instantiate_symtab): Likewise.
4020 (dw2_get_file_names): Likewise.
4021 (dw2_map_symtabs_matching_filename): Update.
4022 (dw_expand_symtabs_matching_file_matcher): Update.
4023 (dw2_map_symbol_filenames): Update.
4024 (process_psymtab_comp_unit): Add per_objfile parameter.
4025 (build_type_psymtabs_1): Update.
4026 (process_skeletonless_type_unit): Update.
4027 (dwarf2_build_psymtabs_hard): Update.
4028 (load_partial_comp_unit): Add per_objfile parameter.
4029 (scan_partial_symbols): Update.
4030 (load_full_comp_unit): Add per_objfile parameter.
4031 (process_imported_unit_die): Update.
4032 (create_cus_hash_table): Update.
4033 (find_partial_die): Update.
4034 (dwarf2_read_addr_index): Update.
4035 (follow_die_offset): Update.
4036 (dwarf2_fetch_die_loc_sect_off): Update.
4037 (dwarf2_fetch_constant_bytes): Update.
4038 (dwarf2_fetch_die_type_sect_off): Update.
4039 (follow_die_sig_1): Update.
4040 (load_full_type_unit): Add per_objfile parameter.
4041 (read_signatured_type): Likewise.
4042
313bad1b
SM
40432020-05-27 Simon Marchi <simon.marchi@efficios.com>
4044
4045 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4046 of objfile_name.
4047
c3699833
SM
40482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4049
4050 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4051 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4052 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4053 field.
4054 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4055 (create_cus_from_index): Update.
4056 (dwarf2_read_gdb_index): Update.
4057 (create_cus_from_debug_names): Update.
4058 (dwarf2_read_debug_names): Update.
4059 (get_abbrev_section_for_cu): Update.
4060 (create_all_comp_units): Update.
4061 (read_attribute_value): Update.
4062 (get_debug_line_section): Update.
4063 * dwarf2/index-cache.c (index_cache::store): Update.
4064 * dwarf2/index-write.c (save_gdb_index_command): Update.
4065 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4066
1859c670
SM
40672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4068
4069 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4070 member.
4071 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4072 dwarf2_per_cu_data::per_bfd.
4073 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4074 (create_type_unit_group): Likewise.
4075 (queue_comp_unit): Remove reference to
4076 per_cu->dwarf2_per_objfile.
4077 (maybe_queue_comp_unit): Likewise.
4078 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4079 (create_cus_hash_table): Assign new field.
4080
5e22e966
SM
40812020-05-27 Simon Marchi <simon.marchi@efficios.com>
4082
4083 * dwarf2/read.c: Replace
4084 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4085 dwarf2_cu->per_objfile throughout.
4086
97a1449a
SM
40872020-05-27 Simon Marchi <simon.marchi@efficios.com>
4088
4089 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4090 parameter, don't use per_cu->dwarf2_per_objfile.
4091 (dw2_instantiate_symtab): Likewise.
4092 (dw2_find_last_source_symtab): Update.
4093 (dw2_map_expand_apply): Update.
4094 (dw2_lookup_symbol): Update.
4095 (dw2_expand_symtabs_for_function): Update.
4096 (dw2_expand_all_symtabs): Update.
4097 (dw2_expand_symtabs_with_fullname): Update.
4098 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4099 don't use per_cu->dwarf2_per_objfile.
4100 (dw2_expand_marked_cus): Update.
4101 (dw2_find_pc_sect_compunit_symtab): Update.
4102 (dw2_debug_names_lookup_symbol): Update.
4103 (dw2_debug_names_expand_symtabs_for_function): Update.
4104 (dw2_debug_names_map_matching_symbols): Update.
4105 (dwarf2_psymtab::expand_psymtab): Update.
4106
9e021579
SM
41072020-05-27 Simon Marchi <simon.marchi@efficios.com>
4108
4109 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4110 <per_objfile>: New member.
4111 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4112 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4113 call to dwarf2_cu.
4114 (cutu_reader::cutu_reader): Update.
4115 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4116
ae090bdb
SM
41172020-05-27 Simon Marchi <simon.marchi@efficios.com>
4118
4119 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4120 struct dwarf2_per_objfile.
4121 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4122 dwarf2_per_bfd.
4123 * dwarf2/read.c (set_die_type): Update.
4124 (get_die_type_at_offset): Update.
4125
af758d11
SM
41262020-05-27 Tom Tromey <tom@tromey.com>
4127 Simon Marchi <simon.marchi@efficios.com>
4128
4129 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4130 method.
4131 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4132 get_symtab, set_symtab>: New methods.
4133 <m_symtabs>: New field.
4134 (struct dwarf2_psymtab): Derive from partial_symtab.
4135 <readin_p, get_compunit_symtab>: Declare methods.
4136 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4137 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4138 New methods.
4139 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4140 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4141 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4142 (dw2_symtab_iter_next, dw2_print_stats)
4143 (dw2_expand_symtabs_with_fullname)
4144 (dw2_expand_symtabs_matching_one)
4145 (dw_expand_symtabs_matching_file_matcher)
4146 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4147 (dw2_debug_names_iterator::next)
4148 (dw2_debug_names_map_matching_symbols)
4149 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4150 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4151 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4152 New methods.
4153 (get_compunit_symtab, process_full_comp_unit)
4154 (process_full_type_unit): Update.
4155 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4156
5989a64e
SM
41572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4158
4159 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4160 then introduce a new dwarf2_per_objfile type.
4161 <read_line_string>: Move to the new dwarf2_per_objfile type.
4162 <objfile>: Likewise.
4163 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4164 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4165 dwarf2_per_objfile->per_bfd.
4166 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4167 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4168 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4169 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4170 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4171 (dwarf2_per_objfile::locate_sections): Rename to...
4172 (dwarf2_per_bfd::locate_sections): ... this.
4173 (dwarf2_per_objfile::get_cutu): Rename to...
4174 (dwarf2_per_bfd::get_cutu): ... this.
4175 (dwarf2_per_objfile::get_cu): Rename to...
4176 (dwarf2_per_bfd::get_cu): ... this.
4177 (dwarf2_per_objfile::get_tu): Rename to...
4178 (dwarf2_per_bfd::get_tu): ... this.
4179 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4180 (dwarf2_per_bfd::allocate_per_cu): ... this.
4181 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4182 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4183 (get_gdb_index_contents_ftype): Change parameter from
4184 dwarf2_per_objfile to dwarf2_per_bfd.
4185 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4186 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4187
a50264ba
TT
41882020-05-27 Tom Tromey <tom@tromey.com>
4189 Simon Marchi <simon.marchi@efficios.com>
4190
4191 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4192 (allocate_piece_closure): Set "per_objfile" member.
4193 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4194 (locexpr_describe_location, loclist_describe_location): Use new
4195 member.
4196 * dwarf2/read.c (read_call_site_scope)
4197 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4198 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4199 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4200 handle_data_member_location): Set per_objfile member.
4201 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4202 member.
4203 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4204
d3473f0c
TT
42052020-05-27 Tom Tromey <tom@tromey.com>
4206
4207 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4208 allocate_signatured_type>: Declare new methods.
4209 <m_num_psymtabs>: New member.
4210 (struct dwarf2_per_cu_data) <index>: New member.
4211 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4212 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4213 (create_cu_from_index_list): Use allocate_per_cu.
4214 (create_signatured_type_table_from_index)
4215 (create_signatured_type_table_from_debug_names)
4216 (create_debug_type_hash_table, add_type_unit)
4217 (read_comp_units_from_section): Use allocate_signatured_type.
4218
5717c425
TT
42192020-05-27 Tom Tromey <tom@tromey.com>
4220
4221 * psymtab.c (partial_map_expand_apply)
4222 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4223 (psym_lookup_global_symbol_language)
4224 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4225 (psym_print_stats, psym_expand_symtabs_for_function)
4226 (psym_map_symbol_filenames, psym_map_matching_symbols)
4227 (psym_expand_symtabs_matching)
4228 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4229 (maintenance_check_psymtabs): Update.
4230 * psympriv.h (struct partial_symtab) <readin_p,
4231 get_compunit_symtab>: Add objfile parameter.
4232 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4233 Likewise.
4234 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4235 get_compunit_symtab>: Likewise.
4236 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4237
45940949
TT
42382020-05-27 Tom Tromey <tom@tromey.com>
4239
4240 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4241 member.
4242 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4243 (create_cu_from_index_list)
4244 (create_signatured_type_table_from_index)
4245 (create_signatured_type_table_from_debug_names)
4246 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4247 (dwarf2_create_include_psymtab)
4248 (create_debug_type_hash_table, add_type_unit)
4249 (create_type_unit_group, read_comp_units_from_section)
4250 (dwarf2_compute_name, create_cus_hash_table)
4251 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4252 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4253 obstack.
4254 (dw2_get_real_path): Likewise. Change argument to
4255 dwarf2_per_objfile.
4256
f8c6d152
LM
42572020-05-27 Luis Machado <luis.machado@linaro.org>
4258
4259 PR tdep/26000
4260 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4261 for ldrd (immediate).
4262
e98d2e6d
PW
42632020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4264
4265 * command.h: Add comment giving the name of class_tui.
4266 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4267 create the fake command for the help for class_tui.
4268
53a47a3e
TT
42692020-05-26 Tom Tromey <tromey@adacore.com>
4270
4271 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4272 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4273 (val_atr): New function.
4274 (value_val_atr): Use it.
4275 * ada-valprint.c (print_optional_low_bound): Change low bound
4276 handling for enums.
4277 (val_print_packed_array_elements): Don't call discrete_position.
4278 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4279 discrete_position for enum types.
4280 * language.c (default_print_array_index): Change type.
4281 * language.h (struct language_defn) <la_print_array_index>: Add
4282 index_type parameter, change type of index_value.
4283 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4284 (default_print_array_index): Update.
4285 * valprint.c (maybe_print_array_index): Don't call
4286 value_from_longest. Update.
4287 (value_print_array_elements): Don't call discrete_position.
4288
0bc2354b
TT
42892020-05-26 Tom Tromey <tromey@adacore.com>
4290
4291 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4292 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4293
1218a4bf
CDA
42942020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4295
4296 PR gdb/13519
4297 * avr-tdep.c (avr_integer_to_address): Return data or code
4298 address accordingly to the second 'type' argument of the
4299 function.
4300
92651b1d
MW
43012020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4302
4303 * infcmd.c, inferior.h: (construct_inferior_arguments):
4304 Moved function from here to gdbsupport/common-inferior.{h,cc}
4305
0a4f5f8c
TT
43062020-05-23 Tom Tromey <tom@tromey.com>
4307
4308 Revert commit eca1f90c:
4309 * NEWS: Remove entry for completion styling.
4310 * completer.c (_rl_completion_prefix_display_length): Move
4311 declaration later.
4312 (gdb_fnprint): Revert.
4313 (gdb_display_match_list_1): Likewise.
4314 * cli/cli-style.c (completion_prefix_style)
4315 (completion_difference_style, completion_suffix_style): Remove.
4316 (_initialize_cli_style): Revert.
4317 * cli/cli-style.h (completion_prefix_style)
4318 (completion_difference_style, completion_suffix_style): Don't
4319 declare.
4320
e08bd6c5
PA
43212020-05-24 Pedro Alves <palves@redhat.com>
4322
4323 * symtab.c (completion_list_add_name): Return boolean indication
4324 of whether the symbol matched.
4325 (completion_list_add_symbol): Don't try to remove C++ aliases if
4326 the symbol didn't match in the first place.
4327 * symtab.h (completion_list_add_name): Return bool.
4328
ceacbf6e
SM
43292020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4330
4331 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4332 type::field.
4333
26f16254
JB
43342020-05-23 Joel Brobecker <brobecker@adacore.com>
4335
4336 GDB 9.2 released.
4337
eca1f90c
TT
43382020-05-23 Tom Tromey <tom@tromey.com>
4339
4340 * NEWS: Add entry for completion styling.
4341 * completer.c (_rl_completion_prefix_display_length): Move
4342 declaration earlier.
4343 (gdb_fnprint): Use completion_style.
4344 (gdb_display_match_list_1): Likewise.
4345 * cli/cli-style.c (completion_prefix_style)
4346 (completion_difference_style, completion_suffix_style): New
4347 globals.
4348 (_initialize_cli_style): Register new globals.
4349 * cli/cli-style.h (completion_prefix_style)
4350 (completion_difference_style, completion_suffix_style): Declare.
4351
51e2cfa2
PA
43522020-05-23 Pedro Alves <palves@redhat.com>
4353
4354 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4355 (parse_escape): Use ISDIGIT instead of isdigit.
4356 (puts_debug): Use gdb_isprint instead of isprint.
4357 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4358 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4359 ISSPACE instead of isspace.
4360 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4361 instead of isspace.
4362 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4363 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4364 instead of isxdigit and ISDIGIT instead of isdigit.
4365
80fc5e77
SM
43662020-05-22 Simon Marchi <simon.marchi@efficios.com>
4367
4368 * gdbtypes.h (struct type) <field>: New method.
4369 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4370 or type::field.
4371
3cabb6b0
SM
43722020-05-22 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4375 (TYPE_FIELDS): Use type::fields. Change all call sites that
4376 modify the propery to use type::set_fields instead.
4377
1f704f76
SM
43782020-05-22 Simon Marchi <simon.marchi@efficios.com>
4379
4380 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4381 type::num_fields instead.
4382
5e33d5f4
SM
43832020-05-22 Simon Marchi <simon.marchi@efficios.com>
4384
4385 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4386 methods.
4387 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4388 that modify the number of fields to use type::set_num_fields
4389 instead.
4390
9392ebb3
TT
43912020-05-22 Tom Tromey <tromey@adacore.com>
4392
4393 * compile/compile-object-load.h (munmap_list_free): Don't
4394 declare.
4395
7c13f4e8
AB
43962020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4397
4398 * annotate.c (annotate_source_line): Update return type, add call
4399 to update current symtab and line.
4400 * annotate.h (annotate_source_line): Update return type, and
4401 extend header comment.
4402 * source.c (info_line_command): Check annotation_level before
4403 calling annotate_source_line.
4404 * stack.c (print_frame_info): If calling annotate_source_line
4405 returns true, then don't print any other source line information.
4406
aa370940
SM
44072020-05-21 Simon Marchi <simon.marchi@efficios.com>
4408
4409 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4410
84d53fa9
SM
44112020-05-21 Simon Marchi <simon.marchi@efficios.com>
4412
4413 * coffread.c (patch_type): Remove NULL check before xfree.
4414 * corefile.c (set_gnutarget): Likewise.
4415 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4416 * exec.c (build_section_table): Likewise.
4417 * remote.c (remote_target::pass_signals): Likewise.
4418 * utils.c (n_spaces): Likewise.
4419 * cli/cli-script.c (document_command): Likewise.
4420 * i386-windows-tdep.c (core_process_module_section): Likewise.
4421 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4422
9d428aae
SM
44232020-05-20 Simon Marchi <simon.marchi@efficios.com>
4424
4425 * symfile.c (reread_symbols): Clear objfile's section_offsets
4426 vector and section indices, re-compute them by calling
4427 sym_offsets.
4428
250106a7
TT
44292020-05-20 Tom Tromey <tromey@adacore.com>
4430
4431 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4432 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4433
9a0bacfb
TV
44342020-05-20 Tom de Vries <tdevries@suse.de>
4435
4436 PR symtab/25833
4437 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4438
7b958a48
AM
44392020-05-20 Alan Modra <amodra@gmail.com>
4440
4441 PR 25993
4442 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4443 bfd_set_filename.
4444 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4445 passed to bfd_set_filename.
4446 * symfile-mem.c (add_vsyscall_page): Likewise for string
4447 passed to symbol_file_add_from_memory.
4448 (symbol_file_add_from_memory): Make name param a const char* and
4449 don't strdup.
4450
c7e97679
AM
44512020-05-20 Alan Modra <amodra@gmail.com>
4452
4453 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4454 rather than accessing bfd->filename directly.
4455 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4456 and use bfd_section_name.
4457 * dwarf2/frame.c (decode_frame_entry): Likewise.
4458 * exec.c (exec_set_section_address): Likewise.
4459 * solib-aix.c (solib_aix_bfd_open): Likewise.
4460 * stap-probe.c (get_stap_base_address): Likewise.
4461 * symfile.c (reread_symbols): Likewise.
4462
563c591b
TT
44632020-05-19 Tom Tromey <tromey@adacore.com>
4464
4465 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4466
f408d82c
SM
44672020-05-19 Simon Marchi <simon.marchi@efficios.com>
4468
4469 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4470
98c59b52
PA
44712020-05-19 Pedro Alves <palves@redhat.com>
4472
4473 * NEWS (set exec-file-mismatch): Adjust entry.
4474 * exec.c: Include "build-id.h".
4475 (validate_exec_file): Try to match build IDs instead of filenames.
4476 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4477 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4478 and pass down 'warn_if_slow'.
4479 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4480 gdb_bfd_open_closure to pass it down.
4481 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4482
4111f652
PA
44832020-05-19 Pedro Alves <palves@redhat.com>
4484
4485 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4486 * target.c (target_fileio_open_1): Rename to target_fileio_open
4487 and make extern. Use bool.
4488 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4489 (target_fileio_read_alloc_1): Adjust.
4490 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4491 (target_fileio_open_warn_if_slow): Delete declaration.
4492
ad80db5b
PA
44932020-05-19 Pedro Alves <palves@redhat.com>
4494
4495 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4496 Adjust all callers.
4497
1d6ce4d3
YS
44982020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4499
4500 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4501 whether disp is negative.
4502
9005fbbb
SM
45032020-05-19 Simon Marchi <simon.marchi@efficios.com>
4504
4505 * symfile.h (struct symfile_segment_data)
4506 <~symfile_segment_data>: Remove.
4507 <segment_info>: Change to std::vector.
4508 * symfile.c (default_symfile_segments): Update.
4509 * elfread.c (elf_symfile_segments): Update.
4510
68b888ff
SM
45112020-05-19 Simon Marchi <simon.marchi@efficios.com>
4512
4513 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4514 <segments>: New.
4515 <segment_bases, segment_sizes>: Remove.
4516 * symfile.c (default_symfile_segments): Update.
4517 * elfread.c (elf_symfile_segments): Update.
4518 * remote.c (remote_target::get_offsets): Update.
4519 * solib-target.c (solib_target_relocate_section_addresses):
4520 Update.
4521
62982abd
SM
45222020-05-19 Simon Marchi <simon.marchi@efficios.com>
4523
4524 * symfile.h (struct symfile_segment_data): Initialize fields.
4525 <~symfile_segment_data>: Add.
4526 (symfile_segment_data_up): New.
4527 (struct sym_fns) <sym_segments>: Return a
4528 symfile_segment_data_up.
4529 (default_symfile_segments): Return a symfile_segment_data_up.
4530 (free_symfile_segment_data): Remove.
4531 (get_symfile_segment_data): Return a symfile_segment_data_up.
4532 * symfile.c (default_symfile_segments): Likewise.
4533 (get_symfile_segment_data): Likewise.
4534 (free_symfile_segment_data): Remove.
4535 (symfile_find_segment_sections): Update.
4536 * elfread.c (elf_symfile_segments): Return a
4537 symfile_segment_data_up.
4538 * remote.c (remote_target::get_offsets): Update.
4539 * solib-target.c (solib_target_relocate_section_addresses):
4540 Update.
4541 * symfile-debug.c (debug_sym_segments): Return a
4542 symfile_segment_data_up.
4543
7f204339
RO
45442020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4545
e52a0f1b
RO
4546 PR build/25981
4547 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4548 Hardcode register numbers.
4549
7f204339
RO
4550 PR build/25981
4551 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4552 procfs_find_LDT_entry): Remove.
4553 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4554 procfs_find_LDT_entry): Remove.
4555 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4556 Remove.
4557
7f32a4d5
PA
45582020-05-17 Pedro Alves <palves@redhat.com>
4559 Andrew Burgess <andrew.burgess@embecosm.com>
4560 Keno Fischer <keno@juliacomputing.com>
4561
4562 PR gdb/25741
4563 * breakpoint.c (build_target_condition_list): Update comments.
4564 (build_target_command_list): Update comments and skip matching
4565 locations.
4566 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4567 a separate function. Simplify "set breakpoint auto-hw off"
4568 handling.
4569 (insert_breakpoints): Update comment.
4570 (tracepoint_locations_match): New parameter. For breakpoints,
4571 compare location types too, if the caller wants to.
4572 (handle_automatic_hardware_breakpoints): New functions.
4573 (bp_location_is_less_than): Also sort by location type and
4574 hardware breakpoint length.
4575 (update_global_location_list): Handle "set breakpoint auto-hw on"
4576 here.
4577 (update_breakpoint_locations): Ask breakpoint_locations_match to
4578 ignore location types.
4579
7d93a1e0
SM
45802020-05-16 Simon Marchi <simon.marchi@efficios.com>
4581
4582 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4583 type::name instead.
4584
d0e39ea2
SM
45852020-05-16 Simon Marchi <simon.marchi@efficios.com>
4586
4587 * gdbtypes.h (struct type) <name, set_name>: New methods.
4588 (TYPE_CODE): Use type::name. Change all call sites used to set
4589 the name to use type::set_name instead.
4590
2dab0c7b
TT
45912020-05-16 Tom Tromey <tom@tromey.com>
4592
4593 * top.c (quit_force): Update.
4594 * infrun.c (handle_no_resumed): Update.
4595 * top.h (all_uis): New function.
4596 (ALL_UIS): Remove.
4597
59f7bd8d
SM
45982020-05-16 Simon Marchi <simon.marchi@efficios.com>
4599
4600 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4601
9bf058f0
PA
46022020-05-16 Pedro Alves <palves@redhat.com>
4603
4604 * ia64-linux-nat.c
4605 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4606 Declare method.
4607 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4608
8f86ae1a
SM
46092020-05-15 Simon Marchi <simon.marchi@efficios.com>
4610
4611 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4612 (sparc64_adi_info): Likewise.
4613
d6bc0792
TT
46142020-05-15 Tom Tromey <tom@tromey.com>
4615
4616 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4617 block_objfile.
4618 (lookup_objfile_from_block): Remove.
4619 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4620 (lookup_global_symbol): Use block_objfile.
4621 * symtab.h (lookup_objfile_from_block): Don't declare.
4622 * printcmd.c (clear_dangling_display_expressions): Use
4623 block_objfile.
4624 * parse.c (operator_check_standard): Use block_objfile.
4625
8c14c3a3
TT
46262020-05-15 Tom Tromey <tom@tromey.com>
4627
4628 * language.c (language_alloc_type_symbol): Set
4629 SYMBOL_SECTION.
4630 * symtab.c (initialize_objfile_symbol): Remove.
4631 (allocate_symbol): Remove.
4632 (allocate_template_symbol): Remove.
4633 * dwarf2/read.c (fixup_go_packaging): Use "new".
4634 (new_symbol): Use "new".
4635 (read_variable): Don't call initialize_objfile_symbol. Use
4636 "new".
4637 (read_func_scope): Use "new".
4638 * xcoffread.c (process_xcoff_symbol): Don't call
4639 initialize_objfile_symbol.
4640 (SYMBOL_DUP): Remove.
4641 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4642 "new".
4643 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4644 (allocate_template_symbol): Don't declare.
4645 (struct symbol): Add copy constructor. Change defaults.
4646 * jit.c (finalize_symtab): Use "new".
4647 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4648 Use "new".
4649 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4650 (common_block_end): Use "new".
4651 * mdebugread.c (parse_symbol): Use "new".
4652 (new_symbol): Likewise.
4653
5b4a1a8d
PW
46542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4655
4656 * NEWS: Mention changes to help and apropos.
4657
57b4f16e
PW
46582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4659
4660 * command.h (enum command_class): Improve comments, document
4661 that class_alias is for user-defined aliases, give the class
4662 name for each class, remove unused class_xdb.
4663 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4664 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4665 by a precise class.
4666 * infcmd.c (_initialize_infcmd): Likewise.
4667 * reverse.c (_initialize_reverse): Likewise.
4668 * stack.c (_initialize_stack): Likewise.
4669 * symfile.c (_initialize_symfile): Likewise.
4670 * tracepoint.c (_initialize_tracepoint): Likewise.
4671
7c05caf7
PW
46722020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4673
4674 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4675 when their aliased command is traversed.
4676 (help_cmd): Add fput_command_names_styled call to
4677 output command name and aliases when command has an alias.
4678
3b3aaacb
PW
46792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4680
4681 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4682 * cli/cli-decode.c (help_cmd_list): Declare as static,
4683 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4684 a command together with the command.
4685 (fput_command_name_styled, fput_command_names_styled): New functions.
4686 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4687 fput_command_name_styled.
4688 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4689 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4690
7aa1b46f
PW
46912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4692
4693 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4694 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4695 * command.h (cmd_show_list): Likewise.
4696 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4697 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4698
89bcba74
PW
46992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4700
4701 * unittests/command-def-selftests.c (traverse_command_structure):
4702 Verify all commands of a list have the same prefix command and
4703 that only the top cmdlist commands have a null prefix.
4704
3f4d92eb
PW
47052020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4706
4707 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4708 as prefix, not one of its aliases.
4709 (set_cmd_prefix): Remove.
4710 (do_add_cmd): Centralize the setting of the prefix of a command, when
4711 command is defined after its full chain of prefix commands.
4712 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4713 (add_setshow_cmd_full): Likewise.
4714 (update_prefix_field_of_prefixed_commands): New function.
4715 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4716 update_prefix_field_of_prefixed_commands.
4717 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4718 addresses of remote_set_cmdlist and remote_show_cmdlist given
4719 as argument, not the address of an argument.
4720 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4721 * gdb/remote.c (_initialize_remote): Likewise.
4722
0605465f
PW
47232020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4724
4725 * cli/cli-cmds.c (alias_command): Check for an existing alias
4726 using lookup_cmd_composition, as valid_command_p is too strict
4727 and forbids aliases that are the prefix of an existing alias
4728 or command.
4729 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4730 command is properly recognised as a valid command.
4731
58e6ac70
PW
47322020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4733
4734 * unittests/help-doc-selftests.c: Rename to
4735 unittests/command-def-selftests.c
4736 * unittests/command-def-selftests.c (help_doc_tests): Update some
4737 comments.
4738 (command_structure_tests, traverse_command_structure): New namespace
4739 and function.
4740 (command_structure_invariants_tests): New function.
4741 (_initialize_command_def_selftests) Renamed from
4742 _initialize_help_doc_selftests, register command_structure_invariants
4743 selftest.
4744
a7b9ceb8
PW
47452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4746
4747 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4748 an alias of 'show'.
4749
b2188a06
JB
47502020-05-15 Joel Brobecker <brobecker@adacore.com>
4751
4752 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4753 ada_is_fixed_point_type. Update all callers.
4754 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4755 all callers.
4756 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4757 Update all callers.
4758 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4759 print_fixed_point_type. Update all callers.
4760 * ada-valprint.c (ada_value_print_num): Replace call to
4761 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4762
a51951c2
KB
47632020-05-14 Kevin Buettner <kevinb@redhat.com>
4764
4765 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4766 processors.
4767 (cpu_supports_bts): Add CV_AMD case.
4768
29d6859f
LM
47692020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4770 Simon Marchi <simon.marchi@efficios.com>
4771
4772 * infrun.c (stop_all_threads): Collect multiple wait events at
4773 each pass.
4774
78134374
SM
47752020-05-14 Simon Marchi <simon.marchi@efficios.com>
4776
4777 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4778 type::code instead.
4779
67607e24
SM
47802020-05-14 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * gdbtypes.h (struct type) <code, set_code>: New methods.
4783 (TYPE_CODE): Use type::code. Change all call sites used to set
4784 the code to use type::set_code instead.
4785
a05575d3
TBA
47862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4787 Tom de Vries <tdevries@suse.de>
4788 Pedro Alves <palves@redhat.com>
4789
4790 PR threads/25478
4791 * infrun.c (stop_all_threads): Do NOT ignore
4792 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4793 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4794 received.
4795 (handle_no_resumed): Remove code handling a live inferior with no
4796 threads.
4797 * remote.c (has_single_non_exited_thread): New.
4798 (remote_target::update_thread_list): Do not delete a thread if is
4799 the last thread of the process.
4800 * thread.c (thread_select): Call delete_exited_threads instead of
4801 prune_threads.
4802
6ad82919
TBA
48032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4804
4805 * infrun.c (stop_all_threads): Enable/disable thread events of all
4806 targets. Move a debug message denoting the end of the function
4807 into the SCOPED_EXIT block.
4808
d890404b
TBA
48092020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4810
4811 * process-stratum-target.h: Include <set>.
4812 (all_non_exited_process_targets, switch_to_target_no_thread): New
4813 function declarations.
4814 * process-stratum-target.c (all_non_exited_process_targets)
4815 (switch_to_target_no_thread): New function implementations.
4816
293b3ebc
TBA
48172020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4818
4819 * infrun.c (handle_inferior_event): Extract out a piece of code
4820 into...
4821 (mark_non_executing_threads): ...this new function.
4822
7ca9b62a
TBA
48232020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4824
4825 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4826 use.
4827
fc75c28b
TBA
48282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4829
4830 * regcache.c (regcache_read_pc_protected): New function
4831 implementation that returns 0 if the PC cannot read via
4832 'regcache_read_pc'.
4833 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4834 instead of 'regcache_read_pc'.
4835 (keep_going_pass_signal): Ditto.
4836
a89febbd
TT
48372020-05-13 Tom Tromey <tromey@adacore.com>
4838
4839 * ada-lang.c (align_value): Remove.
4840 (ada_template_to_fixed_record_type_1): Use align_up.
4841
f7e23710
TBA
48422020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4843
4844 * async-event.c: Update the copyright year.
4845 * async-event.h: Update the copyright year.
4846
02ff80c2
SM
48472020-05-12 Simon Marchi <simon.marchi@efficios.com>
4848
4849 * objfiles.h (is_addr_in_objfile,
4850 shared_objfile_contains_address_p): Return bool.
4851 * objfile.c (is_addr_in_objfile,
4852 shared_objfile_contains_address_p): Return bool.
4853
4fd6c7e8
TT
48542020-05-11 Tom Tromey <tromey@adacore.com>
4855
4856 * cli/cli-cmds.c (info_command): Restore.
4857 (_initialize_cli_cmds): Use add_prefix_command for "info".
4858 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4859
5eb68a39
TT
48602020-05-11 Tom Tromey <tromey@adacore.com>
4861
4862 * ada-lang.c (ada_value_primitive_field): Now public.
4863 * ada-lang.h (ada_value_primitive_field): Declare.
4864 * ada-valprint.c (print_field_values): Use
4865 ada_value_primitive_field for wrapper fields.
4866
7666722f
TV
48672020-05-11 Tom de Vries <tdevries@suse.de>
4868
4869 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4870 MODULE_DOMAIN.
4871
3ee6bb11
TV
48722020-05-11 Tom de Vries <tdevries@suse.de>
4873
4874 PR symtab/25941
4875 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4876 with length 0, if not gdb-produced.
4877 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4878
43434996
TV
48792020-05-09 Tom de Vries <tdevries@suse.de>
4880
4881 PR gdb/25955
4882 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4883 calculation.
4884
2f78cffc
TT
48852020-05-09 Tom Tromey <tom@tromey.com>
4886
4887 * top.c (server_command): Now bool.
4888 * top.h (server_command): Now bool.
4889
4f7bc5ed
TT
48902020-05-08 Tom Tromey <tromey@adacore.com>
4891
4892 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4893 already being processed.
4894
8be4b118
TT
48952020-05-08 Tom Tromey <tom@tromey.com>
4896
4897 * printcmd.c (struct display) <next>: Remove.
4898 <display>: New constructor.
4899 <exp_string>: Now a std::string.
4900 <enabled_p>: Now a bool.
4901 (display_number): Move definition earlier.
4902 (displays): Rename from display_chain. Now a std::vector.
4903 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4904 (display_command): Update.
4905 (do_one_display, disable_display)
4906 (enable_disable_display_command, do_enable_disable_display):
4907 Update.
4908 (free_display): Remove.
4909 (clear_displays): Rewrite.
4910 (delete_display): Update.
4911 (map_display_numbers): Use function_view. Remove "data"
4912 parameter. Update.
4913 (do_delete_display): Remove.
4914 (undisplay_command): Update.
4915 (do_one_display, do_displays, disable_display)
4916 (info_display_command): Update.
4917 (do_enable_disable_display): Remove.
4918 (enable_disable_display_command)
4919 (clear_dangling_display_expressions): Update.
4920
94c93c35
TT
49212020-05-08 Tom Tromey <tom@tromey.com>
4922
4923 * symtab.c (set_symbol_cache_size)
4924 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4925 (maintenance_print_symbol_cache_statistics): Update.
4926 * symmisc.c (print_symbol_bcache_statistics)
4927 (print_objfile_statistics, maintenance_print_objfiles)
4928 (maintenance_info_symtabs, maintenance_check_symtabs)
4929 (maintenance_expand_symtabs, maintenance_info_line_tables):
4930 Update.
4931 * symfile-debug.c (set_debug_symfile): Update.
4932 * source.c (forget_cached_source_info): Update.
4933 * python/python.c (gdbpy_progspaces): Update.
4934 * psymtab.c (maintenance_info_psymtabs): Update.
4935 * probe.c (parse_probes): Update.
4936 * linespec.c (iterate_over_all_matching_symtabs)
4937 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4938 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4939 * exec.c (exec_target::close): Update.
4940 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4941 * breakpoint.c (print_one_breakpoint_location)
4942 (create_longjmp_master_breakpoint)
4943 (create_std_terminate_master_breakpoint): Update.
4944 * progspace.c (program_spaces): Now a std::vector.
4945 (maybe_new_address_space): Update.
4946 (add_program_space): Remove.
4947 (program_space::program_space): Update.
4948 (remove_program_space): Update.
4949 (number_of_program_spaces): Remove.
4950 (print_program_space, update_address_spaces): Update.
4951 * progspace.h (program_spaces): Change type.
4952 (ALL_PSPACES): Remove.
4953 (number_of_program_spaces): Don't declare.
4954 (struct program_space) <next>: Remove.
4955
a1fd1ac9
TT
49562020-05-08 Tom Tromey <tom@tromey.com>
4957
4958 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
4959 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
4960 (enable_break): Update.
4961 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
4962 (frv_fdpic_find_canonical_descriptor): Update.
4963 (frv_fetch_objfile_link_map): Update.
4964 * progspace.c (program_space::free_all_objfiles): Update.
4965 (program_space::solibs): New method.
4966 * progspace.h (struct program_space) <solibs>: New method.
4967 * solist.h (master_so_list): Don't declare.
4968 (ALL_SO_LIBS): Remove.
4969 * solib.h (so_list_head): Remove.
4970 (update_solib_list): Update comment.
4971 * solib.c (master_so_list): Remove.
4972 (solib_used, update_solib_list, solib_add)
4973 (info_sharedlibrary_command, clear_solib)
4974 (reload_shared_libraries_1, remove_user_added_objfile): Update.
4975
38eae084
TT
49762020-05-08 Tom Tromey <tom@tromey.com>
4977
4978 * extension.c (extension_languages): Now a std::array.
4979 (ALL_EXTENSION_LANGUAGES): Remove.
4980 (get_ext_lang_defn, get_ext_lang_of_file)
4981 (eval_ext_lang_from_control_command): Update.
4982 (finish_ext_lang_initialization)
4983 (auto_load_ext_lang_scripts_for_objfile)
4984 (ext_lang_type_printers::ext_lang_type_printers)
4985 (apply_ext_lang_type_printers)
4986 (ext_lang_type_printers::~ext_lang_type_printers)
4987 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
4988 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
4989 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
4990 (get_matching_xmethod_workers, ext_lang_colorize)
4991 (ext_lang_before_prompt): Update.
4992 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
4993
596dc4ad
TT
49942020-05-08 Tom Tromey <tom@tromey.com>
4995
4996 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
4997 overload.
4998 <swap_string, m_string>: Remove.
4999 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5000 Update.
5001 * stabsread.c (define_symbol, read_type): Update.
5002 * linespec.c (find_linespec_symbols): Update.
5003 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5004 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5005 * dbxread.c (read_dbx_symtab): Update.
5006 * cp-support.h (cp_canonicalize_string_full)
5007 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5008 Return unique_xmalloc_ptr.
5009 * cp-support.c (inspect_type): Update.
5010 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5011 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5012 Likewise.
5013 * c-typeprint.c (print_name_maybe_canonical): Update.
5014 * break-catch-throw.c (check_status_exception_catchpoint):
5015 Update.
5016
bf4cb9be
TV
50172020-05-08 Tom de Vries <tdevries@suse.de>
5018
5019 * infrun.c (follow_fork): Copy current_line and current_symtab to
5020 child thread.
5021
a1b68f28
SM
50222020-05-07 Simon Marchi <simon.marchi@efficios.com>
5023
5024 * async-event.c (struct async_signal_handler, struct
5025 async_event_handler): Reformat, remove typedef.
5026
98d48915
SM
50272020-05-07 Simon Marchi <simon.marchi@efficios.com>
5028
5029 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5030 access thistype->main_type->dyn_prop_list directly.
5031
7aa91313
SM
50322020-05-07 Simon Marchi <simon.marchi@efficios.com>
5033
5034 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5035 (remove_dyn_prop): Remove. Update all users to use
5036 type::remove_dyn_prop.
5037 * gdbtypes.c (remove_dyn_prop): Rename to...
5038 (type::remove_dyn_prop): ... this.
5039
5c54719c
SM
50402020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5041
5042 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5043 (add_dyn_prop): Remove. Update all users to use
5044 type::add_dyn_prop.
5045 * gdbtypes.c (add_dyn_prop): Rename to...
5046 (type::add_dyn_prop): ... this.
5047
24e99c6c
SM
50482020-05-07 Simon Marchi <simon.marchi@efficios.com>
5049
5050 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5051 (get_dyn_prop): Remove. Update all users to use
5052 type::dyn_prop.
5053 * gdbtypes.c (get_dyn_prop): Rename to...
5054 (type::dyn_prop): ... this.
5055
0d4bf016
SM
50562020-05-06 Simon Marchi <simon.marchi@efficios.com>
5057
5058 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5059
ac4a4f1c
SM
50602020-05-06 Simon Marchi <simon.marchi@efficios.com>
5061
5062 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5063 instruction, skip it if it's there.
5064
a3bbacc1
SM
50652020-05-05 Simon Marchi <simon.marchi@efficios.com>
5066
5067 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5068
c3236f84
SM
50692020-05-04 Simon Marchi <simon.marchi@efficios.com>
5070
5071 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5072 * gdbtypes.c (recursive_dump_type): Remove use of
5073 TYPE_INCOMPLETE.
5074
3b6acaee
TT
50752020-05-03 Tom Tromey <tom@tromey.com>
5076
5077 * breakpoint.c (catch_command, tcatch_command): Remove.
5078 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5079 add_show_prefix_cmd.
5080 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5081 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5082 Remove.
5083 (add_internal_problem_command): Use add_basic_prefix_cmd,
5084 add_show_prefix_cmd.
5085 * mips-tdep.c (set_mipsfpu_command): Remove.
5086 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5087 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5088 (_initialize_index_cache): Use add_basic_prefix_cmd.
5089 * memattr.c (dummy_cmd): Remove.
5090 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5091 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5092 (_initialize_tui_win): Use add_basic_prefix_cmd,
5093 add_show_prefix_cmd.
5094 * cli/cli-logging.c (set_logging_command): Remove.
5095 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5096 add_show_prefix_cmd.
5097 (show_logging_command): Remove.
5098 * target.c (target_command): Remove.
5099 (add_target): Use add_basic_prefix_cmd.
5100
a51119cd
HD
51012020-05-02 Hannes Domani <ssbssa@yahoo.de>
5102
5103 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5104
652fc23a 51052020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5106
652fc23a
PW
5107 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5108 info_command.
5109
117539e6
KR
51102020-04-30 Kamil Rytarowski <n54@gmx.com>
5111
5112 * nbsd-nat.c (nbsd_enable_proc_events)
5113 (nbsd_nat_target::post_startup_inferior): Add.
5114 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5115 (nbsd_nat_target::update_thread_list): Rewrite.
5116 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5117 "PTRACE_LWP_CREATE".
5118 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5119
102e38eb 51202020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5121
102e38eb
PW
5122 * stack.c (_initialize_stack): Remove duplicated creation
5123 of "frame" command and "f" alias.
5124
ee9d1e5f
HD
51252020-04-30 Hannes Domani <ssbssa@yahoo.de>
5126
5127 PR gdb/18706
5128 * gdbtypes.c (check_typedef): Calculate size of array of
5129 stubbed type.
5130
627c7fb8
HD
51312020-04-30 Hannes Domani <ssbssa@yahoo.de>
5132
5133 PR gdb/15559
5134 * i386-tdep.c (i386_push_dummy_call): Call
5135 i386_thiscall_push_dummy_call.
5136 (i386_thiscall_push_dummy_call): New function.
5137 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5138 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5139 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5140
ffc2844e
SM
51412020-04-29 Simon Marchi <simon.marchi@efficios.com>
5142
5143 * gdbarch.sh (do_read): Add shellcheck disable directive for
5144 warning SC2162.
5145
1207375d
SM
51462020-04-29 Simon Marchi <simon.marchi@efficios.com>
5147
5148 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5149 "referenced but not assigned" warning.
5150
9fdb2916
SM
51512020-04-29 Simon Marchi <simon.marchi@efficios.com>
5152
5153 * gdbarch.sh: Remove code that sets fallbackdefault.
5154
759cea5e
SM
51552020-04-29 Simon Marchi <simon.marchi@efficios.com>
5156
5157 * gdbarch.sh: Use shell operators && and || instead of
5158 -a and -o.
5159
cb02ab24
SM
51602020-04-29 Simon Marchi <simon.marchi@efficios.com>
5161
5162 * gdbarch.sh: Use $(...) instead of `...`.
5163
a6fc5ffc
SM
51642020-04-29 Simon Marchi <simon.marchi@efficios.com>
5165
5166 * gdbarch.sh: Use double quotes around variables.
5167
8d113d13
SM
51682020-04-29 Simon Marchi <simon.marchi@efficios.com>
5169
5170 * gdbarch.sh: Use %s with printf, instead of variables in the
5171 format string.
5172
ed6acedd
TT
51732020-04-29 Tom Tromey <tromey@adacore.com>
5174
5175 PR ada/25875:
5176 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5177 type fields here.
5178 (read_enumeration_type): Call
5179 update_enumeration_type_from_children later. Update comments.
5180 (process_enumeration_scope): Don't create type fields.
5181
b68b1b58
KR
51822020-04-29 Kamil Rytarowski <n54@gmx.com>
5183
5184 * nbsd-tdep.c: Include "xml-syscall.h".
5185 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5186
f94b2e03
KR
51872020-04-29 Kamil Rytarowski <n54@gmx.com>
5188
5189 * nbsd-nat.c: Include "sys/wait.h".
5190 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5191 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5192 (nbsd_nat_target::remove_exec_catchpoint)
5193 (nbsd_nat_target::set_syscall_catchpoint): Add.
5194 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5195 (nbsd_nat_target::insert_exec_catchpoint)
5196 (nbsd_nat_target::remove_exec_catchpoint)
5197 (nbsd_nat_target::set_syscall_catchpoint): Add.
5198 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5199 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5200 `nbsd_get_syscall_number'.
5201
fc49bc72
TT
52022020-04-29 Tom Tromey <tom@tromey.com>
5203
5204 * stack.c (print_block_frame_labels): Remove.
5205
d642b692
HD
52062020-04-29 Hannes Domani <ssbssa@yahoo.de>
5207
5208 PR gdb/17320
5209 * ada-valprint.c (val_print_packed_array_elements): Move array
5210 end bracket to new line.
5211 (ada_val_print_string): Remove extra spaces before first array
5212 element.
5213 * c-valprint.c (c_value_print_array): Likewise.
5214 * m2-valprint.c (m2_print_array_contents): Likewise.
5215 (m2_value_print_inner): Likewise.
5216 * p-valprint.c (pascal_value_print_inner): Likewise.
5217 * valprint.c (generic_val_print_array): Likewise.
5218 (value_print_array_elements): Move first array element and array
5219 end bracket to new line.
5220
ea90f227
TV
52212020-04-29 Tom de Vries <tdevries@suse.de>
5222
5223 PR symtab/25889
5224 * linespec.c (find_method): Fix ix calculation.
5225
4498ef4f
KR
52262020-04-28 Kamil Rytarowski <n54@gmx.com>
5227
5228 * syscalls/update-netbsd.sh: New file.
5229 * syscalls/netbsd.xml: Regenerate.
5230 * data-directory/Makefile.in: Register `netbsd.xml' in
5231 `SYSCALLS_FILES'.
5232
a55e30b5
SM
52332020-04-28 Simon Marchi <simon.marchi@efficios.com>
5234
5235 * syscalls/update-freebsd.sh: Add double quotes.
5236
2b2fbab8
TT
52372020-04-28 Tom Tromey <tom@tromey.com>
5238
5239 * NEWS: Update.
5240 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5241 (cmdpy_init): Allow class_tui.
5242
a65189c9
TV
52432020-04-28 Mark Williams <mark@myosotissp.com>
5244
5245 PR gdb/24480
5246 * dwarf2read.c: Add missing assingments to list_in_scope when
5247 start_symtab was already called.
5248
1b95cdb7
SM
52492020-04-28 Simon Marchi <simon.marchi@efficios.com>
5250
5251 PR gdb/25881
5252 * dwarf2/read.c (offset_map_type): Use
5253 gdb:hash_enum<sect_offset> as hash function.
5254
15cd93d0
TV
52552020-04-28 Tom de Vries <tdevries@suse.de>
5256
5257 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5258 with DW_AT_signature.
5259
1eb39914
SM
52602020-04-27 Simon Marchi <simon.marchi@efficios.com>
5261
5262 * configure.ac: Remove check for fs_base/gs_base in
5263 user_regs_struct.
5264 * configure: Re-generate.
5265 * config.in: Re-generate.
5266 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5267 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5268 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5269
991a3e2e
LM
52702020-04-27 Luis Machado <luis.machado@linaro.org>
5271
5272 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5273 problematic inline frame unwinding situation.
5274 * frame.c (frame_id_computed_p): New function.
5275 * frame.h (frame_id_computed_p): New prototype.
5276
361ba0e8
TT
52772020-04-26 Tom Tromey <tom@tromey.com>
5278
5279 * command.h (enum command_class) <class_pseudo>: Remove.
5280
bc3609fd
PW
52812020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5282
5283 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5284 and whitespace.
5285
b9771db7
KR
52862020-04-25 Kamil Rytarowski <n54@gmx.com>
5287
ec16513e
SM
5288 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5289 `PT_GET_PROCESS_STATE' block.
b9771db7 5290
7151c1af
TT
52912020-04-24 Tom Tromey <tom@tromey.com>
5292
5293 * symtab.h (symbol_get_demangled_name): Don't declare.
5294 * symtab.c (symbol_get_demangled_name): Remove.
5295 (general_symbol_info::natural_name)
5296 (general_symbol_info::demangled_name): Update.
5297
906bb4c5
TT
52982020-04-24 Tom Tromey <tom@tromey.com>
5299
5300 PR rust/25025:
5301 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5302
bcfe6157
TT
53032020-04-24 Tom Tromey <tom@tromey.com>
5304
5305 PR symtab/12707:
5306 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5307 exists.
5308 (new_symbol): Likewise.
5309 * compile/compile-object-load.c (get_out_value_type): Use
5310 symbol_matches_search_name.
5311
f049a313
TT
53122020-04-24 Tom Tromey <tom@tromey.com>
5313
5314 * dwarf2/read.c (add_partial_symbol): Do not call
5315 compute_and_set_names.
5316
76e288d1
TT
53172020-04-24 Tom Tromey <tom@tromey.com>
5318
5319 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5320 overload.
5321
2467f4f6
TT
53222020-04-24 Tom Tromey <tom@tromey.com>
5323
5324 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5325 (add_psymbol_to_list): New overload. Make old overload call new
5326 one.
5327 * psympriv.h (add_psymbol_to_list): New overload.
5328
e61108c9
TT
53292020-04-24 Tom Tromey <tom@tromey.com>
5330
5331 * dwarf2/read.c (partial_die_info::read) <case
5332 DW_AT_linkage_name>: Use value_as_string.
5333 (dwarf2_string_attr): Use value_as_string.
5334 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5335 method.
5336 * dwarf2/attribute.c (attribute::value_as_string): New method.
5337
8c87a452
TT
53382020-04-24 Tom Tromey <tom@tromey.com>
5339
5340 * symtab.c (general_symbol_info::natural_name)
5341 (general_symbol_info::demangled_name): Check for language_rust.
5342
787de330
TT
53432020-04-24 Tom Tromey <tom@tromey.com>
5344
5345 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5346 (dwarf2_physname): ... from here.
5347 (partial_die_info::read): Add Rust "{" hack.
5348
ff985671
TT
53492020-04-24 Tom Tromey <tom@tromey.com>
5350
5351 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5352 method.
5353 (symbol_set_demangled_name): Don't declare.
5354 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5355 symbol_set_demangled_name.
5356 (general_symbol_info::set_language)
5357 (general_symbol_info::compute_and_set_names): Update.
5358 * minsyms.c (minimal_symbol_reader::install): Update.
5359 * dwarf2/read.c (new_symbol): Update.
5360
1acda803
TT
53612020-04-24 Tom Tromey <tromey@adacore.com>
5362
5363 PR python/23662:
5364 * python/py-type.c (convert_field): Handle
5365 FIELD_LOC_KIND_DWARF_BLOCK.
5366 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5367 (typy_get_dynamic): Nw function.
5368 (type_object_getset): Add "dynamic".
5369 * NEWS: Add entry.
5370
d656f129
TT
53712020-04-24 Tom Tromey <tromey@adacore.com>
5372
5373 * ada-typeprint.c (print_choices, print_variant_part)
5374 (print_record_field_types_dynamic): New functions.
5375 (print_record_field_types): Use print_record_field_types_dynamic.
5376
7d79de9a
TT
53772020-04-24 Tom Tromey <tromey@adacore.com>
5378
5379 * dwarf2/read.c (handle_data_member_location): New overload.
5380 (dwarf2_add_field): Use it.
5381 (decode_locdesc): Add "computed" parameter. Update comment.
5382 * gdbtypes.c (is_dynamic_type_internal): Also look for
5383 FIELD_LOC_KIND_DWARF_BLOCK.
5384 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5385 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5386 virtual base classes.
5387 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5388 FIELD_LOC_KIND_DWARF_BLOCK.
5389
f8e89861
TT
53902020-04-24 Tom Tromey <tromey@adacore.com>
5391
5392 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5393 * gdbtypes.c (is_dynamic_type_internal): Check
5394 TYPE_HAS_DYNAMIC_LENGTH.
5395 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5396 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5397 New macros.
5398 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5399 constant.
5400
9c6a1327
TT
54012020-04-24 Tom Tromey <tromey@adacore.com>
5402
5403 * dwarf2/read.c (struct variant_field): Rewrite.
5404 (struct variant_part_builder): New.
5405 (struct nextfield): Remove "variant" field. Add "offset".
5406 (struct field_info): Add "current_variant_part" and
5407 "variant_parts".
5408 (alloc_discriminant_info): Remove.
5409 (alloc_rust_variant): New function.
5410 (quirk_rust_enum): Update.
5411 (dwarf2_add_field): Set "offset" member. Don't handle
5412 DW_TAG_variant_part.
5413 (offset_map_type): New typedef.
5414 (convert_variant_range, create_one_variant)
5415 (create_one_variant_part, create_variant_parts)
5416 (add_variant_property): New functions.
5417 (dwarf2_attach_fields_to_type): Call add_variant_property.
5418 (read_structure_type): Don't handle DW_TAG_variant_part.
5419 (handle_variant_part, handle_variant): New functions.
5420 (handle_struct_member_die): Use them.
5421 (process_structure_scope): Don't handle variant parts.
5422 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5423 (struct discriminant_info): Remove.
5424 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5425 (struct main_type) <flag_discriminated_union>: Remove.
5426 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5427 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5428 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5429 Update.
5430 * valops.c (value_union_variant): Remove.
5431 * value.h (value_union_variant): Don't declare.
5432
b249d2c2
TT
54332020-04-24 Tom Tromey <tromey@adacore.com>
5434
5435 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5436 (ada_value_primitive_packed_val): Update.
5437 * ada-valprint.c (ada_value_print_1): Update.
5438 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5439 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5440 just an address. Use evaluate_for_locexpr_baton.
5441 (dwarf2_evaluate_property): Update.
5442 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5443 array_view.
5444 * findvar.c (default_read_var_value): Update.
5445 * gdbtypes.c (compute_variant_fields_inner)
5446 (resolve_dynamic_type_internal): Update.
5447 (resolve_dynamic_type): Change type of valaddr parameter.
5448 * gdbtypes.h (resolve_dynamic_type): Update.
5449 * valarith.c (value_subscripted_rvalue): Update.
5450 * value.c (value_from_contents_and_address): Update.
5451
61122aa9
TT
54522020-04-24 Tom Tromey <tromey@adacore.com>
5453
5454 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5455 "push_initial_value" parameter.
5456 (dwarf2_evaluate_property): Likewise.
5457 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5458
ef83a141
TT
54592020-04-24 Tom Tromey <tromey@adacore.com>
5460
5461 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5462 (variant::matches, compute_variant_fields_recurse)
5463 (compute_variant_fields_inner, compute_variant_fields): New
5464 functions.
5465 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5466 Use resolved_type after type is made.
5467 (operator==): Add new cases.
5468 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5469 (struct discriminant_range, struct variant, struct variant_part):
5470 New.
5471 (union dynamic_prop_data) <variant_parts, original_type>: New
5472 members.
5473 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5474 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5475 constants.
5476 * value.c (unpack_bits_as_long): Now public.
5477 * value.h (unpack_bits_as_long): Declare.
5478
675127ec
TT
54792020-04-24 Tom Tromey <tromey@adacore.com>
5480
5481 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5482 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5483
9852ceef
HD
54842020-04-24 Hannes Domani <ssbssa@yahoo.de>
5485
5486 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5487
7632c6ce
KR
54882020-04-24 Kamil Rytarowski <n54@gmx.com>
5489
5490 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5491 (remove_fork_catchpoint, post_startup_inferior)
5492 (post_attach): Move...
5493 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5494 (remove_fork_catchpoint, post_startup_inferior)
5495 (post_attach): ...here.
5496 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5497 (remove_fork_catchpoint, post_startup_inferior)
5498 (post_attach): Move...
5499 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5500 (remove_fork_catchpoint, post_startup_inferior)
5501 (post_attach): ...here.
5502
7be2bb4f
TT
55032020-04-24 Tom Tromey <tromey@adacore.com>
5504
5505 * nat/windows-nat.h (struct windows_thread_info)
5506 <pc_adjusted>: New member.
5507 * windows-nat.c (windows_fetch_one_register): Check
5508 pc_adjusted.
5509 (windows_nat_target::get_windows_debug_event)
5510 (windows_nat_target::wait): Set pc_adjusted.
5511
f80cb3b4
TV
55122020-04-24 Tom de Vries <tdevries@suse.de>
5513
5514 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5515 Run gdb-add-index inside temp dir.
5516
29514b87
TT
55172020-04-23 Tom Tromey <tromey@adacore.com>
5518
5519 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5520 in loop.
5521
5939967b
LM
55222020-04-23 Luis Machado <luis.machado@linaro.org>
5523
5524 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5525 get_frame_register instead of gdbarch_unwind_pc.
5526
70bc38f5
TV
55272020-04-23 Tom de Vries <tdevries@suse.de>
5528
5529 * symtab.c (lookup_global_symbol): Prefer def over decl.
5530
de82891c
TV
55312020-04-23 Tom de Vries <tdevries@suse.de>
5532
5533 PR symtab/25807
5534 * block.c (best_symbol, better_symbol): Promote to external.
5535 * block.h (best_symbol, better_symbol): Declare.
5536 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5537 decl.
5538
ecc6c606
TT
55392020-04-23 Tom Tromey <tromey@adacore.com>
5540
5541 PR ada/25837:
5542 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5543 "const char *", not a "const std::string &".
5544 <name_and_matcher::operator==>: Update.
5545 * unittests/lookup_name_info-selftests.c: Change type of
5546 "result".
5547
740480b8
TT
55482020-04-23 Tom Tromey <tom@tromey.com>
5549
5550 * inferior.h (iterate_over_inferiors): Don't declare.
5551 * inferior.c (iterate_over_inferiors): Remove.
5552 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5553 Remove.
5554 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5555 use iterate_over_inferiors.
5556 (darwin_resume_inferior_it)
5557 (struct resume_inferior_threads_param)
5558 (darwin_resume_inferior_threads_it): Remove.
5559 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5560
ae3ab1f0
TV
55612020-04-23 Tom de Vries <tdevries@suse.de>
5562
5563 * blockframe.c (find_pc_partial_function): Use
5564 find_pc_sect_compunit_symtab rather than
5565 objfile->sf->qf->find_pc_sect_compunit_symtab.
5566
317d2668
TV
55672020-04-22 Tom de Vries <tdevries@suse.de>
5568
5569 PR symtab/25764
5570 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5571 in psymtabs.
5572
eea9e357
TV
55732020-04-22 Tom de Vries <tdevries@suse.de>
5574
5575 PR symtab/25801
5576 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5577 symtabs.
5578
3d5afab3
TV
55792020-04-22 Tom de Vries <tdevries@suse.de>
5580
5581 PR symtab/25700
5582 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5583 CU if already created.
5584
d43b7a2d
TBA
55852020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5586
5587 * infrun.c (displaced_step_fixup): Switch to the event_thread
5588 before calling displaced_step_restore, not after.
5589
d89edf9b
MM
55902020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5591
5592 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5593 its inferior is not recorded by us.
5594 (record_btrace_target_open): Replace call to
5595 all_non_exited_threads () with call to current_inferior
5596 ()->non_exited_threads ().
5597 (record_btrace_target::stop_recording): Likewise.
5598 (record_btrace_target::close): Likewise.
5599 (record_btrace_target::wait): Likewise.
5600 (record_btrace_target::record_stop_replaying): Likewise.
5601
5897fd49
MM
56022020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5603
5604 * btrace.c (btrace_enable): Throw an error on double enables and
5605 when enabling recording fails.
5606 (btrace_disable): Throw an error if the thread is not recorded.
5607
1a476b6d
MM
56082020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5609
5610 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5611 request if we do not have a thread_info.
5612
4778a5f8
TV
56132020-04-21 Tom de Vries <tdevries@suse.de>
5614
5615 PR gdb/25471
5616 * thread.c
5617 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5618 exception in get_frame_id.
5619
0fa7617d
TT
56202020-04-20 Tom Tromey <tromey@adacore.com>
5621
5622 * python/python.c (struct gdbpy_event): Mark move constructor as
5623 noexcept.
5624 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5625 constructor as noexcept.
5626 * completer.h (struct completion_result): Mark move constructor as
5627 noexcept.
5628 * completer.c (completion_result::completion_result): Use
5629 initialization style. Don't call reset_match_list.
5630
ad23bda0
MS
56312020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5632
5633 * MAINTAINERS (Write After Approval): Add myself.
5634
45e1f031
TT
56352020-04-18 Tom Tromey <tom@tromey.com>
5636
5637 * windows-tdep.c (init_w32_command_list)
5638 (w32_prefix_command_valid): Restore.
5639 (_initialize_windows_tdep): Call init_w32_command_list.
5640
08feed99
TT
56412020-04-18 Tom Tromey <tom@tromey.com>
5642
5643 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5644 * value.c (value_fn_field): Update.
5645 * valops.c (find_function_in_inferior)
5646 (value_allocate_space_in_inferior): Update.
5647 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5648 Update.
5649 * tui/tui-source.c (tui_source_window::set_contents): Update.
5650 * symtab.c (lookup_global_or_static_symbol)
5651 (find_function_start_sal_1, skip_prologue_sal)
5652 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5653 * symmisc.c (dump_msymbols, dump_symtab_1)
5654 (maintenance_print_one_line_table): Update.
5655 * symfile.c (init_entry_point_info, section_is_mapped)
5656 (list_overlays_command, simple_read_overlay_table)
5657 (simple_overlay_update_1): Update.
5658 * stap-probe.c (handle_stap_probe): Update.
5659 * stabsread.c (dbx_init_float_type, define_symbol)
5660 (read_one_struct_field, read_enum_type, read_range_type): Update.
5661 * source.c (info_line_command): Update.
5662 * python/python.c (gdbpy_source_objfile_script)
5663 (gdbpy_execute_objfile_script): Update.
5664 * python/py-type.c (save_objfile_types): Update.
5665 * python/py-objfile.c (py_free_objfile): Update.
5666 * python/py-inferior.c (python_new_objfile): Update.
5667 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5668 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5669 (maintenance_check_psymtabs): Update.
5670 * printcmd.c (info_address_command): Update.
5671 * objfiles.h (struct objfile) <arch>: New method, from
5672 get_objfile_arch.
5673 (get_objfile_arch): Don't declare.
5674 * objfiles.c (get_objfile_arch): Remove.
5675 (filter_overlapping_sections): Update.
5676 * minsyms.c (msymbol_is_function): Update.
5677 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5678 (output_nondebug_symbol): Update.
5679 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5680 (mdebug_expand_psymtab): Update.
5681 * machoread.c (macho_add_oso_symfile): Update.
5682 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5683 Update.
5684 * linux-fork.c (checkpoint_command): Update.
5685 * linespec.c (convert_linespec_to_sals): Update.
5686 * jit.c (finalize_symtab): Update.
5687 * infrun.c (insert_exception_resume_from_probe): Update.
5688 * ia64-tdep.c (ia64_find_unwind_table): Update.
5689 * hppa-tdep.c (internalize_unwinds): Update.
5690 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5691 Update.
5692 * gcore.c (call_target_sbrk): Update.
5693 * elfread.c (record_minimal_symbol, elf_symtab_read)
5694 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5695 (elf_gnu_ifunc_resolve_by_got): Update.
5696 * dwarf2/read.c (create_addrmap_from_index)
5697 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5698 (read_debug_names_from_section)
5699 (process_psymtab_comp_unit_reader, add_partial_symbol)
5700 (add_partial_subprogram, process_full_comp_unit)
5701 (read_file_scope, read_func_scope, read_lexical_block_scope)
5702 (read_call_site_scope, dwarf2_ranges_read)
5703 (dwarf2_record_block_ranges, dwarf2_add_field)
5704 (mark_common_block_symbol_computed, read_tag_pointer_type)
5705 (read_tag_string_type, dwarf2_init_float_type)
5706 (dwarf2_init_complex_target_type, read_base_type)
5707 (partial_die_info::read, partial_die_info::read)
5708 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5709 (dwarf2_fetch_die_loc_sect_off): Update.
5710 * dwarf2/loc.c (dwarf2_find_location_expression)
5711 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5712 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5713 (dwarf2_loc_desc_get_symbol_read_needs)
5714 (locexpr_describe_location_piece, locexpr_describe_location_1)
5715 (loclist_describe_location): Update.
5716 * dwarf2/index-write.c (write_debug_names): Update.
5717 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5718 * dtrace-probe.c (dtrace_process_dof): Update.
5719 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5720 (process_one_symbol): Update.
5721 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5722 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5723 (coff_read_enum_type): Update.
5724 * cli/cli-cmds.c (edit_command, list_command): Update.
5725 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5726 * breakpoint.c (create_overlay_event_breakpoint)
5727 (create_longjmp_master_breakpoint)
5728 (create_std_terminate_master_breakpoint)
5729 (create_exception_master_breakpoint, get_sal_arch): Update.
5730 * block.c (block_gdbarch): Update.
5731 * annotate.c (annotate_source_line): Update.
5732
0743fc83
TT
57332020-04-17 Tom Tromey <tromey@adacore.com>
5734
5735 * auto-load.c (show_auto_load_cmd): Remove.
5736 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5737 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5738 (maintenance_print_arc_command): Remove.
5739 * tui/tui-win.c (tui_command): Remove.
5740 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5741 * tui/tui-layout.c (tui_layout_command): Remove.
5742 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5743 * python/python.c (user_set_python, user_show_python): Remove.
5744 (_initialize_python): Use add_basic_prefix_cmd,
5745 add_show_prefix_cmd.
5746 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5747 (install_gdb_commands): Use add_basic_prefix_cmd,
5748 add_show_prefix_cmd.
5749 (info_guile_command): Remove.
5750 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5751 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5752 add_show_prefix_cmd.
5753 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5754 Remove do_set and do_show parameters.
5755 * cli/cli-style.c (set_style, show_style): Remove.
5756 (_initialize_cli_style): Use add_basic_prefix_cmd,
5757 add_show_prefix_cmd.
5758 (cli_style_option::add_setshow_commands): Remove do_set and
5759 do_show parameters.
5760 (cli_style_option::add_setshow_commands): Use
5761 add_basic_prefix_cmd, add_show_prefix_cmd.
5762 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5763 (set_style_name): Remove.
5764 * cli/cli-dump.c (dump_command, append_command): Remove.
5765 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5766 (tekhex_dump_command, binary_dump_command)
5767 (binary_append_command): Remove.
5768 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5769 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5770 (init_w32_command_list): Remove; move into ...
5771 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5772 * valprint.c (set_print, show_print, set_print_raw)
5773 (show_print_raw): Remove.
5774 (_initialize_valprint): Use add_basic_prefix_cmd,
5775 add_show_prefix_cmd.
5776 * typeprint.c (set_print_type, show_print_type): Remove.
5777 (_initialize_typeprint): Use add_basic_prefix_cmd,
5778 add_show_prefix_cmd.
5779 * record.c (set_record_command, show_record_command): Remove.
5780 (_initialize_record): Use add_basic_prefix_cmd,
5781 add_show_prefix_cmd.
5782 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5783 add_show_prefix_cmd.
5784 (info_command, show_command, set_debug, show_debug): Remove.
5785 * top.h (set_history, show_history): Don't declare.
5786 * top.c (set_history, show_history): Remove.
5787 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5788 (unset_tdesc_cmd): Remove.
5789 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5790 add_show_prefix_cmd.
5791 * symtab.c (info_module_command): Remove.
5792 (_initialize_symtab): Use add_basic_prefix_cmd.
5793 * symfile.c (overlay_command): Remove.
5794 (_initialize_symfile): Use add_basic_prefix_cmd.
5795 * sparc64-tdep.c (info_adi_command): Remove.
5796 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5797 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5798 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5799 add_show_prefix_cmd.
5800 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5801 (_initialize_serial): Use add_basic_prefix_cmd,
5802 add_show_prefix_cmd.
5803 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5804 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5805 add_show_prefix_cmd.
5806 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5807 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5808 add_show_prefix_cmd.
5809 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5810 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5811 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5812 add_show_prefix_cmd.
5813 * remote.c (remote_command, set_remote_cmd): Remove.
5814 (_initialize_remote): Use add_basic_prefix_cmd.
5815 * record-full.c (set_record_full_command)
5816 (show_record_full_command): Remove.
5817 (_initialize_record_full): Use add_basic_prefix_cmd,
5818 add_show_prefix_cmd.
5819 * record-btrace.c (cmd_set_record_btrace)
5820 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5821 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5822 (cmd_show_record_btrace_pt): Remove.
5823 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5824 add_show_prefix_cmd.
5825 * ravenscar-thread.c (set_ravenscar_command)
5826 (show_ravenscar_command): Remove.
5827 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5828 add_show_prefix_cmd.
5829 * mips-tdep.c (show_mips_command, set_mips_command)
5830 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5831 add_show_prefix_cmd.
5832 * maint.c (maintenance_command, maintenance_info_command)
5833 (maintenance_check_command, maintenance_print_command)
5834 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5835 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5836 add_show_prefix_cmd.
5837 (show_per_command_cmd): Remove.
5838 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5839 Remove.
5840 (maintenance_show_test_settings_cmd): Remove.
5841 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5842 add_show_prefix_cmd.
5843 * maint-test-options.c (maintenance_test_options_command):
5844 Remove.
5845 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5846 * macrocmd.c (macro_command): Remove
5847 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5848 * language.c (set_check, show_check): Remove.
5849 (_initialize_language): Use add_basic_prefix_cmd,
5850 add_show_prefix_cmd.
5851 * infcmd.c (unset_command): Remove.
5852 (_initialize_infcmd): Use add_basic_prefix_cmd.
5853 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5854 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5855 add_show_prefix_cmd.
5856 * go32-nat.c (go32_info_dos_command): Remove.
5857 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5858 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5859 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5860 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5861 (_initialize_frame): Use add_basic_prefix_cmd,
5862 add_show_prefix_cmd.
5863 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5864 (_initialize_dcache): Use add_basic_prefix_cmd,
5865 add_show_prefix_cmd.
5866 * cp-support.c (maint_cplus_command): Remove.
5867 (_initialize_cp_support): Use add_basic_prefix_cmd.
5868 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5869 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5870 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5871 add_basic_prefix_cmd, add_show_prefix_cmd.
5872 * breakpoint.c (save_command): Remove.
5873 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5874 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5875 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5876 add_show_prefix_cmd.
5877 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5878 (set_ada_command, show_ada_command): Remove.
5879 (_initialize_ada_language): Use add_basic_prefix_cmd,
5880 add_show_prefix_cmd.
5881 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5882
3557f442
KR
58832020-04-16 Kamil Rytarowski <n54@gmx.com>
5884
5885 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5886 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5887
16197208
SM
58882020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5889
5890 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5891 warning messages.
5892
00ac85d3
SM
58932020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5894
5895 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5896 import table is not at beginning of .idata section.
5897
381ce63f
PA
58982020-04-16 Pedro Alves <palves@redhat.com>
5899
5900 * inferior.c (delete_inferior): Use delete operator directly
5901 instead of delete_program_space.
5902 * progspace.c (add_program_space): New, factored out from
5903 program_space::program_space.
5904 (remove_program_space): New, factored out from
5905 delete_program_space.
5906 (program_space::program_space): Remove intro comment. Rewrite.
5907 (program_space::~program_space): Remove intro comment. Call
5908 remove_program_space.
5909 (delete_program_space): Delete.
5910 * progspace.h (program_space::program_space): Make explicit. Move
5911 intro comment here, adjusted.
5912 (program_space::~program_space): Move intro comment here,
5913 adjusted.
5914 (delete_program_space): Remove.
5915
a010605f
TT
59162020-04-16 Tom Tromey <tromey@adacore.com>
5917
5918 * windows-nat.c (windows_nat::handle_access_violation): New
5919 function.
5920 * nat/windows-nat.h (handle_access_violation): Declare.
5921 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5922 windows-nat.c. Call handle_access_violation.
5923
efba5c23
TV
59242020-04-16 Tom de Vries <tdevries@suse.de>
5925
5926 PR symtab/25791
5927 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5928 CUs without psymtab.
5929
97ed802d
KB
59302020-04-16 Kevin Buettner <kevinb@redhat.com>
5931
5932 * python/python.c (do_start_initialization): Don't call
5933 PyEval_InitThreads for Python 3.9 and beyond.
5934
c7d64809
KR
59352020-04-15 Kamil Rytarowski <n54@gmx.com>
5936
5937 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5938 thread functions.
5939 (obsd_nat_target::wait): Likewise.
5940
ce127a96
TT
59412020-04-15 Tom Tromey <tromey@adacore.com>
5942
5943 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5944 (DEBUG_EXCEPT): Use debug_printf.
5945
99f1bc6a
AB
59462020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5947
5948 * completer.c (class completion_tracker::completion_hash_entry)
5949 <hash_name>: New member function.
5950 (completion_tracker::discard_completions): New callback to hash a
5951 completion_hash_entry, pass this to htab_create_alloc.
5952
a0e9b532
JT
59532016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
5954
5955 * windows-nat.c (windows_make_so): Warn rather than stopping with
5956 an error if realpath() fails.
5957
06ca5dd4
KR
59582020-04-14 Kamil Rytarowski <n54@gmx.com>
5959
5960 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
5961 (nbsd_nat_target::info_proc): Add do_status.
5962
194d088f
TV
59632020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
5964 Tom de Vries <tdevries@suse.de>
5965
5966 PR symtab/25718
5967 * psympriv.h (struct partial_symtab::read_symtab)
5968 (struct partial_symtab::expand_psymtab)
5969 (struct partial_symtab::read_dependencies): Update comments.
5970 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
5971 read_symtab for includer.
5972 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
5973 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
5974 (struct dwarf2_include_psymtab::m_readin): Remove.
5975 (struct dwarf2_include_psymtab::includer): New member function.
5976 (dwarf2_psymtab::expand_psymtab): Assert !readin.
5977
c1a66c06
TV
59782020-04-14 Tom de Vries <tdevries@suse.de>
5979
5980 PR symtab/25720
5981 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
5982 with NULL symbol_matcher and lookup_name.
5983 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
5984 and lookup_name.
5985 * dwarf2/read.c (dw2_expand_symtabs_matching)
5986 (dw2_debug_names_expand_symtabs_matching): Same.
5987 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
5988 Make lookup_name a pointer. Update comment.
5989 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
5990 lookup_name being a pointer.
5991 * symfile.c (expand_symtabs_matching): Same.
5992 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
5993 * linespec.c (iterate_over_all_matching_symtabs): Same.
5994
400b5eca
TT
59952020-04-13 Tom Tromey <tom@tromey.com>
5996
5997 * run-on-main-thread.c: Update include.
5998 * unittests/main-thread-selftests.c: Update include.
5999 * tui/tui-win.c: Update include.
6000 * tui/tui-io.c: Update include.
6001 * tui/tui-interp.c: Update include.
6002 * tui/tui-hooks.c: Update include.
6003 * top.h: Update include.
6004 * top.c: Update include.
6005 * ser-base.c: Update include.
6006 * remote.c: Update include.
6007 * remote-notif.c: Update include.
6008 * remote-fileio.c: Update include.
6009 * record-full.c: Update include.
6010 * record-btrace.c: Update include.
6011 * python/python.c: Update include.
6012 * posix-hdep.c: Update include.
6013 * mingw-hdep.c: Update include.
6014 * mi/mi-main.c: Update include.
6015 * mi/mi-interp.c: Update include.
6016 * main.c: Update include.
6017 * linux-nat.c: Update include.
6018 * interps.c: Update include.
6019 * infrun.c: Update include.
6020 * inf-loop.c: Update include.
6021 * event-top.c: Update include.
6022 * event-loop.c: Move to ../gdbsupport/.
6023 * event-loop.h: Move to ../gdbsupport/.
6024 * async-event.h: Update include.
6025 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6026
93b54c8e
TT
60272020-04-13 Tom Tromey <tom@tromey.com>
6028
6029 * tui/tui-win.c: Include async-event.h.
6030 * remote.c: Include async-event.h.
6031 * remote-notif.c: Include async-event.h.
6032 * record-full.c: Include async-event.h.
6033 * record-btrace.c: Include async-event.h.
6034 * infrun.c: Include async-event.h.
6035 * event-top.c: Include async-event.h.
6036 * event-loop.h: Move some declarations to async-event.h.
6037 * event-loop.c: Don't include ser-event.h or top.h. Move some
6038 code to async-event.c.
6039 * async-event.h: New file.
6040 * async-event.c: New file.
6041 * Makefile.in (COMMON_SFILES): Add async-event.c.
6042 (HFILES_NO_SRCDIR): Add async-event.h.
6043
c1cd3163
TT
60442020-04-13 Tom Tromey <tom@tromey.com>
6045
6046 * utils.c (flush_streams): New function.
6047 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6048
29f2bf4f
TT
60492020-04-13 Tom Tromey <tom@tromey.com>
6050
6051 * event-loop.c (handle_file_event): Use warning, not
6052 printf_unfiltered.
6053
98029d02
TT
60542020-04-13 Tom Tromey <tom@tromey.com>
6055
6056 * event-loop.c: Include <chrono>.
6057
06cc9596
TT
60582020-04-13 Tom Tromey <tom@tromey.com>
6059
6060 * gdb_select.h: Move to ../gdbsupport/.
6061 * event-loop.c: Update include path.
6062 * top.c: Update include path.
6063 * ser-base.c: Update include path.
6064 * ui-file.c: Update include path.
6065 * ser-tcp.c: Update include path.
6066 * guile/scm-ports.c: Update include path.
6067 * posix-hdep.c: Update include path.
6068 * ser-unix.c: Update include path.
6069 * gdb_usleep.c: Update include path.
6070 * mingw-hdep.c: Update include path.
6071 * inflow.c: Update include path.
6072 * infrun.c: Update include path.
6073 * event-top.c: Update include path.
6074
8ae8e197
TT
60752020-04-13 Tom Tromey <tom@tromey.com>
6076
6077 * configure: Rebuild.
6078 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6079
58cf28e8
TT
60802020-04-13 Tom Tromey <tom@tromey.com>
6081
6082 * event-loop.h (start_event_loop): Don't declare.
6083 * event-loop.c (start_event_loop): Move...
6084 * main.c (start_event_loop): ...here. Now static.
6085
b7f999ae
SDJ
60862020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6087
6088 * MAINTAINERS: Update my email address.
6089
1085dfd4
KR
60902020-04-12 Kamil Rytarowski <n54@gmx.com>
6091
6092 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6093 IP_ALL.
6094
49d1d1f5
KR
60952020-04-12 Kamil Rytarowski <n54@gmx.com>
6096
6097 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6098 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6099
b4848d2a
KR
61002020-04-12 Kamil Rytarowski <n54@gmx.com>
6101
6102 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6103 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6104
51c133d5
KR
61052020-04-12 Kamil Rytarowski <n54@gmx.com>
6106
6107 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6108
54b8cbd0
KR
61092020-04-11 Kamil Rytarowski <n54@gmx.com>
6110
6111 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6112 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6113 (nbsd_nat_target::info_proc): New functions.
6114 * nbsd-nat.c (kinfo_get_vmmap): New function.
6115 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6116 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6117 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6118 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6119 functions.
6120 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6121 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6122 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6123 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6124 (KINFO_VME_FLAG_GROWS_DOWN): New.
6125
cf83625d
AS
61262020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6127
6128 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6129 bit shift.
6130
0c4311ab
TT
61312020-04-10 Tom Tromey <tromey@adacore.com>
6132
6133 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6134
3e65b3e9
TT
61352020-04-10 Tom Tromey <tromey@adacore.com>
6136
6137 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6138 separate debug files.
6139
13302e95
HD
61402020-04-10 Hannes Domani <ssbssa@yahoo.de>
6141
6142 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6143 Move to...
6144 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6145 ... here.
6146 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6147 Check for STATUS_WX86_BREAKPOINT.
6148 (windows_nat_target::wait): Same.
6149
bdfc1e8a
TV
61502020-04-10 Tom de Vries <tdevries@suse.de>
6151
6152 PR cli/25808
6153 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6154
f4460aec
SM
61552020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6158 (Write After Approval): Remove Tom de Vries.
6159
a25198bb
BE
61602020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6161
6162 revert partially:
6163 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6164
aac66a4c
SM
6165 * buildsym.c (record_line): Fix undefined behavior and preserve
6166 lines at eof.
a25198bb 6167
206c98a6
KR
61682020-04-09 Kamil Rytarowski <n54@gmx.com>
6169
6170 * auxv.h (svr4_auxv_parse): New.
6171 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6172 and generic_auxv_parse.
6173 (svr4_auxv_parse): Add.
6174 * obsd-tdep.c: Include "auxv.h".
6175 (obsd_auxv_parse): Remove.
6176 (obsd_init_abi): Remove comment.
6177 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6178 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6179 * nbsd-tdep.c: Include "auxv.h".
6180 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6181
71fbdbaf
TT
61822020-04-08 Tom Tromey <tromey@adacore.com>
6183
6184 * nat/windows-nat.h (last_wait_event): Don't declare.
6185 (wait_for_debug_event): Update comment.
6186 * nat/windows-nat.c (last_wait_event): Now static.
6187
2c1d95e8
TT
61882020-04-08 Tom Tromey <tromey@adacore.com>
6189
6190 * windows-nat.c (wait_for_debug_event): Move to
6191 nat/windows-nat.c.
6192 * nat/windows-nat.h (wait_for_debug_event): Declare.
6193 * nat/windows-nat.c (wait_for_debug_event): Move from
6194 windows-nat.c. No longer static.
6195
d2977bc4
TT
61962020-04-08 Tom Tromey <tromey@adacore.com>
6197
6198 * windows-nat.c (get_windows_debug_event): Use
6199 fetch_pending_stop.
6200 * nat/windows-nat.h (fetch_pending_stop): Declare.
6201 * nat/windows-nat.c (fetch_pending_stop): New function.
6202
e758e19c
TT
62032020-04-08 Tom Tromey <tromey@adacore.com>
6204
6205 * windows-nat.c (windows_continue): Use matching_pending_stop and
6206 continue_last_debug_event.
6207 * nat/windows-nat.h (matching_pending_stop)
6208 (continue_last_debug_event): Declare.
6209 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6210 (matching_pending_stop, continue_last_debug_event): New
6211 functions.
6212
8d30e395
TT
62132020-04-08 Tom Tromey <tromey@adacore.com>
6214
6215 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6216 (handle_exception_result): Move to nat/windows-nat.h.
6217 (DEBUG_EXCEPTION_SIMPLE): Remove.
6218 (windows_nat::handle_ms_vc_exception): New function.
6219 (handle_exception): Move to nat/windows-nat.c.
6220 (get_windows_debug_event): Update.
6221 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6222 nat/windows-nat.c.
6223 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6224 (handle_exception_result): Move from windows-nat.c.
6225 (handle_exception): Declare.
6226 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6227 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6228 windows-nat.c.
6229
29de418d
TT
62302020-04-08 Tom Tromey <tromey@adacore.com>
6231
6232 * windows-nat.c (exception_count, event_count): Remove.
6233 (handle_exception, get_windows_debug_event)
6234 (do_initial_windows_stuff): Update.
6235
a816ba18
TT
62362020-04-08 Tom Tromey <tromey@adacore.com>
6237
6238 * windows-nat.c (windows_nat::handle_load_dll)
6239 (windows_nat::handle_unload_dll): Rename. No longer static.
6240 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6241 Declare.
6242
a00caa12
TT
62432020-04-08 Tom Tromey <tromey@adacore.com>
6244
6245 * complaints.h (stop_whining): Declare at top-level.
6246 (complaint): Don't declare stop_whining.
6247
d41b524f
TT
62482020-04-08 Tom Tromey <tromey@adacore.com>
6249
6250 * windows-nat.c (windows_nat::handle_output_debug_string):
6251 Rename. No longer static.
6252 * nat/windows-nat.h (handle_output_debug_string): Declare.
6253
3c76026d
TT
62542020-04-08 Tom Tromey <tromey@adacore.com>
6255
6256 * windows-nat.c (current_process_handle, current_process_id)
6257 (main_thread_id, last_sig, current_event, last_wait_event)
6258 (current_windows_thread, desired_stop_thread_id, pending_stops)
6259 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6260 (display_selectors, fake_create_process)
6261 (get_windows_debug_event): Update.
6262 * nat/windows-nat.h (current_process_handle, current_process_id)
6263 (main_thread_id, last_sig, current_event, last_wait_event)
6264 (current_windows_thread, desired_stop_thread_id, pending_stops)
6265 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6266 * nat/windows-nat.c (current_process_handle, current_process_id)
6267 (main_thread_id, last_sig, current_event, last_wait_event)
6268 (current_windows_thread, desired_stop_thread_id, pending_stops)
6269 (siginfo_er): New globals. Move from windows-nat.c.
6270
9d8679cc
TT
62712020-04-08 Tom Tromey <tromey@adacore.com>
6272
6273 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6274 (handle_load_dll): Update.
6275 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6276
28688adf
TT
62772020-04-08 Tom Tromey <tromey@adacore.com>
6278
6279 * windows-nat.c (enum thread_disposition_type): Move to
6280 nat/windows-nat.h.
6281 (windows_nat::thread_rec): Rename from thread_rec. No longer
6282 static.
6283 (windows_add_thread, windows_nat_target::fetch_registers)
6284 (windows_nat_target::store_registers, handle_exception)
6285 (windows_nat_target::resume, get_windows_debug_event)
6286 (windows_nat_target::get_tib_address)
6287 (windows_nat_target::thread_name)
6288 (windows_nat_target::thread_alive): Update.
6289 * nat/windows-nat.h (enum thread_disposition_type): Move from
6290 windows-nat.c.
6291 (thread_rec): Declare.
6292
4834dad0
TT
62932020-04-08 Tom Tromey <tromey@adacore.com>
6294
6295 * windows-nat.c: Add "using namespace".
6296 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6297 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6298
65bafd5b
TT
62992020-04-08 Tom Tromey <tromey@adacore.com>
6300
6301 * nat/windows-nat.h (struct windows_thread_info): Declare
6302 destructor.
6303 * nat/windows-nat.c (~windows_thread_info): New.
6304
0a4afda3
TT
63052020-04-08 Tom Tromey <tromey@adacore.com>
6306
6307 PR gdb/22992
6308 * windows-nat.c (current_event): Update comment.
6309 (last_wait_event, desired_stop_thread_id): New globals.
6310 (struct pending_stop): New.
6311 (pending_stops): New global.
6312 (windows_nat_target) <stopped_by_sw_breakpoint>
6313 <supports_stopped_by_sw_breakpoint>: New methods.
6314 (windows_fetch_one_register): Add assertions. Adjust PC.
6315 (windows_continue): Handle pending stops. Suspend other threads
6316 when stepping. Use last_wait_event
6317 (wait_for_debug_event): New function.
6318 (get_windows_debug_event): Use wait_for_debug_event. Handle
6319 pending stops. Queue spurious stops.
6320 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6321 (windows_nat_target::kill): Use wait_for_debug_event.
6322 * nat/windows-nat.h (struct windows_thread_info)
6323 <stopped_at_software_breakpoint>: New field.
6324 * nat/windows-nat.c (windows_thread_info::resume): Clear
6325 stopped_at_software_breakpoint.
6326
8e61ebec
TT
63272020-04-08 Tom Tromey <tromey@adacore.com>
6328
6329 * windows-nat.c (enum thread_disposition_type): New.
6330 (thread_rec): Replace "get_context" parameter with "disposition";
6331 change type.
6332 (windows_add_thread, windows_nat_target::fetch_registers)
6333 (windows_nat_target::store_registers, handle_exception)
6334 (windows_nat_target::resume, get_windows_debug_event)
6335 (windows_nat_target::get_tib_address)
6336 (windows_nat_target::thread_name)
6337 (windows_nat_target::thread_alive): Update.
6338
98a03287
TT
63392020-04-08 Tom Tromey <tromey@adacore.com>
6340
6341 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6342 (windows_continue): Use windows_continue::resume.
6343 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6344 resume>: Declare new methods.
6345 * nat/windows-nat.c: New file.
6346 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6347
7c7411bc
TT
63482020-04-08 Tom Tromey <tromey@adacore.com>
6349
6350 * windows-nat.c (windows_add_thread, windows_delete_thread)
6351 (windows_nat_target::fetch_registers)
6352 (windows_nat_target::store_registers, fake_create_process)
6353 (windows_nat_target::resume, windows_nat_target::resume)
6354 (get_windows_debug_event, windows_nat_target::wait)
6355 (windows_nat_target::pid_to_str)
6356 (windows_nat_target::get_tib_address)
6357 (windows_nat_target::get_ada_task_ptid)
6358 (windows_nat_target::thread_name)
6359 (windows_nat_target::thread_alive): Use lwp, not tid.
6360
2950fdf7
TT
63612020-04-08 Tom Tromey <tromey@adacore.com>
6362
6363 * windows-nat.c (handle_exception)
6364 (windows_nat_target::thread_name): Update.
6365 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6366 <name>: Now unique_xmalloc_ptr.
6367
62fe396b
TT
63682020-04-08 Tom Tromey <tromey@adacore.com>
6369
6370 * windows-nat.c (thread_rec)
6371 (windows_nat_target::fetch_registers): Update.
6372 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6373 Update comment.
6374 <debug_registers_changed, reload_context>: Now bool.
6375
e9534bd2
TT
63762020-04-08 Tom Tromey <tromey@adacore.com>
6377
6378 * windows-nat.c (windows_add_thread): Use new.
6379 (windows_init_thread_list, windows_delete_thread): Use delete.
6380 (get_windows_debug_event): Update.
6381 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6382 destructor, and initializers.
6383
ae1f8880
TT
63842020-04-08 Tom Tromey <tromey@adacore.com>
6385
6386 * windows-nat.c (struct windows_thread_info): Remove.
6387 * nat/windows-nat.h: New file.
6388
55a1e039
TT
63892020-04-08 Tom Tromey <tromey@adacore.com>
6390
6391 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6392 (thread_rec, windows_add_thread, windows_delete_thread)
6393 (windows_continue): Update.
6394
93366324
TT
63952020-04-08 Tom Tromey <tromey@adacore.com>
6396
6397 * windows-nat.c (struct windows_thread_info): Remove typedef.
6398 (thread_head): Remove.
6399 (thread_list): New global.
6400 (thread_rec, windows_add_thread, windows_init_thread_list)
6401 (windows_delete_thread, windows_continue): Update.
6402
0f2265e2
SM
64032020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6404
6405 * windows-tdep.h (windows_init_abi): Add comment.
6406 (cygwin_init_abi): New declaration.
6407 * windows-tdep.c: Split signal enumeration in two, one for
6408 Windows and one for Cygwin.
6409 (windows_gdb_signal_to_target): Only deal with signal of the
6410 Windows OS ABI.
6411 (cygwin_gdb_signal_to_target): New function.
6412 (windows_init_abi): Rename to windows_init_abi_common, don't set
6413 gdb_signal_to_target gdbarch method. Add new new function with
6414 this name.
6415 (cygwin_init_abi): New function.
6416 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6417 comment. Don't call windows_init_abi.
6418 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6419 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6420 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6421 i386_windows_init_abi_common, don't call windows_init_abi. Add
6422 a new function of this name.
6423 (i386_cygwin_init_abi): New function.
6424 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6425 OS ABI Cygwin.
6426
3810f182
SM
64272020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6428
6429 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6430 parameter.c.
6431 (dwarf2_read_gdb_index): Update.
6432
063f8e80
KR
64332020-04-07 Kamil Rytarowski <n54@gmx.com>
6434
6435 * nbsd-tdep.c: Include "objfiles.h".
6436 (nbsd_skip_solib_resolver): New.
6437 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6438
85a9510c 64392020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6440
6441 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6442 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6443 with DW_LLE_base_addressx are being emitted in DWARFv5.
6444 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6445 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6446 unsigned integer.
6447
9fc3eaae 64482020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6449
6450 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6451 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6452 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6453 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6454 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6455 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6456 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6457
6458
41144253 64592020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6460
6461 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6462 (read_loclist_index): New function definition.
6463 (lookup_loclist_base): New function definition.
6464 (read_loclist_header): New function definition.
6465 (dwarf2_cu): Add loclist_base and loclist_header field.
6466 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6467 (read_full_die_1): Read the value of DW_AT_loclists_base.
6468 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6469 (read_attribute_value): Handle DW_FORM_loclistx.
6470 (skip_one_die): Handle DW_FORM_loclistx.
6471 (loclist_header): New structure declaration.
6472 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6473
9f4e76a4
SM
64742020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6475
6476 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6477 constructor. Remove `addr` parameter from other constructor and
6478 add `per_cu` parameter.
6479 * dwarf2/read.c (create_partial_symtab): Update.
6480
25c11aca
TV
64812020-04-07 Tom de Vries <tdevries@suse.de>
6482
6483 PR symtab/25796
6484 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6485 (partial_die_info::fixup): Inherit has_const_value.
6486
5707e24b
TV
64872020-04-07 Tom de Vries <tdevries@suse.de>
6488
6489 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6490 symbols without address.
6491
05f00e22
KR
64922020-04-06 Kamil Rytarowski <n54@gmx.com>
6493
6494 * nbsd-nat.h (struct thread_info): Add forward declaration.
6495 (nbsd_nat_target::thread_alive): Add.
6496 (nbsd_nat_target::thread_name): Likewise.
6497 (nbsd_nat_target::update_thread_list): Likewise.
6498 (update_thread_list::post_attach): Likewise.
6499 (post_attach::pid_to_str): Likewise.
6500 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6501 (nbsd_thread_lister): Add.
6502 (nbsd_nat_target::thread_alive): Likewise.
6503 (nbsd_nat_target::thread_name): Likewise.
6504 (nbsd_add_threads): Likewise.
6505 (update_thread_list::post_attach): Likewise.
6506 (nbsd_nat_target::update_thread_list): Likewise.
6507 (post_attach::pid_to_str): Likewise.
6508
6ee448cc
TT
65092020-04-06 Tom Tromey <tromey@adacore.com>
6510
6511 * ada-valprint.c (print_variant_part): Extract the variant field.
6512 (print_field_values): Use the field as the outer value when
6513 recursing.
6514
dea34e8c
TT
65152020-04-06 Tom Tromey <tromey@adacore.com>
6516
6517 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6518 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6519 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6520 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6521 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6522
93689ce9
TT
65232020-04-06 Tom Tromey <tromey@adacore.com>
6524
6525 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6526 TYPE_CODE_ERROR.
6527
79743962
KR
65282020-04-06 Kamil Rytarowski <n54@gmx.com>
6529
6530 * nbsd-tdep.c: Include "gdbarch.h".
6531 Define enum with NetBSD signal numbers.
6532 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6533 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6534 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6535 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6536 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6537 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6538 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6539 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6540 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6541 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6542 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6543 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6544
9e7c9a03
HD
65452020-04-03 Hannes Domani <ssbssa@yahoo.de>
6546
6547 PR gdb/25325
6548 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6549
d9e49b61
TT
65502020-04-03 Tom Tromey <tromey@adacore.com>
6551
6552 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6553 Read constant block.
6554
e0fc5c3f
SM
65552020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6556
6557 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6558 (gdb_bfd_get_full_section_contents): New declaration.
6559 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6560 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6561 gdb_bfd_get_full_section_contents.
6562
e2ff18a0
SM
65632020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * exec.c (build_section_table): Replace internal_error with
6566 gdb_assert.
6567 (section_table_xfer_memory_partial): Likewise.
6568 * mdebugread.c (parse_partial_symbols): Likewise.
6569 * psymtab.c (lookup_partial_symbol): Likewise.
6570 * utils.c (wrap_here): Likewise.
6571
0830d301
TT
65722020-04-02 Tom Tromey <tromey@adacore.com>
6573
6574 * f-lang.c (build_fortran_types): Use arch_type to initialize
6575 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6576
e7da7f8f
TT
65772020-04-02 Tom Tromey <tromey@adacore.com>
6578
6579 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6580 of attributes.
6581
c90d28ac
AB
65822020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6583 Bernd Edlinger <bernd.edlinger@hotmail.de>
6584 Tom Tromey <tromey@adacore.com>
6585
6586 * buildsym.c (buildsym_compunit::record_line): Remove
6587 deduplication code.
6588
1aa98955
TV
65892020-04-02 Tom de Vries <tdevries@suse.de>
6590
6591 PR ada/24671
6592 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6593
d3214198
TV
65942020-04-02 Tom de Vries <tdevries@suse.de>
6595
6596 * dwarf2/read.c (dwarf2_gdb_index_functions,
6597 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6598 NULL.
6599 * psymtab.c (psym_lookup_global_symbol_language): New function.
6600 (psym_functions): Init psym_lookup_global_symbol_language with
6601 psym_lookup_global_symbol_language.
6602 * symfile-debug.c (debug_sym_quick_functions): Init
6603 lookup_global_symbol_language with NULL.
6604 * symfile.c (set_initial_language): Remove fixme comment.
6605 * symfile.h (struct quick_symbol_functions): Add
6606 lookup_global_symbol_language.
6607 * symtab.c (find_quick_global_symbol_language): New function.
6608 (find_main_name): Use find_quick_global_symbol_language.
6609
2836752f
SM
66102020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6611
6612 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6613
64dc2d4b
BE
66142020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6615
6616 * buildsym.c (record_line): Fix undefined behavior and preserve
6617 lines at eof.
6618
bbe3dc41
BE
66192020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6620
6621 * buildsym.c (record_line): Fix the resizing condition.
6622
6b4a335b
TT
66232020-04-01 Tom Tromey <tom@tromey.com>
6624
6625 * value.h (value_literal_complex): Add comment.
6626 * valops.c (value_literal_complex): Refer to value.h.
6627
3638a098
TT
66282020-04-01 Tom Tromey <tom@tromey.com>
6629
6630 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6631 (scalar_type): New rule, from typebase.
6632 (typebase): Use scalar_type. Recognize complex types.
6633 (field_name): Handle FLOAT_KEYWORD.
6634 (ident_tokens): Add _Complex and __complex__.
6635
c34e8714
TT
66362020-04-01 Tom Tromey <tom@tromey.com>
6637
6638 PR exp/25299:
6639 * valarith.c (promotion_type, complex_binop): New functions.
6640 (scalar_binop): Handle complex numbers. Use promotion_type.
6641 (value_pos, value_neg, value_complement): Handle complex numbers.
6642
fa649bb7
TT
66432020-04-01 Tom Tromey <tom@tromey.com>
6644
6645 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6646 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6647 (parse_number): Handle complex numbers.
6648
981c08ce
TT
66492020-04-01 Tom Tromey <tom@tromey.com>
6650
6651 * c-valprint.c (c_decorations): Change complex suffix to "i".
6652
4c99290d
TT
66532020-04-01 Tom Tromey <tom@tromey.com>
6654
6655 * valprint.c (generic_value_print_complex): Use accessors.
6656 * value.h (value_real_part, value_imaginary_part): Declare.
6657 * valops.c (value_real_part, value_imaginary_part): New
6658 functions.
6659 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6660
5b930b45
TT
66612020-04-01 Tom Tromey <tom@tromey.com>
6662
6663 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6664 (read_range_type): Update.
6665 * mdebugread.c (basic_type): Update.
6666 * go-lang.c (build_go_types): Use init_complex_type.
6667 * gdbtypes.h (struct main_type) <complex_type>: New member.
6668 (init_complex_type): Update.
6669 (arch_complex_type): Don't declare.
6670 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6671 Make name if none given. Use alloc_type_copy. Look for cached
6672 complex type.
6673 (arch_complex_type): Remove.
6674 (gdbtypes_post_init): Use init_complex_type.
6675 * f-lang.c (build_fortran_types): Use init_complex_type.
6676 * dwarf2/read.c (read_base_type): Update.
6677 * d-lang.c (build_d_types): Use init_complex_type.
6678 * ctfread.c (read_base_type): Update.
6679
53cccef1
TBA
66802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6681
6682 * infrun.c (stop_all_threads): Update assertion, plus when
6683 stopping threads, take into account that we might be trying
6684 to stop an all-stop target.
6685 (stop_waiting): Call 'stop_all_threads' if there exists a
6686 non-stop target.
6687
a0714d30
TBA
66882020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6689
6690 * target.h (exists_non_stop_target): New function declaration.
6691 * target.c (exists_non_stop_target): New function.
6692
60e22c1e
HD
66932020-04-01 Hannes Domani <ssbssa@yahoo.de>
6694
6695 PR gdb/24789
6696 * eval.c (is_integral_or_integral_reference): New function.
6697 (evaluate_subexp_standard): Allow integer references in
6698 pointer arithmetic.
6699
e139a727
TBA
67002020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6701
6702 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6703 check for no ptid in the stop reply when the target is non-stop.
6704
e0802d59
TT
67052020-04-01 Tom Tromey <tromey@adacore.com>
6706
6707 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6708 "name" parameter to rvalue reference. Initialize m_name_holder.
6709 <lookup_name_info>: New overloads.
6710 <name>: Return gdb::string_view.
6711 <c_str>: New method.
6712 <make_ignore_params>: Update.
6713 <search_name_hash>: Update.
6714 <language_lookup_name>: Return const char *.
6715 <m_name>: Change type.
6716 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6717 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6718 (lookup_name_info::match_any): Update.
6719 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6720 Update.
6721 * minsyms.c (linkage_name_str): Update.
6722 * language.c (default_symbol_name_matcher): Update.
6723 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6724 Update.
6725 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6726 (ada_lookup_name_info::ada_lookup_name_info): Update.
6727 (literal_symbol_name_matcher): Update.
6728
8c072cb6
TT
67292020-04-01 Tom Tromey <tromey@adacore.com>
6730
6731 * psymtab.c (psymtab_search_name): Remove function.
6732 (psym_lookup_symbol): Create search name and lookup name here.
6733 (lookup_partial_symbol): Remove "name" parameter; add
6734 lookup_name.
6735 (psym_expand_symtabs_for_function): Update.
6736
6f29a534
TT
67372020-03-31 Joel Jones <joelkevinjones@gmail.com>
6738
6739 PR tui/25597:
6740 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6741
af62665e
TT
67422020-03-31 Tom Tromey <tromey@adacore.com>
6743
6744 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6745 memcpy.
6746
d1a89da5
NC
67472020-03-30 Nelson Chu <nelson.chu@sifive.com>
6748
6749 * features/riscv/32bit-csr.xml: Regenerated.
6750 * features/riscv/64bit-csr.xml: Regenerated.
6751
d8af9068
TT
67522020-03-30 Tom Tromey <tromey@adacore.com>
6753
6754 * ada-valprint.c (print_variant_part): Update.
6755 * ada-lang.h (ada_which_variant_applies): Update.
6756 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6757 outer_valaddr parameters; replace with "outer" value parameter.
6758 (to_fixed_variant_branch_type): Update.
6759
227c0bf4
PFC
67602020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6761
6762 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6763 <list>. Remove inclusion of observable.h.
6764 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6765 (struct arch_lwp_info): New struct.
6766 (class ppc_linux_dreg_interface): New class.
6767 (struct ppc_linux_process_info): New struct.
6768 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6769 <low_new_clone, low_forget_process, low_prepare_to_resume>
6770 <copy_thread_dreg_state, mark_thread_stale>
6771 <mark_debug_registers_changed, register_hw_breakpoint>
6772 <clear_hw_breakpoint, register_wp, clear_wp>
6773 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6774 <num_memory_accesses, get_trigger_type>
6775 <create_watchpoint_request, hwdebug_point_cmp>
6776 <init_arch_lwp_info, get_arch_lwp_info>
6777 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6778 methods.
6779 <struct ptid_hash>: New inner struct.
6780 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6781 members.
6782 (saved_dabr_value, hwdebug_info, max_slots_number)
6783 (struct hw_break_tuple, struct thread_points, ppc_threads)
6784 (have_ptrace_hwdebug_interface)
6785 (hwdebug_find_thread_points_by_tid)
6786 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6787 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6788 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6789 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6790 use m_dreg_interface.
6791 (hwdebug_point_cmp): Change to...
6792 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6793 reference arguments instead of pointers.
6794 (ppc_linux_nat_target::ranged_break_num_registers): Use
6795 m_dreg_interface.
6796 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6797 m_dreg_interface. Call register_hw_breakpoint.
6798 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6799 m_dreg_interface. Call clear_hw_breakpoint.
6800 (get_trigger_type): Change to...
6801 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6802 comment.
6803 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6804 use m_dreg_interface. Call register_hw_breakpoint.
6805 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6806 use m_dreg_interface. Call clear_hw_breakpoint.
6807 (can_use_watchpoint_cond_accel): Change to...
6808 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6809 method. Update comment, use m_dreg_interface and
6810 m_process_info.
6811 (calculate_dvc): Change to...
6812 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6813 m_dreg_interface.
6814 (num_memory_accesses): Change to...
6815 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6816 (check_condition): Change to...
6817 (ppc_linux_nat_target::check_condition): ...this method.
6818 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6819 comment, use m_dreg_interface.
6820 (create_watchpoint_request): Change to...
6821 (ppc_linux_nat_target::create_watchpoint_request): ...this
6822 method. Use m_dreg_interface.
6823 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6824 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6825 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6826 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6827 (ppc_linux_nat_target::low_forget_process)
6828 (ppc_linux_nat_target::low_new_fork)
6829 (ppc_linux_nat_target::low_new_clone)
6830 (ppc_linux_nat_target::low_delete_thread)
6831 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6832 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6833 only call mark_thread_stale.
6834 (ppc_linux_thread_exit): Remove.
6835 (ppc_linux_nat_target::stopped_data_address): Change to...
6836 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6837 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6838 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6839 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6840 comment. Call low_stopped_data_address.
6841 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6842 m_dreg_interface.
6843 (ppc_linux_nat_target::masked_watch_num_registers): Use
6844 m_dreg_interface.
6845 (ppc_linux_nat_target::copy_thread_dreg_state)
6846 (ppc_linux_nat_target::mark_thread_stale)
6847 (ppc_linux_nat_target::mark_debug_registers_changed)
6848 (ppc_linux_nat_target::register_hw_breakpoint)
6849 (ppc_linux_nat_target::clear_hw_breakpoint)
6850 (ppc_linux_nat_target::register_wp)
6851 (ppc_linux_nat_target::clear_wp)
6852 (ppc_linux_nat_target::init_arch_lwp_info)
6853 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6854 (_initialize_ppc_linux_nat): Remove observer callback.
6855
4db10d8f
PFC
68562020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6857
6858 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6859 (ppc_linux_nat_target::auxv_parse)
6860 (ppc_linux_nat_target::read_description)
6861 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6862 Move up.
6863
1310c1b0
PFC
68642020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6865
6866 * linux-nat.h (low_new_clone): New method.
6867 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6868
69b037c3
SM
68692020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6870
6871 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6872 (dbx_expand_psymtab): ... this.
6873 (start_psymtab): Update.
6874 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6875 (mdebug_expand_psymtab): ... this.
6876 (parse_partial_symbols): Update.
6877 (new_psymtab): Update.
6878 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6879 (xcoff_expand_psymtab): ... this.
6880 (xcoff_start_psymtab): Update.
6881
48993951
SM
68822020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6883
6884 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6885 <expand_dependencies>: ... this.
6886 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6887 (partial_symtab::expand_dependencies): ... this.
6888 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6889 Update.
6890 (dwarf2_psymtab::expand_psymtab): Update.
6891 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6892 * mdebugread.c (psymtab_to_symtab_1): Update.
6893 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6894
3ad83046
SM
68952020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6896
6897 * psympriv.h (discard_psymtab): Remove.
6898 * dbxread.c (dbx_end_psymtab): Update.
6899 * xcoffread.c (xcoff_end_psymtab): Update.
6900
4d1b9ab6
TT
69012020-03-28 Tom Tromey <tom@tromey.com>
6902
6903 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6904 comment.
6905
f1749218
TT
69062020-03-28 Tom Tromey <tom@tromey.com>
6907
6908 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6909
ebea7626
HD
69102020-03-27 Hannes Domani <ssbssa@yahoo.de>
6911
6912 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6913
a879b4d5
JB
69142020-03-26 John Baldwin <jhb@FreeBSD.org>
6915
6916 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6917
0826b30a
TT
69182020-03-26 Tom Tromey <tom@tromey.com>
6919
6920 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6921 (mark_common_block_symbol_computed, read_tag_string_type)
6922 (attr_to_dynamic_prop, read_subrange_type): Update.
6923 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6924 to be methods on struct attribute.
6925 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6926 (read_call_site_scope, partial_die_info::read)
6927 (partial_die_info::read, lookup_die_type, follow_die_ref):
6928 Update.
6929 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6930 from dwarf2_get_ref_die_offset.
6931 (attribute::constant_value): New method, from
6932 dwarf2_get_attr_constant_value.
6933 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6934 Declare method.
6935 <constant_value>: New method.
6936
2b2558bf
TT
69372020-03-26 Tom Tromey <tom@tromey.com>
6938
6939 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6940 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6941 (dwarf_type_encoding_name): Move to stringify.c.
6942 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6943 * dwarf2/stringify.c: New file.
6944 * dwarf2/stringify.h: New file.
6945
eeb64781
TT
69462020-03-26 Tom Tromey <tom@tromey.com>
6947
6948 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6949 Rewrite.
6950
a39fdb41
TT
69512020-03-26 Tom Tromey <tom@tromey.com>
6952
6953 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
6954 methods.
6955 * dwarf2/read.c (lookup_addr_base): Move to die.h.
6956 (lookup_ranges_base): Likewise.
6957 (read_cutu_die_from_dwo, read_full_die_1): Update.
6958
436c571c
TT
69592020-03-26 Tom Tromey <tom@tromey.com>
6960
6961 * dwarf2/read.c (read_import_statement, read_file_scope)
6962 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
6963 (read_lexical_block_scope, read_call_site_scope)
6964 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
6965 (handle_struct_member_die, process_structure_scope)
6966 (update_enumeration_type_from_children)
6967 (process_enumeration_scope, read_array_type, read_common_block)
6968 (read_namespace, read_module, read_subroutine_type): Update.
6969 (sibling_die): Remove.
6970
052c8bb8
TT
69712020-03-26 Tom Tromey <tom@tromey.com>
6972
6973 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
6974 (build_type_psymtabs_reader, read_structure_type)
6975 (read_enumeration_type, read_full_die_1): Update.
6976 (dwarf2_attr_no_follow): Move to die.h.
6977 * dwarf2/die.h (struct die_info) <attr>: New method.
6978
2b24b6e4
TT
69792020-03-26 Tom Tromey <tom@tromey.com>
6980
6981 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
6982 <base_address>: Now an optional.
6983 (dwarf2_find_base_address, dwarf2_rnglists_process)
6984 (dwarf2_ranges_process, fill_in_loclist_baton)
6985 (dwarf2_symbol_mark_computed): Update.
6986
c2d50fd0
TT
69872020-03-26 Tom Tromey <tom@tromey.com>
6988
6989 * dwarf2/read.c (struct die_info): Move to die.h.
6990 * dwarf2/die.h: New file.
6991
0df7ad3a
TT
69922020-03-26 Tom Tromey <tom@tromey.com>
6993
6994 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
6995 * dwarf2/read.c
6996 (dwarf2_statement_list_fits_in_line_number_section_complaint):
6997 Move to line-header.c.
6998 (read_checked_initial_length_and_offset, read_formatted_entries):
6999 Likewise.
7000 (dwarf_decode_line_header): Split into two.
7001 * dwarf2/line-header.c
7002 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7003 Move from read.c.
7004 (read_checked_initial_length_and_offset, read_formatted_entries):
7005 Likewise.
7006 (dwarf_decode_line_header): New function, split from read.c.
7007
86c0bb4c
TT
70082020-03-26 Tom Tromey <tom@tromey.com>
7009
7010 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7011 Declare method.
7012 * dwarf2/read.c (read_attribute_value): Update.
7013 (dwarf2_per_objfile::read_line_string): Rename from
7014 read_indirect_line_string.
7015 (read_formatted_entries): Update.
7016
2ef46c2f
TT
70172020-03-26 Tom Tromey <tom@tromey.com>
7018
7019 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7020 variable.
7021
4f9c1eda
TT
70222020-03-26 Tom Tromey <tom@tromey.com>
7023
7024 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7025 const.
7026 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7027 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7028 parameter const.
7029
5a0e026f
TT
70302020-03-26 Tom Tromey <tom@tromey.com>
7031
7032 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7033 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7034 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7035 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7036
8844c11b
TT
70372020-03-26 Tom Tromey <tom@tromey.com>
7038
7039 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7040 file_names_size, file_full_name, file_file_name>: Use const.
7041 <file_name_at, file_names>: Add const overload.
7042 * dwarf2/line-header.c (line_header::file_file_name)
7043 (line_header::file_full_name): Update.
7044
c90ec28a
TT
70452020-03-26 Tom Tromey <tom@tromey.com>
7046
7047 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7048 (macro_start_file, consume_improper_spaces)
7049 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7050 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7051 (dwarf_decode_macros): Move to macro.c.
7052 * dwarf2/macro.c: New file.
7053 * dwarf2/macro.h: New file.
7054 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7055
4f44ae6c
TT
70562020-03-26 Tom Tromey <tom@tromey.com>
7057
7058 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7059 method.
7060 * dwarf2/section.c: New method. From
7061 read_indirect_string_at_offset_from.
7062 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7063 (read_indirect_string_at_offset_from): Move to section.c.
7064 (read_indirect_string_at_offset): Rewrite.
7065 (read_indirect_line_string_at_offset): Remove.
7066 (read_indirect_string, read_indirect_line_string)
7067 (dwarf_decode_macro_bytes): Update.
7068
a0194fa8
TT
70692020-03-26 Tom Tromey <tom@tromey.com>
7070
7071 * dwarf2/section.h (struct dwarf2_section_info)
7072 <overload_complaint>: Declare.
7073 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7074 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7075 Rename from dwarf2_section_buffer_overflow_complaint.
7076 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7077 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7078
3d27bbdb
TT
70792020-03-26 Tom Tromey <tom@tromey.com>
7080
7081 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7082 Declare.
7083 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7084 Move from read.c.
7085 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7086 to section.c.
7087
9eac9650
TT
70882020-03-26 Tom Tromey <tom@tromey.com>
7089
7090 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7091
bf80d710
TT
70922020-03-26 Tom Tromey <tom@tromey.com>
7093
7094 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7095 "builder".
7096 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7097 parameter.
7098 (dwarf_decode_macros): Update.
7099
0314b390
TT
71002020-03-26 Tom Tromey <tom@tromey.com>
7101
7102 * dwarf2/read.c (read_attribute_value): Update.
7103 (read_indirect_string_from_dwz): Move to dwz.c; change into
7104 method.
7105 (dwarf_decode_macro_bytes): Update.
7106 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7107 * dwarf2/dwz.c: New file.
7108 * Makefile.in (COMMON_SFILES): Add dwz.c.
7109
9fda78b6
TT
71102020-03-26 Tom Tromey <tom@tromey.com>
7111
7112 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7113 * dwarf2/read.c: Add include.
7114 * dwarf2/index-write.c: Add include.
7115 * dwarf2/index-cache.c: Add include.
7116 * dwarf2/dwz.h: New file.
7117
33aa3c10
TT
71182020-03-25 Tom Tromey <tom@tromey.com>
7119
7120 * compile/compile-object-load.c (get_out_value_type): Mention
7121 correct symbol name in error message.
7122
d503b685
HD
71232020-03-25 Hannes Domani <ssbssa@yahoo.de>
7124
7125 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7126
7b1eff95
TV
71272020-03-25 Tom de Vries <tdevries@suse.de>
7128
7129 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7130 * symmisc.c (dump_symtab_1): Print user and includes fields.
7131 (maintenance_info_symtabs): Same.
7132
dd895392
AB
71332020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7134
7135 PR gdb/25534
7136 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7137 (riscv_regcache_cooked_write): New function.
7138 (riscv_push_dummy_call): Use new function.
7139 (riscv_return_value): Likewise.
7140
5ab2fbf1
SM
71412020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7142
7143 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7144 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7145 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7146 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7147 * infrun.c (follow_fork): Likewise.
7148 (follow_fork_inferior): Likewise.
7149 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7150 * linux-nat.h (class linux_nat_target): Likewise.
7151 * remote.c (class remote_target) <follow_fork>: Likewise.
7152 (remote_target::follow_fork): Likewise.
7153 * target-delegates.c: Re-generate.
7154 * target.c (default_follow_fork): Likewise.
7155 (target_follow_fork): Likewise.
7156 * target.h (struct target_ops) <follow_fork>: Likewise.
7157 (target_follow_fork): Likewise.
7158
a64fafb5
TV
71592020-03-24 Tom de Vries <tdevries@suse.de>
7160
7161 * psymtab.c (maintenance_info_psymtabs): Print user field.
7162
fe26d3a3
TT
71632020-03-20 Tom Tromey <tromey@adacore.com>
7164
7165 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7166 const.
7167 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7168 const.
7169
c884cc46
SM
71702020-03-20 Simon Marchi <simon.marchi@efficios.com>
7171
7172 * ptrace.m4: Don't check for ptrace declaration.
7173 * config.in: Re-generate.
7174 * configure: Re-generate.
7175 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7176 not defined.
7177
1ff700c2
KR
71782020-03-20 Kamil Rytarowski <n54@gmx.com>
7179
7180 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7181 `PTRACE_TYPE_RET'.
7182 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7183 * sparc-nat.c (gdb_ptrace): Likewise.
7184 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7185
f7d4f0b1
TT
71862020-03-20 Tom Tromey <tromey@adacore.com>
7187
7188 * c-exp.y (lex_one_token): Fix assert.
7189
f67210ff
TT
71902020-03-20 Tom Tromey <tromey@adacore.com>
7191
7192 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7193 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7194 strncpy call.
7195
1773be9e
TT
71962020-03-20 Tom Tromey <tromey@adacore.com>
7197
7198 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7199
70304be9
TT
72002020-03-20 Tom Tromey <tromey@adacore.com>
7201
7202 * ada-valprint.c (print_variant_part): Remove parameters; switch
7203 to value-based API.
7204 (print_field_values): Likewise.
7205 (ada_val_print_struct_union): Likewise.
7206 (ada_value_print_1): Update.
7207
9faa006d
KR
72082020-03-20 Kamil Rytarowski <n54@gmx.com>
7209
7210 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7211 nbsd_nat_target instead of inf_ptrace_target.
7212 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7213 nbsd_nat_target.
7214
4a90f062
KR
72152020-03-20 Kamil Rytarowski <n54@gmx.com>
7216
7217 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7218 it to the ptrace call.
7219 * (store_registers): Likewise.
7220
72212020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7222
7223 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7224 it to the ptrace call.
7225 * (store_registers): Likewise.
7226
2d07da27
LM
72272020-03-19 Luis Machado <luis.machado@linaro.org>
7228
7229 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7230 valid, fetch vg value from ptrace.
7231
f09db380
KR
72322020-03-19 Kamil Rytarowski <n54@gmx.com>
7233 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7234 * inf-ptrace.c: Likewise.
7235 * (gdb_ptrace): Add.
7236 * (inf_ptrace_target::resume): Update.
7237 * (inf_ptrace_target::xfer_partial): Likewise.
7238 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7239 * (inf_ptrace_peek_poke): Update.
7240
fcc7376e
KR
72412020-03-19 Kamil Rytarowski <n54@gmx.com>
7242
7243 * x86-bsd-nat.c (gdb_ptrace): New.
7244 * (x86bsd_dr_set): Add new argument `ptid'.
7245 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7246 x86bsd_dr_set_addr): Update.
7247
cada5fc9
AB
72482020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 * remote.c (remote_target::process_stop_reply): Handle events for
7251 all threads differently.
7252
19a2740f
AB
72532020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7254
7255 * completer.c (completion_tracker::remove_completion): Define new
7256 function.
7257 * completer.h (completion_tracker::remove_completion): Declare new
7258 function.
7259 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7260 when adding a C++ function symbol.
7261
724fd9ba
AB
72622020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * completer.c (completion_tracker::completion_hash_entry): Define
7265 new class.
7266 (advance_to_filename_complete_word_point): Call
7267 recompute_lowest_common_denominator.
7268 (completion_tracker::completion_tracker): Call discard_completions
7269 to setup the hash table.
7270 (completion_tracker::discard_completions): Allow for being called
7271 from the constructor, pass new equal function, and element deleter
7272 when constructing the hash table. Initialise new class member
7273 variables.
7274 (completion_tracker::maybe_add_completion): Remove use of
7275 m_entries_vec, and store more information into m_entries_hash.
7276 (completion_tracker::recompute_lcd_visitor): New function, most
7277 content taken from...
7278 (completion_tracker::recompute_lowest_common_denominator):
7279 ...here, this now just visits each item in the hash calling the
7280 above visitor.
7281 (completion_tracker::build_completion_result): Remove use of
7282 m_entries_vec, call recompute_lowest_common_denominator.
7283 * completer.h (completion_tracker::have_completions): Remove use
7284 of m_entries_vec.
7285 (completion_tracker::completion_hash_entry): Declare new class.
7286 (completion_tracker::recompute_lowest_common_denominator): Change
7287 function signature.
7288 (completion_tracker::recompute_lcd_visitor): Declare new function.
7289 (completion_tracker::m_entries_vec): Delete.
7290 (completion_tracker::m_entries_hash): Initialize to NULL.
7291 (completion_tracker::m_lowest_common_denominator_valid): New
7292 member variable.
7293 (completion_tracker::m_lowest_common_denominator_max_length): New
7294 member variable.
7295
5a82b8a1
KR
72962020-03-17 Kamil Rytarowski <n54@gmx.com>
7297
7298 * regformats/regdef.h: Put reg in gdb namespace.
7299
fb516a69
KR
73002020-03-17 Kamil Rytarowski <n54@gmx.com>
7301
7302 * i386-bsd-nat.c (gdb_ptrace): New.
7303 * (i386bsd_fetch_inferior_registers,
7304 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7305 * (i386bsd_fetch_inferior_registers,
7306 i386bsd_store_inferior_registers) Use gdb_ptrace.
7307
1c0aa1fb
KR
73082020-03-17 Kamil Rytarowski <n54@gmx.com>
7309
7310 * amd64-bsd-nat.c (gdb_ptrace): New.
7311 * (amd64bsd_fetch_inferior_registers,
7312 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7313 * (amd64bsd_fetch_inferior_registers,
7314 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7315
5ccd2fb7
KR
73162020-03-17 Kamil Rytarowski <n54@gmx.com>
7317
7318 * user-regs.c (user_reg::read): Rename to...
7319 (user_reg::xread): ...this.
7320 * (append_user_reg): Rename argument `read' to `xread'.
7321 * (user_reg_add_builtin): Likewise.
7322 * (user_reg_add): Likewise.
7323 * (value_of_user_reg): Likewise.
7324
2108a63a
KR
73252020-03-17 Kamil Rytarowski <n54@gmx.com>
7326
7327 * sparc-nat.c (gdb_ptrace): New.
7328 * sparc-nat.c (sparc_fetch_inferior_registers)
7329 (sparc_store_inferior_registers) Remove obsolete comment.
7330 * sparc-nat.c (sparc_fetch_inferior_registers)
7331 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7332 * sparc-nat.c (sparc_fetch_inferior_registers)
7333 (sparc_store_inferior_registers) Use gdb_ptrace.
7334
a225c9a8
KR
73352020-03-17 Kamil Rytarowski <n54@gmx.com>
7336
7337 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7338 it to the ptrace call.
7339 * sh-nbsd-nat.c (store_registers): Likewise.
7340
98097623
KR
73412020-03-17 Kamil Rytarowski <n54@gmx.com>
7342
7343 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7344 nbsd_nat_target instead of inf_ptrace_target.
7345 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7346 nbsd_nat_target.
7347
9e38d619
KR
73482020-03-17 Kamil Rytarowski <n54@gmx.com>
7349
7350 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7351
a2ecbe9f
KR
73522020-03-17 Kamil Rytarowski <n54@gmx.com>
7353
7354 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7355 <sys/sysctl.h>.
7356 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7357
58990295
TV
73582020-03-17 Tom de Vries <tdevries@suse.de>
7359
7360 PR gdb/23710
7361 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7362 fields.
7363 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7364 fields.
7365 (process_imported_unit_die): Skip import of c++ CUs.
7366
771dd3a8
TT
73672020-03-16 Tom Tromey <tom@tromey.com>
7368
7369 * p-valprint.c (pascal_object_print_value): Initialize
7370 base_value.
7371
817a7585
AK
73722020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7373 Shahab Vahedi <shahab@synopsys.com>
7374
7375 * Makefile.in: Add arch/arc.o
7376 * configure.tgt: Likewise.
7377 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7378 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7379 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7380 * arc-tdep.h (arc_read_description): Add proto type.
7381 * arch/arc.c: New file.
7382 * arch/arc.h: Likewise.
7383 * features/Makefile: Replace old target descriptions with new.
7384 * features/arc-arcompact.c: Remove.
7385 * features/arc-arcompact.xml: Likewise.
7386 * features/arc-v2.c: Likewise
7387 * features/arc-v2.xml: Likewise
7388 * features/arc/aux-arcompact.xml: New file.
7389 * features/arc/aux-v2.xml: Likewise.
7390 * features/arc/core-arcompact.xml: Likewise.
7391 * features/arc/core-v2.xml: Likewise.
7392 * features/arc/aux-arcompact.c: Generate.
7393 * features/arc/aux-v2.c: Likewise.
7394 * features/arc/core-arcompact.c: Likewise.
7395 * features/arc/core-v2.c: Likewise.
7396 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7397
67430cd0
TT
73982020-03-16 Tom Tromey <tromey@adacore.com>
7399
7400 PR gdb/25663:
7401 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7402 putting value into bcache.
7403
30efb6c7
SM
74042020-03-16 Simon Marchi <simon.marchi@efficios.com>
7405
7406 PR gdb/21500
7407 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7408 to...
7409 (amd64_windows_init_abi_common): ... this. Don't set size of
7410 long type.
7411 (amd64_windows_init_abi): New function.
7412 (amd64_cygwin_init_abi): New function.
7413 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7414 the Cygwin OS ABI.
7415 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7416 comment.
7417
8db52437
SM
74182020-03-16 Simon Marchi <simon.marchi@efficios.com>
7419
7420 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7421 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7422 (pe_import_directory_entry): New struct type.
7423 (is_linked_with_cygwin_dll): New function.
7424 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7425 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7426 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7427
5982a56a
SM
74282020-03-16 Simon Marchi <simon.marchi@efficios.com>
7429
7430 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7431 i386_cygwin_core_osabi_sniffer.
7432
7a1998df
SM
74332020-03-16 Simon Marchi <simon.marchi@efficios.com>
7434
7435 * i386-cygwin-tdep.c: Rename to...
7436 * i386-windows-tdep.c: ... this.
7437 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7438 i386-windows-tdep.c.
7439 * configure.tgt: Likewise.
7440
053205cc
SM
74412020-03-16 Simon Marchi <simon.marchi@efficios.com>
7442
7443 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7444 * osabi.c (gdb_osabi_names): Add "Windows".
7445 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7446 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7447 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7448 i386_cygwin_osabi_sniffer.
7449 (_initialize_i386_cygwin_tdep): Register OS ABI
7450 GDB_OSABI_WINDOWS for i386.
7451 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7452 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7453 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7454 for x86-64.
7455 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7456 when the target matches '*-*-mingw*'.
7457
fe4b2ee6
SM
74582020-03-16 Simon Marchi <simon.marchi@efficios.com>
7459
7460 * defs.h (enum gdb_osabi): Move to...
7461 * osabi.h (enum gdb_osabi): ... here.
7462 * gdbarch.sh: Include osabi.h in gdbarch.h.
7463 * gdbarch.h: Re-generate.
7464
cb9b645d
SM
74652020-03-16 Simon Marchi <simon.marchi@efficios.com>
7466
7467 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7468 function.
7469 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7470
3293bbaf
TT
74712020-03-14 Tom Tromey <tom@tromey.com>
7472
7473 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7474 for C++.
7475 (c_type_print_modifier): Likewise. Add "language" parameter.
7476 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7477 (c_type_print_base_1): Update.
7478 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7479 constants.
7480 * type-stack.c (type_stack::insert): Handle tp_atomic and
7481 tp_restrict.
7482 (type_stack::follow_type_instance_flags): Likewise.
7483 (type_stack::follow_types): Likewise. Merge type-following code.
7484 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7485 (space_identifier, cv_with_space_id)
7486 (const_or_volatile_or_space_identifier_noopt)
7487 (const_or_volatile_or_space_identifier): Remove.
7488 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7489 rules.
7490 (ptr_operator, typebase): Update.
7491 (enum token_flag) <FLAG_C>: New constant.
7492 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7493 "_Atomic".
7494 (lex_one_token): Handle FLAG_C.
7495
154151a6
KR
74962020-03-14 Kamil Rytarowski <n54@gmx.com>
7497
7498 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7499 it to the ptrace call.
7500 * m68k-bsd-nat.c (store_registers): Likewise.
7501
bc107784
KR
75022020-03-14 Kamil Rytarowski <n54@gmx.com>
7503
7504 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7505 gdb_byte *.
7506 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7507 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7508 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7509
01a80117
KR
75102020-03-14 Kamil Rytarowski <n54@gmx.com>
7511
7512 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7513 nbsd_nat_target instead of inf_ptrace_target.
7514 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7515 nbsd_nat_target.
7516
f90280ca
KR
75172020-03-14 Kamil Rytarowski <n54@gmx.com>
7518
7519 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7520 register_t.
7521
6def66f1
KR
75222020-03-14 Kamil Rytarowski <n54@gmx.com>
7523
7524 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7525 it to the ptrace call.
7526 * alpha-bsd-nat.c (store_registers): Likewise.
7527
66eaca97
KR
75282020-03-14 Kamil Rytarowski <n54@gmx.com>
7529
7530 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7531 includes.
7532 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7533 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7534 fill_fpregset): Likewise.
7535
4fed520b
KR
75362020-03-14 Kamil Rytarowski <n54@gmx.com>
7537
7538 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7539 nbsd_nat_target instead of inf_ptrace_target.
7540 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7541 nbsd_nat_target.
7542
2190cf06
KR
75432020-03-14 Kamil Rytarowski <n54@gmx.com>
7544
7545 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7546 register_t.
7547
75c56d3d
KR
75482020-03-14 Kamil Rytarowski <n54@gmx.com>
7549
7550 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7551 it to the ptrace call.
7552 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7553 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7554 * arm-nbsd-nat.c (store_register): Likewise.
7555 * arm-nbsd-nat.c (store_regs): Likewise.
7556 * arm-nbsd-nat.c (store_fp_register): Likewise.
7557 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7558
6018d381
KR
75592020-03-14 Kamil Rytarowski <n54@gmx.com>
7560
7561 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7562 nbsd_nat_target instead of inf_ptrace_target.
7563 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7564 nbsd_nat_target.
7565
013f99f0
KR
75662020-03-14 Kamil Rytarowski <n54@gmx.com>
7567
7568 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7569 it to the ptrace call.
7570 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7571
12753073
KR
75722020-03-14 Kamil Rytarowski <n54@gmx.com>
7573
6227b330
KR
7574 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7575 it to the ptrace call.
7576 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7577
75782020-03-14 Kamil Rytarowski <n54@gmx.com>
7579
7580 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7581 gdb_byte *.
12753073
KR
7582 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7583
d5be5fa4
KR
75842020-03-14 Kamil Rytarowski <n54@gmx.com>
7585
7586 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7587 instead of inf_ptrace_target.
7588 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7589 nbsd_nat_target.
7590
8110f842
KR
75912020-03-14 Kamil Rytarowski <n54@gmx.com>
7592
7593 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7594 register_t.
7595
52feded7
KR
75962020-03-14 Kamil Rytarowski <n54@gmx.com>
7597
7598 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7599 register_t.
7600
25567eee
KR
76012020-03-14 Kamil Rytarowski <n54@gmx.com>
7602
7603 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7604 register_t.
7605
426a9c18
TT
76062020-03-13 Tom Tromey <tom@tromey.com>
7607
7608 * value.h (val_print): Don't declare.
7609 * valprint.h (val_print_array_elements)
7610 (val_print_scalar_formatted, generic_val_print): Don't declare.
7611 * valprint.c (generic_val_print_array): Take a struct value.
7612 (generic_val_print_ptr, generic_val_print_memberptr)
7613 (generic_val_print_bool, generic_val_print_int)
7614 (generic_val_print_char, generic_val_print_complex)
7615 (generic_val_print): Remove.
7616 (generic_value_print): Update.
7617 (do_val_print): Remove unused parameters. Don't call
7618 la_val_print.
7619 (val_print): Remove.
7620 (common_val_print): Update. Don't call value_check_printable.
7621 (val_print_scalar_formatted, val_print_array_elements): Remove.
7622 * rust-lang.c (rust_val_print): Remove.
7623 (rust_language_defn): Update.
7624 * p-valprint.c (pascal_val_print): Remove.
7625 (pascal_value_print_inner): Update.
7626 (pascal_object_print_val_fields, pascal_object_print_val):
7627 Remove.
7628 (pascal_object_print_static_field): Update.
7629 * p-lang.h (pascal_val_print): Don't declare.
7630 * p-lang.c (pascal_language_defn): Update.
7631 * opencl-lang.c (opencl_language_defn): Update.
7632 * objc-lang.c (objc_language_defn): Update.
7633 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7634 * m2-lang.h (m2_val_print): Don't declare.
7635 * m2-lang.c (m2_language_defn): Update.
7636 * language.h (struct language_defn) <la_val_print>: Remove.
7637 * language.c (unk_lang_value_print_inner): Rename. Change
7638 argument types.
7639 (unknown_language_defn, auto_language_defn): Update.
7640 * go-valprint.c (go_val_print): Remove.
7641 * go-lang.h (go_val_print): Don't declare.
7642 * go-lang.c (go_language_defn): Update.
7643 * f-valprint.c (f_val_print): Remove.
7644 * f-lang.h (f_value_print): Don't declare.
7645 * f-lang.c (f_language_defn): Update.
7646 * d-valprint.c (d_val_print): Remove.
7647 * d-lang.h (d_value_print): Don't declare.
7648 * d-lang.c (d_language_defn): Update.
7649 * cp-valprint.c (cp_print_value_fields)
7650 (cp_print_value_fields_rtti, cp_print_value): Remove.
7651 (cp_print_static_field): Update.
7652 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7653 (c_val_print_struct, c_val_print_union, c_val_print_int)
7654 (c_val_print_memberptr, c_val_print): Remove.
7655 * c-lang.h (c_val_print_array, cp_print_value_fields)
7656 (cp_print_value_fields_rtti): Don't declare.
7657 * c-lang.c (c_language_defn, cplus_language_defn)
7658 (asm_language_defn, minimal_language_defn): Update.
7659 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7660 (ada_val_print_enum): Take a struct value.
7661 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7662 (ada_val_print): Remove.
7663 (ada_value_print_1): Update.
7664 (printable_val_type): Remove.
7665 * ada-lang.h (ada_val_print): Don't declare.
7666 * ada-lang.c (ada_language_defn): Update.
7667
42331a1e
TT
76682020-03-13 Tom Tromey <tom@tromey.com>
7669
7670 * valprint.c (do_val_print): Update.
7671 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7672 a struct value.
7673 (value_to_value_object_no_release): Declare.
7674 * python/py-value.c (value_to_value_object_no_release): New
7675 function.
7676 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7677 struct value.
7678 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7679 function.
7680 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7681 a struct value.
7682 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7683 Declare.
7684 (gdbscm_apply_val_pretty_printer): Take a struct value.
7685 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7686 value.
7687 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7688 value.
7689 * extension-priv.h (struct extension_language_ops)
7690 <apply_val_pretty_printer>: Take a struct value.
7691 * cp-valprint.c (cp_print_value): Create a struct value.
7692 (cp_print_value): Update.
7693
3a916a97
TT
76942020-03-13 Tom Tromey <tom@tromey.com>
7695
7696 * ada-valprint.c (print_field_values): Call common_val_print.
7697
b59eac37
TT
76982020-03-13 Tom Tromey <tom@tromey.com>
7699
7700 * ada-valprint.c (val_print_packed_array_elements): Remove
7701 bitoffset and val parameters. Call common_val_print.
7702 (ada_val_print_string): Remove offset, address, and original_value
7703 parameters.
7704 (ada_val_print_array): Update.
7705 (ada_value_print_array): New function.
7706 (ada_value_print_1): Call it.
7707
03371129
TT
77082020-03-13 Tom Tromey <tom@tromey.com>
7709
7710 * ada-valprint.c (ada_value_print): Use common_val_print.
7711
2e088f8b
TT
77122020-03-13 Tom Tromey <tom@tromey.com>
7713
7714 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7715
39ef85a8
TT
77162020-03-13 Tom Tromey <tom@tromey.com>
7717
7718 * ada-valprint.c (ada_value_print_num): New function.
7719 (ada_value_print_1): Use it.
7720
b9fa6e07
TT
77212020-03-13 Tom Tromey <tom@tromey.com>
7722
7723 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7724
416595d6
TT
77252020-03-13 Tom Tromey <tom@tromey.com>
7726
7727 * ada-valprint.c (ada_value_print_ptr): New function.
7728 (ada_value_print_1): Use it.
7729
5b5e15ec
TT
77302020-03-13 Tom Tromey <tom@tromey.com>
7731
7732 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7733 call common_val_print.
7734 (ada_val_print_1): Update.
7735 (ada_value_print_1): New function.
7736 (ada_value_print_inner): Rewrite.
7737
fbf54e75
TT
77382020-03-13 Tom Tromey <tom@tromey.com>
7739
7740 * cp-valprint.c (cp_print_value_fields): Update.
7741 (cp_print_value): New function.
7742
64b653ca
TT
77432020-03-13 Tom Tromey <tom@tromey.com>
7744
7745 * m2-valprint.c (m2_value_print_inner): Use
7746 cp_print_value_fields.
7747 * cp-valprint.c (cp_print_value_fields): New function.
7748 * c-valprint.c (c_value_print_struct): New function.
7749 (c_value_print_inner): Use c_value_print_struct.
7750 * c-lang.h (cp_print_value_fields): Declare.
7751
6999f067
TT
77522020-03-13 Tom Tromey <tom@tromey.com>
7753
7754 * c-valprint.c (c_value_print_array): New function.
7755 (c_value_print_inner): Use it.
7756
ce80b8bd
TT
77572020-03-13 Tom Tromey <tom@tromey.com>
7758
7759 * c-valprint.c (c_value_print_memberptr): New function.
7760 (c_value_print_inner): Use it.
7761
2faac269
TT
77622020-03-13 Tom Tromey <tom@tromey.com>
7763
7764 * c-valprint.c (c_value_print_int): New function.
7765 (c_value_print_inner): Use it.
7766
da3e2c29
TT
77672020-03-13 Tom Tromey <tom@tromey.com>
7768
7769 * c-valprint.c (c_value_print_ptr): New function.
7770 (c_value_print_inner): Use it.
7771
50836231
TT
77722020-03-13 Tom Tromey <tom@tromey.com>
7773
7774 * c-valprint.c (c_value_print_inner): Rewrite.
7775
4f412b6e
TT
77762020-03-13 Tom Tromey <tom@tromey.com>
7777
7778 * valprint.c (generic_value_print_complex): New function.
7779 (generic_value_print): Use it.
7780
f5354008
TT
77812020-03-13 Tom Tromey <tom@tromey.com>
7782
7783 * valprint.c (generic_val_print_float): Don't call
7784 val_print_scalar_formatted.
7785 (generic_val_print, generic_value_print): Update.
7786
3eec3b05
TT
77872020-03-13 Tom Tromey <tom@tromey.com>
7788
7789 * valprint.c (generic_value_print_char): New function
7790 (generic_value_print): Use it.
7791
fdddfccb
TT
77922020-03-13 Tom Tromey <tom@tromey.com>
7793
7794 * valprint.c (generic_value_print_int): New function.
7795 (generic_value_print): Use it.
7796
6dde7521
TT
77972020-03-13 Tom Tromey <tom@tromey.com>
7798
7799 * valprint.c (generic_value_print_bool): New function.
7800 (generic_value_print): Use it.
7801
4112d2e6
TT
78022020-03-13 Tom Tromey <tom@tromey.com>
7803
7804 * valprint.c (generic_val_print_func): Simplify.
7805 (generic_val_print, generic_value_print): Update.
7806
65786af6
TT
78072020-03-13 Tom Tromey <tom@tromey.com>
7808
7809 * valprint.c (generic_val_print_flags): Remove.
7810 (generic_val_print, generic_value_print): Update.
7811 (val_print_type_code_flags): Add original_value parameter.
7812
40f3ce18
TT
78132020-03-13 Tom Tromey <tom@tromey.com>
7814
7815 * valprint.c (generic_val_print): Update.
7816 (generic_value_print): Update.
7817 * valprint.c (generic_val_print_enum): Don't call
7818 val_print_scalar_formatted.
7819
2a5b130b
TT
78202020-03-13 Tom Tromey <tom@tromey.com>
7821
7822 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7823 * valprint.c (generic_value_print_ptr): New function.
7824
abc66ce9
TT
78252020-03-13 Tom Tromey <tom@tromey.com>
7826
7827 * valprint.c (generic_value_print): Rewrite.
7828
07a32858
TT
78292020-03-13 Tom Tromey <tom@tromey.com>
7830
7831 * p-valprint.c (pascal_object_print_value_fields)
7832 (pascal_object_print_value): New functions.
7833
64d64d3a
TT
78342020-03-13 Tom Tromey <tom@tromey.com>
7835
7836 * p-valprint.c (pascal_value_print_inner): Rewrite.
7837
6a95a1f5
TT
78382020-03-13 Tom Tromey <tom@tromey.com>
7839
7840 * f-valprint.c (f_value_print_innner): Rewrite.
7841
59fcdac6
TT
78422020-03-13 Tom Tromey <tom@tromey.com>
7843
7844 * m2-valprint.c (m2_print_unbounded_array): New overload.
7845 (m2_print_unbounded_array): Update.
7846 (m2_print_array_contents): Take a struct value.
7847 (m2_value_print_inner): Rewrite.
7848
d133c3e1
TT
78492020-03-13 Tom Tromey <tom@tromey.com>
7850
7851 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7852 (d_value_print_inner): New function.
7853 * d-lang.h (d_value_print_inner): Declare.
7854 * d-lang.c (d_language_defn): Use d_value_print_inner.
7855
23b0f06b
TT
78562020-03-13 Tom Tromey <tom@tromey.com>
7857
7858 * go-valprint.c (go_value_print_inner): New function.
7859 * go-lang.h (go_value_print_inner): Declare.
7860 * go-lang.c (go_language_defn): Use go_value_print_inner.
7861
5f56f7cb
TT
78622020-03-13 Tom Tromey <tom@tromey.com>
7863
7864 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7865 API.
7866 (rust_val_print): Rewrite.
7867 (rust_value_print_inner): New function, from rust_val_print.
7868 (rust_language_defn): Use rust_value_print_inner.
7869
26792ee0
TT
78702020-03-13 Tom Tromey <tom@tromey.com>
7871
7872 * ada-valprint.c (ada_value_print_inner): New function.
7873 * ada-lang.h (ada_value_print_inner): Declare.
7874 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7875
24051bbe
TT
78762020-03-13 Tom Tromey <tom@tromey.com>
7877
7878 * f-valprint.c (f_value_print_innner): New function.
7879 * f-lang.h (f_value_print_innner): Declare.
7880 * f-lang.c (f_language_defn): Use f_value_print_innner.
7881
c0941be6
TT
78822020-03-13 Tom Tromey <tom@tromey.com>
7883
7884 * p-valprint.c (pascal_value_print_inner): New function.
7885 * p-lang.h (pascal_value_print_inner): Declare.
7886 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7887
62c4663d
TT
78882020-03-13 Tom Tromey <tom@tromey.com>
7889
7890 * m2-valprint.c (m2_value_print_inner): New function.
7891 * m2-lang.h (m2_value_print_inner): Declare.
7892 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7893
62182190
TT
78942020-03-13 Tom Tromey <tom@tromey.com>
7895
7896 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7897 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7898 * c-valprint.c (c_value_print_inner): New function.
7899 * c-lang.h (c_value_print_inner): Declare.
7900 * c-lang.c (c_language_defn, cplus_language_defn)
7901 (asm_language_defn, minimal_language_defn): Use
7902 c_value_print_inner.
7903
1e592a8a
TT
79042020-03-13 Tom Tromey <tom@tromey.com>
7905
7906 * p-valprint.c (pascal_object_print_value_fields): Now static.
7907 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7908
7fe471e9
TT
79092020-03-13 Tom Tromey <tom@tromey.com>
7910
7911 * c-valprint.c (c_val_print_array): Simplify.
7912
d121c6ce
TT
79132020-03-13 Tom Tromey <tom@tromey.com>
7914
7915 * valprint.c (value_print_array_elements): New function.
7916 * valprint.h (value_print_array_elements): Declare.
7917
4dba70ee
TT
79182020-03-13 Tom Tromey <tom@tromey.com>
7919
7920 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7921 * mips-tdep.c (mips_print_register): Use
7922 value_print_scalar_formatted.
7923
4f9ae810
TT
79242020-03-13 Tom Tromey <tom@tromey.com>
7925
7926 * valprint.h (value_print_scalar_formatted): Declare.
7927 * valprint.c (value_print_scalar_formatted): New function.
7928
156bfec9
TT
79292020-03-13 Tom Tromey <tom@tromey.com>
7930
7931 * valprint.h (generic_value_print): Declare.
7932 * valprint.c (generic_value_print): New function.
7933
2b4e573d
TT
79342020-03-13 Tom Tromey <tom@tromey.com>
7935
7936 * valprint.c (do_val_print): Call la_value_print_inner, if
7937 available.
7938 * rust-lang.c (rust_language_defn): Update.
7939 * p-lang.c (pascal_language_defn): Update.
7940 * opencl-lang.c (opencl_language_defn): Update.
7941 * objc-lang.c (objc_language_defn): Update.
7942 * m2-lang.c (m2_language_defn): Update.
7943 * language.h (struct language_defn) <la_value_print_inner>: New
7944 member.
7945 * language.c (unknown_language_defn, auto_language_defn): Update.
7946 * go-lang.c (go_language_defn): Update.
7947 * f-lang.c (f_language_defn): Update.
7948 * d-lang.c (d_language_defn): Update.
7949 * c-lang.c (c_language_defn, cplus_language_defn)
7950 (asm_language_defn, minimal_language_defn): Update.
7951 * ada-lang.c (ada_language_defn): Update.
7952
a1f6a07c
TT
79532020-03-13 Tom Tromey <tom@tromey.com>
7954
7955 * c-valprint.c (c_value_print): Use common_val_print.
7956
410cf315
TT
79572020-03-13 Tom Tromey <tom@tromey.com>
7958
7959 * cp-valprint.c (cp_print_static_field): Use common_val_print.
7960
72a45c93
TT
79612020-03-13 Tom Tromey <tom@tromey.com>
7962
7963 * f-valprint.c (f77_print_array_1, f_val_print): Use
7964 common_val_print.
7965
040f66bd
TT
79662020-03-13 Tom Tromey <tom@tromey.com>
7967
7968 * riscv-tdep.c (riscv_print_one_register_info): Use
7969 common_val_print.
7970
a6e05a6c
TT
79712020-03-13 Tom Tromey <tom@tromey.com>
7972
7973 * mi/mi-main.c (output_register): Use common_val_print.
7974
3444c526
TT
79752020-03-13 Tom Tromey <tom@tromey.com>
7976
7977 * infcmd.c (default_print_one_register_info): Use
7978 common_val_print.
7979
c2a44efe
TT
79802020-03-13 Tom Tromey <tom@tromey.com>
7981
7982 * valprint.h (common_val_print_checked): Declare.
7983 * valprint.c (common_val_print_checked): New function.
7984 * stack.c (print_frame_arg): Use common_val_print_checked.
7985
b0c26e99
TT
79862020-03-13 Tom Tromey <tom@tromey.com>
7987
7988 * valprint.c (do_val_print): New function, from val_print.
7989 (val_print): Use do_val_print.
7990 (common_val_print): Use do_val_print.
7991
ce3acbe9
TT
79922020-03-13 Tom Tromey <tom@tromey.com>
7993
7994 * valprint.c (value_print): Use scoped_value_mark.
7995
96c7f873
TV
79962020-03-13 Tom de Vries <tdevries@suse.de>
7997
7998 PR symtab/25646
7999 * psymtab.c (partial_symtab::partial_symtab): Don't set
8000 globals_offset and statics_offset. Push element onto
8001 current_global_psymbols and current_static_psymbols stacks.
8002 (concat): New function.
8003 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8004 element from current_global_psymbols and current_static_psymbols
8005 stacks. Concat popped elements to global_psymbols and
8006 static_symbols.
8007 (add_psymbol_to_list): Use current_global_psymbols and
8008 current_static_psymbols stacks.
8009 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8010 current_static_psymbols fields.
8011
6ba0a321
CB
80122020-03-12 Christian Biesinger <cbiesinger@google.com>
8013
8014 * corelow.c (sniff_core_bfd): Remove.
8015 (class core_target) <m_core_vec>: Remove.
8016 (core_target::core_target): Update.
8017 (core_file_fns): Remove.
8018 (deprecated_add_core_fns): Remove.
8019 (default_core_sniffer): Remove.
8020 (sniff_core_bfd): Remove.
8021 (default_check_format): Remove.
8022 (gdb_check_format): Remove.
8023 (core_target_open): Update.
8024 (core_target::get_core_register_section): Update.
8025 (get_core_registers_cb): Update.
8026 (core_target::fetch_registers): Update.
8027 * gdbcore.h (struct core_fns): Remove.
8028 (deprecated_add_core_fns): Remove.
8029 (default_core_sniffer): Remove.
8030 (default_check_format): Remove.
8031
227031b2
TT
80322020-03-12 Tom Tromey <tom@tromey.com>
8033
8034 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8035 CORE_ADDR.
8036 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8037
53807e9f
TT
80382020-03-12 Tom Tromey <tom@tromey.com>
8039
8040 * remote.c (remote_target::download_tracepoint)
8041 (remote_target::enable_tracepoint)
8042 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8043 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8044 sprintf_vma.
8045
64f25102
TT
80462020-03-12 Tom Tromey <tom@tromey.com>
8047
8048 * symfile-mem.c: Update CORE_ADDR size assert.
8049
272cd5a3
SM
80502020-03-12 Simon Marchi <simon.marchi@efficios.com>
8051
8052 * selftest.m4: Move to gdbsupport/.
8053 * acinclude.m4: Update path to selftest.m4.
8054
74cd3f9d
SM
80552020-03-12 Simon Marchi <simon.marchi@efficios.com>
8056
8057 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8058 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8059 gdbarch-selfselftests.c and selftest-arch.c.
8060 (SUBDIR_UNITTESTS_OBS): Rename to...
8061 (SELFTESTS_OBS): ... this.
8062 (COMMON_SFILES): Remove disasm-selftests.c and
8063 gdbarch-selftests.c.
8064 * configure.ac: Don't add selftest-arch.{c,o} to
8065 CONFIG_{SRCS,OBS}.
8066 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8067 preprocessor conditions.
8068
db6878ac
SM
80692020-03-12 Simon Marchi <simon.marchi@efficios.com>
8070
8071 * configure.ac: Don't source bfd/development.sh.
8072 * selftest.m4: Modify comment.
8073 * configure: Re-generate.
8074
4d696a5c
SM
80752020-03-12 Simon Marchi <simon.marchi@efficios.com>
8076
8077 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8078 not "true" or "false".
8079 * configure: Re-generate.
8080
8dd8e1c7
CB
80812020-03-12 Christian Biesinger <cbiesinger@google.com>
8082
8083 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8084 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8085 renamed to arm_nbsd_supply_gregset.
8086 (fetch_register): Update to call arm_nbsd_supply_gregset.
8087 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8088 (arm_netbsd_nat_target::fetch_registers): Update.
8089 (fetch_elfcore_registers): Removed.
8090 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8091 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8092 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8093 not require NetBSD system headers.
8094 (arm_nbsd_regset): New struct.
8095 (arm_nbsd_iterate_over_regset_sections): New function.
8096 (arm_netbsd_init_abi_common): Updated to call
8097 set_gdbarch_iterate_over_regset_sections.
8098 * arm-nbsd-tdep.h: New file.
8099
dd69bf7a
KB
81002020-03-11 Kevin Buettner <kevinb@redhat.com>
8101
8102 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8103 recursion.
8104
a0761e34
SM
81052020-03-11 Simon Marchi <simon.marchi@efficios.com>
8106
8107 * configure: Re-generate.
8108
e7a82140
TT
81092020-03-11 Tom Tromey <tromey@adacore.com>
8110
8111 * ada-typeprint.c (print_choices): Fix comment.
8112
dcc050c8
AB
81132020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8114
8115 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8116 previous item in the list, when the list has no items.
8117
1c33af77
TV
81182020-03-11 Tom de Vries <tdevries@suse.de>
8119
8120 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8121 PROP_LOCLIST handling code.
8122
8c95582d
AB
81232020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8124
8125 * buildsym-legacy.c (record_line): Pass extra parameter to
8126 record_line.
8127 * buildsym.c (buildsym_compunit::record_line): Take an extra
8128 parameter, reduce duplication in the line table, and record the
8129 is_stmt flag in the line table.
8130 * buildsym.h (buildsym_compunit::record_line): Add extra
8131 parameter.
8132 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8133 non-statement lines.
8134 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8135 this to the symtab builder.
8136 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8137 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8138 through to dwarf_record_line_1.
8139 * infrun.c (process_event_stop_test): When stepping, don't stop at
8140 a non-statement instruction, and only refresh the step info when
8141 we land in the middle of a line's range. Also add an extra
8142 comment.
8143 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8144 field.
8145 * record-btrace.c (btrace_find_line_range): Only record lines
8146 marked as is-statement.
8147 * stack.c (frame_show_address): Show the frame address if we are
8148 in a non-statement sal.
8149 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8150 (maintenance_print_one_line_table): Print a header for the is_stmt
8151 column, and include is_stmt information in the output.
8152 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8153 preference to non-statements.
8154 (find_pcs_for_symtab_line): Prefer is-statement entries.
8155 (find_line_common): Likewise.
8156 * symtab.h (struct linetable_entry): Add is_stmt field.
8157 (struct symtab_and_line): Likewise.
8158 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8159 arranging the line table.
8160
e4003a34
TV
81612020-03-07 Tom de Vries <tdevries@suse.de>
8162
8163 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8164 DIE.
8165
e8932576
TT
81662020-03-07 Tom Tromey <tom@tromey.com>
8167
8168 * valops.c (value_literal_complex): Remove obsolete comment.
8169 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8170 comment.
8171
29734269
SM
81722020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8173
8174 * infrun.h: Forward-declare thread_info.
8175 (set_step_info): Add thread_info parameter, add doc.
8176 * infrun.c (set_step_info): Add thread_info parameter, move doc
8177 to header.
8178 * infrun.c (process_event_stop_test): Pass thread to
8179 set_step_info call.
8180 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8181 set_step_info.
8182 (prepare_one_step): Add thread_info parameter, pass it to
8183 set_step_frame and prepare_one_step (recursive) call.
8184 (step_1): Pass thread to prepare_one_step call.
8185 (step_command_fsm::should_stop): Pass thread to
8186 prepare_one_step.
8187 (until_next_fsm): Pass thread to set_step_frame call.
8188 (finish_command): Pass thread to set_step_info call.
8189
b7d64b29
HD
81902020-03-06 Hannes Domani <ssbssa@yahoo.de>
8191
8192 * windows-tdep.c (windows_solib_create_inferior_hook):
8193 Check if inferior is running.
8194
09f2921c
TV
81952020-03-06 Tom de Vries <tdevries@suse.de>
8196
8197 * NEWS: Fix "the the".
8198 * ctfread.c: Same.
8199
fd760e79
TV
82002020-03-06 Tom de Vries <tdevries@suse.de>
8201
8202 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8203
20ea4a60
AB
82042020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8205
8206 * .dir-locals.el: Add a comment referencing the other copies of
8207 this file.
8208
0afbabf0
JB
82092020-03-05 John Baldwin <jhb@FreeBSD.org>
8210
8211 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8212 psargs.
8213
842806cb
TBA
82142020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8215
8216 * .gitattributes: New file.
8217
be1e3d3e
TT
82182020-03-04 Tom Tromey <tom@tromey.com>
8219
8220 * symmisc.c (print_symbol_bcache_statistics)
8221 (print_objfile_statistics): Update.
8222 * symfile.c (allocate_symtab): Use intern.
8223 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8224 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8225 macro_cache>: Remove.
8226 <string_cache>: New member.
8227 (struct objfile) <intern>: New methods.
8228 * elfread.c (elf_symtab_read): Use intern.
8229 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8230 (dwarf2_compute_name, dwarf2_physname)
8231 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8232 names.
8233 (guess_partial_die_structure_name): Update.
8234 (partial_die_info::fixup): Intern name.
8235 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8236 name.
8237 (dwarf2_name): Intern name. Update.
8238 * buildsym.c (buildsym_compunit::get_macro_table): Use
8239 string_cache.
8240
4e7625fd
TT
82412020-03-04 Tom Tromey <tom@tromey.com>
8242
8243 * jit.c (bfd_open_from_target_memory): Make "target" const.
8244 * corefile.c (gnutarget): Now const.
8245 * gdbcore.h (gnutarget): Now const.
8246
46f9f931
HD
82472020-03-04 Hannes Domani <ssbssa@yahoo.de>
8248
8249 * NEWS: Mention support for WOW64 processes.
8250 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8251 (amd64_windows_segment_register_p): Remove static.
8252 (_initialize_amd64_windows_nat): Update.
8253 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8254 * i386-windows-nat.c (context_offset): Update.
8255 (i386_mappings): Rename and remove static.
8256 (i386_windows_segment_register_p): Remove static.
8257 (_initialize_i386_windows_nat): Update.
8258 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8259 (STATUS_WX86_SINGLE_STEP): New macro.
8260 (EnumProcessModulesEx): New macro.
8261 (Wow64SuspendThread): New macro.
8262 (Wow64GetThreadContext): New macro.
8263 (Wow64SetThreadContext): New macro.
8264 (Wow64GetThreadSelectorEntry): New macro.
8265 (windows_set_context_register_offsets): Add static.
8266 (windows_set_segment_register_p): Likewise.
8267 (windows_add_thread): Adapt for WOW64 processes.
8268 (windows_fetch_one_register): Likewise.
8269 (windows_nat_target::fetch_registers): Likewise.
8270 (windows_store_one_register): Likewise.
8271 (display_selector): Likewise.
8272 (display_selectors): Likewise.
8273 (handle_exception): Likewise.
8274 (windows_continue): Likewise.
8275 (windows_nat_target::resume): Likewise.
8276 (windows_add_all_dlls): Likewise.
8277 (do_initial_windows_stuff): Likewise.
8278 (windows_nat_target::attach): Likewise.
8279 (windows_get_exec_module_filename): Likewise.
8280 (windows_nat_target::create_inferior): Likewise.
8281 (windows_xfer_siginfo): Likewise.
8282 (_initialize_loadable): Initialize Wow64SuspendThread,
8283 Wow64GetThreadContext, Wow64SetThreadContext,
8284 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8285 * windows-nat.h (windows_set_context_register_offsets):
8286 Remove declaration.
8287 (windows_set_segment_register_p): Likewise.
8288 (i386_windows_segment_register_p): Add declaration.
8289 (amd64_windows_segment_register_p): Likewise.
8290
440cf44e
LM
82912020-03-04 Luis Machado <luis.machado@linaro.org>
8292
8293 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8294 in "info registers" for AArch64/ARM.
8295
8296 The change caused "info registers" to not print GPR's.
8297
8298 gdb/ChangeLog:
8299
8300 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8301
8302 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8303 when reg->group is empty and reggroup is not.
8304
1009d92f
TT
83052020-03-03 Tom Tromey <tromey@adacore.com>
8306
8307 * dwarf2/frame.c (struct dwarf2_frame_cache)
8308 <checked_tailcall_bottom, entry_cfa_sp_offset,
8309 entry_cfa_sp_offset_p>: Remove members.
8310 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8311 (dwarf2_frame_prev_register): Don't call
8312 dwarf2_tailcall_sniffer_first.
8313 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8314 * frame-unwind.c (add_unwinder): New fuction.
8315 (frame_unwind_init): Use it. Add tailcall unwinder.
8316
5e5d66b6
AB
83172020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8318 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8319
8320 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8321 value should be printed as true.
8322
584cf46d
HD
83232020-03-03 Hannes Domani <ssbssa@yahoo.de>
8324
8325 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8326 (windows_init_abi): Set and use windows_so_ops.
8327
7b973adc
SDJ
83282020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8329
8330 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8331 when verifying if dealing with a convenience variable.
8332
bb7b70ab
LM
83332020-03-03 Luis Machado <luis.machado@linaro.org>
8334
8335 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8336
9822cb57
SM
83372020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8338
8339 * infrun.c (gdbarch_supports_displaced_stepping): New.
8340 (use_displaced_stepping): Break up conditions in smaller pieces.
8341 Use gdbarch_supports_displaced_stepping.
8342 (displaced_step_prepare_throw): Use
8343 gdbarch_supports_displaced_stepping.
8344
63e163f2
AB
83452020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8346
8347 * NEWS: Mention new behaviour of the history filename.
8348 * top.c (write_history_p): Add comment.
8349 (show_write_history_p): Add header comment, give a different
8350 message when history writing is on, but the history filename is
8351 empty.
8352 (history_filename): Add comment.
8353 (history_filename_empty): New function.
8354 (show_history_filename): Add header comment, give a different
8355 message when the filename is empty.
8356 (init_history): Compare history_filename against nullptr, and only
8357 read history if the filename is not empty.
8358 (set_history_filename): Add header comment, and only make
8359 non-empty filenames absolute.
8360 (init_main): Make the filename argument to 'set history filename'
8361 optional.
8362
81b86b97
CB
83632020-03-02 Christian Biesinger <cbiesinger@google.com>
8364
8365 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8366 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8367 (fetch_fp_register): Update.
8368 (fetch_fp_regs): Update.
8369 (store_fp_register): Update.
8370 (store_fp_regs): Update.
8371 (arm_netbsd_nat_target::read_description): New function.
8372 (fetch_elfcore_registers): Update.
8373
24ed6739
AB
83742020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8375
8376 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8377 general_thread if the stop reply is missing a thread-id.
8378 (remote_target::process_stop_reply): Use the first non-exited
8379 thread if the target didn't pass a thread-id.
8380 * infrun.c (do_target_wait): Move call to
8381 switch_to_inferior_no_thread to ....
8382 (do_target_wait_1): ... here.
8383
a84bb2a0
JT
83842020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8385
8386 * debuginfod-support.c: Include defs.h first.
8387
658dadf0
TV
83882020-02-28 Tom de Vries <tdevries@suse.de>
8389
8390 * symfile.c (set_initial_language): Use default language for lookup.
8391
4ebe4877
SM
83922020-02-28 Simon Marchi <simon.marchi@efficios.com>
8393
8394 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8395 reader variable, pass `this` to read_cutu_die_from_dwo.
8396
e5da1139
AM
83972020-02-27 Aaron Merey <amerey@redhat.com>
8398
8399 * source.c (open_source_file): Check for nullptr when computing
8400 srcpath.
8401
317f7127
TT
84022020-02-27 Tom Tromey <tromey@adacore.com>
8403
8404 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8405 member.
8406 (dwarf2_add_field): Don't update nfields.
8407 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8408
3104d9ee
AB
84092020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8410
8411 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8412 abs.
8413
b83470bf
TT
84142020-02-26 Tom Tromey <tom@tromey.com>
8415
8416 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8417 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8418 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8419 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8420 per_cu_data.
8421
edfe0a0c
TT
84222020-02-26 Tom Tromey <tom@tromey.com>
8423
8424 * dwarf2/index-write.c (psym_index_map): Change type.
8425 (add_address_entry_worker, write_one_signatured_type)
8426 (recursively_count_psymbols, recursively_write_psymbols)
8427 (class debug_names, psyms_seen_size, write_gdbindex)
8428 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8429
0d79cdc4
AM
84302020-02-26 Aaron Merey <amerey@redhat.com>
8431
8432 * Makefile.in: Handle optional debuginfod support.
8433 * NEWS: Update.
8434 * README: Add --with-debuginfod summary.
8435 * config.in: Regenerate.
8436 * configure: Regenerate.
8437 * configure.ac: Handle optional debuginfod support.
8438 * debuginfod-support.c: debuginfod helper functions.
8439 * debuginfod-support.h: Ditto.
8440 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8441 summary.
8442 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8443 when a dwz file cannot be found.
8444 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8445 debuginfo file cannot be found.
8446 * source.c (open_source_file): Query debuginfod servers when a
8447 source file cannot be found.
8448 * top.c (print_gdb_configuration): Include
8449 --{with,without}-debuginfod in the output.
8450
b65ce565
JG
84512020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8452
8453 * thread.c (thr_try_catch_cmd): Print thread name.
8454
d4c9a4f8
SM
84552020-02-26 Simon Marchi <simon.marchi@efficios.com>
8456
8457 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8458 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8459 dwarf2_fetch_die_type_sect_off): Move to...
8460 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8461 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8462 dwarf2_fetch_die_type_sect_off): ... here.
8463 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8464 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8465 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8466
0dce4280
TV
84672020-02-26 Tom de Vries <tdevries@suse.de>
8468
8469 PR gdb/25603
8470 * symfile.c (set_initial_language): Exit-early if
8471 language_mode == language_mode_manual.
8472
450a1bfc
SM
84732020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8474
8475 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8476 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8477 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8478
9e80cfa1
AB
84792020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8480
8481 * gdbtypes.c (create_array_type_with_stride): Handle negative
8482 array strides.
8483 * valarith.c (value_subscripted_rvalue): Likewise.
8484
09624f1f
LM
84852020-02-25 Luis Machado <luis.machado@linaro.org>
8486
8487 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8488
8cb5117c
SM
84892020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8490
8491 * loc.h (dwarf2_get_die_type): Move to...
8492 * read.h (dwarf2_get_die_type): ... here.
8493 * read.c (dwarf2_get_die_type): Move doc to header.
8494
c325c44e
JB
84952020-02-25 Joel Brobecker <brobecker@adacore.com>
8496
8497 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8498 'gnulib/Makefile.in' to the list.
8499
4ac93832
TT
85002020-02-24 Tom Tromey <tom@tromey.com>
8501
8502 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8503 Remove.
8504 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8505 XOBNEWVEC.
8506
197400e8
TT
85072020-02-24 Tom Tromey <tom@tromey.com>
8508
8509 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8510 New method.
8511 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8512 (dw2_do_instantiate_symtab, dw2_get_file_names)
8513 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8514
76935768
TT
85152020-02-24 Tom Tromey <tom@tromey.com>
8516
8517 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8518 make_scoped_restore.
8519 (dwarf2_psymtab::read_symtab): Don't clear
8520 reading_partial_symbols.
8521
a88ef40d
TV
85222020-02-24 Tom de Vries <tdevries@suse.de>
8523
8524 PR gdb/25592
8525 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8526
c9af6521
TV
85272020-02-24 Tom de Vries <tdevries@suse.de>
8528
8529 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8530 commands layout next/prev/regs.
8531
5707a07a
TT
85322020-02-22 Tom Tromey <tom@tromey.com>
8533
8534 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8535 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8536
3b0fb49e
TT
85372020-02-22 Tom Tromey <tom@tromey.com>
8538
8539 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8540
283be8bf
TT
85412020-02-22 Tom Tromey <tom@tromey.com>
8542
8543 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8544 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8545 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8546 * tui/tui.c (_initialize_tui): Add usage text.
8547
ca793b96
TT
85482020-02-22 Tom Tromey <tom@tromey.com>
8549
8550 * tui/tui-win.c (tui_set_focus_command)
8551 (tui_set_win_height_command): Use error_no_arg.
8552 (_initialize_tui_win): Update help text.
8553 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8554
432b5c40
TT
85552020-02-22 Tom Tromey <tom@tromey.com>
8556
8557 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8558 * tui/tui-disasm.h (struct tui_disasm_window)
8559 <display_start_addr>: Declare.
8560 * tui/tui-source.h (struct tui_source_window)
8561 <display_start_addr>: Declare.
8562 * tui/tui-winsource.h (struct tui_source_window_base)
8563 <show_source_line, display_start_addr>: New methods.
8564 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8565 Rename and move to protected section.
8566 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8567 (tui_source_window_base::do_erase_source_content): Update.
8568 (tui_source_window_base::show_source_line): Now a method.
8569 (tui_source_window_base::show_source_content)
8570 (tui_source_window_base::tui_source_window_base)
8571 (tui_source_window_base::rerender)
8572 (tui_source_window_base::refill)
8573 (tui_source_window_base::do_scroll_horizontal)
8574 (tui_source_window_base::set_is_exec_point_at)
8575 (tui_source_window_base::update_breakpoint_info)
8576 (tui_source_window_base::update_exec_info): Update.
8577 * tui/tui-source.c (tui_source_window::set_contents)
8578 (tui_source_window::showing_source_p)
8579 (tui_source_window::do_scroll_vertical)
8580 (tui_source_window::location_matches_p)
8581 (tui_source_window::line_is_displayed): Update.
8582 (tui_source_window::display_start_addr): New method.
8583 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8584 (tui_disasm_window::do_scroll_vertical)
8585 (tui_disasm_window::location_matches_p): Update.
8586 (tui_disasm_window::display_start_addr): New method.
8587
01b1af32
TT
85882020-02-22 Tom Tromey <tom@tromey.com>
8589
8590 * NEWS: Add entry for gdb.register_window_type.
8591 * tui/tui-layout.h (window_factory): New typedef.
8592 (tui_register_window): Declare.
8593 * tui/tui-layout.c (saved_tui_windows): New global.
8594 (tui_apply_current_layout): Use it.
8595 (tui_register_window): New function.
8596 * python/python.c (do_start_initialization): Call
8597 gdbpy_initialize_tui.
8598 (python_GdbMethods): Add "register_window_type" function.
8599 * python/python-internal.h (gdbpy_register_tui_window)
8600 (gdbpy_initialize_tui): Declare.
8601 * python/py-tui.c: New file.
8602 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8603
fc96d20b
TT
86042020-02-22 Tom Tromey <tom@tromey.com>
8605
8606 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8607
935c78c0
TT
86082020-02-22 Tom Tromey <tom@tromey.com>
8609
8610 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8611 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8612 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8613 (tui_set_win_focus_to): Move from tui-win.c.
8614
0240c8f1
TT
86152020-02-22 Tom Tromey <tom@tromey.com>
8616
8617 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8618 functions.
8619 (known_window_types): New global.
8620 (tui_get_window_by_name): Reimplement.
8621 (initialize_known_windows): New function.
8622 (validate_window_name): Rewrite.
8623 (_initialize_tui_layout): Call initialize_known_windows.
8624
fdb01f0c
TT
86252020-02-22 Tom Tromey <tom@tromey.com>
8626
8627 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8628 Remove constants.
8629 * tui/tui-winsource.h (struct tui_source_window_base)
8630 <tui_source_window_base>: Remove parameter.
8631 * tui/tui-winsource.c
8632 (tui_source_window_base::tui_source_window_base): Remove
8633 parameter.
8634 (tui_source_window_base::refill): Update.
8635 * tui/tui-stack.h (struct tui_locator_window)
8636 <tui_locator_window>: Update.
8637 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8638 Default the constructor.
8639 * tui/tui-regs.h (struct tui_data_item_window)
8640 <tui_data_item_window>: Default the constructor.
8641 (struct tui_data_window) <tui_data_window>: Likewise.
8642 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8643 Default the constructor.
8644 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8645 Default the constructor.
8646 <type>: Remove.
8647 (struct tui_win_info) <tui_win_info>: Default the constructor.
8648 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8649 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8650 Default the constructor.
8651
865a5aec
TT
86522020-02-22 Tom Tromey <tom@tromey.com>
8653
8654 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8655 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8656 * tui/tui-win.c (tui_resize_all): Don't call
8657 tui_delete_invisible_windows.
8658 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8659 done.
8660 (tui_set_layout): Update.
8661 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8662 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8663 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8664
e098d18c
TT
86652020-02-22 Tom Tromey <tom@tromey.com>
8666
8667 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8668 correctly.
8669
eb9c8874
TT
86702020-02-22 Tom Tromey <tom@tromey.com>
8671
8672 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8673
7eed1a8e
TT
86742020-02-22 Tom Tromey <tom@tromey.com>
8675
8676 * tui/tui-winsource.h (struct tui_source_window_iterator)
8677 <inner_iterator>: New etytypedef.
8678 <tui_source_window_iterator>: Take "end" parameter.
8679 <tui_source_window_iterator>: Take iterator.
8680 <operator*, advance>: Update.
8681 <m_iter>: Change type.
8682 <m_end>: New field.
8683 (struct tui_source_windows) <begin, end>: Update.
8684 * tui/tui-layout.c (tui_windows): New global.
8685 (tui_apply_current_layout): Clear tui_windows.
8686 (tui_layout_window::apply): Update tui_windows.
8687 * tui/tui-data.h (tui_windows): Declare.
8688 (all_tui_windows): Now inline function.
8689 (class tui_window_iterator, struct all_tui_windows): Remove.
8690
7c043ba6
TT
86912020-02-22 Tom Tromey <tom@tromey.com>
8692
8693 PR tui/17850:
8694 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8695 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8696 "height" argument.
8697 (class tui_layout_window) <get_sizes>: Likewise.
8698 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8699 argument.
8700 <get_sizes>: Add "height" argument.
8701 <m_vertical>: New field.
8702 * tui/tui-layout.c (tui_layout_split::clone): Update.
8703 (tui_layout_split::get_sizes): Add "height" argument.
8704 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8705 (tui_new_layout_command): Parse "-horizontal".
8706 (_initialize_tui_layout): Update help string.
8707 (tui_layout_split::specification): Add "-horizontal" when needed.
8708 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8709 argument.
8710 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8711 New methods.
8712
6bc56648
TT
87132020-02-22 Tom Tromey <tom@tromey.com>
8714
8715 * tui/tui-layout.h (enum tui_adjust_result): New.
8716 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8717 (class tui_layout_window) <adjust_size>: Return
8718 tui_adjust_result. Rewrite.
8719 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8720 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8721
c22fef7e
TT
87222020-02-22 Tom Tromey <tom@tromey.com>
8723
8724 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8725 parameter and return types.
8726 (class tui_layout_base) <specification>: Add "depth".
8727 (class tui_layout_window) <specification>: Add "depth".
8728 (class tui_layout_split) <specification>: Add "depth".
8729 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8730 and return types.
8731 (tui_new_layout_command): Parse sub-layouts.
8732 (_initialize_tui_layout): Update help string.
8733 (tui_layout_window::specification): Add "depth".
8734 (add_layout_command): Update.
8735
ee325b61
TT
87362020-02-22 Tom Tromey <tom@tromey.com>
8737
8738 * NEWS: Add "tui new-layout" item.
8739 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8740 Add new-layout command to help text.
8741 (validate_window_name): New function.
8742 (tui_new_layout_command): New function.
8743 (_initialize_tui_layout): Register "new-layout".
8744 (tui_layout_window::specification): New method.
8745 (tui_layout_window::specification): New method.
8746 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8747 method.
8748 (class tui_layout_window) <specification>: New method.
8749 (class tui_layout_split) <specification>: New method.
8750
416eb92d
TT
87512020-02-22 Tom Tromey <tom@tromey.com>
8752
8753 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8754 * tui/tui-win.c (window_name_completer): Update comment.
8755 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8756 Declare method.
8757 (class tui_layout_window) <replace_window>: Likewise.
8758 (class tui_layout_split) <replace_window>: Likewise.
8759 (tui_set_layout): Don't declare.
8760 (tui_set_initial_layout): Declare function.
8761 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8762 (asm_regs_layout): New globals.
8763 (tui_current_layout, show_layout): Remove.
8764 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8765 (find_layout, tui_apply_layout): New function.
8766 (layout_completer): Remove.
8767 (tui_next_layout): Reimplement.
8768 (tui_next_layout_command): New function.
8769 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8770 (tui_regs_layout): Reimplement.
8771 (tui_regs_layout_command): New function.
8772 (extract_display_start_addr): Rewrite.
8773 (next_layout, prev_layout): Remove.
8774 (tui_layout_window::replace_window): New method.
8775 (tui_layout_split::replace_window): New method.
8776 (destroy_layout): New function.
8777 (layout_list): New global.
8778 (add_layout_command): New function.
8779 (initialize_layouts): Update.
8780 (tui_layout_command): New function.
8781 (_initialize_tui_layout): Install "layout" commands.
8782 * tui/tui-data.h (enum tui_layout_type): Remove.
8783 (tui_current_layout): Don't declare.
8784
0dbc2fc7
TT
87852020-02-22 Tom Tromey <tom@tromey.com>
8786
8787 * tui/tui-regs.c (tui_reg_layout): Remove.
8788 (tui_reg_command): Use tui_regs_layout.
8789 * tui/tui-layout.h (tui_reg_command): Declare.
8790 * tui/tui-layout.c (tui_reg_command): New function.
8791
5afe342e
TT
87922020-02-22 Tom Tromey <tom@tromey.com>
8793
8794 * tui/tui.c (tui_rl_delete_other_windows): Call
8795 tui_remove_some_windows.
8796 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8797 Declare method.
8798 (class tui_layout_window) <remove_windows>: New method.
8799 (class tui_layout_split) <remove_windows>: Declare.
8800 (tui_remove_some_windows): Declare.
8801 * tui/tui-layout.c (tui_remove_some_windows): New function.
8802 (tui_layout_split::remove_windows): New method.
8803
427326a8
TT
88042020-02-22 Tom Tromey <tom@tromey.com>
8805
8806 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8807 * tui/tui-layout.h (tui_next_layout): Declare.
8808 * tui/tui-layout.c (tui_next_layout): New function.
8809
3fe12b6d
TT
88102020-02-22 Tom Tromey <tom@tromey.com>
8811
8812 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8813 correct coordinates.
8814
59b8b5d2
TT
88152020-02-22 Tom Tromey <tom@tromey.com>
8816
8817 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8818 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8819 DATA_WIN case.
8820
2a3d458b
TT
88212020-02-22 Tom Tromey <tom@tromey.com>
8822
8823 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8824 TUI_DISASM_WIN, not tui_win_list.
8825
3f0cbb04
TT
88262020-02-22 Tom Tromey <tom@tromey.com>
8827
8828 * valprint.c (generic_val_print_enum_1)
8829 (val_print_type_code_flags): Style member names.
8830 * rust-lang.c (val_print_struct, rust_print_enum)
8831 (rust_print_struct_def, rust_internal_print_type): Style member
8832 names.
8833 * p-valprint.c (pascal_object_print_value_fields): Style member
8834 names. Only call fprintf_symbol_filtered for static members.
8835 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8836 * f-valprint.c (f_val_print): Style member names.
8837 * f-typeprint.c (f_type_print_base): Style member names.
8838 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8839 call fprintf_symbol_filtered for static members.
8840 (cp_print_class_member): Style member names.
8841 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8842 member names.
8843 * ada-valprint.c (ada_print_scalar): Style enum names.
8844 (ada_val_print_enum): Likewise.
8845 * ada-typeprint.c (print_enum_type): Style enum names.
8846
d4d947ae
TT
88472020-02-21 Tom Tromey <tom@tromey.com>
8848
8849 * psympriv.h (struct partial_symtab): Update comment.
8850
e94e944b
TT
88512020-02-21 Tom Tromey <tromey@adacore.com>
8852
8853 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8854 type is CORE_ADDR.
8855
1eb73179
TV
88562020-02-21 Tom de Vries <tdevries@suse.de>
8857
8858 PR gdb/25534
8859 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8860 if dependencies[i]->user != NULL.
8861
4f180d53
AT
88622020-02-21 Ali Tamur <tamur@google.com>
8863
8864 * dwarf2/read.c (dwarf2_name): Add null check.
8865
22b6cd70
TT
88662020-02-20 Tom Tromey <tom@tromey.com>
8867
8868 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8869 ">=", in binary search.
8870 (dwarf2_find_containing_comp_unit): New overload.
8871 (run_test): New self-test.
8872 (_initialize_dwarf2_read): Register new test.
8873
bd0cf5a6
NC
88742020-02-20 Nelson Chu <nelson.chu@sifive.com>
8875
8876 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8877 * riscv-tdep.h: Likewise.
8878 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8879 rv32-only CSR.
8880 * features/riscv/64bit-csr.xml: Regenerated.
8881
3f702acd
SDJ
88822020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8883 Tom Tromey <tom@tromey.com>
8884
8885 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8886 of 'fputc_unfiltered'.
8887 (putchar_unfiltered): Call 'fputc_unfiltered'.
8888 (fputc_unfiltered): Call 'fputs_unfiltered'.
8889
d13c7322
AB
88902020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8891
8892 * config.in: Regenerate.
8893 * configure: Regenerate.
8894 * configure.ac: Add --with-python-libdir option.
8895 * main.c: Use WITH_PYTHON_LIBDIR.
8896
869d8950
TT
88972020-02-19 Tom Tromey <tom@tromey.com>
8898
8899 * symtab.c (general_symbol_info::compute_and_set_names): Use
8900 obstack_strndup. Simplify call to symbol_set_demangled_name.
8901
298e9637
SM
89022020-02-19 Simon Marchi <simon.marchi@efficios.com>
8903
8904 * dwarf2/read.c (allocate_signatured_type_table,
8905 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8906 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8907 Remove objfile parameter, update all callers.
8908
08410482
DE
89092020-02-19 Doug Evans <dje@google.com>
8910
8911 PR rust/25535
8912 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8913 rust_enum_variant calculation.
8914
dfdeeca1
TT
89152020-02-19 Tom Tromey <tromey@adacore.com>
8916
8917 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8918
2ef5453b
TT
89192020-02-19 Tom Tromey <tromey@adacore.com>
8920
8921 * ada-lang.c (cache_symbol): Use obstack_strdup.
8922
9f1528a1
AB
89232020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8924
8925 * configure: Regenerate.
8926
d3c22fa8
TT
89272020-02-19 Tom Tromey <tromey@adacore.com>
8928
8929 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8930 NULL check.
8931
bf84f706
MR
89322020-02-19 Maciej W. Rozycki <macro@wdc.com>
8933
8934 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8935
d1c9b20f
AB
89362020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8937
8938 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8939 if GDBSERVER is not defined.
8940 (riscv_tdesc_cache): Likewise, also store const target_desc.
8941 (STATIC_IN_GDB): Define.
8942 (riscv_create_target_description): Update declaration with
8943 STATIC_IN_GDB.
8944 (riscv_lookup_target_description): New function, only define if
8945 GDBSERVER is not defined.
8946 * arch/riscv.h (riscv_create_target_description): Declare only
8947 when GDBSERVER is defined.
8948 (riscv_lookup_target_description): New declaration when GDBSERVER
8949 is not defined.
8950 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
8951 (riscv_linux_read_features): ...this, and return
8952 riscv_gdbarch_features instead of target_desc.
8953 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
8954 (riscv_linux_read_description): Rename to...
8955 (riscv_linux_read_features): ...this.
8956 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
8957 Update to use riscv_gdbarch_features and
8958 riscv_lookup_target_description.
8959 * riscv-tdep.c (riscv_find_default_target_description): Use
8960 riscv_lookup_target_description instead of
8961 riscv_create_target_description.
8962
373d7ac0
SM
89632020-02-18 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * valprint.c (generic_val_print_enum_1): When printing a flag
8966 enum with value 0 and there is no enumerator with value 0, print
8967 just "0" instead of "(unknown: 0x0)".
8968
b29a2df0
SM
89692020-02-18 Simon Marchi <simon.marchi@efficios.com>
8970
8971 * valprint.c (generic_val_print_enum_1): Print unknown part of
8972 flag enum in hex.
8973
6740f0cc
SM
89742020-02-18 Simon Marchi <simon.marchi@efficios.com>
8975
8976 * dwarf2/read.c (update_enumeration_type_from_children): Allow
8977 flag enums to contain duplicate enumerators.
8978 * valprint.c (generic_val_print_enum_1): Update comment.
8979
edd45eb0
SM
89802020-02-18 Simon Marchi <simon.marchi@efficios.com>
8981
8982 * dwarf2/read.c: Include "count-one-bits.h".
8983 (update_enumeration_type_from_children): If an enumerator has
8984 multiple bits set, don't treat the enumeration as a "flag enum".
8985 * valprint.c (generic_val_print_enum_1): Assert that enumerators
8986 of flag enums have 0 or 1 bit set.
8987
6d0cf446
BE
89882020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
8989
8990 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
8991 conversion.
8992 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
8993 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
8994 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
8995 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
8996 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
8997
7001c1b7
SM
89982020-02-18 Simon Marchi <simon.marchi@efficios.com>
8999
9000 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9001
fdb61c6c
SM
90022020-02-14 Simon Marchi <simon.marchi@efficios.com>
9003
9004 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9005 displaced_step_closure_up.
9006 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9007 (struct displaced_step_closure_up):
9008 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9009 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9010 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9011 Likewise.
9012 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9013 * gdbarch.c, gdbarch.h: Re-generate.
9014 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9015 displaced_step_closure_up.
9016 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9017 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9018 * infrun.h (displaced_step_closure_up): New type alias.
9019 (struct displaced_step_inferior_state) <step_closure>: Change
9020 type to displaced_step_closure_up.
9021 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9022 displaced_step_closure_up.
9023 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9024
a4a38eb4
TT
90252020-02-14 Tom Tromey <tom@tromey.com>
9026
9027 * minidebug.c (gnu_debug_key): New global.
9028 (find_separate_debug_file_in_section): Use it.
9029
e8217e61
SM
90302020-02-14 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9033 std::unique_ptr.
9034 * gdbarch.c: Re-generate.
9035 * gdbarch.h: Re-generate.
9036 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9037 change.
9038 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9039 type to std::unique_ptr.
9040 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9041 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9042 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9043 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9044 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9045 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9046 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9047 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9048 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9049
d8d83535
SM
90502020-02-14 Simon Marchi <simon.marchi@efficios.com>
9051
9052 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9053 std::unique_ptr.
9054 (displaced_step_clear): Rename to...
9055 (displaced_step_reset): ... this. Just call displaced->reset ().
9056 (displaced_step_clear_cleanup): Rename to...
9057 (displaced_step_reset_cleanup): ... this.
9058 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9059 (displaced_step_fixup): Likewise.
9060 (resume_1): Likewise.
9061 (handle_inferior_event): Restore child's memory before calling
9062 displaced_step_fixup on the parent.
9063 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9064 to std::unique_ptr.
9065 <step_closure>: Change type to std::unique_ptr.
9066
5f661e03
SM
90672020-02-14 Simon Marchi <simon.marchi@efficios.com>
9068
9069 * arm-tdep.c: Include count-one-bits.h.
9070 (cleanup_block_store_pc): Use count_one_bits.
9071 (cleanup_block_load_pc): Use count_one_bits.
9072 (arm_copy_block_xfer): Use count_one_bits.
9073 (thumb2_copy_block_xfer): Use count_one_bits.
9074 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9075 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9076 (thumb_get_next_pcs_raw): Use count_one_bits.
9077 (arm_get_next_pcs_raw): Use count_one_bits_l.
9078 * arch/arm.c (bitcount): Remove.
9079 * arch/arm.h (bitcount): Remove.
9080
8084e579
TT
90812020-02-14 Tom Tromey <tromey@adacore.com>
9082
9083 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9084 Update.
9085 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9086 * dwarf2/loc.c (call_site_find_chain_1): Return
9087 unique_xmalloc_ptr.
9088 (call_site_find_chain): Likewise.
9089
258bf0ee
RB
90902020-02-14 Richard Biener <rguenther@suse.de>
9091
9092 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9093 on expression with division operators.
9094
f98a8458
AKS
90952020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9096
9097 * MAINTAINERS (Write After Approval): Adding myself.
9098
d1437c0e
TT
90992020-02-12 Tom Tromey <tom@tromey.com>
9100
9101 * event-loop.c (event_data, gdb_event, event_handler_func):
9102 Remove.
9103
3d4560f7
TT
91042020-02-12 Tom Tromey <tom@tromey.com>
9105
9106 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9107 (dwarf2_frame_objfile_data): Add comment.
9108 (find_comp_unit, set_comp_unit): New functions.
9109 (dwarf2_frame_find_fde): Use find_comp_unit.
9110 (dwarf2_build_frame_info): Use set_comp_unit.
9111
21982304
TT
91122020-02-12 Tom Tromey <tom@tromey.com>
9113
9114 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9115 (comp_unit): Don't initialize objfile.
9116 (execute_cfa_program): Add text_offset parameter.
9117 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9118 (dwarf2_frame_cache): Update.
9119 (dwarf2_build_frame_info): Don't set "objfile" member.
9120
4debb237
TT
91212020-02-12 Tom Tromey <tom@tromey.com>
9122
9123 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9124 (decode_frame_entry): Likewise.
9125 (dwarf2_build_frame_info): Update.
9126
0d404d44
TT
91272020-02-12 Tom Tromey <tom@tromey.com>
9128
9129 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9130 (decode_frame_entry_1): Use the comp_unit obstack.
9131
a7a3ae5c
TT
91322020-02-12 Tom Tromey <tom@tromey.com>
9133
9134 * dwarf2/frame.c (struct comp_unit): Add initializers and
9135 constructor.
9136 (dwarf2_frame_objfile_data): Store a comp_unit.
9137 (dwarf2_frame_find_fde): Update.
9138 (dwarf2_build_frame_info): Use "new".
9139
a9d65418
TT
91402020-02-12 Tom Tromey <tom@tromey.com>
9141
9142 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9143 (dwarf2_fde_table): Typedef for std::vector.
9144 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9145 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9146 (decode_frame_entry): Update.
9147 (dwarf2_build_frame_info): Use "new".
9148
7559c217
CB
91492020-02-12 Christian Biesinger <cbiesinger@google.com>
9150
9151 * arm-tdep.c (arm_gdbarch_init): Update.
9152 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9153 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9154 have_neon, is_m>: Change to bool.
9155
aeefc73c
CB
91562020-02-12 Christian Biesinger <cbiesinger@google.com>
9157
9158 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9159
d27b8e5f
TT
91602020-02-12 Tom Tromey <tom@tromey.com>
9161
9162 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9163
cd5900f3
HD
91642020-02-12 Hannes Domani <ssbssa@yahoo.de>
9165
9166 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9167 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9168
f056b22b
TT
91692020-02-11 Tom Tromey <tom@tromey.com>
9170
9171 * psymtab.h: Update comment.
9172
f92ff6b5
TT
91732020-02-11 Tom Tromey <tom@tromey.com>
9174
9175 * gdb_obstack.h (struct auto_obstack): Use
9176 DISABLE_COPY_AND_ASSIGN.
9177
3fd6912b
TT
91782020-02-11 Tom Tromey <tom@tromey.com>
9179
9180 * dwarf2/frame.h (struct objfile): Don't forward declare.
9181
69ed9b74
CB
91822020-02-11 Christian Biesinger <cbiesinger@google.com>
9183
9184 * cris-tdep.c (cris_supply_gregset): Change signature to match
9185 what struct regset expects.
9186 (cris_regset): New struct.
9187 (fetch_core_registers): Remove.
9188 (cris_iterate_over_regset_sections): New function.
9189 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9190 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9191
bda874f6
CB
91922020-02-11 Christian Biesinger <cbiesinger@google.com>
9193
9194 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9195 registers.
9196
754e1564
CB
91972020-02-11 Christian Biesinger <cbiesinger@google.com>
9198
9199 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9200
8ddd8e0e
SM
92012020-02-11 Simon Marchi <simon.marchi@efficios.com>
9202
9203 * configure: Re-generate.
9204
898e7f60
SM
92052020-02-11 Simon Marchi <simon.marchi@efficios.com>
9206
9207 * configure: Re-generate.
9208
58df732b
SM
92092020-02-11 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * acinclude: Update warning.m4 path.
9212 * warning.m4: Move to gdbsupport.
9213
da5bd37e
TT
92142020-02-11 Tom Tromey <tromey@adacore.com>
9215
9216 * remote.c (remote_console_output): Update.
9217 * printcmd.c (printf_command): Update.
9218 * event-loop.c (gdb_wait_for_event): Update.
9219 * linux-nat.c (sigchld_handler): Update.
9220 * remote-sim.c (gdb_os_write_stdout): Update.
9221 (gdb_os_flush_stdout): Update.
9222 (gdb_os_flush_stderr): Update.
9223 (gdb_os_write_stderr): Update.
9224 * exceptions.c (print_exception): Update.
9225 * remote-fileio.c (remote_fileio_func_read): Update.
9226 (remote_fileio_func_write): Update.
9227 * tui/tui.c (tui_enable): Update.
9228 * tui/tui-interp.c (tui_interp::init): Update.
9229 * utils.c (init_page_info): Update.
9230 (putchar_unfiltered, fputc_unfiltered): Update.
9231 (gdb_flush): Update.
9232 (emit_style_escape): Update.
9233 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9234 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9235 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9236 (stderr_file::write): Update.
9237 (stderr_file::puts): Update.
9238 * ui-file.h (ui_file_isatty, ui_file_write)
9239 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9240 (ui_file_puts): Don't declare.
9241
85f0dd3c
TV
92422020-02-10 Tom de Vries <tdevries@suse.de>
9243
9244 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9245 sentinel to char *.
9246
2e927613
TV
92472020-02-09 Tom de Vries <tdevries@suse.de>
9248
9249 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9250 filename if it matches "<artificial>".
9251
6bafc845
HD
92522020-02-09 Hannes Domani <ssbssa@yahoo.de>
9253
9254 * windows-tdep.c (struct enum_value_name): New struct.
9255 (create_enum): New function.
9256 (windows_get_siginfo_type): Create and use enum types.
9257
7928d571
HD
92582020-02-09 Hannes Domani <ssbssa@yahoo.de>
9259
9260 * NEWS: Mention $_siginfo support for Windows.
9261 * windows-nat.c (handle_exception): Set siginfo_er.
9262 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9263 (windows_xfer_siginfo): New function.
9264 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9265 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9266 (init_windows_gdbarch_data): New function.
9267 (get_windows_gdbarch_data): New function.
9268 (windows_get_siginfo_type): New function.
9269 (windows_init_abi): Register windows_get_siginfo_type.
9270 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9271
6751ebae
TT
92722020-02-08 Tom Tromey <tom@tromey.com>
9273
9274 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9275 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9276 <keep>: Declare method.
9277 <m_keep>: Remove member.
9278 <~cutu_reader>: Remove.
9279 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9280 (cutu_reader::cutu_reader): Update.
9281 (cutu_reader::keep): Rename from ~cutu_reader.
9282 (process_psymtab_comp_unit, build_type_psymtabs_1)
9283 (process_skeletonless_type_unit, load_partial_comp_unit)
9284 (load_full_comp_unit, dwarf2_read_addr_index)
9285 (read_signatured_type): Update.
9286
135f5437
TT
92872020-02-08 Tom Tromey <tom@tromey.com>
9288
9289 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9290 "want_partial_unit" parameter.
9291 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9292 Inline check for DW_TAG_partial_unit.
9293 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9294
9f66ff1c
TT
92952020-02-08 Tom Tromey <tom@tromey.com>
9296
9297 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9298 read.c.
9299 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9300 read.c.
9301
c8a7a66f
TT
93022020-02-08 Tom Tromey <tom@tromey.com>
9303
9304 * dwarf2/read.c (read_address): Move to comp-unit.c.
9305 (dwarf2_rnglists_process, dwarf2_ranges_process)
9306 (read_attribute_value, dwarf_decode_lines_1)
9307 (var_decode_location, decode_locdesc): Update.
9308 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9309 read.c. Remove "cu" parameter.
9310 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9311 method.
9312
8266302d
TT
93132020-02-08 Tom Tromey <tom@tromey.com>
9314
9315 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9316 (read_indirect_line_string): Update.
9317 * dwarf2/comp-unit.c (read_offset): Remove.
9318 (read_comp_unit_head): Update.
9319 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9320 method.
9321 (read_offset): Don't declare.
9322
4057dfde
TT
93232020-02-08 Tom Tromey <tom@tromey.com>
9324
9325 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9326 * dwarf2/read.c (struct comp_unit_head): Move to
9327 dwarf2/comp-unit.h.
9328 (enum class rcuh_kind): Move to comp-unit.h.
9329 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9330 (read_comp_unit_head, error_check_comp_unit_head)
9331 (read_and_check_comp_unit_head): Move to comp-unit.c.
9332 (read_offset, dwarf_unit_type_name): Likewise.
9333 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9334 (cutu_reader::cutu_reader, read_call_site_scope)
9335 (find_partial_die, follow_die_offset): Update.
9336 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9337
24aa364d
TT
93382020-02-08 Tom Tromey <tom@tromey.com>
9339
9340 * dwarf2/read.c (read_offset_1): Move to leb.c.
9341 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9342 (dwarf_decode_macro_bytes): Update.
9343 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9344 * dwarf2/leb.h (read_offset): Declare.
9345
2c7d5afc
TT
93462020-02-08 Tom Tromey <tom@tromey.com>
9347
9348 * dwarf2/read.c (dwarf2_section_size): Remove.
9349 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9350 Update.
9351 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9352
4075cb26
TT
93532020-02-08 Tom Tromey <tom@tromey.com>
9354
9355 * dwarf2/read.c (read_initial_length): Move to leb.c.
9356 * dwarf2/leb.h (read_initial_length): Declare.
9357 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9358 handle_nonstd parameter.
9359 * dwarf2/frame.c (read_initial_length): Remove.
9360 (decode_frame_entry_1): Update.
9361
09ba997f
TT
93622020-02-08 Tom Tromey <tom@tromey.com>
9363
9364 * dwarf2/loc.c (dwarf2_find_location_expression)
9365 (dwarf_evaluate_loc_desc::get_tls_address)
9366 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9367 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9368 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9369 (dwarf2_compile_property_to_c)
9370 (dwarf2_loc_desc_get_symbol_read_needs)
9371 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9372 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9373 (loclist_describe_location, loclist_tracepoint_var_ref)
9374 (loclist_generate_c_location): Update.
9375 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9376 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9377 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9378 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9379 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9380 (dwarf2_per_cu_data::addr_size)
9381 (dwarf2_per_cu_data::ref_addr_size)
9382 (dwarf2_per_cu_data::text_offset)
9383 (dwarf2_per_cu_data::addr_type): Now methods.
9384 (per_cu_header_read_in): Make per_cu "const".
9385 (dwarf2_version): Remove.
9386 (dwarf2_per_cu_data::int_type): Now a method.
9387 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9388 (set_die_type, read_array_type, read_subrange_index_type)
9389 (read_tag_string_type, read_subrange_type): Update.
9390 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9391 offset_size, ref_addr_size, text_offset, addr_type, version,
9392 objfile, int_type, addr_sized_int_type>: Declare methods.
9393
96c738c0
TT
93942020-02-08 Tom Tromey <tom@tromey.com>
9395
9396 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9397 Move earlier.
9398
8fdd972c
TT
93992020-02-08 Tom Tromey <tom@tromey.com>
9400
9401 * dwarf2/read.h (dwarf_line_debug): Declare.
9402 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9403 * dwarf2/read.c: Move line_header code to new files.
9404 (dwarf_line_debug): No longer static.
9405 * dwarf2/line-header.c: New file.
9406 * dwarf2/line-header.h: New file.
9407
03075812
TT
94082020-02-08 Tom Tromey <tom@tromey.com>
9409
9410 * dwarf2/read.c (struct line_header) <file_full_name,
9411 file_file_name>: Return unique_xmalloc_ptr.
9412 (line_header::file_file_name): Update.
9413 (line_header::file_full_name): Update.
9414 (dw2_get_file_names_reader): Update.
9415 (macro_start_file): Update.
9416
bb822404
TT
94172020-02-08 Tom Tromey <tom@tromey.com>
9418
9419 * dwarf2/read.c (struct line_header) <file_full_name,
9420 file_file_name>: Declare methods.
9421 (dw2_get_file_names_reader): Update.
9422 (file_file_name): Now a method.
9423 (file_full_name): Likewise.
9424 (macro_start_file): Update.
9425
009b64fc
TT
94262020-02-08 Tom Tromey <tom@tromey.com>
9427
9428 * dwarf2/read.c (dwarf_always_disassemble)
9429 (show_dwarf_always_disassemble): Move to loc.c.
9430 (_initialize_dwarf2_read): Move "always-disassemble" registration
9431 to loc.c.
9432 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9433 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9434 static.
9435 (show_dwarf_always_disassemble): Move from read.c.
9436 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9437
5895093f
TT
94382020-02-08 Tom Tromey <tom@tromey.com>
9439
9440 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9441 (create_quick_file_names_table): Return htab_up.
9442 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9443 Update.
9444 * dwarf2/read.h (struct dwarf2_per_objfile)
9445 <quick_file_names_table>: Now htab_up.
9446
b3b32279
TT
94472020-02-08 Tom Tromey <tom@tromey.com>
9448
9449 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9450
1d33d811
TT
94512020-02-08 Tom Tromey <tom@tromey.com>
9452
9453 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9454 Rewrite.
9455 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9456 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9457 (abbrev_table::abbrev_table): No longer inline.
9458 (ABBREV_HASH_SIZE): Remove.
9459 (abbrev_table::m_abbrevs): Now an htab_up.
9460
86de1d91
TT
94612020-02-08 Tom Tromey <tom@tromey.com>
9462
9463 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9464 (cutu_reader): Update.
9465 (build_type_psymtabs_1): Update.
9466 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9467 (abbrev_table::alloc_abbrev): Update.
9468 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9469 (abbrev_table::read): New static method, renamed from
9470 abbrev_table_read_table.
9471 (abbrev_table::alloc_abbrev)
9472 (abbrev_table::add_abbrev): Now private.
9473 (abbrev_table::abbrev_table): Now private.
9474 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9475
0335378b
TT
94762020-02-08 Tom Tromey <tom@tromey.com>
9477
9478 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9479 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9480 htab_up.
9481
48b490f2
TT
94822020-02-08 Tom Tromey <tom@tromey.com>
9483
9484 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9485 htab_up.
9486 (lookup_dwo_unit_in_dwp): Update.
9487 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9488 on obstack.
9489
bc68fb19
TT
94902020-02-08 Tom Tromey <tom@tromey.com>
9491
9492 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9493 obstack.
9494
d15acc42
TT
94952020-02-08 Tom Tromey <tom@tromey.com>
9496
9497 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9498 line_header_hash.
9499 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9500 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9501 Change type to htab_up.
9502
eaa5fa8b
TT
95032020-02-08 Tom Tromey <tom@tromey.com>
9504
9505 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9506 htab_up. Don't allocate on obstack.
9507 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9508 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9509 Change type to htab_up.
9510
b0b6a987
TT
95112020-02-08 Tom Tromey <tom@tromey.com>
9512
9513 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9514 Change type to htab_up.
9515 * dwarf2/read.c (create_signatured_type_table_from_index)
9516 (create_signatured_type_table_from_debug_names)
9517 (create_all_type_units, add_type_unit)
9518 (lookup_dwo_signatured_type, lookup_signatured_type)
9519 (process_skeletonless_type_unit): Update.
9520 (create_debug_type_hash_table, create_debug_types_hash_table):
9521 Change type of types_htab.
9522 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9523 htab_up. Don't allocate on obstack.
9524 (create_cus_hash_table): Change type of cus_htab parameter.
9525 (struct dwo_file) <cus, tus>: Now htab_up.
9526 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9527 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9528 (queue_and_load_all_dwo_tus): Update.
9529 * dwarf2/index-write.c (write_gdbindex): Update.
9530 (write_debug_names): Update.
9531
39856def
TT
95322020-02-08 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9535 dwarf2/read.c. Remove "next" member. Add constructor ntad
9536 destructor.
9537 (struct dwarf2_per_objfile) <queue>: New member.
9538 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9539 dwarf2/read.h.
9540 (dwarf2_queue, dwarf2_queue_tail): Remove.
9541 (class dwarf2_queue_guard): Add parameter to constructor. Use
9542 DISABLE_COPY_AND_ASSIGN.
9543 <m_per_objfile>: New member.
9544 <~dwarf2_queue_guard>: Rewrite.
9545 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9546 Update.
9547 (~dwarf2_queue_item): New.
9548
3e225074
TT
95492020-02-08 Tom Tromey <tom@tromey.com>
9550
9551 * dwarf2/read.c (struct die_info) <has_children>: New member.
9552 (dw2_get_file_names_reader): Remove has_children.
9553 (dw2_get_file_names): Update.
9554 (read_cutu_die_from_dwo): Remove has_children.
9555 (cutu_reader::init_tu_and_read_dwo_dies)
9556 (cutu_reader::cutu_reader): Update.
9557 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9558 Remove has_children.
9559 (build_type_psymtabs_1, process_skeletonless_type_unit)
9560 (load_partial_comp_unit, load_full_comp_unit): Update.
9561 (create_dwo_cu_reader): Remove has_children.
9562 (create_cus_hash_table, read_die_and_children): Update.
9563 (read_full_die_1,read_full_die): Remove has_children.
9564 (read_signatured_type): Update.
9565 (class cutu_reader) <has_children>: Remove.
9566
82ca8957
TT
95672020-02-08 Tom Tromey <tom@tromey.com>
9568
9569 * dwarf2/expr.c: Rename from dwarf2expr.c.
9570 * dwarf2/expr.h: Rename from dwarf2expr.h.
9571 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9572 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9573 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9574 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9575 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9576 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9577 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9578 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9579 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9580 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9581 * dwarf2/loc.c: Rename from dwarf2loc.c.
9582 * dwarf2/loc.h: Rename from dwarf2loc.h.
9583 * dwarf2/read.c: Rename from dwarf2read.c.
9584 * dwarf2/read.h: Rename from dwarf2read.h.
9585 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9586 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9587 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9588 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9589 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9590 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9591 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9592 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9593 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9594 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9595 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9596 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9597 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9598 Update.
9599 * Makefile.in (COMMON_SFILES): Update.
9600 (HFILES_NO_SRCDIR): Update.
9601
9e35d499
TT
96022020-02-08 Tom Tromey <tom@tromey.com>
9603
9604 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9605 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9606
1eba2311
TT
96072020-02-08 Tom Tromey <tom@tromey.com>
9608
9609 * dwarf2read.h (struct die_info): Don't declare.
9610
e41c2da2
TT
96112020-02-08 Tom Tromey <tom@tromey.com>
9612
9613 * dwarf2read.h (die_info_ptr): Remove typedef.
9614
4fc6c0d5
TT
96152020-02-08 Tom Tromey <tom@tromey.com>
9616
9617 * dwarf2read.c (read_call_site_scope)
9618 (handle_data_member_location, dwarf2_add_member_fn)
9619 (mark_common_block_symbol_computed, read_common_block)
9620 (attr_to_dynamic_prop, partial_die_info::read)
9621 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9622 (dwarf2_symbol_mark_computed, set_die_type): Update.
9623 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9624 method.
9625 (attr_form_is_block): Don't declare.
9626 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9627
cd6c91b4
TT
96282020-02-08 Tom Tromey <tom@tromey.com>
9629
9630 * dwarf2read.c (dwarf2_find_base_address, )
9631 (read_call_site_scope, rust_containing_type)
9632 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9633 (handle_data_member_location, dwarf2_add_member_fn)
9634 (get_alignment, read_structure_type, process_structure_scope)
9635 (mark_common_block_symbol_computed, read_common_block)
9636 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9637 (partial_die_info::read, read_attribute_value, new_symbol)
9638 (lookup_die_type, dwarf2_get_ref_die_offset)
9639 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9640 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9641 (dwarf2_symbol_mark_computed): Update.
9642 * dwarf2/attribute.h (struct attribute) <value_as_address,
9643 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9644 methods.
9645 (value_as_address, attr_form_is_section_offset)
9646 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9647 * dwarf2/attribute.c (attribute::value_as_address)
9648 (attribute::form_is_section_offset, attribute::form_is_constant)
9649 (attribute::form_is_ref): Now methods.
9650
162dce55
TT
96512020-02-08 Tom Tromey <tom@tromey.com>
9652
9653 * dwarf2read.c (struct attribute, DW_STRING)
9654 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9655 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9656 (attr_form_is_block, attr_form_is_section_offset)
9657 (attr_form_is_constant, attr_form_is_ref): Move.
9658 * dwarf2/attribute.h: New file.
9659 * dwarf2/attribute.c: New file, from dwarf2read.c.
9660 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9661
3054dd54
TT
96622020-02-08 Tom Tromey <tom@tromey.com>
9663
9664 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9665 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9666 Move.
9667 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9668 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9669 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9670 abbrev.c.
9671 * dwarf2/abbrev.h: New file.
9672 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9673 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9674
96b79293
TT
96752020-02-08 Tom Tromey <tom@tromey.com>
9676
9677 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9678 (dwarf2_section_size, dwarf2_get_section_info)
9679 (create_signatured_type_table_from_debug_names)
9680 (create_addrmap_from_aranges, read_debug_names_from_section)
9681 (get_gdb_index_contents_from_section, read_comp_unit_head)
9682 (error_check_comp_unit_head, read_abbrev_offset)
9683 (create_debug_type_hash_table, init_cu_die_reader)
9684 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9685 (read_comp_units_from_section, create_cus_hash_table)
9686 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9687 (create_dwp_v2_section, dwarf2_rnglists_process)
9688 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9689 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9690 (read_indirect_string_from_dwz, read_addr_index_1)
9691 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9692 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9693 (fill_in_loclist_baton): Update.
9694 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9695 get_containing_section, get_bfd_owner, get_bfd_section,
9696 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9697 (dwarf2_read_section, get_section_name, get_section_file_name)
9698 (get_containing_section, get_section_bfd_owner)
9699 (get_section_bfd_section, get_section_name, get_section_file_name)
9700 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9701 declare.
9702 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9703 (dwarf2_section_info::get_bfd_owner)
9704 (dwarf2_section_info::get_bfd_section)
9705 (dwarf2_section_info::get_name)
9706 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9707 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9708 (dwarf2_section_info::read): Now methods.
9709 * dwarf-index-write.c (class debug_names): Update.
9710
2c86cff9
TT
97112020-02-08 Tom Tromey <tom@tromey.com>
9712
9713 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9714 Move to dwarf2/section.h.
9715 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9716 (get_section_bfd_section, get_section_name)
9717 (get_section_file_name, get_section_id, get_section_flags)
9718 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9719 dwarf2/section.c.
9720 * dwarf2/section.h: New file.
9721 * dwarf2/section.c: New file, from dwarf2read.c.
9722 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9723
f4382c45
TT
97242020-02-08 Tom Tromey <tom@tromey.com>
9725
9726 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9727 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9728 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9729 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9730 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9731 * dwarf2/leb.h: New file, from dwarf2read.c.
9732 * dwarf2/leb.c: New file, from dwarf2read.c.
9733 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9734 Remove.
9735 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9736 (COMMON_SFILES): Add dwarf2/leb.c.
9737
01840b7a
JB
97382020-02-08 Joel Brobecker <brobecker@adacore.com>
9739
9740 GDB 9.1 released.
9741
dfcb27e4
IB
97422020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9743
9744 PR gdb/25190:
aac66a4c
SM
9745 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9746 * gdb/remote.c (remote_console_output): Update.
9747 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9748 (ui_file_puts): ...this.
9749 * gdb/ui-file.h (ui_file_puts): Add declaration.
9750 * gdb/utils.c (emit_style_escape): Update.
9751 (flush_wrap_buffer): Update.
9752 (fputs_maybe_filtered): Update.
9753 (fputs_unfiltered): Add function.
dfcb27e4 9754
faa17681
IB
97552020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9756
aac66a4c
SM
9757 * gdb/event-loop.c (gdb_wait_for_event): Update.
9758 * gdb/printcmd.c (printf_command): Update.
9759 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9760 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9761 (gdb_os_flush_stderr): Update.
9762 * gdb/remote.c (remote_console_output): Update.
9763 * gdb/ui-file.c (gdb_flush): Rename to...
9764 (ui_file_flush): ...this.
9765 (stderr_file::write): Update.
9766 (stderr_file::puts): Update.
9767 * gdb/ui-file.h (gdb_flush): Rename to...
9768 (ui_file_flush): ...this.
9769 * gdb/utils.c (gdb_flush): Add function.
9770 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9771
5abbbe1d
TT
97722020-02-07 Tom Tromey <tromey@adacore.com>
9773
9774 PR breakpoints/24915:
9775 * source.c (find_and_open_source): Do not check basenames_may_differ.
9776
919adfe8
TT
97772020-02-07 Tom Tromey <tom@tromey.com>
9778
9779 * README: Update gdbserver documentation.
9780 * gdbserver: Move to top level.
9781 * configure.tgt (build_gdbserver): Remove.
9782 * configure.ac: Remove --enable-gdbserver.
9783 * configure: Rebuild.
9784 * Makefile.in (distclean): Don't mention gdbserver.
9785
1d5d29e7
SV
97862020-02-06 Shahab Vahedi <shahab@synopsys.com>
9787
9788 * source-cache.c (source_cache::ensure): Surround
9789 get_plain_source_lines with a try/catch.
9790 (source_cache::get_line_charpos): Get rid of try/catch
9791 and only check for the return value of "ensure".
9792 * tui/tui-source.c (tui_source_window::set_contents):
9793 Simplify "nlines" calculation.
9794
6eb1129c
SV
97952020-02-06 Shahab Vahedi <shahab@synopsys.com>
9796
9797 * MAINTAINERS (Write After Approval): Add myself.
9798
c6a42d11
CB
97992020-02-05 Christian Biesinger <cbiesinger@google.com>
9800
9801 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9802 function call.
9803
c8ecdda6
CB
98042020-02-05 Christian Biesinger <cbiesinger@google.com>
9805
9806 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9807
f6480e70
MR
98082020-02-05 Maciej W. Rozycki <macro@wdc.com>
9809
9810 * nat/riscv-linux-tdesc.h: New file.
9811 * nat/riscv-linux-tdesc.c: New file, taking code from...
9812 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9813 ... here.
9814 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9815 NATDEPFILES.
9816
dcc9fbc6
AB
98172020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9818
9819 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9820 we don't set the fake simulator ptid to the null_ptid.
9821
719546c4
SM
98222020-02-03 Simon Marchi <simon.marchi@efficios.com>
9823
9824 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9825 * gdbthread.h (class thread_info) <resumed>: Likewise.
9826 * infrun.c (resume_1): Likewise.
9827 (proceed): Likewise.
9828 (infrun_thread_stop_requested): Likewise.
9829 (stop_all_threads): Likewise.
9830 (handle_inferior_event): Likewise.
9831 (restart_threads): Likewise.
9832 (finish_step_over): Likewise.
9833 (keep_going_stepped_thread): Likewise.
9834 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9835 (linux_handle_extended_wait): Likewise.
9836 * record-btrace.c (get_thread_current_frame_id): Likewise.
9837 * record-full.c (record_full_wait_1): Likewise.
9838 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9839 * target.c (target_resume): Likewise.
9840 * thread.c (set_running_thread): Likewise.
9841
e409c542
AKS
98422020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9843
9844 * f-valprint.c (f77_print_array_1): Changed datatype of index
9845 variable to LONGEST from int to enable it to contain bound
9846 values correctly.
9847
ee98c0da
MR
98482020-02-03 Maciej W. Rozycki <macro@wdc.com>
9849
9850 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9851 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9852 offsets according to FLEN determined.
9853 (riscv_linux_nat_target::read_description): Determine FLEN
9854 dynamically.
9855 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9856 according to FLEN determined.
9857 (riscv_linux_nat_target::store_registers): Likewise.
9858
aa66aac4
SV
98592020-02-01 Shahab Vahedi <shahab@synopsys.com>
9860
9861 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9862 when reg->group is empty and reggroup is not.
9863
fd9faca8
TT
98642020-01-31 Tom Tromey <tromey@adacore.com>
9865
9866 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9867 Call beneath target's mourn_inferior after unpushing.
9868
42330a68
AB
98692020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9870
9871 PR tui/9765
9872 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9873 have enough lines to fill the screen, still return the lowest
9874 address we found.
9875
7a27a45b
AB
98762020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9877
9878 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9879 '-', '<', and '>' commands.
9880
c47f70e2
PA
98812020-01-29 Pedro Alves <palves@redhat.com>
9882 Sergio Durigan Junior <sergiodj@redhat.com>
9883
9884 * infcmd.c (construct_inferior_arguments): Assert that
9885 'argc' is greater than 0.
9886
5133a315
LM
98872020-01-29 Luis Machado <luis.machado@linaro.org>
9888
9889 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9890 (BRK_INSN_MASK): Define to 0xd4200000.
9891 (aarch64_program_breakpoint_here_p): New function.
9892 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9893 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9894 breakpoint.c.
9895 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9896 breakpoint.h
9897 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9898 call gdbarch_program_breakpoint_here_p.
9899 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9900 default_program_breakpoint_here_p, changed return type to bool and
9901 simplified.
9902 * breakpoint.h (program_breakpoint_here): Moved prototype to
9903 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9904 return type to bool.
9905 * gdbarch.c: Regenerate.
9906 * gdbarch.h: Regenerate.
9907 * gdbarch.sh (program_breakpoint_here_p): New method.
9908 * infrun.c (handle_signal_stop): Call
9909 gdbarch_program_breakpoint_here_p.
9910
168f8c6b
TT
99112020-01-26 Tom Tromey <tom@tromey.com>
9912
9913 * ctfread.c (struct ctf_fp_info): Reindent.
9914 (_initialize_ctfread): Remove.
9915
128a391f
TT
99162020-01-26 Tom Tromey <tom@tromey.com>
9917
9918 * psymtab.c (partial_map_expand_apply)
9919 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9920 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9921 (psym_print_stats, psym_expand_symtabs_for_function)
9922 (psym_map_symbol_filenames, psym_map_matching_symbols)
9923 (psym_expand_symtabs_matching)
9924 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9925 (maintenance_check_psymtabs): Use new methods.
9926 * psympriv.h (struct partial_symtab) <readin_p,
9927 get_compunit_symtab>: New methods.
9928 <readin, compunit_symtab>: Remove members.
9929 (struct standard_psymtab): New.
9930 (struct legacy_psymtab): Derive from standard_psymtab.
9931 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9932 standard_psymtab.
9933 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9934
0494dbec
TT
99352020-01-26 Tom Tromey <tom@tromey.com>
9936
9937 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9938 read_dependencies. Add assert.
9939 * psymtab.c (partial_symtab::read_dependencies): New method.
9940 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9941 method.
9942 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9943 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9944 read_dependencies.
9945 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9946 Add assert.
9947
8566b89b
TT
99482020-01-26 Tom Tromey <tom@tromey.com>
9949
9950 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
9951 Call expand_psymtab.
9952 (xcoff_read_symtab): Call expand_psymtab.
9953 (xcoff_start_psymtab, xcoff_end_psymtab): Set
9954 legacy_expand_psymtab.
9955 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
9956 method.
9957 (struct legacy_psymtab) <expand_psymtab>: Implement.
9958 <legacy_expand_psymtab>: New member.
9959 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
9960 (parse_partial_symbols): Set legacy_expand_psymtab.
9961 (psymtab_to_symtab_1): Change argument order. Call
9962 expand_psymtab.
9963 (new_psymtab): Set legacy_expand_psymtab.
9964 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
9965 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
9966 expand_psymtab.
9967 (dwarf2_psymtab::expand_psymtab): Rename from
9968 psymtab_to_symtab_1. Call expand_psymtab.
9969 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
9970 (dbx_end_psymtab): Likewise.
9971 (dbx_psymtab_to_symtab_1): Change argument order. Call
9972 expand_psymtab.
9973 (dbx_read_symtab): Call expand_psymtab.
9974 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
9975 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
9976 (ctf_psymtab::read_symtab): Call expand_psymtab.
9977
077cbab2
TT
99782020-01-26 Tom Tromey <tom@tromey.com>
9979
9980 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
9981 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
9982 messages.
9983 * mdebugread.c (mdebug_read_symtab): Remove prints.
9984 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
9985 assert.
9986 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
9987
891813be
TT
99882020-01-26 Tom Tromey <tom@tromey.com>
9989
9990 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
9991 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
9992 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
9993 legacy_symtab.
9994 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
9995 * psymtab.c (psymtab_to_symtab): Call method.
9996 (dump_psymtab): Update.
9997 * psympriv.h (struct partial_symtab): Add virtual destructor.
9998 <read_symtab>: New method.
9999 (struct legacy_symtab): New.
10000 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10001 (struct pst_map) <pst>: Now a legacy_psymtab.
10002 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10003 (new_psymtab): Use legacy_psymtab.
10004 * dwarf2read.h (struct dwarf2_psymtab): New.
10005 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10006 * dwarf2read.c (dwarf2_create_include_psymtab)
10007 (dwarf2_build_include_psymtabs, create_type_unit_group)
10008 (create_partial_symtab, process_psymtab_comp_unit_reader)
10009 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10010 (set_partial_user): Use dwarf2_psymtab.
10011 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10012 (psymtab_to_symtab_1, process_full_comp_unit)
10013 (process_full_type_unit, dwarf2_ranges_read)
10014 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10015 (dwarf_decode_lines): Use dwarf2_psymtab.
10016 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10017 (add_address_entry_worker, write_one_signatured_type)
10018 (recursively_count_psymbols, recursively_write_psymbols)
10019 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10020 (write_debug_names): Likewise.
10021 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10022 <pst>: Now a legacy_psymtab.
10023 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10024 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10025 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10026 * ctfread.c (struct ctf_psymtab): New.
10027 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10028 ctf_psymtab.
10029 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10030 (create_partial_symtab): Return a ctf_psymtab.
10031 (scan_partial_symbols): Update.
10032
c3693a1d
TT
100332020-01-26 Tom Tromey <tom@tromey.com>
10034
10035 * xcoffread.c (xcoff_start_psymtab): Use new.
10036 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10037 renamed from start_psymtab_common.
10038 * psympriv.h (struct partial_symtab): Add new constructor.
10039 (start_psymtab_common): Don't declare.
10040 * mdebugread.c (parse_partial_symbols): Use new.
10041 * dwarf2read.c (create_partial_symtab): Use new.
10042 * dbxread.c (start_psymtab): Use new.
10043 * ctfread.c (create_partial_symtab): Use new.
10044
32caafd0
TT
100452020-01-26 Tom Tromey <tom@tromey.com>
10046
10047 * xcoffread.c (xcoff_end_psymtab): Use new.
10048 * psymtab.c (start_psymtab_common): Use new.
10049 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10050 Update.
10051 * psympriv.h (struct partial_symtab): Add parameters to
10052 constructor. Don't inline.
10053 (allocate_psymtab): Don't declare.
10054 * mdebugread.c (new_psymtab): Use new.
10055 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10056 * dbxread.c (dbx_end_psymtab): Use new.
10057
abaa2f23
TT
100582020-01-26 Tom Tromey <tom@tromey.com>
10059
10060 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10061 allocate_psymtab. Update documentation.
10062 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10063 allocate_psymtab. Do not use new.
10064 (allocate_psymtab): Use new. Update.
10065
6d94535f
TT
100662020-01-26 Tom Tromey <tom@tromey.com>
10067
10068 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10069 * psymtab.c (psym_print_stats): Update.
10070 * psympriv.h (struct partial_symtab) <readin,
10071 psymtabs_addrmap_supported, anonymous>: Now bool.
10072 * mdebugread.c (psymtab_to_symtab_1): Update.
10073 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10074 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10075 (process_full_comp_unit, process_full_type_unit): Update.
10076 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10077 * ctfread.c (psymtab_to_symtab): Update.
10078
6f17252b
TT
100792020-01-26 Tom Tromey <tom@tromey.com>
10080
10081 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10082 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10083 * psymtab.c (psymtab_storage): Delete psymtabs.
10084 (psymtab_storage::allocate_psymtab): Use new.
10085 (psymtab_storage::discard_psymtab): Use delete.
10086 * psympriv.h (struct partial_symtab): Add constructor and
10087 initializers.
10088
f6f1cebc
TT
100892020-01-26 Tom Tromey <tom@tromey.com>
10090
10091 * machoread.c: Do not include psympriv.h.
10092
e47e48f6
PW
100932020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10094
10095 * NEWS: Mention the new option and the set/show commands.
10096
a2fedca9
PW
100972020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10098
10099 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10100 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10101 (validate_exec_file): New variables, enums, functions.
10102 (exec_file_locate_attach, print_section_info): Style the filenames.
10103 (_initialize_exec): Install show_exec_file_mismatch_command and
10104 set_exec_file_mismatch_command.
10105 * gdbcore.h (validate_exec_file): Declare.
10106 * infcmd.c (attach_command): Call validate_exec_file.
10107 * remote.c ( remote_target::remote_add_inferior): Likewise.
10108
7ffa82e1
AB
101092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10110
10111 * frame.c (find_frame_sal): Move call to get_next_frame into more
10112 inner scope.
10113 * inline-frame.c (inilne_state) <inline_state>: Update argument
10114 types.
10115 (inilne_state) <skipped_symbol>: Rename to...
10116 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10117 (skip_inline_frames): Build vector of skipped symbols and use this
10118 to reate the inline_state.
10119 (inline_skipped_symbol): Add a comment and some assertions, fetch
10120 skipped symbol from the list.
10121
3d92a3e3
AB
101222020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10123
10124 * buildsym.c (lte_is_less_than): Delete.
10125 (buildsym_compunit::end_symtab_with_blockvector): Create local
10126 lambda function to sort line table entries, and use
10127 std::stable_sort instead of std::sort.
10128 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10129 markers when looking for a previous line.
10130
94a72be7
AB
101312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10132
10133 * dwarf2read.c (lnp_state_machine::record_line): Include
10134 end_sequence parameter in debug print out. Record the line if we
10135 are at an end_sequence marker even if it's not the start of a
10136 statement.
10137 * symmisc.c (maintenance_print_one_line_table): Print end of
10138 sequence markers with 'END' not '0'.
10139
53af73bf
PA
101402020-01-24 Pedro Alves <palves@redhat.com>
10141
10142 PR gdb/25410
10143 * thread.c (scoped_restore_current_thread::restore): Use
10144 switch_to_inferior_no_thread.
10145 * exec.c: Include "progspace-and-thread.h".
10146 (add_target_sections, remove_target_sections):
10147 scoped_restore_current_pspace_and_thread instead of
10148 scoped_restore_current_thread.
10149 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10150 and aspace to the inferior before calling clone_program_space.
10151 Remove stale comment.
10152
3050c6f4
CB
101532020-01-24 Christian Biesinger <cbiesinger@google.com>
10154
10155 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10156 (arm_netbsd_nat_target::fetch_registers): ...this.
10157 (arm_nbsd_nat_target::store_registers): Rename to...
10158 (arm_netbsd_nat_target::store_registers): ...this.
10159
73685c7e
CB
101602020-01-24 Christian Biesinger <cbiesinger@google.com>
10161
10162 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10163 register_t.
10164
89203d40
CB
101652020-01-24 Christian Biesinger <cbiesinger@google.com>
10166
10167 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10168 Update comment.
10169 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10170 Likewise.
10171 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10172 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10173 the correct replacement (iterate_over_regset_sections).
10174 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10175 Update comment.
10176
1ba1ac88
AB
101772020-01-24 Graham Markall <graham.markall@embecosm.com>
10178
10179 PR gdb/23718
10180 * gdb/python/python.c (execute_gdb_command): Call
10181 async_enable_stdin in catch block.
10182
f3364a6d
AB
101832020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10184
10185 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10186 SWITCH_THRU_ALL_UIS.
10187
733d0a67
AB
101882020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10189
10190 PR tui/9765
10191 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10192 comment, add extra parameter, and update to store previous symbol
10193 when appropriate.
10194 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10195 add extra parameter.
10196 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10197 remove unneeded parameter, add try/catch around gdb_print_insn,
10198 rewrite to add items to asm_lines vector.
10199 (tui_find_backward_disassembly_start_address): New function.
10200 (tui_find_disassembly_address): Updated throughout.
10201 (tui_disasm_window::set_contents): Update for changes to
10202 tui_disassemble.
10203 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10204 number of lines to scroll.
10205
b3b3bada
SM
102062020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10207
10208 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10209 (SECT_OFF_DATA): Likewise.
10210 (SECT_OFF_RODATA): Likewise.
10211 (SECT_OFF_TEXT): Likewise.
10212 (SECT_OFF_BSS): Likewise.
10213 (struct objfile) <text_section_offset, data_section_offset>: New
10214 methods.
10215 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10216 objfile::text_section_offset.
10217 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10218 * coffread.c (coff_symtab_read): Likewise.
10219 (enter_linenos): Likewise.
10220 (process_coff_symbol): Likewise.
10221 * ctfread.c (get_objfile_text_range): Likewise.
10222 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10223 Use objfile::data_section_offset.
10224 * dwarf2-frame.c (execute_cfa_program): Use
10225 objfile::text_section_offset.
10226 (dwarf2_frame_find_fde): Likewise.
10227 * dwarf2read.c (create_addrmap_from_index): Likewise.
10228 (create_addrmap_from_aranges): Likewise.
10229 (dw2_find_pc_sect_compunit_symtab): Likewise.
10230 (process_psymtab_comp_unit_reader): Likewise.
10231 (add_partial_symbol): Likewise.
10232 (add_partial_subprogram): Likewise.
10233 (process_full_comp_unit): Likewise.
10234 (read_file_scope): Likewise.
10235 (read_func_scope): Likewise.
10236 (read_lexical_block_scope): Likewise.
10237 (read_call_site_scope): Likewise.
10238 (dwarf2_rnglists_process): Likewise.
10239 (dwarf2_ranges_process): Likewise.
10240 (dwarf2_ranges_read): Likewise.
10241 (dwarf_decode_lines_1): Likewise.
10242 (new_symbol): Likewise.
10243 (dwarf2_fetch_die_loc_sect_off): Likewise.
10244 (dwarf2_per_cu_text_offset): Likewise.
10245 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10246 * hppa-tdep.c (read_unwind_info): Likewise.
10247 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10248 * psympriv.h (struct partial_symtab): Likewise.
10249 * psymtab.c (find_pc_sect_psymtab): Likewise.
10250 * solib-svr4.c (enable_break): Likewise.
10251 * stap-probe.c (relocate_address): Use
10252 objfile::data_section_offset.
10253 * xcoffread.c (enter_line_range): Use
10254 objfile::text_section_offset.
10255 (read_xcoff_symtab): Likewise.
10256
ab53f382
SM
102572020-01-23 Simon Marchi <simon.marchi@efficios.com>
10258
10259 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10260 declaration to narrower scopes.
10261
e7eee665
SM
102622020-01-23 Simon Marchi <simon.marchi@efficios.com>
10263
10264 * darwin-nat.h (struct darwin_exception_msg, enum
10265 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10266 Move up.
10267 (class darwin_nat_target) <wait_1, check_new_threads,
10268 decode_exception_message, decode_message, stop_inferior,
10269 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10270 * darwin-nat.c (darwin_check_new_threads): Rename to...
10271 (darwin_nat_target::check_new_threads): ... this.
10272 (darwin_suspend_inferior_it): Remove.
10273 (darwin_decode_exception_message): Rename to...
10274 (darwin_nat_target::decode_exception_message): ... this.
10275 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10276 (darwin_decode_message): Rename to...
10277 (darwin_nat_target::decode_message): ... this.
10278 (cancel_breakpoint): Rename to...
10279 (darwin_nat_target::cancel_breakpoint): ... this.
10280 (darwin_wait): Rename to...
10281 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10282 instead of iterate_over_inferiors.
10283 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10284 (darwin_stop_inferior): Rename to...
10285 (darwin_nat_target::stop_inferior): ... this.
10286 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10287 (darwin_init_thread_list): Rename to...
10288 (darwin_nat_target::init_thread_list): ... this.
10289 (darwin_ptrace_him): Rename to...
10290 (darwin_nat_target::ptrace_him): ... this.
10291 (darwin_nat_target::create_inferior): Pass lambda function to
10292 fork_inferior.
10293 (darwin_nat_target::detach): Call stop_inferior instead of
10294 darwin_stop_inferior.
10295 * fork-inferior.h (fork_inferior): Change init_trace_fun
10296 parameter to gdb::function_view.
10297 * fork-inferior.c (fork_inferior): Likewise.
10298
c162ed3e
HD
102992020-01-23 Hannes Domani <ssbssa@yahoo.de>
10300
10301 * i386-cygwin-tdep.c (core_process_module_section): Update.
10302 * windows-nat.c (struct lm_info_windows): Add text_offset.
10303 (windows_xfer_shared_libraries): Update.
10304 * windows-tdep.c (windows_xfer_shared_library):
10305 Add text_offset_cached argument.
10306 * windows-tdep.h (windows_xfer_shared_library): Update.
10307
a1237872
SM
103082020-01-21 Simon Marchi <simon.marchi@efficios.com>
10309
10310 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10311
b3ee6dd9
SM
103122020-01-21 Simon Marchi <simon.marchi@efficios.com>
10313
10314 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10315 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10316 replace with range-based for.
10317 (gdbsim_interrupt_inferior): Remove.
10318 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10319 with a range-based for. Inline code from
10320 gdbsim_interrupt_inferior.
10321
f9fac3c8
SM
103222020-01-21 Simon Marchi <simon.marchi@efficios.com>
10323
10324 * infrun.c (proceed): Fix indentation.
10325
f6474de9
TT
103262020-01-21 Tom Tromey <tromey@adacore.com>
10327
10328 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10329 * python/python.c (python_extension_ops): Update.
10330 (gdbpy_colorize): New function.
10331 * python/lib/gdb/__init__.py (colorize): New function.
10332 * extension.h (ext_lang_colorize): Declare.
10333 * extension.c (ext_lang_colorize): New function.
10334 * extension-priv.h (struct extension_language_ops) <colorize>: New
10335 member.
10336 * cli/cli-style.c (_initialize_cli_style): Update help text.
10337
f0c702d4
LM
103382020-01-21 Luis Machado <luis.machado@linaro.org>
10339
10340 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10341 <cond>: Change type to bool.
10342 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10343 (aarch64_displaced_step_cb): Likewise.
10344 (aarch64_displaced_step_tb): Likewise.
10345
1ab139e5
LM
103462020-01-21 Luis Machado <luis.machado@linaro.org>
10347
10348 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10349 output.
10350
0c271889
LM
103512020-01-21 Luis Machado <luis.machado@linaro.org>
10352
10353 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10354 <pc_adjust>: Adjust the documentation.
10355 (aarch64_displaced_step_fixup): Check if PC really moved before
10356 adjusting it.
10357
4d89c1c7
TT
103582020-01-19 Tom Tromey <tom@tromey.com>
10359
10360 * disasm.c (~gdb_disassembler): New destructor.
10361 (gdb_buffered_insn_length): Call disassemble_free_target.
10362 * disasm.h (class gdb_disassembler): Declare destructor. Use
10363 DISABLE_COPY_AND_ASSIGN.
10364
c0ab21c2
TT
103652020-01-19 Tom Tromey <tom@tromey.com>
10366
10367 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10368 (die_reader_func_ftype): Remove.
10369 (cutu_reader): New class.
10370 (dw2_get_file_names_reader): Remove "data" parameter.
10371 (dw2_get_file_names): Use cutu_reader.
10372 (create_debug_type_hash_table): Update.
10373 (read_cutu_die_from_dwo): Update comment.
10374 (lookup_dwo_unit): Add dwo_name parameter.
10375 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10376 die_reader_func_ftype and data parameters.
10377 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10378 Remove die_reader_func_ftype and data parameters.
10379 (~cutu_reader): New; from init_cutu_and_read_dies.
10380 (cutu_reader::cutu_reader): Rename from
10381 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10382 and data parameters.
10383 (init_cutu_and_read_dies_simple): Remove.
10384 (struct process_psymtab_comp_unit_data): Remove.
10385 (process_psymtab_comp_unit_reader): Remove data parameter; add
10386 want_partial_unit and pretend_language parameters.
10387 (process_psymtab_comp_unit): Use cutu_reader.
10388 (build_type_psymtabs_reader): Remove data parameter.
10389 (build_type_psymtabs_1): Use cutu_reader.
10390 (process_skeletonless_type_unit): Likewise.
10391 (load_partial_comp_unit_reader): Remove.
10392 (load_partial_comp_unit): Use cutu_reader.
10393 (load_full_comp_unit_reader): Remove.
10394 (load_full_comp_unit): Use cutu_reader.
10395 (struct create_dwo_cu_data): Remove.
10396 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10397 dwo_unit parameters.
10398 (create_cus_hash_table): Use cutu_reader.
10399 (struct dwarf2_read_addr_index_data): Remove.
10400 (dwarf2_read_addr_index_reader): Remove.
10401 (dwarf2_read_addr_index): Use cutu_reader.
10402 (read_signatured_type_reader): Remove.
10403 (read_signatured_type): Use cutu_reader.
10404
45bbae5c
TT
104052020-01-19 Tom Tromey <tom@tromey.com>
10406
10407 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10408 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10409 (tui_wrefresh): Declare.
10410 * tui/tui-wingeneral.c (suppress_output): New global.
10411 (tui_suppress_output, ~tui_suppress_output): New constructor and
10412 destructor.
10413 (tui_wrefresh): New function.
10414 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10415 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10416 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10417 method.
10418 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10419 tui_wrefresh.
10420 (tui_data_window::no_refresh): New method.
10421 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10422 (tui_reg_command): Use tui_suppress_output
10423 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10424 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10425 method.
10426 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10427
4f13c1c0
TT
104282020-01-19 Tom Tromey <tom@tromey.com>
10429
10430 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10431 Handle case where symtab is null.
10432
fa47e446
SM
104332020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10434
10435 * linux-fork.c (one_fork_p): Simplify.
10436
26f42329
SM
104372020-01-17 Simon Marchi <simon.marchi@efficios.com>
10438
10439 * top.c (struct qt_args): Remove.
10440 (kill_or_detach): Change return type to void, replace `void *`
10441 parameter with a proper one.
10442 (print_inferior_quit_action): Likewise.
10443 (quit_confirm): Use range-based for loop to iterate over inferiors.
10444 (quit_force): Likewise.
10445
a9ac81b1
SM
104462020-01-17 Simon Marchi <simon.marchi@efficios.com>
10447
10448 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10449 `void *` parameter with proper parameters.
10450 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10451 (print_one_inferior): Change return type to void, replace `void *`
10452 parameter with proper parameters.
10453 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10454 inferiors.
10455 (get_other_inferior): Remove.
10456 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10457 inferiors.
10458
788eca49
SM
104592020-01-17 Simon Marchi <simon.marchi@efficios.com>
10460
10461 * mi/mi-interp.c (report_initial_inferior): Remove.
10462 (mi_interp::init): Use range-based for to iterate over inferiors.
10463
d9bc85b6
SM
104642020-01-17 Simon Marchi <simon.marchi@efficios.com>
10465
10466 * python/py-inferior.c (build_inferior_list): Remove.
10467 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10468
40c94099
CB
104692020-01-16 Christian Biesinger <cbiesinger@google.com>
10470
10471 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10472 (btrace_stitch_trace): Likewise.
10473 * charset.c (intermediate_encoding): Likewise (vaild).
10474 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10475 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10476 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10477
e0cdfe3c
HD
104782020-01-16 Hannes Domani <ssbssa@yahoo.de>
10479
10480 * windows-tdep.c (windows_get_tlb_type):
10481 Add rtl_user_process_parameters type.
10482
790f1718 104832020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10484 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10485
10486 PR build/24805
10487 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10488 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10489 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10490 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10491 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10492 (ps_plog): Redeclare exported functions with default visibility.
10493
3112ed97
NA
104942020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10495
10496 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10497 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10498
8dc3273e
SM
104992020-01-15 Simon Marchi <simon.marchi@efficios.com>
10500
10501 * infcmd.c (post_create_inferior): Use get_thread_regcache
10502 instead of get_current_regcache.
10503
ff47f4f0
TT
105042020-01-14 Tom Tromey <tom@tromey.com>
10505
10506 PR symtab/12535:
10507 * python/python.c (gdbpy_decode_line): Treat empty string the same
10508 as no argument.
10509
975f45b7
TT
105102020-01-14 Tom Tromey <tom@tromey.com>
10511
10512 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10513
25e57356
TT
105142020-01-14 Tom Tromey <tom@tromey.com>
10515
10516 * nat/linux-btrace.c: Don't include <config.h>.
10517 * nat/linux-ptrace.c: Don't include <config.h>.
10518 * nat/x86-linux-dregs.c: Don't include <config.h>.
10519
05ea2a05
TT
105202020-01-14 Tom Tromey <tom@tromey.com>
10521
10522 * configure: Rebuild.
10523 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10524
01027315
TT
105252020-01-14 Tom Tromey <tom@tromey.com>
10526
10527 * nat/x86-linux-dregs.c: Include configh.h.
10528 * nat/linux-ptrace.c: Include configh.h.
10529 * nat/linux-btrace.c: Include configh.h.
10530 * defs.h: Include config.h, bfd.h.
10531 * configure.ac: Don't source common.host.
10532 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10533 * configure: Rebuild.
10534 * acinclude.m4: Update path.
10535 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10536 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10537 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10538 (CLIBS): Add LIBSUPPORT.
10539 (CDEPS): Likewise.
10540 (COMMON_SFILES): Remove gdbsupport files.
10541 (HFILES_NO_SRCDIR): Likewise.
10542 (stamp-version): Update path to create-version.sh.
10543 (ALLDEPFILES): Remove gdbsupport files.
10544
b2ceabe8
TT
105452020-01-14 Tom Tromey <tom@tromey.com>
10546
10547 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10548 USE_WIN32API when needed.
10549 * configure.ac (USE_WIN32API): Don't define.
10550 (WIN32LIBS): Use WIN32APILIBS.
10551 * configure: Rebuild.
10552
25c51f71
TT
105532020-01-14 Tom Tromey <tom@tromey.com>
10554
10555 * configure: Rebuild.
10556 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10557
717c684d
BE
105582020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10559
10560 * skip.c (skip_function_command): Make skip w/o arguments use the
10561 name of the inlined function if pc is inside any inlined function.
10562
7da6a5b9
LM
105632020-01-14 Luis Machado <luis.machado@linaro.org>
10564
10565 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10566 * infrun.c (resume_1): Likewise.
10567 (handle_inferior_event): Remove stale comment.
10568 * linux-nat.c (linux_nat_target::resume): Update comments.
10569 (save_stop_reason): Likewise.
10570 (linux_nat_filter_event): Likewise.
10571 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10572
44e4c775
AB
105732020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10574
10575 * elfread.c (record_minimal_symbol): Set section index to 0 for
10576 non-allocatable sections.
10577
18a8505e
AT
10578
105792020-01-13 Ali Tamur <tamur@google.com>
10580
10581 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10582 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10583 to gdb::optional. Update comments.
10584 (dwo_file): Update comments.
10585 (read_attribute): Update API to take an additional out parameter,
10586 need_reprocess. This is used to mark attributes that need other
10587 attributes (e.g. str_offsets_base) for correct computation which may not
10588 have been read yet.
10589 (read_attribute_reprocess): New function declaration.
10590 (read_addr_index): Likewise.
10591 (read_dwo_str_index): Likewise.
10592 (read_stub_str_index): Likewise.
10593 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10594 (lookup_addr_base): New function definition.
10595 (lookup_ranges_base): Likewise.
10596 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10597 lookup_ranges_base.
10598 (init_cutu_and_read_dies): Update comments.
10599 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10600 unit. This is used to inherit parent's str_offsets_base and addr_base.
10601 Update comments.
10602 (init_cutu_and_read_dies_simple): Reflect API changes.
10603 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10604 (create_cus_hash_table): Change API to take parent compile unit.
10605 Reflect API changes.
10606 (open_and_init_dwo_file): Reflect API changes.
10607 (dwarf2_get_pc_bounds): Update comments.
10608 (dwarf2_record_block_ranges): Likewise.
10609 (read_full_die_1): Change implementation to reprocess attributes that
10610 need str_offsets_base and addr_base.
10611 (partial_die_info::read): Likewise.
10612 (read_attribute_reprocess): New function definition.
10613 (read_attribute_value): Change API to take an additional out parameter,
10614 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10615 when a non-dwo compile unit has index based attributes.
10616 (read_attribute): Reflect API changes.
10617 (read_addr_index_1): Reflect API changes. Update comments.
10618 (dwarf2_read_addr_index_data): Reflect API changes.
10619 (dwarf2_read_addr_index): Likewise.
10620 (read_str_index): Change API and implementation. This becomes a helper
10621 to be used by the new string index related methods. Update error
10622 message and comments.
10623 (read_dwo_str_index): New function definition.
10624 (read_stub_str_index): Likewise.
10625 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10626 * symfile.h (dwarf2_debug_sections): Likewise.
10627 * xcoffread.c (dwarf2_debug_sections): Likewise.
10628
0cac9354
SM
106292020-01-13 Simon Marchi <simon.marchi@efficios.com>
10630
10631 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10632 core_reg_sect type to gdb_byte *.
10633 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10634 * cris-tdep.c (fetch_core_registers): Likewise.
10635 * corelow.c (core_target::get_core_register_section): Change
10636 type of `contents` to gdb::byte_vector.
10637
9a6d629c
AB
106382020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10639
10640 * tui/tui-wingeneral.c (box_win): Position the title in the center
10641 of the border.
10642
d8b2f9e3
SM
106432020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10644
10645 * corelow.c (core_target::get_core_register_section): Use
10646 std::vector instead of alloca.
10647
bb564c58
SM
106482020-01-13 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * warning.m4: Add -Wmissing-declarations to build_warnings.
10651 * configure: Re-generate.
10652
6b366111
SM
106532020-01-13 Simon Marchi <simon.marchi@efficios.com>
10654
10655 * python/python.c (init__gdb_module): Add declaration.
10656
6c265988
SM
106572020-01-13 Simon Marchi <simon.marchi@efficios.com>
10658
10659 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10660 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10661 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10662 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10663 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10664 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10665 * ada-exp.y (_initialize_ada_exp): Add declaration.
10666 * ada-lang.c (_initialize_ada_language): Add declaration.
10667 * ada-tasks.c (_initialize_tasks): Add declaration.
10668 * agent.c (_initialize_agent): Add declaration.
10669 * aix-thread.c (_initialize_aix_thread): Add declaration.
10670 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10671 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10672 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10673 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10674 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10675 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10676 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10677 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10678 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10679 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10680 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10681 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10682 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10683 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10684 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10685 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10686 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10687 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10688 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10689 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10690 * annotate.c (_initialize_annotate): Add declaration.
10691 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10692 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10693 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10694 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10695 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10696 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10697 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10698 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10699 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10700 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10701 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10702 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10703 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10704 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10705 * auto-load.c (_initialize_auto_load): Add declaration.
10706 * auxv.c (_initialize_auxv): Add declaration.
10707 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10708 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10709 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10710 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10711 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10712 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10713 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10714 * breakpoint.c (_initialize_breakpoint): Add declaration.
10715 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10716 * btrace.c (_initialize_btrace): Add declaration.
10717 * charset.c (_initialize_charset): Add declaration.
10718 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10719 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10720 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10721 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10722 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10723 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10724 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10725 * coffread.c (_initialize_coffread): Add declaration.
10726 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10727 * compile/compile.c (_initialize_compile): Add declaration.
10728 * complaints.c (_initialize_complaints): Add declaration.
10729 * completer.c (_initialize_completer): Add declaration.
10730 * copying.c (_initialize_copying): Add declaration.
10731 * corefile.c (_initialize_core): Add declaration.
10732 * corelow.c (_initialize_corelow): Add declaration.
10733 * cp-abi.c (_initialize_cp_abi): Add declaration.
10734 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10735 * cp-support.c (_initialize_cp_support): Add declaration.
10736 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10737 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10738 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10739 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10740 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10741 * ctfread.c (_initialize_ctfread): Add declaration.
10742 * d-lang.c (_initialize_d_language): Add declaration.
10743 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10744 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10745 * dbxread.c (_initialize_dbxread): Add declaration.
10746 * dcache.c (_initialize_dcache): Add declaration.
10747 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10748 * disasm.c (_initialize_disasm): Add declaration.
10749 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10750 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10751 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10752 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10753 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10754 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10755 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10756 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10757 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10758 * elfread.c (_initialize_elfread): Add declaration.
10759 * exec.c (_initialize_exec): Add declaration.
10760 * extension.c (_initialize_extension): Add declaration.
10761 * f-lang.c (_initialize_f_language): Add declaration.
10762 * f-valprint.c (_initialize_f_valprint): Add declaration.
10763 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10764 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10765 * filesystem.c (_initialize_filesystem): Add declaration.
10766 * findcmd.c (_initialize_mem_search): Add declaration.
10767 * findvar.c (_initialize_findvar): Add declaration.
10768 * fork-child.c (_initialize_fork_child): Add declaration.
10769 * frame-base.c (_initialize_frame_base): Add declaration.
10770 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10771 * frame.c (_initialize_frame): Add declaration.
10772 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10773 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10774 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10775 * gcore.c (_initialize_gcore): Add declaration.
10776 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10777 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10778 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10779 * gdbarch.c (_initialize_gdbarch): Add declaration.
10780 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10781 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10782 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10783 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10784 * go-lang.c (_initialize_go_language): Add declaration.
10785 * go32-nat.c (_initialize_go32_nat): Add declaration.
10786 * guile/guile.c (_initialize_guile): Add declaration.
10787 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10788 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10789 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10790 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10791 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10792 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10793 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10794 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10795 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10796 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10797 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10798 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10799 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10800 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10801 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10802 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10803 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10804 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10805 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10806 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10807 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10808 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10809 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10810 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10811 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10812 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10813 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10814 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10815 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10816 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10817 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10818 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10819 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10820 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10821 * infcall.c (_initialize_infcall): Add declaration.
10822 * infcmd.c (_initialize_infcmd): Add declaration.
10823 * inflow.c (_initialize_inflow): Add declaration.
10824 * infrun.c (_initialize_infrun): Add declaration.
10825 * interps.c (_initialize_interpreter): Add declaration.
10826 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10827 * jit.c (_initialize_jit): Add declaration.
10828 * language.c (_initialize_language): Add declaration.
10829 * linux-fork.c (_initialize_linux_fork): Add declaration.
10830 * linux-nat.c (_initialize_linux_nat): Add declaration.
10831 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10832 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10833 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10834 * m2-lang.c (_initialize_m2_language): Add declaration.
10835 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10836 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10837 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10838 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10839 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10840 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10841 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10842 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10843 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10844 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10845 * machoread.c (_initialize_machoread): Add declaration.
10846 * macrocmd.c (_initialize_macrocmd): Add declaration.
10847 * macroscope.c (_initialize_macroscope): Add declaration.
10848 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10849 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10850 * maint.c (_initialize_maint_cmds): Add declaration.
10851 * mdebugread.c (_initialize_mdebugread): Add declaration.
10852 * memattr.c (_initialize_mem): Add declaration.
10853 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10854 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10855 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10856 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10857 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10858 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10859 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10860 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10861 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10862 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10863 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10864 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10865 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10866 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10867 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10868 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10869 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10870 * mipsread.c (_initialize_mipsread): Add declaration.
10871 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10872 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10873 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10874 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10875 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10876 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10877 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10878 * nto-procfs.c (_initialize_procfs): Add declaration.
10879 * objc-lang.c (_initialize_objc_language): Add declaration.
10880 * observable.c (_initialize_observer): Add declaration.
10881 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10882 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10883 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10884 * osabi.c (_initialize_gdb_osabi): Add declaration.
10885 * osdata.c (_initialize_osdata): Add declaration.
10886 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10887 * parse.c (_initialize_parse): Add declaration.
10888 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10889 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10890 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10891 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10892 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10893 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10894 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10895 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10896 * printcmd.c (_initialize_printcmd): Add declaration.
10897 * probe.c (_initialize_probe): Add declaration.
10898 * proc-api.c (_initialize_proc_api): Add declaration.
10899 * proc-events.c (_initialize_proc_events): Add declaration.
10900 * proc-service.c (_initialize_proc_service): Add declaration.
10901 * procfs.c (_initialize_procfs): Add declaration.
10902 * producer.c (_initialize_producer): Add declaration.
10903 * psymtab.c (_initialize_psymtab): Add declaration.
10904 * python/python.c (_initialize_python): Add declaration.
10905 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10906 * record-btrace.c (_initialize_record_btrace): Add declaration.
10907 * record-full.c (_initialize_record_full): Add declaration.
10908 * record.c (_initialize_record): Add declaration.
10909 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10910 * regcache.c (_initialize_regcache): Add declaration.
10911 * reggroups.c (_initialize_reggroup): Add declaration.
10912 * remote-notif.c (_initialize_notif): Add declaration.
10913 * remote-sim.c (_initialize_remote_sim): Add declaration.
10914 * remote.c (_initialize_remote): Add declaration.
10915 * reverse.c (_initialize_reverse): Add declaration.
10916 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10917 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10918 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10919 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10920 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10921 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10922 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10923 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10924 Add declaration.
10925 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10926 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10927 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10928 * rust-exp.y (_initialize_rust_exp): Add declaration.
10929 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10930 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10931 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10932 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10933 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10934 * score-tdep.c (_initialize_score_tdep): Add declaration.
10935 * ser-go32.c (_initialize_ser_dos): Add declaration.
10936 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10937 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10938 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10939 * ser-uds.c (_initialize_ser_socket): Add declaration.
10940 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10941 * serial.c (_initialize_serial): Add declaration.
10942 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10943 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10944 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10945 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10946 * skip.c (_initialize_step_skip): Add declaration.
10947 * sol-thread.c (_initialize_sol_thread): Add declaration.
10948 * solib-aix.c (_initialize_solib_aix): Add declaration.
10949 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
10950 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
10951 * solib-frv.c (_initialize_frv_solib): Add declaration.
10952 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
10953 * solib-target.c (_initialize_solib_target): Add declaration.
10954 * solib.c (_initialize_solib): Add declaration.
10955 * source-cache.c (_initialize_source_cache): Add declaration.
10956 * source.c (_initialize_source): Add declaration.
10957 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
10958 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
10959 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
10960 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
10961 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
10962 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
10963 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
10964 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
10965 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
10966 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
10967 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
10968 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
10969 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
10970 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
10971 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
10972 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
10973 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
10974 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
10975 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
10976 * stabsread.c (_initialize_stabsread): Add declaration.
10977 * stack.c (_initialize_stack): Add declaration.
10978 * stap-probe.c (_initialize_stap_probe): Add declaration.
10979 * std-regs.c (_initialize_frame_reg): Add declaration.
10980 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
10981 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
10982 * symfile.c (_initialize_symfile): Add declaration.
10983 * symmisc.c (_initialize_symmisc): Add declaration.
10984 * symtab.c (_initialize_symtab): Add declaration.
10985 * target.c (_initialize_target): Add declaration.
10986 * target-connection.c (_initialize_target_connection): Add
10987 declaration.
10988 * target-dcache.c (_initialize_target_dcache): Add declaration.
10989 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
10990 * thread.c (_initialize_thread): Add declaration.
10991 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
10992 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
10993 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
10994 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
10995 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
10996 * tracectf.c (_initialize_ctf): Add declaration.
10997 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
10998 * tracefile.c (_initialize_tracefile): Add declaration.
10999 * tracepoint.c (_initialize_tracepoint): Add declaration.
11000 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11001 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11002 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11003 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11004 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11005 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11006 * tui/tui.c (_initialize_tui): Add declaration.
11007 * typeprint.c (_initialize_typeprint): Add declaration.
11008 * ui-style.c (_initialize_ui_style): Add declaration.
11009 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11010 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11011 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11012 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11013 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11014 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11015 * unittests/filtered_iterator-selftests.c
11016 (_initialize_filtered_iterator_selftests): Add declaration.
11017 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11018 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11019 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11020 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11021 * unittests/main-thread-selftests.c
11022 (_initialize_main_thread_selftests): Add declaration.
11023 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11024 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11025 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11026 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11027 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11028 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11029 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11030 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11031 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11032 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11033 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11034 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11035 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11036 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11037 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11038 declaration.
11039 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11040 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11041 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11042 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11043 * user-regs.c (_initialize_user_regs): Add declaration.
11044 * utils.c (_initialize_utils): Add declaration.
11045 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11046 * valops.c (_initialize_valops): Add declaration.
11047 * valprint.c (_initialize_valprint): Add declaration.
11048 * value.c (_initialize_values): Add declaration.
11049 * varobj.c (_initialize_varobj): Add declaration.
11050 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11051 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11052 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11053 * windows-nat.c (_initialize_windows_nat): Add declaration.
11054 (_initialize_check_for_gdb_ini): Add declaration.
11055 (_initialize_loadable): Add declaration.
11056 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11057 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11058 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11059 * xcoffread.c (_initialize_xcoffread): Add declaration.
11060 * xml-support.c (_initialize_xml_support): Add declaration.
11061 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11062 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11063 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11064 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11065
e2de1eec
SM
110662020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11067
11068 * regformats/regdat.sh: Generate declaration for init function.
11069
e0037b4c
SM
110702020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11071
11072 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11073 up.
11074 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11075 close_one_inferior>: New methods.
11076 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11077 pass down target to find_inferior_pid.
11078 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11079 Pass down target to find_inferior_ptid.
11080 (gdbsim_target::create_inferior): Pass down target to
11081 add_thread_silent.
11082 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11083 target down to find_inferior_ptid and switch_to_thread.
11084 (gdbsim_target::close): Update to call close_one_inferior.
11085 (struct resume_data): Remove.
11086 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11087 directly, rather than through a void pointer.
11088 (gdbsim_target::resume): Update to call resume_one_inferior.
11089
58920b5b
SM
110902020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11091
11092 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11093
4ec89149
PA
110942020-01-12 Pedro Alves <palves@redhat.com>
11095
11096 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11097 directly for the current inferior instead of
11098 discard_all_inferiors.
11099 (discard_all_inferiors): Delete.
11100
7c392d1d
TT
111012020-01-11 Tom Tromey <tom@tromey.com>
11102
11103 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11104 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11105 deprecated_safe_get_selected_frame.
11106
d9ebdab7
TBA
111072020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11108
11109 * inferior.c (print_inferior): Switch inferior before printing it.
11110
f3c469b9
PA
111112020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11112 Pedro Alves <palves@redhat.com>
11113
11114 * progspace-and-thread.c (switch_to_program_space_and_thread):
11115 Assert there's an inferior for PSPACE. Use
11116 switch_to_inferior_no_thread to switch the inferior too.
11117 * progspace.c (program_space::~program_space): Call
11118 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11119 (program_space::free_all_objfiles): Don't call clear_symtab_users
11120 here.
11121 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11122
65c574f6
PA
111232020-01-10 Pedro Alves <palves@redhat.com>
11124
11125 * NEWS: Mention multi-target debugging, "info connections", and
11126 "add-inferior -no-connection".
11127
2f4fcf00
PA
111282020-01-10 Pedro Alves <palves@redhat.com>
11129
11130 * infrun.c: Include "target-connection.h".
11131 (check_multi_target_resumption): New.
11132 (proceed): Call it.
11133 * target-connection.c (make_target_connection_string): Make
11134 extern.
11135 * target-connection.h (make_target_connection_string): Declare.
11136
121b3efd
PA
111372020-01-10 Pedro Alves <palves@redhat.com>
11138
11139 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11140 * inferior.c (uiout_field_connection): New function.
11141 (print_inferior): Add new "connection-id" column.
11142 (add_inferior_command): Show connection number/string of added
11143 inferior.
11144 * process-stratum-target.h
11145 (process_stratum_target::connection_string): New virtual method.
11146 (process_stratum_target::connection_number): New field.
11147 * remote.c (remote_target::connection_string): New override.
11148 * target-connection.c: New file.
11149 * target-connection.h: New file.
11150 * target.c (decref_target): Remove process_stratum targets from
11151 the connection list.
11152 (target_stack::push): Add process_stratum targets to the
11153 connection list.
11154
4f837581
PA
111552020-01-10 Pedro Alves <palves@redhat.com>
11156
11157 Revert:
11158 2016-04-12 Pedro Alves <palves@redhat.com>
11159 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11160 Remove references to name.
11161 * serial.h (struct serial) <name>: Delete.
11162
f4ec508e
PA
111632020-01-10 Pedro Alves <palves@redhat.com>
11164
11165 * gdbarch-selftests.c (register_to_value_test): Remove "target
11166 already pushed" check.
11167
5b6d1e4f
PA
111682020-01-10 Pedro Alves <palves@redhat.com>
11169 John Baldwin <jhb@FreeBSD.org>
11170
11171 * aarch64-linux-nat.c
11172 (aarch64_linux_nat_target::thread_architecture): Adjust.
11173 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11174 (task_command_1): Likewise.
11175 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11176 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11177 (aix_thread_target::store_registers)
11178 (aix_thread_target::thread_alive): Adjust.
11179 * amd64-fbsd-tdep.c: Include "inferior.h".
11180 (amd64fbsd_get_thread_local_address): Pass down target.
11181 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11182 thread's gdbarch instead of target_gdbarch.
11183 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11184 get_last_target_status.
11185 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11186 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11187 inferiors.
11188 (update_inserted_breakpoint_locations): Skip if inferiors with no
11189 execution.
11190 (update_global_location_list): When handling moribund locations,
11191 find representative inferior for location's pspace, and use thread
11192 count of its process_stratum target.
11193 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11194 * bsd-uthread.c (bsd_uthread_target::wait): Use
11195 as_process_stratum_target and adjust thread_change_ptid and
11196 add_thread calls.
11197 (bsd_uthread_target::update_thread_list): Use
11198 as_process_stratum_target and adjust find_thread_ptid,
11199 thread_change_ptid and add_thread calls.
11200 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11201 find_thread_ptid call.
11202 * corelow.c (add_to_thread_list): Adjust add_thread call.
11203 (core_target_open): Adjust add_thread_silent and thread_count
11204 calls.
11205 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11206 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11207 * event-top.c (async_disconnect): Pop targets from all inferiors.
11208 * exec.c (add_target_sections): Push exec target on all inferiors
11209 sharing the program space.
11210 (remove_target_sections): Remove the exec target from all
11211 inferiors sharing the program space.
11212 (exec_on_vfork): New.
11213 * exec.h (exec_on_vfork): Declare.
11214 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11215 Pass it down.
11216 (fbsd_nat_target::update_thread_list): Adjust.
11217 (fbsd_nat_target::resume): Adjust.
11218 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11219 down.
11220 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11221 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11222 get_thread_arch_regcache call.
11223 * fork-child.c (gdb_startup_inferior): Pass target down to
11224 startup_inferior and set_executing.
11225 * gdbthread.h (struct process_stratum_target): Forward declare.
11226 (add_thread, add_thread_silent, add_thread_with_info)
11227 (in_thread_list): Add process_stratum_target parameter.
11228 (find_thread_ptid(inferior*, ptid_t)): New overload.
11229 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11230 parameter.
11231 (all_threads()): Delete overload.
11232 (all_threads, all_non_exited_threads): Add process_stratum_target
11233 parameter.
11234 (all_threads_safe): Use brace initialization.
11235 (thread_count): Add process_stratum_target parameter.
11236 (set_resumed, set_running, set_stop_requested, set_executing)
11237 (threads_are_executing, finish_thread_state): Add
11238 process_stratum_target parameter.
11239 (switch_to_thread): Use is_current_thread.
11240 * i386-fbsd-tdep.c: Include "inferior.h".
11241 (i386fbsd_get_thread_local_address): Pass down target.
11242 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11243 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11244 have_inferiors check.
11245 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11246 (inf_ptrace_target::attach): Adjust.
11247 * infcall.c (run_inferior_call): Adjust.
11248 * infcmd.c (run_command_1): Pass target to
11249 scoped_finish_thread_state.
11250 (proceed_thread_callback): Skip inferiors with no execution.
11251 (continue_command): Rename 'all_threads' local to avoid hiding
11252 'all_threads' function. Adjust get_last_target_status call.
11253 (prepare_one_step): Adjust set_running call.
11254 (signal_command): Use user_visible_resume_target. Compare thread
11255 pointers instead of inferior_ptid.
11256 (info_program_command): Adjust to pass down target.
11257 (attach_command): Mark target's 'thread_executing' flag.
11258 (stop_current_target_threads_ns): New, factored out from ...
11259 (interrupt_target_1): ... this. Switch inferior before making
11260 target calls.
11261 * inferior-iter.h
11262 (struct all_inferiors_iterator, struct all_inferiors_range)
11263 (struct all_inferiors_safe_range)
11264 (struct all_non_exited_inferiors_range): Filter on
11265 process_stratum_target too. Remove explicit.
11266 * inferior.c (inferior::inferior): Push dummy target on target
11267 stack.
11268 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11269 Add process_stratum_target parameter, and pass it down.
11270 (have_live_inferiors): Adjust.
11271 (switch_to_inferior_and_push_target): New.
11272 (add_inferior_command, clone_inferior_command): Handle
11273 "-no-connection" parameter. Use
11274 switch_to_inferior_and_push_target.
11275 (_initialize_inferior): Mention "-no-connection" option in
11276 the help of "add-inferior" and "clone-inferior" commands.
11277 * inferior.h: Include "process-stratum-target.h".
11278 (interrupt_target_1): Use bool.
11279 (struct inferior) <push_target, unpush_target, target_is_pushed,
11280 find_target_beneath, top_target, process_target, target_at,
11281 m_stack>: New.
11282 (discard_all_inferiors): Delete.
11283 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11284 (all_inferiors, all_non_exited_inferiors): Add
11285 process_stratum_target parameter.
11286 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11287 (target_last_proc_target): New global.
11288 (follow_fork_inferior): Push target on new inferior. Pass target
11289 to add_thread_silent. Call exec_on_vfork. Handle target's
11290 reference count.
11291 (follow_fork): Adjust get_last_target_status call. Also consider
11292 target.
11293 (follow_exec): Push target on new inferior.
11294 (struct execution_control_state) <target>: New field.
11295 (user_visible_resume_target): New.
11296 (do_target_resume): Call target_async.
11297 (resume_1): Set target's threads_executing flag. Consider resume
11298 target.
11299 (commit_resume_all_targets): New.
11300 (proceed): Also consider resume target. Skip threads of inferiors
11301 with no execution. Commit resumtion in all targets.
11302 (start_remote): Pass current inferior to wait_for_inferior.
11303 (infrun_thread_stop_requested): Consider target as well. Pass
11304 thread_info pointer to clear_inline_frame_state instead of ptid.
11305 (infrun_thread_thread_exit): Consider target as well.
11306 (random_pending_event_thread): New inferior parameter. Use it.
11307 (do_target_wait): Rename to ...
11308 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11309 down.
11310 (threads_are_resumed_pending_p, do_target_wait): New.
11311 (prepare_for_detach): Adjust calls.
11312 (wait_for_inferior): New inferior parameter. Handle it. Use
11313 do_target_wait_1 instead of do_target_wait.
11314 (fetch_inferior_event): Adjust. Switch to representative
11315 inferior. Pass target down.
11316 (set_last_target_status): Add process_stratum_target parameter.
11317 Save target in global.
11318 (get_last_target_status): Add process_stratum_target parameter and
11319 handle it.
11320 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11321 (context_switch): Check inferior_ptid == null_ptid before calling
11322 inferior_thread().
11323 (get_inferior_stop_soon): Pass down target.
11324 (wait_one): Rename to ...
11325 (poll_one_curr_target): ... this.
11326 (struct wait_one_event): New.
11327 (wait_one): New.
11328 (stop_all_threads): Adjust.
11329 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11330 event's target.
11331 (switch_back_to_stepped_thread): Also consider target.
11332 (print_stop_event): Update.
11333 (normal_stop): Update. Also consider the resume target.
11334 * infrun.h (wait_for_inferior): Remove declaration.
11335 (user_visible_resume_target): New declaration.
11336 (get_last_target_status, set_last_target_status): New
11337 process_stratum_target parameter.
11338 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11339 process_stratum_target parameter, and use it.
11340 (clear_inline_frame_state (thread_info*)): New.
11341 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11342 process_stratum_target parameter.
11343 (clear_inline_frame_state (thread_info*)): Declare.
11344 * linux-fork.c (delete_checkpoint_command): Pass target down to
11345 find_thread_ptid.
11346 (checkpoint_command): Adjust.
11347 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11348 instead of just tweaking inferior_ptid.
11349 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11350 (exit_lwp): Pass target down to find_thread_ptid.
11351 (attach_proc_task_lwp_callback): Pass target down to
11352 add_thread/set_running/set_executing.
11353 (linux_nat_target::attach): Pass target down to
11354 thread_change_ptid.
11355 (get_detach_signal): Pass target down to find_thread_ptid.
11356 Consider last target status's target.
11357 (linux_resume_one_lwp_throw, resume_lwp)
11358 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11359 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11360 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11361 (linux_nat_target::async_wait_fd): New.
11362 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11363 target down.
11364 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11365 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11366 * linux-thread-db.c (struct thread_db_info::process_target): New
11367 field.
11368 (add_thread_db_info): Save target.
11369 (get_thread_db_info): New process_stratum_target parameter. Also
11370 match target.
11371 (delete_thread_db_info): New process_stratum_target parameter.
11372 Also match target.
11373 (thread_from_lwp): Adjust to pass down target.
11374 (thread_db_notice_clone): Pass down target.
11375 (check_thread_db_callback): Pass down target.
11376 (try_thread_db_load_1): Always push the thread_db target.
11377 (try_thread_db_load, record_thread): Pass target down.
11378 (thread_db_target::detach): Pass target down. Always unpush the
11379 thread_db target.
11380 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11381 target down. Always unpush the thread_db target.
11382 (find_new_threads_callback, thread_db_find_new_threads_2)
11383 (thread_db_target::update_thread_list): Pass target down.
11384 (thread_db_target::pid_to_str): Pass current inferior down.
11385 (thread_db_target::get_thread_local_address): Pass target down.
11386 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11387 target down.
11388 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11389 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11390 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11391 (procfs_init_inferior): Rename to ...
11392 (procfs_target::procfs_init_inferior): ... this and adjust.
11393 (procfs_target::create_inferior, procfs_notice_thread)
11394 (procfs_do_thread_registers): Adjust.
11395 * ppc-fbsd-tdep.c: Include "inferior.h".
11396 (ppcfbsd_get_thread_local_address): Pass down target.
11397 * proc-service.c (ps_xfer_memory): Switch current inferior and
11398 program space as well.
11399 (get_ps_regcache): Pass target down.
11400 * process-stratum-target.c
11401 (process_stratum_target::thread_address_space)
11402 (process_stratum_target::thread_architecture): Pass target down.
11403 * process-stratum-target.h
11404 (process_stratum_target::threads_executing): New field.
11405 (as_process_stratum_target): New.
11406 * ravenscar-thread.c
11407 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11408 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11409 down.
11410 * record-btrace.c (record_btrace_target::info_record): Adjust.
11411 (record_btrace_target::record_method)
11412 (record_btrace_target::record_is_replaying)
11413 (record_btrace_target::fetch_registers)
11414 (get_thread_current_frame_id, record_btrace_target::resume)
11415 (record_btrace_target::wait, record_btrace_target::stop): Pass
11416 target down.
11417 * record-full.c (record_full_wait_1): Switch to event thread.
11418 Pass target down.
11419 * regcache.c (regcache::regcache)
11420 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11421 process_stratum_target parameter and handle it.
11422 (current_thread_target): New global.
11423 (get_thread_regcache): Add process_stratum_target parameter and
11424 handle it. Switch inferior before calling target method.
11425 (get_thread_regcache): Pass target down.
11426 (get_thread_regcache_for_ptid): Pass target down.
11427 (registers_changed_ptid): Add process_stratum_target parameter and
11428 handle it.
11429 (registers_changed_thread, registers_changed): Pass target down.
11430 (test_get_thread_arch_aspace_regcache): New.
11431 (current_regcache_test): Define a couple local test_target_ops
11432 instances and use them for testing.
11433 (readwrite_regcache): Pass process_stratum_target parameter.
11434 (cooked_read_test, cooked_write_test): Pass mock_target down.
11435 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11436 (get_thread_arch_aspace_regcache): Add process_stratum_target
11437 parameter.
11438 (regcache::target): New method.
11439 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11440 (regcache::registers_changed_ptid): Add process_stratum_target
11441 parameter.
11442 (regcache::m_target): New field.
11443 (registers_changed_ptid): Add process_stratum_target parameter.
11444 * remote.c (remote_state::supports_vCont_probed): New field.
11445 (remote_target::async_wait_fd): New method.
11446 (remote_unpush_and_throw): Add remote_target parameter.
11447 (get_current_remote_target): Adjust.
11448 (remote_target::remote_add_inferior): Push target.
11449 (remote_target::remote_add_thread)
11450 (remote_target::remote_notice_new_inferior)
11451 (get_remote_thread_info): Pass target down.
11452 (remote_target::update_thread_list): Skip threads of inferiors
11453 bound to other targets. (remote_target::close): Don't discard
11454 inferiors. (remote_target::add_current_inferior_and_thread)
11455 (remote_target::process_initial_stop_replies)
11456 (remote_target::start_remote)
11457 (remote_target::remote_serial_quit_handler): Pass down target.
11458 (remote_target::remote_unpush_target): New remote_target
11459 parameter. Unpush the target from all inferiors.
11460 (remote_target::remote_unpush_and_throw): New remote_target
11461 parameter. Pass it down.
11462 (remote_target::open_1): Check whether the current inferior has
11463 execution instead of checking whether any inferior is live. Pass
11464 target down.
11465 (remote_target::remote_detach_1): Pass down target. Use
11466 remote_unpush_target.
11467 (extended_remote_target::attach): Pass down target.
11468 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11469 (remote_target::append_resumption): Pass down target.
11470 (remote_target::append_pending_thread_resumptions)
11471 (remote_target::remote_resume_with_hc, remote_target::resume)
11472 (remote_target::commit_resume): Pass down target.
11473 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11474 (remote_target::interrupt_query)
11475 (remote_target::remove_new_fork_children)
11476 (remote_target::check_pending_events_prevent_wildcard_vcont)
11477 (remote_target::remote_parse_stop_reply)
11478 (remote_target::process_stop_reply): Pass down target.
11479 (first_remote_resumed_thread): New remote_target parameter. Pass
11480 it down.
11481 (remote_target::wait_as): Pass down target.
11482 (unpush_and_perror): New remote_target parameter. Pass it down.
11483 (remote_target::readchar, remote_target::remote_serial_write)
11484 (remote_target::getpkt_or_notif_sane_1)
11485 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11486 down target.
11487 (remote_target::mourn_inferior): Pass down target. Use
11488 remote_unpush_target.
11489 (remote_target::core_of_thread)
11490 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11491 (remote_target::pid_to_exec_file)
11492 (remote_target::thread_handle_to_thread_info): Pass down target.
11493 (remote_target::async_wait_fd): New.
11494 * riscv-fbsd-tdep.c: Include "inferior.h".
11495 (riscv_fbsd_get_thread_local_address): Pass down target.
11496 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11497 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11498 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11499 Adjust.
11500 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11501 * solib-svr4.c (enable_break): Pass down target.
11502 * spu-multiarch.c (parse_spufs_run): Pass down target.
11503 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11504 * target-delegates.c: Regenerate.
11505 * target.c (g_target_stack): Delete.
11506 (current_top_target): Return the current inferior's top target.
11507 (target_has_execution_1): Refer to the passed-in inferior's top
11508 target.
11509 (target_supports_terminal_ours): Check whether the initial
11510 inferior was already created.
11511 (decref_target): New.
11512 (target_stack::push): Incref/decref the target.
11513 (push_target, push_target, unpush_target): Adjust.
11514 (target_stack::unpush): Defref target.
11515 (target_is_pushed): Return bool. Adjust to refer to the current
11516 inferior's target stack.
11517 (dispose_inferior): Delete, and inline parts ...
11518 (target_preopen): ... here. Only dispose of the current inferior.
11519 (target_detach): Hold strong target reference while detaching.
11520 Pass target down.
11521 (target_thread_name): Add assertion.
11522 (target_resume): Pass down target.
11523 (target_ops::beneath, find_target_at): Adjust to refer to the
11524 current inferior's target stack.
11525 (get_dummy_target): New.
11526 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11527 has a thread running.
11528 (initialize_targets): Rename to ...
11529 (_initialize_target): ... this.
11530 * target.h: Include "gdbsupport/refcounted-object.h".
11531 (struct target_ops): Inherit refcounted_object.
11532 (target_ops::shortname, target_ops::longname): Make const.
11533 (target_ops::async_wait_fd): New method.
11534 (decref_target): Declare.
11535 (struct target_ops_ref_policy): New.
11536 (target_ops_ref): New typedef.
11537 (get_dummy_target): Declare function.
11538 (target_is_pushed): Return bool.
11539 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11540 (all_matching_threads_iterator::all_matching_threads_iterator):
11541 Handle filter target.
11542 * thread-iter.h (struct all_matching_threads_iterator, struct
11543 all_matching_threads_range, class all_non_exited_threads_range):
11544 Filter by target too. Remove explicit.
11545 * thread.c (threads_executing): Delete.
11546 (inferior_thread): Pass down current inferior.
11547 (clear_thread_inferior_resources): Pass down thread pointer
11548 instead of ptid_t.
11549 (add_thread_silent, add_thread_with_info, add_thread): Add
11550 process_stratum_target parameter. Use it for thread and inferior
11551 searches.
11552 (is_current_thread): New.
11553 (thread_info::deletable): Use it.
11554 (find_thread_ptid, thread_count, in_thread_list)
11555 (thread_change_ptid, set_resumed, set_running): New
11556 process_stratum_target parameter. Pass it down.
11557 (set_executing): New process_stratum_target parameter. Pass it
11558 down. Adjust reference to 'threads_executing'.
11559 (threads_are_executing): New process_stratum_target parameter.
11560 Adjust reference to 'threads_executing'.
11561 (set_stop_requested, finish_thread_state): New
11562 process_stratum_target parameter. Pass it down.
11563 (switch_to_thread): Also match inferior.
11564 (switch_to_thread): New process_stratum_target parameter. Pass it
11565 down.
11566 (update_threads_executing): Reimplement.
11567 * top.c (quit_force): Pop targets from all inferior.
11568 (gdb_init): Don't call initialize_targets.
11569 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11570 Declare.
11571 (windows_add_thread, windows_delete_thread): Adjust.
11572 (get_windows_debug_event): Rename to ...
11573 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11574 * tracefile-tfile.c (tfile_target_open): Pass down target.
11575 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11576 Forward declare.
11577 (switch_to_thread): Add process_stratum_target parameter.
11578 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11579 parameter. Use it.
11580 (mi_on_resume): Pass target down.
11581 * nat/fork-inferior.c (startup_inferior): Add
11582 process_stratum_target parameter. Pass it down.
11583 * nat/fork-inferior.h (startup_inferior): Add
11584 process_stratum_target parameter.
11585 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11586
75c6c844
PA
115872020-01-10 Pedro Alves <palves@redhat.com>
11588
11589 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11590 directly. Instead find the first thread in the thread list and
11591 use switch_to_thread.
11592
78f2c40a
PA
115932020-01-10 Pedro Alves <palves@redhat.com>
11594
11595 * remote.c (remote_target::remote_add_inferior): Don't bind a
11596 process to the current inferior if the current inferior is already
11597 bound to a process.
11598
e7af6c70
TBA
115992020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11600 Pedro Alves <palves@redhat.com>
11601
11602 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11603 If no process is specified, return null_ptid instead of
11604 inferior_ptid.
11605 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11606 TARGET_WAITKIND_SIGNALLED with no pid.
11607
31ba933e
PA
116082020-01-10 Pedro Alves <palves@redhat.com>
11609
11610 * remote.c (first_remote_resumed_thread): New.
11611 (remote_target::wait_as): Use it as default event_ptid instead of
11612 inferior_ptid.
11613
735fc2ca
PA
116142020-01-10 Pedro Alves <palves@redhat.com>
11615
11616 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11617
c17e02e1
PA
116182020-01-10 Pedro Alves <palves@redhat.com>
11619
11620 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11621 not -1.
11622
ab1ddbcf
PA
116232020-01-10 Pedro Alves <palves@redhat.com>
11624
11625 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11626 ptid to get_last_target_status.
11627 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11628 ptid to get_last_target_status.
11629 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11630 get_last_target_status.
11631 (info_program_command): Don't pass a target_waitstatus to
11632 get_last_target_status.
11633 * infrun.c (init_wait_for_inferior): Use
11634 nullify_last_target_wait_ptid.
11635 (get_last_target_status): Handle nullptr arguments.
11636 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11637 (print_stop_event): Don't pass a ptid to get_last_target_status.
11638 (normal_stop): Don't pass a ptid to get_last_target_status.
11639 * infrun.h (get_last_target_status, set_last_target_status): Move
11640 comments here and update.
11641 (nullify_last_target_wait_ptid): Declare.
11642 * linux-fork.c (fork_load_infrun_state): Remove local extern
11643 declaration of nullify_last_target_wait_ptid.
11644 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11645 to get_last_target_status.
11646
f3f8ece4
PA
116472020-01-10 Pedro Alves <palves@redhat.com>
11648
11649 * gdbthread.h (scoped_restore_current_thread)
11650 <dont_restore, restore, m_dont_restore>: Declare.
11651 * thread.c (thread_alive): Add assertion. Return bool.
11652 (switch_to_thread_if_alive): New.
11653 (prune_threads): Switch inferior/thread.
11654 (print_thread_info_1): Switch thread before calling target methods.
11655 (scoped_restore_current_thread::restore): New, factored out from
11656 ...
11657 (scoped_restore_current_thread::~scoped_restore_current_thread):
11658 ... this.
11659 (scoped_restore_current_thread::scoped_restore_current_thread):
11660 Add assertion.
11661 (thread_apply_all_command, thread_select): Use
11662 switch_to_thread_if_alive.
11663 * infrun.c (proceed, restart_threads, handle_signal_stop)
11664 (switch_back_to_stepped_thread): Switch current thread before
11665 calling target methods.
11666
db2d40f7
PA
116672020-01-10 Pedro Alves <palves@redhat.com>
11668
11669 * inferior.c (switch_to_inferior_no_thread): New function,
11670 factored out from ...
11671 (inferior_command): ... here.
11672 * inferior.h (switch_to_inferior_no_thread): Declare.
11673 * mi/mi-main.c (run_one_inferior): Use
11674 switch_to_inferior_no_thread.
11675
bd420a2d
PA
116762020-01-10 Pedro Alves <palves@redhat.com>
11677
11678 * infcmd.c (kill_command): Remove dead code.
11679
ddf5db90
PA
116802020-01-10 Pedro Alves <palves@redhat.com>
11681
11682 * remote.c (remote_target::mourn_inferior): No longer check
11683 whether the target is running.
11684
5018ce90
PA
116852020-01-10 Pedro Alves <palves@redhat.com>
11686
11687 * corelow.c (core_target::has_execution): Change parameter type to
11688 inferior pointer.
11689 * inferior.c (number_of_live_inferiors): Use
11690 inferior::has_execution instead of target_has_execution_1.
11691 * inferior.h (inferior::has_execution): New.
11692 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11693 inferior::has_execution instead of target_has_execution_1.
11694 * process-stratum-target.c
11695 (process_stratum_target::has_execution): Change parameter type to
11696 inferior pointer. Check the inferior's PID instead of
11697 inferior_ptid.
11698 * process-stratum-target.h
11699 (process_stratum_target::has_execution): Change parameter type to
11700 inferior pointer.
11701 * record-full.c (record_full_core_target::has_execution): Change
11702 parameter type to inferior pointer.
11703 * target.c (target_has_execution_1): Change parameter type to
11704 inferior pointer.
11705 (target_has_execution_current): Adjust.
11706 * target.h (target_ops::has_execution): Change parameter type to
11707 inferior pointer.
11708 (target_has_execution_1): Change parameter type to inferior
11709 pointer. Change return type to bool.
11710 * tracefile.h (tracefile_target::has_execution): Change parameter
11711 type to inferior pointer.
11712
74375d18
PA
117132020-01-10 Pedro Alves <palves@redhat.com>
11714
11715 * exceptions.c (print_flush): Remove current_top_target() check.
11716
acdf84a6
PA
117172020-01-10 Pedro Alves <palves@redhat.com>
11718
11719 * remote.c (show_remote_exec_file): Show the current inferior's
11720 exec-file instead of the command variable's value.
11721
ec506636
PA
117222020-01-10 Pedro Alves <palves@redhat.com>
11723
11724 * record-full.c (record_full_resume_ptid): New global.
11725 (record_full_target::resume): Set it.
11726 (record_full_wait_1): Use record_full_resume_ptid instead of
11727 inferior_ptid.
11728
873657b9
PA
117292020-01-10 Pedro Alves <palves@redhat.com>
11730
11731 * gdbthread.h (scoped_restore_current_thread)
11732 <dont_restore, restore, m_dont_restore>: Declare.
11733 * thread.c (thread_alive): Add assertion. Return bool.
11734 (switch_to_thread_if_alive): New.
11735 (prune_threads): Switch inferior/thread.
11736 (print_thread_info_1): Switch thread before calling target methods.
11737 (scoped_restore_current_thread::restore): New, factored out from
11738 ...
11739 (scoped_restore_current_thread::~scoped_restore_current_thread):
11740 ... this.
11741 (scoped_restore_current_thread::scoped_restore_current_thread):
11742 Add assertion.
11743 (thread_apply_all_command, thread_select): Use
11744 switch_to_thread_if_alive.
11745
7f0ae84c
GB
117462020-01-10 George Barrett <bob@bob131.so>
11747
11748 * stap-probe.c (stap_modify_semaphore): Don't check for null
11749 semaphores.
11750 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11751 for null semaphores.
11752
f5a7c406
AB
117532020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11754
11755 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11756 all source windows, and maintain horizontal scroll status while
11757 doing so.
11758
9ae6bf64
TT
117592020-01-09 Tom Tromey <tom@tromey.com>
11760
11761 PR tui/18932:
11762 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11763 update_source_window, not print_source_lines.
11764
b2efe70c
AB
117652020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11766
11767 * tui/tui.c (tui_enable): Register tui hooks after calling
11768 tui_display_main.
11769
5f23a082
CB
117702020-01-09 Christian Biesinger <cbiesinger@google.com>
11771
11772 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11773
3061113b
SM
117742020-01-08 Simon Marchi <simon.marchi@efficios.com>
11775
11776 * thread.c (print_thread_info_1): Fix indentation.
11777
57d75002
CB
117782020-01-09 Christian Biesinger <cbiesinger@google.com>
11779
11780 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11781 unique_xmalloc_ptr outside the if to always free the demangled name.
11782
6a053cb1
TT
117832020-01-08 Tom Tromey <tromey@adacore.com>
11784
11785 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11786 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11787 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11788 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11789 Remove.
11790 (section_offsets): New typedef.
11791 * symtab.c (fixup_section, get_msymbol_address): Update.
11792 * symmisc.c (dump_msymbols): Update.
11793 * symfile.h (relative_addr_info_to_section_offsets)
11794 (symfile_map_offsets_to_segments): Update.
11795 * symfile.c (build_section_addr_info_from_objfile)
11796 (init_objfile_sect_indices): Update.
11797 (struct place_section_arg): Change type of "offsets".
11798 (place_section): Update.
11799 (relative_addr_info_to_section_offsets): Change type of
11800 "section_offsets". Remove "num_sections" parameter.
11801 (default_symfile_offsets, syms_from_objfile_1)
11802 (set_objfile_default_section_offset): Update.
11803 (reread_symbols): No need to preserve section offsets by hand.
11804 (symfile_map_offsets_to_segments): Change type of "offsets".
11805 * stap-probe.c (relocate_address): Update.
11806 * stabsread.h (process_one_symbol): Update.
11807 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11808 (solib_target_relocate_section_addresses): Update.
11809 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11810 Update.
11811 * solib-frv.c (frv_relocate_main_executable): Update.
11812 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11813 * solib-aix.c (solib_aix_get_section_offsets): Change return
11814 type.
11815 (solib_aix_solib_create_inferior_hook): Update.
11816 * remote.c (remote_target::get_offsets): Update.
11817 * psymtab.c (find_pc_sect_psymtab): Update.
11818 * psympriv.h (struct partial_symbol) <address, text_low,
11819 text_high>: Update.
11820 * objfiles.h (obj_section_offset): Update.
11821 (struct objfile) <section_offsets>: Change type.
11822 <num_sections>: Remove.
11823 (objfile_relocate): Update.
11824 * objfiles.c (entry_point_address_query): Update
11825 (relocate_one_symbol): Change type of "section_offsets".
11826 (objfile_relocate1, objfile_relocate1): Change type of
11827 "new_offsets".
11828 (objfile_rebase1): Update.
11829 * mipsread.c (mipscoff_symfile_read): Update.
11830 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11831 parameter.
11832 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11833 (parse_external, psymtab_to_symtab_1): Update.
11834 * machoread.c (macho_symfile_offsets): Update.
11835 * ia64-tdep.c (ia64_find_unwind_table): Update.
11836 * hppa-tdep.c (read_unwind_info): Update.
11837 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11838 * dwarf2read.c (create_addrmap_from_index)
11839 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11840 (process_psymtab_comp_unit_reader, add_partial_symbol)
11841 (add_partial_subprogram, process_full_comp_unit)
11842 (read_file_scope, read_func_scope, read_lexical_block_scope)
11843 (read_call_site_scope, dwarf2_rnglists_process)
11844 (dwarf2_ranges_process, dwarf2_ranges_read)
11845 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11846 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11847 Update.
11848 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11849 Update.
11850 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11851 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11852 (process_one_symbol): Change type of "section_offsets".
11853 * ctfread.c (get_objfile_text_range): Update.
11854 * coffread.c (coff_symtab_read, enter_linenos)
11855 (process_coff_symbol): Update.
11856 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11857 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11858
456e800a
TT
118592020-01-08 Tom Tromey <tromey@adacore.com>
11860
11861 * dwarf2read.c (parse_macro_definition): Use std::string.
11862 (parse_macro_definition): Likewise.
11863
6dfa2fc2
TT
118642020-01-08 Tom Tromey <tromey@adacore.com>
11865
11866 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11867 (ATTR_ALLOC_CHUNK): Remove.
11868
421d1616
TT
118692020-01-08 Tom Tromey <tromey@adacore.com>
11870
11871 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11872
43816ebc
TT
118732020-01-08 Tom Tromey <tromey@adacore.com>
11874
11875 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11876 (dwarf2_compute_name, open_dwo_file): Likewise.
11877 (process_enumeration_scope): Use std::vector.
11878 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11879 (partial_die_info::fixup, dwarf2_start_subfile)
11880 (guess_full_die_structure_name, dwarf2_name): Likewise.
11881 (determine_prefix): Update.
11882 (guess_full_die_structure_name): Make return type const.
11883 (partial_die_full_name): Return unique_xmalloc_ptr.
11884 (DW_FIELD_ALLOC_CHUNK): Remove.
11885
4212d509
TT
118862020-01-07 Tom Tromey <tromey@adacore.com>
11887
11888 PR build/24937:
11889 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11890
06a6207a
JT
118912020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11892
11893 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11894
153d79c4
AB
118952020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11896
11897 * stack.c (print_frame_info): Move disassemble_next_line code
11898 inside source_print block.
11899
66182876
EZ
119002020-01-06 Eli Zaretskii <eliz@gnu.org>
11901
11902 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11903 gdb/signals.h, as we are now using native signal symbols.
11904
cbfa8581
SV
119052020-01-06 Shahab Vahedi <shahab@synopsys.com>
11906
11907 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11908 overflow by an early check of content vs threshold.
aac66a4c 11909 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11910 Likewise.
11911
3f602821
EZ
119122020-01-06 Eli Zaretskii <eliz@gnu.org>
11913
11914 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11915
a08c904d
JT
119162020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11917
11918 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11919 export table if no section contains it's RVA.
11920
89a65580
EZ
119212020-01-06 Eli Zaretskii <eliz@gnu.org>
11922
11923 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11924
8b7fcda2
HD
119252020-01-06 Hannes Domani <ssbssa@yahoo.de>
11926
11927 * source.c (print_source_lines_base): Set last_line_listed.
11928
a61b4f69
SV
119292020-01-06 Shahab Vahedi <shahab@synopsys.com>
11930
11931 * tui/tui-disasm.c: Remove trailing spaces.
11932
559e7e50
EZ
119332020-01-06 Eli Zaretskii <eliz@gnu.org>
11934 Pedro Alves <palves@redhat.com>
11935
11936 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11937 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11938 (windows_gdb_signal_to_target): New function, uses the above
11939 enumeration to convert GDB internal signal codes to equivalent
11940 Windows codes.
11941 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11942 * windows-nat.c: Include "gdb_wait.h".
11943 (get_windows_debug_event): Extract the fatal exception from the
11944 exit status and convert to the equivalent Posix signal number.
11945 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11946 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11947 * gdbsupport/gdb_wait.c: New file, implements
11948 windows_status_to_termsig.
11949 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
11950 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
11951
f2302a34
AB
119522020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
11953
11954 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
11955 show_layout.
11956
6a5206eb
LM
119572020-01-05 Luis Machado <luis.machado@linaro.org>
11958
11959 * aarch64-linux-nat.c
11960 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
11961 and bfd_mach_aarch64.
11962
6ec1d75e
PW
119632020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11964
11965 * ui-file.c (stdio_file::can_emit_style_escape)
11966 (tee_file::can_emit_style_escape): Ensure style is used also on
11967 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
11968 to gdb_stdout.
11969 * main.c (set_gdb_data_directory): Use file style to output the
11970 warning that the given pathname is not a directory.
11971 * top.c (show_history_filename, gdb_safe_append_history)
11972 (show_gdb_datadir): Use file style.
11973
44f81a76
HD
119742020-01-03 Hannes Domani <ssbssa@yahoo.de>
11975
11976 * solib-target.c (struct lm_info_target):
11977 Change offsets to be a unique_xmalloc_ptr.
11978 (solib_target_relocate_section_addresses): Update.
11979
25057eb0
HD
119802020-01-03 Hannes Domani <ssbssa@yahoo.de>
11981
11982 * windows-nat.c (windows_clear_solib): Free so_list linked list.
11983
6e2118f5
BE
119842020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11985
11986 * MAINTAINERS (Write After Approval): Add myself.
11987
8133c7dc
LM
119882020-01-02 Luis Machado <luis.machado@linaro.org>
11989
11990 * proc-service.c (get_ps_regcache): Remove reference to obsolete
11991 Cell BE architecture.
11992 * target.h (struct target_ops) <thread_architecture>: Likewise.
11993
48189bec
HD
119942020-01-01 Hannes Domani <ssbssa@yahoo.de>
11995
11996 * Makefile.in: Use INSTALL_PROGRAM_ENV.
11997
ead1063b
HD
119982020-01-01 Hannes Domani <ssbssa@yahoo.de>
11999
12000 * MAINTAINERS (Write After Approval): Add myself.
12001
e5d78223
JB
120022020-01-01 Joel Brobecker <brobecker@adacore.com>
12003
12004 * gdbarch.sh: Update copyright year range of generated files.
12005
b811d2c2
JB
120062020-01-01 Joel Brobecker <brobecker@adacore.com>
12007
12008 Update copyright year range in all GDB files.
12009
5f4def5c
JB
120102020-01-01 Joel Brobecker <brobecker@adacore.com>
12011
12012 * copyright.py: Convert to Python 3.
12013
51fd4002
JB
120142020-01-01 Joel Brobecker <brobecker@adacore.com>
12015
12016 * copyright.py: Adapt after move of gnulib directory from gdb
12017 directory to toplevel directory.
12018
5fb651f2
JB
120192020-01-01 Joel Brobecker <brobecker@adacore.com>
12020
12021 * copyright.py (main): Exit if run from the wrong directory.
12022
5dd8bf88
JB
120232020-01-01 Joel Brobecker <brobecker@adacore.com>
12024
12025 * top.c (print_gdb_version): Change copyright year to 2020.
12026
9f71dacb 120272020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12028
9f71dacb 12029 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12030
9f71dacb 12031For older changes see ChangeLog-2019.
c906108c
SS
12032\f
12033Local Variables:
12034mode: change-log
12035left-margin: 8
12036fill-column: 74
12037version-control: never
57da7796 12038coding: utf-8
c906108c 12039End: