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