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