Automatic date update in version.in
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12019-05-14 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
4 value is not lval_memory.
5
62019-05-14 Tom Tromey <tromey@adacore.com>
7
8 * solib.c (info_sharedlibrary_command): Style the file name.
9
102019-05-14 Alan Hayward <alan.hayward@arm.com>
11
12 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
13 (aarch64_vnv_type): Likewise.
14 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
15 * common/tdesc.c: Likewise.
16 * common/tdesc.h (enum tdesc_type_kind): Likewise.
17 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
18 * features/aarch64-fpu.xml: Add ieee half view.
19 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
20 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
21 * gdbtypes.h (struct builtin_type): Likewise.
22 (struct objfile_type): Likewise.
23
242019-05-12 Paul Naert <paul.naert@polymtl.ca>
25
26 * language.c (language_sniff_from_mangled_name): Fix "langauge"
27 typo.
28 * location.h (string_to_event_location): Likewise.
29
302019-05-11 Joel Brobecker <brobecker@adacore.com>
31
32 GDB 8.3 released.
33
342019-05-10 Simon Marchi <simon.marchi@efficios.com>
35
36 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
37 New variable declaration.
38 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
39 New variable.
40 (print_one_breakpoint): Use ui_out::test_flags and new global
41 variable to compute use_fixed_output.
42 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
43 Remove.
44 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
45 (mi_multi_location_breakpoint_output_fixed): Remove.
46 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
47 new variable.
48 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
49 fix_multi_location_breakpoint_output flag if version >= 3.
50 * ui-out.h (enum ui_out_flag)
51 <fix_multi_location_breakpoint_output>: New enumerator.
52
532019-05-10 Simon Marchi <simon.marchi@efficios.com>
54
55 * contrib/cc-with-tweaks.sh: Validate dwz's work.
56
572019-05-10 Tom Tromey <tromey@adacore.com>
58
59 * ada-lang.c (catch_ada_completer): New function.
60 (_initialize_ada_language): Use it.
61
622019-05-10 Tom Tromey <tromey@adacore.com>
63
64 * thread.c (print_thread_info): Make "requested_threads" const.
65 * gdbthread.h (print_thread_info): Make "requested_threads"
66 const.
67 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
68 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
69
702019-05-08 Tom Tromey <tom@tromey.com>
71
72 * gdbtypes.c (objfile_type_data): Change type.
73 (objfile_type, _initialize_gdbtypes): Update.
74
752019-05-08 Tom Tromey <tom@tromey.com>
76
77 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
78 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
79 (_initialize_dwarf2_frame): Update.
80
812019-05-08 Tom Tromey <tom@tromey.com>
82
83 * objc-lang.c (objc_objfile_data): Change type.
84 (find_methods): Update.
85 (_initialize_objc_lang): Remove.
86
872019-05-08 Tom Tromey <tom@tromey.com>
88
89 * stabsread.c (rs6000_builtin_type_data): Change type.
90 (rs6000_builtin_type, _initialize_stabsread): Update.
91
922019-05-08 Tom Tromey <tom@tromey.com>
93
94 * mips-tdep.c (mips_pdr_data): Remove.
95 (_initialize_mips_tdep): Update.
96
972019-05-08 Tom Tromey <tom@tromey.com>
98
99 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
100 (hppa_init_objfile_priv_data, read_unwind_info)
101 (find_unwind_entry, _initialize_hppa_tdep): Update.
102
1032019-05-08 Tom Tromey <tom@tromey.com>
104
105 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
106 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
107 on obstack.
108 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
109
1102019-05-08 Tom Tromey <tom@tromey.com>
111
112 * mdebugread.c (basic_type_data): Change type.
113 (basic_type, _initialize_mdebugread): Update.
114
1152019-05-08 Tom Tromey <tom@tromey.com>
116
117 * common/gdb_unique_ptr.h (struct noop_deleter): New.
118
1192019-05-08 Tom Tromey <tom@tromey.com>
120
121 * nto-tdep.c (nto_inferior_data_reg): Change type.
122 (nto_inferior_data): Update.
123 (nto_inferior_data_cleanup, nto_new_inferior_data)
124 (_initialize_nto_tdep): Remove.
125 * nto-tdep.h (struct nto_inferior_data): Add initializers.
126
1272019-05-08 Tom Tromey <tom@tromey.com>
128
129 * ada-lang.c (struct ada_inferior_data): Add initializers.
130 (ada_inferior_data): Change type.
131 (ada_inferior_data_cleanup): Remove.
132 (get_ada_inferior_data, ada_inferior_exit)
133 (struct ada_pspace_data): Add initializers, destructor.
134 (ada_pspace_data_handle): Change type.
135 (get_ada_pspace_data): Update.
136 (ada_pspace_data_cleanup): Remove.
137
1382019-05-08 Tom Tromey <tom@tromey.com>
139
140 * coffread.c (struct coff_symfile_info): Add initializers.
141 (coff_objfile_data_key): Move lower. Change type.
142 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
143 Update.
144 (coff_free_info): Remove.
145
1462019-05-08 Tom Tromey <tom@tromey.com>
147
148 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
149 (fbsd_pspace_data_handle): Move lower. Change type.
150 (get_fbsd_pspace_data): Update.
151 (fbsd_pspace_data_cleanup): Remove.
152 (_initialize_fbsd_tdep): Update.
153
1542019-05-08 Tom Tromey <tom@tromey.com>
155
156 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
157 (get_ada_tasks_pspace_data): Update.
158 (ada_tasks_pspace_data_cleanup): Remove.
159 (_initialize_tasks): Update.
160 (ada_tasks_inferior_data_handle): Change type.
161 (get_ada_tasks_inferior_data): Update.
162 (ada_tasks_inferior_data_cleanup): Remove.
163 (struct ada_tasks_pspace_data): Add initializers.
164
1652019-05-08 Tom Tromey <tom@tromey.com>
166
167 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
168 * symfile-debug.c (debug_sym_get_probes): Change type.
169 * stap-probe.c (handle_stap_probe):
170 (stap_static_probe_ops::get_probes): Change type.
171 * probe.h (class static_probe_ops) <get_probes>: Change type.
172 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
173 (parse_probes_in_pspace): Update.
174 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
175 Update.
176 (any_static_probe_ops::get_probes): Change type.
177 * elfread.c (elfread_data): New typedef.
178 (probe_key): Change type.
179 (elf_get_probes): Likewise. Update.
180 (probe_key_free): Remove.
181 (_initialize_elfread): Update.
182 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
183 Change type.
184 (dtrace_process_dof_probe, dtrace_process_dof)
185 (dtrace_static_probe_ops::get_probe): Change type.
186
1872019-05-08 Tom Tromey <tom@tromey.com>
188
189 * xcoffread.c (struct xcoff_symfile_info): Rename from
190 coff_symfile_info. Add initializers.
191 (xcoff_objfile_data_key): Move lower. Change type.
192 (XCOFF_DATA): Rewrite.
193 (xcoff_free_info): Remove.
194 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
195 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
196 (xcoff_initial_scan): Update.
197
1982019-05-08 Tom Tromey <tom@tromey.com>
199
200 * solib-svr4.c (struct svr4_info): Add initializers and
201 destructor.
202 <probes_table>: Now an htab_up.
203 (solib_svr4_pspace_data): Change type.
204 (free_probes_table): Simplify.
205 (~svr4_info): Rename from svr4_pspace_data_cleanup.
206 (get_svr4_info, probes_table_htab_remove_objfile_probes)
207 (probes_table_remove_objfile_probes, register_solib_event_probe)
208 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
209 (_initialize_svr4_solib): Update.
210
2112019-05-08 Tom Tromey <tom@tromey.com>
212
213 * remote.c (remote_pspace_data): Change type.
214 (remote_pspace_data_cleanup): Remove.
215 (get_remote_exec_file, set_pspace_remote_exec_file)
216 (_initialize_remote): Update.
217
2182019-05-08 Tom Tromey <tom@tromey.com>
219
220 * breakpoint.c (breakpoint_objfile_key): Change type.
221 (get_breakpoint_objfile_data): Update.
222 (free_breakpoint_objfile_data): Remove.
223 (_initialize_breakpoint): Update.
224
2252019-05-08 Tom Tromey <tom@tromey.com>
226
227 * linux-tdep.c (struct linux_info): Add initializers.
228 (linux_inferior_data): Move. Change type.
229 (invalidate_linux_cache_inf): Update.
230 (linux_inferior_data_cleanup): Remove.
231 (get_linux_inferior_data, _initialize_linux_tdep): Update.
232
2332019-05-08 Tom Tromey <tom@tromey.com>
234
235 * auxv.c (auxv_inferior_data): Move. Change type.
236 (auxv_inferior_data_cleanup): Remove.
237 (invalidate_auxv_cache_inf): Rewrite.
238 (get_auxv_inferior_data, _initialize_auxv): Update.
239
2402019-05-08 Tom Tromey <tom@tromey.com>
241
242 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
243 (symfile_debug_objfile_data_key): Change type.
244 (symfile_debug_installed, debug_qf_has_symbols)
245 (debug_qf_find_last_source_symtab)
246 (debug_qf_forget_cached_source_info)
247 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
248 (debug_qf_print_stats, debug_qf_dump)
249 (debug_qf_expand_symtabs_for_function)
250 (debug_qf_expand_all_symtabs)
251 (debug_qf_expand_symtabs_with_fullname)
252 (debug_qf_map_matching_symbols)
253 (debug_qf_expand_symtabs_matching)
254 (debug_qf_find_pc_sect_compunit_symtab)
255 (debug_qf_map_symbol_filenames)
256 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
257 (debug_sym_new_init, debug_sym_init, debug_sym_read)
258 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
259 (debug_sym_read_linetable, debug_sym_relocate): Update.
260 (symfile_debug_free_objfile): Remove.
261 (install_symfile_debug_logging, _initialize_symfile_debug):
262 Update.
263
2642019-05-08 Tom Tromey <tom@tromey.com>
265
266 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
267 allocate_on_obstack.
268 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
269 (get_dwarf2_per_objfile): Update.
270 (set_dwarf2_per_objfile): Remove.
271 (dwarf2_has_info, dwarf2_get_section_info): Update.
272 (dwarf2_free_objfile): Remove.
273 (_initialize_dwarf2_read): Update.
274
2752019-05-08 Tom Tromey <tom@tromey.com>
276
277 * auto-load.c (struct auto_load_pspace_info): Add destructor and
278 initializers.
279 <unsupported_script_warning_printed,
280 script_not_found_warning_printed>: Now bool.
281 (auto_load_pspace_data): Change type.
282 (~auto_load_pspace_info): Rename from
283 auto_load_pspace_data_cleanup.
284 (get_auto_load_pspace_data, init_loaded_scripts_info)
285 (clear_section_scripts, maybe_print_unsupported_script_warning)
286 (maybe_print_script_not_found_warning, _initialize_auto_load):
287 Update.
288
2892019-05-08 Tom Tromey <tom@tromey.com>
290
291 * objfiles.c (objfile_pspace_info): Add destructor and
292 initializers.
293 (objfiles_pspace_data): Change type.
294 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
295 (get_objfile_pspace_data): Update.
296 (objfiles_bfd_data): Change type.
297 (get_objfile_bfd_data): Update.
298 (objfile_bfd_data_free, _initialize_objfiles): Remove.
299
3002019-05-08 Tom Tromey <tom@tromey.com>
301
302 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
303 Change type.
304 (get_catch_syscall_inferior_data): Update.
305 (catch_syscall_inferior_data_cleanup): Remove.
306 (_initialize_break_catch_syscall): Update.
307
3082019-05-08 Tom Tromey <tom@tromey.com>
309
310 * inflow.c (struct terminal_info): Add destructor and
311 initializers.
312 (inflow_inferior_data): Change type.
313 (~terminal_info): Rename from inflow_inferior_data_cleanup.
314 (get_inflow_inferior_data, inflow_inferior_exit)
315 (swap_terminal_info, _initialize_inflow): Update.
316
3172019-05-08 Tom Tromey <tom@tromey.com>
318
319 * target-dcache.c (target_dcache_cleanup): Remove.
320 (target_dcache_aspace_key): Change type.
321 (target_dcache_init_p, target_dcache_invalidate)
322 (target_dcache_get, target_dcache_get_or_init)
323 (_initialize_target_dcache): Update.
324 * dcache.h (struct dcache_deleter): New.
325
3262019-05-08 Tom Tromey <tom@tromey.com>
327
328 * symtab.c (struct symbol_cache): Add destructor and
329 initializers.
330 (symbol_cache_key): Move. Change type.
331 (make_symbol_cache, free_symbol_cache): Remove.
332 (get_symbol_cache): Update.
333 (symbol_cache_cleanup): Remove.
334 (ALL_PSPACES, symbol_cache_flush)
335 (maintenance_print_symbol_cache)
336 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
337 Update.
338
3392019-05-08 Tom Tromey <tom@tromey.com>
340
341 * symtab.c (struct main_info): Add destructor and initializers.
342 (main_progspace_key): Move. Change type.
343 (get_main_info): Update.
344 (main_info_cleanup): Remove.
345 (_initialize_symtab): Update.
346
3472019-05-08 Tom Tromey <tom@tromey.com>
348
349 * registry.h (DECLARE_REGISTRY): Define the _key class.
350
3512019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * NEWS: Merge two 'New commands' sections.
354
3552019-05-08 Joel Brobecker <brobecker@adacore.com>
356
357 * ada-valprint.c (ada_val_print_gnat_array): Remove language
358 parameter and use Ada language definition instead.
359 (ada_val_print_ptr): Remove unused language parameter.
360 (ada_val_print_num): Remove language parameter and use Ada language
361 definition instead.
362 (ada_val_print_enum, ada_val_print_flt): Remove unused language
363 parameter.
364 (ada_val_print_struct_union, ada_val_print_ref): Remove language
365 parameter and use Ada language definition instead.
366 (ada_val_print_1): Update all ada_val_print_xxx calls.
367 Remove language parameter.
368 (ada_val_print): Update ada_val_print_1 call.
369
3702019-05-08 Tom Tromey <tromey@adacore.com>
371
372 * remote.c (remote_hw_watchpoint_limit)
373 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
374 Now static.
375
3762019-05-08 Tom Tromey <tromey@adacore.com>
377
378 * maint.c (_initialize_maint_cmds): Move initialization code to
379 remote.c.
380 (watchdog, show_watchdog): Move to remote.c.
381 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
382 "watchdog" static.
383 (_initialize_remote): Move initialization code from maint.c.
384 * defs.h (watchdog): Don't declare.
385
3862019-05-08 Tom Tromey <tromey@adacore.com>
387
388 * tui/tui-interp.c: Include main.h.
389 * interps.c: Include main.h.
390 * main.h (interpreter_p): Declare.
391 * defs.h (interpreter_p): Don't declare.
392
3932019-05-08 Tom Tromey <tromey@adacore.com>
394
395 * dwarf2loc.c: Include dwarf2read.h.
396 * defs.h (read_unsigned_leb128): Don't declare.
397 * dwarf2read.h (read_unsigned_leb128): Declare.
398
3992019-05-08 Tom Tromey <tromey@adacore.com>
400
401 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
402 method.
403
4042019-05-08 Tom Tromey <tromey@adacore.com>
405
406 * utils.c (fputs_maybe_filtered): Reset style after paging, even
407 when no wrap column is set.
408
4092019-05-08 Tom Tromey <tromey@adacore.com>
410
411 * c-lang.c (c_get_string): Handle non-C-style arrays.
412
4132019-05-08 Tom Tromey <tromey@adacore.com>
414
415 * typeprint.c (print_offset_data::update): Print the bit offset,
416 not the number of bits remaining.
417
4182019-05-08 Tom Tromey <tromey@adacore.com>
419
420 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
421 padding at end of comment.
422
4232019-05-08 Tom Tromey <tromey@adacore.com>
424
425 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
426 Compare main types.
427
4282019-05-06 Tom Tromey <tom@tromey.com>
429
430 * common/scoped_mmap.c: Include common-defs.h.
431 * common/scoped_mmap.h: Don't include config.h.
432
4332019-05-04 Tom Tromey <tom@tromey.com>
434
435 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
436 (struct aarch64_call_info): Add initializers.
437 <si>: Now a std::vector.
438 (pass_on_stack, aarch64_push_dummy_call): Update.
439
4402019-05-04 Simon Marchi <simon.marchi@efficios.com>
441 Tom Tromey <tom@tromey.com>
442
443 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
444 (ppc_threads): Now a std::vector. Now static.
445 (hwdebug_find_thread_points_by_tid)
446 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
447 Update.
448
4492019-05-04 Tom Tromey <tom@tromey.com>
450
451 * arc-tdep.c (arc_tdesc_init): Return bool.
452
4532019-05-04 Tom Tromey <tom@tromey.com>
454
455 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
456 Use gdb_assert_not_reached.
457
4582019-05-04 Tom Tromey <tom@tromey.com>
459
460 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
461 "false".
462
4632019-05-04 Tom Tromey <tom@tromey.com>
464
465 * arc-tdep.c (arc_tdesc_init): Use bool.
466
4672019-05-04 Tom Tromey <tom@tromey.com>
468
469 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
470
4712019-05-04 Tom Tromey <tom@tromey.com>
472
473 * cli/cli-cmds.c (valid_command_p): Return bool.
474
4752019-05-04 Tom Tromey <tom@tromey.com>
476
477 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
478 * command.h (valid_user_defined_cmd_name_p): Channge return type.
479
4802019-05-04 Raul Tambre <raul@tambre.ee>
481
482 * python/lib/gdb/prompt.py (_ExtendedPrompt)
483 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
484 operator for comparison.
485
4862019-05-04 Tom Tromey <tom@tromey.com>
487
488 * psymtab.c (psymbol_name_matches, match_partial_symbol)
489 (lookup_partial_symbol, print_partial_symbols)
490 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
491 (psymbol_compare): Update.
492 (add_psymbol_to_bcache): Clear the entire psymbol.
493 (maintenance_check_psymtabs): Update.
494 * psympriv.h (struct partial_symbol): Don't derive from
495 general_symbol_info.
496 <obj_section, unrelocated_address, address,
497 set_unrelocated_address>: Update.
498 <ginfo>: New member.
499 * dwarf-index-write.c (write_psymbols, debug_names::insert)
500 (debug_names::write_psymbols): Update.
501
5022019-05-04 Tom de Vries <tdevries@suse.de>
503
504 * contrib/cc-with-tweaks.sh: Support -n arg.
505
5062019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
507
508 * corelow.c (core_target::detach): Ensure frame cache and
509 register caches are cleared.
510 inferior.c (exit_inferior_1): Likewise.
511
5122019-05-03 Sandra Loosemore <sandra@codesourcery.com>
513 Tom Tromey <tom@tromey.com>
514
515 * dictionary.c (collate_pending_symbols_by_language): Remove
516 "struct" from foreach.
517 * symtab.c (lookup_global_symbol_from_objfile)
518 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
519 foreach.
520 * ser-tcp.c (net_open): Remove "struct" from foreach.
521 * objfiles.c (objfile_relocate, objfile_rebase)
522 (objfile_has_symbols): Remove "struct" from foreach.
523 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
524 from foreach.
525 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
526 foreach.
527 * darwin-nat.c (thread_info_from_private_thread_info): Remove
528 "struct" from foreach.
529 * ada-lang.c (create_excep_cond_exprs)
530 (ada_exception_catchpoint_cond_string): Remove "struct" from
531 foreach.
532
5332019-05-03 Tom Tromey <tromey@adacore.com>
534
535 * ada-exp.y (convert_char_literal): Check suffix of each
536 enumerator.
537
5382019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
539
540 PR ada/21406:
541 * ada-exp.y (yywrap): Don't define.
542 * ada-lex.l (%option): Add noyywrap
543 (yywrap): Remove.
544
5452019-05-03 Eli Zaretskii <eliz@gnu.org>
546
547 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
548 _WIN32_WINNT to the XP level, unless already defined to a higher
549 level.
550
551 * unittests/parse-connection-spec-selftests.c:
552 * ser-tcp.c:
553 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
554 override.
555
556 * symfile.c (find_separate_debug_file): Remove colon from the
557 drive spec of DOS/Windows file names of the target, so that the
558 file name produced from DEBUGDIR and the target's directory will
559 be valid on DOS/Windows systems.
560
5612019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * rust-lang.c (val_print_struct): Handle printing structures
564 containing strings.
565
5662019-05-02 Tom Tromey <tromey@adacore.com>
567
568 * valarith.c (_initialize_valarith): Remove.
569
5702019-05-01 Tom Tromey <tromey@adacore.com>
571
572 * ada-lang.c (ada_value_primitive_field): Treat more fields as
573 bitfields.
574
5752019-05-01 Tom Tromey <tromey@adacore.com>
576
577 * ada-lang.c (ada_value_assign): Correctly compute starting offset
578 for big-endian copies.
579
5802019-04-30 Ali Tamur <tamur@google.com>
581 * gdb/dwarf2read.c (read_3_bytes): New declaration.
582 (read_attribute_value): Added DW_FORM_strx1-4 cases.
583 (read_3_bytes): New function.
584
5852019-04-30 Joel Brobecker <brobecker@adacore.com>
586
587 * windows-nat.c (main_thread_id): Delete.
588 (handle_output_debug_string): Replace main_thread_id by
589 current_event.dwThreadId.
590 (fake_create_process): Likewise.
591 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
592 Do not set main_thread_id.
593 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
594 current_event.dwThreadId.
595 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
596
5972019-04-30 Joel Brobecker <brobecker@adacore.com>
598
599 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
600 Use current_event.dwThreadId instead of main_thread_id.
601
6022019-04-30 Tom Tromey <tromey@adacore.com>
603
604 * ada-lang.c (ada_lookup_simple_minsyms): New function.
605 (create_excep_cond_exprs): Iterate over program spaces.
606 (ada_exception_catchpoint_cond_string): Examine all minimal
607 symbols for exception types.
608
6092019-04-30 Tom Tromey <tromey@adacore.com>
610
611 PR c++/24470:
612 * dwarf2read.c (process_structure_scope): Handle case where type
613 has template parameters but no symbol was created.
614
6152019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
616 Chris January <chris.january@arm.com>
617
618 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
619 qualifier.
620 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
621
6222019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
623
624 * f-typeprint.c (f_print_type): Update rules for printing
625 whitespace.
626 (f_type_print_varspec_suffix): Likewise.
627
6282019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
629 Chris January <chris.january@arm.com>
630
631 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
632 function arguments.
633
6342019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
635
636 * f-lang.c (build_fortran_types): Change name of void type to
637 lower case.
638 * f-typeprint.c (f_type_print_base): Print the name of the void
639 type, rather than a fixed string.
640 * f-valprint.c (f_decorations): Use lower case void string.
641
6422019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
643 Chris January <chris.january@arm.com>
644
645 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
646 types for Fortran.
647
6482019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
649 Chris January <chris.january@arm.com>
650 David Lecomber <david.lecomber@arm.com>
651
652 * f-exp.y (BINOP_INTRINSIC): New token.
653 (exp): New parser rule handling BINOP_INTRINSIC.
654 (f77_keywords): Add new builtin procedures.
655 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
656 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
657 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
658 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
659 (print_unop_subexp_f): New function.
660 (print_binop_subexp_f): New function.
661 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
662 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
663 (dump_subexp_body_f): Likewise.
664 (operator_check_f): Likewise.
665 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
666 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
667
6682019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
669
670 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
671 UNOP_KIND.
672 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
673 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
674 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
675 (operator_length_f): New fuction.
676 (print_subexp_f): New function.
677 (op_name_f): New function.
678 (dump_subexp_body_f): New function.
679 (operator_check_f): New function.
680 (exp_descriptor_f): Replace standard expression handling functions
681 with new functions.
682 * gdb/fortran-operator.def: New file.
683 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
684 * gdb/std-operator.def: Remove UNOP_KIND.
685
6862019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
687
688 * std-operator.def: Remove unbalanced, stray double quote
689 character.
690
6912019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
692 Chris January <chris.january@arm.com>
693 Daniel Everett <daniel.everett@arm.com>
694 Nick Forrington <nick.forrington@arm.com>
695 Richard Bunt <richard.bunt@arm.com>
696
697 * cp-valprint.c (cp_print_value_fields): Allow an additional level
698 of depth when printing anonymous structs or unions.
699 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
700 Don't print either the top-level value, or the children if the
701 max-depth is exceeded.
702 (ppscm_print_children): When printing the key of a map, allow one
703 extra level of depth.
704 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
705 print either the top-level value, or the children if the max-depth
706 is exceeded.
707 (print_children): When printing the key of a map, allow one extra
708 level of depth.
709 * python/py-value.c (valpy_format_string): Add max_depth keyword.
710 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
711 (user_print_options): Initialise max_depth field.
712 (val_print_scalar_or_string_type_p): New function.
713 (val_print): Check to see if the max depth has been reached.
714 (val_print_check_max_depth): Define new function.
715 (show_print_max_depth): New function.
716 (_initialize_valprint): Add 'print max-depth' option.
717 * valprint.h (struct value_print_options) <max_depth>: New field.
718 (val_print_check_max_depth): Declare new function.
719 * NEWS: Document new feature.
720
7212019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 * ada-lang.c (ada_language_defn): Initialise new field.
724 * c-lang.c (c_is_string_type_p): New function.
725 (c_language_defn): Initialise new field.
726 (cplus_language_defn): Initialise new field.
727 (asm_language_defn): Initialise new field.
728 (minimal_language_defn): Initialise new field.
729 * c-lang.h (c_is_string_type_p): Declare new function.
730 * d-lang.c (d_language_defn): Initialise new field.
731 * f-lang.c (f_is_string_type_p): New function.
732 (f_language_defn): Initialise new field.
733 * go-lang.c (go_is_string_type_p): New function.
734 (go_language_defn): Initialise new field.
735 * language.c (default_is_string_type_p): New function.
736 (unknown_language_defn): Initialise new field.
737 (auto_language_defn): Initialise new field.
738 * language.h (struct language_defn) <la_is_string_type_p>: New
739 member variable.
740 (default_is_string_type_p): Declare new function.
741 * m2-lang.c (m2_language_defn): Initialise new field.
742 * objc-lang.c (objc_language_defn): Initialise new field.
743 * opencl-lang.c (opencl_language_defn): Initialise new field.
744 * p-lang.c (pascal_is_string_type_p): New function.
745 (pascal_language_defn): Initialise new field.
746 * rust-lang.c (rust_is_string_type_p): New function.
747 (rust_language_defn): Initialise new field.
748
7492019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
750
751 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
752 New field.
753 * ada-lang.c (ada_language_defn): Initialise new field.
754 * c-lang.c (c_language_defn): Likewise.
755 (cplus_language_defn): Likewise.
756 (asm_language_defn): Likewise.
757 (minimal_language_defn): Likewise.
758 * d-lang.c (d_language_defn): Likewise.
759 * f-lang.c (f_language_defn): Likewise.
760 * go-lang.c (go_language_defn): Likewise.
761 * language.c (unknown_language_defn): Likewise.
762 (auto_language_defn): Likewise.
763 * m2-lang.c (m2_language_defn): Likewise.
764 * objc-lang.c (objc_language_defn): Likewise.
765 * opencl-lang.c (opencl_language_defn): Likewise.
766 * p-lang.c (pascal_language_defn): Likewise.
767 * rust-lang.c (rust_language_defn): Likewise.
768
7692019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * ada-lang.c (ada_is_character_type): Change return type to bool.
772 (ada_is_string_type): Likewise.
773 * ada-lang.h (ada_is_character_type): Update declaration
774 (ada_is_string_type): Likewise.
775
7762019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
777
778 Support style in 'frame|thread apply'
779
780 * gdbcmd.h (execute_command_to_string): New term_out parameter.
781 * record.c (record_start, record_stop): Update callers of
782 execute_command_to_string with false.
783 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
784 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
785 methods.
786 (class string_file): New constructor with term_out parameter.
787 Override methods term_out and can_emit_style_escape. New member
788 term_out.
789 (class stdio_file): Override can_emit_style_escape.
790 (class tee_file): Override term_out and can_emit_style_escape.
791 * utils.h (can_emit_style_escape): Remove.
792 * utils.c (can_emit_style_escape): Likewise.
793 Update all callers of can_emit_style_escape (SOMESTREAM) to
794 SOMESTREAM->can_emit_style_escape.
795 * source-cache.c (source_cache::get_source_lines): Likewise.
796 * stack.c (frame_apply_command_count): Call execute_command_to_string
797 passing the term_out characteristic of the current gdb_stdout.
798 * thread.c (thr_try_catch_cmd): Likewise.
799 * top.c (execute_command_to_string): pass term_out parameter
800 to construct the string_file for the command output.
801 * ui-file.c (term_cli_styling): New function (most code moved
802 from utils.c can_emit_style_escape).
803 (string_file::string_file, string_file::can_emit_style_escape,
804 stdio_file::can_emit_style_escape, tee_file::term_out,
805 tee_file::can_emit_style_escape): New functions.
806
8072019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
808
809 * NEWS: Mention the new set|show may-call-functions.
810 * infcall.c (may_call_functions_p): New variable.
811 (show_may_call_functions_p): New function.
812 (call_function_by_hand_dummy): Throws an error if not
813 may-call-functions.
814 (_initialize_infcall): Call add_setshow_boolean_cmd for
815 may-call-functions.
816
8172019-04-25 Keith Seitz <keiths@redhat.com>
818
819 PR c++/24367
820 * cp-support.c (inspect_type): Don't attempt substitutions
821 of symbol with the same name.
822
8232019-04-25 Tom Tromey <tromey@adacore.com>
824
825 PR gdb/24475:
826 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
827 static.
828
8292019-04-25 Tom Tromey <tromey@adacore.com>
830
831 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
832 rvalue reference.
833 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
834 (gdb_xml_parser::parse): Use std::move.
835 * python/python-internal.h (gdbpy_convert_exception): Take a const
836 reference.
837 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
838 std::move.
839 * python/py-utils.c (gdbpy_convert_exception): Take a const
840 reference.
841 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
842 Use std::move.
843 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
844 Use std::move.
845 * mi/mi-main.c (mi_print_exception): Take a const reference.
846 * main.c (handle_command_errors): Take a const reference.
847 * linespec.c (parse_linespec): Use std::move.
848 * infcall.c (run_inferior_call): Use std::move.
849 (call_function_by_hand_dummy): Use std::move.
850 * exec.c (try_open_exec_file): Use std::move.
851 * exceptions.h (exception_print, exception_fprintf)
852 (exception_print_same): Update.
853 * exceptions.c (print_exception, exception_print)
854 (exception_fprintf, exception_print_same): Change parameters to
855 const reference.
856 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
857 * common/new-op.c: Use std::move.
858 * common/common-exceptions.h (struct gdb_exception): Add move
859 constructor.
860 (struct gdb_exception_error, struct gdb_exception_quit, struct
861 gdb_quit_bad_alloc): Change constructor to move constructor.
862 (throw_exception): Change parameter to rvalue reference.
863 * common/common-exceptions.c (throw_exception): Take rvalue
864 reference.
865 * cli/cli-interp.c (safe_execute_command): Use std::move.
866 * breakpoint.c (insert_bp_location, location_to_sals): Use
867 std::move.
868
8692019-04-25 Tom Tromey <tromey@adacore.com>
870
871 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
872 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
873 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
874 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
875 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
876 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
877 guile/scm-value.c: Use unpack.
878 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
879 gdbscm_gdb_exception.
880 (gdbscm_throw_gdb_exception): Likewise.
881 (struct gdbscm_gdb_exception): New.
882 (unpack): New function.
883 (gdbscm_wrap): Use unpack.
884
8852019-04-25 Tom Tromey <tromey@adacore.com>
886
887 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
888 (gdb_rl_callback_handler): Use std::move.
889 * common/common-exceptions.h (struct gdb_exception): Add move
890 assignment operator.
891 (throw_exception_sjlj): Change "exception" to const reference.
892 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
893 (throw_exception_sjlj): Change "exception" to const reference.
894
8952019-04-25 Tom Tromey <tromey@adacore.com>
896
897 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
898 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
899 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
900 Update.
901 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
902 Update.
903 * mi/mi-interp.c (mi_interp::exec): Update.
904 * linespec.c (parse_linespec): Update.
905 * infcall.c (run_inferior_call): Update.
906 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
907 * guile/scm-symbol.c (gdbscm_lookup_symbol)
908 (gdbscm_lookup_global_symbol): Update.
909 * guile/scm-param.c (gdbscm_parameter_value): Update.
910 * guile/scm-frame.c (gdbscm_frame_read_register)
911 (gdbscm_frame_read_var): Update.
912 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
913 * exec.c (try_open_exec_file): Update.
914 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
915 (gdb_rl_callback_handler): Update.
916 * common/common-exceptions.h (exception_none): Don't declare.
917 * common/common-exceptions.c (exception_none): Don't define.
918 (struct catcher) <exception>: Update.
919 * cli/cli-interp.c (safe_execute_command): Update.
920 * breakpoint.c (insert_bp_location, location_to_sals): Update.
921
9222019-04-25 Ali Tamur <tamur@google.com>
923
924 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
925 (read_attribute_value): Likewise.
926 (dwarf2_read_addr_index): Update comment.
927 (read_str_index): Add DW_FORM_strx.
928 (dwarf2_string_attr): Likewise.
929 (dwarf2_const_value_attr): Likewise.
930 (dump_die_shallow): Likewise.
931 (dwarf2_fetch_constant_bytes): Likewise.
932 (skip_form_bytes): Likewise.
933 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
934
9352019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
936
937 PR corefiles/11608
938 PR corefiles/18187
939 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
940 OFFSET. Verify if current mapping contains an ELF header.
941 (linux_find_memory_regions_full): Adjust call to
942 dump_mapping_p.
943
9442019-04-25 Sandra Loosemore <sandra@codesourcery.com>
945 Kang Li <kanglictf@gmail.com>
946
947 PR gdb/21600
948
949 * dwarf2-frame.c (read_initial_length): Be consistent about using
950 unsigned representation of length.
951 (decode_frame_entry_1): Likewise. Check for wraparound of
952 end pointer as well as buffer overflow.
953
9542019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
955
956 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
957 "vq".
958
9592019-04-24 Tom Tromey <tromey@adacore.com>
960
961 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
962
9632019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
964
965 * s12z-tdep.c (s12z_unwind_pc): Delete.
966 (s12z_unwind_sp): Delete.
967 (s12z_gdbarch_init): Don't register deleted functions with
968 gdbarch.
969
9702019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
971
972 * rl78-tdep.c (rl78_unwind_sp): Delete.
973 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
974
9752019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
976
977 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
978 (xstormy16_unwind_pc): Delete.
979 (xstormy16_dummy_id): Delete.
980 (xstormy16_gdbarch_init): Don't register deleted functions with
981 gdbarch.
982
9832019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
984
985 * vax-tdep.c (vax_unwind_pc): Delete.
986 (vax_gdbarch_init): Don't register deleted function with gdbarch.
987
9882019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
989
990 * v850-tdep.c (v850_unwind_sp): Delete.
991 (v850_unwind_pc): Delete.
992 (v850_dummy_id): Delete.
993 (v850_gdbarch_init): Don't register deleted functions with
994 gdbarch.
995
9962019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
997
998 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
999 (tilegx_unwind_pc): Delete.
1000 (tilegx_unwind_dummy_id): Delete.
1001 (tilegx_gdbarch_init): Don't register deleted functions with
1002 gdbarch.
1003
10042019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1005
1006 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
1007 (tic6x_dummy_id): Delete.
1008 (tic6x_gdbarch_init): Don't register deleted functions with
1009 gdbarch.
1010
10112019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * sparc-tdep.c (sparc_unwind_pc): Delete.
1014 (sparc32_gdbarch_init): Don't register deleted function with
1015 gdbarch.
1016
10172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1018
1019 * sh-tdep.c (sh_unwind_sp): Delete.
1020 (sh_unwind_pc): Delete.
1021 (sh_dummy_id): Delete.
1022 (sh_gdbarch_init): Don't register deleted functions with
1023 gdbarch.
1024
10252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1026
1027 * score-tdep.c (score_unwind_sp): Delete.
1028 (score_unwind_pc): Delete.
1029 (score_dummy_id): Delete.
1030 (score_gdbarch_init): Don't register deleted functions with
1031 gdbarch.
1032
10332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * rx-tdep.c (rx_unwind_pc): Delete.
1036 (rx_unwind_sp): Delete.
1037 (rx_dummy_id): Delete.
1038 (rx_gdbarch_init): Don't register deleted functions with
1039 gdbarch. Update comment.
1040
10412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1042
1043 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
1044 (rs6000_dummy_id): Delete.
1045 (rs6000_gdbarch_init): Don't register deleted functions with
1046 gdbarch.
1047
10482019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1049
1050 * or1k-tdep.c (or1k_dummy_id): Delete.
1051 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
1052
10532019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1054
1055 * nios2-tdep.c (nios2_dummy_id): Delete.
1056 (nios2_unwind_sp): Delete.
1057 (nios2_gdbarch_init): Don't register deleted functions with
1058 gdbarch.
1059
10602019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1061
1062 * nds32-tdep.c (nds32_dummy_id): Delete.
1063 (nds32_unwind_pc): Delete.
1064 (nds32_unwind_sp): Delete.
1065 (nds32_gdbarch_init): Don't register deleted functions with
1066 gdbarch.
1067
10682019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1069
1070 * msp430-tdep.c (msp430_unwind_pc): Delete.
1071 (msp430_unwind_sp): Delete.
1072 (msp430_dummy_id): Delete.
1073 (msp430_gdbarch_init): Don't register deleted functions with
1074 gdbarch.
1075
10762019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1077
1078 * moxie-tdep.c (moxie_unwind_sp): Delete.
1079 (moxie_unwind_pc): Delete.
1080 (moxie_dummy_id): Delete.
1081 (moxie_gdbarch_init): Don't register deleted functions with
1082 gdbarch.
1083
10842019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1085
1086 * mn10300-tdep.c (mn10300_dummy_id): Delete.
1087 (mn10300_unwind_pc): Delete.
1088 (mn10300_unwind_sp): Delete.
1089 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
1090 mn10300_unwind_sp.
1091 (mn10300_frame_unwind_init): Don't register deleted functions with
1092 gdbarch.
1093
10942019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1095
1096 * mep-tdep.c (mep_unwind_pc): Delete.
1097 (mep_unwind_sp): Delete.
1098 (mep_dummy_id): Delete.
1099 (mep_gdbarch_init): Don't register deleted functions with
1100 gdbarch.
1101
11022019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1103
1104 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
1105 (m68hc11_unwind_sp): Delete.
1106 (m68hc11_gdbarch_init): Don't register deleted functions with
1107 gdbarch.
1108
11092019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1110
1111 * m32r-tdep.c (m32r_unwind_sp): Delete.
1112 (m32r_unwind_pc): Delete.
1113 (m32r_dummy_id): Delete.
1114 (m32r_gdbarch_init): Don't register deleted functions with
1115 gdbarch.
1116
11172019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1118
1119 * m32c-tdep.c (m32c_unwind_pc): Delete.
1120 (m32c_unwind_sp): Delete.
1121 (m32c_dummy_id): Delete.
1122 (m32c_gdbarch_init): Don't register deleted functions with
1123 gdbarch.
1124
11252019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1126
1127 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
1128 (lm32_unwind_pc): Delete.
1129 (lm32_dummy_id): Delete.
1130 (lm32_gdbarch_init): Don't register deleted functions with
1131 gdbarch.
1132
11332019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1134
1135 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
1136 (iq2000_unwind_pc): Delete.
1137 (iq2000_dummy_id): Delete.
1138 (iq2000_gdbarch_init): Don't register deleted functions with
1139 gdbarch.
1140
11412019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * nds32-tdep.c (nds32_type_align): Delete.
1144 (nds32_push_dummy_call): Use type_align instead.
1145
11462019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1147
1148 * arm-tdep.c (arm_type_align): Only handle vector override case.
1149 (arm_push_dummy_call): Use type_align.
1150 (arm_gdbarch_init): Register arm_type_align gdbarch function.
1151
11522019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
1153
1154 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
1155 case.
1156 (pass_on_stack): Use type_align.
1157 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
1158 function.
1159
11602019-04-23 Tom Tromey <tromey@adacore.com>
1161
1162 * dwarf2read.c (line_header::file_name_at): Remove unused
1163 overload.
1164
11652019-04-23 Tom de Vries <tdevries@suse.de>
1166
1167 PR gdb/24438
1168 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
1169 invocation.
1170
1171
11722019-03-27 Ali Tamur <tamur@google.com>
1173
1174 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
1175 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
1176 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
1177 (dwarf_expr_context::get_addr_index): Likewise
1178 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
1179 (symbol_needs_eval_context::get_addr_index): Likewise
1180 (disassemble_dwarf_expression): Add DW_OP_addrx
1181 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
1182 (read_cutu_die_from_dwo): Update comment
1183 (skip_one_die): Add DW_FORM_addrx
1184 (read_attribute_value): Likewise
1185 (var_decode_location): Add DW_OP_addrx
1186 (dwarf2_const_value_attr): Add DW_FORM_addrx
1187 (dump_die_shallow): Likewise
1188 (dwarf2_fetch_constant_bytes): Likewise
1189 (decode_locdesc): Add DW_OP_addrx
1190 (skip_form_bytes): Add DW_FORM_addrx
1191
11922019-04-22 Ali Tamur <tamur@google.com>
1193
1194 * MAINTAINERS (Write After Approval): Add self.
1195
11962019-04-22 Simon Marchi <simon.marchi@efficios.com>
1197
1198 * solib-svr4.c (get_svr4_info): Add pspace parameter.
1199 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
1200 (open_symbol_file_object): Likewise.
1201 (svr4_default_sos): Add info parameter.
1202 (svr4_read_so_list): Likewise.
1203 (svr4_current_sos_direct): Adjust functions calls to pass down
1204 info.
1205 (svr4_current_sos_1): Add info parameter.
1206 (svr4_current_sos): Call get_svr4_info, pass info down to
1207 svr4_current_sos_1.
1208 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
1209 get_svr4_info.
1210 (svr4_in_dynsym_resolve_code): Pass current_program_space to
1211 get_svr4_info.
1212 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
1213 to get_svr4_info.
1214 (probes_table_remove_objfile_probes): Likewise.
1215 (register_solib_event_probe): Add info parameter.
1216 (solist_update_incremental): Pass info parameter down to
1217 svr4_read_so_list.
1218 (disable_probes_interface): Add info parameter.
1219 (svr4_handle_solib_event): Pass current_program_space to
1220 get_svr4_info. Adjust disable_probes_interface cleanup.
1221 (svr4_create_probe_breakpoints): Add info parameter, pass it
1222 down to register_solib_event_probe.
1223 (svr4_create_solib_event_breakpoints): Add info parameter,
1224 pass it down to svr4_create_probe_breakpoints.
1225 (enable_break): Pass info down to
1226 svr4_create_solib_event_breakpoints.
1227 (svr4_solib_create_inferior_hook): Pass current_program_space to
1228 get_svr4_info.
1229 (svr4_clear_solib): Likewise.
1230
12312019-04-22 Pedro Alves <palves@redhat.com>
1232
1233 * solib-svr4.c (svr4_free_objfile_observer): New.
1234 (probe_and_action::objfile): New field.
1235 (probes_table_htab_remove_objfile_probes)
1236 (probes_table_remove_objfile_probes): New functions.
1237 (register_solib_event_probe): Add 'objfile' parameter. Store it
1238 in the new probe_and_action. Don't store the probe in 'lookup'.
1239 (svr4_create_probe_breakpoints): Pass objfile to
1240 register_solib_event_probe.
1241 (_initialize_svr4_solib): Register a free_objfile observer.
1242
12432019-04-19 Tom Tromey <tom@tromey.com>
1244
1245 * common/queue.h: Remove.
1246
12472019-04-19 Tom Tromey <tom@tromey.com>
1248
1249 * event-loop.c: Don't include "common/queue.h".
1250
12512019-04-19 Tom Tromey <tom@tromey.com>
1252
1253 * remote.c (remote_target): Use delete.
1254 * remote-notif.h: Include <list>, not "common/queue.h".
1255 (notif_client_p): Remove typedef.
1256 (remote_notif_state): Add constructor, destructor, initializer.
1257 <notif_queue>: Now a std::list.
1258 (remote_notif_state_xfree): Don't declare.
1259 * remote-notif.c (remote_notif_process, handle_notification)
1260 (remote_notif_state_allocate): Update.
1261 (~remote_notif_state): Rename from remote_notif_state_xfree.
1262
12632019-04-19 Tom Tromey <tom@tromey.com>
1264
1265 * symfile.c (reread_symbols): Update.
1266 * objfiles.c (objfile_register_static_link)
1267 (objfile_lookup_static_link): Update
1268 (~objfile) Don't delete static_links.
1269 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
1270
12712019-04-19 Tom Tromey <tom@tromey.com>
1272
1273 * type-stack.h (struct type_stack) <insert>: Constify string.
1274 * type-stack.c (type_stack::insert): Constify string.
1275 * gdbtypes.h (lookup_template_type): Update.
1276 (address_space_name_to_int): Update.
1277 * gdbtypes.c (address_space_name_to_int): Make space_identifier
1278 const.
1279 (lookup_template_type): Make name const.
1280 * c-exp.y: Update rules.
1281 (lex_one_token, classify_name, classify_inner_name)
1282 (c_print_token): Update.
1283 * p-exp.y: Update rules.
1284 (yylex): Update.
1285 * f-exp.y: Update rules.
1286 (yylex): Update.
1287 * d-exp.y: Update rules.
1288 (lex_one_token, classify_name, classify_inner_name): Update.
1289 * parse.c (write_dollar_variable, copy_name): Return std::string.
1290 * parser-defs.h (copy_name): Change return type.
1291 * m2-exp.y: Update rules.
1292 (yylex): Update.
1293 * go-exp.y (lex_one_token): Update.
1294 Update rules.
1295 (classify_unsafe_function, classify_packaged_name)
1296 (classify_name, yylex): Update.
1297
12982019-04-19 Sergei Trofimovich <siarheit@google.com>
1299
1300 * configure.ac: add --enable-source-highlight switch.
1301 * configure: Regenerate.
1302 * top.c (print_gdb_version): plumb --enable-source-highlight
1303 status to "show configuration".
1304
13052019-04-19 Tom Tromey <tromey@adacore.com>
1306
1307 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
1308 Check ADA_TYPE_P.
1309 (empty_record, ada_template_to_fixed_record_type_1)
1310 (template_to_static_fixed_type)
1311 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
1312 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
1313 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
1314 macros.
1315
13162019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
1317
1318 PR symtab/24423:
1319 * source.c (print_source_lines_base): Advance "iter" when a
1320 control character is seen.
1321
13222019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1323
1324 * inferior.h (struct infcall_suspend_state_deleter):
1325 Catch exception in destructor to avoid crash.
1326
13272019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1328
1329 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
1330 close to the add_com "shell".
1331
13322019-04-18 Tom Tromey <tromey@adacore.com>
1333
1334 * process-stratum-target.h (class process_stratum_target)
1335 <stratum>: Add "final".
1336
13372019-04-17 Tom Tromey <tromey@adacore.com>
1338
1339 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
1340 against nullptr before use.
1341
13422019-04-17 Alan Hayward <alan.hayward@arm.com>
1343
1344 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
1345
13462019-04-17 Jim Wilson <jimw@sifive.com>
1347 Andrew Burgess <andrew.burgess@embecosm.com>
1348
1349 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
1350 code read might fail, assume 4-byte breakpoint in that case.
1351
13522019-04-15 Leszek Swirski <leszeks@google.com>
1353
1354 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
1355 rather than a hand-rolled POD check when checking for forced MEMORY
1356 classification.
1357
13582019-04-15 Alan Hayward <alan.hayward@arm.com>
1359
1360 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
1361 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
1362 function.
1363 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
1364 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
1365 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
1366 declaration.
1367
13682019-04-15 Alan Hayward <alan.hayward@arm.com>
1369
1370 * aarch64-linux-nat.c
1371 (aarch64_linux_nat_target::thread_architecture): Add override.
1372 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
1373 each VQ.
1374
13752019-04-15 Alan Hayward <alan.hayward@arm.com>
1376
1377 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
1378
13792019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
1380
1381 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
1382 target types of size 96-bits, add some additional comments, and
1383 check that the builtin type we found was the correct size.
1384
13852019-04-12 Eli Zaretskii <eliz@gnu.org>
1386
1387 * utils.c (prompt_for_continue): Don't restore the styling at the
1388 end, as applied_style has the wrong value. This fixes styling in
1389 long lists of file names that are interrupted by the "Continue?"
1390 prompt.
1391
13922019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
1395 * c-lang.c (c_language_defn): Likewise.
1396 (cplus_language_defn): Likewise.
1397 (asm_language_defn): Likewise.
1398 (minimal_language_defn): Likewise.
1399 * d-lang.c (d_language_defn): Likewise.
1400 * f-lang.c (f_language_defn): Likewise.
1401 * go-lang.c (go_language_defn): Likewise.
1402 * language.c (unknown_language_defn): Likewise.
1403 (auto_language_defn): Likewise.
1404 * language.h (struct language_defn): Remove la_magic field.
1405 (LANG_MAGIC): Delete.
1406 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
1407 * objc-lang.c (objc_language_defn): Likewise.
1408 * opencl-lang.c (opencl_language_defn): Likewise.
1409 * p-lang.c (pascal_language_defn): Likewise.
1410 * rust-lang.c (rust_language_defn): Likewise.
1411
14122019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1413
1414 * riscv-tdep.c (riscv_type_align): New function.
1415 (riscv_type_alignment): Delete.
1416 (riscv_arg_location): Use 'type_align'.
1417 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
1418
14192019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1420
1421 * gdbtypes.c (type_align): A struct with no non-static fields also
1422 has alignment of 1.
1423
14242019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
1427 component to 0.
1428 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
1429 member.
1430 (riscv_struct_info::analyse): New implementation using new
1431 analyse_inner member function.
1432 (riscv_struct_info::field_offset): New member function.
1433 (riscv_struct_info::m_offsets): New member variable.
1434 (riscv_struct_info::analyse_inner): New private member function,
1435 takes the old implementation of riscv_struct_info::analyse but
1436 extended to track field offsets.
1437 (riscv_call_arg_struct): Update the struct folding special cases
1438 to handle cases where empty C++ structs, which are non-zero
1439 length, are found.
1440 (riscv_arg_location): Initialise the length of each location, a
1441 non-zero length now indicates the location is in use.
1442 (riscv_push_dummy_call): Allow for the first location having a
1443 non-zero offset when setting up arguments.
1444 (riscv_return_value): Likewise, but for return values.
1445
14462019-04-11 Tom Tromey <tromey@adacore.com>
1447
1448 * utils.c (internal_vproblem): Make "msg" const.
1449
14502019-04-11 Alan Hayward <alan.hayward@arm.com>
1451
1452 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
1453 * trad-frame.c (trad_frame_reset_saved_regs): New function.
1454 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
1455 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
1456
14572019-04-10 Kevin Buettner <kevinb@redhat.com>
1458
1459 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
1460 function.
1461 (fill_gregset): Call amd64_linux_collect_native_gregset instead
1462 of amd64_collect_native_gregset.
1463 (amd64_linux_nat_target::store_registers): Likewise.
1464
14652019-04-10 Tom Tromey <tom@tromey.com>
1466
1467 * symtab.c (lookup_global_symbol_from_objfile)
1468 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
1469 * objfiles.h (class separate_debug_iterator): New.
1470 (class separate_debug_range): New.
1471 (struct objfile) <separate_debug_objfiles>: New method.
1472 (objfile_separate_debug_iterate): Don't declare.
1473 * objfiles.c (separate_debug_iterator::operator++): Rename from
1474 objfile_separate_debug_iterate.
1475 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
1476 iterator.
1477 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
1478 iterator.
1479
14802019-04-10 Tom Tromey <tom@tromey.com>
1481
1482 * symfile.c (reread_symbols): Remove old comment.
1483 * objfiles.c (free_all_objfiles): Fix a typo.
1484
14852019-04-10 Tom Tromey <tom@tromey.com>
1486
1487 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
1488 * minsyms.c (lookup_minimal_symbol): Use foreach.
1489 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
1490 (lookup_minimal_symbol_solib_trampoline): Likewise.
1491 * symfile.c (reread_symbols): Use foreach.
1492
14932019-04-09 Ivan Begert <ivanbegert@gmail.com>
1494 Tom Tromey <tromey@adacore.com>
1495
1496 PR rust/24414:
1497 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
1498 (rust_lex_int_test): Change "value" to be LONGEST.
1499 (rust_lex_tests): Add test for long integer literal.
1500
15012019-04-09 Tom Tromey <tromey@adacore.com>
1502
1503 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
1504 to bool.
1505 (extended_remote_target::attach): Update.
1506 (remote_target::remote_notice_new_inferior): Update.
1507 (remote_target::add_current_inferior_and_thread): Update.
1508 * inferior.c (exit_inferior_1): Use "false".
1509 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
1510
15112019-04-09 Simon Marchi <simon.marchi@efficios.com>
1512
1513 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
1514 the "start" command.
1515
15162019-04-08 Kevin Buettner <kevinb@redhat.com>
1517
1518 * python/py-inferior.c (infpy_thread_from_thread_handle):
1519 Adjust comments to reflect renaming of thread_from_thread_handle
1520 to thread_from_handle. Adjust keywords. Fix type error message.
1521 (inferior_object_methods): Add thread_from_handle. Retain
1522 thread_from_thread_handle, but mark it as deprecated.
1523
15242019-04-08 Kevin Buettner <kevinb@redhat.com>
1525
1526 * gdbthread.h (find_thread_by_handle): Revise declaration.
1527 * thread.c (find_thread_by_handle): Likewise. Adjust
1528 implementation too.
1529 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
1530 support for buffer objects as handles.
1531
15322019-04-08 Kevin Buettner <kevinb@redhat.com>
1533
1534 * python/py-infthread.c (thpy_thread_handle): New function.
1535 (thread_object_methods): Register thpy_thread_handle.
1536
15372019-04-08 Kevin Buettner <kevinb@redhat.com>
1538
1539 * gdbthread.h (thread_to_thread_handle): Declare.
1540 * thread.c (gdbtypes.h): Include.
1541 (thread_to_thread_handle): New function.
1542
1543 * target.h (struct target_ops): Add thread_info_to_thread_handle.
1544 (target_thread_info_to_thread_handle): Declare.
1545 * target.c (target_thread_info_to_thread_handle): New function.
1546 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
1547 * target-delegates.c: Regenerate.
1548
1549 * linux-thread-db.c (class thread_db_target): Add method
1550 thread_info_to_thread_handle.
1551 (thread_db_target::thread_info_to_thread_handle): Define.
1552 * remote.c (class remote_target): Add new method
1553 thread_info_to_thread_handle.
1554 (remote_target::thread_info_to_thread_handle): Define.
1555
15562019-04-08 Pedro Alves <palves@redhat.com>
1557
1558 * common/common-exceptions.c (throw_exception): Don't create
1559 named object to throw; throw directly.
1560 (throw_it): Likewise. Don't initialize gdb_exception::message
1561 here, with new; pass FMT and AP to the ctor instead.
1562 * common/common-exceptions.h: Include <string>.
1563 (gdb_exception::gdb_exception(enum return_reason, enum errors,
1564 const char *, va_list)): New ctor. Use std::make_shared.
1565 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
1566 errors)): Delete.
1567 (gdb_exception_error::gdb_exception_error(enum errors, const char
1568 *, va_list)): New.
1569 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
1570 Add assertion.
1571 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
1572 errors)): Delete.
1573 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
1574 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
1575 Add assertion.
1576
15772019-04-08 Tom Tromey <tom@tromey.com>
1578
1579 * valops.c (value_rtti_indirect_type): Replace throw_exception
1580 with throw.
1581 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
1582 with throw.
1583 * thread.c (thr_try_catch_cmd): Replace throw_exception with
1584 throw.
1585 * target.c (target_translate_tls_address): Replace throw_exception
1586 with throw.
1587 * stack.c (frame_apply_command_count): Replace throw_exception
1588 with throw.
1589 * solib-spu.c (append_ocl_sos): Replace throw_exception with
1590 throw.
1591 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
1592 with throw.
1593 * rs6000-tdep.c (rs6000_frame_cache)
1594 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
1595 * remote.c: Replace throw_exception with throw.
1596 * record-full.c (record_full_message, record_full_wait_1)
1597 (record_full_restore): Replace throw_exception with throw.
1598 * record-btrace.c:
1599 (get_thread_current_frame_id, record_btrace_start_replaying)
1600 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
1601 (cmd_record_btrace_start): Replace throw_exception with throw.
1602 * parse.c (parse_exp_in_context_1): Replace throw_exception with
1603 throw.
1604 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
1605 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
1606 * linespec.c:
1607 (find_linespec_symbols): Replace throw_exception with throw.
1608 * infrun.c (displaced_step_prepare, resume): Replace
1609 throw_exception with throw.
1610 * infcmd.c (post_create_inferior): Replace throw_exception with
1611 throw.
1612 * inf-loop.c (inferior_event_handler): Replace throw_exception
1613 with throw.
1614 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
1615 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
1616 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
1617 (get_prev_frame_always, get_frame_pc_if_available)
1618 (get_frame_address_in_block_if_available, get_frame_language):
1619 Replace throw_exception with throw.
1620 * frame-unwind.c (frame_unwind_try_unwinder): Replace
1621 throw_exception with throw.
1622 * eval.c (fetch_subexp_value, evaluate_var_value)
1623 (evaluate_funcall, evaluate_subexp_standard): Replace
1624 throw_exception with throw.
1625 * dwarf2loc.c (call_site_find_chain)
1626 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
1627 Replace throw_exception with throw.
1628 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
1629 with throw.
1630 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
1631 throw.
1632 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
1633 * completer.c (complete_line_internal): Replace throw_exception
1634 with throw.
1635 * compile/compile-object-run.c (compile_object_run): Replace
1636 throw_exception with throw.
1637 * cli/cli-script.c (process_next_line): Replace throw_exception
1638 with throw.
1639 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
1640 (btrace_enable, btrace_maint_update_pt_packets): Replace
1641 throw_exception with throw.
1642 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
1643 throw_exception with throw.
1644 * break-catch-throw.c (re_set_exception_catchpoint): Replace
1645 throw_exception with throw.
1646 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
1647 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
1648 * aarch64-tdep.c (aarch64_make_prologue_cache)
1649 (aarch64_make_stub_cache): Replace throw_exception with throw.
1650
16512019-04-08 Tom Tromey <tom@tromey.com>
1652
1653 * common/common-exceptions.c (throw_exception): Rename from
1654 throw_exception_cxx. Remove old copy. Make argument const.
1655 (throw_it): Create and throw exception objects directly.
1656 * common/common-exceptions.h (throw_exception): Make argument
1657 const.
1658 (struct gdb_exception_error): Add constructor.
1659 (struct gdb_exception_quit): Add constructor.
1660
16612019-04-08 Tom Tromey <tom@tromey.com>
1662
1663 * common/common-exceptions.h (exception_rethrow): Don't declare.
1664 (TRY_SJLJ): Update comment.
1665 (TRY, CATCH, END_CATCH): Remove.
1666 * common/common-exceptions.c (exception_rethrow): Remove.
1667
16682019-04-08 Tom Tromey <tom@tromey.com>
1669
1670 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
1671 Remove.
1672 (gdb_exception_error): Rename from
1673 gdb_exception_RETURN_MASK_ERROR.
1674 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
1675 (gdb_quit_bad_alloc): Update.
1676 * aarch64-tdep.c: Update.
1677 * ada-lang.c: Update.
1678 * ada-typeprint.c: Update.
1679 * ada-valprint.c: Update.
1680 * amd64-tdep.c: Update.
1681 * arch-utils.c: Update.
1682 * break-catch-throw.c: Update.
1683 * breakpoint.c: Update.
1684 * btrace.c: Update.
1685 * c-varobj.c: Update.
1686 * cli/cli-cmds.c: Update.
1687 * cli/cli-interp.c: Update.
1688 * cli/cli-script.c: Update.
1689 * common/common-exceptions.c: Update.
1690 * common/new-op.c: Update.
1691 * common/selftest.c: Update.
1692 * compile/compile-c-symbols.c: Update.
1693 * compile/compile-cplus-symbols.c: Update.
1694 * compile/compile-object-load.c: Update.
1695 * compile/compile-object-run.c: Update.
1696 * completer.c: Update.
1697 * corelow.c: Update.
1698 * cp-abi.c: Update.
1699 * cp-support.c: Update.
1700 * cp-valprint.c: Update.
1701 * darwin-nat.c: Update.
1702 * disasm-selftests.c: Update.
1703 * dtrace-probe.c: Update.
1704 * dwarf-index-cache.c: Update.
1705 * dwarf-index-write.c: Update.
1706 * dwarf2-frame-tailcall.c: Update.
1707 * dwarf2-frame.c: Update.
1708 * dwarf2loc.c: Update.
1709 * dwarf2read.c: Update.
1710 * eval.c: Update.
1711 * event-loop.c: Update.
1712 * event-top.c: Update.
1713 * exec.c: Update.
1714 * f-valprint.c: Update.
1715 * fbsd-tdep.c: Update.
1716 * frame-unwind.c: Update.
1717 * frame.c: Update.
1718 * gdbtypes.c: Update.
1719 * gnu-v3-abi.c: Update.
1720 * guile/guile-internal.h: Update.
1721 * guile/scm-block.c: Update.
1722 * guile/scm-breakpoint.c: Update.
1723 * guile/scm-cmd.c: Update.
1724 * guile/scm-disasm.c: Update.
1725 * guile/scm-frame.c: Update.
1726 * guile/scm-lazy-string.c: Update.
1727 * guile/scm-math.c: Update.
1728 * guile/scm-param.c: Update.
1729 * guile/scm-ports.c: Update.
1730 * guile/scm-pretty-print.c: Update.
1731 * guile/scm-symbol.c: Update.
1732 * guile/scm-symtab.c: Update.
1733 * guile/scm-type.c: Update.
1734 * guile/scm-value.c: Update.
1735 * i386-linux-tdep.c: Update.
1736 * i386-tdep.c: Update.
1737 * inf-loop.c: Update.
1738 * infcall.c: Update.
1739 * infcmd.c: Update.
1740 * infrun.c: Update.
1741 * jit.c: Update.
1742 * language.c: Update.
1743 * linespec.c: Update.
1744 * linux-fork.c: Update.
1745 * linux-nat.c: Update.
1746 * linux-tdep.c: Update.
1747 * linux-thread-db.c: Update.
1748 * main.c: Update.
1749 * mi/mi-cmd-break.c: Update.
1750 * mi/mi-cmd-stack.c: Update.
1751 * mi/mi-interp.c: Update.
1752 * mi/mi-main.c: Update.
1753 * objc-lang.c: Update.
1754 * p-valprint.c: Update.
1755 * parse.c: Update.
1756 * ppc-linux-tdep.c: Update.
1757 * printcmd.c: Update.
1758 * python/py-arch.c: Update.
1759 * python/py-breakpoint.c: Update.
1760 * python/py-cmd.c: Update.
1761 * python/py-finishbreakpoint.c: Update.
1762 * python/py-frame.c: Update.
1763 * python/py-framefilter.c: Update.
1764 * python/py-gdb-readline.c: Update.
1765 * python/py-inferior.c: Update.
1766 * python/py-infthread.c: Update.
1767 * python/py-lazy-string.c: Update.
1768 * python/py-linetable.c: Update.
1769 * python/py-objfile.c: Update.
1770 * python/py-param.c: Update.
1771 * python/py-prettyprint.c: Update.
1772 * python/py-progspace.c: Update.
1773 * python/py-record-btrace.c: Update.
1774 * python/py-record.c: Update.
1775 * python/py-symbol.c: Update.
1776 * python/py-type.c: Update.
1777 * python/py-unwind.c: Update.
1778 * python/py-utils.c: Update.
1779 * python/py-value.c: Update.
1780 * python/python.c: Update.
1781 * record-btrace.c: Update.
1782 * record-full.c: Update.
1783 * remote-fileio.c: Update.
1784 * remote.c: Update.
1785 * riscv-tdep.c: Update.
1786 * rs6000-aix-tdep.c: Update.
1787 * rs6000-tdep.c: Update.
1788 * rust-exp.y: Update.
1789 * rust-lang.c: Update.
1790 * s390-tdep.c: Update.
1791 * selftest-arch.c: Update.
1792 * solib-dsbt.c: Update.
1793 * solib-frv.c: Update.
1794 * solib-spu.c: Update.
1795 * solib-svr4.c: Update.
1796 * solib.c: Update.
1797 * sparc64-linux-tdep.c: Update.
1798 * stack.c: Update.
1799 * symfile-mem.c: Update.
1800 * symmisc.c: Update.
1801 * target.c: Update.
1802 * thread.c: Update.
1803 * top.c: Update.
1804 * tracefile-tfile.c: Update.
1805 * tui/tui.c: Update.
1806 * typeprint.c: Update.
1807 * unittests/cli-utils-selftests.c: Update.
1808 * unittests/parse-connection-spec-selftests.c: Update.
1809 * valops.c: Update.
1810 * valprint.c: Update.
1811 * value.c: Update.
1812 * varobj.c: Update.
1813 * windows-nat.c: Update.
1814 * x86-linux-nat.c: Update.
1815 * xml-support.c: Update.
1816
18172019-04-08 Tom Tromey <tom@tromey.com>
1818
1819 * xml-support.c: Use C++ exception handling.
1820 * x86-linux-nat.c: Use C++ exception handling.
1821 * windows-nat.c: Use C++ exception handling.
1822 * varobj.c: Use C++ exception handling.
1823 * value.c: Use C++ exception handling.
1824 * valprint.c: Use C++ exception handling.
1825 * valops.c: Use C++ exception handling.
1826 * unittests/parse-connection-spec-selftests.c: Use C++ exception
1827 handling.
1828 * unittests/cli-utils-selftests.c: Use C++ exception handling.
1829 * typeprint.c: Use C++ exception handling.
1830 * tui/tui.c: Use C++ exception handling.
1831 * tracefile-tfile.c: Use C++ exception handling.
1832 * top.c: Use C++ exception handling.
1833 * thread.c: Use C++ exception handling.
1834 * target.c: Use C++ exception handling.
1835 * symmisc.c: Use C++ exception handling.
1836 * symfile-mem.c: Use C++ exception handling.
1837 * stack.c: Use C++ exception handling.
1838 * sparc64-linux-tdep.c: Use C++ exception handling.
1839 * solib.c: Use C++ exception handling.
1840 * solib-svr4.c: Use C++ exception handling.
1841 * solib-spu.c: Use C++ exception handling.
1842 * solib-frv.c: Use C++ exception handling.
1843 * solib-dsbt.c: Use C++ exception handling.
1844 * selftest-arch.c: Use C++ exception handling.
1845 * s390-tdep.c: Use C++ exception handling.
1846 * rust-lang.c: Use C++ exception handling.
1847 * rust-exp.y: Use C++ exception handling.
1848 * rs6000-tdep.c: Use C++ exception handling.
1849 * rs6000-aix-tdep.c: Use C++ exception handling.
1850 * riscv-tdep.c: Use C++ exception handling.
1851 * remote.c: Use C++ exception handling.
1852 * remote-fileio.c: Use C++ exception handling.
1853 * record-full.c: Use C++ exception handling.
1854 * record-btrace.c: Use C++ exception handling.
1855 * python/python.c: Use C++ exception handling.
1856 * python/py-value.c: Use C++ exception handling.
1857 * python/py-utils.c: Use C++ exception handling.
1858 * python/py-unwind.c: Use C++ exception handling.
1859 * python/py-type.c: Use C++ exception handling.
1860 * python/py-symbol.c: Use C++ exception handling.
1861 * python/py-record.c: Use C++ exception handling.
1862 * python/py-record-btrace.c: Use C++ exception handling.
1863 * python/py-progspace.c: Use C++ exception handling.
1864 * python/py-prettyprint.c: Use C++ exception handling.
1865 * python/py-param.c: Use C++ exception handling.
1866 * python/py-objfile.c: Use C++ exception handling.
1867 * python/py-linetable.c: Use C++ exception handling.
1868 * python/py-lazy-string.c: Use C++ exception handling.
1869 * python/py-infthread.c: Use C++ exception handling.
1870 * python/py-inferior.c: Use C++ exception handling.
1871 * python/py-gdb-readline.c: Use C++ exception handling.
1872 * python/py-framefilter.c: Use C++ exception handling.
1873 * python/py-frame.c: Use C++ exception handling.
1874 * python/py-finishbreakpoint.c: Use C++ exception handling.
1875 * python/py-cmd.c: Use C++ exception handling.
1876 * python/py-breakpoint.c: Use C++ exception handling.
1877 * python/py-arch.c: Use C++ exception handling.
1878 * printcmd.c: Use C++ exception handling.
1879 * ppc-linux-tdep.c: Use C++ exception handling.
1880 * parse.c: Use C++ exception handling.
1881 * p-valprint.c: Use C++ exception handling.
1882 * objc-lang.c: Use C++ exception handling.
1883 * mi/mi-main.c: Use C++ exception handling.
1884 * mi/mi-interp.c: Use C++ exception handling.
1885 * mi/mi-cmd-stack.c: Use C++ exception handling.
1886 * mi/mi-cmd-break.c: Use C++ exception handling.
1887 * main.c: Use C++ exception handling.
1888 * linux-thread-db.c: Use C++ exception handling.
1889 * linux-tdep.c: Use C++ exception handling.
1890 * linux-nat.c: Use C++ exception handling.
1891 * linux-fork.c: Use C++ exception handling.
1892 * linespec.c: Use C++ exception handling.
1893 * language.c: Use C++ exception handling.
1894 * jit.c: Use C++ exception handling.
1895 * infrun.c: Use C++ exception handling.
1896 * infcmd.c: Use C++ exception handling.
1897 * infcall.c: Use C++ exception handling.
1898 * inf-loop.c: Use C++ exception handling.
1899 * i386-tdep.c: Use C++ exception handling.
1900 * i386-linux-tdep.c: Use C++ exception handling.
1901 * guile/scm-value.c: Use C++ exception handling.
1902 * guile/scm-type.c: Use C++ exception handling.
1903 * guile/scm-symtab.c: Use C++ exception handling.
1904 * guile/scm-symbol.c: Use C++ exception handling.
1905 * guile/scm-pretty-print.c: Use C++ exception handling.
1906 * guile/scm-ports.c: Use C++ exception handling.
1907 * guile/scm-param.c: Use C++ exception handling.
1908 * guile/scm-math.c: Use C++ exception handling.
1909 * guile/scm-lazy-string.c: Use C++ exception handling.
1910 * guile/scm-frame.c: Use C++ exception handling.
1911 * guile/scm-disasm.c: Use C++ exception handling.
1912 * guile/scm-cmd.c: Use C++ exception handling.
1913 * guile/scm-breakpoint.c: Use C++ exception handling.
1914 * guile/scm-block.c: Use C++ exception handling.
1915 * guile/guile-internal.h: Use C++ exception handling.
1916 * gnu-v3-abi.c: Use C++ exception handling.
1917 * gdbtypes.c: Use C++ exception handling.
1918 * frame.c: Use C++ exception handling.
1919 * frame-unwind.c: Use C++ exception handling.
1920 * fbsd-tdep.c: Use C++ exception handling.
1921 * f-valprint.c: Use C++ exception handling.
1922 * exec.c: Use C++ exception handling.
1923 * event-top.c: Use C++ exception handling.
1924 * event-loop.c: Use C++ exception handling.
1925 * eval.c: Use C++ exception handling.
1926 * dwarf2read.c: Use C++ exception handling.
1927 * dwarf2loc.c: Use C++ exception handling.
1928 * dwarf2-frame.c: Use C++ exception handling.
1929 * dwarf2-frame-tailcall.c: Use C++ exception handling.
1930 * dwarf-index-write.c: Use C++ exception handling.
1931 * dwarf-index-cache.c: Use C++ exception handling.
1932 * dtrace-probe.c: Use C++ exception handling.
1933 * disasm-selftests.c: Use C++ exception handling.
1934 * darwin-nat.c: Use C++ exception handling.
1935 * cp-valprint.c: Use C++ exception handling.
1936 * cp-support.c: Use C++ exception handling.
1937 * cp-abi.c: Use C++ exception handling.
1938 * corelow.c: Use C++ exception handling.
1939 * completer.c: Use C++ exception handling.
1940 * compile/compile-object-run.c: Use C++ exception handling.
1941 * compile/compile-object-load.c: Use C++ exception handling.
1942 * compile/compile-cplus-symbols.c: Use C++ exception handling.
1943 * compile/compile-c-symbols.c: Use C++ exception handling.
1944 * common/selftest.c: Use C++ exception handling.
1945 * common/new-op.c: Use C++ exception handling.
1946 * cli/cli-script.c: Use C++ exception handling.
1947 * cli/cli-interp.c: Use C++ exception handling.
1948 * cli/cli-cmds.c: Use C++ exception handling.
1949 * c-varobj.c: Use C++ exception handling.
1950 * btrace.c: Use C++ exception handling.
1951 * breakpoint.c: Use C++ exception handling.
1952 * break-catch-throw.c: Use C++ exception handling.
1953 * arch-utils.c: Use C++ exception handling.
1954 * amd64-tdep.c: Use C++ exception handling.
1955 * ada-valprint.c: Use C++ exception handling.
1956 * ada-typeprint.c: Use C++ exception handling.
1957 * ada-lang.c: Use C++ exception handling.
1958 * aarch64-tdep.c: Use C++ exception handling.
1959
19602019-04-08 Tom Tromey <tom@tromey.com>
1961
1962 * xml-support.c (gdb_xml_parser::parse): Update.
1963 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
1964 * value.c (show_convenience): Update.
1965 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
1966 (test_parse_flags_qcs): Update.
1967 * thread.c (thr_try_catch_cmd): Update.
1968 * target.c (target_translate_tls_address): Update.
1969 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
1970 (info_frame_command_core, frame_apply_command_count): Update.
1971 * rust-exp.y (rust_lex_exception_test): Update.
1972 * riscv-tdep.c (riscv_print_one_register_info): Update.
1973 * remote.c (remote_target::enable_btrace): Update.
1974 * record-btrace.c (record_btrace_enable_warn): Update.
1975 * python/py-utils.c (gdbpy_convert_exception): Update.
1976 * printcmd.c (do_one_display, print_variable_and_value): Update.
1977 * mi/mi-main.c (mi_print_exception): Update.
1978 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
1979 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
1980 * linux-nat.c (linux_nat_target::attach): Update.
1981 * linux-fork.c (class scoped_switch_fork_info): Update.
1982 * infrun.c (displaced_step_prepare): Update.
1983 * infcall.c (call_function_by_hand_dummy): Update.
1984 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
1985 * gnu-v3-abi.c (print_one_vtable): Update.
1986 * frame.c (get_prev_frame_always): Update.
1987 * f-valprint.c (info_common_command_for_block): Update.
1988 * exec.c (try_open_exec_file): Update.
1989 * exceptions.c (print_exception, exception_print)
1990 (exception_fprintf, exception_print_same): Update.
1991 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
1992 * dwarf-index-cache.c (index_cache::store)
1993 (index_cache::lookup_gdb_index): Update.
1994 * darwin-nat.c (maybe_cache_shell): Update.
1995 * cp-valprint.c (cp_print_value_fields): Update.
1996 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
1997 (gcc_cplus_symbol_address): Update.
1998 * compile/compile-c-symbols.c (gcc_convert_symbol)
1999 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
2000 * common/selftest.c: Update.
2001 * common/common-exceptions.h (struct gdb_exception) <message>: Now
2002 a std::string.
2003 (exception_try_scope_entry, exception_try_scope_exit): Don't
2004 declare.
2005 (struct exception_try_scope): Remove.
2006 (TRY): Don't use exception_try_scope.
2007 (struct gdb_exception): Add constructor, operator=.
2008 <what>: New method.
2009 (struct gdb_exception_RETURN_MASK_ALL)
2010 (struct gdb_exception_RETURN_MASK_ERROR)
2011 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
2012 (struct gdb_quit_bad_alloc): Update.
2013 * common/common-exceptions.c (exception_none): Change
2014 initializer.
2015 (struct catcher) <state, exception>: Initialize inline.
2016 <prev>: Remove member.
2017 (current_catcher): Remove.
2018 (catchers): New global.
2019 (exceptions_state_mc_init): Simplify.
2020 (catcher_pop): Remove.
2021 (exceptions_state_mc, exceptions_state_mc_catch): Update.
2022 (try_scope_depth, exception_try_scope_entry)
2023 (exception_try_scope_exit): Remove.
2024 (throw_exception_sjlj): Update.
2025 (exception_messages, exception_messages_size): Remove.
2026 (throw_it): Simplify.
2027 (gdb_exception_sliced_copy): Remove.
2028 (throw_exception_cxx): Update.
2029 * cli/cli-script.c (script_from_file): Update.
2030 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
2031 Update.
2032 * ada-valprint.c (ada_val_print): Update.
2033 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
2034 (create_excep_cond_exprs): Update.
2035
20362019-04-08 Tom Tromey <tom@tromey.com>
2037
2038 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
2039 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
2040 (TRY, CATCH, END_CATCH): Remove some definitions.
2041 * common/common-exceptions.c: Don't use GDB_XCPT.
2042 (catcher_list_size): Remove.
2043 (throw_exception, throw_it): Simplify.
2044
20452019-04-05 Tom Tromey <tom@tromey.com>
2046
2047 Revert the header-sorting patch.
2048 * ft32-tdep.c: Revert.
2049 * frv-tdep.c: Revert.
2050 * frv-linux-tdep.c: Revert.
2051 * frame.c: Revert.
2052 * frame-unwind.c: Revert.
2053 * frame-base.c: Revert.
2054 * fork-child.c: Revert.
2055 * findvar.c: Revert.
2056 * findcmd.c: Revert.
2057 * filesystem.c: Revert.
2058 * filename-seen-cache.h: Revert.
2059 * filename-seen-cache.c: Revert.
2060 * fbsd-tdep.c: Revert.
2061 * fbsd-nat.h: Revert.
2062 * fbsd-nat.c: Revert.
2063 * f-valprint.c: Revert.
2064 * f-typeprint.c: Revert.
2065 * f-lang.c: Revert.
2066 * extension.h: Revert.
2067 * extension.c: Revert.
2068 * extension-priv.h: Revert.
2069 * expprint.c: Revert.
2070 * exec.h: Revert.
2071 * exec.c: Revert.
2072 * exceptions.c: Revert.
2073 * event-top.c: Revert.
2074 * event-loop.c: Revert.
2075 * eval.c: Revert.
2076 * elfread.c: Revert.
2077 * dwarf2read.h: Revert.
2078 * dwarf2read.c: Revert.
2079 * dwarf2loc.c: Revert.
2080 * dwarf2expr.h: Revert.
2081 * dwarf2expr.c: Revert.
2082 * dwarf2-frame.c: Revert.
2083 * dwarf2-frame-tailcall.c: Revert.
2084 * dwarf-index-write.h: Revert.
2085 * dwarf-index-write.c: Revert.
2086 * dwarf-index-common.c: Revert.
2087 * dwarf-index-cache.h: Revert.
2088 * dwarf-index-cache.c: Revert.
2089 * dummy-frame.c: Revert.
2090 * dtrace-probe.c: Revert.
2091 * disasm.h: Revert.
2092 * disasm.c: Revert.
2093 * disasm-selftests.c: Revert.
2094 * dictionary.c: Revert.
2095 * dicos-tdep.c: Revert.
2096 * demangle.c: Revert.
2097 * dcache.h: Revert.
2098 * dcache.c: Revert.
2099 * darwin-nat.h: Revert.
2100 * darwin-nat.c: Revert.
2101 * darwin-nat-info.c: Revert.
2102 * d-valprint.c: Revert.
2103 * d-namespace.c: Revert.
2104 * d-lang.c: Revert.
2105 * ctf.c: Revert.
2106 * csky-tdep.c: Revert.
2107 * csky-linux-tdep.c: Revert.
2108 * cris-tdep.c: Revert.
2109 * cris-linux-tdep.c: Revert.
2110 * cp-valprint.c: Revert.
2111 * cp-support.c: Revert.
2112 * cp-namespace.c: Revert.
2113 * cp-abi.c: Revert.
2114 * corelow.c: Revert.
2115 * corefile.c: Revert.
2116 * continuations.c: Revert.
2117 * completer.h: Revert.
2118 * completer.c: Revert.
2119 * complaints.c: Revert.
2120 * coffread.c: Revert.
2121 * coff-pe-read.c: Revert.
2122 * cli-out.h: Revert.
2123 * cli-out.c: Revert.
2124 * charset.c: Revert.
2125 * c-varobj.c: Revert.
2126 * c-valprint.c: Revert.
2127 * c-typeprint.c: Revert.
2128 * c-lang.c: Revert.
2129 * buildsym.c: Revert.
2130 * buildsym-legacy.c: Revert.
2131 * build-id.h: Revert.
2132 * build-id.c: Revert.
2133 * btrace.c: Revert.
2134 * bsd-uthread.c: Revert.
2135 * breakpoint.h: Revert.
2136 * breakpoint.c: Revert.
2137 * break-catch-throw.c: Revert.
2138 * break-catch-syscall.c: Revert.
2139 * break-catch-sig.c: Revert.
2140 * blockframe.c: Revert.
2141 * block.c: Revert.
2142 * bfin-tdep.c: Revert.
2143 * bfin-linux-tdep.c: Revert.
2144 * bfd-target.c: Revert.
2145 * bcache.c: Revert.
2146 * ax-general.c: Revert.
2147 * ax-gdb.h: Revert.
2148 * ax-gdb.c: Revert.
2149 * avr-tdep.c: Revert.
2150 * auxv.c: Revert.
2151 * auto-load.c: Revert.
2152 * arm-wince-tdep.c: Revert.
2153 * arm-tdep.c: Revert.
2154 * arm-symbian-tdep.c: Revert.
2155 * arm-pikeos-tdep.c: Revert.
2156 * arm-obsd-tdep.c: Revert.
2157 * arm-nbsd-tdep.c: Revert.
2158 * arm-nbsd-nat.c: Revert.
2159 * arm-linux-tdep.c: Revert.
2160 * arm-linux-nat.c: Revert.
2161 * arm-fbsd-tdep.c: Revert.
2162 * arm-fbsd-nat.c: Revert.
2163 * arm-bsd-tdep.c: Revert.
2164 * arch-utils.c: Revert.
2165 * arc-tdep.c: Revert.
2166 * arc-newlib-tdep.c: Revert.
2167 * annotate.h: Revert.
2168 * annotate.c: Revert.
2169 * amd64-windows-tdep.c: Revert.
2170 * amd64-windows-nat.c: Revert.
2171 * amd64-tdep.c: Revert.
2172 * amd64-sol2-tdep.c: Revert.
2173 * amd64-obsd-tdep.c: Revert.
2174 * amd64-obsd-nat.c: Revert.
2175 * amd64-nbsd-tdep.c: Revert.
2176 * amd64-nbsd-nat.c: Revert.
2177 * amd64-nat.c: Revert.
2178 * amd64-linux-tdep.c: Revert.
2179 * amd64-linux-nat.c: Revert.
2180 * amd64-fbsd-tdep.c: Revert.
2181 * amd64-fbsd-nat.c: Revert.
2182 * amd64-dicos-tdep.c: Revert.
2183 * amd64-darwin-tdep.c: Revert.
2184 * amd64-bsd-nat.c: Revert.
2185 * alpha-tdep.c: Revert.
2186 * alpha-obsd-tdep.c: Revert.
2187 * alpha-nbsd-tdep.c: Revert.
2188 * alpha-mdebug-tdep.c: Revert.
2189 * alpha-linux-tdep.c: Revert.
2190 * alpha-linux-nat.c: Revert.
2191 * alpha-bsd-tdep.c: Revert.
2192 * alpha-bsd-nat.c: Revert.
2193 * aix-thread.c: Revert.
2194 * agent.c: Revert.
2195 * addrmap.c: Revert.
2196 * ada-varobj.c: Revert.
2197 * ada-valprint.c: Revert.
2198 * ada-typeprint.c: Revert.
2199 * ada-tasks.c: Revert.
2200 * ada-lang.c: Revert.
2201 * aarch64-tdep.c: Revert.
2202 * aarch64-ravenscar-thread.c: Revert.
2203 * aarch64-newlib-tdep.c: Revert.
2204 * aarch64-linux-tdep.c: Revert.
2205 * aarch64-linux-nat.c: Revert.
2206 * aarch64-fbsd-tdep.c: Revert.
2207 * aarch64-fbsd-nat.c: Revert.
2208 * aarch32-linux-nat.c: Revert.
2209
22102019-04-05 Tom Tromey <tom@tromey.com>
2211
2212 * ft32-tdep.c: Sort headers.
2213 * frv-tdep.c: Sort headers.
2214 * frv-linux-tdep.c: Sort headers.
2215 * frame.c: Sort headers.
2216 * frame-unwind.c: Sort headers.
2217 * frame-base.c: Sort headers.
2218 * fork-child.c: Sort headers.
2219 * findvar.c: Sort headers.
2220 * findcmd.c: Sort headers.
2221 * filesystem.c: Sort headers.
2222 * filename-seen-cache.h: Sort headers.
2223 * filename-seen-cache.c: Sort headers.
2224 * fbsd-tdep.c: Sort headers.
2225 * fbsd-nat.h: Sort headers.
2226 * fbsd-nat.c: Sort headers.
2227 * f-valprint.c: Sort headers.
2228 * f-typeprint.c: Sort headers.
2229 * f-lang.c: Sort headers.
2230 * extension.h: Sort headers.
2231 * extension.c: Sort headers.
2232 * extension-priv.h: Sort headers.
2233 * expprint.c: Sort headers.
2234 * exec.h: Sort headers.
2235 * exec.c: Sort headers.
2236 * exceptions.c: Sort headers.
2237 * event-top.c: Sort headers.
2238 * event-loop.c: Sort headers.
2239 * eval.c: Sort headers.
2240 * elfread.c: Sort headers.
2241 * dwarf2read.h: Sort headers.
2242 * dwarf2read.c: Sort headers.
2243 * dwarf2loc.c: Sort headers.
2244 * dwarf2expr.h: Sort headers.
2245 * dwarf2expr.c: Sort headers.
2246 * dwarf2-frame.c: Sort headers.
2247 * dwarf2-frame-tailcall.c: Sort headers.
2248 * dwarf-index-write.h: Sort headers.
2249 * dwarf-index-write.c: Sort headers.
2250 * dwarf-index-common.c: Sort headers.
2251 * dwarf-index-cache.h: Sort headers.
2252 * dwarf-index-cache.c: Sort headers.
2253 * dummy-frame.c: Sort headers.
2254 * dtrace-probe.c: Sort headers.
2255 * disasm.h: Sort headers.
2256 * disasm.c: Sort headers.
2257 * disasm-selftests.c: Sort headers.
2258 * dictionary.c: Sort headers.
2259 * dicos-tdep.c: Sort headers.
2260 * demangle.c: Sort headers.
2261 * dcache.h: Sort headers.
2262 * dcache.c: Sort headers.
2263 * darwin-nat.h: Sort headers.
2264 * darwin-nat.c: Sort headers.
2265 * darwin-nat-info.c: Sort headers.
2266 * d-valprint.c: Sort headers.
2267 * d-namespace.c: Sort headers.
2268 * d-lang.c: Sort headers.
2269 * ctf.c: Sort headers.
2270 * csky-tdep.c: Sort headers.
2271 * csky-linux-tdep.c: Sort headers.
2272 * cris-tdep.c: Sort headers.
2273 * cris-linux-tdep.c: Sort headers.
2274 * cp-valprint.c: Sort headers.
2275 * cp-support.c: Sort headers.
2276 * cp-namespace.c: Sort headers.
2277 * cp-abi.c: Sort headers.
2278 * corelow.c: Sort headers.
2279 * corefile.c: Sort headers.
2280 * continuations.c: Sort headers.
2281 * completer.h: Sort headers.
2282 * completer.c: Sort headers.
2283 * complaints.c: Sort headers.
2284 * coffread.c: Sort headers.
2285 * coff-pe-read.c: Sort headers.
2286 * cli-out.h: Sort headers.
2287 * cli-out.c: Sort headers.
2288 * charset.c: Sort headers.
2289 * c-varobj.c: Sort headers.
2290 * c-valprint.c: Sort headers.
2291 * c-typeprint.c: Sort headers.
2292 * c-lang.c: Sort headers.
2293 * buildsym.c: Sort headers.
2294 * buildsym-legacy.c: Sort headers.
2295 * build-id.h: Sort headers.
2296 * build-id.c: Sort headers.
2297 * btrace.c: Sort headers.
2298 * bsd-uthread.c: Sort headers.
2299 * breakpoint.h: Sort headers.
2300 * breakpoint.c: Sort headers.
2301 * break-catch-throw.c: Sort headers.
2302 * break-catch-syscall.c: Sort headers.
2303 * break-catch-sig.c: Sort headers.
2304 * blockframe.c: Sort headers.
2305 * block.c: Sort headers.
2306 * bfin-tdep.c: Sort headers.
2307 * bfin-linux-tdep.c: Sort headers.
2308 * bfd-target.c: Sort headers.
2309 * bcache.c: Sort headers.
2310 * ax-general.c: Sort headers.
2311 * ax-gdb.h: Sort headers.
2312 * ax-gdb.c: Sort headers.
2313 * avr-tdep.c: Sort headers.
2314 * auxv.c: Sort headers.
2315 * auto-load.c: Sort headers.
2316 * arm-wince-tdep.c: Sort headers.
2317 * arm-tdep.c: Sort headers.
2318 * arm-symbian-tdep.c: Sort headers.
2319 * arm-pikeos-tdep.c: Sort headers.
2320 * arm-obsd-tdep.c: Sort headers.
2321 * arm-nbsd-tdep.c: Sort headers.
2322 * arm-nbsd-nat.c: Sort headers.
2323 * arm-linux-tdep.c: Sort headers.
2324 * arm-linux-nat.c: Sort headers.
2325 * arm-fbsd-tdep.c: Sort headers.
2326 * arm-fbsd-nat.c: Sort headers.
2327 * arm-bsd-tdep.c: Sort headers.
2328 * arch-utils.c: Sort headers.
2329 * arc-tdep.c: Sort headers.
2330 * arc-newlib-tdep.c: Sort headers.
2331 * annotate.h: Sort headers.
2332 * annotate.c: Sort headers.
2333 * amd64-windows-tdep.c: Sort headers.
2334 * amd64-windows-nat.c: Sort headers.
2335 * amd64-tdep.c: Sort headers.
2336 * amd64-sol2-tdep.c: Sort headers.
2337 * amd64-obsd-tdep.c: Sort headers.
2338 * amd64-obsd-nat.c: Sort headers.
2339 * amd64-nbsd-tdep.c: Sort headers.
2340 * amd64-nbsd-nat.c: Sort headers.
2341 * amd64-nat.c: Sort headers.
2342 * amd64-linux-tdep.c: Sort headers.
2343 * amd64-linux-nat.c: Sort headers.
2344 * amd64-fbsd-tdep.c: Sort headers.
2345 * amd64-fbsd-nat.c: Sort headers.
2346 * amd64-dicos-tdep.c: Sort headers.
2347 * amd64-darwin-tdep.c: Sort headers.
2348 * amd64-bsd-nat.c: Sort headers.
2349 * alpha-tdep.c: Sort headers.
2350 * alpha-obsd-tdep.c: Sort headers.
2351 * alpha-nbsd-tdep.c: Sort headers.
2352 * alpha-mdebug-tdep.c: Sort headers.
2353 * alpha-linux-tdep.c: Sort headers.
2354 * alpha-linux-nat.c: Sort headers.
2355 * alpha-bsd-tdep.c: Sort headers.
2356 * alpha-bsd-nat.c: Sort headers.
2357 * aix-thread.c: Sort headers.
2358 * agent.c: Sort headers.
2359 * addrmap.c: Sort headers.
2360 * ada-varobj.c: Sort headers.
2361 * ada-valprint.c: Sort headers.
2362 * ada-typeprint.c: Sort headers.
2363 * ada-tasks.c: Sort headers.
2364 * ada-lang.c: Sort headers.
2365 * aarch64-tdep.c: Sort headers.
2366 * aarch64-ravenscar-thread.c: Sort headers.
2367 * aarch64-newlib-tdep.c: Sort headers.
2368 * aarch64-linux-tdep.c: Sort headers.
2369 * aarch64-linux-nat.c: Sort headers.
2370 * aarch64-fbsd-tdep.c: Sort headers.
2371 * aarch64-fbsd-nat.c: Sort headers.
2372 * aarch32-linux-nat.c: Sort headers.
2373
23742019-04-04 Tom Tromey <tom@tromey.com>
2375
2376 * varobj.c (varobj_create): Update.
2377 * rust-exp.y (struct rust_parser) <update_innermost_block,
2378 lookup_symbol>: New methods.
2379 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
2380 Rename.
2381 (rust_parser::rust_lookup_type)
2382 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2383 * printcmd.c (display_command, do_one_display): Update.
2384 * parser-defs.h (struct parser_state) <parser_state>: Add
2385 "tracker" parameter.
2386 (block_tracker): New member.
2387 (class innermost_block_tracker) <innermost_block_tracker>: Add
2388 "types" parameter.
2389 <reset>: Remove method.
2390 (innermost_block): Don't declare.
2391 (null_post_parser): Update.
2392 * parse.c (innermost_block): Remove global.
2393 (write_dollar_variable): Update.
2394 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
2395 Remove "tracker_types" parameter.
2396 (parse_expression): Add "tracker" parameter.
2397 (parse_expression_for_completion): Update.
2398 (null_post_parser): Add "tracker" parameter.
2399 * p-exp.y: Update rules.
2400 * m2-exp.y: Update rules.
2401 * language.h (struct language_defn) <la_post_parser>: Add
2402 "tracker" parameter.
2403 * go-exp.y: Update rules.
2404 * f-exp.y: Update rules.
2405 * expression.h (parse_expression, parse_exp_1): Add "tracker"
2406 parameter.
2407 * d-exp.y: Update rules.
2408 * c-exp.y: Update rules.
2409 * breakpoint.c (set_breakpoint_condition): Create an
2410 innermost_block_tracker.
2411 (watch_command_1): Likewise.
2412 * ada-lang.c (resolve): Add "tracker" parameter.
2413 (resolve_subexp): Likewise.
2414 * ada-exp.y (write_var_from_sym): Update.
2415
24162019-04-04 Tom Tromey <tom@tromey.com>
2417
2418 * type-stack.h: New file.
2419 * type-stack.c: New file.
2420 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
2421 type-stack.h.
2422 (insert_into_type_stack, insert_type, push_type, push_type_int)
2423 (insert_type_address_space, pop_type, pop_type_int)
2424 (pop_typelist, pop_type_stack, append_type_stack)
2425 (push_type_stack, get_type_stack, push_typelist)
2426 (follow_type_instance_flags, follow_types): Don't declare.
2427 * parse.c (type_stack): Remove global.
2428 (parse_exp_in_context): Update.
2429 (insert_into_type_stack, insert_type, push_type, push_type_int)
2430 (insert_type_address_space, pop_type, pop_type_int)
2431 (pop_typelist, pop_type_stack, append_type_stack)
2432 (push_type_stack, get_type_stack, push_typelist)
2433 (follow_type_instance_flags, follow_types): Remove (moved to
2434 type-stack.c).
2435 * f-exp.y (type_stack): New global.
2436 Update rules.
2437 (push_kind_type, f_parse): Update.
2438 * d-exp.y (type_stack): New global.
2439 Update rules.
2440 (d_parse): Update.
2441 * c-exp.y (struct c_parse_state) <type_stack>: New member.
2442 Update rules.
2443 * Makefile.in (COMMON_SFILES): Add type-stack.c.
2444 (HFILES_NO_SRCDIR): Add type-stack.h.
2445
24462019-04-04 Tom Tromey <tom@tromey.com>
2447
2448 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
2449 (rust_parser::convert_ast_to_expression, rust_parse)
2450 (rust_lex_test_completion, rust_lex_tests): Update.
2451 * parser-defs.h (struct expr_completion_state): New.
2452 (struct parser_state) <parser_state>: Add completion parameter.
2453 <mark_struct_expression, mark_completion_tag>: New methods.
2454 <parse_completion, m_completion_state>: New members.
2455 (prefixify_expression, null_post_parser): Update.
2456 (mark_struct_expression, mark_completion_tag): Don't declare.
2457 * parse.c (parse_completion, expout_last_struct)
2458 (expout_tag_completion_type, expout_completion_name): Remove
2459 globals.
2460 (parser_state::mark_struct_expression)
2461 (parser_state::mark_completion_tag): Now methods.
2462 (prefixify_expression): Add last_struct parameter.
2463 (prefixify_subexp): Likewise.
2464 (parse_exp_1): Update.
2465 (parse_exp_in_context): Add cstate parameter. Update.
2466 (parse_expression_for_completion): Create an
2467 expr_completion_state.
2468 (null_post_parser): Add "completion" parameter.
2469 * p-exp.y: Update rules.
2470 (yylex): Update.
2471 * language.h (struct language_defn) <la_post_parser>: Add
2472 "completing" parameter.
2473 * go-exp.y: Update rules.
2474 (lex_one_token): Update.
2475 * expression.h (parse_completion): Don't declare.
2476 * d-exp.y: Update rules.
2477 (lex_one_token): Update rules.
2478 * c-exp.y: Update rules.
2479 (lex_one_token): Update.
2480 * ada-lang.c (resolve): Add "parse_completion" parameter.
2481 (resolve_subexp): Likewise.
2482 (ada_resolve_function): Likewise.
2483
24842019-04-04 Tom Tromey <tom@tromey.com>
2485
2486 * parser-defs.h (struct parser_state) <start_arglist,
2487 end_arglist>: New methods.
2488 <arglist_len, m_funcall_chain>: New members.
2489 (arglist_len, start_arglist, end_arglist): Don't declare.
2490 * parse.c (arglist_len, funcall_chain): Remove global.
2491 (start_arglist, end_arglist): Remove functions.
2492 (parse_exp_in_context): Update.
2493 * p-exp.y: Update rules.
2494 * m2-exp.y: Update rules.
2495 * go-exp.y: Update rules.
2496 * f-exp.y: Update rules.
2497 * d-exp.y: Update rules.
2498 * c-exp.y: Update rules.
2499
25002019-04-04 Tom Tromey <tom@tromey.com>
2501
2502 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
2503 lex_operator, push_back>: New methods.
2504 Update all rules.
2505 (rust_parser::lex_hex, lex_escape): Rename and update.
2506 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
2507 (rust_parser::lex_operator): Rename and update.
2508 (rust_parser::lex_number, rustyylex, rustyyerror)
2509 (rust_lex_test_init, rust_lex_test_sequence)
2510 (rust_lex_test_push_back, rust_lex_tests): Update.
2511 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
2512 parameter.
2513 <lexptr, prev_lexptr>: New members.
2514 (lexptr, prev_lexptr): Don't declare.
2515 * parse.c (lexptr, prev_lexptr): Remove globals.
2516 (parse_exp_in_context): Update.
2517 * p-exp.y (yylex, yyerror): Update.
2518 * m2-exp.y (parse_number, yylex, yyerror): Update.
2519 * go-exp.y (lex_one_token, yyerror): Update.
2520 * f-exp.y (match_string_literal, yylex, yyerror): Update.
2521 * d-exp.y (lex_one_token, yyerror): Update.
2522 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
2523 (lex_one_token, yyerror): Update.
2524 * ada-lex.l (YY_INPUT): Update.
2525 (rewind_to_char): Update.
2526 * ada-exp.y (yyerror): Update.
2527
25282019-04-04 Tom Tromey <tom@tromey.com>
2529
2530 * rust-exp.y (rustyylex, rust_lex_tests): Update.
2531 * parser-defs.h (struct parser_state) <parser_state>: Add new
2532 parameter.
2533 <comma_terminates>: New member.
2534 (comma_terminates): Don't declare global.
2535 * parse.c (comma_terminates): Remove global.
2536 (parse_exp_in_context): Update.
2537 * p-exp.y (yylex): Update.
2538 * m2-exp.y (yylex): Update.
2539 * go-exp.y (lex_one_token): Update.
2540 * f-exp.y (yylex): Update.
2541 * d-exp.y (lex_one_token): Update.
2542 * c-exp.y (lex_one_token): Update.
2543 * ada-lex.l: Update.
2544
25452019-04-04 Tom Tromey <tom@tromey.com>
2546
2547 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
2548 (rustyylex, rust_lex_test_init, rust_lex_test_one)
2549 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
2550 * parser-defs.h (paren_depth): Don't declare.
2551 * parse.c (paren_depth): Remove global.
2552 (parse_exp_in_context): Update.
2553 * p-exp.y (paren_depth): New global.
2554 (pascal_parse): Initialize it.
2555 * m2-exp.y (paren_depth): New global.
2556 (m2_parse): Initialize it.
2557 * go-exp.y (paren_depth): New global.
2558 (go_parse): Initialize it.
2559 * f-exp.y (paren_depth): New global.
2560 (f_parse): Initialize it.
2561 * d-exp.y (paren_depth): New global.
2562 (d_parse): Initialize it.
2563 * c-exp.y (paren_depth): New global.
2564 (c_parse): Initialize it.
2565 * ada-lex.l (paren_depth): New global.
2566 (lexer_init): Initialize it.
2567
25682019-04-04 Tom Tromey <tom@tromey.com>
2569
2570 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
2571 (rust_parser::convert_ast_to_type)
2572 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
2573 * parser-defs.h (struct parser_state) <parser_state>: Add
2574 parameters. Initialize new members.
2575 <expression_context_block, expression_context_pc>: New members.
2576 * parse.c (expression_context_block, expression_context_pc):
2577 Remove globals.
2578 (parse_exp_in_context): Update.
2579 * p-exp.y: Update all rules.
2580 (yylex): Update.
2581 * m2-exp.y: Update all rules.
2582 (yylex): Update.
2583 * go-exp.y (yylex): Update.
2584 * f-exp.y (yylex): Update.
2585 * d-exp.y: Update all rules.
2586 (yylex): Update.
2587 * c-exp.y: Update all rules.
2588 (lex_one_token, classify_name, yylex, c_parse): Update.
2589 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
2590
25912019-04-04 Tom Tromey <tom@tromey.com>
2592
2593 * gdbarch.h, gdbarch.c: Rebuild.
2594 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
2595 * stap-probe.h:
2596 (struct stap_parse_info): Replace "parser_state" with
2597 "expr_builder".
2598 * parser-defs.h (struct expr_builder): Rename from "parser_state".
2599 (parser_state): New class.
2600 * parse.c (expr_builder): Rename.
2601 (expr_builder::release): Rename.
2602 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2603 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2604 (write_exp_elt_longcst, write_exp_elt_floatcst)
2605 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2606 (write_exp_string_vector, write_exp_bitstring)
2607 (write_exp_msymbol, mark_struct_expression)
2608 (write_dollar_variable)
2609 (insert_type_address_space, increase_expout_size): Replace
2610 "parser_state" with "expr_builder".
2611 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
2612 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
2613 "parser_state" with "expr_builder".
2614
26152019-04-04 Tom Tromey <tom@tromey.com>
2616
2617 * rust-exp.y: Replace "parse_language" with method call.
2618 * p-exp.y:
2619 (yylex): Replace "parse_language" with method call.
2620 * m2-exp.y:
2621 (yylex): Replace "parse_language" with method call.
2622 * go-exp.y (classify_name): Replace "parse_language" with method
2623 call.
2624 * f-exp.y (yylex): Replace "parse_language" with method call.
2625 * d-exp.y (lex_one_token): Replace "parse_language" with method
2626 call.
2627 * c-exp.y:
2628 (lex_one_token, classify_name, yylex): Replace "parse_language"
2629 with method call.
2630 * ada-exp.y (find_primitive_type, type_char)
2631 (type_system_address): Replace "parse_language" with method call.
2632
26332019-04-04 Tom Tromey <tom@tromey.com>
2634
2635 * rust-exp.y: Replace "parse_gdbarch" with method call.
2636 * parse.c (write_dollar_variable, insert_type_address_space):
2637 Replace "parse_gdbarch" with method call.
2638 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
2639 call.
2640 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
2641 call.
2642 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
2643 "parse_gdbarch" with method call.
2644 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
2645 with method call.
2646 * f-exp.y (parse_type, parse_f_type, yylex): Replace
2647 "parse_gdbarch" with method call.
2648 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
2649 "parse_gdbarch" with method call.
2650 * c-exp.y (parse_type, parse_number, classify_name): Replace
2651 "parse_gdbarch" with method call.
2652 * ada-lex.l: Replace "parse_gdbarch" with method call.
2653 * ada-exp.y (parse_type, find_primitive_type, type_char)
2654 (type_system_address): Replace "parse_gdbarch" with method call.
2655
26562019-04-04 Tom Tromey <tom@tromey.com>
2657
2658 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2659 * stap-probe.c (stap_parse_argument): Update.
2660 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
2661 initial_size parameter.
2662 * rust-exp.y (rust_lex_tests): Update.
2663 * parse.c (parser_state): Update.
2664 (parse_exp_in_context): Update.
2665 * parser-defs.h (struct parser_state) <parser_state>: Remove
2666 "initial_size" parameter.
2667
26682019-04-04 Tom Tromey <tom@tromey.com>
2669
2670 * parser-defs.h (increase_expout_size): Don't declare.
2671 * parse.c (increase_expout_size): Now static.
2672
26732019-04-04 Thomas Schwinge <thomas@codesourcery.com>
2674
2675 * gnu-nat.c (gnu_nat_target::wait): Fix
2676 target_waitstatus_to_string call.
2677
26782019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * eval.c (evaluate_subexp_standard): Handle internal functions
2681 during Fortran function call handling.
2682
26832019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
2684
2685 * NEWS: Mention new internal functions.
2686 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
2687 (read_base_type): Use dwarf2_init_complex_target_type.
2688 * value.c (creal_internal_fn): New function.
2689 (cimag_internal_fn): New function.
2690 (_initialize_values): Register new internal functions.
2691
26922019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2693
2694 * infrun.c (stop_all_threads): If debug_infrun, always
2695 trace the wait status after wait_one, using
2696 target_waitstatus_to_string and target_pid_to_str.
2697 (handle_inferior_event): Replace various trace of
2698 wait status kind by a single trace.
2699 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
2700 wait status kind image by target_waitstatus_to_string.
2701 * target/waitstatus.c (target_waitstatus_to_string): Fix
2702 obsolete comment.
2703
27042019-04-01 Tom Tromey <tromey@adacore.com>
2705
2706 PR symtab/23331:
2707 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
2708
27092019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
2710 Pedro Alves <palves@redhat.com>
2711
2712 * top.c (quit_force): Call 'finalize_values'.
2713 * value.c (finalize_values): New function.
2714 * value.h (finalize_values): Declare.
2715
27162019-03-30 Eli Zaretskii <eliz@gnu.org>
2717
2718 * NEWS: Announce $_gdb_major and $_gdb_minor.
2719
2720 * top.c (init_gdb_version_vars): New function.
2721 (gdb_init): Call init_gdb_version_vars.
2722
27232019-03-29 Tom Tromey <tromey@adacore.com>
2724
2725 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
2726 help text. Remove dead code.
2727
27282019-03-29 Keith Seitz <keiths@redhat.com>
2729
2730 From Siddhesh Poyarekar:
2731 * f-lang.h (f77_get_upperbound): Return LONGEST.
2732 (f77_get_lowerbound): Likewise.
2733 * f-typeprint.c (f_type_print_varspec_suffix): Expand
2734 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
2735 print them.
2736 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
2737 plongest to format print it.
2738 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
2739 (f77_get_upperbound): Likewise.
2740 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
2741 LOWER_BOUND to LONGEST.
2742 (f77_create_arrayprint_offset_tbl): Likewise.
2743
27442019-03-29 Keith Seitz <keiths@redhat.com>
2745
2746 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2747 %s/pulongest for TYPE_LENGTH instead of %d in format
2748 strings.
2749 * ada-typerint.c (ada_print_type): Likewise.
2750 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
2751 * compile/compile-c-support.c (generate_register_struct): Likewise.
2752 * gdbtypes.c (recursive_dump_type): Likewise.
2753 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
2754 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
2755 instead of %d in format strings.
2756 * riscv-tdep.c (riscv_type_alignment): Cast second argument
2757 to std::min to ULONGEST.
2758 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
2759 instead of %d in format strings.
2760 * tracepoint.c (info_scope_command): Likewise.
2761 * typeprint.c (print_offset_data::update)
2762 (print_offset_data::finish): Likewise.
2763 * xtensa-tdep.c (xtensa_store_return_value)
2764 (xtensa_push_dummy_call): Likewise.
2765
27662019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
2767
2768 * windows-nat.c (display_selector): Fixed format specifications
2769 for 64-bit Cygwin.
2770
27712019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2772
2773 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
2774
27752019-03-28 Sandra Loosemore <sandra@codesourcery.com>
2776
2777 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
2778 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
2779 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
2780 (nios2_linux_init_abi): Install it.
2781
27822019-03-28 Alan Hayward <alan.hayward@arm.com>
2783
2784 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
2785
27862019-03-28 Alan Hayward <alan.hayward@arm.com>
2787
2788 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
2789
27902019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2791 Tom Tromey <tromey@adacore.com>
2792
2793 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
2794
27952019-03-26 Joel Brobecker <brobecker@adacore.com>
2796
2797 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
2798 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
2799 method to compute the bounds of range types. Also print "[evaluated]"
2800 if the bounds' values come from a dynamic evaluation.
2801
28022019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
2803
2804 * cp-valprint.c (cp_print_value_fields): Don't print trailing
2805 whitespace when pretty printing is on.
2806
28072019-03-26 Alan Hayward <alan.hayward@arm.com>
2808
2809 * ppc-linux-nat.c: Add include.
2810
28112019-03-26 Alan Hayward <alan.hayward@arm.com>
2812
2813 * NEWS: Mention AArch64 Pointer Authentication.
2814
28152019-03-26 Alan Hayward <alan.hayward@arm.com>
2816
2817 * arm-linux-nat.c: Add include.
2818
28192019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
2820
2821 * source-cache.c (source_cache::get_source_lines): Re-read
2822 fullname after calling open_source_file.
2823
28242019-03-25 John Baldwin <jhb@FreeBSD.org>
2825
2826 * NEWS: Mention TLS support for FreeBSD.
2827
28282019-03-25 Tom Tromey <tromey@adacore.com>
2829
2830 * minsyms.c (BUNCH_SIZE): Update comment.
2831 (~minimal_symbol_reader): Remove old comment.
2832 (compact_minimal_symbols): Update comment.
2833 (minimal_symbol_reader::install): Remove old comment. Update
2834 other comments.
2835
28362019-03-25 Alan Hayward <alan.hayward@arm.com>
2837
2838 * s390-linux-nat.c: Add include.
2839
28402019-03-25 Alan Hayward <alan.hayward@arm.com>
2841
2842 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
2843 Call linux_get_hwcap.
2844 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
2845 Likewise.
2846 (aarch64_linux_get_hwcap): Remove function.
2847 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
2848 declaration.
2849 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
2850 linux_get_hwcap.
2851 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
2852 * linux-tdep.c (linux_get_hwcap): Add function.
2853 (linux_get_hwcap2): Likewise.
2854 * linux-tdep.h (linux_get_hwcap): Add declaration.
2855 (linux_get_hwcap2): Likewise.
2856 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
2857 (ppc_linux_get_hwcap2): Likewise.
2858 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
2859 linux_get_hwcap.
2860 (ppc_linux_nat_target::insert_watchpoint): Likewise.
2861 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
2862 (ppc_linux_nat_target::read_description): Likewise.
2863 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
2864 * s390-linux-nat.c: Likewise.
2865 * s390-linux-tdep.c (s390_core_read_description): Likewise.
2866
28672019-03-24 Tom Tromey <tom@tromey.com>
2868
2869 * ada-lang.c (standard_lookup): Simplify initialization.
2870 (ada_lookup_symbol_nonlocal): Simplify return.
2871 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
2872 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
2873 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
2874 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
2875 initialization.
2876 * solib.c (solib_global_lookup): Simplify.
2877 * symtab.c (null_block_symbol): Remove.
2878 (symbol_cache_lookup): Simplify returns.
2879 (lookup_language_this): Simplify returns.
2880 (lookup_symbol_aux): Simplify return.
2881 (lookup_local_symbol): Simplify returns.
2882 (lookup_global_symbol_from_objfile): Simplify return.
2883 (lookup_symbol_in_objfile_symtabs)
2884 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
2885 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
2886 (lookup_static_symbol, lookup_global_symbol): Simplify return.
2887 * cp-namespace.c (cp_lookup_bare_symbol)
2888 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
2889 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
2890 (cp_lookup_nested_symbol): Don't use null_block_symbol.
2891 (cp_lookup_symbol_via_imports): Simplify initialization.
2892 (find_symbol_in_baseclass): Likewise.
2893 * symtab.h (null_block_symbol): Remove.
2894 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
2895 (d_lookup_nested_symbol, d_lookup_symbol_imports)
2896 (d_lookup_symbol_module): Likewise.
2897 (find_symbol_in_baseclass): Simplify initialization.
2898
28992019-03-24 Tom Tromey <tom@tromey.com>
2900
2901 * expression.h: Don't include symtab.h.
2902 (struct block): Forward declare.
2903
29042019-03-24 Tom Tromey <tom@tromey.com>
2905
2906 * c-exp.y (typebase): Remove casts.
2907 * gdbtypes.c (lookup_unsigned_typename, )
2908 (lookup_signed_typename): Remove cast.
2909 * eval.c (parse_to_comma_and_eval): Remove cast.
2910 * parse.c (write_dollar_variable): Remove cast.
2911 * block.h (struct block) <superblock>: Now const.
2912 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
2913 * psymtab.c (psym_map_matching_symbols): Make "block" const.
2914 (map_block): Make "block" const.
2915 * symfile.h (struct quick_symbol_functions)
2916 <map_matching_symbols>: Constify block argument to "callback".
2917 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
2918 const.
2919 (find_pc_sect_compunit_symtab): Make "b" const.
2920 (find_symbol_at_address): Likewise.
2921 (search_symbols): Likewise.
2922 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
2923 (dw2_debug_names_lookup_symbol): Likewise.
2924 (dw2_map_matching_symbols): Update.
2925 * p-valprint.c (pascal_val_print): Remove "block".
2926 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
2927 (aux_add_nonlocal_symbols): Make "block" const.
2928 (resolve_subexp): Remove cast.
2929 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
2930 const.
2931 (iterate_over_file_blocks): Likewise.
2932 * f-exp.y (%union) <bval>: Remove.
2933 * coffread.c (patch_opaque_types): Make "b" const.
2934 * spu-tdep.c (spu_catch_start): Make "block" const.
2935 * c-valprint.c (print_unpacked_pointer): Remove "block".
2936 * symmisc.c (dump_symtab_1): Make "b" const.
2937 (block_depth): Make "block" const.
2938 * d-exp.y (%union) <bval>: Remove.
2939 * cp-support.h (cp_lookup_rtti_type): Update.
2940 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
2941 * psymtab.c (psym_lookup_symbol): Make "block" const.
2942 (maintenance_check_psymtabs): Make "b" const.
2943 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
2944 (enumerate_locals, enumerate_args): Update.
2945 * python/py-symtab.c (stpy_global_block): Make "block" const.
2946 (stpy_static_block): Likewise.
2947 * inline-frame.c (block_starting_point_at): Make "new_block"
2948 const.
2949 * block.c (find_block_in_blockvector): Make return type const.
2950 (blockvector_for_pc_sect): Make "b" const.
2951 (find_block_in_blockvector): Make "b" const.
2952
29532019-03-23 Tom Tromey <tom@tromey.com>
2954
2955 * varobj.c (varobj_create): Update.
2956 * symfile.c (clear_symtab_users): Don't reset innermost_block.
2957 * printcmd.c (display_command, do_one_display): Don't reset
2958 innermost_block.
2959 * parser-defs.h (enum innermost_block_tracker_type): Move to
2960 expression.h.
2961 (innermost_block): Update comment.
2962 * parse.c (parse_exp_1): Add tracker_types parameter.
2963 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
2964 tracker_types parameter. Reset innermost_block.
2965 (parse_exp_in_context): Remove.
2966 (parse_expression_for_completion): Update.
2967 * objfiles.c (~objfile): Don't reset expression_context_block or
2968 innermost_block.
2969 * expression.h (enum innermost_block_tracker_type): Move from
2970 parser-defs.h.
2971 (parse_exp_1): Add tracker_types parameter.
2972 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
2973 reset innermost_block.
2974
29752019-03-23 Tom Tromey <tom@tromey.com>
2976
2977 * objfiles.h: Include bcache.h.
2978
29792019-03-23 Tom Tromey <tom@tromey.com>
2980
2981 * linespec.c (get_current_search_block): Use
2982 scoped_restore_current_language.
2983 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
2984
29852019-03-22 Alan Hayward <alan.hayward@arm.com>
2986 Jiong Wang <jiong.wang@arm.com>
2987
2988 * aarch64-linux-tdep.c
2989 (aarch64_linux_iterate_over_regset_sections): Check for pauth
2990 section.
2991 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
2992
29932019-03-22 Alan Hayward <alan.hayward@arm.com>
2994 Jiong Wang <jiong.wang@arm.com>
2995
2996 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
2997 instructions.
2998 (aarch64_analyze_prologue_test): Add PACIASP test.
2999 (aarch64_prologue_prev_register): Unmask PC value.
3000
30012019-03-22 Alan Hayward <alan.hayward@arm.com>
3002 Jiong Wang <jiong.wang@arm.com>
3003
3004 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
3005 (aarch64_dwarf2_prev_register): Unmask PC value.
3006 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
3007 (aarch64_execute_dwarf_cfa_vendor_op): Check for
3008 DW_CFA_AARCH64_negate_ra_state.
3009 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
3010
30112019-03-22 Alan Hayward <alan.hayward@arm.com>
3012 Jiong Wang <jiong.wang@arm.com>
3013
3014 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
3015 registers.
3016 (aarch64_pseudo_register_name): Likewise.
3017 (aarch64_pseudo_register_type): Likewise.
3018 (aarch64_pseudo_register_reggroup_p): Likewise.
3019 (aarch64_gdbarch_init): Add pauth registers.
3020 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
3021 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
3022 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
3023 (struct gdbarch_tdep): Add regnum for ra_state.
3024
30252019-03-22 Alan Hayward <alan.hayward@arm.com>
3026 Jiong Wang <jiong.wang@arm.com>
3027
3028 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
3029
30302019-03-22 Alan Hayward <alan.hayward@arm.com>
3031 Jiong Wang <jiong.wang@arm.com>
3032
3033 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
3034 function.
3035 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
3036 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
3037 (aarch64_gdbarch_init): Add puth registers.
3038 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
3039 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
3040 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
3041
30422019-03-22 Alan Hayward <alan.hayward@arm.com>
3043 Jiong Wang <jiong.wang@arm.com>
3044
3045 * aarch64-linux-nat.c
3046 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
3047 * aarch64-linux-tdep.c
3048 (aarch64_linux_core_read_description): Likewise.
3049 (aarch64_linux_get_hwcap): New function.
3050 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
3051 (aarch64_linux_get_hwcap): New declaration.
3052
30532019-03-22 Alan Hayward <alan.hayward@arm.com>
3054 Jiong Wang <jiong.wang@arm.com>
3055
3056 * aarch64-linux-nat.c
3057 (aarch64_linux_nat_target::read_description): Add pauth param.
3058 * aarch64-linux-tdep.c
3059 (aarch64_linux_core_read_description): Likewise.
3060 * aarch64-tdep.c (struct target_desc): Add in pauth.
3061 (aarch64_read_description): Add pauth param.
3062 (aarch64_gdbarch_init): Likewise.
3063 * aarch64-tdep.h (aarch64_read_description): Likewise.
3064 * arch/aarch64.c (aarch64_create_target_description): Likewise.
3065 * arch/aarch64.h (aarch64_create_target_description): Likewise.
3066 * features/Makefile: Add new files.
3067 * features/aarch64-pauth.c: New file.
3068 * features/aarch64-pauth.xml: New file.
3069
30702019-03-20 Tom Tromey <tromey@adacore.com>
3071
3072 * infrun.c (handle_inferior_event): Rename from
3073 handle_inferior_event_1. Create a scoped_value_mark.
3074 (handle_inferior_event): Remove.
3075
30762019-03-19 Tom Tromey <tromey@adacore.com>
3077
3078 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
3079 * infrun.h (print_stop_event): Add "displays" parameter.
3080 * infrun.c (print_stop_event): Add "displays" parameter.
3081
30822019-03-19 Pedro Alves <palves@redhat.com>
3083
3084 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
3085 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
3086 to -1. Fix TABs vs spaces.
3087 (tui_ui_out::tui_ui_out): Don't initialize fields here.
3088 * tui/tui-out.h (tui_ui_out) Add intro comments.
3089 <m_line, m_start_of_line>: In-class initialize, and add describing
3090 comment.
3091
30922019-03-18 Alan Hayward <alan.hayward@arm.com>
3093
3094 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
3095 variable names.
3096 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
3097
30982019-03-18 Pedro Alves <palves@redhat.com>
3099 Eli Zaretskii <eliz@gnu.org>
3100
3101 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
3102 m_line and m_start_of_line.
3103
31042019-03-18 Eli Zaretskii <eliz@gnu.org>
3105
3106 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
3107 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
3108 it returns a newline. This fixes a regression in TU mode, whereby
3109 the next line is output on the same screen line as the user input.
3110
31112019-03-18 Tom Tromey <tromey@adacore.com>
3112
3113 * minsyms.c (minimal_symbol_reader::install): Remove call to
3114 obstack_blank.
3115
31162019-03-18 Pedro Alves <palves@redhat.com>
3117
3118 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
3119 New globals.
3120 (apply_style): New, factored out from ...
3121 (apply_ansi_escape): ... this. Handle reverse video mode.
3122 (tui_set_reverse_mode): New function.
3123 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
3124 * tui/tui-winsource.c (tui_show_source_line): Use
3125 tui_set_reverse_mode instead of setting A_STANDOUT.
3126 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
3127 New setter methods.
3128
31292019-03-18 Hannes Domani <ssbssa@yahoo.de>
3130
3131 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
3132 Handle tabs.
3133
31342019-03-18 Tom Tromey <tromey@adacore.com>
3135
3136 * ada-lang.c (empty_array): Add "high" parameter.
3137 (ada_evaluate_subexp): Update.
3138
31392019-03-17 Sergei Trofimovich <siarheit@google.com>
3140
3141 * unittests/string_view-selftests.c: Define
3142 _initialize_string_view_selftests unconditionally.
3143
31442019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3145
3146 PR gdb/24350
3147 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
3148
31492019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
3150
3151 PR gdb/24351
3152 * windows-nat.c (display_selector): Fix format specifiers.
3153
31542019-03-17 Eli Zaretskii <eliz@gnu.org>
3155
3156 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
3157 tui_refill_source_window instead of tui_refresh_win, to update the
3158 current execution line. This fixes redisplay of the current line
3159 when stepping through the code with "next" or "step".
3160
31612019-03-16 Eli Zaretskii <eliz@gnu.org>
3162
3163 * source-cache.c (source_cache::get_source_lines): Call
3164 find_source_lines to initialize s->nlines. This fixes vertical
3165 scrolling of TUI source window when the DOWN arrow is pressed.
3166
31672019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3168
3169 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
3170 linux-thread-db.c (_initialize_thread_db): Likewise.
3171
31722019-03-16 Eli Zaretskii <eliz@gnu.org>
3173
3174 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
3175 wclrtoeol in tui_show_source_line". This reverts changes made in
3176 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
3177
31782019-03-15 Tom Tromey <tom@tromey.com>
3179
3180 * symtab.h (struct minimal_symbol): Derive from
3181 general_symbol_info.
3182 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
3183 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3184 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3185 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3186 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
3187 (MSYMBOL_SEARCH_NAME): Update.
3188 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
3189 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
3190 * minsyms.c (minimal_symbol_reader::record_full): Update.
3191
31922019-03-15 Tom Tromey <tom@tromey.com>
3193
3194 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
3195
31962019-03-15 Tom Tromey <tom@tromey.com>
3197
3198 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
3199 unique_xmalloc_ptr.
3200 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
3201 Update.
3202 * minsyms.c (lookup_minimal_symbol_by_pc_section)
3203 (build_minimal_symbol_hash_tables)
3204 (minimal_symbol_reader::install): Update.
3205
32062019-03-15 Tom Tromey <tom@tromey.com>
3207
3208 * symtab.c (create_demangled_names_hash): Update.
3209 (symbol_set_names): Update.
3210 * objfiles.h (struct objfile_per_bfd_storage)
3211 <demangled_names_hash>: Now an htab_up.
3212 * objfiles.c (objfile_per_bfd_storage): Simplify.
3213
32142019-03-15 Tom Tromey <tom@tromey.com>
3215
3216 * objfiles.h (struct objfile_per_bfd_storage): Declare
3217 destructor.
3218 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
3219 New.
3220 (get_objfile_bfd_data): Use new. Don't initialize
3221 language_of_main.
3222 (free_objfile_per_bfd_storage): Remove.
3223 (objfile_bfd_data_free, objfile::~objfile): Use delete.
3224
32252019-03-15 Tom Tromey <tom@tromey.com>
3226
3227 * symfile.c (reread_symbols): Update.
3228 * objfiles.c (objfile::objfile): Update.
3229 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
3230 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
3231 comment.
3232 (minimal_symbol_reader::install): Update.
3233 (terminate_minimal_symbol_table): Remove.
3234 * jit.c (jit_object_close_impl): Update.
3235
32362019-03-15 Tom Tromey <tom@tromey.com>
3237
3238 * minsyms.c (minimal_symbol_reader::record_full): Remove some
3239 initializations.
3240
32412019-03-15 Tom Tromey <tom@tromey.com>
3242
3243 * objfiles.h (struct objfile_per_bfd_storage)
3244 <demangled_hash_languages>: Now a bitset.
3245 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
3246 (lookup_minimal_symbol): Update.
3247
32482019-03-15 Tom Tromey <tom@tromey.com>
3249
3250 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
3251 Don't return the symbol.
3252 * coffread.c (record_minimal_symbol): Use record_full.
3253
32542019-03-14 Eli Zaretskii <eliz@gnu.org>
3255
3256 The MS-Windows port of ncurses fails to switch to a color pair if
3257 one or both of the colors are the implicit default colors. This
3258 change records the default colors when TUI is initialized, and
3259 then specifies them explicitly when a color pair uses the default
3260 colors. This allows color styling in TUI mode on MS-Windows.
3261
3262 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
3263 ncurses_norm_attr.
3264 (tui_initialize_io) [__MINGW32__]: Record the default terminal
3265 colors in ncurses_norm_attr.
3266 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
3267 "none", replace it with the default color recorded in
3268 ncurses_norm_attr.
3269
32702019-03-14 Tom Tromey <tromey@adacore.com>
3271
3272 * source-cache.h (class source_cache) <get_source_lines>: Return
3273 std::string.
3274 * source-cache.c (source_cache::extract_lines): Handle case where
3275 first_pos==npos. Return std::string.
3276 (source_cache::get_source_lines): Update.
3277
32782019-03-14 Tom Tromey <tromey@adacore.com>
3279
3280 * NEWS: Add item for "style sources" commands.
3281 * source-cache.c (source_cache::get_source_lines): Check
3282 source_styling.
3283 * cli/cli-style.c (source_styling): New global.
3284 (_initialize_cli_style): Add "style sources" commands.
3285 (show_style_sources): New function.
3286 * cli/cli-style.h (source_styling): Declare.
3287
32882019-03-14 Pedro Alves <palves@redhat.com>
3289 Tom Tromey <tromey@adacore.com>
3290
3291 * tui/tui-winsource.h (tui_refill_source_window): Declare.
3292 * tui/tui-winsource.c (tui_refill_source_window): New function,
3293 from...
3294 (tui_horizontal_source_scroll): ... here. Move some logic.
3295 * cli/cli-style.c (set_style_enabled): Notify new observable.
3296 * tui/tui-hooks.c (tui_redisplay_source): New function.
3297 (tui_attach_detach_observers): Attach or detach
3298 tui_redisplay_source.
3299 * observable.h (source_styling_changed): New observable.
3300 * observable.c: Define source_styling_changed observable.
3301
33022019-03-13 Tom Tromey <tromey@adacore.com>
3303
3304 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
3305 (i386_gnu_nat_target::store_registers): Update.
3306 * target-debug.h (target_debug_print_std_string): New macro.
3307 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
3308 * windows-tdep.c (display_one_tib): Update.
3309 * tui/tui-stack.c (tui_make_status_line): Update.
3310 * top.c (print_inferior_quit_action): Update.
3311 * thread.c (thr_try_catch_cmd): Update.
3312 (add_thread_with_info): Update.
3313 (thread_target_id_str): Update.
3314 (thr_try_catch_cmd): Update.
3315 (thread_command): Update.
3316 (thread_find_command): Update.
3317 * record-btrace.c (record_btrace_target::info_record)
3318 (record_btrace_resume_thread, record_btrace_target::resume)
3319 (record_btrace_cancel_resume, record_btrace_step_thread)
3320 (record_btrace_target::wait, record_btrace_target::wait)
3321 (record_btrace_target::wait, record_btrace_target::stop): Update.
3322 * progspace.c (print_program_space): Update.
3323 * process-stratum-target.c
3324 (process_stratum_target::thread_address_space): Update.
3325 * linux-fork.c (linux_fork_mourn_inferior)
3326 (detach_checkpoint_command, info_checkpoints_command)
3327 (linux_fork_context): Update.
3328 (linux_fork_detach): Update.
3329 (class scoped_switch_fork_info): Update.
3330 (delete_checkpoint_command): Update.
3331 * infrun.c (follow_fork_inferior): Update.
3332 (follow_fork_inferior): Update.
3333 (proceed_after_vfork_done): Update.
3334 (handle_vfork_child_exec_or_exit): Update.
3335 (follow_exec): Update.
3336 (displaced_step_prepare_throw): Update.
3337 (displaced_step_restore): Update.
3338 (start_step_over): Update.
3339 (resume_1): Update.
3340 (clear_proceed_status_thread): Update.
3341 (proceed): Update.
3342 (print_target_wait_results): Update.
3343 (do_target_wait): Update.
3344 (context_switch): Update.
3345 (stop_all_threads): Update.
3346 (restart_threads): Update.
3347 (finish_step_over): Update.
3348 (handle_signal_stop): Update.
3349 (switch_back_to_stepped_thread): Update.
3350 (keep_going_pass_signal): Update.
3351 (print_exited_reason): Update.
3352 (normal_stop): Update.
3353 * inferior.c (inferior_pid_to_str): Change return type.
3354 (print_selected_inferior): Update.
3355 (add_inferior): Update.
3356 (detach_inferior): Update.
3357 * dummy-frame.c (fprint_dummy_frames): Update.
3358 * dcache.c (dcache_info_1): Update.
3359 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
3360 (btrace_fetch, btrace_clear): Update.
3361 * linux-tdep.c (linux_core_pid_to_str): Change return type.
3362 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
3363 type.
3364 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
3365 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
3366 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
3367 * gdbarch.c, gdbarch.h: Rebuild.
3368 * gdbarch.sh (core_pid_to_str): Change return type.
3369 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
3370 return type.
3371 (windows_nat_target::pid_to_str): Change return type.
3372 (windows_delete_thread): Update.
3373 (windows_nat_target::attach): Update.
3374 (windows_nat_target::files_info): Update.
3375 * target-delegates.c: Rebuild.
3376 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
3377 return type.
3378 (sol_thread_target::pid_to_str): Change return type.
3379 * remote.c (class remote_target) <pid_to_str>: Change return
3380 type.
3381 (remote_target::pid_to_str): Change return type.
3382 (extended_remote_target::attach, remote_target::remote_stop_ns)
3383 (remote_target::remote_notif_remove_queued_reply)
3384 (remote_target::push_stop_reply, remote_target::disable_btrace):
3385 Update.
3386 (extended_remote_target::attach): Update.
3387 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
3388 type.
3389 (gdbsim_target::pid_to_str): Change return type.
3390 * ravenscar-thread.c (struct ravenscar_thread_target)
3391 <pid_to_str>: Change return type.
3392 (ravenscar_thread_target::pid_to_str): Change return type.
3393 * procfs.c (class procfs_target) <pid_to_str>: Change return
3394 type.
3395 (procfs_target::pid_to_str): Change return type.
3396 (procfs_target::attach): Update.
3397 (procfs_target::detach): Update.
3398 (procfs_target::fetch_registers): Update.
3399 (procfs_target::store_registers): Update.
3400 (procfs_target::wait): Update.
3401 (procfs_target::files_info): Update.
3402 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
3403 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
3404 return type.
3405 (nto_procfs_target::pid_to_str): Change return type.
3406 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
3407 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
3408 return type.
3409 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
3410 (exit_lwp): Update.
3411 (attach_proc_task_lwp_callback, get_detach_signal)
3412 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
3413 (linux_nat_target::resume, wait_lwp, stop_callback)
3414 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
3415 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
3416 (linux_nat_wait_1, resume_stopped_resumed_lwps)
3417 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
3418 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
3419 type.
3420 (inf_ptrace_target::attach): Update.
3421 (inf_ptrace_target::files_info): Update.
3422 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
3423 type.
3424 (go32_nat_target::pid_to_str): Change return type.
3425 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
3426 (gnu_nat_target::wait): Update.
3427 (gnu_nat_target::wait): Update.
3428 (gnu_nat_target::resume): Update.
3429 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
3430 (fbsd_nat_target::wait): Update.
3431 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
3432 type.
3433 (darwin_nat_target::attach): Update.
3434 * corelow.c (class core_target) <pid_to_str>: Change return type.
3435 (core_target::pid_to_str): Change return type.
3436 * target.c (normal_pid_to_str): Change return type.
3437 (default_pid_to_str): Likewise.
3438 (target_pid_to_str): Change return type.
3439 (target_translate_tls_address): Update.
3440 (target_announce_detach): Update.
3441 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
3442 return type.
3443 (bsd_uthread_target::pid_to_str): Change return type.
3444 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
3445 type.
3446 (bsd_kvm_target::pid_to_str): Change return type.
3447 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
3448 return type.
3449 (aix_thread_target::pid_to_str): Change return type.
3450 * target.h (struct target_ops) <pid_to_str>: Change return type.
3451 (target_pid_to_str, normal_pid_to_str): Likewise.
3452 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
3453 type.
3454 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
3455 type.
3456 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
3457 return type.
3458 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
3459 type.
3460 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
3461 type.
3462 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
3463 return type.
3464
34652019-03-13 Simon Marchi <simon.marchi@ericsson.com>
3466
3467 * NEWS: Mention that the new default MI version is 3. Mention
3468 changes to the output of commands and events that deal with
3469 multi-location breakpoints.
3470 * breakpoint.c: Include "mi/mi-out.h".
3471 (print_one_breakpoint): Change output syntax if using MI version
3472 >= 3.
3473 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
3474 New.
3475 (mi_multi_location_breakpoint_output_fixed): New.
3476 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
3477 (mi_cmd_fix_multi_location_breakpoint_output): New.
3478 (mi_multi_location_breakpoint_output_fixed): New.
3479 * mi/mi-cmds.c (mi_cmds): Register command
3480 -fix-multi-location-breakpoint-output.
3481 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
3482 interpreter "mi".
3483
34842019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3485
3486 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
3487 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
3488 instantiate mi_ui_out based on interpreter name.
3489 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
3490 * mi/mi-main.c (mi_load_progress): Likewise.
3491
34922019-03-12 John Baldwin <jhb@FreeBSD.org>
3493
3494 * NEWS: Combine separate "New targets" sections for 8.3.
3495
34962019-03-12 John Baldwin <jhb@FreeBSD.org>
3497
3498 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
3499 (ppcfbsd_init_abi): Install gdbarch
3500 "fetch_tls_load_module_address" and "get_thread_local_address"
3501 methods.
3502
35032019-03-12 John Baldwin <jhb@FreeBSD.org>
3504
3505 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
3506 (riscv_fbsd_init_abi): Install gdbarch
3507 "fetch_tls_load_module_address" and "get_thread_local_address"
3508 methods.
3509
35102019-03-12 John Baldwin <jhb@FreeBSD.org>
3511
3512 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
3513 (i386fbsd_init_abi): Install gdbarch
3514 "fetch_tls_load_module_address" and "get_thread_local_address"
3515 methods.
3516
35172019-03-12 John Baldwin <jhb@FreeBSD.org>
3518
3519 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
3520 (amd64fbsd_init_abi): Install gdbarch
3521 "fetch_tls_load_module_address" and "get_thread_local_address"
3522 methods.
3523
35242019-03-12 John Baldwin <jhb@FreeBSD.org>
3525
3526 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
3527 (struct fbsd_pspace_data): New type.
3528 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
3529 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
3530 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
3531 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
3532 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
3533
35342019-03-12 John Baldwin <jhb@FreeBSD.org>
3535
3536 * gdbtypes.c (lookup_struct_elt): New function.
3537 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
3538 * gdbtypes.h (struct struct_elt): New type.
3539 (lookup_struct_elt): New prototype.
3540
35412019-03-12 John Baldwin <jhb@FreeBSD.org>
3542
3543 * gdbtypes.c (lookup_struct_elt_type): Update comment and
3544 remove disabled code block.
3545
35462019-03-12 John Baldwin <jhb@FreeBSD.org>
3547
3548 * gdbarch.sh (get_thread_local_address): New method.
3549 * gdbarch.h, gdbarch.c: Regenerate.
3550 * target.c (target_translate_tls_address): Use
3551 gdbarch_get_thread_local_address if present instead of
3552 target::get_thread_local_address.
3553
35542019-03-12 John Baldwin <jhb@FreeBSD.org>
3555
3556 * target.h (target::get_thread_local_address): Update comment.
3557
35582019-03-12 John Baldwin <jhb@FreeBSD.org>
3559
3560 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
3561 objfile->separate_debug_objfile_backlink if not NULL.
3562
35632019-03-12 John Baldwin <jhb@FreeBSD.org>
3564
3565 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
3566 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
3567 (amd64bsd_store_inferior_registers): Likewise.
3568 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3569 Enable segment base registers.
3570 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
3571 PT_GETFSBASE and PT_GETGSBASE.
3572 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
3573 PT_SETGSBASE.
3574 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
3575 segment base registers.
3576 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3577
35782019-03-12 John Baldwin <jhb@FreeBSD.org>
3579
3580 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
3581 Update calls to i386_target_description to add 'segments'
3582 parameter.
3583 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
3584 add segment base registers.
3585 * arch/i386.c (i386_create_target_description): Add 'segments'
3586 parameter to enable segment base registers.
3587 * arch/i386.h (i386_create_target_description): Likewise.
3588 * features/i386/32bit-segments.xml: New file.
3589 * features/i386/32bit-segments.c: Generate.
3590 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
3591 call to i386_target_description to add 'segments' parameter.
3592 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
3593 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
3594 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
3595 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
3596 if feature is present.
3597 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
3598 Add 'segments' parameter to call to i386_target_description.
3599 (i386_target_description): Add 'segments' parameter to enable
3600 segment base registers.
3601 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
3602 to call to i386_target_description.
3603 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
3604 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
3605 Define I386_NUM_REGS.
3606 (i386_target_description): Add 'segments' parameter to enable
3607 segment base registers.
3608
36092019-03-12 Eli Zaretskii <eliz@gnu.org>
3610
3611 PR/24325
3612 * source-cache.c: #undef open and close, to avoid unresolved
3613 externals during linking.
3614
36152019-03-12 Tom Tromey <tromey@adacore.com>
3616
3617 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
3618 const. Add initializers.
3619 (_initialize_remote): Don't initialize ptid globals.
3620
36212019-03-12 Pedro Alves <palves@redhat.com>
3622
3623 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
3624
36252019-03-12 Pedro Alves <palves@redhat.com>
3626
3627 * cp-name-parser.y (main): Remove unused 'len' variable.
3628
36292019-03-12 Tom Tromey <tromey@adacore.com>
3630
3631 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
3632 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
3633
36342019-03-12 Tom Tromey <tromey@adacore.com>
3635
3636 * linux-nat.c (iterate_over_lwps): Update.
3637 (stop_callback): Remove parameter.
3638 (stop_wait_callback, detach_callback, resume_set_callback)
3639 (select_singlestep_lwp_callback, set_ignore_sigint)
3640 (status_callback, resumed_callback, resume_clear_callback)
3641 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
3642 data parameter.
3643 (linux_nat_target::detach, linux_nat_target::resume)
3644 (linux_stop_and_wait_all_lwps, select_event_lwp)
3645 (linux_nat_filter_event, linux_nat_wait_1)
3646 (linux_nat_target::kill, linux_nat_target::stop)
3647 (linux_nat_target::stop): Update.
3648 (linux_nat_resume_callback): Change type.
3649 (resume_stopped_resumed_lwps, count_events_callback)
3650 (select_event_lwp_callback): Likewise.
3651 (linux_stop_lwp, linux_nat_stop_lwp): Update.
3652 * arm-linux-nat.c (struct update_registers_data): Remove.
3653 (update_registers_callback): Change type.
3654 (arm_linux_insert_hw_breakpoint1): Update.
3655 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
3656 parameter.
3657 (x86_linux_dr_set_addr): Update.
3658 (x86_linux_dr_set_control): Update.
3659 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
3660 (iterate_over_lwps): Use gdb::function_view.
3661 * nat/aarch64-linux-hw-point.c (struct
3662 aarch64_dr_update_callback_param): Remove.
3663 (debug_reg_change_callback): Change type.
3664 (aarch64_notify_debug_reg_change): Update.
3665 * s390-linux-nat.c (s390_refresh_per_info): Update.
3666
36672019-03-11 Tom Tromey <tromey@adacore.com>
3668
3669 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
3670 redundant assignment to "this_cu".
3671
36722019-03-08 Simon Marchi <simon.marchi@efficios.com>
3673
3674 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
3675
36762019-03-08 Simon Marchi <simon.marchi@efficios.com>
3677
3678 * gdbtypes.c (rank_one_type_parm_set): New function extracted
3679 from...
3680 (rank_one_type): ... this.
3681
36822019-03-08 Simon Marchi <simon.marchi@efficios.com>
3683
3684 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
3685 from...
3686 (rank_one_type): ... this.
3687
36882019-03-08 Simon Marchi <simon.marchi@efficios.com>
3689
3690 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
3691 from...
3692 (rank_one_type): ... this.
3693
36942019-03-08 Simon Marchi <simon.marchi@efficios.com>
3695
3696 * gdbtypes.c (rank_one_type_parm_float): New function extracted
3697 from...
3698 (rank_one_type): ... this.
3699
37002019-03-08 Simon Marchi <simon.marchi@efficios.com>
3701
3702 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
3703 from...
3704 (rank_one_type): ... this.
3705
37062019-03-08 Simon Marchi <simon.marchi@efficios.com>
3707
3708 * gdbtypes.c (rank_one_type_parm_range): New function extracted
3709 from...
3710 (rank_one_type): ... this.
3711
37122019-03-08 Simon Marchi <simon.marchi@efficios.com>
3713
3714 * gdbtypes.c (rank_one_type_parm_char): New function extracted
3715 from...
3716 (rank_one_type): ... this.
3717
37182019-03-08 Simon Marchi <simon.marchi@efficios.com>
3719
3720 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
3721 from...
3722 (rank_one_type): ... this.
3723
37242019-03-08 Simon Marchi <simon.marchi@efficios.com>
3725
3726 * gdbtypes.c (rank_one_type_parm_int): New function extracted
3727 from...
3728 (rank_one_type): ... this.
3729
37302019-03-08 Simon Marchi <simon.marchi@efficios.com>
3731
3732 * gdbtypes.c (rank_one_type_parm_func): New function extracted
3733 from...
3734 (rank_one_type): ... this.
3735
37362019-03-08 Simon Marchi <simon.marchi@efficios.com>
3737
3738 * gdbtypes.c (rank_one_type_parm_array): New function extracted
3739 from...
3740 (rank_one_type): ... this.
3741
37422019-03-08 Simon Marchi <simon.marchi@efficios.com>
3743
3744 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
3745 from...
3746 (rank_one_type): ... this.
3747
37482019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3749
3750 * inferior.c (initialize_inferiors): Ensure 'help set/show print
3751 inferior-events' shows the example events.
3752
37532019-03-08 Eli Zaretskii <eliz@gnu.org>
3754
3755 Support styling on native MS-Windows console
3756
3757 PR/24315
3758 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
3759 on MS-Windows if $TERM is not defined.
3760
3761 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
3762
3763 * posix-hdep.c (gdb_console_fputs):
3764 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
3765 functions.
3766 * ui-file.h (gdb_console_fputs): Add prototype.
3767
3768 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
3769 back to fputs only if the former returns zero.
3770
37712019-03-07 Tom Tromey <tom@tromey.com>
3772
3773 * symmisc.c (print_symbol_bcache_statistics): Update.
3774 (print_objfile_statistics): Update.
3775 * symfile.c (allocate_symtab): Update.
3776 * stabsread.c: Don't include bcache.h.
3777 * psymtab.h (struct psymbol_bcache): Don't declare.
3778 (class psymtab_storage) <psymbol_cache>: Now a bcache.
3779 (psymbol_bcache_init, psymbol_bcache_free)
3780 (psymbol_bcache_get_bcache): Don't declare.
3781 * psymtab.c (struct psymbol_bcache): Remove.
3782 (psymtab_storage::psymtab_storage): Update.
3783 (psymtab_storage::~psymtab_storage): Update.
3784 (psymbol_bcache_init, psymbol_bcache_free)
3785 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
3786 (add_psymbol_to_bcache): Update.
3787 (allocate_psymtab): Update.
3788 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
3789 macro_cache>: No longer pointers.
3790 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
3791 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
3792 * macrotab.c (macro_bcache): Update.
3793 * macroexp.c: Don't include bcache.h.
3794 * gdbtypes.c (check_types_worklist): Update.
3795 (types_deeply_equal): Remove TRY/CATCH. Update.
3796 * elfread.c (elf_symtab_read): Update.
3797 * dwarf2read.c: Don't include bcache.h.
3798 * buildsym.c (buildsym_compunit::get_macro_table): Update.
3799 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
3800 (print_bcache_statistics, bcache_memory_used): Don't declare.
3801 (struct bcache): Move from bcache.c. Add constructor, destructor,
3802 methods. Rename all data members.
3803 * bcache.c (struct bcache): Move to bcache.h.
3804 (bcache::expand_hash_table): Rename from expand_hash_table.
3805 (bcache): Remove.
3806 (bcache::insert): Rename from bcache_full.
3807 (bcache::compare): Rename from bcache_compare.
3808 (bcache_xmalloc): Remove.
3809 (bcache::~bcache): Rename from bcache_xfree.
3810 (bcache::print_statistics): Rename from print_bcache_statistics.
3811 (bcache::memory_used): Rename from bcache_memory_used.
3812
38132019-03-07 Pedro Alves <palves@redhat.com>
3814
3815 * infrun.c (normal_stop): Also check for
3816 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
3817
38182019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
3819
3820 * f-lang.c (value_from_host_double): Moved to...
3821 * value.c (value_from_host_double): ...here.
3822 * value.h (value_from_host_double): Declare.
3823 * guile/scm-math.c (vlscm_convert_typed_number): Use
3824 value_from_host_double.
3825 (vlscm_convert_number): Likewise.
3826 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
3827 * python/py-value.c (convert_value_from_python): Likewise.
3828
38292019-03-06 Tom Tromey <tom@tromey.com>
3830
3831 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
3832
38332019-03-06 Tom Tromey <tom@tromey.com>
3834
3835 * utils.h (free_current_contents): Don't declare.
3836 * utils.c (free_current_contents): Remove.
3837
38382019-03-06 Tom Tromey <tom@tromey.com>
3839
3840 * top.c (quit_force): Update.
3841 * main.c (captured_command_loop): Update.
3842 * common/new-op.c (operator new): Update.
3843 * common/common-exceptions.c (struct catcher)
3844 <save_cleanup_chain>: Remove member.
3845 (exceptions_state_mc_init): Update.
3846 (exception_try_scope_entry): Return nullptr.
3847 (exception_try_scope_exit, exception_rethrow)
3848 (throw_exception_sjlj, throw_exception_cxx): Update.
3849 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
3850 (all_cleanups, do_cleanups, discard_cleanups)
3851 (discard_final_cleanups, save_cleanups, save_final_cleanups)
3852 (restore_cleanups, restore_final_cleanups): Don't declare.
3853 (do_final_cleanups): Remove parameter.
3854 * common/cleanups.c (cleanup_chain, make_cleanup)
3855 (make_cleanup_dtor, all_cleanups, do_cleanups)
3856 (discard_my_cleanups, discard_cleanups)
3857 (discard_final_cleanups, save_my_cleanups, save_cleanups)
3858 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
3859 (null_cleanup): Remove.
3860 (do_final_cleanups): Remove parameter.
3861
38622019-03-06 Tom Tromey <tom@tromey.com>
3863
3864 * remote.c (remote_target::remote_parse_stop_reply): Use
3865 unique_xmalloc_ptr.
3866
38672019-03-06 Tom Tromey <tom@tromey.com>
3868
3869 * stabsread.c (struct stabs_field_info): Rename from field_info.
3870 <list, fnlist>: Add initializers.
3871 <obstack>: New member.
3872 (read_member_functions, read_struct_fields, read_baseclasses):
3873 Allocate on obstack. Don't use cleanups.
3874 (read_one_struct_field, read_member_functions, read_struct_fields)
3875 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
3876 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
3877 (read_struct_type): Update.
3878
38792019-03-06 Tom Tromey <tom@tromey.com>
3880
3881 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
3882 * common/filestuff.h (make_cleanup_close): Don't declare.
3883 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
3884 Remove.
3885
38862019-03-06 Tom Tromey <tom@tromey.com>
3887
3888 * solib-aix.c: Use make_scope_exit.
3889
38902019-03-06 Tom Tromey <tom@tromey.com>
3891
3892 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
3893 Use make_scope_exit.
3894
38952019-03-06 Tom Tromey <tom@tromey.com>
3896
3897 * solib-svr4.c (disable_probes_interface): Remove parameter.
3898 (svr4_handle_solib_event): Use make_scope_exit.
3899
39002019-03-06 Tom Tromey <tom@tromey.com>
3901
3902 * remote.c (struct stop_reply_deleter): Remove.
3903 (stop_reply_up): Update.
3904 (struct stop_reply): Derive from notif_event. Don't typedef.
3905 <regcache>: Now a std::vector.
3906 (stop_reply_xfree): Remove.
3907 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
3908 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
3909 (remote_target::discard_pending_stop_replies): Use delete.
3910 (remote_target::remote_parse_stop_reply): Update.
3911 (remote_target::process_stop_reply): Update.
3912 * remote-notif.h (struct notif_event): Add virtual destructor.
3913 Remove "dtr" member.
3914 (struct notif_client) <alloc_event>: Return a unique_ptr.
3915 (notif_event_xfree): Don't declare.
3916 (notif_event_up): New typedef.
3917 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
3918 (notif_event_xfree, do_notif_event_xfree): Remove.
3919 (remote_notif_state_xfree): Update.
3920
39212019-03-06 Tom Tromey <tom@tromey.com>
3922
3923 * infrun.c (displaced_step_clear_cleanup): Now a
3924 forward_scope_exit type.
3925 (displaced_step_prepare_throw): Update.
3926 (displaced_step_fixup): Update.
3927
39282019-03-06 Tom Tromey <tom@tromey.com>
3929
3930 * inferior.h (class inferior): Update comment.
3931 * gdbthread.h (class thread_info): Update comment.
3932
39332019-03-06 Joel Brobecker <brobecker@adacore.com>
3934 Tom Tromey <tom@tromey.com>
3935
3936 * stabsread.h (struct stab_section_list): Remove.
3937 (coffstab_build_psymtabs): Update.
3938 * dbxread.c (symbuf_sections): Now a std::vector.
3939 (sect_idx): New global.
3940 (fill_symbuf): Update.
3941 (coffstab_build_psymtabs): Change type of stabsects parameter.
3942 Update.
3943 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
3944 std::vector.
3945 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
3946 (coff_locate_sections): Update.
3947 (coff_symfile_read): Remove cleanups. Update.
3948 (init_stringtab): Add storage parameter.
3949 (free_stringtab, free_stringtab_cleanup): Remove.
3950 (init_lineno): Add storage parameter.
3951 (free_linetab, free_linetab_cleanup): Remove.
3952
39532019-03-06 Pedro Alves <palves@redhat.com>
3954
3955 * linux-fork.c (fork_info::clobber_regs): Delete.
3956 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
3957 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
3958 comment. Adjust.
3959 (scoped_switch_fork_info::scoped_switch_fork_info)
3960 (checkpoint_command, linux_fork_context): Adjust
3961 fork_save_infrun_state calls.
3962
39632019-03-06 Pedro Alves <palves@redhat.com>
3964
3965 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
3966 (inf_has_multiple_threads): Return 'bool' and rewrite using
3967 inferior_info::threads().
3968
39692019-03-06 Pedro Alves <palves@redhat.com>
3970
3971 * linux-fork.c: Include <list>.
3972 (fork_list): Now a std::list instance.
3973 (fork_info): Add ctor, dtor, and in-class initialize all fields.
3974 (forks_exist_p, find_last_fork): Adjust.
3975 (new_fork): Delete.
3976 (one_fork_p): New.
3977 (add_fork): Adjust.
3978 (free_fork): Delete, folded into fork_info::~fork_info().
3979 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
3980 Adjust.
3981 (init_fork_list): Delete.
3982 (linux_fork_killall, linux_fork_mourn_inferior)
3983 (linux_fork_detach, info_checkpoints_command): Adjust.
3984 (_initialize_linux_fork): No longer call init_fork_list.
3985
39862019-03-06 Pedro Alves <palves@redhat.com>
3987
3988 * linux-fork.c (new_fork): New, split out of ...
3989 (add_fork): ... this. Return void. Move "first fork" special
3990 case from here, to ...
3991 (checkpoint_command): ... here.
3992 * linux-linux.h (add_fork): Return void.
3993
39942019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
3997
39982019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
3999 Chris January <chris.january@arm.com>
4000 David Lecomber <david.lecomber@arm.com>
4001
4002 * f-exp.y: New token, UNOP_INTRINSIC.
4003 (exp): New pattern using UNOP_INTRINSIC token.
4004 (f77_keywords): Add 'abs' keyword.
4005 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
4006 (value_from_host_double): New function.
4007 (evaluate_subexp_f): Support UNOP_ABS.
4008
40092019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4010
4011 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
4012 types.
4013
40142019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4015
4016 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
4017 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
4018 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
4019
40202019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4021
4022 * f-exp.y (convert_to_kind_type): Handle more type kinds.
4023
40242019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4025 Chris January <chris.january@arm.com>
4026
4027 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
4028 * f-exp.y: Define 'KIND' token.
4029 (exp): New pattern for KIND expressions.
4030 (ptype): Handle types with a kind extension.
4031 (direct_abs_decl): Extend to spot kind extensions.
4032 (f77_keywords): Add 'kind' to the list.
4033 (push_kind_type): New function.
4034 (convert_to_kind_type): New function.
4035 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
4036 * parse.c (operator_length_standard): Likewise.
4037 * parser-defs.h (enum type_pieces): Add tp_kind.
4038 * std-operator.def: Add UNOP_KIND.
4039
40402019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4041
4042 * f-exp.y (f_parse): Set yydebug.
4043
40442019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4045
4046 * f-lang.c (evaluate_subexp_f): New function.
4047 (exp_descriptor_f): New global.
4048 (f_language_defn): Use exp_descriptor_f instead of
4049 exp_descriptor_standard.
4050
40512019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4052
4053 * f-exp.y (struct token): Add comments.
4054 (dot_ops): Remove uppercase versions and the end marker.
4055 (f77_keywords): Likewise.
4056 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
4057 entries in the dot_ops array are case insensitive, and use
4058 strncasecmp to compare strings. Also some whitespace cleanup in
4059 this area. Similar for the f77_keywords array, except entries in
4060 this list might be case sensitive.
4061
40622019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
4063
4064 * f-exp.y (struct f77_boolean_val): Add comments.
4065 (boolean_values): Remove uppercase versions, and end marker.
4066 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
4067 and use strncasecmp to achieve case insensitivity. Additionally,
4068 perform whitespace cleanup around this code.
4069
40702019-03-06 Tom Tromey <tromey@adacore.com>
4071
4072 * remote-sim.c (gdbsim_target_open): Use result of
4073 gdb_argv::release.
4074
40752019-03-06 Richard Bunt <richard.bunt@arm.com>
4076 Dirk Schubert <dirk.schubert@arm.com>
4077 Chris January <chris.january@arm.com>
4078
4079 * eval.c (evaluate_subexp_standard): Call Fortran argument
4080 wrapping logic.
4081 * f-lang.c (struct value): A value which can be passed into a
4082 Fortran function call.
4083 (fortran_argument_convert): Wrap Fortran arguments in a pointer
4084 where appropriate.
4085 (struct type): Value ready for a Fortran function call.
4086 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
4087 is needed.
4088 * f-lang.h (fortran_argument_convert): Declaration.
4089 (fortran_preserve_arg_pointer): Declaration.
4090 * infcall.c (value_arg_coerce): Call Fortran argument logic.
4091
40922019-03-05 Tom Tromey <tromey@adacore.com>
4093
4094 * python/py-prettyprint.c (print_string_repr): Remove #if.
4095 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
4096
40972019-03-05 Tom Tromey <tromey@adacore.com>
4098
4099 * target.c (the_dummy_target): Move later. Change type to
4100 "dummy_target".
4101 (initialize_targets): Don't initialize the_dummy_target.
4102
41032019-03-05 Tom Tromey <tromey@adacore.com>
4104
4105 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
4106 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
4107
41082019-03-05 Tom Tromey <tromey@adacore.com>
4109
4110 * windows-nat.c (windows_nat_target::attach)
4111 (windows_nat_target::detach): Don't call gdb_flush.
4112 * valprint.c (generic_val_print, val_print, val_print_string):
4113 Don't call gdb_flush.
4114 * utils.c (defaulted_query): Don't call gdb_flush.
4115 * typeprint.c (print_type_scalar): Don't call gdb_flush.
4116 * target.c (target_announce_detach): Don't call gdb_flush.
4117 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
4118 * remote.c (extended_remote_target::attach): Don't call
4119 gdb_flush.
4120 * procfs.c (procfs_target::detach): Don't call gdb_flush.
4121 * printcmd.c (do_examine): Don't call gdb_flush.
4122 (info_display_command): Don't call gdb_flush.
4123 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
4124 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
4125 * memattr.c (info_mem_command): Don't call gdb_flush.
4126 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
4127 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
4128 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
4129 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
4130 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
4131 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
4132 (gnu_nat_target::detach): Don't call gdb_flush.
4133 * f-valprint.c (f_val_print): Don't call gdb_flush.
4134 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
4135 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
4136 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
4137 gdb_flush.
4138 * c-valprint.c (c_val_print): Don't call gdb_flush.
4139 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
4140
41412019-03-05 Tom Tromey <tromey@adacore.com>
4142
4143 * varobj.c (update_dynamic_varobj_children): Update.
4144 (install_default_visualizer): Use reset, not release.
4145 * value.c (set_internalvar): Update.
4146 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
4147 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
4148 ATTRIBUTE_UNUSED_RESULT.
4149
41502019-03-05 Tom Tromey <tromey@adacore.com>
4151
4152 * remote.c (class scoped_remote_fd) <release>: Add
4153 ATTRIBUTE_UNUSED_RESULT.
4154
41552019-03-05 Tom Tromey <tromey@adacore.com>
4156
4157 * macroexp.c (struct macro_buffer) <release>: Add
4158 ATTRIBUTE_UNUSED_RESULT.
4159
41602019-03-05 Tom Tromey <tromey@adacore.com>
4161
4162 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
4163 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
4164 ATTRIBUTE_UNUSED_RESULT.
4165
41662019-03-05 Tom Tromey <tromey@adacore.com>
4167
4168 * common/scoped_fd.h (class scoped_fd) <release>: Add
4169 ATTRIBUTE_UNUSED_RESULT.
4170
41712019-03-05 Tom Tromey <tromey@adacore.com>
4172
4173 * parser-defs.h (struct parser_state) <release>: Add
4174 ATTRIBUTE_UNUSED_RESULT.
4175
41762019-03-05 Tom Tromey <tromey@adacore.com>
4177
4178 * utils.h (class gdb_argv) <release>: Add
4179 ATTRIBUTE_UNUSED_RESULT.
4180 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
4181
41822019-03-02 Eli Zaretskii <eliz@gnu.org>
4183
4184 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
4185 for-loop range, to avoid compiler warnings.
4186
4187 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
4188 avoid compiler warnings about unused variables.
4189
4190 * NEWS: Mention end of support for native debugging on MS-Windows
4191 before XP.
4192
4193 PR gdb/24292
4194 * common/netstuff.c:
4195 * gdbserver/gdbreplay.c
4196 * gdbserver/remote-utils.c:
4197 * ser-tcp.c:
4198 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
4199 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
4200 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
4201 'getaddrinfo' and 'freeaddrinfo' were not available before
4202 Windows XP, and mingw.org's MinGW headers by default define
4203 _WIN32_WINNT to 0x500.
4204
42052019-03-01 Gary Benson <gbenson@redhat.com>
4206
4207 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
4208
42092019-02-28 Brian Vandenberg <phantall@gmail.com>
4210 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4211
4212 PR gdb/8527
4213 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
4214 set_sigint_trap, clear_sigint_trap.
4215
42162019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4217
4218 * target.c (target_detach): Clear the regcache and the
4219 frame cache.
4220
42212019-02-27 Pedro Alves <palves@redhat.com>
4222
4223 * utils.c (set_screen_size): When we cap the height/width sizes,
4224 tweak the corresponding command variable to show "unlimited":
4225
42262019-02-27 Saagar Jha <saagar@saagarjha.com>
4227 Pedro Alves <palves@redhat.com>
4228
4229 * utils.c (set_screen_size): Reduce "infinite" rows and columns
4230 before calling rl_set_screen_size.
4231
42322019-02-27 Tom Tromey <tromey@adacore.com>
4233
4234 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
4235 define.
4236 * python/py-value.c: Remove Python 2.4 workaround.
4237 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
4238 workaround.
4239 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
4240 Python 2.4 workaround.
4241 * python/python-internal.h: Remove Python 2.4 comment.
4242 (Py_ssize_t): Don't define.
4243 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
4244 (gdb_Py_DECREF): Remove Python 2.4 workaround.
4245 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
4246 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
4247 * python/python.c (do_start_initialization): Remove Python 2.4
4248 workaround.
4249 * python/py-prettyprint.c (class dummy_python_frame): Remove.
4250 (print_children): Remove Python 2.4 workaround.
4251 * python/py-inferior.c (buffer_procs): Remove Python 2.4
4252 workaround.
4253 (CHARBUFFERPROC_NAME): Remove.
4254 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
4255 Python 2.4 workaround.
4256
42572019-02-27 Kevin Buettner <kevinb@redhat.com>
4258
4259 * NEWS: Note minimum Python version.
4260
42612019-02-27 Kevin Buettner <kevinb@redhat.com>
4262
4263 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
4264 code from these functions. Remove corresponding ifdefs. Use
4265 Py_buffer_up instead of explicit calls to PyBuffer_Release.
4266 Remove gotos and target of gotos.
4267 (infpy_search_memory): Likewise.
4268
42692019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4270
4271 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
4272 (hppa_gdbarch_init): Don't register deleted functions with
4273 gdbarch.
4274
42752019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4276
4277 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
4278 (h8300_unwind_sp): Delete.
4279 (h8300_dummy_id): Delete.
4280 (h8300_gdbarch_init): Don't register deleted functions with
4281 gdbarch.
4282
42832019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4284
4285 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
4286 (ft32_unwind_pc): Delete.
4287 (ft32_unwind_sp): Delete.
4288 (ft32_gdbarch_init): Don't register deleted functions with
4289 gdbarch.
4290
42912019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4292
4293 * gdb/frv-tdep.c (frv_dummy_id): Delete.
4294 (frv_unwind_pc): Delete.
4295 (frv_unwind_sp): Delete.
4296 (frv_gdbarch_init): Don't register deleted functions with
4297 gdbarch.
4298
42992019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4300
4301 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
4302 (riscv_unwind_pc): Delete.
4303 (riscv_unwind_sp): Delete.
4304 (riscv_gdbarch_init): Don't register deleted functions with
4305 gdbarch.
4306
43072019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4308
4309 * gdb/csky-tdep.c (csky_dummy_id): Delete.
4310 (csky_unwind_pc): Delete.
4311 (csky_unwind_sp): Delete.
4312 (csky_gdbarch_init): Don't register deleted functions with
4313 gdbarch.
4314
43152019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4316
4317 * gdb/cris-tdep.c (cris_dummy_id): Delete.
4318 (cris_unwind_pc): Delete.
4319 (cris_unwind_sp): Delete.
4320 (cris_gdbarch_init): Don't register deleted functions with
4321 gdbarch.
4322
43232019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4324
4325 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
4326 (bfin_unwind_pc): Delete.
4327 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
4328
43292019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4330
4331 * gdb/arm-tdep.c (arm_dummy_id): Delete.
4332 (arm_unwind_pc): Delete.
4333 (arm_unwind_sp): Delete.
4334 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
4335
43362019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4337
4338 * gdb/arc-tdep.c (arc_dummy_id): Delete.
4339 (arc_unwind_pc): Delete.
4340 (arc_unwind_sp): Delete.
4341 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
4342
43432019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4344
4345 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
4346 (alpha_unwind_pc): Delete.
4347 (alpha_gdbarch_init): Don't register deleted functions with
4348 gdbarch.
4349
43502019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4351
4352 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
4353 (aarch64_unwind_pc): Delete.
4354 (aarch64_unwind_sp): Delete.
4355 (aarch64_gdbarch_init): Don't register deleted functions with
4356 gdbarch.
4357
43582019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4359
4360 * gdbtypes.c (type_align): Don't consider static members when
4361 computing structure alignment.
4362
43632019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
4364
4365 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
4366 return 0 for other types.
4367 * arch-utils.c (default_type_align): Always return 0.
4368 * gdbarch.h: Regenerate.
4369 * gdbarch.sh (type_align): Extend comment.
4370 * gdbtypes.c (type_align): Add additional comments, always call
4371 gdbarch_type_align before applying the default rules.
4372 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
4373 generic code will then apply a suitable default.
4374 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
4375 types, return 0 for other types.
4376
43772019-02-27 Joel Brobecker <brobecker@adacore.com>
4378
4379 * NEWS: Create a new section for the next release branch.
4380 Rename the section of the current branch, now that it has
4381 been cut.
4382
43832019-02-27 Joel Brobecker <brobecker@adacore.com>
4384
4385 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
4386 * version.in: Bump version to 8.3.50.DATE-git.
4387
43882019-02-26 Simon Marchi <simon.marchi@efficios.com>
4389
4390 * aix-thread.c (ptid_cmp): Remove unused variable.
4391 (get_signaled_thread): Likewise.
4392 (store_regs_user_thread): Likewise.
4393 (store_regs_kernel_thread): Likewise.
4394 (fetch_regs_kernel_thread): Remove shadowed variable.
4395
43962019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
4397
4398 * features/riscv/32bit-cpu.xml: Add register numbers.
4399 * features/riscv/32bit-fpu.c: Regenerate.
4400 * features/riscv/32bit-fpu.xml: Add register numbers.
4401 * features/riscv/64bit-cpu.xml: Add register numbers.
4402 * features/riscv/64bit-fpu.c: Regenerate.
4403 * features/riscv/64bit-fpu.xml: Add register numbers.
4404
44052019-02-26 Kevin Buettner <kevinb@redhat.com>
4406
4407 * NEWS: Mention two argument form of gdb.Value constructor.
4408 * python/py-value.c (convert_buffer_and_type_to_value): New
4409 function.
4410 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
4411 Add support for handling an optional second argument. Call
4412 convert_buffer_and_type_to_value as appropriate.
4413 * python/python-internal.h (Py_buffer_deleter): New struct.
4414 (Py_buffer_up): New typedef.
4415
44162019-02-25 John Baldwin <jhb@FreeBSD.org>
4417
4418 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
4419 instead of releasing ownership.
4420
44212019-02-25 Jordan Rupprecht <rupprecht@google.com>
4422
4423 * dwarf2read.c (open_and_init_dwp_file): Call
4424 elf_numsections instead of bfd_count_sections to initialize
4425 dwp_file->num_sections.
4426
44272019-02-25 Tom Tromey <tromey@adacore.com>
4428
4429 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
4430
44312019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
4432
4433 * gcore.in: Add '--readnever' option when invoking GDB.
4434
44352019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4436
4437 * MAINTAINERS: Update my email address.
4438
44392019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4440
4441 * build-id.c (build_id_to_debug_bfd_1): New function.
4442 (build_id_to_debug_bfd): Look for separate debug file in
4443 sysroot.
4444
44452019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
4446
4447 * gdbarch.sh: Update the copyright year range that is placed into
4448 generated files.
4449
44502019-02-22 Keith Seitz <keiths@redhat.com>
4451
4452 PR symtab/23853
4453 * linespec.c (create_sals_line_offset): Search for the default
4454 symtab's filename instead of its fullname.
4455
44562019-02-21 Alan Hayward <alan.hayward@arm.com>
4457
4458 * NEWS: Update style defaults.
4459
44602019-02-21 Alan Hayward <alan.hayward@arm.com>
4461
4462 * main.c (captured_main_1): Disable styling in batch mode.
4463
44642019-02-20 Tom Tromey <tom@tromey.com>
4465
4466 * symtab.c (symtab_symbol_info): Fix typos.
4467
44682019-02-20 Tom Tromey <tromey@adacore.com>
4469
4470 * findcmd.c (_initialize_mem_search): Use upper case for
4471 metasyntactic variables.
4472
44732019-02-20 Alan Hayward <alan.hayward@arm.com>
4474
4475 * aarch64-tdep.c (aarch64_add_reggroups): New function.
4476 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
4477
44782019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
4479
4480 * top.h (source_file_name): Change to std::string.
4481 * top.c (source_file_name): Likewise.
4482 (command_line_input): Adjust.
4483 * cli/cli-script.c (script_from_file): Adjust.
4484
44852019-02-19 Tom Tromey <tromey@adacore.com>
4486
4487 * ravenscar-thread.c
4488 (ravenscar_thread_target::update_thread_list): Don't call
4489 ada_build_task_list.
4490 * ada-lang.h (ada_build_task_list): Don't declare.
4491 * ada-tasks.c (struct ada_tasks_inferior_data)
4492 <task_list_valid_p>: Now bool.
4493 (read_known_tasks, ada_task_list_changed)
4494 (ada_tasks_invalidate_inferior_data): Update.
4495 (read_known_tasks_array): Return bool.
4496 (read_known_tasks_list): Likewise.
4497 (read_known_tasks): Return void.
4498 (ada_build_task_list): Now static.
4499
45002019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
4501
4502 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
4503 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
4504
45052019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4506
4507 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
4508 variant for ada_tasks_pspace_data_handle and
4509 ada_tasks_inferior_data_handle.
4510 (ada_tasks_pspace_data_cleanup): New function.
4511 (ada_tasks_inferior_data_cleanup): New function.
4512
45132019-02-17 Tom Tromey <tom@tromey.com>
4514
4515 * macrotab.h (macro_source_fullname): Return a std::string.
4516 * macrotab.c (macro_include, check_for_redefinition)
4517 (macro_undef, macro_lookup_definition, foreach_macro)
4518 (foreach_macro_in_scope): Update.
4519 (macro_source_fullname): Return a std::string.
4520 * macrocmd.c (show_pp_source_pos): Update.
4521
45222019-02-17 Tom Tromey <tom@tromey.com>
4523
4524 * macrocmd.c (show_pp_source_pos): Style the file names.
4525
45262019-02-17 Tom Tromey <tom@tromey.com>
4527
4528 PR tui/24197:
4529 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
4530
45312019-02-17 Tom Tromey <tom@tromey.com>
4532
4533 * ada-lang.c (user_select_syms): Use filtered printing.
4534 * utils.c (wrap_style): New global.
4535 (desired_style): Remove.
4536 (emit_style_escape): Add stream parameter.
4537 (set_output_style, reset_terminal_style, prompt_for_continue):
4538 Update.
4539 (flush_wrap_buffer): Only flush gdb_stdout.
4540 (wrap_here): Set wrap_style.
4541 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
4542 treat escape sequences as a character. Change when wrap buffer is
4543 flushed.
4544 (fputs_styled): Do not set the output style when the default is
4545 requested.
4546 * ui-style.h (struct ui_file_style) <is_default>: New method.
4547 * source.c (print_source_lines_base): Emit escape sequences in one
4548 piece.
4549
45502019-02-17 Joel Brobecker <brobecker@adacore.com>
4551
4552 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
4553 integers and enumeration types.
4554
45552019-02-17 Joel Brobecker <brobecker@adacore.com>
4556
4557 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
4558 instead of lookup_symbol_in_language
4559 (do_exact_match): New function.
4560 (ada_get_symbol_name_matcher): Return do_exact_match when
4561 doing a verbatim match.
4562
45632019-02-15 Tom Tromey <tromey@adacore.com>
4564
4565 * ravenscar-thread.c (ravenscar_thread_target::resume)
4566 (ravenscar_thread_target::wait): Special case wildcard requests.
4567
45682019-02-15 Tom Tromey <tromey@adacore.com>
4569
4570 * ravenscar-thread.c (base_ptid): Remove.
4571 (struct ravenscar_thread_target) <close>: New method.
4572 <m_base_ptid>: New member.
4573 <update_inferior_ptid, active_task, task_is_currently_active,
4574 runtime_initialized>: Declare methods.
4575 <ravenscar_thread_target>: Add constructor.
4576 (ravenscar_thread_target::task_is_currently_active)
4577 (ravenscar_thread_target::update_inferior_ptid)
4578 (ravenscar_runtime_initialized): Rename. Now methods.
4579 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
4580 (ravenscar_thread_target::update_thread_list): Update.
4581 (ravenscar_thread_target::active_task): Now method.
4582 (ravenscar_thread_target::store_registers)
4583 (ravenscar_thread_target::prepare_to_store)
4584 (ravenscar_thread_target::prepare_to_store)
4585 (ravenscar_thread_target::mourn_inferior): Update.
4586 (ravenscar_inferior_created): Use "new" to create target.
4587 (ravenscar_thread_target::get_ada_task_ptid): Update.
4588 (_initialize_ravenscar): Don't initialize base_ptid.
4589 (ravenscar_ops): Remove global.
4590
45912019-02-15 Tom Tromey <tromey@adacore.com>
4592
4593 * target.h (push_target): Declare new overload.
4594 * target.c (push_target): New overload, taking an rvalue reference.
4595 * remote.c (remote_target::open_1): Use push_target overload.
4596 * corelow.c (core_target_open): Use push_target overload.
4597
45982019-02-15 Tom Tromey <tromey@adacore.com>
4599
4600 * ravenscar-thread.c (is_ravenscar_task)
4601 (ravenscar_task_is_currently_active): Return bool.
4602 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
4603 (_initialize_ravenscar): Remove "(void)".
4604 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
4605 Return bool.
4606
46072019-02-15 Tom Tromey <tromey@adacore.com>
4608
4609 * ravenscar-thread.c (ravenscar_runtime_initializer)
4610 (has_ravenscar_runtime, get_running_thread_id)
4611 (ravenscar_thread_target::resume): Fix indentation.
4612
46132019-02-15 Tom Tromey <tromey@adacore.com>
4614
4615 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
4616 from ravenscar_arch_ops.
4617 (sparc_ravenscar_ops::fetch_registers)
4618 (sparc_ravenscar_ops::store_registers): Now methods.
4619 (sparc_ravenscar_prepare_to_store): Remove.
4620 (sparc_ravenscar_ops): Redefine.
4621 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
4622 methods and destructor. Remove members.
4623 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
4624 (ravenscar_thread_target::store_registers)
4625 (ravenscar_thread_target::prepare_to_store): Update.
4626 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
4627 Remove.
4628 (struct ppc_ravenscar_powerpc_ops): Derive from
4629 ravenscar_arch_ops.
4630 (ppc_ravenscar_powerpc_ops::fetch_registers)
4631 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
4632 (ppc_ravenscar_powerpc_ops): Redefine.
4633 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
4634 (ppc_ravenscar_e500_ops::fetch_registers)
4635 (ppc_ravenscar_e500_ops::store_registers): Now methods.
4636 (ppc_ravenscar_e500_ops): Redefine.
4637 * aarch64-ravenscar-thread.c
4638 (aarch64_ravenscar_generic_prepare_to_store): Remove.
4639 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
4640 (aarch64_ravenscar_fetch_registers)
4641 (aarch64_ravenscar_store_registers): Now methods.
4642 (aarch64_ravenscar_ops): Redefine.
4643
46442019-02-15 Tom Tromey <tromey@adacore.com>
4645
4646 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
4647 (ravenscar_thread_target::stopped_by_hw_breakpoint)
4648 (ravenscar_thread_target::stopped_by_watchpoint)
4649 (ravenscar_thread_target::stopped_data_address)
4650 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
4651
46522019-02-15 Tom Tromey <tromey@adacore.com>
4653
4654 * ravenscar-thread.c: Fix some typos.
4655
46562019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4657 Tom Tromey <tromey@adacore.com>
4658
4659 * ada-lang.c (ada_exception_sal): Change addr_string to a
4660 std::string.
4661 (create_ada_exception_catchpoint): Update.
4662
46632019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4664 Tom Tromey <tromey@adacore.com>
4665
4666 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
4667 (bp_location_ops): Remove.
4668 (base_breakpoint_allocate_location): Update.
4669 (free_bp_location): Update.
4670 * ada-lang.c (class ada_catchpoint_location)
4671 <ada_catchpoint_location>: Remove ops parameter.
4672 (ada_catchpoint_location_dtor): Remove.
4673 (ada_catchpoint_location_ops): Remove.
4674 (allocate_location_exception): Update.
4675 * breakpoint.h (struct bp_location_ops): Remove.
4676 (class bp_location) <bp_location>: Remove bp_location_ops
4677 parameter.
4678 <~bp_location>: Add destructor.
4679 <ops>: Remove.
4680
46812019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4682 Pedro Alves <palves@redhat.com>
4683
4684 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
4685 'PATH_MAX'.
4686
46872019-02-14 David Michael <fedora.dm0@gmail.com>
4688 Samuel Thibault <samuel.thibault@gnu.org>
4689 Thomas Schwinge <thomas@codesourcery.com>
4690
4691 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
4692 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
4693
46942019-02-14 Thomas Schwinge <thomas@codesourcery.com>
4695
4696 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
4697 (check_empty): Use "const char *".
4698
4699 * gnu-nat.c (gnu_nat_target::detach): Instead of
4700 'detach_inferior (pid)' call
4701 'detach_inferior (find_inferior_pid (pid))'.
4702
4703 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
4704 'nat/fork-inferior.o'.
4705 * gnu-nat.c: #include "nat/fork-inferior.h".
4706
4707 * gnu-nat.c (gnu_nat_target::detach): Instead of
4708 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
4709 * gnu-nat.h: #include "inf-child.h".
4710 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
4711 'i386_gnu_nat_target::fetch_registers'.
4712 (gnu_store_registers): Rename/move to
4713 'i386_gnu_nat_target::store_registers'.
4714
4715 * config/i386/nm-i386gnu.h: Don't "#include" any files.
4716 * gnu-nat.h (mach_thread_info): New function.
4717 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
4718
4719 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
4720
47212019-02-14 Frederic Konrad <konrad@adacore.com>
4722
4723 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
4724
47252019-02-14 Joel Brobecker <brobecker@adacore.com>
4726
4727 * windows-nat.c (windows_add_thread): Add new parameter
4728 "main_thread_p" with default value set to false. Update
4729 function documentation as well as all callers.
4730 (windows_delete_thread): Likewise.
4731 (fake_create_process): Update call to windows_add_thread.
4732 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
4733 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
4734 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
4735 call to windows_delete_thread.
4736
47372019-02-13 Simon Marchi <simon.marchi@ericsson.com>
4738
4739 * MAINTAINERS: Add Andrew Burgess as global maintainer.
4740
47412019-02-12 John Baldwin <jhb@FreeBSD.org>
4742
4743 * symfile.c (find_separate_debug_file): Use canonical path of
4744 sysroot with child_path instead of gdb_sysroot if it is valid.
4745
47462019-02-12 John Baldwin <jhb@FreeBSD.org>
4747
4748 * symfile.c (find_separate_debug_file): Use child_path to
4749 determine if an object file is under a sysroot.
4750
47512019-02-12 John Baldwin <jhb@FreeBSD.org>
4752
4753 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
4754 unittests/child-path-selftests.c.
4755 * common/pathstuff.c (child_path): New function.
4756 * common/pathstuff.h (child_path): New prototype.
4757 * unittests/child-path-selftests.c: New file.
4758
47592019-02-12 John Baldwin <jhb@FreeBSD.org>
4760
4761 * symfile.c (find_separate_debug_file): Look for separate debug
4762 files in debug directories under the sysroot.
4763
47642019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4765
4766 * symtab.h (struct minimal_symbol data_p): New const method.
4767 (struct minimal_symbol text_p): Likewise.
4768 * symtab.c (output_source_filename): Use file name style
4769 to print file name.
4770 (print_symbol_info): Likewise.
4771 (print_msymbol_info): Use address style to print addresses.
4772 Use function name style to print executable text symbols.
4773 (expand_symtab_containing_pc): Use data_p.
4774 (find_pc_sect_compunit_symtab): Likewise.
4775
47762019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4777
4778 * breakpoint.c (describe_other_breakpoints): Use address style
4779 to print addresses.
4780 (say_where): Likewise.
4781
47822019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4783
4784 * ada-typeprint.c (print_func_type): Print function name
4785 style to print function name.
4786 * c-typeprint.c (c_print_type_1): Likewise.
4787
47882019-02-11 Alan Hayward <alan.hayward@arm.com>
4789
4790 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
4791 for execve.
4792
47932019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4794
4795 * c-exp.y (direct_abs_decl): Use emplace_back to record the
4796 type_stack.
4797
47982019-02-10 Joel Brobecker <brobecker@adacore.com>
4799
4800 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
4801 TYPE_CODE_REF types.
4802
48032019-02-08 Jim Wilson <jimw@sifive.com>
4804
4805 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
4806 (riscv_linux_fregset): New.
4807 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
4808
48092019-02-07 Tom Tromey <tom@tromey.com>
4810
4811 * thread.c (thread_cancel_execution_command): Update.
4812 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
4813 methods.
4814 (struct thread_fsm_ops): Remove.
4815 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
4816 (thread_fsm_should_stop, thread_fsm_return_value)
4817 (thread_fsm_set_finished, thread_fsm_finished_p)
4818 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
4819 Don't declare.
4820 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
4821 * infrun.c (clear_proceed_status_thread)
4822 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
4823 (print_stop_event): Update.
4824 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
4825 Add constructor.
4826 (step_command_fsm_ops): Remove.
4827 (new_step_command_fsm): Remove.
4828 (step_1): Update.
4829 (step_command_fsm::should_stop): Rename from
4830 step_command_fsm_should_stop.
4831 (step_command_fsm::clean_up): Rename from
4832 step_command_fsm_clean_up.
4833 (step_command_fsm::do_async_reply_reason): Rename from
4834 step_command_fsm_async_reply_reason.
4835 (struct until_next_fsm): Inherit from thread_fsm. Add
4836 constructor.
4837 (until_next_fsm_ops): Remove.
4838 (new_until_next_fsm): Remove.
4839 (until_next_fsm::should_stop): Rename from
4840 until_next_fsm_should_stop.
4841 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
4842 (until_next_fsm::do_async_reply_reason): Rename from
4843 until_next_fsm_async_reply_reason.
4844 (struct finish_command_fsm): Inherit from thread_fsm. Add
4845 constructor. Change type of breakpoint.
4846 (finish_command_fsm_ops): Remove.
4847 (new_finish_command_fsm): Remove.
4848 (finish_command_fsm::should_stop): Rename from
4849 finish_command_fsm_should_stop.
4850 (finish_command_fsm::clean_up): Rename from
4851 finish_command_fsm_clean_up.
4852 (finish_command_fsm::return_value): Rename from
4853 finish_command_fsm_return_value.
4854 (finish_command_fsm::do_async_reply_reason): Rename from
4855 finish_command_fsm_async_reply_reason.
4856 (finish_command): Update.
4857 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
4858 Add constructor.
4859 (call_thread_fsm_ops): Remove.
4860 (call_thread_fsm::call_thread_fsm): Rename from
4861 new_call_thread_fsm.
4862 (call_thread_fsm::should_stop): Rename from
4863 call_thread_fsm_should_stop.
4864 (call_thread_fsm::should_notify_stop): Rename from
4865 call_thread_fsm_should_notify_stop.
4866 (run_inferior_call, call_function_by_hand_dummy): Update.
4867 * cli/cli-interp.c (should_print_stop_to_console): Update.
4868 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
4869 Add constructor. Change type of location_breakpoint,
4870 caller_breakpoint.
4871 (until_break_fsm_ops): Remove.
4872 (new_until_break_fsm): Remove.
4873 (until_break_fsm::should_stop): Rename from
4874 until_break_fsm_should_stop.
4875 (until_break_fsm::clean_up): Rename from
4876 until_break_fsm_clean_up.
4877 (until_break_fsm::do_async_reply_reason): Rename from
4878 until_break_fsm_async_reply_reason.
4879 (until_break_command): Update.
4880 * thread-fsm.c: Remove.
4881 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
4882
48832019-02-07 Tom Tromey <tom@tromey.com>
4884
4885 * yy-remap.h: Add include guard.
4886 * xtensa-tdep.h: Add include guard.
4887 * xcoffread.h: Rename include guard.
4888 * varobj-iter.h: Add include guard.
4889 * tui/tui.h: Rename include guard.
4890 * tui/tui-winsource.h: Rename include guard.
4891 * tui/tui-wingeneral.h: Rename include guard.
4892 * tui/tui-windata.h: Rename include guard.
4893 * tui/tui-win.h: Rename include guard.
4894 * tui/tui-stack.h: Rename include guard.
4895 * tui/tui-source.h: Rename include guard.
4896 * tui/tui-regs.h: Rename include guard.
4897 * tui/tui-out.h: Rename include guard.
4898 * tui/tui-layout.h: Rename include guard.
4899 * tui/tui-io.h: Rename include guard.
4900 * tui/tui-hooks.h: Rename include guard.
4901 * tui/tui-file.h: Rename include guard.
4902 * tui/tui-disasm.h: Rename include guard.
4903 * tui/tui-data.h: Rename include guard.
4904 * tui/tui-command.h: Rename include guard.
4905 * tic6x-tdep.h: Add include guard.
4906 * target/waitstatus.h: Rename include guard.
4907 * target/wait.h: Rename include guard.
4908 * target/target.h: Rename include guard.
4909 * target/resume.h: Rename include guard.
4910 * target-float.h: Rename include guard.
4911 * stabsread.h: Add include guard.
4912 * rs6000-tdep.h: Add include guard.
4913 * riscv-fbsd-tdep.h: Add include guard.
4914 * regformats/regdef.h: Rename include guard.
4915 * record.h: Rename include guard.
4916 * python/python.h: Rename include guard.
4917 * python/python-internal.h: Rename include guard.
4918 * python/py-stopevent.h: Rename include guard.
4919 * python/py-ref.h: Rename include guard.
4920 * python/py-record.h: Rename include guard.
4921 * python/py-record-full.h: Rename include guard.
4922 * python/py-record-btrace.h: Rename include guard.
4923 * python/py-instruction.h: Rename include guard.
4924 * python/py-events.h: Rename include guard.
4925 * python/py-event.h: Rename include guard.
4926 * procfs.h: Add include guard.
4927 * proc-utils.h: Add include guard.
4928 * p-lang.h: Add include guard.
4929 * or1k-tdep.h: Rename include guard.
4930 * observable.h: Rename include guard.
4931 * nto-tdep.h: Rename include guard.
4932 * nat/x86-linux.h: Rename include guard.
4933 * nat/x86-linux-dregs.h: Rename include guard.
4934 * nat/x86-gcc-cpuid.h: Add include guard.
4935 * nat/x86-dregs.h: Rename include guard.
4936 * nat/x86-cpuid.h: Rename include guard.
4937 * nat/ppc-linux.h: Rename include guard.
4938 * nat/mips-linux-watch.h: Rename include guard.
4939 * nat/linux-waitpid.h: Rename include guard.
4940 * nat/linux-ptrace.h: Rename include guard.
4941 * nat/linux-procfs.h: Rename include guard.
4942 * nat/linux-osdata.h: Rename include guard.
4943 * nat/linux-nat.h: Rename include guard.
4944 * nat/linux-namespaces.h: Rename include guard.
4945 * nat/linux-btrace.h: Rename include guard.
4946 * nat/glibc_thread_db.h: Rename include guard.
4947 * nat/gdb_thread_db.h: Rename include guard.
4948 * nat/gdb_ptrace.h: Rename include guard.
4949 * nat/fork-inferior.h: Rename include guard.
4950 * nat/amd64-linux-siginfo.h: Rename include guard.
4951 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
4952 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
4953 * nat/aarch64-linux.h: Rename include guard.
4954 * nat/aarch64-linux-hw-point.h: Rename include guard.
4955 * mn10300-tdep.h: Add include guard.
4956 * mips-linux-tdep.h: Add include guard.
4957 * mi/mi-parse.h: Rename include guard.
4958 * mi/mi-out.h: Rename include guard.
4959 * mi/mi-main.h: Rename include guard.
4960 * mi/mi-interp.h: Rename include guard.
4961 * mi/mi-getopt.h: Rename include guard.
4962 * mi/mi-console.h: Rename include guard.
4963 * mi/mi-common.h: Rename include guard.
4964 * mi/mi-cmds.h: Rename include guard.
4965 * mi/mi-cmd-break.h: Rename include guard.
4966 * m2-lang.h: Add include guard.
4967 * location.h: Rename include guard.
4968 * linux-record.h: Rename include guard.
4969 * linux-nat.h: Add include guard.
4970 * linux-fork.h: Add include guard.
4971 * i386-darwin-tdep.h: Rename include guard.
4972 * hppa-linux-offsets.h: Add include guard.
4973 * guile/guile.h: Rename include guard.
4974 * guile/guile-internal.h: Rename include guard.
4975 * gnu-nat.h: Rename include guard.
4976 * gdb-stabs.h: Rename include guard.
4977 * frv-tdep.h: Add include guard.
4978 * f-lang.h: Add include guard.
4979 * event-loop.h: Add include guard.
4980 * darwin-nat.h: Rename include guard.
4981 * cp-abi.h: Rename include guard.
4982 * config/sparc/nm-sol2.h: Rename include guard.
4983 * config/nm-nto.h: Rename include guard.
4984 * config/nm-linux.h: Add include guard.
4985 * config/i386/nm-i386gnu.h: Rename include guard.
4986 * config/djgpp/nl_types.h: Rename include guard.
4987 * config/djgpp/langinfo.h: Rename include guard.
4988 * compile/gcc-cp-plugin.h: Add include guard.
4989 * compile/gcc-c-plugin.h: Add include guard.
4990 * compile/compile.h: Rename include guard.
4991 * compile/compile-object-run.h: Rename include guard.
4992 * compile/compile-object-load.h: Rename include guard.
4993 * compile/compile-internal.h: Rename include guard.
4994 * compile/compile-cplus.h: Rename include guard.
4995 * compile/compile-c.h: Rename include guard.
4996 * common/xml-utils.h: Rename include guard.
4997 * common/x86-xstate.h: Rename include guard.
4998 * common/version.h: Rename include guard.
4999 * common/vec.h: Rename include guard.
5000 * common/tdesc.h: Rename include guard.
5001 * common/selftest.h: Rename include guard.
5002 * common/scoped_restore.h: Rename include guard.
5003 * common/scoped_mmap.h: Rename include guard.
5004 * common/scoped_fd.h: Rename include guard.
5005 * common/safe-iterator.h: Rename include guard.
5006 * common/run-time-clock.h: Rename include guard.
5007 * common/refcounted-object.h: Rename include guard.
5008 * common/queue.h: Rename include guard.
5009 * common/ptid.h: Rename include guard.
5010 * common/print-utils.h: Rename include guard.
5011 * common/preprocessor.h: Rename include guard.
5012 * common/pathstuff.h: Rename include guard.
5013 * common/observable.h: Rename include guard.
5014 * common/netstuff.h: Rename include guard.
5015 * common/job-control.h: Rename include guard.
5016 * common/host-defs.h: Rename include guard.
5017 * common/gdb_wait.h: Rename include guard.
5018 * common/gdb_vecs.h: Rename include guard.
5019 * common/gdb_unlinker.h: Rename include guard.
5020 * common/gdb_unique_ptr.h: Rename include guard.
5021 * common/gdb_tilde_expand.h: Rename include guard.
5022 * common/gdb_sys_time.h: Rename include guard.
5023 * common/gdb_string_view.h: Rename include guard.
5024 * common/gdb_splay_tree.h: Rename include guard.
5025 * common/gdb_setjmp.h: Rename include guard.
5026 * common/gdb_ref_ptr.h: Rename include guard.
5027 * common/gdb_optional.h: Rename include guard.
5028 * common/gdb_locale.h: Rename include guard.
5029 * common/gdb_assert.h: Rename include guard.
5030 * common/filtered-iterator.h: Rename include guard.
5031 * common/filestuff.h: Rename include guard.
5032 * common/fileio.h: Rename include guard.
5033 * common/environ.h: Rename include guard.
5034 * common/common-utils.h: Rename include guard.
5035 * common/common-types.h: Rename include guard.
5036 * common/common-regcache.h: Rename include guard.
5037 * common/common-inferior.h: Rename include guard.
5038 * common/common-gdbthread.h: Rename include guard.
5039 * common/common-exceptions.h: Rename include guard.
5040 * common/common-defs.h: Rename include guard.
5041 * common/common-debug.h: Rename include guard.
5042 * common/cleanups.h: Rename include guard.
5043 * common/buffer.h: Rename include guard.
5044 * common/btrace-common.h: Rename include guard.
5045 * common/break-common.h: Rename include guard.
5046 * cli/cli-utils.h: Rename include guard.
5047 * cli/cli-style.h: Rename include guard.
5048 * cli/cli-setshow.h: Rename include guard.
5049 * cli/cli-script.h: Rename include guard.
5050 * cli/cli-interp.h: Rename include guard.
5051 * cli/cli-decode.h: Rename include guard.
5052 * cli/cli-cmds.h: Rename include guard.
5053 * charset-list.h: Add include guard.
5054 * buildsym-legacy.h: Rename include guard.
5055 * bfin-tdep.h: Add include guard.
5056 * ax.h: Rename include guard.
5057 * arm-linux-tdep.h: Add include guard.
5058 * arm-fbsd-tdep.h: Add include guard.
5059 * arch/xtensa.h: Rename include guard.
5060 * arch/tic6x.h: Add include guard.
5061 * arch/i386.h: Add include guard.
5062 * arch/arm.h: Rename include guard.
5063 * arch/arm-linux.h: Rename include guard.
5064 * arch/arm-get-next-pcs.h: Rename include guard.
5065 * arch/amd64.h: Add include guard.
5066 * arch/aarch64-insn.h: Rename include guard.
5067 * arch-utils.h: Rename include guard.
5068 * annotate.h: Add include guard.
5069 * amd64-darwin-tdep.h: Rename include guard.
5070 * aarch64-linux-tdep.h: Add include guard.
5071 * aarch64-fbsd-tdep.h: Add include guard.
5072 * aarch32-linux-nat.h: Add include guard.
5073
50742019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5075
5076 * macrotab.c (macro_define_internal): New function that
5077 factorizes macro_define_object_internal and macro_define_function
5078 code.
5079 (macro_define_object_internal): Use macro_define_internal.
5080 (macro_define_function): Likewise.
5081
50822019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5083
5084 * macrocmd.c (extract_identifier): Return
5085 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
5086 callers.
5087
50882019-02-06 John Baldwin <jhb@FreeBSD.org>
5089
5090 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
5091
50922019-02-05 Tom Tromey <tom@tromey.com>
5093
5094 * target.c (target_stack::unpush): Move assertion earlier.
5095
50962019-01-30 Tom Tromey <tom@tromey.com>
5097
5098 PR python/23615:
5099 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
5100 (gdbpy_parse_and_eval): Likewise.
5101 * python/python-internal.h (gdbpy_allow_threads): New class.
5102
51032019-01-28 John Baldwin <jhb@FreeBSD.org>
5104
5105 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
5106 (aarch64_fbsd_fpregmap): Move earlier.
5107 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
5108 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5109 instead of individual calls to trad_frame_set_reg_addr.
5110 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
5111 earlier.
5112 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
5113 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
5114 instead of individual calls to trad_frame_set_reg_addr.
5115
51162019-01-28 Alan Hayward <alan.hayward@arm.com>
5117
5118 * CONTRIBUTE: Replace contribution list with wiki link.
5119
51202019-01-25 Tom Tromey <tom@tromey.com>
5121
5122 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
5123
51242019-01-25 Tom Tromey <tom@tromey.com>
5125
5126 * xtensa-linux-nat.c: Fix common/ includes.
5127 * xml-support.h: Fix common/ includes.
5128 * xml-support.c: Fix common/ includes.
5129 * x86-linux-nat.c: Fix common/ includes.
5130 * windows-nat.c: Fix common/ includes.
5131 * varobj.h: Fix common/ includes.
5132 * varobj.c: Fix common/ includes.
5133 * value.c: Fix common/ includes.
5134 * valops.c: Fix common/ includes.
5135 * utils.c: Fix common/ includes.
5136 * unittests/xml-utils-selftests.c: Fix common/ includes.
5137 * unittests/utils-selftests.c: Fix common/ includes.
5138 * unittests/unpack-selftests.c: Fix common/ includes.
5139 * unittests/tracepoint-selftests.c: Fix common/ includes.
5140 * unittests/style-selftests.c: Fix common/ includes.
5141 * unittests/string_view-selftests.c: Fix common/ includes.
5142 * unittests/scoped_restore-selftests.c: Fix common/ includes.
5143 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
5144 * unittests/scoped_fd-selftests.c: Fix common/ includes.
5145 * unittests/rsp-low-selftests.c: Fix common/ includes.
5146 * unittests/parse-connection-spec-selftests.c: Fix common/
5147 includes.
5148 * unittests/optional-selftests.c: Fix common/ includes.
5149 * unittests/offset-type-selftests.c: Fix common/ includes.
5150 * unittests/observable-selftests.c: Fix common/ includes.
5151 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
5152 * unittests/memrange-selftests.c: Fix common/ includes.
5153 * unittests/memory-map-selftests.c: Fix common/ includes.
5154 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
5155 * unittests/function-view-selftests.c: Fix common/ includes.
5156 * unittests/environ-selftests.c: Fix common/ includes.
5157 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
5158 * unittests/common-utils-selftests.c: Fix common/ includes.
5159 * unittests/cli-utils-selftests.c: Fix common/ includes.
5160 * unittests/array-view-selftests.c: Fix common/ includes.
5161 * ui-file.c: Fix common/ includes.
5162 * tui/tui-io.c: Fix common/ includes.
5163 * tracepoint.h: Fix common/ includes.
5164 * tracepoint.c: Fix common/ includes.
5165 * tracefile-tfile.c: Fix common/ includes.
5166 * top.h: Fix common/ includes.
5167 * top.c: Fix common/ includes.
5168 * thread.c: Fix common/ includes.
5169 * target/waitstatus.h: Fix common/ includes.
5170 * target/waitstatus.c: Fix common/ includes.
5171 * target.h: Fix common/ includes.
5172 * target.c: Fix common/ includes.
5173 * target-memory.c: Fix common/ includes.
5174 * target-descriptions.c: Fix common/ includes.
5175 * symtab.h: Fix common/ includes.
5176 * symfile.c: Fix common/ includes.
5177 * stap-probe.c: Fix common/ includes.
5178 * spu-linux-nat.c: Fix common/ includes.
5179 * sparc-nat.c: Fix common/ includes.
5180 * source.c: Fix common/ includes.
5181 * solib.c: Fix common/ includes.
5182 * solib-target.c: Fix common/ includes.
5183 * ser-unix.c: Fix common/ includes.
5184 * ser-tcp.c: Fix common/ includes.
5185 * ser-pipe.c: Fix common/ includes.
5186 * ser-base.c: Fix common/ includes.
5187 * selftest-arch.c: Fix common/ includes.
5188 * s12z-tdep.c: Fix common/ includes.
5189 * rust-exp.y: Fix common/ includes.
5190 * rs6000-aix-tdep.c: Fix common/ includes.
5191 * riscv-tdep.c: Fix common/ includes.
5192 * remote.c: Fix common/ includes.
5193 * remote-notif.h: Fix common/ includes.
5194 * remote-fileio.h: Fix common/ includes.
5195 * remote-fileio.c: Fix common/ includes.
5196 * regcache.h: Fix common/ includes.
5197 * regcache.c: Fix common/ includes.
5198 * record-btrace.c: Fix common/ includes.
5199 * python/python.c: Fix common/ includes.
5200 * python/py-type.c: Fix common/ includes.
5201 * python/py-inferior.c: Fix common/ includes.
5202 * progspace.h: Fix common/ includes.
5203 * producer.c: Fix common/ includes.
5204 * procfs.c: Fix common/ includes.
5205 * proc-api.c: Fix common/ includes.
5206 * printcmd.c: Fix common/ includes.
5207 * ppc-linux-nat.c: Fix common/ includes.
5208 * parser-defs.h: Fix common/ includes.
5209 * osdata.c: Fix common/ includes.
5210 * obsd-nat.c: Fix common/ includes.
5211 * nat/x86-linux.c: Fix common/ includes.
5212 * nat/x86-linux-dregs.c: Fix common/ includes.
5213 * nat/x86-dregs.h: Fix common/ includes.
5214 * nat/x86-dregs.c: Fix common/ includes.
5215 * nat/ppc-linux.c: Fix common/ includes.
5216 * nat/mips-linux-watch.h: Fix common/ includes.
5217 * nat/mips-linux-watch.c: Fix common/ includes.
5218 * nat/linux-waitpid.c: Fix common/ includes.
5219 * nat/linux-ptrace.h: Fix common/ includes.
5220 * nat/linux-ptrace.c: Fix common/ includes.
5221 * nat/linux-procfs.c: Fix common/ includes.
5222 * nat/linux-personality.c: Fix common/ includes.
5223 * nat/linux-osdata.c: Fix common/ includes.
5224 * nat/linux-namespaces.c: Fix common/ includes.
5225 * nat/linux-btrace.h: Fix common/ includes.
5226 * nat/linux-btrace.c: Fix common/ includes.
5227 * nat/fork-inferior.c: Fix common/ includes.
5228 * nat/amd64-linux-siginfo.c: Fix common/ includes.
5229 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
5230 * nat/aarch64-linux.c: Fix common/ includes.
5231 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
5232 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
5233 * namespace.h: Fix common/ includes.
5234 * mips-linux-tdep.c: Fix common/ includes.
5235 * minsyms.c: Fix common/ includes.
5236 * mi/mi-parse.h: Fix common/ includes.
5237 * mi/mi-main.c: Fix common/ includes.
5238 * mi/mi-cmd-env.c: Fix common/ includes.
5239 * memrange.h: Fix common/ includes.
5240 * memattr.c: Fix common/ includes.
5241 * maint.h: Fix common/ includes.
5242 * maint.c: Fix common/ includes.
5243 * main.c: Fix common/ includes.
5244 * machoread.c: Fix common/ includes.
5245 * location.c: Fix common/ includes.
5246 * linux-thread-db.c: Fix common/ includes.
5247 * linux-nat.c: Fix common/ includes.
5248 * linux-fork.c: Fix common/ includes.
5249 * inline-frame.c: Fix common/ includes.
5250 * infrun.c: Fix common/ includes.
5251 * inflow.c: Fix common/ includes.
5252 * inferior.h: Fix common/ includes.
5253 * inferior.c: Fix common/ includes.
5254 * infcmd.c: Fix common/ includes.
5255 * inf-ptrace.c: Fix common/ includes.
5256 * inf-child.c: Fix common/ includes.
5257 * ia64-linux-nat.c: Fix common/ includes.
5258 * i387-tdep.c: Fix common/ includes.
5259 * i386-tdep.c: Fix common/ includes.
5260 * i386-linux-tdep.c: Fix common/ includes.
5261 * i386-linux-nat.c: Fix common/ includes.
5262 * i386-go32-tdep.c: Fix common/ includes.
5263 * i386-fbsd-tdep.c: Fix common/ includes.
5264 * i386-fbsd-nat.c: Fix common/ includes.
5265 * guile/scm-type.c: Fix common/ includes.
5266 * guile/guile.c: Fix common/ includes.
5267 * go32-nat.c: Fix common/ includes.
5268 * gnu-nat.c: Fix common/ includes.
5269 * gdbthread.h: Fix common/ includes.
5270 * gdbarch-selftests.c: Fix common/ includes.
5271 * gdb_usleep.c: Fix common/ includes.
5272 * gdb_select.h: Fix common/ includes.
5273 * gdb_bfd.c: Fix common/ includes.
5274 * gcore.c: Fix common/ includes.
5275 * fork-child.c: Fix common/ includes.
5276 * findvar.c: Fix common/ includes.
5277 * fbsd-nat.c: Fix common/ includes.
5278 * event-top.c: Fix common/ includes.
5279 * event-loop.c: Fix common/ includes.
5280 * dwarf2read.c: Fix common/ includes.
5281 * dwarf2loc.c: Fix common/ includes.
5282 * dwarf2-frame.c: Fix common/ includes.
5283 * dwarf-index-cache.c: Fix common/ includes.
5284 * dtrace-probe.c: Fix common/ includes.
5285 * disasm-selftests.c: Fix common/ includes.
5286 * defs.h: Fix common/ includes.
5287 * csky-tdep.c: Fix common/ includes.
5288 * cp-valprint.c: Fix common/ includes.
5289 * cp-support.h: Fix common/ includes.
5290 * cp-support.c: Fix common/ includes.
5291 * corelow.c: Fix common/ includes.
5292 * completer.h: Fix common/ includes.
5293 * completer.c: Fix common/ includes.
5294 * compile/compile.c: Fix common/ includes.
5295 * compile/compile-loc2c.c: Fix common/ includes.
5296 * compile/compile-cplus-types.c: Fix common/ includes.
5297 * compile/compile-cplus-symbols.c: Fix common/ includes.
5298 * command.h: Fix common/ includes.
5299 * cli/cli-dump.c: Fix common/ includes.
5300 * cli/cli-cmds.c: Fix common/ includes.
5301 * charset.c: Fix common/ includes.
5302 * build-id.c: Fix common/ includes.
5303 * btrace.h: Fix common/ includes.
5304 * btrace.c: Fix common/ includes.
5305 * breakpoint.h: Fix common/ includes.
5306 * breakpoint.c: Fix common/ includes.
5307 * ax.h:
5308 (enum agent_op): Fix common/ includes.
5309 * ax-general.c (struct aop_map): Fix common/ includes.
5310 * ax-gdb.c: Fix common/ includes.
5311 * auxv.c: Fix common/ includes.
5312 * auto-load.c: Fix common/ includes.
5313 * arm-tdep.c: Fix common/ includes.
5314 * arch/riscv.c: Fix common/ includes.
5315 * arch/ppc-linux-common.c: Fix common/ includes.
5316 * arch/i386.c: Fix common/ includes.
5317 * arch/arm.c: Fix common/ includes.
5318 * arch/arm-linux.c: Fix common/ includes.
5319 * arch/arm-get-next-pcs.c: Fix common/ includes.
5320 * arch/amd64.c: Fix common/ includes.
5321 * arch/aarch64.c: Fix common/ includes.
5322 * arch/aarch64-insn.c: Fix common/ includes.
5323 * arch-utils.c: Fix common/ includes.
5324 * amd64-windows-tdep.c: Fix common/ includes.
5325 * amd64-tdep.c: Fix common/ includes.
5326 * amd64-sol2-tdep.c: Fix common/ includes.
5327 * amd64-obsd-tdep.c: Fix common/ includes.
5328 * amd64-nbsd-tdep.c: Fix common/ includes.
5329 * amd64-linux-tdep.c: Fix common/ includes.
5330 * amd64-linux-nat.c: Fix common/ includes.
5331 * amd64-fbsd-tdep.c: Fix common/ includes.
5332 * amd64-fbsd-nat.c: Fix common/ includes.
5333 * amd64-dicos-tdep.c: Fix common/ includes.
5334 * amd64-darwin-tdep.c: Fix common/ includes.
5335 * agent.c: Fix common/ includes.
5336 * ada-lang.h: Fix common/ includes.
5337 * ada-lang.c: Fix common/ includes.
5338 * aarch64-tdep.c: Fix common/ includes.
5339
53402019-01-25 Tom Tromey <tom@tromey.com>
5341
5342 * common/create-version.sh: Use common/version.h.
5343
53442019-01-24 Pedro Alves <palves@redhat.com>
5345
5346 * infrun.c (signal_stop, signal_print, signal_program)
5347 (signal_catch, signal_pass): Now arrays instead of pointers.
5348 (update_signals_program_target, do_target_resume)
5349 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
5350 * linux-nat.c (linux_nat_target::pass_signals)
5351 (linux_nat_target::create_inferior, linux_nat_target::attach):
5352 Adjust.
5353 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
5354 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
5355 * procfs.c (procfs_target::pass_signals): Adjust.
5356 * record-full.c (record_full_target::resume): Adjust.
5357 * remote.c (remote_target::pass_signals)
5358 (remote_target::program_signals): Adjust.
5359 * target-debug.h (target_debug_print_signals): Now takes a
5360 gdb::array_view as parameter. Adjust.
5361 * target.h (target_ops) <pass_signals, program_signals>: Replace
5362 pointer and length parameters with gdb::array_view.
5363 (target_pass_signals, target_program_signals): Likewise.
5364 * target-delegates.c: Regenerate.
5365
53662019-01-24 Pedro Alves <palves@redhat.com>
5367
5368 * common/forward-scope-exit.h
5369 (forward_scope_exit::forward_scope_exit): Pass arguments to
5370 m_bind_function directly, instead of creating a std::bind and
5371 copying that.
5372
53732019-01-24 Alan Hayward <alan.hayward@arm.com>
5374
5375 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5376 for static members.
5377 (pass_in_v_vfp_candidate): Likewise.
5378
53792019-01-23 Tom Tromey <tom@tromey.com>
5380 Pedro Alves <palves@redhat.com>
5381
5382 * regcache.c (class regcache_invalidator): Remove.
5383 (regcache::raw_write): Use make_scope_exit.
5384
53852019-01-23 Tom Tromey <tom@tromey.com>
5386
5387 * ui-out.h (class ui_out_emit_type): Update comment.
5388
53892019-01-23 Tom Tromey <tom@tromey.com>
5390
5391 * infrun.c (fetch_inferior_event): Update comment.
5392
53932019-01-23 Tom Tromey <tom@tromey.com>
5394 Pedro Alves <palves@redhat.com>
5395
5396 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
5397 parameter.
5398 (fetch_inferior_event): Use SCOPE_EXIT.
5399
5400
54012019-01-23 Tom Tromey <tom@tromey.com>
5402 Pedro Alves <palves@redhat.com>
5403
5404 * infrun.c (disable_thread_events): Delete.
5405 (stop_all_threads): Use SCOPE_EXIT.
5406
54072019-01-23 Tom Tromey <tom@tromey.com>
5408 Pedro Alves <palves@redhat.com>
5409
5410 * symfile.c: Include forward-scope-exit.h.
5411 (clear_symtab_users_cleanup): Replace forward declaration with
5412 a FORWARD_SCOPE_EXIT.
5413 (syms_from_objfile_1): Use the forward_scope_exit and
5414 gdb::optional instead of cleanup_function.
5415 (reread_symbols): Use the forward_scope_exit instead of
5416 cleanup_function.
5417 (clear_symtab_users_cleanup): Remove function.
5418
54192019-01-23 Tom Tromey <tom@tromey.com>
5420 Pedro Alves <palves@redhat.com>
5421
5422 * linux-nat.c: Include scope-exit.h.
5423 (cleanup_target_stop): Remove.
5424 (linux_nat_target::static_tracepoint_markers_by_strid): Use
5425 SCOPE_EXIT.
5426
54272019-01-23 Tom Tromey <tom@tromey.com>
5428 Pedro Alves <palves@redhat.com>
5429
5430 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
5431 (call_function_by_hand_dummy): Use SCOPE_EXIT.
5432
54332019-01-23 Tom Tromey <tom@tromey.com>
5434 Andrew Burgess <andrew.burgess@embecosm.com>
5435 Pedro Alves <palves@redhat.com>
5436
5437 * infrun.c (fetch_inferior_event): Use scope_exit.
5438 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
5439 * top.c (execute_command): Use scope_exit.
5440 * breakpoint.c (bpstat_do_actions): Use scope_exit.
5441 * utils.c (do_bpstat_clear_actions_cleanup)
5442 (make_bpstat_clear_actions_cleanup): Remove.
5443
54442019-01-23 Tom Tromey <tom@tromey.com>
5445 Pedro Alves <palves@redhat.com>
5446
5447 * infrun.c: Include "common/scope-exit.h"
5448 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
5449 (wait_for_inferior): Use SCOPE_EXIT.
5450 (fetch_inferior_event): Use scope_exit.
5451
54522019-01-23 Tom Tromey <tom@tromey.com>
5453 Pedro Alves <palves@redhat.com>
5454
5455 * breakpoint.c (create_breakpoint): Remove cleanup.
5456
54572019-01-23 Tom Tromey <tom@tromey.com>
5458 Andrew Burgess <andrew.burgess@embecosm.com>
5459 Pedro Alves <palves@redhat.com>
5460
54612019-01-23 Pedro Alves <palves@redhat.com>
5462
5463 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
5464
54652019-01-23 Pedro Alves <palves@redhat.com>
5466 Andrew Burgess <andrew.burgess@embecosm.com>
5467
5468 * gdbthread.h: Include "common/forward-scope-exit.h".
5469 (scoped_finish_thread_state): Redefine custom class in terms of
5470 forward_scope_exit.
5471
54722019-01-23 Pedro Alves <palves@redhat.com>
5473 Andrew Burgess <andrew.burgess@embecosm.com>
5474
5475 * common/forward-scope-exit.h: New file.
5476
54772019-01-23 Pedro Alves <palves@redhat.com>
5478 Andrew Burgess <andrew.burgess@embecosm.com>
5479 Tom Tromey <tom@tromey.com>
5480
5481 * common/scope-exit.h: New file.
5482
54832019-01-23 Pedro Alves <palves@redhat.com>
5484
5485 * common/preprocessor.h (ESC): Rename to ...
5486 (ESC_PARENS): ... this.
5487 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
5488 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
5489
54902019-01-23 Tom Tromey <tom@tromey.com>
5491
5492 * language.h (class scoped_switch_to_sym_language_if_auto):
5493 Initialize m_lang in both cases.
5494
54952019-01-23 Alan Hayward <alan.hayward@arm.com>
5496
5497 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
5498 with XCNEW.
5499
55002019-01-22 Tom Tromey <tom@tromey.com>
5501
5502 * corelow.c: Do not include sys/file.h.
5503
55042019-01-22 Tom Tromey <tom@tromey.com>
5505
5506 * tui/tui-wingeneral.h: Include gdb_curses.h.
5507
55082019-01-22 Tom Tromey <tom@tromey.com>
5509
5510 * source-cache.h (class source_cache) <get_source_lines,
5511 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
5512
55132019-01-22 Tom Tromey <tom@tromey.com>
5514
5515 * remote-fileio.h (struct remote_target): Declare.
5516
55172019-01-22 Tom Tromey <tom@tromey.com>
5518
5519 * python/py-arch.c: Do not include py-ref.h.
5520 * python/py-bpevent.c: Do not include py-ref.h.
5521 * python/py-cmd.c: Do not include py-ref.h.
5522 * python/py-continueevent.c: Do not include py-ref.h.
5523 * python/py-event.h: Do not include py-ref.h.
5524 * python/py-evtregistry.c: Do not include py-ref.h.
5525 * python/py-finishbreakpoint.c: Do not include py-ref.h.
5526 * python/py-frame.c: Do not include py-ref.h.
5527 * python/py-framefilter.c: Do not include py-ref.h.
5528 * python/py-function.c: Do not include py-ref.h.
5529 * python/py-infevents.c: Do not include py-ref.h.
5530 * python/py-linetable.c: Do not include py-ref.h.
5531 * python/py-objfile.c: Do not include py-ref.h.
5532 * python/py-param.c: Do not include py-ref.h.
5533 * python/py-prettyprint.c: Do not include py-ref.h.
5534 * python/py-progspace.c: Do not include py-ref.h.
5535 * python/py-symbol.c: Do not include py-ref.h.
5536 * python/py-symtab.c: Do not include py-ref.h.
5537 * python/py-type.c: Do not include py-ref.h.
5538 * python/py-unwind.c: Do not include py-ref.h.
5539 * python/py-utils.c: Do not include py-ref.h.
5540 * python/py-value.c: Do not include py-ref.h.
5541 * python/py-varobj.c: Do not include py-ref.h.
5542 * python/py-xmethods.c: Do not include py-ref.h.
5543 * python/python.c: Do not include py-ref.h.
5544 * varobj.c: Do not include py-ref.h.
5545
55462019-01-22 Tom Tromey <tom@tromey.com>
5547
5548 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
5549 keyword for bcache.
5550
55512019-01-22 Tom Tromey <tom@tromey.com>
5552
5553 * compile/compile-cplus-types.c: Remove a comment by #include.
5554
55552019-01-22 Tom Tromey <tom@tromey.com>
5556
5557 * compile/gcc-c-plugin.h: Include compile-internal.h.
5558
55592019-01-22 Tom Tromey <tom@tromey.com>
5560
5561 * stabsread.c (EXTERN): Do not define.
5562 (symnum, next_symbol_text_func, processing_gcc_compilation)
5563 (within_function, global_sym_chain, global_stabs)
5564 (previous_stab_code, this_object_header_files)
5565 (n_this_object_header_files)
5566 (n_allocated_this_object_header_files): Define.
5567 * stabsread.h (EXTERN): Never define. Use "extern".
5568
55692019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5570
5571 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
5572 history_value.
5573
55742019-01-21 Tom Tromey <tom@tromey.com>
5575
5576 * ui-out.c: Fix includes.
5577 * tui/tui-source.c: Fix includes.
5578 * target.c: Fix includes.
5579 * remote.c: Fix includes.
5580 * regcache.c: Fix includes.
5581 * python/py-block.c: Fix includes.
5582 * printcmd.c: Fix includes.
5583 * or1k-tdep.c: Fix includes.
5584 * mi/mi-main.c: Fix includes.
5585 * m32r-tdep.c: Fix includes.
5586 * csky-tdep.c: Fix includes.
5587 * compile/compile-cplus-types.c: Fix includes.
5588 * cli/cli-interp.c: Fix includes.
5589
55902019-01-21 Alan Hayward <alan.hayward@arm.com>
5591
5592 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
5593 for padding.
5594
55952019-01-16 Tom Tromey <tom@tromey.com>
5596
5597 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
5598 earlier.
5599 (struct objfile) <msymbols_range>: Move from top level.
5600 <msymbols>: New method.
5601 (class objfile_msymbols): Remove.
5602 * symtab.c (default_collect_symbol_completion_matches_break_on):
5603 Update.
5604 * symmisc.c (dump_msymbols): Update.
5605 * stabsread.c (scan_file_globals): Update.
5606 * objc-lang.c (info_selectors_command, info_classes_command)
5607 (find_methods): Update.
5608 * minsyms.c (find_solib_trampoline_target): Update.
5609 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
5610 * coffread.c (coff_symfile_read): Update.
5611 * ada-lang.c (ada_lookup_simple_minsym)
5612 (ada_collect_symbol_completion_matches): Update.
5613
56142019-01-16 Tom Tromey <tom@tromey.com>
5615
5616 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
5617 type. Remove no-argument constructor.
5618 <iterator::operator++>: Simplify.
5619 <begin>: Update.
5620 <end>: Use minimal_symbol_count.
5621
56222019-01-16 Tom Tromey <tom@tromey.com>
5623
5624 * objfiles.h (struct objfile) <psymtabs>: New method.
5625 (class objfile_psymtabs): Remove.
5626 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
5627 typedef.
5628 <range>: New method.
5629 (require_partial_symbols): Change return type.
5630 * psymtab.c (require_partial_symbols)
5631 (psym_expand_symtabs_matching): Update.
5632 * mdebugread.c (parse_partial_symbols): Update.
5633 * dbxread.c (dbx_end_psymtab): Update.
5634
56352019-01-15 Tom Tromey <tom@tromey.com>
5636
5637 * symtab.c (lookup_objfile_from_block)
5638 (lookup_symbol_in_objfile_symtabs)
5639 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
5640 (find_line_symtab, info_sources_command)
5641 (default_collect_symbol_completion_matches_break_on)
5642 (make_source_files_completion_list): Update.
5643 * symmisc.c (print_objfile_statistics, dump_objfile)
5644 (maintenance_print_symbols, maintenance_info_symtabs)
5645 (maintenance_check_symtabs, maintenance_info_line_tables):
5646 Update.
5647 * source.c (select_source_symtab)
5648 (forget_cached_source_info_for_objfile): Update.
5649 * objfiles.h (class objfile_compunits): Remove.
5650 (struct objfile) <compunits_range>: New typedef.
5651 (compunits): New method.
5652 * objfiles.c (objfile_relocate1): Update.
5653 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5654 * maint.c (count_symtabs_and_blocks): Update.
5655 * linespec.c (iterate_over_all_matching_symtabs): Update.
5656 * cp-support.c (add_symbol_overload_list_qualified): Update.
5657 * coffread.c (coff_symtab_read): Update.
5658 * ada-lang.c (add_nonlocal_symbols)
5659 (ada_collect_symbol_completion_matches)
5660 (ada_add_global_exceptions): Update.
5661
56622019-01-15 Tom Tromey <tom@tromey.com>
5663
5664 * progspace.h (program_space) <objfiles_safe_range>: New
5665 typedef.
5666 <objfiles_safe>: New method.
5667 * objfiles.h (class all_objfiles_safe): Remove.
5668 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
5669 * jit.c (jit_inferior_exit_hook): Update.
5670
56712019-01-17 Tom Tromey <tom@tromey.com>
5672
5673 * progspace.h (program_space) <objfiles_range>: New typedef.
5674 <objfiles>: New method.
5675 <objfiles_head>: Rename from objfiles.
5676 (object_files): Update.
5677 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
5678 * guile/scm-pretty-print.c
5679 (ppscm_find_pretty_printer_from_objfiles): Update.
5680 * guile/scm-objfile.c (gdbscm_objfiles): Update.
5681 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
5682 Update.
5683 * python/py-progspace.c (pspy_get_objfiles): Update.
5684 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
5685 Update.
5686 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
5687 (objfpy_lookup_objfile_by_build_id): Update.
5688 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
5689 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
5690 Update.
5691 * symtab.c (iterate_over_symtabs, matching_obj_sections)
5692 (expand_symtab_containing_pc, lookup_objfile_from_block)
5693 (lookup_static_symbol, basic_lookup_transparent_type)
5694 (find_pc_sect_compunit_symtab, find_symbol_at_address)
5695 (find_line_symtab, info_sources_command)
5696 (default_collect_symbol_completion_matches_break_on)
5697 (make_source_files_completion_list, find_main_name): Update.
5698 * symmisc.c (print_symbol_bcache_statistics)
5699 (print_objfile_statistics, maintenance_print_symbols)
5700 (maintenance_print_msymbols, maintenance_print_objfiles)
5701 (maintenance_info_symtabs, maintenance_check_symtabs)
5702 (maintenance_expand_symtabs, maintenance_info_line_tables):
5703 Update.
5704 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
5705 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
5706 (map_overlay_command, unmap_overlay_command)
5707 (simple_overlay_update, expand_symtabs_matching)
5708 (map_symbol_filenames): Update.
5709 * symfile-debug.c (set_debug_symfile): Update.
5710 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
5711 Update.
5712 * source.c (select_source_symtab, forget_cached_source_info):
5713 Update.
5714 * solib.c (solib_read_symbols): Update.
5715 * solib-spu.c (append_ocl_sos): Update.
5716 * psymtab.c (maintenance_print_psymbols)
5717 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
5718 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
5719 * printcmd.c (info_symbol_command): Update.
5720 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
5721 Update.
5722 * objfiles.h (class all_objfiles): Remove.
5723 * objfiles.c (have_partial_symbols, have_full_symbols)
5724 (have_minimal_symbols, qsort_cmp, update_section_map)
5725 (shared_objfile_contains_address_p)
5726 (default_iterate_over_objfiles_in_search_order): Update.
5727 * objc-lang.c (info_selectors_command, info_classes_command)
5728 (find_methods): Update.
5729 * minsyms.c (find_solib_trampoline_target): Update.
5730 * maint.c (maintenance_info_sections)
5731 (maintenance_translate_address, count_symtabs_and_blocks):
5732 Update.
5733 * main.c (captured_main_1): Update.
5734 * linux-thread-db.c (try_thread_db_load_from_pdir)
5735 (has_libpthread): Update.
5736 * linespec.c (iterate_over_all_matching_symtabs)
5737 (search_minsyms_for_name): Update.
5738 * jit.c (jit_find_objf_with_entry_addr): Update.
5739 * hppa-tdep.c (find_unwind_entry)
5740 (hppa_lookup_stub_minimal_symbol): Update.
5741 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
5742 Update.
5743 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
5744 (elf_gnu_ifunc_resolve_by_got): Update.
5745 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
5746 * dwarf-index-write.c (save_gdb_index_command): Update.
5747 * cp-support.c (add_symbol_overload_list_qualified): Update.
5748 * breakpoint.c (create_overlay_event_breakpoint)
5749 (create_longjmp_master_breakpoint)
5750 (create_std_terminate_master_breakpoint)
5751 (create_exception_master_breakpoint): Update.
5752 * blockframe.c (find_pc_partial_function): Update.
5753 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
5754 (ada_collect_symbol_completion_matches)
5755 (ada_add_global_exceptions): Update.
5756
57572019-01-17 Tom Tromey <tom@tromey.com>
5758
5759 * solib-target.c (lm_info_target_p): Remove typedef. Don't
5760 declare VEC.
5761 (solib_target_parse_libraries): Change return type.
5762 (library_list_start_segment, library_list_start_section)
5763 (library_list_end_library, library_list_start_library); Update.
5764 (solib_target_free_library_list): Remove.
5765 (solib_target_parse_libraries): Remove cleanup. Change return
5766 type.
5767 (solib_target_current_sos): Update.
5768
57692019-01-17 Tom Tromey <tromey@bapiya>
5770
5771 * valprint.c: Replace "the the" with "the".
5772 * symtab.c: Replace "the the" with "the".
5773 * solib.c: Replace "the the" with "the".
5774 * solib-dsbt.c: Replace "the the" with "the".
5775 * linespec.c: Replace "the the" with "the".
5776 * dwarf2loc.h: Replace "the the" with "the".
5777 * amd64-windows-tdep.c: Replace "the the" with "the".
5778 * aarch64-tdep.c: Replace "the the" with "the".
5779
57802019-01-16 Keith Seitz <keiths@redhat.com>
5781
5782 PR gdb/23773
5783 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
5784 <builder>: Rename to ..
5785 <m_builder>: ... this and make private.
5786 (dwarf2_cu::get_builder): New method. Change all users of
5787 `builder' to use this method.
5788 (dwarf2_start_symtab): Move to ...
5789 (dwarf2_cu::start_symtab): ... here. Update all callers
5790 (setup_type_unit_groups): Move to ...
5791 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
5792 callers.
5793 (dwarf2_cu::reset_builder): New method.
5794 (process_full_compunit, process_full_type_unit): Use
5795 dwarf2_cu::reset_builder.
5796 (follow_die_offset): Record the ancestor CU if it is different
5797 from the followed DIE's CU.
5798 (follow_die_sig_1): Likewise.
5799
58002019-01-15 Tom Tromey <tom@tromey.com>
5801
5802 * remote.c (class remote_state) <buf>: Now a char_vector.
5803 <buf_size>: Remove.
5804 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
5805 parameter.
5806 (remote_target::getpkt_or_notif_sane_1)
5807 (remote_target::getpkt_sane)
5808 (remote_target::getpkt_or_notif_sane): Likewise.
5809 (class remote_target) <putpkt>: New overload.
5810 (remote_target::read_frame): Change type of "buf_p". Remove
5811 sizeof_p parameter.
5812 (packet_ok): New overload.
5813 (packet_check_result): New overload.
5814 Update all uses.
5815
58162019-01-14 Tom Tromey <tom@tromey.com>
5817
5818 * remote-notif.c (handle_notification, remote_notif_ack)
5819 (remote_notif_parse): Make "buf" const.
5820 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
5821 const.
5822 (remote_notif_parse, remote_notif_ack, handle_notification):
5823 Likewise.
5824 * remote.c (remote_notif_stop_parse): Make "buf" const.
5825 (remote_target::remote_parse_stop_reply): Make "buf" const.
5826 (remote_notif_stop_ack): Make "buf" const.
5827
58282019-01-14 Tom Tromey <tom@tromey.com>
5829
5830 * remote.c (remote_console_output): Make parameter const.
5831
58322019-01-14 Tom Tromey <tom@tromey.com>
5833
5834 * target-debug.h (target_debug_print_signals): Constify.
5835 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
5836 * procfs.c (procfs_target::pass_signals): Update.
5837 * linux-nat.c (linux_nat_target::pass_signals): Update.
5838 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
5839 * target-delegates.c: Rebuild.
5840 * remote.c (remote_target::program_signals): Update.
5841 (remote_target::pass_signals): Update.
5842 * target.c (target_pass_signals): Constify argument.
5843 (target_program_signals): Likewise.
5844 * target.h (struct target_ops) <pass_signals, program_signals>:
5845 Constify argument.
5846 (target_pass_signals, target_program_signals): Constify argument.
5847
58482019-01-14 Tom Tromey <tom@tromey.com>
5849
5850 PR tui/28819:
5851 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
5852
58532019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5854
5855 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
5856 field.
5857 * rs6000-tdep.c: Include reggroups.h.
5858 (IS_V_ALIAS_PSEUDOREG): Define.
5859 (rs6000_register_name): Return names for the "vX" aliases.
5860 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
5861 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
5862 aliases. Call default_register_reggroup_p for all other
5863 pseudo-registers.
5864 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
5865 New functions.
5866 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
5867 Handle "vX" aliases.
5868 (v_alias_pseudo_register_collect): New function.
5869 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
5870 (rs6000_gdbarch_init): Initialize "vX" aliases as
5871 pseudo-registers. Restore registration of
5872 rs6000_pseudo_register_reggroup_p with
5873 set_tdesc_pseudo_register_reggroup_p.
5874
58752019-01-13 Max Filippov <jcmvbkbc@gmail.com>
5876
5877 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
5878 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
5879 set_gdbarch_num_pseudo_regs.
5880
58812019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5882
5883 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
5884 Remove arg prefixname, add do_set and do_show.
5885 Add member functions set_list and show_list.
5886 * cli/cli-style.c (class cli_style_option): Update accordingly.
5887 (style_set_list): Move to file scope.
5888 (style_show_list): Likewise.
5889 (set_style): Call help_list.
5890 (show_style): Call cmd_show_list.
5891 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
5892 Update to use the new macro.
5893
58942019-10-12 Joel Brobecker <brobecker@adacore.com>
5895
5896 * ada-lang.c (_initialize_ada_language): Expand the help text
5897 for the "catch exception" command.
5898
58992019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5900
5901 * symtab.c (matching_obj_sections): Initialize obj,
5902 declare it closer to its usage.
5903
59042019-01-10 Tom Tromey <tom@tromey.com>
5905
5906 * thread-iter.h (inf_threads_iterator): Use next_iterator.
5907 (basic_inf_threads_range): Remove.
5908 (inf_threads_range, inf_non_exited_threads_range)
5909 (safe_inf_threads_range): Use next_adapter.
5910
59112019-01-10 Keith Seitz <keiths@redhat.com>
5912
5913 PR gdb/23712
5914 PR symtab/23010
5915 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
5916 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
5917
59182019-01-10 Keith Seitz <keiths@redhat.com>
5919
5920 PR gdb/23712
5921 PR symtab/23010
5922 * dictionary.c (pending_to_vector): Remove.
5923 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5924 Remove _1 suffix, replacing functions of the same name. Update
5925 all callers.
5926 (dict_create_hashed, dict_create_hashed_expandable)
5927 (dict_create_linear, dict_create_linear_expandable, dict_free)
5928 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
5929 Make functions static.
5930
59312019-01-10 Keith Seitz <keiths@redhat.com>
5932
5933 PR gdb/23712
5934 PR symtab/23010
5935 * dictionary.h (struct dictionary): Replace declaration with
5936 multidictionary.
5937 (dict_create_hashed, dict_create_hashed_expandable)
5938 (dict_create_linear, dict_create_linear_expandable)
5939 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
5940 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
5941 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
5942 taking multidictionary argument.
5943 [ALL_DICT_SYMBOLS]: Update for multidictionary.
5944 * block.h (struct block) <dict>: Change to multidictionary
5945 and rename `multidict'.
5946 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
5947 symmisc.c: Update all dictionary references to multidictionary.
5948
59492019-01-10 Keith Seitz <keiths@redhat.com>
5950
5951 PR gdb/23712
5952 PR symtab/23010
5953 * dictionary.c: Include unordered_map.
5954 (pending_to_vector): New function.
5955 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
5956 Rewrite the non-"_1" functions to take vector instead
5957 of linked list.
5958 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
5959 "new" _1 versions of the same name.
5960 (multidictionary): Define.
5961 (std::hash<enum language): New definition.
5962 (collate_pending_symbols_by_language, mdict_create_hashed)
5963 (mdict_create_hashed_expandable, mdict_create_linear)
5964 (mdict_create_linear_expandable, mdict_free)
5965 (find_language_dictionary, create_new_language_dictionary)
5966 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
5967 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
5968 (mdict_size, mdict_empty): New functions.
5969 * dictionary.h (mdict_iterator): Define.
5970
59712019-01-10 Pedro Alves <palves@redhat.com>
5972
5973 * breakpoint.c (read_uploaded_action)
5974 (create_tracepoint_from_upload): Adjust to use
5975 gdb::unique_xmalloc_ptr.
5976 * ctf.c (ctf_write_uploaded_tp):
5977 (SET_ARRAY_FIELD): Use emplace_back.
5978 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
5979 * tracefile-tfile.c (tfile_write_uploaded_tp):
5980 * tracepoint.c (parse_tracepoint_definition): Adjust to use
5981 gdb::unique_xmalloc_ptr.
5982 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
5983 at_string, cond_string, cmd_strings>: Replace char pointers
5984 with gdb::unique_xmalloc_ptr.
5985
59862019-01-10 Pedro Alves <palves@redhat.com>
5987
5988 * solib-target.c (library_list_start_library): Don't xstrdup name.
5989
59902019-01-10 Pedro Alves <palves@redhat.com>
5991
5992 * mdebugread.c (parse_partial_symbols): Use
5993 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
5994
59952019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
5996
5997 * linux-fork.c (scoped_switch_fork_info)
5998 <~scoped_switch_fork_info>: Fix incorrect variable name.
5999
60002019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
6001
6002 * linux-fork.c (scoped_switch_fork_info)
6003 <scoped_switch_fork_info>: Make explicit.
6004 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
6005
60062019-01-10 Tom Tromey <tom@tromey.com>
6007
6008 * objfiles.h (objfile::reset_psymtabs): Update.
6009 * objfiles.c (objfile::objfile): Update.
6010 * psymtab.h (psymtab_storage::obstack): Update.
6011 (psymtab_storage::m_obstack): Use gdb::optional.
6012 (class psymtab_storage): Update comment. Remove objfile
6013 parameter.
6014 * psymtab.c (psymtab_storage::psymtab_storage): Update.
6015
60162019-01-10 Tom Tromey <tom@tromey.com>
6017
6018 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
6019 <free_psymtabs>: Now private.
6020 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
6021 (allocate_psymtab): Use new method.
6022
60232019-01-10 Tom Tromey <tom@tromey.com>
6024
6025 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
6026 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
6027 * mdebugread.c (parse_partial_symbols): Use
6028 allocate_dependencies.
6029 * dwarf2read.c (dwarf2_create_include_psymtab): Use
6030 allocate_dependencies.
6031 (process_psymtab_comp_unit_reader)
6032 (build_type_psymtab_dependencies): Likewise.
6033 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
6034
60352019-01-10 Tom Tromey <tom@tromey.com>
6036
6037 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
6038 PSYMBOL_SET_LANGUAGE.
6039 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
6040
60412019-01-10 Tom Tromey <tom@tromey.com>
6042
6043 * psymtab.h (psymtab_storage::obstack): New method.
6044 <m_obstack>: Rename from obstack; now private.
6045 * psymtab.c (psymtab_storage): Update.
6046 * dwarf2read.c (create_addrmap_from_index)
6047 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
6048 Update.
6049
60502019-01-10 Tom Tromey <tom@tromey.com>
6051
6052 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
6053 * objfiles.h (objfile::reset_psymtabs): New method.
6054
60552019-01-10 Tom Tromey <tom@tromey.com>
6056
6057 * symmisc.c (print_symbol_bcache_statistics): Update.
6058 (print_objfile_statistics): Update.
6059 * symfile.c (reread_symbols): Update.
6060 * psymtab.h (class psymtab_storage): New.
6061 * psymtab.c (psymtab_storage): New constructor.
6062 (~psymtab_storage): New destructor.
6063 (require_partial_symbols): Update.
6064 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
6065 (find_pc_sect_psymtab, find_pc_sect_psymbol)
6066 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
6067 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
6068 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
6069 (start_psymtab_common, end_psymtab_common)
6070 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
6071 (allocate_psymtab): Update.
6072 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
6073 Update.
6074 (dump_psymtab_addrmap, maintenance_print_psymbols)
6075 (maintenance_check_psymtabs): Update.
6076 (class objfile_psymtabs): Move to objfiles.h.
6077 * psympriv.h (discard_psymtab): Now inline.
6078 (psymtab_discarder::psymtab_discarder): Update.
6079 (psymtab_discarder::~psymtab_discarder): Update.
6080 (ALL_OBJFILE_PSYMTABS): Rewrite.
6081 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
6082 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
6083 Remove fields.
6084 <partial_symtabs>: New field.
6085 (class objfile_psymtabs): Move from psymtab.h. Update.
6086 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
6087 psymbol_cache.
6088 (objfile::~objfile): Don't destroy psymbol_cache.
6089 * mdebugread.c (parse_partial_symbols): Update.
6090 * dwarf2read.c (create_addrmap_from_index)
6091 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
6092 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
6093 (add_partial_subprogram, dwarf2_ranges_read): Update.
6094 * dwarf-index-write.c (write_address_map)
6095 (write_one_signatured_type, recursively_write_psymbols)
6096 (class debug_names, class debug_names, write_psymtabs_to_index):
6097 Update.
6098
60992019-01-10 Tom Tromey <tom@tromey.com>
6100
6101 * symtab.h (SYMBOL_SET_NAMES): Update.
6102 (symbol_set_names): Update.
6103 (MSYMBOL_SET_NAMES): Update.
6104 * symtab.c (symbol_set_names): Change argument to be an
6105 objfile_per_bfd_storage.
6106 * psymtab.c (add_psymbol_to_bcache): Update.
6107 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
6108
61092019-01-10 Tom Tromey <tom@tromey.com>
6110
6111 * symtab.c (create_demangled_names_hash): Change argument to be an
6112 objfile_per_bfd_storage.
6113 (symbol_set_names): Update.
6114
61152019-01-10 Tom Tromey <tom@tromey.com>
6116
6117 * xcoffread.c (xcoff_initial_scan): Unconditionally call
6118 init_psymbol_list.
6119 * psymtab.c (init_psymbol_list): Do nothing if already called.
6120 * psympriv.h (init_psymbol_list): Add comment.
6121 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
6122 init_psymbol_list.
6123 * dbxread.c (dbx_symfile_read): Unconditionally call
6124 init_psymbol_list.
6125
61262019-01-10 Tom Tromey <tom@tromey.com>
6127
6128 * xcoffread.c (scan_xcoff_symtab): Update.
6129 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
6130 "where".
6131 * mdebugread.c (parse_partial_symbols)
6132 (handle_psymbol_enumerators): Update.
6133 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
6134 * dbxread.c (read_dbx_symtab): Update.
6135 * psympriv.h (psymbol_placement): New enum.
6136 (add_psymbol_to_list): Update.
6137
61382019-01-10 Tom Tromey <tom@tromey.com>
6139
6140 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
6141 static_psymbols parameters.
6142 (scan_xcoff_symtab): Update.
6143 * psymtab.c (start_psymtab_common): Remove global_psymbols and
6144 static_psymbols parameters.
6145 * psympriv.h (start_psymtab_common): Update.
6146 * mdebugread.c (parse_partial_symbols): Update.
6147 * dwarf2read.c (create_partial_symtab): Update.
6148 * dbxread.c (read_dbx_symtab): Update.
6149 (start_psymtab): Remove global_psymbols and static_psymbols
6150 parameters.
6151
61522019-01-10 Tom Tromey <tom@tromey.com>
6153
6154 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
6155 * psymtab.c (allocate_psymtab): Add comment.
6156 * psympriv.h (allocate_psymtab): Add comment.
6157 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
6158 initializations.
6159 * dbxread.c (dbx_end_psymtab): Remove some initializations.
6160
61612019-01-10 Tom Tromey <tom@tromey.com>
6162
6163 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6164 Don't declare.
6165 * mipsread.c: Include mdebugread.h.
6166 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
6167 Declare.
6168 * elfread.c: Include mdebugread.h.
6169
61702019-01-09 Tom Tromey <tom@tromey.com>
6171
6172 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
6173 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
6174 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
6175 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
6176 (psym_lookup_symbol, psym_find_last_source_symtab)
6177 (psym_forget_cached_source_info, psym_print_stats)
6178 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
6179 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
6180 (psym_map_matching_symbols, psym_expand_symtabs_matching)
6181 (psym_find_compunit_symtab_by_address)
6182 (maintenance_print_psymbols, maintenance_info_psymtabs)
6183 (maintenance_check_psymtabs): Use ranged for.
6184 * psymtab.h (class objfile_psymtabs): New.
6185 (require_partial_symbols): Return objfile_psymtabs.
6186 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
6187
61882019-01-09 Tom Tromey <tom@tromey.com>
6189
6190 * symfile.c (overlay_invalidate_all, find_pc_overlay)
6191 (find_pc_mapped_section, list_overlays_command)
6192 (map_overlay_command, unmap_overlay_command)
6193 (simple_overlay_update): Use all_objfiles.
6194 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
6195 * printcmd.c (info_symbol_command): Use all_objfiles.
6196 * objfiles.h (ALL_OBJSECTIONS): Remove.
6197 * maint.c (maintenance_translate_address): Use all_objfiles.
6198 * gcore.c (gcore_create_callback): Use all_objfiles.
6199 (objfile_find_memory_regions): Likewise.
6200
62012019-01-09 Tom Tromey <tom@tromey.com>
6202
6203 * symtab.c (find_line_symtab, info_sources_command)
6204 (make_source_files_completion_list): Use objfile_compunits.
6205 * source.c (select_source_symtab): Use objfile_compunits.
6206 * objfiles.h (struct objfile): Update comment.
6207 (ALL_OBJFILES): Remove.
6208 (ALL_FILETABS): Remove.
6209 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
6210 objfile_compunits.
6211
62122019-01-09 Tom Tromey <tom@tromey.com>
6213
6214 * symmisc.c (print_objfile_statistics, dump_objfile)
6215 (maintenance_print_symbols): Use compunit_filetabs.
6216 * source.c (forget_cached_source_info_for_objfile): Use
6217 compunit_filetabs.
6218 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
6219 (ALL_FILETABS): Use compunit_filetabs.
6220 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
6221 * coffread.c (coff_symtab_read): Use compunit_filetabs.
6222
62232019-01-09 Tom Tromey <tom@tromey.com>
6224
6225 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
6226 (compunit_filetabs): New.
6227 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
6228 compunit_filetabs.
6229 (info_sources_command, make_source_files_completion_list): Remove
6230 declaration.
6231 * symmisc.c (print_objfile_statistics, dump_objfile)
6232 (maintenance_print_symbols): Remove declaration.
6233 (maintenance_info_symtabs): Use compunit_filetabs.
6234 (maintenance_info_line_tables): Likewise.
6235 * source.c (select_source_symtab): Change local variable name.
6236 (forget_cached_source_info_for_objfile): Remove declaration.
6237 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
6238 * objfiles.c (objfile_relocate1): Remove declaration.
6239 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6240 declaration.
6241 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
6242 * coffread.c (coff_symtab_read): Remove declaration.
6243 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
6244 compunit_filetabs.
6245
62462019-01-09 Tom Tromey <tom@tromey.com>
6247
6248 * symtab.c (lookup_objfile_from_block)
6249 (find_pc_sect_compunit_symtab, search_symbols)
6250 (default_collect_symbol_completion_matches_break_on): Use
6251 objfile_compunits.
6252 * objfiles.h (ALL_COMPUNITS): Remove.
6253 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
6254 * cp-support.c (add_symbol_overload_list_qualified): Use
6255 objfile_compunits.
6256 * ada-lang.c (ada_collect_symbol_completion_matches)
6257 (ada_add_global_exceptions): Use objfile_compunits.
6258
62592019-01-09 Tom Tromey <tom@tromey.com>
6260
6261 * source.c (select_source_symtab)
6262 (forget_cached_source_info_for_objfile): Remove declaration.
6263 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
6264 declaration.
6265 * maint.c (count_symtabs_and_blocks): Remove declaration.
6266 * cp-support.c (add_symbol_overload_list_qualified): Remove
6267 declaration.
6268 * coffread.c (coff_symtab_read): Remove declaration.
6269 * symtab.c (lookup_symbol_in_objfile_symtabs)
6270 (basic_lookup_transparent_type_1): Use objfile_compunits.
6271 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
6272 (info_sources_command, search_symbols)
6273 (default_collect_symbol_completion_matches_break_on)
6274 (make_source_files_completion_list): Remove declaration.
6275 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
6276 (ada_collect_symbol_completion_matches)
6277 (ada_add_global_exceptions): Remove declaration.
6278 * linespec.c (iterate_over_all_matching_symtabs): Use
6279 objfile_compunits.
6280 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
6281 (class objfile_compunits): New.
6282 (ALL_COMPUNITS): Use objfile_compunits.
6283 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
6284 (maintenance_check_symtabs, maintenance_info_line_tables): Use
6285 objfile_compunits.
6286 * objfiles.c (objfile_relocate1): Use objfile_compunits.
6287
62882019-01-09 Tom Tromey <tom@tromey.com>
6289
6290 * symtab.c (search_symbols)
6291 (default_collect_symbol_completion_matches_break_on): Use
6292 objfile_msymbols.
6293 * ada-lang.c (ada_lookup_simple_minsym)
6294 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
6295 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
6296 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
6297 objfile_msymbols.
6298 * coffread.c (coff_symfile_read): Use objfile_msymbols.
6299 * symmisc.c (dump_msymbols): Use objfile_msymbols.
6300 * objc-lang.c (find_methods): Use objfile_msymbols.
6301 (info_selectors_command, info_classes_command): Likewise.
6302 * stabsread.c (scan_file_globals): Use objfile_msymbols.
6303 * objfiles.h (class objfile_msymbols): New.
6304 (ALL_OBJFILE_MSYMBOLS): Remove.
6305 (ALL_MSYMBOLS): Remove.
6306
63072019-01-09 Tom Tromey <tom@tromey.com>
6308
6309 * common/next-iterator.h (next_adapter): Add Iterator template
6310 parameter.
6311 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
6312 (class all_objfiles_safe): New.
6313 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
6314 * objfiles.c (put_objfile_before): Update comment.
6315 (add_separate_debug_objfile): Likewise.
6316 (free_all_objfiles): Use all_objfiles_safe.
6317 (objfile_purge_solibs): Likewise.
6318
63192019-01-09 Tom Tromey <tom@tromey.com>
6320
6321 * symtab.c (iterate_over_symtabs, matching_obj_sections)
6322 (expand_symtab_containing_pc, lookup_static_symbol)
6323 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
6324 (find_symbol_at_address, find_line_symtab, find_main_name): Use
6325 all_objfiles.
6326 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
6327 * breakpoint.c (create_overlay_event_breakpoint)
6328 (create_longjmp_master_breakpoint)
6329 (create_std_terminate_master_breakpoint)
6330 (create_exception_master_breakpoint): Use all_objfiles.
6331 * linux-thread-db.c (try_thread_db_load_from_pdir)
6332 (has_libpthread): Use all_objfiles.
6333 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
6334 * linespec.c (iterate_over_all_matching_symtabs)
6335 (search_minsyms_for_name): Use all_objfiles.
6336 * maint.c (maintenance_info_sections): Use all_objfiles.
6337 * main.c (captured_main_1): Use all_objfiles.
6338 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
6339 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
6340 * guile/scm-pretty-print.c
6341 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
6342 * solib-spu.c (append_ocl_sos): Use all_objfiles.
6343 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
6344 (maintenance_print_msymbols): Use all_objfiles.
6345 * source.c (select_source_symtab): Use all_objfiles.
6346 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
6347 * symfile.c (remove_symbol_file_command)
6348 (expand_symtabs_matching, map_symbol_filenames): Use
6349 all_objfiles.
6350 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
6351 all_objfiles.
6352 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
6353 * objc-lang.c (find_methods): Use all_objfiles.
6354 * objfiles.c (have_partial_symbols, have_full_symbols)
6355 (have_minimal_symbols, qsort_cmp)
6356 (default_iterate_over_objfiles_in_search_order): Use
6357 all_objfiles.
6358 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
6359 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
6360 (maintenance_check_psymtabs): Use all_objfiles.
6361 (ALL_PSYMTABS): Remove.
6362 * compile/compile-object-run.c (do_module_cleanup): Use
6363 all_objfiles.
6364 * blockframe.c (find_pc_partial_function): Use all_objfiles.
6365 * cp-support.c (add_symbol_overload_list_qualified): Use
6366 all_objfiles.
6367 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
6368 Use all_objfiles.
6369 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
6370 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
6371 all_objfiles.
6372 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
6373 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
6374 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
6375 Uses all_objfiles.
6376 * solib.c (solib_read_symbols): Use all_objfiles
6377
63782019-01-09 Tom Tromey <tom@tromey.com>
6379
6380 * probe.c (parse_probes_in_pspace): Use all_objfiles.
6381 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
6382 all_objfiles.
6383 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
6384 * symmisc.c (print_symbol_bcache_statistics)
6385 (print_objfile_statistics, maintenance_print_objfiles)
6386 (maintenance_info_symtabs, maintenance_check_symtabs)
6387 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
6388 all_objfiles.
6389 * source.c (forget_cached_source_info): Use all_objfiles.
6390 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
6391 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
6392 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
6393 * objfiles.c (update_section_map): Use all_objfiles.
6394 (shared_objfile_contains_address_p): Likewise.
6395 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
6396 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
6397
63982019-01-09 Tom Tromey <tom@tromey.com>
6399
6400 * common/next-iterator.h: New file.
6401 * objfiles.h (class all_objfiles): New.
6402 (struct objfile_iterator): New.
6403
64042019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6405
6406 * NEWS: Move the description of the changed "frame", "select-frame",
6407 and "info frame" commands to the Changed commands section.
6408
64092019-01-09 Simon Marchi <simon.marchi@ericsson.com>
6410
6411 * gdbtypes.c (check_stub_method_group): Remove handling of old
6412 mangling schemes.
6413 * linespec.c (find_methods): Likewise.
6414 * stabsread.c (read_member_functions): Likewise.
6415 * valops.c (search_struct_method): Likewise.
6416 (value_struct_elt_for_reference): Likewise.
6417 * NEWS: Mention this change.
6418
64192019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
6420
6421 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
6422 print_source_lines.
6423 * source.c (print_source_lines_base): Update line number check.
6424 (print_source_lines): New function.
6425 (source_lines_range::source_lines_range): New function.
6426 * source.h (class source_lines_range): New class.
6427 (print_source_lines): New declaration.
6428
64292019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6430
6431 * linespec.c (linespec_state_destructor): Free self->canonical_names.
6432
64332019-01-08 Tom Tromey <tom@tromey.com>
6434 Simon Marchi <simon.marchi@ericsson.com>
6435
6436 PR gdb/24060
6437 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
6438 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
6439 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6440 * f-exp.y (DOLLAR_VARIABLE): Likewise.
6441 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
6442 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
6443
64442019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6445
6446 * source.c (select_source_symtab): Move header comment to
6447 declaration in source.h.
6448 (forget_cached_source_info_for_objfile): Likewise.
6449 (forget_cached_source_info): Likewise.
6450 (identify_source_line): Likewise.
6451 * source.h (identify_source_line): Move declaration from symtab.h
6452 and add comment from source.c
6453 (print_source_lines): Likewise.
6454 (forget_cached_source_info_for_objfile): Likewise.
6455 (forget_cached_source_info): Likewise.
6456 (select_source_symtab): Likewise.
6457 (enum print_source_lines_flag): Move definition from symtab.h.
6458 * symtab.h (identify_source_line): Move declaration to source.h.
6459 (print_source_lines): Likewise.
6460 (forget_cached_source_info_for_objfile): Likewise.
6461 (forget_cached_source_info): Likewise.
6462 (select_source_symtab): Likewise.
6463 (enum print_source_lines_flag): Move definition to source.h.
6464 * tui/tui-hooks.c: Add 'source.h' include.
6465
64662019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6467
6468 * source.c (print_source_lines_base): Handle requests to print
6469 reverse line number sequences, and guard against empty lines
6470 string.
6471
64722019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
6473
6474 * source.c (print_source_lines_base): Fix skip of '\r' if next
6475 character is '\n'.
6476
64772019-01-06 Tom Tromey <tom@tromey.com>
6478
6479 * c-exp.y (struct c_parse_state) <macro_original_text,
6480 expansion_obstack>: New member.
6481 (macro_original_text, expansion_obstack): Remove globals.
6482 (scan_macro_expansion, scanning_macro_expansion)
6483 (finished_macro_expansion): Update.
6484 (scan_macro_cleanup): Remove.
6485 (yylex, c_parse): Update.
6486
64872019-01-06 Tom Tromey <tom@tromey.com>
6488
6489 * c-exp.y (struct c_parse_state) <strings>: New member.
6490 (operator_stoken): Update.
6491
64922019-01-06 Tom Tromey <tom@tromey.com>
6493
6494 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
6495 (union type_stack_elt) <typelist_val>: Now a pointer to
6496 std::vector.
6497 (type_stack_cleanup): Don't declare.
6498 (push_typelist): Update.
6499 * parse.c (pop_typelist): Return a std::vector.
6500 (push_typelist): Take a std::vector.
6501 (follow_types): Update. Do not free args.
6502 (type_stack_cleanup): Remove.
6503 * c-exp.y (struct c_parse_state): New.
6504 (cpstate): New global.
6505 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
6506 (nonempty_typelist): Update.
6507 (func_mod): Create a new vector.
6508 (c_parse): Create a c_parse_state.
6509 (check_parameter_typelist): Do not delete params.
6510 (function_method): Update. Do not delete type_list.
6511
65122019-01-06 Tom Tromey <tom@tromey.com>
6513
6514 PR gdb/28155:
6515 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
6516 check_typedef.
6517 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
6518 (print_return_value): Likewise.
6519
65202019-01-05 Tom Tromey <tom@tromey.com>
6521
6522 * contrib/cleanup_check.py: Remove.
6523 * contrib/gcc-with-excheck: Remove.
6524 * contrib/exsummary.py: Remove.
6525 * contrib/excheck.py: Remove.
6526
65272019-01-05 Joel Brobecker <brobecker@adacore.com>
6528
6529 * thread.c (delete_thread_1): Add gdb_assert that THR is not
6530 NULL. Initialize tpprev to NULL instead of assigning it
6531 to NULL on the next statement.
6532 * windows-nat.c (windows_delete_thread): Remove check for
6533 main_thread_id before printing thread exit notifications.
6534 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
6535 Remove thread ID check against main_thread_id.
6536 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
6537 windows_delete_thread.
6538 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
6539
65402019-01-04 Tom Tromey <tom@tromey.com>
6541
6542 * compile/compile.c (_initialize_compile): Use upper case for
6543 metasyntactic variables.
6544 * symmisc.c (_initialize_symmisc): Use upper case for
6545 metasyntactic variables.
6546 * psymtab.c (_initialize_psymtab): Use upper case for
6547 metasyntactic variables.
6548 * demangle.c (demangle_command): Use upper case for metasyntactic
6549 variables.
6550 (_initialize_demangler): Likewise.
6551 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
6552 variables.
6553
65542019-01-03 Tom Tromey <tom@tromey.com>
6555
6556 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
6557
65582019-01-03 Tom Tromey <tom@tromey.com>
6559
6560 * python/py-symtab.c (salpy_str): Update.
6561 (struct salpy_sal_object) <symtab>: Now a PyObject.
6562 (salpy_dealloc): Update.
6563 (del_objfile_sal): Use gdbpy_ref.
6564
65652019-01-03 Tom Tromey <tom@tromey.com>
6566
6567 * python/py-type.c (convert_field): Use new_reference. Return
6568 gdbpy_ref.
6569 (make_fielditem): Return gdbpy_ref.
6570 (typy_fields): Update.
6571 (typy_getitem): Update.
6572 (field_name): Return gdbpy_ref. Use new_reference.
6573 (typy_iterator_iternext): Update.
6574
65752019-01-03 Tom Tromey <tom@tromey.com>
6576
6577 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
6578
65792019-01-03 Tom Tromey <tom@tromey.com>
6580
6581 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
6582 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
6583 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
6584 (pspy_set_frame_filters, pspy_set_frame_unwinders)
6585 (pspy_set_type_printers): Likewise.
6586 * python/py-function.c (fnpy_init): Use gdbpy_ref.
6587 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
6588 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
6589 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
6590 (objfpy_set_type_printers): Likewise.
6591
65922019-01-03 Tom Tromey <tom@tromey.com>
6593
6594 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
6595 (gdbpy_print_stack): Use gdbpy_err_fetch.
6596 * python/python-internal.h (class gdbpy_err_fetch): New class.
6597 (class gdbpy_enter) <m_error_type, m_error_value,
6598 m_error_traceback>: Remove.
6599 <m_error>: New member.
6600 (gdbpy_exception_to_string): Don't declare.
6601 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
6602 * python/py-value.c (convert_value_from_python): Use
6603 gdbpy_err_fetch.
6604 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
6605 gdbpy_exception_to_string.
6606 (gdbpy_handle_exception): Use gdbpy_err_fetch.
6607 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
6608 gdbpy_err_fetch.
6609
66102019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6611
6612 * linux-nat.c (delete_lwp_cleanup): Delete.
6613 (struct lwp_deleter): New struct.
6614 (lwp_info_up): New typedef.
6615 (linux_nat_target::follow_fork): Delete cleanup, and make use of
6616 lwp_info_up.
6617
66182019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6619
6620 * linux-fork.c (class scoped_switch_fork_info): New class.
6621 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
6622
66232019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6624
6625 * valops.c (find_overload_match): Remove use of null_cleanup, and
6626 calls to do_cleanups.
6627
66282019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6629
6630 * compile/compile-cplus-types.c
6631 (compile_cplus_instance::decl_name): Handle changes to
6632 cp_func_name.
6633 * cp-support.c (cp_func_name): Update header comment, update
6634 return type.
6635 * cp-support.h (cp_func_name): Update return type in declaration.
6636 * valops.c (find_overload_match): Move temp_func local to top
6637 level of function and change its type. Use temp_func to hold and
6638 delete temporary string obtained from cp_func_name.
6639
66402019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
6643 gdb::char_vector, remove cleanup, and update uses of `msg`.
6644
66452019-01-03 Jim Wilson <jimw@sifive.com>
6646
6647 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
6648
66492019-01-02 Tom Tromey <tom@tromey.com>
6650
6651 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
6652 (tdesc_parse_xml): Remove cleanups.
6653 * target-descriptions.h (make_cleanup_free_target_description):
6654 Don't declare.
6655 (target_desc_deleter): New struct.
6656 (target_desc_up): New typedef.
6657 * target-descriptions.c (target_desc_deleter::operator()): Rename
6658 from free_target_description.
6659 (make_cleanup_free_target_description): Remove.
6660
66612019-01-02 Tom Tromey <tom@tromey.com>
6662
6663 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
6664 constructor, destructor.
6665 (linespec_parser): Remove typedef.
6666 (~linespec_parser): Rename from linespec_parser_delete.
6667 (linespec_lex_to_end, linespec_complete_label)
6668 (linespec_complete): Update.
6669 (decode_line_full): Remove cleanups.
6670 (decode_line_1): Update.
6671
66722019-01-02 Tom Tromey <tom@tromey.com>
6673
6674 * python/python-internal.h (inferior_to_inferior_object): Change
6675 return type.
6676 * python/py-exitedevent.c (create_exited_event_object): Update.
6677 * python/py-inferior.c (inferior_to_inferior_object): Return
6678 gdbpy_ref.
6679 (python_new_inferior, python_inferior_deleted)
6680 (thread_to_thread_object, delete_thread_object)
6681 (build_inferior_list, gdbpy_selected_inferior): Update.
6682 * python/py-infthread.c (create_thread_object): Update. Also fail
6683 if inferior_to_inferior_object fails.
6684
66852019-01-02 Simon Marchi <simon.marchi@ericsson.com>
6686
6687 * inferior.h (class inferior) <displaced_step_state>: New field.
6688 * infrun.h (struct displaced_step_state): Move here from
6689 infrun.c. Initialize fields, add constructor.
6690 <inf>: Remove field.
6691 <reset>: New method.
6692 * infrun.c (struct displaced_step_inferior_state): Move to
6693 infrun.h.
6694 (displaced_step_inferior_states): Remove.
6695 (get_displaced_stepping_state): Adust.
6696 (displaced_step_in_progress_any_inferior): Adjust.
6697 (displaced_step_in_progress_thread): Adjust.
6698 (displaced_step_in_progress): Adjust.
6699 (add_displaced_stepping_state): Remove.
6700 (get_displaced_step_closure_by_addr): Adjust.
6701 (remove_displaced_stepping_state): Remove.
6702 (infrun_inferior_exit): Call displaced_step_state.reset.
6703 (use_displaced_stepping): Don't check for NULL.
6704 (displaced_step_prepare_throw): Call
6705 get_displaced_stepping_state.
6706 (displaced_step_fixup): Don't check for NULL.
6707 (prepare_for_detach): Don't check for NULL.
6708
67092019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6710
6711 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
6712 in case of call that did not complete.
6713
67142019-01-02 Andrey Utkin <autkin@undo.io>
6715
6716 * symfile.c (find_separate_debug_file): Fix search of debug files for
6717 remote debuggee.
6718
67192019-01-02 Tom Tromey <tom@tromey.com>
6720
6721 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
6722 indentation.
6723 * python/py-frame.c (frapy_older): Remove cast.
6724 (frapy_newer): Likewise.
6725 * python/py-breakpoint.c (local_setattro): Remove cast.
6726 * python/py-arch.c (archpy_name): Remove local variable.
6727 * python/py-type.c (gdbpy_lookup_type): Remove cast.
6728
67292019-01-02 Joel Brobecker <brobecker@adacore.com>
6730
6731 * unittests/basic_string_view/element_access/char/empty.cc:
6732 Fix year range in copyright header.
6733
67342019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
6735
6736 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
6737 Delete.
6738 <operator==>: Update with for removed field.
6739 <hash>: Likewise.
6740 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
6741 <isa_features>: ...this.
6742 <abi_features>: New field.
6743 (riscv_isa_flen): Update comment.
6744 (riscv_abi_xlen): New declaration.
6745 (riscv_abi_flen): New declaration.
6746 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
6747 isa_features.
6748 (riscv_abi_xlen): New function.
6749 (riscv_isa_flen): Update to get answer from isa_features.
6750 (riscv_abi_flen): New function.
6751 (riscv_has_fp_abi): Update to get answer from abi_features.
6752 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
6753 xlen and flen.
6754 (riscv_call_info) <xlen, flen>: Update comment.
6755 (riscv_call_arg_struct): Remove invalid assertions
6756 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
6757 is removed.
6758 (riscv_gdbarch_init): Gather isa features and abi features
6759 separately, ensure both match on the gdbarch when reusing an old
6760 gdbarch. Relax an error check to allow 32-bit abi float to run on
6761 a target with 64-bit float hardware.
6762
67632019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6764
6765 * source.c (search_command_helper): Stop reverse search
6766 when line 1 has been searched.
6767
67682019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6769
6770 * record-full.c (record_full_base_target::close): Rewrite
6771 record_full_core_buf_list free logic.
6772
67732019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6774
6775 * break-catch-syscall.c (print_one_catch_syscall): xfree
6776 the last text.
6777
67782019-01-01 Joel Brobecker <brobecker@adacore.com>
6779
6780 * top.c (print_gdb_version): Update Copyright year in version
6781 message.
6782
67832019-01-01 Joel Brobecker <brobecker@adacore.com>
6784
6785 Update copyright year range in all GDB files.
6786
67872019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
6788
6789 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
6790
6791For older changes see ChangeLog-2018.
6792\f
6793Local Variables:
6794mode: change-log
6795left-margin: 8
6796fill-column: 74
6797version-control: never
6798coding: utf-8
6799End:
6800
This page took 0.047435 seconds and 4 git commands to generate.