]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Move multi-target NEWS entry to GDB 10 features
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7cf663a9
PA
12020-08-12 Pedro Alves <palves@redhat.com>
2
3 * NEWS: Move "Multi-target debugging support" item to the
4 "Changes since GDB 9" section.
5
27c7b875
PA
62020-08-12 Pedro Alves <palves@redhat.com>
7
8 PR gdb/26336
9 * progspace.c (program_space::remove_objfile): Invalidate the
10 frame cache.
11
1796a2a1
TV
122020-08-11 Tom de Vries <tdevries@suse.de>
13
14 * MAINTAINERS: Mark ms1 as deleted.
15
f8e3fe0d
LM
162020-08-10 Luis Machado <luis.machado@linaro.org>
17
18 PR gdb/26310
19
20 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
21 act accordingly.
22 (aarch64_analyze_prologue_test): Add more unit tests to exercise
23 movz/str/stur/stp skipping behavior.
24
cc308722
LM
252020-08-10 Luis Machado <luis.machado@linaro.org>
26
27 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
28 struct user_sve_header instead of struct sve_context.
29
041d9819
SM
302020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * read.h (dwarf2_fetch_die_loc_sect_off,
33 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
34 `void *` parameter with function_view.
35 * read.c (dwarf2_fetch_die_loc_sect_off,
36 dwarf2_fetch_die_loc_cu_off): Likewise.
37 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
38 (per_cu_dwarf_call): Adjust.
39 (get_frame_address_in_block_wrapper): Remove.
40 (indirect_synthetic_pointer): Adjust.
41 (get_ax_pc): Remove.
42 (dwarf2_compile_expr_to_ax): Adjust.
43
38f8aa06
TV
442020-08-08 Tom de Vries <tdevries@suse.de>
45
46 PR build/26344
47 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
48 constructor.
49 * regcache.c (get_thread_arch_aspace_regcache): Same.
50
a52b3ae2
TT
512020-08-07 Tom Tromey <tromey@adacore.com>
52
53 * ravenscar-thread.c
54 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
55 New method.
56 (ravenscar_thread_target::wait): Check
57 runtime_initialized.
58 (ravenscar_thread_target::prepare_to_store)
59 (ravenscar_thread_target::stopped_by_sw_breakpoint)
60 (ravenscar_thread_target::stopped_by_hw_breakpoint)
61 (ravenscar_thread_target::stopped_by_watchpoint)
62 (ravenscar_thread_target::stopped_data_address)
63 (ravenscar_thread_target::core_of_thread): Use
64 scoped_restore_current_thread and
65 set_base_thread_from_ravenscar_task.
66
0e29517d
TT
672020-08-07 Tom Tromey <tromey@adacore.com>
68
69 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
70
592f9bd7
TT
712020-08-07 Tom Tromey <tromey@adacore.com>
72
73 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
74 update_inferior_ptid before update_thread_list.
75 (temporarily_change_regcache_ptid): New class.
76 (ravenscar_thread_target::fetch_registers)
77 (ravenscar_thread_target::store_registers)
78 (ravenscar_thread_target::prepare_to_store): Use base thread when
79 forwarding operation.
80
39e2018a
TT
812020-08-07 Tom Tromey <tromey@adacore.com>
82
83 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
84 "is_pid" case.
85
2080266b
TT
862020-08-07 Tom Tromey <tromey@adacore.com>
87
88 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
89 New methods.
90 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
91 first.
92 (ravenscar_thread_target::add_thread): Rename from
93 ravenscar_add_thread.
94 (ravenscar_thread_target::update_thread_list): Use a lambda.
95 (ravenscar_thread_target::xfer_partial): New method.
96
78c02f21
TT
972020-08-07 Tom Tromey <tromey@adacore.com>
98
99 * ada-lang.h (ada_task_list_iterator_ftype): Now a
100 gdb::function_view.
101 (iterate_over_live_ada_tasks): Change type of argument.
102 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
103 of argument.
104
d5d833af
TT
1052020-08-07 Tom Tromey <tromey@adacore.com>
106
107 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
108 Remove.
109 (ravenscar_thread_target::extra_thread_info): Remove.
110 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
111 defer to target beneath for non-Ravenscar threads.
112
a8ac85bb
TT
1132020-08-07 Tom Tromey <tromey@adacore.com>
114
115 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
116 get_base_thread_from_ravenscar_task>: Now methods.
117 <m_cpu_map>: New member.
118 (ravenscar_thread_target::get_thread_base_cpu): Rename from
119 ravenscar_get_thread_base_cpu. Check m_cpu_map.
120 (ravenscar_thread_target::task_is_currently_active): Update.
121 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
122 Now a method.
123 (ravenscar_thread_target::add_active_thread): Put initial thread
124 into the m_cpu_map.
125
550ab58d
TT
1262020-08-07 Tom Tromey <tromey@adacore.com>
127
128 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
129 event_ptid.
130
e9546579
TT
1312020-08-07 Tom Tromey <tromey@adacore.com>
132
133 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
134 runtime_initialized.
135
3d4470e5
TT
1362020-08-07 Tom Tromey <tromey@adacore.com>
137
138 * ravenscar-thread.c (ravenscar_thread_target): Don't call
139 add_active_thread.
140 (ravenscar_thread_target::add_active_thread): Now public.
141 (ravenscar_inferior_created): Call add_active_thread after pushing
142 the target.
143
888bdb2b
SM
1442020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
145
146 * regcache.c (ptid_regcache_map): New type.
147 (target_ptid_regcache_map): New type.
148 (regcaches): Change type to target_ptid_regcache_map.
149 (get_thread_arch_aspace_regcache): Update to regcaches' new
150 type.
151 (regcache_thread_ptid_changed): Likewise.
152 (registers_changed_ptid): Likewise.
153 (regcaches_size): Likewise.
154 (regcaches_test): Update.
155 (regcache_thread_ptid_changed): Update.
156 * regcache.h (regcache_up): New type.
157 * gdbsupport/ptid.h (hash_ptid): New struct.
158
b161a60d
SM
1592020-08-07 Simon Marchi <simon.marchi@efficios.com>
160
161 * observable.h (thread_ptid_changed): Add parameter
162 `process_stratum_target *`.
163 * infrun.c (infrun_thread_ptid_changed): Add parameter
164 `process_stratum_target *` and use it.
165 (selftests): New namespace.
166 (infrun_thread_ptid_changed): New function.
167 (_initialize_infrun): Register selftest.
168 * regcache.c (regcache_thread_ptid_changed): Add parameter
169 `process_stratum_target *` and use it.
170 (regcache_thread_ptid_changed): New function.
171 (_initialize_regcache): Register selftest.
172 * thread.c (thread_change_ptid): Pass target to
173 thread_ptid_changed observable.
174
d2854d8d
CT
1752020-08-06 Caroline Tice <cmtice@google.com>
176
fe4c3d43
SM
177 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
178 (struct dwp_sections): Update field comments. Add loclists and
179 rnglists fields.
180 (struct virtual_v2_dwo_sections): Rename struct to
181 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
182 size & offset fields for loclists and rnglists.
183 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
184 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
185 skipping dummy type units.
186 (create_dwp_hash_table): Update the large comment above the function to
187 discuss Version 5 DWP files as well, with references. Update all the
188 version checks in the function to check for version 5 as well. Add new
189 section at the end to create dwp hash table for version 5.
190 (create_dwp_v2_section): Rename function to
191 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
192 Add V5 to error message text.
193 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
194 into calls to create_dwp_v2_or_v5_section.
195 (create_dwo_unit_in_dwp_v5): New function.
196 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
197 check for version2; add else clause to handle version 5.
198 (open_and_init_dwo_file): Add code to check dwarf version & only call
199 create_debug_types_hash_table (with sections.types) if version is not 5;
200 else call create_debug_type_hash_table, with sections.info.
201 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
202 version 5.
203 (dwarf2_locate_v5_dwp_sections): New function.
204 (open_and_init_dwp_file): Add else-if clause for version 5 to call
205 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 206
159ed7d9
SM
2072020-08-06 Simon Marchi <simon.marchi@efficios.com>
208
209 * regcache.h (class regcache): Remove friend
210 registers_changed_ptid.
211 <regcache_thread_ptid_changed>: Remove.
212 <regcaches>: Remove.
213 * regcache.c (regcache::regcaches): Rename to...
214 (regcaches): ... this. Make static.
215 (get_thread_arch_aspace_regcache): Update.
216 (regcache::regcache_thread_ptid_changed): Rename to...
217 (regcache_thread_ptid_changed): ... this. Update.
218 (class regcache_access): Remove.
219 (regcaches_test): Update.
220 (_initialize_regcache): Update.
221 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
222 <forward_list>.
223
174981ae
SM
2242020-08-06 Simon Marchi <simon.marchi@efficios.com>
225
226 * regcache.h (class regcache) <current_regcache>: Rename to...
227 <regcaches>: ... this. Move doc here.
228 * regcache.c (regcache::current_regcache) Rename to...
229 (regcache::regcaches): ... this. Move doc to header.
230 (get_thread_arch_aspace_regcache): Update.
231 (regcache::regcache_thread_ptid_changed): Update.
232 (registers_changed_ptid): Update.
233 (class regcache_access) <current_regcache_size>: Rename to...
234 <regcaches_size>: ... this.
235 (current_regcache_test): Rename to...
236 (regcaches_test): ... this.
237 (_initialize_regcache): Update.
238
ed908db6
VC
2392020-08-06 Victor Collod <vcollod@nvidia.com>
240
241 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
242
b5582ab7
KB
2432020-08-05 Kevin Buettner <kevinb@redhat.com>
244
245 * corelow.c (core_target::build_file_mappings): Don't output
246 null pathname in warning.
247
ea946b86
SM
2482020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
249
250 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
251 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
252 gdb.dwarf2/dw2-single-line-discriminators.exp,
253 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
254
57d02173
TT
2552020-08-05 Tom Tromey <tromey@adacore.com>
256
257 PR rust/26197:
258 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
259 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
260 Fix off-by-one and type size errors in ordinary case.
261
5555c86d
TV
2622020-08-05 Tom de Vries <tdevries@suse.de>
263
264 * gdbtypes.c (type_not_allocated, type_not_associated): Use
265 "prop->const_val () == 0" instead of "prop->const_val () != 0".
266
97916bfe
SM
2672020-08-04 Simon Marchi <simon.marchi@efficios.com>
268
269 * frame.h (frame_id_p): Return bool.
270 (frame_id_artificial_p): Return bool.
271 (frame_id_eq): Return bool.
272 (has_stack_frames): Return bool.
273 (get_selected_frame): Fix typo in comment.
274 (get_frame_pc_if_available): Return bool.
275 (get_frame_address_in_block_if_available): Return bool.
276 (get_frame_func_if_available): Return bool.
277 (read_frame_register_unsigned): Return bool.
278 (get_frame_register_bytes): Return bool.
279 (safe_frame_unwind_memory): Return bool.
280 (deprecated_frame_register_read): Return bool.
281 (frame_unwinder_is): Return bool.
282 * frame.c (struct frame_info) <prev_arch::p>: Change type to
283 bool.
284 <this_id::p>: Likewise.
285 <prev_p>: Likewise.
286 (frame_stash_add): Return bool.
287 (get_frame_id): Use bool.
288 (frame_id_build_special) Use bool.
289 (frame_id_build_unavailable_stack): Use bool.
290 (frame_id_build): Use bool.
291 (frame_id_p): Return bool, use true/false instead of 1/0.
292 (frame_id_artificial_p): Likewise.
293 (frame_id_eq): Likewise.
294 (frame_id_inner): Likewise.
295 (get_frame_func_if_available): Likewise.
296 (read_frame_register_unsigned): Likewise.
297 (deprecated_frame_register_read): Likewise.
298 (get_frame_register_bytes): Likewise.
299 (has_stack_frames): Likewise.
300 (inside_main_func): Likewise.
301 (inside_entry_func): Likewise.
302 (get_frame_pc_if_available): Likewise.
303 (get_frame_address_in_block_if_available): Likewise.
304 (frame_unwinder_is): Likewise.
305 (safe_frame_unwind_memory): Likewise.
306 (frame_unwind_arch): Likewise.
307
fedfee88
SM
3082020-08-04 Simon Marchi <simon.marchi@efficios.com>
309
310 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
311 type to cached_copy_status.
312 (fprintf_frame): Adjust.
313 (get_frame_func_if_available): Adjust.
314 (frame_cleanup_after_sniffer): Adjust.
315
6cfa9b59
MW
3162020-08-04 Mark Wielaard <mark@klomp.org>
317
318 * MAINTAINERS (Write After Approval): Update email address.
319
66d6346b
SM
3202020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
321
322 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
323 dynamic_prop::const_val.
324
8a6d5e35
SM
3252020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
326
327 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
328 dynamic_prop::kind.
329
51d6067d
SM
3302020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
331
332 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
333
b26e2ae7
JM
3342020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
335
336 * configure.tgt: Set gdb_sim for bpf-*-* targets.
337
39791af2
JM
3382020-08-04 Weimin Pan <weimin.pan@oracle.com>
339 Jose E. Marchesi <jose.marchesi@oracle.com>
340
341 * configure.tgt: Add entry for bpf-*-*.
342 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
343 (ALLDEPFILES): Add bpf-tdep.c.
344 * bpf-tdep.c: New file.
345 * MAINTAINERS: Add bpf target and maintainer.
346 * NEWS: Mention the support for the new target.
347
521894aa
TV
3482020-08-04 Tom de Vries <tdevries@suse.de>
349
350 PR symtab/23270
351 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
352 Error.
353
5d6356e9
JB
3542020-08-03 John Baldwin <jhb@FreeBSD.org>
355
356 * syscalls/freebsd.xml: Regenerate.
357
0cf82b81
JB
3582020-08-03 John Baldwin <jhb@FreeBSD.org>
359
360 * syscalls/update-freebsd.sh: Fix usage and year range.
361
8f34b746
TV
3622020-08-03 Tom de Vries <tdevries@suse.de>
363
364 PR symtab/26333
365 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
366 DW_LNE_lo_user/DW_LNE_hi_user range.
367
5e500d33
SM
3682020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
369
370 PR ada/26318
371 * ada-lang.c (ada_modulus): Return 0 if property is not of const
372 kind.
373
78319c15
TBA
3742020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
375
376 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
377
4c55e970
TBA
3782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
379
380 * breakpoint.c (set_breakpoint_condition): Update the condition
381 expressions after checking that the input condition string parses
382 successfully and does not contain junk at the end.
383
1e620590
TBA
3842020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
385
386 * breakpoint.c (set_breakpoint_condition): Update the
387 condition string after parsing the new condition successfully.
388
c8693053
RO
3892020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
390
391 * proc-api.c (_STRUCTURED_PROC): Don't define.
392 * proc-events.c: Likewise.
393 * proc-flags.c: Likewise.
394 * proc-why.c: Likewise.
395 * procfs.c: Likewise.
396
397 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
398 * configure, config.in: Regenerate.
399
5a99adb8
TV
4002020-07-30 Tom de Vries <tdevries@suse.de>
401
402 PR build/26320
403 * ui-style.h (struct ui_file_style::color): Wrap m_value and
404 m_red/m_green/m_blue in a union.
405
8ba83e91
TV
4062020-07-29 Tom de Vries <tdevries@suse.de>
407
408 PR tdep/26280
409 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
410
f75a0693
AB
4112020-07-28 Tom Tromey <tromey@adacore.com>
412
413 PR symtab/26270:
414 * symtab.h (find_pc_partial_function_sym): Declare.
415 * cli/cli-cmds.c (disassemble_command): Use
416 find_pc_partial_function_sym. Check asm_demangle.
417 * blockframe.c (cache_pc_function_sym): New global.
418 (cache_pc_function_name): Remove.
419 (clear_pc_function_cache): Update.
420 (find_pc_partial_function_sym): New function, from
421 find_pc_partial_function.
422 (find_pc_partial_function): Rewrite using
423 find_pc_partial_function_sym.
424
16f3242c
TT
4252020-07-28 Tom Tromey <tromey@adacore.com>
426
427 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
428 help. Add usage.
429
4888741a
TT
4302020-07-28 Tom Tromey <tromey@adacore.com>
431
432 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
433 <DW_OP_GNU_variable_value>: Cast to address type.
434
4d46f402
KR
4352020-07-28 Kamil Rytarowski <n54@gmx.com>
436
437 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
438 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
439 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
440 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
441 (nbsd_get_siginfo_type): New.
442 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
443 (_initialize_nbsd_tdep): New.
444
d70f978b
L
4452020-07-28 H.J. Lu <hongjiu.lu@intel.com>
446
447 PR binutils/26301
448 * configure: Regenerated.
449
377170fa
L
4502020-07-28 H.J. Lu <hongjiu.lu@intel.com>
451
452 PR binutils/26301
453 * configure: Regenerated.
454
43d5901d
AB
4552020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
456
457 * python/py-frame.c: Remove 'user-regs.h' include.
458 (frapy_read_register): Rewrite to make use of
459 gdbpy_parse_register_id.
460 * python/py-registers.c (gdbpy_parse_register_id): New function,
461 moved here from python/py-unwind.c. Updated the return type, and
462 also accepts register descriptor objects.
463 * python/py-unwind.c: Remove 'user-regs.h' include.
464 (pyuw_parse_register_id): Moved to python/py-registers.c.
465 (unwind_infopy_add_saved_register): Update to use
466 gdbpy_parse_register_id.
467 (pending_framepy_read_register): Likewise.
468 * python/python-internal.h (gdbpy_parse_register_id): Declare.
469
14fa8fb3
AB
4702020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
471
472 * python/py-registers.c: Add 'user-regs.h' include.
473 (register_descriptor_iter_find): New function.
474 (register_descriptor_iterator_object_methods): New static global
475 methods array.
476 (register_descriptor_iterator_object_type): Add pointer to methods
477 array.
478
ddce1758
JB
4792020-07-27 John Baldwin <jhb@FreeBSD.org>
480
481 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
482 for all architectures on FreeBSD 11.3 and later.
483
a4089f52
TT
4842020-07-27 Tom Tromey <tromey@adacore.com>
485
486 * gcore.h (load_corefile): Don't declare.
487
95420d30
TV
4882020-07-27 Tom de Vries <tdevries@suse.de>
489
490 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
491 * config.in: Regenerate.
492 * configure: Regenerate.
493
05a6b8c2
EZ
4942020-07-26 Eli Zaretskii <eliz@gnu.org>
495
496 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
497 ws2tcpip.h. When checking whether socklen_t type is defined, use
498 ws2tcpip.h if it is available and sys/socket.h isn't.
499 * configure: Regenerate.
500 * config.in: Regenerate.
501
e79eb02f
AB
5022020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
503
504 PR fortran/23051
505 PR fortran/26139
506 * valops.c (value_ind): Pass address to
507 readjust_indirect_value_type.
508 * value.c (readjust_indirect_value_type): Make parameter
509 non-const, and add extra address parameter. Resolve original type
510 before using it.
511 * value.h (readjust_indirect_value_type): Update function
512 signature and comment.
513
876518dd
TV
5142020-07-25 Tom de Vries <tdevries@suse.de>
515
516 PR symtab/26243
517 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
518 entries.
519
f6720b1c
AM
5202020-07-24 Aaron Merey <amerey@redhat.com>
521
522 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
523 * configure: Rebuild.
524
513487e1
KB
5252020-07-23 Kevin Buettner <kevinb@redhat.com>
526
527 PR corefiles/26294
528 * corelow.c (_initialize_corelow): Add period to help text
529 for "maintenance print core-file-backed-mappings".
530
e7bc9db8
PA
5312020-07-23 Pedro Alves <pedro@palves.net>
532
533 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
534 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
535 meanwhile.
536 * frame.c (frame_cache_generation, get_frame_cache_generation):
537 New.
538 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
539 (get_prev_frame_if_no_cycle): On exception, don't touch
540 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
541 * frame.h (get_frame_cache_generation): Declare.
542
90fcc466
TV
5432020-07-23 Tom de Vries <tdevries@suse.de>
544
545 PR tui/26282
546 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
547 New default constructor.
548
78344df7
AB
5492020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
550
551 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
552 exclude non-statement entries.
553
b089853a
KB
5542020-07-22 Kevin Buettner <kevinb@redhat.com>
555
556 * NEWS (New commands): Mention new command
557 "maintenance print core-file-backed-mappings".
558
09c2f5d4
KB
5592020-07-22 Kevin Buettner <kevinb@redhat.com>
560
561 * corelow.c (gdbcmd.h): Include.
562 (core_target::info_proc_mappings): New method.
563 (get_current_core_target): New function.
564 (maintenance_print_core_file_backed_mappings): New function.
565 (_initialize_corelow): Add core-file-backed-mappings to
566 "maint print" commands.
567
9c5ec5c2 5682020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 569
9c5ec5c2
KB
570 * linux-tdep.c (dump_note_entry_p): New function.
571 (linux_dump_mapping_p_ftype): New typedef.
572 (linux_find_memory_regions_full): Add new parameter,
573 should_dump_mapping_p.
574 (linux_find_memory_regions): Adjust call to
575 linux_find_memory_regions_full.
576 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
577 call to linux_find_memory_regions_full.
578
db082f59
KB
5792020-07-22 Kevin Buettner <kevinb@redhat.com>
580
581 * corelow.c (solist.h, unordered_map): Include.
582 (class core_target): Add field m_core_file_mappings and
583 method build_file_mappings.
584 (core_target::core_target): Call build_file_mappings.
585 (core_target::~core_target): Free memory associated with
586 m_core_file_mappings.
587 (core_target::build_file_mappings): New method.
588 (core_target::xfer_partial): Use m_core_file_mappings
589 for memory transfers.
590 * linux-tdep.c (linux_read_core_file_mappings): New
591 function.
592 (linux_core_info_proc_mappings): Rewrite to use
593 linux_read_core_file_mappings.
594 (linux_init_abi): Register linux_read_core_file_mappings.
595
7e183d27
KB
5962020-07-22 Kevin Buettner <kevinb@redhat.com>
597
598 * arch-utils.c (default_read_core_file_mappings): New function.
599 * arch-utils.c (default_read_core_file_mappings): Declare.
600 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
601 * gdbarch.h, gdbarch.c: Regenerate.
602
2735d421
KB
6032020-07-22 Kevin Buettner <kevinb@redhat.com>
604
605 PR corefiles/25631
606 * corelow.c (core_target:xfer_partial): Revise
607 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
608 case after first checking the stratum beneath the core
609 target.
610 (has_all_memory): Return true.
611 * target.c (raw_memory_xfer_partial): Revise comment
612 regarding use of has_all_memory.
613
e56cb451
KB
6142020-07-22 Kevin Buettner <kevinb@redhat.com>
615
616 * exec.h (section_table_xfer_memory): Revise declaration,
617 replacing section name parameter with an optional callback
618 predicate.
619 * exec.c (section_table_xfer_memory): Likewise.
620 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
621 of section_table_xfer_memory.
622
32fa152e
TT
6232020-07-22 Tom Tromey <tromey@adacore.com>
624
625 * mi/mi-cmd-stack.c (list_args_or_locals): Use
626 lookup_symbol_search_name.
627
a67a1c41
AB
6282020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
629
630 * python/py-registers.c (gdbpy_register_object_data_init): Remove
631 redundant local variable.
632 (gdbpy_get_register_descriptor): Extract descriptor vector as a
633 reference, not pointer, update code accordingly.
634
a7b4ff4f
SM
6352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
636 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
637
638 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
639 * jit.c (jit_breakpoint_re_set_internal): Use the
640 `skip_jit_symbol_lookup` field.
641
2340e834
SM
6422020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
643 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
644
645 * jit.c (jit_read_descriptor): Define the descriptor address once,
646 use twice.
647 (jit_breakpoint_deleted): Move the declaration of the loop variable
648 `iter` into the loop header.
649 (jit_breakpoint_re_set_internal): Move the declaration of the local
650 variable `objf_data` to the first point of definition.
651 (jit_event_handler): Move the declaration of local variables
652 `code_entry`, `entry_addr`, and `objf` to their first point of use.
653 Rename `objf` to `jited`.
654
c1072906
SM
6552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
656
657 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
658 Remove.
659 * jit.c (get_jiter_objfile_data): Update.
660
c8474dc3
TBA
6612020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
662 Simon Marchi <simon.marchi@polymtl.ca>
663
664 * jit.c (struct jit_program_space_data): Remove.
665 (jit_program_space_key): Remove.
666 (jiter_objfile_data::~jiter_objfile_data): Remove program space
667 stuff.
668 (get_jit_program_space_data): Remove.
669 (jit_breakpoint_deleted): Iterate on all of the program space's
670 objfiles.
671 (jit_inferior_init): Likewise.
672 (jit_breakpoint_re_set_internal): Likewise. Also change return
673 type to void.
674 (jit_breakpoint_re_set): Pass current_program_space to
675 jit_breakpoint_re_set_internal.
676
77208eb7
SM
6772020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
678
679 * jit.h (struct jiter_objfile_data) <cached_code_address,
680 jit_breakpoint>: Move to here from ...
681 * jit.c (jit_program_space_data): ... here.
682 (jiter_objfile_data::~jiter_objfile_data): Update.
683 (jit_breakpoint_deleted): Update.
684 (jit_breakpoint_re_set_internal): Update.
685
8c1c720f
SM
6862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
687
688 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
689 checks.
690 (jit_read_descriptor): Remove NULL check.
691 (jit_event_handler): Add an assertion.
692
0e74a041
SM
6932020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
694
695 * jit.h (struct jit_objfile_data): Split into...
696 (struct jiter_objfile_data): ... this ...
697 (struct jited_objfile_data): ... and this.
698 * objfiles.h (struct objfile) <jit_data>: Remove.
699 <jiter_data, jited_data>: New fields.
700 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
701 (jiter_objfile_data::~jiter_objfile_data): ... this.
702 (get_jit_objfile_data): Rename to ...
703 (get_jiter_objfile_data): ... this.
704 (add_objfile_entry): Update.
705 (jit_read_descriptor): Use get_jiter_objfile_data.
706 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
707 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
708 (jit_inferior_exit_hook): Use objfile's jited_data field.
709
238b5c9f
SM
7102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
711
712 * jit.h: Forward-declare `struct minimal_symbol`.
713 (struct jit_objfile_data): Migrate to here from jit.c; also add a
714 constructor, destructor, and an objfile* field.
715 * jit.c (jit_objfile_data): Remove.
716 (struct jit_objfile_data): Migrate from here to jit.h.
717 (jit_objfile_data::~jit_objfile_data): New destructor
718 implementation with code moved from free_objfile_data.
719 (free_objfile_data): Delete.
720 (get_jit_objfile_data): Update to use the jit_data field of objfile.
721 (jit_find_objf_with_entry_addr): Ditto.
722 (jit_inferior_exit_hook): Ditto.
723 (_initialize_jit): Remove the call to
724 register_objfile_data_with_cleanup.
725 * objfiles.h (struct objfile) <jit_data>: New field.
726
fe053b9e
TBA
7272020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
728
729 * jit.h: Forward-declare `struct objfile`.
730 (jit_event_handler): Add a second parameter, the JITer objfile.
731 * jit.c (jit_read_descriptor): Change the signature to take the
732 JITer objfile as an argument instead of the jit_program_space_data.
733 (jit_inferior_init): Update the call to jit_read_descriptor.
734 (jit_event_handler): Use the new JITer objfile argument when calling
735 jit_read_descriptor.
736 * breakpoint.c (handle_jit_event): Update the call to
737 jit_event_handler to pass the JITer objfile.
738
4cec0c66
JB
7392020-07-21 John Baldwin <jhb@FreeBSD.org>
740
741 * gdbarch.c: Regenerate.
742 * gdbarch.h: Regenerate.
743 * gdbarch.sh (handle_segmentation_fault): Remove method.
744 * infrun.c (handle_segmentation_fault): Remove.
745 (print_signal_received_reason): Remove call to
746 handle_segmentation_fault.
747
0e42f66a
JB
7482020-07-21 John Baldwin <jhb@FreeBSD.org>
749
750 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
751 Rename to sparc64_linux_report_signal_info and add siggnal
752 argument.
753 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
754 instead of sparc64_linux_handle_segmentation_fault.
755
77bdfeb2
JB
7562020-07-21 John Baldwin <jhb@FreeBSD.org>
757
758 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
759 i386_linux_report_signal_info instead of
760 i386_linux_handle_segmentation_fault.
761 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
762 to i386_linux_report_signal_info and add siggnal argument.
763 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
764 of i386_linux_handle_segmentation_fault.
765 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
766 to i386_linux_report_signal_info and add siggnal argument.
767
ad97bfc5
JB
7682020-07-21 John Baldwin <jhb@FreeBSD.org>
769
770 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
771 hook if present.
772
272bb05c
JB
7732020-07-21 John Baldwin <jhb@FreeBSD.org>
774
775 * gdbarch.c: Regenerate.
776 * gdbarch.h: Regenerate.
777 * gdbarch.sh (report_signal_info): New method.
778 * infrun.c (print_signal_received_reason): Invoke gdbarch
779 report_signal_info hook if present.
780
baf8791e
AB
7812020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * python/py-registers.c : Add 'unordered_map' include.
784 (gdbpy_new_reggroup): Renamed to...
785 (gdbpy_get_reggroup): ...this. Update to only create register
786 group descriptors when needed.
787 (gdbpy_reggroup_iter_next): Update.
788
f7306dac
AB
7892020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
790
791 * python/py-registers.c (gdbpy_register_object_data): New static
792 global.
793 (gdbpy_register_object_data_init): New function.
794 (gdbpy_new_register_descriptor): Renamed to...
795 (gdbpy_get_register_descriptor): ...this, and update to reuse
796 existing register descriptors where possible.
797 (gdbpy_register_descriptor_iter_next): Update.
798 (gdbpy_initialize_registers): Register new gdbarch data.
799
05c309a8
SM
8002020-07-21 Simon Marchi <simon.marchi@efficios.com>
801
802 * linux-nat.c (stopped_pids): Make static.
803
d1fd641e
SM
8042020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
805
806 PR ada/26235
807 * gdbtypes.c (ada_discrete_type_low_bound,
808 ada_discrete_type_high_bound): Handle undefined bounds.
809
1de14d77
KR
8102020-07-21 Kamil Rytarowski <n54@gmx.com>
811
812 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
813 declaration.
814 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
815 function.
816
ed810cc7
JB
8172020-07-20 John Baldwin <jhb@FreeBSD.org>
818
819 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
820 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
821 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
822 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
823 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
824 method.
825
ae5369e7
LC
8262020-07-20 Ludovic Courtès <ludo@gnu.org>
827
828 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
829 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
830 which are deprecated in Guile 3.0.
831 * configure.ac (try_guile_versions): Add "guile-3.0".
832 * configure (try_guile_versions): Regenerate.
833 * NEWS: Update entry.
834
68cf161c
LC
8352020-07-20 Ludovic Courtès <ludo@gnu.org>
836 Doug Evans <dje@google.com>
837
838 PR gdb/21104
839 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
840 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
841 USING_GUILE_BEFORE_2_2.
842 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
843 Change type to 'scm_t_port_type *'.
844 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
845 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
846 parameter and honor it. Update callers.
847 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
848 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
849 functions.
850 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
851 USING_GUILE_BEFORE_2_2.
852 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
853 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
854 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
855 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
856 and 'SCM_PORT_TYPE'.
857 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
858 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
859 (gdbscm_memory_port_read, gdbscm_memory_port_write)
860 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
861 [!USING_GUILE_BEFORE_2_2]: New functions.
862 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
863 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
864 'gdbscm_memory_port_read'.
865 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
866 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
867 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
868 function.
869 (ioscm_init_memory_port): Remove.
870 (ioscm_init_memory_port_stream): New function
871 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
872 function.
873 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
874 Return scm_from_uint (0).
875 (gdbscm_set_memory_port_read_buffer_size_x)
876 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
877 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
878 Return scm_from_uint (0).
879 (gdbscm_set_memory_port_write_buffer_size_x)
880 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
881 * configure.ac (try_guile_versions): Add "guile-2.2".
882 * configure: Regenerate.
883 * NEWS: Add entry.
884
aee91db3
TT
8852020-07-18 Tom Tromey <tom@tromey.com>
886
887 * linux-nat.c (linux_multi_process): Remove.
888 (linux_nat_target::supports_multi_process): Return true.
889
0e267416
AB
8902020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
891
892 * arch/riscv.c (riscv_tdesc_cache): Change map type.
893 (riscv_lookup_target_description): Return pointer out of
894 unique_ptr.
895 * target-descriptions.c (allocate_target_description): Add
896 comment.
897 (target_desc_deleter::operator()): Likewise.
898 * target-descriptions.h (struct target_desc_deleter): Moved to
899 gdbsupport/tdesc.h.
900 (target_desc_up): Likewise.
901
f80c8ec4
TT
9022020-07-17 Tom Tromey <tromey@adacore.com>
903
904 * linux-nat.c (linux_nat_target::supports_non_stop)
905 (linux_nat_target::always_non_stop_p): Use "true".
906 (linux_nat_target::supports_disable_randomization): Use "true" and
907 "false".
908
d0ce17d8
CT
9092020-07-16 Caroline Tice <cmtice@google.com>
910
911 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
912 (RNGLIST_HEADER_SIZE64): New constant definition.
913 (struct dwop_section_names): Add rnglists_dwo.
914 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
915 (struct loclist_header): Rename to 'loclists_rnglists_header'.
916 (struct dwo_sections): Add rnglists field.
917 (read_attribut_reprocess): Add tag parameter.
918 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
919 (cu_debug_rnglists_section): New function (decl & definition).
920 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
921 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
922 die whose range is being checked; get rnglist section from
923 cu_debug_rnglists_section, to get from either objfile or dwo file as
924 appropriate. Add cases for DW_RLE_base_addressx,
925 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
926 the base address to DW_RLE_offset_pairs (not to all ranges), moving
927 test inside if-condition and updating complaint message.
928 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
929 dwarf2_rnglists_process.
930 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
931 dwarf2_ranges_process.
932 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
933 need_ranges_base and update comment appropriately. Also pass die tag
934 to dwarf2_ranges_read.
935 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
936 need_ranges_base and update comment appropriately. Also pass die tag
937 to dwarf2_ranges_process.
938 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
939 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
940 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
941 need_ranges_base and update comment appropriately. Also pass die tag
942 to read_attribute_reprocess and dwarf2_ranges_read.
943 (read_loclist_header): Rename function to read_loclists_rnglists_header,
944 and update function comment appropriately.
945 (read_loclist_index): Call read_loclists_rnglists_header instead of
946 read_loclist_header.
947 (read_rnglist_index): New function.
948 (read_attribute_reprocess): Add tag parameter. Add code for
949 DW_FORM_rnglistx, passing tag to read_rnglist_index.
950 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
951
3dcc261c
AB
9522020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
953
954 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
955 being resolved.
956
ccb9eba6
AB
9572020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
958
959 * arch-utils.c (show_architecture): Update formatting of messages.
960
cf88be68
SM
9612020-07-12 Simon Marchi <simon.marchi@efficios.com>
962
963 * gdbtypes.h (struct type) <bounds>: Handle array and string
964 types.
965 * ada-lang.c (assign_aggregate): Use type::bounds on
966 array/string type.
967 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
968 * c-varobj.c (c_number_of_children): Likewise.
969 (c_describe_child): Likewise.
970 * eval.c (evaluate_subexp_for_sizeof): Likewise.
971 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
972 (f_type_print_base): Likewise.
973 * f-valprint.c (f77_array_offset_tbl): Likewise.
974 (f77_get_upperbound): Likewise.
975 (f77_print_array_1): Likewise.
976 * guile/scm-type.c (gdbscm_type_range): Likewise.
977 * m2-typeprint.c (m2_array): Likewise.
978 (m2_is_long_set_of_type): Likewise.
979 * m2-valprint.c (get_long_set_bounds): Likewise.
980 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
981 * python/py-type.c (typy_range): Likewise.
982 * rust-lang.c (rust_internal_print_type): Likewise.
983 * type-stack.c (type_stack::follow_types): Likewise.
984 * valarith.c (value_subscripted_rvalue): Likewise.
985 * valops.c (value_cast): Likewise.
986
509971ae
SM
9872020-07-12 Simon Marchi <simon.marchi@efficios.com>
988
989 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
990 callers to use the equivalent accessor methods.
991
107406b7
SM
9922020-07-12 Simon Marchi <simon.marchi@efficios.com>
993
994 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
995 (struct type) <bit_stride>: New method.
996 (TYPE_BIT_STRIDE): Remove.
997 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
998
bb789949
SM
9992020-07-12 Simon Marchi <simon.marchi@efficios.com>
1000
1001 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
1002 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
1003 callers to use the equivalent accessor methods instead.
1004
39498edb
SM
10052020-07-12 Simon Marchi <simon.marchi@efficios.com>
1006
1007 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
1008 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
1009 callers to use the equivalent accessor methods instead.
1010
3b606f38
SM
10112020-07-12 Simon Marchi <simon.marchi@efficios.com>
1012
1013 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
1014 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
1015 to use dynamic_prop::kind.
1016
064d9cb9
SM
10172020-07-12 Simon Marchi <simon.marchi@efficios.com>
1018
1019 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
1020 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
1021 to get the bound property's kind and check against
1022 PROP_UNDEFINED.
1023
5537ddd0
SM
10242020-07-12 Simon Marchi <simon.marchi@efficios.com>
1025
1026 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
1027 all callers to use type::range_bounds followed by
1028 dynamic_prop::{low,high}.
1029
8c2e4e06
SM
10302020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1031
1032 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
1033 const_val, set_const_val, baton, set_locexpr, set_loclist,
1034 set_addr_offset, variant_parts, set_variant_parts,
1035 original_type, set_original_type>: New methods.
1036 <kind>: Rename to...
1037 <m_kind>: ... this. Update all users to use the new methods
1038 instead.
1039 <data>: Rename to...
1040 <m_data>: ... this. Update all users to use the new methods
1041 instead.
1042
7c6f2712
SM
10432020-07-12 Simon Marchi <simon.marchi@efficios.com>
1044
1045 * gdbtypes.c (get_discrete_bounds): Return failure if
1046 the range type's bounds are not both defined and constant
1047 values.
1048 (get_array_bounds): Update comment. Remove undefined bound check.
1049
599088e3
SM
10502020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
1051
1052 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
1053 the type::bounds method directly.
1054
c4dfcb36
SM
10552020-07-12 Simon Marchi <simon.marchi@efficios.com>
1056
1057 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
1058 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
1059 are used to set the range type's bounds to use set_bounds.
1060
0a278aa7
PW
10612020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1062
1063 * exec.c (_initialize_exec): Update exec-file-mismatch help.
1064
cce20f10
PA
10652020-07-10 Pedro Alves <pedro@palves.net>
1066
1067 * gdbthread.h (inferior_ref): Define.
1068 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
1069 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
1070 * thread.c
1071 (scoped_restore_current_thread::restore):
1072 Adjust to gdb::ref_ptr.
1073 (scoped_restore_current_thread::~scoped_restore_current_thread):
1074 Remove manual decref handling.
1075 (scoped_restore_current_thread::scoped_restore_current_thread):
1076 Adjust to use
1077 inferior_ref::new_reference/thread_info_ref::new_reference.
1078 Incref the thread before calling get_frame_id instead of after.
1079 Let TARGET_CLOSE_ERROR propagate.
1080
6d7aa592
PA
10812020-07-10 Pedro Alves <pedro@palves.net>
1082
1083 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
1084 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
1085 NOT_AVAILABLE_ERROR.
1086 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
1087 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
1088
b3e3a4c1
SM
10892020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
1090 Pedro Alves <pedro@palves.net>
1091
1092 PR gdb/26199
1093 * infrun.c (threads_are_resumed_pending_p): Delete.
1094 (do_target_wait): Remove threads_are_executing and
1095 threads_are_resumed_pending_p checks from the inferior_matches
1096 lambda. Update comments.
1097
d6cc5d98
PA
10982020-07-10 Pedro Alves <pedro@palves.net>
1099
1100 PR gdb/26199
1101 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
1102 executing threads.
1103
7d3badc6
PA
11042020-07-10 Pedro Alves <pedro@palves.net>
1105
1106 PR gdb/26199
1107 * infrun.c (handle_no_resumed): Handle multiple targets.
1108
42bd97a6
PA
11092020-07-10 Pedro Alves <pedro@palves.net>
1110
1111 PR gdb/26199
1112 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
1113 target_is_async_p.
1114
43667cc6
PA
11152020-07-10 Pedro Alves <pedro@palves.net>
1116
1117 PR gdb/26199
1118 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
1119 threads, not all threads.
1120
96118d11
PA
11212020-07-10 Pedro Alves <pedro@palves.net>
1122
1123 PR gdb/26199
1124 * remote.c (remote_target::open_1): Pass remote target pointer as
1125 data to create_async_event_handler.
1126 (remote_async_inferior_event_handler): Mark async event handler
1127 before returning if the remote target still has either pending
1128 events or unacknowledged notifications.
1129
54904d81
JB
11302020-07-10 John Baldwin <jhb@FreeBSD.org>
1131
1132 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
1133 declaration.
1134 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
1135 function.
1136
f37e5866
JB
11372020-07-09 John Baldwin <jhb@FreeBSD.org>
1138
1139 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
1140 inferior_ptid.
1141
fc238d4a
JB
11422020-07-09 John Baldwin <jhb@FreeBSD.org>
1143
1144 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
1145 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
1146 AT_FREEBSD_PS_STRINGS.
1147
6e2469ff
HD
11482020-07-08 Hannes Domani <ssbssa@yahoo.de>
1149
1150 * auto-load.c (auto_load_objfile_script_1): Convert drive part
1151 of debugfile path on Windows.
1152
d1076c41
JB
11532020-07-08 John Baldwin <jhb@FreeBSD.org>
1154
1155 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
1156 argument to 'data'.
1157
15f3b077
TT
11582020-07-08 Tom Tromey <tromey@adacore.com>
1159
1160 * ada-lang.c (ada_exception_message_1): Use read_memory.
1161
9fc501fd
AB
11622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1163
1164 PR python/22748
1165 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
1166 special handling for inline frames.
1167 * findvar.c (value_of_register_lazy): Skip inline frames when
1168 creating lazy register values.
1169 * frame.c (frame_id_computed_p): Delete definition.
1170 * frame.h (frame_id_computed_p): Delete declaration.
1171
64cb3757
AB
11722020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * NEWS: Mention additions to Python API.
1175 * python/py-arch.c (archpy_register_groups): New function.
1176 (arch_object_methods): Add 'register_groups' method.
1177 * python/py-registers.c (reggroup_iterator_object): New struct.
1178 (reggroup_object): New struct.
1179 (gdbpy_new_reggroup): New function.
1180 (gdbpy_reggroup_to_string): New function.
1181 (gdbpy_reggroup_name): New function.
1182 (gdbpy_reggroup_iter): New function.
1183 (gdbpy_reggroup_iter_next): New function.
1184 (gdbpy_new_reggroup_iterator): New function
1185 (gdbpy_initialize_registers): Register new types.
1186 (reggroup_iterator_object_type): Define new Python type.
1187 (gdbpy_reggroup_getset): New static global.
1188 (reggroup_object_type): Define new Python type.
1189 * python/python-internal.h
1190
0f767f94
AB
11912020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1192
1193 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
1194 * python/py-arch.c (archpy_registers): New function.
1195 (arch_object_methods): Add 'registers' method.
1196 * python/py-registers.c: New file.
1197 * python/python-internal.h
1198 (gdbpy_new_register_descriptor_iterator): Declare.
1199 (gdbpy_initialize_registers): Declare.
1200 * python/python.c (do_start_initialization): Call
1201 gdbpy_initialize_registers.
1202 * NEWS: Mention additions to the Python API.
1203
87dbc774
AB
12042020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1205
1206 * NEWS: Mention new Python API method.
1207 * python/py-unwind.c (pending_framepy_architecture): New function.
1208 (pending_frame_object_methods): Add architecture method.
1209
3bc98c0c
AB
12102020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
1211
1212 * gdbarch.c: Regenerate.
1213 * gdbarch.h: Regenerate.
1214 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
1215 (gdbarch_data): Use internal_error for the case where
1216 deprecated_set_gdbarch_data was originally needed.
1217 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
1218 and use passed in obstack.
1219 (libunwind_frame_set_descr): Should no longer get back NULL from
1220 gdbarch_data.
1221 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
1222 type.
1223 * user-regs.c (user_regs_init): Update parameters, and use passed
1224 in obstack.
1225 (user_reg_add): Should no longer get back NULL from gdbarch_data.
1226 (_initialize_user_regs): Register as a pre-init gdbarch data type.
1227
d8cc8af6
TV
12282020-07-06 Tom de Vries <tdevries@suse.de>
1229
1230 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
1231 End-Of-Sequence in lte_is_less_than.
1232 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
1233 "gdb: Don't reorder line table entries too much when sorting".
1234
947f7597
TV
12352020-07-06 Tom de Vries <tdevries@suse.de>
1236
1237 PR tui/26205
1238 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
1239
1e7c1b22
TV
12402020-07-05 Tom de Vries <tdevries@suse.de>
1241
1242 PR build/26187
1243 * inferior.h (struct infcall_suspend_state_deleter): If available, use
1244 std::uncaught_exceptions instead of deprecated
1245 std::uncaught_exception.
1246
a36158ec
SM
12472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1248
1249 * macroexp.h (macro_stringify): Return
1250 gdb::unique_xmalloc_ptr<char>.
1251 * macroexp.c (macro_stringify): Likewise.
1252 * macrotab.c (fixup_definition): Update.
1253
14d960c8
SM
12542020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1255
1256 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
1257 (lex_one_token): Update.
1258 * macroexp.c (struct macro_buffer) <release>: Return
1259 gdb::unique_xmalloc_ptr<char>.
1260 (macro_stringify): Update.
1261 (macro_expand): Update.
1262 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
1263 * macroexp.h (macro_expand_next): Likewise.
1264
211d5b1c
SM
12652020-07-02 Simon Marchi <simon.marchi@efficios.com>
1266
1267 * macroexp.h (macro_lookup_ftype): Remove.
1268 (macro_expand, macro_expand_once, macro_expand_next): Remove
1269 lookup function parameters, add scope parameter.
1270 * macroexp.c (scan, substitute_args, expand, maybe_expand,
1271 macro_expand, macro_expand_once, macro_expand_next): Likewise.
1272 * macroscope.h (standard_macro_lookup): Change parameter type
1273 to macro_scope.
1274 * macroscope.c (standard_macro_lookup): Likewise.
1275 * c-exp.y (lex_one_token): Update.
1276 * macrocmd.c (macro_expand_command): Likewise.
1277 (macro_expand_once_command): Likewise.
1278
b1a35af2
SM
12792020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
1280
1281 * inf-loop.c (inferior_event_handler): Remove client_data param.
1282 * inf-loop.h (inferior_event_handler): Likewise.
1283 * infcmd.c (step_1): Adjust.
1284 * infrun.c (proceed): Adjust.
1285 (fetch_inferior_event): Remove client_data param.
1286 (infrun_async_inferior_event_handler): Adjust.
1287 * infrun.h (fetch_inferior_event): Remove `void *` param.
1288 * linux-nat.c (handle_target_event): Adjust.
1289 * record-btrace.c (record_btrace_handle_async_inferior_event):
1290 Adjust.
1291 * record-full.c (record_full_async_inferior_event_handler):
1292 Adjust.
1293 * remote.c (remote_async_inferior_event_handler): Adjust.
1294
1cdf9e33
TT
12952020-07-01 Tom Tromey <tom@tromey.com>
1296
1297 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
1298 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
1299
32c1e210
TT
13002020-07-01 Tom Tromey <tom@tromey.com>
1301
1302 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
1303 tui_gen_win_info.
1304 (tui_win_info::make_window): Merge with
1305 tui_gen_win_info::make_window.
1306 (tui_win_info::make_visible): Move from tui_gen_win_info.
1307 * tui/tui-win.c (tui_win_info::max_width): Move from
1308 tui_gen_win_info.
1309 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
1310 type.
1311 <window_factory>: Likewise.
1312 * tui/tui-layout.c (tui_win_info::resize): Move from
1313 tui_gen_win_info.
1314 (make_standard_window): Change return type.
1315 (get_locator_window, tui_get_window_by_name): Likewise.
1316 (tui_layout_window::apply): Remove a cast.
1317 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
1318 (struct tui_win_info): Merge with tui_gen_win_info.
1319 (struct tui_gen_win_info): Remove.
1320
a30cb6da
TT
13212020-07-01 Tom Tromey <tom@tromey.com>
1322
1323 * tui/tui-stack.h (struct tui_locator_window): Derive from
1324 tui_win_info.
1325 <do_scroll_horizontal, do_scroll_vertical>: New methods.
1326 <can_box>: New method.
1327
1eb2161f
TT
13282020-07-01 Tom Tromey <tom@tromey.com>
1329
1330 * tui/tui-stack.h (struct tui_locator_window): Remove body.
1331
7134f2eb
TT
13322020-07-01 Tom Tromey <tom@tromey.com>
1333
1334 * tui/tui-regs.c (tui_data_window::display_registers_from)
1335 (tui_data_window::display_registers_from)
1336 (tui_data_window::first_data_item_displayed)
1337 (tui_data_window::delete_data_content_windows): Update.
1338 (tui_data_window::refresh_window, tui_data_window::no_refresh):
1339 Remove.
1340 (tui_data_window::check_register_values): Update.
1341 (tui_data_item_window::rerender): Add parameters. Update.
1342 (tui_data_item_window::refresh_window): Remove.
1343 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
1344 virtual.
1345 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
1346 tui_gen_win_info.
1347 <refresh_window, max_height, min_height>: Remove.
1348 <rerender>: Add parameters.
1349 <x, y, visible>: New members.
1350 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
1351 <m_item_width>: New member.
1352
22b7b041
TT
13532020-07-01 Tom Tromey <tom@tromey.com>
1354
1355 * tui/tui-regs.c (tui_data_window::show_register_group)
1356 (tui_data_window::check_register_values): Update.
1357 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
1358 from item_no.
1359
c9753adb
TT
13602020-07-01 Tom Tromey <tom@tromey.com>
1361
1362 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
1363 useless "if".
1364
9ab26b4a
TT
13652020-07-01 Tom Tromey <tom@tromey.com>
1366
1367 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
1368 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
1369
e555083f
TT
13702020-07-01 Tom Tromey <tom@tromey.com>
1371
1372 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
1373 * tui/tui-winsource.h (enum tui_line_or_address_kind)
1374 (struct tui_line_or_address): Move from tui-data.h.
1375 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
1376 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
1377 (tui_cmd_window, tui_source_window_base, tui_source_window)
1378 (tui_disasm_window): Don't declare.
1379 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
1380 to tui-winsource.h.
1381 (SINGLE_KEY): Move to tui-stack.c.
1382
7a02bab7
TT
13832020-07-01 Tom Tromey <tom@tromey.com>
1384
1385 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
1386 std::string.
1387 * tui/tui-regs.c (class tab_expansion_file): New.
1388 (tab_expansion_file::write): New method.
1389 (tui_register_format): Change return type. Use
1390 tab_expansion_file.
1391 (tui_get_register, tui_data_window::display_registers_from)
1392 (tui_data_item_window::rerender): Update.
1393 * tui/tui-io.h (tui_expand_tabs): Don't declare.
1394 * tui/tui-io.c (tui_expand_tabs): Remove.
1395
ea68593b
TT
13962020-07-01 Tom Tromey <tom@tromey.com>
1397
1398 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
1399
a8caed5d
FS
14002020-07-01 Fangrui Song <maskray@google.com>
1401
1402 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
1403
9cdf9820
AKS
14042020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1405
1406 * dwarf2/read.c (set_die_type): Removed conditions to restrict
1407 forms for DW_AT_associated and DW_AT_allocated attributes,
1408 which is already checked in function attr_to_dynamic_prop.
1409
a1520ad8
TT
14102020-06-30 Tom Tromey <tromey@adacore.com>
1411
1412 * dwarf2/read.c (quirk_rust_enum): Correctly call
1413 alloc_rust_variant for default-less enum.
1414
5ac58899
TT
14152020-06-30 Tom Tromey <tromey@adacore.com>
1416
1417 PR build/26183:
1418 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
1419 gdb::to_string.
1420
19b187a9
SM
14212020-06-29 Simon Marchi <simon.marchi@efficios.com>
1422
1423 * gdbarch.sh (displaced_step_copy_insn): Update doc.
1424 * gdbarch.h: Re-generate.
1425
cd4c4c07
TT
14262020-06-28 Tom Tromey <tom@tromey.com>
1427
1428 * command.h (cmd_types): Remove.
1429 (cmd_type): Don't declare.
1430 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
1431 typedef.
1432 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
1433 * cli/cli-decode.c (cmd_type): Remove.
1434
05779d57
PA
14352020-06-27 Pedro Alves <palves@redhat.com>
1436
1437 * fork-child.c (prefork_hook): Adjust.
1438 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
1439 Delete.
1440 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
1441 * inferior.c (inferior::set_tty, inferior::tty): New methods.
1442 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
1443 Remove declarations.
1444 (struct inferior) <set_tty, tty>: New methods.
1445 (struct inferior) <terminal>: Rename to ...
1446 (struct inferior) <m_terminal>: ... this and make private.
1447 * main.c (captured_main_1): Adjust.
1448 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
1449 (mi_cmd_inferior_tty_show): Adjust.
1450 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
1451 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
1452
1776e3e5
NA
14532020-06-26 Nick Alcock <nick.alcock@oracle.com>
1454
1455 * configure.ac: Add --enable-libctf: handle --disable-static
1456 properly.
1457 * acinclude.m4: sinclude ../config/enable.m4.
1458 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
1459 (LIBCTF): Substitute in.
1460 (CTF_DEPS): New, likewise.
1461 (CLIBS): libctf needs symbols from libbfd: move earlier.
1462 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
1463 flags.
1464 * ctfread.c: Surround in ENABLE_LIBCTF.
1465 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
1466 * configure: Regenerate.
1467 * config.in: Likewise.
1468
58373b80
SM
14692020-06-25 Simon Marchi <simon.marchi@efficios.com>
1470
1471 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
1472
277474ee
SM
14732020-06-25 Simon Marchi <simon.marchi@efficios.com>
1474
1475 * inferior.h (struct inferior) <terminal>: Change type to
1476 gdb::unique_xmalloc_ptr<char>.
1477 * inferior.c (inferior::~inferior): Don't free inf->terminal.
1478 * infcmd.c (set_inferior_io_terminal): Don't free terminal
1479 field, adjust to unique pointer.
1480 (get_inferior_io_terminal): Adjust to unique pointer.
1481
6d74da72
AB
14822020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1483
1484 * riscv-tdep.c (riscv_print_registers_info): Loop over all
1485 registers, not just the known core set of registers.
1486
2e52d038
AB
14872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
1490 fflags, frm, and fcsr registers.
1491 (riscv_register_reggroup_p): Remove unknown CSRs from save and
1492 restore groups.
1493 (riscv_tdesc_unknown_reg): New function.
1494 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
1495 tdesc_use_registers.
1496 * riscv-tdep.h (struct gdbarch_tdep): Add
1497 unknown_csrs_first_regnum, unknown_csrs_count,
1498 duplicate_fflags_regnum, duplicate_frm_regnum, and
1499 duplicate_fcsr_regnum fields.
1500
be64fd07
AB
15012020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1502
1503 * target-descriptions.c (tdesc_use_registers): Add new parameter a
1504 callback, use the callback (when not null) to help number unknown
1505 registers.
1506 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
1507 (tdesc_use_registers): Add extra parameter to declaration.
1508
3b9fce96
AB
15092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1510
1511 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
1512 in the file.
1513 (class riscv_pending_register_alias): Likewise.
1514 (riscv_register_feature::register_info): Change 'required_p' field
1515 to 'required', and change its type. Add 'check' member function.
1516 (riscv_register_feature::register_info::check): Define new member
1517 function.
1518 (riscv_xreg_feature): Change initialisation of 'required' field.
1519 (riscv_freg_feature): Likewise.
1520 (riscv_virtual_feature): Likewise.
1521 (riscv_csr_feature): Likewise.
1522 (riscv_check_tdesc_feature): Take extra parameter, the csr
1523 tdesc_feature, rewrite the function to use the new
1524 riscv_register_feature::register_info::check function.
1525 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
1526
865bad26
AB
15272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1528
1529 * features/Makefile: Remove all references to the deleted files
1530 below.
1531 * features/riscv/32bit-csr.c: Deleted.
1532 * features/riscv/32bit-csr.xml: Deleted.
1533 * features/riscv/64bit-csr.c: Deleted.
1534 * features/riscv/64bit-csr.xml: Deleted.
1535 * features/riscv/rebuild-csr-xml.sh: Deleted.
1536
ed69cbc8
AB
15372020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1538
1539 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
1540 whitespace error for declaration of names member variable.
1541 (struct riscv_register_feature): Add new prefer_first_name member
1542 variable, and fix whitespace error in declaration of registers.
1543 (riscv_xreg_feature): Initialize prefer_first_name field.
1544 (riscv_freg_feature): Likewise.
1545 (riscv_virtual_feature): Likewise.
1546 (riscv_csr_feature): Likewise.
1547 (riscv_register_name): Expand on comments. Remove register name
1548 modifications for CSR and virtual registers.
1549
4445e8f5
AB
15502020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1551
1552 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
1553 errors.
1554
767a879e
AB
15552020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
1556
1557 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
1558 riscv-opc.h.
1559 (class riscv_pending_register_alias): New class.
1560 (riscv_check_tdesc_feature): Take vector of pending aliases and
1561 populate it as appropriate.
1562 (riscv_setup_register_aliases): Delete.
1563 (riscv_gdbarch_init): Create vector of pending aliases and pass it
1564 to riscv_check_tdesc_feature in all cases. Use the vector to
1565 create the register aliases.
1566
bb6e55f3
RO
15672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1568
1569 * sol2-tdep.c (sol2_static_transform_name): Remove.
1570 (sol2_init_abi): Don't register it.
1571 * gdbarch.sh (static_transform_name): Remove.
1572 * gdbarch.c, gdbarch.h: Regenerate.
1573
1574 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
1575 gdbarch_static_transform_name.
1576 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
1577 * stabsread.c (define_symbol) <'X'>: Remove.
1578 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
1579 handling.
1580 <'V'>: Likewise.
1581 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
1582 <'S'>: Remove call to gdbarch_static_transform_name.
1583
c6d36836
RO
15842020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1585
1586 * procfs.c (procfs_pre_trace): New function.
1587 (procfs_target::create_inferior): Pass it to fork_inferior.
1588
a7e6196b
RO
15892020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1590
1591 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
1592 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
1593 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
1594 sol2-tdep.o, sparc-sol2-tdep.o.
1595 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
1596 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
1597 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
1598 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
1599
d412e696
RO
16002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1601
1602 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
1603 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
1604 Call sol2_init_abi.
1605 Remove calls to set_gdbarch_skip_solib_resolver,
1606 set_gdbarch_core_pid_to_str.
1607 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
1608 (i386_sol2_static_transform_name): Remove.
1609 (i386_sol2_init_abi): Call sol2_init_abi.
1610 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1611 set_gdbarch_static_transform_name,
1612 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1613 Use sol2_sigtramp_p.
1614 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
1615 (sol2_sigtramp_p): New function.
1616 (sol2_static_transform_name): New function.
1617 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
1618 (sol2_init_abi): New function.
1619 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
1620 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
1621 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
1622 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
1623 (sparc_sol2_static_transform_name): Remove.
1624 (sparc32_sol2_init_abi): Call sol2_init_abi.
1625 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1626 set_gdbarch_static_transform_name,
1627 set_gdbarch_skip_solib_resolver,
1628 set_gdbarch_core_pid_to_str.
1629 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
1630 (sparc_sol2_static_transform_name): Remove
1631 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
1632 call sol2_sigtramp_p.
1633 (sparc64_sol2_init_abi): Call sol2_init_abi.
1634 Remove calls to set_gdbarch_sofun_address_maybe_missing,
1635 set_gdbarch_static_transform_name,
1636 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
1637
a8654e7d
PW
16382020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1639
1640 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
1641 * exec.c (validate_exec_file): If from_tty, set both
1642 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
1643 * symfile.c (symbol_file_add_with_addrs): if always_confirm
1644 and from_tty, unconditionally ask a confirmation.
1645
caa7fd04
AB
16462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1647
1648 * target-descriptions.c (tdesc_architecture_name): Protect against
1649 NULL pointer dereference.
1650 (maint_print_xml_tdesc_cmd): New function.
1651 (_initialize_target_descriptions): Register new 'maint print
1652 xml-tdesc' command and give it the filename completer.
1653 * NEWS: Mention new 'maint print xml-tdesc' command.
1654
fbf42f4e
AB
16552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1656
1657 * target-descriptions.c (class tdesc_compatible_info): New class.
1658 (struct target_desc): Change type of compatible vector.
1659 (tdesc_compatible_p): Update for change in type of
1660 target_desc::compatible.
1661 (tdesc_compatible_info_list): New function.
1662 (tdesc_compatible_info_arch_name): New function.
1663 (tdesc_add_compatible): Update for change in type of
1664 target_desc::compatible.
1665 (print_c_tdesc::visit_pre): Likewise.
1666
20821f4e
AB
16672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1668
1669 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
1670 whitespace to underscore.
1671 (maint_print_c_tdesc_cmd): Use fake filename for target
1672 descriptions that came from the target.
1673 (_initialize_target_descriptions): Add filename command completion
1674 for 'maint print c-tdesc'.
1675
1fb5ee62
SM
16762020-06-23 Simon Marchi <simon.marchi@efficios.com>
1677
1678 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
1679 lines.
1680
fc3ecb3e
SM
16812020-06-23 Simon Marchi <simon.marchi@efficios.com>
1682
1683 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
1684 lines.
1685 (dwarf2_find_location_expression): Likewise.
1686 (call_site_parameter_matches): Likewise.
1687 (dwarf2_compile_expr_to_ax): Likewise.
1688 (disassemble_dwarf_expression): Likewise.
1689 (loclist_describe_location): Likewise.
1690
236ef034
PA
16912020-06-23 Pedro Alves <palves@redhat.com>
1692
1693 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
1694 progspace-and-thread.h. Include scoped-mock-context.h instead.
1695 (register_to_value_test): Use scoped_mock_context.
1696 * regcache.c: Include "scoped-mock-context.h".
1697 (cooked_read_test): Don't error out if a target is already pushed.
1698 Use scoped_mock_context. Adjust.
1699 * scoped-mock-context.h: New file.
1700
39e7ecca
AB
17012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1702
1703 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
1704 initializer.
1705 (ada_language::is_string_type_p): New member function.
1706 * c-lang.c (c_language_data): Delete la_is_string_type_p
1707 initializer.
1708 (cplus_language_data): Likewise.
1709 (asm_language_data): Likewise.
1710 (minimal_language_data): Likewise.
1711 * d-lang.c (d_language_data): Likewise.
1712 * f-lang.c (f_is_string_type_p): Delete function, implementation
1713 moved to f_language::is_string_type_p.
1714 (f_language_data): Delete la_is_string_type_p initializer.
1715 (f_language::is_string_type_p): New member function,
1716 implementation from f_is_string_type_p.
1717 * go-lang.c (go_is_string_type_p): Delete function, implementation
1718 moved to go_language::is_string_type_p.
1719 (go_language_data): Delete la_is_string_type_p initializer.
1720 (go_language::is_string_type_p): New member function,
1721 implementation from go_is_string_type_p.
1722 * language.c (language_defn::is_string_type_p): Define new member
1723 function.
1724 (default_is_string_type_p): Make static, add comment copied from
1725 header file.
1726 (unknown_language_data): Delete la_is_string_type_p initializer.
1727 (unknown_language::is_string_type_p): New member function.
1728 (auto_language_data): Delete la_is_string_type_p initializer.
1729 (auto_language::is_string_type_p): New member function.
1730 * language.h (language_data): Delete la_is_string_type_p field.
1731 (language_defn::is_string_type_p): Declare new function.
1732 (default_is_string_type_p): Delete desclaration, move comment to
1733 definition.
1734 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
1735 moved to m2_language::is_string_type_p.
1736 (m2_language_data): Delete la_is_string_type_p initializer.
1737 (m2_language::is_string_type_p): New member function,
1738 implementation from m2_is_string_type_p.
1739 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
1740 initializer.
1741 * opencl-lang.c (opencl_language_data): Likewise.
1742 * p-lang.c (pascal_is_string_type_p): Delete function,
1743 implementation moved to pascal_language::is_string_type_p.
1744 (pascal_language_data): Delete la_is_string_type_p initializer.
1745 (pascal_language::is_string_type_p): New member function,
1746 implementation from pascal_is_string_type_p.
1747 * rust-lang.c (rust_is_string_type_p): Delete function,
1748 implementation moved to rust_language::is_string_type_p.
1749 (rust_language_data): Delete la_is_string_type_p initializer.
1750 (rust_language::is_string_type_p): New member function,
1751 implementation from rust_is_string_type_p.
1752 * valprint.c (val_print_scalar_or_string_type_p): Update call to
1753 is_string_type_p.
1754
4ffc13fb
AB
17552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1756
1757 * ada-lang.c (ada_language_data): Delete la_print_typedef
1758 initializer.
1759 (ada_language::print_typedef): New member function.
1760 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
1761 (cplus_language_data): Likewise.
1762 (asm_language_data): Likewise.
1763 (minimal_language_data): Likewise.
1764 * d-lang.c (d_language_data): Likewise.
1765 * f-lang.c (f_language_data): Likewise.
1766 (f_language::print_typedef): New member function.
1767 * go-lang.c (go_language_data): Delete la_print_typedef
1768 initializer.
1769 * language.c (language_defn::print_typedef): Define member
1770 function.
1771 (unknown_language_data): Delete la_print_typedef initializer.
1772 (unknown_language::print_typedef): New member function.
1773 (auto_language_data): Delete la_print_typedef initializer.
1774 (auto_language::print_typedef): New member function.
1775 * language.h (language_data): Delete la_print_typedef field.
1776 (language_defn::print_typedef): Declare new member function.
1777 (LA_PRINT_TYPEDEF): Update call to print_typedef.
1778 (default_print_typedef): Delete declaration.
1779 * m2-lang.c (m2_language_data): Delete la_print_typedef
1780 initializer.
1781 (m2_language::print_typedef): New member function.
1782 * objc-lang.c (objc_language_data): Delete la_print_typedef
1783 initializer.
1784 * opencl-lang.c (opencl_language_data): Likewise.
1785 * p-lang.c (pascal_language_data): Likewise.
1786 (pascal_language::print_typedef): New member function.
1787 * rust-lang.c (rust_print_typedef): Delete function,
1788 implementation moved to rust_language::print_typedef.
1789 (rust_language): Delete la_print_typedef initializer.
1790 (rust_language::print_typedef): New member function,
1791 implementation from rust_print_typedef.
1792 * typeprint.c (default_print_typedef): Delete.
1793
d711ee67
AB
17942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
1797 (ada_language::printstr): New member function.
1798 * c-lang.c (c_language_data): Delete la_printstr initializer.
1799 (cplus_language_data): Likewise.
1800 (asm_language_data): Likewise.
1801 (minimal_language_data): Likewise.
1802 * d-lang.c (d_language_data): Likewise.
1803 * f-lang.c (f_printstr): Rename to f_language::printstr.
1804 (f_language_data): Delete la_printstr initializer.
1805 (f_language::printstr): New member function, implementation from
1806 f_printstr.
1807 * go-lang.c (go_language_data): Delete la_printstr initializer.
1808 * language.c (language_defn::printstr): Define new member
1809 function.
1810 (unk_lang_printstr): Delete.
1811 (unknown_language_data): Delete la_printstr initializer.
1812 (unknown_language::printstr): New member function.
1813 (auto_language_data): Delete la_printstr initializer.
1814 (auto_language::printstr): New member function.
1815 * language.h (language_data): Delete la_printstr field.
1816 (language_defn::printstr): Declare new member function.
1817 (LA_PRINT_STRING): Update call to printstr.
1818 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
1819 (m2_language_data): Delete la_printstr initializer.
1820 (m2_language::printstr): New member function, implementation from
1821 m2_printstr.
1822 * objc-lang.c (objc_language_data): Delete la_printstr
1823 initializer.
1824 * opencl-lang.c (opencl_language_data): Likewise.
1825 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
1826 (pascal_language_data): Delete la_printstr initializer.
1827 (pascal_language::printstr): New member function, implementation
1828 from pascal_printstr.
1829 * p-lang.h (pascal_printstr): Delete declaration.
1830 * rust-lang.c (rust_printstr): Update header comment.
1831 (rust_language_data): Delete la_printstr initializer.
1832 (rust_language::printstr): New member function.
1833
52b50f2c
AB
18342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
1837 (ada_language::printchar): New member function.
1838 * c-lang.c (c_language_data): Delete la_printchar initializer.
1839 (cplus_language_data): Likewise.
1840 (asm_language_data): Likewise.
1841 (minimal_language_data): Likewise.
1842 * d-lang.c (d_language_data): Likewise.
1843 * f-lang.c (f_printchar): Rename to f_language::printchar.
1844 (f_language_data): Delete la_printchar initializer.
1845 (f_language::printchar): New member function, implementation from
1846 f_printchar.
1847 * go-lang.c (go_language_data): Delete la_printchar initializer.
1848 * language.c (unk_lang_printchar): Delete.
1849 (language_defn::printchar): Define new member function.
1850 (unknown_language_data): Delete la_printchar initializer.
1851 (unknown_language::printchar): New member function.
1852 (auto_language_data): Delete la_printchar initializer.
1853 (auto_language::printchar): New member function.
1854 * language.h (language_data): Delete la_printchar field.
1855 (language_defn::printchar): Declare new member function.
1856 (LA_PRINT_CHAR): Update call to printchar.
1857 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
1858 (m2_language::printchar): New member function.
1859 * objc-lang.c (objc_language_data): Delete la_printchar
1860 initializer.
1861 * opencl-lang.c (opencl_language_data): Likewise.
1862 * p-lang.c (pascal_language_data): Delete la_printchar
1863 initializer.
1864 (pascal_language::printchar): New member function.
1865 * rust-lang.c (rust_printchar): Rename to
1866 rust_language::printchar.
1867 (rust_language_data): Delete la_printchar initializer.
1868 (rust_language::printchar): New member function, implementation
1869 from rust_printchar.
1870
ec8cec5b
AB
18712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1872
1873 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
1874 (ada_language_data): Delete la_emitchar initializer.
1875 (ada_language::emitchar): New member function, implementation from
1876 emit_char.
1877 * c-lang.c (c_language_data): Delete la_emitchar initializer.
1878 (cplus_language_data): Likewise.
1879 (asm_language_data): Likewise.
1880 (minimal_language_data): Likewise.
1881 * d-lang.c (d_language_data): Likewise.
1882 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
1883 (f_language_data): Delete la_emitchar initializer.
1884 (f_language::emitchar): New member function, implementation from
1885 f_emit_char.
1886 * go-lang.c (go_language_data): Delete la_emitchar initializer.
1887 * language.c (unk_lang_emit_char): Delete.
1888 (language_defn::emitchar): New member function definition.
1889 (unknown_language_data): Delete la_emitchar initializer.
1890 (unknown_language::emitchar): New member function.
1891 (auto_language_data): Delete la_emitchar initializer.
1892 (auto_language::emitchar): New member function.
1893 * language.h (language_data): Delete la_emitchar field.
1894 (language_defn::emitchar): New member field declaration.
1895 (LA_EMIT_CHAR): Update call to emitchar.
1896 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
1897 (m2_language_data): Delete la_emitchar initializer.
1898 (m2_language::emitchar): New member function, implementation from
1899 m2_emit_char.
1900 * objc-lang.c (objc_language_data): Delete la_emitchar
1901 initializer.
1902 * opencl-lang.c (opencl_language_data): Likewise.
1903 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
1904 (pascal_language_data): Delete la_emitchar initializer.
1905 (pascal_language::emitchar): New member function, implementation
1906 from pascal_emit_char.
1907 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
1908 (rust_language_data): Delete la_emitchar initializer.
1909 (rust_language::emitchar): New member function, implementation
1910 from rust_emitchar.
1911
1bf9c363
AB
19122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1913
1914 * ada-lang.c (resolve): Rename to ada_language::post_parser.
1915 (ada_language_data): Delete la_post_parser initializer.
1916 (ada_language::post_parser): New member function.
1917 * c-lang.c (c_language_data): Delete la_post_parser initializer.
1918 (cplus_language_data): Likewise.
1919 (asm_language_data): Likewise.
1920 (minimal_language_data): Likewise.
1921 * d-lang.c (d_language_data): Likewise.
1922 * f-lang.c (f_language_data): Likewise.
1923 * go-lang.c (go_language_data): Likewise.
1924 * language.c (unknown_language_data): Likewise.
1925 (auto_language_data): Likewise.
1926 * language.h (language_data): Delete la_post_parser field.
1927 (language_defn::post_parser): New member function.
1928 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
1929 * objc-lang.c (objc_language_data): Likewise.
1930 * opencl-lang.c (opencl_language_data): Likewise.
1931 * p-lang.c (pascal_language_data): Likewise.
1932 * parse.c (parse_exp_in_context): Update call to post_parser.
1933 (null_post_parser): Delete definition.
1934 * parser-defs.h (null_post_parser): Delete declaration.
1935 * rust-lang.c (rust_language_data): Delete la_post_parser
1936 initializer.
1937
87afa652
AB
19382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1939
1940 * ada-lang.c (parse): Rename to ada_language::parser.
1941 (ada_language_data): Delete la_parser initializer.
1942 (ada_language::parser): New member function, implementation from
1943 parse.
1944 * c-lang.c (c_language_data): Delete la_parser initializer.
1945 (cplus_language_data): Likewise.
1946 (asm_language_data): Likewise.
1947 (minimal_language_data): Likewise.
1948 * d-lang.c (d_language_data): Likewise.
1949 (d_language::parser): New member function.
1950 * f-lang.c (f_language_data): Delete la_parser initializer.
1951 (f_language::parser): New member function.
1952 * go-lang.c (go_language_data): Delete la_parser initializer.
1953 (go_language::parser): New member function.
1954 * language.c (unk_lang_parser): Delete.
1955 (language_defn::parser): Define new member function.
1956 (unknown_language_data): Delete la_parser initializer.
1957 (unknown_language::parser): New member function.
1958 (auto_language_data): Delete la_parser initializer.
1959 (auto_language::parser): New member function.
1960 * language.h (language_data): Delete la_parser field.
1961 (language_defn::parser): Declare new member function.
1962 * m2-lang.c (m2_language_data): Delete la_parser initializer.
1963 (m2_language::parser): New member function.
1964 * objc-lang.c (objc_language_data): Delete la_parser initializer.
1965 * opencl-lang.c (opencl_language_data): Likewise.
1966 * p-lang.c (pascal_language_data): Likewise.
1967 (pascal_language::parser): New member function.
1968 * parse.c (parse_exp_in_context): Update call to parser.
1969 * rust-lang.c (rust_language_data): Delete la_parser initializer.
1970 (rust_language::parser): New member function.
1971
37825800
AB
19722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
1973
1974 * top.c (print_gdb_configuration): Print --with-python-libdir
1975 configuration value.
1976
5b860c93
PW
19772020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1978
1979 * NEWS: Mention change to the alias command.
1980
cf00cd6f
PW
19812020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1982
1983 * cli/cli-cmds.c (lookup_cmd_for_default_args)
1984 (alias_command_completer)
1985 (make_alias_options_def_group): New functions.
1986 (alias_opts, alias_option_defs): New struct and array.
1987 (alias_usage_error): Update usage.
1988 (alias_command): Handles optional DEFAULT-ARGS... arguments.
1989 Use option framework.
1990 (_initialize_cli_cmds): Update alias command help.
1991 Update aliases command help.
1992 (show_user):
1993 Add NULL for new default_args lookup_cmd argument.
1994 (valid_command_p): Rename to validate_aliased_command.
1995 Add NULL for new default_args lookup_cmd argument. Verify that the
1996 aliased_command has no default args.
1997 * cli/cli-decode.c (help_cmd): Show aliases definitions.
1998 (lookup_cmd_1, lookup_cmd): New argument default_args.
1999 (add_alias_cmd):
2000 Add NULL for new default_args lookup_cmd argument.
2001 (print_help_for_command): Show default args under the layout
2002 alias some_alias = some_aliased_cmd some_alias_default_arg.
2003 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
2004 xfree default_args in destructor.
2005 * cli/cli-script.c (process_next_line, do_define_command):
2006 Add NULL for new default_args lookup_cmd argument.
2007 * command.h: Declare new default_args argument in lookup_cmd
2008 and lookup_cmd_1.
2009 * completer.c (complete_line_internal_1):
2010 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2011 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
2012 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
2013 Likewise.
2014 * infcmd.c (_initialize_infcmd): Likewise.
2015 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
2016 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
2017 * python/py-param.c (add_setshow_generic): Likewise.
2018 * remote.c (_initialize_remote): Likewise.
2019 * top.c (execute_command): Prepend default_args if command has some.
2020 (set_verbose):
2021 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2022 * tracepoint.c (validate_actionline, encode_actions_1):
2023 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
2024
bd920864
TBA
20252020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2026
2027 * jit.c (jit_read_descriptor): Use bool as the return type.
2028 (jit_breakpoint_re_set_internal): Use bool as the return type.
2029 Invert the return value logic; return true if the jit breakpoint
2030 has been successfully initialized.
2031 (jit_inferior_init): Update the call to
2032 jit_breakpoint_re_set_internal.
2033
f8098322
PA
20342020-06-22 Pedro Alves <palves@redhat.com>
2035
2036 PR gdb/25939
2037 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
2038 Use the current inferior instead. Don't return
2039 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
2040 wait again.
2041 * sol-thread.c (sol_thread_target::wait): Don't reference
2042 inferior_ptid.
2043 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
2044 (sol_update_thread_list_callback): Use the current inferior's pid
2045 instead of inferior_ptid.
2046
196535a6
RO
20472020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2048
2049 * procfs.c: Cleanup many comments.
2050
2051 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
2052 (AFTER_WATCHFLAG): Replace by value.
2053
2054 (MAIN_PROC_NAME_FORMAT): Inline ...
2055 (create_procinfo): ... here.
2056
2057 (procfs_debug_inferior): Remove SYS_exec handling.
2058 (syscall_is_exec): Likewise.
2059 (procfs_set_exec_trap): Likewise.
2060
2061 (syscall_is_lwp_exit): Inline in callers.
2062 (syscall_is_exit): Likewise.
2063 (syscall_is_exec): Likewise.
2064 (syscall_is_lwp_create): Likewise.
2065
2066 (invalidate_cache): Remove #if 0 code.
2067
2068 (make_signal_thread_runnable): Remove.
2069 (procfs_target::resume): Remove #if 0 code.
2070
cf6f3e86
RO
20712020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2072
2073 PR gdb/25939
2074 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
2075 call ...
2076 (procfs_target::create_inferior): ... here.
2077
48e9cc84
PW
20782020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2079
2080 * exec.c (validate_exec_file): Ensure the build-id is up to
2081 date by calling reopen_exec_file (that checks file timestamp
2082 to decide to re-read the file).
2083
3922b302
PA
20842020-06-18 Pedro Alves <palves@redhat.com>
2085
2086 PR gdb/25412
2087 * gdbthread.h (delete_thread, delete_thread_silent)
2088 (find_thread_ptid): Update comments.
2089 * thread.c (current_thread_): New global.
2090 (is_current_thread): Move higher, and reimplement.
2091 (inferior_thread): Reimplement.
2092 (set_thread_exited): Use bool. Add assertions.
2093 (add_thread_silent): Simplify thread-reuse handling by always
2094 calling delete_thread.
2095 (delete_thread): Remove intro comment.
2096 (find_thread_ptid): Skip exited threads.
2097 (switch_to_thread_no_regs): Write to current_thread_.
2098 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
2099 INFERIOR_PTID. Clear current_thread_.
2100
6dbdab44
PA
21012020-06-18 Pedro Alves <palves@redhat.com>
2102
2103 * aix-thread.c (pd_update): Use switch_to_thread.
2104
2da4b788
PA
21052020-06-18 Pedro Alves <palves@redhat.com>
2106
2107 * ravenscar-thread.c (ravenscar_thread_target): Update.
2108 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
2109 (ravenscar_thread_target::add_active_thread): ... this. Don't
2110 set m_base_ptid here. Update to avoid referencing inferior_ptid.
2111 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
2112
50838d1b
PA
21132020-06-18 Pedro Alves <palves@redhat.com>
2114
2115 * nat/windows-nat.c (current_windows_thread): Remove.
2116 * nat/windows-nat.h (current_windows_thread): Remove.
2117 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
2118 Adjust.
2119 (display_selectors): Adjust to fetch the current
2120 windows_thread_info based on inferior_ptid.
2121 (fake_create_process): No longer write to current_windows_thread.
2122 (windows_nat_target::get_windows_debug_event):
2123 Don't set inferior_ptid or current_windows_thread.
2124 (windows_nat_target::wait): Adjust to not rely on
2125 current_windows_thread.
2126 (do_initial_windows_stuff): Now a method of windows_nat_target.
2127 Switch to the last_ptid thread.
2128 (windows_nat_target::attach): Adjust.
2129 (windows_nat_target::detach): Use switch_to_no_thread instead of
2130 writing to inferior_ptid directly.
2131 (windows_nat_target::create_inferior): Adjust.
2132
31ce04e9
PA
21332020-06-18 Pedro Alves <palves@redhat.com>
2134
2135 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
2136
1ee1a363
PA
21372020-06-18 Pedro Alves <palves@redhat.com>
2138
2139 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
2140 after creating it, instead of writing to inferior_ptid. Don't
2141 write to inferior_ptid.
2142
6d350754
PA
21432020-06-18 Pedro Alves <palves@redhat.com>
2144
2145 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
2146
5d971d48
PA
21472020-06-18 Pedro Alves <palves@redhat.com>
2148
2149 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
2150 it, instead of writing to inferior_ptid.
2151
86e57d1b
PA
21522020-06-18 Pedro Alves <palves@redhat.com>
2153
2154 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
2155 to inferior_ptid.
2156
f2e1c129
PA
21572020-06-18 Pedro Alves <palves@redhat.com>
2158
2159 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
2160 instead of writing to inferior_ptid directly.
2161
60db1b85
PA
21622020-06-18 Pedro Alves <palves@redhat.com>
2163
2164 * corelow.c (core_target::close): Use switch_to_no_thread instead
2165 of writing to inferior_ptid directly.
2166 (add_to_thread_list, core_target_open): Use switch_to_thread
2167 instead of writing to inferior_ptid directly.
2168
fe7d6a8d
PA
21692020-06-18 Pedro Alves <palves@redhat.com>
2170
2171 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
2172 inferior_ptid.
2173 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
2174 inferior_ptid.
2175 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
2176 inferior_ptid directly.
2177 (darwin_nat_target::init_thread_list): Switch to thread, instead
2178 of writing to inferior_ptid.
2179 (darwin_nat_target::attach): Don't write to inferior_ptid.
2180 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
2181
975f8708
PA
21822020-06-18 Pedro Alves <palves@redhat.com>
2183
2184 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
2185 thread.
2186 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
2187 Instead use switch_to_thread.
2188 (gnu_nat_target::detach): Use switch_to_no_thread
2189 instead of writing to inferior_ptid directly. Used passed-in
2190 inferior instead of looking up the inferior by pid.
2191
1a204730
PA
21922020-06-18 Pedro Alves <palves@redhat.com>
2193
2194 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
2195 inferior_ptid.
2196
ebe84f23
PA
21972020-06-18 Pedro Alves <palves@redhat.com>
2198
2199 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
2200 inferior_ptid.
2201 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
2202 thread.
2203 (nto_procfs_target::detach): Avoid referencing
2204 inferior_ptid. Use switch_to_no_thread instead of writing to
2205 inferior_ptid directly.
2206 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
2207 instead of writing to inferior_ptid directly.
2208 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
2209 to thread.
2210
191f02e5
PA
22112020-06-18 Pedro Alves <palves@redhat.com>
2212
2213 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
2214 after creating it, instead of writing to inferior_ptid.
2215 (gdbsim_target_open): Use switch_to_no_thread instead of writing
2216 to inferior_ptid directly.
2217 (gdbsim_target::wait): Don't write to inferior_ptid.
2218
0ac55310
PA
22192020-06-18 Pedro Alves <palves@redhat.com>
2220
2221 * remote.c (remote_target::remote_notice_new_inferior): Use
2222 switch_to_thread instead of writing to inferior_ptid directly.
2223 (remote_target::add_current_inferior_and_thread): Use
2224 switch_to_no_thread instead of writing to inferior_ptid directly.
2225 (extended_remote_target::attach): Use switch_to_inferior_no_thread
2226 and switch_to_thread instead of using set_current_inferior or
2227 writing to inferior_ptid directly.
2228
5233f39b
PA
22292020-06-18 Pedro Alves <palves@redhat.com>
2230
2231 * tracectf.c (ctf_target_open): Switch to added thread instead of
2232 writing to inferior_ptid directly.
2233 (ctf_target::close): Use switch_to_no_thread instead of writing to
2234 inferior_ptid directly.
2235
087e161b
PA
22362020-06-18 Pedro Alves <palves@redhat.com>
2237
2238 * tracefile-tfile.c (tfile_target_open): Don't write to
2239 inferior_ptid directly, instead switch to added thread.
2240 (tfile_target::close): Use switch_to_no_thread instead of writing
2241 to inferior_ptid directly.
2242
7fb43e53
PA
22432020-06-18 Pedro Alves <palves@redhat.com>
2244
2245 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
2246 (procfs_target::detach): Use switch_to_no_thread
2247 instead of writing to inferior_ptid directly.
2248 (do_attach): Change return type to void. Switch to the added
2249 thread.
2250 (procfs_target::create_inferior): Switch to the added thread.
2251 (procfs_do_thread_registers): Don't write to inferior_ptid.
2252
18493a00
PA
22532020-06-18 Pedro Alves <palves@redhat.com>
2254
2255 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
2256 of writing to inferior_ptid.
2257 (scoped_restore_exited_inferior): Delete.
2258 (handle_vfork_child_exec_or_exit): Simplify using
2259 scoped_restore_current_pspace_and_thread. Use switch_to_thread
2260 instead of writing to inferior_ptid.
2261 (THREAD_STOPPED_BY): Delete.
2262 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
2263 (thread_stopped_by_hw_breakpoint): Delete.
2264 (save_waitstatus): Use
2265 scoped_restore_current_thread+switch_to_thread, and call
2266 target_stopped_by_watchpoint instead of
2267 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
2268 instead of thread_stopped_by_sw_breakpoint, and
2269 target_stopped_by_hw_breakpoint instead of
2270 thread_stopped_by_hw_breakpoint.
2271 (handle_inferior_event)
2272 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
2273 inferior_ptid directly, nor
2274 set_current_inferior/set_current_program_space. Use
2275 switch_to_thread / switch_to_inferior_no_thread instead.
2276
a0776b13
PA
22772020-06-18 Pedro Alves <palves@redhat.com>
2278
2279 * target.c (generic_mourn_inferior): Use switch_to_no_thread
2280 instead of writing to inferior_ptid.
2281
6155c136
PA
22822020-06-18 Pedro Alves <palves@redhat.com>
2283
2284 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
2285 added thread.
2286 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
2287 to the added thread.
2288 (inf_ptrace_target::detach_success): Use switch_to_no_thread
2289 instead of writing to inferior_ptid.
2290
c5316fc6
PA
22912020-06-18 Pedro Alves <palves@redhat.com>
2292
2293 * gdbarch-selftests.c: Include "progspace-and-thread.h".
2294 (register_to_value_test): Mock a program_space too. Heap-allocate
2295 the address space. Don't write to inferior_ptid. Use
2296 switch_to_thread instead.
2297
8df01799
PA
22982020-06-18 Pedro Alves <palves@redhat.com>
2299
2300 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
2301 Delete.
2302 (find_signalled_thread()): New, factored out from
2303 linux_make_corefile_notes and adjusted to handle exited threads.
2304 (linux_make_corefile_notes): Adjust to use the new
2305 find_signalled_thread.
2306
41792d68
PA
23072020-06-18 Pedro Alves <palves@redhat.com>
2308
2309 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
2310 of saving/restoring inferior_ptid.
2311
612f258a
TT
23122020-06-17 Tom Tromey <tom@tromey.com>
2313
2314 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
2315 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
2316 declare.
2317 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
2318
efb763a5
SM
23192020-06-15 Simon Marchi <simon.marchi@efficios.com>
2320
2321 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
2322 of partial symtabs.
2323
2951f6c0
SM
23242020-06-17 Simon Marchi <simon.marchi@efficios.com>
2325
2326 * regformats/reg-arm.dat: Remove.
2327 * regformats/reg-bfin.dat: Remove.
2328 * regformats/reg-cris.dat: Remove.
2329 * regformats/reg-crisv32.dat: Remove.
2330 * regformats/reg-m32r.dat: Remove.
2331 * regformats/reg-tilegx.dat: Remove.
2332 * regformats/reg-tilegx32.dat: Remove.
2333
7d458ea5
SM
23342020-06-17 Simon Marchi <simon.marchi@efficios.com>
2335
2336 * features/Makefile (WHICH): Remove arm files.
2337 * regformats/arm/arm-with-iwmmxt.dat: Remove.
2338 * regformats/arm/arm-with-neon.dat: Remove.
2339 * regformats/arm/arm-with-vfpv2.dat: Remove.
2340 * regformats/arm/arm-with-vfpv3.dat: Remove.
2341
3af96c0d
SM
23422020-06-17 Simon Marchi <simon.marchi@efficios.com>
2343
2344 * features/Makefile (XMLTOC): Remove rx.xml.
2345
b25e22fd
PA
23462020-06-17 Pedro Alves <palves@redhat.com>
2347
2348 * gdbthread.h (thread_control_state) <trap_expected> Update
2349 comments.
2350
a78a19b1
AB
23512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2352
2353 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
2354 ada_language::lookup_symbol_nonlocal.
2355 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
2356 (ada_language::lookup_symbol_nonlocal): New member function,
2357 implementation from ada_lookup_symbol_nonlocal.
2358 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
2359 initializer.
2360 (cplus_language_data): Delete la_lookup_symbol_nonlocal
2361 initializer.
2362 (cplus_language::lookup_symbol_nonlocal): New member function.
2363 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
2364 (minimal_language_data) Likewise.
2365 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
2366 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
2367 initializer.
2368 (d_language::lookup_symbol_nonlocal): New member function.
2369 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
2370 initializer.
2371 (f_language::lookup_symbol_nonlocal): New member function.
2372 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
2373 initializer.
2374 * language.c (unknown_language_data): Likewise.
2375 (auto_language_data): Likewise.
2376 * language.h (language_data): Delete la_lookup_symbol_nonlocal
2377 field.
2378 (language_defn::lookup_symbol_nonlocal): New member function.
2379 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
2380 initializer.
2381 * objc-lang.c (objc_language_data): Likewise.
2382 * opencl-lang.c (opencl_language_data): Likewise.
2383 * p-lang.c (pascal_language_data): Likewise.
2384 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
2385 rust_language::lookup_symbol_nonlocal.
2386 (rust_language_data): Delete la_lookup_symbol_nonlocal
2387 initializer.
2388 (rust_language::lookup_symbol_nonlocal): New member function,
2389 implementation from rust_lookup_symbol_nonlocal.
2390 * symtab.c (lookup_symbol_aux): Update call to
2391 lookup_symbol_nonlocal.
2392 (basic_lookup_symbol_nonlocal): Rename to...
2393 (language_defn::lookup_symbol_nonlocal): ...this, and update
2394 header comment. Remove language_defn parameter, and replace with
2395 uses of `this'.
2396 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
2397
ebe2334e
AB
23982020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2399
2400 * ada-lang.c (ada_language_data): Delete la_value_print_inner
2401 initializer.
2402 (ada_language::value_print_inner): New member function.
2403 * c-lang.c (c_language_data): Delete la_value_print_inner
2404 initializer.
2405 (cplus_language_data): Likewise.
2406 (asm_language_data): Likewise.
2407 (minimal_language_data): Likewise.
2408 * d-lang.c (d_language_data): Likewise.
2409 (d_language::value_print_inner): New member function.
2410 * f-lang.c (f_language_data): Delete la_value_print_inner
2411 initializer.
2412 (f_language::value_print_inner): New member function.
2413 * f-lang.h (f_value_print_innner): Rename to...
2414 (f_value_print_inner): ...this (note spelling of 'inner').
2415 * f-valprint.c (f_value_print_innner): Rename to...
2416 (f_value_print_inner): ...this (note spelling of 'inner').
2417 * go-lang.c (go_language_data): Delete la_value_print_inner
2418 initializer.
2419 (go_language::value_print_inner): New member function.
2420 * language.c (language_defn::value_print_inner): Define new member
2421 function.
2422 (unk_lang_value_print_inner): Delete.
2423 (unknown_language_data): Delete la_value_print_inner initializer.
2424 (unknown_language::value_print_inner): New member function.
2425 (auto_language_data): Delete la_value_print_inner initializer.
2426 (auto_language::value_print_inner): New member function.
2427 * language.h (language_data): Delete la_value_print_inner field.
2428 (language_defn::value_print_inner): Delcare new member function.
2429 * m2-lang.c (m2_language_data): Delete la_value_print_inner
2430 initializer.
2431 (m2_language::value_print_inner): New member function.
2432 * objc-lang.c (objc_language_data): Delete la_value_print_inner
2433 initializer.
2434 * opencl-lang.c (opencl_language_data): Likewise.
2435 * p-lang.c (pascal_language_data): Likewise.
2436 (pascal_language::value_print_inner): New member function.
2437 * rust-lang.c (rust_language_data): Delete la_value_print_inner
2438 initializer.
2439 (rust_language::value_print_inner): New member function.
2440 * valprint.c (do_val_print): Update call to value_print_inner.
2441
a1d1fa3e
AB
24422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2443
2444 * ada-lang.c (ada_language_data): Delete la_value_print
2445 initializer.
2446 (ada_language::value_print): New member function.
2447 * c-lang.c (c_language_data): Delete la_value_print initializer.
2448 (cplus_language_data): Likewise.
2449 (asm_language_data): Likewise.
2450 (minimal_language_data): Likewise.
2451 * d-lang.c (d_language_data): Likewise.
2452 * f-lang.c (f_language_data): Likewise.
2453 * go-lang.c (go_language_data): Likewise.
2454 * language.c (unk_lang_value_print): Delete.
2455 (language_defn::value_print): Define new member function.
2456 (unknown_language_data): Delete la_value_print initializer.
2457 (unknown_language::value_print): New member function.
2458 (auto_language_data): Delete la_value_print initializer.
2459 (auto_language::value_print): New member function.
2460 * language.h (language_data): Delete la_value_print field.
2461 (language_defn::value_print): Declare new member function.
2462 (LA_VALUE_PRINT): Update call to value_print.
2463 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
2464 * objc-lang.c (objc_language_data): Likewise.
2465 * opencl-lang.c (opencl_language_data): Likewise.
2466 * p-lang.c (pascal_language_data): Likewise.
2467 (pascal_language::value_print): New member function.
2468 * rust-lang.c (rust_language_data): Delete la_value_print
2469 initializer.
2470
f16a9f57
AB
24712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2472
2473 * ada-lang.c (ada_watch_location_expression): Rename to
2474 ada_language::watch_location_expression.
2475 (ada_language_data): Delete la_watch_location_expression
2476 initializer.
2477 (ada_language::watch_location_expression): New member function,
2478 implementation from ada_watch_location_expression.
2479 * breakpoint.c (watch_command_1): Update call to
2480 watch_location_expression.
2481 * c-lang.c (c_watch_location_expression): Rename to
2482 language_defn::watch_location_expression.
2483 (c_language_data): Delete la_watch_location_expression
2484 initializer.
2485 (cplus_language_data): Likewise.
2486 (asm_language_data): Likewise.
2487 (minimal_language_data): Likewise.
2488 * c-lang.h (c_watch_location_expression): Delete declaration.
2489 * d-lang.c (d_language_data): Delete la_watch_location_expression
2490 initializer.
2491 * f-lang.c (f_language_data): Likewise.
2492 * go-lang.c (go_language_data): Likewise.
2493 * language.c (language_defn::watch_location_expression): Member
2494 function implementation from c_watch_location_expression.
2495 (unknown_language_data): Delete la_watch_location_expression
2496 initializer.
2497 (auto_language_data): Likewise.
2498 * language.h (language_data): Delete la_watch_location_expression
2499 field.
2500 (language_defn::watch_location_expression): Declare new member
2501 function.
2502 * m2-lang.c (m2_language_data): Delete
2503 la_watch_location_expression initializer.
2504 * objc-lang.c (objc_language_data): Likewise.
2505 * opencl-lang.c (opencl_language_data): Likewise.
2506 * p-lang.c (pascal_language_data): Likewise.
2507 * rust-lang.c (rust_watch_location_expression): Rename to
2508 rust_language::watch_location_expression.
2509 (rust_language_data): Delete la_watch_location_expression
2510 initializer.
2511 (rust_language::watch_location_expression): New member function,
2512 implementation from rust_watch_location_expression.
2513
7e56227d
AB
25142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
2517 ada_language::collect_symbol_completion_matches.
2518 (ada_language_data): Delete la_collect_symbol_completion_matches
2519 initializer.
2520 (ada_language::collect_symbol_completion_matches): New member
2521 function, implementation from
2522 ada_collect_symbol_completion_matches.
2523 * c-lang.c (c_language_data): Delete
2524 la_collect_symbol_completion_matches initializer.
2525 (cplus_language_data): Likewise.
2526 (asm_language_data): Likewise.
2527 (minimal_language_data): Likewise.
2528 * d-lang.c (d_language_data): Likewise.
2529 * f-lang.c (f_collect_symbol_completion_matches): Rename to
2530 f_language::collect_symbol_completion_matches.
2531 (f_language_data): Delete la_collect_symbol_completion_matches
2532 initializer.
2533 (f_language::collect_symbol_completion_matches) New member
2534 function, implementation from f_collect_symbol_completion_matches.
2535 * go-lang.c (go_language_data): Delete
2536 la_collect_symbol_completion_matches initializer.
2537 * language.c (unknown_language_data): Likewise.
2538 (auto_language_data): Likewise.
2539 * language.h (language_data): Delete
2540 la_collect_symbol_completion_matches field.
2541 (language_defn::collect_symbol_completion_matches): New member
2542 function.
2543 * m2-lang.c (m2_language_data): Delete
2544 la_collect_symbol_completion_matches initializer.
2545 * objc-lang.c (objc_language_data): Likewise.
2546 * opencl-lang.c (opencl_language_data): Likewise.
2547 * p-lang.c (pascal_language_data): Likewise.
2548 * rust-lang.c (rust_language_data): Likewise.
2549 * symtab.c (default_collect_symbol_completion_matches): Delete.
2550 (collect_symbol_completion_matches): Update call to
2551 collect_symbol_completion_matches.
2552 (collect_symbol_completion_matches_type): Likewise.
2553 * symtab.h (default_collect_symbol_completion_matches): Delete
2554 declaration.
2555
53fc67f8
AB
25562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2557
2558 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
2559 (ada_language_data): Delete la_word_break_characters initializer.
2560 (ada_language::word_break_characters): New member function.
2561 * c-lang.c (c_language_data): Delete la_word_break_characters
2562 initializer.
2563 (cplus_language_data): Likewise.
2564 (asm_language_data): Likewise.
2565 (minimal_language_data): Likewise.
2566 * completer.c: Update global comment.
2567 (advance_to_expression_complete_word_point): Update call to
2568 word_break_characters.
2569 (complete_files_symbols): Likewise.
2570 (complete_line_internal_1): Likewise.
2571 (default_completer_handle_brkchars): Likewise.
2572 (skip_quoted_chars): Likewise.
2573 * d-lang.c (d_language_data): Delete la_word_break_characters
2574 initializer.
2575 * f-lang.c (f_word_break_characters): Delete.
2576 (f_language_data): Delete la_word_break_characters initializer.
2577 (f_language::word_break_characters): New member function.
2578 * go-lang.c (go_language_data): Delete la_word_break_characters
2579 initializer.
2580 * language.c (unknown_language_data): Likewise.
2581 (auto_language_data): Likewise.
2582 * language.h (default_word_break_characters): Move declaration to
2583 earlier in the file.
2584 (language_data): Delete la_word_break_characters field.
2585 (language_defn::word_break_characters): New member function.
2586 * m2-lang.c (m2_language_data): Delete la_word_break_characters
2587 initializer.
2588 * objc-lang.c (objc_language_data): Likewise.
2589 * opencl-lang.c (opencl_language_data): Likewise.
2590 * p-lang.c (pascal_language_data): Likewise.
2591 * rust-lang.c (rust_language_data): Likewise.
2592
c9debfb9
AB
25932020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
2596 (ada_language_data): Delete la_get_symbol_name_matcher
2597 initializer.
2598 (language_defn::get_symbol_name_matcher_inner): New member
2599 function.
2600 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
2601 initializer.
2602 (cplus_language_data): Likewise.
2603 (cplus_language::get_symbol_name_matcher_inner): New member
2604 function.
2605 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
2606 (minimal_language_data): Likewise.
2607 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
2608 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
2609 initializer.
2610 * dictionary.c (iter_match_first_hashed): Update call to
2611 get_symbol_name_matcher.
2612 (iter_match_next_hashed): Likewise.
2613 (iter_match_next_linear): Likewise.
2614 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
2615 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
2616 initializer.
2617 (f_language::get_symbol_name_matcher_inner): New member function.
2618 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
2619 initializer.
2620 * language.c (default_symbol_name_matcher): Update header comment,
2621 make static.
2622 (language_defn::get_symbol_name_matcher): New definition.
2623 (language_defn::get_symbol_name_matcher_inner): Likewise.
2624 (get_symbol_name_matcher): Delete.
2625 (unknown_language_data): Delete la_get_symbol_name_matcher
2626 initializer.
2627 (auto_language_data): Likewise.
2628 * language.h (language_data): Delete la_get_symbol_name_matcher
2629 field.
2630 (language_defn::get_symbol_name_matcher): New member function.
2631 (language_defn::get_symbol_name_matcher_inner): Likewise.
2632 (default_symbol_name_matcher): Delete declaration.
2633 * linespec.c (find_methods): Update call to
2634 get_symbol_name_matcher.
2635 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
2636 initializer.
2637 * minsyms.c (lookup_minimal_symbol): Update call to
2638 get_symbol_name_matcher.
2639 (iterate_over_minimal_symbols): Likewise.
2640 * objc-lang.c (objc_language_data): Delete
2641 la_get_symbol_name_matcher initializer.
2642 * opencl-lang.c (opencl_language_data): Likewise.
2643 * p-lang.c (pascal_language_data): Likewise.
2644 * psymtab.c (psymbol_name_matches): Update call to
2645 get_symbol_name_matcher.
2646 * rust-lang.c (rust_language_data): Delete
2647 la_get_symbol_name_matcher initializer.
2648 * symtab.c (symbol_matches_search_name): Update call to
2649 get_symbol_name_matcher.
2650 (compare_symbol_name): Likewise.
2651
9a49ad8c
AB
26522020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2653
2654 * ada-lang.c (ada_language_data): Delete la_compute_program
2655 initializer.
2656 * c-lang.c (c_language_data): Likewise.
2657 (c_language::compute_program): New member function.
2658 (cplus_language_data): Delete la_compute_program initializer.
2659 (cplus_language::compute_program): New member function.
2660 (asm_language_data): Delete la_compute_program initializer.
2661 (minimal_language_data): Likewise.
2662 * c-lang.h (c_compute_program): Update comment.
2663 (cplus_compute_program): Likewise.
2664 * compile/compile-c-support.c (c_compute_program): Likewise.
2665 (cplus_compute_program): Likewise.
2666 * compile/compile.c (compile_to_object): Update call to
2667 la_compute_program.
2668 * d-lang.c (d_language_data): Delete la_compute_program
2669 initializer.
2670 * f-lang.c (f_language_data): Likewise.
2671 * go-lang.c (go_language_data): Likewise.
2672 * language.c (unknown_language_data): Likewise.
2673 (auto_language_data): Likewise.
2674 * language.h (language_data): Delete la_compute_program field.
2675 (language_defn::compute_program): New member function.
2676 * m2-lang.c (m2_language_data): Delete la_compute_program
2677 initializer.
2678 * objc-lang.c (objc_language_data): Likewise.
2679 * opencl-lang.c (opencl_language_data): Likewise.
2680 * p-lang.c (pascal_language_data): Likewise.
2681 * rust-lang.c (rust_language_data): Likewise.
2682
eff93b4d
AB
26832020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
2684
2685 * ada-lang.c (ada_language_data) Delete
2686 la_class_name_from_physname initializer.
2687 * c-lang.c (c_language_data): Likewise.
2688 (cplus_language_data): Likewise.
2689 (cplus_language::class_name_from_physname): New member function.
2690 (asm_language_data): Delete la_class_name_from_physname
2691 initializer.
2692 (minimal_language_data): Likewise.
2693 * d-lang.c (d_language_data): Likewise.
2694 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
2695 method on language_defn class.
2696 (guess_full_die_structure_name): Likewise.
2697 * f-lang.c (f_language_data): Delete la_class_name_from_physname
2698 initializer.
2699 * go-lang.c (go_language_data): Likewise.
2700 * language.c (language_class_name_from_physname): Delete.
2701 (unk_lang_class_name): Delete.
2702 (unknown_language_data): Delete la_class_name_from_physname
2703 initializer.
2704 (auto_language_data): Likewise.
2705 * language.h (language_data): Delete la_class_name_from_physname
2706 field.
2707 (language_defn::class_name_from_physname): New function.
2708 (language_class_name_from_physname): Delete declaration.
2709 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
2710 initializer.
2711 * objc-lang.c (objc_language_data): Likewise.
2712 * opencl-lang.c (opencl_language_data): Likewise.
2713 * p-lang.c (pascal_language_data): Likewise.
2714 * rust-lang.c (rust_language_data): Likewise.
2715
de543742
TT
27162020-06-16 Tom Tromey <tom@tromey.com>
2717
2718 * tui/tui-data.h (STATUS_NAME): New macro.
2719 * tui/tui-layout.c (tui_remove_some_windows)
2720 (initialize_known_windows, tui_register_window)
2721 (tui_layout_split::remove_windows, initialize_layouts)
2722 (tui_new_layout_command): Don't use hard-coded window names.
2723
a350efd4
TT
27242020-06-16 Tom Tromey <tom@tromey.com>
2725
2726 PR tui/25348:
2727 * tui/tui.c (tui_ensure_readline_initialized): Rename from
2728 tui_initialize_readline. Only run once. Call rl_initialize.
2729 * tui/tui.h (tui_ensure_readline_initialized): Rename from
2730 tui_initialize_readline.
2731 * tui/tui-io.c (tui_setup_io): Call
2732 tui_ensure_readline_initialized.
2733 * tui/tui-interp.c (tui_interp::init): Update.
2734
39ec0490
TT
27352020-06-16 Tom Tromey <tom@tromey.com>
2736
2737 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
2738 Also preserve the status window.
2739
d2d1ea20
TT
27402020-06-16 Tom Tromey <tom@tromey.com>
2741
2742 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
2743 where m_window==nullptr.
2744
66920317
TT
27452020-06-15 Tom Tromey <tromey@adacore.com>
2746
2747 * windows-nat.c (windows_nat::handle_output_debug_string):
2748 Update.
2749 (windows_nat::handle_ms_vc_exception): Update.
2750 * target.h (target_read_string): Change API.
2751 * target.c (target_read_string): Change API.
2752 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
2753 Update.
2754 * solib-frv.c (frv_current_sos): Update.
2755 * solib-dsbt.c (dsbt_current_sos): Update.
2756 * solib-darwin.c (darwin_current_sos): Update.
2757 * linux-thread-db.c (inferior_has_bug): Update.
2758 * expprint.c (print_subexp_standard): Update.
2759 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
2760 (ada_exception_message_1): Update.
2761
a5d871dd
TT
27622020-06-15 Tom Tromey <tromey@adacore.com>
2763
2764 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
2765
670e35fa
TT
27662020-06-15 Tom Tromey <tromey@adacore.com>
2767
2768 * valprint.c (read_string): Update comment.
2769 * target.c (MIN): Remove.
2770 (target_read_string): Rewrite.
2771
f5272a3b
TT
27722020-06-15 Tom Tromey <tromey@adacore.com>
2773
2774 * corefile.c (read_memory_string): Remove.
2775 * ada-valprint.c (ada_value_print_ptr): Update.
2776 * ada-lang.h (ada_tag_name): Change return type.
2777 * ada-lang.c (type_from_tag): Update.
2778 (ada_tag_name_from_tsd): Change return type. Use
2779 target_read_string.
2780 (ada_tag_name): Likewise.
2781 * gdbcore.h (read_memory_string): Don't declare.
2782
2c074f49
HD
27832020-06-14 Hannes Domani <ssbssa@yahoo.de>
2784
2785 * symtab.c (rbreak_command): Ignore Windows drive colon.
2786
6a17d503
SM
27872020-06-12 Simon Marchi <simon.marchi@efficios.com>
2788
2789 * NEWS: Mention removed GDBserver host support.
2790
453c733f
NC
27912020-06-12 Nelson Chu <nelson.chu@sifive.com>
2792
2793 * features/riscv/rebuild-csr-xml.sh: Updated.
2794
2b4e6a3f
TT
27952020-06-11 Tom Tromey <tom@tromey.com>
2796
2797 PR gdb/18318:
2798 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
2799
4412332f
JG
28002020-06-09 Jonny Grant <jg@jguk.org>
28012020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
2802
2803 * main.c (captured_main_1): Don't print new line after help.
2804 (print_gdb_help): add mailing list and IRC channel information
2805 to --help. Add new lines between items in the footer. Remove
2806 quotes around bug url.
2807
2f33032a
KS
28082020-06-11 Keith Seitz <keiths@redhat.com>
2809
2810 PR gdb/21356
2811 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
2812 Resolve typedefs for type length calculations.
2813
7ab96794
TV
28142020-06-10 Tom de Vries <tdevries@suse.de>
2815
2816 PR ada/24713
2817 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
2818 (write_psymbols): Enable .gdb_index for ada.
2819 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
2820 ada.
2821
e5f3ece2
TV
28222020-06-10 Tom de Vries <tdevries@suse.de>
2823
2824 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
2825 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
2826 namei" instead of "const char *name" argument.
2827 (dw2_map_matching_symbols): Use "offset_type namei" variant of
2828 dw2_symtab_iter_init.
2829
940da03e
SM
28302020-06-08 Simon Marchi <simon.marchi@efficios.com>
2831
2832 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
2833 to use type::field and field::type instead.
2834
b6cdac4b
SM
28352020-06-08 Simon Marchi <simon.marchi@efficios.com>
2836
2837 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
2838 to use field::type instead.
2839
5d14b6e5
SM
28402020-06-08 Simon Marchi <simon.marchi@efficios.com>
2841
2842 * gdbtypes.h (struct field) <type, set_type>: New methods.
2843 Rename `type` field to...
2844 <m_type>: ... this. Change references throughout to use type or
2845 set_type methods.
2846 (FIELD_TYPE): Use field::type. Change call sites that modify
2847 the field's type to use field::set_type instead.
2848
3d967001
SM
28492020-06-08 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
2852 to use type::index_type instead.
2853
262abc0d
SM
28542020-06-08 Simon Marchi <simon.marchi@efficios.com>
2855
2856 * gdbtypes.h (struct type) <index_type, set_index_type>: New
2857 methods.
2858 (TYPE_INDEX_TYPE): Use type::index_type.
2859 * gdbtypes.c (create_array_type_with_stride): Likewise.
2860
82836c92
TT
28612020-06-07 Tom Tromey <tom@tromey.com>
2862
2863 * valprint.c (generic_val_print_float): Remove "embedded_offset"
2864 parameter.
2865 (generic_value_print): Update.
2866
940dace9
AB
28672020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2868
2869 Revert commit 982a38f60b0.
2870 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
2871
982a38f6
AB
28722020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
2873
2874 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
2875 avoid use after free.
2876
82f06518
TV
28772020-06-05 Tom de Vries <tdevries@suse.de>
2878
2879 * NEWS: Fix typos.
2880
f8c41851
SM
28812020-06-04 Simon Marchi <simon.marchi@efficios.com>
2882
2883 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
2884 the per_bfd object.
2885 (dwarf2_read_debug_names): Likewise.
2886 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
2887 object when re-using a per_bfd object with an index.
2888
f9b5d5ea
TV
28892020-06-03 Tom de Vries <tdevries@suse.de>
2890
2891 PR symtab/26046
2892 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
2893 children for C++.
2894 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
2895 DW_TAG_subprogram.
2896
f6eee2d0
AB
28972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2898
2899 * ada-lang.c (ada_language_data): Delete skip_trampoline
2900 initializer.
2901 * c-lang.c (c_language_data): Likewise.
2902 (cplus_language_data): Likewise.
2903 (cplus_language::skip_trampoline): New member function.
2904 (asm_language_data): Delete skip_trampoline initializer.
2905 (minimal_language_data): Likewise.
2906 * d-lang.c (d_language_data): Likewise.
2907 * f-lang.c (f_language_data): Likewise.
2908 * go-lang.c (go_language_data): Likewise.
2909 * language.c (unk_lang_trampoline): Delete function.
2910 (skip_language_trampoline): Update.
2911 (unknown_language_data): Delete skip_trampoline initializer.
2912 (auto_language_data): Likewise.
2913 * language.h (language_data): Delete skip_trampoline field.
2914 (language_defn::skip_trampoline): New function.
2915 * m2-lang.c (m2_language_data): Delete skip_trampoline
2916 initializer.
2917 * objc-lang.c (objc_skip_trampoline): Delete function, move
2918 implementation to objc_language::skip_trampoline.
2919 (objc_language_data): Delete skip_trampoline initializer.
2920 (objc_language::skip_trampoline): New member function with
2921 implementation from objc_skip_trampoline.
2922 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
2923 initializer.
2924 * p-lang.c (pascal_language_data): Likewise.
2925 * rust-lang.c (rust_language_data): Likewise.
2926
0a50df5d
AB
29272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2928
2929 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
2930 (ada_language::demangle): New member function.
2931 * c-lang.c (c_language_data): Delete la_demangle initializer.
2932 (cplus_language_data): Delete la_demangle initializer.
2933 (cplus_language::demangle): New member function.
2934 (asm_language_data): Delete la_demangle initializer.
2935 (minimal_language_data): Delete la_demangle initializer.
2936 * d-lang.c (d_language_data): Delete la_demangle initializer.
2937 (d_language::demangle): New member function.
2938 * f-lang.c (f_language_data): Delete la_demangle initializer.
2939 (f_language::demangle): New member function.
2940 * go-lang.c (go_language_data): Delete la_demangle initializer.
2941 (go_language::demangle): New member function.
2942 * language.c (language_demangle): Update.
2943 (unk_lang_demangle): Delete.
2944 (unknown_language_data): Delete la_demangle initializer.
2945 (unknown_language::demangle): New member function.
2946 (auto_language_data): Delete la_demangle initializer.
2947 (auto_language::demangle): New member function.
2948 * language.h (language_data): Delete la_demangle field.
2949 (language_defn::demangle): New function.
2950 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
2951 * objc-lang.c (objc_language_data): Delete la_demangle
2952 initializer.
2953 (objc_language::demangle): New member function.
2954 * opencl-lang.c (opencl_language_data): Delete la_demangle
2955 initializer.
2956 * p-lang.c (pascal_language_data): Likewise.
2957 * rust-lang.c (rust_language_data): Likewise.
2958 (rust_language::demangle): New member function.
2959
fbfb0a46
AB
29602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
2961
2962 * ada-lang.c (ada_language_data): Delete la_print_type
2963 initializer.
2964 (ada_language::print_type): New member function.
2965 * c-lang.c (c_language_data): Delete la_print_type initializer.
2966 (c_language::print_type): New member function.
2967 (cplus_language_data): Delete la_print_type initializer.
2968 (cplus_language::print_type): New member function.
2969 (asm_language_data): Delete la_print_type initializer.
2970 (asm_language::print_type): New member function.
2971 (minimal_language_data): Delete la_print_type initializer.
2972 (minimal_language::print_type): New member function.
2973 * d-lang.c (d_language_data): Delete la_print_type initializer.
2974 (d_language::print_type): New member function.
2975 * f-lang.c (f_language_data): Delete la_print_type initializer.
2976 (f_language::print_type): New member function.
2977 * go-lang.c (go_language_data): Delete la_print_type initializer.
2978 (go_language::print_type): New member function.
2979 * language.c (unk_lang_print_type): Delete.
2980 (unknown_language_data): Delete la_print_type initializer.
2981 (unknown_language::print_type): New member function.
2982 (auto_language_data): Delete la_print_type initializer.
2983 (auto_language::print_type): New member function.
2984 * language.h (language_data): Delete la_print_type field.
2985 (language_defn::print_type): New function.
2986 (LA_PRINT_TYPE): Update.
2987 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
2988 (m2_language::print_type): New member function.
2989 * objc-lang.c (objc_language_data): Delete la_print_type
2990 initializer.
2991 (objc_language::print_type): New member function.
2992 * opencl-lang.c (opencl_print_type): Delete, implementation moved
2993 to opencl_language::print_type.
2994 (opencl_language_data): Delete la_print_type initializer.
2995 (opencl_language::print_type): New member function, implementation
2996 from opencl_print_type.
2997 * p-lang.c (pascal_language_data): Delete la_print_type
2998 initializer.
2999 (pascal_language::print_type): New member function.
3000 * rust-lang.c (rust_print_type): Delete, implementation moved to
3001 rust_language::print_type.
3002 (rust_language_data): Delete la_print_type initializer.
3003 (rust_language::print_type): New member function, implementation
3004 from rust_print_type.
3005
6f827019
AB
30062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3007
3008 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
3009 implementation moves to...
3010 (ada_language::sniff_from_mangled_name): ...here. Update return
3011 type.
3012 (ada_language_data): Delete la_sniff_from_mangled_name
3013 initializer.
3014 * c-lang.c (c_language_data): Likewise.
3015 (cplus_language_data): Likewise.
3016 (cplus_language::sniff_from_mangled_name): New member function,
3017 implementation taken from gdb_sniff_from_mangled_name.
3018 (asm_language_data): Delete la_sniff_from_mangled_name
3019 initializer.
3020 (minimal_language_data): Likewise.
3021 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
3022 implementation moves to cplus_language::sniff_from_mangled_name.
3023 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
3024 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
3025 moves to...
3026 (d_language::sniff_from_mangled_name): ...here.
3027 (d_language_data): Delete la_sniff_from_mangled_name initializer.
3028 * f-lang.c (f_language_data): Likewise.
3029 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
3030 moves to...
3031 (go_language::sniff_from_mangled_name): ...here.
3032 (go_language_data): Delete la_sniff_from_mangled_name initializer.
3033 * language.c (language_sniff_from_mangled_name): Delete.
3034 (unknown_language_data): Delete la_sniff_from_mangled_name
3035 initializer.
3036 (auto_language_data): Likewise.
3037 * language.h (language_data): Delete la_sniff_from_mangled_name
3038 field.
3039 (language_defn::sniff_from_mangled_name): New function.
3040 (language_sniff_from_mangled_name): Delete declaration.
3041 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
3042 field.
3043 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
3044 implementation moves to...
3045 (objc_language::sniff_from_mangled_name): ...here.
3046 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
3047 * opencl-lang.c (opencl_language_data): Likewise.
3048 * p-lang.c (pascal_language_data): Likewise.
3049 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
3050 implementation moves to...
3051 (rust_language::sniff_from_mangled_name): ...here.
3052 (rust_language_data): Delete la_sniff_from_mangled_name
3053 initializer.
3054 * symtab.c (symbol_find_demangled_name): Call
3055 sniff_from_mangled_name member function.
3056
fb8006fd
AB
30572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3058
3059 * ada-lang.c (ada_language_data): Delete la_search_name_hash
3060 initializer.
3061 * c-lang.c (c_language_data): Likewise.
3062 (cplus_language_data): Likewise.
3063 (cplus_language::search_name_hash): New member function.
3064 (asm_language_data): Delete la_search_name_hash initializer.
3065 (minimal_language_data): Likewise.
3066 * d-lang.c (d_language_data): Likewise.
3067 * dictionary.c (default_search_name_hash): Rename to...
3068 (language_defn::search_name_hash): ...this.
3069 * f-lang.c (f_language_data): Likewise.
3070 (f_language::search_name_hash): New member function.
3071 * go-lang.c (go_language_data): Delete la_search_name_hash
3072 initializer.
3073 * language.c (unknown_language_data): Likewise.
3074 (auto_language_data): Likewise.
3075 * language.h (struct language_data): Delete la_search_name_hash
3076 field.
3077 (language_defn::search_name_hash): Declare new member function.
3078 (default_search_name_hash): Delete declaration.
3079 * m2-lang.c (m2_language_data): Delete la_search_name_hash
3080 initializer.
3081 * objc-lang.c (objc_language_data): Likewise.
3082 * opencl-lang.c (opencl_language_data): Likewise.
3083 * p-lang.c (pascal_language_data): Likewise.
3084 * rust-lang.c (rust_language_data): Likewise.
3085 * symtab.c (search_name_hash): Update call.
3086
8e25bafe
AB
30872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
3090 initializer.
3091 * c-lang.c (class compile_instance): Declare.
3092 (c_language_data): Delete la_get_compile_instance initializer.
3093 (c_language::get_compile_instance): New member function.
3094 (cplus_language_data): Delete la_get_compile_instance initializer.
3095 (cplus_language::get_compile_instance): New member function.
3096 (asm_language_data): Delete la_get_compile_instance initializer.
3097 (minimal_language_data): Likewise.
3098 * c-lang.h (c_get_compile_context): Update comment.
3099 (cplus_get_compile_context): Update comment.
3100 * compile/compile.c (compile_to_object): Update calls, don't rely
3101 on function pointer being NULL.
3102 * d-lang.c (d_language_data): Delete la_get_compile_instance
3103 initializer.
3104 * f-lang.c (f_language_data): Likewise.
3105 * go-lang.c (go_language_data): Likewise.
3106 * language.c (unknown_language_data): Likewise.
3107 (auto_language_data): Likewise.
3108 * language.h (language_data): Delete la_get_compile_instance field.
3109 (language_defn::get_compile_instance): New member function.
3110 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
3111 initializer.
3112 * objc-lang.c (objc_language_data): Likewise.
3113 * opencl-lang.c (opencl_language_data): Likewise.
3114 * p-lang.c (pascal_language_data): Likewise.
3115 * rust-lang.c (rust_language_data): Likewise.
3116
4009ee92
AB
31172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3118
3119 * ada-lang.c (ada_add_all_symbols): Update comment.
3120 (ada_iterate_over_symbols): Delete, move implementation to...
3121 (ada_language::iterate_over_symbols): ...here, a new member
3122 function, rewrite to use range based for loop.
3123 (ada_language_data): Delete la_iterate_over_symbols initializer.
3124 * c-lang.c (c_language_data): Likewise.
3125 (cplus_language_data): Likewise.
3126 (asm_language_data): Likewise.
3127 (minimal_language_data): Likewise.
3128 * d-lang.c (d_language_data): Likewise.
3129 * f-lang.c (f_language_data): Likewise.
3130 * go-lang.c (go_language_data): Likewise.
3131 * language.c (unknown_language_data): Likewise.
3132 (auto_language_data): Likewise.
3133 * language.h (language_data): Delete la_iterate_over_symbols field.
3134 (language_defn::iterate_over_symbols): New member function.
3135 (LA_ITERATE_OVER_SYMBOLS): Update.
3136 * linespec.c (iterate_over_all_matching_symtabs): Update.
3137 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
3138 initializer.
3139 * objc-lang.c (objc_language_data): Likewise.
3140 * opencl-lang.c (opencl_language_data): Likewise.
3141 * p-lang.c (pascal_language_data): Likewise.
3142 * rust-lang.c (rust_language_data): Likewise.
3143
54f4ca46
AB
31442020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3145
3146 * ada-lang.c (ada_language_data): Delete
3147 la_lookup_transparent_type initializer.
3148 * c-lang.c (c_language_data): Likewise.
3149 (cplus_language_data): Likewise.
3150 (cplus_language::lookup_transparent_type): New member function.
3151 (asm_language_data): Delete la_lookup_transparent_type
3152 initializer.
3153 (minimal_language_data): Likewise.
3154 * d-lang.c (d_language_data): Likewise.
3155 * f-lang.c (f_language_data): Likewise.
3156 * go-lang.c (go_language_data): Likewise.
3157 * language.c (unknown_language_data): Likewise.
3158 (auto_language_data): Likewise.
3159 * language.h (struct language_data): Delete
3160 la_lookup_transparent_type field.
3161 (language_defn::lookup_transparent_type): New member function.
3162 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
3163 initializer.
3164 * objc-lang.c (objc_language_data): Likewise.
3165 * opencl-lang.c (opencl_language_data): Likewise.
3166 * p-lang.c (pascal_language_data): Likewise.
3167 * rust-lang.c (rust_language_data): Likewise.
3168 * symtab.c (symbol_matches_domain): Update call.
3169
1fb314aa
AB
31702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3171
3172 * ada-lang.c (ada_language_arch_info): Delete function, move
3173 implementation to...
3174 (ada_language::language_arch_info): ...here, a new member
3175 function.
3176 (ada_language_data): Delete la_language_arch_info.
3177 * c-lang.c (c_language_data): Likewise.
3178 (c_language::language_arch_info): New member function.
3179 (cplus_language_arch_info): Delete function, move
3180 implementation to...
3181 (cplus_language::language_arch_info): ...here, a new member
3182 function.
3183 (cplus_language_data): Delete la_language_arch_info.
3184 (asm_language_data): Likewise.
3185 (asm_language::language_arch_info): New member function.
3186 (minimal_language_data): Delete la_language_arch_info.
3187 (minimal_language::language_arch_info): New member function.
3188 * d-lang.c (d_language_arch_info): Delete function, move
3189 implementation to...
3190 (d_language::language_arch_info): ...here, a new member
3191 function.
3192 (d_language_data): Delete la_language_arch_info.
3193 * f-lang.c (f_language_arch_info): Delete function, move
3194 implementation to...
3195 (f_language::language_arch_info): ...here, a new member
3196 function.
3197 (f_language_data): Delete la_language_arch_info.
3198 * go-lang.c (go_language_arch_info): Delete function, move
3199 implementation to...
3200 (go_language::language_arch_info): ...here, a new member
3201 function.
3202 (go_language_data): Delete la_language_arch_info.
3203 * language.c (unknown_language_data): Likewise.
3204 (unknown_language::language_arch_info): New member function.
3205 (auto_language_data): Delete la_language_arch_info.
3206 (auto_language::language_arch_info): New member function.
3207 (language_gdbarch_post_init): Update call to
3208 la_language_arch_info.
3209 * language.h (language_data): Delete la_language_arch_info
3210 function pointer.
3211 (language_defn::language_arch_info): New function.
3212 * m2-lang.c (m2_language_arch_info): Delete function, move
3213 implementation to...
3214 (m2_language::language_arch_info): ...here, a new member
3215 function.
3216 (m2_language_data): Delete la_language_arch_info.
3217 * objc-lang.c (objc_language_arch_info): Delete function, move
3218 implementation to...
3219 (objc_language::language_arch_info): ...here, a new member
3220 function.
3221 (objc_language_data): Delete la_language_arch_info.
3222 * opencl-lang.c (opencl_language_arch_info): Delete function, move
3223 implementation to...
3224 (opencl_language::language_arch_info): ...here, a new member
3225 function.
3226 (opencl_language_data): Delete la_language_arch_info.
3227 * p-lang.c (pascal_language_arch_info): Delete function, move
3228 implementation to...
3229 (pascal_language::language_arch_info): ...here, a new member
3230 function.
3231 (pascal_language_data): Delete la_language_arch_info.
3232 * rust-lang.c (rust_language_arch_info): Delete function, move
3233 implementation to...
3234 (rust_language::language_arch_info): ...here, a new member
3235 function.
3236 (rust_language_data): Delete la_language_arch_info.
3237
48448202
AB
32382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3239
3240 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
3241 initializer.
3242 * c-lang.c (c_language_data): Likewise.
3243 (cplus_language_data): Likewise.
3244 (cplus_language::pass_by_reference_info): New method.
3245 (asm_language_data): Delete la_pass_by_reference initializer.
3246 (minimal_language_data): Likewise.
3247 * cp-abi.c (cp_pass_by_reference): Remove use of
3248 default_pass_by_reference.
3249 * d-lang.c (d_language_data): Likewise.
3250 * f-lang.c (f_language_data): Likewise.
3251 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
3252 default_pass_by_reference.
3253 * go-lang.c (go_language_data): Likewise.
3254 * language.c (language_pass_by_reference): Update.
3255 (default_pass_by_reference): Delete.
3256 (unknown_language_data): Delete la_pass_by_reference
3257 initializer.
3258 (auto_language_data): Likewise.
3259 * language.h (struct language_data): Delete la_pass_by_reference
3260 field.
3261 (language_defn::pass_by_reference_info): New member function.
3262 (default_pass_by_reference): Delete declaration.
3263 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
3264 initializer.
3265 * objc-lang.c (objc_language_data): Likewise.
3266 * opencl-lang.c (opencl_language_data): Likewise.
3267 * p-lang.c (pascal_language_data): Likewise.
3268 * rust-lang.c (rust_language_data): Likewise.
3269
15e5fd35
AB
32702020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3271
3272 * ada-lang.c (ada_read_var_value): Delete function, move
3273 implementation to...
3274 (ada_language::read_var_value): ...here.
3275 (ada_language_data): Delete la_read_var_value initializer.
3276 * c-lang.c (c_language_data): Likewise.
3277 (cplus_language_data): Likewise.
3278 (minimal_language_data): Likewise.
3279 * d-lang.c (d_language_data): Likewise.
3280 * f-lang.c (f_language_data): Likewise.
3281 * findvar.c (default_read_var_value): Rename to...
3282 (language_defn::read_var_value): ...this.
3283 * findvar.c (read_var_value): Update header comment, and change to
3284 call member function instead of function pointer.
3285 * go-lang.c (go_language_data): Likewise.
3286 * language.c (unknown_language_data): Delete la_read_var_value
3287 initializer.
3288 (auto_language_data): Likewise.
3289 * language.h (struct language_data): Delete la_read_var_value
3290 field.
3291 (language_defn::read_var_value): New member function.
3292 (default_read_var_value): Delete declaration.
3293 * m2-lang.c (m2_language_data): Delete la_read_var_value
3294 initializer.
3295 * objc-lang.c (objc_language_data): Likewise.
3296 * opencl-lang.c (opencl_language_data): Likewise.
3297 * p-lang.c (pascal_language_data): Likewise.
3298 * rust-lang.c (rust_language_data): Likewise.
3299 * value.h (default_read_var_value): Delete declaration.
3300
5bd40f2a
AB
33012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 * ada-lang.c (ada_print_array_index): Delete function, move
3304 implementation to...
3305 (ada_language::print_array_index): ...here.
3306 (ada_language_data): Delete la_print_array_index initializer.
3307 * c-lang.c (c_language_data): Likewise.
3308 (cplus_language_data): Likewise.
3309 (minimal_language_data): Likewise.
3310 * d-lang.c (d_language_data): Likewise.
3311 * f-lang.c (f_language_data): Likewise.
3312 * go-lang.c (go_language_data): Likewise.
3313 * language.c (default_print_array_index): Delete function, move
3314 implementation to...
3315 (language_defn::print_array_index): ...here.
3316 (unknown_language_data): Delete la_print_array_index initializer.
3317 (auto_language_data): Likewise.
3318 * language.h (struct language_data): Delete la_print_array_index
3319 field.
3320 (language_defn::print_array_index): New member function.
3321 (LA_PRINT_ARRAY_INDEX): Update.
3322 (default_print_array_index): Delete declaration.
3323 * m2-lang.c (m2_language_data): Delete la_print_array_index
3324 initializer.
3325 * objc-lang.c (objc_language_data): Likewise.
3326 * opencl-lang.c (opencl_language_data): Likewise.
3327 * p-lang.c (pascal_language_data): Likewise.
3328 * rust-lang.c (rust_language_data): Likewise.
3329
0874fd07
AB
33302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
3331
3332 * gdb/ada-lang.c (ada_language_defn): Convert to...
3333 (ada_language_data): ...this.
3334 (class ada_language): New class.
3335 (ada_language_defn): New static global.
3336 * gdb/c-lang.c (c_language_defn): Convert to...
3337 (c_language_data): ...this.
3338 (class c_language): New class.
3339 (c_language_defn): New static global.
3340 (cplus_language_defn): Convert to...
3341 (cplus_language_data): ...this.
3342 (class cplus_language): New class.
3343 (cplus_language_defn): New static global.
3344 (asm_language_defn): Convert to...
3345 (asm_language_data): ...this.
3346 (class asm_language): New class.
3347 (asm_language_defn): New static global.
3348 (minimal_language_defn): Convert to...
3349 (minimal_language_data): ...this.
3350 (class minimal_language): New class.
3351 (minimal_language_defn): New static global.
3352 * gdb/d-lang.c (d_language_defn): Convert to...
3353 (d_language_data): ...this.
3354 (class d_language): New class.
3355 (d_language_defn): New static global.
3356 * gdb/f-lang.c (f_language_defn): Convert to...
3357 (f_language_data): ...this.
3358 (class f_language): New class.
3359 (f_language_defn): New static global.
3360 * gdb/go-lang.c (go_language_defn): Convert to...
3361 (go_language_data): ...this.
3362 (class go_language): New class.
3363 (go_language_defn): New static global.
3364 * gdb/language.c (unknown_language_defn): Remove declaration.
3365 (current_language): Initialize to nullptr, real initialization is
3366 moved to _initialize_language.
3367 (languages): Delete global.
3368 (language_defn::languages): Define.
3369 (set_language_command): Use language_defn::languages.
3370 (set_language): Likewise.
3371 (range_error): Likewise.
3372 (language_enum): Likewise.
3373 (language_def): Likewise.
3374 (add_set_language_command): Use language_def::languages for the
3375 language list, and language_def to lookup language pointers.
3376 (skip_language_trampoline): Use language_defn::languages.
3377 (unknown_language_defn): Convert to...
3378 (unknown_language_data): ...this.
3379 (class unknown_language): New class.
3380 (unknown_language_defn): New static global.
3381 (auto_language_defn): Convert to...
3382 (auto_language_data): ...this.
3383 (class auto_language): New class.
3384 (auto_language_defn): New static global.
3385 (language_gdbarch_post_init): Use language_defn::languages.
3386 (_initialize_language): Initialize current_language.
3387 * gdb/language.h (struct language_defn): Rename to...
3388 (struct language_data): ...this.
3389 (struct language_defn): New.
3390 (auto_language_defn): Delete.
3391 (unknown_language_defn): Delete.
3392 (minimal_language_defn): Delete.
3393 (ada_language_defn): Delete.
3394 (asm_language_defn): Delete.
3395 (c_language_defn): Delete.
3396 (cplus_language_defn): Delete.
3397 (d_language_defn): Delete.
3398 (f_language_defn): Delete.
3399 (go_language_defn): Delete.
3400 (m2_language_defn): Delete.
3401 (objc_language_defn): Delete.
3402 (opencl_language_defn): Delete.
3403 (pascal_language_defn): Delete.
3404 (rust_language_defn): Delete.
3405 * gdb/m2-lang.c (m2_language_defn): Convert to...
3406 (m2_language_data): ...this.
3407 (class m2_language): New class.
3408 (m2_language_defn): New static global.
3409 * gdb/objc-lang.c (objc_language_defn): Convert to...
3410 (objc_language_data): ...this.
3411 (class objc_language): New class.
3412 (objc_language_defn): New static global.
3413 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
3414 (opencl_language_data): ...this.
3415 (class opencl_language): New class.
3416 (opencl_language_defn): New static global.
3417 * gdb/p-lang.c (pascal_language_defn): Convert to...
3418 (pascal_language_data): ...this.
3419 (class pascal_language): New class.
3420 (pascal_language_defn): New static global.
3421 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
3422 language pointer, update comment format.
3423 * gdb/rust-lang.c (rust_language_defn): Convert to...
3424 (rust_language_data): ...this.
3425 (class rust_language): New class.
3426 (rust_language_defn): New static global.
3427
1313c56e
AB
34282020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
3429
3430 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
3431 member variable.
3432 <m_stmt_at_address>: New member variable.
3433 (lnp_state_machine::record_line): Don't record some lines, update
3434 tracking of is_stmt at the same address.
3435 (lnp_state_machine::lnp_state_machine): Initialise new member
3436 variables.
3437
b7ed9f3d
ST
34382020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
3439
3440 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
3441 "-include gnu-nat-mig.h".
3442 * gnu-nat-mig.h: New file.
3443 * gnu-nat.c: Include "gnu-nat-mig.h".
3444 (exc_server, msg_reply_server, notify_server,
3445 process_reply_server): Remove declarations.
3446
14a8ad62
ST
34472020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3448
3449 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
3450 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
3451 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
3452 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
3453 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
3454 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
3455 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
3456 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
3457 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
3458 to gnu_nat_target class.
3459 * gnu-nat.c: Likewise.
3460 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
3461 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
3462 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
3463 object.
3464 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
3465 instead of `gnu_target'.
3466
0af5e106
ST
34672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3468
3469 * i386-gnu-tdep.c: Include "gdbcore.h"
3470 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
3471 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
3472 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
3473 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
3474 i386_gnu_sigcontext_addr): New functions
3475 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
3476 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
3477 tdep.
3478
078f2fc9
ST
34792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3480
3481 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
3482 before fork_inferior call. Avoid calling it if target_is_pushed returns
3483 true.
3484
53dff92c
ST
34852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3486
3487 * gnu-nat.h (gnu_target): New variable declaration.
3488 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
3489 gnu_target.
3490 * gnu-nat.c (gnu_target): New variable.
3491 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
3492 add_thread_silent, and add_thread calls.
3493 (gnu_nat_target::create_inferior): Pass gnu_target to
3494 add_thread_silent, thread_change_ptid call.
3495 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
3496 call.
3497
5a8b8627
ST
34982020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3499
3500 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
3501 (gnu_nat_target::find_memory_regions): Remove unused
3502 `old_address' variable.
3503
366f550a
ST
35042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3505
3506 * gnu-nat.c: Include "gdbarch.h".
3507
f14871bf
ST
35082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3509
3510 * reply_mig_hack.awk (Error return): Cast function through
3511 void *, to bypass compiler function call check.
3512
c6887cfb
ST
35132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3514
3515 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
3516 $(srcdir)/reply_mig_hack.awk.
3517
6930bffe
ST
35182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
3519
3520 * gnu-nat.h (gnu_debug_flag): Set type to bool.
3521
112c22ed
JG
35222020-05-30 Jonny Grant <jg@jguk.org>
3523
3524 * configure.ac (ACX_BUGURL): change bug URL to https.
3525
f68f85b5
PA
35262020-05-30 Pedro Alves <palves@redhat.com>
3527
3528 * cp-support.c (replace_typedefs_template): New.
3529 (replace_typedefs_qualified_name): Handle
3530 DEMANGLE_COMPONENT_TEMPLATE.
3531
976ca316
SM
35322020-05-29 Simon Marchi <simon.marchi@efficios.com>
3533
3534 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
3535 dwarf2/index-cache.h, dwarf2/index-write.c,
3536 dwarf2/index-write.h, dwarf2/line-header.c,
3537 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
3538 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
3539 variables and fields from `dwarf2_per_objfile` to just
3540 `per_objfile` throughout.
3541
989ade05
SM
35422020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
3543
3544 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3545 <push_dwarf_reg_entry_value>: Add comment.
3546
c47bae85
KB
35472020-05-28 Kevin Buettner <kevinb@redhat.com>
3548 Keith Seitz <keiths@redhat.com>
3549
3550 * python/python.c (do_start_initialization): Call PyEval_SaveThread
3551 instead of PyEval_ReleaseLock.
3552 (class gdbpy_gil): Move to earlier in file.
3553 (finalize_python): Set gdb_python_initialized.
3554 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
3555 when not initialized.
3556
44486dcf
SM
35572020-05-28 Simon Marchi <simon.marchi@efficios.com>
3558
3559 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3560 <push_dwarf_reg_entry_value>: Remove assert. Override
3561 per_objfile with caller_per_objfile.
3562
f030440d
TV
35632020-05-28 Tom de Vries <tdevries@suse.de>
3564
3565 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
3566 PR gold/15646 workaround to symbol kind "type".
3567
f0fbb768
TT
35682020-05-27 Tom Tromey <tromey@adacore.com>
3569
3570 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
3571
af0b2a3e
TT
35722020-05-27 Tom Tromey <tromey@adacore.com>
3573
3574 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
3575 Use htab_find_with_hash.
3576 <add_abbrev>: Remove "abbrev_number" parameter.
3577 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
3578 "abbrev_number" parameter. Use htab_find_slot_with_hash.
3579 (hash_abbrev): Add comment.
3580 (abbrev_table::lookup_abbrev): Move to header file.
3581 (abbrev_table::read): Update.
3582
7d00ffec
TT
35832020-05-27 Tom Tromey <tromey@adacore.com>
3584
3585 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
3586 method.
3587 <canonical_name>: New member.
3588 <raw_name>: Rename from "name".
3589 (partial_die_info): Initialize canonical_name.
3590 (scan_partial_symbols): Check raw_name.
3591 (partial_die_parent_scope, partial_die_full_name)
3592 (add_partial_symbol, add_partial_subprogram)
3593 (add_partial_enumeration, load_partial_dies): Use "name" method.
3594 (partial_die_info::name): New method.
3595 (partial_die_info::read, guess_partial_die_structure_name)
3596 (partial_die_info::fixup): Update.
3597
697bba18
TT
35982020-05-27 Tom Tromey <tromey@adacore.com>
3599
3600 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
3601 <get_ref_die_offset>: Inline.
3602 <get_ref_die_offset_complaint>: New method.
3603 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
3604 (attribute::get_ref_die_offset_complaint): Rename from
3605 get_ref_die_offset. Just issue complaint.
3606
c17ace43
HD
36072020-05-27 Hannes Domani <ssbssa@yahoo.de>
3608
3609 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
3610
96445f0b
HD
36112020-05-27 Hannes Domani <ssbssa@yahoo.de>
3612
3613 * exec.c (exec_file_attach): Use errno value of first openp failure.
3614
ac637ec3
HD
36152020-05-27 Hannes Domani <ssbssa@yahoo.de>
3616
3617 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
3618 Don't close thread handle.
3619
17ee85fc
TT
36202020-05-27 Tom Tromey <tom@tromey.com>
3621 Simon Marchi <simon.marchi@efficios.com>
3622
3623 * objfiles.h (struct objfile) <partial_symtabs>: Now a
3624 shared_ptr.
3625 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
3626 member.
3627 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
3628 dwarf2_per_bfd_objfile_data_key>: New globals.
3629 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
3630 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
3631 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
3632 shared.
3633 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
3634 short-circuit when sharing.
3635 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
3636 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
3637
39b16f87
SM
36382020-05-27 Simon Marchi <simon.marchi@efficios.com>
3639
3640 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
3641 to...
3642 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
3643 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
3644
fcf23d5b
SM
36452020-05-27 Simon Marchi <simon.marchi@efficios.com>
3646
3647 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
3648 build_name_components, find_name_components_bounds>:
3649 Add per_objfile parameter.
3650 (struct mapped_index) <symbol_name_at>: Likewise.
3651 (struct mapped_debug_names): Remove constructor.
3652 <dwarf2_per_objfile>: Remove field.
3653 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
3654 (mapped_index_base::find_name_components_bounds,
3655 mapped_index_base::build_name_components,
3656 dw2_expand_symtabs_matching_symbol): Likewise.
3657 (class mock_mapped_index) <symbol_name_at>: Likewise.
3658 (check_match): Likewise.
3659 (check_find_bounds_finds): Likewise.
3660 (test_mapped_index_find_name_component_bounds): Update.
3661 (CHECK_MATCH): Update.
3662 (dw2_expand_symtabs_matching): Update.
3663 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
3664 per_objfile parameter.
3665 <find_vec_in_debug_names>: Likewise.
3666 <m_per_objfile>: New field.
3667 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
3668 parameter.
3669 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
3670 (dw2_debug_names_iterator::next): Update.
3671 (dw2_debug_names_lookup_symbol): Update.
3672 (dw2_debug_names_expand_symtabs_for_function): Update.
3673 (dw2_debug_names_map_matching_symbols): Update.
3674 (dw2_debug_names_expand_symtabs_matching): Update.
3675 (dwarf2_read_debug_names): Update.
3676
7188ed02
SM
36772020-05-27 Simon Marchi <simon.marchi@efficios.com>
3678
3679 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
3680 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
3681 move to dwarf2_per_objfile.
3682 <read_in_chain>: Remove.
3683 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
3684 remove_all_cus, age_comp_units>: New methods.
3685 <m_dwarf2_cus>: New member.
3686 (struct dwarf2_per_cu_data) <cu>: Remove.
3687 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
3688 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
3689 moved to methods of dwarf2_per_objfile.
3690 (dwarf2_clear_marks): Remove.
3691 (dwarf2_queue_item::~dwarf2_queue_item): Update.
3692 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
3693 (dwarf2_per_bfd::free_cached_comp_units): Remove.
3694 (dwarf2_per_objfile::remove_all_cus): New.
3695 (class free_cached_comp_units) <~free_cached_comp_units>:
3696 Update.
3697 (load_cu): Update.
3698 (dw2_do_instantiate_symtab): Adjust.
3699 (fill_in_sig_entry_from_dwo_entry): Adjust.
3700 (cutu_reader::init_tu_and_read_dwo_dies): Update.
3701 (cutu_reader::cutu_reader): Likewise.
3702 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
3703 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
3704 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
3705 and dwarf2_per_objfile::age_comp_units.
3706 (load_partial_comp_unit): Update.
3707 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
3708 (process_queue): Likewise.
3709 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
3710 backlink.
3711 (dwarf2_read_addr_index): Likewise.
3712 (follow_die_offset): Likewise.
3713 (dwarf2_fetch_die_loc_sect_off): Likewise.
3714 (dwarf2_fetch_constant_bytes): Likewise.
3715 (dwarf2_fetch_die_type_sect_off): Likewise.
3716 (follow_die_sig_1): Likewise.
3717 (load_full_type_unit): Likewise.
3718 (read_signatured_type): Likewise.
3719 (dwarf2_cu::dwarf2_cu): Don't set cu field.
3720 (dwarf2_cu::~dwarf2_cu): Remove.
3721 (dwarf2_per_objfile::get_cu): New.
3722 (dwarf2_per_objfile::set_cu): New.
3723 (age_cached_comp_units): Rename to...
3724 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
3725 to std::unordered_map.
3726 (free_one_cached_comp_unit): Rename to...
3727 (dwarf2_per_objfile::remove_cu): ... this. Adjust
3728 to std::unordered_map.
3729 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
3730 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
3731 a dwarf2_per_objfile in data.
3732 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
3733 (dwarf2_clear_marks): Remove.
3734
2e671100
SM
37352020-05-27 Simon Marchi <simon.marchi@efficios.com>
3736
3737 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
3738 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
3739 (init_tu_and_read_dwo_dies): Likewise.
3740 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
3741 (cutu_reader::cutu_reader): Likewise.
3742 (load_partial_comp_unit): Likewise.
3743 (process_psymtab_comp_unit): Update.
3744 (build_type_psymtabs_1): Update.
3745 (process_skeletonless_type_unit): Update.
3746 (load_full_comp_unit): Update.
3747 (find_partial_die): Update.
3748 (dwarf2_read_addr_index): Update.
3749 (read_signatured_type): Update.
3750
2e6a9f79
SM
37512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3752
3753 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
3754 m_header_read_in>: New fields.
3755 <get_header>: New method.
3756 * dwarf2/read.c (per_cu_header_read_in): Remove.
3757 (dwarf2_per_cu_data::get_header): New.
3758 (dwarf2_per_cu_data::addr_size): Update.
3759 (dwarf2_per_cu_data::offset_size): Update.
3760 (dwarf2_per_cu_data::ref_addr_size): Update.
3761
1b555f17
SM
37622020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3763
3764 * dwarf2/read.c (load_cu): Return dwarf2_cu.
3765 (dw2_do_instantiate_symtab): Update.
3766 (queue_and_load_all_dwo_tus): Change parameter from
3767 dwarf2_per_cu_data to dwarf2_cu.
3768 (dwarf2_fetch_die_loc_sect_off): Update.
3769 (dwarf2_fetch_constant_bytes): Update.
3770 (dwarf2_fetch_die_type_sect_off): Update.
3771
8fc0b21d
SM
37722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3773
3774 * dwarf2/read.c (process_full_comp_unit,
3775 process_full_type_unit): Remove per_cu, per_objfile paramters.
3776 Add dwarf2_cu parameter.
3777 (process_queue): Update.
3778
168c9250
SM
37792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3780
3781 * dwarf2/read.c (create_cu_from_index_list): Replace
3782 dwarf2_per_objfile parameter with dwarf2_per_bfd.
3783 (create_cus_from_index_list): Likewise.
3784 (create_cus_from_index): Likewise.
3785 (create_signatured_type_table_from_index): Likewise.
3786 (create_cus_from_debug_names_list): Likewise.
3787 (create_cus_from_debug_names): Likewise.
3788 (dwarf2_read_gdb_index): Update.
3789 (dwarf2_read_debug_names): Update.
3790
e286671b
TT
37912020-05-27 Tom Tromey <tom@tromey.com>
3792 Simon Marchi <simon.marchi@efficios.com>
3793
3794 * dwarf2/read.h (struct dwarf2_per_objfile)
3795 <get_type_for_signatured_type, set_type_for_signatured_type>:
3796 New methods.
3797 <m_type_map>: New member.
3798 (struct signatured_type) <type>: Remove.
3799 * dwarf2/read.c
3800 (dwarf2_per_objfile::get_type_for_signatured_type,
3801 dwarf2_per_objfile::set_type_for_signatured_type): New.
3802 (get_signatured_type): Use new methods.
3803
8adb8487
TT
38042020-05-27 Tom Tromey <tom@tromey.com>
3805 Simon Marchi <simon.marchi@efficios.com>
3806
3807 * dwarf2/read.h (struct type_unit_group_unshareable): New.
3808 (struct dwarf2_per_objfile) <type_units>: New member.
3809 <get_type_unit_group_unshareable>: New method.
3810 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
3811 num_symtabs, symtabs>: Remove; move to
3812 type_unit_group_unshareable.
3813 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
3814 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
3815 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
3816
127bbf4b
SM
38172020-05-27 Simon Marchi <simon.marchi@efficios.com>
3818
3819 * dwarf2/read.h (struct dwarf2_per_cu_data):
3820 <dwarf2_per_objfile>: Remove.
3821 * dwarf2/read.c (create_cu_from_index_list): Don't assign
3822 dwarf2_per_objfile.
3823 (create_signatured_type_table_from_index): Likewise.
3824 (create_signatured_type_table_from_debug_names): Likewise.
3825 (create_debug_type_hash_table): Likewise.
3826 (fill_in_sig_entry_from_dwo_entry): Likewise.
3827 (create_type_unit_group): Likewise.
3828 (read_comp_units_from_section): Likewise.
3829 (create_cus_hash_table): Likewise.
3830
f6e649dd
SM
38312020-05-27 Simon Marchi <simon.marchi@efficios.com>
3832
3833 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
3834 dwarf2_per_cu_data::dwarf2_per_objfile.
3835 (compute_compunit_symtab_includes): Likewise.
3836 (dwarf2_cu::start_symtab): Likewise.
3837
aa66c379
SM
38382020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
3839
3840 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
3841 parameter.
3842 * dwarf2/read.c (get_die_type_at_offset): Likewise.
3843 (read_namespace_alias): Update.
3844 (lookup_die_type): Update.
3845 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
3846 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
3847 Update.
3848 (disassemble_dwarf_expression): Update.
3849
120ce1b5
SM
38502020-05-27 Simon Marchi <simon.marchi@efficios.com>
3851
3852 * dwarf2/read.h (struct dwarf2_queue_item): Add
3853 dwarf2_per_objfile parameter, assign new parameter.
3854 <per_objfile>: New field.
3855 * dwarf2/read.c (free_one_cached_comp_unit): Add
3856 dwarf2_per_objfile parameter.
3857 (queue_comp_unit): Likewise.
3858 (dw2_do_instantiate_symtab): Update.
3859 (process_psymtab_comp_unit): Update.
3860 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
3861 (process_imported_unit_die): Update.
3862 (queue_and_load_dwo_tu): Update.
3863 (follow_die_offset): Update.
3864 (follow_die_sig_1): Update.
3865
9f47c707
SM
38662020-05-27 Simon Marchi <simon.marchi@efficios.com>
3867
3868 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
3869 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
3870 (read_call_site_scope): Assign per_objfile.
3871 (dwarf2_per_cu_data::objfile): Remove.
3872 * gdbtypes.h (struct call_site) <per_objfile>: New member.
3873 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
3874 dwarf2_per_objfile parameter.
3875 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
3876 dwarf2_per_objfile parameter.
3877 (dwarf_expr_reg_to_entry_parameter): Add output
3878 dwarf2_per_objfile parameter.
3879 (locexpr_get_frame_base): Update.
3880 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
3881 <push_dwarf_reg_entry_value>: Update.
3882 <call_site_to_target_addr>: Update.
3883 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
3884 parameter.
3885 (value_of_dwarf_reg_entry): Update.
3886 (rw_pieced_value): Update.
3887 (indirect_synthetic_pointer): Update.
3888 (dwarf2_evaluate_property): Update.
3889 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
3890 parameter.
3891 (locexpr_read_variable): Update.
3892 (locexpr_get_symbol_read_needs): Update.
3893 (loclist_read_variable): Update.
3894
14095eb3
SM
38952020-05-27 Simon Marchi <simon.marchi@efficios.com>
3896
3897 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
3898 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3899 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3900 parameter.
3901 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
3902 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
3903 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
3904 parameter.
3905 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
3906 sect_variable_value): Add dwarf2_per_objfile parameter.
3907 (class dwarf_evaluate_loc_desc) <dwarf_call,
3908 dwarf_variable_value>: Update.
3909 (fetch_const_value_from_synthetic_pointer): Add
3910 dwarf2_per_objfile parameter.
3911 (fetch_const_value_from_synthetic_pointer): Update.
3912 (coerced_pieced_ref): Update.
3913 (class symbol_needs_eval_context) <dwarf_call,
3914 dwarf_variable_value>: Update.
3915 (dwarf2_compile_expr_to_ax): Update.
3916
3c3cd3d4
SM
39172020-05-27 Simon Marchi <simon.marchi@efficios.com>
3918
3919 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
3920 parameter.
3921 (dwarf2_evaluate_loc_desc_full): Update.
3922
82ca3f51
SM
39232020-05-27 Simon Marchi <simon.marchi@efficios.com>
3924
3925 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
3926 parameter.
3927 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
3928 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
3929 dwarf2_per_objfile parameter.
3930 (decode_debug_loc_dwo_addresses): Likewise.
3931 (dwarf2_find_location_expression): Update.
3932 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
3933 (locexpr_describe_location_piece): Add dwarf2_per_objfile
3934 parameter.
3935 (disassemble_dwarf_expression): Add dwarf2_per_objfile
3936 parameter.
3937 (locexpr_describe_location_1): Likewise.
3938 (locexpr_describe_location): Update.
3939
4b167ea1
SM
39402020-05-27 Simon Marchi <simon.marchi@efficios.com>
3941
3942 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
3943 Remove.
3944 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
3945 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
3946 (dwarf2_compile_property_to_c): Update.
3947 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
3948 use text offset from objfile.
3949 (locexpr_tracepoint_var_ref): Update.
3950 (locexpr_generate_c_location): Update.
3951 (loclist_describe_location): Update.
3952 (loclist_tracepoint_var_ref): Update.
3953 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
3954 dwarf2_per_objfile parameter.
3955 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
3956 use text offset from objfile.
3957 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
3958
89b07335
SM
39592020-05-27 Simon Marchi <simon.marchi@efficios.com>
3960
3961 * dwarf2/expr.h (struct dwarf_expr_context)
3962 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
3963 <offset>: Remove.
3964 <per_objfile>: New member.
3965 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
3966 dwarf2_per_objfile parameter. Don't set offset, set
3967 per_objfile.
3968 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
3969 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
3970 a dwarf2_per_objfile object instead of an offset.
3971 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
3972 constructor.
3973 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
3974 to dwarf2_expr_executor constructor. Don't set offset.
3975 (dwarf2_fetch_cfa_info): Update.
3976 (struct dwarf2_frame_cache) <text_offset>: Remove.
3977 <per_objfile>: New field.
3978 (dwarf2_frame_cache): Update.
3979 (dwarf2_frame_prev_register): Update.
3980 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
3981 <dwarf_evaluate_loc_desc>: Add constructor.
3982 (dwarf2_evaluate_loc_desc_full): Update.
3983 (dwarf2_locexpr_baton_eval): Update.
3984 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
3985 Add constructor.
3986 (dwarf2_loc_desc_get_symbol_read_needs): Update.
3987
293e7e51
SM
39882020-05-27 Simon Marchi <simon.marchi@efficios.com>
3989
3990 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
3991 addr_sized_int_type>: Move to dwarf2_cu.
3992 <int_type>: Move to dwarf2_per_objfile.
3993 (struct dwarf2_per_objfile) <int_type>: Move here.
3994 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
3995 addr_sized_int_type>: Move here.
3996 (read_func_scope): Update.
3997 (read_array_type): Update.
3998 (read_tag_string_type): Update.
3999 (attr_to_dynamic_prop): Update.
4000 (dwarf2_per_cu_data::int_type): Rename to...
4001 (dwarf2_per_objfile::int_type): ... this.
4002 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
4003 (dwarf2_cu::addr_sized_int_type): ... this.
4004 (read_subrange_type): Update.
4005 (dwarf2_per_cu_data::addr_type): Rename to...
4006 (dwarf2_cu::addr_type): ... this.
4007 (set_die_type): Update.
4008
64874a40
SM
40092020-05-27 Simon Marchi <simon.marchi@efficios.com>
4010
4011 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
4012 data through per_cu->cu.
4013
4ab09049
SM
40142020-05-27 Simon Marchi <simon.marchi@efficios.com>
4015
4016 * dwarf2/read.c (lookup_dwo_comp_unit): Change
4017 dwarf2_per_cu_data parameter fo dwarf2_cu.
4018 (lookup_dwo_type_unit): Likewise.
4019 (read_cutu_die_from_dwo): Likewise.
4020 (lookup_dwo_unit): Likewise.
4021 (open_and_init_dwo_file): Likewise.
4022 (lookup_dwo_cutu): Likewise.
4023 (lookup_dwo_comp_unit): Likewise.
4024 (lookup_dwo_type_unit): Likewise.
4025 (cutu_reader::init_tu_and_read_dwo_dies): Update.
4026 (cutu_reader::cutu_reader): Update.
4027
47b14e86
SM
40282020-05-27 Simon Marchi <simon.marchi@efficios.com>
4029
4030 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
4031 parameter.
4032 (process_full_type_unit): Likewise.
4033 (process_queue): Update.
4034
43182c09
SM
40352020-05-27 Simon Marchi <simon.marchi@efficios.com>
4036
4037 * dwarf2/read.c (recursively_compute_inclusions): Add
4038 dwarf2_per_objfile parameter.
4039 (compute_compunit_symtab_includes): Likewise.
4040 (process_cu_includes): Update.
4041
7aa104c4
SM
40422020-05-27 Simon Marchi <simon.marchi@efficios.com>
4043
4044 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
4045 parameter.
4046 (create_type_unit_group): Update.
4047 (process_psymtab_comp_unit_reader): Update.
4048 (build_type_psymtabs_reader): Update.
4049
e3beb21d
SM
40502020-05-27 Simon Marchi <simon.marchi@efficios.com>
4051
4052 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
4053 object through m_this_cu->cu.
4054
d460f660
SM
40552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4056
4057 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
4058 the info parameter.
4059 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
4060
ab432490
SM
40612020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4062
4063 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
4064 per_objfile parameter.
4065 (load_full_type_unit): Add per_objfile parameter.
4066 (read_signatured_type): Likewise.
4067 (load_full_comp_unit): Likewise.
4068 (load_cu): Likewise.
4069 (dw2_do_instantiate_symtab): Likewise.
4070 (dw2_get_file_names): Likewise.
4071 (dw2_map_symtabs_matching_filename): Update.
4072 (dw_expand_symtabs_matching_file_matcher): Update.
4073 (dw2_map_symbol_filenames): Update.
4074 (process_psymtab_comp_unit): Add per_objfile parameter.
4075 (build_type_psymtabs_1): Update.
4076 (process_skeletonless_type_unit): Update.
4077 (dwarf2_build_psymtabs_hard): Update.
4078 (load_partial_comp_unit): Add per_objfile parameter.
4079 (scan_partial_symbols): Update.
4080 (load_full_comp_unit): Add per_objfile parameter.
4081 (process_imported_unit_die): Update.
4082 (create_cus_hash_table): Update.
4083 (find_partial_die): Update.
4084 (dwarf2_read_addr_index): Update.
4085 (follow_die_offset): Update.
4086 (dwarf2_fetch_die_loc_sect_off): Update.
4087 (dwarf2_fetch_constant_bytes): Update.
4088 (dwarf2_fetch_die_type_sect_off): Update.
4089 (follow_die_sig_1): Update.
4090 (load_full_type_unit): Add per_objfile parameter.
4091 (read_signatured_type): Likewise.
4092
313bad1b
SM
40932020-05-27 Simon Marchi <simon.marchi@efficios.com>
4094
4095 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
4096 of objfile_name.
4097
c3699833
SM
40982020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4099
4100 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
4101 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4102 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
4103 field.
4104 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
4105 (create_cus_from_index): Update.
4106 (dwarf2_read_gdb_index): Update.
4107 (create_cus_from_debug_names): Update.
4108 (dwarf2_read_debug_names): Update.
4109 (get_abbrev_section_for_cu): Update.
4110 (create_all_comp_units): Update.
4111 (read_attribute_value): Update.
4112 (get_debug_line_section): Update.
4113 * dwarf2/index-cache.c (index_cache::store): Update.
4114 * dwarf2/index-write.c (save_gdb_index_command): Update.
4115 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
4116
1859c670
SM
41172020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4118
4119 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
4120 member.
4121 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
4122 dwarf2_per_cu_data::per_bfd.
4123 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
4124 (create_type_unit_group): Likewise.
4125 (queue_comp_unit): Remove reference to
4126 per_cu->dwarf2_per_objfile.
4127 (maybe_queue_comp_unit): Likewise.
4128 (fill_in_sig_entry_from_dwo_entry): Assign new field.
4129 (create_cus_hash_table): Assign new field.
4130
5e22e966
SM
41312020-05-27 Simon Marchi <simon.marchi@efficios.com>
4132
4133 * dwarf2/read.c: Replace
4134 dwarf2_cu->per_cu->dwarf2_per_objfile references with
4135 dwarf2_cu->per_objfile throughout.
4136
97a1449a
SM
41372020-05-27 Simon Marchi <simon.marchi@efficios.com>
4138
4139 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
4140 parameter, don't use per_cu->dwarf2_per_objfile.
4141 (dw2_instantiate_symtab): Likewise.
4142 (dw2_find_last_source_symtab): Update.
4143 (dw2_map_expand_apply): Update.
4144 (dw2_lookup_symbol): Update.
4145 (dw2_expand_symtabs_for_function): Update.
4146 (dw2_expand_all_symtabs): Update.
4147 (dw2_expand_symtabs_with_fullname): Update.
4148 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
4149 don't use per_cu->dwarf2_per_objfile.
4150 (dw2_expand_marked_cus): Update.
4151 (dw2_find_pc_sect_compunit_symtab): Update.
4152 (dw2_debug_names_lookup_symbol): Update.
4153 (dw2_debug_names_expand_symtabs_for_function): Update.
4154 (dw2_debug_names_map_matching_symbols): Update.
4155 (dwarf2_psymtab::expand_psymtab): Update.
4156
9e021579
SM
41572020-05-27 Simon Marchi <simon.marchi@efficios.com>
4158
4159 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
4160 <per_objfile>: New member.
4161 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
4162 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
4163 call to dwarf2_cu.
4164 (cutu_reader::cutu_reader): Update.
4165 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
4166
ae090bdb
SM
41672020-05-27 Simon Marchi <simon.marchi@efficios.com>
4168
4169 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
4170 struct dwarf2_per_objfile.
4171 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
4172 dwarf2_per_bfd.
4173 * dwarf2/read.c (set_die_type): Update.
4174 (get_die_type_at_offset): Update.
4175
af758d11
SM
41762020-05-27 Tom Tromey <tom@tromey.com>
4177 Simon Marchi <simon.marchi@efficios.com>
4178
4179 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
4180 method.
4181 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
4182 get_symtab, set_symtab>: New methods.
4183 <m_symtabs>: New field.
4184 (struct dwarf2_psymtab): Derive from partial_symtab.
4185 <readin_p, get_compunit_symtab>: Declare methods.
4186 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
4187 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
4188 New methods.
4189 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
4190 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
4191 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
4192 (dw2_symtab_iter_next, dw2_print_stats)
4193 (dw2_expand_symtabs_with_fullname)
4194 (dw2_expand_symtabs_matching_one)
4195 (dw_expand_symtabs_matching_file_matcher)
4196 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
4197 (dw2_debug_names_iterator::next)
4198 (dw2_debug_names_map_matching_symbols)
4199 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
4200 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
4201 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
4202 New methods.
4203 (get_compunit_symtab, process_full_comp_unit)
4204 (process_full_type_unit): Update.
4205 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
4206
5989a64e
SM
42072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
4208
4209 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
4210 then introduce a new dwarf2_per_objfile type.
4211 <read_line_string>: Move to the new dwarf2_per_objfile type.
4212 <objfile>: Likewise.
4213 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
4214 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
4215 dwarf2_per_objfile->per_bfd.
4216 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
4217 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
4218 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
4219 (dwarf2_per_bfd::free_cached_comp_units): ... this.
4220 (dwarf2_has_info): Allocate dwarf2_per_bfd.
4221 (dwarf2_per_objfile::locate_sections): Rename to...
4222 (dwarf2_per_bfd::locate_sections): ... this.
4223 (dwarf2_per_objfile::get_cutu): Rename to...
4224 (dwarf2_per_bfd::get_cutu): ... this.
4225 (dwarf2_per_objfile::get_cu): Rename to...
4226 (dwarf2_per_bfd::get_cu): ... this.
4227 (dwarf2_per_objfile::get_tu): Rename to...
4228 (dwarf2_per_bfd::get_tu): ... this.
4229 (dwarf2_per_objfile::allocate_per_cu): Rename to...
4230 (dwarf2_per_bfd::allocate_per_cu): ... this.
4231 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
4232 (dwarf2_per_bfd::allocate_signatured_type): ... this.
4233 (get_gdb_index_contents_ftype): Change parameter from
4234 dwarf2_per_objfile to dwarf2_per_bfd.
4235 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
4236 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
4237
a50264ba
TT
42382020-05-27 Tom Tromey <tom@tromey.com>
4239 Simon Marchi <simon.marchi@efficios.com>
4240
4241 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
4242 (allocate_piece_closure): Set "per_objfile" member.
4243 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
4244 (locexpr_describe_location, loclist_describe_location): Use new
4245 member.
4246 * dwarf2/read.c (read_call_site_scope)
4247 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
4248 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
4249 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
4250 handle_data_member_location): Set per_objfile member.
4251 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
4252 member.
4253 (struct dwarf2_loclist_baton) <per_objfile>: New member.
4254
d3473f0c
TT
42552020-05-27 Tom Tromey <tom@tromey.com>
4256
4257 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
4258 allocate_signatured_type>: Declare new methods.
4259 <m_num_psymtabs>: New member.
4260 (struct dwarf2_per_cu_data) <index>: New member.
4261 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
4262 (dwarf2_per_objfile::allocate_signatured_type): New methods.
4263 (create_cu_from_index_list): Use allocate_per_cu.
4264 (create_signatured_type_table_from_index)
4265 (create_signatured_type_table_from_debug_names)
4266 (create_debug_type_hash_table, add_type_unit)
4267 (read_comp_units_from_section): Use allocate_signatured_type.
4268
5717c425
TT
42692020-05-27 Tom Tromey <tom@tromey.com>
4270
4271 * psymtab.c (partial_map_expand_apply)
4272 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
4273 (psym_lookup_global_symbol_language)
4274 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
4275 (psym_print_stats, psym_expand_symtabs_for_function)
4276 (psym_map_symbol_filenames, psym_map_matching_symbols)
4277 (psym_expand_symtabs_matching)
4278 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
4279 (maintenance_check_psymtabs): Update.
4280 * psympriv.h (struct partial_symtab) <readin_p,
4281 get_compunit_symtab>: Add objfile parameter.
4282 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
4283 Likewise.
4284 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
4285 get_compunit_symtab>: Likewise.
4286 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
4287
45940949
TT
42882020-05-27 Tom Tromey <tom@tromey.com>
4289
4290 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
4291 member.
4292 * dwarf2/read.c (delete_file_name_entry): Fix comment.
4293 (create_cu_from_index_list)
4294 (create_signatured_type_table_from_index)
4295 (create_signatured_type_table_from_debug_names)
4296 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
4297 (dwarf2_create_include_psymtab)
4298 (create_debug_type_hash_table, add_type_unit)
4299 (create_type_unit_group, read_comp_units_from_section)
4300 (dwarf2_compute_name, create_cus_hash_table)
4301 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
4302 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
4303 obstack.
4304 (dw2_get_real_path): Likewise. Change argument to
4305 dwarf2_per_objfile.
4306
f8c6d152
LM
43072020-05-27 Luis Machado <luis.machado@linaro.org>
4308
4309 PR tdep/26000
4310 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
4311 for ldrd (immediate).
4312
e98d2e6d
PW
43132020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4314
4315 * command.h: Add comment giving the name of class_tui.
4316 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
4317 create the fake command for the help for class_tui.
4318
53a47a3e
TT
43192020-05-26 Tom Tromey <tromey@adacore.com>
4320
4321 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
4322 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
4323 (val_atr): New function.
4324 (value_val_atr): Use it.
4325 * ada-valprint.c (print_optional_low_bound): Change low bound
4326 handling for enums.
4327 (val_print_packed_array_elements): Don't call discrete_position.
4328 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
4329 discrete_position for enum types.
4330 * language.c (default_print_array_index): Change type.
4331 * language.h (struct language_defn) <la_print_array_index>: Add
4332 index_type parameter, change type of index_value.
4333 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
4334 (default_print_array_index): Update.
4335 * valprint.c (maybe_print_array_index): Don't call
4336 value_from_longest. Update.
4337 (value_print_array_elements): Don't call discrete_position.
4338
0bc2354b
TT
43392020-05-26 Tom Tromey <tromey@adacore.com>
4340
4341 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
4342 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
4343
1218a4bf
CDA
43442020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
4345
4346 PR gdb/13519
4347 * avr-tdep.c (avr_integer_to_address): Return data or code
4348 address accordingly to the second 'type' argument of the
4349 function.
4350
92651b1d
MW
43512020-05-25 Michael Weghorn <m.weghorn@posteo.de>
4352
4353 * infcmd.c, inferior.h: (construct_inferior_arguments):
4354 Moved function from here to gdbsupport/common-inferior.{h,cc}
4355
0a4f5f8c
TT
43562020-05-23 Tom Tromey <tom@tromey.com>
4357
4358 Revert commit eca1f90c:
4359 * NEWS: Remove entry for completion styling.
4360 * completer.c (_rl_completion_prefix_display_length): Move
4361 declaration later.
4362 (gdb_fnprint): Revert.
4363 (gdb_display_match_list_1): Likewise.
4364 * cli/cli-style.c (completion_prefix_style)
4365 (completion_difference_style, completion_suffix_style): Remove.
4366 (_initialize_cli_style): Revert.
4367 * cli/cli-style.h (completion_prefix_style)
4368 (completion_difference_style, completion_suffix_style): Don't
4369 declare.
4370
e08bd6c5
PA
43712020-05-24 Pedro Alves <palves@redhat.com>
4372
4373 * symtab.c (completion_list_add_name): Return boolean indication
4374 of whether the symbol matched.
4375 (completion_list_add_symbol): Don't try to remove C++ aliases if
4376 the symbol didn't match in the first place.
4377 * symtab.h (completion_list_add_name): Return bool.
4378
ceacbf6e
SM
43792020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
4380
4381 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
4382 type::field.
4383
26f16254
JB
43842020-05-23 Joel Brobecker <brobecker@adacore.com>
4385
4386 GDB 9.2 released.
4387
eca1f90c
TT
43882020-05-23 Tom Tromey <tom@tromey.com>
4389
4390 * NEWS: Add entry for completion styling.
4391 * completer.c (_rl_completion_prefix_display_length): Move
4392 declaration earlier.
4393 (gdb_fnprint): Use completion_style.
4394 (gdb_display_match_list_1): Likewise.
4395 * cli/cli-style.c (completion_prefix_style)
4396 (completion_difference_style, completion_suffix_style): New
4397 globals.
4398 (_initialize_cli_style): Register new globals.
4399 * cli/cli-style.h (completion_prefix_style)
4400 (completion_difference_style, completion_suffix_style): Declare.
4401
51e2cfa2
PA
44022020-05-23 Pedro Alves <palves@redhat.com>
4403
4404 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
4405 (parse_escape): Use ISDIGIT instead of isdigit.
4406 (puts_debug): Use gdb_isprint instead of isprint.
4407 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
4408 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
4409 ISSPACE instead of isspace.
4410 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
4411 instead of isspace.
4412 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
4413 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
4414 instead of isxdigit and ISDIGIT instead of isdigit.
4415
80fc5e77
SM
44162020-05-22 Simon Marchi <simon.marchi@efficios.com>
4417
4418 * gdbtypes.h (struct type) <field>: New method.
4419 (TYPE_FIELDS): Remove, replace all uses with either type::fields
4420 or type::field.
4421
3cabb6b0
SM
44222020-05-22 Simon Marchi <simon.marchi@efficios.com>
4423
4424 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
4425 (TYPE_FIELDS): Use type::fields. Change all call sites that
4426 modify the propery to use type::set_fields instead.
4427
1f704f76
SM
44282020-05-22 Simon Marchi <simon.marchi@efficios.com>
4429
4430 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
4431 type::num_fields instead.
4432
5e33d5f4
SM
44332020-05-22 Simon Marchi <simon.marchi@efficios.com>
4434
4435 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
4436 methods.
4437 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
4438 that modify the number of fields to use type::set_num_fields
4439 instead.
4440
9392ebb3
TT
44412020-05-22 Tom Tromey <tromey@adacore.com>
4442
4443 * compile/compile-object-load.h (munmap_list_free): Don't
4444 declare.
4445
7c13f4e8
AB
44462020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4447
4448 * annotate.c (annotate_source_line): Update return type, add call
4449 to update current symtab and line.
4450 * annotate.h (annotate_source_line): Update return type, and
4451 extend header comment.
4452 * source.c (info_line_command): Check annotation_level before
4453 calling annotate_source_line.
4454 * stack.c (print_frame_info): If calling annotate_source_line
4455 returns true, then don't print any other source line information.
4456
aa370940
SM
44572020-05-21 Simon Marchi <simon.marchi@efficios.com>
4458
4459 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
4460
84d53fa9
SM
44612020-05-21 Simon Marchi <simon.marchi@efficios.com>
4462
4463 * coffread.c (patch_type): Remove NULL check before xfree.
4464 * corefile.c (set_gnutarget): Likewise.
4465 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
4466 * exec.c (build_section_table): Likewise.
4467 * remote.c (remote_target::pass_signals): Likewise.
4468 * utils.c (n_spaces): Likewise.
4469 * cli/cli-script.c (document_command): Likewise.
4470 * i386-windows-tdep.c (core_process_module_section): Likewise.
4471 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
4472
9d428aae
SM
44732020-05-20 Simon Marchi <simon.marchi@efficios.com>
4474
4475 * symfile.c (reread_symbols): Clear objfile's section_offsets
4476 vector and section indices, re-compute them by calling
4477 sym_offsets.
4478
250106a7
TT
44792020-05-20 Tom Tromey <tromey@adacore.com>
4480
4481 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 4482 (desc_one_bound, desc_index_type): Compute field name.
250106a7 4483
9a0bacfb
TV
44842020-05-20 Tom de Vries <tdevries@suse.de>
4485
4486 PR symtab/25833
4487 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
4488
7b958a48
AM
44892020-05-20 Alan Modra <amodra@gmail.com>
4490
4491 PR 25993
4492 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
4493 bfd_set_filename.
4494 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
4495 passed to bfd_set_filename.
4496 * symfile-mem.c (add_vsyscall_page): Likewise for string
4497 passed to symbol_file_add_from_memory.
4498 (symbol_file_add_from_memory): Make name param a const char* and
4499 don't strdup.
4500
c7e97679
AM
45012020-05-20 Alan Modra <amodra@gmail.com>
4502
4503 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
4504 rather than accessing bfd->filename directly.
4505 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
4506 and use bfd_section_name.
4507 * dwarf2/frame.c (decode_frame_entry): Likewise.
4508 * exec.c (exec_set_section_address): Likewise.
4509 * solib-aix.c (solib_aix_bfd_open): Likewise.
4510 * stap-probe.c (get_stap_base_address): Likewise.
4511 * symfile.c (reread_symbols): Likewise.
4512
563c591b
TT
45132020-05-19 Tom Tromey <tromey@adacore.com>
4514
4515 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
4516
f408d82c
SM
45172020-05-19 Simon Marchi <simon.marchi@efficios.com>
4518
4519 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
4520
98c59b52
PA
45212020-05-19 Pedro Alves <palves@redhat.com>
4522
4523 * NEWS (set exec-file-mismatch): Adjust entry.
4524 * exec.c: Include "build-id.h".
4525 (validate_exec_file): Try to match build IDs instead of filenames.
4526 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
4527 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
4528 and pass down 'warn_if_slow'.
4529 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
4530 gdb_bfd_open_closure to pass it down.
4531 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
4532
4111f652
PA
45332020-05-19 Pedro Alves <palves@redhat.com>
4534
4535 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
4536 * target.c (target_fileio_open_1): Rename to target_fileio_open
4537 and make extern. Use bool.
4538 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
4539 (target_fileio_read_alloc_1): Adjust.
4540 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
4541 (target_fileio_open_warn_if_slow): Delete declaration.
4542
ad80db5b
PA
45432020-05-19 Pedro Alves <palves@redhat.com>
4544
4545 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
4546 Adjust all callers.
4547
1d6ce4d3
YS
45482020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
4549
4550 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
4551 whether disp is negative.
4552
9005fbbb
SM
45532020-05-19 Simon Marchi <simon.marchi@efficios.com>
4554
4555 * symfile.h (struct symfile_segment_data)
4556 <~symfile_segment_data>: Remove.
4557 <segment_info>: Change to std::vector.
4558 * symfile.c (default_symfile_segments): Update.
4559 * elfread.c (elf_symfile_segments): Update.
4560
68b888ff
SM
45612020-05-19 Simon Marchi <simon.marchi@efficios.com>
4562
4563 * symfile.h (struct symfile_segment_data) <struct segment>: New.
4564 <segments>: New.
4565 <segment_bases, segment_sizes>: Remove.
4566 * symfile.c (default_symfile_segments): Update.
4567 * elfread.c (elf_symfile_segments): Update.
4568 * remote.c (remote_target::get_offsets): Update.
4569 * solib-target.c (solib_target_relocate_section_addresses):
4570 Update.
4571
62982abd
SM
45722020-05-19 Simon Marchi <simon.marchi@efficios.com>
4573
4574 * symfile.h (struct symfile_segment_data): Initialize fields.
4575 <~symfile_segment_data>: Add.
4576 (symfile_segment_data_up): New.
4577 (struct sym_fns) <sym_segments>: Return a
4578 symfile_segment_data_up.
4579 (default_symfile_segments): Return a symfile_segment_data_up.
4580 (free_symfile_segment_data): Remove.
4581 (get_symfile_segment_data): Return a symfile_segment_data_up.
4582 * symfile.c (default_symfile_segments): Likewise.
4583 (get_symfile_segment_data): Likewise.
4584 (free_symfile_segment_data): Remove.
4585 (symfile_find_segment_sections): Update.
4586 * elfread.c (elf_symfile_segments): Return a
4587 symfile_segment_data_up.
4588 * remote.c (remote_target::get_offsets): Update.
4589 * solib-target.c (solib_target_relocate_section_addresses):
4590 Update.
4591 * symfile-debug.c (debug_sym_segments): Return a
4592 symfile_segment_data_up.
4593
7f204339
RO
45942020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4595
e52a0f1b
RO
4596 PR build/25981
4597 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
4598 Hardcode register numbers.
4599
7f204339
RO
4600 PR build/25981
4601 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
4602 procfs_find_LDT_entry): Remove.
4603 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
4604 procfs_find_LDT_entry): Remove.
4605 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
4606 Remove.
4607
7f32a4d5
PA
46082020-05-17 Pedro Alves <palves@redhat.com>
4609 Andrew Burgess <andrew.burgess@embecosm.com>
4610 Keno Fischer <keno@juliacomputing.com>
4611
4612 PR gdb/25741
4613 * breakpoint.c (build_target_condition_list): Update comments.
4614 (build_target_command_list): Update comments and skip matching
4615 locations.
4616 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
4617 a separate function. Simplify "set breakpoint auto-hw off"
4618 handling.
4619 (insert_breakpoints): Update comment.
4620 (tracepoint_locations_match): New parameter. For breakpoints,
4621 compare location types too, if the caller wants to.
4622 (handle_automatic_hardware_breakpoints): New functions.
4623 (bp_location_is_less_than): Also sort by location type and
4624 hardware breakpoint length.
4625 (update_global_location_list): Handle "set breakpoint auto-hw on"
4626 here.
4627 (update_breakpoint_locations): Ask breakpoint_locations_match to
4628 ignore location types.
4629
7d93a1e0
SM
46302020-05-16 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
4633 type::name instead.
4634
d0e39ea2
SM
46352020-05-16 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * gdbtypes.h (struct type) <name, set_name>: New methods.
4638 (TYPE_CODE): Use type::name. Change all call sites used to set
4639 the name to use type::set_name instead.
4640
2dab0c7b
TT
46412020-05-16 Tom Tromey <tom@tromey.com>
4642
4643 * top.c (quit_force): Update.
4644 * infrun.c (handle_no_resumed): Update.
4645 * top.h (all_uis): New function.
4646 (ALL_UIS): Remove.
4647
59f7bd8d
SM
46482020-05-16 Simon Marchi <simon.marchi@efficios.com>
4649
4650 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
4651
9bf058f0
PA
46522020-05-16 Pedro Alves <palves@redhat.com>
4653
4654 * ia64-linux-nat.c
4655 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
4656 Declare method.
4657 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
4658
8f86ae1a
SM
46592020-05-15 Simon Marchi <simon.marchi@efficios.com>
4660
4661 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
4662 (sparc64_adi_info): Likewise.
4663
d6bc0792
TT
46642020-05-15 Tom Tromey <tom@tromey.com>
4665
4666 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
4667 block_objfile.
4668 (lookup_objfile_from_block): Remove.
4669 (lookup_symbol_in_block, lookup_symbol_in_static_block)
4670 (lookup_global_symbol): Use block_objfile.
4671 * symtab.h (lookup_objfile_from_block): Don't declare.
4672 * printcmd.c (clear_dangling_display_expressions): Use
4673 block_objfile.
4674 * parse.c (operator_check_standard): Use block_objfile.
4675
8c14c3a3
TT
46762020-05-15 Tom Tromey <tom@tromey.com>
4677
4678 * language.c (language_alloc_type_symbol): Set
4679 SYMBOL_SECTION.
4680 * symtab.c (initialize_objfile_symbol): Remove.
4681 (allocate_symbol): Remove.
4682 (allocate_template_symbol): Remove.
4683 * dwarf2/read.c (fixup_go_packaging): Use "new".
4684 (new_symbol): Use "new".
4685 (read_variable): Don't call initialize_objfile_symbol. Use
4686 "new".
4687 (read_func_scope): Use "new".
4688 * xcoffread.c (process_xcoff_symbol): Don't call
4689 initialize_objfile_symbol.
4690 (SYMBOL_DUP): Remove.
4691 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
4692 "new".
4693 * symtab.h (allocate_symbol, initialize_objfile_symbol)
4694 (allocate_template_symbol): Don't declare.
4695 (struct symbol): Add copy constructor. Change defaults.
4696 * jit.c (finalize_symtab): Use "new".
4697 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
4698 Use "new".
4699 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4700 (common_block_end): Use "new".
4701 * mdebugread.c (parse_symbol): Use "new".
4702 (new_symbol): Likewise.
4703
5b4a1a8d
PW
47042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4705
4706 * NEWS: Mention changes to help and apropos.
4707
57b4f16e
PW
47082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4709
4710 * command.h (enum command_class): Improve comments, document
4711 that class_alias is for user-defined aliases, give the class
4712 name for each class, remove unused class_xdb.
4713 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
4714 * breakpoint.c (_initialize_breakpoint): Replace class_alias
4715 by a precise class.
4716 * infcmd.c (_initialize_infcmd): Likewise.
4717 * reverse.c (_initialize_reverse): Likewise.
4718 * stack.c (_initialize_stack): Likewise.
4719 * symfile.c (_initialize_symfile): Likewise.
4720 * tracepoint.c (_initialize_tracepoint): Likewise.
4721
7c05caf7
PW
47222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4723
4724 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
4725 when their aliased command is traversed.
4726 (help_cmd): Add fput_command_names_styled call to
4727 output command name and aliases when command has an alias.
4728
3b3aaacb
PW
47292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4730
4731 * cli/cli-decode.h (help_cmd_list): Remove declaration.
4732 * cli/cli-decode.c (help_cmd_list): Declare as static,
4733 remove prefix argument, use bool for recurse arg, rework to show the aliases of
4734 a command together with the command.
4735 (fput_command_name_styled, fput_command_names_styled): New functions.
4736 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
4737 fput_command_name_styled.
4738 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
4739 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
4740
7aa1b46f
PW
47412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4742
4743 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
4744 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
4745 * command.h (cmd_show_list): Likewise.
4746 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
4747 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
4748
89bcba74
PW
47492020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4750
4751 * unittests/command-def-selftests.c (traverse_command_structure):
4752 Verify all commands of a list have the same prefix command and
4753 that only the top cmdlist commands have a null prefix.
4754
3f4d92eb
PW
47552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4756
4757 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
4758 as prefix, not one of its aliases.
4759 (set_cmd_prefix): Remove.
4760 (do_add_cmd): Centralize the setting of the prefix of a command, when
4761 command is defined after its full chain of prefix commands.
4762 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
4763 (add_setshow_cmd_full): Likewise.
4764 (update_prefix_field_of_prefixed_commands): New function.
4765 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
4766 update_prefix_field_of_prefixed_commands.
4767 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
4768 addresses of remote_set_cmdlist and remote_show_cmdlist given
4769 as argument, not the address of an argument.
4770 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
4771 * gdb/remote.c (_initialize_remote): Likewise.
4772
0605465f
PW
47732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4774
4775 * cli/cli-cmds.c (alias_command): Check for an existing alias
4776 using lookup_cmd_composition, as valid_command_p is too strict
4777 and forbids aliases that are the prefix of an existing alias
4778 or command.
4779 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
4780 command is properly recognised as a valid command.
4781
58e6ac70
PW
47822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4783
4784 * unittests/help-doc-selftests.c: Rename to
4785 unittests/command-def-selftests.c
4786 * unittests/command-def-selftests.c (help_doc_tests): Update some
4787 comments.
4788 (command_structure_tests, traverse_command_structure): New namespace
4789 and function.
4790 (command_structure_invariants_tests): New function.
4791 (_initialize_command_def_selftests) Renamed from
4792 _initialize_help_doc_selftests, register command_structure_invariants
4793 selftest.
4794
a7b9ceb8
PW
47952020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4796
4797 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
4798 an alias of 'show'.
4799
b2188a06
JB
48002020-05-15 Joel Brobecker <brobecker@adacore.com>
4801
4802 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
4803 ada_is_fixed_point_type. Update all callers.
4804 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
4805 all callers.
4806 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
4807 Update all callers.
4808 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
4809 print_fixed_point_type. Update all callers.
4810 * ada-valprint.c (ada_value_print_num): Replace call to
4811 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
4812
a51951c2
KB
48132020-05-14 Kevin Buettner <kevinb@redhat.com>
4814
4815 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
4816 processors.
4817 (cpu_supports_bts): Add CV_AMD case.
4818
29d6859f
LM
48192020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
4820 Simon Marchi <simon.marchi@efficios.com>
4821
4822 * infrun.c (stop_all_threads): Collect multiple wait events at
4823 each pass.
4824
78134374
SM
48252020-05-14 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
4828 type::code instead.
4829
67607e24
SM
48302020-05-14 Simon Marchi <simon.marchi@efficios.com>
4831
4832 * gdbtypes.h (struct type) <code, set_code>: New methods.
4833 (TYPE_CODE): Use type::code. Change all call sites used to set
4834 the code to use type::set_code instead.
4835
a05575d3
TBA
48362020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4837 Tom de Vries <tdevries@suse.de>
4838 Pedro Alves <palves@redhat.com>
4839
4840 PR threads/25478
4841 * infrun.c (stop_all_threads): Do NOT ignore
4842 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
4843 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
4844 received.
4845 (handle_no_resumed): Remove code handling a live inferior with no
4846 threads.
4847 * remote.c (has_single_non_exited_thread): New.
4848 (remote_target::update_thread_list): Do not delete a thread if is
4849 the last thread of the process.
4850 * thread.c (thread_select): Call delete_exited_threads instead of
4851 prune_threads.
4852
6ad82919
TBA
48532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4854
4855 * infrun.c (stop_all_threads): Enable/disable thread events of all
4856 targets. Move a debug message denoting the end of the function
4857 into the SCOPED_EXIT block.
4858
d890404b
TBA
48592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4860
4861 * process-stratum-target.h: Include <set>.
4862 (all_non_exited_process_targets, switch_to_target_no_thread): New
4863 function declarations.
4864 * process-stratum-target.c (all_non_exited_process_targets)
4865 (switch_to_target_no_thread): New function implementations.
4866
293b3ebc
TBA
48672020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4868
4869 * infrun.c (handle_inferior_event): Extract out a piece of code
4870 into...
4871 (mark_non_executing_threads): ...this new function.
4872
7ca9b62a
TBA
48732020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4874
4875 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
4876 use.
4877
fc75c28b
TBA
48782020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4879
4880 * regcache.c (regcache_read_pc_protected): New function
4881 implementation that returns 0 if the PC cannot read via
4882 'regcache_read_pc'.
4883 * infrun.c (proceed): Call 'regcache_read_pc_protected'
4884 instead of 'regcache_read_pc'.
4885 (keep_going_pass_signal): Ditto.
4886
a89febbd
TT
48872020-05-13 Tom Tromey <tromey@adacore.com>
4888
4889 * ada-lang.c (align_value): Remove.
4890 (ada_template_to_fixed_record_type_1): Use align_up.
4891
f7e23710
TBA
48922020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4893
4894 * async-event.c: Update the copyright year.
4895 * async-event.h: Update the copyright year.
4896
02ff80c2
SM
48972020-05-12 Simon Marchi <simon.marchi@efficios.com>
4898
4899 * objfiles.h (is_addr_in_objfile,
4900 shared_objfile_contains_address_p): Return bool.
4901 * objfile.c (is_addr_in_objfile,
4902 shared_objfile_contains_address_p): Return bool.
4903
4fd6c7e8
TT
49042020-05-11 Tom Tromey <tromey@adacore.com>
4905
4906 * cli/cli-cmds.c (info_command): Restore.
4907 (_initialize_cli_cmds): Use add_prefix_command for "info".
4908 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
4909
5eb68a39
TT
49102020-05-11 Tom Tromey <tromey@adacore.com>
4911
4912 * ada-lang.c (ada_value_primitive_field): Now public.
4913 * ada-lang.h (ada_value_primitive_field): Declare.
4914 * ada-valprint.c (print_field_values): Use
4915 ada_value_primitive_field for wrapper fields.
4916
7666722f
TV
49172020-05-11 Tom de Vries <tdevries@suse.de>
4918
4919 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
4920 MODULE_DOMAIN.
4921
3ee6bb11
TV
49222020-05-11 Tom de Vries <tdevries@suse.de>
4923
4924 PR symtab/25941
4925 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
4926 with length 0, if not gdb-produced.
4927 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
4928
43434996
TV
49292020-05-09 Tom de Vries <tdevries@suse.de>
4930
4931 PR gdb/25955
4932 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
4933 calculation.
4934
2f78cffc
TT
49352020-05-09 Tom Tromey <tom@tromey.com>
4936
4937 * top.c (server_command): Now bool.
4938 * top.h (server_command): Now bool.
4939
4f7bc5ed
TT
49402020-05-08 Tom Tromey <tromey@adacore.com>
4941
4942 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
4943 already being processed.
4944
8be4b118
TT
49452020-05-08 Tom Tromey <tom@tromey.com>
4946
4947 * printcmd.c (struct display) <next>: Remove.
4948 <display>: New constructor.
4949 <exp_string>: Now a std::string.
4950 <enabled_p>: Now a bool.
4951 (display_number): Move definition earlier.
4952 (displays): Rename from display_chain. Now a std::vector.
4953 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
4954 (display_command): Update.
4955 (do_one_display, disable_display)
4956 (enable_disable_display_command, do_enable_disable_display):
4957 Update.
4958 (free_display): Remove.
4959 (clear_displays): Rewrite.
4960 (delete_display): Update.
4961 (map_display_numbers): Use function_view. Remove "data"
4962 parameter. Update.
4963 (do_delete_display): Remove.
4964 (undisplay_command): Update.
4965 (do_one_display, do_displays, disable_display)
4966 (info_display_command): Update.
4967 (do_enable_disable_display): Remove.
4968 (enable_disable_display_command)
4969 (clear_dangling_display_expressions): Update.
4970
94c93c35
TT
49712020-05-08 Tom Tromey <tom@tromey.com>
4972
4973 * symtab.c (set_symbol_cache_size)
4974 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
4975 (maintenance_print_symbol_cache_statistics): Update.
4976 * symmisc.c (print_symbol_bcache_statistics)
4977 (print_objfile_statistics, maintenance_print_objfiles)
4978 (maintenance_info_symtabs, maintenance_check_symtabs)
4979 (maintenance_expand_symtabs, maintenance_info_line_tables):
4980 Update.
4981 * symfile-debug.c (set_debug_symfile): Update.
4982 * source.c (forget_cached_source_info): Update.
4983 * python/python.c (gdbpy_progspaces): Update.
4984 * psymtab.c (maintenance_info_psymtabs): Update.
4985 * probe.c (parse_probes): Update.
4986 * linespec.c (iterate_over_all_matching_symtabs)
4987 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
4988 * guile/scm-progspace.c (gdbscm_progspaces): Update.
4989 * exec.c (exec_target::close): Update.
4990 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
4991 * breakpoint.c (print_one_breakpoint_location)
4992 (create_longjmp_master_breakpoint)
4993 (create_std_terminate_master_breakpoint): Update.
4994 * progspace.c (program_spaces): Now a std::vector.
4995 (maybe_new_address_space): Update.
4996 (add_program_space): Remove.
4997 (program_space::program_space): Update.
4998 (remove_program_space): Update.
4999 (number_of_program_spaces): Remove.
5000 (print_program_space, update_address_spaces): Update.
5001 * progspace.h (program_spaces): Change type.
5002 (ALL_PSPACES): Remove.
5003 (number_of_program_spaces): Don't declare.
5004 (struct program_space) <next>: Remove.
5005
a1fd1ac9
TT
50062020-05-08 Tom Tromey <tom@tromey.com>
5007
5008 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
5009 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
5010 (enable_break): Update.
5011 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
5012 (frv_fdpic_find_canonical_descriptor): Update.
5013 (frv_fetch_objfile_link_map): Update.
5014 * progspace.c (program_space::free_all_objfiles): Update.
5015 (program_space::solibs): New method.
5016 * progspace.h (struct program_space) <solibs>: New method.
5017 * solist.h (master_so_list): Don't declare.
5018 (ALL_SO_LIBS): Remove.
5019 * solib.h (so_list_head): Remove.
5020 (update_solib_list): Update comment.
5021 * solib.c (master_so_list): Remove.
5022 (solib_used, update_solib_list, solib_add)
5023 (info_sharedlibrary_command, clear_solib)
5024 (reload_shared_libraries_1, remove_user_added_objfile): Update.
5025
38eae084
TT
50262020-05-08 Tom Tromey <tom@tromey.com>
5027
5028 * extension.c (extension_languages): Now a std::array.
5029 (ALL_EXTENSION_LANGUAGES): Remove.
5030 (get_ext_lang_defn, get_ext_lang_of_file)
5031 (eval_ext_lang_from_control_command): Update.
5032 (finish_ext_lang_initialization)
5033 (auto_load_ext_lang_scripts_for_objfile)
5034 (ext_lang_type_printers::ext_lang_type_printers)
5035 (apply_ext_lang_type_printers)
5036 (ext_lang_type_printers::~ext_lang_type_printers)
5037 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
5038 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
5039 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
5040 (get_matching_xmethod_workers, ext_lang_colorize)
5041 (ext_lang_before_prompt): Update.
5042 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
5043
596dc4ad
TT
50442020-05-08 Tom Tromey <tom@tromey.com>
5045
5046 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
5047 overload.
5048 <swap_string, m_string>: Remove.
5049 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
5050 Update.
5051 * stabsread.c (define_symbol, read_type): Update.
5052 * linespec.c (find_linespec_symbols): Update.
5053 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
5054 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
5055 * dbxread.c (read_dbx_symtab): Update.
5056 * cp-support.h (cp_canonicalize_string_full)
5057 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
5058 Return unique_xmalloc_ptr.
5059 * cp-support.c (inspect_type): Update.
5060 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
5061 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
5062 Likewise.
5063 * c-typeprint.c (print_name_maybe_canonical): Update.
5064 * break-catch-throw.c (check_status_exception_catchpoint):
5065 Update.
5066
bf4cb9be
TV
50672020-05-08 Tom de Vries <tdevries@suse.de>
5068
5069 * infrun.c (follow_fork): Copy current_line and current_symtab to
5070 child thread.
5071
a1b68f28
SM
50722020-05-07 Simon Marchi <simon.marchi@efficios.com>
5073
5074 * async-event.c (struct async_signal_handler, struct
5075 async_event_handler): Reformat, remove typedef.
5076
98d48915
SM
50772020-05-07 Simon Marchi <simon.marchi@efficios.com>
5078
5079 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
5080 access thistype->main_type->dyn_prop_list directly.
5081
7aa91313
SM
50822020-05-07 Simon Marchi <simon.marchi@efficios.com>
5083
5084 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
5085 (remove_dyn_prop): Remove. Update all users to use
5086 type::remove_dyn_prop.
5087 * gdbtypes.c (remove_dyn_prop): Rename to...
5088 (type::remove_dyn_prop): ... this.
5089
5c54719c
SM
50902020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
5091
5092 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
5093 (add_dyn_prop): Remove. Update all users to use
5094 type::add_dyn_prop.
5095 * gdbtypes.c (add_dyn_prop): Rename to...
5096 (type::add_dyn_prop): ... this.
5097
24e99c6c
SM
50982020-05-07 Simon Marchi <simon.marchi@efficios.com>
5099
5100 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
5101 (get_dyn_prop): Remove. Update all users to use
5102 type::dyn_prop.
5103 * gdbtypes.c (get_dyn_prop): Rename to...
5104 (type::dyn_prop): ... this.
5105
0d4bf016
SM
51062020-05-06 Simon Marchi <simon.marchi@efficios.com>
5107
5108 * gdbtypes.h (struct main_type) <flag_static>: Remove.
5109
ac4a4f1c
SM
51102020-05-06 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
5113 instruction, skip it if it's there.
5114
a3bbacc1
SM
51152020-05-05 Simon Marchi <simon.marchi@efficios.com>
5116
5117 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
5118
c3236f84
SM
51192020-05-04 Simon Marchi <simon.marchi@efficios.com>
5120
5121 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
5122 * gdbtypes.c (recursive_dump_type): Remove use of
5123 TYPE_INCOMPLETE.
5124
3b6acaee
TT
51252020-05-03 Tom Tromey <tom@tromey.com>
5126
5127 * breakpoint.c (catch_command, tcatch_command): Remove.
5128 (_initialize_breakpoint): Use add_basic_prefix_cmd,
5129 add_show_prefix_cmd.
5130 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
5131 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
5132 Remove.
5133 (add_internal_problem_command): Use add_basic_prefix_cmd,
5134 add_show_prefix_cmd.
5135 * mips-tdep.c (set_mipsfpu_command): Remove.
5136 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
5137 * dwarf2/index-cache.c (set_index_cache_command): Remove.
5138 (_initialize_index_cache): Use add_basic_prefix_cmd.
5139 * memattr.c (dummy_cmd): Remove.
5140 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
5141 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
5142 (_initialize_tui_win): Use add_basic_prefix_cmd,
5143 add_show_prefix_cmd.
5144 * cli/cli-logging.c (set_logging_command): Remove.
5145 (_initialize_cli_logging): Use add_basic_prefix_cmd,
5146 add_show_prefix_cmd.
5147 (show_logging_command): Remove.
5148 * target.c (target_command): Remove.
5149 (add_target): Use add_basic_prefix_cmd.
5150
a51119cd
HD
51512020-05-02 Hannes Domani <ssbssa@yahoo.de>
5152
5153 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
5154
652fc23a 51552020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5156
652fc23a
PW
5157 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
5158 info_command.
5159
117539e6
KR
51602020-04-30 Kamil Rytarowski <n54@gmx.com>
5161
5162 * nbsd-nat.c (nbsd_enable_proc_events)
5163 (nbsd_nat_target::post_startup_inferior): Add.
5164 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
5165 (nbsd_nat_target::update_thread_list): Rewrite.
5166 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
5167 "PTRACE_LWP_CREATE".
5168 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
5169
102e38eb 51702020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 5171
102e38eb
PW
5172 * stack.c (_initialize_stack): Remove duplicated creation
5173 of "frame" command and "f" alias.
5174
ee9d1e5f
HD
51752020-04-30 Hannes Domani <ssbssa@yahoo.de>
5176
5177 PR gdb/18706
5178 * gdbtypes.c (check_typedef): Calculate size of array of
5179 stubbed type.
5180
627c7fb8
HD
51812020-04-30 Hannes Domani <ssbssa@yahoo.de>
5182
5183 PR gdb/15559
5184 * i386-tdep.c (i386_push_dummy_call): Call
5185 i386_thiscall_push_dummy_call.
5186 (i386_thiscall_push_dummy_call): New function.
5187 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
5188 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
5189 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
5190
ffc2844e
SM
51912020-04-29 Simon Marchi <simon.marchi@efficios.com>
5192
5193 * gdbarch.sh (do_read): Add shellcheck disable directive for
5194 warning SC2162.
5195
1207375d
SM
51962020-04-29 Simon Marchi <simon.marchi@efficios.com>
5197
5198 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
5199 "referenced but not assigned" warning.
5200
9fdb2916
SM
52012020-04-29 Simon Marchi <simon.marchi@efficios.com>
5202
5203 * gdbarch.sh: Remove code that sets fallbackdefault.
5204
759cea5e
SM
52052020-04-29 Simon Marchi <simon.marchi@efficios.com>
5206
5207 * gdbarch.sh: Use shell operators && and || instead of
5208 -a and -o.
5209
cb02ab24
SM
52102020-04-29 Simon Marchi <simon.marchi@efficios.com>
5211
5212 * gdbarch.sh: Use $(...) instead of `...`.
5213
a6fc5ffc
SM
52142020-04-29 Simon Marchi <simon.marchi@efficios.com>
5215
5216 * gdbarch.sh: Use double quotes around variables.
5217
8d113d13
SM
52182020-04-29 Simon Marchi <simon.marchi@efficios.com>
5219
5220 * gdbarch.sh: Use %s with printf, instead of variables in the
5221 format string.
5222
ed6acedd
TT
52232020-04-29 Tom Tromey <tromey@adacore.com>
5224
5225 PR ada/25875:
5226 * dwarf2/read.c (update_enumeration_type_from_children): Compute
5227 type fields here.
5228 (read_enumeration_type): Call
5229 update_enumeration_type_from_children later. Update comments.
5230 (process_enumeration_scope): Don't create type fields.
5231
b68b1b58
KR
52322020-04-29 Kamil Rytarowski <n54@gmx.com>
5233
5234 * nbsd-tdep.c: Include "xml-syscall.h".
5235 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
5236
f94b2e03
KR
52372020-04-29 Kamil Rytarowski <n54@gmx.com>
5238
5239 * nbsd-nat.c: Include "sys/wait.h".
5240 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
5241 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
5242 (nbsd_nat_target::remove_exec_catchpoint)
5243 (nbsd_nat_target::set_syscall_catchpoint): Add.
5244 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
5245 (nbsd_nat_target::insert_exec_catchpoint)
5246 (nbsd_nat_target::remove_exec_catchpoint)
5247 (nbsd_nat_target::set_syscall_catchpoint): Add.
5248 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
5249 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
5250 `nbsd_get_syscall_number'.
5251
fc49bc72
TT
52522020-04-29 Tom Tromey <tom@tromey.com>
5253
5254 * stack.c (print_block_frame_labels): Remove.
5255
d642b692
HD
52562020-04-29 Hannes Domani <ssbssa@yahoo.de>
5257
5258 PR gdb/17320
5259 * ada-valprint.c (val_print_packed_array_elements): Move array
5260 end bracket to new line.
5261 (ada_val_print_string): Remove extra spaces before first array
5262 element.
5263 * c-valprint.c (c_value_print_array): Likewise.
5264 * m2-valprint.c (m2_print_array_contents): Likewise.
5265 (m2_value_print_inner): Likewise.
5266 * p-valprint.c (pascal_value_print_inner): Likewise.
5267 * valprint.c (generic_val_print_array): Likewise.
5268 (value_print_array_elements): Move first array element and array
5269 end bracket to new line.
5270
ea90f227
TV
52712020-04-29 Tom de Vries <tdevries@suse.de>
5272
5273 PR symtab/25889
5274 * linespec.c (find_method): Fix ix calculation.
5275
4498ef4f
KR
52762020-04-28 Kamil Rytarowski <n54@gmx.com>
5277
5278 * syscalls/update-netbsd.sh: New file.
5279 * syscalls/netbsd.xml: Regenerate.
5280 * data-directory/Makefile.in: Register `netbsd.xml' in
5281 `SYSCALLS_FILES'.
5282
a55e30b5
SM
52832020-04-28 Simon Marchi <simon.marchi@efficios.com>
5284
5285 * syscalls/update-freebsd.sh: Add double quotes.
5286
2b2fbab8
TT
52872020-04-28 Tom Tromey <tom@tromey.com>
5288
5289 * NEWS: Update.
5290 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
5291 (cmdpy_init): Allow class_tui.
5292
a65189c9
TV
52932020-04-28 Mark Williams <mark@myosotissp.com>
5294
5295 PR gdb/24480
5296 * dwarf2read.c: Add missing assingments to list_in_scope when
5297 start_symtab was already called.
5298
1b95cdb7
SM
52992020-04-28 Simon Marchi <simon.marchi@efficios.com>
5300
5301 PR gdb/25881
5302 * dwarf2/read.c (offset_map_type): Use
5303 gdb:hash_enum<sect_offset> as hash function.
5304
15cd93d0
TV
53052020-04-28 Tom de Vries <tdevries@suse.de>
5306
5307 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
5308 with DW_AT_signature.
5309
1eb39914
SM
53102020-04-27 Simon Marchi <simon.marchi@efficios.com>
5311
5312 * configure.ac: Remove check for fs_base/gs_base in
5313 user_regs_struct.
5314 * configure: Re-generate.
5315 * config.in: Re-generate.
5316 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
5317 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
5318 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
5319
991a3e2e
LM
53202020-04-27 Luis Machado <luis.machado@linaro.org>
5321
5322 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
5323 problematic inline frame unwinding situation.
5324 * frame.c (frame_id_computed_p): New function.
5325 * frame.h (frame_id_computed_p): New prototype.
5326
361ba0e8
TT
53272020-04-26 Tom Tromey <tom@tromey.com>
5328
5329 * command.h (enum command_class) <class_pseudo>: Remove.
5330
bc3609fd
PW
53312020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5332
5333 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
5334 and whitespace.
5335
b9771db7
KR
53362020-04-25 Kamil Rytarowski <n54@gmx.com>
5337
ec16513e
SM
5338 * inf-ptrace.c (inf_ptrace_target::wait): Remove
5339 `PT_GET_PROCESS_STATE' block.
b9771db7 5340
7151c1af
TT
53412020-04-24 Tom Tromey <tom@tromey.com>
5342
5343 * symtab.h (symbol_get_demangled_name): Don't declare.
5344 * symtab.c (symbol_get_demangled_name): Remove.
5345 (general_symbol_info::natural_name)
5346 (general_symbol_info::demangled_name): Update.
5347
906bb4c5
TT
53482020-04-24 Tom Tromey <tom@tromey.com>
5349
5350 PR rust/25025:
5351 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
5352
bcfe6157
TT
53532020-04-24 Tom Tromey <tom@tromey.com>
5354
5355 PR symtab/12707:
5356 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
5357 exists.
5358 (new_symbol): Likewise.
5359 * compile/compile-object-load.c (get_out_value_type): Use
5360 symbol_matches_search_name.
5361
f049a313
TT
53622020-04-24 Tom Tromey <tom@tromey.com>
5363
5364 * dwarf2/read.c (add_partial_symbol): Do not call
5365 compute_and_set_names.
5366
76e288d1
TT
53672020-04-24 Tom Tromey <tom@tromey.com>
5368
5369 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
5370 overload.
5371
2467f4f6
TT
53722020-04-24 Tom Tromey <tom@tromey.com>
5373
5374 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
5375 (add_psymbol_to_list): New overload. Make old overload call new
5376 one.
5377 * psympriv.h (add_psymbol_to_list): New overload.
5378
e61108c9
TT
53792020-04-24 Tom Tromey <tom@tromey.com>
5380
5381 * dwarf2/read.c (partial_die_info::read) <case
5382 DW_AT_linkage_name>: Use value_as_string.
5383 (dwarf2_string_attr): Use value_as_string.
5384 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
5385 method.
5386 * dwarf2/attribute.c (attribute::value_as_string): New method.
5387
8c87a452
TT
53882020-04-24 Tom Tromey <tom@tromey.com>
5389
5390 * symtab.c (general_symbol_info::natural_name)
5391 (general_symbol_info::demangled_name): Check for language_rust.
5392
787de330
TT
53932020-04-24 Tom Tromey <tom@tromey.com>
5394
5395 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
5396 (dwarf2_physname): ... from here.
5397 (partial_die_info::read): Add Rust "{" hack.
5398
ff985671
TT
53992020-04-24 Tom Tromey <tom@tromey.com>
5400
5401 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
5402 method.
5403 (symbol_set_demangled_name): Don't declare.
5404 * symtab.c (general_symbol_info::set_demangled_name): Rename from
5405 symbol_set_demangled_name.
5406 (general_symbol_info::set_language)
5407 (general_symbol_info::compute_and_set_names): Update.
5408 * minsyms.c (minimal_symbol_reader::install): Update.
5409 * dwarf2/read.c (new_symbol): Update.
5410
1acda803
TT
54112020-04-24 Tom Tromey <tromey@adacore.com>
5412
5413 PR python/23662:
5414 * python/py-type.c (convert_field): Handle
5415 FIELD_LOC_KIND_DWARF_BLOCK.
5416 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
5417 (typy_get_dynamic): Nw function.
5418 (type_object_getset): Add "dynamic".
5419 * NEWS: Add entry.
5420
d656f129
TT
54212020-04-24 Tom Tromey <tromey@adacore.com>
5422
5423 * ada-typeprint.c (print_choices, print_variant_part)
5424 (print_record_field_types_dynamic): New functions.
5425 (print_record_field_types): Use print_record_field_types_dynamic.
5426
7d79de9a
TT
54272020-04-24 Tom Tromey <tromey@adacore.com>
5428
5429 * dwarf2/read.c (handle_data_member_location): New overload.
5430 (dwarf2_add_field): Use it.
5431 (decode_locdesc): Add "computed" parameter. Update comment.
5432 * gdbtypes.c (is_dynamic_type_internal): Also look for
5433 FIELD_LOC_KIND_DWARF_BLOCK.
5434 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
5435 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
5436 virtual base classes.
5437 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
5438 FIELD_LOC_KIND_DWARF_BLOCK.
5439
f8e89861
TT
54402020-04-24 Tom Tromey <tromey@adacore.com>
5441
5442 * dwarf2/read.c (read_structure_type): Handle dynamic length.
5443 * gdbtypes.c (is_dynamic_type_internal): Check
5444 TYPE_HAS_DYNAMIC_LENGTH.
5445 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
5446 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
5447 New macros.
5448 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
5449 constant.
5450
9c6a1327
TT
54512020-04-24 Tom Tromey <tromey@adacore.com>
5452
5453 * dwarf2/read.c (struct variant_field): Rewrite.
5454 (struct variant_part_builder): New.
5455 (struct nextfield): Remove "variant" field. Add "offset".
5456 (struct field_info): Add "current_variant_part" and
5457 "variant_parts".
5458 (alloc_discriminant_info): Remove.
5459 (alloc_rust_variant): New function.
5460 (quirk_rust_enum): Update.
5461 (dwarf2_add_field): Set "offset" member. Don't handle
5462 DW_TAG_variant_part.
5463 (offset_map_type): New typedef.
5464 (convert_variant_range, create_one_variant)
5465 (create_one_variant_part, create_variant_parts)
5466 (add_variant_property): New functions.
5467 (dwarf2_attach_fields_to_type): Call add_variant_property.
5468 (read_structure_type): Don't handle DW_TAG_variant_part.
5469 (handle_variant_part, handle_variant): New functions.
5470 (handle_struct_member_die): Use them.
5471 (process_structure_scope): Don't handle variant parts.
5472 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
5473 (struct discriminant_info): Remove.
5474 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
5475 (struct main_type) <flag_discriminated_union>: Remove.
5476 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
5477 (rust_enum_variant): Return int. Remove "contents". Rewrite.
5478 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
5479 Update.
5480 * valops.c (value_union_variant): Remove.
5481 * value.h (value_union_variant): Don't declare.
5482
b249d2c2
TT
54832020-04-24 Tom Tromey <tromey@adacore.com>
5484
5485 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
5486 (ada_value_primitive_packed_val): Update.
5487 * ada-valprint.c (ada_value_print_1): Update.
5488 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
5489 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
5490 just an address. Use evaluate_for_locexpr_baton.
5491 (dwarf2_evaluate_property): Update.
5492 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
5493 array_view.
5494 * findvar.c (default_read_var_value): Update.
5495 * gdbtypes.c (compute_variant_fields_inner)
5496 (resolve_dynamic_type_internal): Update.
5497 (resolve_dynamic_type): Change type of valaddr parameter.
5498 * gdbtypes.h (resolve_dynamic_type): Update.
5499 * valarith.c (value_subscripted_rvalue): Update.
5500 * value.c (value_from_contents_and_address): Update.
5501
61122aa9
TT
55022020-04-24 Tom Tromey <tromey@adacore.com>
5503
5504 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
5505 "push_initial_value" parameter.
5506 (dwarf2_evaluate_property): Likewise.
5507 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
5508
ef83a141
TT
55092020-04-24 Tom Tromey <tromey@adacore.com>
5510
5511 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
5512 (variant::matches, compute_variant_fields_recurse)
5513 (compute_variant_fields_inner, compute_variant_fields): New
5514 functions.
5515 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
5516 Use resolved_type after type is made.
5517 (operator==): Add new cases.
5518 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
5519 (struct discriminant_range, struct variant, struct variant_part):
5520 New.
5521 (union dynamic_prop_data) <variant_parts, original_type>: New
5522 members.
5523 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
5524 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
5525 constants.
5526 * value.c (unpack_bits_as_long): Now public.
5527 * value.h (unpack_bits_as_long): Declare.
5528
675127ec
TT
55292020-04-24 Tom Tromey <tromey@adacore.com>
5530
5531 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
5532 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
5533
9852ceef
HD
55342020-04-24 Hannes Domani <ssbssa@yahoo.de>
5535
5536 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
5537
7632c6ce
KR
55382020-04-24 Kamil Rytarowski <n54@gmx.com>
5539
5540 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
5541 (remove_fork_catchpoint, post_startup_inferior)
5542 (post_attach): Move...
5543 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
5544 (remove_fork_catchpoint, post_startup_inferior)
5545 (post_attach): ...here.
5546 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
5547 (remove_fork_catchpoint, post_startup_inferior)
5548 (post_attach): Move...
5549 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
5550 (remove_fork_catchpoint, post_startup_inferior)
5551 (post_attach): ...here.
5552
7be2bb4f
TT
55532020-04-24 Tom Tromey <tromey@adacore.com>
5554
5555 * nat/windows-nat.h (struct windows_thread_info)
5556 <pc_adjusted>: New member.
5557 * windows-nat.c (windows_fetch_one_register): Check
5558 pc_adjusted.
5559 (windows_nat_target::get_windows_debug_event)
5560 (windows_nat_target::wait): Set pc_adjusted.
5561
f80cb3b4
TV
55622020-04-24 Tom de Vries <tdevries@suse.de>
5563
5564 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
5565 Run gdb-add-index inside temp dir.
5566
29514b87
TT
55672020-04-23 Tom Tromey <tromey@adacore.com>
5568
5569 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
5570 in loop.
5571
5939967b
LM
55722020-04-23 Luis Machado <luis.machado@linaro.org>
5573
5574 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5575 get_frame_register instead of gdbarch_unwind_pc.
5576
70bc38f5
TV
55772020-04-23 Tom de Vries <tdevries@suse.de>
5578
5579 * symtab.c (lookup_global_symbol): Prefer def over decl.
5580
de82891c
TV
55812020-04-23 Tom de Vries <tdevries@suse.de>
5582
5583 PR symtab/25807
5584 * block.c (best_symbol, better_symbol): Promote to external.
5585 * block.h (best_symbol, better_symbol): Declare.
5586 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
5587 decl.
5588
ecc6c606
TT
55892020-04-23 Tom Tromey <tromey@adacore.com>
5590
5591 PR ada/25837:
5592 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
5593 "const char *", not a "const std::string &".
5594 <name_and_matcher::operator==>: Update.
5595 * unittests/lookup_name_info-selftests.c: Change type of
5596 "result".
5597
740480b8
TT
55982020-04-23 Tom Tromey <tom@tromey.com>
5599
5600 * inferior.h (iterate_over_inferiors): Don't declare.
5601 * inferior.c (iterate_over_inferiors): Remove.
5602 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
5603 Remove.
5604 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
5605 use iterate_over_inferiors.
5606 (darwin_resume_inferior_it)
5607 (struct resume_inferior_threads_param)
5608 (darwin_resume_inferior_threads_it): Remove.
5609 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
5610
ae3ab1f0
TV
56112020-04-23 Tom de Vries <tdevries@suse.de>
5612
5613 * blockframe.c (find_pc_partial_function): Use
5614 find_pc_sect_compunit_symtab rather than
5615 objfile->sf->qf->find_pc_sect_compunit_symtab.
5616
317d2668
TV
56172020-04-22 Tom de Vries <tdevries@suse.de>
5618
5619 PR symtab/25764
5620 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
5621 in psymtabs.
5622
eea9e357
TV
56232020-04-22 Tom de Vries <tdevries@suse.de>
5624
5625 PR symtab/25801
5626 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
5627 symtabs.
5628
3d5afab3
TV
56292020-04-22 Tom de Vries <tdevries@suse.de>
5630
5631 PR symtab/25700
5632 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
5633 CU if already created.
5634
d43b7a2d
TBA
56352020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5636
5637 * infrun.c (displaced_step_fixup): Switch to the event_thread
5638 before calling displaced_step_restore, not after.
5639
d89edf9b
MM
56402020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5641
5642 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
5643 its inferior is not recorded by us.
5644 (record_btrace_target_open): Replace call to
5645 all_non_exited_threads () with call to current_inferior
5646 ()->non_exited_threads ().
5647 (record_btrace_target::stop_recording): Likewise.
5648 (record_btrace_target::close): Likewise.
5649 (record_btrace_target::wait): Likewise.
5650 (record_btrace_target::record_stop_replaying): Likewise.
5651
5897fd49
MM
56522020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5653
5654 * btrace.c (btrace_enable): Throw an error on double enables and
5655 when enabling recording fails.
5656 (btrace_disable): Throw an error if the thread is not recorded.
5657
1a476b6d
MM
56582020-04-21 Markus Metzger <markus.t.metzger@intel.com>
5659
5660 * record-btrace.c (record_btrace_target::fetch_registers): Forward
5661 request if we do not have a thread_info.
5662
4778a5f8
TV
56632020-04-21 Tom de Vries <tdevries@suse.de>
5664
5665 PR gdb/25471
5666 * thread.c
5667 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
5668 exception in get_frame_id.
5669
0fa7617d
TT
56702020-04-20 Tom Tromey <tromey@adacore.com>
5671
5672 * python/python.c (struct gdbpy_event): Mark move constructor as
5673 noexcept.
5674 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
5675 constructor as noexcept.
5676 * completer.h (struct completion_result): Mark move constructor as
5677 noexcept.
5678 * completer.c (completion_result::completion_result): Use
5679 initialization style. Don't call reset_match_list.
5680
ad23bda0
MS
56812020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
5682
5683 * MAINTAINERS (Write After Approval): Add myself.
5684
45e1f031
TT
56852020-04-18 Tom Tromey <tom@tromey.com>
5686
5687 * windows-tdep.c (init_w32_command_list)
5688 (w32_prefix_command_valid): Restore.
5689 (_initialize_windows_tdep): Call init_w32_command_list.
5690
08feed99
TT
56912020-04-18 Tom Tromey <tom@tromey.com>
5692
5693 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
5694 * value.c (value_fn_field): Update.
5695 * valops.c (find_function_in_inferior)
5696 (value_allocate_space_in_inferior): Update.
5697 * tui/tui-winsource.c (tui_update_source_windows_with_line):
5698 Update.
5699 * tui/tui-source.c (tui_source_window::set_contents): Update.
5700 * symtab.c (lookup_global_or_static_symbol)
5701 (find_function_start_sal_1, skip_prologue_sal)
5702 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
5703 * symmisc.c (dump_msymbols, dump_symtab_1)
5704 (maintenance_print_one_line_table): Update.
5705 * symfile.c (init_entry_point_info, section_is_mapped)
5706 (list_overlays_command, simple_read_overlay_table)
5707 (simple_overlay_update_1): Update.
5708 * stap-probe.c (handle_stap_probe): Update.
5709 * stabsread.c (dbx_init_float_type, define_symbol)
5710 (read_one_struct_field, read_enum_type, read_range_type): Update.
5711 * source.c (info_line_command): Update.
5712 * python/python.c (gdbpy_source_objfile_script)
5713 (gdbpy_execute_objfile_script): Update.
5714 * python/py-type.c (save_objfile_types): Update.
5715 * python/py-objfile.c (py_free_objfile): Update.
5716 * python/py-inferior.c (python_new_objfile): Update.
5717 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
5718 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
5719 (maintenance_check_psymtabs): Update.
5720 * printcmd.c (info_address_command): Update.
5721 * objfiles.h (struct objfile) <arch>: New method, from
5722 get_objfile_arch.
5723 (get_objfile_arch): Don't declare.
5724 * objfiles.c (get_objfile_arch): Remove.
5725 (filter_overlapping_sections): Update.
5726 * minsyms.c (msymbol_is_function): Update.
5727 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
5728 (output_nondebug_symbol): Update.
5729 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
5730 (mdebug_expand_psymtab): Update.
5731 * machoread.c (macho_add_oso_symfile): Update.
5732 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
5733 Update.
5734 * linux-fork.c (checkpoint_command): Update.
5735 * linespec.c (convert_linespec_to_sals): Update.
5736 * jit.c (finalize_symtab): Update.
5737 * infrun.c (insert_exception_resume_from_probe): Update.
5738 * ia64-tdep.c (ia64_find_unwind_table): Update.
5739 * hppa-tdep.c (internalize_unwinds): Update.
5740 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
5741 Update.
5742 * gcore.c (call_target_sbrk): Update.
5743 * elfread.c (record_minimal_symbol, elf_symtab_read)
5744 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
5745 (elf_gnu_ifunc_resolve_by_got): Update.
5746 * dwarf2/read.c (create_addrmap_from_index)
5747 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
5748 (read_debug_names_from_section)
5749 (process_psymtab_comp_unit_reader, add_partial_symbol)
5750 (add_partial_subprogram, process_full_comp_unit)
5751 (read_file_scope, read_func_scope, read_lexical_block_scope)
5752 (read_call_site_scope, dwarf2_ranges_read)
5753 (dwarf2_record_block_ranges, dwarf2_add_field)
5754 (mark_common_block_symbol_computed, read_tag_pointer_type)
5755 (read_tag_string_type, dwarf2_init_float_type)
5756 (dwarf2_init_complex_target_type, read_base_type)
5757 (partial_die_info::read, partial_die_info::read)
5758 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
5759 (dwarf2_fetch_die_loc_sect_off): Update.
5760 * dwarf2/loc.c (dwarf2_find_location_expression)
5761 (class dwarf_evaluate_loc_desc, rw_pieced_value)
5762 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
5763 (dwarf2_loc_desc_get_symbol_read_needs)
5764 (locexpr_describe_location_piece, locexpr_describe_location_1)
5765 (loclist_describe_location): Update.
5766 * dwarf2/index-write.c (write_debug_names): Update.
5767 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
5768 * dtrace-probe.c (dtrace_process_dof): Update.
5769 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
5770 (process_one_symbol): Update.
5771 * ctfread.c (ctf_init_float_type, read_base_type): Update.
5772 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
5773 (coff_read_enum_type): Update.
5774 * cli/cli-cmds.c (edit_command, list_command): Update.
5775 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
5776 * breakpoint.c (create_overlay_event_breakpoint)
5777 (create_longjmp_master_breakpoint)
5778 (create_std_terminate_master_breakpoint)
5779 (create_exception_master_breakpoint, get_sal_arch): Update.
5780 * block.c (block_gdbarch): Update.
5781 * annotate.c (annotate_source_line): Update.
5782
0743fc83
TT
57832020-04-17 Tom Tromey <tromey@adacore.com>
5784
5785 * auto-load.c (show_auto_load_cmd): Remove.
5786 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
5787 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
5788 (maintenance_print_arc_command): Remove.
5789 * tui/tui-win.c (tui_command): Remove.
5790 (tui_get_cmd_list): Use add_basic_prefix_cmd.
5791 * tui/tui-layout.c (tui_layout_command): Remove.
5792 (_initialize_tui_layout): Use add_basic_prefix_cmd.
5793 * python/python.c (user_set_python, user_show_python): Remove.
5794 (_initialize_python): Use add_basic_prefix_cmd,
5795 add_show_prefix_cmd.
5796 * guile/guile.c (set_guile_command, show_guile_command): Remove.
5797 (install_gdb_commands): Use add_basic_prefix_cmd,
5798 add_show_prefix_cmd.
5799 (info_guile_command): Remove.
5800 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
5801 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
5802 add_show_prefix_cmd.
5803 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
5804 Remove do_set and do_show parameters.
5805 * cli/cli-style.c (set_style, show_style): Remove.
5806 (_initialize_cli_style): Use add_basic_prefix_cmd,
5807 add_show_prefix_cmd.
5808 (cli_style_option::add_setshow_commands): Remove do_set and
5809 do_show parameters.
5810 (cli_style_option::add_setshow_commands): Use
5811 add_basic_prefix_cmd, add_show_prefix_cmd.
5812 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
5813 (set_style_name): Remove.
5814 * cli/cli-dump.c (dump_command, append_command): Remove.
5815 (srec_dump_command, ihex_dump_command, verilog_dump_command)
5816 (tekhex_dump_command, binary_dump_command)
5817 (binary_append_command): Remove.
5818 (_initialize_cli_dump): Use add_basic_prefix_cmd.
5819 * windows-tdep.c (w32_prefix_command_valid): Remove global.
5820 (init_w32_command_list): Remove; move into ...
5821 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
5822 * valprint.c (set_print, show_print, set_print_raw)
5823 (show_print_raw): Remove.
5824 (_initialize_valprint): Use add_basic_prefix_cmd,
5825 add_show_prefix_cmd.
5826 * typeprint.c (set_print_type, show_print_type): Remove.
5827 (_initialize_typeprint): Use add_basic_prefix_cmd,
5828 add_show_prefix_cmd.
5829 * record.c (set_record_command, show_record_command): Remove.
5830 (_initialize_record): Use add_basic_prefix_cmd,
5831 add_show_prefix_cmd.
5832 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
5833 add_show_prefix_cmd.
5834 (info_command, show_command, set_debug, show_debug): Remove.
5835 * top.h (set_history, show_history): Don't declare.
5836 * top.c (set_history, show_history): Remove.
5837 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
5838 (unset_tdesc_cmd): Remove.
5839 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
5840 add_show_prefix_cmd.
5841 * symtab.c (info_module_command): Remove.
5842 (_initialize_symtab): Use add_basic_prefix_cmd.
5843 * symfile.c (overlay_command): Remove.
5844 (_initialize_symfile): Use add_basic_prefix_cmd.
5845 * sparc64-tdep.c (info_adi_command): Remove.
5846 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
5847 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
5848 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
5849 add_show_prefix_cmd.
5850 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
5851 (_initialize_serial): Use add_basic_prefix_cmd,
5852 add_show_prefix_cmd.
5853 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
5854 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
5855 add_show_prefix_cmd.
5856 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
5857 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
5858 add_show_prefix_cmd.
5859 * riscv-tdep.c (show_riscv_command, set_riscv_command)
5860 (show_debug_riscv_command, set_debug_riscv_command): Remove.
5861 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
5862 add_show_prefix_cmd.
5863 * remote.c (remote_command, set_remote_cmd): Remove.
5864 (_initialize_remote): Use add_basic_prefix_cmd.
5865 * record-full.c (set_record_full_command)
5866 (show_record_full_command): Remove.
5867 (_initialize_record_full): Use add_basic_prefix_cmd,
5868 add_show_prefix_cmd.
5869 * record-btrace.c (cmd_set_record_btrace)
5870 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
5871 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
5872 (cmd_show_record_btrace_pt): Remove.
5873 (_initialize_record_btrace): Use add_basic_prefix_cmd,
5874 add_show_prefix_cmd.
5875 * ravenscar-thread.c (set_ravenscar_command)
5876 (show_ravenscar_command): Remove.
5877 (_initialize_ravenscar): Use add_basic_prefix_cmd,
5878 add_show_prefix_cmd.
5879 * mips-tdep.c (show_mips_command, set_mips_command)
5880 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
5881 add_show_prefix_cmd.
5882 * maint.c (maintenance_command, maintenance_info_command)
5883 (maintenance_check_command, maintenance_print_command)
5884 (maintenance_set_cmd, maintenance_show_cmd): Remove.
5885 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
5886 add_show_prefix_cmd.
5887 (show_per_command_cmd): Remove.
5888 * maint-test-settings.c (maintenance_set_test_settings_cmd):
5889 Remove.
5890 (maintenance_show_test_settings_cmd): Remove.
5891 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
5892 add_show_prefix_cmd.
5893 * maint-test-options.c (maintenance_test_options_command):
5894 Remove.
5895 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
5896 * macrocmd.c (macro_command): Remove
5897 (_initialize_macrocmd): Use add_basic_prefix_cmd.
5898 * language.c (set_check, show_check): Remove.
5899 (_initialize_language): Use add_basic_prefix_cmd,
5900 add_show_prefix_cmd.
5901 * infcmd.c (unset_command): Remove.
5902 (_initialize_infcmd): Use add_basic_prefix_cmd.
5903 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
5904 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
5905 add_show_prefix_cmd.
5906 * go32-nat.c (go32_info_dos_command): Remove.
5907 (_initialize_go32_nat): Use add_basic_prefix_cmd.
5908 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
5909 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
5910 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
5911 (_initialize_frame): Use add_basic_prefix_cmd,
5912 add_show_prefix_cmd.
5913 * dcache.c (set_dcache_command, show_dcache_command): Remove.
5914 (_initialize_dcache): Use add_basic_prefix_cmd,
5915 add_show_prefix_cmd.
5916 * cp-support.c (maint_cplus_command): Remove.
5917 (_initialize_cp_support): Use add_basic_prefix_cmd.
5918 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
5919 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
5920 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
5921 add_basic_prefix_cmd, add_show_prefix_cmd.
5922 * breakpoint.c (save_command): Remove.
5923 (_initialize_breakpoint): Use add_basic_prefix_cmd.
5924 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
5925 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
5926 add_show_prefix_cmd.
5927 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
5928 (set_ada_command, show_ada_command): Remove.
5929 (_initialize_ada_language): Use add_basic_prefix_cmd,
5930 add_show_prefix_cmd.
5931 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
5932
3557f442
KR
59332020-04-16 Kamil Rytarowski <n54@gmx.com>
5934
5935 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
5936 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
5937
16197208
SM
59382020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
5941 warning messages.
5942
00ac85d3
SM
59432020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
5944
5945 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
5946 import table is not at beginning of .idata section.
5947
381ce63f
PA
59482020-04-16 Pedro Alves <palves@redhat.com>
5949
5950 * inferior.c (delete_inferior): Use delete operator directly
5951 instead of delete_program_space.
5952 * progspace.c (add_program_space): New, factored out from
5953 program_space::program_space.
5954 (remove_program_space): New, factored out from
5955 delete_program_space.
5956 (program_space::program_space): Remove intro comment. Rewrite.
5957 (program_space::~program_space): Remove intro comment. Call
5958 remove_program_space.
5959 (delete_program_space): Delete.
5960 * progspace.h (program_space::program_space): Make explicit. Move
5961 intro comment here, adjusted.
5962 (program_space::~program_space): Move intro comment here,
5963 adjusted.
5964 (delete_program_space): Remove.
5965
a010605f
TT
59662020-04-16 Tom Tromey <tromey@adacore.com>
5967
5968 * windows-nat.c (windows_nat::handle_access_violation): New
5969 function.
5970 * nat/windows-nat.h (handle_access_violation): Declare.
5971 * nat/windows-nat.c (handle_exception): Move Cygwin code to
5972 windows-nat.c. Call handle_access_violation.
5973
efba5c23
TV
59742020-04-16 Tom de Vries <tdevries@suse.de>
5975
5976 PR symtab/25791
5977 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
5978 CUs without psymtab.
5979
97ed802d
KB
59802020-04-16 Kevin Buettner <kevinb@redhat.com>
5981
5982 * python/python.c (do_start_initialization): Don't call
5983 PyEval_InitThreads for Python 3.9 and beyond.
5984
c7d64809
KR
59852020-04-15 Kamil Rytarowski <n54@gmx.com>
5986
5987 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
5988 thread functions.
5989 (obsd_nat_target::wait): Likewise.
5990
ce127a96
TT
59912020-04-15 Tom Tromey <tromey@adacore.com>
5992
5993 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5994 (DEBUG_EXCEPT): Use debug_printf.
5995
99f1bc6a
AB
59962020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
5997
5998 * completer.c (class completion_tracker::completion_hash_entry)
5999 <hash_name>: New member function.
6000 (completion_tracker::discard_completions): New callback to hash a
6001 completion_hash_entry, pass this to htab_create_alloc.
6002
a0e9b532
JT
60032016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
6004
6005 * windows-nat.c (windows_make_so): Warn rather than stopping with
6006 an error if realpath() fails.
6007
06ca5dd4
KR
60082020-04-14 Kamil Rytarowski <n54@gmx.com>
6009
6010 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
6011 (nbsd_nat_target::info_proc): Add do_status.
6012
194d088f
TV
60132020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
6014 Tom de Vries <tdevries@suse.de>
6015
6016 PR symtab/25718
6017 * psympriv.h (struct partial_symtab::read_symtab)
6018 (struct partial_symtab::expand_psymtab)
6019 (struct partial_symtab::read_dependencies): Update comments.
6020 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
6021 read_symtab for includer.
6022 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
6023 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
6024 (struct dwarf2_include_psymtab::m_readin): Remove.
6025 (struct dwarf2_include_psymtab::includer): New member function.
6026 (dwarf2_psymtab::expand_psymtab): Assert !readin.
6027
c1a66c06
TV
60282020-04-14 Tom de Vries <tdevries@suse.de>
6029
6030 PR symtab/25720
6031 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
6032 with NULL symbol_matcher and lookup_name.
6033 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
6034 and lookup_name.
6035 * dwarf2/read.c (dw2_expand_symtabs_matching)
6036 (dw2_debug_names_expand_symtabs_matching): Same.
6037 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
6038 Make lookup_name a pointer. Update comment.
6039 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
6040 lookup_name being a pointer.
6041 * symfile.c (expand_symtabs_matching): Same.
6042 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
6043 * linespec.c (iterate_over_all_matching_symtabs): Same.
6044
400b5eca
TT
60452020-04-13 Tom Tromey <tom@tromey.com>
6046
6047 * run-on-main-thread.c: Update include.
6048 * unittests/main-thread-selftests.c: Update include.
6049 * tui/tui-win.c: Update include.
6050 * tui/tui-io.c: Update include.
6051 * tui/tui-interp.c: Update include.
6052 * tui/tui-hooks.c: Update include.
6053 * top.h: Update include.
6054 * top.c: Update include.
6055 * ser-base.c: Update include.
6056 * remote.c: Update include.
6057 * remote-notif.c: Update include.
6058 * remote-fileio.c: Update include.
6059 * record-full.c: Update include.
6060 * record-btrace.c: Update include.
6061 * python/python.c: Update include.
6062 * posix-hdep.c: Update include.
6063 * mingw-hdep.c: Update include.
6064 * mi/mi-main.c: Update include.
6065 * mi/mi-interp.c: Update include.
6066 * main.c: Update include.
6067 * linux-nat.c: Update include.
6068 * interps.c: Update include.
6069 * infrun.c: Update include.
6070 * inf-loop.c: Update include.
6071 * event-top.c: Update include.
6072 * event-loop.c: Move to ../gdbsupport/.
6073 * event-loop.h: Move to ../gdbsupport/.
6074 * async-event.h: Update include.
6075 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
6076
93b54c8e
TT
60772020-04-13 Tom Tromey <tom@tromey.com>
6078
6079 * tui/tui-win.c: Include async-event.h.
6080 * remote.c: Include async-event.h.
6081 * remote-notif.c: Include async-event.h.
6082 * record-full.c: Include async-event.h.
6083 * record-btrace.c: Include async-event.h.
6084 * infrun.c: Include async-event.h.
6085 * event-top.c: Include async-event.h.
6086 * event-loop.h: Move some declarations to async-event.h.
6087 * event-loop.c: Don't include ser-event.h or top.h. Move some
6088 code to async-event.c.
6089 * async-event.h: New file.
6090 * async-event.c: New file.
6091 * Makefile.in (COMMON_SFILES): Add async-event.c.
6092 (HFILES_NO_SRCDIR): Add async-event.h.
6093
c1cd3163
TT
60942020-04-13 Tom Tromey <tom@tromey.com>
6095
6096 * utils.c (flush_streams): New function.
6097 * event-loop.c (gdb_wait_for_event): Call flush_streams.
6098
29f2bf4f
TT
60992020-04-13 Tom Tromey <tom@tromey.com>
6100
6101 * event-loop.c (handle_file_event): Use warning, not
6102 printf_unfiltered.
6103
98029d02
TT
61042020-04-13 Tom Tromey <tom@tromey.com>
6105
6106 * event-loop.c: Include <chrono>.
6107
06cc9596
TT
61082020-04-13 Tom Tromey <tom@tromey.com>
6109
6110 * gdb_select.h: Move to ../gdbsupport/.
6111 * event-loop.c: Update include path.
6112 * top.c: Update include path.
6113 * ser-base.c: Update include path.
6114 * ui-file.c: Update include path.
6115 * ser-tcp.c: Update include path.
6116 * guile/scm-ports.c: Update include path.
6117 * posix-hdep.c: Update include path.
6118 * ser-unix.c: Update include path.
6119 * gdb_usleep.c: Update include path.
6120 * mingw-hdep.c: Update include path.
6121 * inflow.c: Update include path.
6122 * infrun.c: Update include path.
6123 * event-top.c: Update include path.
6124
8ae8e197
TT
61252020-04-13 Tom Tromey <tom@tromey.com>
6126
6127 * configure: Rebuild.
6128 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
6129
58cf28e8
TT
61302020-04-13 Tom Tromey <tom@tromey.com>
6131
6132 * event-loop.h (start_event_loop): Don't declare.
6133 * event-loop.c (start_event_loop): Move...
6134 * main.c (start_event_loop): ...here. Now static.
6135
b7f999ae
SDJ
61362020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
6137
6138 * MAINTAINERS: Update my email address.
6139
1085dfd4
KR
61402020-04-12 Kamil Rytarowski <n54@gmx.com>
6141
6142 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
6143 IP_ALL.
6144
49d1d1f5
KR
61452020-04-12 Kamil Rytarowski <n54@gmx.com>
6146
6147 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 6148 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 6149
b4848d2a
KR
61502020-04-12 Kamil Rytarowski <n54@gmx.com>
6151
6152 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 6153 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 6154
51c133d5
KR
61552020-04-12 Kamil Rytarowski <n54@gmx.com>
6156
6157 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
6158
54b8cbd0
KR
61592020-04-11 Kamil Rytarowski <n54@gmx.com>
6160
6161 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
6162 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
6163 (nbsd_nat_target::info_proc): New functions.
6164 * nbsd-nat.c (kinfo_get_vmmap): New function.
6165 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
6166 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
6167 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
6168 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
6169 functions.
6170 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
6171 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
6172 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
6173 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
6174 (KINFO_VME_FLAG_GROWS_DOWN): New.
6175
cf83625d
AS
61762020-04-10 Artur Shepilko <nomadbyte@gmail.com>
6177
6178 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
6179 bit shift.
6180
0c4311ab
TT
61812020-04-10 Tom Tromey <tromey@adacore.com>
6182
6183 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
6184
3e65b3e9
TT
61852020-04-10 Tom Tromey <tromey@adacore.com>
6186
6187 * symtab.c (get_symbol_address, get_msymbol_address): Skip
6188 separate debug files.
6189
13302e95
HD
61902020-04-10 Hannes Domani <ssbssa@yahoo.de>
6191
6192 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6193 Move to...
6194 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
6195 ... here.
6196 * windows-nat.c (windows_nat_target::get_windows_debug_event):
6197 Check for STATUS_WX86_BREAKPOINT.
6198 (windows_nat_target::wait): Same.
6199
bdfc1e8a
TV
62002020-04-10 Tom de Vries <tdevries@suse.de>
6201
6202 PR cli/25808
6203 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
6204
f4460aec
SM
62052020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
6206
6207 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
6208 (Write After Approval): Remove Tom de Vries.
6209
a25198bb
BE
62102020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
6211
6212 revert partially:
6213 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6214
aac66a4c
SM
6215 * buildsym.c (record_line): Fix undefined behavior and preserve
6216 lines at eof.
a25198bb 6217
206c98a6
KR
62182020-04-09 Kamil Rytarowski <n54@gmx.com>
6219
6220 * auxv.h (svr4_auxv_parse): New.
6221 * auxv.c (default_auxv_parse): Split into default_auxv_parse
6222 and generic_auxv_parse.
6223 (svr4_auxv_parse): Add.
6224 * obsd-tdep.c: Include "auxv.h".
6225 (obsd_auxv_parse): Remove.
6226 (obsd_init_abi): Remove comment.
6227 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
6228 from `obsd_auxv_parse' to `svr4_auxv_parse'.
6229 * nbsd-tdep.c: Include "auxv.h".
6230 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
6231
71fbdbaf
TT
62322020-04-08 Tom Tromey <tromey@adacore.com>
6233
6234 * nat/windows-nat.h (last_wait_event): Don't declare.
6235 (wait_for_debug_event): Update comment.
6236 * nat/windows-nat.c (last_wait_event): Now static.
6237
2c1d95e8
TT
62382020-04-08 Tom Tromey <tromey@adacore.com>
6239
6240 * windows-nat.c (wait_for_debug_event): Move to
6241 nat/windows-nat.c.
6242 * nat/windows-nat.h (wait_for_debug_event): Declare.
6243 * nat/windows-nat.c (wait_for_debug_event): Move from
6244 windows-nat.c. No longer static.
6245
d2977bc4
TT
62462020-04-08 Tom Tromey <tromey@adacore.com>
6247
6248 * windows-nat.c (get_windows_debug_event): Use
6249 fetch_pending_stop.
6250 * nat/windows-nat.h (fetch_pending_stop): Declare.
6251 * nat/windows-nat.c (fetch_pending_stop): New function.
6252
e758e19c
TT
62532020-04-08 Tom Tromey <tromey@adacore.com>
6254
6255 * windows-nat.c (windows_continue): Use matching_pending_stop and
6256 continue_last_debug_event.
6257 * nat/windows-nat.h (matching_pending_stop)
6258 (continue_last_debug_event): Declare.
6259 * nat/windows-nat.c (DEBUG_EVENTS): New define.
6260 (matching_pending_stop, continue_last_debug_event): New
6261 functions.
6262
8d30e395
TT
62632020-04-08 Tom Tromey <tromey@adacore.com>
6264
6265 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
6266 (handle_exception_result): Move to nat/windows-nat.h.
6267 (DEBUG_EXCEPTION_SIMPLE): Remove.
6268 (windows_nat::handle_ms_vc_exception): New function.
6269 (handle_exception): Move to nat/windows-nat.c.
6270 (get_windows_debug_event): Update.
6271 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
6272 nat/windows-nat.c.
6273 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
6274 (handle_exception_result): Move from windows-nat.c.
6275 (handle_exception): Declare.
6276 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
6277 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
6278 windows-nat.c.
6279
29de418d
TT
62802020-04-08 Tom Tromey <tromey@adacore.com>
6281
6282 * windows-nat.c (exception_count, event_count): Remove.
6283 (handle_exception, get_windows_debug_event)
6284 (do_initial_windows_stuff): Update.
6285
a816ba18
TT
62862020-04-08 Tom Tromey <tromey@adacore.com>
6287
6288 * windows-nat.c (windows_nat::handle_load_dll)
6289 (windows_nat::handle_unload_dll): Rename. No longer static.
6290 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
6291 Declare.
6292
a00caa12
TT
62932020-04-08 Tom Tromey <tromey@adacore.com>
6294
6295 * complaints.h (stop_whining): Declare at top-level.
6296 (complaint): Don't declare stop_whining.
6297
d41b524f
TT
62982020-04-08 Tom Tromey <tromey@adacore.com>
6299
6300 * windows-nat.c (windows_nat::handle_output_debug_string):
6301 Rename. No longer static.
6302 * nat/windows-nat.h (handle_output_debug_string): Declare.
6303
3c76026d
TT
63042020-04-08 Tom Tromey <tromey@adacore.com>
6305
6306 * windows-nat.c (current_process_handle, current_process_id)
6307 (main_thread_id, last_sig, current_event, last_wait_event)
6308 (current_windows_thread, desired_stop_thread_id, pending_stops)
6309 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
6310 (display_selectors, fake_create_process)
6311 (get_windows_debug_event): Update.
6312 * nat/windows-nat.h (current_process_handle, current_process_id)
6313 (main_thread_id, last_sig, current_event, last_wait_event)
6314 (current_windows_thread, desired_stop_thread_id, pending_stops)
6315 (struct pending_stop, siginfo_er): Move from windows-nat.c.
6316 * nat/windows-nat.c (current_process_handle, current_process_id)
6317 (main_thread_id, last_sig, current_event, last_wait_event)
6318 (current_windows_thread, desired_stop_thread_id, pending_stops)
6319 (siginfo_er): New globals. Move from windows-nat.c.
6320
9d8679cc
TT
63212020-04-08 Tom Tromey <tromey@adacore.com>
6322
6323 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
6324 (handle_load_dll): Update.
6325 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
6326
28688adf
TT
63272020-04-08 Tom Tromey <tromey@adacore.com>
6328
6329 * windows-nat.c (enum thread_disposition_type): Move to
6330 nat/windows-nat.h.
6331 (windows_nat::thread_rec): Rename from thread_rec. No longer
6332 static.
6333 (windows_add_thread, windows_nat_target::fetch_registers)
6334 (windows_nat_target::store_registers, handle_exception)
6335 (windows_nat_target::resume, get_windows_debug_event)
6336 (windows_nat_target::get_tib_address)
6337 (windows_nat_target::thread_name)
6338 (windows_nat_target::thread_alive): Update.
6339 * nat/windows-nat.h (enum thread_disposition_type): Move from
6340 windows-nat.c.
6341 (thread_rec): Declare.
6342
4834dad0
TT
63432020-04-08 Tom Tromey <tromey@adacore.com>
6344
6345 * windows-nat.c: Add "using namespace".
6346 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
6347 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
6348
65bafd5b
TT
63492020-04-08 Tom Tromey <tromey@adacore.com>
6350
6351 * nat/windows-nat.h (struct windows_thread_info): Declare
6352 destructor.
6353 * nat/windows-nat.c (~windows_thread_info): New.
6354
0a4afda3
TT
63552020-04-08 Tom Tromey <tromey@adacore.com>
6356
6357 PR gdb/22992
6358 * windows-nat.c (current_event): Update comment.
6359 (last_wait_event, desired_stop_thread_id): New globals.
6360 (struct pending_stop): New.
6361 (pending_stops): New global.
6362 (windows_nat_target) <stopped_by_sw_breakpoint>
6363 <supports_stopped_by_sw_breakpoint>: New methods.
6364 (windows_fetch_one_register): Add assertions. Adjust PC.
6365 (windows_continue): Handle pending stops. Suspend other threads
6366 when stepping. Use last_wait_event
6367 (wait_for_debug_event): New function.
6368 (get_windows_debug_event): Use wait_for_debug_event. Handle
6369 pending stops. Queue spurious stops.
6370 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
6371 (windows_nat_target::kill): Use wait_for_debug_event.
6372 * nat/windows-nat.h (struct windows_thread_info)
6373 <stopped_at_software_breakpoint>: New field.
6374 * nat/windows-nat.c (windows_thread_info::resume): Clear
6375 stopped_at_software_breakpoint.
6376
8e61ebec
TT
63772020-04-08 Tom Tromey <tromey@adacore.com>
6378
6379 * windows-nat.c (enum thread_disposition_type): New.
6380 (thread_rec): Replace "get_context" parameter with "disposition";
6381 change type.
6382 (windows_add_thread, windows_nat_target::fetch_registers)
6383 (windows_nat_target::store_registers, handle_exception)
6384 (windows_nat_target::resume, get_windows_debug_event)
6385 (windows_nat_target::get_tib_address)
6386 (windows_nat_target::thread_name)
6387 (windows_nat_target::thread_alive): Update.
6388
98a03287
TT
63892020-04-08 Tom Tromey <tromey@adacore.com>
6390
6391 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
6392 (windows_continue): Use windows_continue::resume.
6393 * nat/windows-nat.h (struct windows_thread_info) <suspend,
6394 resume>: Declare new methods.
6395 * nat/windows-nat.c: New file.
6396 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
6397
7c7411bc
TT
63982020-04-08 Tom Tromey <tromey@adacore.com>
6399
6400 * windows-nat.c (windows_add_thread, windows_delete_thread)
6401 (windows_nat_target::fetch_registers)
6402 (windows_nat_target::store_registers, fake_create_process)
6403 (windows_nat_target::resume, windows_nat_target::resume)
6404 (get_windows_debug_event, windows_nat_target::wait)
6405 (windows_nat_target::pid_to_str)
6406 (windows_nat_target::get_tib_address)
6407 (windows_nat_target::get_ada_task_ptid)
6408 (windows_nat_target::thread_name)
6409 (windows_nat_target::thread_alive): Use lwp, not tid.
6410
2950fdf7
TT
64112020-04-08 Tom Tromey <tromey@adacore.com>
6412
6413 * windows-nat.c (handle_exception)
6414 (windows_nat_target::thread_name): Update.
6415 * nat/windows-nat.h (windows_thread_info): Remove destructor.
6416 <name>: Now unique_xmalloc_ptr.
6417
62fe396b
TT
64182020-04-08 Tom Tromey <tromey@adacore.com>
6419
6420 * windows-nat.c (thread_rec)
6421 (windows_nat_target::fetch_registers): Update.
6422 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
6423 Update comment.
6424 <debug_registers_changed, reload_context>: Now bool.
6425
e9534bd2
TT
64262020-04-08 Tom Tromey <tromey@adacore.com>
6427
6428 * windows-nat.c (windows_add_thread): Use new.
6429 (windows_init_thread_list, windows_delete_thread): Use delete.
6430 (get_windows_debug_event): Update.
6431 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
6432 destructor, and initializers.
6433
ae1f8880
TT
64342020-04-08 Tom Tromey <tromey@adacore.com>
6435
6436 * windows-nat.c (struct windows_thread_info): Remove.
6437 * nat/windows-nat.h: New file.
6438
55a1e039
TT
64392020-04-08 Tom Tromey <tromey@adacore.com>
6440
6441 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
6442 (thread_rec, windows_add_thread, windows_delete_thread)
6443 (windows_continue): Update.
6444
93366324
TT
64452020-04-08 Tom Tromey <tromey@adacore.com>
6446
6447 * windows-nat.c (struct windows_thread_info): Remove typedef.
6448 (thread_head): Remove.
6449 (thread_list): New global.
6450 (thread_rec, windows_add_thread, windows_init_thread_list)
6451 (windows_delete_thread, windows_continue): Update.
6452
0f2265e2
SM
64532020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6454
6455 * windows-tdep.h (windows_init_abi): Add comment.
6456 (cygwin_init_abi): New declaration.
6457 * windows-tdep.c: Split signal enumeration in two, one for
6458 Windows and one for Cygwin.
6459 (windows_gdb_signal_to_target): Only deal with signal of the
6460 Windows OS ABI.
6461 (cygwin_gdb_signal_to_target): New function.
6462 (windows_init_abi): Rename to windows_init_abi_common, don't set
6463 gdb_signal_to_target gdbarch method. Add new new function with
6464 this name.
6465 (cygwin_init_abi): New function.
6466 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
6467 comment. Don't call windows_init_abi.
6468 (amd64_windows_init_abi): Add comment, call windows_init_abi.
6469 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
6470 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
6471 i386_windows_init_abi_common, don't call windows_init_abi. Add
6472 a new function of this name.
6473 (i386_cygwin_init_abi): New function.
6474 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
6475 OS ABI Cygwin.
6476
3810f182
SM
64772020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
6478
6479 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
6480 parameter.c.
6481 (dwarf2_read_gdb_index): Update.
6482
063f8e80
KR
64832020-04-07 Kamil Rytarowski <n54@gmx.com>
6484
6485 * nbsd-tdep.c: Include "objfiles.h".
6486 (nbsd_skip_solib_resolver): New.
6487 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
6488
85a9510c 64892020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6490
6491 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
6492 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
6493 with DW_LLE_base_addressx are being emitted in DWARFv5.
6494 Add the newly added kind DW_LOC_OFFSET_PAIR also.
6495 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
6496 unsigned integer.
6497
9fc3eaae 64982020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6499
6500 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
6501 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
6502 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
6503 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
6504 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
6505 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
6506 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
6507
6508
41144253 65092020-04-07 Nitika Achra <Nitika.Achra@amd.com>
6510
6511 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
6512 (read_loclist_index): New function definition.
6513 (lookup_loclist_base): New function definition.
6514 (read_loclist_header): New function definition.
6515 (dwarf2_cu): Add loclist_base and loclist_header field.
6516 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
6517 (read_full_die_1): Read the value of DW_AT_loclists_base.
6518 (read_attribute_reprocess): Handle DW_FORM_loclistx.
6519 (read_attribute_value): Handle DW_FORM_loclistx.
6520 (skip_one_die): Handle DW_FORM_loclistx.
6521 (loclist_header): New structure declaration.
6522 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
6523
9f4e76a4
SM
65242020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
6525
6526 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
6527 constructor. Remove `addr` parameter from other constructor and
6528 add `per_cu` parameter.
6529 * dwarf2/read.c (create_partial_symtab): Update.
6530
25c11aca
TV
65312020-04-07 Tom de Vries <tdevries@suse.de>
6532
6533 PR symtab/25796
6534 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
6535 (partial_die_info::fixup): Inherit has_const_value.
6536
5707e24b
TV
65372020-04-07 Tom de Vries <tdevries@suse.de>
6538
6539 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
6540 symbols without address.
6541
05f00e22
KR
65422020-04-06 Kamil Rytarowski <n54@gmx.com>
6543
6544 * nbsd-nat.h (struct thread_info): Add forward declaration.
6545 (nbsd_nat_target::thread_alive): Add.
6546 (nbsd_nat_target::thread_name): Likewise.
6547 (nbsd_nat_target::update_thread_list): Likewise.
6548 (update_thread_list::post_attach): Likewise.
6549 (post_attach::pid_to_str): Likewise.
6550 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
6551 (nbsd_thread_lister): Add.
6552 (nbsd_nat_target::thread_alive): Likewise.
6553 (nbsd_nat_target::thread_name): Likewise.
6554 (nbsd_add_threads): Likewise.
6555 (update_thread_list::post_attach): Likewise.
6556 (nbsd_nat_target::update_thread_list): Likewise.
6557 (post_attach::pid_to_str): Likewise.
6558
6ee448cc
TT
65592020-04-06 Tom Tromey <tromey@adacore.com>
6560
6561 * ada-valprint.c (print_variant_part): Extract the variant field.
6562 (print_field_values): Use the field as the outer value when
6563 recursing.
6564
dea34e8c
TT
65652020-04-06 Tom Tromey <tromey@adacore.com>
6566
6567 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
6568 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
6569 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
6570 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
6571 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
6572
93689ce9
TT
65732020-04-06 Tom Tromey <tromey@adacore.com>
6574
6575 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
6576 TYPE_CODE_ERROR.
6577
79743962
KR
65782020-04-06 Kamil Rytarowski <n54@gmx.com>
6579
6580 * nbsd-tdep.c: Include "gdbarch.h".
6581 Define enum with NetBSD signal numbers.
6582 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
6583 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
6584 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
6585 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
6586 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
6587 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
6588 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
6589 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6590 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
6591 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6592 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6593 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
6594
9e7c9a03
HD
65952020-04-03 Hannes Domani <ssbssa@yahoo.de>
6596
6597 PR gdb/25325
6598 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
6599
d9e49b61
TT
66002020-04-03 Tom Tromey <tromey@adacore.com>
6601
6602 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
6603 Read constant block.
6604
e0fc5c3f
SM
66052020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6606
6607 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
6608 (gdb_bfd_get_full_section_contents): New declaration.
6609 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
6610 * windows-tdep.c (is_linked_with_cygwin_dll): Use
6611 gdb_bfd_get_full_section_contents.
6612
e2ff18a0
SM
66132020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
6614
6615 * exec.c (build_section_table): Replace internal_error with
6616 gdb_assert.
6617 (section_table_xfer_memory_partial): Likewise.
6618 * mdebugread.c (parse_partial_symbols): Likewise.
6619 * psymtab.c (lookup_partial_symbol): Likewise.
6620 * utils.c (wrap_here): Likewise.
6621
0830d301
TT
66222020-04-02 Tom Tromey <tromey@adacore.com>
6623
6624 * f-lang.c (build_fortran_types): Use arch_type to initialize
6625 builtin_complex_s32 in the TYPE_CODE_ERROR case.
6626
e7da7f8f
TT
66272020-04-02 Tom Tromey <tromey@adacore.com>
6628
6629 * dwarf2/read.c (partial_die_info::read): Do not create a vector
6630 of attributes.
6631
c90d28ac
AB
66322020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
6633 Bernd Edlinger <bernd.edlinger@hotmail.de>
6634 Tom Tromey <tromey@adacore.com>
6635
6636 * buildsym.c (buildsym_compunit::record_line): Remove
6637 deduplication code.
6638
1aa98955
TV
66392020-04-02 Tom de Vries <tdevries@suse.de>
6640
6641 PR ada/24671
6642 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
6643
d3214198
TV
66442020-04-02 Tom de Vries <tdevries@suse.de>
6645
6646 * dwarf2/read.c (dwarf2_gdb_index_functions,
6647 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
6648 NULL.
6649 * psymtab.c (psym_lookup_global_symbol_language): New function.
6650 (psym_functions): Init psym_lookup_global_symbol_language with
6651 psym_lookup_global_symbol_language.
6652 * symfile-debug.c (debug_sym_quick_functions): Init
6653 lookup_global_symbol_language with NULL.
6654 * symfile.c (set_initial_language): Remove fixme comment.
6655 * symfile.h (struct quick_symbol_functions): Add
6656 lookup_global_symbol_language.
6657 * symtab.c (find_quick_global_symbol_language): New function.
6658 (find_main_name): Use find_quick_global_symbol_language.
6659
2836752f
SM
66602020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
6661
6662 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
6663
64dc2d4b
BE
66642020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6665
6666 * buildsym.c (record_line): Fix undefined behavior and preserve
6667 lines at eof.
6668
bbe3dc41
BE
66692020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6670
6671 * buildsym.c (record_line): Fix the resizing condition.
6672
6b4a335b
TT
66732020-04-01 Tom Tromey <tom@tromey.com>
6674
6675 * value.h (value_literal_complex): Add comment.
6676 * valops.c (value_literal_complex): Refer to value.h.
6677
3638a098
TT
66782020-04-01 Tom Tromey <tom@tromey.com>
6679
6680 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
6681 (scalar_type): New rule, from typebase.
6682 (typebase): Use scalar_type. Recognize complex types.
6683 (field_name): Handle FLOAT_KEYWORD.
6684 (ident_tokens): Add _Complex and __complex__.
6685
c34e8714
TT
66862020-04-01 Tom Tromey <tom@tromey.com>
6687
6688 PR exp/25299:
6689 * valarith.c (promotion_type, complex_binop): New functions.
6690 (scalar_binop): Handle complex numbers. Use promotion_type.
6691 (value_pos, value_neg, value_complement): Handle complex numbers.
6692
fa649bb7
TT
66932020-04-01 Tom Tromey <tom@tromey.com>
6694
6695 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
6696 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
6697 (parse_number): Handle complex numbers.
6698
981c08ce
TT
66992020-04-01 Tom Tromey <tom@tromey.com>
6700
6701 * c-valprint.c (c_decorations): Change complex suffix to "i".
6702
4c99290d
TT
67032020-04-01 Tom Tromey <tom@tromey.com>
6704
6705 * valprint.c (generic_value_print_complex): Use accessors.
6706 * value.h (value_real_part, value_imaginary_part): Declare.
6707 * valops.c (value_real_part, value_imaginary_part): New
6708 functions.
6709 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
6710
5b930b45
TT
67112020-04-01 Tom Tromey <tom@tromey.com>
6712
6713 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
6714 (read_range_type): Update.
6715 * mdebugread.c (basic_type): Update.
6716 * go-lang.c (build_go_types): Use init_complex_type.
6717 * gdbtypes.h (struct main_type) <complex_type>: New member.
6718 (init_complex_type): Update.
6719 (arch_complex_type): Don't declare.
6720 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
6721 Make name if none given. Use alloc_type_copy. Look for cached
6722 complex type.
6723 (arch_complex_type): Remove.
6724 (gdbtypes_post_init): Use init_complex_type.
6725 * f-lang.c (build_fortran_types): Use init_complex_type.
6726 * dwarf2/read.c (read_base_type): Update.
6727 * d-lang.c (build_d_types): Use init_complex_type.
6728 * ctfread.c (read_base_type): Update.
6729
53cccef1
TBA
67302020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6731
6732 * infrun.c (stop_all_threads): Update assertion, plus when
6733 stopping threads, take into account that we might be trying
6734 to stop an all-stop target.
6735 (stop_waiting): Call 'stop_all_threads' if there exists a
6736 non-stop target.
6737
a0714d30
TBA
67382020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6739
6740 * target.h (exists_non_stop_target): New function declaration.
6741 * target.c (exists_non_stop_target): New function.
6742
60e22c1e
HD
67432020-04-01 Hannes Domani <ssbssa@yahoo.de>
6744
6745 PR gdb/24789
6746 * eval.c (is_integral_or_integral_reference): New function.
6747 (evaluate_subexp_standard): Allow integer references in
6748 pointer arithmetic.
6749
e139a727
TBA
67502020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6751
6752 * remote.c (remote_target::remote_parse_stop_reply): Remove the
6753 check for no ptid in the stop reply when the target is non-stop.
6754
e0802d59
TT
67552020-04-01 Tom Tromey <tromey@adacore.com>
6756
6757 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
6758 "name" parameter to rvalue reference. Initialize m_name_holder.
6759 <lookup_name_info>: New overloads.
6760 <name>: Return gdb::string_view.
6761 <c_str>: New method.
6762 <make_ignore_params>: Update.
6763 <search_name_hash>: Update.
6764 <language_lookup_name>: Return const char *.
6765 <m_name>: Change type.
6766 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
6767 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
6768 (lookup_name_info::match_any): Update.
6769 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
6770 Update.
6771 * minsyms.c (linkage_name_str): Update.
6772 * language.c (default_symbol_name_matcher): Update.
6773 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
6774 Update.
6775 * ada-lang.c (ada_fold_name): Change parameter to string_view.
6776 (ada_lookup_name_info::ada_lookup_name_info): Update.
6777 (literal_symbol_name_matcher): Update.
6778
8c072cb6
TT
67792020-04-01 Tom Tromey <tromey@adacore.com>
6780
6781 * psymtab.c (psymtab_search_name): Remove function.
6782 (psym_lookup_symbol): Create search name and lookup name here.
6783 (lookup_partial_symbol): Remove "name" parameter; add
6784 lookup_name.
6785 (psym_expand_symtabs_for_function): Update.
6786
6f29a534
TT
67872020-03-31 Joel Jones <joelkevinjones@gmail.com>
6788
6789 PR tui/25597:
6790 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
6791
af62665e
TT
67922020-03-31 Tom Tromey <tromey@adacore.com>
6793
6794 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
6795 memcpy.
6796
d1a89da5
NC
67972020-03-30 Nelson Chu <nelson.chu@sifive.com>
6798
6799 * features/riscv/32bit-csr.xml: Regenerated.
6800 * features/riscv/64bit-csr.xml: Regenerated.
6801
d8af9068
TT
68022020-03-30 Tom Tromey <tromey@adacore.com>
6803
6804 * ada-valprint.c (print_variant_part): Update.
6805 * ada-lang.h (ada_which_variant_applies): Update.
6806 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
6807 outer_valaddr parameters; replace with "outer" value parameter.
6808 (to_fixed_variant_branch_type): Update.
6809
227c0bf4
PFC
68102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6811
6812 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
6813 <list>. Remove inclusion of observable.h.
6814 (PPC_DEBUG_CURRENT_VERSION): Move up define.
6815 (struct arch_lwp_info): New struct.
6816 (class ppc_linux_dreg_interface): New class.
6817 (struct ppc_linux_process_info): New struct.
6818 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
6819 <low_new_clone, low_forget_process, low_prepare_to_resume>
6820 <copy_thread_dreg_state, mark_thread_stale>
6821 <mark_debug_registers_changed, register_hw_breakpoint>
6822 <clear_hw_breakpoint, register_wp, clear_wp>
6823 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
6824 <num_memory_accesses, get_trigger_type>
6825 <create_watchpoint_request, hwdebug_point_cmp>
6826 <init_arch_lwp_info, get_arch_lwp_info>
6827 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
6828 methods.
6829 <struct ptid_hash>: New inner struct.
6830 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
6831 members.
6832 (saved_dabr_value, hwdebug_info, max_slots_number)
6833 (struct hw_break_tuple, struct thread_points, ppc_threads)
6834 (have_ptrace_hwdebug_interface)
6835 (hwdebug_find_thread_points_by_tid)
6836 (hwdebug_insert_point, hwdebug_remove_point): Remove.
6837 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
6838 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
6839 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
6840 use m_dreg_interface.
6841 (hwdebug_point_cmp): Change to...
6842 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
6843 reference arguments instead of pointers.
6844 (ppc_linux_nat_target::ranged_break_num_registers): Use
6845 m_dreg_interface.
6846 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
6847 m_dreg_interface. Call register_hw_breakpoint.
6848 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
6849 m_dreg_interface. Call clear_hw_breakpoint.
6850 (get_trigger_type): Change to...
6851 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
6852 comment.
6853 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
6854 use m_dreg_interface. Call register_hw_breakpoint.
6855 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
6856 use m_dreg_interface. Call clear_hw_breakpoint.
6857 (can_use_watchpoint_cond_accel): Change to...
6858 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
6859 method. Update comment, use m_dreg_interface and
6860 m_process_info.
6861 (calculate_dvc): Change to...
6862 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
6863 m_dreg_interface.
6864 (num_memory_accesses): Change to...
6865 (ppc_linux_nat_target::num_memory_accesses): ...this method.
6866 (check_condition): Change to...
6867 (ppc_linux_nat_target::check_condition): ...this method.
6868 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
6869 comment, use m_dreg_interface.
6870 (create_watchpoint_request): Change to...
6871 (ppc_linux_nat_target::create_watchpoint_request): ...this
6872 method. Use m_dreg_interface.
6873 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
6874 m_dreg_interface. Call register_hw_breakpoint or register_wp.
6875 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
6876 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
6877 (ppc_linux_nat_target::low_forget_process)
6878 (ppc_linux_nat_target::low_new_fork)
6879 (ppc_linux_nat_target::low_new_clone)
6880 (ppc_linux_nat_target::low_delete_thread)
6881 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
6882 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
6883 only call mark_thread_stale.
6884 (ppc_linux_thread_exit): Remove.
6885 (ppc_linux_nat_target::stopped_data_address): Change to...
6886 (ppc_linux_nat_target::low_stopped_data_address): This. Add
6887 comment, use m_dreg_interface and m_thread_hw_breakpoints.
6888 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
6889 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
6890 comment. Call low_stopped_data_address.
6891 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
6892 m_dreg_interface.
6893 (ppc_linux_nat_target::masked_watch_num_registers): Use
6894 m_dreg_interface.
6895 (ppc_linux_nat_target::copy_thread_dreg_state)
6896 (ppc_linux_nat_target::mark_thread_stale)
6897 (ppc_linux_nat_target::mark_debug_registers_changed)
6898 (ppc_linux_nat_target::register_hw_breakpoint)
6899 (ppc_linux_nat_target::clear_hw_breakpoint)
6900 (ppc_linux_nat_target::register_wp)
6901 (ppc_linux_nat_target::clear_wp)
6902 (ppc_linux_nat_target::init_arch_lwp_info)
6903 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
6904 (_initialize_ppc_linux_nat): Remove observer callback.
6905
4db10d8f
PFC
69062020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6907
6908 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
6909 (ppc_linux_nat_target::auxv_parse)
6910 (ppc_linux_nat_target::read_description)
6911 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
6912 Move up.
6913
1310c1b0
PFC
69142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
6915
6916 * linux-nat.h (low_new_clone): New method.
6917 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
6918
69b037c3
SM
69192020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6920
6921 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
6922 (dbx_expand_psymtab): ... this.
6923 (start_psymtab): Update.
6924 * mdebugread.c (psymtab_to_symtab_1): Rename to...
6925 (mdebug_expand_psymtab): ... this.
6926 (parse_partial_symbols): Update.
6927 (new_psymtab): Update.
6928 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
6929 (xcoff_expand_psymtab): ... this.
6930 (xcoff_start_psymtab): Update.
6931
48993951
SM
69322020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6933
6934 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
6935 <expand_dependencies>: ... this.
6936 * psymtab.c (partial_symtab::read_dependencies): Rename to...
6937 (partial_symtab::expand_dependencies): ... this.
6938 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
6939 Update.
6940 (dwarf2_psymtab::expand_psymtab): Update.
6941 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
6942 * mdebugread.c (psymtab_to_symtab_1): Update.
6943 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
6944
3ad83046
SM
69452020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
6946
6947 * psympriv.h (discard_psymtab): Remove.
6948 * dbxread.c (dbx_end_psymtab): Update.
6949 * xcoffread.c (xcoff_end_psymtab): Update.
6950
4d1b9ab6
TT
69512020-03-28 Tom Tromey <tom@tromey.com>
6952
6953 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
6954 comment.
6955
f1749218
TT
69562020-03-28 Tom Tromey <tom@tromey.com>
6957
6958 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
6959
ebea7626
HD
69602020-03-27 Hannes Domani <ssbssa@yahoo.de>
6961
6962 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
6963
a879b4d5
JB
69642020-03-26 John Baldwin <jhb@FreeBSD.org>
6965
6966 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
6967
0826b30a
TT
69682020-03-26 Tom Tromey <tom@tromey.com>
6969
6970 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
6971 (mark_common_block_symbol_computed, read_tag_string_type)
6972 (attr_to_dynamic_prop, read_subrange_type): Update.
6973 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
6974 to be methods on struct attribute.
6975 (skip_one_die, process_imported_unit_die, read_namespace_alias)
6976 (read_call_site_scope, partial_die_info::read)
6977 (partial_die_info::read, lookup_die_type, follow_die_ref):
6978 Update.
6979 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
6980 from dwarf2_get_ref_die_offset.
6981 (attribute::constant_value): New method, from
6982 dwarf2_get_attr_constant_value.
6983 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
6984 Declare method.
6985 <constant_value>: New method.
6986
2b2558bf
TT
69872020-03-26 Tom Tromey <tom@tromey.com>
6988
6989 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
6990 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
6991 (dwarf_type_encoding_name): Move to stringify.c.
6992 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
6993 * dwarf2/stringify.c: New file.
6994 * dwarf2/stringify.h: New file.
6995
eeb64781
TT
69962020-03-26 Tom Tromey <tom@tromey.com>
6997
6998 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
6999 Rewrite.
7000
a39fdb41
TT
70012020-03-26 Tom Tromey <tom@tromey.com>
7002
7003 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
7004 methods.
7005 * dwarf2/read.c (lookup_addr_base): Move to die.h.
7006 (lookup_ranges_base): Likewise.
7007 (read_cutu_die_from_dwo, read_full_die_1): Update.
7008
436c571c
TT
70092020-03-26 Tom Tromey <tom@tromey.com>
7010
7011 * dwarf2/read.c (read_import_statement, read_file_scope)
7012 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
7013 (read_lexical_block_scope, read_call_site_scope)
7014 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
7015 (handle_struct_member_die, process_structure_scope)
7016 (update_enumeration_type_from_children)
7017 (process_enumeration_scope, read_array_type, read_common_block)
7018 (read_namespace, read_module, read_subroutine_type): Update.
7019 (sibling_die): Remove.
7020
052c8bb8
TT
70212020-03-26 Tom Tromey <tom@tromey.com>
7022
7023 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
7024 (build_type_psymtabs_reader, read_structure_type)
7025 (read_enumeration_type, read_full_die_1): Update.
7026 (dwarf2_attr_no_follow): Move to die.h.
7027 * dwarf2/die.h (struct die_info) <attr>: New method.
7028
2b24b6e4
TT
70292020-03-26 Tom Tromey <tom@tromey.com>
7030
7031 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
7032 <base_address>: Now an optional.
7033 (dwarf2_find_base_address, dwarf2_rnglists_process)
7034 (dwarf2_ranges_process, fill_in_loclist_baton)
7035 (dwarf2_symbol_mark_computed): Update.
7036
c2d50fd0
TT
70372020-03-26 Tom Tromey <tom@tromey.com>
7038
7039 * dwarf2/read.c (struct die_info): Move to die.h.
7040 * dwarf2/die.h: New file.
7041
0df7ad3a
TT
70422020-03-26 Tom Tromey <tom@tromey.com>
7043
7044 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
7045 * dwarf2/read.c
7046 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7047 Move to line-header.c.
7048 (read_checked_initial_length_and_offset, read_formatted_entries):
7049 Likewise.
7050 (dwarf_decode_line_header): Split into two.
7051 * dwarf2/line-header.c
7052 (dwarf2_statement_list_fits_in_line_number_section_complaint):
7053 Move from read.c.
7054 (read_checked_initial_length_and_offset, read_formatted_entries):
7055 Likewise.
7056 (dwarf_decode_line_header): New function, split from read.c.
7057
86c0bb4c
TT
70582020-03-26 Tom Tromey <tom@tromey.com>
7059
7060 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
7061 Declare method.
7062 * dwarf2/read.c (read_attribute_value): Update.
7063 (dwarf2_per_objfile::read_line_string): Rename from
7064 read_indirect_line_string.
7065 (read_formatted_entries): Update.
7066
2ef46c2f
TT
70672020-03-26 Tom Tromey <tom@tromey.com>
7068
7069 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
7070 variable.
7071
4f9c1eda
TT
70722020-03-26 Tom Tromey <tom@tromey.com>
7073
7074 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
7075 const.
7076 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
7077 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
7078 parameter const.
7079
5a0e026f
TT
70802020-03-26 Tom Tromey <tom@tromey.com>
7081
7082 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
7083 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
7084 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
7085 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
7086
8844c11b
TT
70872020-03-26 Tom Tromey <tom@tromey.com>
7088
7089 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
7090 file_names_size, file_full_name, file_file_name>: Use const.
7091 <file_name_at, file_names>: Add const overload.
7092 * dwarf2/line-header.c (line_header::file_file_name)
7093 (line_header::file_full_name): Update.
7094
c90ec28a
TT
70952020-03-26 Tom Tromey <tom@tromey.com>
7096
7097 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
7098 (macro_start_file, consume_improper_spaces)
7099 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
7100 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
7101 (dwarf_decode_macros): Move to macro.c.
7102 * dwarf2/macro.c: New file.
7103 * dwarf2/macro.h: New file.
7104 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
7105
4f44ae6c
TT
71062020-03-26 Tom Tromey <tom@tromey.com>
7107
7108 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
7109 method.
7110 * dwarf2/section.c: New method. From
7111 read_indirect_string_at_offset_from.
7112 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
7113 (read_indirect_string_at_offset_from): Move to section.c.
7114 (read_indirect_string_at_offset): Rewrite.
7115 (read_indirect_line_string_at_offset): Remove.
7116 (read_indirect_string, read_indirect_line_string)
7117 (dwarf_decode_macro_bytes): Update.
7118
a0194fa8
TT
71192020-03-26 Tom Tromey <tom@tromey.com>
7120
7121 * dwarf2/section.h (struct dwarf2_section_info)
7122 <overload_complaint>: Declare.
7123 (dwarf2_section_buffer_overflow_complaint): Don't declare.
7124 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
7125 Rename from dwarf2_section_buffer_overflow_complaint.
7126 * dwarf2/read.c (skip_one_die, partial_die_info::read)
7127 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
7128
3d27bbdb
TT
71292020-03-26 Tom Tromey <tom@tromey.com>
7130
7131 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
7132 Declare.
7133 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
7134 Move from read.c.
7135 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
7136 to section.c.
7137
9eac9650
TT
71382020-03-26 Tom Tromey <tom@tromey.com>
7139
7140 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
7141
bf80d710
TT
71422020-03-26 Tom Tromey <tom@tromey.com>
7143
7144 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
7145 "builder".
7146 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
7147 parameter.
7148 (dwarf_decode_macros): Update.
7149
0314b390
TT
71502020-03-26 Tom Tromey <tom@tromey.com>
7151
7152 * dwarf2/read.c (read_attribute_value): Update.
7153 (read_indirect_string_from_dwz): Move to dwz.c; change into
7154 method.
7155 (dwarf_decode_macro_bytes): Update.
7156 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
7157 * dwarf2/dwz.c: New file.
7158 * Makefile.in (COMMON_SFILES): Add dwz.c.
7159
9fda78b6
TT
71602020-03-26 Tom Tromey <tom@tromey.com>
7161
7162 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
7163 * dwarf2/read.c: Add include.
7164 * dwarf2/index-write.c: Add include.
7165 * dwarf2/index-cache.c: Add include.
7166 * dwarf2/dwz.h: New file.
7167
33aa3c10
TT
71682020-03-25 Tom Tromey <tom@tromey.com>
7169
7170 * compile/compile-object-load.c (get_out_value_type): Mention
7171 correct symbol name in error message.
7172
d503b685
HD
71732020-03-25 Hannes Domani <ssbssa@yahoo.de>
7174
7175 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
7176
7b1eff95
TV
71772020-03-25 Tom de Vries <tdevries@suse.de>
7178
7179 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
7180 * symmisc.c (dump_symtab_1): Print user and includes fields.
7181 (maintenance_info_symtabs): Same.
7182
dd895392
AB
71832020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
7184
7185 PR gdb/25534
7186 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
7187 (riscv_regcache_cooked_write): New function.
7188 (riscv_push_dummy_call): Use new function.
7189 (riscv_return_value): Likewise.
7190
5ab2fbf1
SM
71912020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
7192
7193 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
7194 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
7195 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
7196 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
7197 * infrun.c (follow_fork): Likewise.
7198 (follow_fork_inferior): Likewise.
7199 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
7200 * linux-nat.h (class linux_nat_target): Likewise.
7201 * remote.c (class remote_target) <follow_fork>: Likewise.
7202 (remote_target::follow_fork): Likewise.
7203 * target-delegates.c: Re-generate.
7204 * target.c (default_follow_fork): Likewise.
7205 (target_follow_fork): Likewise.
7206 * target.h (struct target_ops) <follow_fork>: Likewise.
7207 (target_follow_fork): Likewise.
7208
a64fafb5
TV
72092020-03-24 Tom de Vries <tdevries@suse.de>
7210
7211 * psymtab.c (maintenance_info_psymtabs): Print user field.
7212
fe26d3a3
TT
72132020-03-20 Tom Tromey <tromey@adacore.com>
7214
7215 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
7216 const.
7217 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
7218 const.
7219
c884cc46
SM
72202020-03-20 Simon Marchi <simon.marchi@efficios.com>
7221
7222 * ptrace.m4: Don't check for ptrace declaration.
7223 * config.in: Re-generate.
7224 * configure: Re-generate.
7225 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
7226 not defined.
7227
1ff700c2
KR
72282020-03-20 Kamil Rytarowski <n54@gmx.com>
7229
7230 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
7231 `PTRACE_TYPE_RET'.
7232 * i386-bsd-nat.c (gdb_ptrace): Likewise.
7233 * sparc-nat.c (gdb_ptrace): Likewise.
7234 * x86-bsd-nat.c (gdb_ptrace): Likewise.
7235
f7d4f0b1
TT
72362020-03-20 Tom Tromey <tromey@adacore.com>
7237
7238 * c-exp.y (lex_one_token): Fix assert.
7239
f67210ff
TT
72402020-03-20 Tom Tromey <tromey@adacore.com>
7241
7242 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
7243 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
7244 strncpy call.
7245
1773be9e
TT
72462020-03-20 Tom Tromey <tromey@adacore.com>
7247
7248 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
7249
70304be9
TT
72502020-03-20 Tom Tromey <tromey@adacore.com>
7251
7252 * ada-valprint.c (print_variant_part): Remove parameters; switch
7253 to value-based API.
7254 (print_field_values): Likewise.
7255 (ada_val_print_struct_union): Likewise.
7256 (ada_value_print_1): Update.
7257
9faa006d
KR
72582020-03-20 Kamil Rytarowski <n54@gmx.com>
7259
7260 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
7261 nbsd_nat_target instead of inf_ptrace_target.
7262 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7263 nbsd_nat_target.
7264
4a90f062
KR
72652020-03-20 Kamil Rytarowski <n54@gmx.com>
7266
7267 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
7268 it to the ptrace call.
7269 * (store_registers): Likewise.
7270
72712020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
7272
7273 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
7274 it to the ptrace call.
7275 * (store_registers): Likewise.
7276
2d07da27
LM
72772020-03-19 Luis Machado <luis.machado@linaro.org>
7278
7279 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
7280 valid, fetch vg value from ptrace.
7281
f09db380
KR
72822020-03-19 Kamil Rytarowski <n54@gmx.com>
7283 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
7284 * inf-ptrace.c: Likewise.
7285 * (gdb_ptrace): Add.
7286 * (inf_ptrace_target::resume): Update.
7287 * (inf_ptrace_target::xfer_partial): Likewise.
7288 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
7289 * (inf_ptrace_peek_poke): Update.
7290
fcc7376e
KR
72912020-03-19 Kamil Rytarowski <n54@gmx.com>
7292
7293 * x86-bsd-nat.c (gdb_ptrace): New.
7294 * (x86bsd_dr_set): Add new argument `ptid'.
7295 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
7296 x86bsd_dr_set_addr): Update.
7297
cada5fc9
AB
72982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7299
7300 * remote.c (remote_target::process_stop_reply): Handle events for
7301 all threads differently.
7302
19a2740f
AB
73032020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7304
7305 * completer.c (completion_tracker::remove_completion): Define new
7306 function.
7307 * completer.h (completion_tracker::remove_completion): Declare new
7308 function.
7309 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
7310 when adding a C++ function symbol.
7311
724fd9ba
AB
73122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
7313
7314 * completer.c (completion_tracker::completion_hash_entry): Define
7315 new class.
7316 (advance_to_filename_complete_word_point): Call
7317 recompute_lowest_common_denominator.
7318 (completion_tracker::completion_tracker): Call discard_completions
7319 to setup the hash table.
7320 (completion_tracker::discard_completions): Allow for being called
7321 from the constructor, pass new equal function, and element deleter
7322 when constructing the hash table. Initialise new class member
7323 variables.
7324 (completion_tracker::maybe_add_completion): Remove use of
7325 m_entries_vec, and store more information into m_entries_hash.
7326 (completion_tracker::recompute_lcd_visitor): New function, most
7327 content taken from...
7328 (completion_tracker::recompute_lowest_common_denominator):
7329 ...here, this now just visits each item in the hash calling the
7330 above visitor.
7331 (completion_tracker::build_completion_result): Remove use of
7332 m_entries_vec, call recompute_lowest_common_denominator.
7333 * completer.h (completion_tracker::have_completions): Remove use
7334 of m_entries_vec.
7335 (completion_tracker::completion_hash_entry): Declare new class.
7336 (completion_tracker::recompute_lowest_common_denominator): Change
7337 function signature.
7338 (completion_tracker::recompute_lcd_visitor): Declare new function.
7339 (completion_tracker::m_entries_vec): Delete.
7340 (completion_tracker::m_entries_hash): Initialize to NULL.
7341 (completion_tracker::m_lowest_common_denominator_valid): New
7342 member variable.
7343 (completion_tracker::m_lowest_common_denominator_max_length): New
7344 member variable.
7345
5a82b8a1
KR
73462020-03-17 Kamil Rytarowski <n54@gmx.com>
7347
7348 * regformats/regdef.h: Put reg in gdb namespace.
7349
fb516a69
KR
73502020-03-17 Kamil Rytarowski <n54@gmx.com>
7351
7352 * i386-bsd-nat.c (gdb_ptrace): New.
7353 * (i386bsd_fetch_inferior_registers,
7354 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7355 * (i386bsd_fetch_inferior_registers,
7356 i386bsd_store_inferior_registers) Use gdb_ptrace.
7357
1c0aa1fb
KR
73582020-03-17 Kamil Rytarowski <n54@gmx.com>
7359
7360 * amd64-bsd-nat.c (gdb_ptrace): New.
7361 * (amd64bsd_fetch_inferior_registers,
7362 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
7363 * (amd64bsd_fetch_inferior_registers,
7364 amd64bsd_store_inferior_registers) Use gdb_ptrace.
7365
5ccd2fb7
KR
73662020-03-17 Kamil Rytarowski <n54@gmx.com>
7367
7368 * user-regs.c (user_reg::read): Rename to...
7369 (user_reg::xread): ...this.
7370 * (append_user_reg): Rename argument `read' to `xread'.
7371 * (user_reg_add_builtin): Likewise.
7372 * (user_reg_add): Likewise.
7373 * (value_of_user_reg): Likewise.
7374
2108a63a
KR
73752020-03-17 Kamil Rytarowski <n54@gmx.com>
7376
7377 * sparc-nat.c (gdb_ptrace): New.
7378 * sparc-nat.c (sparc_fetch_inferior_registers)
7379 (sparc_store_inferior_registers) Remove obsolete comment.
7380 * sparc-nat.c (sparc_fetch_inferior_registers)
7381 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
7382 * sparc-nat.c (sparc_fetch_inferior_registers)
7383 (sparc_store_inferior_registers) Use gdb_ptrace.
7384
a225c9a8
KR
73852020-03-17 Kamil Rytarowski <n54@gmx.com>
7386
7387 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
7388 it to the ptrace call.
7389 * sh-nbsd-nat.c (store_registers): Likewise.
7390
98097623
KR
73912020-03-17 Kamil Rytarowski <n54@gmx.com>
7392
7393 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
7394 nbsd_nat_target instead of inf_ptrace_target.
7395 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7396 nbsd_nat_target.
7397
9e38d619
KR
73982020-03-17 Kamil Rytarowski <n54@gmx.com>
7399
7400 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
7401
a2ecbe9f
KR
74022020-03-17 Kamil Rytarowski <n54@gmx.com>
7403
7404 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
7405 <sys/sysctl.h>.
7406 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
7407
58990295
TV
74082020-03-17 Tom de Vries <tdevries@suse.de>
7409
7410 PR gdb/23710
7411 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
7412 fields.
7413 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
7414 fields.
7415 (process_imported_unit_die): Skip import of c++ CUs.
7416
771dd3a8
TT
74172020-03-16 Tom Tromey <tom@tromey.com>
7418
7419 * p-valprint.c (pascal_object_print_value): Initialize
7420 base_value.
7421
817a7585
AK
74222020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
7423 Shahab Vahedi <shahab@synopsys.com>
7424
7425 * Makefile.in: Add arch/arc.o
7426 * configure.tgt: Likewise.
7427 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
7428 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 7429 (arc_read_description): New function to cache target descriptions.
817a7585
AK
7430 * arc-tdep.h (arc_read_description): Add proto type.
7431 * arch/arc.c: New file.
7432 * arch/arc.h: Likewise.
7433 * features/Makefile: Replace old target descriptions with new.
7434 * features/arc-arcompact.c: Remove.
7435 * features/arc-arcompact.xml: Likewise.
7436 * features/arc-v2.c: Likewise
7437 * features/arc-v2.xml: Likewise
7438 * features/arc/aux-arcompact.xml: New file.
7439 * features/arc/aux-v2.xml: Likewise.
7440 * features/arc/core-arcompact.xml: Likewise.
7441 * features/arc/core-v2.xml: Likewise.
7442 * features/arc/aux-arcompact.c: Generate.
7443 * features/arc/aux-v2.c: Likewise.
7444 * features/arc/core-arcompact.c: Likewise.
7445 * features/arc/core-v2.c: Likewise.
7446 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
7447
67430cd0
TT
74482020-03-16 Tom Tromey <tromey@adacore.com>
7449
7450 PR gdb/25663:
7451 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
7452 putting value into bcache.
7453
30efb6c7
SM
74542020-03-16 Simon Marchi <simon.marchi@efficios.com>
7455
7456 PR gdb/21500
7457 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
7458 to...
7459 (amd64_windows_init_abi_common): ... this. Don't set size of
7460 long type.
7461 (amd64_windows_init_abi): New function.
7462 (amd64_cygwin_init_abi): New function.
7463 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
7464 the Cygwin OS ABI.
7465 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
7466 comment.
7467
8db52437
SM
74682020-03-16 Simon Marchi <simon.marchi@efficios.com>
7469
7470 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
7471 * windows-tdep.c (CYGWIN_DLL_NAME): New.
7472 (pe_import_directory_entry): New struct type.
7473 (is_linked_with_cygwin_dll): New function.
7474 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
7475 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
7476 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
7477
5982a56a
SM
74782020-03-16 Simon Marchi <simon.marchi@efficios.com>
7479
7480 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
7481 i386_cygwin_core_osabi_sniffer.
7482
7a1998df
SM
74832020-03-16 Simon Marchi <simon.marchi@efficios.com>
7484
7485 * i386-cygwin-tdep.c: Rename to...
7486 * i386-windows-tdep.c: ... this.
7487 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
7488 i386-windows-tdep.c.
7489 * configure.tgt: Likewise.
7490
053205cc
SM
74912020-03-16 Simon Marchi <simon.marchi@efficios.com>
7492
7493 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
7494 * osabi.c (gdb_osabi_names): Add "Windows".
7495 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
7496 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
7497 (i386_cygwin_core_osabi_sniffer): New function, extracted from
7498 i386_cygwin_osabi_sniffer.
7499 (_initialize_i386_cygwin_tdep): Register OS ABI
7500 GDB_OSABI_WINDOWS for i386.
7501 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
7502 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
7503 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
7504 for x86-64.
7505 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
7506 when the target matches '*-*-mingw*'.
7507
fe4b2ee6
SM
75082020-03-16 Simon Marchi <simon.marchi@efficios.com>
7509
7510 * defs.h (enum gdb_osabi): Move to...
7511 * osabi.h (enum gdb_osabi): ... here.
7512 * gdbarch.sh: Include osabi.h in gdbarch.h.
7513 * gdbarch.h: Re-generate.
7514
cb9b645d
SM
75152020-03-16 Simon Marchi <simon.marchi@efficios.com>
7516
7517 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
7518 function.
7519 (_initialize_amd64_windows_tdep): Register osabi sniffer.
7520
3293bbaf
TT
75212020-03-14 Tom Tromey <tom@tromey.com>
7522
7523 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
7524 for C++.
7525 (c_type_print_modifier): Likewise. Add "language" parameter.
7526 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
7527 (c_type_print_base_1): Update.
7528 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
7529 constants.
7530 * type-stack.c (type_stack::insert): Handle tp_atomic and
7531 tp_restrict.
7532 (type_stack::follow_type_instance_flags): Likewise.
7533 (type_stack::follow_types): Likewise. Merge type-following code.
7534 * c-exp.y (RESTRICT, ATOMIC): New tokens.
7535 (space_identifier, cv_with_space_id)
7536 (const_or_volatile_or_space_identifier_noopt)
7537 (const_or_volatile_or_space_identifier): Remove.
7538 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
7539 rules.
7540 (ptr_operator, typebase): Update.
7541 (enum token_flag) <FLAG_C>: New constant.
7542 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
7543 "_Atomic".
7544 (lex_one_token): Handle FLAG_C.
7545
154151a6
KR
75462020-03-14 Kamil Rytarowski <n54@gmx.com>
7547
7548 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
7549 it to the ptrace call.
7550 * m68k-bsd-nat.c (store_registers): Likewise.
7551
bc107784
KR
75522020-03-14 Kamil Rytarowski <n54@gmx.com>
7553
7554 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
7555 gdb_byte *.
7556 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
7557 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7558 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
7559
01a80117
KR
75602020-03-14 Kamil Rytarowski <n54@gmx.com>
7561
7562 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
7563 nbsd_nat_target instead of inf_ptrace_target.
7564 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7565 nbsd_nat_target.
7566
f90280ca
KR
75672020-03-14 Kamil Rytarowski <n54@gmx.com>
7568
7569 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
7570 register_t.
7571
6def66f1
KR
75722020-03-14 Kamil Rytarowski <n54@gmx.com>
7573
7574 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
7575 it to the ptrace call.
7576 * alpha-bsd-nat.c (store_registers): Likewise.
7577
66eaca97
KR
75782020-03-14 Kamil Rytarowski <n54@gmx.com>
7579
7580 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
7581 includes.
7582 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
7583 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
7584 fill_fpregset): Likewise.
7585
4fed520b
KR
75862020-03-14 Kamil Rytarowski <n54@gmx.com>
7587
7588 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
7589 nbsd_nat_target instead of inf_ptrace_target.
7590 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7591 nbsd_nat_target.
7592
2190cf06
KR
75932020-03-14 Kamil Rytarowski <n54@gmx.com>
7594
7595 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
7596 register_t.
7597
75c56d3d
KR
75982020-03-14 Kamil Rytarowski <n54@gmx.com>
7599
7600 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
7601 it to the ptrace call.
7602 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
7603 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
7604 * arm-nbsd-nat.c (store_register): Likewise.
7605 * arm-nbsd-nat.c (store_regs): Likewise.
7606 * arm-nbsd-nat.c (store_fp_register): Likewise.
7607 * arm-nbsd-nat.c (store_fp_regs): Likewise.
7608
6018d381
KR
76092020-03-14 Kamil Rytarowski <n54@gmx.com>
7610
7611 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
7612 nbsd_nat_target instead of inf_ptrace_target.
7613 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
7614 nbsd_nat_target.
7615
013f99f0
KR
76162020-03-14 Kamil Rytarowski <n54@gmx.com>
7617
7618 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
7619 it to the ptrace call.
7620 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
7621
12753073
KR
76222020-03-14 Kamil Rytarowski <n54@gmx.com>
7623
6227b330
KR
7624 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
7625 it to the ptrace call.
7626 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
7627
76282020-03-14 Kamil Rytarowski <n54@gmx.com>
7629
7630 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
7631 gdb_byte *.
12753073
KR
7632 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
7633
d5be5fa4
KR
76342020-03-14 Kamil Rytarowski <n54@gmx.com>
7635
7636 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
7637 instead of inf_ptrace_target.
7638 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
7639 nbsd_nat_target.
7640
8110f842
KR
76412020-03-14 Kamil Rytarowski <n54@gmx.com>
7642
7643 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7644 register_t.
7645
52feded7
KR
76462020-03-14 Kamil Rytarowski <n54@gmx.com>
7647
7648 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
7649 register_t.
7650
25567eee
KR
76512020-03-14 Kamil Rytarowski <n54@gmx.com>
7652
7653 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
7654 register_t.
7655
426a9c18
TT
76562020-03-13 Tom Tromey <tom@tromey.com>
7657
7658 * value.h (val_print): Don't declare.
7659 * valprint.h (val_print_array_elements)
7660 (val_print_scalar_formatted, generic_val_print): Don't declare.
7661 * valprint.c (generic_val_print_array): Take a struct value.
7662 (generic_val_print_ptr, generic_val_print_memberptr)
7663 (generic_val_print_bool, generic_val_print_int)
7664 (generic_val_print_char, generic_val_print_complex)
7665 (generic_val_print): Remove.
7666 (generic_value_print): Update.
7667 (do_val_print): Remove unused parameters. Don't call
7668 la_val_print.
7669 (val_print): Remove.
7670 (common_val_print): Update. Don't call value_check_printable.
7671 (val_print_scalar_formatted, val_print_array_elements): Remove.
7672 * rust-lang.c (rust_val_print): Remove.
7673 (rust_language_defn): Update.
7674 * p-valprint.c (pascal_val_print): Remove.
7675 (pascal_value_print_inner): Update.
7676 (pascal_object_print_val_fields, pascal_object_print_val):
7677 Remove.
7678 (pascal_object_print_static_field): Update.
7679 * p-lang.h (pascal_val_print): Don't declare.
7680 * p-lang.c (pascal_language_defn): Update.
7681 * opencl-lang.c (opencl_language_defn): Update.
7682 * objc-lang.c (objc_language_defn): Update.
7683 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
7684 * m2-lang.h (m2_val_print): Don't declare.
7685 * m2-lang.c (m2_language_defn): Update.
7686 * language.h (struct language_defn) <la_val_print>: Remove.
7687 * language.c (unk_lang_value_print_inner): Rename. Change
7688 argument types.
7689 (unknown_language_defn, auto_language_defn): Update.
7690 * go-valprint.c (go_val_print): Remove.
7691 * go-lang.h (go_val_print): Don't declare.
7692 * go-lang.c (go_language_defn): Update.
7693 * f-valprint.c (f_val_print): Remove.
7694 * f-lang.h (f_value_print): Don't declare.
7695 * f-lang.c (f_language_defn): Update.
7696 * d-valprint.c (d_val_print): Remove.
7697 * d-lang.h (d_value_print): Don't declare.
7698 * d-lang.c (d_language_defn): Update.
7699 * cp-valprint.c (cp_print_value_fields)
7700 (cp_print_value_fields_rtti, cp_print_value): Remove.
7701 (cp_print_static_field): Update.
7702 * c-valprint.c (c_val_print_array, c_val_print_ptr)
7703 (c_val_print_struct, c_val_print_union, c_val_print_int)
7704 (c_val_print_memberptr, c_val_print): Remove.
7705 * c-lang.h (c_val_print_array, cp_print_value_fields)
7706 (cp_print_value_fields_rtti): Don't declare.
7707 * c-lang.c (c_language_defn, cplus_language_defn)
7708 (asm_language_defn, minimal_language_defn): Update.
7709 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
7710 (ada_val_print_enum): Take a struct value.
7711 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
7712 (ada_val_print): Remove.
7713 (ada_value_print_1): Update.
7714 (printable_val_type): Remove.
7715 * ada-lang.h (ada_val_print): Don't declare.
7716 * ada-lang.c (ada_language_defn): Update.
7717
42331a1e
TT
77182020-03-13 Tom Tromey <tom@tromey.com>
7719
7720 * valprint.c (do_val_print): Update.
7721 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
7722 a struct value.
7723 (value_to_value_object_no_release): Declare.
7724 * python/py-value.c (value_to_value_object_no_release): New
7725 function.
7726 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
7727 struct value.
7728 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
7729 function.
7730 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
7731 a struct value.
7732 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
7733 Declare.
7734 (gdbscm_apply_val_pretty_printer): Take a struct value.
7735 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
7736 value.
7737 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
7738 value.
7739 * extension-priv.h (struct extension_language_ops)
7740 <apply_val_pretty_printer>: Take a struct value.
7741 * cp-valprint.c (cp_print_value): Create a struct value.
7742 (cp_print_value): Update.
7743
3a916a97
TT
77442020-03-13 Tom Tromey <tom@tromey.com>
7745
7746 * ada-valprint.c (print_field_values): Call common_val_print.
7747
b59eac37
TT
77482020-03-13 Tom Tromey <tom@tromey.com>
7749
7750 * ada-valprint.c (val_print_packed_array_elements): Remove
7751 bitoffset and val parameters. Call common_val_print.
7752 (ada_val_print_string): Remove offset, address, and original_value
7753 parameters.
7754 (ada_val_print_array): Update.
7755 (ada_value_print_array): New function.
7756 (ada_value_print_1): Call it.
7757
03371129
TT
77582020-03-13 Tom Tromey <tom@tromey.com>
7759
7760 * ada-valprint.c (ada_value_print): Use common_val_print.
7761
2e088f8b
TT
77622020-03-13 Tom Tromey <tom@tromey.com>
7763
7764 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
7765
39ef85a8
TT
77662020-03-13 Tom Tromey <tom@tromey.com>
7767
7768 * ada-valprint.c (ada_value_print_num): New function.
7769 (ada_value_print_1): Use it.
7770
b9fa6e07
TT
77712020-03-13 Tom Tromey <tom@tromey.com>
7772
7773 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
7774
416595d6
TT
77752020-03-13 Tom Tromey <tom@tromey.com>
7776
7777 * ada-valprint.c (ada_value_print_ptr): New function.
7778 (ada_value_print_1): Use it.
7779
5b5e15ec
TT
77802020-03-13 Tom Tromey <tom@tromey.com>
7781
7782 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
7783 call common_val_print.
7784 (ada_val_print_1): Update.
7785 (ada_value_print_1): New function.
7786 (ada_value_print_inner): Rewrite.
7787
fbf54e75
TT
77882020-03-13 Tom Tromey <tom@tromey.com>
7789
7790 * cp-valprint.c (cp_print_value_fields): Update.
7791 (cp_print_value): New function.
7792
64b653ca
TT
77932020-03-13 Tom Tromey <tom@tromey.com>
7794
7795 * m2-valprint.c (m2_value_print_inner): Use
7796 cp_print_value_fields.
7797 * cp-valprint.c (cp_print_value_fields): New function.
7798 * c-valprint.c (c_value_print_struct): New function.
7799 (c_value_print_inner): Use c_value_print_struct.
7800 * c-lang.h (cp_print_value_fields): Declare.
7801
6999f067
TT
78022020-03-13 Tom Tromey <tom@tromey.com>
7803
7804 * c-valprint.c (c_value_print_array): New function.
7805 (c_value_print_inner): Use it.
7806
ce80b8bd
TT
78072020-03-13 Tom Tromey <tom@tromey.com>
7808
7809 * c-valprint.c (c_value_print_memberptr): New function.
7810 (c_value_print_inner): Use it.
7811
2faac269
TT
78122020-03-13 Tom Tromey <tom@tromey.com>
7813
7814 * c-valprint.c (c_value_print_int): New function.
7815 (c_value_print_inner): Use it.
7816
da3e2c29
TT
78172020-03-13 Tom Tromey <tom@tromey.com>
7818
7819 * c-valprint.c (c_value_print_ptr): New function.
7820 (c_value_print_inner): Use it.
7821
50836231
TT
78222020-03-13 Tom Tromey <tom@tromey.com>
7823
7824 * c-valprint.c (c_value_print_inner): Rewrite.
7825
4f412b6e
TT
78262020-03-13 Tom Tromey <tom@tromey.com>
7827
7828 * valprint.c (generic_value_print_complex): New function.
7829 (generic_value_print): Use it.
7830
f5354008
TT
78312020-03-13 Tom Tromey <tom@tromey.com>
7832
7833 * valprint.c (generic_val_print_float): Don't call
7834 val_print_scalar_formatted.
7835 (generic_val_print, generic_value_print): Update.
7836
3eec3b05
TT
78372020-03-13 Tom Tromey <tom@tromey.com>
7838
7839 * valprint.c (generic_value_print_char): New function
7840 (generic_value_print): Use it.
7841
fdddfccb
TT
78422020-03-13 Tom Tromey <tom@tromey.com>
7843
7844 * valprint.c (generic_value_print_int): New function.
7845 (generic_value_print): Use it.
7846
6dde7521
TT
78472020-03-13 Tom Tromey <tom@tromey.com>
7848
7849 * valprint.c (generic_value_print_bool): New function.
7850 (generic_value_print): Use it.
7851
4112d2e6
TT
78522020-03-13 Tom Tromey <tom@tromey.com>
7853
7854 * valprint.c (generic_val_print_func): Simplify.
7855 (generic_val_print, generic_value_print): Update.
7856
65786af6
TT
78572020-03-13 Tom Tromey <tom@tromey.com>
7858
7859 * valprint.c (generic_val_print_flags): Remove.
7860 (generic_val_print, generic_value_print): Update.
7861 (val_print_type_code_flags): Add original_value parameter.
7862
40f3ce18
TT
78632020-03-13 Tom Tromey <tom@tromey.com>
7864
7865 * valprint.c (generic_val_print): Update.
7866 (generic_value_print): Update.
7867 * valprint.c (generic_val_print_enum): Don't call
7868 val_print_scalar_formatted.
7869
2a5b130b
TT
78702020-03-13 Tom Tromey <tom@tromey.com>
7871
7872 * valprint.c (generic_value_print): Call generic_value_print_ptr.
7873 * valprint.c (generic_value_print_ptr): New function.
7874
abc66ce9
TT
78752020-03-13 Tom Tromey <tom@tromey.com>
7876
7877 * valprint.c (generic_value_print): Rewrite.
7878
07a32858
TT
78792020-03-13 Tom Tromey <tom@tromey.com>
7880
7881 * p-valprint.c (pascal_object_print_value_fields)
7882 (pascal_object_print_value): New functions.
7883
64d64d3a
TT
78842020-03-13 Tom Tromey <tom@tromey.com>
7885
7886 * p-valprint.c (pascal_value_print_inner): Rewrite.
7887
6a95a1f5
TT
78882020-03-13 Tom Tromey <tom@tromey.com>
7889
7890 * f-valprint.c (f_value_print_innner): Rewrite.
7891
59fcdac6
TT
78922020-03-13 Tom Tromey <tom@tromey.com>
7893
7894 * m2-valprint.c (m2_print_unbounded_array): New overload.
7895 (m2_print_unbounded_array): Update.
7896 (m2_print_array_contents): Take a struct value.
7897 (m2_value_print_inner): Rewrite.
7898
d133c3e1
TT
78992020-03-13 Tom Tromey <tom@tromey.com>
7900
7901 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
7902 (d_value_print_inner): New function.
7903 * d-lang.h (d_value_print_inner): Declare.
7904 * d-lang.c (d_language_defn): Use d_value_print_inner.
7905
23b0f06b
TT
79062020-03-13 Tom Tromey <tom@tromey.com>
7907
7908 * go-valprint.c (go_value_print_inner): New function.
7909 * go-lang.h (go_value_print_inner): Declare.
7910 * go-lang.c (go_language_defn): Use go_value_print_inner.
7911
5f56f7cb
TT
79122020-03-13 Tom Tromey <tom@tromey.com>
7913
7914 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
7915 API.
7916 (rust_val_print): Rewrite.
7917 (rust_value_print_inner): New function, from rust_val_print.
7918 (rust_language_defn): Use rust_value_print_inner.
7919
26792ee0
TT
79202020-03-13 Tom Tromey <tom@tromey.com>
7921
7922 * ada-valprint.c (ada_value_print_inner): New function.
7923 * ada-lang.h (ada_value_print_inner): Declare.
7924 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
7925
24051bbe
TT
79262020-03-13 Tom Tromey <tom@tromey.com>
7927
7928 * f-valprint.c (f_value_print_innner): New function.
7929 * f-lang.h (f_value_print_innner): Declare.
7930 * f-lang.c (f_language_defn): Use f_value_print_innner.
7931
c0941be6
TT
79322020-03-13 Tom Tromey <tom@tromey.com>
7933
7934 * p-valprint.c (pascal_value_print_inner): New function.
7935 * p-lang.h (pascal_value_print_inner): Declare.
7936 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
7937
62c4663d
TT
79382020-03-13 Tom Tromey <tom@tromey.com>
7939
7940 * m2-valprint.c (m2_value_print_inner): New function.
7941 * m2-lang.h (m2_value_print_inner): Declare.
7942 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
7943
62182190
TT
79442020-03-13 Tom Tromey <tom@tromey.com>
7945
7946 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
7947 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
7948 * c-valprint.c (c_value_print_inner): New function.
7949 * c-lang.h (c_value_print_inner): Declare.
7950 * c-lang.c (c_language_defn, cplus_language_defn)
7951 (asm_language_defn, minimal_language_defn): Use
7952 c_value_print_inner.
7953
1e592a8a
TT
79542020-03-13 Tom Tromey <tom@tromey.com>
7955
7956 * p-valprint.c (pascal_object_print_value_fields): Now static.
7957 * p-lang.h (pascal_object_print_value_fields): Don't declare.
7958
7fe471e9
TT
79592020-03-13 Tom Tromey <tom@tromey.com>
7960
7961 * c-valprint.c (c_val_print_array): Simplify.
7962
d121c6ce
TT
79632020-03-13 Tom Tromey <tom@tromey.com>
7964
7965 * valprint.c (value_print_array_elements): New function.
7966 * valprint.h (value_print_array_elements): Declare.
7967
4dba70ee
TT
79682020-03-13 Tom Tromey <tom@tromey.com>
7969
7970 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
7971 * mips-tdep.c (mips_print_register): Use
7972 value_print_scalar_formatted.
7973
4f9ae810
TT
79742020-03-13 Tom Tromey <tom@tromey.com>
7975
7976 * valprint.h (value_print_scalar_formatted): Declare.
7977 * valprint.c (value_print_scalar_formatted): New function.
7978
156bfec9
TT
79792020-03-13 Tom Tromey <tom@tromey.com>
7980
7981 * valprint.h (generic_value_print): Declare.
7982 * valprint.c (generic_value_print): New function.
7983
2b4e573d
TT
79842020-03-13 Tom Tromey <tom@tromey.com>
7985
7986 * valprint.c (do_val_print): Call la_value_print_inner, if
7987 available.
7988 * rust-lang.c (rust_language_defn): Update.
7989 * p-lang.c (pascal_language_defn): Update.
7990 * opencl-lang.c (opencl_language_defn): Update.
7991 * objc-lang.c (objc_language_defn): Update.
7992 * m2-lang.c (m2_language_defn): Update.
7993 * language.h (struct language_defn) <la_value_print_inner>: New
7994 member.
7995 * language.c (unknown_language_defn, auto_language_defn): Update.
7996 * go-lang.c (go_language_defn): Update.
7997 * f-lang.c (f_language_defn): Update.
7998 * d-lang.c (d_language_defn): Update.
7999 * c-lang.c (c_language_defn, cplus_language_defn)
8000 (asm_language_defn, minimal_language_defn): Update.
8001 * ada-lang.c (ada_language_defn): Update.
8002
a1f6a07c
TT
80032020-03-13 Tom Tromey <tom@tromey.com>
8004
8005 * c-valprint.c (c_value_print): Use common_val_print.
8006
410cf315
TT
80072020-03-13 Tom Tromey <tom@tromey.com>
8008
8009 * cp-valprint.c (cp_print_static_field): Use common_val_print.
8010
72a45c93
TT
80112020-03-13 Tom Tromey <tom@tromey.com>
8012
8013 * f-valprint.c (f77_print_array_1, f_val_print): Use
8014 common_val_print.
8015
040f66bd
TT
80162020-03-13 Tom Tromey <tom@tromey.com>
8017
8018 * riscv-tdep.c (riscv_print_one_register_info): Use
8019 common_val_print.
8020
a6e05a6c
TT
80212020-03-13 Tom Tromey <tom@tromey.com>
8022
8023 * mi/mi-main.c (output_register): Use common_val_print.
8024
3444c526
TT
80252020-03-13 Tom Tromey <tom@tromey.com>
8026
8027 * infcmd.c (default_print_one_register_info): Use
8028 common_val_print.
8029
c2a44efe
TT
80302020-03-13 Tom Tromey <tom@tromey.com>
8031
8032 * valprint.h (common_val_print_checked): Declare.
8033 * valprint.c (common_val_print_checked): New function.
8034 * stack.c (print_frame_arg): Use common_val_print_checked.
8035
b0c26e99
TT
80362020-03-13 Tom Tromey <tom@tromey.com>
8037
8038 * valprint.c (do_val_print): New function, from val_print.
8039 (val_print): Use do_val_print.
8040 (common_val_print): Use do_val_print.
8041
ce3acbe9
TT
80422020-03-13 Tom Tromey <tom@tromey.com>
8043
8044 * valprint.c (value_print): Use scoped_value_mark.
8045
96c7f873
TV
80462020-03-13 Tom de Vries <tdevries@suse.de>
8047
8048 PR symtab/25646
8049 * psymtab.c (partial_symtab::partial_symtab): Don't set
8050 globals_offset and statics_offset. Push element onto
8051 current_global_psymbols and current_static_psymbols stacks.
8052 (concat): New function.
8053 (end_psymtab_common): Set globals_offset and statics_offset. Pop
8054 element from current_global_psymbols and current_static_psymbols
8055 stacks. Concat popped elements to global_psymbols and
8056 static_symbols.
8057 (add_psymbol_to_list): Use current_global_psymbols and
8058 current_static_psymbols stacks.
8059 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
8060 current_static_psymbols fields.
8061
6ba0a321
CB
80622020-03-12 Christian Biesinger <cbiesinger@google.com>
8063
8064 * corelow.c (sniff_core_bfd): Remove.
8065 (class core_target) <m_core_vec>: Remove.
8066 (core_target::core_target): Update.
8067 (core_file_fns): Remove.
8068 (deprecated_add_core_fns): Remove.
8069 (default_core_sniffer): Remove.
8070 (sniff_core_bfd): Remove.
8071 (default_check_format): Remove.
8072 (gdb_check_format): Remove.
8073 (core_target_open): Update.
8074 (core_target::get_core_register_section): Update.
8075 (get_core_registers_cb): Update.
8076 (core_target::fetch_registers): Update.
8077 * gdbcore.h (struct core_fns): Remove.
8078 (deprecated_add_core_fns): Remove.
8079 (default_core_sniffer): Remove.
8080 (default_check_format): Remove.
8081
227031b2
TT
80822020-03-12 Tom Tromey <tom@tromey.com>
8083
8084 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
8085 CORE_ADDR.
8086 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
8087
53807e9f
TT
80882020-03-12 Tom Tromey <tom@tromey.com>
8089
8090 * remote.c (remote_target::download_tracepoint)
8091 (remote_target::enable_tracepoint)
8092 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
8093 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
8094 sprintf_vma.
8095
64f25102
TT
80962020-03-12 Tom Tromey <tom@tromey.com>
8097
8098 * symfile-mem.c: Update CORE_ADDR size assert.
8099
272cd5a3
SM
81002020-03-12 Simon Marchi <simon.marchi@efficios.com>
8101
8102 * selftest.m4: Move to gdbsupport/.
8103 * acinclude.m4: Update path to selftest.m4.
8104
74cd3f9d
SM
81052020-03-12 Simon Marchi <simon.marchi@efficios.com>
8106
8107 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
8108 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
8109 gdbarch-selfselftests.c and selftest-arch.c.
8110 (SUBDIR_UNITTESTS_OBS): Rename to...
8111 (SELFTESTS_OBS): ... this.
8112 (COMMON_SFILES): Remove disasm-selftests.c and
8113 gdbarch-selftests.c.
8114 * configure.ac: Don't add selftest-arch.{c,o} to
8115 CONFIG_{SRCS,OBS}.
8116 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
8117 preprocessor conditions.
8118
db6878ac
SM
81192020-03-12 Simon Marchi <simon.marchi@efficios.com>
8120
8121 * configure.ac: Don't source bfd/development.sh.
8122 * selftest.m4: Modify comment.
8123 * configure: Re-generate.
8124
4d696a5c
SM
81252020-03-12 Simon Marchi <simon.marchi@efficios.com>
8126
8127 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
8128 not "true" or "false".
8129 * configure: Re-generate.
8130
8dd8e1c7
CB
81312020-03-12 Christian Biesinger <cbiesinger@google.com>
8132
8133 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
8134 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
8135 renamed to arm_nbsd_supply_gregset.
8136 (fetch_register): Update to call arm_nbsd_supply_gregset.
8137 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
8138 (arm_netbsd_nat_target::fetch_registers): Update.
8139 (fetch_elfcore_registers): Removed.
8140 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
8141 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
8142 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
8143 not require NetBSD system headers.
8144 (arm_nbsd_regset): New struct.
8145 (arm_nbsd_iterate_over_regset_sections): New function.
8146 (arm_netbsd_init_abi_common): Updated to call
8147 set_gdbarch_iterate_over_regset_sections.
8148 * arm-nbsd-tdep.h: New file.
8149
dd69bf7a
KB
81502020-03-11 Kevin Buettner <kevinb@redhat.com>
8151
8152 * symtab.c (find_pc_sect_line): Add check which prevents infinite
8153 recursion.
8154
a0761e34
SM
81552020-03-11 Simon Marchi <simon.marchi@efficios.com>
8156
8157 * configure: Re-generate.
8158
e7a82140
TT
81592020-03-11 Tom Tromey <tromey@adacore.com>
8160
8161 * ada-typeprint.c (print_choices): Fix comment.
8162
dcc050c8
AB
81632020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
8164
8165 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
8166 previous item in the list, when the list has no items.
8167
1c33af77
TV
81682020-03-11 Tom de Vries <tdevries@suse.de>
8169
8170 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
8171 PROP_LOCLIST handling code.
8172
8c95582d
AB
81732020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
8174
8175 * buildsym-legacy.c (record_line): Pass extra parameter to
8176 record_line.
8177 * buildsym.c (buildsym_compunit::record_line): Take an extra
8178 parameter, reduce duplication in the line table, and record the
8179 is_stmt flag in the line table.
8180 * buildsym.h (buildsym_compunit::record_line): Add extra
8181 parameter.
8182 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
8183 non-statement lines.
8184 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
8185 this to the symtab builder.
8186 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
8187 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
8188 through to dwarf_record_line_1.
8189 * infrun.c (process_event_stop_test): When stepping, don't stop at
8190 a non-statement instruction, and only refresh the step info when
8191 we land in the middle of a line's range. Also add an extra
8192 comment.
8193 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
8194 field.
8195 * record-btrace.c (btrace_find_line_range): Only record lines
8196 marked as is-statement.
8197 * stack.c (frame_show_address): Show the frame address if we are
8198 in a non-statement sal.
8199 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
8200 (maintenance_print_one_line_table): Print a header for the is_stmt
8201 column, and include is_stmt information in the output.
8202 * symtab.c (find_pc_sect_line): Find lines marked as statements in
8203 preference to non-statements.
8204 (find_pcs_for_symtab_line): Prefer is-statement entries.
8205 (find_line_common): Likewise.
8206 * symtab.h (struct linetable_entry): Add is_stmt field.
8207 (struct symtab_and_line): Likewise.
8208 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
8209 arranging the line table.
8210
e4003a34
TV
82112020-03-07 Tom de Vries <tdevries@suse.de>
8212
8213 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
8214 DIE.
8215
e8932576
TT
82162020-03-07 Tom Tromey <tom@tromey.com>
8217
8218 * valops.c (value_literal_complex): Remove obsolete comment.
8219 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
8220 comment.
8221
29734269
SM
82222020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
8223
8224 * infrun.h: Forward-declare thread_info.
8225 (set_step_info): Add thread_info parameter, add doc.
8226 * infrun.c (set_step_info): Add thread_info parameter, move doc
8227 to header.
8228 * infrun.c (process_event_stop_test): Pass thread to
8229 set_step_info call.
8230 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
8231 set_step_info.
8232 (prepare_one_step): Add thread_info parameter, pass it to
8233 set_step_frame and prepare_one_step (recursive) call.
8234 (step_1): Pass thread to prepare_one_step call.
8235 (step_command_fsm::should_stop): Pass thread to
8236 prepare_one_step.
8237 (until_next_fsm): Pass thread to set_step_frame call.
8238 (finish_command): Pass thread to set_step_info call.
8239
b7d64b29
HD
82402020-03-06 Hannes Domani <ssbssa@yahoo.de>
8241
8242 * windows-tdep.c (windows_solib_create_inferior_hook):
8243 Check if inferior is running.
8244
09f2921c
TV
82452020-03-06 Tom de Vries <tdevries@suse.de>
8246
8247 * NEWS: Fix "the the".
8248 * ctfread.c: Same.
8249
fd760e79
TV
82502020-03-06 Tom de Vries <tdevries@suse.de>
8251
8252 * psymtab.c (psymtab_to_symtab): Don't print "done.".
8253
20ea4a60
AB
82542020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
8255
8256 * .dir-locals.el: Add a comment referencing the other copies of
8257 this file.
8258
0afbabf0
JB
82592020-03-05 John Baldwin <jhb@FreeBSD.org>
8260
8261 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
8262 psargs.
8263
842806cb
TBA
82642020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8265
8266 * .gitattributes: New file.
8267
be1e3d3e
TT
82682020-03-04 Tom Tromey <tom@tromey.com>
8269
8270 * symmisc.c (print_symbol_bcache_statistics)
8271 (print_objfile_statistics): Update.
8272 * symfile.c (allocate_symtab): Use intern.
8273 * psymtab.c (partial_symtab::partial_symtab): Use intern.
8274 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
8275 macro_cache>: Remove.
8276 <string_cache>: New member.
8277 (struct objfile) <intern>: New methods.
8278 * elfread.c (elf_symtab_read): Use intern.
8279 * dwarf2/read.c (fixup_go_packaging): Intern package name.
8280 (dwarf2_compute_name, dwarf2_physname)
8281 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
8282 names.
8283 (guess_partial_die_structure_name): Update.
8284 (partial_die_info::fixup): Intern name.
8285 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
8286 name.
8287 (dwarf2_name): Intern name. Update.
8288 * buildsym.c (buildsym_compunit::get_macro_table): Use
8289 string_cache.
8290
4e7625fd
TT
82912020-03-04 Tom Tromey <tom@tromey.com>
8292
8293 * jit.c (bfd_open_from_target_memory): Make "target" const.
8294 * corefile.c (gnutarget): Now const.
8295 * gdbcore.h (gnutarget): Now const.
8296
46f9f931
HD
82972020-03-04 Hannes Domani <ssbssa@yahoo.de>
8298
8299 * NEWS: Mention support for WOW64 processes.
8300 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
8301 (amd64_windows_segment_register_p): Remove static.
8302 (_initialize_amd64_windows_nat): Update.
8303 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
8304 * i386-windows-nat.c (context_offset): Update.
8305 (i386_mappings): Rename and remove static.
8306 (i386_windows_segment_register_p): Remove static.
8307 (_initialize_i386_windows_nat): Update.
8308 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
8309 (STATUS_WX86_SINGLE_STEP): New macro.
8310 (EnumProcessModulesEx): New macro.
8311 (Wow64SuspendThread): New macro.
8312 (Wow64GetThreadContext): New macro.
8313 (Wow64SetThreadContext): New macro.
8314 (Wow64GetThreadSelectorEntry): New macro.
8315 (windows_set_context_register_offsets): Add static.
8316 (windows_set_segment_register_p): Likewise.
8317 (windows_add_thread): Adapt for WOW64 processes.
8318 (windows_fetch_one_register): Likewise.
8319 (windows_nat_target::fetch_registers): Likewise.
8320 (windows_store_one_register): Likewise.
8321 (display_selector): Likewise.
8322 (display_selectors): Likewise.
8323 (handle_exception): Likewise.
8324 (windows_continue): Likewise.
8325 (windows_nat_target::resume): Likewise.
8326 (windows_add_all_dlls): Likewise.
8327 (do_initial_windows_stuff): Likewise.
8328 (windows_nat_target::attach): Likewise.
8329 (windows_get_exec_module_filename): Likewise.
8330 (windows_nat_target::create_inferior): Likewise.
8331 (windows_xfer_siginfo): Likewise.
8332 (_initialize_loadable): Initialize Wow64SuspendThread,
8333 Wow64GetThreadContext, Wow64SetThreadContext,
8334 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
8335 * windows-nat.h (windows_set_context_register_offsets):
8336 Remove declaration.
8337 (windows_set_segment_register_p): Likewise.
8338 (i386_windows_segment_register_p): Add declaration.
8339 (amd64_windows_segment_register_p): Likewise.
8340
440cf44e
LM
83412020-03-04 Luis Machado <luis.machado@linaro.org>
8342
8343 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
8344 in "info registers" for AArch64/ARM.
8345
8346 The change caused "info registers" to not print GPR's.
8347
8348 gdb/ChangeLog:
8349
8350 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
8351
8352 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
8353 when reg->group is empty and reggroup is not.
8354
1009d92f
TT
83552020-03-03 Tom Tromey <tromey@adacore.com>
8356
8357 * dwarf2/frame.c (struct dwarf2_frame_cache)
8358 <checked_tailcall_bottom, entry_cfa_sp_offset,
8359 entry_cfa_sp_offset_p>: Remove members.
8360 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
8361 (dwarf2_frame_prev_register): Don't call
8362 dwarf2_tailcall_sniffer_first.
8363 (dwarf2_append_unwinders): Don't append tailcall unwinder.
8364 * frame-unwind.c (add_unwinder): New fuction.
8365 (frame_unwind_init): Use it. Add tailcall unwinder.
8366
5e5d66b6
AB
83672020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
8368 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
8369
8370 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
8371 value should be printed as true.
8372
584cf46d
HD
83732020-03-03 Hannes Domani <ssbssa@yahoo.de>
8374
8375 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
8376 (windows_init_abi): Set and use windows_so_ops.
8377
7b973adc
SDJ
83782020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
8379
8380 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
8381 when verifying if dealing with a convenience variable.
8382
bb7b70ab
LM
83832020-03-03 Luis Machado <luis.machado@linaro.org>
8384
8385 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
8386
9822cb57
SM
83872020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
8388
8389 * infrun.c (gdbarch_supports_displaced_stepping): New.
8390 (use_displaced_stepping): Break up conditions in smaller pieces.
8391 Use gdbarch_supports_displaced_stepping.
8392 (displaced_step_prepare_throw): Use
8393 gdbarch_supports_displaced_stepping.
8394
63e163f2
AB
83952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8396
8397 * NEWS: Mention new behaviour of the history filename.
8398 * top.c (write_history_p): Add comment.
8399 (show_write_history_p): Add header comment, give a different
8400 message when history writing is on, but the history filename is
8401 empty.
8402 (history_filename): Add comment.
8403 (history_filename_empty): New function.
8404 (show_history_filename): Add header comment, give a different
8405 message when the filename is empty.
8406 (init_history): Compare history_filename against nullptr, and only
8407 read history if the filename is not empty.
8408 (set_history_filename): Add header comment, and only make
8409 non-empty filenames absolute.
8410 (init_main): Make the filename argument to 'set history filename'
8411 optional.
8412
81b86b97
CB
84132020-03-02 Christian Biesinger <cbiesinger@google.com>
8414
8415 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
8416 (arm_supply_vfpregset): ...this, and update to use VFP registers.
8417 (fetch_fp_register): Update.
8418 (fetch_fp_regs): Update.
8419 (store_fp_register): Update.
8420 (store_fp_regs): Update.
8421 (arm_netbsd_nat_target::read_description): New function.
8422 (fetch_elfcore_registers): Update.
8423
24ed6739
AB
84242020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
8425
8426 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
8427 general_thread if the stop reply is missing a thread-id.
8428 (remote_target::process_stop_reply): Use the first non-exited
8429 thread if the target didn't pass a thread-id.
8430 * infrun.c (do_target_wait): Move call to
8431 switch_to_inferior_no_thread to ....
8432 (do_target_wait_1): ... here.
8433
a84bb2a0
JT
84342020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
8435
8436 * debuginfod-support.c: Include defs.h first.
8437
658dadf0
TV
84382020-02-28 Tom de Vries <tdevries@suse.de>
8439
8440 * symfile.c (set_initial_language): Use default language for lookup.
8441
4ebe4877
SM
84422020-02-28 Simon Marchi <simon.marchi@efficios.com>
8443
8444 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
8445 reader variable, pass `this` to read_cutu_die_from_dwo.
8446
e5da1139
AM
84472020-02-27 Aaron Merey <amerey@redhat.com>
8448
8449 * source.c (open_source_file): Check for nullptr when computing
8450 srcpath.
8451
317f7127
TT
84522020-02-27 Tom Tromey <tromey@adacore.com>
8453
8454 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
8455 member.
8456 (dwarf2_add_field): Don't update nfields.
8457 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
8458
3104d9ee
AB
84592020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
8460
8461 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
8462 abs.
8463
b83470bf
TT
84642020-02-26 Tom Tromey <tom@tromey.com>
8465
8466 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
8467 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
8468 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
8469 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
8470 per_cu_data.
8471
edfe0a0c
TT
84722020-02-26 Tom Tromey <tom@tromey.com>
8473
8474 * dwarf2/index-write.c (psym_index_map): Change type.
8475 (add_address_entry_worker, write_one_signatured_type)
8476 (recursively_count_psymbols, recursively_write_psymbols)
8477 (class debug_names, psyms_seen_size, write_gdbindex)
8478 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
8479
0d79cdc4
AM
84802020-02-26 Aaron Merey <amerey@redhat.com>
8481
8482 * Makefile.in: Handle optional debuginfod support.
8483 * NEWS: Update.
8484 * README: Add --with-debuginfod summary.
8485 * config.in: Regenerate.
8486 * configure: Regenerate.
8487 * configure.ac: Handle optional debuginfod support.
8488 * debuginfod-support.c: debuginfod helper functions.
8489 * debuginfod-support.h: Ditto.
8490 * doc/gdb.texinfo: Add --with-debuginfod to configure options
8491 summary.
8492 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
8493 when a dwz file cannot be found.
8494 * elfread.c (elf_symfile_read): Query debuginfod servers when a
8495 debuginfo file cannot be found.
8496 * source.c (open_source_file): Query debuginfod servers when a
8497 source file cannot be found.
8498 * top.c (print_gdb_configuration): Include
8499 --{with,without}-debuginfod in the output.
8500
b65ce565
JG
85012020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
8502
8503 * thread.c (thr_try_catch_cmd): Print thread name.
8504
d4c9a4f8
SM
85052020-02-26 Simon Marchi <simon.marchi@efficios.com>
8506
8507 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
8508 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8509 dwarf2_fetch_die_type_sect_off): Move to...
8510 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
8511 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8512 dwarf2_fetch_die_type_sect_off): ... here.
8513 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
8514 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
8515 dwarf2_fetch_die_type_sect_off): Move doc to header file.
8516
0dce4280
TV
85172020-02-26 Tom de Vries <tdevries@suse.de>
8518
8519 PR gdb/25603
8520 * symfile.c (set_initial_language): Exit-early if
8521 language_mode == language_mode_manual.
8522
450a1bfc
SM
85232020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8524
8525 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
8526 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
8527 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
8528
9e80cfa1
AB
85292020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
8530
8531 * gdbtypes.c (create_array_type_with_stride): Handle negative
8532 array strides.
8533 * valarith.c (value_subscripted_rvalue): Likewise.
8534
09624f1f
LM
85352020-02-25 Luis Machado <luis.machado@linaro.org>
8536
8537 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
8538
8cb5117c
SM
85392020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
8540
8541 * loc.h (dwarf2_get_die_type): Move to...
8542 * read.h (dwarf2_get_die_type): ... here.
8543 * read.c (dwarf2_get_die_type): Move doc to header.
8544
c325c44e
JB
85452020-02-25 Joel Brobecker <brobecker@adacore.com>
8546
8547 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
8548 'gnulib/Makefile.in' to the list.
8549
4ac93832
TT
85502020-02-24 Tom Tromey <tom@tromey.com>
8551
8552 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
8553 Remove.
8554 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
8555 XOBNEWVEC.
8556
197400e8
TT
85572020-02-24 Tom Tromey <tom@tromey.com>
8558
8559 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
8560 New method.
8561 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
8562 (dw2_do_instantiate_symtab, dw2_get_file_names)
8563 (build_type_psymtab_dependencies, load_full_type_unit): Update.
8564
76935768
TT
85652020-02-24 Tom Tromey <tom@tromey.com>
8566
8567 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
8568 make_scoped_restore.
8569 (dwarf2_psymtab::read_symtab): Don't clear
8570 reading_partial_symbols.
8571
a88ef40d
TV
85722020-02-24 Tom de Vries <tdevries@suse.de>
8573
8574 PR gdb/25592
8575 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
8576
c9af6521
TV
85772020-02-24 Tom de Vries <tdevries@suse.de>
8578
8579 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
8580 commands layout next/prev/regs.
8581
5707a07a
TT
85822020-02-22 Tom Tromey <tom@tromey.com>
8583
8584 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
8585 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
8586
3b0fb49e
TT
85872020-02-22 Tom Tromey <tom@tromey.com>
8588
8589 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
8590
283be8bf
TT
85912020-02-22 Tom Tromey <tom@tromey.com>
8592
8593 * tui/tui-win.c (_initialize_tui_win): Add usage text.
8594 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
8595 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
8596 * tui/tui.c (_initialize_tui): Add usage text.
8597
ca793b96
TT
85982020-02-22 Tom Tromey <tom@tromey.com>
8599
8600 * tui/tui-win.c (tui_set_focus_command)
8601 (tui_set_win_height_command): Use error_no_arg.
8602 (_initialize_tui_win): Update help text.
8603 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
8604
432b5c40
TT
86052020-02-22 Tom Tromey <tom@tromey.com>
8606
8607 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
8608 * tui/tui-disasm.h (struct tui_disasm_window)
8609 <display_start_addr>: Declare.
8610 * tui/tui-source.h (struct tui_source_window)
8611 <display_start_addr>: Declare.
8612 * tui/tui-winsource.h (struct tui_source_window_base)
8613 <show_source_line, display_start_addr>: New methods.
8614 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
8615 Rename and move to protected section.
8616 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
8617 (tui_source_window_base::do_erase_source_content): Update.
8618 (tui_source_window_base::show_source_line): Now a method.
8619 (tui_source_window_base::show_source_content)
8620 (tui_source_window_base::tui_source_window_base)
8621 (tui_source_window_base::rerender)
8622 (tui_source_window_base::refill)
8623 (tui_source_window_base::do_scroll_horizontal)
8624 (tui_source_window_base::set_is_exec_point_at)
8625 (tui_source_window_base::update_breakpoint_info)
8626 (tui_source_window_base::update_exec_info): Update.
8627 * tui/tui-source.c (tui_source_window::set_contents)
8628 (tui_source_window::showing_source_p)
8629 (tui_source_window::do_scroll_vertical)
8630 (tui_source_window::location_matches_p)
8631 (tui_source_window::line_is_displayed): Update.
8632 (tui_source_window::display_start_addr): New method.
8633 * tui/tui-disasm.c (tui_disasm_window::set_contents)
8634 (tui_disasm_window::do_scroll_vertical)
8635 (tui_disasm_window::location_matches_p): Update.
8636 (tui_disasm_window::display_start_addr): New method.
8637
01b1af32
TT
86382020-02-22 Tom Tromey <tom@tromey.com>
8639
8640 * NEWS: Add entry for gdb.register_window_type.
8641 * tui/tui-layout.h (window_factory): New typedef.
8642 (tui_register_window): Declare.
8643 * tui/tui-layout.c (saved_tui_windows): New global.
8644 (tui_apply_current_layout): Use it.
8645 (tui_register_window): New function.
8646 * python/python.c (do_start_initialization): Call
8647 gdbpy_initialize_tui.
8648 (python_GdbMethods): Add "register_window_type" function.
8649 * python/python-internal.h (gdbpy_register_tui_window)
8650 (gdbpy_initialize_tui): Declare.
8651 * python/py-tui.c: New file.
8652 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
8653
fc96d20b
TT
86542020-02-22 Tom Tromey <tom@tromey.com>
8655
8656 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
8657
935c78c0
TT
86582020-02-22 Tom Tromey <tom@tromey.com>
8659
8660 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
8661 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
8662 * tui/tui-data.c (tui_set_win_with_focus): Remove.
8663 (tui_set_win_focus_to): Move from tui-win.c.
8664
0240c8f1
TT
86652020-02-22 Tom Tromey <tom@tromey.com>
8666
8667 * tui/tui-layout.c (make_standard_window, get_locator_window): New
8668 functions.
8669 (known_window_types): New global.
8670 (tui_get_window_by_name): Reimplement.
8671 (initialize_known_windows): New function.
8672 (validate_window_name): Rewrite.
8673 (_initialize_tui_layout): Call initialize_known_windows.
8674
fdb01f0c
TT
86752020-02-22 Tom Tromey <tom@tromey.com>
8676
8677 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
8678 Remove constants.
8679 * tui/tui-winsource.h (struct tui_source_window_base)
8680 <tui_source_window_base>: Remove parameter.
8681 * tui/tui-winsource.c
8682 (tui_source_window_base::tui_source_window_base): Remove
8683 parameter.
8684 (tui_source_window_base::refill): Update.
8685 * tui/tui-stack.h (struct tui_locator_window)
8686 <tui_locator_window>: Update.
8687 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
8688 Default the constructor.
8689 * tui/tui-regs.h (struct tui_data_item_window)
8690 <tui_data_item_window>: Default the constructor.
8691 (struct tui_data_window) <tui_data_window>: Likewise.
8692 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
8693 Default the constructor.
8694 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
8695 Default the constructor.
8696 <type>: Remove.
8697 (struct tui_win_info) <tui_win_info>: Default the constructor.
8698 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
8699 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
8700 Default the constructor.
8701
865a5aec
TT
87022020-02-22 Tom Tromey <tom@tromey.com>
8703
8704 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
8705 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
8706 * tui/tui-win.c (tui_resize_all): Don't call
8707 tui_delete_invisible_windows.
8708 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
8709 done.
8710 (tui_set_layout): Update.
8711 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
8712 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
8713 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
8714
e098d18c
TT
87152020-02-22 Tom Tromey <tom@tromey.com>
8716
8717 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
8718 correctly.
8719
eb9c8874
TT
87202020-02-22 Tom Tromey <tom@tromey.com>
8721
8722 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
8723
7eed1a8e
TT
87242020-02-22 Tom Tromey <tom@tromey.com>
8725
8726 * tui/tui-winsource.h (struct tui_source_window_iterator)
8727 <inner_iterator>: New etytypedef.
8728 <tui_source_window_iterator>: Take "end" parameter.
8729 <tui_source_window_iterator>: Take iterator.
8730 <operator*, advance>: Update.
8731 <m_iter>: Change type.
8732 <m_end>: New field.
8733 (struct tui_source_windows) <begin, end>: Update.
8734 * tui/tui-layout.c (tui_windows): New global.
8735 (tui_apply_current_layout): Clear tui_windows.
8736 (tui_layout_window::apply): Update tui_windows.
8737 * tui/tui-data.h (tui_windows): Declare.
8738 (all_tui_windows): Now inline function.
8739 (class tui_window_iterator, struct all_tui_windows): Remove.
8740
7c043ba6
TT
87412020-02-22 Tom Tromey <tom@tromey.com>
8742
8743 PR tui/17850:
8744 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
8745 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
8746 "height" argument.
8747 (class tui_layout_window) <get_sizes>: Likewise.
8748 (class tui_layout_split) <tui_layout_split>: Add "vertical"
8749 argument.
8750 <get_sizes>: Add "height" argument.
8751 <m_vertical>: New field.
8752 * tui/tui-layout.c (tui_layout_split::clone): Update.
8753 (tui_layout_split::get_sizes): Add "height" argument.
8754 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
8755 (tui_new_layout_command): Parse "-horizontal".
8756 (_initialize_tui_layout): Update help string.
8757 (tui_layout_split::specification): Add "-horizontal" when needed.
8758 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
8759 argument.
8760 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
8761 New methods.
8762
6bc56648
TT
87632020-02-22 Tom Tromey <tom@tromey.com>
8764
8765 * tui/tui-layout.h (enum tui_adjust_result): New.
8766 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
8767 (class tui_layout_window) <adjust_size>: Return
8768 tui_adjust_result. Rewrite.
8769 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
8770 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
8771
c22fef7e
TT
87722020-02-22 Tom Tromey <tom@tromey.com>
8773
8774 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
8775 parameter and return types.
8776 (class tui_layout_base) <specification>: Add "depth".
8777 (class tui_layout_window) <specification>: Add "depth".
8778 (class tui_layout_split) <specification>: Add "depth".
8779 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
8780 and return types.
8781 (tui_new_layout_command): Parse sub-layouts.
8782 (_initialize_tui_layout): Update help string.
8783 (tui_layout_window::specification): Add "depth".
8784 (add_layout_command): Update.
8785
ee325b61
TT
87862020-02-22 Tom Tromey <tom@tromey.com>
8787
8788 * NEWS: Add "tui new-layout" item.
8789 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
8790 Add new-layout command to help text.
8791 (validate_window_name): New function.
8792 (tui_new_layout_command): New function.
8793 (_initialize_tui_layout): Register "new-layout".
8794 (tui_layout_window::specification): New method.
8795 (tui_layout_window::specification): New method.
8796 * tui/tui-layout.h (class tui_layout_base) <specification>: New
8797 method.
8798 (class tui_layout_window) <specification>: New method.
8799 (class tui_layout_split) <specification>: New method.
8800
416eb92d
TT
88012020-02-22 Tom Tromey <tom@tromey.com>
8802
8803 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
8804 * tui/tui-win.c (window_name_completer): Update comment.
8805 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
8806 Declare method.
8807 (class tui_layout_window) <replace_window>: Likewise.
8808 (class tui_layout_split) <replace_window>: Likewise.
8809 (tui_set_layout): Don't declare.
8810 (tui_set_initial_layout): Declare function.
8811 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
8812 (asm_regs_layout): New globals.
8813 (tui_current_layout, show_layout): Remove.
8814 (tui_set_layout, tui_add_win_to_layout): Rewrite.
8815 (find_layout, tui_apply_layout): New function.
8816 (layout_completer): Remove.
8817 (tui_next_layout): Reimplement.
8818 (tui_next_layout_command): New function.
8819 (tui_set_initial_layout, tui_prev_layout_command): New functions.
8820 (tui_regs_layout): Reimplement.
8821 (tui_regs_layout_command): New function.
8822 (extract_display_start_addr): Rewrite.
8823 (next_layout, prev_layout): Remove.
8824 (tui_layout_window::replace_window): New method.
8825 (tui_layout_split::replace_window): New method.
8826 (destroy_layout): New function.
8827 (layout_list): New global.
8828 (add_layout_command): New function.
8829 (initialize_layouts): Update.
8830 (tui_layout_command): New function.
8831 (_initialize_tui_layout): Install "layout" commands.
8832 * tui/tui-data.h (enum tui_layout_type): Remove.
8833 (tui_current_layout): Don't declare.
8834
0dbc2fc7
TT
88352020-02-22 Tom Tromey <tom@tromey.com>
8836
8837 * tui/tui-regs.c (tui_reg_layout): Remove.
8838 (tui_reg_command): Use tui_regs_layout.
8839 * tui/tui-layout.h (tui_reg_command): Declare.
8840 * tui/tui-layout.c (tui_reg_command): New function.
8841
5afe342e
TT
88422020-02-22 Tom Tromey <tom@tromey.com>
8843
8844 * tui/tui.c (tui_rl_delete_other_windows): Call
8845 tui_remove_some_windows.
8846 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
8847 Declare method.
8848 (class tui_layout_window) <remove_windows>: New method.
8849 (class tui_layout_split) <remove_windows>: Declare.
8850 (tui_remove_some_windows): Declare.
8851 * tui/tui-layout.c (tui_remove_some_windows): New function.
8852 (tui_layout_split::remove_windows): New method.
8853
427326a8
TT
88542020-02-22 Tom Tromey <tom@tromey.com>
8855
8856 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
8857 * tui/tui-layout.h (tui_next_layout): Declare.
8858 * tui/tui-layout.c (tui_next_layout): New function.
8859
3fe12b6d
TT
88602020-02-22 Tom Tromey <tom@tromey.com>
8861
8862 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
8863 correct coordinates.
8864
59b8b5d2
TT
88652020-02-22 Tom Tromey <tom@tromey.com>
8866
8867 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
8868 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
8869 DATA_WIN case.
8870
2a3d458b
TT
88712020-02-22 Tom Tromey <tom@tromey.com>
8872
8873 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
8874 TUI_DISASM_WIN, not tui_win_list.
8875
3f0cbb04
TT
88762020-02-22 Tom Tromey <tom@tromey.com>
8877
8878 * valprint.c (generic_val_print_enum_1)
8879 (val_print_type_code_flags): Style member names.
8880 * rust-lang.c (val_print_struct, rust_print_enum)
8881 (rust_print_struct_def, rust_internal_print_type): Style member
8882 names.
8883 * p-valprint.c (pascal_object_print_value_fields): Style member
8884 names. Only call fprintf_symbol_filtered for static members.
8885 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
8886 * f-valprint.c (f_val_print): Style member names.
8887 * f-typeprint.c (f_type_print_base): Style member names.
8888 * cp-valprint.c (cp_print_value_fields): Style member names. Only
8889 call fprintf_symbol_filtered for static members.
8890 (cp_print_class_member): Style member names.
8891 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
8892 member names.
8893 * ada-valprint.c (ada_print_scalar): Style enum names.
8894 (ada_val_print_enum): Likewise.
8895 * ada-typeprint.c (print_enum_type): Style enum names.
8896
d4d947ae
TT
88972020-02-21 Tom Tromey <tom@tromey.com>
8898
8899 * psympriv.h (struct partial_symtab): Update comment.
8900
e94e944b
TT
89012020-02-21 Tom Tromey <tromey@adacore.com>
8902
8903 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
8904 type is CORE_ADDR.
8905
1eb73179
TV
89062020-02-21 Tom de Vries <tdevries@suse.de>
8907
8908 PR gdb/25534
8909 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
8910 if dependencies[i]->user != NULL.
8911
4f180d53
AT
89122020-02-21 Ali Tamur <tamur@google.com>
8913
8914 * dwarf2/read.c (dwarf2_name): Add null check.
8915
22b6cd70
TT
89162020-02-20 Tom Tromey <tom@tromey.com>
8917
8918 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
8919 ">=", in binary search.
8920 (dwarf2_find_containing_comp_unit): New overload.
8921 (run_test): New self-test.
8922 (_initialize_dwarf2_read): Register new test.
8923
bd0cf5a6
NC
89242020-02-20 Nelson Chu <nelson.chu@sifive.com>
8925
8926 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
8927 * riscv-tdep.h: Likewise.
8928 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
8929 rv32-only CSR.
8930 * features/riscv/64bit-csr.xml: Regenerated.
8931
3f702acd
SDJ
89322020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
8933 Tom Tromey <tom@tromey.com>
8934
8935 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
8936 of 'fputc_unfiltered'.
8937 (putchar_unfiltered): Call 'fputc_unfiltered'.
8938 (fputc_unfiltered): Call 'fputs_unfiltered'.
8939
d13c7322
AB
89402020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
8941
8942 * config.in: Regenerate.
8943 * configure: Regenerate.
8944 * configure.ac: Add --with-python-libdir option.
8945 * main.c: Use WITH_PYTHON_LIBDIR.
8946
869d8950
TT
89472020-02-19 Tom Tromey <tom@tromey.com>
8948
8949 * symtab.c (general_symbol_info::compute_and_set_names): Use
8950 obstack_strndup. Simplify call to symbol_set_demangled_name.
8951
298e9637
SM
89522020-02-19 Simon Marchi <simon.marchi@efficios.com>
8953
8954 * dwarf2/read.c (allocate_signatured_type_table,
8955 allocate_dwo_unit_table, allocate_type_unit_groups_table,
8956 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
8957 Remove objfile parameter, update all callers.
8958
08410482
DE
89592020-02-19 Doug Evans <dje@google.com>
8960
8961 PR rust/25535
8962 * rust-lang.c (rust_print_enum): Apply embedded_offset to
8963 rust_enum_variant calculation.
8964
dfdeeca1
TT
89652020-02-19 Tom Tromey <tromey@adacore.com>
8966
8967 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
8968
2ef5453b
TT
89692020-02-19 Tom Tromey <tromey@adacore.com>
8970
8971 * ada-lang.c (cache_symbol): Use obstack_strdup.
8972
9f1528a1
AB
89732020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8974
8975 * configure: Regenerate.
8976
d3c22fa8
TT
89772020-02-19 Tom Tromey <tromey@adacore.com>
8978
8979 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
8980 NULL check.
8981
bf84f706
MR
89822020-02-19 Maciej W. Rozycki <macro@wdc.com>
8983
8984 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
8985
d1c9b20f
AB
89862020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
8987
8988 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
8989 if GDBSERVER is not defined.
8990 (riscv_tdesc_cache): Likewise, also store const target_desc.
8991 (STATIC_IN_GDB): Define.
8992 (riscv_create_target_description): Update declaration with
8993 STATIC_IN_GDB.
8994 (riscv_lookup_target_description): New function, only define if
8995 GDBSERVER is not defined.
8996 * arch/riscv.h (riscv_create_target_description): Declare only
8997 when GDBSERVER is defined.
8998 (riscv_lookup_target_description): New declaration when GDBSERVER
8999 is not defined.
9000 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
9001 (riscv_linux_read_features): ...this, and return
9002 riscv_gdbarch_features instead of target_desc.
9003 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
9004 (riscv_linux_read_description): Rename to...
9005 (riscv_linux_read_features): ...this.
9006 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9007 Update to use riscv_gdbarch_features and
9008 riscv_lookup_target_description.
9009 * riscv-tdep.c (riscv_find_default_target_description): Use
9010 riscv_lookup_target_description instead of
9011 riscv_create_target_description.
9012
373d7ac0
SM
90132020-02-18 Simon Marchi <simon.marchi@efficios.com>
9014
9015 * valprint.c (generic_val_print_enum_1): When printing a flag
9016 enum with value 0 and there is no enumerator with value 0, print
9017 just "0" instead of "(unknown: 0x0)".
9018
b29a2df0
SM
90192020-02-18 Simon Marchi <simon.marchi@efficios.com>
9020
9021 * valprint.c (generic_val_print_enum_1): Print unknown part of
9022 flag enum in hex.
9023
6740f0cc
SM
90242020-02-18 Simon Marchi <simon.marchi@efficios.com>
9025
9026 * dwarf2/read.c (update_enumeration_type_from_children): Allow
9027 flag enums to contain duplicate enumerators.
9028 * valprint.c (generic_val_print_enum_1): Update comment.
9029
edd45eb0
SM
90302020-02-18 Simon Marchi <simon.marchi@efficios.com>
9031
9032 * dwarf2/read.c: Include "count-one-bits.h".
9033 (update_enumeration_type_from_children): If an enumerator has
9034 multiple bits set, don't treat the enumeration as a "flag enum".
9035 * valprint.c (generic_val_print_enum_1): Assert that enumerators
9036 of flag enums have 0 or 1 bit set.
9037
6d0cf446
BE
90382020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
9039
9040 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
9041 conversion.
9042 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9043 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9044 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9045 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9046 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9047
7001c1b7
SM
90482020-02-18 Simon Marchi <simon.marchi@efficios.com>
9049
9050 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
9051
fdb61c6c
SM
90522020-02-14 Simon Marchi <simon.marchi@efficios.com>
9053
9054 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
9055 displaced_step_closure_up.
9056 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9057 (struct displaced_step_closure_up):
9058 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9059 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9060 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
9061 Likewise.
9062 * gdbarch.sh (displaced_step_copy_insn): Likewise.
9063 * gdbarch.c, gdbarch.h: Re-generate.
9064 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
9065 displaced_step_closure_up.
9066 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9067 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9068 * infrun.h (displaced_step_closure_up): New type alias.
9069 (struct displaced_step_inferior_state) <step_closure>: Change
9070 type to displaced_step_closure_up.
9071 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
9072 displaced_step_closure_up.
9073 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9074
a4a38eb4
TT
90752020-02-14 Tom Tromey <tom@tromey.com>
9076
9077 * minidebug.c (gnu_debug_key): New global.
9078 (find_separate_debug_file_in_section): Use it.
9079
e8217e61
SM
90802020-02-14 Simon Marchi <simon.marchi@efficios.com>
9081
9082 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
9083 std::unique_ptr.
9084 * gdbarch.c: Re-generate.
9085 * gdbarch.h: Re-generate.
9086 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
9087 change.
9088 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
9089 type to std::unique_ptr.
9090 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
9091 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
9092 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
9093 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
9094 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
9095 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
9096 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
9097 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
9098 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
9099
d8d83535
SM
91002020-02-14 Simon Marchi <simon.marchi@efficios.com>
9101
9102 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
9103 std::unique_ptr.
9104 (displaced_step_clear): Rename to...
9105 (displaced_step_reset): ... this. Just call displaced->reset ().
9106 (displaced_step_clear_cleanup): Rename to...
9107 (displaced_step_reset_cleanup): ... this.
9108 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
9109 (displaced_step_fixup): Likewise.
9110 (resume_1): Likewise.
9111 (handle_inferior_event): Restore child's memory before calling
9112 displaced_step_fixup on the parent.
9113 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
9114 to std::unique_ptr.
9115 <step_closure>: Change type to std::unique_ptr.
9116
5f661e03
SM
91172020-02-14 Simon Marchi <simon.marchi@efficios.com>
9118
9119 * arm-tdep.c: Include count-one-bits.h.
9120 (cleanup_block_store_pc): Use count_one_bits.
9121 (cleanup_block_load_pc): Use count_one_bits.
9122 (arm_copy_block_xfer): Use count_one_bits.
9123 (thumb2_copy_block_xfer): Use count_one_bits.
9124 (thumb_copy_pop_pc_16bit): Use count_one_bits.
9125 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
9126 (thumb_get_next_pcs_raw): Use count_one_bits.
9127 (arm_get_next_pcs_raw): Use count_one_bits_l.
9128 * arch/arm.c (bitcount): Remove.
9129 * arch/arm.h (bitcount): Remove.
9130
8084e579
TT
91312020-02-14 Tom Tromey <tromey@adacore.com>
9132
9133 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
9134 Update.
9135 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
9136 * dwarf2/loc.c (call_site_find_chain_1): Return
9137 unique_xmalloc_ptr.
9138 (call_site_find_chain): Likewise.
9139
258bf0ee
RB
91402020-02-14 Richard Biener <rguenther@suse.de>
9141
9142 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
9143 on expression with division operators.
9144
f98a8458
AKS
91452020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9146
9147 * MAINTAINERS (Write After Approval): Adding myself.
9148
d1437c0e
TT
91492020-02-12 Tom Tromey <tom@tromey.com>
9150
9151 * event-loop.c (event_data, gdb_event, event_handler_func):
9152 Remove.
9153
3d4560f7
TT
91542020-02-12 Tom Tromey <tom@tromey.com>
9155
9156 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
9157 (dwarf2_frame_objfile_data): Add comment.
9158 (find_comp_unit, set_comp_unit): New functions.
9159 (dwarf2_frame_find_fde): Use find_comp_unit.
9160 (dwarf2_build_frame_info): Use set_comp_unit.
9161
21982304
TT
91622020-02-12 Tom Tromey <tom@tromey.com>
9163
9164 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
9165 (comp_unit): Don't initialize objfile.
9166 (execute_cfa_program): Add text_offset parameter.
9167 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
9168 (dwarf2_frame_cache): Update.
9169 (dwarf2_build_frame_info): Don't set "objfile" member.
9170
4debb237
TT
91712020-02-12 Tom Tromey <tom@tromey.com>
9172
9173 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
9174 (decode_frame_entry): Likewise.
9175 (dwarf2_build_frame_info): Update.
9176
0d404d44
TT
91772020-02-12 Tom Tromey <tom@tromey.com>
9178
9179 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
9180 (decode_frame_entry_1): Use the comp_unit obstack.
9181
a7a3ae5c
TT
91822020-02-12 Tom Tromey <tom@tromey.com>
9183
9184 * dwarf2/frame.c (struct comp_unit): Add initializers and
9185 constructor.
9186 (dwarf2_frame_objfile_data): Store a comp_unit.
9187 (dwarf2_frame_find_fde): Update.
9188 (dwarf2_build_frame_info): Use "new".
9189
a9d65418
TT
91902020-02-12 Tom Tromey <tom@tromey.com>
9191
9192 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
9193 (dwarf2_fde_table): Typedef for std::vector.
9194 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
9195 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
9196 (decode_frame_entry): Update.
9197 (dwarf2_build_frame_info): Use "new".
9198
7559c217
CB
91992020-02-12 Christian Biesinger <cbiesinger@google.com>
9200
9201 * arm-tdep.c (arm_gdbarch_init): Update.
9202 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
9203 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
9204 have_neon, is_m>: Change to bool.
9205
aeefc73c
CB
92062020-02-12 Christian Biesinger <cbiesinger@google.com>
9207
9208 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
9209
d27b8e5f
TT
92102020-02-12 Tom Tromey <tom@tromey.com>
9211
9212 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
9213
cd5900f3
HD
92142020-02-12 Hannes Domani <ssbssa@yahoo.de>
9215
9216 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
9217 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
9218
f056b22b
TT
92192020-02-11 Tom Tromey <tom@tromey.com>
9220
9221 * psymtab.h: Update comment.
9222
f92ff6b5
TT
92232020-02-11 Tom Tromey <tom@tromey.com>
9224
9225 * gdb_obstack.h (struct auto_obstack): Use
9226 DISABLE_COPY_AND_ASSIGN.
9227
3fd6912b
TT
92282020-02-11 Tom Tromey <tom@tromey.com>
9229
9230 * dwarf2/frame.h (struct objfile): Don't forward declare.
9231
69ed9b74
CB
92322020-02-11 Christian Biesinger <cbiesinger@google.com>
9233
9234 * cris-tdep.c (cris_supply_gregset): Change signature to match
9235 what struct regset expects.
9236 (cris_regset): New struct.
9237 (fetch_core_registers): Remove.
9238 (cris_iterate_over_regset_sections): New function.
9239 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
9240 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
9241
bda874f6
CB
92422020-02-11 Christian Biesinger <cbiesinger@google.com>
9243
9244 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
9245 registers.
9246
754e1564
CB
92472020-02-11 Christian Biesinger <cbiesinger@google.com>
9248
9249 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
9250
8ddd8e0e
SM
92512020-02-11 Simon Marchi <simon.marchi@efficios.com>
9252
9253 * configure: Re-generate.
9254
898e7f60
SM
92552020-02-11 Simon Marchi <simon.marchi@efficios.com>
9256
9257 * configure: Re-generate.
9258
58df732b
SM
92592020-02-11 Simon Marchi <simon.marchi@efficios.com>
9260
9261 * acinclude: Update warning.m4 path.
9262 * warning.m4: Move to gdbsupport.
9263
da5bd37e
TT
92642020-02-11 Tom Tromey <tromey@adacore.com>
9265
9266 * remote.c (remote_console_output): Update.
9267 * printcmd.c (printf_command): Update.
9268 * event-loop.c (gdb_wait_for_event): Update.
9269 * linux-nat.c (sigchld_handler): Update.
9270 * remote-sim.c (gdb_os_write_stdout): Update.
9271 (gdb_os_flush_stdout): Update.
9272 (gdb_os_flush_stderr): Update.
9273 (gdb_os_write_stderr): Update.
9274 * exceptions.c (print_exception): Update.
9275 * remote-fileio.c (remote_fileio_func_read): Update.
9276 (remote_fileio_func_write): Update.
9277 * tui/tui.c (tui_enable): Update.
9278 * tui/tui-interp.c (tui_interp::init): Update.
9279 * utils.c (init_page_info): Update.
9280 (putchar_unfiltered, fputc_unfiltered): Update.
9281 (gdb_flush): Update.
9282 (emit_style_escape): Update.
9283 (flush_wrap_buffer, fputs_maybe_filtered): Update.
9284 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
9285 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
9286 (stderr_file::write): Update.
9287 (stderr_file::puts): Update.
9288 * ui-file.h (ui_file_isatty, ui_file_write)
9289 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
9290 (ui_file_puts): Don't declare.
9291
85f0dd3c
TV
92922020-02-10 Tom de Vries <tdevries@suse.de>
9293
9294 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
9295 sentinel to char *.
9296
2e927613
TV
92972020-02-09 Tom de Vries <tdevries@suse.de>
9298
9299 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
9300 filename if it matches "<artificial>".
9301
6bafc845
HD
93022020-02-09 Hannes Domani <ssbssa@yahoo.de>
9303
9304 * windows-tdep.c (struct enum_value_name): New struct.
9305 (create_enum): New function.
9306 (windows_get_siginfo_type): Create and use enum types.
9307
7928d571
HD
93082020-02-09 Hannes Domani <ssbssa@yahoo.de>
9309
9310 * NEWS: Mention $_siginfo support for Windows.
9311 * windows-nat.c (handle_exception): Set siginfo_er.
9312 (windows_nat_target::mourn_inferior): Reset siginfo_er.
9313 (windows_xfer_siginfo): New function.
9314 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
9315 * windows-tdep.c (struct windows_gdbarch_data): New struct.
9316 (init_windows_gdbarch_data): New function.
9317 (get_windows_gdbarch_data): New function.
9318 (windows_get_siginfo_type): New function.
9319 (windows_init_abi): Register windows_get_siginfo_type.
9320 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
9321
6751ebae
TT
93222020-02-08 Tom Tromey <tom@tromey.com>
9323
9324 * dwarf2/read.c (class cutu_reader) <cutu_reader,
9325 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
9326 <keep>: Declare method.
9327 <m_keep>: Remove member.
9328 <~cutu_reader>: Remove.
9329 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9330 (cutu_reader::cutu_reader): Update.
9331 (cutu_reader::keep): Rename from ~cutu_reader.
9332 (process_psymtab_comp_unit, build_type_psymtabs_1)
9333 (process_skeletonless_type_unit, load_partial_comp_unit)
9334 (load_full_comp_unit, dwarf2_read_addr_index)
9335 (read_signatured_type): Update.
9336
135f5437
TT
93372020-02-08 Tom Tromey <tom@tromey.com>
9338
9339 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
9340 "want_partial_unit" parameter.
9341 (process_psymtab_comp_unit): Change want_partial_unit to bool.
9342 Inline check for DW_TAG_partial_unit.
9343 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
9344
9f66ff1c
TT
93452020-02-08 Tom Tromey <tom@tromey.com>
9346
9347 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
9348 read.c.
9349 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
9350 read.c.
9351
c8a7a66f
TT
93522020-02-08 Tom Tromey <tom@tromey.com>
9353
9354 * dwarf2/read.c (read_address): Move to comp-unit.c.
9355 (dwarf2_rnglists_process, dwarf2_ranges_process)
9356 (read_attribute_value, dwarf_decode_lines_1)
9357 (var_decode_location, decode_locdesc): Update.
9358 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
9359 read.c. Remove "cu" parameter.
9360 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
9361 method.
9362
8266302d
TT
93632020-02-08 Tom Tromey <tom@tromey.com>
9364
9365 * dwarf2/read.c (read_attribute_value, read_indirect_string)
9366 (read_indirect_line_string): Update.
9367 * dwarf2/comp-unit.c (read_offset): Remove.
9368 (read_comp_unit_head): Update.
9369 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
9370 method.
9371 (read_offset): Don't declare.
9372
4057dfde
TT
93732020-02-08 Tom Tromey <tom@tromey.com>
9374
9375 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
9376 * dwarf2/read.c (struct comp_unit_head): Move to
9377 dwarf2/comp-unit.h.
9378 (enum class rcuh_kind): Move to comp-unit.h.
9379 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
9380 (read_comp_unit_head, error_check_comp_unit_head)
9381 (read_and_check_comp_unit_head): Move to comp-unit.c.
9382 (read_offset, dwarf_unit_type_name): Likewise.
9383 (create_debug_type_hash_table, read_cutu_die_from_dwo)
9384 (cutu_reader::cutu_reader, read_call_site_scope)
9385 (find_partial_die, follow_die_offset): Update.
9386 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
9387
24aa364d
TT
93882020-02-08 Tom Tromey <tom@tromey.com>
9389
9390 * dwarf2/read.c (read_offset_1): Move to leb.c.
9391 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
9392 (dwarf_decode_macro_bytes): Update.
9393 * dwarf2/leb.c (read_offset): Rename; move from read.c.
9394 * dwarf2/leb.h (read_offset): Declare.
9395
2c7d5afc
TT
93962020-02-08 Tom Tromey <tom@tromey.com>
9397
9398 * dwarf2/read.c (dwarf2_section_size): Remove.
9399 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
9400 Update.
9401 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
9402
4075cb26
TT
94032020-02-08 Tom Tromey <tom@tromey.com>
9404
9405 * dwarf2/read.c (read_initial_length): Move to leb.c.
9406 * dwarf2/leb.h (read_initial_length): Declare.
9407 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
9408 handle_nonstd parameter.
9409 * dwarf2/frame.c (read_initial_length): Remove.
9410 (decode_frame_entry_1): Update.
9411
09ba997f
TT
94122020-02-08 Tom Tromey <tom@tromey.com>
9413
9414 * dwarf2/loc.c (dwarf2_find_location_expression)
9415 (dwarf_evaluate_loc_desc::get_tls_address)
9416 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
9417 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
9418 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
9419 (dwarf2_compile_property_to_c)
9420 (dwarf2_loc_desc_get_symbol_read_needs)
9421 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
9422 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
9423 (loclist_describe_location, loclist_tracepoint_var_ref)
9424 (loclist_generate_c_location): Update.
9425 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
9426 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
9427 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
9428 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
9429 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
9430 (dwarf2_per_cu_data::addr_size)
9431 (dwarf2_per_cu_data::ref_addr_size)
9432 (dwarf2_per_cu_data::text_offset)
9433 (dwarf2_per_cu_data::addr_type): Now methods.
9434 (per_cu_header_read_in): Make per_cu "const".
9435 (dwarf2_version): Remove.
9436 (dwarf2_per_cu_data::int_type): Now a method.
9437 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
9438 (set_die_type, read_array_type, read_subrange_index_type)
9439 (read_tag_string_type, read_subrange_type): Update.
9440 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
9441 offset_size, ref_addr_size, text_offset, addr_type, version,
9442 objfile, int_type, addr_sized_int_type>: Declare methods.
9443
96c738c0
TT
94442020-02-08 Tom Tromey <tom@tromey.com>
9445
9446 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
9447 Move earlier.
9448
8fdd972c
TT
94492020-02-08 Tom Tromey <tom@tromey.com>
9450
9451 * dwarf2/read.h (dwarf_line_debug): Declare.
9452 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
9453 * dwarf2/read.c: Move line_header code to new files.
9454 (dwarf_line_debug): No longer static.
9455 * dwarf2/line-header.c: New file.
9456 * dwarf2/line-header.h: New file.
9457
03075812
TT
94582020-02-08 Tom Tromey <tom@tromey.com>
9459
9460 * dwarf2/read.c (struct line_header) <file_full_name,
9461 file_file_name>: Return unique_xmalloc_ptr.
9462 (line_header::file_file_name): Update.
9463 (line_header::file_full_name): Update.
9464 (dw2_get_file_names_reader): Update.
9465 (macro_start_file): Update.
9466
bb822404
TT
94672020-02-08 Tom Tromey <tom@tromey.com>
9468
9469 * dwarf2/read.c (struct line_header) <file_full_name,
9470 file_file_name>: Declare methods.
9471 (dw2_get_file_names_reader): Update.
9472 (file_file_name): Now a method.
9473 (file_full_name): Likewise.
9474 (macro_start_file): Update.
9475
009b64fc
TT
94762020-02-08 Tom Tromey <tom@tromey.com>
9477
9478 * dwarf2/read.c (dwarf_always_disassemble)
9479 (show_dwarf_always_disassemble): Move to loc.c.
9480 (_initialize_dwarf2_read): Move "always-disassemble" registration
9481 to loc.c.
9482 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
9483 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
9484 static.
9485 (show_dwarf_always_disassemble): Move from read.c.
9486 (_initialize_dwarf2loc): Move always-disassemble from read.c.
9487
5895093f
TT
94882020-02-08 Tom Tromey <tom@tromey.com>
9489
9490 * dwarf2/read.c (~dwarf2_per_objfile): Update.
9491 (create_quick_file_names_table): Return htab_up.
9492 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
9493 Update.
9494 * dwarf2/read.h (struct dwarf2_per_objfile)
9495 <quick_file_names_table>: Now htab_up.
9496
b3b32279
TT
94972020-02-08 Tom Tromey <tom@tromey.com>
9498
9499 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
9500
1d33d811
TT
95012020-02-08 Tom Tromey <tom@tromey.com>
9502
9503 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
9504 Rewrite.
9505 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
9506 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
9507 (abbrev_table::abbrev_table): No longer inline.
9508 (ABBREV_HASH_SIZE): Remove.
9509 (abbrev_table::m_abbrevs): Now an htab_up.
9510
86de1d91
TT
95112020-02-08 Tom Tromey <tom@tromey.com>
9512
9513 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
9514 (cutu_reader): Update.
9515 (build_type_psymtabs_1): Update.
9516 * dwarf2/abbrev.c (abbrev_table::read): Rename.
9517 (abbrev_table::alloc_abbrev): Update.
9518 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
9519 (abbrev_table::read): New static method, renamed from
9520 abbrev_table_read_table.
9521 (abbrev_table::alloc_abbrev)
9522 (abbrev_table::add_abbrev): Now private.
9523 (abbrev_table::abbrev_table): Now private.
9524 (abbrev_table::m_abbrev_obstack): Now private. Rename.
9525
0335378b
TT
95262020-02-08 Tom Tromey <tom@tromey.com>
9527
9528 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
9529 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
9530 htab_up.
9531
48b490f2
TT
95322020-02-08 Tom Tromey <tom@tromey.com>
9533
9534 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
9535 htab_up.
9536 (lookup_dwo_unit_in_dwp): Update.
9537 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
9538 on obstack.
9539
bc68fb19
TT
95402020-02-08 Tom Tromey <tom@tromey.com>
9541
9542 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
9543 obstack.
9544
d15acc42
TT
95452020-02-08 Tom Tromey <tom@tromey.com>
9546
9547 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
9548 line_header_hash.
9549 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
9550 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
9551 Change type to htab_up.
9552
eaa5fa8b
TT
95532020-02-08 Tom Tromey <tom@tromey.com>
9554
9555 * dwarf2/read.c (allocate_type_unit_groups_table): Return
9556 htab_up. Don't allocate on obstack.
9557 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
9558 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
9559 Change type to htab_up.
9560
b0b6a987
TT
95612020-02-08 Tom Tromey <tom@tromey.com>
9562
9563 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
9564 Change type to htab_up.
9565 * dwarf2/read.c (create_signatured_type_table_from_index)
9566 (create_signatured_type_table_from_debug_names)
9567 (create_all_type_units, add_type_unit)
9568 (lookup_dwo_signatured_type, lookup_signatured_type)
9569 (process_skeletonless_type_unit): Update.
9570 (create_debug_type_hash_table, create_debug_types_hash_table):
9571 Change type of types_htab.
9572 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
9573 htab_up. Don't allocate on obstack.
9574 (create_cus_hash_table): Change type of cus_htab parameter.
9575 (struct dwo_file) <cus, tus>: Now htab_up.
9576 (lookup_dwo_signatured_type, lookup_dwo_cutu)
9577 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
9578 (queue_and_load_all_dwo_tus): Update.
9579 * dwarf2/index-write.c (write_gdbindex): Update.
9580 (write_debug_names): Update.
9581
39856def
TT
95822020-02-08 Tom Tromey <tom@tromey.com>
9583
9584 * dwarf2/read.h (struct dwarf2_queue_item): Move from
9585 dwarf2/read.c. Remove "next" member. Add constructor ntad
9586 destructor.
9587 (struct dwarf2_per_objfile) <queue>: New member.
9588 * dwarf2/read.c (struct dwarf2_queue_item): Move to
9589 dwarf2/read.h.
9590 (dwarf2_queue, dwarf2_queue_tail): Remove.
9591 (class dwarf2_queue_guard): Add parameter to constructor. Use
9592 DISABLE_COPY_AND_ASSIGN.
9593 <m_per_objfile>: New member.
9594 <~dwarf2_queue_guard>: Rewrite.
9595 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
9596 Update.
9597 (~dwarf2_queue_item): New.
9598
3e225074
TT
95992020-02-08 Tom Tromey <tom@tromey.com>
9600
9601 * dwarf2/read.c (struct die_info) <has_children>: New member.
9602 (dw2_get_file_names_reader): Remove has_children.
9603 (dw2_get_file_names): Update.
9604 (read_cutu_die_from_dwo): Remove has_children.
9605 (cutu_reader::init_tu_and_read_dwo_dies)
9606 (cutu_reader::cutu_reader): Update.
9607 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
9608 Remove has_children.
9609 (build_type_psymtabs_1, process_skeletonless_type_unit)
9610 (load_partial_comp_unit, load_full_comp_unit): Update.
9611 (create_dwo_cu_reader): Remove has_children.
9612 (create_cus_hash_table, read_die_and_children): Update.
9613 (read_full_die_1,read_full_die): Remove has_children.
9614 (read_signatured_type): Update.
9615 (class cutu_reader) <has_children>: Remove.
9616
82ca8957
TT
96172020-02-08 Tom Tromey <tom@tromey.com>
9618
9619 * dwarf2/expr.c: Rename from dwarf2expr.c.
9620 * dwarf2/expr.h: Rename from dwarf2expr.h.
9621 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
9622 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
9623 * dwarf2/frame.c: Rename from dwarf2-frame.c.
9624 * dwarf2/frame.h: Rename from dwarf2-frame.h.
9625 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
9626 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
9627 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
9628 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
9629 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
9630 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
9631 * dwarf2/loc.c: Rename from dwarf2loc.c.
9632 * dwarf2/loc.h: Rename from dwarf2loc.h.
9633 * dwarf2/read.c: Rename from dwarf2read.c.
9634 * dwarf2/read.h: Rename from dwarf2read.h.
9635 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
9636 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
9637 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
9638 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
9639 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
9640 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
9641 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
9642 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
9643 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
9644 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
9645 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
9646 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
9647 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
9648 Update.
9649 * Makefile.in (COMMON_SFILES): Update.
9650 (HFILES_NO_SRCDIR): Update.
9651
9e35d499
TT
96522020-02-08 Tom Tromey <tom@tromey.com>
9653
9654 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
9655 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
9656
1eba2311
TT
96572020-02-08 Tom Tromey <tom@tromey.com>
9658
9659 * dwarf2read.h (struct die_info): Don't declare.
9660
e41c2da2
TT
96612020-02-08 Tom Tromey <tom@tromey.com>
9662
9663 * dwarf2read.h (die_info_ptr): Remove typedef.
9664
4fc6c0d5
TT
96652020-02-08 Tom Tromey <tom@tromey.com>
9666
9667 * dwarf2read.c (read_call_site_scope)
9668 (handle_data_member_location, dwarf2_add_member_fn)
9669 (mark_common_block_symbol_computed, read_common_block)
9670 (attr_to_dynamic_prop, partial_die_info::read)
9671 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
9672 (dwarf2_symbol_mark_computed, set_die_type): Update.
9673 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
9674 method.
9675 (attr_form_is_block): Don't declare.
9676 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
9677
cd6c91b4
TT
96782020-02-08 Tom Tromey <tom@tromey.com>
9679
9680 * dwarf2read.c (dwarf2_find_base_address, )
9681 (read_call_site_scope, rust_containing_type)
9682 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
9683 (handle_data_member_location, dwarf2_add_member_fn)
9684 (get_alignment, read_structure_type, process_structure_scope)
9685 (mark_common_block_symbol_computed, read_common_block)
9686 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
9687 (partial_die_info::read, read_attribute_value, new_symbol)
9688 (lookup_die_type, dwarf2_get_ref_die_offset)
9689 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
9690 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
9691 (dwarf2_symbol_mark_computed): Update.
9692 * dwarf2/attribute.h (struct attribute) <value_as_address,
9693 form_is_section_offset, form_is_constant, form_is_ref>: Declare
9694 methods.
9695 (value_as_address, attr_form_is_section_offset)
9696 (attr_form_is_constant, attr_form_is_ref): Don't declare.
9697 * dwarf2/attribute.c (attribute::value_as_address)
9698 (attribute::form_is_section_offset, attribute::form_is_constant)
9699 (attribute::form_is_ref): Now methods.
9700
162dce55
TT
97012020-02-08 Tom Tromey <tom@tromey.com>
9702
9703 * dwarf2read.c (struct attribute, DW_STRING)
9704 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
9705 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
9706 (attr_form_is_block, attr_form_is_section_offset)
9707 (attr_form_is_constant, attr_form_is_ref): Move.
9708 * dwarf2/attribute.h: New file.
9709 * dwarf2/attribute.c: New file, from dwarf2read.c.
9710 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
9711
3054dd54
TT
97122020-02-08 Tom Tromey <tom@tromey.com>
9713
9714 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
9715 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
9716 Move.
9717 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
9718 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
9719 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
9720 abbrev.c.
9721 * dwarf2/abbrev.h: New file.
9722 * dwarf2/abbrev.c: New file, from dwarf2read.c.
9723 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
9724
96b79293
TT
97252020-02-08 Tom Tromey <tom@tromey.com>
9726
9727 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
9728 (dwarf2_section_size, dwarf2_get_section_info)
9729 (create_signatured_type_table_from_debug_names)
9730 (create_addrmap_from_aranges, read_debug_names_from_section)
9731 (get_gdb_index_contents_from_section, read_comp_unit_head)
9732 (error_check_comp_unit_head, read_abbrev_offset)
9733 (create_debug_type_hash_table, init_cu_die_reader)
9734 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
9735 (read_comp_units_from_section, create_cus_hash_table)
9736 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9737 (create_dwp_v2_section, dwarf2_rnglists_process)
9738 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
9739 (abbrev_table_read_table, read_indirect_string_at_offset_from)
9740 (read_indirect_string_from_dwz, read_addr_index_1)
9741 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
9742 (dwarf_decode_macro_bytes, dwarf_decode_macros)
9743 (fill_in_loclist_baton): Update.
9744 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
9745 get_containing_section, get_bfd_owner, get_bfd_section,
9746 get_file_name, get_id, get_flags, empty, read>: Declare methods.
9747 (dwarf2_read_section, get_section_name, get_section_file_name)
9748 (get_containing_section, get_section_bfd_owner)
9749 (get_section_bfd_section, get_section_name, get_section_file_name)
9750 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
9751 declare.
9752 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
9753 (dwarf2_section_info::get_bfd_owner)
9754 (dwarf2_section_info::get_bfd_section)
9755 (dwarf2_section_info::get_name)
9756 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
9757 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
9758 (dwarf2_section_info::read): Now methods.
9759 * dwarf-index-write.c (class debug_names): Update.
9760
2c86cff9
TT
97612020-02-08 Tom Tromey <tom@tromey.com>
9762
9763 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
9764 Move to dwarf2/section.h.
9765 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
9766 (get_section_bfd_section, get_section_name)
9767 (get_section_file_name, get_section_id, get_section_flags)
9768 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
9769 dwarf2/section.c.
9770 * dwarf2/section.h: New file.
9771 * dwarf2/section.c: New file, from dwarf2read.c.
9772 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
9773
f4382c45
TT
97742020-02-08 Tom Tromey <tom@tromey.com>
9775
9776 * dwarf2read.h (read_unsigned_leb128): Don't declare.
9777 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
9778 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
9779 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
9780 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
9781 * dwarf2/leb.h: New file, from dwarf2read.c.
9782 * dwarf2/leb.c: New file, from dwarf2read.c.
9783 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
9784 Remove.
9785 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
9786 (COMMON_SFILES): Add dwarf2/leb.c.
9787
01840b7a
JB
97882020-02-08 Joel Brobecker <brobecker@adacore.com>
9789
9790 GDB 9.1 released.
9791
dfcb27e4
IB
97922020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9793
9794 PR gdb/25190:
aac66a4c
SM
9795 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
9796 * gdb/remote.c (remote_console_output): Update.
9797 * gdb/ui-file.c (fputs_unfiltered): Rename to...
9798 (ui_file_puts): ...this.
9799 * gdb/ui-file.h (ui_file_puts): Add declaration.
9800 * gdb/utils.c (emit_style_escape): Update.
9801 (flush_wrap_buffer): Update.
9802 (fputs_maybe_filtered): Update.
9803 (fputs_unfiltered): Add function.
dfcb27e4 9804
faa17681
IB
98052020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
9806
aac66a4c
SM
9807 * gdb/event-loop.c (gdb_wait_for_event): Update.
9808 * gdb/printcmd.c (printf_command): Update.
9809 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
9810 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
9811 (gdb_os_flush_stderr): Update.
9812 * gdb/remote.c (remote_console_output): Update.
9813 * gdb/ui-file.c (gdb_flush): Rename to...
9814 (ui_file_flush): ...this.
9815 (stderr_file::write): Update.
9816 (stderr_file::puts): Update.
9817 * gdb/ui-file.h (gdb_flush): Rename to...
9818 (ui_file_flush): ...this.
9819 * gdb/utils.c (gdb_flush): Add function.
9820 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 9821
5abbbe1d
TT
98222020-02-07 Tom Tromey <tromey@adacore.com>
9823
9824 PR breakpoints/24915:
9825 * source.c (find_and_open_source): Do not check basenames_may_differ.
9826
919adfe8
TT
98272020-02-07 Tom Tromey <tom@tromey.com>
9828
9829 * README: Update gdbserver documentation.
9830 * gdbserver: Move to top level.
9831 * configure.tgt (build_gdbserver): Remove.
9832 * configure.ac: Remove --enable-gdbserver.
9833 * configure: Rebuild.
9834 * Makefile.in (distclean): Don't mention gdbserver.
9835
1d5d29e7
SV
98362020-02-06 Shahab Vahedi <shahab@synopsys.com>
9837
9838 * source-cache.c (source_cache::ensure): Surround
9839 get_plain_source_lines with a try/catch.
9840 (source_cache::get_line_charpos): Get rid of try/catch
9841 and only check for the return value of "ensure".
9842 * tui/tui-source.c (tui_source_window::set_contents):
9843 Simplify "nlines" calculation.
9844
6eb1129c
SV
98452020-02-06 Shahab Vahedi <shahab@synopsys.com>
9846
9847 * MAINTAINERS (Write After Approval): Add myself.
9848
c6a42d11
CB
98492020-02-05 Christian Biesinger <cbiesinger@google.com>
9850
9851 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
9852 function call.
9853
c8ecdda6
CB
98542020-02-05 Christian Biesinger <cbiesinger@google.com>
9855
9856 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
9857
f6480e70
MR
98582020-02-05 Maciej W. Rozycki <macro@wdc.com>
9859
9860 * nat/riscv-linux-tdesc.h: New file.
9861 * nat/riscv-linux-tdesc.c: New file, taking code from...
9862 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
9863 ... here.
9864 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
9865 NATDEPFILES.
9866
dcc9fbc6
AB
98672020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
9868
9869 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
9870 we don't set the fake simulator ptid to the null_ptid.
9871
719546c4
SM
98722020-02-03 Simon Marchi <simon.marchi@efficios.com>
9873
9874 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
9875 * gdbthread.h (class thread_info) <resumed>: Likewise.
9876 * infrun.c (resume_1): Likewise.
9877 (proceed): Likewise.
9878 (infrun_thread_stop_requested): Likewise.
9879 (stop_all_threads): Likewise.
9880 (handle_inferior_event): Likewise.
9881 (restart_threads): Likewise.
9882 (finish_step_over): Likewise.
9883 (keep_going_stepped_thread): Likewise.
9884 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
9885 (linux_handle_extended_wait): Likewise.
9886 * record-btrace.c (get_thread_current_frame_id): Likewise.
9887 * record-full.c (record_full_wait_1): Likewise.
9888 * remote.c (remote_target::process_initial_stop_replies): Likewise.
9889 * target.c (target_resume): Likewise.
9890 * thread.c (set_running_thread): Likewise.
9891
e409c542
AKS
98922020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
9893
9894 * f-valprint.c (f77_print_array_1): Changed datatype of index
9895 variable to LONGEST from int to enable it to contain bound
9896 values correctly.
9897
ee98c0da
MR
98982020-02-03 Maciej W. Rozycki <macro@wdc.com>
9899
9900 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
9901 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
9902 offsets according to FLEN determined.
9903 (riscv_linux_nat_target::read_description): Determine FLEN
9904 dynamically.
9905 (riscv_linux_nat_target::fetch_registers): Size regset buffer
9906 according to FLEN determined.
9907 (riscv_linux_nat_target::store_registers): Likewise.
9908
aa66aac4
SV
99092020-02-01 Shahab Vahedi <shahab@synopsys.com>
9910
9911 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
9912 when reg->group is empty and reggroup is not.
9913
fd9faca8
TT
99142020-01-31 Tom Tromey <tromey@adacore.com>
9915
9916 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
9917 Call beneath target's mourn_inferior after unpushing.
9918
42330a68
AB
99192020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9920
9921 PR tui/9765
9922 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
9923 have enough lines to fill the screen, still return the lowest
9924 address we found.
9925
7a27a45b
AB
99262020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
9927
9928 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
9929 '-', '<', and '>' commands.
9930
c47f70e2
PA
99312020-01-29 Pedro Alves <palves@redhat.com>
9932 Sergio Durigan Junior <sergiodj@redhat.com>
9933
9934 * infcmd.c (construct_inferior_arguments): Assert that
9935 'argc' is greater than 0.
9936
5133a315
LM
99372020-01-29 Luis Machado <luis.machado@linaro.org>
9938
9939 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
9940 (BRK_INSN_MASK): Define to 0xd4200000.
9941 (aarch64_program_breakpoint_here_p): New function.
9942 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
9943 * arch-utils.c (default_program_breakpoint_here_p): Moved from
9944 breakpoint.c.
9945 * arch-utils.h (default_program_breakpoint_here_p): Moved from
9946 breakpoint.h
9947 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
9948 call gdbarch_program_breakpoint_here_p.
9949 (program_breakpoint_here): Moved to arch-utils.c, renamed to
9950 default_program_breakpoint_here_p, changed return type to bool and
9951 simplified.
9952 * breakpoint.h (program_breakpoint_here): Moved prototype to
9953 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
9954 return type to bool.
9955 * gdbarch.c: Regenerate.
9956 * gdbarch.h: Regenerate.
9957 * gdbarch.sh (program_breakpoint_here_p): New method.
9958 * infrun.c (handle_signal_stop): Call
9959 gdbarch_program_breakpoint_here_p.
9960
168f8c6b
TT
99612020-01-26 Tom Tromey <tom@tromey.com>
9962
9963 * ctfread.c (struct ctf_fp_info): Reindent.
9964 (_initialize_ctfread): Remove.
9965
128a391f
TT
99662020-01-26 Tom Tromey <tom@tromey.com>
9967
9968 * psymtab.c (partial_map_expand_apply)
9969 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9970 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9971 (psym_print_stats, psym_expand_symtabs_for_function)
9972 (psym_map_symbol_filenames, psym_map_matching_symbols)
9973 (psym_expand_symtabs_matching)
9974 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9975 (maintenance_check_psymtabs): Use new methods.
9976 * psympriv.h (struct partial_symtab) <readin_p,
9977 get_compunit_symtab>: New methods.
9978 <readin, compunit_symtab>: Remove members.
9979 (struct standard_psymtab): New.
9980 (struct legacy_psymtab): Derive from standard_psymtab.
9981 * dwarf2read.h (struct dwarf2_psymtab): Derive from
9982 standard_psymtab.
9983 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
9984
0494dbec
TT
99852020-01-26 Tom Tromey <tom@tromey.com>
9986
9987 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
9988 read_dependencies. Add assert.
9989 * psymtab.c (partial_symtab::read_dependencies): New method.
9990 * psympriv.h (struct partial_symtab) <read_dependencies>: New
9991 method.
9992 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
9993 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
9994 read_dependencies.
9995 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
9996 Add assert.
9997
8566b89b
TT
99982020-01-26 Tom Tromey <tom@tromey.com>
9999
10000 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
10001 Call expand_psymtab.
10002 (xcoff_read_symtab): Call expand_psymtab.
10003 (xcoff_start_psymtab, xcoff_end_psymtab): Set
10004 legacy_expand_psymtab.
10005 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
10006 method.
10007 (struct legacy_psymtab) <expand_psymtab>: Implement.
10008 <legacy_expand_psymtab>: New member.
10009 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
10010 (parse_partial_symbols): Set legacy_expand_psymtab.
10011 (psymtab_to_symtab_1): Change argument order. Call
10012 expand_psymtab.
10013 (new_psymtab): Set legacy_expand_psymtab.
10014 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
10015 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
10016 expand_psymtab.
10017 (dwarf2_psymtab::expand_psymtab): Rename from
10018 psymtab_to_symtab_1. Call expand_psymtab.
10019 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
10020 (dbx_end_psymtab): Likewise.
10021 (dbx_psymtab_to_symtab_1): Change argument order. Call
10022 expand_psymtab.
10023 (dbx_read_symtab): Call expand_psymtab.
10024 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
10025 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
10026 (ctf_psymtab::read_symtab): Call expand_psymtab.
10027
077cbab2
TT
100282020-01-26 Tom Tromey <tom@tromey.com>
10029
10030 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
10031 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
10032 messages.
10033 * mdebugread.c (mdebug_read_symtab): Remove prints.
10034 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
10035 assert.
10036 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
10037
891813be
TT
100382020-01-26 Tom Tromey <tom@tromey.com>
10039
10040 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
10041 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
10042 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
10043 legacy_symtab.
10044 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
10045 * psymtab.c (psymtab_to_symtab): Call method.
10046 (dump_psymtab): Update.
10047 * psympriv.h (struct partial_symtab): Add virtual destructor.
10048 <read_symtab>: New method.
10049 (struct legacy_symtab): New.
10050 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
10051 (struct pst_map) <pst>: Now a legacy_psymtab.
10052 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
10053 (new_psymtab): Use legacy_psymtab.
10054 * dwarf2read.h (struct dwarf2_psymtab): New.
10055 (struct dwarf2_per_cu_data) <psymtab>: Use it.
10056 * dwarf2read.c (dwarf2_create_include_psymtab)
10057 (dwarf2_build_include_psymtabs, create_type_unit_group)
10058 (create_partial_symtab, process_psymtab_comp_unit_reader)
10059 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
10060 (set_partial_user): Use dwarf2_psymtab.
10061 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
10062 (psymtab_to_symtab_1, process_full_comp_unit)
10063 (process_full_type_unit, dwarf2_ranges_read)
10064 (dwarf2_get_pc_bounds, psymtab_include_file_name)
10065 (dwarf_decode_lines): Use dwarf2_psymtab.
10066 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
10067 (add_address_entry_worker, write_one_signatured_type)
10068 (recursively_count_psymbols, recursively_write_psymbols)
10069 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
10070 (write_debug_names): Likewise.
10071 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
10072 <pst>: Now a legacy_psymtab.
10073 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
10074 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
10075 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
10076 * ctfread.c (struct ctf_psymtab): New.
10077 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
10078 ctf_psymtab.
10079 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
10080 (create_partial_symtab): Return a ctf_psymtab.
10081 (scan_partial_symbols): Update.
10082
c3693a1d
TT
100832020-01-26 Tom Tromey <tom@tromey.com>
10084
10085 * xcoffread.c (xcoff_start_psymtab): Use new.
10086 * psymtab.c (partial_symtab::partial_symtab): New constructor,
10087 renamed from start_psymtab_common.
10088 * psympriv.h (struct partial_symtab): Add new constructor.
10089 (start_psymtab_common): Don't declare.
10090 * mdebugread.c (parse_partial_symbols): Use new.
10091 * dwarf2read.c (create_partial_symtab): Use new.
10092 * dbxread.c (start_psymtab): Use new.
10093 * ctfread.c (create_partial_symtab): Use new.
10094
32caafd0
TT
100952020-01-26 Tom Tromey <tom@tromey.com>
10096
10097 * xcoffread.c (xcoff_end_psymtab): Use new.
10098 * psymtab.c (start_psymtab_common): Use new.
10099 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
10100 Update.
10101 * psympriv.h (struct partial_symtab): Add parameters to
10102 constructor. Don't inline.
10103 (allocate_psymtab): Don't declare.
10104 * mdebugread.c (new_psymtab): Use new.
10105 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
10106 * dbxread.c (dbx_end_psymtab): Use new.
10107
abaa2f23
TT
101082020-01-26 Tom Tromey <tom@tromey.com>
10109
10110 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
10111 allocate_psymtab. Update documentation.
10112 * psymtab.c (psymtab_storage::install_psymtab): Rename from
10113 allocate_psymtab. Do not use new.
10114 (allocate_psymtab): Use new. Update.
10115
6d94535f
TT
101162020-01-26 Tom Tromey <tom@tromey.com>
10117
10118 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
10119 * psymtab.c (psym_print_stats): Update.
10120 * psympriv.h (struct partial_symtab) <readin,
10121 psymtabs_addrmap_supported, anonymous>: Now bool.
10122 * mdebugread.c (psymtab_to_symtab_1): Update.
10123 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
10124 (build_type_psymtabs_reader, psymtab_to_symtab_1)
10125 (process_full_comp_unit, process_full_type_unit): Update.
10126 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
10127 * ctfread.c (psymtab_to_symtab): Update.
10128
6f17252b
TT
101292020-01-26 Tom Tromey <tom@tromey.com>
10130
10131 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
10132 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
10133 * psymtab.c (psymtab_storage): Delete psymtabs.
10134 (psymtab_storage::allocate_psymtab): Use new.
10135 (psymtab_storage::discard_psymtab): Use delete.
10136 * psympriv.h (struct partial_symtab): Add constructor and
10137 initializers.
10138
f6f1cebc
TT
101392020-01-26 Tom Tromey <tom@tromey.com>
10140
10141 * machoread.c: Do not include psympriv.h.
10142
e47e48f6
PW
101432020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10144
10145 * NEWS: Mention the new option and the set/show commands.
10146
a2fedca9
PW
101472020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10148
10149 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
10150 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
10151 (validate_exec_file): New variables, enums, functions.
10152 (exec_file_locate_attach, print_section_info): Style the filenames.
10153 (_initialize_exec): Install show_exec_file_mismatch_command and
10154 set_exec_file_mismatch_command.
10155 * gdbcore.h (validate_exec_file): Declare.
10156 * infcmd.c (attach_command): Call validate_exec_file.
10157 * remote.c ( remote_target::remote_add_inferior): Likewise.
10158
7ffa82e1
AB
101592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10160
10161 * frame.c (find_frame_sal): Move call to get_next_frame into more
10162 inner scope.
10163 * inline-frame.c (inilne_state) <inline_state>: Update argument
10164 types.
10165 (inilne_state) <skipped_symbol>: Rename to...
10166 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
10167 (skip_inline_frames): Build vector of skipped symbols and use this
10168 to reate the inline_state.
10169 (inline_skipped_symbol): Add a comment and some assertions, fetch
10170 skipped symbol from the list.
10171
3d92a3e3
AB
101722020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10173
10174 * buildsym.c (lte_is_less_than): Delete.
10175 (buildsym_compunit::end_symtab_with_blockvector): Create local
10176 lambda function to sort line table entries, and use
10177 std::stable_sort instead of std::sort.
10178 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
10179 markers when looking for a previous line.
10180
94a72be7
AB
101812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10182
10183 * dwarf2read.c (lnp_state_machine::record_line): Include
10184 end_sequence parameter in debug print out. Record the line if we
10185 are at an end_sequence marker even if it's not the start of a
10186 statement.
10187 * symmisc.c (maintenance_print_one_line_table): Print end of
10188 sequence markers with 'END' not '0'.
10189
53af73bf
PA
101902020-01-24 Pedro Alves <palves@redhat.com>
10191
10192 PR gdb/25410
10193 * thread.c (scoped_restore_current_thread::restore): Use
10194 switch_to_inferior_no_thread.
10195 * exec.c: Include "progspace-and-thread.h".
10196 (add_target_sections, remove_target_sections):
10197 scoped_restore_current_pspace_and_thread instead of
10198 scoped_restore_current_thread.
10199 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
10200 and aspace to the inferior before calling clone_program_space.
10201 Remove stale comment.
10202
3050c6f4
CB
102032020-01-24 Christian Biesinger <cbiesinger@google.com>
10204
10205 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
10206 (arm_netbsd_nat_target::fetch_registers): ...this.
10207 (arm_nbsd_nat_target::store_registers): Rename to...
10208 (arm_netbsd_nat_target::store_registers): ...this.
10209
73685c7e
CB
102102020-01-24 Christian Biesinger <cbiesinger@google.com>
10211
10212 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
10213 register_t.
10214
89203d40
CB
102152020-01-24 Christian Biesinger <cbiesinger@google.com>
10216
10217 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
10218 Update comment.
10219 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
10220 Likewise.
10221 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
10222 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
10223 the correct replacement (iterate_over_regset_sections).
10224 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
10225 Update comment.
10226
1ba1ac88
AB
102272020-01-24 Graham Markall <graham.markall@embecosm.com>
10228
10229 PR gdb/23718
10230 * gdb/python/python.c (execute_gdb_command): Call
10231 async_enable_stdin in catch block.
10232
f3364a6d
AB
102332020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10234
10235 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
10236 SWITCH_THRU_ALL_UIS.
10237
733d0a67
AB
102382020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
10239
10240 PR tui/9765
10241 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
10242 comment, add extra parameter, and update to store previous symbol
10243 when appropriate.
10244 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
10245 add extra parameter.
10246 * tui/tui-disasm.c (tui_disassemble): Update header comment,
10247 remove unneeded parameter, add try/catch around gdb_print_insn,
10248 rewrite to add items to asm_lines vector.
10249 (tui_find_backward_disassembly_start_address): New function.
10250 (tui_find_disassembly_address): Updated throughout.
10251 (tui_disasm_window::set_contents): Update for changes to
10252 tui_disassemble.
10253 (tui_disasm_window::do_scroll_vertical): No need to adjust the
10254 number of lines to scroll.
10255
b3b3bada
SM
102562020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
10257
10258 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
10259 (SECT_OFF_DATA): Likewise.
10260 (SECT_OFF_RODATA): Likewise.
10261 (SECT_OFF_TEXT): Likewise.
10262 (SECT_OFF_BSS): Likewise.
10263 (struct objfile) <text_section_offset, data_section_offset>: New
10264 methods.
10265 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
10266 objfile::text_section_offset.
10267 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
10268 * coffread.c (coff_symtab_read): Likewise.
10269 (enter_linenos): Likewise.
10270 (process_coff_symbol): Likewise.
10271 * ctfread.c (get_objfile_text_range): Likewise.
10272 * dtrace-probe.c (dtrace_probe::get_relocated_address):
10273 Use objfile::data_section_offset.
10274 * dwarf2-frame.c (execute_cfa_program): Use
10275 objfile::text_section_offset.
10276 (dwarf2_frame_find_fde): Likewise.
10277 * dwarf2read.c (create_addrmap_from_index): Likewise.
10278 (create_addrmap_from_aranges): Likewise.
10279 (dw2_find_pc_sect_compunit_symtab): Likewise.
10280 (process_psymtab_comp_unit_reader): Likewise.
10281 (add_partial_symbol): Likewise.
10282 (add_partial_subprogram): Likewise.
10283 (process_full_comp_unit): Likewise.
10284 (read_file_scope): Likewise.
10285 (read_func_scope): Likewise.
10286 (read_lexical_block_scope): Likewise.
10287 (read_call_site_scope): Likewise.
10288 (dwarf2_rnglists_process): Likewise.
10289 (dwarf2_ranges_process): Likewise.
10290 (dwarf2_ranges_read): Likewise.
10291 (dwarf_decode_lines_1): Likewise.
10292 (new_symbol): Likewise.
10293 (dwarf2_fetch_die_loc_sect_off): Likewise.
10294 (dwarf2_per_cu_text_offset): Likewise.
10295 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
10296 * hppa-tdep.c (read_unwind_info): Likewise.
10297 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
10298 * psympriv.h (struct partial_symtab): Likewise.
10299 * psymtab.c (find_pc_sect_psymtab): Likewise.
10300 * solib-svr4.c (enable_break): Likewise.
10301 * stap-probe.c (relocate_address): Use
10302 objfile::data_section_offset.
10303 * xcoffread.c (enter_line_range): Use
10304 objfile::text_section_offset.
10305 (read_xcoff_symtab): Likewise.
10306
ab53f382
SM
103072020-01-23 Simon Marchi <simon.marchi@efficios.com>
10308
10309 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
10310 declaration to narrower scopes.
10311
e7eee665
SM
103122020-01-23 Simon Marchi <simon.marchi@efficios.com>
10313
10314 * darwin-nat.h (struct darwin_exception_msg, enum
10315 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
10316 Move up.
10317 (class darwin_nat_target) <wait_1, check_new_threads,
10318 decode_exception_message, decode_message, stop_inferior,
10319 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
10320 * darwin-nat.c (darwin_check_new_threads): Rename to...
10321 (darwin_nat_target::check_new_threads): ... this.
10322 (darwin_suspend_inferior_it): Remove.
10323 (darwin_decode_exception_message): Rename to...
10324 (darwin_nat_target::decode_exception_message): ... this.
10325 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
10326 (darwin_decode_message): Rename to...
10327 (darwin_nat_target::decode_message): ... this.
10328 (cancel_breakpoint): Rename to...
10329 (darwin_nat_target::cancel_breakpoint): ... this.
10330 (darwin_wait): Rename to...
10331 (darwin_nat_target::wait_1): ... this. Use range-based for loop
10332 instead of iterate_over_inferiors.
10333 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
10334 (darwin_stop_inferior): Rename to...
10335 (darwin_nat_target::stop_inferior): ... this.
10336 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
10337 (darwin_init_thread_list): Rename to...
10338 (darwin_nat_target::init_thread_list): ... this.
10339 (darwin_ptrace_him): Rename to...
10340 (darwin_nat_target::ptrace_him): ... this.
10341 (darwin_nat_target::create_inferior): Pass lambda function to
10342 fork_inferior.
10343 (darwin_nat_target::detach): Call stop_inferior instead of
10344 darwin_stop_inferior.
10345 * fork-inferior.h (fork_inferior): Change init_trace_fun
10346 parameter to gdb::function_view.
10347 * fork-inferior.c (fork_inferior): Likewise.
10348
c162ed3e
HD
103492020-01-23 Hannes Domani <ssbssa@yahoo.de>
10350
10351 * i386-cygwin-tdep.c (core_process_module_section): Update.
10352 * windows-nat.c (struct lm_info_windows): Add text_offset.
10353 (windows_xfer_shared_libraries): Update.
10354 * windows-tdep.c (windows_xfer_shared_library):
10355 Add text_offset_cached argument.
10356 * windows-tdep.h (windows_xfer_shared_library): Update.
10357
a1237872
SM
103582020-01-21 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * gdbarch.sh: Add declaration for _initialize_gdbarch.
10361
b3ee6dd9
SM
103622020-01-21 Simon Marchi <simon.marchi@efficios.com>
10363
10364 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
10365 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
10366 replace with range-based for.
10367 (gdbsim_interrupt_inferior): Remove.
10368 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
10369 with a range-based for. Inline code from
10370 gdbsim_interrupt_inferior.
10371
f9fac3c8
SM
103722020-01-21 Simon Marchi <simon.marchi@efficios.com>
10373
10374 * infrun.c (proceed): Fix indentation.
10375
f6474de9
TT
103762020-01-21 Tom Tromey <tromey@adacore.com>
10377
10378 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
10379 * python/python.c (python_extension_ops): Update.
10380 (gdbpy_colorize): New function.
10381 * python/lib/gdb/__init__.py (colorize): New function.
10382 * extension.h (ext_lang_colorize): Declare.
10383 * extension.c (ext_lang_colorize): New function.
10384 * extension-priv.h (struct extension_language_ops) <colorize>: New
10385 member.
10386 * cli/cli-style.c (_initialize_cli_style): Update help text.
10387
f0c702d4
LM
103882020-01-21 Luis Machado <luis.machado@linaro.org>
10389
10390 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
10391 <cond>: Change type to bool.
10392 (aarch64_displaced_step_b_cond): Update cond to use bool type.
10393 (aarch64_displaced_step_cb): Likewise.
10394 (aarch64_displaced_step_tb): Likewise.
10395
1ab139e5
LM
103962020-01-21 Luis Machado <luis.machado@linaro.org>
10397
10398 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
10399 output.
10400
0c271889
LM
104012020-01-21 Luis Machado <luis.machado@linaro.org>
10402
10403 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
10404 <pc_adjust>: Adjust the documentation.
10405 (aarch64_displaced_step_fixup): Check if PC really moved before
10406 adjusting it.
10407
4d89c1c7
TT
104082020-01-19 Tom Tromey <tom@tromey.com>
10409
10410 * disasm.c (~gdb_disassembler): New destructor.
10411 (gdb_buffered_insn_length): Call disassemble_free_target.
10412 * disasm.h (class gdb_disassembler): Declare destructor. Use
10413 DISABLE_COPY_AND_ASSIGN.
10414
c0ab21c2
TT
104152020-01-19 Tom Tromey <tom@tromey.com>
10416
10417 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
10418 (die_reader_func_ftype): Remove.
10419 (cutu_reader): New class.
10420 (dw2_get_file_names_reader): Remove "data" parameter.
10421 (dw2_get_file_names): Use cutu_reader.
10422 (create_debug_type_hash_table): Update.
10423 (read_cutu_die_from_dwo): Update comment.
10424 (lookup_dwo_unit): Add dwo_name parameter.
10425 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
10426 die_reader_func_ftype and data parameters.
10427 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
10428 Remove die_reader_func_ftype and data parameters.
10429 (~cutu_reader): New; from init_cutu_and_read_dies.
10430 (cutu_reader::cutu_reader): Rename from
10431 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
10432 and data parameters.
10433 (init_cutu_and_read_dies_simple): Remove.
10434 (struct process_psymtab_comp_unit_data): Remove.
10435 (process_psymtab_comp_unit_reader): Remove data parameter; add
10436 want_partial_unit and pretend_language parameters.
10437 (process_psymtab_comp_unit): Use cutu_reader.
10438 (build_type_psymtabs_reader): Remove data parameter.
10439 (build_type_psymtabs_1): Use cutu_reader.
10440 (process_skeletonless_type_unit): Likewise.
10441 (load_partial_comp_unit_reader): Remove.
10442 (load_partial_comp_unit): Use cutu_reader.
10443 (load_full_comp_unit_reader): Remove.
10444 (load_full_comp_unit): Use cutu_reader.
10445 (struct create_dwo_cu_data): Remove.
10446 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
10447 dwo_unit parameters.
10448 (create_cus_hash_table): Use cutu_reader.
10449 (struct dwarf2_read_addr_index_data): Remove.
10450 (dwarf2_read_addr_index_reader): Remove.
10451 (dwarf2_read_addr_index): Use cutu_reader.
10452 (read_signatured_type_reader): Remove.
10453 (read_signatured_type): Use cutu_reader.
10454
45bbae5c
TT
104552020-01-19 Tom Tromey <tom@tromey.com>
10456
10457 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
10458 * tui/tui-wingeneral.h (class tui_suppress_output): New.
10459 (tui_wrefresh): Declare.
10460 * tui/tui-wingeneral.c (suppress_output): New global.
10461 (tui_suppress_output, ~tui_suppress_output): New constructor and
10462 destructor.
10463 (tui_wrefresh): New function.
10464 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
10465 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
10466 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
10467 method.
10468 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
10469 tui_wrefresh.
10470 (tui_data_window::no_refresh): New method.
10471 (tui_data_item_window::refresh_window): Call tui_wrefresh.
10472 (tui_reg_command): Use tui_suppress_output
10473 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
10474 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
10475 method.
10476 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
10477
4f13c1c0
TT
104782020-01-19 Tom Tromey <tom@tromey.com>
10479
10480 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10481 Handle case where symtab is null.
10482
fa47e446
SM
104832020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
10484
10485 * linux-fork.c (one_fork_p): Simplify.
10486
26f42329
SM
104872020-01-17 Simon Marchi <simon.marchi@efficios.com>
10488
10489 * top.c (struct qt_args): Remove.
10490 (kill_or_detach): Change return type to void, replace `void *`
10491 parameter with a proper one.
10492 (print_inferior_quit_action): Likewise.
10493 (quit_confirm): Use range-based for loop to iterate over inferiors.
10494 (quit_force): Likewise.
10495
a9ac81b1
SM
104962020-01-17 Simon Marchi <simon.marchi@efficios.com>
10497
10498 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
10499 `void *` parameter with proper parameters.
10500 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
10501 (print_one_inferior): Change return type to void, replace `void *`
10502 parameter with proper parameters.
10503 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
10504 inferiors.
10505 (get_other_inferior): Remove.
10506 (mi_cmd_remove_inferior): Use range-based loop to iterate over
10507 inferiors.
10508
788eca49
SM
105092020-01-17 Simon Marchi <simon.marchi@efficios.com>
10510
10511 * mi/mi-interp.c (report_initial_inferior): Remove.
10512 (mi_interp::init): Use range-based for to iterate over inferiors.
10513
d9bc85b6
SM
105142020-01-17 Simon Marchi <simon.marchi@efficios.com>
10515
10516 * python/py-inferior.c (build_inferior_list): Remove.
10517 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
10518
40c94099
CB
105192020-01-16 Christian Biesinger <cbiesinger@google.com>
10520
10521 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
10522 (btrace_stitch_trace): Likewise.
10523 * charset.c (intermediate_encoding): Likewise (vaild).
10524 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
10525 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
10526 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
10527
e0cdfe3c
HD
105282020-01-16 Hannes Domani <ssbssa@yahoo.de>
10529
10530 * windows-tdep.c (windows_get_tlb_type):
10531 Add rtl_user_process_parameters type.
10532
790f1718 105332020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 10534 Norbert Lange <nolange79@gmail.com>
790f1718
PA
10535
10536 PR build/24805
10537 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
10538 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
10539 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
10540 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
10541 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
10542 (ps_plog): Redeclare exported functions with default visibility.
10543
3112ed97
NA
105442020-01-16 Nitika Achra <Nitika.Achra@amd.com>
10545
10546 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
10547 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
10548
8dc3273e
SM
105492020-01-15 Simon Marchi <simon.marchi@efficios.com>
10550
10551 * infcmd.c (post_create_inferior): Use get_thread_regcache
10552 instead of get_current_regcache.
10553
ff47f4f0
TT
105542020-01-14 Tom Tromey <tom@tromey.com>
10555
10556 PR symtab/12535:
10557 * python/python.c (gdbpy_decode_line): Treat empty string the same
10558 as no argument.
10559
975f45b7
TT
105602020-01-14 Tom Tromey <tom@tromey.com>
10561
10562 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
10563
25e57356
TT
105642020-01-14 Tom Tromey <tom@tromey.com>
10565
10566 * nat/linux-btrace.c: Don't include <config.h>.
10567 * nat/linux-ptrace.c: Don't include <config.h>.
10568 * nat/x86-linux-dregs.c: Don't include <config.h>.
10569
05ea2a05
TT
105702020-01-14 Tom Tromey <tom@tromey.com>
10571
10572 * configure: Rebuild.
10573 * configure.ac: Move many checks to ../gdbsupport/common.m4.
10574
01027315
TT
105752020-01-14 Tom Tromey <tom@tromey.com>
10576
10577 * nat/x86-linux-dregs.c: Include configh.h.
10578 * nat/linux-ptrace.c: Include configh.h.
10579 * nat/linux-btrace.c: Include configh.h.
10580 * defs.h: Include config.h, bfd.h.
10581 * configure.ac: Don't source common.host.
10582 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
10583 * configure: Rebuild.
10584 * acinclude.m4: Update path.
10585 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
10586 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
10587 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
10588 (CLIBS): Add LIBSUPPORT.
10589 (CDEPS): Likewise.
10590 (COMMON_SFILES): Remove gdbsupport files.
10591 (HFILES_NO_SRCDIR): Likewise.
10592 (stamp-version): Update path to create-version.sh.
10593 (ALLDEPFILES): Remove gdbsupport files.
10594
b2ceabe8
TT
105952020-01-14 Tom Tromey <tom@tromey.com>
10596
10597 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
10598 USE_WIN32API when needed.
10599 * configure.ac (USE_WIN32API): Don't define.
10600 (WIN32LIBS): Use WIN32APILIBS.
10601 * configure: Rebuild.
10602
25c51f71
TT
106032020-01-14 Tom Tromey <tom@tromey.com>
10604
10605 * configure: Rebuild.
10606 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
10607
717c684d
BE
106082020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
10609
10610 * skip.c (skip_function_command): Make skip w/o arguments use the
10611 name of the inlined function if pc is inside any inlined function.
10612
7da6a5b9
LM
106132020-01-14 Luis Machado <luis.machado@linaro.org>
10614
10615 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
10616 * infrun.c (resume_1): Likewise.
10617 (handle_inferior_event): Remove stale comment.
10618 * linux-nat.c (linux_nat_target::resume): Update comments.
10619 (save_stop_reason): Likewise.
10620 (linux_nat_filter_event): Likewise.
10621 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
10622
44e4c775
AB
106232020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10624
10625 * elfread.c (record_minimal_symbol): Set section index to 0 for
10626 non-allocatable sections.
10627
18a8505e
AT
10628
106292020-01-13 Ali Tamur <tamur@google.com>
10630
10631 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
10632 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
10633 to gdb::optional. Update comments.
10634 (dwo_file): Update comments.
10635 (read_attribute): Update API to take an additional out parameter,
10636 need_reprocess. This is used to mark attributes that need other
10637 attributes (e.g. str_offsets_base) for correct computation which may not
10638 have been read yet.
10639 (read_attribute_reprocess): New function declaration.
10640 (read_addr_index): Likewise.
10641 (read_dwo_str_index): Likewise.
10642 (read_stub_str_index): Likewise.
10643 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
10644 (lookup_addr_base): New function definition.
10645 (lookup_ranges_base): Likewise.
10646 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
10647 lookup_ranges_base.
10648 (init_cutu_and_read_dies): Update comments.
10649 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
10650 unit. This is used to inherit parent's str_offsets_base and addr_base.
10651 Update comments.
10652 (init_cutu_and_read_dies_simple): Reflect API changes.
10653 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
10654 (create_cus_hash_table): Change API to take parent compile unit.
10655 Reflect API changes.
10656 (open_and_init_dwo_file): Reflect API changes.
10657 (dwarf2_get_pc_bounds): Update comments.
10658 (dwarf2_record_block_ranges): Likewise.
10659 (read_full_die_1): Change implementation to reprocess attributes that
10660 need str_offsets_base and addr_base.
10661 (partial_die_info::read): Likewise.
10662 (read_attribute_reprocess): New function definition.
10663 (read_attribute_value): Change API to take an additional out parameter,
10664 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
10665 when a non-dwo compile unit has index based attributes.
10666 (read_attribute): Reflect API changes.
10667 (read_addr_index_1): Reflect API changes. Update comments.
10668 (dwarf2_read_addr_index_data): Reflect API changes.
10669 (dwarf2_read_addr_index): Likewise.
10670 (read_str_index): Change API and implementation. This becomes a helper
10671 to be used by the new string index related methods. Update error
10672 message and comments.
10673 (read_dwo_str_index): New function definition.
10674 (read_stub_str_index): Likewise.
10675 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
10676 * symfile.h (dwarf2_debug_sections): Likewise.
10677 * xcoffread.c (dwarf2_debug_sections): Likewise.
10678
0cac9354
SM
106792020-01-13 Simon Marchi <simon.marchi@efficios.com>
10680
10681 * gdbcore.h (struct core_fns) <core_read_registers>: Change
10682 core_reg_sect type to gdb_byte *.
10683 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
10684 * cris-tdep.c (fetch_core_registers): Likewise.
10685 * corelow.c (core_target::get_core_register_section): Change
10686 type of `contents` to gdb::byte_vector.
10687
9a6d629c
AB
106882020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
10689
10690 * tui/tui-wingeneral.c (box_win): Position the title in the center
10691 of the border.
10692
d8b2f9e3
SM
106932020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
10694
10695 * corelow.c (core_target::get_core_register_section): Use
10696 std::vector instead of alloca.
10697
bb564c58
SM
106982020-01-13 Simon Marchi <simon.marchi@efficios.com>
10699
10700 * warning.m4: Add -Wmissing-declarations to build_warnings.
10701 * configure: Re-generate.
10702
6b366111
SM
107032020-01-13 Simon Marchi <simon.marchi@efficios.com>
10704
10705 * python/python.c (init__gdb_module): Add declaration.
10706
6c265988
SM
107072020-01-13 Simon Marchi <simon.marchi@efficios.com>
10708
10709 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
10710 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
10711 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
10712 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
10713 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
10714 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
10715 * ada-exp.y (_initialize_ada_exp): Add declaration.
10716 * ada-lang.c (_initialize_ada_language): Add declaration.
10717 * ada-tasks.c (_initialize_tasks): Add declaration.
10718 * agent.c (_initialize_agent): Add declaration.
10719 * aix-thread.c (_initialize_aix_thread): Add declaration.
10720 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
10721 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
10722 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
10723 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
10724 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
10725 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
10726 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
10727 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
10728 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
10729 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
10730 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
10731 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
10732 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
10733 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
10734 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
10735 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
10736 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
10737 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
10738 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
10739 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
10740 * annotate.c (_initialize_annotate): Add declaration.
10741 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
10742 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
10743 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
10744 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
10745 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
10746 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
10747 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
10748 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
10749 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
10750 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
10751 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
10752 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
10753 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
10754 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
10755 * auto-load.c (_initialize_auto_load): Add declaration.
10756 * auxv.c (_initialize_auxv): Add declaration.
10757 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
10758 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
10759 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
10760 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
10761 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
10762 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
10763 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
10764 * breakpoint.c (_initialize_breakpoint): Add declaration.
10765 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
10766 * btrace.c (_initialize_btrace): Add declaration.
10767 * charset.c (_initialize_charset): Add declaration.
10768 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
10769 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
10770 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
10771 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
10772 * cli/cli-script.c (_initialize_cli_script): Add declaration.
10773 * cli/cli-style.c (_initialize_cli_style): Add declaration.
10774 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
10775 * coffread.c (_initialize_coffread): Add declaration.
10776 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
10777 * compile/compile.c (_initialize_compile): Add declaration.
10778 * complaints.c (_initialize_complaints): Add declaration.
10779 * completer.c (_initialize_completer): Add declaration.
10780 * copying.c (_initialize_copying): Add declaration.
10781 * corefile.c (_initialize_core): Add declaration.
10782 * corelow.c (_initialize_corelow): Add declaration.
10783 * cp-abi.c (_initialize_cp_abi): Add declaration.
10784 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
10785 * cp-support.c (_initialize_cp_support): Add declaration.
10786 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
10787 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
10788 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
10789 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
10790 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
10791 * ctfread.c (_initialize_ctfread): Add declaration.
10792 * d-lang.c (_initialize_d_language): Add declaration.
10793 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
10794 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
10795 * dbxread.c (_initialize_dbxread): Add declaration.
10796 * dcache.c (_initialize_dcache): Add declaration.
10797 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
10798 * disasm.c (_initialize_disasm): Add declaration.
10799 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
10800 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
10801 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
10802 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
10803 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
10804 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
10805 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
10806 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
10807 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
10808 * elfread.c (_initialize_elfread): Add declaration.
10809 * exec.c (_initialize_exec): Add declaration.
10810 * extension.c (_initialize_extension): Add declaration.
10811 * f-lang.c (_initialize_f_language): Add declaration.
10812 * f-valprint.c (_initialize_f_valprint): Add declaration.
10813 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
10814 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
10815 * filesystem.c (_initialize_filesystem): Add declaration.
10816 * findcmd.c (_initialize_mem_search): Add declaration.
10817 * findvar.c (_initialize_findvar): Add declaration.
10818 * fork-child.c (_initialize_fork_child): Add declaration.
10819 * frame-base.c (_initialize_frame_base): Add declaration.
10820 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
10821 * frame.c (_initialize_frame): Add declaration.
10822 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
10823 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
10824 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
10825 * gcore.c (_initialize_gcore): Add declaration.
10826 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
10827 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
10828 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
10829 * gdbarch.c (_initialize_gdbarch): Add declaration.
10830 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
10831 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
10832 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
10833 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
10834 * go-lang.c (_initialize_go_language): Add declaration.
10835 * go32-nat.c (_initialize_go32_nat): Add declaration.
10836 * guile/guile.c (_initialize_guile): Add declaration.
10837 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
10838 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
10839 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
10840 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
10841 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
10842 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
10843 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
10844 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
10845 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
10846 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
10847 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
10848 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
10849 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
10850 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
10851 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
10852 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
10853 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
10854 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
10855 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
10856 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
10857 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
10858 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
10859 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
10860 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
10861 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
10862 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
10863 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
10864 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
10865 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
10866 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
10867 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
10868 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
10869 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
10870 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
10871 * infcall.c (_initialize_infcall): Add declaration.
10872 * infcmd.c (_initialize_infcmd): Add declaration.
10873 * inflow.c (_initialize_inflow): Add declaration.
10874 * infrun.c (_initialize_infrun): Add declaration.
10875 * interps.c (_initialize_interpreter): Add declaration.
10876 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
10877 * jit.c (_initialize_jit): Add declaration.
10878 * language.c (_initialize_language): Add declaration.
10879 * linux-fork.c (_initialize_linux_fork): Add declaration.
10880 * linux-nat.c (_initialize_linux_nat): Add declaration.
10881 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
10882 * linux-thread-db.c (_initialize_thread_db): Add declaration.
10883 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
10884 * m2-lang.c (_initialize_m2_language): Add declaration.
10885 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
10886 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
10887 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
10888 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
10889 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
10890 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
10891 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
10892 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
10893 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
10894 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
10895 * machoread.c (_initialize_machoread): Add declaration.
10896 * macrocmd.c (_initialize_macrocmd): Add declaration.
10897 * macroscope.c (_initialize_macroscope): Add declaration.
10898 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
10899 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
10900 * maint.c (_initialize_maint_cmds): Add declaration.
10901 * mdebugread.c (_initialize_mdebugread): Add declaration.
10902 * memattr.c (_initialize_mem): Add declaration.
10903 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
10904 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
10905 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
10906 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
10907 * mi/mi-main.c (_initialize_mi_main): Add declaration.
10908 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
10909 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
10910 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
10911 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
10912 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
10913 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
10914 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
10915 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
10916 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
10917 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
10918 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
10919 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
10920 * mipsread.c (_initialize_mipsread): Add declaration.
10921 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
10922 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
10923 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
10924 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
10925 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
10926 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
10927 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
10928 * nto-procfs.c (_initialize_procfs): Add declaration.
10929 * objc-lang.c (_initialize_objc_language): Add declaration.
10930 * observable.c (_initialize_observer): Add declaration.
10931 * opencl-lang.c (_initialize_opencl_language): Add declaration.
10932 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
10933 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
10934 * osabi.c (_initialize_gdb_osabi): Add declaration.
10935 * osdata.c (_initialize_osdata): Add declaration.
10936 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
10937 * parse.c (_initialize_parse): Add declaration.
10938 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
10939 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
10940 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
10941 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
10942 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
10943 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
10944 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
10945 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
10946 * printcmd.c (_initialize_printcmd): Add declaration.
10947 * probe.c (_initialize_probe): Add declaration.
10948 * proc-api.c (_initialize_proc_api): Add declaration.
10949 * proc-events.c (_initialize_proc_events): Add declaration.
10950 * proc-service.c (_initialize_proc_service): Add declaration.
10951 * procfs.c (_initialize_procfs): Add declaration.
10952 * producer.c (_initialize_producer): Add declaration.
10953 * psymtab.c (_initialize_psymtab): Add declaration.
10954 * python/python.c (_initialize_python): Add declaration.
10955 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
10956 * record-btrace.c (_initialize_record_btrace): Add declaration.
10957 * record-full.c (_initialize_record_full): Add declaration.
10958 * record.c (_initialize_record): Add declaration.
10959 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
10960 * regcache.c (_initialize_regcache): Add declaration.
10961 * reggroups.c (_initialize_reggroup): Add declaration.
10962 * remote-notif.c (_initialize_notif): Add declaration.
10963 * remote-sim.c (_initialize_remote_sim): Add declaration.
10964 * remote.c (_initialize_remote): Add declaration.
10965 * reverse.c (_initialize_reverse): Add declaration.
10966 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
10967 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
10968 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
10969 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
10970 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
10971 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
10972 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
10973 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
10974 Add declaration.
10975 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
10976 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
10977 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
10978 * rust-exp.y (_initialize_rust_exp): Add declaration.
10979 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
10980 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
10981 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
10982 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
10983 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
10984 * score-tdep.c (_initialize_score_tdep): Add declaration.
10985 * ser-go32.c (_initialize_ser_dos): Add declaration.
10986 * ser-mingw.c (_initialize_ser_windows): Add declaration.
10987 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
10988 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
10989 * ser-uds.c (_initialize_ser_socket): Add declaration.
10990 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
10991 * serial.c (_initialize_serial): Add declaration.
10992 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
10993 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
10994 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
10995 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
10996 * skip.c (_initialize_step_skip): Add declaration.
10997 * sol-thread.c (_initialize_sol_thread): Add declaration.
10998 * solib-aix.c (_initialize_solib_aix): Add declaration.
10999 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
11000 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
11001 * solib-frv.c (_initialize_frv_solib): Add declaration.
11002 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
11003 * solib-target.c (_initialize_solib_target): Add declaration.
11004 * solib.c (_initialize_solib): Add declaration.
11005 * source-cache.c (_initialize_source_cache): Add declaration.
11006 * source.c (_initialize_source): Add declaration.
11007 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
11008 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
11009 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
11010 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
11011 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
11012 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
11013 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
11014 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
11015 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
11016 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
11017 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
11018 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
11019 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
11020 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
11021 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
11022 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
11023 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
11024 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
11025 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
11026 * stabsread.c (_initialize_stabsread): Add declaration.
11027 * stack.c (_initialize_stack): Add declaration.
11028 * stap-probe.c (_initialize_stap_probe): Add declaration.
11029 * std-regs.c (_initialize_frame_reg): Add declaration.
11030 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
11031 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
11032 * symfile.c (_initialize_symfile): Add declaration.
11033 * symmisc.c (_initialize_symmisc): Add declaration.
11034 * symtab.c (_initialize_symtab): Add declaration.
11035 * target.c (_initialize_target): Add declaration.
11036 * target-connection.c (_initialize_target_connection): Add
11037 declaration.
11038 * target-dcache.c (_initialize_target_dcache): Add declaration.
11039 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
11040 * thread.c (_initialize_thread): Add declaration.
11041 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
11042 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
11043 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
11044 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
11045 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
11046 * tracectf.c (_initialize_ctf): Add declaration.
11047 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
11048 * tracefile.c (_initialize_tracefile): Add declaration.
11049 * tracepoint.c (_initialize_tracepoint): Add declaration.
11050 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
11051 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
11052 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
11053 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
11054 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
11055 * tui/tui-win.c (_initialize_tui_win): Add declaration.
11056 * tui/tui.c (_initialize_tui): Add declaration.
11057 * typeprint.c (_initialize_typeprint): Add declaration.
11058 * ui-style.c (_initialize_ui_style): Add declaration.
11059 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
11060 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
11061 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
11062 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
11063 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
11064 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
11065 * unittests/filtered_iterator-selftests.c
11066 (_initialize_filtered_iterator_selftests): Add declaration.
11067 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
11068 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
11069 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
11070 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
11071 * unittests/main-thread-selftests.c
11072 (_initialize_main_thread_selftests): Add declaration.
11073 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
11074 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
11075 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
11076 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
11077 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
11078 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
11079 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
11080 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
11081 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
11082 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
11083 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
11084 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
11085 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
11086 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
11087 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
11088 declaration.
11089 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
11090 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
11091 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
11092 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
11093 * user-regs.c (_initialize_user_regs): Add declaration.
11094 * utils.c (_initialize_utils): Add declaration.
11095 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
11096 * valops.c (_initialize_valops): Add declaration.
11097 * valprint.c (_initialize_valprint): Add declaration.
11098 * value.c (_initialize_values): Add declaration.
11099 * varobj.c (_initialize_varobj): Add declaration.
11100 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
11101 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
11102 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
11103 * windows-nat.c (_initialize_windows_nat): Add declaration.
11104 (_initialize_check_for_gdb_ini): Add declaration.
11105 (_initialize_loadable): Add declaration.
11106 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
11107 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
11108 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
11109 * xcoffread.c (_initialize_xcoffread): Add declaration.
11110 * xml-support.c (_initialize_xml_support): Add declaration.
11111 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
11112 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
11113 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
11114 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
11115
e2de1eec
SM
111162020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11117
11118 * regformats/regdat.sh: Generate declaration for init function.
11119
e0037b4c
SM
111202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
11121
11122 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
11123 up.
11124 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
11125 close_one_inferior>: New methods.
11126 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
11127 pass down target to find_inferior_pid.
11128 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
11129 Pass down target to find_inferior_ptid.
11130 (gdbsim_target::create_inferior): Pass down target to
11131 add_thread_silent.
11132 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
11133 target down to find_inferior_ptid and switch_to_thread.
11134 (gdbsim_target::close): Update to call close_one_inferior.
11135 (struct resume_data): Remove.
11136 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
11137 directly, rather than through a void pointer.
11138 (gdbsim_target::resume): Update to call resume_one_inferior.
11139
58920b5b
SM
111402020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
11141
11142 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
11143
4ec89149
PA
111442020-01-12 Pedro Alves <palves@redhat.com>
11145
11146 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
11147 directly for the current inferior instead of
11148 discard_all_inferiors.
11149 (discard_all_inferiors): Delete.
11150
7c392d1d
TT
111512020-01-11 Tom Tromey <tom@tromey.com>
11152
11153 * tui/tui-wingeneral.c (box_win): Check cli_styling.
11154 * tui/tui-winsource.c (tui_source_window_base::refill): Use
11155 deprecated_safe_get_selected_frame.
11156
d9ebdab7
TBA
111572020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11158
11159 * inferior.c (print_inferior): Switch inferior before printing it.
11160
f3c469b9
PA
111612020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
11162 Pedro Alves <palves@redhat.com>
11163
11164 * progspace-and-thread.c (switch_to_program_space_and_thread):
11165 Assert there's an inferior for PSPACE. Use
11166 switch_to_inferior_no_thread to switch the inferior too.
11167 * progspace.c (program_space::~program_space): Call
11168 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
11169 (program_space::free_all_objfiles): Don't call clear_symtab_users
11170 here.
11171 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
11172
65c574f6
PA
111732020-01-10 Pedro Alves <palves@redhat.com>
11174
11175 * NEWS: Mention multi-target debugging, "info connections", and
11176 "add-inferior -no-connection".
11177
2f4fcf00
PA
111782020-01-10 Pedro Alves <palves@redhat.com>
11179
11180 * infrun.c: Include "target-connection.h".
11181 (check_multi_target_resumption): New.
11182 (proceed): Call it.
11183 * target-connection.c (make_target_connection_string): Make
11184 extern.
11185 * target-connection.h (make_target_connection_string): Declare.
11186
121b3efd
PA
111872020-01-10 Pedro Alves <palves@redhat.com>
11188
11189 * Makefile.in (COMMON_SFILES): Add target-connection.c.
11190 * inferior.c (uiout_field_connection): New function.
11191 (print_inferior): Add new "connection-id" column.
11192 (add_inferior_command): Show connection number/string of added
11193 inferior.
11194 * process-stratum-target.h
11195 (process_stratum_target::connection_string): New virtual method.
11196 (process_stratum_target::connection_number): New field.
11197 * remote.c (remote_target::connection_string): New override.
11198 * target-connection.c: New file.
11199 * target-connection.h: New file.
11200 * target.c (decref_target): Remove process_stratum targets from
11201 the connection list.
11202 (target_stack::push): Add process_stratum targets to the
11203 connection list.
11204
4f837581
PA
112052020-01-10 Pedro Alves <palves@redhat.com>
11206
11207 Revert:
11208 2016-04-12 Pedro Alves <palves@redhat.com>
11209 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
11210 Remove references to name.
11211 * serial.h (struct serial) <name>: Delete.
11212
f4ec508e
PA
112132020-01-10 Pedro Alves <palves@redhat.com>
11214
11215 * gdbarch-selftests.c (register_to_value_test): Remove "target
11216 already pushed" check.
11217
5b6d1e4f
PA
112182020-01-10 Pedro Alves <palves@redhat.com>
11219 John Baldwin <jhb@FreeBSD.org>
11220
11221 * aarch64-linux-nat.c
11222 (aarch64_linux_nat_target::thread_architecture): Adjust.
11223 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
11224 (task_command_1): Likewise.
11225 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
11226 (aix_thread_target::wait, aix_thread_target::fetch_registers)
11227 (aix_thread_target::store_registers)
11228 (aix_thread_target::thread_alive): Adjust.
11229 * amd64-fbsd-tdep.c: Include "inferior.h".
11230 (amd64fbsd_get_thread_local_address): Pass down target.
11231 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
11232 thread's gdbarch instead of target_gdbarch.
11233 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
11234 get_last_target_status.
11235 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
11236 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
11237 inferiors.
11238 (update_inserted_breakpoint_locations): Skip if inferiors with no
11239 execution.
11240 (update_global_location_list): When handling moribund locations,
11241 find representative inferior for location's pspace, and use thread
11242 count of its process_stratum target.
11243 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
11244 * bsd-uthread.c (bsd_uthread_target::wait): Use
11245 as_process_stratum_target and adjust thread_change_ptid and
11246 add_thread calls.
11247 (bsd_uthread_target::update_thread_list): Use
11248 as_process_stratum_target and adjust find_thread_ptid,
11249 thread_change_ptid and add_thread calls.
11250 * btrace.c (maint_btrace_packet_history_cmd): Adjust
11251 find_thread_ptid call.
11252 * corelow.c (add_to_thread_list): Adjust add_thread call.
11253 (core_target_open): Adjust add_thread_silent and thread_count
11254 calls.
11255 (core_target::pid_to_str): Adjust find_inferior_ptid call.
11256 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
11257 * event-top.c (async_disconnect): Pop targets from all inferiors.
11258 * exec.c (add_target_sections): Push exec target on all inferiors
11259 sharing the program space.
11260 (remove_target_sections): Remove the exec target from all
11261 inferiors sharing the program space.
11262 (exec_on_vfork): New.
11263 * exec.h (exec_on_vfork): Declare.
11264 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
11265 Pass it down.
11266 (fbsd_nat_target::update_thread_list): Adjust.
11267 (fbsd_nat_target::resume): Adjust.
11268 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
11269 down.
11270 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
11271 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
11272 get_thread_arch_regcache call.
11273 * fork-child.c (gdb_startup_inferior): Pass target down to
11274 startup_inferior and set_executing.
11275 * gdbthread.h (struct process_stratum_target): Forward declare.
11276 (add_thread, add_thread_silent, add_thread_with_info)
11277 (in_thread_list): Add process_stratum_target parameter.
11278 (find_thread_ptid(inferior*, ptid_t)): New overload.
11279 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
11280 parameter.
11281 (all_threads()): Delete overload.
11282 (all_threads, all_non_exited_threads): Add process_stratum_target
11283 parameter.
11284 (all_threads_safe): Use brace initialization.
11285 (thread_count): Add process_stratum_target parameter.
11286 (set_resumed, set_running, set_stop_requested, set_executing)
11287 (threads_are_executing, finish_thread_state): Add
11288 process_stratum_target parameter.
11289 (switch_to_thread): Use is_current_thread.
11290 * i386-fbsd-tdep.c: Include "inferior.h".
11291 (i386fbsd_get_thread_local_address): Pass down target.
11292 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
11293 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
11294 have_inferiors check.
11295 * inf-ptrace.c (inf_ptrace_target::create_inferior)
11296 (inf_ptrace_target::attach): Adjust.
11297 * infcall.c (run_inferior_call): Adjust.
11298 * infcmd.c (run_command_1): Pass target to
11299 scoped_finish_thread_state.
11300 (proceed_thread_callback): Skip inferiors with no execution.
11301 (continue_command): Rename 'all_threads' local to avoid hiding
11302 'all_threads' function. Adjust get_last_target_status call.
11303 (prepare_one_step): Adjust set_running call.
11304 (signal_command): Use user_visible_resume_target. Compare thread
11305 pointers instead of inferior_ptid.
11306 (info_program_command): Adjust to pass down target.
11307 (attach_command): Mark target's 'thread_executing' flag.
11308 (stop_current_target_threads_ns): New, factored out from ...
11309 (interrupt_target_1): ... this. Switch inferior before making
11310 target calls.
11311 * inferior-iter.h
11312 (struct all_inferiors_iterator, struct all_inferiors_range)
11313 (struct all_inferiors_safe_range)
11314 (struct all_non_exited_inferiors_range): Filter on
11315 process_stratum_target too. Remove explicit.
11316 * inferior.c (inferior::inferior): Push dummy target on target
11317 stack.
11318 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
11319 Add process_stratum_target parameter, and pass it down.
11320 (have_live_inferiors): Adjust.
11321 (switch_to_inferior_and_push_target): New.
11322 (add_inferior_command, clone_inferior_command): Handle
11323 "-no-connection" parameter. Use
11324 switch_to_inferior_and_push_target.
11325 (_initialize_inferior): Mention "-no-connection" option in
11326 the help of "add-inferior" and "clone-inferior" commands.
11327 * inferior.h: Include "process-stratum-target.h".
11328 (interrupt_target_1): Use bool.
11329 (struct inferior) <push_target, unpush_target, target_is_pushed,
11330 find_target_beneath, top_target, process_target, target_at,
11331 m_stack>: New.
11332 (discard_all_inferiors): Delete.
11333 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
11334 (all_inferiors, all_non_exited_inferiors): Add
11335 process_stratum_target parameter.
11336 * infrun.c: Include "gdb_select.h" and <unordered_map>.
11337 (target_last_proc_target): New global.
11338 (follow_fork_inferior): Push target on new inferior. Pass target
11339 to add_thread_silent. Call exec_on_vfork. Handle target's
11340 reference count.
11341 (follow_fork): Adjust get_last_target_status call. Also consider
11342 target.
11343 (follow_exec): Push target on new inferior.
11344 (struct execution_control_state) <target>: New field.
11345 (user_visible_resume_target): New.
11346 (do_target_resume): Call target_async.
11347 (resume_1): Set target's threads_executing flag. Consider resume
11348 target.
11349 (commit_resume_all_targets): New.
11350 (proceed): Also consider resume target. Skip threads of inferiors
11351 with no execution. Commit resumtion in all targets.
11352 (start_remote): Pass current inferior to wait_for_inferior.
11353 (infrun_thread_stop_requested): Consider target as well. Pass
11354 thread_info pointer to clear_inline_frame_state instead of ptid.
11355 (infrun_thread_thread_exit): Consider target as well.
11356 (random_pending_event_thread): New inferior parameter. Use it.
11357 (do_target_wait): Rename to ...
11358 (do_target_wait_1): ... this. Add inferior parameter, and pass it
11359 down.
11360 (threads_are_resumed_pending_p, do_target_wait): New.
11361 (prepare_for_detach): Adjust calls.
11362 (wait_for_inferior): New inferior parameter. Handle it. Use
11363 do_target_wait_1 instead of do_target_wait.
11364 (fetch_inferior_event): Adjust. Switch to representative
11365 inferior. Pass target down.
11366 (set_last_target_status): Add process_stratum_target parameter.
11367 Save target in global.
11368 (get_last_target_status): Add process_stratum_target parameter and
11369 handle it.
11370 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
11371 (context_switch): Check inferior_ptid == null_ptid before calling
11372 inferior_thread().
11373 (get_inferior_stop_soon): Pass down target.
11374 (wait_one): Rename to ...
11375 (poll_one_curr_target): ... this.
11376 (struct wait_one_event): New.
11377 (wait_one): New.
11378 (stop_all_threads): Adjust.
11379 (handle_no_resumed, handle_inferior_event): Adjust to consider the
11380 event's target.
11381 (switch_back_to_stepped_thread): Also consider target.
11382 (print_stop_event): Update.
11383 (normal_stop): Update. Also consider the resume target.
11384 * infrun.h (wait_for_inferior): Remove declaration.
11385 (user_visible_resume_target): New declaration.
11386 (get_last_target_status, set_last_target_status): New
11387 process_stratum_target parameter.
11388 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11389 process_stratum_target parameter, and use it.
11390 (clear_inline_frame_state (thread_info*)): New.
11391 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
11392 process_stratum_target parameter.
11393 (clear_inline_frame_state (thread_info*)): Declare.
11394 * linux-fork.c (delete_checkpoint_command): Pass target down to
11395 find_thread_ptid.
11396 (checkpoint_command): Adjust.
11397 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
11398 instead of just tweaking inferior_ptid.
11399 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
11400 (exit_lwp): Pass target down to find_thread_ptid.
11401 (attach_proc_task_lwp_callback): Pass target down to
11402 add_thread/set_running/set_executing.
11403 (linux_nat_target::attach): Pass target down to
11404 thread_change_ptid.
11405 (get_detach_signal): Pass target down to find_thread_ptid.
11406 Consider last target status's target.
11407 (linux_resume_one_lwp_throw, resume_lwp)
11408 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
11409 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
11410 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
11411 (linux_nat_target::async_wait_fd): New.
11412 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
11413 target down.
11414 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
11415 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
11416 * linux-thread-db.c (struct thread_db_info::process_target): New
11417 field.
11418 (add_thread_db_info): Save target.
11419 (get_thread_db_info): New process_stratum_target parameter. Also
11420 match target.
11421 (delete_thread_db_info): New process_stratum_target parameter.
11422 Also match target.
11423 (thread_from_lwp): Adjust to pass down target.
11424 (thread_db_notice_clone): Pass down target.
11425 (check_thread_db_callback): Pass down target.
11426 (try_thread_db_load_1): Always push the thread_db target.
11427 (try_thread_db_load, record_thread): Pass target down.
11428 (thread_db_target::detach): Pass target down. Always unpush the
11429 thread_db target.
11430 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
11431 target down. Always unpush the thread_db target.
11432 (find_new_threads_callback, thread_db_find_new_threads_2)
11433 (thread_db_target::update_thread_list): Pass target down.
11434 (thread_db_target::pid_to_str): Pass current inferior down.
11435 (thread_db_target::get_thread_local_address): Pass target down.
11436 (thread_db_target::resume, maintenance_check_libthread_db): Pass
11437 target down.
11438 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
11439 * procfs.c (procfs_target::procfs_init_inferior): Declare.
11440 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
11441 (procfs_init_inferior): Rename to ...
11442 (procfs_target::procfs_init_inferior): ... this and adjust.
11443 (procfs_target::create_inferior, procfs_notice_thread)
11444 (procfs_do_thread_registers): Adjust.
11445 * ppc-fbsd-tdep.c: Include "inferior.h".
11446 (ppcfbsd_get_thread_local_address): Pass down target.
11447 * proc-service.c (ps_xfer_memory): Switch current inferior and
11448 program space as well.
11449 (get_ps_regcache): Pass target down.
11450 * process-stratum-target.c
11451 (process_stratum_target::thread_address_space)
11452 (process_stratum_target::thread_architecture): Pass target down.
11453 * process-stratum-target.h
11454 (process_stratum_target::threads_executing): New field.
11455 (as_process_stratum_target): New.
11456 * ravenscar-thread.c
11457 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
11458 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
11459 down.
11460 * record-btrace.c (record_btrace_target::info_record): Adjust.
11461 (record_btrace_target::record_method)
11462 (record_btrace_target::record_is_replaying)
11463 (record_btrace_target::fetch_registers)
11464 (get_thread_current_frame_id, record_btrace_target::resume)
11465 (record_btrace_target::wait, record_btrace_target::stop): Pass
11466 target down.
11467 * record-full.c (record_full_wait_1): Switch to event thread.
11468 Pass target down.
11469 * regcache.c (regcache::regcache)
11470 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
11471 process_stratum_target parameter and handle it.
11472 (current_thread_target): New global.
11473 (get_thread_regcache): Add process_stratum_target parameter and
11474 handle it. Switch inferior before calling target method.
11475 (get_thread_regcache): Pass target down.
11476 (get_thread_regcache_for_ptid): Pass target down.
11477 (registers_changed_ptid): Add process_stratum_target parameter and
11478 handle it.
11479 (registers_changed_thread, registers_changed): Pass target down.
11480 (test_get_thread_arch_aspace_regcache): New.
11481 (current_regcache_test): Define a couple local test_target_ops
11482 instances and use them for testing.
11483 (readwrite_regcache): Pass process_stratum_target parameter.
11484 (cooked_read_test, cooked_write_test): Pass mock_target down.
11485 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
11486 (get_thread_arch_aspace_regcache): Add process_stratum_target
11487 parameter.
11488 (regcache::target): New method.
11489 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
11490 (regcache::registers_changed_ptid): Add process_stratum_target
11491 parameter.
11492 (regcache::m_target): New field.
11493 (registers_changed_ptid): Add process_stratum_target parameter.
11494 * remote.c (remote_state::supports_vCont_probed): New field.
11495 (remote_target::async_wait_fd): New method.
11496 (remote_unpush_and_throw): Add remote_target parameter.
11497 (get_current_remote_target): Adjust.
11498 (remote_target::remote_add_inferior): Push target.
11499 (remote_target::remote_add_thread)
11500 (remote_target::remote_notice_new_inferior)
11501 (get_remote_thread_info): Pass target down.
11502 (remote_target::update_thread_list): Skip threads of inferiors
11503 bound to other targets. (remote_target::close): Don't discard
11504 inferiors. (remote_target::add_current_inferior_and_thread)
11505 (remote_target::process_initial_stop_replies)
11506 (remote_target::start_remote)
11507 (remote_target::remote_serial_quit_handler): Pass down target.
11508 (remote_target::remote_unpush_target): New remote_target
11509 parameter. Unpush the target from all inferiors.
11510 (remote_target::remote_unpush_and_throw): New remote_target
11511 parameter. Pass it down.
11512 (remote_target::open_1): Check whether the current inferior has
11513 execution instead of checking whether any inferior is live. Pass
11514 target down.
11515 (remote_target::remote_detach_1): Pass down target. Use
11516 remote_unpush_target.
11517 (extended_remote_target::attach): Pass down target.
11518 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
11519 (remote_target::append_resumption): Pass down target.
11520 (remote_target::append_pending_thread_resumptions)
11521 (remote_target::remote_resume_with_hc, remote_target::resume)
11522 (remote_target::commit_resume): Pass down target.
11523 (remote_target::remote_stop_ns): Check supports_vCont_probed.
11524 (remote_target::interrupt_query)
11525 (remote_target::remove_new_fork_children)
11526 (remote_target::check_pending_events_prevent_wildcard_vcont)
11527 (remote_target::remote_parse_stop_reply)
11528 (remote_target::process_stop_reply): Pass down target.
11529 (first_remote_resumed_thread): New remote_target parameter. Pass
11530 it down.
11531 (remote_target::wait_as): Pass down target.
11532 (unpush_and_perror): New remote_target parameter. Pass it down.
11533 (remote_target::readchar, remote_target::remote_serial_write)
11534 (remote_target::getpkt_or_notif_sane_1)
11535 (remote_target::kill_new_fork_children, remote_target::kill): Pass
11536 down target.
11537 (remote_target::mourn_inferior): Pass down target. Use
11538 remote_unpush_target.
11539 (remote_target::core_of_thread)
11540 (remote_target::remote_btrace_maybe_reopen): Pass down target.
11541 (remote_target::pid_to_exec_file)
11542 (remote_target::thread_handle_to_thread_info): Pass down target.
11543 (remote_target::async_wait_fd): New.
11544 * riscv-fbsd-tdep.c: Include "inferior.h".
11545 (riscv_fbsd_get_thread_local_address): Pass down target.
11546 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
11547 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
11548 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
11549 Adjust.
11550 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
11551 * solib-svr4.c (enable_break): Pass down target.
11552 * spu-multiarch.c (parse_spufs_run): Pass down target.
11553 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
11554 * target-delegates.c: Regenerate.
11555 * target.c (g_target_stack): Delete.
11556 (current_top_target): Return the current inferior's top target.
11557 (target_has_execution_1): Refer to the passed-in inferior's top
11558 target.
11559 (target_supports_terminal_ours): Check whether the initial
11560 inferior was already created.
11561 (decref_target): New.
11562 (target_stack::push): Incref/decref the target.
11563 (push_target, push_target, unpush_target): Adjust.
11564 (target_stack::unpush): Defref target.
11565 (target_is_pushed): Return bool. Adjust to refer to the current
11566 inferior's target stack.
11567 (dispose_inferior): Delete, and inline parts ...
11568 (target_preopen): ... here. Only dispose of the current inferior.
11569 (target_detach): Hold strong target reference while detaching.
11570 Pass target down.
11571 (target_thread_name): Add assertion.
11572 (target_resume): Pass down target.
11573 (target_ops::beneath, find_target_at): Adjust to refer to the
11574 current inferior's target stack.
11575 (get_dummy_target): New.
11576 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
11577 has a thread running.
11578 (initialize_targets): Rename to ...
11579 (_initialize_target): ... this.
11580 * target.h: Include "gdbsupport/refcounted-object.h".
11581 (struct target_ops): Inherit refcounted_object.
11582 (target_ops::shortname, target_ops::longname): Make const.
11583 (target_ops::async_wait_fd): New method.
11584 (decref_target): Declare.
11585 (struct target_ops_ref_policy): New.
11586 (target_ops_ref): New typedef.
11587 (get_dummy_target): Declare function.
11588 (target_is_pushed): Return bool.
11589 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
11590 (all_matching_threads_iterator::all_matching_threads_iterator):
11591 Handle filter target.
11592 * thread-iter.h (struct all_matching_threads_iterator, struct
11593 all_matching_threads_range, class all_non_exited_threads_range):
11594 Filter by target too. Remove explicit.
11595 * thread.c (threads_executing): Delete.
11596 (inferior_thread): Pass down current inferior.
11597 (clear_thread_inferior_resources): Pass down thread pointer
11598 instead of ptid_t.
11599 (add_thread_silent, add_thread_with_info, add_thread): Add
11600 process_stratum_target parameter. Use it for thread and inferior
11601 searches.
11602 (is_current_thread): New.
11603 (thread_info::deletable): Use it.
11604 (find_thread_ptid, thread_count, in_thread_list)
11605 (thread_change_ptid, set_resumed, set_running): New
11606 process_stratum_target parameter. Pass it down.
11607 (set_executing): New process_stratum_target parameter. Pass it
11608 down. Adjust reference to 'threads_executing'.
11609 (threads_are_executing): New process_stratum_target parameter.
11610 Adjust reference to 'threads_executing'.
11611 (set_stop_requested, finish_thread_state): New
11612 process_stratum_target parameter. Pass it down.
11613 (switch_to_thread): Also match inferior.
11614 (switch_to_thread): New process_stratum_target parameter. Pass it
11615 down.
11616 (update_threads_executing): Reimplement.
11617 * top.c (quit_force): Pop targets from all inferior.
11618 (gdb_init): Don't call initialize_targets.
11619 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
11620 Declare.
11621 (windows_add_thread, windows_delete_thread): Adjust.
11622 (get_windows_debug_event): Rename to ...
11623 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
11624 * tracefile-tfile.c (tfile_target_open): Pass down target.
11625 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
11626 Forward declare.
11627 (switch_to_thread): Add process_stratum_target parameter.
11628 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
11629 parameter. Use it.
11630 (mi_on_resume): Pass target down.
11631 * nat/fork-inferior.c (startup_inferior): Add
11632 process_stratum_target parameter. Pass it down.
11633 * nat/fork-inferior.h (startup_inferior): Add
11634 process_stratum_target parameter.
11635 * python/py-threadevent.c (py_get_event_thread): Pass target down.
11636
75c6c844
PA
116372020-01-10 Pedro Alves <palves@redhat.com>
11638
11639 * remote.c (remote_target::start_remote): Don't set inferior_ptid
11640 directly. Instead find the first thread in the thread list and
11641 use switch_to_thread.
11642
78f2c40a
PA
116432020-01-10 Pedro Alves <palves@redhat.com>
11644
11645 * remote.c (remote_target::remote_add_inferior): Don't bind a
11646 process to the current inferior if the current inferior is already
11647 bound to a process.
11648
e7af6c70
TBA
116492020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11650 Pedro Alves <palves@redhat.com>
11651
11652 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
11653 If no process is specified, return null_ptid instead of
11654 inferior_ptid.
11655 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
11656 TARGET_WAITKIND_SIGNALLED with no pid.
11657
31ba933e
PA
116582020-01-10 Pedro Alves <palves@redhat.com>
11659
11660 * remote.c (first_remote_resumed_thread): New.
11661 (remote_target::wait_as): Use it as default event_ptid instead of
11662 inferior_ptid.
11663
735fc2ca
PA
116642020-01-10 Pedro Alves <palves@redhat.com>
11665
11666 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
11667
c17e02e1
PA
116682020-01-10 Pedro Alves <palves@redhat.com>
11669
11670 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
11671 not -1.
11672
ab1ddbcf
PA
116732020-01-10 Pedro Alves <palves@redhat.com>
11674
11675 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
11676 ptid to get_last_target_status.
11677 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
11678 ptid to get_last_target_status.
11679 * infcmd.c (continue_command): Don't pass a target_waitstatus to
11680 get_last_target_status.
11681 (info_program_command): Don't pass a target_waitstatus to
11682 get_last_target_status.
11683 * infrun.c (init_wait_for_inferior): Use
11684 nullify_last_target_wait_ptid.
11685 (get_last_target_status): Handle nullptr arguments.
11686 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
11687 (print_stop_event): Don't pass a ptid to get_last_target_status.
11688 (normal_stop): Don't pass a ptid to get_last_target_status.
11689 * infrun.h (get_last_target_status, set_last_target_status): Move
11690 comments here and update.
11691 (nullify_last_target_wait_ptid): Declare.
11692 * linux-fork.c (fork_load_infrun_state): Remove local extern
11693 declaration of nullify_last_target_wait_ptid.
11694 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
11695 to get_last_target_status.
11696
f3f8ece4
PA
116972020-01-10 Pedro Alves <palves@redhat.com>
11698
11699 * gdbthread.h (scoped_restore_current_thread)
11700 <dont_restore, restore, m_dont_restore>: Declare.
11701 * thread.c (thread_alive): Add assertion. Return bool.
11702 (switch_to_thread_if_alive): New.
11703 (prune_threads): Switch inferior/thread.
11704 (print_thread_info_1): Switch thread before calling target methods.
11705 (scoped_restore_current_thread::restore): New, factored out from
11706 ...
11707 (scoped_restore_current_thread::~scoped_restore_current_thread):
11708 ... this.
11709 (scoped_restore_current_thread::scoped_restore_current_thread):
11710 Add assertion.
11711 (thread_apply_all_command, thread_select): Use
11712 switch_to_thread_if_alive.
11713 * infrun.c (proceed, restart_threads, handle_signal_stop)
11714 (switch_back_to_stepped_thread): Switch current thread before
11715 calling target methods.
11716
db2d40f7
PA
117172020-01-10 Pedro Alves <palves@redhat.com>
11718
11719 * inferior.c (switch_to_inferior_no_thread): New function,
11720 factored out from ...
11721 (inferior_command): ... here.
11722 * inferior.h (switch_to_inferior_no_thread): Declare.
11723 * mi/mi-main.c (run_one_inferior): Use
11724 switch_to_inferior_no_thread.
11725
bd420a2d
PA
117262020-01-10 Pedro Alves <palves@redhat.com>
11727
11728 * infcmd.c (kill_command): Remove dead code.
11729
ddf5db90
PA
117302020-01-10 Pedro Alves <palves@redhat.com>
11731
11732 * remote.c (remote_target::mourn_inferior): No longer check
11733 whether the target is running.
11734
5018ce90
PA
117352020-01-10 Pedro Alves <palves@redhat.com>
11736
11737 * corelow.c (core_target::has_execution): Change parameter type to
11738 inferior pointer.
11739 * inferior.c (number_of_live_inferiors): Use
11740 inferior::has_execution instead of target_has_execution_1.
11741 * inferior.h (inferior::has_execution): New.
11742 * linux-thread-db.c (thread_db_target::update_thread_list): Use
11743 inferior::has_execution instead of target_has_execution_1.
11744 * process-stratum-target.c
11745 (process_stratum_target::has_execution): Change parameter type to
11746 inferior pointer. Check the inferior's PID instead of
11747 inferior_ptid.
11748 * process-stratum-target.h
11749 (process_stratum_target::has_execution): Change parameter type to
11750 inferior pointer.
11751 * record-full.c (record_full_core_target::has_execution): Change
11752 parameter type to inferior pointer.
11753 * target.c (target_has_execution_1): Change parameter type to
11754 inferior pointer.
11755 (target_has_execution_current): Adjust.
11756 * target.h (target_ops::has_execution): Change parameter type to
11757 inferior pointer.
11758 (target_has_execution_1): Change parameter type to inferior
11759 pointer. Change return type to bool.
11760 * tracefile.h (tracefile_target::has_execution): Change parameter
11761 type to inferior pointer.
11762
74375d18
PA
117632020-01-10 Pedro Alves <palves@redhat.com>
11764
11765 * exceptions.c (print_flush): Remove current_top_target() check.
11766
acdf84a6
PA
117672020-01-10 Pedro Alves <palves@redhat.com>
11768
11769 * remote.c (show_remote_exec_file): Show the current inferior's
11770 exec-file instead of the command variable's value.
11771
ec506636
PA
117722020-01-10 Pedro Alves <palves@redhat.com>
11773
11774 * record-full.c (record_full_resume_ptid): New global.
11775 (record_full_target::resume): Set it.
11776 (record_full_wait_1): Use record_full_resume_ptid instead of
11777 inferior_ptid.
11778
873657b9
PA
117792020-01-10 Pedro Alves <palves@redhat.com>
11780
11781 * gdbthread.h (scoped_restore_current_thread)
11782 <dont_restore, restore, m_dont_restore>: Declare.
11783 * thread.c (thread_alive): Add assertion. Return bool.
11784 (switch_to_thread_if_alive): New.
11785 (prune_threads): Switch inferior/thread.
11786 (print_thread_info_1): Switch thread before calling target methods.
11787 (scoped_restore_current_thread::restore): New, factored out from
11788 ...
11789 (scoped_restore_current_thread::~scoped_restore_current_thread):
11790 ... this.
11791 (scoped_restore_current_thread::scoped_restore_current_thread):
11792 Add assertion.
11793 (thread_apply_all_command, thread_select): Use
11794 switch_to_thread_if_alive.
11795
7f0ae84c
GB
117962020-01-10 George Barrett <bob@bob131.so>
11797
11798 * stap-probe.c (stap_modify_semaphore): Don't check for null
11799 semaphores.
11800 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
11801 for null semaphores.
11802
f5a7c406
AB
118032020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11804
11805 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
11806 all source windows, and maintain horizontal scroll status while
11807 doing so.
11808
9ae6bf64
TT
118092020-01-09 Tom Tromey <tom@tromey.com>
11810
11811 PR tui/18932:
11812 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
11813 update_source_window, not print_source_lines.
11814
b2efe70c
AB
118152020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
11816
11817 * tui/tui.c (tui_enable): Register tui hooks after calling
11818 tui_display_main.
11819
5f23a082
CB
118202020-01-09 Christian Biesinger <cbiesinger@google.com>
11821
11822 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
11823
3061113b
SM
118242020-01-08 Simon Marchi <simon.marchi@efficios.com>
11825
11826 * thread.c (print_thread_info_1): Fix indentation.
11827
57d75002
CB
118282020-01-09 Christian Biesinger <cbiesinger@google.com>
11829
11830 * symtab.c (general_symbol_info::compute_and_set_names): Move the
11831 unique_xmalloc_ptr outside the if to always free the demangled name.
11832
6a053cb1
TT
118332020-01-08 Tom Tromey <tromey@adacore.com>
11834
11835 * xcoffread.c (enter_line_range, read_xcoff_symtab)
11836 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
11837 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
11838 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
11839 Remove.
11840 (section_offsets): New typedef.
11841 * symtab.c (fixup_section, get_msymbol_address): Update.
11842 * symmisc.c (dump_msymbols): Update.
11843 * symfile.h (relative_addr_info_to_section_offsets)
11844 (symfile_map_offsets_to_segments): Update.
11845 * symfile.c (build_section_addr_info_from_objfile)
11846 (init_objfile_sect_indices): Update.
11847 (struct place_section_arg): Change type of "offsets".
11848 (place_section): Update.
11849 (relative_addr_info_to_section_offsets): Change type of
11850 "section_offsets". Remove "num_sections" parameter.
11851 (default_symfile_offsets, syms_from_objfile_1)
11852 (set_objfile_default_section_offset): Update.
11853 (reread_symbols): No need to preserve section offsets by hand.
11854 (symfile_map_offsets_to_segments): Change type of "offsets".
11855 * stap-probe.c (relocate_address): Update.
11856 * stabsread.h (process_one_symbol): Update.
11857 * solib-target.c (struct lm_info_target) <offsets>: Change type.
11858 (solib_target_relocate_section_addresses): Update.
11859 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
11860 Update.
11861 * solib-frv.c (frv_relocate_main_executable): Update.
11862 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
11863 * solib-aix.c (solib_aix_get_section_offsets): Change return
11864 type.
11865 (solib_aix_solib_create_inferior_hook): Update.
11866 * remote.c (remote_target::get_offsets): Update.
11867 * psymtab.c (find_pc_sect_psymtab): Update.
11868 * psympriv.h (struct partial_symbol) <address, text_low,
11869 text_high>: Update.
11870 * objfiles.h (obj_section_offset): Update.
11871 (struct objfile) <section_offsets>: Change type.
11872 <num_sections>: Remove.
11873 (objfile_relocate): Update.
11874 * objfiles.c (entry_point_address_query): Update
11875 (relocate_one_symbol): Change type of "section_offsets".
11876 (objfile_relocate1, objfile_relocate1): Change type of
11877 "new_offsets".
11878 (objfile_rebase1): Update.
11879 * mipsread.c (mipscoff_symfile_read): Update.
11880 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
11881 parameter.
11882 * mdebugread.c (parse_symbol): Change type of "section_offsets".
11883 (parse_external, psymtab_to_symtab_1): Update.
11884 * machoread.c (macho_symfile_offsets): Update.
11885 * ia64-tdep.c (ia64_find_unwind_table): Update.
11886 * hppa-tdep.c (read_unwind_info): Update.
11887 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
11888 * dwarf2read.c (create_addrmap_from_index)
11889 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11890 (process_psymtab_comp_unit_reader, add_partial_symbol)
11891 (add_partial_subprogram, process_full_comp_unit)
11892 (read_file_scope, read_func_scope, read_lexical_block_scope)
11893 (read_call_site_scope, dwarf2_rnglists_process)
11894 (dwarf2_ranges_process, dwarf2_ranges_read)
11895 (dwarf_decode_lines_1, var_decode_location, new_symbol)
11896 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
11897 Update.
11898 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
11899 Update.
11900 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
11901 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
11902 (process_one_symbol): Change type of "section_offsets".
11903 * ctfread.c (get_objfile_text_range): Update.
11904 * coffread.c (coff_symtab_read, enter_linenos)
11905 (process_coff_symbol): Update.
11906 * coff-pe-read.c (add_pe_forwarded_sym): Update.
11907 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
11908
456e800a
TT
119092020-01-08 Tom Tromey <tromey@adacore.com>
11910
11911 * dwarf2read.c (parse_macro_definition): Use std::string.
11912 (parse_macro_definition): Likewise.
11913
6dfa2fc2
TT
119142020-01-08 Tom Tromey <tromey@adacore.com>
11915
11916 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
11917 (ATTR_ALLOC_CHUNK): Remove.
11918
421d1616
TT
119192020-01-08 Tom Tromey <tromey@adacore.com>
11920
11921 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
11922
43816ebc
TT
119232020-01-08 Tom Tromey <tromey@adacore.com>
11924
11925 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
11926 (dwarf2_compute_name, open_dwo_file): Likewise.
11927 (process_enumeration_scope): Use std::vector.
11928 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
11929 (partial_die_info::fixup, dwarf2_start_subfile)
11930 (guess_full_die_structure_name, dwarf2_name): Likewise.
11931 (determine_prefix): Update.
11932 (guess_full_die_structure_name): Make return type const.
11933 (partial_die_full_name): Return unique_xmalloc_ptr.
11934 (DW_FIELD_ALLOC_CHUNK): Remove.
11935
4212d509
TT
119362020-01-07 Tom Tromey <tromey@adacore.com>
11937
11938 PR build/24937:
11939 * stap-probe.c (class stap_static_probe_ops): Add constructor.
11940
06a6207a
JT
119412020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11942
11943 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
11944
153d79c4
AB
119452020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
11946
11947 * stack.c (print_frame_info): Move disassemble_next_line code
11948 inside source_print block.
11949
66182876
EZ
119502020-01-06 Eli Zaretskii <eliz@gnu.org>
11951
11952 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
11953 gdb/signals.h, as we are now using native signal symbols.
11954
cbfa8581
SV
119552020-01-06 Shahab Vahedi <shahab@synopsys.com>
11956
11957 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
11958 overflow by an early check of content vs threshold.
aac66a4c 11959 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
11960 Likewise.
11961
3f602821
EZ
119622020-01-06 Eli Zaretskii <eliz@gnu.org>
11963
11964 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
11965
a08c904d
JT
119662020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
11967
11968 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
11969 export table if no section contains it's RVA.
11970
89a65580
EZ
119712020-01-06 Eli Zaretskii <eliz@gnu.org>
11972
11973 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
11974
8b7fcda2
HD
119752020-01-06 Hannes Domani <ssbssa@yahoo.de>
11976
11977 * source.c (print_source_lines_base): Set last_line_listed.
11978
a61b4f69
SV
119792020-01-06 Shahab Vahedi <shahab@synopsys.com>
11980
11981 * tui/tui-disasm.c: Remove trailing spaces.
11982
559e7e50
EZ
119832020-01-06 Eli Zaretskii <eliz@gnu.org>
11984 Pedro Alves <palves@redhat.com>
11985
11986 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
11987 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
11988 (windows_gdb_signal_to_target): New function, uses the above
11989 enumeration to convert GDB internal signal codes to equivalent
11990 Windows codes.
11991 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
11992 * windows-nat.c: Include "gdb_wait.h".
11993 (get_windows_debug_event): Extract the fatal exception from the
11994 exit status and convert to the equivalent Posix signal number.
11995 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
11996 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
11997 * gdbsupport/gdb_wait.c: New file, implements
11998 windows_status_to_termsig.
11999 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
12000 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
12001
f2302a34
AB
120022020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
12003
12004 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
12005 show_layout.
12006
6a5206eb
LM
120072020-01-05 Luis Machado <luis.machado@linaro.org>
12008
12009 * aarch64-linux-nat.c
12010 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
12011 and bfd_mach_aarch64.
12012
6ec1d75e
PW
120132020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12014
12015 * ui-file.c (stdio_file::can_emit_style_escape)
12016 (tee_file::can_emit_style_escape): Ensure style is used also on
12017 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
12018 to gdb_stdout.
12019 * main.c (set_gdb_data_directory): Use file style to output the
12020 warning that the given pathname is not a directory.
12021 * top.c (show_history_filename, gdb_safe_append_history)
12022 (show_gdb_datadir): Use file style.
12023
44f81a76
HD
120242020-01-03 Hannes Domani <ssbssa@yahoo.de>
12025
12026 * solib-target.c (struct lm_info_target):
12027 Change offsets to be a unique_xmalloc_ptr.
12028 (solib_target_relocate_section_addresses): Update.
12029
25057eb0
HD
120302020-01-03 Hannes Domani <ssbssa@yahoo.de>
12031
12032 * windows-nat.c (windows_clear_solib): Free so_list linked list.
12033
6e2118f5
BE
120342020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12035
12036 * MAINTAINERS (Write After Approval): Add myself.
12037
8133c7dc
LM
120382020-01-02 Luis Machado <luis.machado@linaro.org>
12039
12040 * proc-service.c (get_ps_regcache): Remove reference to obsolete
12041 Cell BE architecture.
12042 * target.h (struct target_ops) <thread_architecture>: Likewise.
12043
48189bec
HD
120442020-01-01 Hannes Domani <ssbssa@yahoo.de>
12045
12046 * Makefile.in: Use INSTALL_PROGRAM_ENV.
12047
ead1063b
HD
120482020-01-01 Hannes Domani <ssbssa@yahoo.de>
12049
12050 * MAINTAINERS (Write After Approval): Add myself.
12051
e5d78223
JB
120522020-01-01 Joel Brobecker <brobecker@adacore.com>
12053
12054 * gdbarch.sh: Update copyright year range of generated files.
12055
b811d2c2
JB
120562020-01-01 Joel Brobecker <brobecker@adacore.com>
12057
12058 Update copyright year range in all GDB files.
12059
5f4def5c
JB
120602020-01-01 Joel Brobecker <brobecker@adacore.com>
12061
12062 * copyright.py: Convert to Python 3.
12063
51fd4002
JB
120642020-01-01 Joel Brobecker <brobecker@adacore.com>
12065
12066 * copyright.py: Adapt after move of gnulib directory from gdb
12067 directory to toplevel directory.
12068
5fb651f2
JB
120692020-01-01 Joel Brobecker <brobecker@adacore.com>
12070
12071 * copyright.py (main): Exit if run from the wrong directory.
12072
5dd8bf88
JB
120732020-01-01 Joel Brobecker <brobecker@adacore.com>
12074
12075 * top.c (print_gdb_version): Change copyright year to 2020.
12076
9f71dacb 120772020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 12078
9f71dacb 12079 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 12080
9f71dacb 12081For older changes see ChangeLog-2019.
c906108c
SS
12082\f
12083Local Variables:
12084mode: change-log
12085left-margin: 8
12086fill-column: 74
12087version-control: never
57da7796 12088coding: utf-8
c906108c 12089End: