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