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