]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Use gdb_bfd_sections in get_stap_base_address
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3cabfd26
TT
12020-09-19 Tom Tromey <tom@tromey.com>
2
3 * stap-probe.c (get_stap_base_address_1): Remove.
4 (get_stap_base_address): Use foreach.
5
1ce51eb5
TT
62020-09-19 Tom Tromey <tom@tromey.com>
7
8 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
9 parameters.
10 (gdb_bfd_close_or_warn): Use foreach.
11
a190fabb
TT
122020-09-19 Tom Tromey <tom@tromey.com>
13
14 * corelow.c (add_to_thread_list): Change parameters.
15 (core_target_open): Use foreach.
16
cafb0d81
TT
172020-09-19 Tom Tromey <tom@tromey.com>
18
19 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
20 existing function.
21
c8d5abea
AB
222020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
23
24 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
25 for arrays.
26
6d816919
AB
272020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
28
29 * eval.c: Remove 'f-lang.h' include.
30 (value_f90_subarray): Moved to f-lang.c.
31 (eval_call): Renamed to...
32 (evaluate_subexp_do_call): ...this, is no longer static, header
33 comment moved into header file.
34 (evaluate_funcall): Update call to eval_call.
35 (skip_undetermined_arglist): Moved to f-lang.c.
36 (fortran_value_subarray): Likewise.
37 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
38 moved to evaluate_subexp_f.
39 (calc_f77_array_dims): Moved to f-lang.c
40 * expprint.c (print_subexp_funcall): New function.
41 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
42 moved to print_subexp_f, OP_FUNCALL uses new function.
43 (dump_subexp_body_funcall): New function.
44 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
45 moved to dump_subexp_f, OP_FUNCALL uses new function.
46 * expression.h (evaluate_subexp_do_call): Declare.
47 * f-lang.c (value_f90_subarray): Moved from eval.c.
48 (skip_undetermined_arglist): Likewise.
49 (calc_f77_array_dims): Likewise.
50 (fortran_value_subarray): Likewise.
51 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
52 (operator_length_f): Likewise.
53 (print_subexp_f): Likewise.
54 (dump_subexp_body_f): Likewise.
55 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
56 declaration of this operation to here.
57 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
58 support moved to operator_length_f.
59 * parser-defs.h (dump_subexp_body_funcall): Declare.
60 (print_subexp_funcall): Declare.
61 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
62 fortran-operator.def.
63
8c37706a
AB
642020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * eval.c (fortran_value_subarray): New function, content is taken
67 from...
68 (evaluate_subexp_standard): ...here, in two places. Now arrays
69 and strings both call the new function.
70 (calc_f77_array_dims): Add header comment, handle strings.
71
14f9473c
VC
722020-09-18 Victor Collod <vcollod@nvidia.com>
73
74 PR gdb/26635
75 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
76 (i386_analyze_prologue): Call i386_skip_endbr.
77
b60cea74
TT
782020-09-18 Tom Tromey <tromey@adacore.com>
79
80 * windows-nat.c (struct windows_nat_target) <wait>: Update.
81 (windows_nat_target::wait): Update.
82 * target/wait.h (enum target_wait_flag): New. Use
83 DEF_ENUM_FLAGS_TYPE.
84 * target/target.h (target_wait): Change type of options.
85 * target.h (target_options_to_string, default_target_wait):
86 Update.
87 (struct target_ops) <wait>: Change type of options.
88 * target.c (target_wait, default_target_wait, do_option): Change
89 type of "options".
90 (target_options_to_string): Likewise.
91 * target-delegates.c: Rebuild.
92 * target-debug.h (target_debug_print_target_wait_flags): Rename
93 from target_debug_print_options.
94 * sol-thread.c (class sol_thread_target) <wait>: Update.
95 (sol_thread_target::wait): Update.
96 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
97 (rs6000_nat_target::wait): Update.
98 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
99 Update.
100 (remote_target::wait_ns, remote_target::wait_as): Change type of
101 "options".
102 (remote_target::wait): Update.
103 * remote-sim.c (struct gdbsim_target) <wait>: Update.
104 (gdbsim_target::wait): Update.
105 * record-full.c (class record_full_base_target) <wait>: Update.
106 (record_full_wait_1): Change type of "options".
107 (record_full_base_target::wait): Update.
108 * record-btrace.c (class record_btrace_target) <wait>: Update.
109 (record_btrace_target::wait): Update.
110 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
111 Update.
112 (ravenscar_thread_target::wait): Update.
113 * procfs.c (class procfs_target) <wait>: Update.
114 (procfs_target::wait): Update.
115 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
116 * obsd-nat.c (obsd_nat_target::wait): Update.
117 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
118 (nto_procfs_target::wait): Update.
119 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
120 * nbsd-nat.c (nbsd_wait): Change type of "options".
121 (nbsd_nat_target::wait): Update.
122 * linux-thread-db.c (class thread_db_target) <wait>: Update.
123 (thread_db_target::wait): Update.
124 * linux-nat.h (class linux_nat_target) <wait>: Update.
125 * linux-nat.c (linux_nat_target::wait): Update.
126 (linux_nat_wait_1): Update.
127 * infrun.c (do_target_wait_1, do_target_wait): Change type of
128 "options".
129 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
130 * inf-ptrace.c (inf_ptrace_target::wait): Update.
131 * go32-nat.c (struct go32_nat_target) <wait>: Update.
132 (go32_nat_target::wait): Update.
133 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
134 * gnu-nat.c (gnu_nat_target::wait): Update.
135 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
136 * fbsd-nat.c (fbsd_nat_target::wait): Update.
137 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
138 * darwin-nat.c (darwin_nat_target::wait): Update.
139 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
140 (bsd_uthread_target::wait): Update.
141 * aix-thread.c (class aix_thread_target) <wait>: Update.
142 (aix_thread_target::wait): Update.
143
0295dde6
AB
1442020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
145
146 * compile/compile-object-run.c (create_copied_type_recursive): New
147 function.
148 (compile_object_run): Use new function.
149
d3483b43
JT
1502020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
151
152 * NEWS: Mention x86_64 Cygwin core file support.
153
e7d612ad
JT
1542020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
155
156 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
157 (core_process_module_section): Handle NOTE_INFO_MODULE64.
158
aff9d387
JT
1592020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
160
62a5151b
JT
161 * windows-tdep.h: Add prototypes.
162 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
163 (i386_windows_core_pid_to_str): Move and rename ...
164 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
165 (windows_core_pid_to_str): ... and here.
166 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
167
1682020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
169 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
170 (amd64_windows_init_abi_common): ... and register.
171
7d155da3
JT
1722020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
173
174 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
175 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
176
e8ef12b9
PA
1772020-09-18 Pedro Alves <pedro@palves.net>
178
179 PR gdb/26631
180 * thread.c (thread_find_command): Switch inferior before calling
181 target methods.
182
c1e1314d
TT
1832020-09-17 Tom Tromey <tromey@adacore.com>
184
185 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
186 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
187 (tdesc_arch_data_up): New typedef.
188 (tdesc_use_registers, tdesc_data_alloc): Update.
189 (tdesc_data_cleanup): Don't declare.
190 * target-descriptions.c (tdesc_data_alloc): Return a
191 tdesc_arch_data_up.
192 (tdesc_arch_data_deleter::operator()): Rename from
193 tdesc_data_cleanup. Change argument type.
194 (tdesc_use_registers): Change early_data to an rvalue reference.
195 (tdesc_use_registers): Don't use delete.
196 * sparc-tdep.c (sparc32_gdbarch_init): Update.
197 * s390-tdep.c (s390_gdbarch_init): Update.
198 * rx-tdep.c (rx_gdbarch_init): Update.
199 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
200 * riscv-tdep.c (riscv_gdbarch_init): Update.
201 * or1k-tdep.c (or1k_gdbarch_init): Update.
202 * nios2-tdep.c (nios2_gdbarch_init): Update.
203 * nds32-tdep.c (nds32_gdbarch_init): Update.
204 * mips-tdep.c (mips_gdbarch_init): Update.
205 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
206 * m68k-tdep.c (m68k_gdbarch_init): Update.
207 * i386-tdep.c (i386_gdbarch_init): Update.
208 * arm-tdep.c (arm_gdbarch_init): Update.
209 * arc-tdep.c (arc_tdesc_init): Update.
210 (arc_gdbarch_init): Update.
211 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
212
0363df3d
HD
2132020-09-17 Hannes Domani <ssbssa@yahoo.de>
214
215 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
216 for WOW64 processes.
217
280a9412
TT
2182020-09-17 Tom Tromey <tom@tromey.com>
219
220 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
221
6108fd18
TT
2222020-09-17 Tom Tromey <tom@tromey.com>
223
224 * value.c (preserve_values): Update.
225 * python/py-type.c (save_objfile_types): Update.
226 * guile/scm-type.c (save_objfile_types): Update.
227 * gdbtypes.h (create_copied_types_hash): Return htab_up.
228 * gdbtypes.c (create_copied_types_hash): Return htab_up.
229 * compile/compile-object-run.c (compile_object_run): Update.
230
fa9b1164
TT
2312020-09-17 Tom Tromey <tom@tromey.com>
232
233 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
234 Remove.
235 <m_table>: Now htab_up.
236 * typeprint.c (typedef_hash_table::recursively_update)
237 (typedef_hash_table::add_template_parameters)
238 (typedef_hash_table::typedef_hash_table): Update.
239 (typedef_hash_table::~typedef_hash_table): Remove.
240 (typedef_hash_table::typedef_hash_table)
241 (typedef_hash_table::find_global_typedef)
242 (typedef_hash_table::find_typedef): Update.
243
eb53f105
TT
2442020-09-17 Tom Tromey <tom@tromey.com>
245
246 * target-descriptions.c (tdesc_use_registers): Use htab_up.
247
7a8a5d47
TT
2482020-09-17 Tom Tromey <tom@tromey.com>
249
250 * linespec.c (class decode_compound_collector)
251 <~decode_compound_collector>: Remove.
252 <m_unique_syms>: Now htab_up.
253 (decode_compound_collector::operator ()): Update.
254 (class symtab_collector) <~symtab_collector>: Remove.
255 <m_symtab_table>: Now htab_up.
256 (symtab_collector::operator ()): Update.
257
99032cfc
TT
2582020-09-17 Tom Tromey <tom@tromey.com>
259
260 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
261 (filename_seen_cache::clear): Update.
262 (~filename_seen_cache): Remove.
263 (filename_seen_cache::seen): Update.
264 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
265 htab_up.
266 <~filename_seen_cache>: Remove.
267 <traverse>: Update.
268
32580f6d
TT
2692020-09-17 Tom Tromey <tom@tromey.com>
270
271 * completer.c (completion_tracker::discard_completions)
272 (completion_tracker::~completion_tracker)
273 (completion_tracker::maybe_add_completion)
274 (completion_tracker::remove_completion)
275 (completion_tracker::recompute_lowest_common_denominator)
276 (completion_tracker::build_completion_result): Update.
277 * completer.h (class completion_tracker) <have_completions>:
278 Update.
279 <m_entries_hash>: Now htab_up.
280
c1fb9836
TT
2812020-09-17 Tom Tromey <tom@tromey.com>
282
283 * breakpoint.c (ambiguous_names_p): Use htab_up.
284
88f07206
TT
2852020-09-17 Tom Tromey <tom@tromey.com>
286
287 * auto-load.c (struct auto_load_pspace_info)
288 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
289 <loaded_script_files, loaded_script_texts>: Change type to
290 htab_up.
291 (~auto_load_pspace_info) Remove.
292 (init_loaded_scripts_info, maybe_add_script_file)
293 (maybe_add_script_text, auto_load_info_scripts): Update.
294
9519b2ee
TT
2952020-09-17 Tom Tromey <tromey@adacore.com>
296
297 * c-exp.y (name_obstack): Now static.
298
d2cd4113
CC
2992020-09-17 Chungyi Chi <demonic@csie.io>
300
301 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
302
b650a282
SM
3032020-09-16 Simon Marchi <simon.marchi@efficios.com>
304
305 * breakpoint.h (init_catchpoint): Change int parameter to bool.
306 (add_solib_catchpoint): Likewise.
307 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
308 to bool.
309 (add_solib_catchpoint): Change int parameter/variable to bool.
310 (catch_load_or_unload): Likewise.
311 (init_catchpoint): Likewise.
312 (create_fork_vfork_event_catchpoint): Likewise.
313 (catch_fork_command_1): Likewise.
314 (catch_exec_command_1): Likewise.
315
4d0bcfcf
SM
3162020-09-16 Simon Marchi <simon.marchi@efficios.com>
317
318 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
319 Change instance_flags to m_instance_flags.
320
fe830662
TT
3212020-09-16 Tom Tromey <tromey@adacore.com>
322
323 PR gdb/26598:
324 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
325
fe5ddfc3
JB
3262020-09-16 John Baldwin <jhb@FreeBSD.org>
327
328 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
329 PL_FLAG_EXEC.
330 (fbsd_nat_target::insert_exec_catchpoint)
331 (fbsd_nat_target::remove_exec_catchpoint): Always define.
332 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
333 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
334
e911c666
JB
3352020-09-16 John Baldwin <jhb@FreeBSD.org>
336
337 * configure.ac: Remove check for kinfo_getvmmap().
338 * configure, config.in: Regenerate.
339 * fbsd-nat.c (fbsd_read_mapping): Remove
340 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
341 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
342 kinfo_get_vmmap() are always present.
343
1f17d372
JB
3442020-09-16 John Baldwin <jhb@FreeBSD.org>
345
346 * fbsd-nat.c: Always include support for
347 TARGET_OBJECT_SIGNAL_INFO.
348
bcb1da7f
JB
3492020-09-16 John Baldwin <jhb@FreeBSD.org>
350
351 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
352 sysctl and remove procfs fallback.
353
5515f729
JB
3542020-09-16 John Baldwin <jhb@FreeBSD.org>
355
356 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
357 * fbsd-nat.h: Likewise.
358
da1df1db
TBA
3592020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
360
361 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
362 argument.
363
0e25e767
AB
3642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
365
366 * ada-lang.c (ada_language_data): Delete.
367 (ada_language): Remove references to ada_language_data.
368 * c-lang.c (c_language_data): Delete.
369 (c_language): Remove references to c_language_data.
370 (cplus_language_data): Delete.
371 (cplus_language): Remove references to cplus_language_data.
372 (asm_language_data): Delete.
373 (asm_language): Remove references to asm_language_data.
374 (minimal_language_data): Delete.
375 (minimal_language): Remove references to minimal_language_data.
376 * d-lang.c (d_language_data): Delete.
377 (d_language): Remove references to d_language_data.
378 * f-lang.c (f_language_data): Delete.
379 (f_language): Remove references to f_language_data.
380 * go-lang.c (go_language_data): Delete.
381 (go_language): Remove references to go_language_data.
382 * language.c (unknown_language_data): Delete.
383 (unknown_language): Remove references to unknown_language_data.
384 (auto_language_data): Delete.
385 (auto_language): Remove references to auto_language_data.
386 * language.h (language_data): Delete struct.
387 (language_defn): No longer inherit from language_data.
388 * m2-lang.c (m2_language_data): Delete.
389 (m2_language): Remove references to m2_language_data.
390 * objc-lang.c (objc_language_data): Delete.
391 (objc_language): Remove references to objc_language_data.
392 * opencl-lang.c (opencl_language_data): Delete.
393 (opencl_language): Remove references to opencl_language_data.
394 * p-lang.c (pascal_language_data): Delete.
395 (pascal_language): Remove references to pascal_language_data.
396 * rust-lang.c (rust_language_data): Delete.
397 (rust_language): Remove references to rust_language_data.
398
b7c6e27d
AB
3992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
400
401 * ada-lang.c (ada_language_data): Remove la_op_print_tab
402 initializer.
403 (ada_language::opcode_print_table): New member function.
404 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
405 (c_language::opcode_print_table): New member function.
406 (cplus_language_data): Remove la_op_print_tab initializer.
407 (cplus_language::opcode_print_table): New member function.
408 (asm_language_data): Remove la_op_print_tab initializer.
409 (asm_language::opcode_print_table): New member function.
410 (minimal_language_data): Remove la_op_print_tab initializer.
411 (minimal_language::opcode_print_table): New member function.
412 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
413 (d_language::opcode_print_table): New member function.
414 * expprint.c (print_subexp_standard): Update call to
415 opcode_print_table.
416 (op_string): Likewise.
417 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
418 (f_language::opcode_print_table): New member function.
419 * go-lang.c (go_language_data): Remove la_op_print_tab
420 initializer.
421 (go_language::opcode_print_table): New member function.
422 * language.c (unknown_language_data): Remove la_op_print_tab
423 initializer.
424 (unknown_language::opcode_print_table): New member function.
425 (auto_language_data): Remove la_op_print_tab initializer.
426 (auto_language::opcode_print_table): New member function.
427 * language.h (language_data): Remove la_op_print_tab field.
428 (language_defn::opcode_print_table): Declare new member function.
429 * m2-lang.c (m2_language_data): Remove la_op_print_tab
430 initializer.
431 (m2_language::opcode_print_table): New member function.
432 * objc-lang.c (objc_language_data): Remove la_op_print_tab
433 initializer.
434 (objc_language::opcode_print_table): New member function.
435 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
436 initializer.
437 (opencl_language::opcode_print_table): New member function.
438 * p-lang.c (pascal_language_data): Remove la_op_print_tab
439 initializer.
440 (pascal_language::opcode_print_table): New member function.
441 * rust-lang.c (rust_language_data): Remove la_op_print_tab
442 initializer.
443 (rust_language::opcode_print_table): New member function.
444
5aba6ebe
AB
4452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
446
447 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
448 (ada_language::expression_ops): New member function.
449 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
450 (c_language::expression_ops): New member function.
451 (cplus_language_data): Remove la_exp_desc initializer.
452 (cplus_language::expression_ops): New member function.
453 (asm_language_data): Remove la_exp_desc initializer.
454 (asm_language::expression_ops): New member function.
455 (minimal_language_data): Remove la_exp_desc initializer.
456 (minimal_language::expression_ops): New member function.
457 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
458 (d_language::expression_ops): New member function.
459 * eval.c (evaluate_subexp): Update call to expression_ops.
460 * expprint.c (print_subexp): Likewise.
461 (op_name): Likewise.
462 (dump_subexp_body): Likewise.
463 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
464 (f_language::expression_ops): New member function.
465 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
466 (go_language::expression_ops): New member function.
467 * language.c (language_defn::expression_ops): New function.
468 (unknown_language_data): Remove la_exp_desc initializer.
469 (auto_language_data): Likewise.
470 * language.h (language_data): Remove la_exp_desc field.
471 (language_defn::expression_ops): Declare new member function.
472 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
473 (m2_language::expression_ops): New member function.
474 * objc-lang.c (objc_language_data): Remove la_exp_desc
475 initializer.
476 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
477 initializer.
478 (opencl_language::expression_ops): New member function.
479 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
480 * parse.c (operator_length): Update call to expression_ops.
481 (exp_iterate): Likewise.
482 * rust-lang.c (rust_language_data): Remove la_exp_desc
483 initializer.
484 (ruse_language::expression_ops): New member function.
485
b63a3f3f
AB
4862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
487
488 * ada-lang.c (ada_language_data): Remove la_varobj_ops
489 initializer.
490 (ada_language::varobj_ops): New member function.
491 * c-lang.c (c_language_data): Remove la_varobj_ops
492 initializer.
493 (cplus_language_data): Likewise.
494 (cplus_language::varobj_ops): New member function.
495 (asm_language_data): Remove la_varobj_ops initializer.
496 (minimal_language_data): Likewise.
497 * d-lang.c (d_language_data): Likewise.
498 * f-lang.c (f_language_data): Likewise.
499 * go-lang.c (go_language_data): Likewise.
500 * language.c (language_defn::varobj_ops): New function.
501 (unknown_language_data): Remove la_varobj_ops
502 initializer.
503 (auto_language_data): Likewise.
504 * language.h (language_data): Remove la_varobj_ops field.
505 (language_defn::varobj_ops): Declare new member function.
506 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
507 * objc-lang.c (objc_language_data): Likewise.
508 * opencl-lang.c (opencl_language_data): Likewise.
509 * p-lang.c (pascal_language_data): Likewise.
510 * rust-lang.c (rust_language_data): Likewise.
511 * varobj.c (varobj_create): Update call to varobj_ops.
512 * varobj.h (default_varobj_ops): Delete define.
513
1ac14a04
AB
5142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
515
516 * ada-lang.c (ada_language_data): Remove la_macro_expansion
517 initializer.
518 * c-lang.c (c_language_data): Likewise.
519 (c_language::macro_expansion): New member function.
520 (cplus_language_data): Likewise.
521 (cplus_language::macro_expansion): New member function.
522 (asm_language_data): Likewise.
523 (asm_language::macro_expansion): New member function.
524 (minimal_language_data): Likewise.
525 (minimal_language::macro_expansion): New member function.
526 * d-lang.c (d_language_data): Remove la_macro_expansion
527 initializer.
528 * f-lang.c (f_language_data): Likewise.
529 * go-lang.c (go_language_data): Likewise.
530 * language.c (unknown_language_data): Likewise.
531 (auto_language_data): Likewise.
532 * language.h (language_data): Remove la_macro_expansion field.
533 (language_defn::macro_expansion): New member function.
534 * m2-lang.c (m2_language_data): Remove la_macro_expansion
535 initializer.
536 * objc-lang.c (objc_language_data): Likewise.
537 (objc_language::macro_expansion): New member function.
538 * opencl-lang.c (opencl_language_data): Likewise.
539 (opencl_language::macro_expansion): New member function.
540 * p-lang.c (pascal_language_data): Remove la_macro_expansion
541 initializer.
542 * rust-lang.c (rust_language_data): Likewise.
543 * symtab.c (default_collect_symbol_completion_matches_break_on):
544 Update call to macro_expansion.
545
3a3440fb
AB
5462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
547
548 * ada-lang.c (ada_language_data): Remove la_array_ordering
549 initializer.
550 * c-lang.c (c_language_data): Likewise.
551 (cplus_language_data): Likewise.
552 (asm_language_data): Likewise.
553 (minimal_language_data): Likewise.
554 * d-lang.c (d_language_data): Likewise.
555 * dwarf2/read.c (read_array_order): Update for call to
556 array_ordering.
557 * f-lang.c (f_language_data): Remove la_array_ordering
558 initializer.
559 (f_language::array_ordering): New member function.
560 * go-lang.c (go_language_data): Remove la_array_ordering
561 initializer.
562 * language.c (unknown_language_data): Likewise.
563 (auto_language_data): Likewise.
564 * language.h (language_data): Delete la_array_ordering field.
565 (language_defn::array_ordering): New member function.
566 * m2-lang.c (m2_language_data): Remove la_array_ordering
567 initializer.
568 * objc-lang.c (objc_language_data): Likewise.
569 * opencl-lang.c (opencl_language_data): Likewise.
570 * p-lang.c (pascal_language_data): Likewise.
571 * rust-lang.c (rust_language_data): Likewise.
572
0d201fa4
AB
5732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
576 initializer.
577 * c-lang.c (c_language_data): Likewise.
578 (cplus_language_data): Likewise.
579 (asm_language_data): Likewise.
580 (minimal_language_data): Likewise.
581 * d-lang.c (d_language_data): Likewise.
582 * f-lang.c (f_language_data): Likewise.
583 (f_language::case_sensitivity): New member function.
584 * go-lang.c (go_language_data): Remove la_case_sensitivity
585 initializer.
586 * language.c (enum case_mode): Moved here from language.h.
587 (case_mode): Make static.
588 (show_case_command): Update for case_sensitivity being a method.
589 (set_case_command): Likewise.
590 (set_range_case): Likewise.
591 (unknown_language_data): Remove la_case_sensitivity initializer.
592 (auto_language_data): Likewise.
593 * language.h (case_mode): Delete, move enum declaration to
594 language.c.
595 (language_data): Delete la_case_sensitivity field.
596 (language_defn::case_sensitivity): New member function.
597 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
598 initializer.
599 * objc-lang.c (objc_language_data): Likewise.
600 * opencl-lang.c (opencl_language_data): Likewise.
601 * p-lang.c (pascal_language_data): Likewise.
602 * rust-lang.c (rust_language_data): Likewise.
603
efdf6a73
AB
6042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * ada-lang.c (ada_language_data): Remove la_range_check
607 initializer.
608 * c-lang.c (c_language_data): Likewise.
609 (cplus_language_data): Likewise.
610 (asm_language_data): Likewise.
611 (minimal_language_data): Likewise.
612 * d-lang.c (d_language_data): Likewise.
613 * f-lang.c (f_language_data): Likewise.
614 (f_language::range_checking_on_by_default): New member function.
615 * go-lang.c (go_language_data): Remove la_range_check initializer.
616 * language.c (enum range_mode): Moved here from language.h.
617 (range_mode): Made static.
618 (show_range_command): Update to use
619 range_checking_on_by_default.
620 (set_range_command): Likewise.
621 (set_range_case): Likewise.
622 (unknown_language_data): Remove la_range_check initializer.
623 (auto_language_data): Likewise.
624 * language.h (range_mode): Delete. Enum definition moved to
625 language.c.
626 (language_data): Remove la_range_check field.
627 (language_defn::range_checking_on_by_default): New member
628 function.
629 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
630 (m2_language::range_checking_on_by_default): New member function.
631 * objc-lang.c (objc_language_data): Remove la_range_check
632 initializer.
633 * opencl-lang.c (opencl_language_data): Likewise.
634 * p-lang.c (pascal_language_data): Likewise.
635 (pascal_language::range_checking_on_by_default): New member
636 function.
637 * rust-lang.c (rust_language_data): Remove la_range_check
638 initializer.
639 (rust_language::range_checking_on_by_default): New member
640 function.
641
bf92aec5
AB
6422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
643
644 * dwarf2/read.c (dwarf2_physname): Remove special case for
645 language_go.
646 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
647 member function.
648
d3355e4d
AB
6492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
650
651 * ada-lang.c (ada_language_data): Remove
652 la_store_sym_names_in_linkage_form_p initializer.
653 (ada_language::store_sym_names_in_linkage_form_p): New member
654 function.
655 * c-lang.c (c_language_data): Remove
656 la_store_sym_names_in_linkage_form_p initializer.
657 (c_language::store_sym_names_in_linkage_form_p): New member
658 function.
659 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
660 initializer.
661 (asm_language_data): Likewise.
662 (asm_language::store_sym_names_in_linkage_form_p): New member
663 function.
664 (minimal_language_data): Remove
665 la_store_sym_names_in_linkage_form_p initializer.
666 (minimal_language::store_sym_names_in_linkage_form_p): New member
667 function.
668 * d-lang.c (d_language_data): Remove
669 la_store_sym_names_in_linkage_form_p initializer.
670 * dwarf2/read.c (dwarf2_physname): Update call to
671 store_sym_names_in_linkage_form_p.
672 * f-lang.c (f_language_data): Remove
673 la_store_sym_names_in_linkage_form_p initializer.
674 * go-lang.c (go_language_data): Remove
675 la_store_sym_names_in_linkage_form_p initializer.
676 * language.c (unknown_language_data): Remove
677 la_store_sym_names_in_linkage_form_p initializer.
678 (unknown_language::store_sym_names_in_linkage_form_p): New member
679 function.
680 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
681 initializer.
682 (auto_language::store_sym_names_in_linkage_form_p): New member
683 function.
684 * language.h (language_data): Remove
685 la_store_sym_names_in_linkage_form_p member variable.
686 (language_defn::store_sym_names_in_linkage_form_p): New member
687 function.
688 * m2-lang.c (m2_language_data): Remove
689 la_store_sym_names_in_linkage_form_p initializer.
690 * objc-lang.c (objc_language_data): Likewise.
691 * opencl-lang.c (opencl_language_data): Likewise.
692 * p-lang.c (pascal_language_data): Likewise.
693 * rust-lang.c (rust_language_data): Likewise.
694
22c12a6c
AB
6952020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
696
697 * ada-lang.c (ada_language_data): Remove string_lower_bound
698 initializer.
699 * c-lang.c (c_language_data): Likewise.
700 (cplus_language_data): Likewise.
701 (asm_language_data): Likewise.
702 (minimal_language_data): Likewise.
703 * d-lang.c (d_language_data): Likewise.
704 * f-lang.c (f_language_data): Likewise.
705 * go-lang.c (go_language_data): Likewise.
706 * language.c (unknown_language_data): Likewise.
707 (auto_language_data): Likewise.
708 * language.h (language_data): Remove string_lower_bound field.
709 (language_defn::string_lower_bound): New member function.
710 * m2-lang.c (m2_language_data): Remove string_lower_bound
711 initializer.
712 (m2_language::string_lower_bound): New member function.
713 * objc-lang.c (objc_language_data): Remove string_lower_bound
714 initializer.
715 * opencl-lang.c (opencl_language_data): Likewise.
716 * p-lang.c (pascal_language_data): Likewise.
717 * rust-lang.c (rust_language_data): Likewise.
718 * valops.c (value_cstring): Update call to string_lower_bound.
719 (value_string): Likewise.
720 * value.c (allocate_repeated_value): Likewise.
721
1c236ddd
AB
7222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
723
724 * valops.c (value_repeat): Fix incorrect argument name in comment.
725
67bd3fd5
AB
7262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
727
728 * ada-lang.c (ada_language_data): Remove c_style_arrays
729 initializer.
730 (ada_language::c_style_arrays_p): New member fuction.
731 * c-lang.c (c_language_data): Remove c_style_arrays
732 initializer.
733 (cplus_language_data): Likewise.
734 (asm_language_data): Likewise.
735 (minimal_language_data): Likewise.
736 * d-lang.c (d_language_data): Likewise.
737 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
738 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
739 (f_language::c_style_arrays_p): New member function.
740 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
741 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
742 * language.c (unknown_language_data): Remove c_style_arrays
743 initializer.
744 (auto_language_data): Likewise.
745 * language.h (language_data): Remove c_style_arrays field.
746 (language_defn::c_style_arrays_p): New member function.
747 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
748 (m2_language::c_style_arrays_p): New member function.
749 * objc-lang.c (objc_language_data): Remove c_style_arrays
750 initializer.
751 * opencl-lang.c (opencl_language_data): Likewise.
752 * p-lang.c (pascal_language_data): Likewise.
753 * rust-lang.c (rust_language_data): Likewise.
754 * valarith.c (value_subscript): Update call to c_style_arrays_p,
755 and update local variable to a bool.
756 * valops.c (value_cast): Update call to c_style_arrays_p.
757 (value_array): Likewise.
758 * value.c (coerce_array): Likewise.
759
85967615
AB
7602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
761
762 * ada-lang.c (ada_language_data): Remove la_language initializer.
763 * c-lang.c (c_language_data): Likewise.
764 (cplus_language_data): Likewise.
765 (asm_language_data): Likewise.
766 (minimal_language_data): Likewise.
767 * d-lang.c (d_language_data): Likewise.
768 * f-lang.c (f_language_data): Likewise.
769 * go-lang.c (go_language_data): Likewise.
770 * language.c (unknown_language_data): Likewise.
771 (auto_language_data): Likewise.
772 * language.h (language_data): Remove la_language field.
773 (language_defn::language_defn): Initialise la_language field.
774 (language_defn::la_language): New member variable.
775 * m2-lang.c (m2_language_data): Remove la_language field.
776 * objc-lang.c (objc_language_data): Likewise.
777 * opencl-lang.c (opencl_language_data): Likewise.
778 * p-lang.c (pascal_language_data): Likewise.
779 * rust-lang.c (rust_language_data): Likewise.
780
e171d6f1
AB
7812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * ada-lang.c (ada_extensions): Delete, moved into
784 ada_language::filename_extensions.
785 (ada_language_data): Remove la_filename_extensions initializer.
786 (ada_language::filename_extensions): New member function.
787 * c-lang.c (c_extensions): Delete, moved into
788 c_language::filename_extensions.
789 (c_language_data): Remove la_filename_extensions initializer.
790 (c_language::filename_extensions): New member function.
791 (cplus_extensions): Delete, moved into
792 cplus_language::filename_extensions.
793 (cplus_language_data): Remove la_filename_extensions initializer.
794 (cplus_language::filename_extensions): New member function.
795 (asm_extensions): Delete, moved into
796 asm_language::filename_extensions.
797 (asm_language_data): Remove la_filename_extensions initializer.
798 (asm_language::filename_extensions): New member function.
799 (minimal_language_data): Remove la_filename_extensions
800 initializer.
801 * d-lang.c (d_extensions): Delete, moved into
802 d_language::filename_extensions.
803 (d_language_data): Remove la_filename_extensions initializer.
804 (d_language::filename_extensions): New member function.
805 * f-lang.c (f_extensions): Delete, moved into
806 f_language::filename_extensions.
807 (f_language_data): Remove la_filename_extensions initializer.
808 (f_language::filename_extensions): New member function.
809 * go-lang.c (go_language_data): Remove la_filename_extensions
810 initializer.
811 * language.c (add_set_language_command): Update now that
812 filename_extensions returns a vector.
813 (unknown_language_data): Remove la_filename_extensions
814 initializer.
815 (auto_language_data): Likewise.
816 * language.h (language_data): Remove la_filename_extensions field.
817 (language_defn::filename_extensions): New member function.
818 * m2-lang.c (m2_language_data): Remove la_filename_extensions
819 initializer.
820 * objc-lang.c (objc_extensions): Delete, moved into
821 objc_language::filename_extensions.
822 (objc_language_data): Remove la_filename_extensions initializer.
823 (objc_language::filename_extensions): New member function.
824 * opencl-lang.c (opencl_language_data): Remove
825 la_filename_extensions initializer.
826 * p-lang.c (pascal_extensions): Delete, moved into
827 pascal_language::filename_extensions.
828 (pascal_language_data): Remove la_filename_extensions initializer.
829 (pascal_language::filename_extensions): New member function.
830 * rust-lang.c (rust_extensions): Delete, moved into
831 rust_language::filename_extensions.
832 (rust_language_data): Remove la_filename_extensions initializer.
833 (rust_language::filename_extensions): New member function.
834 * symfile.c (add_filename_language): Add new assert.
835
6f7664a9
AB
8362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
837
838 * ada-lang.c (ada_language_data): Remove la_name and
839 la_natural_name initializers.
840 (ada_language::name): New member function.
841 (ada_language::natural_name): New member function.
842 * c-lang.c (c_language_data): Remove la_name and
843 la_natural_name initializers.
844 (c_language::name): New member function.
845 (c_language::natural_name): New member function.
846 (cplus_language_data): Remove la_name and
847 la_natural_name initializers.
848 (cplus_language::name): New member function.
849 (cplus_language::natural_name): New member function.
850 (asm_language_data): Remove la_name and
851 la_natural_name initializers.
852 (asm_language::name): New member function.
853 (asm_language::natural_name): New member function.
854 (minimal_language_data): Remove la_name and
855 la_natural_name initializers.
856 (minimal_language::name): New member function.
857 (minimal_language::natural_name): New member function.
858 * compile/compile.c (compile_to_object): Update call to
859 lanugage_defn::name.
860 * d-lang.c (d_language_data): Remove la_name and
861 la_natural_name initializers.
862 (d_language::name): New member function.
863 (d_language::natural_name): New member function.
864 * expprint.c (print_subexp_standard): Update call to
865 language_defn::name.
866 (dump_raw_expression): Likewise
867 (dump_prefix_expression): Likewise.
868 * f-lang.c (f_language_data): Remove la_name and
869 la_natural_name initializers.
870 (f_language::name): New member function.
871 (f_language::natural_name): New member function.
872 * go-lang.c (go_language_data): Remove la_name and
873 la_natural_name initializers.
874 (go_language::name): New member function.
875 (go_language::natural_name): New member function.
876 * language.c (show_language_command): Update call to
877 language_defn::name.
878 (set_language_command): Likewise.
879 (language_enum): Likewise.
880 (language_str): Likewise.
881 (add_set_language_command): Likewise, use
882 language_defn::natural_name in the doc string.
883 (unknown_language_data): Remove la_name and
884 la_natural_name initializers.
885 (unknown_language::name): New member function.
886 (unknown_language::natural_name): New member function.
887 (auto_language_data): Remove la_name and
888 la_natural_name initializers.
889 (auto_language::name): New member function.
890 (auto_language::natural_name): New member function.
891 (language_lookup_primitive_type_as_symbol): Update call to
892 language_defn::name.
893 * language.h (language_data): Remove la_name and la_natural_name
894 member variables.
895 (language_defn::name): New member function.
896 (language_defn::natural_name): New member function.
897 * m2-lang.c (m2_language_data): Remove la_name and
898 la_natural_name initializers.
899 (m2_language::name): New member function.
900 (m2_language::natural_name): New member function.
901 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
902 language_defn::natural_name.
903 * objc-lang.c (objc_language_data): Remove la_name and
904 la_natural_name initializers.
905 (objc_language::name): New member function.
906 (objc_language::natural_name): New member function.
907 * opencl-lang.c (opencl_language_data): Remove la_name and
908 la_natural_name initializers.
909 (opencl_language::name): New member function.
910 (opencl_language::natural_name): New member function.
911 * p-lang.c (pascal_language_data): Remove la_name and
912 la_natural_name initializers.
913 (pascal_language::name): New member function.
914 (pascal_language::natural_name): New member function.
915 * rust-lang.c (rust_language_data): Remove la_name and
916 la_natural_name initializers.
917 (rust_language::name): New member function.
918 (rust_language::natural_name): New member function.
919 * symtab.c (lookup_language_this): Update call to
920 language_defn::name.
921
5bae7c4e
AB
9222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
923
924 * ada-lang.c (ada_language_data): Remove la_name_of_this
925 initializer.
926 * ax-gdb.c (gen_expr): Update call to name_of_this.
927 * c-exp.y (classify_name): Likewise.
928 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
929 (cplus_language_data): Likewise.
930 (cplus_language::name_of_this): New member function.
931 (asm_language_data): Remove la_name_of_this initializer.
932 (minimal_language_data): Likewise.
933 * d-lang.c (d_language_data): Likewise.
934 (d_language::name_of_this): New member function.
935 * expprint.c (print_subexp_standard): Update call to name_of_this.
936 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
937 * go-lang.c (go_language_data): Likewise.
938 * language.c (unknown_language_data): Likewise.
939 (unknown_language::name_of_this): New member function.
940 (auto_language_data): Remove la_name_of_this initializer.
941 (auto_language::name_of_this): New member function.
942 * language.h (language_data): Delete la_name_of_this member
943 variable.
944 (language_defn::name_of_this): New member function.
945 * m2-lang.c (m2_language_data): Remove la_name_of_this
946 initializer.
947 * objc-lang.c (objc_language_data): Likewise.
948 (objc_language::name_of_this): New member function.
949 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
950 initializer.
951 * p-lang.c (pascal_language_data): Likewise.
952 (pascal_language::name_of_this): New member function.
953 * rust-lang.c (rust_language_data): Remove la_name_of_this
954 initializer.
955 * symtab.c (lookup_language_this): Update call to name_of_this.
956 (lookup_symbol_aux): Likewise.
957 * valops.c (value_of_this): Likewise.
958
22e3f3ed
AB
9592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
960
961 * ada-lang.c (ada_language_data): Remove
962 la_struct_too_deep_ellipsis initializer.
963 (ada_language::struct_too_deep_ellipsis): New member function.
964 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
965 initializer.
966 (cplus_language_data): Likewise.
967 (asm_language_data): Likewise.
968 (minimal_language_data): Likewise.
969 * cp-valprint.c (cp_print_value): Update call to
970 struct_too_deep_ellipsis.
971 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
972 initializer.
973 * f-lang.c (f_language_data): Likewise.
974 (f_language::struct_too_deep_ellipsis): New member function.
975 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
976 initializer.
977 * language.c (unknown_language_data): Likewise.
978 (auto_language_data): Likewise.
979 * language.h (language_data): Delete la_struct_too_deep_ellipsis
980 member variable.
981 (language_defn::struct_too_deep_ellipsis): New member function.
982 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
983 initializer.Q
984 * objc-lang.c (objc_language_data): Likewise.
985 * opencl-lang.c (opencl_language_data): Likewise.
986 * p-lang.c (pascal_language_data): Likewise.
987 * rust-lang.c (rust_language_data): Likewise.
988 * valprint.c (val_print_check_max_depth): Update call to
989 struct_too_deep_ellipsis.
990
ed29e1c7
FW
9912020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
992
993 * MAINTAINERS (Write After Approval): Add myself.
994
12d8f940
TT
9952020-09-15 Tom Tromey <tom@tromey.com>
996
997 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
998 Remove.
999
6b5a7bc7
TT
10002020-09-15 Tom Tromey <tom@tromey.com>
1001
1002 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
1003 and TYPE_CODE_METHODPTR cases.
1004 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
1005 (c_value_print_inner): Update.
1006 * valprint.c (generic_value_print_memberptr): New function, from
1007 c_value_print_memberptr.
1008 (generic_value_print): Use it. Call cplus_print_method_ptr.
1009
47f0e2ff
TT
10102020-09-15 Tom Tromey <tromey@adacore.com>
1011
1012 * python/python-internal.h (PyInt_FromLong): Remove define.
1013 * python/py-value.c (convert_value_from_python): Use
1014 gdb_py_object_from_longest.
1015 * python/py-type.c (typy_get_code): Use
1016 gdb_py_object_from_longest.
1017 * python/py-symtab.c (salpy_get_line): Use
1018 gdb_py_object_from_longest.
1019 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
1020 gdb_py_object_from_longest.
1021 * python/py-record.c (recpy_gap_reason_code): Use
1022 gdb_py_object_from_longest.
1023 * python/py-record-btrace.c (recpy_bt_insn_size)
1024 (recpy_bt_func_level, btpy_list_count): Use
1025 gdb_py_object_from_longest.
1026 * python/py-infthread.c (gdbpy_create_ptid_object): Use
1027 gdb_py_object_from_longest. Fix error handling.
1028 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
1029 gdb_py_object_from_longest.
1030 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
1031 gdb_py_object_from_longest.
1032 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
1033 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
1034 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
1035
512116ce
TT
10362020-09-15 Tom Tromey <tromey@adacore.com>
1037
1038 * python/python.c (gdbpy_parameter_value): Use
1039 gdb_py_object_from_ulongest.
1040
4ab1029c
TT
10412020-09-15 Tom Tromey <tromey@adacore.com>
1042
1043 * python/py-infevents.c (create_register_changed_event_object):
1044 Use gdb_py_object_from_longest.
1045 * python/py-exitedevent.c (create_exited_event_object): Use
1046 gdb_py_object_from_longest.
1047
062534d4
TT
10482020-09-15 Tom Tromey <tromey@adacore.com>
1049
1050 * python/python.c (gdbpy_parameter_value): Use
1051 gdb_py_object_from_longest.
1052 * python/py-type.c (convert_field, typy_range): Use
1053 gdb_py_object_from_longest.
1054 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
1055 gdb_py_object_from_longest.
1056 * python/py-lazy-string.c (stpy_get_length): Use
1057 gdb_py_object_from_longest.
1058 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
1059 gdb_py_object_from_longest.
1060 * python/py-infevents.c (create_memory_changed_event_object): Use
1061 gdb_py_object_from_longest.
1062 * python/py-inferior.c (infpy_get_num): Use
1063 gdb_py_object_from_longest.
1064 (infpy_get_pid): Likewise.
1065
d1cab987
TT
10662020-09-15 Tom Tromey <tromey@adacore.com>
1067
1068 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
1069 defines.
1070 * python/py-value.c (valpy_long): Use
1071 gdb_py_object_from_ulongest.
1072 * python/py-symtab.c (salpy_get_pc): Use
1073 gdb_py_object_from_ulongest.
1074 (salpy_get_last): Likewise.
1075 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
1076 gdb_py_object_from_ulongest.
1077 * python/py-lazy-string.c (stpy_get_address): Use
1078 gdb_py_object_from_ulongest.
1079 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
1080 * python/py-arch.c (archpy_disassemble): Use
1081 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
1082 error handling.
1083
4bde49dc
TT
10842020-09-15 Tom Tromey <tromey@adacore.com>
1085
1086 * python/python-internal.h (gdb_py_long_from_longest): Remove
1087 defines.
1088 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
1089 * python/py-type.c (convert_field, typy_get_sizeof): Use
1090 gdb_py_object_from_longest.
1091 * python/py-record-btrace.c (btpy_list_index): Use
1092 gdb_py_object_from_longest.
1093
37431074
TT
10942020-09-15 Tom Tromey <tromey@adacore.com>
1095
1096 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
1097 * python/py-record.c (recpy_element_number): Use
1098 gdb_py_object_from_longest.
1099 (recpy_gap_number): Likewise.
1100
cbe25684
TT
11012020-09-15 Tom Tromey <tromey@adacore.com>
1102
1103 * top.c (ui::ui): Update.
1104 (highest_ui_num): Remove.
1105 * top.h (struct ui) <num>: Remove.
1106
db92ac45
TT
11072020-09-15 Tom Tromey <tromey@adacore.com>
1108
1109 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
1110 * ui-style.c (ansi_regex_text): Now array.
1111 * rust-exp.y (number_regex_text): Now array.
1112 * linespec.c (linespec_quote_characters): Now array.
1113 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
1114 Now arrays.
1115
d2b31b67
SM
11162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1117
1118 * debuginfod-support.c (debuginfod_client_deleter): New.
1119 (debuginfod_client_up): New.
1120 (debuginfod_init): Return debuginfod_client_up.
1121 (debuginfod_source_query): Adjust.
1122 (debuginfod_debuginfo_query): Adjust.
1123
3246bd8e
SM
11242020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1125
1126 * debuginfod-support.c (debuginfod_source_query): Use
1127 make_unique_xstrdup.
1128
10242f36
SM
11292020-09-14 Simon Marchi <simon.marchi@efficios.com>
1130
1131 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
1132 with `type::instance_flags`.
1133
e1044e6a
MM
11342020-09-14 Michael Mullin <masmullin@gmail.com>
1135
1136 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
1137 Remove baton parameter.
1138
04902b09
PA
11392020-09-14 Pedro Alves <pedro@palves.net>
1140
1141 * Makefile.in (SELFTESTS_SRCS): Add
1142 unittests/enum-flags-selftests.c.
1143 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
1144 btrace_function_flags instead of enum btrace_function_flag.
1145 * compile/compile-c-types.c (convert_qualified): Use
1146 enum_flags::raw.
1147 * compile/compile-cplus-symbols.c (convert_one_symbol)
1148 (convert_symbol_bmsym):
1149 * compile/compile-cplus-types.c (compile_cplus_convert_method)
1150 (compile_cplus_convert_struct_or_union_methods)
1151 (compile_cplus_instance::convert_qualified_base):
1152 * go-exp.y (parse_string_or_char): Add cast to int.
1153 * unittests/enum-flags-selftests.c: New file.
1154 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
1155 type to btrace_thread_flags from btrace_thread_flag.
1156 (record_btrace_cancel_resume, record_btrace_step_thread): Change
1157 local's type to btrace_thread_flags from btrace_thread_flag. Add
1158 cast in DEBUG call.
1159
69896a2c
PA
11602020-09-14 Pedro Alves <pedro@palves.net>
1161
1162 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
1163 * gdbtypes.c (address_space_name_to_int): Rename to ...
1164 (address_space_name_to_type_instance_flags): ... this.
1165 (address_space_int_to_name): Rename to ...
1166 (address_space_type_instance_flags_to_name): ... this.
1167 * gdbtypes.h (address_space_name_to_int): Rename to ...
1168 (address_space_name_to_type_instance_flags): ... this.
1169 (address_space_int_to_name): Rename to ...
1170 (address_space_type_instance_flags_to_name): ... this.
1171 * type-stack.c (type_stack::insert): Adjust to rename.
1172 * type-stack.h (type_stack::insert): Likewise.
1173
314ad88d
PA
11742020-09-14 Pedro Alves <pedro@palves.net>
1175 Andrew Burgess <andrew.burgess@embecosm.com>
1176
1177 * avr-tdep.c (avr_address_class_type_flags): Return
1178 type_instance_flags.
1179 (avr_address_class_type_flags_to_name): Take a
1180 type_instance_flags.
1181 (avr_address_class_name_to_type_flags): Return bool and take a
1182 type_instance_flags.
1183 * d-lang.c (build_d_types): Use type::set_instance_flags.
1184 * ft32-tdep.c (ft32_address_class_type_flags): Return
1185 type_instance_flags.
1186 (ft32_address_class_type_flags_to_name): Take a
1187 type_instance_flags.
1188 (ft32_address_class_name_to_type_flags): Return bool and take a
1189 type_instance_flags.
1190 (ft32_gdbarch_init): Use type::set_instance_flags.
1191 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
1192 * gdbarch.h, gdbarch.c: Regenerate.
1193 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
1194 (address_class_name_to_type_flags): Use type_instance_flags and
1195 bool.
1196 * gdbtypes.c (address_space_name_to_int)
1197 (address_space_int_to_name, make_qualified_type): Use
1198 type_instance_flags.
1199 (make_qualified_type): Use type_instance_flags and
1200 type::set_instance_flags.
1201 (make_type_with_address_space, make_cv_type, make_vector_type)
1202 (check_typedef): Use type_instance_flags.
1203 (recursive_dump_type): Cast type_instance_flags to unsigned for
1204 printing.
1205 (copy_type_recursive): Use type::set_instance_flags.
1206 (gdbtypes_post_init): Use type::set_instance_flags.
1207 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
1208 <m_instance_flags>: ... this.
1209 <instance_flags, set_instance_flags>: New methods.
1210 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
1211 (SET_TYPE_INSTANCE_FLAGS): New.
1212 (address_space_name_to_int, address_space_int_to_name)
1213 (make_type_with_address_space): Pass flags using
1214 type_instance_flags instead of int.
1215 * stabsread.c (cleanup_undefined_types_noname): Use
1216 type::set_instance_flags.
1217 * s390-tdep.c (s390_address_class_type_flags): Return
1218 type_instance_flags.
1219 (s390_address_class_type_flags_to_name): Take a
1220 type_instance_flags.
1221 (s390_address_class_name_to_type_flags): Return bool and take a
1222 type_instance_flags.
1223 * type-stack.c (type_stack::follow_types): Use
1224 type_instance_flags.
1225 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
1226
27087b7f
TT
12272020-09-14 Tom Tromey <tromey@adacore.com>
1228
1229 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
1230 * x86-tdep.c (x86_is_thunk_register_name)
1231 (x86_in_indirect_branch_thunk): Update.
1232 * sparc64-tdep.c (sparc64_fpu_register_names)
1233 (sparc64_cp0_register_names, sparc64_register_names)
1234 (sparc64_pseudo_register_names): Now const.
1235 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
1236 cp0_registers_num>: Now const.
1237 * sparc-tdep.c (sparc_core_register_names)
1238 (sparc32_fpu_register_names, sparc32_cp0_register_names)
1239 (sparc32_pseudo_register_names): Now const.
1240 (validate_tdesc_registers): Update.
1241 * rust-lang.c (rust_extensions): Now const.
1242 * p-lang.c (p_extensions): Now const.
1243 * objc-lang.c (objc_extensions): Now const.
1244 * nto-tdep.c (nto_thread_state_str): Now const.
1245 * moxie-tdep.c (moxie_register_names): Now const.
1246 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
1247 Now const.
1248 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
1249 (mips_linux_reg_names): Now const.
1250 (mips_gdbarch_init): Update.
1251 * microblaze-tdep.c (microblaze_register_names): Now const.
1252 * m68k-tdep.c (m68k_register_names): Now const.
1253 * m32r-tdep.c (m32r_register_names): Now const.
1254 * ia64-tdep.c (ia64_register_names): Now const.
1255 * i386-tdep.h (struct gdbarch_tdep) <register_names,
1256 ymmh_register_names, ymm16h_regnum, mpx_register_names,
1257 k_register_names, zmmh_register_names, xmm_avx512_register_names,
1258 ymm_avx512_register_names, pkeys_register_names>: Now const.
1259 * i386-tdep.c (i386_register_names, i386_zmm_names)
1260 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
1261 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
1262 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
1263 * f-lang.c (f_extensions): Now const.
1264 * d-lang.c (d_extensions): Now const.
1265 * csky-tdep.c (csky_register_names): Now const.
1266 * charset.c (default_charset_names, charset_enum): Now const.
1267 (_initialize_charset): Update.
1268 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
1269 const.
1270 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
1271 (bsd_uthread_solib_loaded): Update.
1272 (bsd_uthread_state): Now const.
1273 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
1274 (amd64_ymm_avx512_names, amd64_ymmh_names)
1275 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
1276 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
1277 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
1278 (amd64_dword_names): Now const.
1279 * agent.c (can_use_agent_enum): Now const.
1280 * ada-tasks.c (task_states, long_task_states): Now const.
1281 * ada-lang.c (known_runtime_file_name_patterns)
1282 (known_auxiliary_function_name_patterns, attribute_names)
1283 (standard_exc, ada_extensions): Now const.
1284
89806626
SM
12852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1286
1287 * bcache.h (struct bcache) <bcache>: Remove constructor.
1288 <m_hash_function, m_compare_function>: Remove.
1289 <~bcache>: Make virtual.
1290 <compare>: Remove static method, introduce virtual method.
1291 <default_hash>: Remove.
1292 <hash>: New virtual method.
1293 * bcache.c (bcache::expand_hash_table): Update.
1294 (bcache::insert): Update.
1295 (bcache::hash): New.
1296 (bcache::compare): Update comment and parameter names.
1297 * gdbtypes.c (types_deeply_equal): Update.
1298 * psymtab.h (struct psymbol_bcache): New struct.
1299 (class psymtab_storage) <psymtab_storage>: Make default.
1300 <psymbol_cache>: Change type to psymbol_bcache.
1301 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
1302 (psymbol_hash): Change to...
1303 (psymbol_bcache::hash): ... this.
1304 (psymbol_compare): Change to...
1305 (psymbol_bcache::compare): ... this.
1306
677c92fe
SM
13072020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1308
1309 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
1310 checking for initial lwp.
1311
3eba3a01
TT
13122020-09-14 Tom Tromey <tromey@adacore.com>
1313
1314 * m68k-tdep.c (m68k_extract_return_value): Use
1315 pointer_result_regnum.
1316 (m68k_store_return_value): Likewise.
1317 (m68k_reg_struct_return_p): Handle vectors and arrays.
1318 (m68k_return_value): Handle arrays.
1319 (m68k_svr4_return_value): Fix single-element aggregate handling.
1320 Handle long double. Adjust for embedded ABI.
1321 (m68k_svr4_init_abi): Set pointer_result_regnum.
1322 (m68k_embedded_init_abi): New function.
1323 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
1324 (m68k_osabi_sniffer): New function.
1325 (_initialize_m68k_tdep): Register osabi sniffer.
1326 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
1327 member.
1328
33f4dd48
SM
13292020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1330
1331 * xml-support.c (xml_fetch_content_from_file): Replace xfree
1332 with gdb::unique_xmalloc_ptr<char>.
1333
8400a90d
SM
13342020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * xml-support.h (xml_fetch_another): Change type to be a
1337 function_view.
1338 (xml_process_xincludes): Remove baton parameter.
1339 (xml_fetch_content_from_file): Change baton parameter to
1340 dirname.
1341 * xml-support.c (struct xinclude_parsing_data)
1342 <xinclude_parsing_data>: Remove baton parameter.
1343 <fetcher_baton>: Remove.
1344 (xinclude_start_include): Adjust.
1345 (xml_process_xincludes): Adjust.
1346 (xml_fetch_content_from_file): Replace baton parameter with
1347 dirname.
1348 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
1349 (xml_init_syscalls_info): Use a lambda.
1350 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
1351 (file_read_description_xml): Use a lambda.
1352 (fetch_available_features_from_target): Change baton parameter
1353 to target_ops.
1354 (target_read_description_xml): Use a lambda.
1355 (target_fetch_description_xml): Use a lambda.
1356 (string_read_description_xml): Update.
1357
04f5bab2
SM
13582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
1359
1360 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
1361 uses with type::endianity_is_not_default.
1362
db558e34
SM
13632020-09-14 Simon Marchi <simon.marchi@efficios.com>
1364
1365 * gdbtypes.h (struct type) <endianity_is_not_default,
1366 set_endianity_is_not_default>: New methods.
1367 (TYPE_ENDIANITY_NOT_DEFAULT): Use
1368 type::endianity_is_not_default, change all write call sites to
1369 use type::set_endianity_is_not_default.
1370
22c4c60c
SM
13712020-09-14 Simon Marchi <simon.marchi@efficios.com>
1372
1373 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
1374 uses with type::is_fixed_instance.
1375
9cdd0d12
SM
13762020-09-14 Simon Marchi <simon.marchi@efficios.com>
1377
1378 * gdbtypes.h (struct type) <is_fixed_instance,
1379 set_is_fixed_instance>: New methods.
1380 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
1381 write call sites to use type::set_is_fixed_instance.
1382
0becda7a
SM
13832020-09-14 Simon Marchi <simon.marchi@efficios.com>
1384
1385 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
1386 uses with type::is_gnu_ifunc.
1387
03cc7249
SM
13882020-09-14 Simon Marchi <simon.marchi@efficios.com>
1389
1390 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
1391 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
1392 use type::set_is_gnu_ifunc.
1393
3f46044c
SM
13942020-09-14 Simon Marchi <simon.marchi@efficios.com>
1395
1396 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
1397 uses with type::stub_is_supported.
1398
9baccff6
SM
13992020-09-14 Simon Marchi <simon.marchi@efficios.com>
1400
1401 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
1402 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
1403 use type::set_stub_is_supported.
1404
bd63c870
SM
14052020-09-14 Simon Marchi <simon.marchi@efficios.com>
1406
1407 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
1408 uses with type::is_vector.
1409
2062087b
SM
14102020-09-14 Simon Marchi <simon.marchi@efficios.com>
1411
1412 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
1413 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
1414 use type::set_is_vector.
1415
a409645d
SM
14162020-09-14 Simon Marchi <simon.marchi@efficios.com>
1417
1418 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
1419 uses with type::has_varargs.
1420
1d6286ed
SM
14212020-09-14 Simon Marchi <simon.marchi@efficios.com>
1422
1423 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
1424 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
1425 use type::set_has_varargs.
1426
7f9f399b
SM
14272020-09-14 Simon Marchi <simon.marchi@efficios.com>
1428
1429 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
1430 uses with type::is_prototyped.
1431
27e69b7a
SM
14322020-09-14 Simon Marchi <simon.marchi@efficios.com>
1433
1434 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
1435 New methods.
1436 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
1437 call sites to use type::set_is_prototyped.
1438
d2183968
SM
14392020-09-14 Simon Marchi <simon.marchi@efficios.com>
1440
1441 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
1442 uses with type::target_is_stub.
1443
8f53807e
SM
14442020-09-14 Simon Marchi <simon.marchi@efficios.com>
1445
1446 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
1447 New methods.
1448 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
1449 sites to use type::set_target_is_stub.
1450
e46d3488
SM
14512020-09-14 Simon Marchi <simon.marchi@efficios.com>
1452
1453 * gdbtypes.h (TYPE_STUB): Remove, replace all
1454 uses with type::is_stub.
1455
b4b73759
SM
14562020-09-14 Simon Marchi <simon.marchi@efficios.com>
1457
1458 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
1459 (TYPE_STUB): Use type::is_stub, change all write call sites to
1460 use type::set_is_stub.
1461
20ce4123
SM
14622020-09-14 Simon Marchi <simon.marchi@efficios.com>
1463
1464 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
1465 type::has_no_signedness.
1466
15152a54
SM
14672020-09-14 Simon Marchi <simon.marchi@efficios.com>
1468
1469 * gdbtypes.h (struct type) <has_no_signedness,
1470 set_has_no_signedness>: New methods.
1471 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
1472 call sites to use type::set_has_no_signedness.
1473
c6d940a9
SM
14742020-09-14 Simon Marchi <simon.marchi@efficios.com>
1475
1476 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
1477 type::is_unsigned.
1478
653223d3
SM
14792020-09-14 Simon Marchi <simon.marchi@efficios.com>
1480
1481 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
1482 methods.
1483 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
1484 sites to use type::set_is_unsigned.
1485
55ea94da
FH
14862020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
1487 Adam Renquinha <arenquinha@cimeq.qc.ca>
1488
1489 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
1490 pointer and stack frame offset when unwinding.
1491
6791b117
PA
14922020-09-13 Pedro Alves <pedro@palves.net>
1493
1494 * NEWS: Document "-break-insert --qualified".
1495 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
1496
77f2120b
PA
14972020-09-13 Pedro Alves <pedro@palves.net>
1498
1499 * linespec.c (classify_mtype, compare_msyms): Delete.
1500 (search_minsyms_for_name): Remove classification logic. Instead
1501 filter out trampoline symbols if we also found an external
1502 function of the same name.
1503
ed6a896c
JB
15042020-09-13 Joel Brobecker <brobecker@adacore.com>
1505
1506 * NEWS: Create a new section for the next release branch.
1507 Rename the section of the current branch, now that it has
1508 been cut.
1509
32aea73e
JB
15102020-09-13 Joel Brobecker <brobecker@adacore.com>
1511
1512 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
1513 * version.in: Bump version to 11.0.50.DATE-git.
1514
8087c3fa
JB
15152020-09-12 Joel Brobecker <brobecker@adacore.com>
1516
1517 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
1518
2a67f09d
FW
15192020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
1520 Felix Willgerodt <Felix.Willgerodt@intel.com>
1521
1522 * gdbarch.sh: Added bfloat16 type.
1523 * gdbarch.c: Regenerated.
1524 * gdbarch.h: Regenerated.
1525 * gdbtypes.c (floatformats_bfloat16): New struct.
1526 (gdbtypes_post_init): Add builtin_bfloat16.
1527 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
1528 (floatformats_bfloat16): New struct.
1529 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
1530 (i386_ymm_type): Add field "v16_bfloat16"
1531 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
1532 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
1533 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
1534 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
1535 * features/i386/64bit-avx512.xml: Add bfloat16 type.
1536 * features/i386/64bit-avx512.c: Regenerated.
1537 * features/i386/64bit-sse.xml: Add bfloat16 type.
1538 * features/i386/64bit-sse.c: Regenerated.
1539
1347d111
FW
15402020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
1541
1542 * i386-tdep.c (i386_zmm_type): Fix field names.
1543 (i386_ymm_type): Fix field names.
1544
7a4e8e7d
TBA
15452020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1546
1547 * breakpoint.c: Fix typo in the help message of the
1548 "set breakpoint condition-evaluation" command.
1549
cf4ac4be
KR
15502020-09-10 Kamil Rytarowski <n54@gmx.com>
1551
1552 * nbsd-nat.c: Include "nat/netbsd-nat.h".
1553 * (nbsd_nat_target::pid_to_exec_file)
1554 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
1555 (nbsd_nat_target::post_startup_inferior)
1556 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
1557 (nbsd_add_threads): Switch local code to common gdb/nat functions.
1558 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
1559 * (nbsd_thread_lister): Remove.
1560
f404573e
KR
15612020-09-10 Kamil Rytarowski <n54@gmx.com>
1562
1563 * fork-inferior.c (startup_inferior): Avoid double free.
1564
1ccb2c17
KR
15652020-09-10 Kamil Rytarowski <n54@gmx.com>
1566
1567 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
1568 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
1569
feedfcc7
KR
15702020-09-10 Kamil Rytarowski <n54@gmx.com>
1571
1572 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
1573 * netbsd-nat.c: Include <sys/ptrace.h>.
1574 * (netbsd_nat::enable_proc_events): Add.
1575
c489f8c6
KR
15762020-09-10 Kamil Rytarowski <n54@gmx.com>
1577
1578 * netbsd-nat.h: Include "gdbsupport/function-view.h".
1579 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1580 (netbsd_nat::for_each_thread): Add.
1581 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
1582 "gdbsupport/common-debug.h".
1583 * (netbsd_nat::netbsd_thread_lister)
1584 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
1585 (netbsd_nat::for_each_thread): Add.
1586
330662f6
KR
15872020-09-10 Kamil Rytarowski <n54@gmx.com>
1588
1589 * netbsd-nat.h: Include <unistd.h>.
1590 * (netbsd_nat::pid_to_exec_file): Add.
1591 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
1592 * (netbsd_nat::pid_to_exec_file) Add.
1593
70b67307
KR
15942020-09-10 Kamil Rytarowski <n54@gmx.com>
1595
1596 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
1597
99cf6da6
KR
15982020-09-10 Kamil Rytarowski <n54@gmx.com>
1599
1600 * netbsd-nat.h: New file.
1601 * netbsd-nat.c: Likewise.
1602
1b788fb6
TT
16032020-09-09 Tom Tromey <tromey@adacore.com>
1604
1605 * ada-lang.c (remove_extra_symbols): Do not increment when
1606 removing an element
1607
03b0a45f
TT
16082020-09-08 Tom Tromey <tromey@adacore.com>
1609
1610 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
1611
3cae4447
TT
16122020-09-08 Tom Tromey <tromey@adacore.com>
1613
1614 PR win32/25302:
1615 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
1616 (gdb_bfd_init_data): New function.
1617 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
1618
7f08fd51
TBA
16192020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1620
1621 * infrun.c (fetch_inferior_event): Use
1622 `switch_to_target_no_thread` to switch the target.
1623
3e6ff933
TT
16242020-09-06 Tom Tromey <tom@tromey.com>
1625
1626 * symfile.h (dwarf2_free_objfile): Don't declare.
1627
e56798df
AKS
16282020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1629
1630 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
1631 to match 16 byte real/complex type generated by Flang compiler.
1632
8f5c6526
TV
16332020-09-03 Tom de Vries <tdevries@suse.de>
1634
1635 PR breakpoint/26546
1636 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
1637 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
1638
c5065df0
SM
16392020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
1640
1641 * maint.c (index_digits): New function.
1642 (struct maint_print_section_data): Remove.
1643 (print_bfd_section_info): Remove print_data parameter, add arg
1644 and index_digits.
1645 (print_objfile_section_info): Likewise.
1646 (print_bfd_section_info_maybe_relocated): Likewise (plus
1647 objfile).
1648 (maintenance_info_sections): Adjust calls.
1649
02c6f3f1
TT
16502020-09-02 Tom Tromey <tromey@adacore.com>
1651
1652 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
1653 for null pointers.
1654 (ada_varobj_adjust_for_child_access): Special-case null pointers.
1655
ef5e5b0b
SM
16562020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
1657
1658 * bcache.h (struct bcache) <insert>: Change type of `added` to
1659 pointer to bool.
1660 * bcache.c (bcache::insert): Likewise.
1661 * gdbtypes.c (check_types_worklist): Adjust.
1662 * psymtab.c (add_psymbol_to_bcache): Adjust.
1663
973695d6
KB
16642020-08-31 Kevin Buettner <kevinb@redhat.com>
1665
1666 * corelow.c (unordered_set): Include.
1667 (class core_target): Add field 'm_core_unavailable_mappings'.
1668 (core_target::build_file_mappings): Print only one warning
1669 per inaccessible file. Add unavailable/broken mappings
1670 to m_core_unavailable_mappings.
1671 (core_target::xfer_partial): Call...
1672 (core_target::xfer_memory_via_mappings): New method.
1673
264fc0e2
SM
16742020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1675
1676 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
1677 type to bool.
1678
2de01bdb
SM
16792020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
1680
1681 * dwarf2/read.c (struct field_info): Fix indentation.
1682
f3bd50f1
SM
16832020-08-31 Simon Marchi <simon.marchi@efficios.com>
1684
1685 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
1686 ordering in comment.
1687 * frame.c (frame_id_eq): Fix indentation.
1688
22b9b4b0
SL
16892020-08-31 Scott Linder <scott@scottlinder.com>
1690 Simon Marchi <simon.marchi@efficios.com>
1691
1692 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
1693 inline frame ids in outer frame.
1694
84154d16
SM
16952020-08-31 Simon Marchi <simon.marchi@efficios.com>
1696
1697 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
1698 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
1699 (outer_frame_id): Use FID_STACK_OUTER instead of
1700 FID_STACK_INVALID.
1701 (frame_id_p): Don't check for outer_frame_id.
1702
8efaf6b3
SM
17032020-08-31 Simon Marchi <simon.marchi@efficios.com>
1704
1705 * frame-unwind.c (frame_unwind_got_optimized): Don't set
1706 regnum/frame in value. Call allocate_value_lazy.
1707 * frame.c (frame_unwind_register_value): Use
1708 val_print_not_saved.
1709
fe1fe7ea
SM
17102020-08-31 Simon Marchi <simon.marchi@efficios.com>
1711
1712 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
1713
f7c7700d
PA
17142020-08-29 Pedro Alves <pedro@palves.net>
1715
1716 * progspace.c (print_program_space): Use all_inferiors. Switch to
1717 the inferior before calling target_pid_to_str.
1718
e0814aae
TT
17192020-08-28 Tom Tromey <tom@tromey.com>
1720
1721 * xcoffread.c (xcoff_end_psymtab): Update comment.
1722 * dbxread.c (dbx_end_psymtab): Update comment.
1723
626d2320
TV
17242020-08-28 Tom de Vries <tdevries@suse.de>
1725
1726 PR breakpoint/26544
1727 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
1728 event_location.
1729 (create_breakpoint): Same.
1730 (base_breakpoint_decode_location): Same.
1731 (bkpt_create_sals_from_location): Same.
1732 (bkpt_decode_location): Same.
1733 (bkpt_probe_create_sals_from_location): Same.
1734 (bkpt_probe_decode_location): Same.
1735 (tracepoint_create_sals_from_location): Same.
1736 (tracepoint_decode_location): Same.
1737 (tracepoint_probe_decode_location): Same.
1738 (strace_marker_create_sals_from_location): Same.
1739 (strace_marker_decode_location): Same.
1740 (create_sals_from_location_default): Same.
1741 (decode_location_default): Same.
1742 * breakpoint.h (struct breakpoint_ops): Same.
1743 (create_breakpoint): Same.
1744 * linespec.h (decode_line_full): Same.
1745 * linespec.c (decode_line_full): Same. Throw error if
1746 result.size () == 0.
1747
df631783
PA
17482020-08-27 Pedro Alves <pedro@palves.net>
1749
1750 PR gdb/26524
1751 * breakpoint.c (until_break_fsm) <location_breakpoint,
1752 caller_breakpoint>: Delete fields.
1753 <breakpoints>: New field.
1754 <until_break_fsm>: Adjust to save a breakpoint vector instead of
1755 two individual breakpoints.
1756 (until_break_fsm::should_stop): Loop over breakpoints in the
1757 breakpoint vector.
1758 (until_break_fsm::clean_up): Adjust to clear the breakpoints
1759 vector.
1760 (until_break_command): Handle location expanding into multiple
1761 sals.
1762
b2b38aa4
PA
17632020-08-27 Pedro Alves <pedro@palves.net>
1764
1765 PR gdb/26523
1766 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
1767 bp_until breakpoints user-specified locations. Update intro
1768 comment.
1769
b886559f
SM
17702020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
1771
1772 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
1773 gdb_bfd_sections): New.
1774 * maint.c (print_bfd_section_info): Change param type to
1775 maint_print_section_data.
1776 (print_objfile_section_info): Likewise.
1777 (print_bfd_section_info_maybe_relocated): Likewise.
1778 (maintenance_info_sections): Use gdb_bfd_sections.
1779
4c6e63bf
SV
17802020-08-25 Shahab Vahedi <shahab@synopsys.com>
1781
1782 * MAINTAINERS: Add ARC target and maintainer.
1783
8d7f0635
AK
17842020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
1785
1786 * configure.tgt: ARC support for GNU/Linux.
1787 * Makefile.in (ALL_TARGET_OBJS): Likewise.
1788 * arc-linux-tdep.c: New file.
1789 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
1790 * arc-tdep.c (arc_write_pc): Use it.
1791
fdd8731b
SV
17922020-08-25 Shahab Vahedi <shahab@synopsys.com>
1793
1794 * arc-tdep.c (arc_check_for_hardware_loop): New.
1795 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
1796
22459524
SV
17972020-08-25 Shahab Vahedi <shahab@synopsys.com>
1798
1799 * arc-tdep.h: Include "gdbarch.h".
1800
995d3a19
SV
18012020-08-25 Shahab Vahedi <shahab@synopsys.com>
1802
1803 * arch/arc.h
1804 (arc_gdbarch_features): New class to stir the selection of target XML.
1805 (arc_create_target_description): Use FEATURES to choose XML target.
1806 (arc_lookup_target_description): Use arc_create_target_description
1807 to create _new_ target descriptions or return the already created
1808 ones if the FEATURES is the same.
1809 * arch/arc.c: Implementation of prototypes described above.
1810 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
1811 (arc_gdbarch_features_init): Initialize the FEATURES struct.
1812 * arc-tdep.c (*_feature_name): Make feature names consistent.
1813 (arc_register_feature): A new struct to hold information about
1814 registers of a particular target/feature.
1815 (arc_check_tdesc_feature): Check if XML provides registers in
1816 compliance with ARC_REGISTER_FEATURE structs.
1817 (arc_update_acc_reg_names): Add aliases for r58 and r59.
1818 (determine_*_reg_feature_set): Which feature name to look for.
1819 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
1820 (mach_type_to_arc_isa): Convert from a set of binutils machine types
1821 to expected ISA enums to be used in arc_gdbarch_features structs.
1822 * features/Makefile (FEATURE_XMLFILES): Add new files.
1823 * gdb/features/arc/v1-aux.c: New file.
1824 * gdb/features/arc/v1-aux.xml: Likewise.
1825 * gdb/features/arc/v1-core.c: Likewise.
1826 * gdb/features/arc/v1-core.xml: Likewise.
1827 * gdb/features/arc/v2-aux.c: Likewise.
1828 * gdb/features/arc/v2-aux.xml: Likewise.
1829 * gdb/features/arc/v2-core.c: Likewise.
1830 * gdb/features/arc/v2-core.xml: Likewise.
1831 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
1832
3945d2d7
GM
18332020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
1834 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 PR m2/26372
fc5d6901 1837 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
1838 an assert. Remove single element array indexing pattern as the
1839 MULTI_SUBSCRIPT support will handle this case too.
1840
2677f2d3
SM
18412020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
1842
1843 * value.h (valprint_check_validity): Move declaration from
1844 here...
1845 * valprint.h (valprint_check_validity): ... to here.
1846
c426fddb
SM
18472020-08-24 Simon Marchi <simon.marchi@efficios.com>
1848
1849 * debug.h: New file.
1850 * debug.c (debug_prefixed_vprintf): New function.
1851 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
1852 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
1853
1eb8556f
SM
18542020-08-24 Simon Marchi <simon.marchi@efficios.com>
1855
1856 * infrun.h (infrun_debug_printf_1): New function declaration.
1857 (infrun_debug_printf): New macro.
1858 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
1859 throughout.
1860 (infrun_debug_printf): New function.
1861 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
1862 (handle_jit_event): Likewise.
1863
b8fff44e
MW
18642020-08-21 Mark Wielaard <mark@klomp.org>
1865
1866 * ada-lex.l: Extend register warnings diagnostics comment for g++.
1867
d19c3068
SM
18682020-08-22 Simon Marchi <simon.marchi@efficios.com>
1869
1870 * frame.c (enum class frame_id_status): New.
1871 (struct frame_info) <this_id::p>: Change type to frame_id_status.
1872 (fprintf_frame): Update.
1873 (compute_frame_id): Set frame id status to "computing" on entry.
1874 Set it back to "not_computed" on failure and to "computed" on
1875 success.
1876 (get_frame_id): Assert the frame id is not being computed.
1877 (create_sentinel_frame): Use frame_id_status::COMPUTED.
1878 (create_new_frame): Likewise.
1879 (frame_cleanup_after_sniffer): Update assert.
1880
b70e516e
SM
18812020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1882
1883 * regcache.c (pid_ptid_regcache_map): New type.
1884 (target_ptid_regcache_map): Remove.
1885 (target_pid_ptid_regcache_map): New type.
1886 (regcaches): Change type to target_pid_ptid_regcache_map.
1887 (get_thread_arch_aspace_regcache): Update.
1888 (regcache_thread_ptid_changed): Update, handle pid-like ptid
1889 case.
1890 (regcaches_size): Update.
1891 (regcache_count): Update.
1892 (registers_changed_ptid_target_pid_test): New.
1893 (_initialize_regcache): Register new test.
1894
cdd9148a
SM
18952020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1896
1897 * regcache.c (regcache_count): New.
1898 (struct regcache_test_data): New.
1899 (regcache_test_data_up): New.
1900 (populate_regcaches_for_test): New.
1901 (regcaches_test): Remove.
1902 (get_thread_arch_aspace_regcache_test): New.
1903 (registers_changed_ptid_all_test): New.
1904 (registers_changed_ptid_target_test): New.
1905 (registers_changed_ptid_target_ptid_test): New.
1906 (regcache_thread_ptid_changed): Remove regcache_count lambda.
1907 (_initialize_regcache): Register new tests.
1908
dd125343
SM
19092020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
1912 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
1913 gdbarch and aspace parameter. Use current inferior's aspace.
1914 Validate regcache's arch value.
1915 (regcaches_test): Update.
1916
3ee93972
SM
19172020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
1918
1919 * regcache.c (regcaches_test): Call registers_changed.
1920
33bf4c5c
TBA
19212020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1922
1923 * infrun.c (process_event_stop_test): Fix typo "breapoint".
1924
c2fd7fae
AKS
19252020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1926
1927 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1928 to find the end of prologue for flang compiled binaries.
1929 * arm-tdep.c (arm_skip_prologue): Likewise.
1930 * i386-tdep.c (i386_skip_prologue): Likewise.
1931 * producer.c (producer_is_llvm): New function.
1932 (producer_parsing_tests): Added new tests for clang/flang.
1933 * producer.h (producer_is_llvm): New declaration.
1934
9327494e
SM
19352020-08-18 Simon Marchi <simon.marchi@efficios.com>
1936
1937 * linux-nat.c (linux_nat_debug_printf): New function.
1938 (linux_nat_debug_printf_1): New macro. Use throughout the file.
1939
d138725a
AM
19402020-08-18 Aaron Merey <amerey@redhat.com>
1941
1942 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
1943 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
1944 (CLIBS): Add DEBUGINFOD_LIBS.
1945
f9b11e6b
ST
19462020-08-17 Sergei Trofimovich <siarheit@google.com>
1947
1948 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
1949 'gdbarch_num_regs'.
1950
3ae7ab99
TT
19512020-08-17 Tom Tromey <tromey@adacore.com>
1952
1953 * ada-varobj.c (ada_varobj_decode_var): Handle case where
1954 ada_get_decoded_value returns NULL.
1955
b017825f
TT
19562020-08-17 Tom Tromey <tromey@adacore.com>
1957
1958 * python/py-inferior.c (infpy_search_memory): Use
1959 gdb_py_object_from_ulongest.
1960 * python/py-infevents.c (create_inferior_call_event_object)
1961 (create_memory_changed_event_object): Use
1962 gdb_py_object_from_ulongest.
1963 * python/py-linetable.c (ltpy_entry_get_pc): Use
1964 gdb_py_object_from_ulongest.
1965
7635cf79
SM
19662020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1967
1968 * loc.c (class symbol_needs_eval_context): Fix indentation.
1969
f54be24b
SM
19702020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
1971
1972 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
1973 bool.
1974
53d5a2a5
TV
19752020-08-17 Tom de Vries <tdevries@suse.de>
1976
1977 PR gdb/26393
1978 * gdbtypes.c (dump_dynamic_prop): New function.
1979 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
1980
547ce8f0
TV
19812020-08-15 Tom de Vries <tdevries@suse.de>
1982
1983 PR backtrace/26390
1984 * stack.c (print_frame_args): Temporarily set the selected
1985 frame to FRAME while printing the frame's arguments.
1986
6ea815e7
PFC
19872020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1988
1989 PR breakpoints/26385
1990 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
1991 Always clear watchpoint with PTRACE_SET_DEBUGREG.
1992
6e562fa3
PFC
19932020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1994
1995 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
1996 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
1997 and >= to check return value instead of == -1 and != -1.
1998
d369b608
SM
19992020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
2000
2001 * utils.h (class gdb_argv) <as_array_view>: New method.
2002 * utils.c (gdb_argv_as_array_view_test): New.
2003 (_initialize_utils): Register selftest.
2004 * maint.c (maintenance_selftest): Use the new method.
2005
b31488a3
KR
20062020-08-13 Kamil Rytarowski <n54@gmx.com>
2007
2008 * target.h (supports_dumpcore, dumpcore): New
2009 function declarations.
2010 * target.c (supports_dumpcore, dumpcore): New
2011 functions.
2012 * target-delegates.c: Rebuild.
2013 * gcore.c (gcore_command): Use target_supports_dumpcore ()
2014 and target_dumpcore ().
2015
002a3166
AM
20162020-08-13 Aaron Merey <amerey@redhat.com>
2017
2018 * debuginfod-support.c: Replace global variables with user_data.
2019
ece5bc8a
SM
20202020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
2021
2022 * maint.c (maintenance_selftest): Split args and pass array_view
2023 to run_tests.
2024
6d8a0a5e
LM
20252020-08-12 Luis Machado <luis.machado@linaro.org>
2026
2027 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
2028 type's length.
2029 Use %s and pulongest to print the length.
2030
7cf663a9
PA
20312020-08-12 Pedro Alves <palves@redhat.com>
2032
2033 * NEWS: Move "Multi-target debugging support" item to the
2034 "Changes since GDB 9" section.
2035
27c7b875
PA
20362020-08-12 Pedro Alves <palves@redhat.com>
2037
2038 PR gdb/26336
2039 * progspace.c (program_space::remove_objfile): Invalidate the
2040 frame cache.
2041
1796a2a1
TV
20422020-08-11 Tom de Vries <tdevries@suse.de>
2043
2044 * MAINTAINERS: Mark ms1 as deleted.
2045
f8e3fe0d
LM
20462020-08-10 Luis Machado <luis.machado@linaro.org>
2047
2048 PR gdb/26310
2049
2050 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
2051 act accordingly.
2052 (aarch64_analyze_prologue_test): Add more unit tests to exercise
2053 movz/str/stur/stp skipping behavior.
2054
cc308722
LM
20552020-08-10 Luis Machado <luis.machado@linaro.org>
2056
2057 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
2058 struct user_sve_header instead of struct sve_context.
2059
041d9819
SM
20602020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
2061
2062 * read.h (dwarf2_fetch_die_loc_sect_off,
2063 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
2064 `void *` parameter with function_view.
2065 * read.c (dwarf2_fetch_die_loc_sect_off,
2066 dwarf2_fetch_die_loc_cu_off): Likewise.
2067 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
2068 (per_cu_dwarf_call): Adjust.
2069 (get_frame_address_in_block_wrapper): Remove.
2070 (indirect_synthetic_pointer): Adjust.
2071 (get_ax_pc): Remove.
2072 (dwarf2_compile_expr_to_ax): Adjust.
2073
38f8aa06
TV
20742020-08-08 Tom de Vries <tdevries@suse.de>
2075
2076 PR build/26344
2077 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
2078 constructor.
2079 * regcache.c (get_thread_arch_aspace_regcache): Same.
2080
a52b3ae2
TT
20812020-08-07 Tom Tromey <tromey@adacore.com>
2082
2083 * ravenscar-thread.c
2084 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
2085 New method.
2086 (ravenscar_thread_target::wait): Check
2087 runtime_initialized.
2088 (ravenscar_thread_target::prepare_to_store)
2089 (ravenscar_thread_target::stopped_by_sw_breakpoint)
2090 (ravenscar_thread_target::stopped_by_hw_breakpoint)
2091 (ravenscar_thread_target::stopped_by_watchpoint)
2092 (ravenscar_thread_target::stopped_data_address)
2093 (ravenscar_thread_target::core_of_thread): Use
2094 scoped_restore_current_thread and
2095 set_base_thread_from_ravenscar_task.
2096
0e29517d
TT
20972020-08-07 Tom Tromey <tromey@adacore.com>
2098
2099 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
2100
592f9bd7
TT
21012020-08-07 Tom Tromey <tromey@adacore.com>
2102
2103 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
2104 update_inferior_ptid before update_thread_list.
2105 (temporarily_change_regcache_ptid): New class.
2106 (ravenscar_thread_target::fetch_registers)
2107 (ravenscar_thread_target::store_registers)
2108 (ravenscar_thread_target::prepare_to_store): Use base thread when
2109 forwarding operation.
2110
39e2018a
TT
21112020-08-07 Tom Tromey <tromey@adacore.com>
2112
2113 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
2114 "is_pid" case.
2115
2080266b
TT
21162020-08-07 Tom Tromey <tromey@adacore.com>
2117
2118 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
2119 New methods.
2120 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
2121 first.
2122 (ravenscar_thread_target::add_thread): Rename from
2123 ravenscar_add_thread.
2124 (ravenscar_thread_target::update_thread_list): Use a lambda.
2125 (ravenscar_thread_target::xfer_partial): New method.
2126
78c02f21
TT
21272020-08-07 Tom Tromey <tromey@adacore.com>
2128
2129 * ada-lang.h (ada_task_list_iterator_ftype): Now a
2130 gdb::function_view.
2131 (iterate_over_live_ada_tasks): Change type of argument.
2132 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
2133 of argument.
2134
d5d833af
TT
21352020-08-07 Tom Tromey <tromey@adacore.com>
2136
2137 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
2138 Remove.
2139 (ravenscar_thread_target::extra_thread_info): Remove.
2140 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
2141 defer to target beneath for non-Ravenscar threads.
2142
a8ac85bb
TT
21432020-08-07 Tom Tromey <tromey@adacore.com>
2144
2145 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
2146 get_base_thread_from_ravenscar_task>: Now methods.
2147 <m_cpu_map>: New member.
2148 (ravenscar_thread_target::get_thread_base_cpu): Rename from
2149 ravenscar_get_thread_base_cpu. Check m_cpu_map.
2150 (ravenscar_thread_target::task_is_currently_active): Update.
2151 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
2152 Now a method.
2153 (ravenscar_thread_target::add_active_thread): Put initial thread
2154 into the m_cpu_map.
2155
550ab58d
TT
21562020-08-07 Tom Tromey <tromey@adacore.com>
2157
2158 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
2159 event_ptid.
2160
e9546579
TT
21612020-08-07 Tom Tromey <tromey@adacore.com>
2162
2163 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
2164 runtime_initialized.
2165
3d4470e5
TT
21662020-08-07 Tom Tromey <tromey@adacore.com>
2167
2168 * ravenscar-thread.c (ravenscar_thread_target): Don't call
2169 add_active_thread.
2170 (ravenscar_thread_target::add_active_thread): Now public.
2171 (ravenscar_inferior_created): Call add_active_thread after pushing
2172 the target.
2173
888bdb2b
SM
21742020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
2175
2176 * regcache.c (ptid_regcache_map): New type.
2177 (target_ptid_regcache_map): New type.
2178 (regcaches): Change type to target_ptid_regcache_map.
2179 (get_thread_arch_aspace_regcache): Update to regcaches' new
2180 type.
2181 (regcache_thread_ptid_changed): Likewise.
2182 (registers_changed_ptid): Likewise.
2183 (regcaches_size): Likewise.
2184 (regcaches_test): Update.
2185 (regcache_thread_ptid_changed): Update.
2186 * regcache.h (regcache_up): New type.
2187 * gdbsupport/ptid.h (hash_ptid): New struct.
2188
b161a60d
SM
21892020-08-07 Simon Marchi <simon.marchi@efficios.com>
2190
2191 * observable.h (thread_ptid_changed): Add parameter
2192 `process_stratum_target *`.
2193 * infrun.c (infrun_thread_ptid_changed): Add parameter
2194 `process_stratum_target *` and use it.
2195 (selftests): New namespace.
2196 (infrun_thread_ptid_changed): New function.
2197 (_initialize_infrun): Register selftest.
2198 * regcache.c (regcache_thread_ptid_changed): Add parameter
2199 `process_stratum_target *` and use it.
2200 (regcache_thread_ptid_changed): New function.
2201 (_initialize_regcache): Register selftest.
2202 * thread.c (thread_change_ptid): Pass target to
2203 thread_ptid_changed observable.
2204
d2854d8d
CT
22052020-08-06 Caroline Tice <cmtice@google.com>
2206
fe4c3d43
SM
2207 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
2208 (struct dwp_sections): Update field comments. Add loclists and
2209 rnglists fields.
2210 (struct virtual_v2_dwo_sections): Rename struct to
2211 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
2212 size & offset fields for loclists and rnglists.
2213 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
2214 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
2215 skipping dummy type units.
2216 (create_dwp_hash_table): Update the large comment above the function to
2217 discuss Version 5 DWP files as well, with references. Update all the
2218 version checks in the function to check for version 5 as well. Add new
2219 section at the end to create dwp hash table for version 5.
2220 (create_dwp_v2_section): Rename function to
2221 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
2222 Add V5 to error message text.
2223 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
2224 into calls to create_dwp_v2_or_v5_section.
2225 (create_dwo_unit_in_dwp_v5): New function.
2226 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
2227 check for version2; add else clause to handle version 5.
2228 (open_and_init_dwo_file): Add code to check dwarf version & only call
2229 create_debug_types_hash_table (with sections.types) if version is not 5;
2230 else call create_debug_type_hash_table, with sections.info.
2231 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
2232 version 5.
2233 (dwarf2_locate_v5_dwp_sections): New function.
2234 (open_and_init_dwp_file): Add else-if clause for version 5 to call
2235 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 2236
159ed7d9
SM
22372020-08-06 Simon Marchi <simon.marchi@efficios.com>
2238
2239 * regcache.h (class regcache): Remove friend
2240 registers_changed_ptid.
2241 <regcache_thread_ptid_changed>: Remove.
2242 <regcaches>: Remove.
2243 * regcache.c (regcache::regcaches): Rename to...
2244 (regcaches): ... this. Make static.
2245 (get_thread_arch_aspace_regcache): Update.
2246 (regcache::regcache_thread_ptid_changed): Rename to...
2247 (regcache_thread_ptid_changed): ... this. Update.
2248 (class regcache_access): Remove.
2249 (regcaches_test): Update.
2250 (_initialize_regcache): Update.
2251 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
2252 <forward_list>.
2253
174981ae
SM
22542020-08-06 Simon Marchi <simon.marchi@efficios.com>
2255
2256 * regcache.h (class regcache) <current_regcache>: Rename to...
2257 <regcaches>: ... this. Move doc here.
2258 * regcache.c (regcache::current_regcache) Rename to...
2259 (regcache::regcaches): ... this. Move doc to header.
2260 (get_thread_arch_aspace_regcache): Update.
2261 (regcache::regcache_thread_ptid_changed): Update.
2262 (registers_changed_ptid): Update.
2263 (class regcache_access) <current_regcache_size>: Rename to...
2264 <regcaches_size>: ... this.
2265 (current_regcache_test): Rename to...
2266 (regcaches_test): ... this.
2267 (_initialize_regcache): Update.
2268
ed908db6
VC
22692020-08-06 Victor Collod <vcollod@nvidia.com>
2270
2271 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
2272
b5582ab7
KB
22732020-08-05 Kevin Buettner <kevinb@redhat.com>
2274
2275 * corelow.c (core_target::build_file_mappings): Don't output
2276 null pathname in warning.
2277
ea946b86
SM
22782020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
2279
2280 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
2281 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
2282 gdb.dwarf2/dw2-single-line-discriminators.exp,
2283 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
2284
57d02173
TT
22852020-08-05 Tom Tromey <tromey@adacore.com>
2286
2287 PR rust/26197:
2288 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
2289 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
2290 Fix off-by-one and type size errors in ordinary case.
2291
5555c86d
TV
22922020-08-05 Tom de Vries <tdevries@suse.de>
2293
2294 * gdbtypes.c (type_not_allocated, type_not_associated): Use
2295 "prop->const_val () == 0" instead of "prop->const_val () != 0".
2296
97916bfe
SM
22972020-08-04 Simon Marchi <simon.marchi@efficios.com>
2298
2299 * frame.h (frame_id_p): Return bool.
2300 (frame_id_artificial_p): Return bool.
2301 (frame_id_eq): Return bool.
2302 (has_stack_frames): Return bool.
2303 (get_selected_frame): Fix typo in comment.
2304 (get_frame_pc_if_available): Return bool.
2305 (get_frame_address_in_block_if_available): Return bool.
2306 (get_frame_func_if_available): Return bool.
2307 (read_frame_register_unsigned): Return bool.
2308 (get_frame_register_bytes): Return bool.
2309 (safe_frame_unwind_memory): Return bool.
2310 (deprecated_frame_register_read): Return bool.
2311 (frame_unwinder_is): Return bool.
2312 * frame.c (struct frame_info) <prev_arch::p>: Change type to
2313 bool.
2314 <this_id::p>: Likewise.
2315 <prev_p>: Likewise.
2316 (frame_stash_add): Return bool.
2317 (get_frame_id): Use bool.
2318 (frame_id_build_special) Use bool.
2319 (frame_id_build_unavailable_stack): Use bool.
2320 (frame_id_build): Use bool.
2321 (frame_id_p): Return bool, use true/false instead of 1/0.
2322 (frame_id_artificial_p): Likewise.
2323 (frame_id_eq): Likewise.
2324 (frame_id_inner): Likewise.
2325 (get_frame_func_if_available): Likewise.
2326 (read_frame_register_unsigned): Likewise.
2327 (deprecated_frame_register_read): Likewise.
2328 (get_frame_register_bytes): Likewise.
2329 (has_stack_frames): Likewise.
2330 (inside_main_func): Likewise.
2331 (inside_entry_func): Likewise.
2332 (get_frame_pc_if_available): Likewise.
2333 (get_frame_address_in_block_if_available): Likewise.
2334 (frame_unwinder_is): Likewise.
2335 (safe_frame_unwind_memory): Likewise.
2336 (frame_unwind_arch): Likewise.
2337
fedfee88
SM
23382020-08-04 Simon Marchi <simon.marchi@efficios.com>
2339
2340 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
2341 type to cached_copy_status.
2342 (fprintf_frame): Adjust.
2343 (get_frame_func_if_available): Adjust.
2344 (frame_cleanup_after_sniffer): Adjust.
2345
6cfa9b59
MW
23462020-08-04 Mark Wielaard <mark@klomp.org>
2347
2348 * MAINTAINERS (Write After Approval): Update email address.
2349
66d6346b
SM
23502020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2351
2352 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
2353 dynamic_prop::const_val.
2354
8a6d5e35
SM
23552020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
2358 dynamic_prop::kind.
2359
51d6067d
SM
23602020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
2361
2362 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
2363
b26e2ae7
JM
23642020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
2365
2366 * configure.tgt: Set gdb_sim for bpf-*-* targets.
2367
39791af2
JM
23682020-08-04 Weimin Pan <weimin.pan@oracle.com>
2369 Jose E. Marchesi <jose.marchesi@oracle.com>
2370
2371 * configure.tgt: Add entry for bpf-*-*.
2372 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
2373 (ALLDEPFILES): Add bpf-tdep.c.
2374 * bpf-tdep.c: New file.
2375 * MAINTAINERS: Add bpf target and maintainer.
2376 * NEWS: Mention the support for the new target.
2377
521894aa
TV
23782020-08-04 Tom de Vries <tdevries@suse.de>
2379
2380 PR symtab/23270
2381 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
2382 Error.
2383
5d6356e9
JB
23842020-08-03 John Baldwin <jhb@FreeBSD.org>
2385
2386 * syscalls/freebsd.xml: Regenerate.
2387
0cf82b81
JB
23882020-08-03 John Baldwin <jhb@FreeBSD.org>
2389
2390 * syscalls/update-freebsd.sh: Fix usage and year range.
2391
8f34b746
TV
23922020-08-03 Tom de Vries <tdevries@suse.de>
2393
2394 PR symtab/26333
2395 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
2396 DW_LNE_lo_user/DW_LNE_hi_user range.
2397
5e500d33
SM
23982020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
2399
2400 PR ada/26318
2401 * ada-lang.c (ada_modulus): Return 0 if property is not of const
2402 kind.
2403
78319c15
TBA
24042020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2405
2406 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
2407
4c55e970
TBA
24082020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2409
2410 * breakpoint.c (set_breakpoint_condition): Update the condition
2411 expressions after checking that the input condition string parses
2412 successfully and does not contain junk at the end.
2413
1e620590
TBA
24142020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2415
2416 * breakpoint.c (set_breakpoint_condition): Update the
2417 condition string after parsing the new condition successfully.
2418
c8693053
RO
24192020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2420
2421 * proc-api.c (_STRUCTURED_PROC): Don't define.
2422 * proc-events.c: Likewise.
2423 * proc-flags.c: Likewise.
2424 * proc-why.c: Likewise.
2425 * procfs.c: Likewise.
2426
2427 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
2428 * configure, config.in: Regenerate.
2429
5a99adb8
TV
24302020-07-30 Tom de Vries <tdevries@suse.de>
2431
2432 PR build/26320
2433 * ui-style.h (struct ui_file_style::color): Wrap m_value and
2434 m_red/m_green/m_blue in a union.
2435
8ba83e91
TV
24362020-07-29 Tom de Vries <tdevries@suse.de>
2437
2438 PR tdep/26280
2439 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
2440
f75a0693
AB
24412020-07-28 Tom Tromey <tromey@adacore.com>
2442
2443 PR symtab/26270:
2444 * symtab.h (find_pc_partial_function_sym): Declare.
2445 * cli/cli-cmds.c (disassemble_command): Use
2446 find_pc_partial_function_sym. Check asm_demangle.
2447 * blockframe.c (cache_pc_function_sym): New global.
2448 (cache_pc_function_name): Remove.
2449 (clear_pc_function_cache): Update.
2450 (find_pc_partial_function_sym): New function, from
2451 find_pc_partial_function.
2452 (find_pc_partial_function): Rewrite using
2453 find_pc_partial_function_sym.
2454
16f3242c
TT
24552020-07-28 Tom Tromey <tromey@adacore.com>
2456
2457 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
2458 help. Add usage.
2459
4888741a
TT
24602020-07-28 Tom Tromey <tromey@adacore.com>
2461
2462 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
2463 <DW_OP_GNU_variable_value>: Cast to address type.
2464
4d46f402
KR
24652020-07-28 Kamil Rytarowski <n54@gmx.com>
2466
2467 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
2468 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
2469 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
2470 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
2471 (nbsd_get_siginfo_type): New.
2472 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
2473 (_initialize_nbsd_tdep): New.
2474
d70f978b
L
24752020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2476
2477 PR binutils/26301
2478 * configure: Regenerated.
2479
377170fa
L
24802020-07-28 H.J. Lu <hongjiu.lu@intel.com>
2481
2482 PR binutils/26301
2483 * configure: Regenerated.
2484
43d5901d
AB
24852020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2486
2487 * python/py-frame.c: Remove 'user-regs.h' include.
2488 (frapy_read_register): Rewrite to make use of
2489 gdbpy_parse_register_id.
2490 * python/py-registers.c (gdbpy_parse_register_id): New function,
2491 moved here from python/py-unwind.c. Updated the return type, and
2492 also accepts register descriptor objects.
2493 * python/py-unwind.c: Remove 'user-regs.h' include.
2494 (pyuw_parse_register_id): Moved to python/py-registers.c.
2495 (unwind_infopy_add_saved_register): Update to use
2496 gdbpy_parse_register_id.
2497 (pending_framepy_read_register): Likewise.
2498 * python/python-internal.h (gdbpy_parse_register_id): Declare.
2499
14fa8fb3
AB
25002020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
2501
2502 * python/py-registers.c: Add 'user-regs.h' include.
2503 (register_descriptor_iter_find): New function.
2504 (register_descriptor_iterator_object_methods): New static global
2505 methods array.
2506 (register_descriptor_iterator_object_type): Add pointer to methods
2507 array.
2508
ddce1758
JB
25092020-07-27 John Baldwin <jhb@FreeBSD.org>
2510
2511 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
2512 for all architectures on FreeBSD 11.3 and later.
2513
a4089f52
TT
25142020-07-27 Tom Tromey <tromey@adacore.com>
2515
2516 * gcore.h (load_corefile): Don't declare.
2517
95420d30
TV
25182020-07-27 Tom de Vries <tdevries@suse.de>
2519
2520 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
2521 * config.in: Regenerate.
2522 * configure: Regenerate.
2523
05a6b8c2
EZ
25242020-07-26 Eli Zaretskii <eliz@gnu.org>
2525
2526 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
2527 ws2tcpip.h. When checking whether socklen_t type is defined, use
2528 ws2tcpip.h if it is available and sys/socket.h isn't.
2529 * configure: Regenerate.
2530 * config.in: Regenerate.
2531
e79eb02f
AB
25322020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
2533
2534 PR fortran/23051
2535 PR fortran/26139
2536 * valops.c (value_ind): Pass address to
2537 readjust_indirect_value_type.
2538 * value.c (readjust_indirect_value_type): Make parameter
2539 non-const, and add extra address parameter. Resolve original type
2540 before using it.
2541 * value.h (readjust_indirect_value_type): Update function
2542 signature and comment.
2543
876518dd
TV
25442020-07-25 Tom de Vries <tdevries@suse.de>
2545
2546 PR symtab/26243
2547 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
2548 entries.
2549
f6720b1c
AM
25502020-07-24 Aaron Merey <amerey@redhat.com>
2551
2552 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
2553 * configure: Rebuild.
2554
513487e1
KB
25552020-07-23 Kevin Buettner <kevinb@redhat.com>
2556
2557 PR corefiles/26294
2558 * corelow.c (_initialize_corelow): Add period to help text
2559 for "maintenance print core-file-backed-mappings".
2560
e7bc9db8
PA
25612020-07-23 Pedro Alves <pedro@palves.net>
2562
2563 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
2564 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
2565 meanwhile.
2566 * frame.c (frame_cache_generation, get_frame_cache_generation):
2567 New.
2568 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
2569 (get_prev_frame_if_no_cycle): On exception, don't touch
2570 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
2571 * frame.h (get_frame_cache_generation): Declare.
2572
90fcc466
TV
25732020-07-23 Tom de Vries <tdevries@suse.de>
2574
2575 PR tui/26282
2576 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
2577 New default constructor.
2578
78344df7
AB
25792020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
2580
2581 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
2582 exclude non-statement entries.
2583
b089853a
KB
25842020-07-22 Kevin Buettner <kevinb@redhat.com>
2585
2586 * NEWS (New commands): Mention new command
2587 "maintenance print core-file-backed-mappings".
2588
09c2f5d4
KB
25892020-07-22 Kevin Buettner <kevinb@redhat.com>
2590
2591 * corelow.c (gdbcmd.h): Include.
2592 (core_target::info_proc_mappings): New method.
2593 (get_current_core_target): New function.
2594 (maintenance_print_core_file_backed_mappings): New function.
2595 (_initialize_corelow): Add core-file-backed-mappings to
2596 "maint print" commands.
2597
9c5ec5c2 25982020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 2599
9c5ec5c2
KB
2600 * linux-tdep.c (dump_note_entry_p): New function.
2601 (linux_dump_mapping_p_ftype): New typedef.
2602 (linux_find_memory_regions_full): Add new parameter,
2603 should_dump_mapping_p.
2604 (linux_find_memory_regions): Adjust call to
2605 linux_find_memory_regions_full.
2606 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
2607 call to linux_find_memory_regions_full.
2608
db082f59
KB
26092020-07-22 Kevin Buettner <kevinb@redhat.com>
2610
2611 * corelow.c (solist.h, unordered_map): Include.
2612 (class core_target): Add field m_core_file_mappings and
2613 method build_file_mappings.
2614 (core_target::core_target): Call build_file_mappings.
2615 (core_target::~core_target): Free memory associated with
2616 m_core_file_mappings.
2617 (core_target::build_file_mappings): New method.
2618 (core_target::xfer_partial): Use m_core_file_mappings
2619 for memory transfers.
2620 * linux-tdep.c (linux_read_core_file_mappings): New
2621 function.
2622 (linux_core_info_proc_mappings): Rewrite to use
2623 linux_read_core_file_mappings.
2624 (linux_init_abi): Register linux_read_core_file_mappings.
2625
7e183d27
KB
26262020-07-22 Kevin Buettner <kevinb@redhat.com>
2627
2628 * arch-utils.c (default_read_core_file_mappings): New function.
2629 * arch-utils.c (default_read_core_file_mappings): Declare.
2630 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
2631 * gdbarch.h, gdbarch.c: Regenerate.
2632
2735d421
KB
26332020-07-22 Kevin Buettner <kevinb@redhat.com>
2634
2635 PR corefiles/25631
2636 * corelow.c (core_target:xfer_partial): Revise
2637 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
2638 case after first checking the stratum beneath the core
2639 target.
2640 (has_all_memory): Return true.
2641 * target.c (raw_memory_xfer_partial): Revise comment
2642 regarding use of has_all_memory.
2643
e56cb451
KB
26442020-07-22 Kevin Buettner <kevinb@redhat.com>
2645
2646 * exec.h (section_table_xfer_memory): Revise declaration,
2647 replacing section name parameter with an optional callback
2648 predicate.
2649 * exec.c (section_table_xfer_memory): Likewise.
2650 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
2651 of section_table_xfer_memory.
2652
32fa152e
TT
26532020-07-22 Tom Tromey <tromey@adacore.com>
2654
2655 * mi/mi-cmd-stack.c (list_args_or_locals): Use
2656 lookup_symbol_search_name.
2657
a67a1c41
AB
26582020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
2659
2660 * python/py-registers.c (gdbpy_register_object_data_init): Remove
2661 redundant local variable.
2662 (gdbpy_get_register_descriptor): Extract descriptor vector as a
2663 reference, not pointer, update code accordingly.
2664
a7b4ff4f
SM
26652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2666 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2667
2668 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
2669 * jit.c (jit_breakpoint_re_set_internal): Use the
2670 `skip_jit_symbol_lookup` field.
2671
2340e834
SM
26722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2673 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2674
2675 * jit.c (jit_read_descriptor): Define the descriptor address once,
2676 use twice.
2677 (jit_breakpoint_deleted): Move the declaration of the loop variable
2678 `iter` into the loop header.
2679 (jit_breakpoint_re_set_internal): Move the declaration of the local
2680 variable `objf_data` to the first point of definition.
2681 (jit_event_handler): Move the declaration of local variables
2682 `code_entry`, `entry_addr`, and `objf` to their first point of use.
2683 Rename `objf` to `jited`.
2684
c1072906
SM
26852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2686
2687 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
2688 Remove.
2689 * jit.c (get_jiter_objfile_data): Update.
2690
c8474dc3
TBA
26912020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2692 Simon Marchi <simon.marchi@polymtl.ca>
2693
2694 * jit.c (struct jit_program_space_data): Remove.
2695 (jit_program_space_key): Remove.
2696 (jiter_objfile_data::~jiter_objfile_data): Remove program space
2697 stuff.
2698 (get_jit_program_space_data): Remove.
2699 (jit_breakpoint_deleted): Iterate on all of the program space's
2700 objfiles.
2701 (jit_inferior_init): Likewise.
2702 (jit_breakpoint_re_set_internal): Likewise. Also change return
2703 type to void.
2704 (jit_breakpoint_re_set): Pass current_program_space to
2705 jit_breakpoint_re_set_internal.
2706
77208eb7
SM
27072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2708
2709 * jit.h (struct jiter_objfile_data) <cached_code_address,
2710 jit_breakpoint>: Move to here from ...
2711 * jit.c (jit_program_space_data): ... here.
2712 (jiter_objfile_data::~jiter_objfile_data): Update.
2713 (jit_breakpoint_deleted): Update.
2714 (jit_breakpoint_re_set_internal): Update.
2715
8c1c720f
SM
27162020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2717
2718 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
2719 checks.
2720 (jit_read_descriptor): Remove NULL check.
2721 (jit_event_handler): Add an assertion.
2722
0e74a041
SM
27232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2724
2725 * jit.h (struct jit_objfile_data): Split into...
2726 (struct jiter_objfile_data): ... this ...
2727 (struct jited_objfile_data): ... and this.
2728 * objfiles.h (struct objfile) <jit_data>: Remove.
2729 <jiter_data, jited_data>: New fields.
2730 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
2731 (jiter_objfile_data::~jiter_objfile_data): ... this.
2732 (get_jit_objfile_data): Rename to ...
2733 (get_jiter_objfile_data): ... this.
2734 (add_objfile_entry): Update.
2735 (jit_read_descriptor): Use get_jiter_objfile_data.
2736 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
2737 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
2738 (jit_inferior_exit_hook): Use objfile's jited_data field.
2739
238b5c9f
SM
27402020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
2741
2742 * jit.h: Forward-declare `struct minimal_symbol`.
2743 (struct jit_objfile_data): Migrate to here from jit.c; also add a
2744 constructor, destructor, and an objfile* field.
2745 * jit.c (jit_objfile_data): Remove.
2746 (struct jit_objfile_data): Migrate from here to jit.h.
2747 (jit_objfile_data::~jit_objfile_data): New destructor
2748 implementation with code moved from free_objfile_data.
2749 (free_objfile_data): Delete.
2750 (get_jit_objfile_data): Update to use the jit_data field of objfile.
2751 (jit_find_objf_with_entry_addr): Ditto.
2752 (jit_inferior_exit_hook): Ditto.
2753 (_initialize_jit): Remove the call to
2754 register_objfile_data_with_cleanup.
2755 * objfiles.h (struct objfile) <jit_data>: New field.
2756
fe053b9e
TBA
27572020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2758
2759 * jit.h: Forward-declare `struct objfile`.
2760 (jit_event_handler): Add a second parameter, the JITer objfile.
2761 * jit.c (jit_read_descriptor): Change the signature to take the
2762 JITer objfile as an argument instead of the jit_program_space_data.
2763 (jit_inferior_init): Update the call to jit_read_descriptor.
2764 (jit_event_handler): Use the new JITer objfile argument when calling
2765 jit_read_descriptor.
2766 * breakpoint.c (handle_jit_event): Update the call to
2767 jit_event_handler to pass the JITer objfile.
2768
4cec0c66
JB
27692020-07-21 John Baldwin <jhb@FreeBSD.org>
2770
2771 * gdbarch.c: Regenerate.
2772 * gdbarch.h: Regenerate.
2773 * gdbarch.sh (handle_segmentation_fault): Remove method.
2774 * infrun.c (handle_segmentation_fault): Remove.
2775 (print_signal_received_reason): Remove call to
2776 handle_segmentation_fault.
2777
0e42f66a
JB
27782020-07-21 John Baldwin <jhb@FreeBSD.org>
2779
2780 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
2781 Rename to sparc64_linux_report_signal_info and add siggnal
2782 argument.
2783 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
2784 instead of sparc64_linux_handle_segmentation_fault.
2785
77bdfeb2
JB
27862020-07-21 John Baldwin <jhb@FreeBSD.org>
2787
2788 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
2789 i386_linux_report_signal_info instead of
2790 i386_linux_handle_segmentation_fault.
2791 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
2792 to i386_linux_report_signal_info and add siggnal argument.
2793 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
2794 of i386_linux_handle_segmentation_fault.
2795 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
2796 to i386_linux_report_signal_info and add siggnal argument.
2797
ad97bfc5
JB
27982020-07-21 John Baldwin <jhb@FreeBSD.org>
2799
2800 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
2801 hook if present.
2802
272bb05c
JB
28032020-07-21 John Baldwin <jhb@FreeBSD.org>
2804
2805 * gdbarch.c: Regenerate.
2806 * gdbarch.h: Regenerate.
2807 * gdbarch.sh (report_signal_info): New method.
2808 * infrun.c (print_signal_received_reason): Invoke gdbarch
2809 report_signal_info hook if present.
2810
baf8791e
AB
28112020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2812
2813 * python/py-registers.c : Add 'unordered_map' include.
2814 (gdbpy_new_reggroup): Renamed to...
2815 (gdbpy_get_reggroup): ...this. Update to only create register
2816 group descriptors when needed.
2817 (gdbpy_reggroup_iter_next): Update.
2818
f7306dac
AB
28192020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
2820
2821 * python/py-registers.c (gdbpy_register_object_data): New static
2822 global.
2823 (gdbpy_register_object_data_init): New function.
2824 (gdbpy_new_register_descriptor): Renamed to...
2825 (gdbpy_get_register_descriptor): ...this, and update to reuse
2826 existing register descriptors where possible.
2827 (gdbpy_register_descriptor_iter_next): Update.
2828 (gdbpy_initialize_registers): Register new gdbarch data.
2829
05c309a8
SM
28302020-07-21 Simon Marchi <simon.marchi@efficios.com>
2831
2832 * linux-nat.c (stopped_pids): Make static.
2833
d1fd641e
SM
28342020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
2835
2836 PR ada/26235
2837 * gdbtypes.c (ada_discrete_type_low_bound,
2838 ada_discrete_type_high_bound): Handle undefined bounds.
2839
1de14d77
KR
28402020-07-21 Kamil Rytarowski <n54@gmx.com>
2841
2842 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
2843 declaration.
2844 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
2845 function.
2846
ed810cc7
JB
28472020-07-20 John Baldwin <jhb@FreeBSD.org>
2848
2849 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
2850 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
2851 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
2852 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
2853 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
2854 method.
2855
ae5369e7
LC
28562020-07-20 Ludovic Courtès <ludo@gnu.org>
2857
2858 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
2859 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
2860 which are deprecated in Guile 3.0.
2861 * configure.ac (try_guile_versions): Add "guile-3.0".
2862 * configure (try_guile_versions): Regenerate.
2863 * NEWS: Update entry.
2864
68cf161c
LC
28652020-07-20 Ludovic Courtès <ludo@gnu.org>
2866 Doug Evans <dje@google.com>
2867
2868 PR gdb/21104
2869 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
2870 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
2871 USING_GUILE_BEFORE_2_2.
2872 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
2873 Change type to 'scm_t_port_type *'.
2874 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
2875 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
2876 parameter and honor it. Update callers.
2877 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
2878 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
2879 functions.
2880 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
2881 USING_GUILE_BEFORE_2_2.
2882 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
2883 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
2884 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
2885 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
2886 and 'SCM_PORT_TYPE'.
2887 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
2888 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
2889 (gdbscm_memory_port_read, gdbscm_memory_port_write)
2890 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
2891 [!USING_GUILE_BEFORE_2_2]: New functions.
2892 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
2893 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
2894 'gdbscm_memory_port_read'.
2895 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
2896 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
2897 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
2898 function.
2899 (ioscm_init_memory_port): Remove.
2900 (ioscm_init_memory_port_stream): New function
2901 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
2902 function.
2903 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2904 Return scm_from_uint (0).
2905 (gdbscm_set_memory_port_read_buffer_size_x)
2906 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2907 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
2908 Return scm_from_uint (0).
2909 (gdbscm_set_memory_port_write_buffer_size_x)
2910 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
2911 * configure.ac (try_guile_versions): Add "guile-2.2".
2912 * configure: Regenerate.
2913 * NEWS: Add entry.
2914
aee91db3
TT
29152020-07-18 Tom Tromey <tom@tromey.com>
2916
2917 * linux-nat.c (linux_multi_process): Remove.
2918 (linux_nat_target::supports_multi_process): Return true.
2919
0e267416
AB
29202020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
2921
2922 * arch/riscv.c (riscv_tdesc_cache): Change map type.
2923 (riscv_lookup_target_description): Return pointer out of
2924 unique_ptr.
2925 * target-descriptions.c (allocate_target_description): Add
2926 comment.
2927 (target_desc_deleter::operator()): Likewise.
2928 * target-descriptions.h (struct target_desc_deleter): Moved to
2929 gdbsupport/tdesc.h.
2930 (target_desc_up): Likewise.
2931
f80c8ec4
TT
29322020-07-17 Tom Tromey <tromey@adacore.com>
2933
2934 * linux-nat.c (linux_nat_target::supports_non_stop)
2935 (linux_nat_target::always_non_stop_p): Use "true".
2936 (linux_nat_target::supports_disable_randomization): Use "true" and
2937 "false".
2938
d0ce17d8
CT
29392020-07-16 Caroline Tice <cmtice@google.com>
2940
2941 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
2942 (RNGLIST_HEADER_SIZE64): New constant definition.
2943 (struct dwop_section_names): Add rnglists_dwo.
2944 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
2945 (struct loclist_header): Rename to 'loclists_rnglists_header'.
2946 (struct dwo_sections): Add rnglists field.
2947 (read_attribut_reprocess): Add tag parameter.
2948 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
2949 (cu_debug_rnglists_section): New function (decl & definition).
2950 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
2951 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
2952 die whose range is being checked; get rnglist section from
2953 cu_debug_rnglists_section, to get from either objfile or dwo file as
2954 appropriate. Add cases for DW_RLE_base_addressx,
2955 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
2956 the base address to DW_RLE_offset_pairs (not to all ranges), moving
2957 test inside if-condition and updating complaint message.
2958 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
2959 dwarf2_rnglists_process.
2960 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
2961 dwarf2_ranges_process.
2962 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
2963 need_ranges_base and update comment appropriately. Also pass die tag
2964 to dwarf2_ranges_read.
2965 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
2966 need_ranges_base and update comment appropriately. Also pass die tag
2967 to dwarf2_ranges_process.
2968 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
2969 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
2970 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
2971 need_ranges_base and update comment appropriately. Also pass die tag
2972 to read_attribute_reprocess and dwarf2_ranges_read.
2973 (read_loclist_header): Rename function to read_loclists_rnglists_header,
2974 and update function comment appropriately.
2975 (read_loclist_index): Call read_loclists_rnglists_header instead of
2976 read_loclist_header.
2977 (read_rnglist_index): New function.
2978 (read_attribute_reprocess): Add tag parameter. Add code for
2979 DW_FORM_rnglistx, passing tag to read_rnglist_index.
2980 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
2981
3dcc261c
AB
29822020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
2983
2984 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
2985 being resolved.
2986
ccb9eba6
AB
29872020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2988
2989 * arch-utils.c (show_architecture): Update formatting of messages.
2990
cf88be68
SM
29912020-07-12 Simon Marchi <simon.marchi@efficios.com>
2992
2993 * gdbtypes.h (struct type) <bounds>: Handle array and string
2994 types.
2995 * ada-lang.c (assign_aggregate): Use type::bounds on
2996 array/string type.
2997 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
2998 * c-varobj.c (c_number_of_children): Likewise.
2999 (c_describe_child): Likewise.
3000 * eval.c (evaluate_subexp_for_sizeof): Likewise.
3001 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
3002 (f_type_print_base): Likewise.
3003 * f-valprint.c (f77_array_offset_tbl): Likewise.
3004 (f77_get_upperbound): Likewise.
3005 (f77_print_array_1): Likewise.
3006 * guile/scm-type.c (gdbscm_type_range): Likewise.
3007 * m2-typeprint.c (m2_array): Likewise.
3008 (m2_is_long_set_of_type): Likewise.
3009 * m2-valprint.c (get_long_set_bounds): Likewise.
3010 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3011 * python/py-type.c (typy_range): Likewise.
3012 * rust-lang.c (rust_internal_print_type): Likewise.
3013 * type-stack.c (type_stack::follow_types): Likewise.
3014 * valarith.c (value_subscripted_rvalue): Likewise.
3015 * valops.c (value_cast): Likewise.
3016
509971ae
SM
30172020-07-12 Simon Marchi <simon.marchi@efficios.com>
3018
3019 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
3020 callers to use the equivalent accessor methods.
3021
107406b7
SM
30222020-07-12 Simon Marchi <simon.marchi@efficios.com>
3023
3024 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
3025 (struct type) <bit_stride>: New method.
3026 (TYPE_BIT_STRIDE): Remove.
3027 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
3028
bb789949
SM
30292020-07-12 Simon Marchi <simon.marchi@efficios.com>
3030
3031 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
3032 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
3033 callers to use the equivalent accessor methods instead.
3034
39498edb
SM
30352020-07-12 Simon Marchi <simon.marchi@efficios.com>
3036
3037 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
3038 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
3039 callers to use the equivalent accessor methods instead.
3040
3b606f38
SM
30412020-07-12 Simon Marchi <simon.marchi@efficios.com>
3042
3043 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
3044 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
3045 to use dynamic_prop::kind.
3046
064d9cb9
SM
30472020-07-12 Simon Marchi <simon.marchi@efficios.com>
3048
3049 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
3050 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
3051 to get the bound property's kind and check against
3052 PROP_UNDEFINED.
3053
5537ddd0
SM
30542020-07-12 Simon Marchi <simon.marchi@efficios.com>
3055
3056 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
3057 all callers to use type::range_bounds followed by
3058 dynamic_prop::{low,high}.
3059
8c2e4e06
SM
30602020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3061
3062 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
3063 const_val, set_const_val, baton, set_locexpr, set_loclist,
3064 set_addr_offset, variant_parts, set_variant_parts,
3065 original_type, set_original_type>: New methods.
3066 <kind>: Rename to...
3067 <m_kind>: ... this. Update all users to use the new methods
3068 instead.
3069 <data>: Rename to...
3070 <m_data>: ... this. Update all users to use the new methods
3071 instead.
3072
7c6f2712
SM
30732020-07-12 Simon Marchi <simon.marchi@efficios.com>
3074
3075 * gdbtypes.c (get_discrete_bounds): Return failure if
3076 the range type's bounds are not both defined and constant
3077 values.
3078 (get_array_bounds): Update comment. Remove undefined bound check.
3079
599088e3
SM
30802020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
3081
3082 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
3083 the type::bounds method directly.
3084
c4dfcb36
SM
30852020-07-12 Simon Marchi <simon.marchi@efficios.com>
3086
3087 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
3088 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
3089 are used to set the range type's bounds to use set_bounds.
3090
0a278aa7
PW
30912020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3092
3093 * exec.c (_initialize_exec): Update exec-file-mismatch help.
3094
cce20f10
PA
30952020-07-10 Pedro Alves <pedro@palves.net>
3096
3097 * gdbthread.h (inferior_ref): Define.
3098 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
3099 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
3100 * thread.c
3101 (scoped_restore_current_thread::restore):
3102 Adjust to gdb::ref_ptr.
3103 (scoped_restore_current_thread::~scoped_restore_current_thread):
3104 Remove manual decref handling.
3105 (scoped_restore_current_thread::scoped_restore_current_thread):
3106 Adjust to use
3107 inferior_ref::new_reference/thread_info_ref::new_reference.
3108 Incref the thread before calling get_frame_id instead of after.
3109 Let TARGET_CLOSE_ERROR propagate.
3110
6d7aa592
PA
31112020-07-10 Pedro Alves <pedro@palves.net>
3112
3113 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
3114 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
3115 NOT_AVAILABLE_ERROR.
3116 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
3117 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
3118
b3e3a4c1
SM
31192020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
3120 Pedro Alves <pedro@palves.net>
3121
3122 PR gdb/26199
3123 * infrun.c (threads_are_resumed_pending_p): Delete.
3124 (do_target_wait): Remove threads_are_executing and
3125 threads_are_resumed_pending_p checks from the inferior_matches
3126 lambda. Update comments.
3127
d6cc5d98
PA
31282020-07-10 Pedro Alves <pedro@palves.net>
3129
3130 PR gdb/26199
3131 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
3132 executing threads.
3133
7d3badc6
PA
31342020-07-10 Pedro Alves <pedro@palves.net>
3135
3136 PR gdb/26199
3137 * infrun.c (handle_no_resumed): Handle multiple targets.
3138
42bd97a6
PA
31392020-07-10 Pedro Alves <pedro@palves.net>
3140
3141 PR gdb/26199
3142 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
3143 target_is_async_p.
3144
43667cc6
PA
31452020-07-10 Pedro Alves <pedro@palves.net>
3146
3147 PR gdb/26199
3148 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
3149 threads, not all threads.
3150
96118d11
PA
31512020-07-10 Pedro Alves <pedro@palves.net>
3152
3153 PR gdb/26199
3154 * remote.c (remote_target::open_1): Pass remote target pointer as
3155 data to create_async_event_handler.
3156 (remote_async_inferior_event_handler): Mark async event handler
3157 before returning if the remote target still has either pending
3158 events or unacknowledged notifications.
3159
54904d81
JB
31602020-07-10 John Baldwin <jhb@FreeBSD.org>
3161
3162 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
3163 declaration.
3164 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
3165 function.
3166
f37e5866
JB
31672020-07-09 John Baldwin <jhb@FreeBSD.org>
3168
3169 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
3170 inferior_ptid.
3171
fc238d4a
JB
31722020-07-09 John Baldwin <jhb@FreeBSD.org>
3173
3174 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
3175 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
3176 AT_FREEBSD_PS_STRINGS.
3177
6e2469ff
HD
31782020-07-08 Hannes Domani <ssbssa@yahoo.de>
3179
3180 * auto-load.c (auto_load_objfile_script_1): Convert drive part
3181 of debugfile path on Windows.
3182
d1076c41
JB
31832020-07-08 John Baldwin <jhb@FreeBSD.org>
3184
3185 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
3186 argument to 'data'.
3187
15f3b077
TT
31882020-07-08 Tom Tromey <tromey@adacore.com>
3189
3190 * ada-lang.c (ada_exception_message_1): Use read_memory.
3191
9fc501fd
AB
31922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3193
3194 PR python/22748
3195 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
3196 special handling for inline frames.
3197 * findvar.c (value_of_register_lazy): Skip inline frames when
3198 creating lazy register values.
3199 * frame.c (frame_id_computed_p): Delete definition.
3200 * frame.h (frame_id_computed_p): Delete declaration.
3201
64cb3757
AB
32022020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3203
3204 * NEWS: Mention additions to Python API.
3205 * python/py-arch.c (archpy_register_groups): New function.
3206 (arch_object_methods): Add 'register_groups' method.
3207 * python/py-registers.c (reggroup_iterator_object): New struct.
3208 (reggroup_object): New struct.
3209 (gdbpy_new_reggroup): New function.
3210 (gdbpy_reggroup_to_string): New function.
3211 (gdbpy_reggroup_name): New function.
3212 (gdbpy_reggroup_iter): New function.
3213 (gdbpy_reggroup_iter_next): New function.
3214 (gdbpy_new_reggroup_iterator): New function
3215 (gdbpy_initialize_registers): Register new types.
3216 (reggroup_iterator_object_type): Define new Python type.
3217 (gdbpy_reggroup_getset): New static global.
3218 (reggroup_object_type): Define new Python type.
3219 * python/python-internal.h
3220
0f767f94
AB
32212020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3222
3223 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
3224 * python/py-arch.c (archpy_registers): New function.
3225 (arch_object_methods): Add 'registers' method.
3226 * python/py-registers.c: New file.
3227 * python/python-internal.h
3228 (gdbpy_new_register_descriptor_iterator): Declare.
3229 (gdbpy_initialize_registers): Declare.
3230 * python/python.c (do_start_initialization): Call
3231 gdbpy_initialize_registers.
3232 * NEWS: Mention additions to the Python API.
3233
87dbc774
AB
32342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3235
3236 * NEWS: Mention new Python API method.
3237 * python/py-unwind.c (pending_framepy_architecture): New function.
3238 (pending_frame_object_methods): Add architecture method.
3239
3bc98c0c
AB
32402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3241
3242 * gdbarch.c: Regenerate.
3243 * gdbarch.h: Regenerate.
3244 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
3245 (gdbarch_data): Use internal_error for the case where
3246 deprecated_set_gdbarch_data was originally needed.
3247 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
3248 and use passed in obstack.
3249 (libunwind_frame_set_descr): Should no longer get back NULL from
3250 gdbarch_data.
3251 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
3252 type.
3253 * user-regs.c (user_regs_init): Update parameters, and use passed
3254 in obstack.
3255 (user_reg_add): Should no longer get back NULL from gdbarch_data.
3256 (_initialize_user_regs): Register as a pre-init gdbarch data type.
3257
d8cc8af6
TV
32582020-07-06 Tom de Vries <tdevries@suse.de>
3259
3260 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
3261 End-Of-Sequence in lte_is_less_than.
3262 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
3263 "gdb: Don't reorder line table entries too much when sorting".
3264
947f7597
TV
32652020-07-06 Tom de Vries <tdevries@suse.de>
3266
3267 PR tui/26205
3268 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
3269
1e7c1b22
TV
32702020-07-05 Tom de Vries <tdevries@suse.de>
3271
3272 PR build/26187
3273 * inferior.h (struct infcall_suspend_state_deleter): If available, use
3274 std::uncaught_exceptions instead of deprecated
3275 std::uncaught_exception.
3276
a36158ec
SM
32772020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3278
3279 * macroexp.h (macro_stringify): Return
3280 gdb::unique_xmalloc_ptr<char>.
3281 * macroexp.c (macro_stringify): Likewise.
3282 * macrotab.c (fixup_definition): Update.
3283
14d960c8
SM
32842020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3285
3286 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
3287 (lex_one_token): Update.
3288 * macroexp.c (struct macro_buffer) <release>: Return
3289 gdb::unique_xmalloc_ptr<char>.
3290 (macro_stringify): Update.
3291 (macro_expand): Update.
3292 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
3293 * macroexp.h (macro_expand_next): Likewise.
3294
211d5b1c
SM
32952020-07-02 Simon Marchi <simon.marchi@efficios.com>
3296
3297 * macroexp.h (macro_lookup_ftype): Remove.
3298 (macro_expand, macro_expand_once, macro_expand_next): Remove
3299 lookup function parameters, add scope parameter.
3300 * macroexp.c (scan, substitute_args, expand, maybe_expand,
3301 macro_expand, macro_expand_once, macro_expand_next): Likewise.
3302 * macroscope.h (standard_macro_lookup): Change parameter type
3303 to macro_scope.
3304 * macroscope.c (standard_macro_lookup): Likewise.
3305 * c-exp.y (lex_one_token): Update.
3306 * macrocmd.c (macro_expand_command): Likewise.
3307 (macro_expand_once_command): Likewise.
3308
b1a35af2
SM
33092020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
3310
3311 * inf-loop.c (inferior_event_handler): Remove client_data param.
3312 * inf-loop.h (inferior_event_handler): Likewise.
3313 * infcmd.c (step_1): Adjust.
3314 * infrun.c (proceed): Adjust.
3315 (fetch_inferior_event): Remove client_data param.
3316 (infrun_async_inferior_event_handler): Adjust.
3317 * infrun.h (fetch_inferior_event): Remove `void *` param.
3318 * linux-nat.c (handle_target_event): Adjust.
3319 * record-btrace.c (record_btrace_handle_async_inferior_event):
3320 Adjust.
3321 * record-full.c (record_full_async_inferior_event_handler):
3322 Adjust.
3323 * remote.c (remote_async_inferior_event_handler): Adjust.
3324
1cdf9e33
TT
33252020-07-01 Tom Tromey <tom@tromey.com>
3326
3327 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
3328 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
3329
32c1e210
TT
33302020-07-01 Tom Tromey <tom@tromey.com>
3331
3332 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
3333 tui_gen_win_info.
3334 (tui_win_info::make_window): Merge with
3335 tui_gen_win_info::make_window.
3336 (tui_win_info::make_visible): Move from tui_gen_win_info.
3337 * tui/tui-win.c (tui_win_info::max_width): Move from
3338 tui_gen_win_info.
3339 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
3340 type.
3341 <window_factory>: Likewise.
3342 * tui/tui-layout.c (tui_win_info::resize): Move from
3343 tui_gen_win_info.
3344 (make_standard_window): Change return type.
3345 (get_locator_window, tui_get_window_by_name): Likewise.
3346 (tui_layout_window::apply): Remove a cast.
3347 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
3348 (struct tui_win_info): Merge with tui_gen_win_info.
3349 (struct tui_gen_win_info): Remove.
3350
a30cb6da
TT
33512020-07-01 Tom Tromey <tom@tromey.com>
3352
3353 * tui/tui-stack.h (struct tui_locator_window): Derive from
3354 tui_win_info.
3355 <do_scroll_horizontal, do_scroll_vertical>: New methods.
3356 <can_box>: New method.
3357
1eb2161f
TT
33582020-07-01 Tom Tromey <tom@tromey.com>
3359
3360 * tui/tui-stack.h (struct tui_locator_window): Remove body.
3361
7134f2eb
TT
33622020-07-01 Tom Tromey <tom@tromey.com>
3363
3364 * tui/tui-regs.c (tui_data_window::display_registers_from)
3365 (tui_data_window::display_registers_from)
3366 (tui_data_window::first_data_item_displayed)
3367 (tui_data_window::delete_data_content_windows): Update.
3368 (tui_data_window::refresh_window, tui_data_window::no_refresh):
3369 Remove.
3370 (tui_data_window::check_register_values): Update.
3371 (tui_data_item_window::rerender): Add parameters. Update.
3372 (tui_data_item_window::refresh_window): Remove.
3373 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
3374 virtual.
3375 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
3376 tui_gen_win_info.
3377 <refresh_window, max_height, min_height>: Remove.
3378 <rerender>: Add parameters.
3379 <x, y, visible>: New members.
3380 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
3381 <m_item_width>: New member.
3382
22b7b041
TT
33832020-07-01 Tom Tromey <tom@tromey.com>
3384
3385 * tui/tui-regs.c (tui_data_window::show_register_group)
3386 (tui_data_window::check_register_values): Update.
3387 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
3388 from item_no.
3389
c9753adb
TT
33902020-07-01 Tom Tromey <tom@tromey.com>
3391
3392 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
3393 useless "if".
3394
9ab26b4a
TT
33952020-07-01 Tom Tromey <tom@tromey.com>
3396
3397 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
3398 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
3399
e555083f
TT
34002020-07-01 Tom Tromey <tom@tromey.com>
3401
3402 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
3403 * tui/tui-winsource.h (enum tui_line_or_address_kind)
3404 (struct tui_line_or_address): Move from tui-data.h.
3405 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
3406 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
3407 (tui_cmd_window, tui_source_window_base, tui_source_window)
3408 (tui_disasm_window): Don't declare.
3409 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
3410 to tui-winsource.h.
3411 (SINGLE_KEY): Move to tui-stack.c.
3412
7a02bab7
TT
34132020-07-01 Tom Tromey <tom@tromey.com>
3414
3415 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
3416 std::string.
3417 * tui/tui-regs.c (class tab_expansion_file): New.
3418 (tab_expansion_file::write): New method.
3419 (tui_register_format): Change return type. Use
3420 tab_expansion_file.
3421 (tui_get_register, tui_data_window::display_registers_from)
3422 (tui_data_item_window::rerender): Update.
3423 * tui/tui-io.h (tui_expand_tabs): Don't declare.
3424 * tui/tui-io.c (tui_expand_tabs): Remove.
3425
ea68593b
TT
34262020-07-01 Tom Tromey <tom@tromey.com>
3427
3428 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
3429
a8caed5d
FS
34302020-07-01 Fangrui Song <maskray@google.com>
3431
3432 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
3433
9cdf9820
AKS
34342020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
3435
3436 * dwarf2/read.c (set_die_type): Removed conditions to restrict
3437 forms for DW_AT_associated and DW_AT_allocated attributes,
3438 which is already checked in function attr_to_dynamic_prop.
3439
a1520ad8
TT
34402020-06-30 Tom Tromey <tromey@adacore.com>
3441
3442 * dwarf2/read.c (quirk_rust_enum): Correctly call
3443 alloc_rust_variant for default-less enum.
3444
5ac58899
TT
34452020-06-30 Tom Tromey <tromey@adacore.com>
3446
3447 PR build/26183:
3448 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
3449 gdb::to_string.
3450
19b187a9
SM
34512020-06-29 Simon Marchi <simon.marchi@efficios.com>
3452
3453 * gdbarch.sh (displaced_step_copy_insn): Update doc.
3454 * gdbarch.h: Re-generate.
3455
cd4c4c07
TT
34562020-06-28 Tom Tromey <tom@tromey.com>
3457
3458 * command.h (cmd_types): Remove.
3459 (cmd_type): Don't declare.
3460 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
3461 typedef.
3462 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
3463 * cli/cli-decode.c (cmd_type): Remove.
3464
05779d57
PA
34652020-06-27 Pedro Alves <palves@redhat.com>
3466
3467 * fork-child.c (prefork_hook): Adjust.
3468 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
3469 Delete.
3470 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
3471 * inferior.c (inferior::set_tty, inferior::tty): New methods.
3472 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
3473 Remove declarations.
3474 (struct inferior) <set_tty, tty>: New methods.
3475 (struct inferior) <terminal>: Rename to ...
3476 (struct inferior) <m_terminal>: ... this and make private.
3477 * main.c (captured_main_1): Adjust.
3478 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
3479 (mi_cmd_inferior_tty_show): Adjust.
3480 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
3481 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
3482
1776e3e5
NA
34832020-06-26 Nick Alcock <nick.alcock@oracle.com>
3484
3485 * configure.ac: Add --enable-libctf: handle --disable-static
3486 properly.
3487 * acinclude.m4: sinclude ../config/enable.m4.
3488 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
3489 (LIBCTF): Substitute in.
3490 (CTF_DEPS): New, likewise.
3491 (CLIBS): libctf needs symbols from libbfd: move earlier.
3492 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
3493 flags.
3494 * ctfread.c: Surround in ENABLE_LIBCTF.
3495 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
3496 * configure: Regenerate.
3497 * config.in: Likewise.
3498
58373b80
SM
34992020-06-25 Simon Marchi <simon.marchi@efficios.com>
3500
3501 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
3502
277474ee
SM
35032020-06-25 Simon Marchi <simon.marchi@efficios.com>
3504
3505 * inferior.h (struct inferior) <terminal>: Change type to
3506 gdb::unique_xmalloc_ptr<char>.
3507 * inferior.c (inferior::~inferior): Don't free inf->terminal.
3508 * infcmd.c (set_inferior_io_terminal): Don't free terminal
3509 field, adjust to unique pointer.
3510 (get_inferior_io_terminal): Adjust to unique pointer.
3511
6d74da72
AB
35122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3513
3514 * riscv-tdep.c (riscv_print_registers_info): Loop over all
3515 registers, not just the known core set of registers.
3516
2e52d038
AB
35172020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3518
3519 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
3520 fflags, frm, and fcsr registers.
3521 (riscv_register_reggroup_p): Remove unknown CSRs from save and
3522 restore groups.
3523 (riscv_tdesc_unknown_reg): New function.
3524 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
3525 tdesc_use_registers.
3526 * riscv-tdep.h (struct gdbarch_tdep): Add
3527 unknown_csrs_first_regnum, unknown_csrs_count,
3528 duplicate_fflags_regnum, duplicate_frm_regnum, and
3529 duplicate_fcsr_regnum fields.
3530
be64fd07
AB
35312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3532
3533 * target-descriptions.c (tdesc_use_registers): Add new parameter a
3534 callback, use the callback (when not null) to help number unknown
3535 registers.
3536 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
3537 (tdesc_use_registers): Add extra parameter to declaration.
3538
3b9fce96
AB
35392020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3540
3541 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
3542 in the file.
3543 (class riscv_pending_register_alias): Likewise.
3544 (riscv_register_feature::register_info): Change 'required_p' field
3545 to 'required', and change its type. Add 'check' member function.
3546 (riscv_register_feature::register_info::check): Define new member
3547 function.
3548 (riscv_xreg_feature): Change initialisation of 'required' field.
3549 (riscv_freg_feature): Likewise.
3550 (riscv_virtual_feature): Likewise.
3551 (riscv_csr_feature): Likewise.
3552 (riscv_check_tdesc_feature): Take extra parameter, the csr
3553 tdesc_feature, rewrite the function to use the new
3554 riscv_register_feature::register_info::check function.
3555 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
3556
865bad26
AB
35572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3558
3559 * features/Makefile: Remove all references to the deleted files
3560 below.
3561 * features/riscv/32bit-csr.c: Deleted.
3562 * features/riscv/32bit-csr.xml: Deleted.
3563 * features/riscv/64bit-csr.c: Deleted.
3564 * features/riscv/64bit-csr.xml: Deleted.
3565 * features/riscv/rebuild-csr-xml.sh: Deleted.
3566
ed69cbc8
AB
35672020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
3570 whitespace error for declaration of names member variable.
3571 (struct riscv_register_feature): Add new prefer_first_name member
3572 variable, and fix whitespace error in declaration of registers.
3573 (riscv_xreg_feature): Initialize prefer_first_name field.
3574 (riscv_freg_feature): Likewise.
3575 (riscv_virtual_feature): Likewise.
3576 (riscv_csr_feature): Likewise.
3577 (riscv_register_name): Expand on comments. Remove register name
3578 modifications for CSR and virtual registers.
3579
4445e8f5
AB
35802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3581
3582 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
3583 errors.
3584
767a879e
AB
35852020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
3586
3587 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
3588 riscv-opc.h.
3589 (class riscv_pending_register_alias): New class.
3590 (riscv_check_tdesc_feature): Take vector of pending aliases and
3591 populate it as appropriate.
3592 (riscv_setup_register_aliases): Delete.
3593 (riscv_gdbarch_init): Create vector of pending aliases and pass it
3594 to riscv_check_tdesc_feature in all cases. Use the vector to
3595 create the register aliases.
3596
bb6e55f3
RO
35972020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3598
3599 * sol2-tdep.c (sol2_static_transform_name): Remove.
3600 (sol2_init_abi): Don't register it.
3601 * gdbarch.sh (static_transform_name): Remove.
3602 * gdbarch.c, gdbarch.h: Regenerate.
3603
3604 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
3605 gdbarch_static_transform_name.
3606 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
3607 * stabsread.c (define_symbol) <'X'>: Remove.
3608 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
3609 handling.
3610 <'V'>: Likewise.
3611 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
3612 <'S'>: Remove call to gdbarch_static_transform_name.
3613
c6d36836
RO
36142020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3615
3616 * procfs.c (procfs_pre_trace): New function.
3617 (procfs_target::create_inferior): Pass it to fork_inferior.
3618
a7e6196b
RO
36192020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3620
3621 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
3622 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
3623 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
3624 sol2-tdep.o, sparc-sol2-tdep.o.
3625 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
3626 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
3627 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
3628 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
3629
d412e696
RO
36302020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3631
3632 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
3633 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
3634 Call sol2_init_abi.
3635 Remove calls to set_gdbarch_skip_solib_resolver,
3636 set_gdbarch_core_pid_to_str.
3637 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
3638 (i386_sol2_static_transform_name): Remove.
3639 (i386_sol2_init_abi): Call sol2_init_abi.
3640 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3641 set_gdbarch_static_transform_name,
3642 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3643 Use sol2_sigtramp_p.
3644 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
3645 (sol2_sigtramp_p): New function.
3646 (sol2_static_transform_name): New function.
3647 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
3648 (sol2_init_abi): New function.
3649 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
3650 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
3651 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
3652 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
3653 (sparc_sol2_static_transform_name): Remove.
3654 (sparc32_sol2_init_abi): Call sol2_init_abi.
3655 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3656 set_gdbarch_static_transform_name,
3657 set_gdbarch_skip_solib_resolver,
3658 set_gdbarch_core_pid_to_str.
3659 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
3660 (sparc_sol2_static_transform_name): Remove
3661 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
3662 call sol2_sigtramp_p.
3663 (sparc64_sol2_init_abi): Call sol2_init_abi.
3664 Remove calls to set_gdbarch_sofun_address_maybe_missing,
3665 set_gdbarch_static_transform_name,
3666 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
3667
a8654e7d
PW
36682020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3669
3670 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
3671 * exec.c (validate_exec_file): If from_tty, set both
3672 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
3673 * symfile.c (symbol_file_add_with_addrs): if always_confirm
3674 and from_tty, unconditionally ask a confirmation.
3675
caa7fd04
AB
36762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3677
3678 * target-descriptions.c (tdesc_architecture_name): Protect against
3679 NULL pointer dereference.
3680 (maint_print_xml_tdesc_cmd): New function.
3681 (_initialize_target_descriptions): Register new 'maint print
3682 xml-tdesc' command and give it the filename completer.
3683 * NEWS: Mention new 'maint print xml-tdesc' command.
3684
fbf42f4e
AB
36852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3686
3687 * target-descriptions.c (class tdesc_compatible_info): New class.
3688 (struct target_desc): Change type of compatible vector.
3689 (tdesc_compatible_p): Update for change in type of
3690 target_desc::compatible.
3691 (tdesc_compatible_info_list): New function.
3692 (tdesc_compatible_info_arch_name): New function.
3693 (tdesc_add_compatible): Update for change in type of
3694 target_desc::compatible.
3695 (print_c_tdesc::visit_pre): Likewise.
3696
20821f4e
AB
36972020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3698
3699 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
3700 whitespace to underscore.
3701 (maint_print_c_tdesc_cmd): Use fake filename for target
3702 descriptions that came from the target.
3703 (_initialize_target_descriptions): Add filename command completion
3704 for 'maint print c-tdesc'.
3705
1fb5ee62
SM
37062020-06-23 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
3709 lines.
3710
fc3ecb3e
SM
37112020-06-23 Simon Marchi <simon.marchi@efficios.com>
3712
3713 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
3714 lines.
3715 (dwarf2_find_location_expression): Likewise.
3716 (call_site_parameter_matches): Likewise.
3717 (dwarf2_compile_expr_to_ax): Likewise.
3718 (disassemble_dwarf_expression): Likewise.
3719 (loclist_describe_location): Likewise.
3720
236ef034
PA
37212020-06-23 Pedro Alves <palves@redhat.com>
3722
3723 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
3724 progspace-and-thread.h. Include scoped-mock-context.h instead.
3725 (register_to_value_test): Use scoped_mock_context.
3726 * regcache.c: Include "scoped-mock-context.h".
3727 (cooked_read_test): Don't error out if a target is already pushed.
3728 Use scoped_mock_context. Adjust.
3729 * scoped-mock-context.h: New file.
3730
39e7ecca
AB
37312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3732
3733 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
3734 initializer.
3735 (ada_language::is_string_type_p): New member function.
3736 * c-lang.c (c_language_data): Delete la_is_string_type_p
3737 initializer.
3738 (cplus_language_data): Likewise.
3739 (asm_language_data): Likewise.
3740 (minimal_language_data): Likewise.
3741 * d-lang.c (d_language_data): Likewise.
3742 * f-lang.c (f_is_string_type_p): Delete function, implementation
3743 moved to f_language::is_string_type_p.
3744 (f_language_data): Delete la_is_string_type_p initializer.
3745 (f_language::is_string_type_p): New member function,
3746 implementation from f_is_string_type_p.
3747 * go-lang.c (go_is_string_type_p): Delete function, implementation
3748 moved to go_language::is_string_type_p.
3749 (go_language_data): Delete la_is_string_type_p initializer.
3750 (go_language::is_string_type_p): New member function,
3751 implementation from go_is_string_type_p.
3752 * language.c (language_defn::is_string_type_p): Define new member
3753 function.
3754 (default_is_string_type_p): Make static, add comment copied from
3755 header file.
3756 (unknown_language_data): Delete la_is_string_type_p initializer.
3757 (unknown_language::is_string_type_p): New member function.
3758 (auto_language_data): Delete la_is_string_type_p initializer.
3759 (auto_language::is_string_type_p): New member function.
3760 * language.h (language_data): Delete la_is_string_type_p field.
3761 (language_defn::is_string_type_p): Declare new function.
3762 (default_is_string_type_p): Delete desclaration, move comment to
3763 definition.
3764 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
3765 moved to m2_language::is_string_type_p.
3766 (m2_language_data): Delete la_is_string_type_p initializer.
3767 (m2_language::is_string_type_p): New member function,
3768 implementation from m2_is_string_type_p.
3769 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
3770 initializer.
3771 * opencl-lang.c (opencl_language_data): Likewise.
3772 * p-lang.c (pascal_is_string_type_p): Delete function,
3773 implementation moved to pascal_language::is_string_type_p.
3774 (pascal_language_data): Delete la_is_string_type_p initializer.
3775 (pascal_language::is_string_type_p): New member function,
3776 implementation from pascal_is_string_type_p.
3777 * rust-lang.c (rust_is_string_type_p): Delete function,
3778 implementation moved to rust_language::is_string_type_p.
3779 (rust_language_data): Delete la_is_string_type_p initializer.
3780 (rust_language::is_string_type_p): New member function,
3781 implementation from rust_is_string_type_p.
3782 * valprint.c (val_print_scalar_or_string_type_p): Update call to
3783 is_string_type_p.
3784
4ffc13fb
AB
37852020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3786
3787 * ada-lang.c (ada_language_data): Delete la_print_typedef
3788 initializer.
3789 (ada_language::print_typedef): New member function.
3790 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
3791 (cplus_language_data): Likewise.
3792 (asm_language_data): Likewise.
3793 (minimal_language_data): Likewise.
3794 * d-lang.c (d_language_data): Likewise.
3795 * f-lang.c (f_language_data): Likewise.
3796 (f_language::print_typedef): New member function.
3797 * go-lang.c (go_language_data): Delete la_print_typedef
3798 initializer.
3799 * language.c (language_defn::print_typedef): Define member
3800 function.
3801 (unknown_language_data): Delete la_print_typedef initializer.
3802 (unknown_language::print_typedef): New member function.
3803 (auto_language_data): Delete la_print_typedef initializer.
3804 (auto_language::print_typedef): New member function.
3805 * language.h (language_data): Delete la_print_typedef field.
3806 (language_defn::print_typedef): Declare new member function.
3807 (LA_PRINT_TYPEDEF): Update call to print_typedef.
3808 (default_print_typedef): Delete declaration.
3809 * m2-lang.c (m2_language_data): Delete la_print_typedef
3810 initializer.
3811 (m2_language::print_typedef): New member function.
3812 * objc-lang.c (objc_language_data): Delete la_print_typedef
3813 initializer.
3814 * opencl-lang.c (opencl_language_data): Likewise.
3815 * p-lang.c (pascal_language_data): Likewise.
3816 (pascal_language::print_typedef): New member function.
3817 * rust-lang.c (rust_print_typedef): Delete function,
3818 implementation moved to rust_language::print_typedef.
3819 (rust_language): Delete la_print_typedef initializer.
3820 (rust_language::print_typedef): New member function,
3821 implementation from rust_print_typedef.
3822 * typeprint.c (default_print_typedef): Delete.
3823
d711ee67
AB
38242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3825
3826 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
3827 (ada_language::printstr): New member function.
3828 * c-lang.c (c_language_data): Delete la_printstr initializer.
3829 (cplus_language_data): Likewise.
3830 (asm_language_data): Likewise.
3831 (minimal_language_data): Likewise.
3832 * d-lang.c (d_language_data): Likewise.
3833 * f-lang.c (f_printstr): Rename to f_language::printstr.
3834 (f_language_data): Delete la_printstr initializer.
3835 (f_language::printstr): New member function, implementation from
3836 f_printstr.
3837 * go-lang.c (go_language_data): Delete la_printstr initializer.
3838 * language.c (language_defn::printstr): Define new member
3839 function.
3840 (unk_lang_printstr): Delete.
3841 (unknown_language_data): Delete la_printstr initializer.
3842 (unknown_language::printstr): New member function.
3843 (auto_language_data): Delete la_printstr initializer.
3844 (auto_language::printstr): New member function.
3845 * language.h (language_data): Delete la_printstr field.
3846 (language_defn::printstr): Declare new member function.
3847 (LA_PRINT_STRING): Update call to printstr.
3848 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
3849 (m2_language_data): Delete la_printstr initializer.
3850 (m2_language::printstr): New member function, implementation from
3851 m2_printstr.
3852 * objc-lang.c (objc_language_data): Delete la_printstr
3853 initializer.
3854 * opencl-lang.c (opencl_language_data): Likewise.
3855 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
3856 (pascal_language_data): Delete la_printstr initializer.
3857 (pascal_language::printstr): New member function, implementation
3858 from pascal_printstr.
3859 * p-lang.h (pascal_printstr): Delete declaration.
3860 * rust-lang.c (rust_printstr): Update header comment.
3861 (rust_language_data): Delete la_printstr initializer.
3862 (rust_language::printstr): New member function.
3863
52b50f2c
AB
38642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3865
3866 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
3867 (ada_language::printchar): New member function.
3868 * c-lang.c (c_language_data): Delete la_printchar initializer.
3869 (cplus_language_data): Likewise.
3870 (asm_language_data): Likewise.
3871 (minimal_language_data): Likewise.
3872 * d-lang.c (d_language_data): Likewise.
3873 * f-lang.c (f_printchar): Rename to f_language::printchar.
3874 (f_language_data): Delete la_printchar initializer.
3875 (f_language::printchar): New member function, implementation from
3876 f_printchar.
3877 * go-lang.c (go_language_data): Delete la_printchar initializer.
3878 * language.c (unk_lang_printchar): Delete.
3879 (language_defn::printchar): Define new member function.
3880 (unknown_language_data): Delete la_printchar initializer.
3881 (unknown_language::printchar): New member function.
3882 (auto_language_data): Delete la_printchar initializer.
3883 (auto_language::printchar): New member function.
3884 * language.h (language_data): Delete la_printchar field.
3885 (language_defn::printchar): Declare new member function.
3886 (LA_PRINT_CHAR): Update call to printchar.
3887 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
3888 (m2_language::printchar): New member function.
3889 * objc-lang.c (objc_language_data): Delete la_printchar
3890 initializer.
3891 * opencl-lang.c (opencl_language_data): Likewise.
3892 * p-lang.c (pascal_language_data): Delete la_printchar
3893 initializer.
3894 (pascal_language::printchar): New member function.
3895 * rust-lang.c (rust_printchar): Rename to
3896 rust_language::printchar.
3897 (rust_language_data): Delete la_printchar initializer.
3898 (rust_language::printchar): New member function, implementation
3899 from rust_printchar.
3900
ec8cec5b
AB
39012020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3902
3903 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
3904 (ada_language_data): Delete la_emitchar initializer.
3905 (ada_language::emitchar): New member function, implementation from
3906 emit_char.
3907 * c-lang.c (c_language_data): Delete la_emitchar initializer.
3908 (cplus_language_data): Likewise.
3909 (asm_language_data): Likewise.
3910 (minimal_language_data): Likewise.
3911 * d-lang.c (d_language_data): Likewise.
3912 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
3913 (f_language_data): Delete la_emitchar initializer.
3914 (f_language::emitchar): New member function, implementation from
3915 f_emit_char.
3916 * go-lang.c (go_language_data): Delete la_emitchar initializer.
3917 * language.c (unk_lang_emit_char): Delete.
3918 (language_defn::emitchar): New member function definition.
3919 (unknown_language_data): Delete la_emitchar initializer.
3920 (unknown_language::emitchar): New member function.
3921 (auto_language_data): Delete la_emitchar initializer.
3922 (auto_language::emitchar): New member function.
3923 * language.h (language_data): Delete la_emitchar field.
3924 (language_defn::emitchar): New member field declaration.
3925 (LA_EMIT_CHAR): Update call to emitchar.
3926 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
3927 (m2_language_data): Delete la_emitchar initializer.
3928 (m2_language::emitchar): New member function, implementation from
3929 m2_emit_char.
3930 * objc-lang.c (objc_language_data): Delete la_emitchar
3931 initializer.
3932 * opencl-lang.c (opencl_language_data): Likewise.
3933 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
3934 (pascal_language_data): Delete la_emitchar initializer.
3935 (pascal_language::emitchar): New member function, implementation
3936 from pascal_emit_char.
3937 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
3938 (rust_language_data): Delete la_emitchar initializer.
3939 (rust_language::emitchar): New member function, implementation
3940 from rust_emitchar.
3941
1bf9c363
AB
39422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3943
3944 * ada-lang.c (resolve): Rename to ada_language::post_parser.
3945 (ada_language_data): Delete la_post_parser initializer.
3946 (ada_language::post_parser): New member function.
3947 * c-lang.c (c_language_data): Delete la_post_parser initializer.
3948 (cplus_language_data): Likewise.
3949 (asm_language_data): Likewise.
3950 (minimal_language_data): Likewise.
3951 * d-lang.c (d_language_data): Likewise.
3952 * f-lang.c (f_language_data): Likewise.
3953 * go-lang.c (go_language_data): Likewise.
3954 * language.c (unknown_language_data): Likewise.
3955 (auto_language_data): Likewise.
3956 * language.h (language_data): Delete la_post_parser field.
3957 (language_defn::post_parser): New member function.
3958 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
3959 * objc-lang.c (objc_language_data): Likewise.
3960 * opencl-lang.c (opencl_language_data): Likewise.
3961 * p-lang.c (pascal_language_data): Likewise.
3962 * parse.c (parse_exp_in_context): Update call to post_parser.
3963 (null_post_parser): Delete definition.
3964 * parser-defs.h (null_post_parser): Delete declaration.
3965 * rust-lang.c (rust_language_data): Delete la_post_parser
3966 initializer.
3967
87afa652
AB
39682020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
3969
3970 * ada-lang.c (parse): Rename to ada_language::parser.
3971 (ada_language_data): Delete la_parser initializer.
3972 (ada_language::parser): New member function, implementation from
3973 parse.
3974 * c-lang.c (c_language_data): Delete la_parser initializer.
3975 (cplus_language_data): Likewise.
3976 (asm_language_data): Likewise.
3977 (minimal_language_data): Likewise.
3978 * d-lang.c (d_language_data): Likewise.
3979 (d_language::parser): New member function.
3980 * f-lang.c (f_language_data): Delete la_parser initializer.
3981 (f_language::parser): New member function.
3982 * go-lang.c (go_language_data): Delete la_parser initializer.
3983 (go_language::parser): New member function.
3984 * language.c (unk_lang_parser): Delete.
3985 (language_defn::parser): Define new member function.
3986 (unknown_language_data): Delete la_parser initializer.
3987 (unknown_language::parser): New member function.
3988 (auto_language_data): Delete la_parser initializer.
3989 (auto_language::parser): New member function.
3990 * language.h (language_data): Delete la_parser field.
3991 (language_defn::parser): Declare new member function.
3992 * m2-lang.c (m2_language_data): Delete la_parser initializer.
3993 (m2_language::parser): New member function.
3994 * objc-lang.c (objc_language_data): Delete la_parser initializer.
3995 * opencl-lang.c (opencl_language_data): Likewise.
3996 * p-lang.c (pascal_language_data): Likewise.
3997 (pascal_language::parser): New member function.
3998 * parse.c (parse_exp_in_context): Update call to parser.
3999 * rust-lang.c (rust_language_data): Delete la_parser initializer.
4000 (rust_language::parser): New member function.
4001
37825800
AB
40022020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
4003
4004 * top.c (print_gdb_configuration): Print --with-python-libdir
4005 configuration value.
4006
5b860c93
PW
40072020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4008
4009 * NEWS: Mention change to the alias command.
4010
cf00cd6f
PW
40112020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4012
4013 * cli/cli-cmds.c (lookup_cmd_for_default_args)
4014 (alias_command_completer)
4015 (make_alias_options_def_group): New functions.
4016 (alias_opts, alias_option_defs): New struct and array.
4017 (alias_usage_error): Update usage.
4018 (alias_command): Handles optional DEFAULT-ARGS... arguments.
4019 Use option framework.
4020 (_initialize_cli_cmds): Update alias command help.
4021 Update aliases command help.
4022 (show_user):
4023 Add NULL for new default_args lookup_cmd argument.
4024 (valid_command_p): Rename to validate_aliased_command.
4025 Add NULL for new default_args lookup_cmd argument. Verify that the
4026 aliased_command has no default args.
4027 * cli/cli-decode.c (help_cmd): Show aliases definitions.
4028 (lookup_cmd_1, lookup_cmd): New argument default_args.
4029 (add_alias_cmd):
4030 Add NULL for new default_args lookup_cmd argument.
4031 (print_help_for_command): Show default args under the layout
4032 alias some_alias = some_aliased_cmd some_alias_default_arg.
4033 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
4034 xfree default_args in destructor.
4035 * cli/cli-script.c (process_next_line, do_define_command):
4036 Add NULL for new default_args lookup_cmd argument.
4037 * command.h: Declare new default_args argument in lookup_cmd
4038 and lookup_cmd_1.
4039 * completer.c (complete_line_internal_1):
4040 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4041 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
4042 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
4043 Likewise.
4044 * infcmd.c (_initialize_infcmd): Likewise.
4045 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
4046 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
4047 * python/py-param.c (add_setshow_generic): Likewise.
4048 * remote.c (_initialize_remote): Likewise.
4049 * top.c (execute_command): Prepend default_args if command has some.
4050 (set_verbose):
4051 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4052 * tracepoint.c (validate_actionline, encode_actions_1):
4053 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
4054
bd920864
TBA
40552020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4056
4057 * jit.c (jit_read_descriptor): Use bool as the return type.
4058 (jit_breakpoint_re_set_internal): Use bool as the return type.
4059 Invert the return value logic; return true if the jit breakpoint
4060 has been successfully initialized.
4061 (jit_inferior_init): Update the call to
4062 jit_breakpoint_re_set_internal.
4063
f8098322
PA
40642020-06-22 Pedro Alves <palves@redhat.com>
4065
4066 PR gdb/25939
4067 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
4068 Use the current inferior instead. Don't return
4069 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
4070 wait again.
4071 * sol-thread.c (sol_thread_target::wait): Don't reference
4072 inferior_ptid.
4073 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
4074 (sol_update_thread_list_callback): Use the current inferior's pid
4075 instead of inferior_ptid.
4076
196535a6
RO
40772020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4078
4079 * procfs.c: Cleanup many comments.
4080
4081 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
4082 (AFTER_WATCHFLAG): Replace by value.
4083
4084 (MAIN_PROC_NAME_FORMAT): Inline ...
4085 (create_procinfo): ... here.
4086
4087 (procfs_debug_inferior): Remove SYS_exec handling.
4088 (syscall_is_exec): Likewise.
4089 (procfs_set_exec_trap): Likewise.
4090
4091 (syscall_is_lwp_exit): Inline in callers.
4092 (syscall_is_exit): Likewise.
4093 (syscall_is_exec): Likewise.
4094 (syscall_is_lwp_create): Likewise.
4095
4096 (invalidate_cache): Remove #if 0 code.
4097
4098 (make_signal_thread_runnable): Remove.
4099 (procfs_target::resume): Remove #if 0 code.
4100
cf6f3e86
RO
41012020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4102
4103 PR gdb/25939
4104 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
4105 call ...
4106 (procfs_target::create_inferior): ... here.
4107
48e9cc84
PW
41082020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4109
4110 * exec.c (validate_exec_file): Ensure the build-id is up to
4111 date by calling reopen_exec_file (that checks file timestamp
4112 to decide to re-read the file).
4113
3922b302
PA
41142020-06-18 Pedro Alves <palves@redhat.com>
4115
4116 PR gdb/25412
4117 * gdbthread.h (delete_thread, delete_thread_silent)
4118 (find_thread_ptid): Update comments.
4119 * thread.c (current_thread_): New global.
4120 (is_current_thread): Move higher, and reimplement.
4121 (inferior_thread): Reimplement.
4122 (set_thread_exited): Use bool. Add assertions.
4123 (add_thread_silent): Simplify thread-reuse handling by always
4124 calling delete_thread.
4125 (delete_thread): Remove intro comment.
4126 (find_thread_ptid): Skip exited threads.
4127 (switch_to_thread_no_regs): Write to current_thread_.
4128 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
4129 INFERIOR_PTID. Clear current_thread_.
4130
6dbdab44
PA
41312020-06-18 Pedro Alves <palves@redhat.com>
4132
4133 * aix-thread.c (pd_update): Use switch_to_thread.
4134
2da4b788
PA
41352020-06-18 Pedro Alves <palves@redhat.com>
4136
4137 * ravenscar-thread.c (ravenscar_thread_target): Update.
4138 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
4139 (ravenscar_thread_target::add_active_thread): ... this. Don't
4140 set m_base_ptid here. Update to avoid referencing inferior_ptid.
4141 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
4142
50838d1b
PA
41432020-06-18 Pedro Alves <palves@redhat.com>
4144
4145 * nat/windows-nat.c (current_windows_thread): Remove.
4146 * nat/windows-nat.h (current_windows_thread): Remove.
4147 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
4148 Adjust.
4149 (display_selectors): Adjust to fetch the current
4150 windows_thread_info based on inferior_ptid.
4151 (fake_create_process): No longer write to current_windows_thread.
4152 (windows_nat_target::get_windows_debug_event):
4153 Don't set inferior_ptid or current_windows_thread.
4154 (windows_nat_target::wait): Adjust to not rely on
4155 current_windows_thread.
4156 (do_initial_windows_stuff): Now a method of windows_nat_target.
4157 Switch to the last_ptid thread.
4158 (windows_nat_target::attach): Adjust.
4159 (windows_nat_target::detach): Use switch_to_no_thread instead of
4160 writing to inferior_ptid directly.
4161 (windows_nat_target::create_inferior): Adjust.
4162
31ce04e9
PA
41632020-06-18 Pedro Alves <palves@redhat.com>
4164
4165 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
4166
1ee1a363
PA
41672020-06-18 Pedro Alves <palves@redhat.com>
4168
4169 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
4170 after creating it, instead of writing to inferior_ptid. Don't
4171 write to inferior_ptid.
4172
6d350754
PA
41732020-06-18 Pedro Alves <palves@redhat.com>
4174
4175 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
4176
5d971d48
PA
41772020-06-18 Pedro Alves <palves@redhat.com>
4178
4179 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
4180 it, instead of writing to inferior_ptid.
4181
86e57d1b
PA
41822020-06-18 Pedro Alves <palves@redhat.com>
4183
4184 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
4185 to inferior_ptid.
4186
f2e1c129
PA
41872020-06-18 Pedro Alves <palves@redhat.com>
4188
4189 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
4190 instead of writing to inferior_ptid directly.
4191
60db1b85
PA
41922020-06-18 Pedro Alves <palves@redhat.com>
4193
4194 * corelow.c (core_target::close): Use switch_to_no_thread instead
4195 of writing to inferior_ptid directly.
4196 (add_to_thread_list, core_target_open): Use switch_to_thread
4197 instead of writing to inferior_ptid directly.
4198
fe7d6a8d
PA
41992020-06-18 Pedro Alves <palves@redhat.com>
4200
4201 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
4202 inferior_ptid.
4203 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
4204 inferior_ptid.
4205 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
4206 inferior_ptid directly.
4207 (darwin_nat_target::init_thread_list): Switch to thread, instead
4208 of writing to inferior_ptid.
4209 (darwin_nat_target::attach): Don't write to inferior_ptid.
4210 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
4211
975f8708
PA
42122020-06-18 Pedro Alves <palves@redhat.com>
4213
4214 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
4215 thread.
4216 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
4217 Instead use switch_to_thread.
4218 (gnu_nat_target::detach): Use switch_to_no_thread
4219 instead of writing to inferior_ptid directly. Used passed-in
4220 inferior instead of looking up the inferior by pid.
4221
1a204730
PA
42222020-06-18 Pedro Alves <palves@redhat.com>
4223
4224 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
4225 inferior_ptid.
4226
ebe84f23
PA
42272020-06-18 Pedro Alves <palves@redhat.com>
4228
4229 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
4230 inferior_ptid.
4231 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
4232 thread.
4233 (nto_procfs_target::detach): Avoid referencing
4234 inferior_ptid. Use switch_to_no_thread instead of writing to
4235 inferior_ptid directly.
4236 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
4237 instead of writing to inferior_ptid directly.
4238 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
4239 to thread.
4240
191f02e5
PA
42412020-06-18 Pedro Alves <palves@redhat.com>
4242
4243 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
4244 after creating it, instead of writing to inferior_ptid.
4245 (gdbsim_target_open): Use switch_to_no_thread instead of writing
4246 to inferior_ptid directly.
4247 (gdbsim_target::wait): Don't write to inferior_ptid.
4248
0ac55310
PA
42492020-06-18 Pedro Alves <palves@redhat.com>
4250
4251 * remote.c (remote_target::remote_notice_new_inferior): Use
4252 switch_to_thread instead of writing to inferior_ptid directly.
4253 (remote_target::add_current_inferior_and_thread): Use
4254 switch_to_no_thread instead of writing to inferior_ptid directly.
4255 (extended_remote_target::attach): Use switch_to_inferior_no_thread
4256 and switch_to_thread instead of using set_current_inferior or
4257 writing to inferior_ptid directly.
4258
5233f39b
PA
42592020-06-18 Pedro Alves <palves@redhat.com>
4260
4261 * tracectf.c (ctf_target_open): Switch to added thread instead of
4262 writing to inferior_ptid directly.
4263 (ctf_target::close): Use switch_to_no_thread instead of writing to
4264 inferior_ptid directly.
4265
087e161b
PA
42662020-06-18 Pedro Alves <palves@redhat.com>
4267
4268 * tracefile-tfile.c (tfile_target_open): Don't write to
4269 inferior_ptid directly, instead switch to added thread.
4270 (tfile_target::close): Use switch_to_no_thread instead of writing
4271 to inferior_ptid directly.
4272
7fb43e53
PA
42732020-06-18 Pedro Alves <palves@redhat.com>
4274
4275 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
4276 (procfs_target::detach): Use switch_to_no_thread
4277 instead of writing to inferior_ptid directly.
4278 (do_attach): Change return type to void. Switch to the added
4279 thread.
4280 (procfs_target::create_inferior): Switch to the added thread.
4281 (procfs_do_thread_registers): Don't write to inferior_ptid.
4282
18493a00
PA
42832020-06-18 Pedro Alves <palves@redhat.com>
4284
4285 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
4286 of writing to inferior_ptid.
4287 (scoped_restore_exited_inferior): Delete.
4288 (handle_vfork_child_exec_or_exit): Simplify using
4289 scoped_restore_current_pspace_and_thread. Use switch_to_thread
4290 instead of writing to inferior_ptid.
4291 (THREAD_STOPPED_BY): Delete.
4292 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4293 (thread_stopped_by_hw_breakpoint): Delete.
4294 (save_waitstatus): Use
4295 scoped_restore_current_thread+switch_to_thread, and call
4296 target_stopped_by_watchpoint instead of
4297 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
4298 instead of thread_stopped_by_sw_breakpoint, and
4299 target_stopped_by_hw_breakpoint instead of
4300 thread_stopped_by_hw_breakpoint.
4301 (handle_inferior_event)
4302 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
4303 inferior_ptid directly, nor
4304 set_current_inferior/set_current_program_space. Use
4305 switch_to_thread / switch_to_inferior_no_thread instead.
4306
a0776b13
PA
43072020-06-18 Pedro Alves <palves@redhat.com>
4308
4309 * target.c (generic_mourn_inferior): Use switch_to_no_thread
4310 instead of writing to inferior_ptid.
4311
6155c136
PA
43122020-06-18 Pedro Alves <palves@redhat.com>
4313
4314 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
4315 added thread.
4316 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
4317 to the added thread.
4318 (inf_ptrace_target::detach_success): Use switch_to_no_thread
4319 instead of writing to inferior_ptid.
4320
c5316fc6
PA
43212020-06-18 Pedro Alves <palves@redhat.com>
4322
4323 * gdbarch-selftests.c: Include "progspace-and-thread.h".
4324 (register_to_value_test): Mock a program_space too. Heap-allocate
4325 the address space. Don't write to inferior_ptid. Use
4326 switch_to_thread instead.
4327
8df01799
PA
43282020-06-18 Pedro Alves <palves@redhat.com>
4329
4330 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
4331 Delete.
4332 (find_signalled_thread()): New, factored out from
4333 linux_make_corefile_notes and adjusted to handle exited threads.
4334 (linux_make_corefile_notes): Adjust to use the new
4335 find_signalled_thread.
4336
41792d68
PA
43372020-06-18 Pedro Alves <palves@redhat.com>
4338
4339 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
4340 of saving/restoring inferior_ptid.
4341
612f258a
TT
43422020-06-17 Tom Tromey <tom@tromey.com>
4343
4344 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
4345 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
4346 declare.
4347 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
4348
efb763a5
SM
43492020-06-15 Simon Marchi <simon.marchi@efficios.com>
4350
4351 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
4352 of partial symtabs.
4353
2951f6c0
SM
43542020-06-17 Simon Marchi <simon.marchi@efficios.com>
4355
4356 * regformats/reg-arm.dat: Remove.
4357 * regformats/reg-bfin.dat: Remove.
4358 * regformats/reg-cris.dat: Remove.
4359 * regformats/reg-crisv32.dat: Remove.
4360 * regformats/reg-m32r.dat: Remove.
4361 * regformats/reg-tilegx.dat: Remove.
4362 * regformats/reg-tilegx32.dat: Remove.
4363
7d458ea5
SM
43642020-06-17 Simon Marchi <simon.marchi@efficios.com>
4365
4366 * features/Makefile (WHICH): Remove arm files.
4367 * regformats/arm/arm-with-iwmmxt.dat: Remove.
4368 * regformats/arm/arm-with-neon.dat: Remove.
4369 * regformats/arm/arm-with-vfpv2.dat: Remove.
4370 * regformats/arm/arm-with-vfpv3.dat: Remove.
4371
3af96c0d
SM
43722020-06-17 Simon Marchi <simon.marchi@efficios.com>
4373
4374 * features/Makefile (XMLTOC): Remove rx.xml.
4375
b25e22fd
PA
43762020-06-17 Pedro Alves <palves@redhat.com>
4377
4378 * gdbthread.h (thread_control_state) <trap_expected> Update
4379 comments.
4380
a78a19b1
AB
43812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4382
4383 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
4384 ada_language::lookup_symbol_nonlocal.
4385 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
4386 (ada_language::lookup_symbol_nonlocal): New member function,
4387 implementation from ada_lookup_symbol_nonlocal.
4388 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
4389 initializer.
4390 (cplus_language_data): Delete la_lookup_symbol_nonlocal
4391 initializer.
4392 (cplus_language::lookup_symbol_nonlocal): New member function.
4393 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
4394 (minimal_language_data) Likewise.
4395 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
4396 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
4397 initializer.
4398 (d_language::lookup_symbol_nonlocal): New member function.
4399 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
4400 initializer.
4401 (f_language::lookup_symbol_nonlocal): New member function.
4402 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
4403 initializer.
4404 * language.c (unknown_language_data): Likewise.
4405 (auto_language_data): Likewise.
4406 * language.h (language_data): Delete la_lookup_symbol_nonlocal
4407 field.
4408 (language_defn::lookup_symbol_nonlocal): New member function.
4409 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
4410 initializer.
4411 * objc-lang.c (objc_language_data): Likewise.
4412 * opencl-lang.c (opencl_language_data): Likewise.
4413 * p-lang.c (pascal_language_data): Likewise.
4414 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
4415 rust_language::lookup_symbol_nonlocal.
4416 (rust_language_data): Delete la_lookup_symbol_nonlocal
4417 initializer.
4418 (rust_language::lookup_symbol_nonlocal): New member function,
4419 implementation from rust_lookup_symbol_nonlocal.
4420 * symtab.c (lookup_symbol_aux): Update call to
4421 lookup_symbol_nonlocal.
4422 (basic_lookup_symbol_nonlocal): Rename to...
4423 (language_defn::lookup_symbol_nonlocal): ...this, and update
4424 header comment. Remove language_defn parameter, and replace with
4425 uses of `this'.
4426 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
4427
ebe2334e
AB
44282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4429
4430 * ada-lang.c (ada_language_data): Delete la_value_print_inner
4431 initializer.
4432 (ada_language::value_print_inner): New member function.
4433 * c-lang.c (c_language_data): Delete la_value_print_inner
4434 initializer.
4435 (cplus_language_data): Likewise.
4436 (asm_language_data): Likewise.
4437 (minimal_language_data): Likewise.
4438 * d-lang.c (d_language_data): Likewise.
4439 (d_language::value_print_inner): New member function.
4440 * f-lang.c (f_language_data): Delete la_value_print_inner
4441 initializer.
4442 (f_language::value_print_inner): New member function.
4443 * f-lang.h (f_value_print_innner): Rename to...
4444 (f_value_print_inner): ...this (note spelling of 'inner').
4445 * f-valprint.c (f_value_print_innner): Rename to...
4446 (f_value_print_inner): ...this (note spelling of 'inner').
4447 * go-lang.c (go_language_data): Delete la_value_print_inner
4448 initializer.
4449 (go_language::value_print_inner): New member function.
4450 * language.c (language_defn::value_print_inner): Define new member
4451 function.
4452 (unk_lang_value_print_inner): Delete.
4453 (unknown_language_data): Delete la_value_print_inner initializer.
4454 (unknown_language::value_print_inner): New member function.
4455 (auto_language_data): Delete la_value_print_inner initializer.
4456 (auto_language::value_print_inner): New member function.
4457 * language.h (language_data): Delete la_value_print_inner field.
4458 (language_defn::value_print_inner): Delcare new member function.
4459 * m2-lang.c (m2_language_data): Delete la_value_print_inner
4460 initializer.
4461 (m2_language::value_print_inner): New member function.
4462 * objc-lang.c (objc_language_data): Delete la_value_print_inner
4463 initializer.
4464 * opencl-lang.c (opencl_language_data): Likewise.
4465 * p-lang.c (pascal_language_data): Likewise.
4466 (pascal_language::value_print_inner): New member function.
4467 * rust-lang.c (rust_language_data): Delete la_value_print_inner
4468 initializer.
4469 (rust_language::value_print_inner): New member function.
4470 * valprint.c (do_val_print): Update call to value_print_inner.
4471
a1d1fa3e
AB
44722020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4473
4474 * ada-lang.c (ada_language_data): Delete la_value_print
4475 initializer.
4476 (ada_language::value_print): New member function.
4477 * c-lang.c (c_language_data): Delete la_value_print initializer.
4478 (cplus_language_data): Likewise.
4479 (asm_language_data): Likewise.
4480 (minimal_language_data): Likewise.
4481 * d-lang.c (d_language_data): Likewise.
4482 * f-lang.c (f_language_data): Likewise.
4483 * go-lang.c (go_language_data): Likewise.
4484 * language.c (unk_lang_value_print): Delete.
4485 (language_defn::value_print): Define new member function.
4486 (unknown_language_data): Delete la_value_print initializer.
4487 (unknown_language::value_print): New member function.
4488 (auto_language_data): Delete la_value_print initializer.
4489 (auto_language::value_print): New member function.
4490 * language.h (language_data): Delete la_value_print field.
4491 (language_defn::value_print): Declare new member function.
4492 (LA_VALUE_PRINT): Update call to value_print.
4493 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
4494 * objc-lang.c (objc_language_data): Likewise.
4495 * opencl-lang.c (opencl_language_data): Likewise.
4496 * p-lang.c (pascal_language_data): Likewise.
4497 (pascal_language::value_print): New member function.
4498 * rust-lang.c (rust_language_data): Delete la_value_print
4499 initializer.
4500
f16a9f57
AB
45012020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4502
4503 * ada-lang.c (ada_watch_location_expression): Rename to
4504 ada_language::watch_location_expression.
4505 (ada_language_data): Delete la_watch_location_expression
4506 initializer.
4507 (ada_language::watch_location_expression): New member function,
4508 implementation from ada_watch_location_expression.
4509 * breakpoint.c (watch_command_1): Update call to
4510 watch_location_expression.
4511 * c-lang.c (c_watch_location_expression): Rename to
4512 language_defn::watch_location_expression.
4513 (c_language_data): Delete la_watch_location_expression
4514 initializer.
4515 (cplus_language_data): Likewise.
4516 (asm_language_data): Likewise.
4517 (minimal_language_data): Likewise.
4518 * c-lang.h (c_watch_location_expression): Delete declaration.
4519 * d-lang.c (d_language_data): Delete la_watch_location_expression
4520 initializer.
4521 * f-lang.c (f_language_data): Likewise.
4522 * go-lang.c (go_language_data): Likewise.
4523 * language.c (language_defn::watch_location_expression): Member
4524 function implementation from c_watch_location_expression.
4525 (unknown_language_data): Delete la_watch_location_expression
4526 initializer.
4527 (auto_language_data): Likewise.
4528 * language.h (language_data): Delete la_watch_location_expression
4529 field.
4530 (language_defn::watch_location_expression): Declare new member
4531 function.
4532 * m2-lang.c (m2_language_data): Delete
4533 la_watch_location_expression initializer.
4534 * objc-lang.c (objc_language_data): Likewise.
4535 * opencl-lang.c (opencl_language_data): Likewise.
4536 * p-lang.c (pascal_language_data): Likewise.
4537 * rust-lang.c (rust_watch_location_expression): Rename to
4538 rust_language::watch_location_expression.
4539 (rust_language_data): Delete la_watch_location_expression
4540 initializer.
4541 (rust_language::watch_location_expression): New member function,
4542 implementation from rust_watch_location_expression.
4543
7e56227d
AB
45442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4545
4546 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
4547 ada_language::collect_symbol_completion_matches.
4548 (ada_language_data): Delete la_collect_symbol_completion_matches
4549 initializer.
4550 (ada_language::collect_symbol_completion_matches): New member
4551 function, implementation from
4552 ada_collect_symbol_completion_matches.
4553 * c-lang.c (c_language_data): Delete
4554 la_collect_symbol_completion_matches initializer.
4555 (cplus_language_data): Likewise.
4556 (asm_language_data): Likewise.
4557 (minimal_language_data): Likewise.
4558 * d-lang.c (d_language_data): Likewise.
4559 * f-lang.c (f_collect_symbol_completion_matches): Rename to
4560 f_language::collect_symbol_completion_matches.
4561 (f_language_data): Delete la_collect_symbol_completion_matches
4562 initializer.
4563 (f_language::collect_symbol_completion_matches) New member
4564 function, implementation from f_collect_symbol_completion_matches.
4565 * go-lang.c (go_language_data): Delete
4566 la_collect_symbol_completion_matches initializer.
4567 * language.c (unknown_language_data): Likewise.
4568 (auto_language_data): Likewise.
4569 * language.h (language_data): Delete
4570 la_collect_symbol_completion_matches field.
4571 (language_defn::collect_symbol_completion_matches): New member
4572 function.
4573 * m2-lang.c (m2_language_data): Delete
4574 la_collect_symbol_completion_matches initializer.
4575 * objc-lang.c (objc_language_data): Likewise.
4576 * opencl-lang.c (opencl_language_data): Likewise.
4577 * p-lang.c (pascal_language_data): Likewise.
4578 * rust-lang.c (rust_language_data): Likewise.
4579 * symtab.c (default_collect_symbol_completion_matches): Delete.
4580 (collect_symbol_completion_matches): Update call to
4581 collect_symbol_completion_matches.
4582 (collect_symbol_completion_matches_type): Likewise.
4583 * symtab.h (default_collect_symbol_completion_matches): Delete
4584 declaration.
4585
53fc67f8
AB
45862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4587
4588 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
4589 (ada_language_data): Delete la_word_break_characters initializer.
4590 (ada_language::word_break_characters): New member function.
4591 * c-lang.c (c_language_data): Delete la_word_break_characters
4592 initializer.
4593 (cplus_language_data): Likewise.
4594 (asm_language_data): Likewise.
4595 (minimal_language_data): Likewise.
4596 * completer.c: Update global comment.
4597 (advance_to_expression_complete_word_point): Update call to
4598 word_break_characters.
4599 (complete_files_symbols): Likewise.
4600 (complete_line_internal_1): Likewise.
4601 (default_completer_handle_brkchars): Likewise.
4602 (skip_quoted_chars): Likewise.
4603 * d-lang.c (d_language_data): Delete la_word_break_characters
4604 initializer.
4605 * f-lang.c (f_word_break_characters): Delete.
4606 (f_language_data): Delete la_word_break_characters initializer.
4607 (f_language::word_break_characters): New member function.
4608 * go-lang.c (go_language_data): Delete la_word_break_characters
4609 initializer.
4610 * language.c (unknown_language_data): Likewise.
4611 (auto_language_data): Likewise.
4612 * language.h (default_word_break_characters): Move declaration to
4613 earlier in the file.
4614 (language_data): Delete la_word_break_characters field.
4615 (language_defn::word_break_characters): New member function.
4616 * m2-lang.c (m2_language_data): Delete la_word_break_characters
4617 initializer.
4618 * objc-lang.c (objc_language_data): Likewise.
4619 * opencl-lang.c (opencl_language_data): Likewise.
4620 * p-lang.c (pascal_language_data): Likewise.
4621 * rust-lang.c (rust_language_data): Likewise.
4622
c9debfb9
AB
46232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4624
4625 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
4626 (ada_language_data): Delete la_get_symbol_name_matcher
4627 initializer.
4628 (language_defn::get_symbol_name_matcher_inner): New member
4629 function.
4630 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
4631 initializer.
4632 (cplus_language_data): Likewise.
4633 (cplus_language::get_symbol_name_matcher_inner): New member
4634 function.
4635 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
4636 (minimal_language_data): Likewise.
4637 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
4638 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
4639 initializer.
4640 * dictionary.c (iter_match_first_hashed): Update call to
4641 get_symbol_name_matcher.
4642 (iter_match_next_hashed): Likewise.
4643 (iter_match_next_linear): Likewise.
4644 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
4645 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
4646 initializer.
4647 (f_language::get_symbol_name_matcher_inner): New member function.
4648 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
4649 initializer.
4650 * language.c (default_symbol_name_matcher): Update header comment,
4651 make static.
4652 (language_defn::get_symbol_name_matcher): New definition.
4653 (language_defn::get_symbol_name_matcher_inner): Likewise.
4654 (get_symbol_name_matcher): Delete.
4655 (unknown_language_data): Delete la_get_symbol_name_matcher
4656 initializer.
4657 (auto_language_data): Likewise.
4658 * language.h (language_data): Delete la_get_symbol_name_matcher
4659 field.
4660 (language_defn::get_symbol_name_matcher): New member function.
4661 (language_defn::get_symbol_name_matcher_inner): Likewise.
4662 (default_symbol_name_matcher): Delete declaration.
4663 * linespec.c (find_methods): Update call to
4664 get_symbol_name_matcher.
4665 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
4666 initializer.
4667 * minsyms.c (lookup_minimal_symbol): Update call to
4668 get_symbol_name_matcher.
4669 (iterate_over_minimal_symbols): Likewise.
4670 * objc-lang.c (objc_language_data): Delete
4671 la_get_symbol_name_matcher initializer.
4672 * opencl-lang.c (opencl_language_data): Likewise.
4673 * p-lang.c (pascal_language_data): Likewise.
4674 * psymtab.c (psymbol_name_matches): Update call to
4675 get_symbol_name_matcher.
4676 * rust-lang.c (rust_language_data): Delete
4677 la_get_symbol_name_matcher initializer.
4678 * symtab.c (symbol_matches_search_name): Update call to
4679 get_symbol_name_matcher.
4680 (compare_symbol_name): Likewise.
4681
9a49ad8c
AB
46822020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4683
4684 * ada-lang.c (ada_language_data): Delete la_compute_program
4685 initializer.
4686 * c-lang.c (c_language_data): Likewise.
4687 (c_language::compute_program): New member function.
4688 (cplus_language_data): Delete la_compute_program initializer.
4689 (cplus_language::compute_program): New member function.
4690 (asm_language_data): Delete la_compute_program initializer.
4691 (minimal_language_data): Likewise.
4692 * c-lang.h (c_compute_program): Update comment.
4693 (cplus_compute_program): Likewise.
4694 * compile/compile-c-support.c (c_compute_program): Likewise.
4695 (cplus_compute_program): Likewise.
4696 * compile/compile.c (compile_to_object): Update call to
4697 la_compute_program.
4698 * d-lang.c (d_language_data): Delete la_compute_program
4699 initializer.
4700 * f-lang.c (f_language_data): Likewise.
4701 * go-lang.c (go_language_data): Likewise.
4702 * language.c (unknown_language_data): Likewise.
4703 (auto_language_data): Likewise.
4704 * language.h (language_data): Delete la_compute_program field.
4705 (language_defn::compute_program): New member function.
4706 * m2-lang.c (m2_language_data): Delete la_compute_program
4707 initializer.
4708 * objc-lang.c (objc_language_data): Likewise.
4709 * opencl-lang.c (opencl_language_data): Likewise.
4710 * p-lang.c (pascal_language_data): Likewise.
4711 * rust-lang.c (rust_language_data): Likewise.
4712
eff93b4d
AB
47132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
4714
4715 * ada-lang.c (ada_language_data) Delete
4716 la_class_name_from_physname initializer.
4717 * c-lang.c (c_language_data): Likewise.
4718 (cplus_language_data): Likewise.
4719 (cplus_language::class_name_from_physname): New member function.
4720 (asm_language_data): Delete la_class_name_from_physname
4721 initializer.
4722 (minimal_language_data): Likewise.
4723 * d-lang.c (d_language_data): Likewise.
4724 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
4725 method on language_defn class.
4726 (guess_full_die_structure_name): Likewise.
4727 * f-lang.c (f_language_data): Delete la_class_name_from_physname
4728 initializer.
4729 * go-lang.c (go_language_data): Likewise.
4730 * language.c (language_class_name_from_physname): Delete.
4731 (unk_lang_class_name): Delete.
4732 (unknown_language_data): Delete la_class_name_from_physname
4733 initializer.
4734 (auto_language_data): Likewise.
4735 * language.h (language_data): Delete la_class_name_from_physname
4736 field.
4737 (language_defn::class_name_from_physname): New function.
4738 (language_class_name_from_physname): Delete declaration.
4739 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
4740 initializer.
4741 * objc-lang.c (objc_language_data): Likewise.
4742 * opencl-lang.c (opencl_language_data): Likewise.
4743 * p-lang.c (pascal_language_data): Likewise.
4744 * rust-lang.c (rust_language_data): Likewise.
4745
de543742
TT
47462020-06-16 Tom Tromey <tom@tromey.com>
4747
4748 * tui/tui-data.h (STATUS_NAME): New macro.
4749 * tui/tui-layout.c (tui_remove_some_windows)
4750 (initialize_known_windows, tui_register_window)
4751 (tui_layout_split::remove_windows, initialize_layouts)
4752 (tui_new_layout_command): Don't use hard-coded window names.
4753
a350efd4
TT
47542020-06-16 Tom Tromey <tom@tromey.com>
4755
4756 PR tui/25348:
4757 * tui/tui.c (tui_ensure_readline_initialized): Rename from
4758 tui_initialize_readline. Only run once. Call rl_initialize.
4759 * tui/tui.h (tui_ensure_readline_initialized): Rename from
4760 tui_initialize_readline.
4761 * tui/tui-io.c (tui_setup_io): Call
4762 tui_ensure_readline_initialized.
4763 * tui/tui-interp.c (tui_interp::init): Update.
4764
39ec0490
TT
47652020-06-16 Tom Tromey <tom@tromey.com>
4766
4767 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
4768 Also preserve the status window.
4769
d2d1ea20
TT
47702020-06-16 Tom Tromey <tom@tromey.com>
4771
4772 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
4773 where m_window==nullptr.
4774
66920317
TT
47752020-06-15 Tom Tromey <tromey@adacore.com>
4776
4777 * windows-nat.c (windows_nat::handle_output_debug_string):
4778 Update.
4779 (windows_nat::handle_ms_vc_exception): Update.
4780 * target.h (target_read_string): Change API.
4781 * target.c (target_read_string): Change API.
4782 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
4783 Update.
4784 * solib-frv.c (frv_current_sos): Update.
4785 * solib-dsbt.c (dsbt_current_sos): Update.
4786 * solib-darwin.c (darwin_current_sos): Update.
4787 * linux-thread-db.c (inferior_has_bug): Update.
4788 * expprint.c (print_subexp_standard): Update.
4789 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
4790 (ada_exception_message_1): Update.
4791
a5d871dd
TT
47922020-06-15 Tom Tromey <tromey@adacore.com>
4793
4794 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
4795
670e35fa
TT
47962020-06-15 Tom Tromey <tromey@adacore.com>
4797
4798 * valprint.c (read_string): Update comment.
4799 * target.c (MIN): Remove.
4800 (target_read_string): Rewrite.
4801
f5272a3b
TT
48022020-06-15 Tom Tromey <tromey@adacore.com>
4803
4804 * corefile.c (read_memory_string): Remove.
4805 * ada-valprint.c (ada_value_print_ptr): Update.
4806 * ada-lang.h (ada_tag_name): Change return type.
4807 * ada-lang.c (type_from_tag): Update.
4808 (ada_tag_name_from_tsd): Change return type. Use
4809 target_read_string.
4810 (ada_tag_name): Likewise.
4811 * gdbcore.h (read_memory_string): Don't declare.
4812
2c074f49
HD
48132020-06-14 Hannes Domani <ssbssa@yahoo.de>
4814
4815 * symtab.c (rbreak_command): Ignore Windows drive colon.
4816
6a17d503
SM
48172020-06-12 Simon Marchi <simon.marchi@efficios.com>
4818
4819 * NEWS: Mention removed GDBserver host support.
4820
453c733f
NC
48212020-06-12 Nelson Chu <nelson.chu@sifive.com>
4822
4823 * features/riscv/rebuild-csr-xml.sh: Updated.
4824
2b4e6a3f
TT
48252020-06-11 Tom Tromey <tom@tromey.com>
4826
4827 PR gdb/18318:
4828 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
4829
4412332f
JG
48302020-06-09 Jonny Grant <jg@jguk.org>
48312020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
4832
4833 * main.c (captured_main_1): Don't print new line after help.
4834 (print_gdb_help): add mailing list and IRC channel information
4835 to --help. Add new lines between items in the footer. Remove
4836 quotes around bug url.
4837
2f33032a
KS
48382020-06-11 Keith Seitz <keiths@redhat.com>
4839
4840 PR gdb/21356
4841 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
4842 Resolve typedefs for type length calculations.
4843
7ab96794
TV
48442020-06-10 Tom de Vries <tdevries@suse.de>
4845
4846 PR ada/24713
4847 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
4848 (write_psymbols): Enable .gdb_index for ada.
4849 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
4850 ada.
4851
e5f3ece2
TV
48522020-06-10 Tom de Vries <tdevries@suse.de>
4853
4854 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
4855 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
4856 namei" instead of "const char *name" argument.
4857 (dw2_map_matching_symbols): Use "offset_type namei" variant of
4858 dw2_symtab_iter_init.
4859
940da03e
SM
48602020-06-08 Simon Marchi <simon.marchi@efficios.com>
4861
4862 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
4863 to use type::field and field::type instead.
4864
b6cdac4b
SM
48652020-06-08 Simon Marchi <simon.marchi@efficios.com>
4866
4867 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
4868 to use field::type instead.
4869
5d14b6e5
SM
48702020-06-08 Simon Marchi <simon.marchi@efficios.com>
4871
4872 * gdbtypes.h (struct field) <type, set_type>: New methods.
4873 Rename `type` field to...
4874 <m_type>: ... this. Change references throughout to use type or
4875 set_type methods.
4876 (FIELD_TYPE): Use field::type. Change call sites that modify
4877 the field's type to use field::set_type instead.
4878
3d967001
SM
48792020-06-08 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
4882 to use type::index_type instead.
4883
262abc0d
SM
48842020-06-08 Simon Marchi <simon.marchi@efficios.com>
4885
4886 * gdbtypes.h (struct type) <index_type, set_index_type>: New
4887 methods.
4888 (TYPE_INDEX_TYPE): Use type::index_type.
4889 * gdbtypes.c (create_array_type_with_stride): Likewise.
4890
82836c92
TT
48912020-06-07 Tom Tromey <tom@tromey.com>
4892
4893 * valprint.c (generic_val_print_float): Remove "embedded_offset"
4894 parameter.
4895 (generic_value_print): Update.
4896
940dace9
AB
48972020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4898
4899 Revert commit 982a38f60b0.
4900 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
4901
982a38f6
AB
49022020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
4903
4904 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
4905 avoid use after free.
4906
82f06518
TV
49072020-06-05 Tom de Vries <tdevries@suse.de>
4908
4909 * NEWS: Fix typos.
4910
f8c41851
SM
49112020-06-04 Simon Marchi <simon.marchi@efficios.com>
4912
4913 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
4914 the per_bfd object.
4915 (dwarf2_read_debug_names): Likewise.
4916 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
4917 object when re-using a per_bfd object with an index.
4918
f9b5d5ea
TV
49192020-06-03 Tom de Vries <tdevries@suse.de>
4920
4921 PR symtab/26046
4922 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
4923 children for C++.
4924 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
4925 DW_TAG_subprogram.
4926
f6eee2d0
AB
49272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4928
4929 * ada-lang.c (ada_language_data): Delete skip_trampoline
4930 initializer.
4931 * c-lang.c (c_language_data): Likewise.
4932 (cplus_language_data): Likewise.
4933 (cplus_language::skip_trampoline): New member function.
4934 (asm_language_data): Delete skip_trampoline initializer.
4935 (minimal_language_data): Likewise.
4936 * d-lang.c (d_language_data): Likewise.
4937 * f-lang.c (f_language_data): Likewise.
4938 * go-lang.c (go_language_data): Likewise.
4939 * language.c (unk_lang_trampoline): Delete function.
4940 (skip_language_trampoline): Update.
4941 (unknown_language_data): Delete skip_trampoline initializer.
4942 (auto_language_data): Likewise.
4943 * language.h (language_data): Delete skip_trampoline field.
4944 (language_defn::skip_trampoline): New function.
4945 * m2-lang.c (m2_language_data): Delete skip_trampoline
4946 initializer.
4947 * objc-lang.c (objc_skip_trampoline): Delete function, move
4948 implementation to objc_language::skip_trampoline.
4949 (objc_language_data): Delete skip_trampoline initializer.
4950 (objc_language::skip_trampoline): New member function with
4951 implementation from objc_skip_trampoline.
4952 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
4953 initializer.
4954 * p-lang.c (pascal_language_data): Likewise.
4955 * rust-lang.c (rust_language_data): Likewise.
4956
0a50df5d
AB
49572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4958
4959 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
4960 (ada_language::demangle): New member function.
4961 * c-lang.c (c_language_data): Delete la_demangle initializer.
4962 (cplus_language_data): Delete la_demangle initializer.
4963 (cplus_language::demangle): New member function.
4964 (asm_language_data): Delete la_demangle initializer.
4965 (minimal_language_data): Delete la_demangle initializer.
4966 * d-lang.c (d_language_data): Delete la_demangle initializer.
4967 (d_language::demangle): New member function.
4968 * f-lang.c (f_language_data): Delete la_demangle initializer.
4969 (f_language::demangle): New member function.
4970 * go-lang.c (go_language_data): Delete la_demangle initializer.
4971 (go_language::demangle): New member function.
4972 * language.c (language_demangle): Update.
4973 (unk_lang_demangle): Delete.
4974 (unknown_language_data): Delete la_demangle initializer.
4975 (unknown_language::demangle): New member function.
4976 (auto_language_data): Delete la_demangle initializer.
4977 (auto_language::demangle): New member function.
4978 * language.h (language_data): Delete la_demangle field.
4979 (language_defn::demangle): New function.
4980 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
4981 * objc-lang.c (objc_language_data): Delete la_demangle
4982 initializer.
4983 (objc_language::demangle): New member function.
4984 * opencl-lang.c (opencl_language_data): Delete la_demangle
4985 initializer.
4986 * p-lang.c (pascal_language_data): Likewise.
4987 * rust-lang.c (rust_language_data): Likewise.
4988 (rust_language::demangle): New member function.
4989
fbfb0a46
AB
49902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
4991
4992 * ada-lang.c (ada_language_data): Delete la_print_type
4993 initializer.
4994 (ada_language::print_type): New member function.
4995 * c-lang.c (c_language_data): Delete la_print_type initializer.
4996 (c_language::print_type): New member function.
4997 (cplus_language_data): Delete la_print_type initializer.
4998 (cplus_language::print_type): New member function.
4999 (asm_language_data): Delete la_print_type initializer.
5000 (asm_language::print_type): New member function.
5001 (minimal_language_data): Delete la_print_type initializer.
5002 (minimal_language::print_type): New member function.
5003 * d-lang.c (d_language_data): Delete la_print_type initializer.
5004 (d_language::print_type): New member function.
5005 * f-lang.c (f_language_data): Delete la_print_type initializer.
5006 (f_language::print_type): New member function.
5007 * go-lang.c (go_language_data): Delete la_print_type initializer.
5008 (go_language::print_type): New member function.
5009 * language.c (unk_lang_print_type): Delete.
5010 (unknown_language_data): Delete la_print_type initializer.
5011 (unknown_language::print_type): New member function.
5012 (auto_language_data): Delete la_print_type initializer.
5013 (auto_language::print_type): New member function.
5014 * language.h (language_data): Delete la_print_type field.
5015 (language_defn::print_type): New function.
5016 (LA_PRINT_TYPE): Update.
5017 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
5018 (m2_language::print_type): New member function.
5019 * objc-lang.c (objc_language_data): Delete la_print_type
5020 initializer.
5021 (objc_language::print_type): New member function.
5022 * opencl-lang.c (opencl_print_type): Delete, implementation moved
5023 to opencl_language::print_type.
5024 (opencl_language_data): Delete la_print_type initializer.
5025 (opencl_language::print_type): New member function, implementation
5026 from opencl_print_type.
5027 * p-lang.c (pascal_language_data): Delete la_print_type
5028 initializer.
5029 (pascal_language::print_type): New member function.
5030 * rust-lang.c (rust_print_type): Delete, implementation moved to
5031 rust_language::print_type.
5032 (rust_language_data): Delete la_print_type initializer.
5033 (rust_language::print_type): New member function, implementation
5034 from rust_print_type.
5035
6f827019
AB
50362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5037
5038 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
5039 implementation moves to...
5040 (ada_language::sniff_from_mangled_name): ...here. Update return
5041 type.
5042 (ada_language_data): Delete la_sniff_from_mangled_name
5043 initializer.
5044 * c-lang.c (c_language_data): Likewise.
5045 (cplus_language_data): Likewise.
5046 (cplus_language::sniff_from_mangled_name): New member function,
5047 implementation taken from gdb_sniff_from_mangled_name.
5048 (asm_language_data): Delete la_sniff_from_mangled_name
5049 initializer.
5050 (minimal_language_data): Likewise.
5051 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
5052 implementation moves to cplus_language::sniff_from_mangled_name.
5053 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
5054 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
5055 moves to...
5056 (d_language::sniff_from_mangled_name): ...here.
5057 (d_language_data): Delete la_sniff_from_mangled_name initializer.
5058 * f-lang.c (f_language_data): Likewise.
5059 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
5060 moves to...
5061 (go_language::sniff_from_mangled_name): ...here.
5062 (go_language_data): Delete la_sniff_from_mangled_name initializer.
5063 * language.c (language_sniff_from_mangled_name): Delete.
5064 (unknown_language_data): Delete la_sniff_from_mangled_name
5065 initializer.
5066 (auto_language_data): Likewise.
5067 * language.h (language_data): Delete la_sniff_from_mangled_name
5068 field.
5069 (language_defn::sniff_from_mangled_name): New function.
5070 (language_sniff_from_mangled_name): Delete declaration.
5071 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
5072 field.
5073 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
5074 implementation moves to...
5075 (objc_language::sniff_from_mangled_name): ...here.
5076 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
5077 * opencl-lang.c (opencl_language_data): Likewise.
5078 * p-lang.c (pascal_language_data): Likewise.
5079 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
5080 implementation moves to...
5081 (rust_language::sniff_from_mangled_name): ...here.
5082 (rust_language_data): Delete la_sniff_from_mangled_name
5083 initializer.
5084 * symtab.c (symbol_find_demangled_name): Call
5085 sniff_from_mangled_name member function.
5086
fb8006fd
AB
50872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5088
5089 * ada-lang.c (ada_language_data): Delete la_search_name_hash
5090 initializer.
5091 * c-lang.c (c_language_data): Likewise.
5092 (cplus_language_data): Likewise.
5093 (cplus_language::search_name_hash): New member function.
5094 (asm_language_data): Delete la_search_name_hash initializer.
5095 (minimal_language_data): Likewise.
5096 * d-lang.c (d_language_data): Likewise.
5097 * dictionary.c (default_search_name_hash): Rename to...
5098 (language_defn::search_name_hash): ...this.
5099 * f-lang.c (f_language_data): Likewise.
5100 (f_language::search_name_hash): New member function.
5101 * go-lang.c (go_language_data): Delete la_search_name_hash
5102 initializer.
5103 * language.c (unknown_language_data): Likewise.
5104 (auto_language_data): Likewise.
5105 * language.h (struct language_data): Delete la_search_name_hash
5106 field.
5107 (language_defn::search_name_hash): Declare new member function.
5108 (default_search_name_hash): Delete declaration.
5109 * m2-lang.c (m2_language_data): Delete la_search_name_hash
5110 initializer.
5111 * objc-lang.c (objc_language_data): Likewise.
5112 * opencl-lang.c (opencl_language_data): Likewise.
5113 * p-lang.c (pascal_language_data): Likewise.
5114 * rust-lang.c (rust_language_data): Likewise.
5115 * symtab.c (search_name_hash): Update call.
5116
8e25bafe
AB
51172020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5118
5119 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
5120 initializer.
5121 * c-lang.c (class compile_instance): Declare.
5122 (c_language_data): Delete la_get_compile_instance initializer.
5123 (c_language::get_compile_instance): New member function.
5124 (cplus_language_data): Delete la_get_compile_instance initializer.
5125 (cplus_language::get_compile_instance): New member function.
5126 (asm_language_data): Delete la_get_compile_instance initializer.
5127 (minimal_language_data): Likewise.
5128 * c-lang.h (c_get_compile_context): Update comment.
5129 (cplus_get_compile_context): Update comment.
5130 * compile/compile.c (compile_to_object): Update calls, don't rely
5131 on function pointer being NULL.
5132 * d-lang.c (d_language_data): Delete la_get_compile_instance
5133 initializer.
5134 * f-lang.c (f_language_data): Likewise.
5135 * go-lang.c (go_language_data): Likewise.
5136 * language.c (unknown_language_data): Likewise.
5137 (auto_language_data): Likewise.
5138 * language.h (language_data): Delete la_get_compile_instance field.
5139 (language_defn::get_compile_instance): New member function.
5140 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
5141 initializer.
5142 * objc-lang.c (objc_language_data): Likewise.
5143 * opencl-lang.c (opencl_language_data): Likewise.
5144 * p-lang.c (pascal_language_data): Likewise.
5145 * rust-lang.c (rust_language_data): Likewise.
5146
4009ee92
AB
51472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5148
5149 * ada-lang.c (ada_add_all_symbols): Update comment.
5150 (ada_iterate_over_symbols): Delete, move implementation to...
5151 (ada_language::iterate_over_symbols): ...here, a new member
5152 function, rewrite to use range based for loop.
5153 (ada_language_data): Delete la_iterate_over_symbols initializer.
5154 * c-lang.c (c_language_data): Likewise.
5155 (cplus_language_data): Likewise.
5156 (asm_language_data): Likewise.
5157 (minimal_language_data): Likewise.
5158 * d-lang.c (d_language_data): Likewise.
5159 * f-lang.c (f_language_data): Likewise.
5160 * go-lang.c (go_language_data): Likewise.
5161 * language.c (unknown_language_data): Likewise.
5162 (auto_language_data): Likewise.
5163 * language.h (language_data): Delete la_iterate_over_symbols field.
5164 (language_defn::iterate_over_symbols): New member function.
5165 (LA_ITERATE_OVER_SYMBOLS): Update.
5166 * linespec.c (iterate_over_all_matching_symtabs): Update.
5167 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
5168 initializer.
5169 * objc-lang.c (objc_language_data): Likewise.
5170 * opencl-lang.c (opencl_language_data): Likewise.
5171 * p-lang.c (pascal_language_data): Likewise.
5172 * rust-lang.c (rust_language_data): Likewise.
5173
54f4ca46
AB
51742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5175
5176 * ada-lang.c (ada_language_data): Delete
5177 la_lookup_transparent_type initializer.
5178 * c-lang.c (c_language_data): Likewise.
5179 (cplus_language_data): Likewise.
5180 (cplus_language::lookup_transparent_type): New member function.
5181 (asm_language_data): Delete la_lookup_transparent_type
5182 initializer.
5183 (minimal_language_data): Likewise.
5184 * d-lang.c (d_language_data): Likewise.
5185 * f-lang.c (f_language_data): Likewise.
5186 * go-lang.c (go_language_data): Likewise.
5187 * language.c (unknown_language_data): Likewise.
5188 (auto_language_data): Likewise.
5189 * language.h (struct language_data): Delete
5190 la_lookup_transparent_type field.
5191 (language_defn::lookup_transparent_type): New member function.
5192 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
5193 initializer.
5194 * objc-lang.c (objc_language_data): Likewise.
5195 * opencl-lang.c (opencl_language_data): Likewise.
5196 * p-lang.c (pascal_language_data): Likewise.
5197 * rust-lang.c (rust_language_data): Likewise.
5198 * symtab.c (symbol_matches_domain): Update call.
5199
1fb314aa
AB
52002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5201
5202 * ada-lang.c (ada_language_arch_info): Delete function, move
5203 implementation to...
5204 (ada_language::language_arch_info): ...here, a new member
5205 function.
5206 (ada_language_data): Delete la_language_arch_info.
5207 * c-lang.c (c_language_data): Likewise.
5208 (c_language::language_arch_info): New member function.
5209 (cplus_language_arch_info): Delete function, move
5210 implementation to...
5211 (cplus_language::language_arch_info): ...here, a new member
5212 function.
5213 (cplus_language_data): Delete la_language_arch_info.
5214 (asm_language_data): Likewise.
5215 (asm_language::language_arch_info): New member function.
5216 (minimal_language_data): Delete la_language_arch_info.
5217 (minimal_language::language_arch_info): New member function.
5218 * d-lang.c (d_language_arch_info): Delete function, move
5219 implementation to...
5220 (d_language::language_arch_info): ...here, a new member
5221 function.
5222 (d_language_data): Delete la_language_arch_info.
5223 * f-lang.c (f_language_arch_info): Delete function, move
5224 implementation to...
5225 (f_language::language_arch_info): ...here, a new member
5226 function.
5227 (f_language_data): Delete la_language_arch_info.
5228 * go-lang.c (go_language_arch_info): Delete function, move
5229 implementation to...
5230 (go_language::language_arch_info): ...here, a new member
5231 function.
5232 (go_language_data): Delete la_language_arch_info.
5233 * language.c (unknown_language_data): Likewise.
5234 (unknown_language::language_arch_info): New member function.
5235 (auto_language_data): Delete la_language_arch_info.
5236 (auto_language::language_arch_info): New member function.
5237 (language_gdbarch_post_init): Update call to
5238 la_language_arch_info.
5239 * language.h (language_data): Delete la_language_arch_info
5240 function pointer.
5241 (language_defn::language_arch_info): New function.
5242 * m2-lang.c (m2_language_arch_info): Delete function, move
5243 implementation to...
5244 (m2_language::language_arch_info): ...here, a new member
5245 function.
5246 (m2_language_data): Delete la_language_arch_info.
5247 * objc-lang.c (objc_language_arch_info): Delete function, move
5248 implementation to...
5249 (objc_language::language_arch_info): ...here, a new member
5250 function.
5251 (objc_language_data): Delete la_language_arch_info.
5252 * opencl-lang.c (opencl_language_arch_info): Delete function, move
5253 implementation to...
5254 (opencl_language::language_arch_info): ...here, a new member
5255 function.
5256 (opencl_language_data): Delete la_language_arch_info.
5257 * p-lang.c (pascal_language_arch_info): Delete function, move
5258 implementation to...
5259 (pascal_language::language_arch_info): ...here, a new member
5260 function.
5261 (pascal_language_data): Delete la_language_arch_info.
5262 * rust-lang.c (rust_language_arch_info): Delete function, move
5263 implementation to...
5264 (rust_language::language_arch_info): ...here, a new member
5265 function.
5266 (rust_language_data): Delete la_language_arch_info.
5267
48448202
AB
52682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5269
5270 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
5271 initializer.
5272 * c-lang.c (c_language_data): Likewise.
5273 (cplus_language_data): Likewise.
5274 (cplus_language::pass_by_reference_info): New method.
5275 (asm_language_data): Delete la_pass_by_reference initializer.
5276 (minimal_language_data): Likewise.
5277 * cp-abi.c (cp_pass_by_reference): Remove use of
5278 default_pass_by_reference.
5279 * d-lang.c (d_language_data): Likewise.
5280 * f-lang.c (f_language_data): Likewise.
5281 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
5282 default_pass_by_reference.
5283 * go-lang.c (go_language_data): Likewise.
5284 * language.c (language_pass_by_reference): Update.
5285 (default_pass_by_reference): Delete.
5286 (unknown_language_data): Delete la_pass_by_reference
5287 initializer.
5288 (auto_language_data): Likewise.
5289 * language.h (struct language_data): Delete la_pass_by_reference
5290 field.
5291 (language_defn::pass_by_reference_info): New member function.
5292 (default_pass_by_reference): Delete declaration.
5293 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
5294 initializer.
5295 * objc-lang.c (objc_language_data): Likewise.
5296 * opencl-lang.c (opencl_language_data): Likewise.
5297 * p-lang.c (pascal_language_data): Likewise.
5298 * rust-lang.c (rust_language_data): Likewise.
5299
15e5fd35
AB
53002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5301
5302 * ada-lang.c (ada_read_var_value): Delete function, move
5303 implementation to...
5304 (ada_language::read_var_value): ...here.
5305 (ada_language_data): Delete la_read_var_value initializer.
5306 * c-lang.c (c_language_data): Likewise.
5307 (cplus_language_data): Likewise.
5308 (minimal_language_data): Likewise.
5309 * d-lang.c (d_language_data): Likewise.
5310 * f-lang.c (f_language_data): Likewise.
5311 * findvar.c (default_read_var_value): Rename to...
5312 (language_defn::read_var_value): ...this.
5313 * findvar.c (read_var_value): Update header comment, and change to
5314 call member function instead of function pointer.
5315 * go-lang.c (go_language_data): Likewise.
5316 * language.c (unknown_language_data): Delete la_read_var_value
5317 initializer.
5318 (auto_language_data): Likewise.
5319 * language.h (struct language_data): Delete la_read_var_value
5320 field.
5321 (language_defn::read_var_value): New member function.
5322 (default_read_var_value): Delete declaration.
5323 * m2-lang.c (m2_language_data): Delete la_read_var_value
5324 initializer.
5325 * objc-lang.c (objc_language_data): Likewise.
5326 * opencl-lang.c (opencl_language_data): Likewise.
5327 * p-lang.c (pascal_language_data): Likewise.
5328 * rust-lang.c (rust_language_data): Likewise.
5329 * value.h (default_read_var_value): Delete declaration.
5330
5bd40f2a
AB
53312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5332
5333 * ada-lang.c (ada_print_array_index): Delete function, move
5334 implementation to...
5335 (ada_language::print_array_index): ...here.
5336 (ada_language_data): Delete la_print_array_index initializer.
5337 * c-lang.c (c_language_data): Likewise.
5338 (cplus_language_data): Likewise.
5339 (minimal_language_data): Likewise.
5340 * d-lang.c (d_language_data): Likewise.
5341 * f-lang.c (f_language_data): Likewise.
5342 * go-lang.c (go_language_data): Likewise.
5343 * language.c (default_print_array_index): Delete function, move
5344 implementation to...
5345 (language_defn::print_array_index): ...here.
5346 (unknown_language_data): Delete la_print_array_index initializer.
5347 (auto_language_data): Likewise.
5348 * language.h (struct language_data): Delete la_print_array_index
5349 field.
5350 (language_defn::print_array_index): New member function.
5351 (LA_PRINT_ARRAY_INDEX): Update.
5352 (default_print_array_index): Delete declaration.
5353 * m2-lang.c (m2_language_data): Delete la_print_array_index
5354 initializer.
5355 * objc-lang.c (objc_language_data): Likewise.
5356 * opencl-lang.c (opencl_language_data): Likewise.
5357 * p-lang.c (pascal_language_data): Likewise.
5358 * rust-lang.c (rust_language_data): Likewise.
5359
0874fd07
AB
53602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
5361
5362 * gdb/ada-lang.c (ada_language_defn): Convert to...
5363 (ada_language_data): ...this.
5364 (class ada_language): New class.
5365 (ada_language_defn): New static global.
5366 * gdb/c-lang.c (c_language_defn): Convert to...
5367 (c_language_data): ...this.
5368 (class c_language): New class.
5369 (c_language_defn): New static global.
5370 (cplus_language_defn): Convert to...
5371 (cplus_language_data): ...this.
5372 (class cplus_language): New class.
5373 (cplus_language_defn): New static global.
5374 (asm_language_defn): Convert to...
5375 (asm_language_data): ...this.
5376 (class asm_language): New class.
5377 (asm_language_defn): New static global.
5378 (minimal_language_defn): Convert to...
5379 (minimal_language_data): ...this.
5380 (class minimal_language): New class.
5381 (minimal_language_defn): New static global.
5382 * gdb/d-lang.c (d_language_defn): Convert to...
5383 (d_language_data): ...this.
5384 (class d_language): New class.
5385 (d_language_defn): New static global.
5386 * gdb/f-lang.c (f_language_defn): Convert to...
5387 (f_language_data): ...this.
5388 (class f_language): New class.
5389 (f_language_defn): New static global.
5390 * gdb/go-lang.c (go_language_defn): Convert to...
5391 (go_language_data): ...this.
5392 (class go_language): New class.
5393 (go_language_defn): New static global.
5394 * gdb/language.c (unknown_language_defn): Remove declaration.
5395 (current_language): Initialize to nullptr, real initialization is
5396 moved to _initialize_language.
5397 (languages): Delete global.
5398 (language_defn::languages): Define.
5399 (set_language_command): Use language_defn::languages.
5400 (set_language): Likewise.
5401 (range_error): Likewise.
5402 (language_enum): Likewise.
5403 (language_def): Likewise.
5404 (add_set_language_command): Use language_def::languages for the
5405 language list, and language_def to lookup language pointers.
5406 (skip_language_trampoline): Use language_defn::languages.
5407 (unknown_language_defn): Convert to...
5408 (unknown_language_data): ...this.
5409 (class unknown_language): New class.
5410 (unknown_language_defn): New static global.
5411 (auto_language_defn): Convert to...
5412 (auto_language_data): ...this.
5413 (class auto_language): New class.
5414 (auto_language_defn): New static global.
5415 (language_gdbarch_post_init): Use language_defn::languages.
5416 (_initialize_language): Initialize current_language.
5417 * gdb/language.h (struct language_defn): Rename to...
5418 (struct language_data): ...this.
5419 (struct language_defn): New.
5420 (auto_language_defn): Delete.
5421 (unknown_language_defn): Delete.
5422 (minimal_language_defn): Delete.
5423 (ada_language_defn): Delete.
5424 (asm_language_defn): Delete.
5425 (c_language_defn): Delete.
5426 (cplus_language_defn): Delete.
5427 (d_language_defn): Delete.
5428 (f_language_defn): Delete.
5429 (go_language_defn): Delete.
5430 (m2_language_defn): Delete.
5431 (objc_language_defn): Delete.
5432 (opencl_language_defn): Delete.
5433 (pascal_language_defn): Delete.
5434 (rust_language_defn): Delete.
5435 * gdb/m2-lang.c (m2_language_defn): Convert to...
5436 (m2_language_data): ...this.
5437 (class m2_language): New class.
5438 (m2_language_defn): New static global.
5439 * gdb/objc-lang.c (objc_language_defn): Convert to...
5440 (objc_language_data): ...this.
5441 (class objc_language): New class.
5442 (objc_language_defn): New static global.
5443 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
5444 (opencl_language_data): ...this.
5445 (class opencl_language): New class.
5446 (opencl_language_defn): New static global.
5447 * gdb/p-lang.c (pascal_language_defn): Convert to...
5448 (pascal_language_data): ...this.
5449 (class pascal_language): New class.
5450 (pascal_language_defn): New static global.
5451 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
5452 language pointer, update comment format.
5453 * gdb/rust-lang.c (rust_language_defn): Convert to...
5454 (rust_language_data): ...this.
5455 (class rust_language): New class.
5456 (rust_language_defn): New static global.
5457
1313c56e
AB
54582020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
5459
5460 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
5461 member variable.
5462 <m_stmt_at_address>: New member variable.
5463 (lnp_state_machine::record_line): Don't record some lines, update
5464 tracking of is_stmt at the same address.
5465 (lnp_state_machine::lnp_state_machine): Initialise new member
5466 variables.
5467
b7ed9f3d
ST
54682020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
5469
5470 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
5471 "-include gnu-nat-mig.h".
5472 * gnu-nat-mig.h: New file.
5473 * gnu-nat.c: Include "gnu-nat-mig.h".
5474 (exc_server, msg_reply_server, notify_server,
5475 process_reply_server): Remove declarations.
5476
14a8ad62
ST
54772020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5478
5479 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
5480 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
5481 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
5482 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
5483 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
5484 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
5485 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
5486 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
5487 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
5488 to gnu_nat_target class.
5489 * gnu-nat.c: Likewise.
5490 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
5491 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
5492 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
5493 object.
5494 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
5495 instead of `gnu_target'.
5496
0af5e106
ST
54972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5498
5499 * i386-gnu-tdep.c: Include "gdbcore.h"
5500 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
5501 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
5502 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
5503 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
5504 i386_gnu_sigcontext_addr): New functions
5505 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
5506 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
5507 tdep.
5508
078f2fc9
ST
55092020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5510
5511 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
5512 before fork_inferior call. Avoid calling it if target_is_pushed returns
5513 true.
5514
53dff92c
ST
55152020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5516
5517 * gnu-nat.h (gnu_target): New variable declaration.
5518 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
5519 gnu_target.
5520 * gnu-nat.c (gnu_target): New variable.
5521 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
5522 add_thread_silent, and add_thread calls.
5523 (gnu_nat_target::create_inferior): Pass gnu_target to
5524 add_thread_silent, thread_change_ptid call.
5525 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
5526 call.
5527
5a8b8627
ST
55282020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5529
5530 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
5531 (gnu_nat_target::find_memory_regions): Remove unused
5532 `old_address' variable.
5533
366f550a
ST
55342020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5535
5536 * gnu-nat.c: Include "gdbarch.h".
5537
f14871bf
ST
55382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5539
5540 * reply_mig_hack.awk (Error return): Cast function through
5541 void *, to bypass compiler function call check.
5542
c6887cfb
ST
55432020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5544
5545 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
5546 $(srcdir)/reply_mig_hack.awk.
5547
6930bffe
ST
55482020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
5549
5550 * gnu-nat.h (gnu_debug_flag): Set type to bool.
5551
112c22ed
JG
55522020-05-30 Jonny Grant <jg@jguk.org>
5553
5554 * configure.ac (ACX_BUGURL): change bug URL to https.
5555
f68f85b5
PA
55562020-05-30 Pedro Alves <palves@redhat.com>
5557
5558 * cp-support.c (replace_typedefs_template): New.
5559 (replace_typedefs_qualified_name): Handle
5560 DEMANGLE_COMPONENT_TEMPLATE.
5561
976ca316
SM
55622020-05-29 Simon Marchi <simon.marchi@efficios.com>
5563
5564 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
5565 dwarf2/index-cache.h, dwarf2/index-write.c,
5566 dwarf2/index-write.h, dwarf2/line-header.c,
5567 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
5568 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
5569 variables and fields from `dwarf2_per_objfile` to just
5570 `per_objfile` throughout.
5571
989ade05
SM
55722020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
5573
5574 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5575 <push_dwarf_reg_entry_value>: Add comment.
5576
c47bae85
KB
55772020-05-28 Kevin Buettner <kevinb@redhat.com>
5578 Keith Seitz <keiths@redhat.com>
5579
5580 * python/python.c (do_start_initialization): Call PyEval_SaveThread
5581 instead of PyEval_ReleaseLock.
5582 (class gdbpy_gil): Move to earlier in file.
5583 (finalize_python): Set gdb_python_initialized.
5584 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
5585 when not initialized.
5586
44486dcf
SM
55872020-05-28 Simon Marchi <simon.marchi@efficios.com>
5588
5589 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
5590 <push_dwarf_reg_entry_value>: Remove assert. Override
5591 per_objfile with caller_per_objfile.
5592
f030440d
TV
55932020-05-28 Tom de Vries <tdevries@suse.de>
5594
5595 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
5596 PR gold/15646 workaround to symbol kind "type".
5597
f0fbb768
TT
55982020-05-27 Tom Tromey <tromey@adacore.com>
5599
5600 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
5601
af0b2a3e
TT
56022020-05-27 Tom Tromey <tromey@adacore.com>
5603
5604 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
5605 Use htab_find_with_hash.
5606 <add_abbrev>: Remove "abbrev_number" parameter.
5607 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
5608 "abbrev_number" parameter. Use htab_find_slot_with_hash.
5609 (hash_abbrev): Add comment.
5610 (abbrev_table::lookup_abbrev): Move to header file.
5611 (abbrev_table::read): Update.
5612
7d00ffec
TT
56132020-05-27 Tom Tromey <tromey@adacore.com>
5614
5615 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
5616 method.
5617 <canonical_name>: New member.
5618 <raw_name>: Rename from "name".
5619 (partial_die_info): Initialize canonical_name.
5620 (scan_partial_symbols): Check raw_name.
5621 (partial_die_parent_scope, partial_die_full_name)
5622 (add_partial_symbol, add_partial_subprogram)
5623 (add_partial_enumeration, load_partial_dies): Use "name" method.
5624 (partial_die_info::name): New method.
5625 (partial_die_info::read, guess_partial_die_structure_name)
5626 (partial_die_info::fixup): Update.
5627
697bba18
TT
56282020-05-27 Tom Tromey <tromey@adacore.com>
5629
5630 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
5631 <get_ref_die_offset>: Inline.
5632 <get_ref_die_offset_complaint>: New method.
5633 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
5634 (attribute::get_ref_die_offset_complaint): Rename from
5635 get_ref_die_offset. Just issue complaint.
5636
c17ace43
HD
56372020-05-27 Hannes Domani <ssbssa@yahoo.de>
5638
5639 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
5640
96445f0b
HD
56412020-05-27 Hannes Domani <ssbssa@yahoo.de>
5642
5643 * exec.c (exec_file_attach): Use errno value of first openp failure.
5644
ac637ec3
HD
56452020-05-27 Hannes Domani <ssbssa@yahoo.de>
5646
5647 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
5648 Don't close thread handle.
5649
17ee85fc
TT
56502020-05-27 Tom Tromey <tom@tromey.com>
5651 Simon Marchi <simon.marchi@efficios.com>
5652
5653 * objfiles.h (struct objfile) <partial_symtabs>: Now a
5654 shared_ptr.
5655 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
5656 member.
5657 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
5658 dwarf2_per_bfd_objfile_data_key>: New globals.
5659 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
5660 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
5661 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
5662 shared.
5663 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
5664 short-circuit when sharing.
5665 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
5666 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
5667
39b16f87
SM
56682020-05-27 Simon Marchi <simon.marchi@efficios.com>
5669
5670 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
5671 to...
5672 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
5673 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
5674
fcf23d5b
SM
56752020-05-27 Simon Marchi <simon.marchi@efficios.com>
5676
5677 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
5678 build_name_components, find_name_components_bounds>:
5679 Add per_objfile parameter.
5680 (struct mapped_index) <symbol_name_at>: Likewise.
5681 (struct mapped_debug_names): Remove constructor.
5682 <dwarf2_per_objfile>: Remove field.
5683 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
5684 (mapped_index_base::find_name_components_bounds,
5685 mapped_index_base::build_name_components,
5686 dw2_expand_symtabs_matching_symbol): Likewise.
5687 (class mock_mapped_index) <symbol_name_at>: Likewise.
5688 (check_match): Likewise.
5689 (check_find_bounds_finds): Likewise.
5690 (test_mapped_index_find_name_component_bounds): Update.
5691 (CHECK_MATCH): Update.
5692 (dw2_expand_symtabs_matching): Update.
5693 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
5694 per_objfile parameter.
5695 <find_vec_in_debug_names>: Likewise.
5696 <m_per_objfile>: New field.
5697 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
5698 parameter.
5699 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
5700 (dw2_debug_names_iterator::next): Update.
5701 (dw2_debug_names_lookup_symbol): Update.
5702 (dw2_debug_names_expand_symtabs_for_function): Update.
5703 (dw2_debug_names_map_matching_symbols): Update.
5704 (dw2_debug_names_expand_symtabs_matching): Update.
5705 (dwarf2_read_debug_names): Update.
5706
7188ed02
SM
57072020-05-27 Simon Marchi <simon.marchi@efficios.com>
5708
5709 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
5710 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
5711 move to dwarf2_per_objfile.
5712 <read_in_chain>: Remove.
5713 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
5714 remove_all_cus, age_comp_units>: New methods.
5715 <m_dwarf2_cus>: New member.
5716 (struct dwarf2_per_cu_data) <cu>: Remove.
5717 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
5718 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
5719 moved to methods of dwarf2_per_objfile.
5720 (dwarf2_clear_marks): Remove.
5721 (dwarf2_queue_item::~dwarf2_queue_item): Update.
5722 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
5723 (dwarf2_per_bfd::free_cached_comp_units): Remove.
5724 (dwarf2_per_objfile::remove_all_cus): New.
5725 (class free_cached_comp_units) <~free_cached_comp_units>:
5726 Update.
5727 (load_cu): Update.
5728 (dw2_do_instantiate_symtab): Adjust.
5729 (fill_in_sig_entry_from_dwo_entry): Adjust.
5730 (cutu_reader::init_tu_and_read_dwo_dies): Update.
5731 (cutu_reader::cutu_reader): Likewise.
5732 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
5733 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
5734 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
5735 and dwarf2_per_objfile::age_comp_units.
5736 (load_partial_comp_unit): Update.
5737 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
5738 (process_queue): Likewise.
5739 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
5740 backlink.
5741 (dwarf2_read_addr_index): Likewise.
5742 (follow_die_offset): Likewise.
5743 (dwarf2_fetch_die_loc_sect_off): Likewise.
5744 (dwarf2_fetch_constant_bytes): Likewise.
5745 (dwarf2_fetch_die_type_sect_off): Likewise.
5746 (follow_die_sig_1): Likewise.
5747 (load_full_type_unit): Likewise.
5748 (read_signatured_type): Likewise.
5749 (dwarf2_cu::dwarf2_cu): Don't set cu field.
5750 (dwarf2_cu::~dwarf2_cu): Remove.
5751 (dwarf2_per_objfile::get_cu): New.
5752 (dwarf2_per_objfile::set_cu): New.
5753 (age_cached_comp_units): Rename to...
5754 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
5755 to std::unordered_map.
5756 (free_one_cached_comp_unit): Rename to...
5757 (dwarf2_per_objfile::remove_cu): ... this. Adjust
5758 to std::unordered_map.
5759 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
5760 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
5761 a dwarf2_per_objfile in data.
5762 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
5763 (dwarf2_clear_marks): Remove.
5764
2e671100
SM
57652020-05-27 Simon Marchi <simon.marchi@efficios.com>
5766
5767 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
5768 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
5769 (init_tu_and_read_dwo_dies): Likewise.
5770 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
5771 (cutu_reader::cutu_reader): Likewise.
5772 (load_partial_comp_unit): Likewise.
5773 (process_psymtab_comp_unit): Update.
5774 (build_type_psymtabs_1): Update.
5775 (process_skeletonless_type_unit): Update.
5776 (load_full_comp_unit): Update.
5777 (find_partial_die): Update.
5778 (dwarf2_read_addr_index): Update.
5779 (read_signatured_type): Update.
5780
2e6a9f79
SM
57812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5782
5783 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
5784 m_header_read_in>: New fields.
5785 <get_header>: New method.
5786 * dwarf2/read.c (per_cu_header_read_in): Remove.
5787 (dwarf2_per_cu_data::get_header): New.
5788 (dwarf2_per_cu_data::addr_size): Update.
5789 (dwarf2_per_cu_data::offset_size): Update.
5790 (dwarf2_per_cu_data::ref_addr_size): Update.
5791
1b555f17
SM
57922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5793
5794 * dwarf2/read.c (load_cu): Return dwarf2_cu.
5795 (dw2_do_instantiate_symtab): Update.
5796 (queue_and_load_all_dwo_tus): Change parameter from
5797 dwarf2_per_cu_data to dwarf2_cu.
5798 (dwarf2_fetch_die_loc_sect_off): Update.
5799 (dwarf2_fetch_constant_bytes): Update.
5800 (dwarf2_fetch_die_type_sect_off): Update.
5801
8fc0b21d
SM
58022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5803
5804 * dwarf2/read.c (process_full_comp_unit,
5805 process_full_type_unit): Remove per_cu, per_objfile paramters.
5806 Add dwarf2_cu parameter.
5807 (process_queue): Update.
5808
168c9250
SM
58092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5810
5811 * dwarf2/read.c (create_cu_from_index_list): Replace
5812 dwarf2_per_objfile parameter with dwarf2_per_bfd.
5813 (create_cus_from_index_list): Likewise.
5814 (create_cus_from_index): Likewise.
5815 (create_signatured_type_table_from_index): Likewise.
5816 (create_cus_from_debug_names_list): Likewise.
5817 (create_cus_from_debug_names): Likewise.
5818 (dwarf2_read_gdb_index): Update.
5819 (dwarf2_read_debug_names): Update.
5820
e286671b
TT
58212020-05-27 Tom Tromey <tom@tromey.com>
5822 Simon Marchi <simon.marchi@efficios.com>
5823
5824 * dwarf2/read.h (struct dwarf2_per_objfile)
5825 <get_type_for_signatured_type, set_type_for_signatured_type>:
5826 New methods.
5827 <m_type_map>: New member.
5828 (struct signatured_type) <type>: Remove.
5829 * dwarf2/read.c
5830 (dwarf2_per_objfile::get_type_for_signatured_type,
5831 dwarf2_per_objfile::set_type_for_signatured_type): New.
5832 (get_signatured_type): Use new methods.
5833
8adb8487
TT
58342020-05-27 Tom Tromey <tom@tromey.com>
5835 Simon Marchi <simon.marchi@efficios.com>
5836
5837 * dwarf2/read.h (struct type_unit_group_unshareable): New.
5838 (struct dwarf2_per_objfile) <type_units>: New member.
5839 <get_type_unit_group_unshareable>: New method.
5840 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
5841 num_symtabs, symtabs>: Remove; move to
5842 type_unit_group_unshareable.
5843 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
5844 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
5845 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
5846
127bbf4b
SM
58472020-05-27 Simon Marchi <simon.marchi@efficios.com>
5848
5849 * dwarf2/read.h (struct dwarf2_per_cu_data):
5850 <dwarf2_per_objfile>: Remove.
5851 * dwarf2/read.c (create_cu_from_index_list): Don't assign
5852 dwarf2_per_objfile.
5853 (create_signatured_type_table_from_index): Likewise.
5854 (create_signatured_type_table_from_debug_names): Likewise.
5855 (create_debug_type_hash_table): Likewise.
5856 (fill_in_sig_entry_from_dwo_entry): Likewise.
5857 (create_type_unit_group): Likewise.
5858 (read_comp_units_from_section): Likewise.
5859 (create_cus_hash_table): Likewise.
5860
f6e649dd
SM
58612020-05-27 Simon Marchi <simon.marchi@efficios.com>
5862
5863 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
5864 dwarf2_per_cu_data::dwarf2_per_objfile.
5865 (compute_compunit_symtab_includes): Likewise.
5866 (dwarf2_cu::start_symtab): Likewise.
5867
aa66c379
SM
58682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
5869
5870 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
5871 parameter.
5872 * dwarf2/read.c (get_die_type_at_offset): Likewise.
5873 (read_namespace_alias): Update.
5874 (lookup_die_type): Update.
5875 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
5876 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
5877 Update.
5878 (disassemble_dwarf_expression): Update.
5879
120ce1b5
SM
58802020-05-27 Simon Marchi <simon.marchi@efficios.com>
5881
5882 * dwarf2/read.h (struct dwarf2_queue_item): Add
5883 dwarf2_per_objfile parameter, assign new parameter.
5884 <per_objfile>: New field.
5885 * dwarf2/read.c (free_one_cached_comp_unit): Add
5886 dwarf2_per_objfile parameter.
5887 (queue_comp_unit): Likewise.
5888 (dw2_do_instantiate_symtab): Update.
5889 (process_psymtab_comp_unit): Update.
5890 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
5891 (process_imported_unit_die): Update.
5892 (queue_and_load_dwo_tu): Update.
5893 (follow_die_offset): Update.
5894 (follow_die_sig_1): Update.
5895
9f47c707
SM
58962020-05-27 Simon Marchi <simon.marchi@efficios.com>
5897
5898 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
5899 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
5900 (read_call_site_scope): Assign per_objfile.
5901 (dwarf2_per_cu_data::objfile): Remove.
5902 * gdbtypes.h (struct call_site) <per_objfile>: New member.
5903 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
5904 dwarf2_per_objfile parameter.
5905 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
5906 dwarf2_per_objfile parameter.
5907 (dwarf_expr_reg_to_entry_parameter): Add output
5908 dwarf2_per_objfile parameter.
5909 (locexpr_get_frame_base): Update.
5910 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
5911 <push_dwarf_reg_entry_value>: Update.
5912 <call_site_to_target_addr>: Update.
5913 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
5914 parameter.
5915 (value_of_dwarf_reg_entry): Update.
5916 (rw_pieced_value): Update.
5917 (indirect_synthetic_pointer): Update.
5918 (dwarf2_evaluate_property): Update.
5919 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
5920 parameter.
5921 (locexpr_read_variable): Update.
5922 (locexpr_get_symbol_read_needs): Update.
5923 (loclist_read_variable): Update.
5924
14095eb3
SM
59252020-05-27 Simon Marchi <simon.marchi@efficios.com>
5926
5927 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
5928 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5929 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5930 parameter.
5931 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
5932 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
5933 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
5934 parameter.
5935 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
5936 sect_variable_value): Add dwarf2_per_objfile parameter.
5937 (class dwarf_evaluate_loc_desc) <dwarf_call,
5938 dwarf_variable_value>: Update.
5939 (fetch_const_value_from_synthetic_pointer): Add
5940 dwarf2_per_objfile parameter.
5941 (fetch_const_value_from_synthetic_pointer): Update.
5942 (coerced_pieced_ref): Update.
5943 (class symbol_needs_eval_context) <dwarf_call,
5944 dwarf_variable_value>: Update.
5945 (dwarf2_compile_expr_to_ax): Update.
5946
3c3cd3d4
SM
59472020-05-27 Simon Marchi <simon.marchi@efficios.com>
5948
5949 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
5950 parameter.
5951 (dwarf2_evaluate_loc_desc_full): Update.
5952
82ca3f51
SM
59532020-05-27 Simon Marchi <simon.marchi@efficios.com>
5954
5955 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
5956 parameter.
5957 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
5958 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
5959 dwarf2_per_objfile parameter.
5960 (decode_debug_loc_dwo_addresses): Likewise.
5961 (dwarf2_find_location_expression): Update.
5962 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
5963 (locexpr_describe_location_piece): Add dwarf2_per_objfile
5964 parameter.
5965 (disassemble_dwarf_expression): Add dwarf2_per_objfile
5966 parameter.
5967 (locexpr_describe_location_1): Likewise.
5968 (locexpr_describe_location): Update.
5969
4b167ea1
SM
59702020-05-27 Simon Marchi <simon.marchi@efficios.com>
5971
5972 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
5973 Remove.
5974 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
5975 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
5976 (dwarf2_compile_property_to_c): Update.
5977 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
5978 use text offset from objfile.
5979 (locexpr_tracepoint_var_ref): Update.
5980 (locexpr_generate_c_location): Update.
5981 (loclist_describe_location): Update.
5982 (loclist_tracepoint_var_ref): Update.
5983 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
5984 dwarf2_per_objfile parameter.
5985 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
5986 use text offset from objfile.
5987 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
5988
89b07335
SM
59892020-05-27 Simon Marchi <simon.marchi@efficios.com>
5990
5991 * dwarf2/expr.h (struct dwarf_expr_context)
5992 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
5993 <offset>: Remove.
5994 <per_objfile>: New member.
5995 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
5996 dwarf2_per_objfile parameter. Don't set offset, set
5997 per_objfile.
5998 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
5999 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
6000 a dwarf2_per_objfile object instead of an offset.
6001 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
6002 constructor.
6003 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
6004 to dwarf2_expr_executor constructor. Don't set offset.
6005 (dwarf2_fetch_cfa_info): Update.
6006 (struct dwarf2_frame_cache) <text_offset>: Remove.
6007 <per_objfile>: New field.
6008 (dwarf2_frame_cache): Update.
6009 (dwarf2_frame_prev_register): Update.
6010 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
6011 <dwarf_evaluate_loc_desc>: Add constructor.
6012 (dwarf2_evaluate_loc_desc_full): Update.
6013 (dwarf2_locexpr_baton_eval): Update.
6014 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
6015 Add constructor.
6016 (dwarf2_loc_desc_get_symbol_read_needs): Update.
6017
293e7e51
SM
60182020-05-27 Simon Marchi <simon.marchi@efficios.com>
6019
6020 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
6021 addr_sized_int_type>: Move to dwarf2_cu.
6022 <int_type>: Move to dwarf2_per_objfile.
6023 (struct dwarf2_per_objfile) <int_type>: Move here.
6024 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
6025 addr_sized_int_type>: Move here.
6026 (read_func_scope): Update.
6027 (read_array_type): Update.
6028 (read_tag_string_type): Update.
6029 (attr_to_dynamic_prop): Update.
6030 (dwarf2_per_cu_data::int_type): Rename to...
6031 (dwarf2_per_objfile::int_type): ... this.
6032 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
6033 (dwarf2_cu::addr_sized_int_type): ... this.
6034 (read_subrange_type): Update.
6035 (dwarf2_per_cu_data::addr_type): Rename to...
6036 (dwarf2_cu::addr_type): ... this.
6037 (set_die_type): Update.
6038
64874a40
SM
60392020-05-27 Simon Marchi <simon.marchi@efficios.com>
6040
6041 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
6042 data through per_cu->cu.
6043
4ab09049
SM
60442020-05-27 Simon Marchi <simon.marchi@efficios.com>
6045
6046 * dwarf2/read.c (lookup_dwo_comp_unit): Change
6047 dwarf2_per_cu_data parameter fo dwarf2_cu.
6048 (lookup_dwo_type_unit): Likewise.
6049 (read_cutu_die_from_dwo): Likewise.
6050 (lookup_dwo_unit): Likewise.
6051 (open_and_init_dwo_file): Likewise.
6052 (lookup_dwo_cutu): Likewise.
6053 (lookup_dwo_comp_unit): Likewise.
6054 (lookup_dwo_type_unit): Likewise.
6055 (cutu_reader::init_tu_and_read_dwo_dies): Update.
6056 (cutu_reader::cutu_reader): Update.
6057
47b14e86
SM
60582020-05-27 Simon Marchi <simon.marchi@efficios.com>
6059
6060 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
6061 parameter.
6062 (process_full_type_unit): Likewise.
6063 (process_queue): Update.
6064
43182c09
SM
60652020-05-27 Simon Marchi <simon.marchi@efficios.com>
6066
6067 * dwarf2/read.c (recursively_compute_inclusions): Add
6068 dwarf2_per_objfile parameter.
6069 (compute_compunit_symtab_includes): Likewise.
6070 (process_cu_includes): Update.
6071
7aa104c4
SM
60722020-05-27 Simon Marchi <simon.marchi@efficios.com>
6073
6074 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
6075 parameter.
6076 (create_type_unit_group): Update.
6077 (process_psymtab_comp_unit_reader): Update.
6078 (build_type_psymtabs_reader): Update.
6079
e3beb21d
SM
60802020-05-27 Simon Marchi <simon.marchi@efficios.com>
6081
6082 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
6083 object through m_this_cu->cu.
6084
d460f660
SM
60852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6086
6087 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
6088 the info parameter.
6089 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
6090
ab432490
SM
60912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6092
6093 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
6094 per_objfile parameter.
6095 (load_full_type_unit): Add per_objfile parameter.
6096 (read_signatured_type): Likewise.
6097 (load_full_comp_unit): Likewise.
6098 (load_cu): Likewise.
6099 (dw2_do_instantiate_symtab): Likewise.
6100 (dw2_get_file_names): Likewise.
6101 (dw2_map_symtabs_matching_filename): Update.
6102 (dw_expand_symtabs_matching_file_matcher): Update.
6103 (dw2_map_symbol_filenames): Update.
6104 (process_psymtab_comp_unit): Add per_objfile parameter.
6105 (build_type_psymtabs_1): Update.
6106 (process_skeletonless_type_unit): Update.
6107 (dwarf2_build_psymtabs_hard): Update.
6108 (load_partial_comp_unit): Add per_objfile parameter.
6109 (scan_partial_symbols): Update.
6110 (load_full_comp_unit): Add per_objfile parameter.
6111 (process_imported_unit_die): Update.
6112 (create_cus_hash_table): Update.
6113 (find_partial_die): Update.
6114 (dwarf2_read_addr_index): Update.
6115 (follow_die_offset): Update.
6116 (dwarf2_fetch_die_loc_sect_off): Update.
6117 (dwarf2_fetch_constant_bytes): Update.
6118 (dwarf2_fetch_die_type_sect_off): Update.
6119 (follow_die_sig_1): Update.
6120 (load_full_type_unit): Add per_objfile parameter.
6121 (read_signatured_type): Likewise.
6122
313bad1b
SM
61232020-05-27 Simon Marchi <simon.marchi@efficios.com>
6124
6125 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
6126 of objfile_name.
6127
c3699833
SM
61282020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6129
6130 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
6131 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6132 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
6133 field.
6134 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
6135 (create_cus_from_index): Update.
6136 (dwarf2_read_gdb_index): Update.
6137 (create_cus_from_debug_names): Update.
6138 (dwarf2_read_debug_names): Update.
6139 (get_abbrev_section_for_cu): Update.
6140 (create_all_comp_units): Update.
6141 (read_attribute_value): Update.
6142 (get_debug_line_section): Update.
6143 * dwarf2/index-cache.c (index_cache::store): Update.
6144 * dwarf2/index-write.c (save_gdb_index_command): Update.
6145 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
6146
1859c670
SM
61472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6148
6149 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
6150 member.
6151 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
6152 dwarf2_per_cu_data::per_bfd.
6153 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
6154 (create_type_unit_group): Likewise.
6155 (queue_comp_unit): Remove reference to
6156 per_cu->dwarf2_per_objfile.
6157 (maybe_queue_comp_unit): Likewise.
6158 (fill_in_sig_entry_from_dwo_entry): Assign new field.
6159 (create_cus_hash_table): Assign new field.
6160
5e22e966
SM
61612020-05-27 Simon Marchi <simon.marchi@efficios.com>
6162
6163 * dwarf2/read.c: Replace
6164 dwarf2_cu->per_cu->dwarf2_per_objfile references with
6165 dwarf2_cu->per_objfile throughout.
6166
97a1449a
SM
61672020-05-27 Simon Marchi <simon.marchi@efficios.com>
6168
6169 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
6170 parameter, don't use per_cu->dwarf2_per_objfile.
6171 (dw2_instantiate_symtab): Likewise.
6172 (dw2_find_last_source_symtab): Update.
6173 (dw2_map_expand_apply): Update.
6174 (dw2_lookup_symbol): Update.
6175 (dw2_expand_symtabs_for_function): Update.
6176 (dw2_expand_all_symtabs): Update.
6177 (dw2_expand_symtabs_with_fullname): Update.
6178 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
6179 don't use per_cu->dwarf2_per_objfile.
6180 (dw2_expand_marked_cus): Update.
6181 (dw2_find_pc_sect_compunit_symtab): Update.
6182 (dw2_debug_names_lookup_symbol): Update.
6183 (dw2_debug_names_expand_symtabs_for_function): Update.
6184 (dw2_debug_names_map_matching_symbols): Update.
6185 (dwarf2_psymtab::expand_psymtab): Update.
6186
9e021579
SM
61872020-05-27 Simon Marchi <simon.marchi@efficios.com>
6188
6189 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
6190 <per_objfile>: New member.
6191 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
6192 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
6193 call to dwarf2_cu.
6194 (cutu_reader::cutu_reader): Update.
6195 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
6196
ae090bdb
SM
61972020-05-27 Simon Marchi <simon.marchi@efficios.com>
6198
6199 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
6200 struct dwarf2_per_objfile.
6201 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
6202 dwarf2_per_bfd.
6203 * dwarf2/read.c (set_die_type): Update.
6204 (get_die_type_at_offset): Update.
6205
af758d11
SM
62062020-05-27 Tom Tromey <tom@tromey.com>
6207 Simon Marchi <simon.marchi@efficios.com>
6208
6209 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
6210 method.
6211 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
6212 get_symtab, set_symtab>: New methods.
6213 <m_symtabs>: New field.
6214 (struct dwarf2_psymtab): Derive from partial_symtab.
6215 <readin_p, get_compunit_symtab>: Declare methods.
6216 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
6217 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
6218 New methods.
6219 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
6220 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
6221 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
6222 (dw2_symtab_iter_next, dw2_print_stats)
6223 (dw2_expand_symtabs_with_fullname)
6224 (dw2_expand_symtabs_matching_one)
6225 (dw_expand_symtabs_matching_file_matcher)
6226 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
6227 (dw2_debug_names_iterator::next)
6228 (dw2_debug_names_map_matching_symbols)
6229 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
6230 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
6231 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
6232 New methods.
6233 (get_compunit_symtab, process_full_comp_unit)
6234 (process_full_type_unit): Update.
6235 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
6236
5989a64e
SM
62372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
6238
6239 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
6240 then introduce a new dwarf2_per_objfile type.
6241 <read_line_string>: Move to the new dwarf2_per_objfile type.
6242 <objfile>: Likewise.
6243 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
6244 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
6245 dwarf2_per_objfile->per_bfd.
6246 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
6247 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
6248 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
6249 (dwarf2_per_bfd::free_cached_comp_units): ... this.
6250 (dwarf2_has_info): Allocate dwarf2_per_bfd.
6251 (dwarf2_per_objfile::locate_sections): Rename to...
6252 (dwarf2_per_bfd::locate_sections): ... this.
6253 (dwarf2_per_objfile::get_cutu): Rename to...
6254 (dwarf2_per_bfd::get_cutu): ... this.
6255 (dwarf2_per_objfile::get_cu): Rename to...
6256 (dwarf2_per_bfd::get_cu): ... this.
6257 (dwarf2_per_objfile::get_tu): Rename to...
6258 (dwarf2_per_bfd::get_tu): ... this.
6259 (dwarf2_per_objfile::allocate_per_cu): Rename to...
6260 (dwarf2_per_bfd::allocate_per_cu): ... this.
6261 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
6262 (dwarf2_per_bfd::allocate_signatured_type): ... this.
6263 (get_gdb_index_contents_ftype): Change parameter from
6264 dwarf2_per_objfile to dwarf2_per_bfd.
6265 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
6266 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
6267
a50264ba
TT
62682020-05-27 Tom Tromey <tom@tromey.com>
6269 Simon Marchi <simon.marchi@efficios.com>
6270
6271 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
6272 (allocate_piece_closure): Set "per_objfile" member.
6273 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
6274 (locexpr_describe_location, loclist_describe_location): Use new
6275 member.
6276 * dwarf2/read.c (read_call_site_scope)
6277 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
6278 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
6279 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
6280 handle_data_member_location): Set per_objfile member.
6281 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
6282 member.
6283 (struct dwarf2_loclist_baton) <per_objfile>: New member.
6284
d3473f0c
TT
62852020-05-27 Tom Tromey <tom@tromey.com>
6286
6287 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
6288 allocate_signatured_type>: Declare new methods.
6289 <m_num_psymtabs>: New member.
6290 (struct dwarf2_per_cu_data) <index>: New member.
6291 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
6292 (dwarf2_per_objfile::allocate_signatured_type): New methods.
6293 (create_cu_from_index_list): Use allocate_per_cu.
6294 (create_signatured_type_table_from_index)
6295 (create_signatured_type_table_from_debug_names)
6296 (create_debug_type_hash_table, add_type_unit)
6297 (read_comp_units_from_section): Use allocate_signatured_type.
6298
5717c425
TT
62992020-05-27 Tom Tromey <tom@tromey.com>
6300
6301 * psymtab.c (partial_map_expand_apply)
6302 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
6303 (psym_lookup_global_symbol_language)
6304 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
6305 (psym_print_stats, psym_expand_symtabs_for_function)
6306 (psym_map_symbol_filenames, psym_map_matching_symbols)
6307 (psym_expand_symtabs_matching)
6308 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
6309 (maintenance_check_psymtabs): Update.
6310 * psympriv.h (struct partial_symtab) <readin_p,
6311 get_compunit_symtab>: Add objfile parameter.
6312 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
6313 Likewise.
6314 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
6315 get_compunit_symtab>: Likewise.
6316 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
6317
45940949
TT
63182020-05-27 Tom Tromey <tom@tromey.com>
6319
6320 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
6321 member.
6322 * dwarf2/read.c (delete_file_name_entry): Fix comment.
6323 (create_cu_from_index_list)
6324 (create_signatured_type_table_from_index)
6325 (create_signatured_type_table_from_debug_names)
6326 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
6327 (dwarf2_create_include_psymtab)
6328 (create_debug_type_hash_table, add_type_unit)
6329 (create_type_unit_group, read_comp_units_from_section)
6330 (dwarf2_compute_name, create_cus_hash_table)
6331 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
6332 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
6333 obstack.
6334 (dw2_get_real_path): Likewise. Change argument to
6335 dwarf2_per_objfile.
6336
f8c6d152
LM
63372020-05-27 Luis Machado <luis.machado@linaro.org>
6338
6339 PR tdep/26000
6340 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
6341 for ldrd (immediate).
6342
e98d2e6d
PW
63432020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6344
6345 * command.h: Add comment giving the name of class_tui.
6346 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
6347 create the fake command for the help for class_tui.
6348
53a47a3e
TT
63492020-05-26 Tom Tromey <tromey@adacore.com>
6350
6351 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
6352 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
6353 (val_atr): New function.
6354 (value_val_atr): Use it.
6355 * ada-valprint.c (print_optional_low_bound): Change low bound
6356 handling for enums.
6357 (val_print_packed_array_elements): Don't call discrete_position.
6358 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
6359 discrete_position for enum types.
6360 * language.c (default_print_array_index): Change type.
6361 * language.h (struct language_defn) <la_print_array_index>: Add
6362 index_type parameter, change type of index_value.
6363 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
6364 (default_print_array_index): Update.
6365 * valprint.c (maybe_print_array_index): Don't call
6366 value_from_longest. Update.
6367 (value_print_array_elements): Don't call discrete_position.
6368
0bc2354b
TT
63692020-05-26 Tom Tromey <tromey@adacore.com>
6370
6371 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
6372 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
6373
1218a4bf
CDA
63742020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
6375
6376 PR gdb/13519
6377 * avr-tdep.c (avr_integer_to_address): Return data or code
6378 address accordingly to the second 'type' argument of the
6379 function.
6380
92651b1d
MW
63812020-05-25 Michael Weghorn <m.weghorn@posteo.de>
6382
6383 * infcmd.c, inferior.h: (construct_inferior_arguments):
6384 Moved function from here to gdbsupport/common-inferior.{h,cc}
6385
0a4f5f8c
TT
63862020-05-23 Tom Tromey <tom@tromey.com>
6387
6388 Revert commit eca1f90c:
6389 * NEWS: Remove entry for completion styling.
6390 * completer.c (_rl_completion_prefix_display_length): Move
6391 declaration later.
6392 (gdb_fnprint): Revert.
6393 (gdb_display_match_list_1): Likewise.
6394 * cli/cli-style.c (completion_prefix_style)
6395 (completion_difference_style, completion_suffix_style): Remove.
6396 (_initialize_cli_style): Revert.
6397 * cli/cli-style.h (completion_prefix_style)
6398 (completion_difference_style, completion_suffix_style): Don't
6399 declare.
6400
e08bd6c5
PA
64012020-05-24 Pedro Alves <palves@redhat.com>
6402
6403 * symtab.c (completion_list_add_name): Return boolean indication
6404 of whether the symbol matched.
6405 (completion_list_add_symbol): Don't try to remove C++ aliases if
6406 the symbol didn't match in the first place.
6407 * symtab.h (completion_list_add_name): Return bool.
6408
ceacbf6e
SM
64092020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
6410
6411 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
6412 type::field.
6413
26f16254
JB
64142020-05-23 Joel Brobecker <brobecker@adacore.com>
6415
6416 GDB 9.2 released.
6417
eca1f90c
TT
64182020-05-23 Tom Tromey <tom@tromey.com>
6419
6420 * NEWS: Add entry for completion styling.
6421 * completer.c (_rl_completion_prefix_display_length): Move
6422 declaration earlier.
6423 (gdb_fnprint): Use completion_style.
6424 (gdb_display_match_list_1): Likewise.
6425 * cli/cli-style.c (completion_prefix_style)
6426 (completion_difference_style, completion_suffix_style): New
6427 globals.
6428 (_initialize_cli_style): Register new globals.
6429 * cli/cli-style.h (completion_prefix_style)
6430 (completion_difference_style, completion_suffix_style): Declare.
6431
51e2cfa2
PA
64322020-05-23 Pedro Alves <palves@redhat.com>
6433
6434 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
6435 (parse_escape): Use ISDIGIT instead of isdigit.
6436 (puts_debug): Use gdb_isprint instead of isprint.
6437 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
6438 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
6439 ISSPACE instead of isspace.
6440 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
6441 instead of isspace.
6442 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
6443 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
6444 instead of isxdigit and ISDIGIT instead of isdigit.
6445
80fc5e77
SM
64462020-05-22 Simon Marchi <simon.marchi@efficios.com>
6447
6448 * gdbtypes.h (struct type) <field>: New method.
6449 (TYPE_FIELDS): Remove, replace all uses with either type::fields
6450 or type::field.
6451
3cabb6b0
SM
64522020-05-22 Simon Marchi <simon.marchi@efficios.com>
6453
6454 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
6455 (TYPE_FIELDS): Use type::fields. Change all call sites that
6456 modify the propery to use type::set_fields instead.
6457
1f704f76
SM
64582020-05-22 Simon Marchi <simon.marchi@efficios.com>
6459
6460 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
6461 type::num_fields instead.
6462
5e33d5f4
SM
64632020-05-22 Simon Marchi <simon.marchi@efficios.com>
6464
6465 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
6466 methods.
6467 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
6468 that modify the number of fields to use type::set_num_fields
6469 instead.
6470
9392ebb3
TT
64712020-05-22 Tom Tromey <tromey@adacore.com>
6472
6473 * compile/compile-object-load.h (munmap_list_free): Don't
6474 declare.
6475
7c13f4e8
AB
64762020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6477
6478 * annotate.c (annotate_source_line): Update return type, add call
6479 to update current symtab and line.
6480 * annotate.h (annotate_source_line): Update return type, and
6481 extend header comment.
6482 * source.c (info_line_command): Check annotation_level before
6483 calling annotate_source_line.
6484 * stack.c (print_frame_info): If calling annotate_source_line
6485 returns true, then don't print any other source line information.
6486
aa370940
SM
64872020-05-21 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
6490
84d53fa9
SM
64912020-05-21 Simon Marchi <simon.marchi@efficios.com>
6492
6493 * coffread.c (patch_type): Remove NULL check before xfree.
6494 * corefile.c (set_gnutarget): Likewise.
6495 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
6496 * exec.c (build_section_table): Likewise.
6497 * remote.c (remote_target::pass_signals): Likewise.
6498 * utils.c (n_spaces): Likewise.
6499 * cli/cli-script.c (document_command): Likewise.
6500 * i386-windows-tdep.c (core_process_module_section): Likewise.
6501 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
6502
9d428aae
SM
65032020-05-20 Simon Marchi <simon.marchi@efficios.com>
6504
6505 * symfile.c (reread_symbols): Clear objfile's section_offsets
6506 vector and section indices, re-compute them by calling
6507 sym_offsets.
6508
250106a7
TT
65092020-05-20 Tom Tromey <tromey@adacore.com>
6510
6511 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 6512 (desc_one_bound, desc_index_type): Compute field name.
250106a7 6513
9a0bacfb
TV
65142020-05-20 Tom de Vries <tdevries@suse.de>
6515
6516 PR symtab/25833
6517 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
6518
7b958a48
AM
65192020-05-20 Alan Modra <amodra@gmail.com>
6520
6521 PR 25993
6522 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
6523 bfd_set_filename.
6524 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
6525 passed to bfd_set_filename.
6526 * symfile-mem.c (add_vsyscall_page): Likewise for string
6527 passed to symbol_file_add_from_memory.
6528 (symbol_file_add_from_memory): Make name param a const char* and
6529 don't strdup.
6530
c7e97679
AM
65312020-05-20 Alan Modra <amodra@gmail.com>
6532
6533 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
6534 rather than accessing bfd->filename directly.
6535 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
6536 and use bfd_section_name.
6537 * dwarf2/frame.c (decode_frame_entry): Likewise.
6538 * exec.c (exec_set_section_address): Likewise.
6539 * solib-aix.c (solib_aix_bfd_open): Likewise.
6540 * stap-probe.c (get_stap_base_address): Likewise.
6541 * symfile.c (reread_symbols): Likewise.
6542
563c591b
TT
65432020-05-19 Tom Tromey <tromey@adacore.com>
6544
6545 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
6546
f408d82c
SM
65472020-05-19 Simon Marchi <simon.marchi@efficios.com>
6548
6549 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
6550
98c59b52
PA
65512020-05-19 Pedro Alves <palves@redhat.com>
6552
6553 * NEWS (set exec-file-mismatch): Adjust entry.
6554 * exec.c: Include "build-id.h".
6555 (validate_exec_file): Try to match build IDs instead of filenames.
6556 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
6557 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
6558 and pass down 'warn_if_slow'.
6559 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
6560 gdb_bfd_open_closure to pass it down.
6561 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
6562
4111f652
PA
65632020-05-19 Pedro Alves <palves@redhat.com>
6564
6565 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
6566 * target.c (target_fileio_open_1): Rename to target_fileio_open
6567 and make extern. Use bool.
6568 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
6569 (target_fileio_read_alloc_1): Adjust.
6570 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
6571 (target_fileio_open_warn_if_slow): Delete declaration.
6572
ad80db5b
PA
65732020-05-19 Pedro Alves <palves@redhat.com>
6574
6575 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
6576 Adjust all callers.
6577
1d6ce4d3
YS
65782020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
6579
6580 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
6581 whether disp is negative.
6582
9005fbbb
SM
65832020-05-19 Simon Marchi <simon.marchi@efficios.com>
6584
6585 * symfile.h (struct symfile_segment_data)
6586 <~symfile_segment_data>: Remove.
6587 <segment_info>: Change to std::vector.
6588 * symfile.c (default_symfile_segments): Update.
6589 * elfread.c (elf_symfile_segments): Update.
6590
68b888ff
SM
65912020-05-19 Simon Marchi <simon.marchi@efficios.com>
6592
6593 * symfile.h (struct symfile_segment_data) <struct segment>: New.
6594 <segments>: New.
6595 <segment_bases, segment_sizes>: Remove.
6596 * symfile.c (default_symfile_segments): Update.
6597 * elfread.c (elf_symfile_segments): Update.
6598 * remote.c (remote_target::get_offsets): Update.
6599 * solib-target.c (solib_target_relocate_section_addresses):
6600 Update.
6601
62982abd
SM
66022020-05-19 Simon Marchi <simon.marchi@efficios.com>
6603
6604 * symfile.h (struct symfile_segment_data): Initialize fields.
6605 <~symfile_segment_data>: Add.
6606 (symfile_segment_data_up): New.
6607 (struct sym_fns) <sym_segments>: Return a
6608 symfile_segment_data_up.
6609 (default_symfile_segments): Return a symfile_segment_data_up.
6610 (free_symfile_segment_data): Remove.
6611 (get_symfile_segment_data): Return a symfile_segment_data_up.
6612 * symfile.c (default_symfile_segments): Likewise.
6613 (get_symfile_segment_data): Likewise.
6614 (free_symfile_segment_data): Remove.
6615 (symfile_find_segment_sections): Update.
6616 * elfread.c (elf_symfile_segments): Return a
6617 symfile_segment_data_up.
6618 * remote.c (remote_target::get_offsets): Update.
6619 * solib-target.c (solib_target_relocate_section_addresses):
6620 Update.
6621 * symfile-debug.c (debug_sym_segments): Return a
6622 symfile_segment_data_up.
6623
7f204339
RO
66242020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6625
e52a0f1b
RO
6626 PR build/25981
6627 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
6628 Hardcode register numbers.
6629
7f204339
RO
6630 PR build/25981
6631 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
6632 procfs_find_LDT_entry): Remove.
6633 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
6634 procfs_find_LDT_entry): Remove.
6635 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
6636 Remove.
6637
7f32a4d5
PA
66382020-05-17 Pedro Alves <palves@redhat.com>
6639 Andrew Burgess <andrew.burgess@embecosm.com>
6640 Keno Fischer <keno@juliacomputing.com>
6641
6642 PR gdb/25741
6643 * breakpoint.c (build_target_condition_list): Update comments.
6644 (build_target_command_list): Update comments and skip matching
6645 locations.
6646 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
6647 a separate function. Simplify "set breakpoint auto-hw off"
6648 handling.
6649 (insert_breakpoints): Update comment.
6650 (tracepoint_locations_match): New parameter. For breakpoints,
6651 compare location types too, if the caller wants to.
6652 (handle_automatic_hardware_breakpoints): New functions.
6653 (bp_location_is_less_than): Also sort by location type and
6654 hardware breakpoint length.
6655 (update_global_location_list): Handle "set breakpoint auto-hw on"
6656 here.
6657 (update_breakpoint_locations): Ask breakpoint_locations_match to
6658 ignore location types.
6659
7d93a1e0
SM
66602020-05-16 Simon Marchi <simon.marchi@efficios.com>
6661
6662 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
6663 type::name instead.
6664
d0e39ea2
SM
66652020-05-16 Simon Marchi <simon.marchi@efficios.com>
6666
6667 * gdbtypes.h (struct type) <name, set_name>: New methods.
6668 (TYPE_CODE): Use type::name. Change all call sites used to set
6669 the name to use type::set_name instead.
6670
2dab0c7b
TT
66712020-05-16 Tom Tromey <tom@tromey.com>
6672
6673 * top.c (quit_force): Update.
6674 * infrun.c (handle_no_resumed): Update.
6675 * top.h (all_uis): New function.
6676 (ALL_UIS): Remove.
6677
59f7bd8d
SM
66782020-05-16 Simon Marchi <simon.marchi@efficios.com>
6679
6680 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
6681
9bf058f0
PA
66822020-05-16 Pedro Alves <palves@redhat.com>
6683
6684 * ia64-linux-nat.c
6685 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
6686 Declare method.
6687 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
6688
8f86ae1a
SM
66892020-05-15 Simon Marchi <simon.marchi@efficios.com>
6690
6691 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
6692 (sparc64_adi_info): Likewise.
6693
d6bc0792
TT
66942020-05-15 Tom Tromey <tom@tromey.com>
6695
6696 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
6697 block_objfile.
6698 (lookup_objfile_from_block): Remove.
6699 (lookup_symbol_in_block, lookup_symbol_in_static_block)
6700 (lookup_global_symbol): Use block_objfile.
6701 * symtab.h (lookup_objfile_from_block): Don't declare.
6702 * printcmd.c (clear_dangling_display_expressions): Use
6703 block_objfile.
6704 * parse.c (operator_check_standard): Use block_objfile.
6705
8c14c3a3
TT
67062020-05-15 Tom Tromey <tom@tromey.com>
6707
6708 * language.c (language_alloc_type_symbol): Set
6709 SYMBOL_SECTION.
6710 * symtab.c (initialize_objfile_symbol): Remove.
6711 (allocate_symbol): Remove.
6712 (allocate_template_symbol): Remove.
6713 * dwarf2/read.c (fixup_go_packaging): Use "new".
6714 (new_symbol): Use "new".
6715 (read_variable): Don't call initialize_objfile_symbol. Use
6716 "new".
6717 (read_func_scope): Use "new".
6718 * xcoffread.c (process_xcoff_symbol): Don't call
6719 initialize_objfile_symbol.
6720 (SYMBOL_DUP): Remove.
6721 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
6722 "new".
6723 * symtab.h (allocate_symbol, initialize_objfile_symbol)
6724 (allocate_template_symbol): Don't declare.
6725 (struct symbol): Add copy constructor. Change defaults.
6726 * jit.c (finalize_symtab): Use "new".
6727 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
6728 Use "new".
6729 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
6730 (common_block_end): Use "new".
6731 * mdebugread.c (parse_symbol): Use "new".
6732 (new_symbol): Likewise.
6733
5b4a1a8d
PW
67342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6735
6736 * NEWS: Mention changes to help and apropos.
6737
57b4f16e
PW
67382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6739
6740 * command.h (enum command_class): Improve comments, document
6741 that class_alias is for user-defined aliases, give the class
6742 name for each class, remove unused class_xdb.
6743 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
6744 * breakpoint.c (_initialize_breakpoint): Replace class_alias
6745 by a precise class.
6746 * infcmd.c (_initialize_infcmd): Likewise.
6747 * reverse.c (_initialize_reverse): Likewise.
6748 * stack.c (_initialize_stack): Likewise.
6749 * symfile.c (_initialize_symfile): Likewise.
6750 * tracepoint.c (_initialize_tracepoint): Likewise.
6751
7c05caf7
PW
67522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6753
6754 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
6755 when their aliased command is traversed.
6756 (help_cmd): Add fput_command_names_styled call to
6757 output command name and aliases when command has an alias.
6758
3b3aaacb
PW
67592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6760
6761 * cli/cli-decode.h (help_cmd_list): Remove declaration.
6762 * cli/cli-decode.c (help_cmd_list): Declare as static,
6763 remove prefix argument, use bool for recurse arg, rework to show the aliases of
6764 a command together with the command.
6765 (fput_command_name_styled, fput_command_names_styled): New functions.
6766 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
6767 fput_command_name_styled.
6768 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
6769 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
6770
7aa1b46f
PW
67712020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6772
6773 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
6774 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
6775 * command.h (cmd_show_list): Likewise.
6776 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
6777 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
6778
89bcba74
PW
67792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6780
6781 * unittests/command-def-selftests.c (traverse_command_structure):
6782 Verify all commands of a list have the same prefix command and
6783 that only the top cmdlist commands have a null prefix.
6784
3f4d92eb
PW
67852020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6786
6787 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
6788 as prefix, not one of its aliases.
6789 (set_cmd_prefix): Remove.
6790 (do_add_cmd): Centralize the setting of the prefix of a command, when
6791 command is defined after its full chain of prefix commands.
6792 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
6793 (add_setshow_cmd_full): Likewise.
6794 (update_prefix_field_of_prefixed_commands): New function.
6795 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
6796 update_prefix_field_of_prefixed_commands.
6797 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
6798 addresses of remote_set_cmdlist and remote_show_cmdlist given
6799 as argument, not the address of an argument.
6800 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
6801 * gdb/remote.c (_initialize_remote): Likewise.
6802
0605465f
PW
68032020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6804
6805 * cli/cli-cmds.c (alias_command): Check for an existing alias
6806 using lookup_cmd_composition, as valid_command_p is too strict
6807 and forbids aliases that are the prefix of an existing alias
6808 or command.
6809 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
6810 command is properly recognised as a valid command.
6811
58e6ac70
PW
68122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6813
6814 * unittests/help-doc-selftests.c: Rename to
6815 unittests/command-def-selftests.c
6816 * unittests/command-def-selftests.c (help_doc_tests): Update some
6817 comments.
6818 (command_structure_tests, traverse_command_structure): New namespace
6819 and function.
6820 (command_structure_invariants_tests): New function.
6821 (_initialize_command_def_selftests) Renamed from
6822 _initialize_help_doc_selftests, register command_structure_invariants
6823 selftest.
6824
a7b9ceb8
PW
68252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6826
6827 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
6828 an alias of 'show'.
6829
b2188a06
JB
68302020-05-15 Joel Brobecker <brobecker@adacore.com>
6831
6832 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
6833 ada_is_fixed_point_type. Update all callers.
6834 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
6835 all callers.
6836 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
6837 Update all callers.
6838 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
6839 print_fixed_point_type. Update all callers.
6840 * ada-valprint.c (ada_value_print_num): Replace call to
6841 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
6842
a51951c2
KB
68432020-05-14 Kevin Buettner <kevinb@redhat.com>
6844
6845 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
6846 processors.
6847 (cpu_supports_bts): Add CV_AMD case.
6848
29d6859f
LM
68492020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
6850 Simon Marchi <simon.marchi@efficios.com>
6851
6852 * infrun.c (stop_all_threads): Collect multiple wait events at
6853 each pass.
6854
78134374
SM
68552020-05-14 Simon Marchi <simon.marchi@efficios.com>
6856
6857 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
6858 type::code instead.
6859
67607e24
SM
68602020-05-14 Simon Marchi <simon.marchi@efficios.com>
6861
6862 * gdbtypes.h (struct type) <code, set_code>: New methods.
6863 (TYPE_CODE): Use type::code. Change all call sites used to set
6864 the code to use type::set_code instead.
6865
a05575d3
TBA
68662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6867 Tom de Vries <tdevries@suse.de>
6868 Pedro Alves <palves@redhat.com>
6869
6870 PR threads/25478
6871 * infrun.c (stop_all_threads): Do NOT ignore
6872 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
6873 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
6874 received.
6875 (handle_no_resumed): Remove code handling a live inferior with no
6876 threads.
6877 * remote.c (has_single_non_exited_thread): New.
6878 (remote_target::update_thread_list): Do not delete a thread if is
6879 the last thread of the process.
6880 * thread.c (thread_select): Call delete_exited_threads instead of
6881 prune_threads.
6882
6ad82919
TBA
68832020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6884
6885 * infrun.c (stop_all_threads): Enable/disable thread events of all
6886 targets. Move a debug message denoting the end of the function
6887 into the SCOPED_EXIT block.
6888
d890404b
TBA
68892020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6890
6891 * process-stratum-target.h: Include <set>.
6892 (all_non_exited_process_targets, switch_to_target_no_thread): New
6893 function declarations.
6894 * process-stratum-target.c (all_non_exited_process_targets)
6895 (switch_to_target_no_thread): New function implementations.
6896
293b3ebc
TBA
68972020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6898
6899 * infrun.c (handle_inferior_event): Extract out a piece of code
6900 into...
6901 (mark_non_executing_threads): ...this new function.
6902
7ca9b62a
TBA
69032020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6904
6905 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
6906 use.
6907
fc75c28b
TBA
69082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6909
6910 * regcache.c (regcache_read_pc_protected): New function
6911 implementation that returns 0 if the PC cannot read via
6912 'regcache_read_pc'.
6913 * infrun.c (proceed): Call 'regcache_read_pc_protected'
6914 instead of 'regcache_read_pc'.
6915 (keep_going_pass_signal): Ditto.
6916
a89febbd
TT
69172020-05-13 Tom Tromey <tromey@adacore.com>
6918
6919 * ada-lang.c (align_value): Remove.
6920 (ada_template_to_fixed_record_type_1): Use align_up.
6921
f7e23710
TBA
69222020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6923
6924 * async-event.c: Update the copyright year.
6925 * async-event.h: Update the copyright year.
6926
02ff80c2
SM
69272020-05-12 Simon Marchi <simon.marchi@efficios.com>
6928
6929 * objfiles.h (is_addr_in_objfile,
6930 shared_objfile_contains_address_p): Return bool.
6931 * objfile.c (is_addr_in_objfile,
6932 shared_objfile_contains_address_p): Return bool.
6933
4fd6c7e8
TT
69342020-05-11 Tom Tromey <tromey@adacore.com>
6935
6936 * cli/cli-cmds.c (info_command): Restore.
6937 (_initialize_cli_cmds): Use add_prefix_command for "info".
6938 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
6939
5eb68a39
TT
69402020-05-11 Tom Tromey <tromey@adacore.com>
6941
6942 * ada-lang.c (ada_value_primitive_field): Now public.
6943 * ada-lang.h (ada_value_primitive_field): Declare.
6944 * ada-valprint.c (print_field_values): Use
6945 ada_value_primitive_field for wrapper fields.
6946
7666722f
TV
69472020-05-11 Tom de Vries <tdevries@suse.de>
6948
6949 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
6950 MODULE_DOMAIN.
6951
3ee6bb11
TV
69522020-05-11 Tom de Vries <tdevries@suse.de>
6953
6954 PR symtab/25941
6955 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
6956 with length 0, if not gdb-produced.
6957 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
6958
43434996
TV
69592020-05-09 Tom de Vries <tdevries@suse.de>
6960
6961 PR gdb/25955
6962 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
6963 calculation.
6964
2f78cffc
TT
69652020-05-09 Tom Tromey <tom@tromey.com>
6966
6967 * top.c (server_command): Now bool.
6968 * top.h (server_command): Now bool.
6969
4f7bc5ed
TT
69702020-05-08 Tom Tromey <tromey@adacore.com>
6971
6972 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
6973 already being processed.
6974
8be4b118
TT
69752020-05-08 Tom Tromey <tom@tromey.com>
6976
6977 * printcmd.c (struct display) <next>: Remove.
6978 <display>: New constructor.
6979 <exp_string>: Now a std::string.
6980 <enabled_p>: Now a bool.
6981 (display_number): Move definition earlier.
6982 (displays): Rename from display_chain. Now a std::vector.
6983 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
6984 (display_command): Update.
6985 (do_one_display, disable_display)
6986 (enable_disable_display_command, do_enable_disable_display):
6987 Update.
6988 (free_display): Remove.
6989 (clear_displays): Rewrite.
6990 (delete_display): Update.
6991 (map_display_numbers): Use function_view. Remove "data"
6992 parameter. Update.
6993 (do_delete_display): Remove.
6994 (undisplay_command): Update.
6995 (do_one_display, do_displays, disable_display)
6996 (info_display_command): Update.
6997 (do_enable_disable_display): Remove.
6998 (enable_disable_display_command)
6999 (clear_dangling_display_expressions): Update.
7000
94c93c35
TT
70012020-05-08 Tom Tromey <tom@tromey.com>
7002
7003 * symtab.c (set_symbol_cache_size)
7004 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
7005 (maintenance_print_symbol_cache_statistics): Update.
7006 * symmisc.c (print_symbol_bcache_statistics)
7007 (print_objfile_statistics, maintenance_print_objfiles)
7008 (maintenance_info_symtabs, maintenance_check_symtabs)
7009 (maintenance_expand_symtabs, maintenance_info_line_tables):
7010 Update.
7011 * symfile-debug.c (set_debug_symfile): Update.
7012 * source.c (forget_cached_source_info): Update.
7013 * python/python.c (gdbpy_progspaces): Update.
7014 * psymtab.c (maintenance_info_psymtabs): Update.
7015 * probe.c (parse_probes): Update.
7016 * linespec.c (iterate_over_all_matching_symtabs)
7017 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
7018 * guile/scm-progspace.c (gdbscm_progspaces): Update.
7019 * exec.c (exec_target::close): Update.
7020 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
7021 * breakpoint.c (print_one_breakpoint_location)
7022 (create_longjmp_master_breakpoint)
7023 (create_std_terminate_master_breakpoint): Update.
7024 * progspace.c (program_spaces): Now a std::vector.
7025 (maybe_new_address_space): Update.
7026 (add_program_space): Remove.
7027 (program_space::program_space): Update.
7028 (remove_program_space): Update.
7029 (number_of_program_spaces): Remove.
7030 (print_program_space, update_address_spaces): Update.
7031 * progspace.h (program_spaces): Change type.
7032 (ALL_PSPACES): Remove.
7033 (number_of_program_spaces): Don't declare.
7034 (struct program_space) <next>: Remove.
7035
a1fd1ac9
TT
70362020-05-08 Tom Tromey <tom@tromey.com>
7037
7038 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
7039 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
7040 (enable_break): Update.
7041 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
7042 (frv_fdpic_find_canonical_descriptor): Update.
7043 (frv_fetch_objfile_link_map): Update.
7044 * progspace.c (program_space::free_all_objfiles): Update.
7045 (program_space::solibs): New method.
7046 * progspace.h (struct program_space) <solibs>: New method.
7047 * solist.h (master_so_list): Don't declare.
7048 (ALL_SO_LIBS): Remove.
7049 * solib.h (so_list_head): Remove.
7050 (update_solib_list): Update comment.
7051 * solib.c (master_so_list): Remove.
7052 (solib_used, update_solib_list, solib_add)
7053 (info_sharedlibrary_command, clear_solib)
7054 (reload_shared_libraries_1, remove_user_added_objfile): Update.
7055
38eae084
TT
70562020-05-08 Tom Tromey <tom@tromey.com>
7057
7058 * extension.c (extension_languages): Now a std::array.
7059 (ALL_EXTENSION_LANGUAGES): Remove.
7060 (get_ext_lang_defn, get_ext_lang_of_file)
7061 (eval_ext_lang_from_control_command): Update.
7062 (finish_ext_lang_initialization)
7063 (auto_load_ext_lang_scripts_for_objfile)
7064 (ext_lang_type_printers::ext_lang_type_printers)
7065 (apply_ext_lang_type_printers)
7066 (ext_lang_type_printers::~ext_lang_type_printers)
7067 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
7068 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
7069 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
7070 (get_matching_xmethod_workers, ext_lang_colorize)
7071 (ext_lang_before_prompt): Update.
7072 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
7073
596dc4ad
TT
70742020-05-08 Tom Tromey <tom@tromey.com>
7075
7076 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
7077 overload.
7078 <swap_string, m_string>: Remove.
7079 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
7080 Update.
7081 * stabsread.c (define_symbol, read_type): Update.
7082 * linespec.c (find_linespec_symbols): Update.
7083 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
7084 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
7085 * dbxread.c (read_dbx_symtab): Update.
7086 * cp-support.h (cp_canonicalize_string_full)
7087 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
7088 Return unique_xmalloc_ptr.
7089 * cp-support.c (inspect_type): Update.
7090 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
7091 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
7092 Likewise.
7093 * c-typeprint.c (print_name_maybe_canonical): Update.
7094 * break-catch-throw.c (check_status_exception_catchpoint):
7095 Update.
7096
bf4cb9be
TV
70972020-05-08 Tom de Vries <tdevries@suse.de>
7098
7099 * infrun.c (follow_fork): Copy current_line and current_symtab to
7100 child thread.
7101
a1b68f28
SM
71022020-05-07 Simon Marchi <simon.marchi@efficios.com>
7103
7104 * async-event.c (struct async_signal_handler, struct
7105 async_event_handler): Reformat, remove typedef.
7106
98d48915
SM
71072020-05-07 Simon Marchi <simon.marchi@efficios.com>
7108
7109 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
7110 access thistype->main_type->dyn_prop_list directly.
7111
7aa91313
SM
71122020-05-07 Simon Marchi <simon.marchi@efficios.com>
7113
7114 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
7115 (remove_dyn_prop): Remove. Update all users to use
7116 type::remove_dyn_prop.
7117 * gdbtypes.c (remove_dyn_prop): Rename to...
7118 (type::remove_dyn_prop): ... this.
7119
5c54719c
SM
71202020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
7121
7122 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
7123 (add_dyn_prop): Remove. Update all users to use
7124 type::add_dyn_prop.
7125 * gdbtypes.c (add_dyn_prop): Rename to...
7126 (type::add_dyn_prop): ... this.
7127
24e99c6c
SM
71282020-05-07 Simon Marchi <simon.marchi@efficios.com>
7129
7130 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
7131 (get_dyn_prop): Remove. Update all users to use
7132 type::dyn_prop.
7133 * gdbtypes.c (get_dyn_prop): Rename to...
7134 (type::dyn_prop): ... this.
7135
0d4bf016
SM
71362020-05-06 Simon Marchi <simon.marchi@efficios.com>
7137
7138 * gdbtypes.h (struct main_type) <flag_static>: Remove.
7139
ac4a4f1c
SM
71402020-05-06 Simon Marchi <simon.marchi@efficios.com>
7141
7142 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
7143 instruction, skip it if it's there.
7144
a3bbacc1
SM
71452020-05-05 Simon Marchi <simon.marchi@efficios.com>
7146
7147 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
7148
c3236f84
SM
71492020-05-04 Simon Marchi <simon.marchi@efficios.com>
7150
7151 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
7152 * gdbtypes.c (recursive_dump_type): Remove use of
7153 TYPE_INCOMPLETE.
7154
3b6acaee
TT
71552020-05-03 Tom Tromey <tom@tromey.com>
7156
7157 * breakpoint.c (catch_command, tcatch_command): Remove.
7158 (_initialize_breakpoint): Use add_basic_prefix_cmd,
7159 add_show_prefix_cmd.
7160 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
7161 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
7162 Remove.
7163 (add_internal_problem_command): Use add_basic_prefix_cmd,
7164 add_show_prefix_cmd.
7165 * mips-tdep.c (set_mipsfpu_command): Remove.
7166 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
7167 * dwarf2/index-cache.c (set_index_cache_command): Remove.
7168 (_initialize_index_cache): Use add_basic_prefix_cmd.
7169 * memattr.c (dummy_cmd): Remove.
7170 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
7171 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
7172 (_initialize_tui_win): Use add_basic_prefix_cmd,
7173 add_show_prefix_cmd.
7174 * cli/cli-logging.c (set_logging_command): Remove.
7175 (_initialize_cli_logging): Use add_basic_prefix_cmd,
7176 add_show_prefix_cmd.
7177 (show_logging_command): Remove.
7178 * target.c (target_command): Remove.
7179 (add_target): Use add_basic_prefix_cmd.
7180
a51119cd
HD
71812020-05-02 Hannes Domani <ssbssa@yahoo.de>
7182
7183 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
7184
652fc23a 71852020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7186
652fc23a
PW
7187 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
7188 info_command.
7189
117539e6
KR
71902020-04-30 Kamil Rytarowski <n54@gmx.com>
7191
7192 * nbsd-nat.c (nbsd_enable_proc_events)
7193 (nbsd_nat_target::post_startup_inferior): Add.
7194 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
7195 (nbsd_nat_target::update_thread_list): Rewrite.
7196 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
7197 "PTRACE_LWP_CREATE".
7198 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
7199
102e38eb 72002020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 7201
102e38eb
PW
7202 * stack.c (_initialize_stack): Remove duplicated creation
7203 of "frame" command and "f" alias.
7204
ee9d1e5f
HD
72052020-04-30 Hannes Domani <ssbssa@yahoo.de>
7206
7207 PR gdb/18706
7208 * gdbtypes.c (check_typedef): Calculate size of array of
7209 stubbed type.
7210
627c7fb8
HD
72112020-04-30 Hannes Domani <ssbssa@yahoo.de>
7212
7213 PR gdb/15559
7214 * i386-tdep.c (i386_push_dummy_call): Call
7215 i386_thiscall_push_dummy_call.
7216 (i386_thiscall_push_dummy_call): New function.
7217 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
7218 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
7219 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
7220
ffc2844e
SM
72212020-04-29 Simon Marchi <simon.marchi@efficios.com>
7222
7223 * gdbarch.sh (do_read): Add shellcheck disable directive for
7224 warning SC2162.
7225
1207375d
SM
72262020-04-29 Simon Marchi <simon.marchi@efficios.com>
7227
7228 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
7229 "referenced but not assigned" warning.
7230
9fdb2916
SM
72312020-04-29 Simon Marchi <simon.marchi@efficios.com>
7232
7233 * gdbarch.sh: Remove code that sets fallbackdefault.
7234
759cea5e
SM
72352020-04-29 Simon Marchi <simon.marchi@efficios.com>
7236
7237 * gdbarch.sh: Use shell operators && and || instead of
7238 -a and -o.
7239
cb02ab24
SM
72402020-04-29 Simon Marchi <simon.marchi@efficios.com>
7241
7242 * gdbarch.sh: Use $(...) instead of `...`.
7243
a6fc5ffc
SM
72442020-04-29 Simon Marchi <simon.marchi@efficios.com>
7245
7246 * gdbarch.sh: Use double quotes around variables.
7247
8d113d13
SM
72482020-04-29 Simon Marchi <simon.marchi@efficios.com>
7249
7250 * gdbarch.sh: Use %s with printf, instead of variables in the
7251 format string.
7252
ed6acedd
TT
72532020-04-29 Tom Tromey <tromey@adacore.com>
7254
7255 PR ada/25875:
7256 * dwarf2/read.c (update_enumeration_type_from_children): Compute
7257 type fields here.
7258 (read_enumeration_type): Call
7259 update_enumeration_type_from_children later. Update comments.
7260 (process_enumeration_scope): Don't create type fields.
7261
b68b1b58
KR
72622020-04-29 Kamil Rytarowski <n54@gmx.com>
7263
7264 * nbsd-tdep.c: Include "xml-syscall.h".
7265 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
7266
f94b2e03
KR
72672020-04-29 Kamil Rytarowski <n54@gmx.com>
7268
7269 * nbsd-nat.c: Include "sys/wait.h".
7270 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
7271 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
7272 (nbsd_nat_target::remove_exec_catchpoint)
7273 (nbsd_nat_target::set_syscall_catchpoint): Add.
7274 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
7275 (nbsd_nat_target::insert_exec_catchpoint)
7276 (nbsd_nat_target::remove_exec_catchpoint)
7277 (nbsd_nat_target::set_syscall_catchpoint): Add.
7278 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
7279 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
7280 `nbsd_get_syscall_number'.
7281
fc49bc72
TT
72822020-04-29 Tom Tromey <tom@tromey.com>
7283
7284 * stack.c (print_block_frame_labels): Remove.
7285
d642b692
HD
72862020-04-29 Hannes Domani <ssbssa@yahoo.de>
7287
7288 PR gdb/17320
7289 * ada-valprint.c (val_print_packed_array_elements): Move array
7290 end bracket to new line.
7291 (ada_val_print_string): Remove extra spaces before first array
7292 element.
7293 * c-valprint.c (c_value_print_array): Likewise.
7294 * m2-valprint.c (m2_print_array_contents): Likewise.
7295 (m2_value_print_inner): Likewise.
7296 * p-valprint.c (pascal_value_print_inner): Likewise.
7297 * valprint.c (generic_val_print_array): Likewise.
7298 (value_print_array_elements): Move first array element and array
7299 end bracket to new line.
7300
ea90f227
TV
73012020-04-29 Tom de Vries <tdevries@suse.de>
7302
7303 PR symtab/25889
7304 * linespec.c (find_method): Fix ix calculation.
7305
4498ef4f
KR
73062020-04-28 Kamil Rytarowski <n54@gmx.com>
7307
7308 * syscalls/update-netbsd.sh: New file.
7309 * syscalls/netbsd.xml: Regenerate.
7310 * data-directory/Makefile.in: Register `netbsd.xml' in
7311 `SYSCALLS_FILES'.
7312
a55e30b5
SM
73132020-04-28 Simon Marchi <simon.marchi@efficios.com>
7314
7315 * syscalls/update-freebsd.sh: Add double quotes.
7316
2b2fbab8
TT
73172020-04-28 Tom Tromey <tom@tromey.com>
7318
7319 * NEWS: Update.
7320 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
7321 (cmdpy_init): Allow class_tui.
7322
a65189c9
TV
73232020-04-28 Mark Williams <mark@myosotissp.com>
7324
7325 PR gdb/24480
7326 * dwarf2read.c: Add missing assingments to list_in_scope when
7327 start_symtab was already called.
7328
1b95cdb7
SM
73292020-04-28 Simon Marchi <simon.marchi@efficios.com>
7330
7331 PR gdb/25881
7332 * dwarf2/read.c (offset_map_type): Use
7333 gdb:hash_enum<sect_offset> as hash function.
7334
15cd93d0
TV
73352020-04-28 Tom de Vries <tdevries@suse.de>
7336
7337 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
7338 with DW_AT_signature.
7339
1eb39914
SM
73402020-04-27 Simon Marchi <simon.marchi@efficios.com>
7341
7342 * configure.ac: Remove check for fs_base/gs_base in
7343 user_regs_struct.
7344 * configure: Re-generate.
7345 * config.in: Re-generate.
7346 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
7347 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
7348 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
7349
991a3e2e
LM
73502020-04-27 Luis Machado <luis.machado@linaro.org>
7351
7352 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
7353 problematic inline frame unwinding situation.
7354 * frame.c (frame_id_computed_p): New function.
7355 * frame.h (frame_id_computed_p): New prototype.
7356
361ba0e8
TT
73572020-04-26 Tom Tromey <tom@tromey.com>
7358
7359 * command.h (enum command_class) <class_pseudo>: Remove.
7360
bc3609fd
PW
73612020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7362
7363 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
7364 and whitespace.
7365
b9771db7
KR
73662020-04-25 Kamil Rytarowski <n54@gmx.com>
7367
ec16513e
SM
7368 * inf-ptrace.c (inf_ptrace_target::wait): Remove
7369 `PT_GET_PROCESS_STATE' block.
b9771db7 7370
7151c1af
TT
73712020-04-24 Tom Tromey <tom@tromey.com>
7372
7373 * symtab.h (symbol_get_demangled_name): Don't declare.
7374 * symtab.c (symbol_get_demangled_name): Remove.
7375 (general_symbol_info::natural_name)
7376 (general_symbol_info::demangled_name): Update.
7377
906bb4c5
TT
73782020-04-24 Tom Tromey <tom@tromey.com>
7379
7380 PR rust/25025:
7381 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
7382
bcfe6157
TT
73832020-04-24 Tom Tromey <tom@tromey.com>
7384
7385 PR symtab/12707:
7386 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
7387 exists.
7388 (new_symbol): Likewise.
7389 * compile/compile-object-load.c (get_out_value_type): Use
7390 symbol_matches_search_name.
7391
f049a313
TT
73922020-04-24 Tom Tromey <tom@tromey.com>
7393
7394 * dwarf2/read.c (add_partial_symbol): Do not call
7395 compute_and_set_names.
7396
76e288d1
TT
73972020-04-24 Tom Tromey <tom@tromey.com>
7398
7399 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
7400 overload.
7401
2467f4f6
TT
74022020-04-24 Tom Tromey <tom@tromey.com>
7403
7404 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
7405 (add_psymbol_to_list): New overload. Make old overload call new
7406 one.
7407 * psympriv.h (add_psymbol_to_list): New overload.
7408
e61108c9
TT
74092020-04-24 Tom Tromey <tom@tromey.com>
7410
7411 * dwarf2/read.c (partial_die_info::read) <case
7412 DW_AT_linkage_name>: Use value_as_string.
7413 (dwarf2_string_attr): Use value_as_string.
7414 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
7415 method.
7416 * dwarf2/attribute.c (attribute::value_as_string): New method.
7417
8c87a452
TT
74182020-04-24 Tom Tromey <tom@tromey.com>
7419
7420 * symtab.c (general_symbol_info::natural_name)
7421 (general_symbol_info::demangled_name): Check for language_rust.
7422
787de330
TT
74232020-04-24 Tom Tromey <tom@tromey.com>
7424
7425 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
7426 (dwarf2_physname): ... from here.
7427 (partial_die_info::read): Add Rust "{" hack.
7428
ff985671
TT
74292020-04-24 Tom Tromey <tom@tromey.com>
7430
7431 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
7432 method.
7433 (symbol_set_demangled_name): Don't declare.
7434 * symtab.c (general_symbol_info::set_demangled_name): Rename from
7435 symbol_set_demangled_name.
7436 (general_symbol_info::set_language)
7437 (general_symbol_info::compute_and_set_names): Update.
7438 * minsyms.c (minimal_symbol_reader::install): Update.
7439 * dwarf2/read.c (new_symbol): Update.
7440
1acda803
TT
74412020-04-24 Tom Tromey <tromey@adacore.com>
7442
7443 PR python/23662:
7444 * python/py-type.c (convert_field): Handle
7445 FIELD_LOC_KIND_DWARF_BLOCK.
7446 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
7447 (typy_get_dynamic): Nw function.
7448 (type_object_getset): Add "dynamic".
7449 * NEWS: Add entry.
7450
d656f129
TT
74512020-04-24 Tom Tromey <tromey@adacore.com>
7452
7453 * ada-typeprint.c (print_choices, print_variant_part)
7454 (print_record_field_types_dynamic): New functions.
7455 (print_record_field_types): Use print_record_field_types_dynamic.
7456
7d79de9a
TT
74572020-04-24 Tom Tromey <tromey@adacore.com>
7458
7459 * dwarf2/read.c (handle_data_member_location): New overload.
7460 (dwarf2_add_field): Use it.
7461 (decode_locdesc): Add "computed" parameter. Update comment.
7462 * gdbtypes.c (is_dynamic_type_internal): Also look for
7463 FIELD_LOC_KIND_DWARF_BLOCK.
7464 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
7465 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
7466 virtual base classes.
7467 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
7468 FIELD_LOC_KIND_DWARF_BLOCK.
7469
f8e89861
TT
74702020-04-24 Tom Tromey <tromey@adacore.com>
7471
7472 * dwarf2/read.c (read_structure_type): Handle dynamic length.
7473 * gdbtypes.c (is_dynamic_type_internal): Check
7474 TYPE_HAS_DYNAMIC_LENGTH.
7475 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
7476 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
7477 New macros.
7478 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
7479 constant.
7480
9c6a1327
TT
74812020-04-24 Tom Tromey <tromey@adacore.com>
7482
7483 * dwarf2/read.c (struct variant_field): Rewrite.
7484 (struct variant_part_builder): New.
7485 (struct nextfield): Remove "variant" field. Add "offset".
7486 (struct field_info): Add "current_variant_part" and
7487 "variant_parts".
7488 (alloc_discriminant_info): Remove.
7489 (alloc_rust_variant): New function.
7490 (quirk_rust_enum): Update.
7491 (dwarf2_add_field): Set "offset" member. Don't handle
7492 DW_TAG_variant_part.
7493 (offset_map_type): New typedef.
7494 (convert_variant_range, create_one_variant)
7495 (create_one_variant_part, create_variant_parts)
7496 (add_variant_property): New functions.
7497 (dwarf2_attach_fields_to_type): Call add_variant_property.
7498 (read_structure_type): Don't handle DW_TAG_variant_part.
7499 (handle_variant_part, handle_variant): New functions.
7500 (handle_struct_member_die): Use them.
7501 (process_structure_scope): Don't handle variant parts.
7502 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
7503 (struct discriminant_info): Remove.
7504 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
7505 (struct main_type) <flag_discriminated_union>: Remove.
7506 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
7507 (rust_enum_variant): Return int. Remove "contents". Rewrite.
7508 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
7509 Update.
7510 * valops.c (value_union_variant): Remove.
7511 * value.h (value_union_variant): Don't declare.
7512
b249d2c2
TT
75132020-04-24 Tom Tromey <tromey@adacore.com>
7514
7515 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
7516 (ada_value_primitive_packed_val): Update.
7517 * ada-valprint.c (ada_value_print_1): Update.
7518 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
7519 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
7520 just an address. Use evaluate_for_locexpr_baton.
7521 (dwarf2_evaluate_property): Update.
7522 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
7523 array_view.
7524 * findvar.c (default_read_var_value): Update.
7525 * gdbtypes.c (compute_variant_fields_inner)
7526 (resolve_dynamic_type_internal): Update.
7527 (resolve_dynamic_type): Change type of valaddr parameter.
7528 * gdbtypes.h (resolve_dynamic_type): Update.
7529 * valarith.c (value_subscripted_rvalue): Update.
7530 * value.c (value_from_contents_and_address): Update.
7531
61122aa9
TT
75322020-04-24 Tom Tromey <tromey@adacore.com>
7533
7534 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
7535 "push_initial_value" parameter.
7536 (dwarf2_evaluate_property): Likewise.
7537 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
7538
ef83a141
TT
75392020-04-24 Tom Tromey <tromey@adacore.com>
7540
7541 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
7542 (variant::matches, compute_variant_fields_recurse)
7543 (compute_variant_fields_inner, compute_variant_fields): New
7544 functions.
7545 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
7546 Use resolved_type after type is made.
7547 (operator==): Add new cases.
7548 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
7549 (struct discriminant_range, struct variant, struct variant_part):
7550 New.
7551 (union dynamic_prop_data) <variant_parts, original_type>: New
7552 members.
7553 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
7554 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
7555 constants.
7556 * value.c (unpack_bits_as_long): Now public.
7557 * value.h (unpack_bits_as_long): Declare.
7558
675127ec
TT
75592020-04-24 Tom Tromey <tromey@adacore.com>
7560
7561 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
7562 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
7563
9852ceef
HD
75642020-04-24 Hannes Domani <ssbssa@yahoo.de>
7565
7566 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
7567
7632c6ce
KR
75682020-04-24 Kamil Rytarowski <n54@gmx.com>
7569
7570 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
7571 (remove_fork_catchpoint, post_startup_inferior)
7572 (post_attach): Move...
7573 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
7574 (remove_fork_catchpoint, post_startup_inferior)
7575 (post_attach): ...here.
7576 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
7577 (remove_fork_catchpoint, post_startup_inferior)
7578 (post_attach): Move...
7579 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
7580 (remove_fork_catchpoint, post_startup_inferior)
7581 (post_attach): ...here.
7582
7be2bb4f
TT
75832020-04-24 Tom Tromey <tromey@adacore.com>
7584
7585 * nat/windows-nat.h (struct windows_thread_info)
7586 <pc_adjusted>: New member.
7587 * windows-nat.c (windows_fetch_one_register): Check
7588 pc_adjusted.
7589 (windows_nat_target::get_windows_debug_event)
7590 (windows_nat_target::wait): Set pc_adjusted.
7591
f80cb3b4
TV
75922020-04-24 Tom de Vries <tdevries@suse.de>
7593
7594 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
7595 Run gdb-add-index inside temp dir.
7596
29514b87
TT
75972020-04-23 Tom Tromey <tromey@adacore.com>
7598
7599 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
7600 in loop.
7601
5939967b
LM
76022020-04-23 Luis Machado <luis.machado@linaro.org>
7603
7604 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
7605 get_frame_register instead of gdbarch_unwind_pc.
7606
70bc38f5
TV
76072020-04-23 Tom de Vries <tdevries@suse.de>
7608
7609 * symtab.c (lookup_global_symbol): Prefer def over decl.
7610
de82891c
TV
76112020-04-23 Tom de Vries <tdevries@suse.de>
7612
7613 PR symtab/25807
7614 * block.c (best_symbol, better_symbol): Promote to external.
7615 * block.h (best_symbol, better_symbol): Declare.
7616 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
7617 decl.
7618
ecc6c606
TT
76192020-04-23 Tom Tromey <tromey@adacore.com>
7620
7621 PR ada/25837:
7622 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
7623 "const char *", not a "const std::string &".
7624 <name_and_matcher::operator==>: Update.
7625 * unittests/lookup_name_info-selftests.c: Change type of
7626 "result".
7627
740480b8
TT
76282020-04-23 Tom Tromey <tom@tromey.com>
7629
7630 * inferior.h (iterate_over_inferiors): Don't declare.
7631 * inferior.c (iterate_over_inferiors): Remove.
7632 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
7633 Remove.
7634 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
7635 use iterate_over_inferiors.
7636 (darwin_resume_inferior_it)
7637 (struct resume_inferior_threads_param)
7638 (darwin_resume_inferior_threads_it): Remove.
7639 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
7640
ae3ab1f0
TV
76412020-04-23 Tom de Vries <tdevries@suse.de>
7642
7643 * blockframe.c (find_pc_partial_function): Use
7644 find_pc_sect_compunit_symtab rather than
7645 objfile->sf->qf->find_pc_sect_compunit_symtab.
7646
317d2668
TV
76472020-04-22 Tom de Vries <tdevries@suse.de>
7648
7649 PR symtab/25764
7650 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
7651 in psymtabs.
7652
eea9e357
TV
76532020-04-22 Tom de Vries <tdevries@suse.de>
7654
7655 PR symtab/25801
7656 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
7657 symtabs.
7658
3d5afab3
TV
76592020-04-22 Tom de Vries <tdevries@suse.de>
7660
7661 PR symtab/25700
7662 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
7663 CU if already created.
7664
d43b7a2d
TBA
76652020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7666
7667 * infrun.c (displaced_step_fixup): Switch to the event_thread
7668 before calling displaced_step_restore, not after.
7669
d89edf9b
MM
76702020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7671
7672 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
7673 its inferior is not recorded by us.
7674 (record_btrace_target_open): Replace call to
7675 all_non_exited_threads () with call to current_inferior
7676 ()->non_exited_threads ().
7677 (record_btrace_target::stop_recording): Likewise.
7678 (record_btrace_target::close): Likewise.
7679 (record_btrace_target::wait): Likewise.
7680 (record_btrace_target::record_stop_replaying): Likewise.
7681
5897fd49
MM
76822020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7683
7684 * btrace.c (btrace_enable): Throw an error on double enables and
7685 when enabling recording fails.
7686 (btrace_disable): Throw an error if the thread is not recorded.
7687
1a476b6d
MM
76882020-04-21 Markus Metzger <markus.t.metzger@intel.com>
7689
7690 * record-btrace.c (record_btrace_target::fetch_registers): Forward
7691 request if we do not have a thread_info.
7692
4778a5f8
TV
76932020-04-21 Tom de Vries <tdevries@suse.de>
7694
7695 PR gdb/25471
7696 * thread.c
7697 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
7698 exception in get_frame_id.
7699
0fa7617d
TT
77002020-04-20 Tom Tromey <tromey@adacore.com>
7701
7702 * python/python.c (struct gdbpy_event): Mark move constructor as
7703 noexcept.
7704 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
7705 constructor as noexcept.
7706 * completer.h (struct completion_result): Mark move constructor as
7707 noexcept.
7708 * completer.c (completion_result::completion_result): Use
7709 initialization style. Don't call reset_match_list.
7710
ad23bda0
MS
77112020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
7712
7713 * MAINTAINERS (Write After Approval): Add myself.
7714
45e1f031
TT
77152020-04-18 Tom Tromey <tom@tromey.com>
7716
7717 * windows-tdep.c (init_w32_command_list)
7718 (w32_prefix_command_valid): Restore.
7719 (_initialize_windows_tdep): Call init_w32_command_list.
7720
08feed99
TT
77212020-04-18 Tom Tromey <tom@tromey.com>
7722
7723 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
7724 * value.c (value_fn_field): Update.
7725 * valops.c (find_function_in_inferior)
7726 (value_allocate_space_in_inferior): Update.
7727 * tui/tui-winsource.c (tui_update_source_windows_with_line):
7728 Update.
7729 * tui/tui-source.c (tui_source_window::set_contents): Update.
7730 * symtab.c (lookup_global_or_static_symbol)
7731 (find_function_start_sal_1, skip_prologue_sal)
7732 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
7733 * symmisc.c (dump_msymbols, dump_symtab_1)
7734 (maintenance_print_one_line_table): Update.
7735 * symfile.c (init_entry_point_info, section_is_mapped)
7736 (list_overlays_command, simple_read_overlay_table)
7737 (simple_overlay_update_1): Update.
7738 * stap-probe.c (handle_stap_probe): Update.
7739 * stabsread.c (dbx_init_float_type, define_symbol)
7740 (read_one_struct_field, read_enum_type, read_range_type): Update.
7741 * source.c (info_line_command): Update.
7742 * python/python.c (gdbpy_source_objfile_script)
7743 (gdbpy_execute_objfile_script): Update.
7744 * python/py-type.c (save_objfile_types): Update.
7745 * python/py-objfile.c (py_free_objfile): Update.
7746 * python/py-inferior.c (python_new_objfile): Update.
7747 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
7748 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
7749 (maintenance_check_psymtabs): Update.
7750 * printcmd.c (info_address_command): Update.
7751 * objfiles.h (struct objfile) <arch>: New method, from
7752 get_objfile_arch.
7753 (get_objfile_arch): Don't declare.
7754 * objfiles.c (get_objfile_arch): Remove.
7755 (filter_overlapping_sections): Update.
7756 * minsyms.c (msymbol_is_function): Update.
7757 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
7758 (output_nondebug_symbol): Update.
7759 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
7760 (mdebug_expand_psymtab): Update.
7761 * machoread.c (macho_add_oso_symfile): Update.
7762 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
7763 Update.
7764 * linux-fork.c (checkpoint_command): Update.
7765 * linespec.c (convert_linespec_to_sals): Update.
7766 * jit.c (finalize_symtab): Update.
7767 * infrun.c (insert_exception_resume_from_probe): Update.
7768 * ia64-tdep.c (ia64_find_unwind_table): Update.
7769 * hppa-tdep.c (internalize_unwinds): Update.
7770 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
7771 Update.
7772 * gcore.c (call_target_sbrk): Update.
7773 * elfread.c (record_minimal_symbol, elf_symtab_read)
7774 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
7775 (elf_gnu_ifunc_resolve_by_got): Update.
7776 * dwarf2/read.c (create_addrmap_from_index)
7777 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
7778 (read_debug_names_from_section)
7779 (process_psymtab_comp_unit_reader, add_partial_symbol)
7780 (add_partial_subprogram, process_full_comp_unit)
7781 (read_file_scope, read_func_scope, read_lexical_block_scope)
7782 (read_call_site_scope, dwarf2_ranges_read)
7783 (dwarf2_record_block_ranges, dwarf2_add_field)
7784 (mark_common_block_symbol_computed, read_tag_pointer_type)
7785 (read_tag_string_type, dwarf2_init_float_type)
7786 (dwarf2_init_complex_target_type, read_base_type)
7787 (partial_die_info::read, partial_die_info::read)
7788 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
7789 (dwarf2_fetch_die_loc_sect_off): Update.
7790 * dwarf2/loc.c (dwarf2_find_location_expression)
7791 (class dwarf_evaluate_loc_desc, rw_pieced_value)
7792 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
7793 (dwarf2_loc_desc_get_symbol_read_needs)
7794 (locexpr_describe_location_piece, locexpr_describe_location_1)
7795 (loclist_describe_location): Update.
7796 * dwarf2/index-write.c (write_debug_names): Update.
7797 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
7798 * dtrace-probe.c (dtrace_process_dof): Update.
7799 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
7800 (process_one_symbol): Update.
7801 * ctfread.c (ctf_init_float_type, read_base_type): Update.
7802 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
7803 (coff_read_enum_type): Update.
7804 * cli/cli-cmds.c (edit_command, list_command): Update.
7805 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
7806 * breakpoint.c (create_overlay_event_breakpoint)
7807 (create_longjmp_master_breakpoint)
7808 (create_std_terminate_master_breakpoint)
7809 (create_exception_master_breakpoint, get_sal_arch): Update.
7810 * block.c (block_gdbarch): Update.
7811 * annotate.c (annotate_source_line): Update.
7812
0743fc83
TT
78132020-04-17 Tom Tromey <tromey@adacore.com>
7814
7815 * auto-load.c (show_auto_load_cmd): Remove.
7816 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
7817 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
7818 (maintenance_print_arc_command): Remove.
7819 * tui/tui-win.c (tui_command): Remove.
7820 (tui_get_cmd_list): Use add_basic_prefix_cmd.
7821 * tui/tui-layout.c (tui_layout_command): Remove.
7822 (_initialize_tui_layout): Use add_basic_prefix_cmd.
7823 * python/python.c (user_set_python, user_show_python): Remove.
7824 (_initialize_python): Use add_basic_prefix_cmd,
7825 add_show_prefix_cmd.
7826 * guile/guile.c (set_guile_command, show_guile_command): Remove.
7827 (install_gdb_commands): Use add_basic_prefix_cmd,
7828 add_show_prefix_cmd.
7829 (info_guile_command): Remove.
7830 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
7831 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
7832 add_show_prefix_cmd.
7833 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
7834 Remove do_set and do_show parameters.
7835 * cli/cli-style.c (set_style, show_style): Remove.
7836 (_initialize_cli_style): Use add_basic_prefix_cmd,
7837 add_show_prefix_cmd.
7838 (cli_style_option::add_setshow_commands): Remove do_set and
7839 do_show parameters.
7840 (cli_style_option::add_setshow_commands): Use
7841 add_basic_prefix_cmd, add_show_prefix_cmd.
7842 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
7843 (set_style_name): Remove.
7844 * cli/cli-dump.c (dump_command, append_command): Remove.
7845 (srec_dump_command, ihex_dump_command, verilog_dump_command)
7846 (tekhex_dump_command, binary_dump_command)
7847 (binary_append_command): Remove.
7848 (_initialize_cli_dump): Use add_basic_prefix_cmd.
7849 * windows-tdep.c (w32_prefix_command_valid): Remove global.
7850 (init_w32_command_list): Remove; move into ...
7851 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
7852 * valprint.c (set_print, show_print, set_print_raw)
7853 (show_print_raw): Remove.
7854 (_initialize_valprint): Use add_basic_prefix_cmd,
7855 add_show_prefix_cmd.
7856 * typeprint.c (set_print_type, show_print_type): Remove.
7857 (_initialize_typeprint): Use add_basic_prefix_cmd,
7858 add_show_prefix_cmd.
7859 * record.c (set_record_command, show_record_command): Remove.
7860 (_initialize_record): Use add_basic_prefix_cmd,
7861 add_show_prefix_cmd.
7862 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
7863 add_show_prefix_cmd.
7864 (info_command, show_command, set_debug, show_debug): Remove.
7865 * top.h (set_history, show_history): Don't declare.
7866 * top.c (set_history, show_history): Remove.
7867 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
7868 (unset_tdesc_cmd): Remove.
7869 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
7870 add_show_prefix_cmd.
7871 * symtab.c (info_module_command): Remove.
7872 (_initialize_symtab): Use add_basic_prefix_cmd.
7873 * symfile.c (overlay_command): Remove.
7874 (_initialize_symfile): Use add_basic_prefix_cmd.
7875 * sparc64-tdep.c (info_adi_command): Remove.
7876 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
7877 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
7878 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
7879 add_show_prefix_cmd.
7880 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
7881 (_initialize_serial): Use add_basic_prefix_cmd,
7882 add_show_prefix_cmd.
7883 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
7884 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
7885 add_show_prefix_cmd.
7886 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
7887 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
7888 add_show_prefix_cmd.
7889 * riscv-tdep.c (show_riscv_command, set_riscv_command)
7890 (show_debug_riscv_command, set_debug_riscv_command): Remove.
7891 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
7892 add_show_prefix_cmd.
7893 * remote.c (remote_command, set_remote_cmd): Remove.
7894 (_initialize_remote): Use add_basic_prefix_cmd.
7895 * record-full.c (set_record_full_command)
7896 (show_record_full_command): Remove.
7897 (_initialize_record_full): Use add_basic_prefix_cmd,
7898 add_show_prefix_cmd.
7899 * record-btrace.c (cmd_set_record_btrace)
7900 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
7901 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
7902 (cmd_show_record_btrace_pt): Remove.
7903 (_initialize_record_btrace): Use add_basic_prefix_cmd,
7904 add_show_prefix_cmd.
7905 * ravenscar-thread.c (set_ravenscar_command)
7906 (show_ravenscar_command): Remove.
7907 (_initialize_ravenscar): Use add_basic_prefix_cmd,
7908 add_show_prefix_cmd.
7909 * mips-tdep.c (show_mips_command, set_mips_command)
7910 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
7911 add_show_prefix_cmd.
7912 * maint.c (maintenance_command, maintenance_info_command)
7913 (maintenance_check_command, maintenance_print_command)
7914 (maintenance_set_cmd, maintenance_show_cmd): Remove.
7915 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
7916 add_show_prefix_cmd.
7917 (show_per_command_cmd): Remove.
7918 * maint-test-settings.c (maintenance_set_test_settings_cmd):
7919 Remove.
7920 (maintenance_show_test_settings_cmd): Remove.
7921 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
7922 add_show_prefix_cmd.
7923 * maint-test-options.c (maintenance_test_options_command):
7924 Remove.
7925 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
7926 * macrocmd.c (macro_command): Remove
7927 (_initialize_macrocmd): Use add_basic_prefix_cmd.
7928 * language.c (set_check, show_check): Remove.
7929 (_initialize_language): Use add_basic_prefix_cmd,
7930 add_show_prefix_cmd.
7931 * infcmd.c (unset_command): Remove.
7932 (_initialize_infcmd): Use add_basic_prefix_cmd.
7933 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
7934 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
7935 add_show_prefix_cmd.
7936 * go32-nat.c (go32_info_dos_command): Remove.
7937 (_initialize_go32_nat): Use add_basic_prefix_cmd.
7938 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
7939 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
7940 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
7941 (_initialize_frame): Use add_basic_prefix_cmd,
7942 add_show_prefix_cmd.
7943 * dcache.c (set_dcache_command, show_dcache_command): Remove.
7944 (_initialize_dcache): Use add_basic_prefix_cmd,
7945 add_show_prefix_cmd.
7946 * cp-support.c (maint_cplus_command): Remove.
7947 (_initialize_cp_support): Use add_basic_prefix_cmd.
7948 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
7949 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
7950 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
7951 add_basic_prefix_cmd, add_show_prefix_cmd.
7952 * breakpoint.c (save_command): Remove.
7953 (_initialize_breakpoint): Use add_basic_prefix_cmd.
7954 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
7955 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
7956 add_show_prefix_cmd.
7957 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
7958 (set_ada_command, show_ada_command): Remove.
7959 (_initialize_ada_language): Use add_basic_prefix_cmd,
7960 add_show_prefix_cmd.
7961 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
7962
3557f442
KR
79632020-04-16 Kamil Rytarowski <n54@gmx.com>
7964
7965 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
7966 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
7967
16197208
SM
79682020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7969
7970 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
7971 warning messages.
7972
00ac85d3
SM
79732020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
7974
7975 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
7976 import table is not at beginning of .idata section.
7977
381ce63f
PA
79782020-04-16 Pedro Alves <palves@redhat.com>
7979
7980 * inferior.c (delete_inferior): Use delete operator directly
7981 instead of delete_program_space.
7982 * progspace.c (add_program_space): New, factored out from
7983 program_space::program_space.
7984 (remove_program_space): New, factored out from
7985 delete_program_space.
7986 (program_space::program_space): Remove intro comment. Rewrite.
7987 (program_space::~program_space): Remove intro comment. Call
7988 remove_program_space.
7989 (delete_program_space): Delete.
7990 * progspace.h (program_space::program_space): Make explicit. Move
7991 intro comment here, adjusted.
7992 (program_space::~program_space): Move intro comment here,
7993 adjusted.
7994 (delete_program_space): Remove.
7995
a010605f
TT
79962020-04-16 Tom Tromey <tromey@adacore.com>
7997
7998 * windows-nat.c (windows_nat::handle_access_violation): New
7999 function.
8000 * nat/windows-nat.h (handle_access_violation): Declare.
8001 * nat/windows-nat.c (handle_exception): Move Cygwin code to
8002 windows-nat.c. Call handle_access_violation.
8003
efba5c23
TV
80042020-04-16 Tom de Vries <tdevries@suse.de>
8005
8006 PR symtab/25791
8007 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
8008 CUs without psymtab.
8009
97ed802d
KB
80102020-04-16 Kevin Buettner <kevinb@redhat.com>
8011
8012 * python/python.c (do_start_initialization): Don't call
8013 PyEval_InitThreads for Python 3.9 and beyond.
8014
c7d64809
KR
80152020-04-15 Kamil Rytarowski <n54@gmx.com>
8016
8017 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
8018 thread functions.
8019 (obsd_nat_target::wait): Likewise.
8020
ce127a96
TT
80212020-04-15 Tom Tromey <tromey@adacore.com>
8022
8023 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
8024 (DEBUG_EXCEPT): Use debug_printf.
8025
99f1bc6a
AB
80262020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
8027
8028 * completer.c (class completion_tracker::completion_hash_entry)
8029 <hash_name>: New member function.
8030 (completion_tracker::discard_completions): New callback to hash a
8031 completion_hash_entry, pass this to htab_create_alloc.
8032
a0e9b532
JT
80332016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
8034
8035 * windows-nat.c (windows_make_so): Warn rather than stopping with
8036 an error if realpath() fails.
8037
06ca5dd4
KR
80382020-04-14 Kamil Rytarowski <n54@gmx.com>
8039
8040 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
8041 (nbsd_nat_target::info_proc): Add do_status.
8042
194d088f
TV
80432020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
8044 Tom de Vries <tdevries@suse.de>
8045
8046 PR symtab/25718
8047 * psympriv.h (struct partial_symtab::read_symtab)
8048 (struct partial_symtab::expand_psymtab)
8049 (struct partial_symtab::read_dependencies): Update comments.
8050 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
8051 read_symtab for includer.
8052 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
8053 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
8054 (struct dwarf2_include_psymtab::m_readin): Remove.
8055 (struct dwarf2_include_psymtab::includer): New member function.
8056 (dwarf2_psymtab::expand_psymtab): Assert !readin.
8057
c1a66c06
TV
80582020-04-14 Tom de Vries <tdevries@suse.de>
8059
8060 PR symtab/25720
8061 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
8062 with NULL symbol_matcher and lookup_name.
8063 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
8064 and lookup_name.
8065 * dwarf2/read.c (dw2_expand_symtabs_matching)
8066 (dw2_debug_names_expand_symtabs_matching): Same.
8067 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
8068 Make lookup_name a pointer. Update comment.
8069 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
8070 lookup_name being a pointer.
8071 * symfile.c (expand_symtabs_matching): Same.
8072 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
8073 * linespec.c (iterate_over_all_matching_symtabs): Same.
8074
400b5eca
TT
80752020-04-13 Tom Tromey <tom@tromey.com>
8076
8077 * run-on-main-thread.c: Update include.
8078 * unittests/main-thread-selftests.c: Update include.
8079 * tui/tui-win.c: Update include.
8080 * tui/tui-io.c: Update include.
8081 * tui/tui-interp.c: Update include.
8082 * tui/tui-hooks.c: Update include.
8083 * top.h: Update include.
8084 * top.c: Update include.
8085 * ser-base.c: Update include.
8086 * remote.c: Update include.
8087 * remote-notif.c: Update include.
8088 * remote-fileio.c: Update include.
8089 * record-full.c: Update include.
8090 * record-btrace.c: Update include.
8091 * python/python.c: Update include.
8092 * posix-hdep.c: Update include.
8093 * mingw-hdep.c: Update include.
8094 * mi/mi-main.c: Update include.
8095 * mi/mi-interp.c: Update include.
8096 * main.c: Update include.
8097 * linux-nat.c: Update include.
8098 * interps.c: Update include.
8099 * infrun.c: Update include.
8100 * inf-loop.c: Update include.
8101 * event-top.c: Update include.
8102 * event-loop.c: Move to ../gdbsupport/.
8103 * event-loop.h: Move to ../gdbsupport/.
8104 * async-event.h: Update include.
8105 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
8106
93b54c8e
TT
81072020-04-13 Tom Tromey <tom@tromey.com>
8108
8109 * tui/tui-win.c: Include async-event.h.
8110 * remote.c: Include async-event.h.
8111 * remote-notif.c: Include async-event.h.
8112 * record-full.c: Include async-event.h.
8113 * record-btrace.c: Include async-event.h.
8114 * infrun.c: Include async-event.h.
8115 * event-top.c: Include async-event.h.
8116 * event-loop.h: Move some declarations to async-event.h.
8117 * event-loop.c: Don't include ser-event.h or top.h. Move some
8118 code to async-event.c.
8119 * async-event.h: New file.
8120 * async-event.c: New file.
8121 * Makefile.in (COMMON_SFILES): Add async-event.c.
8122 (HFILES_NO_SRCDIR): Add async-event.h.
8123
c1cd3163
TT
81242020-04-13 Tom Tromey <tom@tromey.com>
8125
8126 * utils.c (flush_streams): New function.
8127 * event-loop.c (gdb_wait_for_event): Call flush_streams.
8128
29f2bf4f
TT
81292020-04-13 Tom Tromey <tom@tromey.com>
8130
8131 * event-loop.c (handle_file_event): Use warning, not
8132 printf_unfiltered.
8133
98029d02
TT
81342020-04-13 Tom Tromey <tom@tromey.com>
8135
8136 * event-loop.c: Include <chrono>.
8137
06cc9596
TT
81382020-04-13 Tom Tromey <tom@tromey.com>
8139
8140 * gdb_select.h: Move to ../gdbsupport/.
8141 * event-loop.c: Update include path.
8142 * top.c: Update include path.
8143 * ser-base.c: Update include path.
8144 * ui-file.c: Update include path.
8145 * ser-tcp.c: Update include path.
8146 * guile/scm-ports.c: Update include path.
8147 * posix-hdep.c: Update include path.
8148 * ser-unix.c: Update include path.
8149 * gdb_usleep.c: Update include path.
8150 * mingw-hdep.c: Update include path.
8151 * inflow.c: Update include path.
8152 * infrun.c: Update include path.
8153 * event-top.c: Update include path.
8154
8ae8e197
TT
81552020-04-13 Tom Tromey <tom@tromey.com>
8156
8157 * configure: Rebuild.
8158 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
8159
58cf28e8
TT
81602020-04-13 Tom Tromey <tom@tromey.com>
8161
8162 * event-loop.h (start_event_loop): Don't declare.
8163 * event-loop.c (start_event_loop): Move...
8164 * main.c (start_event_loop): ...here. Now static.
8165
b7f999ae
SDJ
81662020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
8167
8168 * MAINTAINERS: Update my email address.
8169
1085dfd4
KR
81702020-04-12 Kamil Rytarowski <n54@gmx.com>
8171
8172 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
8173 IP_ALL.
8174
49d1d1f5
KR
81752020-04-12 Kamil Rytarowski <n54@gmx.com>
8176
8177 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 8178 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 8179
b4848d2a
KR
81802020-04-12 Kamil Rytarowski <n54@gmx.com>
8181
8182 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 8183 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 8184
51c133d5
KR
81852020-04-12 Kamil Rytarowski <n54@gmx.com>
8186
8187 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
8188
54b8cbd0
KR
81892020-04-11 Kamil Rytarowski <n54@gmx.com>
8190
8191 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
8192 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
8193 (nbsd_nat_target::info_proc): New functions.
8194 * nbsd-nat.c (kinfo_get_vmmap): New function.
8195 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
8196 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
8197 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
8198 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
8199 functions.
8200 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
8201 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
8202 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
8203 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
8204 (KINFO_VME_FLAG_GROWS_DOWN): New.
8205
cf83625d
AS
82062020-04-10 Artur Shepilko <nomadbyte@gmail.com>
8207
8208 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
8209 bit shift.
8210
0c4311ab
TT
82112020-04-10 Tom Tromey <tromey@adacore.com>
8212
8213 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
8214
3e65b3e9
TT
82152020-04-10 Tom Tromey <tromey@adacore.com>
8216
8217 * symtab.c (get_symbol_address, get_msymbol_address): Skip
8218 separate debug files.
8219
13302e95
HD
82202020-04-10 Hannes Domani <ssbssa@yahoo.de>
8221
8222 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8223 Move to...
8224 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
8225 ... here.
8226 * windows-nat.c (windows_nat_target::get_windows_debug_event):
8227 Check for STATUS_WX86_BREAKPOINT.
8228 (windows_nat_target::wait): Same.
8229
bdfc1e8a
TV
82302020-04-10 Tom de Vries <tdevries@suse.de>
8231
8232 PR cli/25808
8233 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
8234
f4460aec
SM
82352020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
8236
8237 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
8238 (Write After Approval): Remove Tom de Vries.
8239
a25198bb
BE
82402020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
8241
8242 revert partially:
8243 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8244
aac66a4c
SM
8245 * buildsym.c (record_line): Fix undefined behavior and preserve
8246 lines at eof.
a25198bb 8247
206c98a6
KR
82482020-04-09 Kamil Rytarowski <n54@gmx.com>
8249
8250 * auxv.h (svr4_auxv_parse): New.
8251 * auxv.c (default_auxv_parse): Split into default_auxv_parse
8252 and generic_auxv_parse.
8253 (svr4_auxv_parse): Add.
8254 * obsd-tdep.c: Include "auxv.h".
8255 (obsd_auxv_parse): Remove.
8256 (obsd_init_abi): Remove comment.
8257 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
8258 from `obsd_auxv_parse' to `svr4_auxv_parse'.
8259 * nbsd-tdep.c: Include "auxv.h".
8260 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
8261
71fbdbaf
TT
82622020-04-08 Tom Tromey <tromey@adacore.com>
8263
8264 * nat/windows-nat.h (last_wait_event): Don't declare.
8265 (wait_for_debug_event): Update comment.
8266 * nat/windows-nat.c (last_wait_event): Now static.
8267
2c1d95e8
TT
82682020-04-08 Tom Tromey <tromey@adacore.com>
8269
8270 * windows-nat.c (wait_for_debug_event): Move to
8271 nat/windows-nat.c.
8272 * nat/windows-nat.h (wait_for_debug_event): Declare.
8273 * nat/windows-nat.c (wait_for_debug_event): Move from
8274 windows-nat.c. No longer static.
8275
d2977bc4
TT
82762020-04-08 Tom Tromey <tromey@adacore.com>
8277
8278 * windows-nat.c (get_windows_debug_event): Use
8279 fetch_pending_stop.
8280 * nat/windows-nat.h (fetch_pending_stop): Declare.
8281 * nat/windows-nat.c (fetch_pending_stop): New function.
8282
e758e19c
TT
82832020-04-08 Tom Tromey <tromey@adacore.com>
8284
8285 * windows-nat.c (windows_continue): Use matching_pending_stop and
8286 continue_last_debug_event.
8287 * nat/windows-nat.h (matching_pending_stop)
8288 (continue_last_debug_event): Declare.
8289 * nat/windows-nat.c (DEBUG_EVENTS): New define.
8290 (matching_pending_stop, continue_last_debug_event): New
8291 functions.
8292
8d30e395
TT
82932020-04-08 Tom Tromey <tromey@adacore.com>
8294
8295 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
8296 (handle_exception_result): Move to nat/windows-nat.h.
8297 (DEBUG_EXCEPTION_SIMPLE): Remove.
8298 (windows_nat::handle_ms_vc_exception): New function.
8299 (handle_exception): Move to nat/windows-nat.c.
8300 (get_windows_debug_event): Update.
8301 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
8302 nat/windows-nat.c.
8303 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
8304 (handle_exception_result): Move from windows-nat.c.
8305 (handle_exception): Declare.
8306 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
8307 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
8308 windows-nat.c.
8309
29de418d
TT
83102020-04-08 Tom Tromey <tromey@adacore.com>
8311
8312 * windows-nat.c (exception_count, event_count): Remove.
8313 (handle_exception, get_windows_debug_event)
8314 (do_initial_windows_stuff): Update.
8315
a816ba18
TT
83162020-04-08 Tom Tromey <tromey@adacore.com>
8317
8318 * windows-nat.c (windows_nat::handle_load_dll)
8319 (windows_nat::handle_unload_dll): Rename. No longer static.
8320 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
8321 Declare.
8322
a00caa12
TT
83232020-04-08 Tom Tromey <tromey@adacore.com>
8324
8325 * complaints.h (stop_whining): Declare at top-level.
8326 (complaint): Don't declare stop_whining.
8327
d41b524f
TT
83282020-04-08 Tom Tromey <tromey@adacore.com>
8329
8330 * windows-nat.c (windows_nat::handle_output_debug_string):
8331 Rename. No longer static.
8332 * nat/windows-nat.h (handle_output_debug_string): Declare.
8333
3c76026d
TT
83342020-04-08 Tom Tromey <tromey@adacore.com>
8335
8336 * windows-nat.c (current_process_handle, current_process_id)
8337 (main_thread_id, last_sig, current_event, last_wait_event)
8338 (current_windows_thread, desired_stop_thread_id, pending_stops)
8339 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
8340 (display_selectors, fake_create_process)
8341 (get_windows_debug_event): Update.
8342 * nat/windows-nat.h (current_process_handle, current_process_id)
8343 (main_thread_id, last_sig, current_event, last_wait_event)
8344 (current_windows_thread, desired_stop_thread_id, pending_stops)
8345 (struct pending_stop, siginfo_er): Move from windows-nat.c.
8346 * nat/windows-nat.c (current_process_handle, current_process_id)
8347 (main_thread_id, last_sig, current_event, last_wait_event)
8348 (current_windows_thread, desired_stop_thread_id, pending_stops)
8349 (siginfo_er): New globals. Move from windows-nat.c.
8350
9d8679cc
TT
83512020-04-08 Tom Tromey <tromey@adacore.com>
8352
8353 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
8354 (handle_load_dll): Update.
8355 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
8356
28688adf
TT
83572020-04-08 Tom Tromey <tromey@adacore.com>
8358
8359 * windows-nat.c (enum thread_disposition_type): Move to
8360 nat/windows-nat.h.
8361 (windows_nat::thread_rec): Rename from thread_rec. No longer
8362 static.
8363 (windows_add_thread, windows_nat_target::fetch_registers)
8364 (windows_nat_target::store_registers, handle_exception)
8365 (windows_nat_target::resume, get_windows_debug_event)
8366 (windows_nat_target::get_tib_address)
8367 (windows_nat_target::thread_name)
8368 (windows_nat_target::thread_alive): Update.
8369 * nat/windows-nat.h (enum thread_disposition_type): Move from
8370 windows-nat.c.
8371 (thread_rec): Declare.
8372
4834dad0
TT
83732020-04-08 Tom Tromey <tromey@adacore.com>
8374
8375 * windows-nat.c: Add "using namespace".
8376 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
8377 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
8378
65bafd5b
TT
83792020-04-08 Tom Tromey <tromey@adacore.com>
8380
8381 * nat/windows-nat.h (struct windows_thread_info): Declare
8382 destructor.
8383 * nat/windows-nat.c (~windows_thread_info): New.
8384
0a4afda3
TT
83852020-04-08 Tom Tromey <tromey@adacore.com>
8386
8387 PR gdb/22992
8388 * windows-nat.c (current_event): Update comment.
8389 (last_wait_event, desired_stop_thread_id): New globals.
8390 (struct pending_stop): New.
8391 (pending_stops): New global.
8392 (windows_nat_target) <stopped_by_sw_breakpoint>
8393 <supports_stopped_by_sw_breakpoint>: New methods.
8394 (windows_fetch_one_register): Add assertions. Adjust PC.
8395 (windows_continue): Handle pending stops. Suspend other threads
8396 when stepping. Use last_wait_event
8397 (wait_for_debug_event): New function.
8398 (get_windows_debug_event): Use wait_for_debug_event. Handle
8399 pending stops. Queue spurious stops.
8400 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
8401 (windows_nat_target::kill): Use wait_for_debug_event.
8402 * nat/windows-nat.h (struct windows_thread_info)
8403 <stopped_at_software_breakpoint>: New field.
8404 * nat/windows-nat.c (windows_thread_info::resume): Clear
8405 stopped_at_software_breakpoint.
8406
8e61ebec
TT
84072020-04-08 Tom Tromey <tromey@adacore.com>
8408
8409 * windows-nat.c (enum thread_disposition_type): New.
8410 (thread_rec): Replace "get_context" parameter with "disposition";
8411 change type.
8412 (windows_add_thread, windows_nat_target::fetch_registers)
8413 (windows_nat_target::store_registers, handle_exception)
8414 (windows_nat_target::resume, get_windows_debug_event)
8415 (windows_nat_target::get_tib_address)
8416 (windows_nat_target::thread_name)
8417 (windows_nat_target::thread_alive): Update.
8418
98a03287
TT
84192020-04-08 Tom Tromey <tromey@adacore.com>
8420
8421 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
8422 (windows_continue): Use windows_continue::resume.
8423 * nat/windows-nat.h (struct windows_thread_info) <suspend,
8424 resume>: Declare new methods.
8425 * nat/windows-nat.c: New file.
8426 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
8427
7c7411bc
TT
84282020-04-08 Tom Tromey <tromey@adacore.com>
8429
8430 * windows-nat.c (windows_add_thread, windows_delete_thread)
8431 (windows_nat_target::fetch_registers)
8432 (windows_nat_target::store_registers, fake_create_process)
8433 (windows_nat_target::resume, windows_nat_target::resume)
8434 (get_windows_debug_event, windows_nat_target::wait)
8435 (windows_nat_target::pid_to_str)
8436 (windows_nat_target::get_tib_address)
8437 (windows_nat_target::get_ada_task_ptid)
8438 (windows_nat_target::thread_name)
8439 (windows_nat_target::thread_alive): Use lwp, not tid.
8440
2950fdf7
TT
84412020-04-08 Tom Tromey <tromey@adacore.com>
8442
8443 * windows-nat.c (handle_exception)
8444 (windows_nat_target::thread_name): Update.
8445 * nat/windows-nat.h (windows_thread_info): Remove destructor.
8446 <name>: Now unique_xmalloc_ptr.
8447
62fe396b
TT
84482020-04-08 Tom Tromey <tromey@adacore.com>
8449
8450 * windows-nat.c (thread_rec)
8451 (windows_nat_target::fetch_registers): Update.
8452 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
8453 Update comment.
8454 <debug_registers_changed, reload_context>: Now bool.
8455
e9534bd2
TT
84562020-04-08 Tom Tromey <tromey@adacore.com>
8457
8458 * windows-nat.c (windows_add_thread): Use new.
8459 (windows_init_thread_list, windows_delete_thread): Use delete.
8460 (get_windows_debug_event): Update.
8461 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
8462 destructor, and initializers.
8463
ae1f8880
TT
84642020-04-08 Tom Tromey <tromey@adacore.com>
8465
8466 * windows-nat.c (struct windows_thread_info): Remove.
8467 * nat/windows-nat.h: New file.
8468
55a1e039
TT
84692020-04-08 Tom Tromey <tromey@adacore.com>
8470
8471 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
8472 (thread_rec, windows_add_thread, windows_delete_thread)
8473 (windows_continue): Update.
8474
93366324
TT
84752020-04-08 Tom Tromey <tromey@adacore.com>
8476
8477 * windows-nat.c (struct windows_thread_info): Remove typedef.
8478 (thread_head): Remove.
8479 (thread_list): New global.
8480 (thread_rec, windows_add_thread, windows_init_thread_list)
8481 (windows_delete_thread, windows_continue): Update.
8482
0f2265e2
SM
84832020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8484
8485 * windows-tdep.h (windows_init_abi): Add comment.
8486 (cygwin_init_abi): New declaration.
8487 * windows-tdep.c: Split signal enumeration in two, one for
8488 Windows and one for Cygwin.
8489 (windows_gdb_signal_to_target): Only deal with signal of the
8490 Windows OS ABI.
8491 (cygwin_gdb_signal_to_target): New function.
8492 (windows_init_abi): Rename to windows_init_abi_common, don't set
8493 gdb_signal_to_target gdbarch method. Add new new function with
8494 this name.
8495 (cygwin_init_abi): New function.
8496 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
8497 comment. Don't call windows_init_abi.
8498 (amd64_windows_init_abi): Add comment, call windows_init_abi.
8499 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
8500 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
8501 i386_windows_init_abi_common, don't call windows_init_abi. Add
8502 a new function of this name.
8503 (i386_cygwin_init_abi): New function.
8504 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
8505 OS ABI Cygwin.
8506
3810f182
SM
85072020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
8508
8509 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
8510 parameter.c.
8511 (dwarf2_read_gdb_index): Update.
8512
063f8e80
KR
85132020-04-07 Kamil Rytarowski <n54@gmx.com>
8514
8515 * nbsd-tdep.c: Include "objfiles.h".
8516 (nbsd_skip_solib_resolver): New.
8517 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
8518
85a9510c 85192020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8520
8521 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
8522 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
8523 with DW_LLE_base_addressx are being emitted in DWARFv5.
8524 Add the newly added kind DW_LOC_OFFSET_PAIR also.
8525 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
8526 unsigned integer.
8527
9fc3eaae 85282020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8529
8530 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
8531 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
8532 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
8533 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
8534 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
8535 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
8536 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
8537
8538
41144253 85392020-04-07 Nitika Achra <Nitika.Achra@amd.com>
8540
8541 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
8542 (read_loclist_index): New function definition.
8543 (lookup_loclist_base): New function definition.
8544 (read_loclist_header): New function definition.
8545 (dwarf2_cu): Add loclist_base and loclist_header field.
8546 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
8547 (read_full_die_1): Read the value of DW_AT_loclists_base.
8548 (read_attribute_reprocess): Handle DW_FORM_loclistx.
8549 (read_attribute_value): Handle DW_FORM_loclistx.
8550 (skip_one_die): Handle DW_FORM_loclistx.
8551 (loclist_header): New structure declaration.
8552 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
8553
9f4e76a4
SM
85542020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
8555
8556 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
8557 constructor. Remove `addr` parameter from other constructor and
8558 add `per_cu` parameter.
8559 * dwarf2/read.c (create_partial_symtab): Update.
8560
25c11aca
TV
85612020-04-07 Tom de Vries <tdevries@suse.de>
8562
8563 PR symtab/25796
8564 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
8565 (partial_die_info::fixup): Inherit has_const_value.
8566
5707e24b
TV
85672020-04-07 Tom de Vries <tdevries@suse.de>
8568
8569 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
8570 symbols without address.
8571
05f00e22
KR
85722020-04-06 Kamil Rytarowski <n54@gmx.com>
8573
8574 * nbsd-nat.h (struct thread_info): Add forward declaration.
8575 (nbsd_nat_target::thread_alive): Add.
8576 (nbsd_nat_target::thread_name): Likewise.
8577 (nbsd_nat_target::update_thread_list): Likewise.
8578 (update_thread_list::post_attach): Likewise.
8579 (post_attach::pid_to_str): Likewise.
8580 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
8581 (nbsd_thread_lister): Add.
8582 (nbsd_nat_target::thread_alive): Likewise.
8583 (nbsd_nat_target::thread_name): Likewise.
8584 (nbsd_add_threads): Likewise.
8585 (update_thread_list::post_attach): Likewise.
8586 (nbsd_nat_target::update_thread_list): Likewise.
8587 (post_attach::pid_to_str): Likewise.
8588
6ee448cc
TT
85892020-04-06 Tom Tromey <tromey@adacore.com>
8590
8591 * ada-valprint.c (print_variant_part): Extract the variant field.
8592 (print_field_values): Use the field as the outer value when
8593 recursing.
8594
dea34e8c
TT
85952020-04-06 Tom Tromey <tromey@adacore.com>
8596
8597 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
8598 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
8599 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
8600 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
8601 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
8602
93689ce9
TT
86032020-04-06 Tom Tromey <tromey@adacore.com>
8604
8605 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
8606 TYPE_CODE_ERROR.
8607
79743962
KR
86082020-04-06 Kamil Rytarowski <n54@gmx.com>
8609
8610 * nbsd-tdep.c: Include "gdbarch.h".
8611 Define enum with NetBSD signal numbers.
8612 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
8613 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
8614 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
8615 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
8616 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
8617 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
8618 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
8619 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
8620 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
8621 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
8622 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
8623 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
8624
9e7c9a03
HD
86252020-04-03 Hannes Domani <ssbssa@yahoo.de>
8626
8627 PR gdb/25325
8628 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
8629
d9e49b61
TT
86302020-04-03 Tom Tromey <tromey@adacore.com>
8631
8632 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
8633 Read constant block.
8634
e0fc5c3f
SM
86352020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8636
8637 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
8638 (gdb_bfd_get_full_section_contents): New declaration.
8639 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
8640 * windows-tdep.c (is_linked_with_cygwin_dll): Use
8641 gdb_bfd_get_full_section_contents.
8642
e2ff18a0
SM
86432020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
8644
8645 * exec.c (build_section_table): Replace internal_error with
8646 gdb_assert.
8647 (section_table_xfer_memory_partial): Likewise.
8648 * mdebugread.c (parse_partial_symbols): Likewise.
8649 * psymtab.c (lookup_partial_symbol): Likewise.
8650 * utils.c (wrap_here): Likewise.
8651
0830d301
TT
86522020-04-02 Tom Tromey <tromey@adacore.com>
8653
8654 * f-lang.c (build_fortran_types): Use arch_type to initialize
8655 builtin_complex_s32 in the TYPE_CODE_ERROR case.
8656
e7da7f8f
TT
86572020-04-02 Tom Tromey <tromey@adacore.com>
8658
8659 * dwarf2/read.c (partial_die_info::read): Do not create a vector
8660 of attributes.
8661
c90d28ac
AB
86622020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
8663 Bernd Edlinger <bernd.edlinger@hotmail.de>
8664 Tom Tromey <tromey@adacore.com>
8665
8666 * buildsym.c (buildsym_compunit::record_line): Remove
8667 deduplication code.
8668
1aa98955
TV
86692020-04-02 Tom de Vries <tdevries@suse.de>
8670
8671 PR ada/24671
8672 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
8673
d3214198
TV
86742020-04-02 Tom de Vries <tdevries@suse.de>
8675
8676 * dwarf2/read.c (dwarf2_gdb_index_functions,
8677 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
8678 NULL.
8679 * psymtab.c (psym_lookup_global_symbol_language): New function.
8680 (psym_functions): Init psym_lookup_global_symbol_language with
8681 psym_lookup_global_symbol_language.
8682 * symfile-debug.c (debug_sym_quick_functions): Init
8683 lookup_global_symbol_language with NULL.
8684 * symfile.c (set_initial_language): Remove fixme comment.
8685 * symfile.h (struct quick_symbol_functions): Add
8686 lookup_global_symbol_language.
8687 * symtab.c (find_quick_global_symbol_language): New function.
8688 (find_main_name): Use find_quick_global_symbol_language.
8689
2836752f
SM
86902020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
8691
8692 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
8693
64dc2d4b
BE
86942020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8695
8696 * buildsym.c (record_line): Fix undefined behavior and preserve
8697 lines at eof.
8698
bbe3dc41
BE
86992020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
8700
8701 * buildsym.c (record_line): Fix the resizing condition.
8702
6b4a335b
TT
87032020-04-01 Tom Tromey <tom@tromey.com>
8704
8705 * value.h (value_literal_complex): Add comment.
8706 * valops.c (value_literal_complex): Refer to value.h.
8707
3638a098
TT
87082020-04-01 Tom Tromey <tom@tromey.com>
8709
8710 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
8711 (scalar_type): New rule, from typebase.
8712 (typebase): Use scalar_type. Recognize complex types.
8713 (field_name): Handle FLOAT_KEYWORD.
8714 (ident_tokens): Add _Complex and __complex__.
8715
c34e8714
TT
87162020-04-01 Tom Tromey <tom@tromey.com>
8717
8718 PR exp/25299:
8719 * valarith.c (promotion_type, complex_binop): New functions.
8720 (scalar_binop): Handle complex numbers. Use promotion_type.
8721 (value_pos, value_neg, value_complement): Handle complex numbers.
8722
fa649bb7
TT
87232020-04-01 Tom Tromey <tom@tromey.com>
8724
8725 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
8726 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
8727 (parse_number): Handle complex numbers.
8728
981c08ce
TT
87292020-04-01 Tom Tromey <tom@tromey.com>
8730
8731 * c-valprint.c (c_decorations): Change complex suffix to "i".
8732
4c99290d
TT
87332020-04-01 Tom Tromey <tom@tromey.com>
8734
8735 * valprint.c (generic_value_print_complex): Use accessors.
8736 * value.h (value_real_part, value_imaginary_part): Declare.
8737 * valops.c (value_real_part, value_imaginary_part): New
8738 functions.
8739 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
8740
5b930b45
TT
87412020-04-01 Tom Tromey <tom@tromey.com>
8742
8743 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
8744 (read_range_type): Update.
8745 * mdebugread.c (basic_type): Update.
8746 * go-lang.c (build_go_types): Use init_complex_type.
8747 * gdbtypes.h (struct main_type) <complex_type>: New member.
8748 (init_complex_type): Update.
8749 (arch_complex_type): Don't declare.
8750 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
8751 Make name if none given. Use alloc_type_copy. Look for cached
8752 complex type.
8753 (arch_complex_type): Remove.
8754 (gdbtypes_post_init): Use init_complex_type.
8755 * f-lang.c (build_fortran_types): Use init_complex_type.
8756 * dwarf2/read.c (read_base_type): Update.
8757 * d-lang.c (build_d_types): Use init_complex_type.
8758 * ctfread.c (read_base_type): Update.
8759
53cccef1
TBA
87602020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8761
8762 * infrun.c (stop_all_threads): Update assertion, plus when
8763 stopping threads, take into account that we might be trying
8764 to stop an all-stop target.
8765 (stop_waiting): Call 'stop_all_threads' if there exists a
8766 non-stop target.
8767
a0714d30
TBA
87682020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8769
8770 * target.h (exists_non_stop_target): New function declaration.
8771 * target.c (exists_non_stop_target): New function.
8772
60e22c1e
HD
87732020-04-01 Hannes Domani <ssbssa@yahoo.de>
8774
8775 PR gdb/24789
8776 * eval.c (is_integral_or_integral_reference): New function.
8777 (evaluate_subexp_standard): Allow integer references in
8778 pointer arithmetic.
8779
e139a727
TBA
87802020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
8781
8782 * remote.c (remote_target::remote_parse_stop_reply): Remove the
8783 check for no ptid in the stop reply when the target is non-stop.
8784
e0802d59
TT
87852020-04-01 Tom Tromey <tromey@adacore.com>
8786
8787 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
8788 "name" parameter to rvalue reference. Initialize m_name_holder.
8789 <lookup_name_info>: New overloads.
8790 <name>: Return gdb::string_view.
8791 <c_str>: New method.
8792 <make_ignore_params>: Update.
8793 <search_name_hash>: Update.
8794 <language_lookup_name>: Return const char *.
8795 <m_name>: Change type.
8796 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
8797 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
8798 (lookup_name_info::match_any): Update.
8799 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
8800 Update.
8801 * minsyms.c (linkage_name_str): Update.
8802 * language.c (default_symbol_name_matcher): Update.
8803 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
8804 Update.
8805 * ada-lang.c (ada_fold_name): Change parameter to string_view.
8806 (ada_lookup_name_info::ada_lookup_name_info): Update.
8807 (literal_symbol_name_matcher): Update.
8808
8c072cb6
TT
88092020-04-01 Tom Tromey <tromey@adacore.com>
8810
8811 * psymtab.c (psymtab_search_name): Remove function.
8812 (psym_lookup_symbol): Create search name and lookup name here.
8813 (lookup_partial_symbol): Remove "name" parameter; add
8814 lookup_name.
8815 (psym_expand_symtabs_for_function): Update.
8816
6f29a534
TT
88172020-03-31 Joel Jones <joelkevinjones@gmail.com>
8818
8819 PR tui/25597:
8820 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
8821
af62665e
TT
88222020-03-31 Tom Tromey <tromey@adacore.com>
8823
8824 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
8825 memcpy.
8826
d1a89da5
NC
88272020-03-30 Nelson Chu <nelson.chu@sifive.com>
8828
8829 * features/riscv/32bit-csr.xml: Regenerated.
8830 * features/riscv/64bit-csr.xml: Regenerated.
8831
d8af9068
TT
88322020-03-30 Tom Tromey <tromey@adacore.com>
8833
8834 * ada-valprint.c (print_variant_part): Update.
8835 * ada-lang.h (ada_which_variant_applies): Update.
8836 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
8837 outer_valaddr parameters; replace with "outer" value parameter.
8838 (to_fixed_variant_branch_type): Update.
8839
227c0bf4
PFC
88402020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8841
8842 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
8843 <list>. Remove inclusion of observable.h.
8844 (PPC_DEBUG_CURRENT_VERSION): Move up define.
8845 (struct arch_lwp_info): New struct.
8846 (class ppc_linux_dreg_interface): New class.
8847 (struct ppc_linux_process_info): New struct.
8848 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
8849 <low_new_clone, low_forget_process, low_prepare_to_resume>
8850 <copy_thread_dreg_state, mark_thread_stale>
8851 <mark_debug_registers_changed, register_hw_breakpoint>
8852 <clear_hw_breakpoint, register_wp, clear_wp>
8853 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
8854 <num_memory_accesses, get_trigger_type>
8855 <create_watchpoint_request, hwdebug_point_cmp>
8856 <init_arch_lwp_info, get_arch_lwp_info>
8857 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
8858 methods.
8859 <struct ptid_hash>: New inner struct.
8860 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
8861 members.
8862 (saved_dabr_value, hwdebug_info, max_slots_number)
8863 (struct hw_break_tuple, struct thread_points, ppc_threads)
8864 (have_ptrace_hwdebug_interface)
8865 (hwdebug_find_thread_points_by_tid)
8866 (hwdebug_insert_point, hwdebug_remove_point): Remove.
8867 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
8868 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
8869 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
8870 use m_dreg_interface.
8871 (hwdebug_point_cmp): Change to...
8872 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
8873 reference arguments instead of pointers.
8874 (ppc_linux_nat_target::ranged_break_num_registers): Use
8875 m_dreg_interface.
8876 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
8877 m_dreg_interface. Call register_hw_breakpoint.
8878 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
8879 m_dreg_interface. Call clear_hw_breakpoint.
8880 (get_trigger_type): Change to...
8881 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
8882 comment.
8883 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
8884 use m_dreg_interface. Call register_hw_breakpoint.
8885 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
8886 use m_dreg_interface. Call clear_hw_breakpoint.
8887 (can_use_watchpoint_cond_accel): Change to...
8888 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
8889 method. Update comment, use m_dreg_interface and
8890 m_process_info.
8891 (calculate_dvc): Change to...
8892 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
8893 m_dreg_interface.
8894 (num_memory_accesses): Change to...
8895 (ppc_linux_nat_target::num_memory_accesses): ...this method.
8896 (check_condition): Change to...
8897 (ppc_linux_nat_target::check_condition): ...this method.
8898 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
8899 comment, use m_dreg_interface.
8900 (create_watchpoint_request): Change to...
8901 (ppc_linux_nat_target::create_watchpoint_request): ...this
8902 method. Use m_dreg_interface.
8903 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
8904 m_dreg_interface. Call register_hw_breakpoint or register_wp.
8905 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
8906 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
8907 (ppc_linux_nat_target::low_forget_process)
8908 (ppc_linux_nat_target::low_new_fork)
8909 (ppc_linux_nat_target::low_new_clone)
8910 (ppc_linux_nat_target::low_delete_thread)
8911 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
8912 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
8913 only call mark_thread_stale.
8914 (ppc_linux_thread_exit): Remove.
8915 (ppc_linux_nat_target::stopped_data_address): Change to...
8916 (ppc_linux_nat_target::low_stopped_data_address): This. Add
8917 comment, use m_dreg_interface and m_thread_hw_breakpoints.
8918 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
8919 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
8920 comment. Call low_stopped_data_address.
8921 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
8922 m_dreg_interface.
8923 (ppc_linux_nat_target::masked_watch_num_registers): Use
8924 m_dreg_interface.
8925 (ppc_linux_nat_target::copy_thread_dreg_state)
8926 (ppc_linux_nat_target::mark_thread_stale)
8927 (ppc_linux_nat_target::mark_debug_registers_changed)
8928 (ppc_linux_nat_target::register_hw_breakpoint)
8929 (ppc_linux_nat_target::clear_hw_breakpoint)
8930 (ppc_linux_nat_target::register_wp)
8931 (ppc_linux_nat_target::clear_wp)
8932 (ppc_linux_nat_target::init_arch_lwp_info)
8933 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
8934 (_initialize_ppc_linux_nat): Remove observer callback.
8935
4db10d8f
PFC
89362020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8937
8938 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
8939 (ppc_linux_nat_target::auxv_parse)
8940 (ppc_linux_nat_target::read_description)
8941 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
8942 Move up.
8943
1310c1b0
PFC
89442020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
8945
8946 * linux-nat.h (low_new_clone): New method.
8947 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
8948
69b037c3
SM
89492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8950
8951 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
8952 (dbx_expand_psymtab): ... this.
8953 (start_psymtab): Update.
8954 * mdebugread.c (psymtab_to_symtab_1): Rename to...
8955 (mdebug_expand_psymtab): ... this.
8956 (parse_partial_symbols): Update.
8957 (new_psymtab): Update.
8958 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
8959 (xcoff_expand_psymtab): ... this.
8960 (xcoff_start_psymtab): Update.
8961
48993951
SM
89622020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8963
8964 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
8965 <expand_dependencies>: ... this.
8966 * psymtab.c (partial_symtab::read_dependencies): Rename to...
8967 (partial_symtab::expand_dependencies): ... this.
8968 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
8969 Update.
8970 (dwarf2_psymtab::expand_psymtab): Update.
8971 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
8972 * mdebugread.c (psymtab_to_symtab_1): Update.
8973 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
8974
3ad83046
SM
89752020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
8976
8977 * psympriv.h (discard_psymtab): Remove.
8978 * dbxread.c (dbx_end_psymtab): Update.
8979 * xcoffread.c (xcoff_end_psymtab): Update.
8980
4d1b9ab6
TT
89812020-03-28 Tom Tromey <tom@tromey.com>
8982
8983 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
8984 comment.
8985
f1749218
TT
89862020-03-28 Tom Tromey <tom@tromey.com>
8987
8988 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
8989
ebea7626
HD
89902020-03-27 Hannes Domani <ssbssa@yahoo.de>
8991
8992 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
8993
a879b4d5
JB
89942020-03-26 John Baldwin <jhb@FreeBSD.org>
8995
8996 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
8997
0826b30a
TT
89982020-03-26 Tom Tromey <tom@tromey.com>
8999
9000 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
9001 (mark_common_block_symbol_computed, read_tag_string_type)
9002 (attr_to_dynamic_prop, read_subrange_type): Update.
9003 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
9004 to be methods on struct attribute.
9005 (skip_one_die, process_imported_unit_die, read_namespace_alias)
9006 (read_call_site_scope, partial_die_info::read)
9007 (partial_die_info::read, lookup_die_type, follow_die_ref):
9008 Update.
9009 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
9010 from dwarf2_get_ref_die_offset.
9011 (attribute::constant_value): New method, from
9012 dwarf2_get_attr_constant_value.
9013 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
9014 Declare method.
9015 <constant_value>: New method.
9016
2b2558bf
TT
90172020-03-26 Tom Tromey <tom@tromey.com>
9018
9019 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
9020 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
9021 (dwarf_type_encoding_name): Move to stringify.c.
9022 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
9023 * dwarf2/stringify.c: New file.
9024 * dwarf2/stringify.h: New file.
9025
eeb64781
TT
90262020-03-26 Tom Tromey <tom@tromey.com>
9027
9028 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
9029 Rewrite.
9030
a39fdb41
TT
90312020-03-26 Tom Tromey <tom@tromey.com>
9032
9033 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
9034 methods.
9035 * dwarf2/read.c (lookup_addr_base): Move to die.h.
9036 (lookup_ranges_base): Likewise.
9037 (read_cutu_die_from_dwo, read_full_die_1): Update.
9038
436c571c
TT
90392020-03-26 Tom Tromey <tom@tromey.com>
9040
9041 * dwarf2/read.c (read_import_statement, read_file_scope)
9042 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
9043 (read_lexical_block_scope, read_call_site_scope)
9044 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
9045 (handle_struct_member_die, process_structure_scope)
9046 (update_enumeration_type_from_children)
9047 (process_enumeration_scope, read_array_type, read_common_block)
9048 (read_namespace, read_module, read_subroutine_type): Update.
9049 (sibling_die): Remove.
9050
052c8bb8
TT
90512020-03-26 Tom Tromey <tom@tromey.com>
9052
9053 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
9054 (build_type_psymtabs_reader, read_structure_type)
9055 (read_enumeration_type, read_full_die_1): Update.
9056 (dwarf2_attr_no_follow): Move to die.h.
9057 * dwarf2/die.h (struct die_info) <attr>: New method.
9058
2b24b6e4
TT
90592020-03-26 Tom Tromey <tom@tromey.com>
9060
9061 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
9062 <base_address>: Now an optional.
9063 (dwarf2_find_base_address, dwarf2_rnglists_process)
9064 (dwarf2_ranges_process, fill_in_loclist_baton)
9065 (dwarf2_symbol_mark_computed): Update.
9066
c2d50fd0
TT
90672020-03-26 Tom Tromey <tom@tromey.com>
9068
9069 * dwarf2/read.c (struct die_info): Move to die.h.
9070 * dwarf2/die.h: New file.
9071
0df7ad3a
TT
90722020-03-26 Tom Tromey <tom@tromey.com>
9073
9074 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
9075 * dwarf2/read.c
9076 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9077 Move to line-header.c.
9078 (read_checked_initial_length_and_offset, read_formatted_entries):
9079 Likewise.
9080 (dwarf_decode_line_header): Split into two.
9081 * dwarf2/line-header.c
9082 (dwarf2_statement_list_fits_in_line_number_section_complaint):
9083 Move from read.c.
9084 (read_checked_initial_length_and_offset, read_formatted_entries):
9085 Likewise.
9086 (dwarf_decode_line_header): New function, split from read.c.
9087
86c0bb4c
TT
90882020-03-26 Tom Tromey <tom@tromey.com>
9089
9090 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
9091 Declare method.
9092 * dwarf2/read.c (read_attribute_value): Update.
9093 (dwarf2_per_objfile::read_line_string): Rename from
9094 read_indirect_line_string.
9095 (read_formatted_entries): Update.
9096
2ef46c2f
TT
90972020-03-26 Tom Tromey <tom@tromey.com>
9098
9099 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
9100 variable.
9101
4f9c1eda
TT
91022020-03-26 Tom Tromey <tom@tromey.com>
9103
9104 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
9105 const.
9106 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
9107 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
9108 parameter const.
9109
5a0e026f
TT
91102020-03-26 Tom Tromey <tom@tromey.com>
9111
9112 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
9113 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
9114 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
9115 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
9116
8844c11b
TT
91172020-03-26 Tom Tromey <tom@tromey.com>
9118
9119 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
9120 file_names_size, file_full_name, file_file_name>: Use const.
9121 <file_name_at, file_names>: Add const overload.
9122 * dwarf2/line-header.c (line_header::file_file_name)
9123 (line_header::file_full_name): Update.
9124
c90ec28a
TT
91252020-03-26 Tom Tromey <tom@tromey.com>
9126
9127 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
9128 (macro_start_file, consume_improper_spaces)
9129 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
9130 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
9131 (dwarf_decode_macros): Move to macro.c.
9132 * dwarf2/macro.c: New file.
9133 * dwarf2/macro.h: New file.
9134 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
9135
4f44ae6c
TT
91362020-03-26 Tom Tromey <tom@tromey.com>
9137
9138 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
9139 method.
9140 * dwarf2/section.c: New method. From
9141 read_indirect_string_at_offset_from.
9142 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
9143 (read_indirect_string_at_offset_from): Move to section.c.
9144 (read_indirect_string_at_offset): Rewrite.
9145 (read_indirect_line_string_at_offset): Remove.
9146 (read_indirect_string, read_indirect_line_string)
9147 (dwarf_decode_macro_bytes): Update.
9148
a0194fa8
TT
91492020-03-26 Tom Tromey <tom@tromey.com>
9150
9151 * dwarf2/section.h (struct dwarf2_section_info)
9152 <overload_complaint>: Declare.
9153 (dwarf2_section_buffer_overflow_complaint): Don't declare.
9154 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
9155 Rename from dwarf2_section_buffer_overflow_complaint.
9156 * dwarf2/read.c (skip_one_die, partial_die_info::read)
9157 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
9158
3d27bbdb
TT
91592020-03-26 Tom Tromey <tom@tromey.com>
9160
9161 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
9162 Declare.
9163 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
9164 Move from read.c.
9165 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
9166 to section.c.
9167
9eac9650
TT
91682020-03-26 Tom Tromey <tom@tromey.com>
9169
9170 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
9171
bf80d710
TT
91722020-03-26 Tom Tromey <tom@tromey.com>
9173
9174 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
9175 "builder".
9176 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
9177 parameter.
9178 (dwarf_decode_macros): Update.
9179
0314b390
TT
91802020-03-26 Tom Tromey <tom@tromey.com>
9181
9182 * dwarf2/read.c (read_attribute_value): Update.
9183 (read_indirect_string_from_dwz): Move to dwz.c; change into
9184 method.
9185 (dwarf_decode_macro_bytes): Update.
9186 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
9187 * dwarf2/dwz.c: New file.
9188 * Makefile.in (COMMON_SFILES): Add dwz.c.
9189
9fda78b6
TT
91902020-03-26 Tom Tromey <tom@tromey.com>
9191
9192 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
9193 * dwarf2/read.c: Add include.
9194 * dwarf2/index-write.c: Add include.
9195 * dwarf2/index-cache.c: Add include.
9196 * dwarf2/dwz.h: New file.
9197
33aa3c10
TT
91982020-03-25 Tom Tromey <tom@tromey.com>
9199
9200 * compile/compile-object-load.c (get_out_value_type): Mention
9201 correct symbol name in error message.
9202
d503b685
HD
92032020-03-25 Hannes Domani <ssbssa@yahoo.de>
9204
9205 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
9206
7b1eff95
TV
92072020-03-25 Tom de Vries <tdevries@suse.de>
9208
9209 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
9210 * symmisc.c (dump_symtab_1): Print user and includes fields.
9211 (maintenance_info_symtabs): Same.
9212
dd895392
AB
92132020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
9214
9215 PR gdb/25534
9216 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
9217 (riscv_regcache_cooked_write): New function.
9218 (riscv_push_dummy_call): Use new function.
9219 (riscv_return_value): Likewise.
9220
5ab2fbf1
SM
92212020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
9222
9223 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
9224 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
9225 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
9226 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
9227 * infrun.c (follow_fork): Likewise.
9228 (follow_fork_inferior): Likewise.
9229 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
9230 * linux-nat.h (class linux_nat_target): Likewise.
9231 * remote.c (class remote_target) <follow_fork>: Likewise.
9232 (remote_target::follow_fork): Likewise.
9233 * target-delegates.c: Re-generate.
9234 * target.c (default_follow_fork): Likewise.
9235 (target_follow_fork): Likewise.
9236 * target.h (struct target_ops) <follow_fork>: Likewise.
9237 (target_follow_fork): Likewise.
9238
a64fafb5
TV
92392020-03-24 Tom de Vries <tdevries@suse.de>
9240
9241 * psymtab.c (maintenance_info_psymtabs): Print user field.
9242
fe26d3a3
TT
92432020-03-20 Tom Tromey <tromey@adacore.com>
9244
9245 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
9246 const.
9247 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
9248 const.
9249
c884cc46
SM
92502020-03-20 Simon Marchi <simon.marchi@efficios.com>
9251
9252 * ptrace.m4: Don't check for ptrace declaration.
9253 * config.in: Re-generate.
9254 * configure: Re-generate.
9255 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
9256 not defined.
9257
1ff700c2
KR
92582020-03-20 Kamil Rytarowski <n54@gmx.com>
9259
9260 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
9261 `PTRACE_TYPE_RET'.
9262 * i386-bsd-nat.c (gdb_ptrace): Likewise.
9263 * sparc-nat.c (gdb_ptrace): Likewise.
9264 * x86-bsd-nat.c (gdb_ptrace): Likewise.
9265
f7d4f0b1
TT
92662020-03-20 Tom Tromey <tromey@adacore.com>
9267
9268 * c-exp.y (lex_one_token): Fix assert.
9269
f67210ff
TT
92702020-03-20 Tom Tromey <tromey@adacore.com>
9271
9272 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
9273 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
9274 strncpy call.
9275
1773be9e
TT
92762020-03-20 Tom Tromey <tromey@adacore.com>
9277
9278 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
9279
70304be9
TT
92802020-03-20 Tom Tromey <tromey@adacore.com>
9281
9282 * ada-valprint.c (print_variant_part): Remove parameters; switch
9283 to value-based API.
9284 (print_field_values): Likewise.
9285 (ada_val_print_struct_union): Likewise.
9286 (ada_value_print_1): Update.
9287
9faa006d
KR
92882020-03-20 Kamil Rytarowski <n54@gmx.com>
9289
9290 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
9291 nbsd_nat_target instead of inf_ptrace_target.
9292 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9293 nbsd_nat_target.
9294
4a90f062
KR
92952020-03-20 Kamil Rytarowski <n54@gmx.com>
9296
9297 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
9298 it to the ptrace call.
9299 * (store_registers): Likewise.
9300
93012020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
9302
9303 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
9304 it to the ptrace call.
9305 * (store_registers): Likewise.
9306
2d07da27
LM
93072020-03-19 Luis Machado <luis.machado@linaro.org>
9308
9309 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
9310 valid, fetch vg value from ptrace.
9311
f09db380
KR
93122020-03-19 Kamil Rytarowski <n54@gmx.com>
9313 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
9314 * inf-ptrace.c: Likewise.
9315 * (gdb_ptrace): Add.
9316 * (inf_ptrace_target::resume): Update.
9317 * (inf_ptrace_target::xfer_partial): Likewise.
9318 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
9319 * (inf_ptrace_peek_poke): Update.
9320
fcc7376e
KR
93212020-03-19 Kamil Rytarowski <n54@gmx.com>
9322
9323 * x86-bsd-nat.c (gdb_ptrace): New.
9324 * (x86bsd_dr_set): Add new argument `ptid'.
9325 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
9326 x86bsd_dr_set_addr): Update.
9327
cada5fc9
AB
93282020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9329
9330 * remote.c (remote_target::process_stop_reply): Handle events for
9331 all threads differently.
9332
19a2740f
AB
93332020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9334
9335 * completer.c (completion_tracker::remove_completion): Define new
9336 function.
9337 * completer.h (completion_tracker::remove_completion): Declare new
9338 function.
9339 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
9340 when adding a C++ function symbol.
9341
724fd9ba
AB
93422020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
9343
9344 * completer.c (completion_tracker::completion_hash_entry): Define
9345 new class.
9346 (advance_to_filename_complete_word_point): Call
9347 recompute_lowest_common_denominator.
9348 (completion_tracker::completion_tracker): Call discard_completions
9349 to setup the hash table.
9350 (completion_tracker::discard_completions): Allow for being called
9351 from the constructor, pass new equal function, and element deleter
9352 when constructing the hash table. Initialise new class member
9353 variables.
9354 (completion_tracker::maybe_add_completion): Remove use of
9355 m_entries_vec, and store more information into m_entries_hash.
9356 (completion_tracker::recompute_lcd_visitor): New function, most
9357 content taken from...
9358 (completion_tracker::recompute_lowest_common_denominator):
9359 ...here, this now just visits each item in the hash calling the
9360 above visitor.
9361 (completion_tracker::build_completion_result): Remove use of
9362 m_entries_vec, call recompute_lowest_common_denominator.
9363 * completer.h (completion_tracker::have_completions): Remove use
9364 of m_entries_vec.
9365 (completion_tracker::completion_hash_entry): Declare new class.
9366 (completion_tracker::recompute_lowest_common_denominator): Change
9367 function signature.
9368 (completion_tracker::recompute_lcd_visitor): Declare new function.
9369 (completion_tracker::m_entries_vec): Delete.
9370 (completion_tracker::m_entries_hash): Initialize to NULL.
9371 (completion_tracker::m_lowest_common_denominator_valid): New
9372 member variable.
9373 (completion_tracker::m_lowest_common_denominator_max_length): New
9374 member variable.
9375
5a82b8a1
KR
93762020-03-17 Kamil Rytarowski <n54@gmx.com>
9377
9378 * regformats/regdef.h: Put reg in gdb namespace.
9379
fb516a69
KR
93802020-03-17 Kamil Rytarowski <n54@gmx.com>
9381
9382 * i386-bsd-nat.c (gdb_ptrace): New.
9383 * (i386bsd_fetch_inferior_registers,
9384 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9385 * (i386bsd_fetch_inferior_registers,
9386 i386bsd_store_inferior_registers) Use gdb_ptrace.
9387
1c0aa1fb
KR
93882020-03-17 Kamil Rytarowski <n54@gmx.com>
9389
9390 * amd64-bsd-nat.c (gdb_ptrace): New.
9391 * (amd64bsd_fetch_inferior_registers,
9392 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
9393 * (amd64bsd_fetch_inferior_registers,
9394 amd64bsd_store_inferior_registers) Use gdb_ptrace.
9395
5ccd2fb7
KR
93962020-03-17 Kamil Rytarowski <n54@gmx.com>
9397
9398 * user-regs.c (user_reg::read): Rename to...
9399 (user_reg::xread): ...this.
9400 * (append_user_reg): Rename argument `read' to `xread'.
9401 * (user_reg_add_builtin): Likewise.
9402 * (user_reg_add): Likewise.
9403 * (value_of_user_reg): Likewise.
9404
2108a63a
KR
94052020-03-17 Kamil Rytarowski <n54@gmx.com>
9406
9407 * sparc-nat.c (gdb_ptrace): New.
9408 * sparc-nat.c (sparc_fetch_inferior_registers)
9409 (sparc_store_inferior_registers) Remove obsolete comment.
9410 * sparc-nat.c (sparc_fetch_inferior_registers)
9411 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
9412 * sparc-nat.c (sparc_fetch_inferior_registers)
9413 (sparc_store_inferior_registers) Use gdb_ptrace.
9414
a225c9a8
KR
94152020-03-17 Kamil Rytarowski <n54@gmx.com>
9416
9417 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
9418 it to the ptrace call.
9419 * sh-nbsd-nat.c (store_registers): Likewise.
9420
98097623
KR
94212020-03-17 Kamil Rytarowski <n54@gmx.com>
9422
9423 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
9424 nbsd_nat_target instead of inf_ptrace_target.
9425 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9426 nbsd_nat_target.
9427
9e38d619
KR
94282020-03-17 Kamil Rytarowski <n54@gmx.com>
9429
9430 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
9431
a2ecbe9f
KR
94322020-03-17 Kamil Rytarowski <n54@gmx.com>
9433
9434 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
9435 <sys/sysctl.h>.
9436 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
9437
58990295
TV
94382020-03-17 Tom de Vries <tdevries@suse.de>
9439
9440 PR gdb/23710
9441 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
9442 fields.
9443 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
9444 fields.
9445 (process_imported_unit_die): Skip import of c++ CUs.
9446
771dd3a8
TT
94472020-03-16 Tom Tromey <tom@tromey.com>
9448
9449 * p-valprint.c (pascal_object_print_value): Initialize
9450 base_value.
9451
817a7585
AK
94522020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
9453 Shahab Vahedi <shahab@synopsys.com>
9454
9455 * Makefile.in: Add arch/arc.o
9456 * configure.tgt: Likewise.
9457 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
9458 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 9459 (arc_read_description): New function to cache target descriptions.
817a7585
AK
9460 * arc-tdep.h (arc_read_description): Add proto type.
9461 * arch/arc.c: New file.
9462 * arch/arc.h: Likewise.
9463 * features/Makefile: Replace old target descriptions with new.
9464 * features/arc-arcompact.c: Remove.
9465 * features/arc-arcompact.xml: Likewise.
9466 * features/arc-v2.c: Likewise
9467 * features/arc-v2.xml: Likewise
9468 * features/arc/aux-arcompact.xml: New file.
9469 * features/arc/aux-v2.xml: Likewise.
9470 * features/arc/core-arcompact.xml: Likewise.
9471 * features/arc/core-v2.xml: Likewise.
9472 * features/arc/aux-arcompact.c: Generate.
9473 * features/arc/aux-v2.c: Likewise.
9474 * features/arc/core-arcompact.c: Likewise.
9475 * features/arc/core-v2.c: Likewise.
9476 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
9477
67430cd0
TT
94782020-03-16 Tom Tromey <tromey@adacore.com>
9479
9480 PR gdb/25663:
9481 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
9482 putting value into bcache.
9483
30efb6c7
SM
94842020-03-16 Simon Marchi <simon.marchi@efficios.com>
9485
9486 PR gdb/21500
9487 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
9488 to...
9489 (amd64_windows_init_abi_common): ... this. Don't set size of
9490 long type.
9491 (amd64_windows_init_abi): New function.
9492 (amd64_cygwin_init_abi): New function.
9493 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
9494 the Cygwin OS ABI.
9495 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
9496 comment.
9497
8db52437
SM
94982020-03-16 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
9501 * windows-tdep.c (CYGWIN_DLL_NAME): New.
9502 (pe_import_directory_entry): New struct type.
9503 (is_linked_with_cygwin_dll): New function.
9504 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
9505 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
9506 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
9507
5982a56a
SM
95082020-03-16 Simon Marchi <simon.marchi@efficios.com>
9509
9510 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
9511 i386_cygwin_core_osabi_sniffer.
9512
7a1998df
SM
95132020-03-16 Simon Marchi <simon.marchi@efficios.com>
9514
9515 * i386-cygwin-tdep.c: Rename to...
9516 * i386-windows-tdep.c: ... this.
9517 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
9518 i386-windows-tdep.c.
9519 * configure.tgt: Likewise.
9520
053205cc
SM
95212020-03-16 Simon Marchi <simon.marchi@efficios.com>
9522
9523 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
9524 * osabi.c (gdb_osabi_names): Add "Windows".
9525 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
9526 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
9527 (i386_cygwin_core_osabi_sniffer): New function, extracted from
9528 i386_cygwin_osabi_sniffer.
9529 (_initialize_i386_cygwin_tdep): Register OS ABI
9530 GDB_OSABI_WINDOWS for i386.
9531 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
9532 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
9533 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
9534 for x86-64.
9535 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
9536 when the target matches '*-*-mingw*'.
9537
fe4b2ee6
SM
95382020-03-16 Simon Marchi <simon.marchi@efficios.com>
9539
9540 * defs.h (enum gdb_osabi): Move to...
9541 * osabi.h (enum gdb_osabi): ... here.
9542 * gdbarch.sh: Include osabi.h in gdbarch.h.
9543 * gdbarch.h: Re-generate.
9544
cb9b645d
SM
95452020-03-16 Simon Marchi <simon.marchi@efficios.com>
9546
9547 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
9548 function.
9549 (_initialize_amd64_windows_tdep): Register osabi sniffer.
9550
3293bbaf
TT
95512020-03-14 Tom Tromey <tom@tromey.com>
9552
9553 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
9554 for C++.
9555 (c_type_print_modifier): Likewise. Add "language" parameter.
9556 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
9557 (c_type_print_base_1): Update.
9558 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
9559 constants.
9560 * type-stack.c (type_stack::insert): Handle tp_atomic and
9561 tp_restrict.
9562 (type_stack::follow_type_instance_flags): Likewise.
9563 (type_stack::follow_types): Likewise. Merge type-following code.
9564 * c-exp.y (RESTRICT, ATOMIC): New tokens.
9565 (space_identifier, cv_with_space_id)
9566 (const_or_volatile_or_space_identifier_noopt)
9567 (const_or_volatile_or_space_identifier): Remove.
9568 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
9569 rules.
9570 (ptr_operator, typebase): Update.
9571 (enum token_flag) <FLAG_C>: New constant.
9572 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
9573 "_Atomic".
9574 (lex_one_token): Handle FLAG_C.
9575
154151a6
KR
95762020-03-14 Kamil Rytarowski <n54@gmx.com>
9577
9578 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
9579 it to the ptrace call.
9580 * m68k-bsd-nat.c (store_registers): Likewise.
9581
bc107784
KR
95822020-03-14 Kamil Rytarowski <n54@gmx.com>
9583
9584 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
9585 gdb_byte *.
9586 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
9587 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
9588 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
9589
01a80117
KR
95902020-03-14 Kamil Rytarowski <n54@gmx.com>
9591
9592 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
9593 nbsd_nat_target instead of inf_ptrace_target.
9594 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9595 nbsd_nat_target.
9596
f90280ca
KR
95972020-03-14 Kamil Rytarowski <n54@gmx.com>
9598
9599 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
9600 register_t.
9601
6def66f1
KR
96022020-03-14 Kamil Rytarowski <n54@gmx.com>
9603
9604 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
9605 it to the ptrace call.
9606 * alpha-bsd-nat.c (store_registers): Likewise.
9607
66eaca97
KR
96082020-03-14 Kamil Rytarowski <n54@gmx.com>
9609
9610 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
9611 includes.
9612 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
9613 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
9614 fill_fpregset): Likewise.
9615
4fed520b
KR
96162020-03-14 Kamil Rytarowski <n54@gmx.com>
9617
9618 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
9619 nbsd_nat_target instead of inf_ptrace_target.
9620 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9621 nbsd_nat_target.
9622
2190cf06
KR
96232020-03-14 Kamil Rytarowski <n54@gmx.com>
9624
9625 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
9626 register_t.
9627
75c56d3d
KR
96282020-03-14 Kamil Rytarowski <n54@gmx.com>
9629
9630 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
9631 it to the ptrace call.
9632 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
9633 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
9634 * arm-nbsd-nat.c (store_register): Likewise.
9635 * arm-nbsd-nat.c (store_regs): Likewise.
9636 * arm-nbsd-nat.c (store_fp_register): Likewise.
9637 * arm-nbsd-nat.c (store_fp_regs): Likewise.
9638
6018d381
KR
96392020-03-14 Kamil Rytarowski <n54@gmx.com>
9640
9641 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
9642 nbsd_nat_target instead of inf_ptrace_target.
9643 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
9644 nbsd_nat_target.
9645
013f99f0
KR
96462020-03-14 Kamil Rytarowski <n54@gmx.com>
9647
9648 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
9649 it to the ptrace call.
9650 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
9651
12753073
KR
96522020-03-14 Kamil Rytarowski <n54@gmx.com>
9653
6227b330
KR
9654 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
9655 it to the ptrace call.
9656 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
9657
96582020-03-14 Kamil Rytarowski <n54@gmx.com>
9659
9660 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
9661 gdb_byte *.
12753073
KR
9662 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
9663
d5be5fa4
KR
96642020-03-14 Kamil Rytarowski <n54@gmx.com>
9665
9666 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
9667 instead of inf_ptrace_target.
9668 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
9669 nbsd_nat_target.
9670
8110f842
KR
96712020-03-14 Kamil Rytarowski <n54@gmx.com>
9672
9673 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9674 register_t.
9675
52feded7
KR
96762020-03-14 Kamil Rytarowski <n54@gmx.com>
9677
9678 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
9679 register_t.
9680
25567eee
KR
96812020-03-14 Kamil Rytarowski <n54@gmx.com>
9682
9683 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
9684 register_t.
9685
426a9c18
TT
96862020-03-13 Tom Tromey <tom@tromey.com>
9687
9688 * value.h (val_print): Don't declare.
9689 * valprint.h (val_print_array_elements)
9690 (val_print_scalar_formatted, generic_val_print): Don't declare.
9691 * valprint.c (generic_val_print_array): Take a struct value.
9692 (generic_val_print_ptr, generic_val_print_memberptr)
9693 (generic_val_print_bool, generic_val_print_int)
9694 (generic_val_print_char, generic_val_print_complex)
9695 (generic_val_print): Remove.
9696 (generic_value_print): Update.
9697 (do_val_print): Remove unused parameters. Don't call
9698 la_val_print.
9699 (val_print): Remove.
9700 (common_val_print): Update. Don't call value_check_printable.
9701 (val_print_scalar_formatted, val_print_array_elements): Remove.
9702 * rust-lang.c (rust_val_print): Remove.
9703 (rust_language_defn): Update.
9704 * p-valprint.c (pascal_val_print): Remove.
9705 (pascal_value_print_inner): Update.
9706 (pascal_object_print_val_fields, pascal_object_print_val):
9707 Remove.
9708 (pascal_object_print_static_field): Update.
9709 * p-lang.h (pascal_val_print): Don't declare.
9710 * p-lang.c (pascal_language_defn): Update.
9711 * opencl-lang.c (opencl_language_defn): Update.
9712 * objc-lang.c (objc_language_defn): Update.
9713 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
9714 * m2-lang.h (m2_val_print): Don't declare.
9715 * m2-lang.c (m2_language_defn): Update.
9716 * language.h (struct language_defn) <la_val_print>: Remove.
9717 * language.c (unk_lang_value_print_inner): Rename. Change
9718 argument types.
9719 (unknown_language_defn, auto_language_defn): Update.
9720 * go-valprint.c (go_val_print): Remove.
9721 * go-lang.h (go_val_print): Don't declare.
9722 * go-lang.c (go_language_defn): Update.
9723 * f-valprint.c (f_val_print): Remove.
9724 * f-lang.h (f_value_print): Don't declare.
9725 * f-lang.c (f_language_defn): Update.
9726 * d-valprint.c (d_val_print): Remove.
9727 * d-lang.h (d_value_print): Don't declare.
9728 * d-lang.c (d_language_defn): Update.
9729 * cp-valprint.c (cp_print_value_fields)
9730 (cp_print_value_fields_rtti, cp_print_value): Remove.
9731 (cp_print_static_field): Update.
9732 * c-valprint.c (c_val_print_array, c_val_print_ptr)
9733 (c_val_print_struct, c_val_print_union, c_val_print_int)
9734 (c_val_print_memberptr, c_val_print): Remove.
9735 * c-lang.h (c_val_print_array, cp_print_value_fields)
9736 (cp_print_value_fields_rtti): Don't declare.
9737 * c-lang.c (c_language_defn, cplus_language_defn)
9738 (asm_language_defn, minimal_language_defn): Update.
9739 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
9740 (ada_val_print_enum): Take a struct value.
9741 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
9742 (ada_val_print): Remove.
9743 (ada_value_print_1): Update.
9744 (printable_val_type): Remove.
9745 * ada-lang.h (ada_val_print): Don't declare.
9746 * ada-lang.c (ada_language_defn): Update.
9747
42331a1e
TT
97482020-03-13 Tom Tromey <tom@tromey.com>
9749
9750 * valprint.c (do_val_print): Update.
9751 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
9752 a struct value.
9753 (value_to_value_object_no_release): Declare.
9754 * python/py-value.c (value_to_value_object_no_release): New
9755 function.
9756 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
9757 struct value.
9758 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
9759 function.
9760 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
9761 a struct value.
9762 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
9763 Declare.
9764 (gdbscm_apply_val_pretty_printer): Take a struct value.
9765 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
9766 value.
9767 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
9768 value.
9769 * extension-priv.h (struct extension_language_ops)
9770 <apply_val_pretty_printer>: Take a struct value.
9771 * cp-valprint.c (cp_print_value): Create a struct value.
9772 (cp_print_value): Update.
9773
3a916a97
TT
97742020-03-13 Tom Tromey <tom@tromey.com>
9775
9776 * ada-valprint.c (print_field_values): Call common_val_print.
9777
b59eac37
TT
97782020-03-13 Tom Tromey <tom@tromey.com>
9779
9780 * ada-valprint.c (val_print_packed_array_elements): Remove
9781 bitoffset and val parameters. Call common_val_print.
9782 (ada_val_print_string): Remove offset, address, and original_value
9783 parameters.
9784 (ada_val_print_array): Update.
9785 (ada_value_print_array): New function.
9786 (ada_value_print_1): Call it.
9787
03371129
TT
97882020-03-13 Tom Tromey <tom@tromey.com>
9789
9790 * ada-valprint.c (ada_value_print): Use common_val_print.
9791
2e088f8b
TT
97922020-03-13 Tom Tromey <tom@tromey.com>
9793
9794 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
9795
39ef85a8
TT
97962020-03-13 Tom Tromey <tom@tromey.com>
9797
9798 * ada-valprint.c (ada_value_print_num): New function.
9799 (ada_value_print_1): Use it.
9800
b9fa6e07
TT
98012020-03-13 Tom Tromey <tom@tromey.com>
9802
9803 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
9804
416595d6
TT
98052020-03-13 Tom Tromey <tom@tromey.com>
9806
9807 * ada-valprint.c (ada_value_print_ptr): New function.
9808 (ada_value_print_1): Use it.
9809
5b5e15ec
TT
98102020-03-13 Tom Tromey <tom@tromey.com>
9811
9812 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
9813 call common_val_print.
9814 (ada_val_print_1): Update.
9815 (ada_value_print_1): New function.
9816 (ada_value_print_inner): Rewrite.
9817
fbf54e75
TT
98182020-03-13 Tom Tromey <tom@tromey.com>
9819
9820 * cp-valprint.c (cp_print_value_fields): Update.
9821 (cp_print_value): New function.
9822
64b653ca
TT
98232020-03-13 Tom Tromey <tom@tromey.com>
9824
9825 * m2-valprint.c (m2_value_print_inner): Use
9826 cp_print_value_fields.
9827 * cp-valprint.c (cp_print_value_fields): New function.
9828 * c-valprint.c (c_value_print_struct): New function.
9829 (c_value_print_inner): Use c_value_print_struct.
9830 * c-lang.h (cp_print_value_fields): Declare.
9831
6999f067
TT
98322020-03-13 Tom Tromey <tom@tromey.com>
9833
9834 * c-valprint.c (c_value_print_array): New function.
9835 (c_value_print_inner): Use it.
9836
ce80b8bd
TT
98372020-03-13 Tom Tromey <tom@tromey.com>
9838
9839 * c-valprint.c (c_value_print_memberptr): New function.
9840 (c_value_print_inner): Use it.
9841
2faac269
TT
98422020-03-13 Tom Tromey <tom@tromey.com>
9843
9844 * c-valprint.c (c_value_print_int): New function.
9845 (c_value_print_inner): Use it.
9846
da3e2c29
TT
98472020-03-13 Tom Tromey <tom@tromey.com>
9848
9849 * c-valprint.c (c_value_print_ptr): New function.
9850 (c_value_print_inner): Use it.
9851
50836231
TT
98522020-03-13 Tom Tromey <tom@tromey.com>
9853
9854 * c-valprint.c (c_value_print_inner): Rewrite.
9855
4f412b6e
TT
98562020-03-13 Tom Tromey <tom@tromey.com>
9857
9858 * valprint.c (generic_value_print_complex): New function.
9859 (generic_value_print): Use it.
9860
f5354008
TT
98612020-03-13 Tom Tromey <tom@tromey.com>
9862
9863 * valprint.c (generic_val_print_float): Don't call
9864 val_print_scalar_formatted.
9865 (generic_val_print, generic_value_print): Update.
9866
3eec3b05
TT
98672020-03-13 Tom Tromey <tom@tromey.com>
9868
9869 * valprint.c (generic_value_print_char): New function
9870 (generic_value_print): Use it.
9871
fdddfccb
TT
98722020-03-13 Tom Tromey <tom@tromey.com>
9873
9874 * valprint.c (generic_value_print_int): New function.
9875 (generic_value_print): Use it.
9876
6dde7521
TT
98772020-03-13 Tom Tromey <tom@tromey.com>
9878
9879 * valprint.c (generic_value_print_bool): New function.
9880 (generic_value_print): Use it.
9881
4112d2e6
TT
98822020-03-13 Tom Tromey <tom@tromey.com>
9883
9884 * valprint.c (generic_val_print_func): Simplify.
9885 (generic_val_print, generic_value_print): Update.
9886
65786af6
TT
98872020-03-13 Tom Tromey <tom@tromey.com>
9888
9889 * valprint.c (generic_val_print_flags): Remove.
9890 (generic_val_print, generic_value_print): Update.
9891 (val_print_type_code_flags): Add original_value parameter.
9892
40f3ce18
TT
98932020-03-13 Tom Tromey <tom@tromey.com>
9894
9895 * valprint.c (generic_val_print): Update.
9896 (generic_value_print): Update.
9897 * valprint.c (generic_val_print_enum): Don't call
9898 val_print_scalar_formatted.
9899
2a5b130b
TT
99002020-03-13 Tom Tromey <tom@tromey.com>
9901
9902 * valprint.c (generic_value_print): Call generic_value_print_ptr.
9903 * valprint.c (generic_value_print_ptr): New function.
9904
abc66ce9
TT
99052020-03-13 Tom Tromey <tom@tromey.com>
9906
9907 * valprint.c (generic_value_print): Rewrite.
9908
07a32858
TT
99092020-03-13 Tom Tromey <tom@tromey.com>
9910
9911 * p-valprint.c (pascal_object_print_value_fields)
9912 (pascal_object_print_value): New functions.
9913
64d64d3a
TT
99142020-03-13 Tom Tromey <tom@tromey.com>
9915
9916 * p-valprint.c (pascal_value_print_inner): Rewrite.
9917
6a95a1f5
TT
99182020-03-13 Tom Tromey <tom@tromey.com>
9919
9920 * f-valprint.c (f_value_print_innner): Rewrite.
9921
59fcdac6
TT
99222020-03-13 Tom Tromey <tom@tromey.com>
9923
9924 * m2-valprint.c (m2_print_unbounded_array): New overload.
9925 (m2_print_unbounded_array): Update.
9926 (m2_print_array_contents): Take a struct value.
9927 (m2_value_print_inner): Rewrite.
9928
d133c3e1
TT
99292020-03-13 Tom Tromey <tom@tromey.com>
9930
9931 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
9932 (d_value_print_inner): New function.
9933 * d-lang.h (d_value_print_inner): Declare.
9934 * d-lang.c (d_language_defn): Use d_value_print_inner.
9935
23b0f06b
TT
99362020-03-13 Tom Tromey <tom@tromey.com>
9937
9938 * go-valprint.c (go_value_print_inner): New function.
9939 * go-lang.h (go_value_print_inner): Declare.
9940 * go-lang.c (go_language_defn): Use go_value_print_inner.
9941
5f56f7cb
TT
99422020-03-13 Tom Tromey <tom@tromey.com>
9943
9944 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
9945 API.
9946 (rust_val_print): Rewrite.
9947 (rust_value_print_inner): New function, from rust_val_print.
9948 (rust_language_defn): Use rust_value_print_inner.
9949
26792ee0
TT
99502020-03-13 Tom Tromey <tom@tromey.com>
9951
9952 * ada-valprint.c (ada_value_print_inner): New function.
9953 * ada-lang.h (ada_value_print_inner): Declare.
9954 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
9955
24051bbe
TT
99562020-03-13 Tom Tromey <tom@tromey.com>
9957
9958 * f-valprint.c (f_value_print_innner): New function.
9959 * f-lang.h (f_value_print_innner): Declare.
9960 * f-lang.c (f_language_defn): Use f_value_print_innner.
9961
c0941be6
TT
99622020-03-13 Tom Tromey <tom@tromey.com>
9963
9964 * p-valprint.c (pascal_value_print_inner): New function.
9965 * p-lang.h (pascal_value_print_inner): Declare.
9966 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
9967
62c4663d
TT
99682020-03-13 Tom Tromey <tom@tromey.com>
9969
9970 * m2-valprint.c (m2_value_print_inner): New function.
9971 * m2-lang.h (m2_value_print_inner): Declare.
9972 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
9973
62182190
TT
99742020-03-13 Tom Tromey <tom@tromey.com>
9975
9976 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
9977 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
9978 * c-valprint.c (c_value_print_inner): New function.
9979 * c-lang.h (c_value_print_inner): Declare.
9980 * c-lang.c (c_language_defn, cplus_language_defn)
9981 (asm_language_defn, minimal_language_defn): Use
9982 c_value_print_inner.
9983
1e592a8a
TT
99842020-03-13 Tom Tromey <tom@tromey.com>
9985
9986 * p-valprint.c (pascal_object_print_value_fields): Now static.
9987 * p-lang.h (pascal_object_print_value_fields): Don't declare.
9988
7fe471e9
TT
99892020-03-13 Tom Tromey <tom@tromey.com>
9990
9991 * c-valprint.c (c_val_print_array): Simplify.
9992
d121c6ce
TT
99932020-03-13 Tom Tromey <tom@tromey.com>
9994
9995 * valprint.c (value_print_array_elements): New function.
9996 * valprint.h (value_print_array_elements): Declare.
9997
4dba70ee
TT
99982020-03-13 Tom Tromey <tom@tromey.com>
9999
10000 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
10001 * mips-tdep.c (mips_print_register): Use
10002 value_print_scalar_formatted.
10003
4f9ae810
TT
100042020-03-13 Tom Tromey <tom@tromey.com>
10005
10006 * valprint.h (value_print_scalar_formatted): Declare.
10007 * valprint.c (value_print_scalar_formatted): New function.
10008
156bfec9
TT
100092020-03-13 Tom Tromey <tom@tromey.com>
10010
10011 * valprint.h (generic_value_print): Declare.
10012 * valprint.c (generic_value_print): New function.
10013
2b4e573d
TT
100142020-03-13 Tom Tromey <tom@tromey.com>
10015
10016 * valprint.c (do_val_print): Call la_value_print_inner, if
10017 available.
10018 * rust-lang.c (rust_language_defn): Update.
10019 * p-lang.c (pascal_language_defn): Update.
10020 * opencl-lang.c (opencl_language_defn): Update.
10021 * objc-lang.c (objc_language_defn): Update.
10022 * m2-lang.c (m2_language_defn): Update.
10023 * language.h (struct language_defn) <la_value_print_inner>: New
10024 member.
10025 * language.c (unknown_language_defn, auto_language_defn): Update.
10026 * go-lang.c (go_language_defn): Update.
10027 * f-lang.c (f_language_defn): Update.
10028 * d-lang.c (d_language_defn): Update.
10029 * c-lang.c (c_language_defn, cplus_language_defn)
10030 (asm_language_defn, minimal_language_defn): Update.
10031 * ada-lang.c (ada_language_defn): Update.
10032
a1f6a07c
TT
100332020-03-13 Tom Tromey <tom@tromey.com>
10034
10035 * c-valprint.c (c_value_print): Use common_val_print.
10036
410cf315
TT
100372020-03-13 Tom Tromey <tom@tromey.com>
10038
10039 * cp-valprint.c (cp_print_static_field): Use common_val_print.
10040
72a45c93
TT
100412020-03-13 Tom Tromey <tom@tromey.com>
10042
10043 * f-valprint.c (f77_print_array_1, f_val_print): Use
10044 common_val_print.
10045
040f66bd
TT
100462020-03-13 Tom Tromey <tom@tromey.com>
10047
10048 * riscv-tdep.c (riscv_print_one_register_info): Use
10049 common_val_print.
10050
a6e05a6c
TT
100512020-03-13 Tom Tromey <tom@tromey.com>
10052
10053 * mi/mi-main.c (output_register): Use common_val_print.
10054
3444c526
TT
100552020-03-13 Tom Tromey <tom@tromey.com>
10056
10057 * infcmd.c (default_print_one_register_info): Use
10058 common_val_print.
10059
c2a44efe
TT
100602020-03-13 Tom Tromey <tom@tromey.com>
10061
10062 * valprint.h (common_val_print_checked): Declare.
10063 * valprint.c (common_val_print_checked): New function.
10064 * stack.c (print_frame_arg): Use common_val_print_checked.
10065
b0c26e99
TT
100662020-03-13 Tom Tromey <tom@tromey.com>
10067
10068 * valprint.c (do_val_print): New function, from val_print.
10069 (val_print): Use do_val_print.
10070 (common_val_print): Use do_val_print.
10071
ce3acbe9
TT
100722020-03-13 Tom Tromey <tom@tromey.com>
10073
10074 * valprint.c (value_print): Use scoped_value_mark.
10075
96c7f873
TV
100762020-03-13 Tom de Vries <tdevries@suse.de>
10077
10078 PR symtab/25646
10079 * psymtab.c (partial_symtab::partial_symtab): Don't set
10080 globals_offset and statics_offset. Push element onto
10081 current_global_psymbols and current_static_psymbols stacks.
10082 (concat): New function.
10083 (end_psymtab_common): Set globals_offset and statics_offset. Pop
10084 element from current_global_psymbols and current_static_psymbols
10085 stacks. Concat popped elements to global_psymbols and
10086 static_symbols.
10087 (add_psymbol_to_list): Use current_global_psymbols and
10088 current_static_psymbols stacks.
10089 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
10090 current_static_psymbols fields.
10091
6ba0a321
CB
100922020-03-12 Christian Biesinger <cbiesinger@google.com>
10093
10094 * corelow.c (sniff_core_bfd): Remove.
10095 (class core_target) <m_core_vec>: Remove.
10096 (core_target::core_target): Update.
10097 (core_file_fns): Remove.
10098 (deprecated_add_core_fns): Remove.
10099 (default_core_sniffer): Remove.
10100 (sniff_core_bfd): Remove.
10101 (default_check_format): Remove.
10102 (gdb_check_format): Remove.
10103 (core_target_open): Update.
10104 (core_target::get_core_register_section): Update.
10105 (get_core_registers_cb): Update.
10106 (core_target::fetch_registers): Update.
10107 * gdbcore.h (struct core_fns): Remove.
10108 (deprecated_add_core_fns): Remove.
10109 (default_core_sniffer): Remove.
10110 (default_check_format): Remove.
10111
227031b2
TT
101122020-03-12 Tom Tromey <tom@tromey.com>
10113
10114 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
10115 CORE_ADDR.
10116 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
10117
53807e9f
TT
101182020-03-12 Tom Tromey <tom@tromey.com>
10119
10120 * remote.c (remote_target::download_tracepoint)
10121 (remote_target::enable_tracepoint)
10122 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
10123 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
10124 sprintf_vma.
10125
64f25102
TT
101262020-03-12 Tom Tromey <tom@tromey.com>
10127
10128 * symfile-mem.c: Update CORE_ADDR size assert.
10129
272cd5a3
SM
101302020-03-12 Simon Marchi <simon.marchi@efficios.com>
10131
10132 * selftest.m4: Move to gdbsupport/.
10133 * acinclude.m4: Update path to selftest.m4.
10134
74cd3f9d
SM
101352020-03-12 Simon Marchi <simon.marchi@efficios.com>
10136
10137 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
10138 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
10139 gdbarch-selfselftests.c and selftest-arch.c.
10140 (SUBDIR_UNITTESTS_OBS): Rename to...
10141 (SELFTESTS_OBS): ... this.
10142 (COMMON_SFILES): Remove disasm-selftests.c and
10143 gdbarch-selftests.c.
10144 * configure.ac: Don't add selftest-arch.{c,o} to
10145 CONFIG_{SRCS,OBS}.
10146 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
10147 preprocessor conditions.
10148
db6878ac
SM
101492020-03-12 Simon Marchi <simon.marchi@efficios.com>
10150
10151 * configure.ac: Don't source bfd/development.sh.
10152 * selftest.m4: Modify comment.
10153 * configure: Re-generate.
10154
4d696a5c
SM
101552020-03-12 Simon Marchi <simon.marchi@efficios.com>
10156
10157 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
10158 not "true" or "false".
10159 * configure: Re-generate.
10160
8dd8e1c7
CB
101612020-03-12 Christian Biesinger <cbiesinger@google.com>
10162
10163 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
10164 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
10165 renamed to arm_nbsd_supply_gregset.
10166 (fetch_register): Update to call arm_nbsd_supply_gregset.
10167 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
10168 (arm_netbsd_nat_target::fetch_registers): Update.
10169 (fetch_elfcore_registers): Removed.
10170 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
10171 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
10172 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
10173 not require NetBSD system headers.
10174 (arm_nbsd_regset): New struct.
10175 (arm_nbsd_iterate_over_regset_sections): New function.
10176 (arm_netbsd_init_abi_common): Updated to call
10177 set_gdbarch_iterate_over_regset_sections.
10178 * arm-nbsd-tdep.h: New file.
10179
dd69bf7a
KB
101802020-03-11 Kevin Buettner <kevinb@redhat.com>
10181
10182 * symtab.c (find_pc_sect_line): Add check which prevents infinite
10183 recursion.
10184
a0761e34
SM
101852020-03-11 Simon Marchi <simon.marchi@efficios.com>
10186
10187 * configure: Re-generate.
10188
e7a82140
TT
101892020-03-11 Tom Tromey <tromey@adacore.com>
10190
10191 * ada-typeprint.c (print_choices): Fix comment.
10192
dcc050c8
AB
101932020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
10194
10195 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
10196 previous item in the list, when the list has no items.
10197
1c33af77
TV
101982020-03-11 Tom de Vries <tdevries@suse.de>
10199
10200 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
10201 PROP_LOCLIST handling code.
10202
8c95582d
AB
102032020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
10204
10205 * buildsym-legacy.c (record_line): Pass extra parameter to
10206 record_line.
10207 * buildsym.c (buildsym_compunit::record_line): Take an extra
10208 parameter, reduce duplication in the line table, and record the
10209 is_stmt flag in the line table.
10210 * buildsym.h (buildsym_compunit::record_line): Add extra
10211 parameter.
10212 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
10213 non-statement lines.
10214 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
10215 this to the symtab builder.
10216 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
10217 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
10218 through to dwarf_record_line_1.
10219 * infrun.c (process_event_stop_test): When stepping, don't stop at
10220 a non-statement instruction, and only refresh the step info when
10221 we land in the middle of a line's range. Also add an extra
10222 comment.
10223 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
10224 field.
10225 * record-btrace.c (btrace_find_line_range): Only record lines
10226 marked as is-statement.
10227 * stack.c (frame_show_address): Show the frame address if we are
10228 in a non-statement sal.
10229 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
10230 (maintenance_print_one_line_table): Print a header for the is_stmt
10231 column, and include is_stmt information in the output.
10232 * symtab.c (find_pc_sect_line): Find lines marked as statements in
10233 preference to non-statements.
10234 (find_pcs_for_symtab_line): Prefer is-statement entries.
10235 (find_line_common): Likewise.
10236 * symtab.h (struct linetable_entry): Add is_stmt field.
10237 (struct symtab_and_line): Likewise.
10238 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
10239 arranging the line table.
10240
e4003a34
TV
102412020-03-07 Tom de Vries <tdevries@suse.de>
10242
10243 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
10244 DIE.
10245
e8932576
TT
102462020-03-07 Tom Tromey <tom@tromey.com>
10247
10248 * valops.c (value_literal_complex): Remove obsolete comment.
10249 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
10250 comment.
10251
29734269
SM
102522020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
10253
10254 * infrun.h: Forward-declare thread_info.
10255 (set_step_info): Add thread_info parameter, add doc.
10256 * infrun.c (set_step_info): Add thread_info parameter, move doc
10257 to header.
10258 * infrun.c (process_event_stop_test): Pass thread to
10259 set_step_info call.
10260 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
10261 set_step_info.
10262 (prepare_one_step): Add thread_info parameter, pass it to
10263 set_step_frame and prepare_one_step (recursive) call.
10264 (step_1): Pass thread to prepare_one_step call.
10265 (step_command_fsm::should_stop): Pass thread to
10266 prepare_one_step.
10267 (until_next_fsm): Pass thread to set_step_frame call.
10268 (finish_command): Pass thread to set_step_info call.
10269
b7d64b29
HD
102702020-03-06 Hannes Domani <ssbssa@yahoo.de>
10271
10272 * windows-tdep.c (windows_solib_create_inferior_hook):
10273 Check if inferior is running.
10274
09f2921c
TV
102752020-03-06 Tom de Vries <tdevries@suse.de>
10276
10277 * NEWS: Fix "the the".
10278 * ctfread.c: Same.
10279
fd760e79
TV
102802020-03-06 Tom de Vries <tdevries@suse.de>
10281
10282 * psymtab.c (psymtab_to_symtab): Don't print "done.".
10283
20ea4a60
AB
102842020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
10285
10286 * .dir-locals.el: Add a comment referencing the other copies of
10287 this file.
10288
0afbabf0
JB
102892020-03-05 John Baldwin <jhb@FreeBSD.org>
10290
10291 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
10292 psargs.
10293
842806cb
TBA
102942020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10295
10296 * .gitattributes: New file.
10297
be1e3d3e
TT
102982020-03-04 Tom Tromey <tom@tromey.com>
10299
10300 * symmisc.c (print_symbol_bcache_statistics)
10301 (print_objfile_statistics): Update.
10302 * symfile.c (allocate_symtab): Use intern.
10303 * psymtab.c (partial_symtab::partial_symtab): Use intern.
10304 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
10305 macro_cache>: Remove.
10306 <string_cache>: New member.
10307 (struct objfile) <intern>: New methods.
10308 * elfread.c (elf_symtab_read): Use intern.
10309 * dwarf2/read.c (fixup_go_packaging): Intern package name.
10310 (dwarf2_compute_name, dwarf2_physname)
10311 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
10312 names.
10313 (guess_partial_die_structure_name): Update.
10314 (partial_die_info::fixup): Intern name.
10315 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
10316 name.
10317 (dwarf2_name): Intern name. Update.
10318 * buildsym.c (buildsym_compunit::get_macro_table): Use
10319 string_cache.
10320
4e7625fd
TT
103212020-03-04 Tom Tromey <tom@tromey.com>
10322
10323 * jit.c (bfd_open_from_target_memory): Make "target" const.
10324 * corefile.c (gnutarget): Now const.
10325 * gdbcore.h (gnutarget): Now const.
10326
46f9f931
HD
103272020-03-04 Hannes Domani <ssbssa@yahoo.de>
10328
10329 * NEWS: Mention support for WOW64 processes.
10330 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
10331 (amd64_windows_segment_register_p): Remove static.
10332 (_initialize_amd64_windows_nat): Update.
10333 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
10334 * i386-windows-nat.c (context_offset): Update.
10335 (i386_mappings): Rename and remove static.
10336 (i386_windows_segment_register_p): Remove static.
10337 (_initialize_i386_windows_nat): Update.
10338 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
10339 (STATUS_WX86_SINGLE_STEP): New macro.
10340 (EnumProcessModulesEx): New macro.
10341 (Wow64SuspendThread): New macro.
10342 (Wow64GetThreadContext): New macro.
10343 (Wow64SetThreadContext): New macro.
10344 (Wow64GetThreadSelectorEntry): New macro.
10345 (windows_set_context_register_offsets): Add static.
10346 (windows_set_segment_register_p): Likewise.
10347 (windows_add_thread): Adapt for WOW64 processes.
10348 (windows_fetch_one_register): Likewise.
10349 (windows_nat_target::fetch_registers): Likewise.
10350 (windows_store_one_register): Likewise.
10351 (display_selector): Likewise.
10352 (display_selectors): Likewise.
10353 (handle_exception): Likewise.
10354 (windows_continue): Likewise.
10355 (windows_nat_target::resume): Likewise.
10356 (windows_add_all_dlls): Likewise.
10357 (do_initial_windows_stuff): Likewise.
10358 (windows_nat_target::attach): Likewise.
10359 (windows_get_exec_module_filename): Likewise.
10360 (windows_nat_target::create_inferior): Likewise.
10361 (windows_xfer_siginfo): Likewise.
10362 (_initialize_loadable): Initialize Wow64SuspendThread,
10363 Wow64GetThreadContext, Wow64SetThreadContext,
10364 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
10365 * windows-nat.h (windows_set_context_register_offsets):
10366 Remove declaration.
10367 (windows_set_segment_register_p): Likewise.
10368 (i386_windows_segment_register_p): Add declaration.
10369 (amd64_windows_segment_register_p): Likewise.
10370
440cf44e
LM
103712020-03-04 Luis Machado <luis.machado@linaro.org>
10372
10373 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
10374 in "info registers" for AArch64/ARM.
10375
10376 The change caused "info registers" to not print GPR's.
10377
10378 gdb/ChangeLog:
10379
10380 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
10381
10382 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
10383 when reg->group is empty and reggroup is not.
10384
1009d92f
TT
103852020-03-03 Tom Tromey <tromey@adacore.com>
10386
10387 * dwarf2/frame.c (struct dwarf2_frame_cache)
10388 <checked_tailcall_bottom, entry_cfa_sp_offset,
10389 entry_cfa_sp_offset_p>: Remove members.
10390 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
10391 (dwarf2_frame_prev_register): Don't call
10392 dwarf2_tailcall_sniffer_first.
10393 (dwarf2_append_unwinders): Don't append tailcall unwinder.
10394 * frame-unwind.c (add_unwinder): New fuction.
10395 (frame_unwind_init): Use it. Add tailcall unwinder.
10396
5e5d66b6
AB
103972020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
10398 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
10399
10400 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
10401 value should be printed as true.
10402
584cf46d
HD
104032020-03-03 Hannes Domani <ssbssa@yahoo.de>
10404
10405 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
10406 (windows_init_abi): Set and use windows_so_ops.
10407
7b973adc
SDJ
104082020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
10409
10410 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
10411 when verifying if dealing with a convenience variable.
10412
bb7b70ab
LM
104132020-03-03 Luis Machado <luis.machado@linaro.org>
10414
10415 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
10416
9822cb57
SM
104172020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
10418
10419 * infrun.c (gdbarch_supports_displaced_stepping): New.
10420 (use_displaced_stepping): Break up conditions in smaller pieces.
10421 Use gdbarch_supports_displaced_stepping.
10422 (displaced_step_prepare_throw): Use
10423 gdbarch_supports_displaced_stepping.
10424
63e163f2
AB
104252020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10426
10427 * NEWS: Mention new behaviour of the history filename.
10428 * top.c (write_history_p): Add comment.
10429 (show_write_history_p): Add header comment, give a different
10430 message when history writing is on, but the history filename is
10431 empty.
10432 (history_filename): Add comment.
10433 (history_filename_empty): New function.
10434 (show_history_filename): Add header comment, give a different
10435 message when the filename is empty.
10436 (init_history): Compare history_filename against nullptr, and only
10437 read history if the filename is not empty.
10438 (set_history_filename): Add header comment, and only make
10439 non-empty filenames absolute.
10440 (init_main): Make the filename argument to 'set history filename'
10441 optional.
10442
81b86b97
CB
104432020-03-02 Christian Biesinger <cbiesinger@google.com>
10444
10445 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
10446 (arm_supply_vfpregset): ...this, and update to use VFP registers.
10447 (fetch_fp_register): Update.
10448 (fetch_fp_regs): Update.
10449 (store_fp_register): Update.
10450 (store_fp_regs): Update.
10451 (arm_netbsd_nat_target::read_description): New function.
10452 (fetch_elfcore_registers): Update.
10453
24ed6739
AB
104542020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
10455
10456 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
10457 general_thread if the stop reply is missing a thread-id.
10458 (remote_target::process_stop_reply): Use the first non-exited
10459 thread if the target didn't pass a thread-id.
10460 * infrun.c (do_target_wait): Move call to
10461 switch_to_inferior_no_thread to ....
10462 (do_target_wait_1): ... here.
10463
a84bb2a0
JT
104642020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
10465
10466 * debuginfod-support.c: Include defs.h first.
10467
658dadf0
TV
104682020-02-28 Tom de Vries <tdevries@suse.de>
10469
10470 * symfile.c (set_initial_language): Use default language for lookup.
10471
4ebe4877
SM
104722020-02-28 Simon Marchi <simon.marchi@efficios.com>
10473
10474 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
10475 reader variable, pass `this` to read_cutu_die_from_dwo.
10476
e5da1139
AM
104772020-02-27 Aaron Merey <amerey@redhat.com>
10478
10479 * source.c (open_source_file): Check for nullptr when computing
10480 srcpath.
10481
317f7127
TT
104822020-02-27 Tom Tromey <tromey@adacore.com>
10483
10484 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
10485 member.
10486 (dwarf2_add_field): Don't update nfields.
10487 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
10488
3104d9ee
AB
104892020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
10490
10491 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
10492 abs.
10493
b83470bf
TT
104942020-02-26 Tom Tromey <tom@tromey.com>
10495
10496 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
10497 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
10498 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
10499 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
10500 per_cu_data.
10501
edfe0a0c
TT
105022020-02-26 Tom Tromey <tom@tromey.com>
10503
10504 * dwarf2/index-write.c (psym_index_map): Change type.
10505 (add_address_entry_worker, write_one_signatured_type)
10506 (recursively_count_psymbols, recursively_write_psymbols)
10507 (class debug_names, psyms_seen_size, write_gdbindex)
10508 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
10509
0d79cdc4
AM
105102020-02-26 Aaron Merey <amerey@redhat.com>
10511
10512 * Makefile.in: Handle optional debuginfod support.
10513 * NEWS: Update.
10514 * README: Add --with-debuginfod summary.
10515 * config.in: Regenerate.
10516 * configure: Regenerate.
10517 * configure.ac: Handle optional debuginfod support.
10518 * debuginfod-support.c: debuginfod helper functions.
10519 * debuginfod-support.h: Ditto.
10520 * doc/gdb.texinfo: Add --with-debuginfod to configure options
10521 summary.
10522 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
10523 when a dwz file cannot be found.
10524 * elfread.c (elf_symfile_read): Query debuginfod servers when a
10525 debuginfo file cannot be found.
10526 * source.c (open_source_file): Query debuginfod servers when a
10527 source file cannot be found.
10528 * top.c (print_gdb_configuration): Include
10529 --{with,without}-debuginfod in the output.
10530
b65ce565
JG
105312020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
10532
10533 * thread.c (thr_try_catch_cmd): Print thread name.
10534
d4c9a4f8
SM
105352020-02-26 Simon Marchi <simon.marchi@efficios.com>
10536
10537 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
10538 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10539 dwarf2_fetch_die_type_sect_off): Move to...
10540 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
10541 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10542 dwarf2_fetch_die_type_sect_off): ... here.
10543 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
10544 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
10545 dwarf2_fetch_die_type_sect_off): Move doc to header file.
10546
0dce4280
TV
105472020-02-26 Tom de Vries <tdevries@suse.de>
10548
10549 PR gdb/25603
10550 * symfile.c (set_initial_language): Exit-early if
10551 language_mode == language_mode_manual.
10552
450a1bfc
SM
105532020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10554
10555 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
10556 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
10557 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
10558
9e80cfa1
AB
105592020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
10560
10561 * gdbtypes.c (create_array_type_with_stride): Handle negative
10562 array strides.
10563 * valarith.c (value_subscripted_rvalue): Likewise.
10564
09624f1f
LM
105652020-02-25 Luis Machado <luis.machado@linaro.org>
10566
10567 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
10568
8cb5117c
SM
105692020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
10570
10571 * loc.h (dwarf2_get_die_type): Move to...
10572 * read.h (dwarf2_get_die_type): ... here.
10573 * read.c (dwarf2_get_die_type): Move doc to header.
10574
c325c44e
JB
105752020-02-25 Joel Brobecker <brobecker@adacore.com>
10576
10577 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
10578 'gnulib/Makefile.in' to the list.
10579
4ac93832
TT
105802020-02-24 Tom Tromey <tom@tromey.com>
10581
10582 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
10583 Remove.
10584 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
10585 XOBNEWVEC.
10586
197400e8
TT
105872020-02-24 Tom Tromey <tom@tromey.com>
10588
10589 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
10590 New method.
10591 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
10592 (dw2_do_instantiate_symtab, dw2_get_file_names)
10593 (build_type_psymtab_dependencies, load_full_type_unit): Update.
10594
76935768
TT
105952020-02-24 Tom Tromey <tom@tromey.com>
10596
10597 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
10598 make_scoped_restore.
10599 (dwarf2_psymtab::read_symtab): Don't clear
10600 reading_partial_symbols.
10601
a88ef40d
TV
106022020-02-24 Tom de Vries <tdevries@suse.de>
10603
10604 PR gdb/25592
10605 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
10606
c9af6521
TV
106072020-02-24 Tom de Vries <tdevries@suse.de>
10608
10609 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
10610 commands layout next/prev/regs.
10611
5707a07a
TT
106122020-02-22 Tom Tromey <tom@tromey.com>
10613
10614 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
10615 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
10616
3b0fb49e
TT
106172020-02-22 Tom Tromey <tom@tromey.com>
10618
10619 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
10620
283be8bf
TT
106212020-02-22 Tom Tromey <tom@tromey.com>
10622
10623 * tui/tui-win.c (_initialize_tui_win): Add usage text.
10624 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
10625 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
10626 * tui/tui.c (_initialize_tui): Add usage text.
10627
ca793b96
TT
106282020-02-22 Tom Tromey <tom@tromey.com>
10629
10630 * tui/tui-win.c (tui_set_focus_command)
10631 (tui_set_win_height_command): Use error_no_arg.
10632 (_initialize_tui_win): Update help text.
10633 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
10634
432b5c40
TT
106352020-02-22 Tom Tromey <tom@tromey.com>
10636
10637 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
10638 * tui/tui-disasm.h (struct tui_disasm_window)
10639 <display_start_addr>: Declare.
10640 * tui/tui-source.h (struct tui_source_window)
10641 <display_start_addr>: Declare.
10642 * tui/tui-winsource.h (struct tui_source_window_base)
10643 <show_source_line, display_start_addr>: New methods.
10644 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
10645 Rename and move to protected section.
10646 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
10647 (tui_source_window_base::do_erase_source_content): Update.
10648 (tui_source_window_base::show_source_line): Now a method.
10649 (tui_source_window_base::show_source_content)
10650 (tui_source_window_base::tui_source_window_base)
10651 (tui_source_window_base::rerender)
10652 (tui_source_window_base::refill)
10653 (tui_source_window_base::do_scroll_horizontal)
10654 (tui_source_window_base::set_is_exec_point_at)
10655 (tui_source_window_base::update_breakpoint_info)
10656 (tui_source_window_base::update_exec_info): Update.
10657 * tui/tui-source.c (tui_source_window::set_contents)
10658 (tui_source_window::showing_source_p)
10659 (tui_source_window::do_scroll_vertical)
10660 (tui_source_window::location_matches_p)
10661 (tui_source_window::line_is_displayed): Update.
10662 (tui_source_window::display_start_addr): New method.
10663 * tui/tui-disasm.c (tui_disasm_window::set_contents)
10664 (tui_disasm_window::do_scroll_vertical)
10665 (tui_disasm_window::location_matches_p): Update.
10666 (tui_disasm_window::display_start_addr): New method.
10667
01b1af32
TT
106682020-02-22 Tom Tromey <tom@tromey.com>
10669
10670 * NEWS: Add entry for gdb.register_window_type.
10671 * tui/tui-layout.h (window_factory): New typedef.
10672 (tui_register_window): Declare.
10673 * tui/tui-layout.c (saved_tui_windows): New global.
10674 (tui_apply_current_layout): Use it.
10675 (tui_register_window): New function.
10676 * python/python.c (do_start_initialization): Call
10677 gdbpy_initialize_tui.
10678 (python_GdbMethods): Add "register_window_type" function.
10679 * python/python-internal.h (gdbpy_register_tui_window)
10680 (gdbpy_initialize_tui): Declare.
10681 * python/py-tui.c: New file.
10682 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
10683
fc96d20b
TT
106842020-02-22 Tom Tromey <tom@tromey.com>
10685
10686 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
10687
935c78c0
TT
106882020-02-22 Tom Tromey <tom@tromey.com>
10689
10690 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
10691 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
10692 * tui/tui-data.c (tui_set_win_with_focus): Remove.
10693 (tui_set_win_focus_to): Move from tui-win.c.
10694
0240c8f1
TT
106952020-02-22 Tom Tromey <tom@tromey.com>
10696
10697 * tui/tui-layout.c (make_standard_window, get_locator_window): New
10698 functions.
10699 (known_window_types): New global.
10700 (tui_get_window_by_name): Reimplement.
10701 (initialize_known_windows): New function.
10702 (validate_window_name): Rewrite.
10703 (_initialize_tui_layout): Call initialize_known_windows.
10704
fdb01f0c
TT
107052020-02-22 Tom Tromey <tom@tromey.com>
10706
10707 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
10708 Remove constants.
10709 * tui/tui-winsource.h (struct tui_source_window_base)
10710 <tui_source_window_base>: Remove parameter.
10711 * tui/tui-winsource.c
10712 (tui_source_window_base::tui_source_window_base): Remove
10713 parameter.
10714 (tui_source_window_base::refill): Update.
10715 * tui/tui-stack.h (struct tui_locator_window)
10716 <tui_locator_window>: Update.
10717 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
10718 Default the constructor.
10719 * tui/tui-regs.h (struct tui_data_item_window)
10720 <tui_data_item_window>: Default the constructor.
10721 (struct tui_data_window) <tui_data_window>: Likewise.
10722 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
10723 Default the constructor.
10724 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
10725 Default the constructor.
10726 <type>: Remove.
10727 (struct tui_win_info) <tui_win_info>: Default the constructor.
10728 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
10729 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
10730 Default the constructor.
10731
865a5aec
TT
107322020-02-22 Tom Tromey <tom@tromey.com>
10733
10734 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
10735 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
10736 * tui/tui-win.c (tui_resize_all): Don't call
10737 tui_delete_invisible_windows.
10738 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
10739 done.
10740 (tui_set_layout): Update.
10741 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
10742 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
10743 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
10744
e098d18c
TT
107452020-02-22 Tom Tromey <tom@tromey.com>
10746
10747 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
10748 correctly.
10749
eb9c8874
TT
107502020-02-22 Tom Tromey <tom@tromey.com>
10751
10752 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
10753
7eed1a8e
TT
107542020-02-22 Tom Tromey <tom@tromey.com>
10755
10756 * tui/tui-winsource.h (struct tui_source_window_iterator)
10757 <inner_iterator>: New etytypedef.
10758 <tui_source_window_iterator>: Take "end" parameter.
10759 <tui_source_window_iterator>: Take iterator.
10760 <operator*, advance>: Update.
10761 <m_iter>: Change type.
10762 <m_end>: New field.
10763 (struct tui_source_windows) <begin, end>: Update.
10764 * tui/tui-layout.c (tui_windows): New global.
10765 (tui_apply_current_layout): Clear tui_windows.
10766 (tui_layout_window::apply): Update tui_windows.
10767 * tui/tui-data.h (tui_windows): Declare.
10768 (all_tui_windows): Now inline function.
10769 (class tui_window_iterator, struct all_tui_windows): Remove.
10770
7c043ba6
TT
107712020-02-22 Tom Tromey <tom@tromey.com>
10772
10773 PR tui/17850:
10774 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
10775 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
10776 "height" argument.
10777 (class tui_layout_window) <get_sizes>: Likewise.
10778 (class tui_layout_split) <tui_layout_split>: Add "vertical"
10779 argument.
10780 <get_sizes>: Add "height" argument.
10781 <m_vertical>: New field.
10782 * tui/tui-layout.c (tui_layout_split::clone): Update.
10783 (tui_layout_split::get_sizes): Add "height" argument.
10784 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
10785 (tui_new_layout_command): Parse "-horizontal".
10786 (_initialize_tui_layout): Update help string.
10787 (tui_layout_split::specification): Add "-horizontal" when needed.
10788 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
10789 argument.
10790 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
10791 New methods.
10792
6bc56648
TT
107932020-02-22 Tom Tromey <tom@tromey.com>
10794
10795 * tui/tui-layout.h (enum tui_adjust_result): New.
10796 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
10797 (class tui_layout_window) <adjust_size>: Return
10798 tui_adjust_result. Rewrite.
10799 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
10800 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
10801
c22fef7e
TT
108022020-02-22 Tom Tromey <tom@tromey.com>
10803
10804 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
10805 parameter and return types.
10806 (class tui_layout_base) <specification>: Add "depth".
10807 (class tui_layout_window) <specification>: Add "depth".
10808 (class tui_layout_split) <specification>: Add "depth".
10809 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
10810 and return types.
10811 (tui_new_layout_command): Parse sub-layouts.
10812 (_initialize_tui_layout): Update help string.
10813 (tui_layout_window::specification): Add "depth".
10814 (add_layout_command): Update.
10815
ee325b61
TT
108162020-02-22 Tom Tromey <tom@tromey.com>
10817
10818 * NEWS: Add "tui new-layout" item.
10819 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
10820 Add new-layout command to help text.
10821 (validate_window_name): New function.
10822 (tui_new_layout_command): New function.
10823 (_initialize_tui_layout): Register "new-layout".
10824 (tui_layout_window::specification): New method.
10825 (tui_layout_window::specification): New method.
10826 * tui/tui-layout.h (class tui_layout_base) <specification>: New
10827 method.
10828 (class tui_layout_window) <specification>: New method.
10829 (class tui_layout_split) <specification>: New method.
10830
416eb92d
TT
108312020-02-22 Tom Tromey <tom@tromey.com>
10832
10833 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
10834 * tui/tui-win.c (window_name_completer): Update comment.
10835 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
10836 Declare method.
10837 (class tui_layout_window) <replace_window>: Likewise.
10838 (class tui_layout_split) <replace_window>: Likewise.
10839 (tui_set_layout): Don't declare.
10840 (tui_set_initial_layout): Declare function.
10841 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
10842 (asm_regs_layout): New globals.
10843 (tui_current_layout, show_layout): Remove.
10844 (tui_set_layout, tui_add_win_to_layout): Rewrite.
10845 (find_layout, tui_apply_layout): New function.
10846 (layout_completer): Remove.
10847 (tui_next_layout): Reimplement.
10848 (tui_next_layout_command): New function.
10849 (tui_set_initial_layout, tui_prev_layout_command): New functions.
10850 (tui_regs_layout): Reimplement.
10851 (tui_regs_layout_command): New function.
10852 (extract_display_start_addr): Rewrite.
10853 (next_layout, prev_layout): Remove.
10854 (tui_layout_window::replace_window): New method.
10855 (tui_layout_split::replace_window): New method.
10856 (destroy_layout): New function.
10857 (layout_list): New global.
10858 (add_layout_command): New function.
10859 (initialize_layouts): Update.
10860 (tui_layout_command): New function.
10861 (_initialize_tui_layout): Install "layout" commands.
10862 * tui/tui-data.h (enum tui_layout_type): Remove.
10863 (tui_current_layout): Don't declare.
10864
0dbc2fc7
TT
108652020-02-22 Tom Tromey <tom@tromey.com>
10866
10867 * tui/tui-regs.c (tui_reg_layout): Remove.
10868 (tui_reg_command): Use tui_regs_layout.
10869 * tui/tui-layout.h (tui_reg_command): Declare.
10870 * tui/tui-layout.c (tui_reg_command): New function.
10871
5afe342e
TT
108722020-02-22 Tom Tromey <tom@tromey.com>
10873
10874 * tui/tui.c (tui_rl_delete_other_windows): Call
10875 tui_remove_some_windows.
10876 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
10877 Declare method.
10878 (class tui_layout_window) <remove_windows>: New method.
10879 (class tui_layout_split) <remove_windows>: Declare.
10880 (tui_remove_some_windows): Declare.
10881 * tui/tui-layout.c (tui_remove_some_windows): New function.
10882 (tui_layout_split::remove_windows): New method.
10883
427326a8
TT
108842020-02-22 Tom Tromey <tom@tromey.com>
10885
10886 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
10887 * tui/tui-layout.h (tui_next_layout): Declare.
10888 * tui/tui-layout.c (tui_next_layout): New function.
10889
3fe12b6d
TT
108902020-02-22 Tom Tromey <tom@tromey.com>
10891
10892 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
10893 correct coordinates.
10894
59b8b5d2
TT
108952020-02-22 Tom Tromey <tom@tromey.com>
10896
10897 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
10898 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
10899 DATA_WIN case.
10900
2a3d458b
TT
109012020-02-22 Tom Tromey <tom@tromey.com>
10902
10903 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
10904 TUI_DISASM_WIN, not tui_win_list.
10905
3f0cbb04
TT
109062020-02-22 Tom Tromey <tom@tromey.com>
10907
10908 * valprint.c (generic_val_print_enum_1)
10909 (val_print_type_code_flags): Style member names.
10910 * rust-lang.c (val_print_struct, rust_print_enum)
10911 (rust_print_struct_def, rust_internal_print_type): Style member
10912 names.
10913 * p-valprint.c (pascal_object_print_value_fields): Style member
10914 names. Only call fprintf_symbol_filtered for static members.
10915 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
10916 * f-valprint.c (f_val_print): Style member names.
10917 * f-typeprint.c (f_type_print_base): Style member names.
10918 * cp-valprint.c (cp_print_value_fields): Style member names. Only
10919 call fprintf_symbol_filtered for static members.
10920 (cp_print_class_member): Style member names.
10921 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
10922 member names.
10923 * ada-valprint.c (ada_print_scalar): Style enum names.
10924 (ada_val_print_enum): Likewise.
10925 * ada-typeprint.c (print_enum_type): Style enum names.
10926
d4d947ae
TT
109272020-02-21 Tom Tromey <tom@tromey.com>
10928
10929 * psympriv.h (struct partial_symtab): Update comment.
10930
e94e944b
TT
109312020-02-21 Tom Tromey <tromey@adacore.com>
10932
10933 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
10934 type is CORE_ADDR.
10935
1eb73179
TV
109362020-02-21 Tom de Vries <tdevries@suse.de>
10937
10938 PR gdb/25534
10939 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
10940 if dependencies[i]->user != NULL.
10941
4f180d53
AT
109422020-02-21 Ali Tamur <tamur@google.com>
10943
10944 * dwarf2/read.c (dwarf2_name): Add null check.
10945
22b6cd70
TT
109462020-02-20 Tom Tromey <tom@tromey.com>
10947
10948 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
10949 ">=", in binary search.
10950 (dwarf2_find_containing_comp_unit): New overload.
10951 (run_test): New self-test.
10952 (_initialize_dwarf2_read): Register new test.
10953
bd0cf5a6
NC
109542020-02-20 Nelson Chu <nelson.chu@sifive.com>
10955
10956 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
10957 * riscv-tdep.h: Likewise.
10958 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
10959 rv32-only CSR.
10960 * features/riscv/64bit-csr.xml: Regenerated.
10961
3f702acd
SDJ
109622020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
10963 Tom Tromey <tom@tromey.com>
10964
10965 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
10966 of 'fputc_unfiltered'.
10967 (putchar_unfiltered): Call 'fputc_unfiltered'.
10968 (fputc_unfiltered): Call 'fputs_unfiltered'.
10969
d13c7322
AB
109702020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
10971
10972 * config.in: Regenerate.
10973 * configure: Regenerate.
10974 * configure.ac: Add --with-python-libdir option.
10975 * main.c: Use WITH_PYTHON_LIBDIR.
10976
869d8950
TT
109772020-02-19 Tom Tromey <tom@tromey.com>
10978
10979 * symtab.c (general_symbol_info::compute_and_set_names): Use
10980 obstack_strndup. Simplify call to symbol_set_demangled_name.
10981
298e9637
SM
109822020-02-19 Simon Marchi <simon.marchi@efficios.com>
10983
10984 * dwarf2/read.c (allocate_signatured_type_table,
10985 allocate_dwo_unit_table, allocate_type_unit_groups_table,
10986 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
10987 Remove objfile parameter, update all callers.
10988
08410482
DE
109892020-02-19 Doug Evans <dje@google.com>
10990
10991 PR rust/25535
10992 * rust-lang.c (rust_print_enum): Apply embedded_offset to
10993 rust_enum_variant calculation.
10994
dfdeeca1
TT
109952020-02-19 Tom Tromey <tromey@adacore.com>
10996
10997 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
10998
2ef5453b
TT
109992020-02-19 Tom Tromey <tromey@adacore.com>
11000
11001 * ada-lang.c (cache_symbol): Use obstack_strdup.
11002
9f1528a1
AB
110032020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11004
11005 * configure: Regenerate.
11006
d3c22fa8
TT
110072020-02-19 Tom Tromey <tromey@adacore.com>
11008
11009 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
11010 NULL check.
11011
bf84f706
MR
110122020-02-19 Maciej W. Rozycki <macro@wdc.com>
11013
11014 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
11015
d1c9b20f
AB
110162020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
11017
11018 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
11019 if GDBSERVER is not defined.
11020 (riscv_tdesc_cache): Likewise, also store const target_desc.
11021 (STATIC_IN_GDB): Define.
11022 (riscv_create_target_description): Update declaration with
11023 STATIC_IN_GDB.
11024 (riscv_lookup_target_description): New function, only define if
11025 GDBSERVER is not defined.
11026 * arch/riscv.h (riscv_create_target_description): Declare only
11027 when GDBSERVER is defined.
11028 (riscv_lookup_target_description): New declaration when GDBSERVER
11029 is not defined.
11030 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
11031 (riscv_linux_read_features): ...this, and return
11032 riscv_gdbarch_features instead of target_desc.
11033 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
11034 (riscv_linux_read_description): Rename to...
11035 (riscv_linux_read_features): ...this.
11036 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11037 Update to use riscv_gdbarch_features and
11038 riscv_lookup_target_description.
11039 * riscv-tdep.c (riscv_find_default_target_description): Use
11040 riscv_lookup_target_description instead of
11041 riscv_create_target_description.
11042
373d7ac0
SM
110432020-02-18 Simon Marchi <simon.marchi@efficios.com>
11044
11045 * valprint.c (generic_val_print_enum_1): When printing a flag
11046 enum with value 0 and there is no enumerator with value 0, print
11047 just "0" instead of "(unknown: 0x0)".
11048
b29a2df0
SM
110492020-02-18 Simon Marchi <simon.marchi@efficios.com>
11050
11051 * valprint.c (generic_val_print_enum_1): Print unknown part of
11052 flag enum in hex.
11053
6740f0cc
SM
110542020-02-18 Simon Marchi <simon.marchi@efficios.com>
11055
11056 * dwarf2/read.c (update_enumeration_type_from_children): Allow
11057 flag enums to contain duplicate enumerators.
11058 * valprint.c (generic_val_print_enum_1): Update comment.
11059
edd45eb0
SM
110602020-02-18 Simon Marchi <simon.marchi@efficios.com>
11061
11062 * dwarf2/read.c: Include "count-one-bits.h".
11063 (update_enumeration_type_from_children): If an enumerator has
11064 multiple bits set, don't treat the enumeration as a "flag enum".
11065 * valprint.c (generic_val_print_enum_1): Assert that enumerators
11066 of flag enums have 0 or 1 bit set.
11067
6d0cf446
BE
110682020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
11069
11070 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
11071 conversion.
11072 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11073 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11074 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11075 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11076 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11077
7001c1b7
SM
110782020-02-18 Simon Marchi <simon.marchi@efficios.com>
11079
11080 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
11081
fdb61c6c
SM
110822020-02-14 Simon Marchi <simon.marchi@efficios.com>
11083
11084 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
11085 displaced_step_closure_up.
11086 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11087 (struct displaced_step_closure_up):
11088 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11089 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11090 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
11091 Likewise.
11092 * gdbarch.sh (displaced_step_copy_insn): Likewise.
11093 * gdbarch.c, gdbarch.h: Re-generate.
11094 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
11095 displaced_step_closure_up.
11096 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11097 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11098 * infrun.h (displaced_step_closure_up): New type alias.
11099 (struct displaced_step_inferior_state) <step_closure>: Change
11100 type to displaced_step_closure_up.
11101 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
11102 displaced_step_closure_up.
11103 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11104
a4a38eb4
TT
111052020-02-14 Tom Tromey <tom@tromey.com>
11106
11107 * minidebug.c (gnu_debug_key): New global.
11108 (find_separate_debug_file_in_section): Use it.
11109
e8217e61
SM
111102020-02-14 Simon Marchi <simon.marchi@efficios.com>
11111
11112 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
11113 std::unique_ptr.
11114 * gdbarch.c: Re-generate.
11115 * gdbarch.h: Re-generate.
11116 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
11117 change.
11118 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
11119 type to std::unique_ptr.
11120 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
11121 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
11122 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
11123 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
11124 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
11125 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
11126 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
11127 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
11128 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
11129
d8d83535
SM
111302020-02-14 Simon Marchi <simon.marchi@efficios.com>
11131
11132 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
11133 std::unique_ptr.
11134 (displaced_step_clear): Rename to...
11135 (displaced_step_reset): ... this. Just call displaced->reset ().
11136 (displaced_step_clear_cleanup): Rename to...
11137 (displaced_step_reset_cleanup): ... this.
11138 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
11139 (displaced_step_fixup): Likewise.
11140 (resume_1): Likewise.
11141 (handle_inferior_event): Restore child's memory before calling
11142 displaced_step_fixup on the parent.
11143 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
11144 to std::unique_ptr.
11145 <step_closure>: Change type to std::unique_ptr.
11146
5f661e03
SM
111472020-02-14 Simon Marchi <simon.marchi@efficios.com>
11148
11149 * arm-tdep.c: Include count-one-bits.h.
11150 (cleanup_block_store_pc): Use count_one_bits.
11151 (cleanup_block_load_pc): Use count_one_bits.
11152 (arm_copy_block_xfer): Use count_one_bits.
11153 (thumb2_copy_block_xfer): Use count_one_bits.
11154 (thumb_copy_pop_pc_16bit): Use count_one_bits.
11155 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
11156 (thumb_get_next_pcs_raw): Use count_one_bits.
11157 (arm_get_next_pcs_raw): Use count_one_bits_l.
11158 * arch/arm.c (bitcount): Remove.
11159 * arch/arm.h (bitcount): Remove.
11160
8084e579
TT
111612020-02-14 Tom Tromey <tromey@adacore.com>
11162
11163 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
11164 Update.
11165 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
11166 * dwarf2/loc.c (call_site_find_chain_1): Return
11167 unique_xmalloc_ptr.
11168 (call_site_find_chain): Likewise.
11169
258bf0ee
RB
111702020-02-14 Richard Biener <rguenther@suse.de>
11171
11172 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
11173 on expression with division operators.
11174
f98a8458
AKS
111752020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11176
11177 * MAINTAINERS (Write After Approval): Adding myself.
11178
d1437c0e
TT
111792020-02-12 Tom Tromey <tom@tromey.com>
11180
11181 * event-loop.c (event_data, gdb_event, event_handler_func):
11182 Remove.
11183
3d4560f7
TT
111842020-02-12 Tom Tromey <tom@tromey.com>
11185
11186 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
11187 (dwarf2_frame_objfile_data): Add comment.
11188 (find_comp_unit, set_comp_unit): New functions.
11189 (dwarf2_frame_find_fde): Use find_comp_unit.
11190 (dwarf2_build_frame_info): Use set_comp_unit.
11191
21982304
TT
111922020-02-12 Tom Tromey <tom@tromey.com>
11193
11194 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
11195 (comp_unit): Don't initialize objfile.
11196 (execute_cfa_program): Add text_offset parameter.
11197 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
11198 (dwarf2_frame_cache): Update.
11199 (dwarf2_build_frame_info): Don't set "objfile" member.
11200
4debb237
TT
112012020-02-12 Tom Tromey <tom@tromey.com>
11202
11203 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
11204 (decode_frame_entry): Likewise.
11205 (dwarf2_build_frame_info): Update.
11206
0d404d44
TT
112072020-02-12 Tom Tromey <tom@tromey.com>
11208
11209 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
11210 (decode_frame_entry_1): Use the comp_unit obstack.
11211
a7a3ae5c
TT
112122020-02-12 Tom Tromey <tom@tromey.com>
11213
11214 * dwarf2/frame.c (struct comp_unit): Add initializers and
11215 constructor.
11216 (dwarf2_frame_objfile_data): Store a comp_unit.
11217 (dwarf2_frame_find_fde): Update.
11218 (dwarf2_build_frame_info): Use "new".
11219
a9d65418
TT
112202020-02-12 Tom Tromey <tom@tromey.com>
11221
11222 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
11223 (dwarf2_fde_table): Typedef for std::vector.
11224 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
11225 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
11226 (decode_frame_entry): Update.
11227 (dwarf2_build_frame_info): Use "new".
11228
7559c217
CB
112292020-02-12 Christian Biesinger <cbiesinger@google.com>
11230
11231 * arm-tdep.c (arm_gdbarch_init): Update.
11232 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
11233 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
11234 have_neon, is_m>: Change to bool.
11235
aeefc73c
CB
112362020-02-12 Christian Biesinger <cbiesinger@google.com>
11237
11238 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
11239
d27b8e5f
TT
112402020-02-12 Tom Tromey <tom@tromey.com>
11241
11242 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
11243
cd5900f3
HD
112442020-02-12 Hannes Domani <ssbssa@yahoo.de>
11245
11246 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
11247 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
11248
f056b22b
TT
112492020-02-11 Tom Tromey <tom@tromey.com>
11250
11251 * psymtab.h: Update comment.
11252
f92ff6b5
TT
112532020-02-11 Tom Tromey <tom@tromey.com>
11254
11255 * gdb_obstack.h (struct auto_obstack): Use
11256 DISABLE_COPY_AND_ASSIGN.
11257
3fd6912b
TT
112582020-02-11 Tom Tromey <tom@tromey.com>
11259
11260 * dwarf2/frame.h (struct objfile): Don't forward declare.
11261
69ed9b74
CB
112622020-02-11 Christian Biesinger <cbiesinger@google.com>
11263
11264 * cris-tdep.c (cris_supply_gregset): Change signature to match
11265 what struct regset expects.
11266 (cris_regset): New struct.
11267 (fetch_core_registers): Remove.
11268 (cris_iterate_over_regset_sections): New function.
11269 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
11270 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
11271
bda874f6
CB
112722020-02-11 Christian Biesinger <cbiesinger@google.com>
11273
11274 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
11275 registers.
11276
754e1564
CB
112772020-02-11 Christian Biesinger <cbiesinger@google.com>
11278
11279 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
11280
8ddd8e0e
SM
112812020-02-11 Simon Marchi <simon.marchi@efficios.com>
11282
11283 * configure: Re-generate.
11284
898e7f60
SM
112852020-02-11 Simon Marchi <simon.marchi@efficios.com>
11286
11287 * configure: Re-generate.
11288
58df732b
SM
112892020-02-11 Simon Marchi <simon.marchi@efficios.com>
11290
11291 * acinclude: Update warning.m4 path.
11292 * warning.m4: Move to gdbsupport.
11293
da5bd37e
TT
112942020-02-11 Tom Tromey <tromey@adacore.com>
11295
11296 * remote.c (remote_console_output): Update.
11297 * printcmd.c (printf_command): Update.
11298 * event-loop.c (gdb_wait_for_event): Update.
11299 * linux-nat.c (sigchld_handler): Update.
11300 * remote-sim.c (gdb_os_write_stdout): Update.
11301 (gdb_os_flush_stdout): Update.
11302 (gdb_os_flush_stderr): Update.
11303 (gdb_os_write_stderr): Update.
11304 * exceptions.c (print_exception): Update.
11305 * remote-fileio.c (remote_fileio_func_read): Update.
11306 (remote_fileio_func_write): Update.
11307 * tui/tui.c (tui_enable): Update.
11308 * tui/tui-interp.c (tui_interp::init): Update.
11309 * utils.c (init_page_info): Update.
11310 (putchar_unfiltered, fputc_unfiltered): Update.
11311 (gdb_flush): Update.
11312 (emit_style_escape): Update.
11313 (flush_wrap_buffer, fputs_maybe_filtered): Update.
11314 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
11315 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
11316 (stderr_file::write): Update.
11317 (stderr_file::puts): Update.
11318 * ui-file.h (ui_file_isatty, ui_file_write)
11319 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
11320 (ui_file_puts): Don't declare.
11321
85f0dd3c
TV
113222020-02-10 Tom de Vries <tdevries@suse.de>
11323
11324 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
11325 sentinel to char *.
11326
2e927613
TV
113272020-02-09 Tom de Vries <tdevries@suse.de>
11328
11329 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
11330 filename if it matches "<artificial>".
11331
6bafc845
HD
113322020-02-09 Hannes Domani <ssbssa@yahoo.de>
11333
11334 * windows-tdep.c (struct enum_value_name): New struct.
11335 (create_enum): New function.
11336 (windows_get_siginfo_type): Create and use enum types.
11337
7928d571
HD
113382020-02-09 Hannes Domani <ssbssa@yahoo.de>
11339
11340 * NEWS: Mention $_siginfo support for Windows.
11341 * windows-nat.c (handle_exception): Set siginfo_er.
11342 (windows_nat_target::mourn_inferior): Reset siginfo_er.
11343 (windows_xfer_siginfo): New function.
11344 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
11345 * windows-tdep.c (struct windows_gdbarch_data): New struct.
11346 (init_windows_gdbarch_data): New function.
11347 (get_windows_gdbarch_data): New function.
11348 (windows_get_siginfo_type): New function.
11349 (windows_init_abi): Register windows_get_siginfo_type.
11350 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
11351
6751ebae
TT
113522020-02-08 Tom Tromey <tom@tromey.com>
11353
11354 * dwarf2/read.c (class cutu_reader) <cutu_reader,
11355 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
11356 <keep>: Declare method.
11357 <m_keep>: Remove member.
11358 <~cutu_reader>: Remove.
11359 (cutu_reader::init_tu_and_read_dwo_dies): Update.
11360 (cutu_reader::cutu_reader): Update.
11361 (cutu_reader::keep): Rename from ~cutu_reader.
11362 (process_psymtab_comp_unit, build_type_psymtabs_1)
11363 (process_skeletonless_type_unit, load_partial_comp_unit)
11364 (load_full_comp_unit, dwarf2_read_addr_index)
11365 (read_signatured_type): Update.
11366
135f5437
TT
113672020-02-08 Tom Tromey <tom@tromey.com>
11368
11369 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
11370 "want_partial_unit" parameter.
11371 (process_psymtab_comp_unit): Change want_partial_unit to bool.
11372 Inline check for DW_TAG_partial_unit.
11373 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
11374
9f66ff1c
TT
113752020-02-08 Tom Tromey <tom@tromey.com>
11376
11377 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
11378 read.c.
11379 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
11380 read.c.
11381
c8a7a66f
TT
113822020-02-08 Tom Tromey <tom@tromey.com>
11383
11384 * dwarf2/read.c (read_address): Move to comp-unit.c.
11385 (dwarf2_rnglists_process, dwarf2_ranges_process)
11386 (read_attribute_value, dwarf_decode_lines_1)
11387 (var_decode_location, decode_locdesc): Update.
11388 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
11389 read.c. Remove "cu" parameter.
11390 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
11391 method.
11392
8266302d
TT
113932020-02-08 Tom Tromey <tom@tromey.com>
11394
11395 * dwarf2/read.c (read_attribute_value, read_indirect_string)
11396 (read_indirect_line_string): Update.
11397 * dwarf2/comp-unit.c (read_offset): Remove.
11398 (read_comp_unit_head): Update.
11399 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
11400 method.
11401 (read_offset): Don't declare.
11402
4057dfde
TT
114032020-02-08 Tom Tromey <tom@tromey.com>
11404
11405 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
11406 * dwarf2/read.c (struct comp_unit_head): Move to
11407 dwarf2/comp-unit.h.
11408 (enum class rcuh_kind): Move to comp-unit.h.
11409 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
11410 (read_comp_unit_head, error_check_comp_unit_head)
11411 (read_and_check_comp_unit_head): Move to comp-unit.c.
11412 (read_offset, dwarf_unit_type_name): Likewise.
11413 (create_debug_type_hash_table, read_cutu_die_from_dwo)
11414 (cutu_reader::cutu_reader, read_call_site_scope)
11415 (find_partial_die, follow_die_offset): Update.
11416 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
11417
24aa364d
TT
114182020-02-08 Tom Tromey <tom@tromey.com>
11419
11420 * dwarf2/read.c (read_offset_1): Move to leb.c.
11421 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
11422 (dwarf_decode_macro_bytes): Update.
11423 * dwarf2/leb.c (read_offset): Rename; move from read.c.
11424 * dwarf2/leb.h (read_offset): Declare.
11425
2c7d5afc
TT
114262020-02-08 Tom Tromey <tom@tromey.com>
11427
11428 * dwarf2/read.c (dwarf2_section_size): Remove.
11429 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
11430 Update.
11431 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
11432
4075cb26
TT
114332020-02-08 Tom Tromey <tom@tromey.com>
11434
11435 * dwarf2/read.c (read_initial_length): Move to leb.c.
11436 * dwarf2/leb.h (read_initial_length): Declare.
11437 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
11438 handle_nonstd parameter.
11439 * dwarf2/frame.c (read_initial_length): Remove.
11440 (decode_frame_entry_1): Update.
11441
09ba997f
TT
114422020-02-08 Tom Tromey <tom@tromey.com>
11443
11444 * dwarf2/loc.c (dwarf2_find_location_expression)
11445 (dwarf_evaluate_loc_desc::get_tls_address)
11446 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
11447 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
11448 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
11449 (dwarf2_compile_property_to_c)
11450 (dwarf2_loc_desc_get_symbol_read_needs)
11451 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
11452 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
11453 (loclist_describe_location, loclist_tracepoint_var_ref)
11454 (loclist_generate_c_location): Update.
11455 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
11456 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
11457 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
11458 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
11459 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
11460 (dwarf2_per_cu_data::addr_size)
11461 (dwarf2_per_cu_data::ref_addr_size)
11462 (dwarf2_per_cu_data::text_offset)
11463 (dwarf2_per_cu_data::addr_type): Now methods.
11464 (per_cu_header_read_in): Make per_cu "const".
11465 (dwarf2_version): Remove.
11466 (dwarf2_per_cu_data::int_type): Now a method.
11467 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
11468 (set_die_type, read_array_type, read_subrange_index_type)
11469 (read_tag_string_type, read_subrange_type): Update.
11470 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
11471 offset_size, ref_addr_size, text_offset, addr_type, version,
11472 objfile, int_type, addr_sized_int_type>: Declare methods.
11473
96c738c0
TT
114742020-02-08 Tom Tromey <tom@tromey.com>
11475
11476 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
11477 Move earlier.
11478
8fdd972c
TT
114792020-02-08 Tom Tromey <tom@tromey.com>
11480
11481 * dwarf2/read.h (dwarf_line_debug): Declare.
11482 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
11483 * dwarf2/read.c: Move line_header code to new files.
11484 (dwarf_line_debug): No longer static.
11485 * dwarf2/line-header.c: New file.
11486 * dwarf2/line-header.h: New file.
11487
03075812
TT
114882020-02-08 Tom Tromey <tom@tromey.com>
11489
11490 * dwarf2/read.c (struct line_header) <file_full_name,
11491 file_file_name>: Return unique_xmalloc_ptr.
11492 (line_header::file_file_name): Update.
11493 (line_header::file_full_name): Update.
11494 (dw2_get_file_names_reader): Update.
11495 (macro_start_file): Update.
11496
bb822404
TT
114972020-02-08 Tom Tromey <tom@tromey.com>
11498
11499 * dwarf2/read.c (struct line_header) <file_full_name,
11500 file_file_name>: Declare methods.
11501 (dw2_get_file_names_reader): Update.
11502 (file_file_name): Now a method.
11503 (file_full_name): Likewise.
11504 (macro_start_file): Update.
11505
009b64fc
TT
115062020-02-08 Tom Tromey <tom@tromey.com>
11507
11508 * dwarf2/read.c (dwarf_always_disassemble)
11509 (show_dwarf_always_disassemble): Move to loc.c.
11510 (_initialize_dwarf2_read): Move "always-disassemble" registration
11511 to loc.c.
11512 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
11513 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
11514 static.
11515 (show_dwarf_always_disassemble): Move from read.c.
11516 (_initialize_dwarf2loc): Move always-disassemble from read.c.
11517
5895093f
TT
115182020-02-08 Tom Tromey <tom@tromey.com>
11519
11520 * dwarf2/read.c (~dwarf2_per_objfile): Update.
11521 (create_quick_file_names_table): Return htab_up.
11522 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
11523 Update.
11524 * dwarf2/read.h (struct dwarf2_per_objfile)
11525 <quick_file_names_table>: Now htab_up.
11526
b3b32279
TT
115272020-02-08 Tom Tromey <tom@tromey.com>
11528
11529 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
11530
1d33d811
TT
115312020-02-08 Tom Tromey <tom@tromey.com>
11532
11533 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
11534 Rewrite.
11535 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
11536 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
11537 (abbrev_table::abbrev_table): No longer inline.
11538 (ABBREV_HASH_SIZE): Remove.
11539 (abbrev_table::m_abbrevs): Now an htab_up.
11540
86de1d91
TT
115412020-02-08 Tom Tromey <tom@tromey.com>
11542
11543 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
11544 (cutu_reader): Update.
11545 (build_type_psymtabs_1): Update.
11546 * dwarf2/abbrev.c (abbrev_table::read): Rename.
11547 (abbrev_table::alloc_abbrev): Update.
11548 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
11549 (abbrev_table::read): New static method, renamed from
11550 abbrev_table_read_table.
11551 (abbrev_table::alloc_abbrev)
11552 (abbrev_table::add_abbrev): Now private.
11553 (abbrev_table::abbrev_table): Now private.
11554 (abbrev_table::m_abbrev_obstack): Now private. Rename.
11555
0335378b
TT
115562020-02-08 Tom Tromey <tom@tromey.com>
11557
11558 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
11559 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
11560 htab_up.
11561
48b490f2
TT
115622020-02-08 Tom Tromey <tom@tromey.com>
11563
11564 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
11565 htab_up.
11566 (lookup_dwo_unit_in_dwp): Update.
11567 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
11568 on obstack.
11569
bc68fb19
TT
115702020-02-08 Tom Tromey <tom@tromey.com>
11571
11572 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
11573 obstack.
11574
d15acc42
TT
115752020-02-08 Tom Tromey <tom@tromey.com>
11576
11577 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
11578 line_header_hash.
11579 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
11580 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
11581 Change type to htab_up.
11582
eaa5fa8b
TT
115832020-02-08 Tom Tromey <tom@tromey.com>
11584
11585 * dwarf2/read.c (allocate_type_unit_groups_table): Return
11586 htab_up. Don't allocate on obstack.
11587 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
11588 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
11589 Change type to htab_up.
11590
b0b6a987
TT
115912020-02-08 Tom Tromey <tom@tromey.com>
11592
11593 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
11594 Change type to htab_up.
11595 * dwarf2/read.c (create_signatured_type_table_from_index)
11596 (create_signatured_type_table_from_debug_names)
11597 (create_all_type_units, add_type_unit)
11598 (lookup_dwo_signatured_type, lookup_signatured_type)
11599 (process_skeletonless_type_unit): Update.
11600 (create_debug_type_hash_table, create_debug_types_hash_table):
11601 Change type of types_htab.
11602 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
11603 htab_up. Don't allocate on obstack.
11604 (create_cus_hash_table): Change type of cus_htab parameter.
11605 (struct dwo_file) <cus, tus>: Now htab_up.
11606 (lookup_dwo_signatured_type, lookup_dwo_cutu)
11607 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
11608 (queue_and_load_all_dwo_tus): Update.
11609 * dwarf2/index-write.c (write_gdbindex): Update.
11610 (write_debug_names): Update.
11611
39856def
TT
116122020-02-08 Tom Tromey <tom@tromey.com>
11613
11614 * dwarf2/read.h (struct dwarf2_queue_item): Move from
11615 dwarf2/read.c. Remove "next" member. Add constructor ntad
11616 destructor.
11617 (struct dwarf2_per_objfile) <queue>: New member.
11618 * dwarf2/read.c (struct dwarf2_queue_item): Move to
11619 dwarf2/read.h.
11620 (dwarf2_queue, dwarf2_queue_tail): Remove.
11621 (class dwarf2_queue_guard): Add parameter to constructor. Use
11622 DISABLE_COPY_AND_ASSIGN.
11623 <m_per_objfile>: New member.
11624 <~dwarf2_queue_guard>: Rewrite.
11625 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
11626 Update.
11627 (~dwarf2_queue_item): New.
11628
3e225074
TT
116292020-02-08 Tom Tromey <tom@tromey.com>
11630
11631 * dwarf2/read.c (struct die_info) <has_children>: New member.
11632 (dw2_get_file_names_reader): Remove has_children.
11633 (dw2_get_file_names): Update.
11634 (read_cutu_die_from_dwo): Remove has_children.
11635 (cutu_reader::init_tu_and_read_dwo_dies)
11636 (cutu_reader::cutu_reader): Update.
11637 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
11638 Remove has_children.
11639 (build_type_psymtabs_1, process_skeletonless_type_unit)
11640 (load_partial_comp_unit, load_full_comp_unit): Update.
11641 (create_dwo_cu_reader): Remove has_children.
11642 (create_cus_hash_table, read_die_and_children): Update.
11643 (read_full_die_1,read_full_die): Remove has_children.
11644 (read_signatured_type): Update.
11645 (class cutu_reader) <has_children>: Remove.
11646
82ca8957
TT
116472020-02-08 Tom Tromey <tom@tromey.com>
11648
11649 * dwarf2/expr.c: Rename from dwarf2expr.c.
11650 * dwarf2/expr.h: Rename from dwarf2expr.h.
11651 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
11652 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
11653 * dwarf2/frame.c: Rename from dwarf2-frame.c.
11654 * dwarf2/frame.h: Rename from dwarf2-frame.h.
11655 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
11656 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
11657 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
11658 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
11659 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
11660 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
11661 * dwarf2/loc.c: Rename from dwarf2loc.c.
11662 * dwarf2/loc.h: Rename from dwarf2loc.h.
11663 * dwarf2/read.c: Rename from dwarf2read.c.
11664 * dwarf2/read.h: Rename from dwarf2read.h.
11665 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
11666 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
11667 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
11668 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
11669 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
11670 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
11671 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
11672 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
11673 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
11674 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
11675 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
11676 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
11677 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
11678 Update.
11679 * Makefile.in (COMMON_SFILES): Update.
11680 (HFILES_NO_SRCDIR): Update.
11681
9e35d499
TT
116822020-02-08 Tom Tromey <tom@tromey.com>
11683
11684 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
11685 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
11686
1eba2311
TT
116872020-02-08 Tom Tromey <tom@tromey.com>
11688
11689 * dwarf2read.h (struct die_info): Don't declare.
11690
e41c2da2
TT
116912020-02-08 Tom Tromey <tom@tromey.com>
11692
11693 * dwarf2read.h (die_info_ptr): Remove typedef.
11694
4fc6c0d5
TT
116952020-02-08 Tom Tromey <tom@tromey.com>
11696
11697 * dwarf2read.c (read_call_site_scope)
11698 (handle_data_member_location, dwarf2_add_member_fn)
11699 (mark_common_block_symbol_computed, read_common_block)
11700 (attr_to_dynamic_prop, partial_die_info::read)
11701 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
11702 (dwarf2_symbol_mark_computed, set_die_type): Update.
11703 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
11704 method.
11705 (attr_form_is_block): Don't declare.
11706 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
11707
cd6c91b4
TT
117082020-02-08 Tom Tromey <tom@tromey.com>
11709
11710 * dwarf2read.c (dwarf2_find_base_address, )
11711 (read_call_site_scope, rust_containing_type)
11712 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
11713 (handle_data_member_location, dwarf2_add_member_fn)
11714 (get_alignment, read_structure_type, process_structure_scope)
11715 (mark_common_block_symbol_computed, read_common_block)
11716 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
11717 (partial_die_info::read, read_attribute_value, new_symbol)
11718 (lookup_die_type, dwarf2_get_ref_die_offset)
11719 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
11720 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
11721 (dwarf2_symbol_mark_computed): Update.
11722 * dwarf2/attribute.h (struct attribute) <value_as_address,
11723 form_is_section_offset, form_is_constant, form_is_ref>: Declare
11724 methods.
11725 (value_as_address, attr_form_is_section_offset)
11726 (attr_form_is_constant, attr_form_is_ref): Don't declare.
11727 * dwarf2/attribute.c (attribute::value_as_address)
11728 (attribute::form_is_section_offset, attribute::form_is_constant)
11729 (attribute::form_is_ref): Now methods.
11730
162dce55
TT
117312020-02-08 Tom Tromey <tom@tromey.com>
11732
11733 * dwarf2read.c (struct attribute, DW_STRING)
11734 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
11735 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
11736 (attr_form_is_block, attr_form_is_section_offset)
11737 (attr_form_is_constant, attr_form_is_ref): Move.
11738 * dwarf2/attribute.h: New file.
11739 * dwarf2/attribute.c: New file, from dwarf2read.c.
11740 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
11741
3054dd54
TT
117422020-02-08 Tom Tromey <tom@tromey.com>
11743
11744 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
11745 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
11746 Move.
11747 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
11748 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
11749 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
11750 abbrev.c.
11751 * dwarf2/abbrev.h: New file.
11752 * dwarf2/abbrev.c: New file, from dwarf2read.c.
11753 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
11754
96b79293
TT
117552020-02-08 Tom Tromey <tom@tromey.com>
11756
11757 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
11758 (dwarf2_section_size, dwarf2_get_section_info)
11759 (create_signatured_type_table_from_debug_names)
11760 (create_addrmap_from_aranges, read_debug_names_from_section)
11761 (get_gdb_index_contents_from_section, read_comp_unit_head)
11762 (error_check_comp_unit_head, read_abbrev_offset)
11763 (create_debug_type_hash_table, init_cu_die_reader)
11764 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
11765 (read_comp_units_from_section, create_cus_hash_table)
11766 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
11767 (create_dwp_v2_section, dwarf2_rnglists_process)
11768 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
11769 (abbrev_table_read_table, read_indirect_string_at_offset_from)
11770 (read_indirect_string_from_dwz, read_addr_index_1)
11771 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
11772 (dwarf_decode_macro_bytes, dwarf_decode_macros)
11773 (fill_in_loclist_baton): Update.
11774 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
11775 get_containing_section, get_bfd_owner, get_bfd_section,
11776 get_file_name, get_id, get_flags, empty, read>: Declare methods.
11777 (dwarf2_read_section, get_section_name, get_section_file_name)
11778 (get_containing_section, get_section_bfd_owner)
11779 (get_section_bfd_section, get_section_name, get_section_file_name)
11780 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
11781 declare.
11782 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
11783 (dwarf2_section_info::get_bfd_owner)
11784 (dwarf2_section_info::get_bfd_section)
11785 (dwarf2_section_info::get_name)
11786 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
11787 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
11788 (dwarf2_section_info::read): Now methods.
11789 * dwarf-index-write.c (class debug_names): Update.
11790
2c86cff9
TT
117912020-02-08 Tom Tromey <tom@tromey.com>
11792
11793 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
11794 Move to dwarf2/section.h.
11795 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
11796 (get_section_bfd_section, get_section_name)
11797 (get_section_file_name, get_section_id, get_section_flags)
11798 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
11799 dwarf2/section.c.
11800 * dwarf2/section.h: New file.
11801 * dwarf2/section.c: New file, from dwarf2read.c.
11802 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
11803
f4382c45
TT
118042020-02-08 Tom Tromey <tom@tromey.com>
11805
11806 * dwarf2read.h (read_unsigned_leb128): Don't declare.
11807 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
11808 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
11809 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
11810 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
11811 * dwarf2/leb.h: New file, from dwarf2read.c.
11812 * dwarf2/leb.c: New file, from dwarf2read.c.
11813 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
11814 Remove.
11815 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
11816 (COMMON_SFILES): Add dwarf2/leb.c.
11817
01840b7a
JB
118182020-02-08 Joel Brobecker <brobecker@adacore.com>
11819
11820 GDB 9.1 released.
11821
dfcb27e4
IB
118222020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11823
11824 PR gdb/25190:
aac66a4c
SM
11825 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
11826 * gdb/remote.c (remote_console_output): Update.
11827 * gdb/ui-file.c (fputs_unfiltered): Rename to...
11828 (ui_file_puts): ...this.
11829 * gdb/ui-file.h (ui_file_puts): Add declaration.
11830 * gdb/utils.c (emit_style_escape): Update.
11831 (flush_wrap_buffer): Update.
11832 (fputs_maybe_filtered): Update.
11833 (fputs_unfiltered): Add function.
dfcb27e4 11834
faa17681
IB
118352020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
11836
aac66a4c
SM
11837 * gdb/event-loop.c (gdb_wait_for_event): Update.
11838 * gdb/printcmd.c (printf_command): Update.
11839 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
11840 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
11841 (gdb_os_flush_stderr): Update.
11842 * gdb/remote.c (remote_console_output): Update.
11843 * gdb/ui-file.c (gdb_flush): Rename to...
11844 (ui_file_flush): ...this.
11845 (stderr_file::write): Update.
11846 (stderr_file::puts): Update.
11847 * gdb/ui-file.h (gdb_flush): Rename to...
11848 (ui_file_flush): ...this.
11849 * gdb/utils.c (gdb_flush): Add function.
11850 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 11851
5abbbe1d
TT
118522020-02-07 Tom Tromey <tromey@adacore.com>
11853
11854 PR breakpoints/24915:
11855 * source.c (find_and_open_source): Do not check basenames_may_differ.
11856
919adfe8
TT
118572020-02-07 Tom Tromey <tom@tromey.com>
11858
11859 * README: Update gdbserver documentation.
11860 * gdbserver: Move to top level.
11861 * configure.tgt (build_gdbserver): Remove.
11862 * configure.ac: Remove --enable-gdbserver.
11863 * configure: Rebuild.
11864 * Makefile.in (distclean): Don't mention gdbserver.
11865
1d5d29e7
SV
118662020-02-06 Shahab Vahedi <shahab@synopsys.com>
11867
11868 * source-cache.c (source_cache::ensure): Surround
11869 get_plain_source_lines with a try/catch.
11870 (source_cache::get_line_charpos): Get rid of try/catch
11871 and only check for the return value of "ensure".
11872 * tui/tui-source.c (tui_source_window::set_contents):
11873 Simplify "nlines" calculation.
11874
6eb1129c
SV
118752020-02-06 Shahab Vahedi <shahab@synopsys.com>
11876
11877 * MAINTAINERS (Write After Approval): Add myself.
11878
c6a42d11
CB
118792020-02-05 Christian Biesinger <cbiesinger@google.com>
11880
11881 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
11882 function call.
11883
c8ecdda6
CB
118842020-02-05 Christian Biesinger <cbiesinger@google.com>
11885
11886 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
11887
f6480e70
MR
118882020-02-05 Maciej W. Rozycki <macro@wdc.com>
11889
11890 * nat/riscv-linux-tdesc.h: New file.
11891 * nat/riscv-linux-tdesc.c: New file, taking code from...
11892 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
11893 ... here.
11894 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
11895 NATDEPFILES.
11896
dcc9fbc6
AB
118972020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
11898
11899 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
11900 we don't set the fake simulator ptid to the null_ptid.
11901
719546c4
SM
119022020-02-03 Simon Marchi <simon.marchi@efficios.com>
11903
11904 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
11905 * gdbthread.h (class thread_info) <resumed>: Likewise.
11906 * infrun.c (resume_1): Likewise.
11907 (proceed): Likewise.
11908 (infrun_thread_stop_requested): Likewise.
11909 (stop_all_threads): Likewise.
11910 (handle_inferior_event): Likewise.
11911 (restart_threads): Likewise.
11912 (finish_step_over): Likewise.
11913 (keep_going_stepped_thread): Likewise.
11914 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
11915 (linux_handle_extended_wait): Likewise.
11916 * record-btrace.c (get_thread_current_frame_id): Likewise.
11917 * record-full.c (record_full_wait_1): Likewise.
11918 * remote.c (remote_target::process_initial_stop_replies): Likewise.
11919 * target.c (target_resume): Likewise.
11920 * thread.c (set_running_thread): Likewise.
11921
e409c542
AKS
119222020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
11923
11924 * f-valprint.c (f77_print_array_1): Changed datatype of index
11925 variable to LONGEST from int to enable it to contain bound
11926 values correctly.
11927
ee98c0da
MR
119282020-02-03 Maciej W. Rozycki <macro@wdc.com>
11929
11930 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
11931 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
11932 offsets according to FLEN determined.
11933 (riscv_linux_nat_target::read_description): Determine FLEN
11934 dynamically.
11935 (riscv_linux_nat_target::fetch_registers): Size regset buffer
11936 according to FLEN determined.
11937 (riscv_linux_nat_target::store_registers): Likewise.
11938
aa66aac4
SV
119392020-02-01 Shahab Vahedi <shahab@synopsys.com>
11940
11941 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
11942 when reg->group is empty and reggroup is not.
11943
fd9faca8
TT
119442020-01-31 Tom Tromey <tromey@adacore.com>
11945
11946 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
11947 Call beneath target's mourn_inferior after unpushing.
11948
42330a68
AB
119492020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11950
11951 PR tui/9765
11952 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
11953 have enough lines to fill the screen, still return the lowest
11954 address we found.
11955
7a27a45b
AB
119562020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
11957
11958 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
11959 '-', '<', and '>' commands.
11960
c47f70e2
PA
119612020-01-29 Pedro Alves <palves@redhat.com>
11962 Sergio Durigan Junior <sergiodj@redhat.com>
11963
11964 * infcmd.c (construct_inferior_arguments): Assert that
11965 'argc' is greater than 0.
11966
5133a315
LM
119672020-01-29 Luis Machado <luis.machado@linaro.org>
11968
11969 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
11970 (BRK_INSN_MASK): Define to 0xd4200000.
11971 (aarch64_program_breakpoint_here_p): New function.
11972 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
11973 * arch-utils.c (default_program_breakpoint_here_p): Moved from
11974 breakpoint.c.
11975 * arch-utils.h (default_program_breakpoint_here_p): Moved from
11976 breakpoint.h
11977 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
11978 call gdbarch_program_breakpoint_here_p.
11979 (program_breakpoint_here): Moved to arch-utils.c, renamed to
11980 default_program_breakpoint_here_p, changed return type to bool and
11981 simplified.
11982 * breakpoint.h (program_breakpoint_here): Moved prototype to
11983 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
11984 return type to bool.
11985 * gdbarch.c: Regenerate.
11986 * gdbarch.h: Regenerate.
11987 * gdbarch.sh (program_breakpoint_here_p): New method.
11988 * infrun.c (handle_signal_stop): Call
11989 gdbarch_program_breakpoint_here_p.
11990
168f8c6b
TT
119912020-01-26 Tom Tromey <tom@tromey.com>
11992
11993 * ctfread.c (struct ctf_fp_info): Reindent.
11994 (_initialize_ctfread): Remove.
11995
128a391f
TT
119962020-01-26 Tom Tromey <tom@tromey.com>
11997
11998 * psymtab.c (partial_map_expand_apply)
11999 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
12000 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
12001 (psym_print_stats, psym_expand_symtabs_for_function)
12002 (psym_map_symbol_filenames, psym_map_matching_symbols)
12003 (psym_expand_symtabs_matching)
12004 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
12005 (maintenance_check_psymtabs): Use new methods.
12006 * psympriv.h (struct partial_symtab) <readin_p,
12007 get_compunit_symtab>: New methods.
12008 <readin, compunit_symtab>: Remove members.
12009 (struct standard_psymtab): New.
12010 (struct legacy_psymtab): Derive from standard_psymtab.
12011 * dwarf2read.h (struct dwarf2_psymtab): Derive from
12012 standard_psymtab.
12013 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
12014
0494dbec
TT
120152020-01-26 Tom Tromey <tom@tromey.com>
12016
12017 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
12018 read_dependencies. Add assert.
12019 * psymtab.c (partial_symtab::read_dependencies): New method.
12020 * psympriv.h (struct partial_symtab) <read_dependencies>: New
12021 method.
12022 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
12023 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
12024 read_dependencies.
12025 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
12026 Add assert.
12027
8566b89b
TT
120282020-01-26 Tom Tromey <tom@tromey.com>
12029
12030 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
12031 Call expand_psymtab.
12032 (xcoff_read_symtab): Call expand_psymtab.
12033 (xcoff_start_psymtab, xcoff_end_psymtab): Set
12034 legacy_expand_psymtab.
12035 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
12036 method.
12037 (struct legacy_psymtab) <expand_psymtab>: Implement.
12038 <legacy_expand_psymtab>: New member.
12039 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
12040 (parse_partial_symbols): Set legacy_expand_psymtab.
12041 (psymtab_to_symtab_1): Change argument order. Call
12042 expand_psymtab.
12043 (new_psymtab): Set legacy_expand_psymtab.
12044 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
12045 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
12046 expand_psymtab.
12047 (dwarf2_psymtab::expand_psymtab): Rename from
12048 psymtab_to_symtab_1. Call expand_psymtab.
12049 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
12050 (dbx_end_psymtab): Likewise.
12051 (dbx_psymtab_to_symtab_1): Change argument order. Call
12052 expand_psymtab.
12053 (dbx_read_symtab): Call expand_psymtab.
12054 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
12055 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
12056 (ctf_psymtab::read_symtab): Call expand_psymtab.
12057
077cbab2
TT
120582020-01-26 Tom Tromey <tom@tromey.com>
12059
12060 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
12061 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
12062 messages.
12063 * mdebugread.c (mdebug_read_symtab): Remove prints.
12064 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
12065 assert.
12066 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
12067
891813be
TT
120682020-01-26 Tom Tromey <tom@tromey.com>
12069
12070 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
12071 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
12072 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
12073 legacy_symtab.
12074 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
12075 * psymtab.c (psymtab_to_symtab): Call method.
12076 (dump_psymtab): Update.
12077 * psympriv.h (struct partial_symtab): Add virtual destructor.
12078 <read_symtab>: New method.
12079 (struct legacy_symtab): New.
12080 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
12081 (struct pst_map) <pst>: Now a legacy_psymtab.
12082 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
12083 (new_psymtab): Use legacy_psymtab.
12084 * dwarf2read.h (struct dwarf2_psymtab): New.
12085 (struct dwarf2_per_cu_data) <psymtab>: Use it.
12086 * dwarf2read.c (dwarf2_create_include_psymtab)
12087 (dwarf2_build_include_psymtabs, create_type_unit_group)
12088 (create_partial_symtab, process_psymtab_comp_unit_reader)
12089 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
12090 (set_partial_user): Use dwarf2_psymtab.
12091 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
12092 (psymtab_to_symtab_1, process_full_comp_unit)
12093 (process_full_type_unit, dwarf2_ranges_read)
12094 (dwarf2_get_pc_bounds, psymtab_include_file_name)
12095 (dwarf_decode_lines): Use dwarf2_psymtab.
12096 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
12097 (add_address_entry_worker, write_one_signatured_type)
12098 (recursively_count_psymbols, recursively_write_psymbols)
12099 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
12100 (write_debug_names): Likewise.
12101 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
12102 <pst>: Now a legacy_psymtab.
12103 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
12104 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
12105 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
12106 * ctfread.c (struct ctf_psymtab): New.
12107 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
12108 ctf_psymtab.
12109 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
12110 (create_partial_symtab): Return a ctf_psymtab.
12111 (scan_partial_symbols): Update.
12112
c3693a1d
TT
121132020-01-26 Tom Tromey <tom@tromey.com>
12114
12115 * xcoffread.c (xcoff_start_psymtab): Use new.
12116 * psymtab.c (partial_symtab::partial_symtab): New constructor,
12117 renamed from start_psymtab_common.
12118 * psympriv.h (struct partial_symtab): Add new constructor.
12119 (start_psymtab_common): Don't declare.
12120 * mdebugread.c (parse_partial_symbols): Use new.
12121 * dwarf2read.c (create_partial_symtab): Use new.
12122 * dbxread.c (start_psymtab): Use new.
12123 * ctfread.c (create_partial_symtab): Use new.
12124
32caafd0
TT
121252020-01-26 Tom Tromey <tom@tromey.com>
12126
12127 * xcoffread.c (xcoff_end_psymtab): Use new.
12128 * psymtab.c (start_psymtab_common): Use new.
12129 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
12130 Update.
12131 * psympriv.h (struct partial_symtab): Add parameters to
12132 constructor. Don't inline.
12133 (allocate_psymtab): Don't declare.
12134 * mdebugread.c (new_psymtab): Use new.
12135 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
12136 * dbxread.c (dbx_end_psymtab): Use new.
12137
abaa2f23
TT
121382020-01-26 Tom Tromey <tom@tromey.com>
12139
12140 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
12141 allocate_psymtab. Update documentation.
12142 * psymtab.c (psymtab_storage::install_psymtab): Rename from
12143 allocate_psymtab. Do not use new.
12144 (allocate_psymtab): Use new. Update.
12145
6d94535f
TT
121462020-01-26 Tom Tromey <tom@tromey.com>
12147
12148 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12149 * psymtab.c (psym_print_stats): Update.
12150 * psympriv.h (struct partial_symtab) <readin,
12151 psymtabs_addrmap_supported, anonymous>: Now bool.
12152 * mdebugread.c (psymtab_to_symtab_1): Update.
12153 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
12154 (build_type_psymtabs_reader, psymtab_to_symtab_1)
12155 (process_full_comp_unit, process_full_type_unit): Update.
12156 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12157 * ctfread.c (psymtab_to_symtab): Update.
12158
6f17252b
TT
121592020-01-26 Tom Tromey <tom@tromey.com>
12160
12161 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
12162 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
12163 * psymtab.c (psymtab_storage): Delete psymtabs.
12164 (psymtab_storage::allocate_psymtab): Use new.
12165 (psymtab_storage::discard_psymtab): Use delete.
12166 * psympriv.h (struct partial_symtab): Add constructor and
12167 initializers.
12168
f6f1cebc
TT
121692020-01-26 Tom Tromey <tom@tromey.com>
12170
12171 * machoread.c: Do not include psympriv.h.
12172
e47e48f6
PW
121732020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12174
12175 * NEWS: Mention the new option and the set/show commands.
12176
a2fedca9
PW
121772020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12178
12179 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
12180 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
12181 (validate_exec_file): New variables, enums, functions.
12182 (exec_file_locate_attach, print_section_info): Style the filenames.
12183 (_initialize_exec): Install show_exec_file_mismatch_command and
12184 set_exec_file_mismatch_command.
12185 * gdbcore.h (validate_exec_file): Declare.
12186 * infcmd.c (attach_command): Call validate_exec_file.
12187 * remote.c ( remote_target::remote_add_inferior): Likewise.
12188
7ffa82e1
AB
121892020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12190
12191 * frame.c (find_frame_sal): Move call to get_next_frame into more
12192 inner scope.
12193 * inline-frame.c (inilne_state) <inline_state>: Update argument
12194 types.
12195 (inilne_state) <skipped_symbol>: Rename to...
12196 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
12197 (skip_inline_frames): Build vector of skipped symbols and use this
12198 to reate the inline_state.
12199 (inline_skipped_symbol): Add a comment and some assertions, fetch
12200 skipped symbol from the list.
12201
3d92a3e3
AB
122022020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12203
12204 * buildsym.c (lte_is_less_than): Delete.
12205 (buildsym_compunit::end_symtab_with_blockvector): Create local
12206 lambda function to sort line table entries, and use
12207 std::stable_sort instead of std::sort.
12208 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
12209 markers when looking for a previous line.
12210
94a72be7
AB
122112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12212
12213 * dwarf2read.c (lnp_state_machine::record_line): Include
12214 end_sequence parameter in debug print out. Record the line if we
12215 are at an end_sequence marker even if it's not the start of a
12216 statement.
12217 * symmisc.c (maintenance_print_one_line_table): Print end of
12218 sequence markers with 'END' not '0'.
12219
53af73bf
PA
122202020-01-24 Pedro Alves <palves@redhat.com>
12221
12222 PR gdb/25410
12223 * thread.c (scoped_restore_current_thread::restore): Use
12224 switch_to_inferior_no_thread.
12225 * exec.c: Include "progspace-and-thread.h".
12226 (add_target_sections, remove_target_sections):
12227 scoped_restore_current_pspace_and_thread instead of
12228 scoped_restore_current_thread.
12229 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
12230 and aspace to the inferior before calling clone_program_space.
12231 Remove stale comment.
12232
3050c6f4
CB
122332020-01-24 Christian Biesinger <cbiesinger@google.com>
12234
12235 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
12236 (arm_netbsd_nat_target::fetch_registers): ...this.
12237 (arm_nbsd_nat_target::store_registers): Rename to...
12238 (arm_netbsd_nat_target::store_registers): ...this.
12239
73685c7e
CB
122402020-01-24 Christian Biesinger <cbiesinger@google.com>
12241
12242 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12243 register_t.
12244
89203d40
CB
122452020-01-24 Christian Biesinger <cbiesinger@google.com>
12246
12247 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
12248 Update comment.
12249 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
12250 Likewise.
12251 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
12252 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
12253 the correct replacement (iterate_over_regset_sections).
12254 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
12255 Update comment.
12256
1ba1ac88
AB
122572020-01-24 Graham Markall <graham.markall@embecosm.com>
12258
12259 PR gdb/23718
12260 * gdb/python/python.c (execute_gdb_command): Call
12261 async_enable_stdin in catch block.
12262
f3364a6d
AB
122632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12264
12265 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
12266 SWITCH_THRU_ALL_UIS.
12267
733d0a67
AB
122682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
12269
12270 PR tui/9765
12271 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
12272 comment, add extra parameter, and update to store previous symbol
12273 when appropriate.
12274 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
12275 add extra parameter.
12276 * tui/tui-disasm.c (tui_disassemble): Update header comment,
12277 remove unneeded parameter, add try/catch around gdb_print_insn,
12278 rewrite to add items to asm_lines vector.
12279 (tui_find_backward_disassembly_start_address): New function.
12280 (tui_find_disassembly_address): Updated throughout.
12281 (tui_disasm_window::set_contents): Update for changes to
12282 tui_disassemble.
12283 (tui_disasm_window::do_scroll_vertical): No need to adjust the
12284 number of lines to scroll.
12285
b3b3bada
SM
122862020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
12287
12288 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
12289 (SECT_OFF_DATA): Likewise.
12290 (SECT_OFF_RODATA): Likewise.
12291 (SECT_OFF_TEXT): Likewise.
12292 (SECT_OFF_BSS): Likewise.
12293 (struct objfile) <text_section_offset, data_section_offset>: New
12294 methods.
12295 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
12296 objfile::text_section_offset.
12297 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
12298 * coffread.c (coff_symtab_read): Likewise.
12299 (enter_linenos): Likewise.
12300 (process_coff_symbol): Likewise.
12301 * ctfread.c (get_objfile_text_range): Likewise.
12302 * dtrace-probe.c (dtrace_probe::get_relocated_address):
12303 Use objfile::data_section_offset.
12304 * dwarf2-frame.c (execute_cfa_program): Use
12305 objfile::text_section_offset.
12306 (dwarf2_frame_find_fde): Likewise.
12307 * dwarf2read.c (create_addrmap_from_index): Likewise.
12308 (create_addrmap_from_aranges): Likewise.
12309 (dw2_find_pc_sect_compunit_symtab): Likewise.
12310 (process_psymtab_comp_unit_reader): Likewise.
12311 (add_partial_symbol): Likewise.
12312 (add_partial_subprogram): Likewise.
12313 (process_full_comp_unit): Likewise.
12314 (read_file_scope): Likewise.
12315 (read_func_scope): Likewise.
12316 (read_lexical_block_scope): Likewise.
12317 (read_call_site_scope): Likewise.
12318 (dwarf2_rnglists_process): Likewise.
12319 (dwarf2_ranges_process): Likewise.
12320 (dwarf2_ranges_read): Likewise.
12321 (dwarf_decode_lines_1): Likewise.
12322 (new_symbol): Likewise.
12323 (dwarf2_fetch_die_loc_sect_off): Likewise.
12324 (dwarf2_per_cu_text_offset): Likewise.
12325 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
12326 * hppa-tdep.c (read_unwind_info): Likewise.
12327 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
12328 * psympriv.h (struct partial_symtab): Likewise.
12329 * psymtab.c (find_pc_sect_psymtab): Likewise.
12330 * solib-svr4.c (enable_break): Likewise.
12331 * stap-probe.c (relocate_address): Use
12332 objfile::data_section_offset.
12333 * xcoffread.c (enter_line_range): Use
12334 objfile::text_section_offset.
12335 (read_xcoff_symtab): Likewise.
12336
ab53f382
SM
123372020-01-23 Simon Marchi <simon.marchi@efficios.com>
12338
12339 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
12340 declaration to narrower scopes.
12341
e7eee665
SM
123422020-01-23 Simon Marchi <simon.marchi@efficios.com>
12343
12344 * darwin-nat.h (struct darwin_exception_msg, enum
12345 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
12346 Move up.
12347 (class darwin_nat_target) <wait_1, check_new_threads,
12348 decode_exception_message, decode_message, stop_inferior,
12349 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
12350 * darwin-nat.c (darwin_check_new_threads): Rename to...
12351 (darwin_nat_target::check_new_threads): ... this.
12352 (darwin_suspend_inferior_it): Remove.
12353 (darwin_decode_exception_message): Rename to...
12354 (darwin_nat_target::decode_exception_message): ... this.
12355 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
12356 (darwin_decode_message): Rename to...
12357 (darwin_nat_target::decode_message): ... this.
12358 (cancel_breakpoint): Rename to...
12359 (darwin_nat_target::cancel_breakpoint): ... this.
12360 (darwin_wait): Rename to...
12361 (darwin_nat_target::wait_1): ... this. Use range-based for loop
12362 instead of iterate_over_inferiors.
12363 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
12364 (darwin_stop_inferior): Rename to...
12365 (darwin_nat_target::stop_inferior): ... this.
12366 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
12367 (darwin_init_thread_list): Rename to...
12368 (darwin_nat_target::init_thread_list): ... this.
12369 (darwin_ptrace_him): Rename to...
12370 (darwin_nat_target::ptrace_him): ... this.
12371 (darwin_nat_target::create_inferior): Pass lambda function to
12372 fork_inferior.
12373 (darwin_nat_target::detach): Call stop_inferior instead of
12374 darwin_stop_inferior.
12375 * fork-inferior.h (fork_inferior): Change init_trace_fun
12376 parameter to gdb::function_view.
12377 * fork-inferior.c (fork_inferior): Likewise.
12378
c162ed3e
HD
123792020-01-23 Hannes Domani <ssbssa@yahoo.de>
12380
12381 * i386-cygwin-tdep.c (core_process_module_section): Update.
12382 * windows-nat.c (struct lm_info_windows): Add text_offset.
12383 (windows_xfer_shared_libraries): Update.
12384 * windows-tdep.c (windows_xfer_shared_library):
12385 Add text_offset_cached argument.
12386 * windows-tdep.h (windows_xfer_shared_library): Update.
12387
a1237872
SM
123882020-01-21 Simon Marchi <simon.marchi@efficios.com>
12389
12390 * gdbarch.sh: Add declaration for _initialize_gdbarch.
12391
b3ee6dd9
SM
123922020-01-21 Simon Marchi <simon.marchi@efficios.com>
12393
12394 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
12395 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
12396 replace with range-based for.
12397 (gdbsim_interrupt_inferior): Remove.
12398 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
12399 with a range-based for. Inline code from
12400 gdbsim_interrupt_inferior.
12401
f9fac3c8
SM
124022020-01-21 Simon Marchi <simon.marchi@efficios.com>
12403
12404 * infrun.c (proceed): Fix indentation.
12405
f6474de9
TT
124062020-01-21 Tom Tromey <tromey@adacore.com>
12407
12408 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
12409 * python/python.c (python_extension_ops): Update.
12410 (gdbpy_colorize): New function.
12411 * python/lib/gdb/__init__.py (colorize): New function.
12412 * extension.h (ext_lang_colorize): Declare.
12413 * extension.c (ext_lang_colorize): New function.
12414 * extension-priv.h (struct extension_language_ops) <colorize>: New
12415 member.
12416 * cli/cli-style.c (_initialize_cli_style): Update help text.
12417
f0c702d4
LM
124182020-01-21 Luis Machado <luis.machado@linaro.org>
12419
12420 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
12421 <cond>: Change type to bool.
12422 (aarch64_displaced_step_b_cond): Update cond to use bool type.
12423 (aarch64_displaced_step_cb): Likewise.
12424 (aarch64_displaced_step_tb): Likewise.
12425
1ab139e5
LM
124262020-01-21 Luis Machado <luis.machado@linaro.org>
12427
12428 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
12429 output.
12430
0c271889
LM
124312020-01-21 Luis Machado <luis.machado@linaro.org>
12432
12433 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
12434 <pc_adjust>: Adjust the documentation.
12435 (aarch64_displaced_step_fixup): Check if PC really moved before
12436 adjusting it.
12437
4d89c1c7
TT
124382020-01-19 Tom Tromey <tom@tromey.com>
12439
12440 * disasm.c (~gdb_disassembler): New destructor.
12441 (gdb_buffered_insn_length): Call disassemble_free_target.
12442 * disasm.h (class gdb_disassembler): Declare destructor. Use
12443 DISABLE_COPY_AND_ASSIGN.
12444
c0ab21c2
TT
124452020-01-19 Tom Tromey <tom@tromey.com>
12446
12447 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
12448 (die_reader_func_ftype): Remove.
12449 (cutu_reader): New class.
12450 (dw2_get_file_names_reader): Remove "data" parameter.
12451 (dw2_get_file_names): Use cutu_reader.
12452 (create_debug_type_hash_table): Update.
12453 (read_cutu_die_from_dwo): Update comment.
12454 (lookup_dwo_unit): Add dwo_name parameter.
12455 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
12456 die_reader_func_ftype and data parameters.
12457 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
12458 Remove die_reader_func_ftype and data parameters.
12459 (~cutu_reader): New; from init_cutu_and_read_dies.
12460 (cutu_reader::cutu_reader): Rename from
12461 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
12462 and data parameters.
12463 (init_cutu_and_read_dies_simple): Remove.
12464 (struct process_psymtab_comp_unit_data): Remove.
12465 (process_psymtab_comp_unit_reader): Remove data parameter; add
12466 want_partial_unit and pretend_language parameters.
12467 (process_psymtab_comp_unit): Use cutu_reader.
12468 (build_type_psymtabs_reader): Remove data parameter.
12469 (build_type_psymtabs_1): Use cutu_reader.
12470 (process_skeletonless_type_unit): Likewise.
12471 (load_partial_comp_unit_reader): Remove.
12472 (load_partial_comp_unit): Use cutu_reader.
12473 (load_full_comp_unit_reader): Remove.
12474 (load_full_comp_unit): Use cutu_reader.
12475 (struct create_dwo_cu_data): Remove.
12476 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
12477 dwo_unit parameters.
12478 (create_cus_hash_table): Use cutu_reader.
12479 (struct dwarf2_read_addr_index_data): Remove.
12480 (dwarf2_read_addr_index_reader): Remove.
12481 (dwarf2_read_addr_index): Use cutu_reader.
12482 (read_signatured_type_reader): Remove.
12483 (read_signatured_type): Use cutu_reader.
12484
45bbae5c
TT
124852020-01-19 Tom Tromey <tom@tromey.com>
12486
12487 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
12488 * tui/tui-wingeneral.h (class tui_suppress_output): New.
12489 (tui_wrefresh): Declare.
12490 * tui/tui-wingeneral.c (suppress_output): New global.
12491 (tui_suppress_output, ~tui_suppress_output): New constructor and
12492 destructor.
12493 (tui_wrefresh): New function.
12494 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
12495 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
12496 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
12497 method.
12498 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
12499 tui_wrefresh.
12500 (tui_data_window::no_refresh): New method.
12501 (tui_data_item_window::refresh_window): Call tui_wrefresh.
12502 (tui_reg_command): Use tui_suppress_output
12503 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
12504 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
12505 method.
12506 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
12507
4f13c1c0
TT
125082020-01-19 Tom Tromey <tom@tromey.com>
12509
12510 * tui/tui-winsource.c (tui_update_source_windows_with_line):
12511 Handle case where symtab is null.
12512
fa47e446
SM
125132020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
12514
12515 * linux-fork.c (one_fork_p): Simplify.
12516
26f42329
SM
125172020-01-17 Simon Marchi <simon.marchi@efficios.com>
12518
12519 * top.c (struct qt_args): Remove.
12520 (kill_or_detach): Change return type to void, replace `void *`
12521 parameter with a proper one.
12522 (print_inferior_quit_action): Likewise.
12523 (quit_confirm): Use range-based for loop to iterate over inferiors.
12524 (quit_force): Likewise.
12525
a9ac81b1
SM
125262020-01-17 Simon Marchi <simon.marchi@efficios.com>
12527
12528 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
12529 `void *` parameter with proper parameters.
12530 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
12531 (print_one_inferior): Change return type to void, replace `void *`
12532 parameter with proper parameters.
12533 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
12534 inferiors.
12535 (get_other_inferior): Remove.
12536 (mi_cmd_remove_inferior): Use range-based loop to iterate over
12537 inferiors.
12538
788eca49
SM
125392020-01-17 Simon Marchi <simon.marchi@efficios.com>
12540
12541 * mi/mi-interp.c (report_initial_inferior): Remove.
12542 (mi_interp::init): Use range-based for to iterate over inferiors.
12543
d9bc85b6
SM
125442020-01-17 Simon Marchi <simon.marchi@efficios.com>
12545
12546 * python/py-inferior.c (build_inferior_list): Remove.
12547 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
12548
40c94099
CB
125492020-01-16 Christian Biesinger <cbiesinger@google.com>
12550
12551 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
12552 (btrace_stitch_trace): Likewise.
12553 * charset.c (intermediate_encoding): Likewise (vaild).
12554 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
12555 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
12556 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
12557
e0cdfe3c
HD
125582020-01-16 Hannes Domani <ssbssa@yahoo.de>
12559
12560 * windows-tdep.c (windows_get_tlb_type):
12561 Add rtl_user_process_parameters type.
12562
790f1718 125632020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 12564 Norbert Lange <nolange79@gmail.com>
790f1718
PA
12565
12566 PR build/24805
12567 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
12568 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
12569 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
12570 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
12571 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
12572 (ps_plog): Redeclare exported functions with default visibility.
12573
3112ed97
NA
125742020-01-16 Nitika Achra <Nitika.Achra@amd.com>
12575
12576 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
12577 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
12578
8dc3273e
SM
125792020-01-15 Simon Marchi <simon.marchi@efficios.com>
12580
12581 * infcmd.c (post_create_inferior): Use get_thread_regcache
12582 instead of get_current_regcache.
12583
ff47f4f0
TT
125842020-01-14 Tom Tromey <tom@tromey.com>
12585
12586 PR symtab/12535:
12587 * python/python.c (gdbpy_decode_line): Treat empty string the same
12588 as no argument.
12589
975f45b7
TT
125902020-01-14 Tom Tromey <tom@tromey.com>
12591
12592 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
12593
25e57356
TT
125942020-01-14 Tom Tromey <tom@tromey.com>
12595
12596 * nat/linux-btrace.c: Don't include <config.h>.
12597 * nat/linux-ptrace.c: Don't include <config.h>.
12598 * nat/x86-linux-dregs.c: Don't include <config.h>.
12599
05ea2a05
TT
126002020-01-14 Tom Tromey <tom@tromey.com>
12601
12602 * configure: Rebuild.
12603 * configure.ac: Move many checks to ../gdbsupport/common.m4.
12604
01027315
TT
126052020-01-14 Tom Tromey <tom@tromey.com>
12606
12607 * nat/x86-linux-dregs.c: Include configh.h.
12608 * nat/linux-ptrace.c: Include configh.h.
12609 * nat/linux-btrace.c: Include configh.h.
12610 * defs.h: Include config.h, bfd.h.
12611 * configure.ac: Don't source common.host.
12612 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
12613 * configure: Rebuild.
12614 * acinclude.m4: Update path.
12615 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
12616 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
12617 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
12618 (CLIBS): Add LIBSUPPORT.
12619 (CDEPS): Likewise.
12620 (COMMON_SFILES): Remove gdbsupport files.
12621 (HFILES_NO_SRCDIR): Likewise.
12622 (stamp-version): Update path to create-version.sh.
12623 (ALLDEPFILES): Remove gdbsupport files.
12624
b2ceabe8
TT
126252020-01-14 Tom Tromey <tom@tromey.com>
12626
12627 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
12628 USE_WIN32API when needed.
12629 * configure.ac (USE_WIN32API): Don't define.
12630 (WIN32LIBS): Use WIN32APILIBS.
12631 * configure: Rebuild.
12632
25c51f71
TT
126332020-01-14 Tom Tromey <tom@tromey.com>
12634
12635 * configure: Rebuild.
12636 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
12637
717c684d
BE
126382020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
12639
12640 * skip.c (skip_function_command): Make skip w/o arguments use the
12641 name of the inlined function if pc is inside any inlined function.
12642
7da6a5b9
LM
126432020-01-14 Luis Machado <luis.machado@linaro.org>
12644
12645 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
12646 * infrun.c (resume_1): Likewise.
12647 (handle_inferior_event): Remove stale comment.
12648 * linux-nat.c (linux_nat_target::resume): Update comments.
12649 (save_stop_reason): Likewise.
12650 (linux_nat_filter_event): Likewise.
12651 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
12652
44e4c775
AB
126532020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12654
12655 * elfread.c (record_minimal_symbol): Set section index to 0 for
12656 non-allocatable sections.
12657
18a8505e
AT
12658
126592020-01-13 Ali Tamur <tamur@google.com>
12660
12661 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
12662 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
12663 to gdb::optional. Update comments.
12664 (dwo_file): Update comments.
12665 (read_attribute): Update API to take an additional out parameter,
12666 need_reprocess. This is used to mark attributes that need other
12667 attributes (e.g. str_offsets_base) for correct computation which may not
12668 have been read yet.
12669 (read_attribute_reprocess): New function declaration.
12670 (read_addr_index): Likewise.
12671 (read_dwo_str_index): Likewise.
12672 (read_stub_str_index): Likewise.
12673 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
12674 (lookup_addr_base): New function definition.
12675 (lookup_ranges_base): Likewise.
12676 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
12677 lookup_ranges_base.
12678 (init_cutu_and_read_dies): Update comments.
12679 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
12680 unit. This is used to inherit parent's str_offsets_base and addr_base.
12681 Update comments.
12682 (init_cutu_and_read_dies_simple): Reflect API changes.
12683 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
12684 (create_cus_hash_table): Change API to take parent compile unit.
12685 Reflect API changes.
12686 (open_and_init_dwo_file): Reflect API changes.
12687 (dwarf2_get_pc_bounds): Update comments.
12688 (dwarf2_record_block_ranges): Likewise.
12689 (read_full_die_1): Change implementation to reprocess attributes that
12690 need str_offsets_base and addr_base.
12691 (partial_die_info::read): Likewise.
12692 (read_attribute_reprocess): New function definition.
12693 (read_attribute_value): Change API to take an additional out parameter,
12694 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
12695 when a non-dwo compile unit has index based attributes.
12696 (read_attribute): Reflect API changes.
12697 (read_addr_index_1): Reflect API changes. Update comments.
12698 (dwarf2_read_addr_index_data): Reflect API changes.
12699 (dwarf2_read_addr_index): Likewise.
12700 (read_str_index): Change API and implementation. This becomes a helper
12701 to be used by the new string index related methods. Update error
12702 message and comments.
12703 (read_dwo_str_index): New function definition.
12704 (read_stub_str_index): Likewise.
12705 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
12706 * symfile.h (dwarf2_debug_sections): Likewise.
12707 * xcoffread.c (dwarf2_debug_sections): Likewise.
12708
0cac9354
SM
127092020-01-13 Simon Marchi <simon.marchi@efficios.com>
12710
12711 * gdbcore.h (struct core_fns) <core_read_registers>: Change
12712 core_reg_sect type to gdb_byte *.
12713 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
12714 * cris-tdep.c (fetch_core_registers): Likewise.
12715 * corelow.c (core_target::get_core_register_section): Change
12716 type of `contents` to gdb::byte_vector.
12717
9a6d629c
AB
127182020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
12719
12720 * tui/tui-wingeneral.c (box_win): Position the title in the center
12721 of the border.
12722
d8b2f9e3
SM
127232020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
12724
12725 * corelow.c (core_target::get_core_register_section): Use
12726 std::vector instead of alloca.
12727
bb564c58
SM
127282020-01-13 Simon Marchi <simon.marchi@efficios.com>
12729
12730 * warning.m4: Add -Wmissing-declarations to build_warnings.
12731 * configure: Re-generate.
12732
6b366111
SM
127332020-01-13 Simon Marchi <simon.marchi@efficios.com>
12734
12735 * python/python.c (init__gdb_module): Add declaration.
12736
6c265988
SM
127372020-01-13 Simon Marchi <simon.marchi@efficios.com>
12738
12739 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
12740 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
12741 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
12742 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
12743 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
12744 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
12745 * ada-exp.y (_initialize_ada_exp): Add declaration.
12746 * ada-lang.c (_initialize_ada_language): Add declaration.
12747 * ada-tasks.c (_initialize_tasks): Add declaration.
12748 * agent.c (_initialize_agent): Add declaration.
12749 * aix-thread.c (_initialize_aix_thread): Add declaration.
12750 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
12751 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
12752 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
12753 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
12754 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
12755 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
12756 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
12757 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
12758 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
12759 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
12760 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
12761 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
12762 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
12763 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
12764 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
12765 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
12766 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
12767 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
12768 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
12769 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
12770 * annotate.c (_initialize_annotate): Add declaration.
12771 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
12772 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
12773 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
12774 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
12775 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
12776 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
12777 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
12778 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
12779 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
12780 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
12781 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
12782 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
12783 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
12784 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
12785 * auto-load.c (_initialize_auto_load): Add declaration.
12786 * auxv.c (_initialize_auxv): Add declaration.
12787 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
12788 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
12789 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
12790 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
12791 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
12792 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
12793 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
12794 * breakpoint.c (_initialize_breakpoint): Add declaration.
12795 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
12796 * btrace.c (_initialize_btrace): Add declaration.
12797 * charset.c (_initialize_charset): Add declaration.
12798 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
12799 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
12800 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
12801 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
12802 * cli/cli-script.c (_initialize_cli_script): Add declaration.
12803 * cli/cli-style.c (_initialize_cli_style): Add declaration.
12804 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
12805 * coffread.c (_initialize_coffread): Add declaration.
12806 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
12807 * compile/compile.c (_initialize_compile): Add declaration.
12808 * complaints.c (_initialize_complaints): Add declaration.
12809 * completer.c (_initialize_completer): Add declaration.
12810 * copying.c (_initialize_copying): Add declaration.
12811 * corefile.c (_initialize_core): Add declaration.
12812 * corelow.c (_initialize_corelow): Add declaration.
12813 * cp-abi.c (_initialize_cp_abi): Add declaration.
12814 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
12815 * cp-support.c (_initialize_cp_support): Add declaration.
12816 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
12817 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
12818 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
12819 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
12820 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
12821 * ctfread.c (_initialize_ctfread): Add declaration.
12822 * d-lang.c (_initialize_d_language): Add declaration.
12823 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
12824 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
12825 * dbxread.c (_initialize_dbxread): Add declaration.
12826 * dcache.c (_initialize_dcache): Add declaration.
12827 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
12828 * disasm.c (_initialize_disasm): Add declaration.
12829 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
12830 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
12831 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
12832 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
12833 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
12834 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
12835 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
12836 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
12837 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
12838 * elfread.c (_initialize_elfread): Add declaration.
12839 * exec.c (_initialize_exec): Add declaration.
12840 * extension.c (_initialize_extension): Add declaration.
12841 * f-lang.c (_initialize_f_language): Add declaration.
12842 * f-valprint.c (_initialize_f_valprint): Add declaration.
12843 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
12844 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
12845 * filesystem.c (_initialize_filesystem): Add declaration.
12846 * findcmd.c (_initialize_mem_search): Add declaration.
12847 * findvar.c (_initialize_findvar): Add declaration.
12848 * fork-child.c (_initialize_fork_child): Add declaration.
12849 * frame-base.c (_initialize_frame_base): Add declaration.
12850 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
12851 * frame.c (_initialize_frame): Add declaration.
12852 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
12853 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
12854 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
12855 * gcore.c (_initialize_gcore): Add declaration.
12856 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
12857 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
12858 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
12859 * gdbarch.c (_initialize_gdbarch): Add declaration.
12860 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
12861 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
12862 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
12863 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
12864 * go-lang.c (_initialize_go_language): Add declaration.
12865 * go32-nat.c (_initialize_go32_nat): Add declaration.
12866 * guile/guile.c (_initialize_guile): Add declaration.
12867 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
12868 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
12869 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
12870 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
12871 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
12872 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
12873 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
12874 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
12875 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
12876 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
12877 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
12878 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
12879 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
12880 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
12881 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
12882 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
12883 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
12884 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
12885 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
12886 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
12887 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
12888 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
12889 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
12890 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
12891 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
12892 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
12893 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
12894 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
12895 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
12896 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
12897 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
12898 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
12899 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
12900 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
12901 * infcall.c (_initialize_infcall): Add declaration.
12902 * infcmd.c (_initialize_infcmd): Add declaration.
12903 * inflow.c (_initialize_inflow): Add declaration.
12904 * infrun.c (_initialize_infrun): Add declaration.
12905 * interps.c (_initialize_interpreter): Add declaration.
12906 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
12907 * jit.c (_initialize_jit): Add declaration.
12908 * language.c (_initialize_language): Add declaration.
12909 * linux-fork.c (_initialize_linux_fork): Add declaration.
12910 * linux-nat.c (_initialize_linux_nat): Add declaration.
12911 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
12912 * linux-thread-db.c (_initialize_thread_db): Add declaration.
12913 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
12914 * m2-lang.c (_initialize_m2_language): Add declaration.
12915 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
12916 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
12917 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
12918 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
12919 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
12920 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
12921 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
12922 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
12923 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
12924 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
12925 * machoread.c (_initialize_machoread): Add declaration.
12926 * macrocmd.c (_initialize_macrocmd): Add declaration.
12927 * macroscope.c (_initialize_macroscope): Add declaration.
12928 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
12929 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
12930 * maint.c (_initialize_maint_cmds): Add declaration.
12931 * mdebugread.c (_initialize_mdebugread): Add declaration.
12932 * memattr.c (_initialize_mem): Add declaration.
12933 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
12934 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
12935 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
12936 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
12937 * mi/mi-main.c (_initialize_mi_main): Add declaration.
12938 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
12939 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
12940 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
12941 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
12942 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
12943 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
12944 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
12945 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
12946 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
12947 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
12948 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
12949 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
12950 * mipsread.c (_initialize_mipsread): Add declaration.
12951 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
12952 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
12953 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
12954 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
12955 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
12956 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
12957 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
12958 * nto-procfs.c (_initialize_procfs): Add declaration.
12959 * objc-lang.c (_initialize_objc_language): Add declaration.
12960 * observable.c (_initialize_observer): Add declaration.
12961 * opencl-lang.c (_initialize_opencl_language): Add declaration.
12962 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
12963 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
12964 * osabi.c (_initialize_gdb_osabi): Add declaration.
12965 * osdata.c (_initialize_osdata): Add declaration.
12966 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
12967 * parse.c (_initialize_parse): Add declaration.
12968 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
12969 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
12970 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
12971 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
12972 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
12973 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
12974 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
12975 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
12976 * printcmd.c (_initialize_printcmd): Add declaration.
12977 * probe.c (_initialize_probe): Add declaration.
12978 * proc-api.c (_initialize_proc_api): Add declaration.
12979 * proc-events.c (_initialize_proc_events): Add declaration.
12980 * proc-service.c (_initialize_proc_service): Add declaration.
12981 * procfs.c (_initialize_procfs): Add declaration.
12982 * producer.c (_initialize_producer): Add declaration.
12983 * psymtab.c (_initialize_psymtab): Add declaration.
12984 * python/python.c (_initialize_python): Add declaration.
12985 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
12986 * record-btrace.c (_initialize_record_btrace): Add declaration.
12987 * record-full.c (_initialize_record_full): Add declaration.
12988 * record.c (_initialize_record): Add declaration.
12989 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
12990 * regcache.c (_initialize_regcache): Add declaration.
12991 * reggroups.c (_initialize_reggroup): Add declaration.
12992 * remote-notif.c (_initialize_notif): Add declaration.
12993 * remote-sim.c (_initialize_remote_sim): Add declaration.
12994 * remote.c (_initialize_remote): Add declaration.
12995 * reverse.c (_initialize_reverse): Add declaration.
12996 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
12997 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
12998 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
12999 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
13000 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
13001 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
13002 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
13003 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
13004 Add declaration.
13005 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
13006 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
13007 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
13008 * rust-exp.y (_initialize_rust_exp): Add declaration.
13009 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
13010 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
13011 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
13012 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
13013 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
13014 * score-tdep.c (_initialize_score_tdep): Add declaration.
13015 * ser-go32.c (_initialize_ser_dos): Add declaration.
13016 * ser-mingw.c (_initialize_ser_windows): Add declaration.
13017 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
13018 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
13019 * ser-uds.c (_initialize_ser_socket): Add declaration.
13020 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
13021 * serial.c (_initialize_serial): Add declaration.
13022 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
13023 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
13024 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
13025 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
13026 * skip.c (_initialize_step_skip): Add declaration.
13027 * sol-thread.c (_initialize_sol_thread): Add declaration.
13028 * solib-aix.c (_initialize_solib_aix): Add declaration.
13029 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
13030 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
13031 * solib-frv.c (_initialize_frv_solib): Add declaration.
13032 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
13033 * solib-target.c (_initialize_solib_target): Add declaration.
13034 * solib.c (_initialize_solib): Add declaration.
13035 * source-cache.c (_initialize_source_cache): Add declaration.
13036 * source.c (_initialize_source): Add declaration.
13037 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
13038 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
13039 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
13040 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
13041 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
13042 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
13043 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
13044 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
13045 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
13046 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
13047 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
13048 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
13049 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
13050 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
13051 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
13052 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
13053 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
13054 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
13055 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
13056 * stabsread.c (_initialize_stabsread): Add declaration.
13057 * stack.c (_initialize_stack): Add declaration.
13058 * stap-probe.c (_initialize_stap_probe): Add declaration.
13059 * std-regs.c (_initialize_frame_reg): Add declaration.
13060 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
13061 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
13062 * symfile.c (_initialize_symfile): Add declaration.
13063 * symmisc.c (_initialize_symmisc): Add declaration.
13064 * symtab.c (_initialize_symtab): Add declaration.
13065 * target.c (_initialize_target): Add declaration.
13066 * target-connection.c (_initialize_target_connection): Add
13067 declaration.
13068 * target-dcache.c (_initialize_target_dcache): Add declaration.
13069 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
13070 * thread.c (_initialize_thread): Add declaration.
13071 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
13072 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
13073 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
13074 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
13075 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
13076 * tracectf.c (_initialize_ctf): Add declaration.
13077 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
13078 * tracefile.c (_initialize_tracefile): Add declaration.
13079 * tracepoint.c (_initialize_tracepoint): Add declaration.
13080 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
13081 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
13082 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
13083 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
13084 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
13085 * tui/tui-win.c (_initialize_tui_win): Add declaration.
13086 * tui/tui.c (_initialize_tui): Add declaration.
13087 * typeprint.c (_initialize_typeprint): Add declaration.
13088 * ui-style.c (_initialize_ui_style): Add declaration.
13089 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
13090 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
13091 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
13092 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
13093 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
13094 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
13095 * unittests/filtered_iterator-selftests.c
13096 (_initialize_filtered_iterator_selftests): Add declaration.
13097 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
13098 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
13099 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
13100 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
13101 * unittests/main-thread-selftests.c
13102 (_initialize_main_thread_selftests): Add declaration.
13103 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
13104 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
13105 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
13106 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
13107 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
13108 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
13109 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
13110 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
13111 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
13112 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
13113 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
13114 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
13115 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
13116 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
13117 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
13118 declaration.
13119 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
13120 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
13121 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
13122 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
13123 * user-regs.c (_initialize_user_regs): Add declaration.
13124 * utils.c (_initialize_utils): Add declaration.
13125 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
13126 * valops.c (_initialize_valops): Add declaration.
13127 * valprint.c (_initialize_valprint): Add declaration.
13128 * value.c (_initialize_values): Add declaration.
13129 * varobj.c (_initialize_varobj): Add declaration.
13130 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
13131 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
13132 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
13133 * windows-nat.c (_initialize_windows_nat): Add declaration.
13134 (_initialize_check_for_gdb_ini): Add declaration.
13135 (_initialize_loadable): Add declaration.
13136 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
13137 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
13138 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
13139 * xcoffread.c (_initialize_xcoffread): Add declaration.
13140 * xml-support.c (_initialize_xml_support): Add declaration.
13141 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
13142 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
13143 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
13144 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
13145
e2de1eec
SM
131462020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13147
13148 * regformats/regdat.sh: Generate declaration for init function.
13149
e0037b4c
SM
131502020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
13151
13152 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
13153 up.
13154 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
13155 close_one_inferior>: New methods.
13156 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
13157 pass down target to find_inferior_pid.
13158 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
13159 Pass down target to find_inferior_ptid.
13160 (gdbsim_target::create_inferior): Pass down target to
13161 add_thread_silent.
13162 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
13163 target down to find_inferior_ptid and switch_to_thread.
13164 (gdbsim_target::close): Update to call close_one_inferior.
13165 (struct resume_data): Remove.
13166 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
13167 directly, rather than through a void pointer.
13168 (gdbsim_target::resume): Update to call resume_one_inferior.
13169
58920b5b
SM
131702020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
13171
13172 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
13173
4ec89149
PA
131742020-01-12 Pedro Alves <palves@redhat.com>
13175
13176 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
13177 directly for the current inferior instead of
13178 discard_all_inferiors.
13179 (discard_all_inferiors): Delete.
13180
7c392d1d
TT
131812020-01-11 Tom Tromey <tom@tromey.com>
13182
13183 * tui/tui-wingeneral.c (box_win): Check cli_styling.
13184 * tui/tui-winsource.c (tui_source_window_base::refill): Use
13185 deprecated_safe_get_selected_frame.
13186
d9ebdab7
TBA
131872020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13188
13189 * inferior.c (print_inferior): Switch inferior before printing it.
13190
f3c469b9
PA
131912020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
13192 Pedro Alves <palves@redhat.com>
13193
13194 * progspace-and-thread.c (switch_to_program_space_and_thread):
13195 Assert there's an inferior for PSPACE. Use
13196 switch_to_inferior_no_thread to switch the inferior too.
13197 * progspace.c (program_space::~program_space): Call
13198 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
13199 (program_space::free_all_objfiles): Don't call clear_symtab_users
13200 here.
13201 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
13202
65c574f6
PA
132032020-01-10 Pedro Alves <palves@redhat.com>
13204
13205 * NEWS: Mention multi-target debugging, "info connections", and
13206 "add-inferior -no-connection".
13207
2f4fcf00
PA
132082020-01-10 Pedro Alves <palves@redhat.com>
13209
13210 * infrun.c: Include "target-connection.h".
13211 (check_multi_target_resumption): New.
13212 (proceed): Call it.
13213 * target-connection.c (make_target_connection_string): Make
13214 extern.
13215 * target-connection.h (make_target_connection_string): Declare.
13216
121b3efd
PA
132172020-01-10 Pedro Alves <palves@redhat.com>
13218
13219 * Makefile.in (COMMON_SFILES): Add target-connection.c.
13220 * inferior.c (uiout_field_connection): New function.
13221 (print_inferior): Add new "connection-id" column.
13222 (add_inferior_command): Show connection number/string of added
13223 inferior.
13224 * process-stratum-target.h
13225 (process_stratum_target::connection_string): New virtual method.
13226 (process_stratum_target::connection_number): New field.
13227 * remote.c (remote_target::connection_string): New override.
13228 * target-connection.c: New file.
13229 * target-connection.h: New file.
13230 * target.c (decref_target): Remove process_stratum targets from
13231 the connection list.
13232 (target_stack::push): Add process_stratum targets to the
13233 connection list.
13234
4f837581
PA
132352020-01-10 Pedro Alves <palves@redhat.com>
13236
13237 Revert:
13238 2016-04-12 Pedro Alves <palves@redhat.com>
13239 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
13240 Remove references to name.
13241 * serial.h (struct serial) <name>: Delete.
13242
f4ec508e
PA
132432020-01-10 Pedro Alves <palves@redhat.com>
13244
13245 * gdbarch-selftests.c (register_to_value_test): Remove "target
13246 already pushed" check.
13247
5b6d1e4f
PA
132482020-01-10 Pedro Alves <palves@redhat.com>
13249 John Baldwin <jhb@FreeBSD.org>
13250
13251 * aarch64-linux-nat.c
13252 (aarch64_linux_nat_target::thread_architecture): Adjust.
13253 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
13254 (task_command_1): Likewise.
13255 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
13256 (aix_thread_target::wait, aix_thread_target::fetch_registers)
13257 (aix_thread_target::store_registers)
13258 (aix_thread_target::thread_alive): Adjust.
13259 * amd64-fbsd-tdep.c: Include "inferior.h".
13260 (amd64fbsd_get_thread_local_address): Pass down target.
13261 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
13262 thread's gdbarch instead of target_gdbarch.
13263 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
13264 get_last_target_status.
13265 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
13266 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
13267 inferiors.
13268 (update_inserted_breakpoint_locations): Skip if inferiors with no
13269 execution.
13270 (update_global_location_list): When handling moribund locations,
13271 find representative inferior for location's pspace, and use thread
13272 count of its process_stratum target.
13273 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
13274 * bsd-uthread.c (bsd_uthread_target::wait): Use
13275 as_process_stratum_target and adjust thread_change_ptid and
13276 add_thread calls.
13277 (bsd_uthread_target::update_thread_list): Use
13278 as_process_stratum_target and adjust find_thread_ptid,
13279 thread_change_ptid and add_thread calls.
13280 * btrace.c (maint_btrace_packet_history_cmd): Adjust
13281 find_thread_ptid call.
13282 * corelow.c (add_to_thread_list): Adjust add_thread call.
13283 (core_target_open): Adjust add_thread_silent and thread_count
13284 calls.
13285 (core_target::pid_to_str): Adjust find_inferior_ptid call.
13286 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
13287 * event-top.c (async_disconnect): Pop targets from all inferiors.
13288 * exec.c (add_target_sections): Push exec target on all inferiors
13289 sharing the program space.
13290 (remove_target_sections): Remove the exec target from all
13291 inferiors sharing the program space.
13292 (exec_on_vfork): New.
13293 * exec.h (exec_on_vfork): Declare.
13294 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
13295 Pass it down.
13296 (fbsd_nat_target::update_thread_list): Adjust.
13297 (fbsd_nat_target::resume): Adjust.
13298 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
13299 down.
13300 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
13301 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
13302 get_thread_arch_regcache call.
13303 * fork-child.c (gdb_startup_inferior): Pass target down to
13304 startup_inferior and set_executing.
13305 * gdbthread.h (struct process_stratum_target): Forward declare.
13306 (add_thread, add_thread_silent, add_thread_with_info)
13307 (in_thread_list): Add process_stratum_target parameter.
13308 (find_thread_ptid(inferior*, ptid_t)): New overload.
13309 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
13310 parameter.
13311 (all_threads()): Delete overload.
13312 (all_threads, all_non_exited_threads): Add process_stratum_target
13313 parameter.
13314 (all_threads_safe): Use brace initialization.
13315 (thread_count): Add process_stratum_target parameter.
13316 (set_resumed, set_running, set_stop_requested, set_executing)
13317 (threads_are_executing, finish_thread_state): Add
13318 process_stratum_target parameter.
13319 (switch_to_thread): Use is_current_thread.
13320 * i386-fbsd-tdep.c: Include "inferior.h".
13321 (i386fbsd_get_thread_local_address): Pass down target.
13322 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
13323 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
13324 have_inferiors check.
13325 * inf-ptrace.c (inf_ptrace_target::create_inferior)
13326 (inf_ptrace_target::attach): Adjust.
13327 * infcall.c (run_inferior_call): Adjust.
13328 * infcmd.c (run_command_1): Pass target to
13329 scoped_finish_thread_state.
13330 (proceed_thread_callback): Skip inferiors with no execution.
13331 (continue_command): Rename 'all_threads' local to avoid hiding
13332 'all_threads' function. Adjust get_last_target_status call.
13333 (prepare_one_step): Adjust set_running call.
13334 (signal_command): Use user_visible_resume_target. Compare thread
13335 pointers instead of inferior_ptid.
13336 (info_program_command): Adjust to pass down target.
13337 (attach_command): Mark target's 'thread_executing' flag.
13338 (stop_current_target_threads_ns): New, factored out from ...
13339 (interrupt_target_1): ... this. Switch inferior before making
13340 target calls.
13341 * inferior-iter.h
13342 (struct all_inferiors_iterator, struct all_inferiors_range)
13343 (struct all_inferiors_safe_range)
13344 (struct all_non_exited_inferiors_range): Filter on
13345 process_stratum_target too. Remove explicit.
13346 * inferior.c (inferior::inferior): Push dummy target on target
13347 stack.
13348 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
13349 Add process_stratum_target parameter, and pass it down.
13350 (have_live_inferiors): Adjust.
13351 (switch_to_inferior_and_push_target): New.
13352 (add_inferior_command, clone_inferior_command): Handle
13353 "-no-connection" parameter. Use
13354 switch_to_inferior_and_push_target.
13355 (_initialize_inferior): Mention "-no-connection" option in
13356 the help of "add-inferior" and "clone-inferior" commands.
13357 * inferior.h: Include "process-stratum-target.h".
13358 (interrupt_target_1): Use bool.
13359 (struct inferior) <push_target, unpush_target, target_is_pushed,
13360 find_target_beneath, top_target, process_target, target_at,
13361 m_stack>: New.
13362 (discard_all_inferiors): Delete.
13363 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
13364 (all_inferiors, all_non_exited_inferiors): Add
13365 process_stratum_target parameter.
13366 * infrun.c: Include "gdb_select.h" and <unordered_map>.
13367 (target_last_proc_target): New global.
13368 (follow_fork_inferior): Push target on new inferior. Pass target
13369 to add_thread_silent. Call exec_on_vfork. Handle target's
13370 reference count.
13371 (follow_fork): Adjust get_last_target_status call. Also consider
13372 target.
13373 (follow_exec): Push target on new inferior.
13374 (struct execution_control_state) <target>: New field.
13375 (user_visible_resume_target): New.
13376 (do_target_resume): Call target_async.
13377 (resume_1): Set target's threads_executing flag. Consider resume
13378 target.
13379 (commit_resume_all_targets): New.
13380 (proceed): Also consider resume target. Skip threads of inferiors
13381 with no execution. Commit resumtion in all targets.
13382 (start_remote): Pass current inferior to wait_for_inferior.
13383 (infrun_thread_stop_requested): Consider target as well. Pass
13384 thread_info pointer to clear_inline_frame_state instead of ptid.
13385 (infrun_thread_thread_exit): Consider target as well.
13386 (random_pending_event_thread): New inferior parameter. Use it.
13387 (do_target_wait): Rename to ...
13388 (do_target_wait_1): ... this. Add inferior parameter, and pass it
13389 down.
13390 (threads_are_resumed_pending_p, do_target_wait): New.
13391 (prepare_for_detach): Adjust calls.
13392 (wait_for_inferior): New inferior parameter. Handle it. Use
13393 do_target_wait_1 instead of do_target_wait.
13394 (fetch_inferior_event): Adjust. Switch to representative
13395 inferior. Pass target down.
13396 (set_last_target_status): Add process_stratum_target parameter.
13397 Save target in global.
13398 (get_last_target_status): Add process_stratum_target parameter and
13399 handle it.
13400 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
13401 (context_switch): Check inferior_ptid == null_ptid before calling
13402 inferior_thread().
13403 (get_inferior_stop_soon): Pass down target.
13404 (wait_one): Rename to ...
13405 (poll_one_curr_target): ... this.
13406 (struct wait_one_event): New.
13407 (wait_one): New.
13408 (stop_all_threads): Adjust.
13409 (handle_no_resumed, handle_inferior_event): Adjust to consider the
13410 event's target.
13411 (switch_back_to_stepped_thread): Also consider target.
13412 (print_stop_event): Update.
13413 (normal_stop): Update. Also consider the resume target.
13414 * infrun.h (wait_for_inferior): Remove declaration.
13415 (user_visible_resume_target): New declaration.
13416 (get_last_target_status, set_last_target_status): New
13417 process_stratum_target parameter.
13418 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13419 process_stratum_target parameter, and use it.
13420 (clear_inline_frame_state (thread_info*)): New.
13421 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
13422 process_stratum_target parameter.
13423 (clear_inline_frame_state (thread_info*)): Declare.
13424 * linux-fork.c (delete_checkpoint_command): Pass target down to
13425 find_thread_ptid.
13426 (checkpoint_command): Adjust.
13427 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
13428 instead of just tweaking inferior_ptid.
13429 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
13430 (exit_lwp): Pass target down to find_thread_ptid.
13431 (attach_proc_task_lwp_callback): Pass target down to
13432 add_thread/set_running/set_executing.
13433 (linux_nat_target::attach): Pass target down to
13434 thread_change_ptid.
13435 (get_detach_signal): Pass target down to find_thread_ptid.
13436 Consider last target status's target.
13437 (linux_resume_one_lwp_throw, resume_lwp)
13438 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
13439 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
13440 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
13441 (linux_nat_target::async_wait_fd): New.
13442 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
13443 target down.
13444 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
13445 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
13446 * linux-thread-db.c (struct thread_db_info::process_target): New
13447 field.
13448 (add_thread_db_info): Save target.
13449 (get_thread_db_info): New process_stratum_target parameter. Also
13450 match target.
13451 (delete_thread_db_info): New process_stratum_target parameter.
13452 Also match target.
13453 (thread_from_lwp): Adjust to pass down target.
13454 (thread_db_notice_clone): Pass down target.
13455 (check_thread_db_callback): Pass down target.
13456 (try_thread_db_load_1): Always push the thread_db target.
13457 (try_thread_db_load, record_thread): Pass target down.
13458 (thread_db_target::detach): Pass target down. Always unpush the
13459 thread_db target.
13460 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
13461 target down. Always unpush the thread_db target.
13462 (find_new_threads_callback, thread_db_find_new_threads_2)
13463 (thread_db_target::update_thread_list): Pass target down.
13464 (thread_db_target::pid_to_str): Pass current inferior down.
13465 (thread_db_target::get_thread_local_address): Pass target down.
13466 (thread_db_target::resume, maintenance_check_libthread_db): Pass
13467 target down.
13468 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
13469 * procfs.c (procfs_target::procfs_init_inferior): Declare.
13470 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
13471 (procfs_init_inferior): Rename to ...
13472 (procfs_target::procfs_init_inferior): ... this and adjust.
13473 (procfs_target::create_inferior, procfs_notice_thread)
13474 (procfs_do_thread_registers): Adjust.
13475 * ppc-fbsd-tdep.c: Include "inferior.h".
13476 (ppcfbsd_get_thread_local_address): Pass down target.
13477 * proc-service.c (ps_xfer_memory): Switch current inferior and
13478 program space as well.
13479 (get_ps_regcache): Pass target down.
13480 * process-stratum-target.c
13481 (process_stratum_target::thread_address_space)
13482 (process_stratum_target::thread_architecture): Pass target down.
13483 * process-stratum-target.h
13484 (process_stratum_target::threads_executing): New field.
13485 (as_process_stratum_target): New.
13486 * ravenscar-thread.c
13487 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
13488 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
13489 down.
13490 * record-btrace.c (record_btrace_target::info_record): Adjust.
13491 (record_btrace_target::record_method)
13492 (record_btrace_target::record_is_replaying)
13493 (record_btrace_target::fetch_registers)
13494 (get_thread_current_frame_id, record_btrace_target::resume)
13495 (record_btrace_target::wait, record_btrace_target::stop): Pass
13496 target down.
13497 * record-full.c (record_full_wait_1): Switch to event thread.
13498 Pass target down.
13499 * regcache.c (regcache::regcache)
13500 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
13501 process_stratum_target parameter and handle it.
13502 (current_thread_target): New global.
13503 (get_thread_regcache): Add process_stratum_target parameter and
13504 handle it. Switch inferior before calling target method.
13505 (get_thread_regcache): Pass target down.
13506 (get_thread_regcache_for_ptid): Pass target down.
13507 (registers_changed_ptid): Add process_stratum_target parameter and
13508 handle it.
13509 (registers_changed_thread, registers_changed): Pass target down.
13510 (test_get_thread_arch_aspace_regcache): New.
13511 (current_regcache_test): Define a couple local test_target_ops
13512 instances and use them for testing.
13513 (readwrite_regcache): Pass process_stratum_target parameter.
13514 (cooked_read_test, cooked_write_test): Pass mock_target down.
13515 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
13516 (get_thread_arch_aspace_regcache): Add process_stratum_target
13517 parameter.
13518 (regcache::target): New method.
13519 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
13520 (regcache::registers_changed_ptid): Add process_stratum_target
13521 parameter.
13522 (regcache::m_target): New field.
13523 (registers_changed_ptid): Add process_stratum_target parameter.
13524 * remote.c (remote_state::supports_vCont_probed): New field.
13525 (remote_target::async_wait_fd): New method.
13526 (remote_unpush_and_throw): Add remote_target parameter.
13527 (get_current_remote_target): Adjust.
13528 (remote_target::remote_add_inferior): Push target.
13529 (remote_target::remote_add_thread)
13530 (remote_target::remote_notice_new_inferior)
13531 (get_remote_thread_info): Pass target down.
13532 (remote_target::update_thread_list): Skip threads of inferiors
13533 bound to other targets. (remote_target::close): Don't discard
13534 inferiors. (remote_target::add_current_inferior_and_thread)
13535 (remote_target::process_initial_stop_replies)
13536 (remote_target::start_remote)
13537 (remote_target::remote_serial_quit_handler): Pass down target.
13538 (remote_target::remote_unpush_target): New remote_target
13539 parameter. Unpush the target from all inferiors.
13540 (remote_target::remote_unpush_and_throw): New remote_target
13541 parameter. Pass it down.
13542 (remote_target::open_1): Check whether the current inferior has
13543 execution instead of checking whether any inferior is live. Pass
13544 target down.
13545 (remote_target::remote_detach_1): Pass down target. Use
13546 remote_unpush_target.
13547 (extended_remote_target::attach): Pass down target.
13548 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
13549 (remote_target::append_resumption): Pass down target.
13550 (remote_target::append_pending_thread_resumptions)
13551 (remote_target::remote_resume_with_hc, remote_target::resume)
13552 (remote_target::commit_resume): Pass down target.
13553 (remote_target::remote_stop_ns): Check supports_vCont_probed.
13554 (remote_target::interrupt_query)
13555 (remote_target::remove_new_fork_children)
13556 (remote_target::check_pending_events_prevent_wildcard_vcont)
13557 (remote_target::remote_parse_stop_reply)
13558 (remote_target::process_stop_reply): Pass down target.
13559 (first_remote_resumed_thread): New remote_target parameter. Pass
13560 it down.
13561 (remote_target::wait_as): Pass down target.
13562 (unpush_and_perror): New remote_target parameter. Pass it down.
13563 (remote_target::readchar, remote_target::remote_serial_write)
13564 (remote_target::getpkt_or_notif_sane_1)
13565 (remote_target::kill_new_fork_children, remote_target::kill): Pass
13566 down target.
13567 (remote_target::mourn_inferior): Pass down target. Use
13568 remote_unpush_target.
13569 (remote_target::core_of_thread)
13570 (remote_target::remote_btrace_maybe_reopen): Pass down target.
13571 (remote_target::pid_to_exec_file)
13572 (remote_target::thread_handle_to_thread_info): Pass down target.
13573 (remote_target::async_wait_fd): New.
13574 * riscv-fbsd-tdep.c: Include "inferior.h".
13575 (riscv_fbsd_get_thread_local_address): Pass down target.
13576 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
13577 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
13578 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
13579 Adjust.
13580 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
13581 * solib-svr4.c (enable_break): Pass down target.
13582 * spu-multiarch.c (parse_spufs_run): Pass down target.
13583 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
13584 * target-delegates.c: Regenerate.
13585 * target.c (g_target_stack): Delete.
13586 (current_top_target): Return the current inferior's top target.
13587 (target_has_execution_1): Refer to the passed-in inferior's top
13588 target.
13589 (target_supports_terminal_ours): Check whether the initial
13590 inferior was already created.
13591 (decref_target): New.
13592 (target_stack::push): Incref/decref the target.
13593 (push_target, push_target, unpush_target): Adjust.
13594 (target_stack::unpush): Defref target.
13595 (target_is_pushed): Return bool. Adjust to refer to the current
13596 inferior's target stack.
13597 (dispose_inferior): Delete, and inline parts ...
13598 (target_preopen): ... here. Only dispose of the current inferior.
13599 (target_detach): Hold strong target reference while detaching.
13600 Pass target down.
13601 (target_thread_name): Add assertion.
13602 (target_resume): Pass down target.
13603 (target_ops::beneath, find_target_at): Adjust to refer to the
13604 current inferior's target stack.
13605 (get_dummy_target): New.
13606 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
13607 has a thread running.
13608 (initialize_targets): Rename to ...
13609 (_initialize_target): ... this.
13610 * target.h: Include "gdbsupport/refcounted-object.h".
13611 (struct target_ops): Inherit refcounted_object.
13612 (target_ops::shortname, target_ops::longname): Make const.
13613 (target_ops::async_wait_fd): New method.
13614 (decref_target): Declare.
13615 (struct target_ops_ref_policy): New.
13616 (target_ops_ref): New typedef.
13617 (get_dummy_target): Declare function.
13618 (target_is_pushed): Return bool.
13619 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
13620 (all_matching_threads_iterator::all_matching_threads_iterator):
13621 Handle filter target.
13622 * thread-iter.h (struct all_matching_threads_iterator, struct
13623 all_matching_threads_range, class all_non_exited_threads_range):
13624 Filter by target too. Remove explicit.
13625 * thread.c (threads_executing): Delete.
13626 (inferior_thread): Pass down current inferior.
13627 (clear_thread_inferior_resources): Pass down thread pointer
13628 instead of ptid_t.
13629 (add_thread_silent, add_thread_with_info, add_thread): Add
13630 process_stratum_target parameter. Use it for thread and inferior
13631 searches.
13632 (is_current_thread): New.
13633 (thread_info::deletable): Use it.
13634 (find_thread_ptid, thread_count, in_thread_list)
13635 (thread_change_ptid, set_resumed, set_running): New
13636 process_stratum_target parameter. Pass it down.
13637 (set_executing): New process_stratum_target parameter. Pass it
13638 down. Adjust reference to 'threads_executing'.
13639 (threads_are_executing): New process_stratum_target parameter.
13640 Adjust reference to 'threads_executing'.
13641 (set_stop_requested, finish_thread_state): New
13642 process_stratum_target parameter. Pass it down.
13643 (switch_to_thread): Also match inferior.
13644 (switch_to_thread): New process_stratum_target parameter. Pass it
13645 down.
13646 (update_threads_executing): Reimplement.
13647 * top.c (quit_force): Pop targets from all inferior.
13648 (gdb_init): Don't call initialize_targets.
13649 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
13650 Declare.
13651 (windows_add_thread, windows_delete_thread): Adjust.
13652 (get_windows_debug_event): Rename to ...
13653 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
13654 * tracefile-tfile.c (tfile_target_open): Pass down target.
13655 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
13656 Forward declare.
13657 (switch_to_thread): Add process_stratum_target parameter.
13658 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
13659 parameter. Use it.
13660 (mi_on_resume): Pass target down.
13661 * nat/fork-inferior.c (startup_inferior): Add
13662 process_stratum_target parameter. Pass it down.
13663 * nat/fork-inferior.h (startup_inferior): Add
13664 process_stratum_target parameter.
13665 * python/py-threadevent.c (py_get_event_thread): Pass target down.
13666
75c6c844
PA
136672020-01-10 Pedro Alves <palves@redhat.com>
13668
13669 * remote.c (remote_target::start_remote): Don't set inferior_ptid
13670 directly. Instead find the first thread in the thread list and
13671 use switch_to_thread.
13672
78f2c40a
PA
136732020-01-10 Pedro Alves <palves@redhat.com>
13674
13675 * remote.c (remote_target::remote_add_inferior): Don't bind a
13676 process to the current inferior if the current inferior is already
13677 bound to a process.
13678
e7af6c70
TBA
136792020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13680 Pedro Alves <palves@redhat.com>
13681
13682 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
13683 If no process is specified, return null_ptid instead of
13684 inferior_ptid.
13685 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
13686 TARGET_WAITKIND_SIGNALLED with no pid.
13687
31ba933e
PA
136882020-01-10 Pedro Alves <palves@redhat.com>
13689
13690 * remote.c (first_remote_resumed_thread): New.
13691 (remote_target::wait_as): Use it as default event_ptid instead of
13692 inferior_ptid.
13693
735fc2ca
PA
136942020-01-10 Pedro Alves <palves@redhat.com>
13695
13696 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
13697
c17e02e1
PA
136982020-01-10 Pedro Alves <palves@redhat.com>
13699
13700 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
13701 not -1.
13702
ab1ddbcf
PA
137032020-01-10 Pedro Alves <palves@redhat.com>
13704
13705 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
13706 ptid to get_last_target_status.
13707 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
13708 ptid to get_last_target_status.
13709 * infcmd.c (continue_command): Don't pass a target_waitstatus to
13710 get_last_target_status.
13711 (info_program_command): Don't pass a target_waitstatus to
13712 get_last_target_status.
13713 * infrun.c (init_wait_for_inferior): Use
13714 nullify_last_target_wait_ptid.
13715 (get_last_target_status): Handle nullptr arguments.
13716 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
13717 (print_stop_event): Don't pass a ptid to get_last_target_status.
13718 (normal_stop): Don't pass a ptid to get_last_target_status.
13719 * infrun.h (get_last_target_status, set_last_target_status): Move
13720 comments here and update.
13721 (nullify_last_target_wait_ptid): Declare.
13722 * linux-fork.c (fork_load_infrun_state): Remove local extern
13723 declaration of nullify_last_target_wait_ptid.
13724 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
13725 to get_last_target_status.
13726
f3f8ece4
PA
137272020-01-10 Pedro Alves <palves@redhat.com>
13728
13729 * gdbthread.h (scoped_restore_current_thread)
13730 <dont_restore, restore, m_dont_restore>: Declare.
13731 * thread.c (thread_alive): Add assertion. Return bool.
13732 (switch_to_thread_if_alive): New.
13733 (prune_threads): Switch inferior/thread.
13734 (print_thread_info_1): Switch thread before calling target methods.
13735 (scoped_restore_current_thread::restore): New, factored out from
13736 ...
13737 (scoped_restore_current_thread::~scoped_restore_current_thread):
13738 ... this.
13739 (scoped_restore_current_thread::scoped_restore_current_thread):
13740 Add assertion.
13741 (thread_apply_all_command, thread_select): Use
13742 switch_to_thread_if_alive.
13743 * infrun.c (proceed, restart_threads, handle_signal_stop)
13744 (switch_back_to_stepped_thread): Switch current thread before
13745 calling target methods.
13746
db2d40f7
PA
137472020-01-10 Pedro Alves <palves@redhat.com>
13748
13749 * inferior.c (switch_to_inferior_no_thread): New function,
13750 factored out from ...
13751 (inferior_command): ... here.
13752 * inferior.h (switch_to_inferior_no_thread): Declare.
13753 * mi/mi-main.c (run_one_inferior): Use
13754 switch_to_inferior_no_thread.
13755
bd420a2d
PA
137562020-01-10 Pedro Alves <palves@redhat.com>
13757
13758 * infcmd.c (kill_command): Remove dead code.
13759
ddf5db90
PA
137602020-01-10 Pedro Alves <palves@redhat.com>
13761
13762 * remote.c (remote_target::mourn_inferior): No longer check
13763 whether the target is running.
13764
5018ce90
PA
137652020-01-10 Pedro Alves <palves@redhat.com>
13766
13767 * corelow.c (core_target::has_execution): Change parameter type to
13768 inferior pointer.
13769 * inferior.c (number_of_live_inferiors): Use
13770 inferior::has_execution instead of target_has_execution_1.
13771 * inferior.h (inferior::has_execution): New.
13772 * linux-thread-db.c (thread_db_target::update_thread_list): Use
13773 inferior::has_execution instead of target_has_execution_1.
13774 * process-stratum-target.c
13775 (process_stratum_target::has_execution): Change parameter type to
13776 inferior pointer. Check the inferior's PID instead of
13777 inferior_ptid.
13778 * process-stratum-target.h
13779 (process_stratum_target::has_execution): Change parameter type to
13780 inferior pointer.
13781 * record-full.c (record_full_core_target::has_execution): Change
13782 parameter type to inferior pointer.
13783 * target.c (target_has_execution_1): Change parameter type to
13784 inferior pointer.
13785 (target_has_execution_current): Adjust.
13786 * target.h (target_ops::has_execution): Change parameter type to
13787 inferior pointer.
13788 (target_has_execution_1): Change parameter type to inferior
13789 pointer. Change return type to bool.
13790 * tracefile.h (tracefile_target::has_execution): Change parameter
13791 type to inferior pointer.
13792
74375d18
PA
137932020-01-10 Pedro Alves <palves@redhat.com>
13794
13795 * exceptions.c (print_flush): Remove current_top_target() check.
13796
acdf84a6
PA
137972020-01-10 Pedro Alves <palves@redhat.com>
13798
13799 * remote.c (show_remote_exec_file): Show the current inferior's
13800 exec-file instead of the command variable's value.
13801
ec506636
PA
138022020-01-10 Pedro Alves <palves@redhat.com>
13803
13804 * record-full.c (record_full_resume_ptid): New global.
13805 (record_full_target::resume): Set it.
13806 (record_full_wait_1): Use record_full_resume_ptid instead of
13807 inferior_ptid.
13808
873657b9
PA
138092020-01-10 Pedro Alves <palves@redhat.com>
13810
13811 * gdbthread.h (scoped_restore_current_thread)
13812 <dont_restore, restore, m_dont_restore>: Declare.
13813 * thread.c (thread_alive): Add assertion. Return bool.
13814 (switch_to_thread_if_alive): New.
13815 (prune_threads): Switch inferior/thread.
13816 (print_thread_info_1): Switch thread before calling target methods.
13817 (scoped_restore_current_thread::restore): New, factored out from
13818 ...
13819 (scoped_restore_current_thread::~scoped_restore_current_thread):
13820 ... this.
13821 (scoped_restore_current_thread::scoped_restore_current_thread):
13822 Add assertion.
13823 (thread_apply_all_command, thread_select): Use
13824 switch_to_thread_if_alive.
13825
7f0ae84c
GB
138262020-01-10 George Barrett <bob@bob131.so>
13827
13828 * stap-probe.c (stap_modify_semaphore): Don't check for null
13829 semaphores.
13830 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
13831 for null semaphores.
13832
f5a7c406
AB
138332020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13834
13835 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
13836 all source windows, and maintain horizontal scroll status while
13837 doing so.
13838
9ae6bf64
TT
138392020-01-09 Tom Tromey <tom@tromey.com>
13840
13841 PR tui/18932:
13842 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
13843 update_source_window, not print_source_lines.
13844
b2efe70c
AB
138452020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
13846
13847 * tui/tui.c (tui_enable): Register tui hooks after calling
13848 tui_display_main.
13849
5f23a082
CB
138502020-01-09 Christian Biesinger <cbiesinger@google.com>
13851
13852 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
13853
3061113b
SM
138542020-01-08 Simon Marchi <simon.marchi@efficios.com>
13855
13856 * thread.c (print_thread_info_1): Fix indentation.
13857
57d75002
CB
138582020-01-09 Christian Biesinger <cbiesinger@google.com>
13859
13860 * symtab.c (general_symbol_info::compute_and_set_names): Move the
13861 unique_xmalloc_ptr outside the if to always free the demangled name.
13862
6a053cb1
TT
138632020-01-08 Tom Tromey <tromey@adacore.com>
13864
13865 * xcoffread.c (enter_line_range, read_xcoff_symtab)
13866 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
13867 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
13868 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
13869 Remove.
13870 (section_offsets): New typedef.
13871 * symtab.c (fixup_section, get_msymbol_address): Update.
13872 * symmisc.c (dump_msymbols): Update.
13873 * symfile.h (relative_addr_info_to_section_offsets)
13874 (symfile_map_offsets_to_segments): Update.
13875 * symfile.c (build_section_addr_info_from_objfile)
13876 (init_objfile_sect_indices): Update.
13877 (struct place_section_arg): Change type of "offsets".
13878 (place_section): Update.
13879 (relative_addr_info_to_section_offsets): Change type of
13880 "section_offsets". Remove "num_sections" parameter.
13881 (default_symfile_offsets, syms_from_objfile_1)
13882 (set_objfile_default_section_offset): Update.
13883 (reread_symbols): No need to preserve section offsets by hand.
13884 (symfile_map_offsets_to_segments): Change type of "offsets".
13885 * stap-probe.c (relocate_address): Update.
13886 * stabsread.h (process_one_symbol): Update.
13887 * solib-target.c (struct lm_info_target) <offsets>: Change type.
13888 (solib_target_relocate_section_addresses): Update.
13889 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
13890 Update.
13891 * solib-frv.c (frv_relocate_main_executable): Update.
13892 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
13893 * solib-aix.c (solib_aix_get_section_offsets): Change return
13894 type.
13895 (solib_aix_solib_create_inferior_hook): Update.
13896 * remote.c (remote_target::get_offsets): Update.
13897 * psymtab.c (find_pc_sect_psymtab): Update.
13898 * psympriv.h (struct partial_symbol) <address, text_low,
13899 text_high>: Update.
13900 * objfiles.h (obj_section_offset): Update.
13901 (struct objfile) <section_offsets>: Change type.
13902 <num_sections>: Remove.
13903 (objfile_relocate): Update.
13904 * objfiles.c (entry_point_address_query): Update
13905 (relocate_one_symbol): Change type of "section_offsets".
13906 (objfile_relocate1, objfile_relocate1): Change type of
13907 "new_offsets".
13908 (objfile_rebase1): Update.
13909 * mipsread.c (mipscoff_symfile_read): Update.
13910 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
13911 parameter.
13912 * mdebugread.c (parse_symbol): Change type of "section_offsets".
13913 (parse_external, psymtab_to_symtab_1): Update.
13914 * machoread.c (macho_symfile_offsets): Update.
13915 * ia64-tdep.c (ia64_find_unwind_table): Update.
13916 * hppa-tdep.c (read_unwind_info): Update.
13917 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
13918 * dwarf2read.c (create_addrmap_from_index)
13919 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13920 (process_psymtab_comp_unit_reader, add_partial_symbol)
13921 (add_partial_subprogram, process_full_comp_unit)
13922 (read_file_scope, read_func_scope, read_lexical_block_scope)
13923 (read_call_site_scope, dwarf2_rnglists_process)
13924 (dwarf2_ranges_process, dwarf2_ranges_read)
13925 (dwarf_decode_lines_1, var_decode_location, new_symbol)
13926 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
13927 Update.
13928 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
13929 Update.
13930 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
13931 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
13932 (process_one_symbol): Change type of "section_offsets".
13933 * ctfread.c (get_objfile_text_range): Update.
13934 * coffread.c (coff_symtab_read, enter_linenos)
13935 (process_coff_symbol): Update.
13936 * coff-pe-read.c (add_pe_forwarded_sym): Update.
13937 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
13938
456e800a
TT
139392020-01-08 Tom Tromey <tromey@adacore.com>
13940
13941 * dwarf2read.c (parse_macro_definition): Use std::string.
13942 (parse_macro_definition): Likewise.
13943
6dfa2fc2
TT
139442020-01-08 Tom Tromey <tromey@adacore.com>
13945
13946 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
13947 (ATTR_ALLOC_CHUNK): Remove.
13948
421d1616
TT
139492020-01-08 Tom Tromey <tromey@adacore.com>
13950
13951 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
13952
43816ebc
TT
139532020-01-08 Tom Tromey <tromey@adacore.com>
13954
13955 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
13956 (dwarf2_compute_name, open_dwo_file): Likewise.
13957 (process_enumeration_scope): Use std::vector.
13958 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
13959 (partial_die_info::fixup, dwarf2_start_subfile)
13960 (guess_full_die_structure_name, dwarf2_name): Likewise.
13961 (determine_prefix): Update.
13962 (guess_full_die_structure_name): Make return type const.
13963 (partial_die_full_name): Return unique_xmalloc_ptr.
13964 (DW_FIELD_ALLOC_CHUNK): Remove.
13965
4212d509
TT
139662020-01-07 Tom Tromey <tromey@adacore.com>
13967
13968 PR build/24937:
13969 * stap-probe.c (class stap_static_probe_ops): Add constructor.
13970
06a6207a
JT
139712020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13972
13973 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
13974
153d79c4
AB
139752020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
13976
13977 * stack.c (print_frame_info): Move disassemble_next_line code
13978 inside source_print block.
13979
66182876
EZ
139802020-01-06 Eli Zaretskii <eliz@gnu.org>
13981
13982 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
13983 gdb/signals.h, as we are now using native signal symbols.
13984
cbfa8581
SV
139852020-01-06 Shahab Vahedi <shahab@synopsys.com>
13986
13987 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
13988 overflow by an early check of content vs threshold.
aac66a4c 13989 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
13990 Likewise.
13991
3f602821
EZ
139922020-01-06 Eli Zaretskii <eliz@gnu.org>
13993
13994 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
13995
a08c904d
JT
139962020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
13997
13998 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
13999 export table if no section contains it's RVA.
14000
89a65580
EZ
140012020-01-06 Eli Zaretskii <eliz@gnu.org>
14002
14003 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
14004
8b7fcda2
HD
140052020-01-06 Hannes Domani <ssbssa@yahoo.de>
14006
14007 * source.c (print_source_lines_base): Set last_line_listed.
14008
a61b4f69
SV
140092020-01-06 Shahab Vahedi <shahab@synopsys.com>
14010
14011 * tui/tui-disasm.c: Remove trailing spaces.
14012
559e7e50
EZ
140132020-01-06 Eli Zaretskii <eliz@gnu.org>
14014 Pedro Alves <palves@redhat.com>
14015
14016 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
14017 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
14018 (windows_gdb_signal_to_target): New function, uses the above
14019 enumeration to convert GDB internal signal codes to equivalent
14020 Windows codes.
14021 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
14022 * windows-nat.c: Include "gdb_wait.h".
14023 (get_windows_debug_event): Extract the fatal exception from the
14024 exit status and convert to the equivalent Posix signal number.
14025 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
14026 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
14027 * gdbsupport/gdb_wait.c: New file, implements
14028 windows_status_to_termsig.
14029 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
14030 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
14031
f2302a34
AB
140322020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
14033
14034 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
14035 show_layout.
14036
6a5206eb
LM
140372020-01-05 Luis Machado <luis.machado@linaro.org>
14038
14039 * aarch64-linux-nat.c
14040 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
14041 and bfd_mach_aarch64.
14042
6ec1d75e
PW
140432020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14044
14045 * ui-file.c (stdio_file::can_emit_style_escape)
14046 (tee_file::can_emit_style_escape): Ensure style is used also on
14047 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
14048 to gdb_stdout.
14049 * main.c (set_gdb_data_directory): Use file style to output the
14050 warning that the given pathname is not a directory.
14051 * top.c (show_history_filename, gdb_safe_append_history)
14052 (show_gdb_datadir): Use file style.
14053
44f81a76
HD
140542020-01-03 Hannes Domani <ssbssa@yahoo.de>
14055
14056 * solib-target.c (struct lm_info_target):
14057 Change offsets to be a unique_xmalloc_ptr.
14058 (solib_target_relocate_section_addresses): Update.
14059
25057eb0
HD
140602020-01-03 Hannes Domani <ssbssa@yahoo.de>
14061
14062 * windows-nat.c (windows_clear_solib): Free so_list linked list.
14063
6e2118f5
BE
140642020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
14065
14066 * MAINTAINERS (Write After Approval): Add myself.
14067
8133c7dc
LM
140682020-01-02 Luis Machado <luis.machado@linaro.org>
14069
14070 * proc-service.c (get_ps_regcache): Remove reference to obsolete
14071 Cell BE architecture.
14072 * target.h (struct target_ops) <thread_architecture>: Likewise.
14073
48189bec
HD
140742020-01-01 Hannes Domani <ssbssa@yahoo.de>
14075
14076 * Makefile.in: Use INSTALL_PROGRAM_ENV.
14077
ead1063b
HD
140782020-01-01 Hannes Domani <ssbssa@yahoo.de>
14079
14080 * MAINTAINERS (Write After Approval): Add myself.
14081
e5d78223
JB
140822020-01-01 Joel Brobecker <brobecker@adacore.com>
14083
14084 * gdbarch.sh: Update copyright year range of generated files.
14085
b811d2c2
JB
140862020-01-01 Joel Brobecker <brobecker@adacore.com>
14087
14088 Update copyright year range in all GDB files.
14089
5f4def5c
JB
140902020-01-01 Joel Brobecker <brobecker@adacore.com>
14091
14092 * copyright.py: Convert to Python 3.
14093
51fd4002
JB
140942020-01-01 Joel Brobecker <brobecker@adacore.com>
14095
14096 * copyright.py: Adapt after move of gnulib directory from gdb
14097 directory to toplevel directory.
14098
5fb651f2
JB
140992020-01-01 Joel Brobecker <brobecker@adacore.com>
14100
14101 * copyright.py (main): Exit if run from the wrong directory.
14102
5dd8bf88
JB
141032020-01-01 Joel Brobecker <brobecker@adacore.com>
14104
14105 * top.c (print_gdb_version): Change copyright year to 2020.
14106
9f71dacb 141072020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 14108
9f71dacb 14109 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 14110
9f71dacb 14111For older changes see ChangeLog-2019.
c906108c
SS
14112\f
14113Local Variables:
14114mode: change-log
14115left-margin: 8
14116fill-column: 74
14117version-control: never
57da7796 14118coding: utf-8
c906108c 14119End: