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