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